tevrocsdk 0.1.70 → 0.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/tevroc-sdk.esm.js +43 -39
- package/tevroc-sdk.esm.js.map +2 -2
- package/tevroc-sdk.min.js +19 -19
- package/tevroc-sdk.umd.js +43 -39
package/tevroc-sdk.min.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
var Tevroc=(()=>{var QQ=Object.create;var Vh=Object.defineProperty;var IQ=Object.getOwnPropertyDescriptor;var LQ=Object.getOwnPropertyNames;var TQ=Object.getPrototypeOf,NQ=Object.prototype.hasOwnProperty;var zt=(t,e,A)=>()=>{if(A)throw A[0];try{return t&&(e=t(t=0)),e}catch(r){throw A=[r],r}};var me=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(A){throw e=0,A}},or=(t,e)=>{for(var A in e)Vh(t,A,{get:e[A],enumerable:!0})},ey=(t,e,A,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of LQ(e))!NQ.call(t,n)&&n!==A&&Vh(t,n,{get:()=>e[n],enumerable:!(r=IQ(e,n))||r.enumerable});return t};var An=(t,e,A)=>(A=t!=null?QQ(TQ(t)):{},ey(e||!t||!t.__esModule?Vh(A,"default",{value:t,enumerable:!0}):A,t)),OQ=t=>ey(Vh({},"__esModule",{value:!0}),t);var ty={};or(ty,{isCapacitor:()=>Wi,isNative:()=>ot,isTauri:()=>Wn,platform:()=>di});var PQ,di,Wi,Wn,ot,no=zt(()=>{PQ=()=>{if(typeof window<"u"&&(window.__TAURI__||window.__TAURI_INTERNALS__))return"tauri";if(typeof window<"u"){if(window.Capacitor?.isNativePlatform?.())return window.Capacitor.getPlatform();if(window.Capacitor?.getPlatform){let t=window.Capacitor.getPlatform();if(t==="ios"||t==="android")return t}}return"web"},di=PQ(),Wi=di==="android"||di==="ios",Wn=di==="tauri",ot=di==="android"||di==="ios"||di==="tauri"});function _0(t){if(!(typeof globalThis>"u"))try{globalThis[Ay]=!!t}catch{}}function S0(){return typeof globalThis<"u"&&!!globalThis[Ay]}function ry(t){return typeof t!="function"?()=>{}:(Gh.push(t),()=>Q0(t))}function Q0(t){let e=Gh.indexOf(t);e>=0&&Gh.splice(e,1)}function I0(t,...e){try{for(let A of Gh.slice())try{A({level:t,args:e})}catch{}}catch{}}function iA(...t){S0()&&console.log(...t),I0("log",...t)}function zr(...t){S0()&&console.warn(...t),I0("warn",...t)}function Ka(...t){S0()&&console.error(...t),I0("error",...t)}var Ay,Gh,jo=zt(()=>{Ay="__tevrocsdk_debug__";Gh=[]});var Zl,Su,RQ,kQ,DQ,L0,$n,gn,ny,iy,T0,Dj,HQ,MQ,qQ,P0,N0,Hj,ay,sy,O0,Mj,Ti=zt(()=>{(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(Zl||(Zl={}));Su=class extends Error{constructor(e,A,r){super(e),this.message=e,this.code=A,this.data=r}},RQ=t=>{var e,A;return t?.androidBridge?"android":!((A=(e=t?.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||A===void 0)&&A.bridge?"ios":"web"},kQ=t=>{let e=t.CapacitorCustomPlatform||null,A=t.Capacitor||{},r=A.Plugins=A.Plugins||{},n=()=>e!==null?e.name:RQ(t),i=()=>n()!=="web",s=v=>{let m=l.get(v);return!!(m?.platforms.has(n())||a(v))},a=v=>{var m;return(m=A.PluginHeaders)===null||m===void 0?void 0:m.find(g=>g.name===v)},o=v=>t.console.error(v),l=new Map,h=(v,m={})=>{let g=l.get(v);if(g)return console.warn(`Capacitor plugin "${v}" already registered. Cannot register plugins twice.`),g.proxy;let C=n(),F=a(v),_,x=async()=>(!_&&C in m?_=typeof m[C]=="function"?_=await m[C]():_=m[C]:e!==null&&!_&&"web"in m&&(_=typeof m.web=="function"?_=await m.web():_=m.web),_),H=(j,N)=>{var Z,I;if(F){let O=F?.methods.find(Y=>N===Y.name);if(O)return O.rtype==="promise"?Y=>A.nativePromise(v,N.toString(),Y):(Y,ee)=>A.nativeCallback(v,N.toString(),Y,ee);if(j)return(Z=j[N])===null||Z===void 0?void 0:Z.bind(j)}else{if(j)return(I=j[N])===null||I===void 0?void 0:I.bind(j);throw new Su(`"${v}" plugin is not implemented on ${C}`,Zl.Unimplemented)}},D=j=>{let N,Z=(...I)=>{let O=x().then(Y=>{let ee=H(Y,j);if(ee){let ce=ee(...I);return N=ce?.remove,ce}else throw new Su(`"${v}.${j}()" is not implemented on ${C}`,Zl.Unimplemented)});return j==="addListener"&&(O.remove=async()=>N()),O};return Z.toString=()=>`${j.toString()}() { [capacitor code] }`,Object.defineProperty(Z,"name",{value:j,writable:!1,configurable:!1}),Z},k=D("addListener"),re=D("removeListener"),fe=(j,N)=>{let Z=k({eventName:j},N),I=async()=>{let Y=await Z;re({eventName:j,callbackId:Y},N)},O=new Promise(Y=>Z.then(()=>Y({remove:I})));return O.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await I()},O},Ae=new Proxy({},{get(j,N){switch(N){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return F?fe:k;case"removeListener":return re;default:return D(N)}}});return r[v]=Ae,l.set(v,{name:v,proxy:Ae,platforms:new Set([...Object.keys(m),...F?[C]:[]])}),Ae};return A.convertFileSrc||(A.convertFileSrc=v=>v),A.getPlatform=n,A.handleError=o,A.isNativePlatform=i,A.isPluginAvailable=s,A.registerPlugin=h,A.Exception=Su,A.DEBUG=!!A.DEBUG,A.isLoggingEnabled=!!A.isLoggingEnabled,A},DQ=t=>t.Capacitor=kQ(t),L0=DQ(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),$n=L0.registerPlugin,gn=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,A){let r=!1;this.listeners[e]||(this.listeners[e]=[],r=!0),this.listeners[e].push(A);let i=this.windowListeners[e];i&&!i.registered&&this.addWindowListener(i),r&&this.sendRetainedArgumentsForEvent(e);let s=async()=>this.removeListener(e,A);return Promise.resolve({remove:s})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,A,r){let n=this.listeners[e];if(!n){if(r){let i=this.retainedEventArguments[e];i||(i=[]),i.push(A),this.retainedEventArguments[e]=i}return}n.forEach(i=>i(A))}hasListeners(e){var A;return!!(!((A=this.listeners[e])===null||A===void 0)&&A.length)}registerWindowListener(e,A){this.windowListeners[A]={registered:!1,windowEventName:e,pluginEventName:A,handler:r=>{this.notifyListeners(A,r)}}}unimplemented(e="not implemented"){return new L0.Exception(e,Zl.Unimplemented)}unavailable(e="not available"){return new L0.Exception(e,Zl.Unavailable)}async removeListener(e,A){let r=this.listeners[e];if(!r)return;let n=r.indexOf(A);this.listeners[e].splice(n,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let A=this.retainedEventArguments[e];A&&(delete this.retainedEventArguments[e],A.forEach(r=>{this.notifyListeners(e,r)}))}},ny=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),iy=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),T0=class extends gn{async getCookies(){let e=document.cookie,A={};return e.split(";").forEach(r=>{if(r.length<=0)return;let[n,i]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=iy(n).trim(),i=iy(i).trim(),A[n]=i}),A}async setCookie(e){try{let A=ny(e.key),r=ny(e.value),n=e.expires?`; expires=${e.expires.replace("expires=","")}`:"",i=(e.path||"/").replace("path=",""),s=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${A}=${r||""}${n}; path=${i}; ${s};`}catch(A){return Promise.reject(A)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(A){return Promise.reject(A)}}async clearCookies(){try{let e=document.cookie.split(";")||[];for(let A of e)document.cookie=A.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}},Dj=$n("CapacitorCookies",{web:()=>new T0}),HQ=async t=>new Promise((e,A)=>{let r=new FileReader;r.onload=()=>{let n=r.result;e(n.indexOf(",")>=0?n.split(",")[1]:n)},r.onerror=n=>A(n),r.readAsDataURL(t)}),MQ=(t={})=>{let e=Object.keys(t);return Object.keys(t).map(n=>n.toLocaleLowerCase()).reduce((n,i,s)=>(n[i]=t[e[s]],n),{})},qQ=(t,e=!0)=>t?Object.entries(t).reduce((r,n)=>{let[i,s]=n,a,o;return Array.isArray(s)?(o="",s.forEach(l=>{a=e?encodeURIComponent(l):l,o+=`${i}=${a}&`}),o.slice(0,-1)):(a=e?encodeURIComponent(s):s,o=`${i}=${a}`),`${r}&${o}`},"").substr(1):null,P0=(t,e={})=>{let A=Object.assign({method:t.method||"GET",headers:t.headers},e),n=MQ(t.headers)["content-type"]||"";if(typeof t.data=="string")A.body=t.data;else if(n.includes("application/x-www-form-urlencoded")){let i=new URLSearchParams;for(let[s,a]of Object.entries(t.data||{}))i.set(s,a);A.body=i.toString()}else if(n.includes("multipart/form-data")||t.data instanceof FormData){let i=new FormData;if(t.data instanceof FormData)t.data.forEach((a,o)=>{i.append(o,a)});else for(let a of Object.keys(t.data))i.append(a,t.data[a]);A.body=i;let s=new Headers(A.headers);s.delete("content-type"),A.headers=s}else(n.includes("application/json")||typeof t.data=="object")&&(A.body=JSON.stringify(t.data));return A},N0=class extends gn{async request(e){let A=P0(e,e.webFetchExtra),r=qQ(e.params,e.shouldEncodeUrlParams),n=r?`${e.url}?${r}`:e.url,i=await fetch(n,A),s=i.headers.get("content-type")||"",{responseType:a="text"}=i.ok?e:{};s.includes("application/json")&&(a="json");let o,l;switch(a){case"arraybuffer":case"blob":l=await i.blob(),o=await HQ(l);break;case"json":o=await i.json();break;default:o=await i.text()}let h={};return i.headers.forEach((v,m)=>{h[m]=v}),{data:o,headers:h,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}},Hj=$n("CapacitorHttp",{web:()=>new N0});(function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"})(ay||(ay={}));(function(t){t.StatusBar="StatusBar",t.NavigationBar="NavigationBar"})(sy||(sy={}));O0=class extends gn{async setStyle(){this.unavailable("not available for web")}async setAnimation(){this.unavailable("not available for web")}async show(){this.unavailable("not available for web")}async hide(){this.unavailable("not available for web")}},Mj=$n("SystemBars",{web:()=>new O0})});var oy=zt(()=>{});var ly={};or(ly,{AppWeb:()=>R0});var R0,cy=zt(()=>{Ti();R0=class extends gn{constructor(){super(),this.handleVisibilityChange=()=>{let e={isActive:document.hidden!==!0};this.notifyListeners("appStateChange",e),document.hidden?this.notifyListeners("pause",null):this.notifyListeners("resume",null)},document.addEventListener("visibilitychange",this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented("Not implemented on web.")}async getInfo(){throw this.unimplemented("Not implemented on web.")}async getLaunchUrl(){return{url:""}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented("Not implemented on web.")}async toggleBackButtonHandler(){throw this.unimplemented("Not implemented on web.")}async getAppLanguage(){return{value:navigator.language.split("-")[0].toLowerCase()}}}});var zh={};or(zh,{App:()=>KQ});var KQ,Wh=zt(()=>{Ti();oy();KQ=$n("App",{web:()=>Promise.resolve().then(()=>(cy(),ly)).then(t=>new t.AppWeb)})});var uy=zt(()=>{});var fy={};or(fy,{Browser:()=>jQ,BrowserWeb:()=>$h});var $h,jQ,hy=zt(()=>{Ti();$h=class extends gn{constructor(){super(),this._lastWindow=null}async open(e){this._lastWindow=window.open(e.url,e.windowName||"_blank")}async close(){return new Promise((e,A)=>{this._lastWindow!=null?(this._lastWindow.close(),this._lastWindow=null,e()):A("No active window to close!")})}},jQ=new $h});var k0={};or(k0,{Browser:()=>VQ});var VQ,D0=zt(()=>{Ti();uy();VQ=$n("Browser",{web:()=>Promise.resolve().then(()=>(hy(),fy)).then(t=>new t.BrowserWeb)})});function rn(t,e,A,r){if(A==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return A==="m"?r:A==="a"?r.call(t):r?r.value:e.get(t)}function Vo(t,e,A,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(t,A):n?n.value=A:e.set(t,A),A}var dy=zt(()=>{});function H0(t,e=!1){return window.__TAURI_INTERNALS__.transformCallback(t,e)}async function ge(t,e={},A){return window.__TAURI_INTERNALS__.invoke(t,e,A)}var Go,$i,ec,Xh,Yh,Xn,Jh,zo,pa=zt(()=>{dy();Xn="__TAURI_TO_IPC_KEY__";Jh=class{constructor(e){Go.set(this,void 0),$i.set(this,0),ec.set(this,[]),Xh.set(this,void 0),Vo(this,Go,e||(()=>{}),"f"),this.id=H0(A=>{let r=A.index;if("end"in A){r==rn(this,$i,"f")?this.cleanupCallback():Vo(this,Xh,r,"f");return}let n=A.message;if(r==rn(this,$i,"f")){for(rn(this,Go,"f").call(this,n),Vo(this,$i,rn(this,$i,"f")+1,"f");rn(this,$i,"f")in rn(this,ec,"f");){let i=rn(this,ec,"f")[rn(this,$i,"f")];rn(this,Go,"f").call(this,i),delete rn(this,ec,"f")[rn(this,$i,"f")],Vo(this,$i,rn(this,$i,"f")+1,"f")}rn(this,$i,"f")===rn(this,Xh,"f")&&this.cleanupCallback()}else rn(this,ec,"f")[r]=n})}cleanupCallback(){window.__TAURI_INTERNALS__.unregisterCallback(this.id)}set onmessage(e){Vo(this,Go,e,"f")}get onmessage(){return rn(this,Go,"f")}[(Go=new WeakMap,$i=new WeakMap,ec=new WeakMap,Xh=new WeakMap,Xn)](){return`__CHANNEL__:${this.id}`}toJSON(){return this[Xn]()}};zo=class{get rid(){return rn(this,Yh,"f")}constructor(e){Yh.set(this,void 0),Vo(this,Yh,e,"f")}async close(){return ge("plugin:resources|close",{rid:this.rid})}};Yh=new WeakMap});var Qu,ja,Xi,Iu,_n,Va,Zh=zt(()=>{pa();Qu=class{constructor(...e){this.type="Logical",e.length===1?"Logical"in e[0]?(this.width=e[0].Logical.width,this.height=e[0].Logical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toPhysical(e){return new ja(this.width*e,this.height*e)}[Xn](){return{width:this.width,height:this.height}}toJSON(){return this[Xn]()}},ja=class{constructor(...e){this.type="Physical",e.length===1?"Physical"in e[0]?(this.width=e[0].Physical.width,this.height=e[0].Physical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toLogical(e){return new Qu(this.width/e,this.height/e)}[Xn](){return{width:this.width,height:this.height}}toJSON(){return this[Xn]()}},Xi=class{constructor(e){this.size=e}toLogical(e){return this.size instanceof Qu?this.size:this.size.toLogical(e)}toPhysical(e){return this.size instanceof ja?this.size:this.size.toPhysical(e)}[Xn](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[Xn]()}},Iu=class{constructor(...e){this.type="Logical",e.length===1?"Logical"in e[0]?(this.x=e[0].Logical.x,this.y=e[0].Logical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toPhysical(e){return new _n(this.x*e,this.y*e)}[Xn](){return{x:this.x,y:this.y}}toJSON(){return this[Xn]()}},_n=class{constructor(...e){this.type="Physical",e.length===1?"Physical"in e[0]?(this.x=e[0].Physical.x,this.y=e[0].Physical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toLogical(e){return new Iu(this.x/e,this.y/e)}[Xn](){return{x:this.x,y:this.y}}toJSON(){return this[Xn]()}},Va=class{constructor(e){this.position=e}toLogical(e){return this.position instanceof Iu?this.position:this.position.toLogical(e)}toPhysical(e){return this.position instanceof _n?this.position:this.position.toPhysical(e)}[Xn](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[Xn]()}}});var M0={};or(M0,{TauriEvent:()=>Tr,emit:()=>Lu,emitTo:()=>Tu,listen:()=>io,once:()=>Wo});async function py(t,e){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(t,e),await ge("plugin:event|unlisten",{event:t,eventId:e})}async function io(t,e,A){var r;let n=typeof A?.target=="string"?{kind:"AnyLabel",label:A.target}:(r=A?.target)!==null&&r!==void 0?r:{kind:"Any"};return ge("plugin:event|listen",{event:t,target:n,handler:H0(e)}).then(i=>async()=>py(t,i))}async function Wo(t,e,A){return io(t,r=>{py(t,r.id),e(r)},A)}async function Lu(t,e){await ge("plugin:event|emit",{event:t,payload:e})}async function Tu(t,e,A){await ge("plugin:event|emit_to",{target:typeof t=="string"?{kind:"AnyLabel",label:t}:t,event:e,payload:A})}var Tr,tc=zt(()=>{pa();(function(t){t.WINDOW_RESIZED="tauri://resize",t.WINDOW_MOVED="tauri://move",t.WINDOW_CLOSE_REQUESTED="tauri://close-requested",t.WINDOW_DESTROYED="tauri://destroyed",t.WINDOW_FOCUS="tauri://focus",t.WINDOW_BLUR="tauri://blur",t.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",t.WINDOW_THEME_CHANGED="tauri://theme-changed",t.WINDOW_CREATED="tauri://window-created",t.WINDOW_SUSPENDED="tauri://suspended",t.WINDOW_RESUMED="tauri://resumed",t.WEBVIEW_CREATED="tauri://webview-created",t.DRAG_ENTER="tauri://drag-enter",t.DRAG_OVER="tauri://drag-over",t.DRAG_DROP="tauri://drag-drop",t.DRAG_LEAVE="tauri://drag-leave"})(Tr||(Tr={}))});function Nu(t){return t==null?null:typeof t=="string"?t:t instanceof q0?t.rid:t}var q0,gy=zt(()=>{pa();q0=class t extends zo{constructor(e){super(e)}static async new(e,A,r){return ge("plugin:image|new",{rgba:Nu(e),width:A,height:r}).then(n=>new t(n))}static async fromBytes(e){return ge("plugin:image|from_bytes",{bytes:Nu(e)}).then(A=>new t(A))}static async fromPath(e){return ge("plugin:image|from_path",{path:e}).then(A=>new t(A))}async rgba(){return ge("plugin:image|rgba",{rid:this.rid}).then(e=>new Uint8Array(e))}async size(){return ge("plugin:image|size",{rid:this.rid})}}});function z0(){return new ao(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function K0(){return ge("plugin:window|get_all_windows").then(t=>t.map(e=>new ao(e,{skip:!0})))}var V0,G0,wy,j0,ao,vy,my,yy,By,W0=zt(()=>{Zh();Zh();tc();pa();gy();(function(t){t[t.Critical=1]="Critical",t[t.Informational=2]="Informational"})(V0||(V0={}));G0=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}};(function(t){t.None="none",t.Normal="normal",t.Indeterminate="indeterminate",t.Paused="paused",t.Error="error"})(wy||(wy={}));j0=["tauri://created","tauri://error"],ao=class{constructor(e,A={}){var r;this.label=e,this.listeners=Object.create(null),A?.skip||ge("plugin:window|create",{options:{...A,parent:typeof A.parent=="string"?A.parent:(r=A.parent)===null||r===void 0?void 0:r.label,label:e}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static async getByLabel(e){var A;return(A=(await K0()).find(r=>r.label===e))!==null&&A!==void 0?A:null}static getCurrent(){return z0()}static async getAll(){return K0()}static async getFocusedWindow(){for(let e of await K0())if(await e.isFocused())return e;return null}async listen(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:io(e,A,{target:{kind:"Window",label:this.label}})}async once(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:Wo(e,A,{target:{kind:"Window",label:this.label}})}async emit(e,A){if(j0.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,payload:A});return}return Lu(e,A)}async emitTo(e,A,r){if(j0.includes(A)){for(let n of this.listeners[A]||[])n({event:A,id:-1,payload:r});return}return Tu(e,A,r)}_handleTauriEvent(e,A){return j0.includes(e)?(e in this.listeners?this.listeners[e].push(A):this.listeners[e]=[A],!0):!1}async scaleFactor(){return ge("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return ge("plugin:window|inner_position",{label:this.label}).then(e=>new _n(e))}async outerPosition(){return ge("plugin:window|outer_position",{label:this.label}).then(e=>new _n(e))}async innerSize(){return ge("plugin:window|inner_size",{label:this.label}).then(e=>new ja(e))}async outerSize(){return ge("plugin:window|outer_size",{label:this.label}).then(e=>new ja(e))}async isFullscreen(){return ge("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return ge("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return ge("plugin:window|is_maximized",{label:this.label})}async isFocused(){return ge("plugin:window|is_focused",{label:this.label})}async isDecorated(){return ge("plugin:window|is_decorated",{label:this.label})}async isResizable(){return ge("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return ge("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return ge("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return ge("plugin:window|is_closable",{label:this.label})}async isVisible(){return ge("plugin:window|is_visible",{label:this.label})}async title(){return ge("plugin:window|title",{label:this.label})}async theme(){return ge("plugin:window|theme",{label:this.label})}async isAlwaysOnTop(){return ge("plugin:window|is_always_on_top",{label:this.label})}async activityName(){return ge("plugin:window|activity_name",{label:this.label})}async sceneIdentifier(){return ge("plugin:window|scene_identifier",{label:this.label})}async center(){return ge("plugin:window|center",{label:this.label})}async requestUserAttention(e){let A=null;return e&&(e===V0.Critical?A={type:"Critical"}:A={type:"Informational"}),ge("plugin:window|request_user_attention",{label:this.label,value:A})}async setResizable(e){return ge("plugin:window|set_resizable",{label:this.label,value:e})}async setEnabled(e){return ge("plugin:window|set_enabled",{label:this.label,value:e})}async isEnabled(){return ge("plugin:window|is_enabled",{label:this.label})}async setMaximizable(e){return ge("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return ge("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return ge("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return ge("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return ge("plugin:window|maximize",{label:this.label})}async unmaximize(){return ge("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return ge("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return ge("plugin:window|minimize",{label:this.label})}async unminimize(){return ge("plugin:window|unminimize",{label:this.label})}async show(){return ge("plugin:window|show",{label:this.label})}async hide(){return ge("plugin:window|hide",{label:this.label})}async close(){return ge("plugin:window|close",{label:this.label})}async destroy(){return ge("plugin:window|destroy",{label:this.label})}async setDecorations(e){return ge("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return ge("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return ge("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return ge("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return ge("plugin:window|set_always_on_top",{label:this.label,value:e})}async setAlwaysOnBottom(e){return ge("plugin:window|set_always_on_bottom",{label:this.label,value:e})}async setContentProtected(e){return ge("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){return ge("plugin:window|set_size",{label:this.label,value:e instanceof Xi?e:new Xi(e)})}async setMinSize(e){return ge("plugin:window|set_min_size",{label:this.label,value:e instanceof Xi?e:e?new Xi(e):null})}async setMaxSize(e){return ge("plugin:window|set_max_size",{label:this.label,value:e instanceof Xi?e:e?new Xi(e):null})}async setSizeConstraints(e){function A(r){return r?{Logical:r}:null}return ge("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:A(e?.minWidth),minHeight:A(e?.minHeight),maxWidth:A(e?.maxWidth),maxHeight:A(e?.maxHeight)}})}async setPosition(e){return ge("plugin:window|set_position",{label:this.label,value:e instanceof Va?e:new Va(e)})}async setFullscreen(e){return ge("plugin:window|set_fullscreen",{label:this.label,value:e})}async setSimpleFullscreen(e){return ge("plugin:window|set_simple_fullscreen",{label:this.label,value:e})}async setFocus(){return ge("plugin:window|set_focus",{label:this.label})}async setFocusable(e){return ge("plugin:window|set_focusable",{label:this.label,value:e})}async setIcon(e){return ge("plugin:window|set_icon",{label:this.label,value:Nu(e)})}async setSkipTaskbar(e){return ge("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return ge("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return ge("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return ge("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setBackgroundColor(e){return ge("plugin:window|set_background_color",{color:e})}async setCursorPosition(e){return ge("plugin:window|set_cursor_position",{label:this.label,value:e instanceof Va?e:new Va(e)})}async setIgnoreCursorEvents(e){return ge("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return ge("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(e){return ge("plugin:window|start_resize_dragging",{label:this.label,value:e})}async setBadgeCount(e){return ge("plugin:window|set_badge_count",{label:this.label,value:e})}async setBadgeLabel(e){return ge("plugin:window|set_badge_label",{label:this.label,value:e})}async setOverlayIcon(e){return ge("plugin:window|set_overlay_icon",{label:this.label,value:e?Nu(e):void 0})}async setProgressBar(e){return ge("plugin:window|set_progress_bar",{label:this.label,value:e})}async setVisibleOnAllWorkspaces(e){return ge("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:e})}async setTitleBarStyle(e){return ge("plugin:window|set_title_bar_style",{label:this.label,value:e})}async setTheme(e){return ge("plugin:window|set_theme",{label:this.label,value:e})}async onResized(e){return this.listen(Tr.WINDOW_RESIZED,A=>{A.payload=new ja(A.payload),e(A)})}async onMoved(e){return this.listen(Tr.WINDOW_MOVED,A=>{A.payload=new _n(A.payload),e(A)})}async onCloseRequested(e){return this.listen(Tr.WINDOW_CLOSE_REQUESTED,async A=>{let r=new G0(A);await e(r),r.isPreventDefault()||await this.destroy()})}async onDragDropEvent(e){let A=await this.listen(Tr.DRAG_ENTER,s=>{e({...s,payload:{type:"enter",paths:s.payload.paths,position:new _n(s.payload.position)}})}),r=await this.listen(Tr.DRAG_OVER,s=>{e({...s,payload:{type:"over",position:new _n(s.payload.position)}})}),n=await this.listen(Tr.DRAG_DROP,s=>{e({...s,payload:{type:"drop",paths:s.payload.paths,position:new _n(s.payload.position)}})}),i=await this.listen(Tr.DRAG_LEAVE,s=>{e({...s,payload:{type:"leave"}})});return()=>{A(),n(),r(),i()}}async onFocusChanged(e){let A=await this.listen(Tr.WINDOW_FOCUS,n=>{e({...n,payload:!0})}),r=await this.listen(Tr.WINDOW_BLUR,n=>{e({...n,payload:!1})});return()=>{A(),r()}}async onScaleChanged(e){return this.listen(Tr.WINDOW_SCALE_FACTOR_CHANGED,e)}async onThemeChanged(e){return this.listen(Tr.WINDOW_THEME_CHANGED,e)}};(function(t){t.Disabled="disabled",t.Throttle="throttle",t.Suspend="suspend"})(vy||(vy={}));(function(t){t.Default="default",t.FluentOverlay="fluentOverlay"})(my||(my={}));(function(t){t.AppearanceBased="appearanceBased",t.Light="light",t.Dark="dark",t.MediumLight="mediumLight",t.UltraDark="ultraDark",t.Titlebar="titlebar",t.Selection="selection",t.Menu="menu",t.Popover="popover",t.Sidebar="sidebar",t.HeaderView="headerView",t.Sheet="sheet",t.WindowBackground="windowBackground",t.HudWindow="hudWindow",t.FullScreenUI="fullScreenUI",t.Tooltip="tooltip",t.ContentBackground="contentBackground",t.UnderWindowBackground="underWindowBackground",t.UnderPageBackground="underPageBackground",t.Mica="mica",t.Blur="blur",t.Acrylic="acrylic",t.Tabbed="tabbed",t.TabbedDark="tabbedDark",t.TabbedLight="tabbedLight"})(yy||(yy={}));(function(t){t.FollowsWindowActiveState="followsWindowActiveState",t.Active="active",t.Inactive="inactive"})(By||(By={}))});function X0(){return new Ac(z0(),window.__TAURI_INTERNALS__.metadata.currentWebview.label,{skip:!0})}async function by(){return ge("plugin:webview|get_all_webviews").then(t=>t.map(e=>new Ac(new ao(e.windowLabel,{skip:!0}),e.label,{skip:!0})))}var $0,Ac,Cy=zt(()=>{Zh();tc();pa();W0();$0=["tauri://created","tauri://error"],Ac=class{constructor(e,A,r){this.window=e,this.label=A,this.listeners=Object.create(null),r?.skip||ge("plugin:webview|create_webview",{windowLabel:e.label,options:{...r,label:A}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static async getByLabel(e){var A;return(A=(await by()).find(r=>r.label===e))!==null&&A!==void 0?A:null}static getCurrent(){return X0()}static async getAll(){return by()}async listen(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:io(e,A,{target:{kind:"Webview",label:this.label}})}async once(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:Wo(e,A,{target:{kind:"Webview",label:this.label}})}async emit(e,A){if($0.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,payload:A});return}return Lu(e,A)}async emitTo(e,A,r){if($0.includes(A)){for(let n of this.listeners[A]||[])n({event:A,id:-1,payload:r});return}return Tu(e,A,r)}_handleTauriEvent(e,A){return $0.includes(e)?(e in this.listeners?this.listeners[e].push(A):this.listeners[e]=[A],!0):!1}async position(){return ge("plugin:webview|webview_position",{label:this.label}).then(e=>new _n(e))}async size(){return ge("plugin:webview|webview_size",{label:this.label}).then(e=>new ja(e))}async close(){return ge("plugin:webview|webview_close",{label:this.label})}async setSize(e){return ge("plugin:webview|set_webview_size",{label:this.label,value:e instanceof Xi?e:new Xi(e)})}async setPosition(e){return ge("plugin:webview|set_webview_position",{label:this.label,value:e instanceof Va?e:new Va(e)})}async setFocus(){return ge("plugin:webview|set_webview_focus",{label:this.label})}async setAutoResize(e){return ge("plugin:webview|set_webview_auto_resize",{label:this.label,value:e})}async hide(){return ge("plugin:webview|webview_hide",{label:this.label})}async show(){return ge("plugin:webview|webview_show",{label:this.label})}async setZoom(e){return ge("plugin:webview|set_webview_zoom",{label:this.label,value:e})}async reparent(e){return ge("plugin:webview|reparent",{label:this.label,window:typeof e=="string"?e:e.label})}async clearAllBrowsingData(){return ge("plugin:webview|clear_all_browsing_data")}async setBackgroundColor(e){return ge("plugin:webview|set_webview_background_color",{color:e})}async onDragDropEvent(e){let A=await this.listen(Tr.DRAG_ENTER,s=>{e({...s,payload:{type:"enter",paths:s.payload.paths,position:new _n(s.payload.position)}})}),r=await this.listen(Tr.DRAG_OVER,s=>{e({...s,payload:{type:"over",position:new _n(s.payload.position)}})}),n=await this.listen(Tr.DRAG_DROP,s=>{e({...s,payload:{type:"drop",paths:s.payload.paths,position:new _n(s.payload.position)}})}),i=await this.listen(Tr.DRAG_LEAVE,s=>{e({...s,payload:{type:"leave"}})});return()=>{A(),n(),r(),i()}}}});var ed={};or(ed,{WebviewWindow:()=>rc,getAllWebviewWindows:()=>Y0,getCurrentWebviewWindow:()=>Ey});function Ey(){let t=X0();return new rc(t.label,{skip:!0})}async function Y0(){return ge("plugin:window|get_all_windows").then(t=>t.map(e=>new rc(e,{skip:!0})))}function GQ(t,e){(Array.isArray(e)?e:[e]).forEach(A=>{Object.getOwnPropertyNames(A.prototype).forEach(r=>{var n;typeof t.prototype=="object"&&t.prototype&&r in t.prototype||Object.defineProperty(t.prototype,r,(n=Object.getOwnPropertyDescriptor(A.prototype,r))!==null&&n!==void 0?n:Object.create(null))})})}var rc,td=zt(()=>{Cy();W0();tc();pa();rc=class t{constructor(e,A={}){var r;this.label=e,this.listeners=Object.create(null),A?.skip||ge("plugin:webview|create_webview_window",{options:{...A,parent:typeof A.parent=="string"?A.parent:(r=A.parent)===null||r===void 0?void 0:r.label,label:e}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static async getByLabel(e){var A;let r=(A=(await Y0()).find(n=>n.label===e))!==null&&A!==void 0?A:null;return r?new t(r.label,{skip:!0}):null}static getCurrent(){return Ey()}static async getAll(){return Y0()}async listen(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:io(e,A,{target:{kind:"WebviewWindow",label:this.label}})}async once(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:Wo(e,A,{target:{kind:"WebviewWindow",label:this.label}})}async setBackgroundColor(e){return ge("plugin:window|set_background_color",{color:e}).then(()=>ge("plugin:webview|set_webview_background_color",{color:e}))}};GQ(rc,[ao,Ac])});var Ly={};or(Ly,{createGoogleLogin:()=>Aw,initializeGoogleLogin:()=>Iy,subscribeGoogleLogin:()=>tw});function _y(t,e=null){Ad.forEach(A=>{try{A(t,e)}catch(r){Ka("Google listener error:",r)}})}function tw(t){return Ad.push(t),()=>{let e=Ad.indexOf(t);e!==-1&&Ad.splice(e,1)}}var Fy,Uy,Z0,ew,xy,Ad,so,rd,Ou,Sy,Qy,J0,Iy,Aw,rw=zt(()=>{no();jo();Z0=()=>(Fy??=Promise.all([Promise.resolve().then(()=>(Wh(),zh)),Promise.resolve().then(()=>(D0(),k0))]).then(([t,e])=>({App:t.App,Browser:e.Browser})),Fy),ew=async()=>(Uy??=Promise.resolve().then(()=>(td(),ed)).then(t=>t.WebviewWindow),Uy),xy=!1,Ad=[];so=null,rd=null,Ou=null,Sy=async()=>{if(!Wn)return;let t=await ew();try{if(typeof t.getAll=="function"){let e=await t.getAll();for(let A of e||[])try{A?.label&&A.label!=="main"&&await A.close()}catch(r){zr("Error closing Tauri webview:",r)}}}catch(e){zr("Error listing Tauri webviews:",e)}try{let e=await t.getByLabel("auth");e&&await e.close()}catch(e){zr("Error closing Tauri auth window by label:",e)}},Qy=async()=>{if(rd&&(clearInterval(rd),rd=null),Ou&&typeof window<"u"&&(window.removeEventListener("message",Ou),Ou=null),so){let t=so;so=null;try{typeof t?.close=="function"&&await t.close()}catch(e){zr("Error closing auth window:",e)}}if(Wn){let t=await ew();await Sy()}if(Wi)try{let{Browser:t}=await Z0();await t.close()}catch(t){zr("Error closing Capacitor browser:",t)}if(typeof window<"u"&&window!==window.parent)try{so&&typeof so.close=="function"&&await so.close()}catch(t){zr("Error closing popup fallback:",t)}},J0=async t=>{try{if(await Qy(),!t?.includes("token="))return;let A=new URLSearchParams(t.split("?")[1]).get("token");iA("Google login token:",A);let n=await(await fetch("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:`Bearer ${A}`}})).json(),i={id:n.sub,firstName:n.given_name,lastName:n.family_name,email:n.email,photo:n.picture,accessToken:A};iA("Google user profile:",i),localStorage.setItem("user",JSON.stringify(i)),localStorage.setItem("idToken",A),_y(i,null)}catch(e){_y(null,e)}},Iy=async()=>{if(!xy){if(xy=!0,Wi){let{App:t}=await Z0();t.addListener("appUrlOpen",e=>{J0(e.url)})}if(Wn){let{listen:t}=await Promise.resolve().then(()=>(tc(),M0));await t("deep-link://open-url",async e=>{let A=e.payload;typeof A=="object"&&(A=A?.url||A?.payload||null),A&&await J0(A)})}}},Aw=async({appId:t="tevrocsoft",appName:e="Tevroc",serviceUrl:A="https://tevrocsoftapi.netlify.app"}={})=>{iA("appId:",t,"serviceUrl:",A),iA(Wi,Wn),await Iy();let r=`${A}/login?mode=mobile&app=${encodeURIComponent(t)}&name=${encodeURIComponent(e)}`;if(Wi){let{Browser:o}=await Z0();await o.open({url:r});return}if(Wn){let o=await ew();await Sy();let l=`${A}/login?mode=desktop&app=${encodeURIComponent(t)}&name=${encodeURIComponent(e)}`,h=new o("auth",{url:l,title:`${e} Login`,width:550,height:500,resizable:!0,center:!0});so=h,h.once("tauri://created",()=>{iA("Auth window opened")}),h.once("tauri://error",v=>{Ka("Auth window error:",v)});return}let n=!0,i=typeof window<"u"?window.location.host:t,a=`${A}/login?mode=${n?"localhost":"netlify"}&app=${encodeURIComponent(i)}&name=${encodeURIComponent(e)}`;if(n){let o=window.open(a,"googleLogin","width=500,height=650");o||Ka("Popup blocked"),so=o,Ou=async l=>{let h=new URL(A).origin;if(l.origin===h&&l.data?.type==="google-auth"){let v=l.data?.token||null,m=v?`${window.location.href}${window.location.href.includes("?")?"&":"?"}token=${v}`:window.location.href;await J0(m)}},window.addEventListener("message",Ou),rd=setInterval(()=>{o.closed&&Qy().catch(()=>{})},500);return}}});function Py(t,e=null){nd.forEach(A=>{try{A(t,e)}catch(r){Ka("Payment listener error:",r)}})}function ky(t){return nd.push(t),()=>{let e=nd.indexOf(t);e!==-1&&nd.splice(e,1)}}var Ty,Ny,Ry,zQ,Oy,nd,id,WQ,Pu,nw,$Q,Dy,Hy=zt(()=>{no();jo();Ry=()=>(Ty??=Promise.all([Promise.resolve().then(()=>(Wh(),zh)),Promise.resolve().then(()=>(D0(),k0))]).then(([t,e])=>({App:t.App,Browser:e.Browser})),Ty),zQ=async()=>(Ny??=Promise.resolve().then(()=>(td(),ed)).then(t=>t.WebviewWindow),Ny),Oy=!1,nd=[];id=null,WQ=[],Pu=(...t)=>{t.forEach(e=>{let A={message:e,time:new Date().toISOString()};WQ.push(A),iA(A)})},nw=async(t,e=()=>{})=>{try{if(Pu("PAYMENT CALLBACK:",t),!t?.includes("status="))return;let r=new URLSearchParams(t.split("?")[1]).get("status");Pu("PAYMENT RESULT:",r),r=="success"?Pu("PAYMENT SUCCESS"):Pu("PAYMENT FAILED"),e(r,null),Py(r,null)}catch(A){Pu("PAYMENT CALLBACK ERROR:",A.message),e(null,A),Py(null,A)}},$Q=async(t=()=>{})=>{if(!Oy){if(Oy=!0,Wi){let{App:e}=await Ry();e.addListener("appUrlOpen",A=>{nw(A.url,t)})}if(Wn){let{listen:e}=await Promise.resolve().then(()=>(tc(),M0));await e("deep-link://open-url",async A=>{let r=A.payload;if(typeof r=="object"&&(r=r?.url||r?.payload||null),!!r){if(id)try{await id.close(),id=null}catch{}nw(r,t)}})}}},Dy=async(t,{appId:e="tevrocsoft",serviceUrl:A="https://tevrocsoftapi.netlify.app",payAccount:r="default",externalCallback:n=()=>{}}={})=>{await $Q(n);let i=Math.round(Number(t)*100),s=`${A.replace(/\/$/,"")}/yoco-pay`,a=`${s}?mode=mobile&amount=${i}&app=${e}&account=${r}`;if(iA(s,a),Wi){let{Browser:v}=await Ry();await v.open({url:a});return}if(Wn){let v=await zQ(),m=`${s}?mode=desktop&amount=${i}&app=${e}&account=${r}`,g=new v("payment",{url:m,title:"Complete Payment",width:550,height:600,resizable:!0,center:!0});id=g,g.once("tauri://created",()=>{iA("Payment window opened")}),g.once("tauri://error",C=>{Ka("Payment window error:",C)});return}let l=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"?"localhost":"netlify",h=`${s}?mode=${l}&amount=${i}&app=${e}`;try{let v=window.open(h,"yocoPayment","width=500,height=650");if(!v){window.location.href=h;return}let m=!0,g=!0,C=_=>{try{let x=new URL(A).origin;if(_.origin!==x)return;if(_.data?.type==="payment-result"){let H=_.data?.status||null;m=!1,g=!1,window.removeEventListener("message",C);try{v.close()}catch{}let D=H?`${window.location.href}${window.location.href.includes("?")?"&":"?"}status=${H}`:window.location.href;nw(D,n)}}catch(x){Ka("Payment listener error",x)}};window.addEventListener("message",C);let F=setInterval(()=>{if(!g){clearInterval(F);return}v.closed&&(clearInterval(F),g=!1,m&&(m=!1,window.removeEventListener("message",C)))},500);return}catch{window.location.href=h;return}}});var sw=me((iw,aw)=>{(function(t,e){typeof iw=="object"&&typeof aw<"u"?aw.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.html2canvas=e())})(iw,(function(){"use strict";var t=function(f,c){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var b in d)Object.prototype.hasOwnProperty.call(d,b)&&(p[b]=d[b])},t(f,c)};function e(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");t(f,c);function p(){this.constructor=f}f.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}var A=function(){return A=Object.assign||function(c){for(var p,d=1,b=arguments.length;d<b;d++){p=arguments[d];for(var U in p)Object.prototype.hasOwnProperty.call(p,U)&&(c[U]=p[U])}return c},A.apply(this,arguments)};function r(f,c,p,d){function b(U){return U instanceof p?U:new p(function(L){L(U)})}return new(p||(p=Promise))(function(U,L){function G(ue){try{se(d.next(ue))}catch(Be){L(Be)}}function V(ue){try{se(d.throw(ue))}catch(Be){L(Be)}}function se(ue){ue.done?U(ue.value):b(ue.value).then(G,V)}se((d=d.apply(f,c||[])).next())})}function n(f,c){var p={label:0,sent:function(){if(U[0]&1)throw U[1];return U[1]},trys:[],ops:[]},d,b,U,L;return L={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(L[Symbol.iterator]=function(){return this}),L;function G(se){return function(ue){return V([se,ue])}}function V(se){if(d)throw new TypeError("Generator is already executing.");for(;p;)try{if(d=1,b&&(U=se[0]&2?b.return:se[0]?b.throw||((U=b.return)&&U.call(b),0):b.next)&&!(U=U.call(b,se[1])).done)return U;switch(b=0,U&&(se=[se[0]&2,U.value]),se[0]){case 0:case 1:U=se;break;case 4:return p.label++,{value:se[1],done:!1};case 5:p.label++,b=se[1],se=[0];continue;case 7:se=p.ops.pop(),p.trys.pop();continue;default:if(U=p.trys,!(U=U.length>0&&U[U.length-1])&&(se[0]===6||se[0]===2)){p=0;continue}if(se[0]===3&&(!U||se[1]>U[0]&&se[1]<U[3])){p.label=se[1];break}if(se[0]===6&&p.label<U[1]){p.label=U[1],U=se;break}if(U&&p.label<U[2]){p.label=U[2],p.ops.push(se);break}U[2]&&p.ops.pop(),p.trys.pop();continue}se=c.call(f,p)}catch(ue){se=[6,ue],b=0}finally{d=U=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}}function i(f,c,p){if(p||arguments.length===2)for(var d=0,b=c.length,U;d<b;d++)(U||!(d in c))&&(U||(U=Array.prototype.slice.call(c,0,d)),U[d]=c[d]);return f.concat(U||c)}for(var s=(function(){function f(c,p,d,b){this.left=c,this.top=p,this.width=d,this.height=b}return f.prototype.add=function(c,p,d,b){return new f(this.left+c,this.top+p,this.width+d,this.height+b)},f.fromClientRect=function(c,p){return new f(p.left+c.windowBounds.left,p.top+c.windowBounds.top,p.width,p.height)},f.fromDOMRectList=function(c,p){var d=Array.from(p).find(function(b){return b.width!==0});return d?new f(d.left+c.windowBounds.left,d.top+c.windowBounds.top,d.width,d.height):f.EMPTY},f.EMPTY=new f(0,0,0,0),f})(),a=function(f,c){return s.fromClientRect(f,c.getBoundingClientRect())},o=function(f){var c=f.body,p=f.documentElement;if(!c||!p)throw new Error("Unable to get document size");var d=Math.max(Math.max(c.scrollWidth,p.scrollWidth),Math.max(c.offsetWidth,p.offsetWidth),Math.max(c.clientWidth,p.clientWidth)),b=Math.max(Math.max(c.scrollHeight,p.scrollHeight),Math.max(c.offsetHeight,p.offsetHeight),Math.max(c.clientHeight,p.clientHeight));return new s(0,0,d,b)},l=function(f){for(var c=[],p=0,d=f.length;p<d;){var b=f.charCodeAt(p++);if(b>=55296&&b<=56319&&p<d){var U=f.charCodeAt(p++);(U&64512)===56320?c.push(((b&1023)<<10)+(U&1023)+65536):(c.push(b),p--)}else c.push(b)}return c},h=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];if(String.fromCodePoint)return String.fromCodePoint.apply(String,f);var p=f.length;if(!p)return"";for(var d=[],b=-1,U="";++b<p;){var L=f[b];L<=65535?d.push(L):(L-=65536,d.push((L>>10)+55296,L%1024+56320)),(b+1===p||d.length>16384)&&(U+=String.fromCharCode.apply(String,d),d.length=0)}return U},v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=typeof Uint8Array>"u"?[]:new Uint8Array(256),g=0;g<v.length;g++)m[v.charCodeAt(g)]=g;for(var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F=typeof Uint8Array>"u"?[]:new Uint8Array(256),_=0;_<C.length;_++)F[C.charCodeAt(_)]=_;for(var x=function(f){var c=f.length*.75,p=f.length,d,b=0,U,L,G,V;f[f.length-1]==="="&&(c--,f[f.length-2]==="="&&c--);var se=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(c):new Array(c),ue=Array.isArray(se)?se:new Uint8Array(se);for(d=0;d<p;d+=4)U=F[f.charCodeAt(d)],L=F[f.charCodeAt(d+1)],G=F[f.charCodeAt(d+2)],V=F[f.charCodeAt(d+3)],ue[b++]=U<<2|L>>4,ue[b++]=(L&15)<<4|G>>2,ue[b++]=(G&3)<<6|V&63;return se},H=function(f){for(var c=f.length,p=[],d=0;d<c;d+=2)p.push(f[d+1]<<8|f[d]);return p},D=function(f){for(var c=f.length,p=[],d=0;d<c;d+=4)p.push(f[d+3]<<24|f[d+2]<<16|f[d+1]<<8|f[d]);return p},k=5,re=11,fe=2,Ae=re-k,j=65536>>k,N=1<<k,Z=N-1,I=1024>>k,O=j+I,Y=O,ee=32,ce=Y+ee,be=65536>>re,Fe=1<<Ae,de=Fe-1,Ee=function(f,c,p){return f.slice?f.slice(c,p):new Uint16Array(Array.prototype.slice.call(f,c,p))},Pe=function(f,c,p){return f.slice?f.slice(c,p):new Uint32Array(Array.prototype.slice.call(f,c,p))},Ue=function(f,c){var p=x(f),d=Array.isArray(p)?D(p):new Uint32Array(p),b=Array.isArray(p)?H(p):new Uint16Array(p),U=24,L=Ee(b,U/2,d[4]/2),G=d[5]===2?Ee(b,(U+d[4])/2):Pe(d,Math.ceil((U+d[4])/4));return new P(d[0],d[1],d[2],d[3],L,G)},P=(function(){function f(c,p,d,b,U,L){this.initialValue=c,this.errorValue=p,this.highStart=d,this.highValueIndex=b,this.index=U,this.data=L}return f.prototype.get=function(c){var p;if(c>=0){if(c<55296||c>56319&&c<=65535)return p=this.index[c>>k],p=(p<<fe)+(c&Z),this.data[p];if(c<=65535)return p=this.index[j+(c-55296>>k)],p=(p<<fe)+(c&Z),this.data[p];if(c<this.highStart)return p=ce-be+(c>>re),p=this.index[p],p+=c>>k&de,p=this.index[p],p=(p<<fe)+(c&Z),this.data[p];if(c<=1114111)return this.data[this.highValueIndex]}return this.errorValue},f})(),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=typeof Uint8Array>"u"?[]:new Uint8Array(256),ie=0;ie<J.length;ie++)te[J.charCodeAt(ie)]=ie;var oe="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",ve=50,xe=1,_e=2,Le=3,Oe=4,Je=5,qe=7,at=8,q=9,je=10,Tt=11,ut=12,Re=13,dt=14,$e=15,lt=16,Ze=17,Ut=18,Nt=19,St=20,Ht=21,Ot=22,tt=23,yt=24,Xe=25,aA=26,Gt=27,It=28,Rt=29,tA=30,mt=31,Jt=32,nt=33,xt=34,fA=35,bt=36,Ct=37,sA=38,ln=39,qA=40,WA=41,Sr=42,_t=43,On=[9001,65288],ti="!",Lt="\xD7",vr="\xF7",IA=Ue(oe),mA=[tA,bt],rr=[xe,_e,Le,Je],Bn=[je,at],mi=[Gt,aA],Pn=rr.concat(Bn),oA=[sA,ln,qA,xt,fA],Qr=[$e,Re],Rn=function(f,c){c===void 0&&(c="strict");var p=[],d=[],b=[];return f.forEach(function(U,L){var G=IA.get(U);if(G>ve?(b.push(!0),G-=ve):b.push(!1),["normal","auto","loose"].indexOf(c)!==-1&&[8208,8211,12316,12448].indexOf(U)!==-1)return d.push(L),p.push(lt);if(G===Oe||G===Tt){if(L===0)return d.push(L),p.push(tA);var V=p[L-1];return Pn.indexOf(V)===-1?(d.push(d[L-1]),p.push(V)):(d.push(L),p.push(tA))}if(d.push(L),G===mt)return p.push(c==="strict"?Ht:Ct);if(G===Sr||G===Rt)return p.push(tA);if(G===_t)return U>=131072&&U<=196605||U>=196608&&U<=262141?p.push(Ct):p.push(tA);p.push(G)}),[d,p,b]},kr=function(f,c,p,d){var b=d[p];if(Array.isArray(f)?f.indexOf(b)!==-1:f===b)for(var U=p;U<=d.length;){U++;var L=d[U];if(L===c)return!0;if(L!==je)break}if(b===je)for(var U=p;U>0;){U--;var G=d[U];if(Array.isArray(f)?f.indexOf(G)!==-1:f===G)for(var V=p;V<=d.length;){V++;var L=d[V];if(L===c)return!0;if(L!==je)break}if(G!==je)break}return!1},Ai=function(f,c){for(var p=f;p>=0;){var d=c[p];if(d===je)p--;else return d}return 0},kn=function(f,c,p,d,b){if(p[d]===0)return Lt;var U=d-1;if(Array.isArray(b)&&b[U]===!0)return Lt;var L=U-1,G=U+1,V=c[U],se=L>=0?c[L]:0,ue=c[G];if(V===_e&&ue===Le)return Lt;if(rr.indexOf(V)!==-1)return ti;if(rr.indexOf(ue)!==-1||Bn.indexOf(ue)!==-1)return Lt;if(Ai(U,c)===at)return vr;if(IA.get(f[U])===Tt||(V===Jt||V===nt)&&IA.get(f[G])===Tt||V===qe||ue===qe||V===q||[je,Re,$e].indexOf(V)===-1&&ue===q||[Ze,Ut,Nt,yt,It].indexOf(ue)!==-1||Ai(U,c)===Ot||kr(tt,Ot,U,c)||kr([Ze,Ut],Ht,U,c)||kr(ut,ut,U,c))return Lt;if(V===je)return vr;if(V===tt||ue===tt)return Lt;if(ue===lt||V===lt)return vr;if([Re,$e,Ht].indexOf(ue)!==-1||V===dt||se===bt&&Qr.indexOf(V)!==-1||V===It&&ue===bt||ue===St||mA.indexOf(ue)!==-1&&V===Xe||mA.indexOf(V)!==-1&&ue===Xe||V===Gt&&[Ct,Jt,nt].indexOf(ue)!==-1||[Ct,Jt,nt].indexOf(V)!==-1&&ue===aA||mA.indexOf(V)!==-1&&mi.indexOf(ue)!==-1||mi.indexOf(V)!==-1&&mA.indexOf(ue)!==-1||[Gt,aA].indexOf(V)!==-1&&(ue===Xe||[Ot,$e].indexOf(ue)!==-1&&c[G+1]===Xe)||[Ot,$e].indexOf(V)!==-1&&ue===Xe||V===Xe&&[Xe,It,yt].indexOf(ue)!==-1)return Lt;if([Xe,It,yt,Ze,Ut].indexOf(ue)!==-1)for(var Be=U;Be>=0;){var Ie=c[Be];if(Ie===Xe)return Lt;if([It,yt].indexOf(Ie)!==-1)Be--;else break}if([Gt,aA].indexOf(ue)!==-1)for(var Be=[Ze,Ut].indexOf(V)!==-1?L:U;Be>=0;){var Ie=c[Be];if(Ie===Xe)return Lt;if([It,yt].indexOf(Ie)!==-1)Be--;else break}if(sA===V&&[sA,ln,xt,fA].indexOf(ue)!==-1||[ln,xt].indexOf(V)!==-1&&[ln,qA].indexOf(ue)!==-1||[qA,fA].indexOf(V)!==-1&&ue===qA||oA.indexOf(V)!==-1&&[St,aA].indexOf(ue)!==-1||oA.indexOf(ue)!==-1&&V===Gt||mA.indexOf(V)!==-1&&mA.indexOf(ue)!==-1||V===yt&&mA.indexOf(ue)!==-1||mA.concat(Xe).indexOf(V)!==-1&&ue===Ot&&On.indexOf(f[G])===-1||mA.concat(Xe).indexOf(ue)!==-1&&V===Ut)return Lt;if(V===WA&&ue===WA){for(var it=p[U],ze=1;it>0&&(it--,c[it]===WA);)ze++;if(ze%2!==0)return Lt}return V===Jt&&ue===nt?Lt:vr},ki=function(f,c){c||(c={lineBreak:"normal",wordBreak:"normal"});var p=Rn(f,c.lineBreak),d=p[0],b=p[1],U=p[2];(c.wordBreak==="break-all"||c.wordBreak==="break-word")&&(b=b.map(function(G){return[Xe,tA,Sr].indexOf(G)!==-1?Ct:G}));var L=c.wordBreak==="keep-all"?U.map(function(G,V){return G&&f[V]>=19968&&f[V]<=40959}):void 0;return[d,b,L]},Ua=(function(){function f(c,p,d,b){this.codePoints=c,this.required=p===ti,this.start=d,this.end=b}return f.prototype.slice=function(){return h.apply(void 0,this.codePoints.slice(this.start,this.end))},f})(),xa=function(f,c){var p=l(f),d=ki(p,c),b=d[0],U=d[1],L=d[2],G=p.length,V=0,se=0;return{next:function(){if(se>=G)return{done:!0,value:null};for(var ue=Lt;se<G&&(ue=kn(p,U,b,++se,L))===Lt;);if(ue!==Lt||se===G){var Be=new Ua(p,ue,V,se);return V=se,{value:Be,done:!1}}return{done:!0,value:null}}}},_a=1,Uo=2,Ir=4,Sa=8,cn=10,un=47,yi=92,is=9,Qa=32,ri=34,ni=61,ra=35,Dr=36,ii=37,$r=39,DA=40,Di=41,Dn=95,$A=45,as=33,Xr=60,Ia=62,Bi=64,ur=91,na=93,ss=61,We=123,X=63,ye=125,Ve=124,st=126,kt=128,Zt=65533,KA=42,yA=43,Yr=44,fr=58,La=59,xA=46,Yc=0,os=8,Pt=11,Jc=14,Zc=31,eu=127,ai=-1,El=48,Hi=97,Mi=101,tu=102,Au=117,Ps=122,Rs=65,bi=69,Fl=70,ks=85,ru=90,hr=function(f){return f>=El&&f<=57},Ta=function(f){return f>=55296&&f<=57343},qi=function(f){return hr(f)||f>=Rs&&f<=Fl||f>=Hi&&f<=tu},ls=function(f){return f>=Hi&&f<=Ps},xo=function(f){return f>=Rs&&f<=ru},Ds=function(f){return ls(f)||xo(f)},_o=function(f){return f>=kt},ia=function(f){return f===cn||f===is||f===Qa},cs=function(f){return Ds(f)||_o(f)||f===Dn},Ki=function(f){return cs(f)||hr(f)||f===$A},aa=function(f){return f>=Yc&&f<=os||f===Pt||f>=Jc&&f<=Zc||f===eu},Ci=function(f,c){return f!==yi?!1:c!==cn},us=function(f,c,p){return f===$A?cs(c)||Ci(c,p):cs(f)?!0:!!(f===yi&&Ci(f,c))},Hs=function(f,c,p){return f===yA||f===$A?hr(c)?!0:c===xA&&hr(p):hr(f===xA?c:f)},fs=function(f){var c=0,p=1;(f[c]===yA||f[c]===$A)&&(f[c]===$A&&(p=-1),c++);for(var d=[];hr(f[c]);)d.push(f[c++]);var b=d.length?parseInt(h.apply(void 0,d),10):0;f[c]===xA&&c++;for(var U=[];hr(f[c]);)U.push(f[c++]);var L=U.length,G=L?parseInt(h.apply(void 0,U),10):0;(f[c]===bi||f[c]===Mi)&&c++;var V=1;(f[c]===yA||f[c]===$A)&&(f[c]===$A&&(V=-1),c++);for(var se=[];hr(f[c]);)se.push(f[c++]);var ue=se.length?parseInt(h.apply(void 0,se),10):0;return p*(b+G*Math.pow(10,-L))*Math.pow(10,V*ue)},Ul={type:2},y={type:3},S={type:4},z={type:13},ne={type:8},he={type:21},Se={type:9},ke={type:10},pt={type:11},ft={type:12},Mt={type:14},Dt={type:23},lA={type:1},dr={type:25},LA={type:24},_A={type:26},HA={type:27},jA={type:28},VA={type:29},Jr={type:31},Ei={type:32},Ms=(function(){function f(){this._value=[]}return f.prototype.write=function(c){this._value=this._value.concat(l(c))},f.prototype.read=function(){for(var c=[],p=this.consumeToken();p!==Ei;)c.push(p),p=this.consumeToken();return c},f.prototype.consumeToken=function(){var c=this.consumeCodePoint();switch(c){case ri:return this.consumeStringToken(ri);case ra:var p=this.peekCodePoint(0),d=this.peekCodePoint(1),b=this.peekCodePoint(2);if(Ki(p)||Ci(d,b)){var U=us(p,d,b)?Uo:_a,L=this.consumeName();return{type:5,value:L,flags:U}}break;case Dr:if(this.peekCodePoint(0)===ni)return this.consumeCodePoint(),z;break;case $r:return this.consumeStringToken($r);case DA:return Ul;case Di:return y;case KA:if(this.peekCodePoint(0)===ni)return this.consumeCodePoint(),Mt;break;case yA:if(Hs(c,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(c),this.consumeNumericToken();break;case Yr:return S;case $A:var G=c,V=this.peekCodePoint(0),se=this.peekCodePoint(1);if(Hs(G,V,se))return this.reconsumeCodePoint(c),this.consumeNumericToken();if(us(G,V,se))return this.reconsumeCodePoint(c),this.consumeIdentLikeToken();if(V===$A&&se===Ia)return this.consumeCodePoint(),this.consumeCodePoint(),LA;break;case xA:if(Hs(c,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(c),this.consumeNumericToken();break;case un:if(this.peekCodePoint(0)===KA)for(this.consumeCodePoint();;){var ue=this.consumeCodePoint();if(ue===KA&&(ue=this.consumeCodePoint(),ue===un))return this.consumeToken();if(ue===ai)return this.consumeToken()}break;case fr:return _A;case La:return HA;case Xr:if(this.peekCodePoint(0)===as&&this.peekCodePoint(1)===$A&&this.peekCodePoint(2)===$A)return this.consumeCodePoint(),this.consumeCodePoint(),dr;break;case Bi:var Be=this.peekCodePoint(0),Ie=this.peekCodePoint(1),it=this.peekCodePoint(2);if(us(Be,Ie,it)){var L=this.consumeName();return{type:7,value:L}}break;case ur:return jA;case yi:if(Ci(c,this.peekCodePoint(0)))return this.reconsumeCodePoint(c),this.consumeIdentLikeToken();break;case na:return VA;case ss:if(this.peekCodePoint(0)===ni)return this.consumeCodePoint(),ne;break;case We:return pt;case ye:return ft;case Au:case ks:var ze=this.peekCodePoint(0),et=this.peekCodePoint(1);return ze===yA&&(qi(et)||et===X)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(c),this.consumeIdentLikeToken();case Ve:if(this.peekCodePoint(0)===ni)return this.consumeCodePoint(),Se;if(this.peekCodePoint(0)===Ve)return this.consumeCodePoint(),he;break;case st:if(this.peekCodePoint(0)===ni)return this.consumeCodePoint(),ke;break;case ai:return Ei}return ia(c)?(this.consumeWhiteSpace(),Jr):hr(c)?(this.reconsumeCodePoint(c),this.consumeNumericToken()):cs(c)?(this.reconsumeCodePoint(c),this.consumeIdentLikeToken()):{type:6,value:h(c)}},f.prototype.consumeCodePoint=function(){var c=this._value.shift();return typeof c>"u"?-1:c},f.prototype.reconsumeCodePoint=function(c){this._value.unshift(c)},f.prototype.peekCodePoint=function(c){return c>=this._value.length?-1:this._value[c]},f.prototype.consumeUnicodeRangeToken=function(){for(var c=[],p=this.consumeCodePoint();qi(p)&&c.length<6;)c.push(p),p=this.consumeCodePoint();for(var d=!1;p===X&&c.length<6;)c.push(p),p=this.consumeCodePoint(),d=!0;if(d){var b=parseInt(h.apply(void 0,c.map(function(V){return V===X?El:V})),16),U=parseInt(h.apply(void 0,c.map(function(V){return V===X?Fl:V})),16);return{type:30,start:b,end:U}}var L=parseInt(h.apply(void 0,c),16);if(this.peekCodePoint(0)===$A&&qi(this.peekCodePoint(1))){this.consumeCodePoint(),p=this.consumeCodePoint();for(var G=[];qi(p)&&G.length<6;)G.push(p),p=this.consumeCodePoint();var U=parseInt(h.apply(void 0,G),16);return{type:30,start:L,end:U}}else return{type:30,start:L,end:L}},f.prototype.consumeIdentLikeToken=function(){var c=this.consumeName();return c.toLowerCase()==="url"&&this.peekCodePoint(0)===DA?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===DA?(this.consumeCodePoint(),{type:19,value:c}):{type:20,value:c}},f.prototype.consumeUrlToken=function(){var c=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ai)return{type:22,value:""};var p=this.peekCodePoint(0);if(p===$r||p===ri){var d=this.consumeStringToken(this.consumeCodePoint());return d.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ai||this.peekCodePoint(0)===Di)?(this.consumeCodePoint(),{type:22,value:d.value}):(this.consumeBadUrlRemnants(),Dt)}for(;;){var b=this.consumeCodePoint();if(b===ai||b===Di)return{type:22,value:h.apply(void 0,c)};if(ia(b))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ai||this.peekCodePoint(0)===Di?(this.consumeCodePoint(),{type:22,value:h.apply(void 0,c)}):(this.consumeBadUrlRemnants(),Dt);if(b===ri||b===$r||b===DA||aa(b))return this.consumeBadUrlRemnants(),Dt;if(b===yi)if(Ci(b,this.peekCodePoint(0)))c.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Dt;else c.push(b)}},f.prototype.consumeWhiteSpace=function(){for(;ia(this.peekCodePoint(0));)this.consumeCodePoint()},f.prototype.consumeBadUrlRemnants=function(){for(;;){var c=this.consumeCodePoint();if(c===Di||c===ai)return;Ci(c,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},f.prototype.consumeStringSlice=function(c){for(var p=5e4,d="";c>0;){var b=Math.min(p,c);d+=h.apply(void 0,this._value.splice(0,b)),c-=b}return this._value.shift(),d},f.prototype.consumeStringToken=function(c){var p="",d=0;do{var b=this._value[d];if(b===ai||b===void 0||b===c)return p+=this.consumeStringSlice(d),{type:0,value:p};if(b===cn)return this._value.splice(0,d),lA;if(b===yi){var U=this._value[d+1];U!==ai&&U!==void 0&&(U===cn?(p+=this.consumeStringSlice(d),d=-1,this._value.shift()):Ci(b,U)&&(p+=this.consumeStringSlice(d),p+=h(this.consumeEscapedCodePoint()),d=-1))}d++}while(!0)},f.prototype.consumeNumber=function(){var c=[],p=Ir,d=this.peekCodePoint(0);for((d===yA||d===$A)&&c.push(this.consumeCodePoint());hr(this.peekCodePoint(0));)c.push(this.consumeCodePoint());d=this.peekCodePoint(0);var b=this.peekCodePoint(1);if(d===xA&&hr(b))for(c.push(this.consumeCodePoint(),this.consumeCodePoint()),p=Sa;hr(this.peekCodePoint(0));)c.push(this.consumeCodePoint());d=this.peekCodePoint(0),b=this.peekCodePoint(1);var U=this.peekCodePoint(2);if((d===bi||d===Mi)&&((b===yA||b===$A)&&hr(U)||hr(b)))for(c.push(this.consumeCodePoint(),this.consumeCodePoint()),p=Sa;hr(this.peekCodePoint(0));)c.push(this.consumeCodePoint());return[fs(c),p]},f.prototype.consumeNumericToken=function(){var c=this.consumeNumber(),p=c[0],d=c[1],b=this.peekCodePoint(0),U=this.peekCodePoint(1),L=this.peekCodePoint(2);if(us(b,U,L)){var G=this.consumeName();return{type:15,number:p,flags:d,unit:G}}return b===ii?(this.consumeCodePoint(),{type:16,number:p,flags:d}):{type:17,number:p,flags:d}},f.prototype.consumeEscapedCodePoint=function(){var c=this.consumeCodePoint();if(qi(c)){for(var p=h(c);qi(this.peekCodePoint(0))&&p.length<6;)p+=h(this.consumeCodePoint());ia(this.peekCodePoint(0))&&this.consumeCodePoint();var d=parseInt(p,16);return d===0||Ta(d)||d>1114111?Zt:d}return c===ai?Zt:c},f.prototype.consumeName=function(){for(var c="";;){var p=this.consumeCodePoint();if(Ki(p))c+=h(p);else if(Ci(p,this.peekCodePoint(0)))c+=h(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(p),c}},f})(),Na=(function(){function f(c){this._tokens=c}return f.create=function(c){var p=new Ms;return p.write(c),new f(p.read())},f.parseValue=function(c){return f.create(c).parseComponentValue()},f.parseValues=function(c){return f.create(c).parseComponentValues()},f.prototype.parseComponentValue=function(){for(var c=this.consumeToken();c.type===31;)c=this.consumeToken();if(c.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(c);var p=this.consumeComponentValue();do c=this.consumeToken();while(c.type===31);if(c.type===32)return p;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},f.prototype.parseComponentValues=function(){for(var c=[];;){var p=this.consumeComponentValue();if(p.type===32)return c;c.push(p),c.push()}},f.prototype.consumeComponentValue=function(){var c=this.consumeToken();switch(c.type){case 11:case 28:case 2:return this.consumeSimpleBlock(c.type);case 19:return this.consumeFunction(c)}return c},f.prototype.consumeSimpleBlock=function(c){for(var p={type:c,values:[]},d=this.consumeToken();;){if(d.type===32||So(d,c))return p;this.reconsumeToken(d),p.values.push(this.consumeComponentValue()),d=this.consumeToken()}},f.prototype.consumeFunction=function(c){for(var p={name:c.value,values:[],type:18};;){var d=this.consumeToken();if(d.type===32||d.type===3)return p;this.reconsumeToken(d),p.values.push(this.consumeComponentValue())}},f.prototype.consumeToken=function(){var c=this._tokens.shift();return typeof c>"u"?Ei:c},f.prototype.reconsumeToken=function(c){this._tokens.unshift(c)},f})(),Fi=function(f){return f.type===15},Hn=function(f){return f.type===17},cA=function(f){return f.type===20},qs=function(f){return f.type===0},Oa=function(f,c){return cA(f)&&f.value===c},Hr=function(f){return f.type!==31},si=function(f){return f.type!==31&&f.type!==4},Zr=function(f){var c=[],p=[];return f.forEach(function(d){if(d.type===4){if(p.length===0)throw new Error("Error parsing function args, zero tokens for arg");c.push(p),p=[];return}d.type!==31&&p.push(d)}),p.length&&c.push(p),c},So=function(f,c){return c===11&&f.type===12||c===28&&f.type===29?!0:c===2&&f.type===3},Mr=function(f){return f.type===17||f.type===15},uA=function(f){return f.type===16||Mr(f)},Qo=function(f){return f.length>1?[f[0],f[1]]:[f[0]]},XA={type:17,number:0,flags:Ir},Ks={type:16,number:50,flags:Ir},mr={type:16,number:100,flags:Ir},Ui=function(f,c,p){var d=f[0],b=f[1];return[BA(d,c),BA(typeof b<"u"?b:d,p)]},BA=function(f,c){if(f.type===16)return f.number/100*c;if(Fi(f))switch(f.unit){case"rem":case"em":return 16*f.number;default:return f.number}return f.number},hs="deg",Pa="grad",js="rad",en="turn",qr={name:"angle",parse:function(f,c){if(c.type===15)switch(c.unit){case hs:return Math.PI*c.number/180;case Pa:return Math.PI/200*c.number;case js:return c.number;case en:return Math.PI*2*c.number}throw new Error("Unsupported angle type")}},ds=function(f){return f.type===15&&(f.unit===hs||f.unit===Pa||f.unit===js||f.unit===en)},sa=function(f){var c=f.filter(cA).map(function(p){return p.value}).join(" ");switch(c){case"to bottom right":case"to right bottom":case"left top":case"top left":return[XA,XA];case"to top":case"bottom":return yr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[XA,mr];case"to right":case"left":return yr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[mr,mr];case"to bottom":case"top":return yr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[mr,XA];case"to left":case"right":return yr(270)}return 0},yr=function(f){return Math.PI*f/180},Mn={name:"color",parse:function(f,c){if(c.type===18){var p=Io[c.name];if(typeof p>"u")throw new Error('Attempting to parse an unsupported color function "'+c.name+'"');return p(f,c.values)}if(c.type===5){if(c.value.length===3){var d=c.value.substring(0,1),b=c.value.substring(1,2),U=c.value.substring(2,3);return ji(parseInt(d+d,16),parseInt(b+b,16),parseInt(U+U,16),1)}if(c.value.length===4){var d=c.value.substring(0,1),b=c.value.substring(1,2),U=c.value.substring(2,3),L=c.value.substring(3,4);return ji(parseInt(d+d,16),parseInt(b+b,16),parseInt(U+U,16),parseInt(L+L,16)/255)}if(c.value.length===6){var d=c.value.substring(0,2),b=c.value.substring(2,4),U=c.value.substring(4,6);return ji(parseInt(d,16),parseInt(b,16),parseInt(U,16),1)}if(c.value.length===8){var d=c.value.substring(0,2),b=c.value.substring(2,4),U=c.value.substring(4,6),L=c.value.substring(6,8);return ji(parseInt(d,16),parseInt(b,16),parseInt(U,16),parseInt(L,16)/255)}}if(c.type===20){var G=fn[c.value.toUpperCase()];if(typeof G<"u")return G}return fn.TRANSPARENT}},bn=function(f){return(255&f)===0},nA=function(f){var c=255&f,p=255&f>>8,d=255&f>>16,b=255&f>>24;return c<255?"rgba("+b+","+d+","+p+","+c/255+")":"rgb("+b+","+d+","+p+")"},ji=function(f,c,p,d){return(f<<24|c<<16|p<<8|Math.round(d*255)<<0)>>>0},xi=function(f,c){if(f.type===17)return f.number;if(f.type===16){var p=c===3?1:255;return c===3?f.number/100*p:Math.round(f.number/100*p)}return 0},oi=function(f,c){var p=c.filter(si);if(p.length===3){var d=p.map(xi),b=d[0],U=d[1],L=d[2];return ji(b,U,L,1)}if(p.length===4){var G=p.map(xi),b=G[0],U=G[1],L=G[2],V=G[3];return ji(b,U,L,V)}return 0};function oa(f,c,p){return p<0&&(p+=1),p>=1&&(p-=1),p<1/6?(c-f)*p*6+f:p<1/2?c:p<2/3?(c-f)*6*(2/3-p)+f:f}var Vs=function(f,c){var p=c.filter(si),d=p[0],b=p[1],U=p[2],L=p[3],G=(d.type===17?yr(d.number):qr.parse(f,d))/(Math.PI*2),V=uA(b)?b.number/100:0,se=uA(U)?U.number/100:0,ue=typeof L<"u"&&uA(L)?BA(L,1):1;if(V===0)return ji(se*255,se*255,se*255,1);var Be=se<=.5?se*(V+1):se+V-se*V,Ie=se*2-Be,it=oa(Ie,Be,G+1/3),ze=oa(Ie,Be,G),et=oa(Ie,Be,G-1/3);return ji(it*255,ze*255,et*255,ue)},Io={hsl:Vs,hsla:Vs,rgb:oi,rgba:oi},Vi=function(f,c){return Mn.parse(f,Na.create(c).parseComponentValue())},fn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},ps={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(f,c){return c.map(function(p){if(cA(p))switch(p.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ra={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},li=function(f,c){var p=Mn.parse(f,c[0]),d=c[1];return d&&uA(d)?{color:p,stop:d}:{color:p,stop:null}},la=function(f,c){var p=f[0],d=f[f.length-1];p.stop===null&&(p.stop=XA),d.stop===null&&(d.stop=mr);for(var b=[],U=0,L=0;L<f.length;L++){var G=f[L].stop;if(G!==null){var V=BA(G,c);V>U?b.push(V):b.push(U),U=V}else b.push(null)}for(var se=null,L=0;L<b.length;L++){var ue=b[L];if(ue===null)se===null&&(se=L);else if(se!==null){for(var Be=L-se,Ie=b[se-1],it=(ue-Ie)/(Be+1),ze=1;ze<=Be;ze++)b[se+ze-1]=it*ze;se=null}}return f.map(function(et,eA){var Bt=et.color;return{color:Bt,stop:Math.max(Math.min(1,b[eA]/c),0)}})},Gs=function(f,c,p){var d=c/2,b=p/2,U=BA(f[0],c)-d,L=b-BA(f[1],p);return(Math.atan2(L,U)+Math.PI*2)%(Math.PI*2)},tn=function(f,c,p){var d=typeof f=="number"?f:Gs(f,c,p),b=Math.abs(c*Math.sin(d))+Math.abs(p*Math.cos(d)),U=c/2,L=p/2,G=b/2,V=Math.sin(d-Math.PI/2)*G,se=Math.cos(d-Math.PI/2)*G;return[b,U-se,U+se,L-V,L+V]},pr=function(f,c){return Math.sqrt(f*f+c*c)},TA=function(f,c,p,d,b){var U=[[0,0],[0,c],[f,0],[f,c]];return U.reduce(function(L,G){var V=G[0],se=G[1],ue=pr(p-V,d-se);return(b?ue<L.optimumDistance:ue>L.optimumDistance)?{optimumCorner:G,optimumDistance:ue}:L},{optimumDistance:b?1/0:-1/0,optimumCorner:null}).optimumCorner},RA=function(f,c,p,d,b){var U=0,L=0;switch(f.size){case 0:f.shape===0?U=L=Math.min(Math.abs(c),Math.abs(c-d),Math.abs(p),Math.abs(p-b)):f.shape===1&&(U=Math.min(Math.abs(c),Math.abs(c-d)),L=Math.min(Math.abs(p),Math.abs(p-b)));break;case 2:if(f.shape===0)U=L=Math.min(pr(c,p),pr(c,p-b),pr(c-d,p),pr(c-d,p-b));else if(f.shape===1){var G=Math.min(Math.abs(p),Math.abs(p-b))/Math.min(Math.abs(c),Math.abs(c-d)),V=TA(d,b,c,p,!0),se=V[0],ue=V[1];U=pr(se-c,(ue-p)/G),L=G*U}break;case 1:f.shape===0?U=L=Math.max(Math.abs(c),Math.abs(c-d),Math.abs(p),Math.abs(p-b)):f.shape===1&&(U=Math.max(Math.abs(c),Math.abs(c-d)),L=Math.max(Math.abs(p),Math.abs(p-b)));break;case 3:if(f.shape===0)U=L=Math.max(pr(c,p),pr(c,p-b),pr(c-d,p),pr(c-d,p-b));else if(f.shape===1){var G=Math.max(Math.abs(p),Math.abs(p-b))/Math.max(Math.abs(c),Math.abs(c-d)),Be=TA(d,b,c,p,!1),se=Be[0],ue=Be[1];U=pr(se-c,(ue-p)/G),L=G*U}break}return Array.isArray(f.size)&&(U=BA(f.size[0],d),L=f.size.length===2?BA(f.size[1],b):U),[U,L]},nr=function(f,c){var p=yr(180),d=[];return Zr(c).forEach(function(b,U){if(U===0){var L=b[0];if(L.type===20&&L.value==="to"){p=sa(b);return}else if(ds(L)){p=qr.parse(f,L);return}}var G=li(f,b);d.push(G)}),{angle:p,stops:d,type:1}},YA=function(f,c){var p=yr(180),d=[];return Zr(c).forEach(function(b,U){if(U===0){var L=b[0];if(L.type===20&&["top","left","right","bottom"].indexOf(L.value)!==-1){p=sa(b);return}else if(ds(L)){p=(qr.parse(f,L)+yr(270))%yr(360);return}}var G=li(f,b);d.push(G)}),{angle:p,stops:d,type:1}},ca=function(f,c){var p=yr(180),d=[],b=1,U=0,L=3,G=[];return Zr(c).forEach(function(V,se){var ue=V[0];if(se===0){if(cA(ue)&&ue.value==="linear"){b=1;return}else if(cA(ue)&&ue.value==="radial"){b=2;return}}if(ue.type===18){if(ue.name==="from"){var Be=Mn.parse(f,ue.values[0]);d.push({stop:XA,color:Be})}else if(ue.name==="to"){var Be=Mn.parse(f,ue.values[0]);d.push({stop:mr,color:Be})}else if(ue.name==="color-stop"){var Ie=ue.values.filter(si);if(Ie.length===2){var Be=Mn.parse(f,Ie[1]),it=Ie[0];Hn(it)&&d.push({stop:{type:16,number:it.number*100,flags:it.flags},color:Be})}}}}),b===1?{angle:(p+yr(180))%yr(360),stops:d,type:b}:{size:L,shape:U,stops:d,position:G,type:b}},zs="closest-side",gs="farthest-side",Lo="closest-corner",nu="farthest-corner",iu="circle",au="ellipse",su="cover",Ws="contain",ih=function(f,c){var p=0,d=3,b=[],U=[];return Zr(c).forEach(function(L,G){var V=!0;if(G===0){var se=!1;V=L.reduce(function(Be,Ie){if(se)if(cA(Ie))switch(Ie.value){case"center":return U.push(Ks),Be;case"top":case"left":return U.push(XA),Be;case"right":case"bottom":return U.push(mr),Be}else(uA(Ie)||Mr(Ie))&&U.push(Ie);else if(cA(Ie))switch(Ie.value){case iu:return p=0,!1;case au:return p=1,!1;case"at":return se=!0,!1;case zs:return d=0,!1;case su:case gs:return d=1,!1;case Ws:case Lo:return d=2,!1;case nu:return d=3,!1}else if(Mr(Ie)||uA(Ie))return Array.isArray(d)||(d=[]),d.push(Ie),!1;return Be},V)}if(V){var ue=li(f,L);b.push(ue)}}),{size:d,shape:p,stops:b,position:U,type:2}},To=function(f,c){var p=0,d=3,b=[],U=[];return Zr(c).forEach(function(L,G){var V=!0;if(G===0?V=L.reduce(function(ue,Be){if(cA(Be))switch(Be.value){case"center":return U.push(Ks),!1;case"top":case"left":return U.push(XA),!1;case"right":case"bottom":return U.push(mr),!1}else if(uA(Be)||Mr(Be))return U.push(Be),!1;return ue},V):G===1&&(V=L.reduce(function(ue,Be){if(cA(Be))switch(Be.value){case iu:return p=0,!1;case au:return p=1,!1;case Ws:case zs:return d=0,!1;case gs:return d=1,!1;case Lo:return d=2,!1;case su:case nu:return d=3,!1}else if(Mr(Be)||uA(Be))return Array.isArray(d)||(d=[]),d.push(Be),!1;return ue},V)),V){var se=li(f,L);b.push(se)}}),{size:d,shape:p,stops:b,position:U,type:2}},ah=function(f){return f.type===1},sh=function(f){return f.type===2},xl={name:"image",parse:function(f,c){if(c.type===22){var p={url:c.value,type:0};return f.cache.addImage(c.value),p}if(c.type===18){var d=ou[c.name];if(typeof d>"u")throw new Error('Attempting to parse an unsupported image function "'+c.name+'"');return d(f,c.values)}throw new Error("Unsupported image type "+c.type)}};function oh(f){return!(f.type===20&&f.value==="none")&&(f.type!==18||!!ou[f.name])}var ou={"linear-gradient":nr,"-moz-linear-gradient":YA,"-ms-linear-gradient":YA,"-o-linear-gradient":YA,"-webkit-linear-gradient":YA,"radial-gradient":ih,"-moz-radial-gradient":To,"-ms-radial-gradient":To,"-o-radial-gradient":To,"-webkit-radial-gradient":To,"-webkit-gradient":ca},lh={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(f,c){if(c.length===0)return[];var p=c[0];return p.type===20&&p.value==="none"?[]:c.filter(function(d){return si(d)&&oh(d)}).map(function(d){return xl.parse(f,d)})}},lu={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(f,c){return c.map(function(p){if(cA(p))switch(p.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},_l={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(f,c){return Zr(c).map(function(p){return p.filter(uA)}).map(Qo)}},qn={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(f,c){return Zr(c).map(function(p){return p.filter(cA).map(function(d){return d.value}).join(" ")}).map(ci)}},ci=function(f){switch(f){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},ua;(function(f){f.AUTO="auto",f.CONTAIN="contain",f.COVER="cover"})(ua||(ua={}));var Sl={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(f,c){return Zr(c).map(function(p){return p.filter(ch)})}},ch=function(f){return cA(f)||uA(f)},ws=function(f){return{name:"border-"+f+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ql=ws("top"),cu=ws("right"),uh=ws("bottom"),uu=ws("left"),$s=function(f){return{name:"border-radius-"+f,initialValue:"0 0",prefix:!1,type:1,parse:function(c,p){return Qo(p.filter(uA))}}},Il=$s("top-left"),fu=$s("top-right"),Kg=$s("bottom-right"),jg=$s("bottom-left"),No=function(f){return{name:"border-"+f+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(c,p){switch(p){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Vg=No("top"),Gg=No("right"),zg=No("bottom"),Wg=No("left"),Ll=function(f){return{name:"border-"+f+"-width",initialValue:"0",type:0,prefix:!1,parse:function(c,p){return Fi(p)?p.number:0}}},hu=Ll("top"),du=Ll("right"),Oo=Ll("bottom"),$g=Ll("left"),Xg={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fh={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(f,c){return c==="rtl"?1:0}},Yg={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(f,c){return c.filter(cA).reduce(function(p,d){return p|Jg(d.value)},0)}},Jg=function(f){switch(f){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Zg={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(f,c){switch(c){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},e0={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(f,c){return c.type===20&&c.value==="normal"?0:c.type===17||c.type===15?c.number:0}},_i;(function(f){f.NORMAL="normal",f.STRICT="strict"})(_i||(_i={}));var Si={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(f,c){return c==="strict"?_i.STRICT:_i.NORMAL}},fa={name:"line-height",initialValue:"normal",prefix:!1,type:4},hh=function(f,c){return cA(f)&&f.value==="normal"?1.2*c:f.type===17?c*f.number:uA(f)?BA(f,c):c},dh={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(f,c){return c.type===20&&c.value==="none"?null:xl.parse(f,c)}},ka={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(f,c){return c==="inside"?0:1}},Cn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(f,c){switch(c){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Tl=function(f){return{name:"margin-"+f,initialValue:"0",prefix:!1,type:4}},t0=Tl("top"),ph=Tl("right"),gh=Tl("bottom"),wh=Tl("left"),vh={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(f,c){return c.filter(cA).map(function(p){switch(p.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},A0={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(f,c){return c==="break-word"?"break-word":"normal"}},vs=function(f){return{name:"padding-"+f,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Nl=vs("top"),Po=vs("right"),pu=vs("bottom"),mh=vs("left"),r0={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(f,c){switch(c){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},yh={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(f,c){switch(c){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},n0={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(f,c){return c.length===1&&Oa(c[0],"none")?[]:Zr(c).map(function(p){for(var d={color:fn.TRANSPARENT,offsetX:XA,offsetY:XA,blur:XA},b=0,U=0;U<p.length;U++){var L=p[U];Mr(L)?(b===0?d.offsetX=L:b===1?d.offsetY=L:d.blur=L,b++):d.color=Mn.parse(f,L)}return d})}},i0={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(f,c){switch(c){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},a0={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(f,c){if(c.type===20&&c.value==="none")return null;if(c.type===18){var p=l0[c.name];if(typeof p>"u")throw new Error('Attempting to parse an unsupported transform function "'+c.name+'"');return p(c.values)}return null}},s0=function(f){var c=f.filter(function(p){return p.type===17}).map(function(p){return p.number});return c.length===6?c:null},o0=function(f){var c=f.filter(function(V){return V.type===17}).map(function(V){return V.number}),p=c[0],d=c[1];c[2],c[3];var b=c[4],U=c[5];c[6],c[7],c[8],c[9],c[10],c[11];var L=c[12],G=c[13];return c[14],c[15],c.length===16?[p,d,b,U,L,G]:null},l0={matrix:s0,matrix3d:o0},gu={type:16,number:50,flags:Ir},Ol=[gu,gu],c0={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(f,c){var p=c.filter(uA);return p.length!==2?Ol:[p[0],p[1]]}},u0={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(f,c){switch(c){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Xs;(function(f){f.NORMAL="normal",f.BREAK_ALL="break-all",f.KEEP_ALL="keep-all"})(Xs||(Xs={}));for(var u={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(f,c){switch(c){case"break-all":return Xs.BREAK_ALL;case"keep-all":return Xs.KEEP_ALL;default:return Xs.NORMAL}}},w={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(f,c){if(c.type===20)return{auto:!0,order:0};if(Hn(c))return{auto:!1,order:c.number};throw new Error("Invalid z-index number parsed")}},B={name:"time",parse:function(f,c){if(c.type===15)switch(c.unit.toLowerCase()){case"s":return 1e3*c.number;case"ms":return c.number}throw new Error("Unsupported time type")}},E={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(f,c){return Hn(c)?c.number:1}},Q={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},T={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(f,c){return c.filter(cA).map(function(p){switch(p.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(p){return p!==0})}},R={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(f,c){var p=[],d=[];return c.forEach(function(b){switch(b.type){case 20:case 0:p.push(b.value);break;case 17:p.push(b.number.toString());break;case 4:d.push(p.join(" ")),p.length=0;break}}),p.length&&d.push(p.join(" ")),d.map(function(b){return b.indexOf(" ")===-1?b:"'"+b+"'"})}},M={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},K={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(f,c){return Hn(c)?c.number:cA(c)&&c.value==="bold"?700:400}},W={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(f,c){return c.filter(cA).map(function(p){return p.value})}},ae={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(f,c){switch(c){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},pe=function(f,c){return(f&c)!==0},$={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(f,c){if(c.length===0)return[];var p=c[0];return p.type===20&&p.value==="none"?[]:c}},le={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(f,c){if(c.length===0)return null;var p=c[0];if(p.type===20&&p.value==="none")return null;for(var d=[],b=c.filter(Hr),U=0;U<b.length;U++){var L=b[U],G=b[U+1];if(L.type===20){var V=G&&Hn(G)?G.number:1;d.push({counter:L.value,increment:V})}}return d}},we={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(f,c){if(c.length===0)return[];for(var p=[],d=c.filter(Hr),b=0;b<d.length;b++){var U=d[b],L=d[b+1];if(cA(U)&&U.value!=="none"){var G=L&&Hn(L)?L.number:0;p.push({counter:U.value,reset:G})}}return p}},Qe={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(f,c){return c.filter(Fi).map(function(p){return B.parse(f,p)})}},Ce={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(f,c){if(c.length===0)return null;var p=c[0];if(p.type===20&&p.value==="none")return null;var d=[],b=c.filter(qs);if(b.length%2!==0)return null;for(var U=0;U<b.length;U+=2){var L=b[U].value,G=b[U+1].value;d.push({open:L,close:G})}return d}},Te=function(f,c,p){if(!f)return"";var d=f[Math.min(c,f.length-1)];return d?p?d.open:d.close:""},Ne={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(f,c){return c.length===1&&Oa(c[0],"none")?[]:Zr(c).map(function(p){for(var d={color:255,offsetX:XA,offsetY:XA,blur:XA,spread:XA,inset:!1},b=0,U=0;U<p.length;U++){var L=p[U];Oa(L,"inset")?d.inset=!0:Mr(L)?(b===0?d.offsetX=L:b===1?d.offsetY=L:b===2?d.blur=L:d.spread=L,b++):d.color=Mn.parse(f,L)}return d})}},Ke={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(f,c){var p=[0,1,2],d=[];return c.filter(cA).forEach(function(b){switch(b.value){case"stroke":d.push(1);break;case"fill":d.push(0);break;case"markers":d.push(2);break}}),p.forEach(function(b){d.indexOf(b)===-1&&d.push(b)}),d}},De={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Et={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(f,c){return Fi(c)?c.number:0}},ct=(function(){function f(c,p){var d,b;this.animationDuration=He(c,Qe,p.animationDuration),this.backgroundClip=He(c,ps,p.backgroundClip),this.backgroundColor=He(c,Ra,p.backgroundColor),this.backgroundImage=He(c,lh,p.backgroundImage),this.backgroundOrigin=He(c,lu,p.backgroundOrigin),this.backgroundPosition=He(c,_l,p.backgroundPosition),this.backgroundRepeat=He(c,qn,p.backgroundRepeat),this.backgroundSize=He(c,Sl,p.backgroundSize),this.borderTopColor=He(c,Ql,p.borderTopColor),this.borderRightColor=He(c,cu,p.borderRightColor),this.borderBottomColor=He(c,uh,p.borderBottomColor),this.borderLeftColor=He(c,uu,p.borderLeftColor),this.borderTopLeftRadius=He(c,Il,p.borderTopLeftRadius),this.borderTopRightRadius=He(c,fu,p.borderTopRightRadius),this.borderBottomRightRadius=He(c,Kg,p.borderBottomRightRadius),this.borderBottomLeftRadius=He(c,jg,p.borderBottomLeftRadius),this.borderTopStyle=He(c,Vg,p.borderTopStyle),this.borderRightStyle=He(c,Gg,p.borderRightStyle),this.borderBottomStyle=He(c,zg,p.borderBottomStyle),this.borderLeftStyle=He(c,Wg,p.borderLeftStyle),this.borderTopWidth=He(c,hu,p.borderTopWidth),this.borderRightWidth=He(c,du,p.borderRightWidth),this.borderBottomWidth=He(c,Oo,p.borderBottomWidth),this.borderLeftWidth=He(c,$g,p.borderLeftWidth),this.boxShadow=He(c,Ne,p.boxShadow),this.color=He(c,Xg,p.color),this.direction=He(c,fh,p.direction),this.display=He(c,Yg,p.display),this.float=He(c,Zg,p.cssFloat),this.fontFamily=He(c,R,p.fontFamily),this.fontSize=He(c,M,p.fontSize),this.fontStyle=He(c,ae,p.fontStyle),this.fontVariant=He(c,W,p.fontVariant),this.fontWeight=He(c,K,p.fontWeight),this.letterSpacing=He(c,e0,p.letterSpacing),this.lineBreak=He(c,Si,p.lineBreak),this.lineHeight=He(c,fa,p.lineHeight),this.listStyleImage=He(c,dh,p.listStyleImage),this.listStylePosition=He(c,ka,p.listStylePosition),this.listStyleType=He(c,Cn,p.listStyleType),this.marginTop=He(c,t0,p.marginTop),this.marginRight=He(c,ph,p.marginRight),this.marginBottom=He(c,gh,p.marginBottom),this.marginLeft=He(c,wh,p.marginLeft),this.opacity=He(c,E,p.opacity);var U=He(c,vh,p.overflow);this.overflowX=U[0],this.overflowY=U[U.length>1?1:0],this.overflowWrap=He(c,A0,p.overflowWrap),this.paddingTop=He(c,Nl,p.paddingTop),this.paddingRight=He(c,Po,p.paddingRight),this.paddingBottom=He(c,pu,p.paddingBottom),this.paddingLeft=He(c,mh,p.paddingLeft),this.paintOrder=He(c,Ke,p.paintOrder),this.position=He(c,yh,p.position),this.textAlign=He(c,r0,p.textAlign),this.textDecorationColor=He(c,Q,(d=p.textDecorationColor)!==null&&d!==void 0?d:p.color),this.textDecorationLine=He(c,T,(b=p.textDecorationLine)!==null&&b!==void 0?b:p.textDecoration),this.textShadow=He(c,n0,p.textShadow),this.textTransform=He(c,i0,p.textTransform),this.transform=He(c,a0,p.transform),this.transformOrigin=He(c,c0,p.transformOrigin),this.visibility=He(c,u0,p.visibility),this.webkitTextStrokeColor=He(c,De,p.webkitTextStrokeColor),this.webkitTextStrokeWidth=He(c,Et,p.webkitTextStrokeWidth),this.wordBreak=He(c,u,p.wordBreak),this.zIndex=He(c,w,p.zIndex)}return f.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},f.prototype.isTransparent=function(){return bn(this.backgroundColor)},f.prototype.isTransformed=function(){return this.transform!==null},f.prototype.isPositioned=function(){return this.position!==0},f.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},f.prototype.isFloating=function(){return this.float!==0},f.prototype.isInlineLevel=function(){return pe(this.display,4)||pe(this.display,33554432)||pe(this.display,268435456)||pe(this.display,536870912)||pe(this.display,67108864)||pe(this.display,134217728)},f})(),Xt=(function(){function f(c,p){this.content=He(c,$,p.content),this.quotes=He(c,Ce,p.quotes)}return f})(),gt=(function(){function f(c,p){this.counterIncrement=He(c,le,p.counterIncrement),this.counterReset=He(c,we,p.counterReset)}return f})(),He=function(f,c,p){var d=new Ms,b=p!==null&&typeof p<"u"?p.toString():c.initialValue;d.write(b);var U=new Na(d.read());switch(c.type){case 2:var L=U.parseComponentValue();return c.parse(f,cA(L)?L.value:c.initialValue);case 0:return c.parse(f,U.parseComponentValue());case 1:return c.parse(f,U.parseComponentValues());case 4:return U.parseComponentValue();case 3:switch(c.format){case"angle":return qr.parse(f,U.parseComponentValue());case"color":return Mn.parse(f,U.parseComponentValue());case"image":return xl.parse(f,U.parseComponentValue());case"length":var G=U.parseComponentValue();return Mr(G)?G:XA;case"length-percentage":var V=U.parseComponentValue();return uA(V)?V:XA;case"time":return B.parse(f,U.parseComponentValue())}break}},Br="data-html2canvas-debug",Yt=function(f){var c=f.getAttribute(Br);switch(c){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ht=function(f,c){var p=Yt(f);return p===1||c===p},Ge=(function(){function f(c,p){if(this.context=c,this.textNodes=[],this.elements=[],this.flags=0,ht(p,3))debugger;this.styles=new ct(c,window.getComputedStyle(p,null)),w0(p)&&(this.styles.animationDuration.some(function(d){return d>0})&&(p.style.animationDuration="0s"),this.styles.transform!==null&&(p.style.transform="none")),this.bounds=a(this.context,p),ht(p,4)&&(this.flags|=16)}return f})(),ir="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",AA=typeof Uint8Array>"u"?[]:new Uint8Array(256),SA=0;SA<jt.length;SA++)AA[jt.charCodeAt(SA)]=SA;for(var Kr=function(f){var c=f.length*.75,p=f.length,d,b=0,U,L,G,V;f[f.length-1]==="="&&(c--,f[f.length-2]==="="&&c--);var se=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(c):new Array(c),ue=Array.isArray(se)?se:new Uint8Array(se);for(d=0;d<p;d+=4)U=AA[f.charCodeAt(d)],L=AA[f.charCodeAt(d+1)],G=AA[f.charCodeAt(d+2)],V=AA[f.charCodeAt(d+3)],ue[b++]=U<<2|L>>4,ue[b++]=(L&15)<<4|G>>2,ue[b++]=(G&3)<<6|V&63;return se},hn=function(f){for(var c=f.length,p=[],d=0;d<c;d+=2)p.push(f[d+1]<<8|f[d]);return p},JA=function(f){for(var c=f.length,p=[],d=0;d<c;d+=4)p.push(f[d+3]<<24|f[d+2]<<16|f[d+1]<<8|f[d]);return p},ZA=5,jr=11,ar=2,hA=jr-ZA,bA=65536>>ZA,er=1<<ZA,vA=er-1,Vr=1024>>ZA,Qi=bA+Vr,sr=Qi,En=32,NA=sr+En,br=65536>>jr,Kn=1<<hA,dn=Kn-1,Fn=function(f,c,p){return f.slice?f.slice(c,p):new Uint16Array(Array.prototype.slice.call(f,c,p))},jn=function(f,c,p){return f.slice?f.slice(c,p):new Uint32Array(Array.prototype.slice.call(f,c,p))},Un=function(f,c){var p=Kr(f),d=Array.isArray(p)?JA(p):new Uint32Array(p),b=Array.isArray(p)?hn(p):new Uint16Array(p),U=24,L=Fn(b,U/2,d[4]/2),G=d[5]===2?Fn(b,(U+d[4])/2):jn(d,Math.ceil((U+d[4])/4));return new Vn(d[0],d[1],d[2],d[3],L,G)},Vn=(function(){function f(c,p,d,b,U,L){this.initialValue=c,this.errorValue=p,this.highStart=d,this.highValueIndex=b,this.index=U,this.data=L}return f.prototype.get=function(c){var p;if(c>=0){if(c<55296||c>56319&&c<=65535)return p=this.index[c>>ZA],p=(p<<ar)+(c&vA),this.data[p];if(c<=65535)return p=this.index[bA+(c-55296>>ZA)],p=(p<<ar)+(c&vA),this.data[p];if(c<this.highStart)return p=NA-br+(c>>jr),p=this.index[p],p+=c>>ZA&dn,p=this.index[p],p=(p<<ar)+(c&vA),this.data[p];if(c<=1114111)return this.data[this.highValueIndex]}return this.errorValue},f})(),OA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gn=typeof Uint8Array>"u"?[]:new Uint8Array(256),xn=0;xn<OA.length;xn++)Gn[OA.charCodeAt(xn)]=xn;var ms=1,Ii=2,Cr=3,Ro=4,Pl=5,Rl=7,Ys=8,wu=9,vu=10,kl=11,ha=12,Bh=13,bh=14,mu=15,Ch=function(f){for(var c=[],p=0,d=f.length;p<d;){var b=f.charCodeAt(p++);if(b>=55296&&b<=56319&&p<d){var U=f.charCodeAt(p++);(U&64512)===56320?c.push(((b&1023)<<10)+(U&1023)+65536):(c.push(b),p--)}else c.push(b)}return c},Dl=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];if(String.fromCodePoint)return String.fromCodePoint.apply(String,f);var p=f.length;if(!p)return"";for(var d=[],b=-1,U="";++b<p;){var L=f[b];L<=65535?d.push(L):(L-=65536,d.push((L>>10)+55296,L%1024+56320)),(b+1===p||d.length>16384)&&(U+=String.fromCharCode.apply(String,d),d.length=0)}return U},Eh=Un(ir),zn="\xD7",Js="\xF7",yu=function(f){return Eh.get(f)},ko=function(f,c,p){var d=p-2,b=c[d],U=c[p-1],L=c[p];if(U===Ii&&L===Cr)return zn;if(U===Ii||U===Cr||U===Ro||L===Ii||L===Cr||L===Ro)return Js;if(U===Ys&&[Ys,wu,kl,ha].indexOf(L)!==-1||(U===kl||U===wu)&&(L===wu||L===vu)||(U===ha||U===vu)&&L===vu||L===Bh||L===Pl||L===Rl||U===ms)return zn;if(U===Bh&&L===bh){for(;b===Pl;)b=c[--d];if(b===bh)return zn}if(U===mu&&L===mu){for(var G=0;b===mu;)G++,b=c[--d];if(G%2===0)return zn}return Js},Fh=function(f){var c=Ch(f),p=c.length,d=0,b=0,U=c.map(yu);return{next:function(){if(d>=p)return{done:!0,value:null};for(var L=zn;d<p&&(L=ko(c,U,++d))===zn;);if(L!==zn||d===p){var G=Dl.apply(null,c.slice(b,d));return b=d,{value:G,done:!1}}return{done:!0,value:null}}}},f0=function(f){for(var c=Fh(f),p=[],d;!(d=c.next()).done;)d.value&&p.push(d.value.slice());return p},Hl=function(f){var c=123;if(f.createRange){var p=f.createRange();if(p.getBoundingClientRect){var d=f.createElement("boundtest");d.style.height=c+"px",d.style.display="block",f.body.appendChild(d),p.selectNode(d);var b=p.getBoundingClientRect(),U=Math.round(b.height);if(f.body.removeChild(d),U===c)return!0}}return!1},Uh=function(f){var c=f.createElement("boundtest");c.style.width="50px",c.style.display="block",c.style.fontSize="12px",c.style.letterSpacing="0px",c.style.wordSpacing="0px",f.body.appendChild(c);var p=f.createRange();c.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var d=c.firstChild,b=l(d.data).map(function(V){return h(V)}),U=0,L={},G=b.every(function(V,se){p.setStart(d,U),p.setEnd(d,U+V.length);var ue=p.getBoundingClientRect();U+=V.length;var Be=ue.x>L.x||ue.y>L.y;return L=ue,se===0?!0:Be});return f.body.removeChild(c),G},Bu=function(){return typeof new Image().crossOrigin<"u"},Da=function(){return typeof new XMLHttpRequest().responseType=="string"},xh=function(f){var c=new Image,p=f.createElement("canvas"),d=p.getContext("2d");if(!d)return!1;c.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{d.drawImage(c,0,0),p.toDataURL()}catch{return!1}return!0},bu=function(f){return f[0]===0&&f[1]===255&&f[2]===0&&f[3]===255},h0=function(f){var c=f.createElement("canvas"),p=100;c.width=p,c.height=p;var d=c.getContext("2d");if(!d)return Promise.reject(!1);d.fillStyle="rgb(0, 255, 0)",d.fillRect(0,0,p,p);var b=new Image,U=c.toDataURL();b.src=U;var L=Ml(p,p,0,0,b);return d.fillStyle="red",d.fillRect(0,0,p,p),ys(L).then(function(G){d.drawImage(G,0,0);var V=d.getImageData(0,0,p,p).data;d.fillStyle="red",d.fillRect(0,0,p,p);var se=f.createElement("div");return se.style.backgroundImage="url("+U+")",se.style.height=p+"px",bu(V)?ys(Ml(p,p,0,0,se)):Promise.reject(!1)}).then(function(G){return d.drawImage(G,0,0),bu(d.getImageData(0,0,p,p).data)}).catch(function(){return!1})},Ml=function(f,c,p,d,b){var U="http://www.w3.org/2000/svg",L=document.createElementNS(U,"svg"),G=document.createElementNS(U,"foreignObject");return L.setAttributeNS(null,"width",f.toString()),L.setAttributeNS(null,"height",c.toString()),G.setAttributeNS(null,"width","100%"),G.setAttributeNS(null,"height","100%"),G.setAttributeNS(null,"x",p.toString()),G.setAttributeNS(null,"y",d.toString()),G.setAttributeNS(null,"externalResourcesRequired","true"),L.appendChild(G),G.appendChild(b),L},ys=function(f){return new Promise(function(c,p){var d=new Image;d.onload=function(){return c(d)},d.onerror=p,d.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(f))})},Gr={get SUPPORT_RANGE_BOUNDS(){var f=Hl(document);return Object.defineProperty(Gr,"SUPPORT_RANGE_BOUNDS",{value:f}),f},get SUPPORT_WORD_BREAKING(){var f=Gr.SUPPORT_RANGE_BOUNDS&&Uh(document);return Object.defineProperty(Gr,"SUPPORT_WORD_BREAKING",{value:f}),f},get SUPPORT_SVG_DRAWING(){var f=xh(document);return Object.defineProperty(Gr,"SUPPORT_SVG_DRAWING",{value:f}),f},get SUPPORT_FOREIGNOBJECT_DRAWING(){var f=typeof Array.from=="function"&&typeof window.fetch=="function"?h0(document):Promise.resolve(!1);return Object.defineProperty(Gr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:f}),f},get SUPPORT_CORS_IMAGES(){var f=Bu();return Object.defineProperty(Gr,"SUPPORT_CORS_IMAGES",{value:f}),f},get SUPPORT_RESPONSE_TYPE(){var f=Da();return Object.defineProperty(Gr,"SUPPORT_RESPONSE_TYPE",{value:f}),f},get SUPPORT_CORS_XHR(){var f="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Gr,"SUPPORT_CORS_XHR",{value:f}),f},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var f=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Gr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:f}),f}},Zs=(function(){function f(c,p){this.text=c,this.bounds=p}return f})(),d0=function(f,c,p,d){var b=ql(c,p),U=[],L=0;return b.forEach(function(G){if(p.textDecorationLine.length||G.trim().length>0)if(Gr.SUPPORT_RANGE_BOUNDS){var V=Sh(d,L,G.length).getClientRects();if(V.length>1){var se=Bs(G),ue=0;se.forEach(function(Ie){U.push(new Zs(Ie,s.fromDOMRectList(f,Sh(d,ue+L,Ie.length).getClientRects()))),ue+=Ie.length})}else U.push(new Zs(G,s.fromDOMRectList(f,V)))}else{var Be=d.splitText(G.length);U.push(new Zs(G,_h(f,d))),d=Be}else Gr.SUPPORT_RANGE_BOUNDS||(d=d.splitText(G.length));L+=G.length}),U},_h=function(f,c){var p=c.ownerDocument;if(p){var d=p.createElement("html2canvaswrapper");d.appendChild(c.cloneNode(!0));var b=c.parentNode;if(b){b.replaceChild(d,c);var U=a(f,d);return d.firstChild&&b.replaceChild(d.firstChild,d),U}}return s.EMPTY},Sh=function(f,c,p){var d=f.ownerDocument;if(!d)throw new Error("Node has no owner document");var b=d.createRange();return b.setStart(f,c),b.setEnd(f,c+p),b},Bs=function(f){if(Gr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var c=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(c.segment(f)).map(function(p){return p.segment})}return f0(f)},Cu=function(f,c){if(Gr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var p=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(p.segment(f)).map(function(d){return d.segment})}return Ha(f,c)},ql=function(f,c){return c.letterSpacing!==0?Bs(f):Cu(f,c)},da=[32,160,4961,65792,65793,4153,4241],Ha=function(f,c){for(var p=xa(f,{lineBreak:c.lineBreak,wordBreak:c.overflowWrap==="break-word"?"break-word":c.wordBreak}),d=[],b,U=function(){if(b.value){var L=b.value.slice(),G=l(L),V="";G.forEach(function(se){da.indexOf(se)===-1?V+=h(se):(V.length&&d.push(V),d.push(h(se)),V="")}),V.length&&d.push(V)}};!(b=p.next()).done;)U();return d},Ma=(function(){function f(c,p,d){this.text=Kl(p.data,d.textTransform),this.textBounds=d0(c,this.text,d,p)}return f})(),Kl=function(f,c){switch(c){case 1:return f.toLowerCase();case 3:return f.replace(Eu,Qh);case 2:return f.toUpperCase();default:return f}},Eu=/(^|\s|:|-|\(|\))([a-z])/g,Qh=function(f,c,p){return f.length>0?c+p.toUpperCase():f},Ih=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.src=d.currentSrc||d.src,b.intrinsicWidth=d.naturalWidth,b.intrinsicHeight=d.naturalHeight,b.context.cache.addImage(b.src),b}return c})(Ge),jl=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.canvas=d,b.intrinsicWidth=d.width,b.intrinsicHeight=d.height,b}return c})(Ge),Vl=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this,U=new XMLSerializer,L=a(p,d);return d.setAttribute("width",L.width+"px"),d.setAttribute("height",L.height+"px"),b.svg="data:image/svg+xml,"+encodeURIComponent(U.serializeToString(d)),b.intrinsicWidth=d.width.baseVal.value,b.intrinsicHeight=d.height.baseVal.value,b.context.cache.addImage(b.svg),b}return c})(Ge),ym=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.value=d.value,b}return c})(Ge),p0=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.start=d.start,b.reversed=typeof d.reversed=="boolean"&&d.reversed===!0,b}return c})(Ge),v3=[{type:15,flags:0,unit:"px",number:3}],m3=[{type:16,flags:0,number:50}],y3=function(f){return f.width>f.height?new s(f.left+(f.width-f.height)/2,f.top,f.height,f.height):f.width<f.height?new s(f.left,f.top+(f.height-f.width)/2,f.width,f.width):f},B3=function(f){var c=f.type===b3?new Array(f.value.length+1).join("\u2022"):f.value;return c.length===0?f.placeholder||"":c},Lh="checkbox",Th="radio",b3="password",Bm=707406591,g0=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;switch(b.type=d.type.toLowerCase(),b.checked=d.checked,b.value=B3(d),(b.type===Lh||b.type===Th)&&(b.styles.backgroundColor=3739148031,b.styles.borderTopColor=b.styles.borderRightColor=b.styles.borderBottomColor=b.styles.borderLeftColor=2779096575,b.styles.borderTopWidth=b.styles.borderRightWidth=b.styles.borderBottomWidth=b.styles.borderLeftWidth=1,b.styles.borderTopStyle=b.styles.borderRightStyle=b.styles.borderBottomStyle=b.styles.borderLeftStyle=1,b.styles.backgroundClip=[0],b.styles.backgroundOrigin=[0],b.bounds=y3(b.bounds)),b.type){case Lh:b.styles.borderTopRightRadius=b.styles.borderTopLeftRadius=b.styles.borderBottomRightRadius=b.styles.borderBottomLeftRadius=v3;break;case Th:b.styles.borderTopRightRadius=b.styles.borderTopLeftRadius=b.styles.borderBottomRightRadius=b.styles.borderBottomLeftRadius=m3;break}return b}return c})(Ge),bm=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this,U=d.options[d.selectedIndex||0];return b.value=U&&U.text||"",b}return c})(Ge),Cm=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.value=d.value,b}return c})(Ge),Em=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;b.src=d.src,b.width=parseInt(d.width,10)||0,b.height=parseInt(d.height,10)||0,b.backgroundColor=b.styles.backgroundColor;try{if(d.contentWindow&&d.contentWindow.document&&d.contentWindow.document.documentElement){b.tree=Um(p,d.contentWindow.document.documentElement);var U=d.contentWindow.document.documentElement?Vi(p,getComputedStyle(d.contentWindow.document.documentElement).backgroundColor):fn.TRANSPARENT,L=d.contentWindow.document.body?Vi(p,getComputedStyle(d.contentWindow.document.body).backgroundColor):fn.TRANSPARENT;b.backgroundColor=bn(U)?bn(L)?b.styles.backgroundColor:L:U}}catch{}return b}return c})(Ge),C3=["OL","UL","MENU"],Nh=function(f,c,p,d){for(var b=c.firstChild,U=void 0;b;b=U)if(U=b.nextSibling,xm(b)&&b.data.trim().length>0)p.textNodes.push(new Ma(f,b,p.styles));else if(Gl(b))if(Tm(b)&&b.assignedNodes)b.assignedNodes().forEach(function(G){return Nh(f,G,p,d)});else{var L=Fm(f,b);L.styles.isVisible()&&(E3(b,L,d)?L.flags|=4:F3(L.styles)&&(L.flags|=2),C3.indexOf(b.tagName)!==-1&&(L.flags|=8),p.elements.push(L),b.slot,b.shadowRoot?Nh(f,b.shadowRoot,L,d):!Ph(b)&&!_m(b)&&!Rh(b)&&Nh(f,b,L,d))}},Fm=function(f,c){return m0(c)?new Ih(f,c):Sm(c)?new jl(f,c):_m(c)?new Vl(f,c):U3(c)?new ym(f,c):x3(c)?new p0(f,c):_3(c)?new g0(f,c):Rh(c)?new bm(f,c):Ph(c)?new Cm(f,c):Im(c)?new Em(f,c):new Ge(f,c)},Um=function(f,c){var p=Fm(f,c);return p.flags|=4,Nh(f,c,p,p),p},E3=function(f,c,p){return c.styles.isPositionedWithZIndex()||c.styles.opacity<1||c.styles.isTransformed()||v0(f)&&p.styles.isTransparent()},F3=function(f){return f.isPositioned()||f.isFloating()},xm=function(f){return f.nodeType===Node.TEXT_NODE},Gl=function(f){return f.nodeType===Node.ELEMENT_NODE},w0=function(f){return Gl(f)&&typeof f.style<"u"&&!Oh(f)},Oh=function(f){return typeof f.className=="object"},U3=function(f){return f.tagName==="LI"},x3=function(f){return f.tagName==="OL"},_3=function(f){return f.tagName==="INPUT"},S3=function(f){return f.tagName==="HTML"},_m=function(f){return f.tagName==="svg"},v0=function(f){return f.tagName==="BODY"},Sm=function(f){return f.tagName==="CANVAS"},Qm=function(f){return f.tagName==="VIDEO"},m0=function(f){return f.tagName==="IMG"},Im=function(f){return f.tagName==="IFRAME"},Lm=function(f){return f.tagName==="STYLE"},Q3=function(f){return f.tagName==="SCRIPT"},Ph=function(f){return f.tagName==="TEXTAREA"},Rh=function(f){return f.tagName==="SELECT"},Tm=function(f){return f.tagName==="SLOT"},Nm=function(f){return f.tagName.indexOf("-")>0},I3=(function(){function f(){this.counters={}}return f.prototype.getCounterValue=function(c){var p=this.counters[c];return p&&p.length?p[p.length-1]:1},f.prototype.getCounterValues=function(c){var p=this.counters[c];return p||[]},f.prototype.pop=function(c){var p=this;c.forEach(function(d){return p.counters[d].pop()})},f.prototype.parse=function(c){var p=this,d=c.counterIncrement,b=c.counterReset,U=!0;d!==null&&d.forEach(function(G){var V=p.counters[G.counter];V&&G.increment!==0&&(U=!1,V.length||V.push(1),V[Math.max(0,V.length-1)]+=G.increment)});var L=[];return U&&b.forEach(function(G){var V=p.counters[G.counter];L.push(G.counter),V||(V=p.counters[G.counter]=[]),V.push(G.reset)}),L},f})(),Om={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Pm={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},L3={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},T3={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},zl=function(f,c,p,d,b,U){return f<c||f>p?Uu(f,b,U.length>0):d.integers.reduce(function(L,G,V){for(;f>=G;)f-=G,L+=d.values[V];return L},"")+U},Rm=function(f,c,p,d){var b="";do p||f--,b=d(f)+b,f/=c;while(f*c>=c);return b},Er=function(f,c,p,d,b){var U=p-c+1;return(f<0?"-":"")+(Rm(Math.abs(f),U,d,function(L){return h(Math.floor(L%U)+c)})+b)},Do=function(f,c,p){p===void 0&&(p=". ");var d=c.length;return Rm(Math.abs(f),d,!1,function(b){return c[Math.floor(b%d)]})+p},Wl=1,eo=2,to=4,Fu=8,bs=function(f,c,p,d,b,U){if(f<-9999||f>9999)return Uu(f,4,b.length>0);var L=Math.abs(f),G=b;if(L===0)return c[0]+G;for(var V=0;L>0&&V<=4;V++){var se=L%10;se===0&&pe(U,Wl)&&G!==""?G=c[se]+G:se>1||se===1&&V===0||se===1&&V===1&&pe(U,eo)||se===1&&V===1&&pe(U,to)&&f>100||se===1&&V>1&&pe(U,Fu)?G=c[se]+(V>0?p[V-1]:"")+G:se===1&&V>0&&(G=p[V-1]+G),L=Math.floor(L/10)}return(f<0?d:"")+G},km="\u5341\u767E\u5343\u842C",Dm="\u62FE\u4F70\u4EDF\u842C",Hm="\u30DE\u30A4\u30CA\u30B9",y0="\uB9C8\uC774\uB108\uC2A4",Uu=function(f,c,p){var d=p?". ":"",b=p?"\u3001":"",U=p?", ":"",L=p?" ":"";switch(c){case 0:return"\u2022"+L;case 1:return"\u25E6"+L;case 2:return"\u25FE"+L;case 5:var G=Er(f,48,57,!0,d);return G.length<4?"0"+G:G;case 4:return Do(f,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",b);case 6:return zl(f,1,3999,Om,3,d).toLowerCase();case 7:return zl(f,1,3999,Om,3,d);case 8:return Er(f,945,969,!1,d);case 9:return Er(f,97,122,!1,d);case 10:return Er(f,65,90,!1,d);case 11:return Er(f,1632,1641,!0,d);case 12:case 49:return zl(f,1,9999,Pm,3,d);case 35:return zl(f,1,9999,Pm,3,d).toLowerCase();case 13:return Er(f,2534,2543,!0,d);case 14:case 30:return Er(f,6112,6121,!0,d);case 15:return Do(f,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",b);case 16:return Do(f,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",b);case 17:case 48:return bs(f,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",km,"\u8CA0",b,eo|to|Fu);case 47:return bs(f,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Dm,"\u8CA0",b,Wl|eo|to|Fu);case 42:return bs(f,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",km,"\u8D1F",b,eo|to|Fu);case 41:return bs(f,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Dm,"\u8D1F",b,Wl|eo|to|Fu);case 26:return bs(f,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Hm,b,0);case 25:return bs(f,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Hm,b,Wl|eo|to);case 31:return bs(f,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",y0,U,Wl|eo|to);case 33:return bs(f,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",y0,U,0);case 32:return bs(f,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",y0,U,Wl|eo|to);case 18:return Er(f,2406,2415,!0,d);case 20:return zl(f,1,19999,T3,3,d);case 21:return Er(f,2790,2799,!0,d);case 22:return Er(f,2662,2671,!0,d);case 22:return zl(f,1,10999,L3,3,d);case 23:return Do(f,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Do(f,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Er(f,3302,3311,!0,d);case 28:return Do(f,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",b);case 29:return Do(f,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",b);case 34:return Er(f,3792,3801,!0,d);case 37:return Er(f,6160,6169,!0,d);case 38:return Er(f,4160,4169,!0,d);case 39:return Er(f,2918,2927,!0,d);case 40:return Er(f,1776,1785,!0,d);case 43:return Er(f,3046,3055,!0,d);case 44:return Er(f,3174,3183,!0,d);case 45:return Er(f,3664,3673,!0,d);case 46:return Er(f,3872,3881,!0,d);default:return Er(f,48,57,!0,d)}},Mm="data-html2canvas-ignore",qm=(function(){function f(c,p,d){if(this.context=c,this.options=d,this.scrolledElements=[],this.referenceElement=p,this.counters=new I3,this.quoteDepth=0,!p.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(p.ownerDocument.documentElement,!1)}return f.prototype.toIFrame=function(c,p){var d=this,b=N3(c,p);if(!b.contentWindow)return Promise.reject("Unable to find iframe window");var U=c.defaultView.pageXOffset,L=c.defaultView.pageYOffset,G=b.contentWindow,V=G.document,se=R3(b).then(function(){return r(d,void 0,void 0,function(){var ue,Be;return n(this,function(Ie){switch(Ie.label){case 0:return this.scrolledElements.forEach(M3),G&&(G.scrollTo(p.left,p.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(G.scrollY!==p.top||G.scrollX!==p.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(G.scrollX-p.left,G.scrollY-p.top,0,0))),ue=this.options.onclone,Be=this.clonedReferenceElement,typeof Be>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:V.fonts&&V.fonts.ready?[4,V.fonts.ready]:[3,2];case 1:Ie.sent(),Ie.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,P3(V)]:[3,4];case 3:Ie.sent(),Ie.label=4;case 4:return typeof ue=="function"?[2,Promise.resolve().then(function(){return ue(V,Be)}).then(function(){return b})]:[2,b]}})})});return V.open(),V.write(D3(document.doctype)+"<html></html>"),H3(this.referenceElement.ownerDocument,U,L),V.replaceChild(V.adoptNode(this.documentElement),V.documentElement),V.close(),se},f.prototype.createElementClone=function(c){if(ht(c,2))debugger;if(Sm(c))return this.createCanvasClone(c);if(Qm(c))return this.createVideoClone(c);if(Lm(c))return this.createStyleClone(c);var p=c.cloneNode(!1);return m0(p)&&(m0(c)&&c.currentSrc&&c.currentSrc!==c.src&&(p.src=c.currentSrc,p.srcset=""),p.loading==="lazy"&&(p.loading="eager")),Nm(p)?this.createCustomElementClone(p):p},f.prototype.createCustomElementClone=function(c){var p=document.createElement("html2canvascustomelement");return B0(c.style,p),p},f.prototype.createStyleClone=function(c){try{var p=c.sheet;if(p&&p.cssRules){var d=[].slice.call(p.cssRules,0).reduce(function(U,L){return L&&typeof L.cssText=="string"?U+L.cssText:U},""),b=c.cloneNode(!1);return b.textContent=d,b}}catch(U){if(this.context.logger.error("Unable to access cssRules property",U),U.name!=="SecurityError")throw U}return c.cloneNode(!1)},f.prototype.createCanvasClone=function(c){var p;if(this.options.inlineImages&&c.ownerDocument){var d=c.ownerDocument.createElement("img");try{return d.src=c.toDataURL(),d}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",c)}}var b=c.cloneNode(!1);try{b.width=c.width,b.height=c.height;var U=c.getContext("2d"),L=b.getContext("2d");if(L)if(!this.options.allowTaint&&U)L.putImageData(U.getImageData(0,0,c.width,c.height),0,0);else{var G=(p=c.getContext("webgl2"))!==null&&p!==void 0?p:c.getContext("webgl");if(G){var V=G.getContextAttributes();V?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",c)}L.drawImage(c,0,0)}return b}catch{this.context.logger.info("Unable to clone canvas as it is tainted",c)}return b},f.prototype.createVideoClone=function(c){var p=c.ownerDocument.createElement("canvas");p.width=c.offsetWidth,p.height=c.offsetHeight;var d=p.getContext("2d");try{return d&&(d.drawImage(c,0,0,p.width,p.height),this.options.allowTaint||d.getImageData(0,0,p.width,p.height)),p}catch{this.context.logger.info("Unable to clone video as it is tainted",c)}var b=c.ownerDocument.createElement("canvas");return b.width=c.offsetWidth,b.height=c.offsetHeight,b},f.prototype.appendChildNode=function(c,p,d){(!Gl(p)||!Q3(p)&&!p.hasAttribute(Mm)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(p)))&&(!this.options.copyStyles||!Gl(p)||!Lm(p))&&c.appendChild(this.cloneNode(p,d))},f.prototype.cloneChildNodes=function(c,p,d){for(var b=this,U=c.shadowRoot?c.shadowRoot.firstChild:c.firstChild;U;U=U.nextSibling)if(Gl(U)&&Tm(U)&&typeof U.assignedNodes=="function"){var L=U.assignedNodes();L.length&&L.forEach(function(G){return b.appendChildNode(p,G,d)})}else this.appendChildNode(p,U,d)},f.prototype.cloneNode=function(c,p){if(xm(c))return document.createTextNode(c.data);if(!c.ownerDocument)return c.cloneNode(!1);var d=c.ownerDocument.defaultView;if(d&&Gl(c)&&(w0(c)||Oh(c))){var b=this.createElementClone(c);b.style.transitionProperty="none";var U=d.getComputedStyle(c),L=d.getComputedStyle(c,":before"),G=d.getComputedStyle(c,":after");this.referenceElement===c&&w0(b)&&(this.clonedReferenceElement=b),v0(b)&&j3(b);var V=this.counters.parse(new gt(this.context,U)),se=this.resolvePseudoContent(c,b,L,xu.BEFORE);Nm(c)&&(p=!0),Qm(c)||this.cloneChildNodes(c,b,p),se&&b.insertBefore(se,b.firstChild);var ue=this.resolvePseudoContent(c,b,G,xu.AFTER);return ue&&b.appendChild(ue),this.counters.pop(V),(U&&(this.options.copyStyles||Oh(c))&&!Im(c)||p)&&B0(U,b),(c.scrollTop!==0||c.scrollLeft!==0)&&this.scrolledElements.push([b,c.scrollLeft,c.scrollTop]),(Ph(c)||Rh(c))&&(Ph(b)||Rh(b))&&(b.value=c.value),b}return c.cloneNode(!1)},f.prototype.resolvePseudoContent=function(c,p,d,b){var U=this;if(d){var L=d.content,G=p.ownerDocument;if(!(!G||!L||L==="none"||L==="-moz-alt-content"||d.display==="none")){this.counters.parse(new gt(this.context,d));var V=new Xt(this.context,d),se=G.createElement("html2canvaspseudoelement");B0(d,se),V.content.forEach(function(Be){if(Be.type===0)se.appendChild(G.createTextNode(Be.value));else if(Be.type===22){var Ie=G.createElement("img");Ie.src=Be.value,Ie.style.opacity="1",se.appendChild(Ie)}else if(Be.type===18){if(Be.name==="attr"){var it=Be.values.filter(cA);it.length&&se.appendChild(G.createTextNode(c.getAttribute(it[0].value)||""))}else if(Be.name==="counter"){var ze=Be.values.filter(si),et=ze[0],eA=ze[1];if(et&&cA(et)){var Bt=U.counters.getCounterValue(et.value),wt=eA&&cA(eA)?Cn.parse(U.context,eA.value):3;se.appendChild(G.createTextNode(Uu(Bt,wt,!1)))}}else if(Be.name==="counters"){var CA=Be.values.filter(si),et=CA[0],rA=CA[1],eA=CA[2];if(et&&cA(et)){var qt=U.counters.getCounterValues(et.value),rt=eA&&cA(eA)?Cn.parse(U.context,eA.value):3,pA=rA&&rA.type===0?rA.value:"",gA=qt.map(function(ui){return Uu(ui,rt,!1)}).join(pA);se.appendChild(G.createTextNode(gA))}}}else if(Be.type===20)switch(Be.value){case"open-quote":se.appendChild(G.createTextNode(Te(V.quotes,U.quoteDepth++,!0)));break;case"close-quote":se.appendChild(G.createTextNode(Te(V.quotes,--U.quoteDepth,!1)));break;default:se.appendChild(G.createTextNode(Be.value))}}),se.className=b0+" "+C0;var ue=b===xu.BEFORE?" "+b0:" "+C0;return Oh(p)?p.className.baseValue+=ue:p.className+=ue,se}}},f.destroy=function(c){return c.parentNode?(c.parentNode.removeChild(c),!0):!1},f})(),xu;(function(f){f[f.BEFORE=0]="BEFORE",f[f.AFTER=1]="AFTER"})(xu||(xu={}));var N3=function(f,c){var p=f.createElement("iframe");return p.className="html2canvas-container",p.style.visibility="hidden",p.style.position="fixed",p.style.left="-10000px",p.style.top="0px",p.style.border="0",p.width=c.width.toString(),p.height=c.height.toString(),p.scrolling="no",p.setAttribute(Mm,"true"),f.body.appendChild(p),p},O3=function(f){return new Promise(function(c){if(f.complete){c();return}if(!f.src){c();return}f.onload=c,f.onerror=c})},P3=function(f){return Promise.all([].slice.call(f.images,0).map(O3))},R3=function(f){return new Promise(function(c,p){var d=f.contentWindow;if(!d)return p("No window assigned for iframe");var b=d.document;d.onload=f.onload=function(){d.onload=f.onload=null;var U=setInterval(function(){b.body.childNodes.length>0&&b.readyState==="complete"&&(clearInterval(U),c(f))},50)}})},k3=["all","d","content"],B0=function(f,c){for(var p=f.length-1;p>=0;p--){var d=f.item(p);k3.indexOf(d)===-1&&c.style.setProperty(d,f.getPropertyValue(d))}return c},D3=function(f){var c="";return f&&(c+="<!DOCTYPE ",f.name&&(c+=f.name),f.internalSubset&&(c+=f.internalSubset),f.publicId&&(c+='"'+f.publicId+'"'),f.systemId&&(c+='"'+f.systemId+'"'),c+=">"),c},H3=function(f,c,p){f&&f.defaultView&&(c!==f.defaultView.pageXOffset||p!==f.defaultView.pageYOffset)&&f.defaultView.scrollTo(c,p)},M3=function(f){var c=f[0],p=f[1],d=f[2];c.scrollLeft=p,c.scrollTop=d},q3=":before",K3=":after",b0="___html2canvas___pseudoelement_before",C0="___html2canvas___pseudoelement_after",Km=`{
|
|
1
|
+
var Tevroc=(()=>{var QQ=Object.create;var Vh=Object.defineProperty;var IQ=Object.getOwnPropertyDescriptor;var LQ=Object.getOwnPropertyNames;var TQ=Object.getPrototypeOf,NQ=Object.prototype.hasOwnProperty;var zt=(t,e,A)=>()=>{if(A)throw A[0];try{return t&&(e=t(t=0)),e}catch(r){throw A=[r],r}};var me=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(A){throw e=0,A}},or=(t,e)=>{for(var A in e)Vh(t,A,{get:e[A],enumerable:!0})},ey=(t,e,A,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of LQ(e))!NQ.call(t,n)&&n!==A&&Vh(t,n,{get:()=>e[n],enumerable:!(r=IQ(e,n))||r.enumerable});return t};var An=(t,e,A)=>(A=t!=null?QQ(TQ(t)):{},ey(e||!t||!t.__esModule?Vh(A,"default",{value:t,enumerable:!0}):A,t)),OQ=t=>ey(Vh({},"__esModule",{value:!0}),t);var ty={};or(ty,{isCapacitor:()=>pi,isNative:()=>ot,isTauri:()=>Wn,platform:()=>di});var PQ,di,pi,Wn,ot,no=zt(()=>{PQ=()=>{if(typeof window<"u"&&(window.__TAURI__||window.__TAURI_INTERNALS__))return"tauri";if(typeof window<"u"){if(window.Capacitor?.isNativePlatform?.())return window.Capacitor.getPlatform();if(window.Capacitor?.getPlatform){let t=window.Capacitor.getPlatform();if(t==="ios"||t==="android")return t}}return"web"},di=PQ(),pi=di==="android"||di==="ios",Wn=di==="tauri",ot=di==="android"||di==="ios"||di==="tauri"});function _0(t){if(!(typeof globalThis>"u"))try{globalThis[Ay]=!!t}catch{}}function S0(){return typeof globalThis<"u"&&!!globalThis[Ay]}function ry(t){return typeof t!="function"?()=>{}:(Gh.push(t),()=>Q0(t))}function Q0(t){let e=Gh.indexOf(t);e>=0&&Gh.splice(e,1)}function I0(t,...e){try{for(let A of Gh.slice())try{A({level:t,args:e})}catch{}}catch{}}function iA(...t){S0()&&console.log(...t),I0("log",...t)}function zr(...t){S0()&&console.warn(...t),I0("warn",...t)}function Ka(...t){S0()&&console.error(...t),I0("error",...t)}var Ay,Gh,jo=zt(()=>{Ay="__tevrocsdk_debug__";Gh=[]});var Zl,Su,RQ,kQ,DQ,L0,$n,gn,ny,iy,T0,Dj,HQ,MQ,qQ,P0,N0,Hj,ay,sy,O0,Mj,Ni=zt(()=>{(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(Zl||(Zl={}));Su=class extends Error{constructor(e,A,r){super(e),this.message=e,this.code=A,this.data=r}},RQ=t=>{var e,A;return t?.androidBridge?"android":!((A=(e=t?.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||A===void 0)&&A.bridge?"ios":"web"},kQ=t=>{let e=t.CapacitorCustomPlatform||null,A=t.Capacitor||{},r=A.Plugins=A.Plugins||{},n=()=>e!==null?e.name:RQ(t),i=()=>n()!=="web",s=v=>{let m=l.get(v);return!!(m?.platforms.has(n())||a(v))},a=v=>{var m;return(m=A.PluginHeaders)===null||m===void 0?void 0:m.find(g=>g.name===v)},o=v=>t.console.error(v),l=new Map,h=(v,m={})=>{let g=l.get(v);if(g)return console.warn(`Capacitor plugin "${v}" already registered. Cannot register plugins twice.`),g.proxy;let C=n(),F=a(v),_,x=async()=>(!_&&C in m?_=typeof m[C]=="function"?_=await m[C]():_=m[C]:e!==null&&!_&&"web"in m&&(_=typeof m.web=="function"?_=await m.web():_=m.web),_),H=(j,N)=>{var Z,I;if(F){let O=F?.methods.find(Y=>N===Y.name);if(O)return O.rtype==="promise"?Y=>A.nativePromise(v,N.toString(),Y):(Y,ee)=>A.nativeCallback(v,N.toString(),Y,ee);if(j)return(Z=j[N])===null||Z===void 0?void 0:Z.bind(j)}else{if(j)return(I=j[N])===null||I===void 0?void 0:I.bind(j);throw new Su(`"${v}" plugin is not implemented on ${C}`,Zl.Unimplemented)}},D=j=>{let N,Z=(...I)=>{let O=x().then(Y=>{let ee=H(Y,j);if(ee){let ce=ee(...I);return N=ce?.remove,ce}else throw new Su(`"${v}.${j}()" is not implemented on ${C}`,Zl.Unimplemented)});return j==="addListener"&&(O.remove=async()=>N()),O};return Z.toString=()=>`${j.toString()}() { [capacitor code] }`,Object.defineProperty(Z,"name",{value:j,writable:!1,configurable:!1}),Z},k=D("addListener"),re=D("removeListener"),fe=(j,N)=>{let Z=k({eventName:j},N),I=async()=>{let Y=await Z;re({eventName:j,callbackId:Y},N)},O=new Promise(Y=>Z.then(()=>Y({remove:I})));return O.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await I()},O},Ae=new Proxy({},{get(j,N){switch(N){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return F?fe:k;case"removeListener":return re;default:return D(N)}}});return r[v]=Ae,l.set(v,{name:v,proxy:Ae,platforms:new Set([...Object.keys(m),...F?[C]:[]])}),Ae};return A.convertFileSrc||(A.convertFileSrc=v=>v),A.getPlatform=n,A.handleError=o,A.isNativePlatform=i,A.isPluginAvailable=s,A.registerPlugin=h,A.Exception=Su,A.DEBUG=!!A.DEBUG,A.isLoggingEnabled=!!A.isLoggingEnabled,A},DQ=t=>t.Capacitor=kQ(t),L0=DQ(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),$n=L0.registerPlugin,gn=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,A){let r=!1;this.listeners[e]||(this.listeners[e]=[],r=!0),this.listeners[e].push(A);let i=this.windowListeners[e];i&&!i.registered&&this.addWindowListener(i),r&&this.sendRetainedArgumentsForEvent(e);let s=async()=>this.removeListener(e,A);return Promise.resolve({remove:s})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,A,r){let n=this.listeners[e];if(!n){if(r){let i=this.retainedEventArguments[e];i||(i=[]),i.push(A),this.retainedEventArguments[e]=i}return}n.forEach(i=>i(A))}hasListeners(e){var A;return!!(!((A=this.listeners[e])===null||A===void 0)&&A.length)}registerWindowListener(e,A){this.windowListeners[A]={registered:!1,windowEventName:e,pluginEventName:A,handler:r=>{this.notifyListeners(A,r)}}}unimplemented(e="not implemented"){return new L0.Exception(e,Zl.Unimplemented)}unavailable(e="not available"){return new L0.Exception(e,Zl.Unavailable)}async removeListener(e,A){let r=this.listeners[e];if(!r)return;let n=r.indexOf(A);this.listeners[e].splice(n,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let A=this.retainedEventArguments[e];A&&(delete this.retainedEventArguments[e],A.forEach(r=>{this.notifyListeners(e,r)}))}},ny=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),iy=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),T0=class extends gn{async getCookies(){let e=document.cookie,A={};return e.split(";").forEach(r=>{if(r.length<=0)return;let[n,i]=r.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=iy(n).trim(),i=iy(i).trim(),A[n]=i}),A}async setCookie(e){try{let A=ny(e.key),r=ny(e.value),n=e.expires?`; expires=${e.expires.replace("expires=","")}`:"",i=(e.path||"/").replace("path=",""),s=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${A}=${r||""}${n}; path=${i}; ${s};`}catch(A){return Promise.reject(A)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(A){return Promise.reject(A)}}async clearCookies(){try{let e=document.cookie.split(";")||[];for(let A of e)document.cookie=A.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}},Dj=$n("CapacitorCookies",{web:()=>new T0}),HQ=async t=>new Promise((e,A)=>{let r=new FileReader;r.onload=()=>{let n=r.result;e(n.indexOf(",")>=0?n.split(",")[1]:n)},r.onerror=n=>A(n),r.readAsDataURL(t)}),MQ=(t={})=>{let e=Object.keys(t);return Object.keys(t).map(n=>n.toLocaleLowerCase()).reduce((n,i,s)=>(n[i]=t[e[s]],n),{})},qQ=(t,e=!0)=>t?Object.entries(t).reduce((r,n)=>{let[i,s]=n,a,o;return Array.isArray(s)?(o="",s.forEach(l=>{a=e?encodeURIComponent(l):l,o+=`${i}=${a}&`}),o.slice(0,-1)):(a=e?encodeURIComponent(s):s,o=`${i}=${a}`),`${r}&${o}`},"").substr(1):null,P0=(t,e={})=>{let A=Object.assign({method:t.method||"GET",headers:t.headers},e),n=MQ(t.headers)["content-type"]||"";if(typeof t.data=="string")A.body=t.data;else if(n.includes("application/x-www-form-urlencoded")){let i=new URLSearchParams;for(let[s,a]of Object.entries(t.data||{}))i.set(s,a);A.body=i.toString()}else if(n.includes("multipart/form-data")||t.data instanceof FormData){let i=new FormData;if(t.data instanceof FormData)t.data.forEach((a,o)=>{i.append(o,a)});else for(let a of Object.keys(t.data))i.append(a,t.data[a]);A.body=i;let s=new Headers(A.headers);s.delete("content-type"),A.headers=s}else(n.includes("application/json")||typeof t.data=="object")&&(A.body=JSON.stringify(t.data));return A},N0=class extends gn{async request(e){let A=P0(e,e.webFetchExtra),r=qQ(e.params,e.shouldEncodeUrlParams),n=r?`${e.url}?${r}`:e.url,i=await fetch(n,A),s=i.headers.get("content-type")||"",{responseType:a="text"}=i.ok?e:{};s.includes("application/json")&&(a="json");let o,l;switch(a){case"arraybuffer":case"blob":l=await i.blob(),o=await HQ(l);break;case"json":o=await i.json();break;default:o=await i.text()}let h={};return i.headers.forEach((v,m)=>{h[m]=v}),{data:o,headers:h,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}},Hj=$n("CapacitorHttp",{web:()=>new N0});(function(t){t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT"})(ay||(ay={}));(function(t){t.StatusBar="StatusBar",t.NavigationBar="NavigationBar"})(sy||(sy={}));O0=class extends gn{async setStyle(){this.unavailable("not available for web")}async setAnimation(){this.unavailable("not available for web")}async show(){this.unavailable("not available for web")}async hide(){this.unavailable("not available for web")}},Mj=$n("SystemBars",{web:()=>new O0})});var oy=zt(()=>{});var ly={};or(ly,{AppWeb:()=>R0});var R0,cy=zt(()=>{Ni();R0=class extends gn{constructor(){super(),this.handleVisibilityChange=()=>{let e={isActive:document.hidden!==!0};this.notifyListeners("appStateChange",e),document.hidden?this.notifyListeners("pause",null):this.notifyListeners("resume",null)},document.addEventListener("visibilitychange",this.handleVisibilityChange,!1)}exitApp(){throw this.unimplemented("Not implemented on web.")}async getInfo(){throw this.unimplemented("Not implemented on web.")}async getLaunchUrl(){return{url:""}}async getState(){return{isActive:document.hidden!==!0}}async minimizeApp(){throw this.unimplemented("Not implemented on web.")}async toggleBackButtonHandler(){throw this.unimplemented("Not implemented on web.")}async getAppLanguage(){return{value:navigator.language.split("-")[0].toLowerCase()}}}});var zh={};or(zh,{App:()=>KQ});var KQ,Wh=zt(()=>{Ni();oy();KQ=$n("App",{web:()=>Promise.resolve().then(()=>(cy(),ly)).then(t=>new t.AppWeb)})});var uy=zt(()=>{});var fy={};or(fy,{Browser:()=>jQ,BrowserWeb:()=>$h});var $h,jQ,hy=zt(()=>{Ni();$h=class extends gn{constructor(){super(),this._lastWindow=null}async open(e){this._lastWindow=window.open(e.url,e.windowName||"_blank")}async close(){return new Promise((e,A)=>{this._lastWindow!=null?(this._lastWindow.close(),this._lastWindow=null,e()):A("No active window to close!")})}},jQ=new $h});var k0={};or(k0,{Browser:()=>VQ});var VQ,D0=zt(()=>{Ni();uy();VQ=$n("Browser",{web:()=>Promise.resolve().then(()=>(hy(),fy)).then(t=>new t.BrowserWeb)})});function rn(t,e,A,r){if(A==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return A==="m"?r:A==="a"?r.call(t):r?r.value:e.get(t)}function Vo(t,e,A,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(t,A):n?n.value=A:e.set(t,A),A}var dy=zt(()=>{});function H0(t,e=!1){return window.__TAURI_INTERNALS__.transformCallback(t,e)}async function ge(t,e={},A){return window.__TAURI_INTERNALS__.invoke(t,e,A)}var Go,$i,ec,Xh,Yh,Xn,Jh,zo,pa=zt(()=>{dy();Xn="__TAURI_TO_IPC_KEY__";Jh=class{constructor(e){Go.set(this,void 0),$i.set(this,0),ec.set(this,[]),Xh.set(this,void 0),Vo(this,Go,e||(()=>{}),"f"),this.id=H0(A=>{let r=A.index;if("end"in A){r==rn(this,$i,"f")?this.cleanupCallback():Vo(this,Xh,r,"f");return}let n=A.message;if(r==rn(this,$i,"f")){for(rn(this,Go,"f").call(this,n),Vo(this,$i,rn(this,$i,"f")+1,"f");rn(this,$i,"f")in rn(this,ec,"f");){let i=rn(this,ec,"f")[rn(this,$i,"f")];rn(this,Go,"f").call(this,i),delete rn(this,ec,"f")[rn(this,$i,"f")],Vo(this,$i,rn(this,$i,"f")+1,"f")}rn(this,$i,"f")===rn(this,Xh,"f")&&this.cleanupCallback()}else rn(this,ec,"f")[r]=n})}cleanupCallback(){window.__TAURI_INTERNALS__.unregisterCallback(this.id)}set onmessage(e){Vo(this,Go,e,"f")}get onmessage(){return rn(this,Go,"f")}[(Go=new WeakMap,$i=new WeakMap,ec=new WeakMap,Xh=new WeakMap,Xn)](){return`__CHANNEL__:${this.id}`}toJSON(){return this[Xn]()}};zo=class{get rid(){return rn(this,Yh,"f")}constructor(e){Yh.set(this,void 0),Vo(this,Yh,e,"f")}async close(){return ge("plugin:resources|close",{rid:this.rid})}};Yh=new WeakMap});var Qu,ja,Xi,Iu,_n,Va,Zh=zt(()=>{pa();Qu=class{constructor(...e){this.type="Logical",e.length===1?"Logical"in e[0]?(this.width=e[0].Logical.width,this.height=e[0].Logical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toPhysical(e){return new ja(this.width*e,this.height*e)}[Xn](){return{width:this.width,height:this.height}}toJSON(){return this[Xn]()}},ja=class{constructor(...e){this.type="Physical",e.length===1?"Physical"in e[0]?(this.width=e[0].Physical.width,this.height=e[0].Physical.height):(this.width=e[0].width,this.height=e[0].height):(this.width=e[0],this.height=e[1])}toLogical(e){return new Qu(this.width/e,this.height/e)}[Xn](){return{width:this.width,height:this.height}}toJSON(){return this[Xn]()}},Xi=class{constructor(e){this.size=e}toLogical(e){return this.size instanceof Qu?this.size:this.size.toLogical(e)}toPhysical(e){return this.size instanceof ja?this.size:this.size.toPhysical(e)}[Xn](){return{[`${this.size.type}`]:{width:this.size.width,height:this.size.height}}}toJSON(){return this[Xn]()}},Iu=class{constructor(...e){this.type="Logical",e.length===1?"Logical"in e[0]?(this.x=e[0].Logical.x,this.y=e[0].Logical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toPhysical(e){return new _n(this.x*e,this.y*e)}[Xn](){return{x:this.x,y:this.y}}toJSON(){return this[Xn]()}},_n=class{constructor(...e){this.type="Physical",e.length===1?"Physical"in e[0]?(this.x=e[0].Physical.x,this.y=e[0].Physical.y):(this.x=e[0].x,this.y=e[0].y):(this.x=e[0],this.y=e[1])}toLogical(e){return new Iu(this.x/e,this.y/e)}[Xn](){return{x:this.x,y:this.y}}toJSON(){return this[Xn]()}},Va=class{constructor(e){this.position=e}toLogical(e){return this.position instanceof Iu?this.position:this.position.toLogical(e)}toPhysical(e){return this.position instanceof _n?this.position:this.position.toPhysical(e)}[Xn](){return{[`${this.position.type}`]:{x:this.position.x,y:this.position.y}}}toJSON(){return this[Xn]()}}});var M0={};or(M0,{TauriEvent:()=>Tr,emit:()=>Lu,emitTo:()=>Tu,listen:()=>io,once:()=>Wo});async function py(t,e){window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(t,e),await ge("plugin:event|unlisten",{event:t,eventId:e})}async function io(t,e,A){var r;let n=typeof A?.target=="string"?{kind:"AnyLabel",label:A.target}:(r=A?.target)!==null&&r!==void 0?r:{kind:"Any"};return ge("plugin:event|listen",{event:t,target:n,handler:H0(e)}).then(i=>async()=>py(t,i))}async function Wo(t,e,A){return io(t,r=>{py(t,r.id),e(r)},A)}async function Lu(t,e){await ge("plugin:event|emit",{event:t,payload:e})}async function Tu(t,e,A){await ge("plugin:event|emit_to",{target:typeof t=="string"?{kind:"AnyLabel",label:t}:t,event:e,payload:A})}var Tr,tc=zt(()=>{pa();(function(t){t.WINDOW_RESIZED="tauri://resize",t.WINDOW_MOVED="tauri://move",t.WINDOW_CLOSE_REQUESTED="tauri://close-requested",t.WINDOW_DESTROYED="tauri://destroyed",t.WINDOW_FOCUS="tauri://focus",t.WINDOW_BLUR="tauri://blur",t.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",t.WINDOW_THEME_CHANGED="tauri://theme-changed",t.WINDOW_CREATED="tauri://window-created",t.WINDOW_SUSPENDED="tauri://suspended",t.WINDOW_RESUMED="tauri://resumed",t.WEBVIEW_CREATED="tauri://webview-created",t.DRAG_ENTER="tauri://drag-enter",t.DRAG_OVER="tauri://drag-over",t.DRAG_DROP="tauri://drag-drop",t.DRAG_LEAVE="tauri://drag-leave"})(Tr||(Tr={}))});function Nu(t){return t==null?null:typeof t=="string"?t:t instanceof q0?t.rid:t}var q0,gy=zt(()=>{pa();q0=class t extends zo{constructor(e){super(e)}static async new(e,A,r){return ge("plugin:image|new",{rgba:Nu(e),width:A,height:r}).then(n=>new t(n))}static async fromBytes(e){return ge("plugin:image|from_bytes",{bytes:Nu(e)}).then(A=>new t(A))}static async fromPath(e){return ge("plugin:image|from_path",{path:e}).then(A=>new t(A))}async rgba(){return ge("plugin:image|rgba",{rid:this.rid}).then(e=>new Uint8Array(e))}async size(){return ge("plugin:image|size",{rid:this.rid})}}});function z0(){return new ao(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}async function K0(){return ge("plugin:window|get_all_windows").then(t=>t.map(e=>new ao(e,{skip:!0})))}var V0,G0,wy,j0,ao,vy,my,yy,By,W0=zt(()=>{Zh();Zh();tc();pa();gy();(function(t){t[t.Critical=1]="Critical",t[t.Informational=2]="Informational"})(V0||(V0={}));G0=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}};(function(t){t.None="none",t.Normal="normal",t.Indeterminate="indeterminate",t.Paused="paused",t.Error="error"})(wy||(wy={}));j0=["tauri://created","tauri://error"],ao=class{constructor(e,A={}){var r;this.label=e,this.listeners=Object.create(null),A?.skip||ge("plugin:window|create",{options:{...A,parent:typeof A.parent=="string"?A.parent:(r=A.parent)===null||r===void 0?void 0:r.label,label:e}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static async getByLabel(e){var A;return(A=(await K0()).find(r=>r.label===e))!==null&&A!==void 0?A:null}static getCurrent(){return z0()}static async getAll(){return K0()}static async getFocusedWindow(){for(let e of await K0())if(await e.isFocused())return e;return null}async listen(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:io(e,A,{target:{kind:"Window",label:this.label}})}async once(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:Wo(e,A,{target:{kind:"Window",label:this.label}})}async emit(e,A){if(j0.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,payload:A});return}return Lu(e,A)}async emitTo(e,A,r){if(j0.includes(A)){for(let n of this.listeners[A]||[])n({event:A,id:-1,payload:r});return}return Tu(e,A,r)}_handleTauriEvent(e,A){return j0.includes(e)?(e in this.listeners?this.listeners[e].push(A):this.listeners[e]=[A],!0):!1}async scaleFactor(){return ge("plugin:window|scale_factor",{label:this.label})}async innerPosition(){return ge("plugin:window|inner_position",{label:this.label}).then(e=>new _n(e))}async outerPosition(){return ge("plugin:window|outer_position",{label:this.label}).then(e=>new _n(e))}async innerSize(){return ge("plugin:window|inner_size",{label:this.label}).then(e=>new ja(e))}async outerSize(){return ge("plugin:window|outer_size",{label:this.label}).then(e=>new ja(e))}async isFullscreen(){return ge("plugin:window|is_fullscreen",{label:this.label})}async isMinimized(){return ge("plugin:window|is_minimized",{label:this.label})}async isMaximized(){return ge("plugin:window|is_maximized",{label:this.label})}async isFocused(){return ge("plugin:window|is_focused",{label:this.label})}async isDecorated(){return ge("plugin:window|is_decorated",{label:this.label})}async isResizable(){return ge("plugin:window|is_resizable",{label:this.label})}async isMaximizable(){return ge("plugin:window|is_maximizable",{label:this.label})}async isMinimizable(){return ge("plugin:window|is_minimizable",{label:this.label})}async isClosable(){return ge("plugin:window|is_closable",{label:this.label})}async isVisible(){return ge("plugin:window|is_visible",{label:this.label})}async title(){return ge("plugin:window|title",{label:this.label})}async theme(){return ge("plugin:window|theme",{label:this.label})}async isAlwaysOnTop(){return ge("plugin:window|is_always_on_top",{label:this.label})}async activityName(){return ge("plugin:window|activity_name",{label:this.label})}async sceneIdentifier(){return ge("plugin:window|scene_identifier",{label:this.label})}async center(){return ge("plugin:window|center",{label:this.label})}async requestUserAttention(e){let A=null;return e&&(e===V0.Critical?A={type:"Critical"}:A={type:"Informational"}),ge("plugin:window|request_user_attention",{label:this.label,value:A})}async setResizable(e){return ge("plugin:window|set_resizable",{label:this.label,value:e})}async setEnabled(e){return ge("plugin:window|set_enabled",{label:this.label,value:e})}async isEnabled(){return ge("plugin:window|is_enabled",{label:this.label})}async setMaximizable(e){return ge("plugin:window|set_maximizable",{label:this.label,value:e})}async setMinimizable(e){return ge("plugin:window|set_minimizable",{label:this.label,value:e})}async setClosable(e){return ge("plugin:window|set_closable",{label:this.label,value:e})}async setTitle(e){return ge("plugin:window|set_title",{label:this.label,value:e})}async maximize(){return ge("plugin:window|maximize",{label:this.label})}async unmaximize(){return ge("plugin:window|unmaximize",{label:this.label})}async toggleMaximize(){return ge("plugin:window|toggle_maximize",{label:this.label})}async minimize(){return ge("plugin:window|minimize",{label:this.label})}async unminimize(){return ge("plugin:window|unminimize",{label:this.label})}async show(){return ge("plugin:window|show",{label:this.label})}async hide(){return ge("plugin:window|hide",{label:this.label})}async close(){return ge("plugin:window|close",{label:this.label})}async destroy(){return ge("plugin:window|destroy",{label:this.label})}async setDecorations(e){return ge("plugin:window|set_decorations",{label:this.label,value:e})}async setShadow(e){return ge("plugin:window|set_shadow",{label:this.label,value:e})}async setEffects(e){return ge("plugin:window|set_effects",{label:this.label,value:e})}async clearEffects(){return ge("plugin:window|set_effects",{label:this.label,value:null})}async setAlwaysOnTop(e){return ge("plugin:window|set_always_on_top",{label:this.label,value:e})}async setAlwaysOnBottom(e){return ge("plugin:window|set_always_on_bottom",{label:this.label,value:e})}async setContentProtected(e){return ge("plugin:window|set_content_protected",{label:this.label,value:e})}async setSize(e){return ge("plugin:window|set_size",{label:this.label,value:e instanceof Xi?e:new Xi(e)})}async setMinSize(e){return ge("plugin:window|set_min_size",{label:this.label,value:e instanceof Xi?e:e?new Xi(e):null})}async setMaxSize(e){return ge("plugin:window|set_max_size",{label:this.label,value:e instanceof Xi?e:e?new Xi(e):null})}async setSizeConstraints(e){function A(r){return r?{Logical:r}:null}return ge("plugin:window|set_size_constraints",{label:this.label,value:{minWidth:A(e?.minWidth),minHeight:A(e?.minHeight),maxWidth:A(e?.maxWidth),maxHeight:A(e?.maxHeight)}})}async setPosition(e){return ge("plugin:window|set_position",{label:this.label,value:e instanceof Va?e:new Va(e)})}async setFullscreen(e){return ge("plugin:window|set_fullscreen",{label:this.label,value:e})}async setSimpleFullscreen(e){return ge("plugin:window|set_simple_fullscreen",{label:this.label,value:e})}async setFocus(){return ge("plugin:window|set_focus",{label:this.label})}async setFocusable(e){return ge("plugin:window|set_focusable",{label:this.label,value:e})}async setIcon(e){return ge("plugin:window|set_icon",{label:this.label,value:Nu(e)})}async setSkipTaskbar(e){return ge("plugin:window|set_skip_taskbar",{label:this.label,value:e})}async setCursorGrab(e){return ge("plugin:window|set_cursor_grab",{label:this.label,value:e})}async setCursorVisible(e){return ge("plugin:window|set_cursor_visible",{label:this.label,value:e})}async setCursorIcon(e){return ge("plugin:window|set_cursor_icon",{label:this.label,value:e})}async setBackgroundColor(e){return ge("plugin:window|set_background_color",{color:e})}async setCursorPosition(e){return ge("plugin:window|set_cursor_position",{label:this.label,value:e instanceof Va?e:new Va(e)})}async setIgnoreCursorEvents(e){return ge("plugin:window|set_ignore_cursor_events",{label:this.label,value:e})}async startDragging(){return ge("plugin:window|start_dragging",{label:this.label})}async startResizeDragging(e){return ge("plugin:window|start_resize_dragging",{label:this.label,value:e})}async setBadgeCount(e){return ge("plugin:window|set_badge_count",{label:this.label,value:e})}async setBadgeLabel(e){return ge("plugin:window|set_badge_label",{label:this.label,value:e})}async setOverlayIcon(e){return ge("plugin:window|set_overlay_icon",{label:this.label,value:e?Nu(e):void 0})}async setProgressBar(e){return ge("plugin:window|set_progress_bar",{label:this.label,value:e})}async setVisibleOnAllWorkspaces(e){return ge("plugin:window|set_visible_on_all_workspaces",{label:this.label,value:e})}async setTitleBarStyle(e){return ge("plugin:window|set_title_bar_style",{label:this.label,value:e})}async setTheme(e){return ge("plugin:window|set_theme",{label:this.label,value:e})}async onResized(e){return this.listen(Tr.WINDOW_RESIZED,A=>{A.payload=new ja(A.payload),e(A)})}async onMoved(e){return this.listen(Tr.WINDOW_MOVED,A=>{A.payload=new _n(A.payload),e(A)})}async onCloseRequested(e){return this.listen(Tr.WINDOW_CLOSE_REQUESTED,async A=>{let r=new G0(A);await e(r),r.isPreventDefault()||await this.destroy()})}async onDragDropEvent(e){let A=await this.listen(Tr.DRAG_ENTER,s=>{e({...s,payload:{type:"enter",paths:s.payload.paths,position:new _n(s.payload.position)}})}),r=await this.listen(Tr.DRAG_OVER,s=>{e({...s,payload:{type:"over",position:new _n(s.payload.position)}})}),n=await this.listen(Tr.DRAG_DROP,s=>{e({...s,payload:{type:"drop",paths:s.payload.paths,position:new _n(s.payload.position)}})}),i=await this.listen(Tr.DRAG_LEAVE,s=>{e({...s,payload:{type:"leave"}})});return()=>{A(),n(),r(),i()}}async onFocusChanged(e){let A=await this.listen(Tr.WINDOW_FOCUS,n=>{e({...n,payload:!0})}),r=await this.listen(Tr.WINDOW_BLUR,n=>{e({...n,payload:!1})});return()=>{A(),r()}}async onScaleChanged(e){return this.listen(Tr.WINDOW_SCALE_FACTOR_CHANGED,e)}async onThemeChanged(e){return this.listen(Tr.WINDOW_THEME_CHANGED,e)}};(function(t){t.Disabled="disabled",t.Throttle="throttle",t.Suspend="suspend"})(vy||(vy={}));(function(t){t.Default="default",t.FluentOverlay="fluentOverlay"})(my||(my={}));(function(t){t.AppearanceBased="appearanceBased",t.Light="light",t.Dark="dark",t.MediumLight="mediumLight",t.UltraDark="ultraDark",t.Titlebar="titlebar",t.Selection="selection",t.Menu="menu",t.Popover="popover",t.Sidebar="sidebar",t.HeaderView="headerView",t.Sheet="sheet",t.WindowBackground="windowBackground",t.HudWindow="hudWindow",t.FullScreenUI="fullScreenUI",t.Tooltip="tooltip",t.ContentBackground="contentBackground",t.UnderWindowBackground="underWindowBackground",t.UnderPageBackground="underPageBackground",t.Mica="mica",t.Blur="blur",t.Acrylic="acrylic",t.Tabbed="tabbed",t.TabbedDark="tabbedDark",t.TabbedLight="tabbedLight"})(yy||(yy={}));(function(t){t.FollowsWindowActiveState="followsWindowActiveState",t.Active="active",t.Inactive="inactive"})(By||(By={}))});function X0(){return new Ac(z0(),window.__TAURI_INTERNALS__.metadata.currentWebview.label,{skip:!0})}async function by(){return ge("plugin:webview|get_all_webviews").then(t=>t.map(e=>new Ac(new ao(e.windowLabel,{skip:!0}),e.label,{skip:!0})))}var $0,Ac,Cy=zt(()=>{Zh();tc();pa();W0();$0=["tauri://created","tauri://error"],Ac=class{constructor(e,A,r){this.window=e,this.label=A,this.listeners=Object.create(null),r?.skip||ge("plugin:webview|create_webview",{windowLabel:e.label,options:{...r,label:A}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static async getByLabel(e){var A;return(A=(await by()).find(r=>r.label===e))!==null&&A!==void 0?A:null}static getCurrent(){return X0()}static async getAll(){return by()}async listen(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:io(e,A,{target:{kind:"Webview",label:this.label}})}async once(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:Wo(e,A,{target:{kind:"Webview",label:this.label}})}async emit(e,A){if($0.includes(e)){for(let r of this.listeners[e]||[])r({event:e,id:-1,payload:A});return}return Lu(e,A)}async emitTo(e,A,r){if($0.includes(A)){for(let n of this.listeners[A]||[])n({event:A,id:-1,payload:r});return}return Tu(e,A,r)}_handleTauriEvent(e,A){return $0.includes(e)?(e in this.listeners?this.listeners[e].push(A):this.listeners[e]=[A],!0):!1}async position(){return ge("plugin:webview|webview_position",{label:this.label}).then(e=>new _n(e))}async size(){return ge("plugin:webview|webview_size",{label:this.label}).then(e=>new ja(e))}async close(){return ge("plugin:webview|webview_close",{label:this.label})}async setSize(e){return ge("plugin:webview|set_webview_size",{label:this.label,value:e instanceof Xi?e:new Xi(e)})}async setPosition(e){return ge("plugin:webview|set_webview_position",{label:this.label,value:e instanceof Va?e:new Va(e)})}async setFocus(){return ge("plugin:webview|set_webview_focus",{label:this.label})}async setAutoResize(e){return ge("plugin:webview|set_webview_auto_resize",{label:this.label,value:e})}async hide(){return ge("plugin:webview|webview_hide",{label:this.label})}async show(){return ge("plugin:webview|webview_show",{label:this.label})}async setZoom(e){return ge("plugin:webview|set_webview_zoom",{label:this.label,value:e})}async reparent(e){return ge("plugin:webview|reparent",{label:this.label,window:typeof e=="string"?e:e.label})}async clearAllBrowsingData(){return ge("plugin:webview|clear_all_browsing_data")}async setBackgroundColor(e){return ge("plugin:webview|set_webview_background_color",{color:e})}async onDragDropEvent(e){let A=await this.listen(Tr.DRAG_ENTER,s=>{e({...s,payload:{type:"enter",paths:s.payload.paths,position:new _n(s.payload.position)}})}),r=await this.listen(Tr.DRAG_OVER,s=>{e({...s,payload:{type:"over",position:new _n(s.payload.position)}})}),n=await this.listen(Tr.DRAG_DROP,s=>{e({...s,payload:{type:"drop",paths:s.payload.paths,position:new _n(s.payload.position)}})}),i=await this.listen(Tr.DRAG_LEAVE,s=>{e({...s,payload:{type:"leave"}})});return()=>{A(),n(),r(),i()}}}});var ed={};or(ed,{WebviewWindow:()=>rc,getAllWebviewWindows:()=>Y0,getCurrentWebviewWindow:()=>Ey});function Ey(){let t=X0();return new rc(t.label,{skip:!0})}async function Y0(){return ge("plugin:window|get_all_windows").then(t=>t.map(e=>new rc(e,{skip:!0})))}function GQ(t,e){(Array.isArray(e)?e:[e]).forEach(A=>{Object.getOwnPropertyNames(A.prototype).forEach(r=>{var n;typeof t.prototype=="object"&&t.prototype&&r in t.prototype||Object.defineProperty(t.prototype,r,(n=Object.getOwnPropertyDescriptor(A.prototype,r))!==null&&n!==void 0?n:Object.create(null))})})}var rc,td=zt(()=>{Cy();W0();tc();pa();rc=class t{constructor(e,A={}){var r;this.label=e,this.listeners=Object.create(null),A?.skip||ge("plugin:webview|create_webview_window",{options:{...A,parent:typeof A.parent=="string"?A.parent:(r=A.parent)===null||r===void 0?void 0:r.label,label:e}}).then(async()=>this.emit("tauri://created")).catch(async n=>this.emit("tauri://error",n))}static async getByLabel(e){var A;let r=(A=(await Y0()).find(n=>n.label===e))!==null&&A!==void 0?A:null;return r?new t(r.label,{skip:!0}):null}static getCurrent(){return Ey()}static async getAll(){return Y0()}async listen(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:io(e,A,{target:{kind:"WebviewWindow",label:this.label}})}async once(e,A){return this._handleTauriEvent(e,A)?()=>{let r=this.listeners[e];r.splice(r.indexOf(A),1)}:Wo(e,A,{target:{kind:"WebviewWindow",label:this.label}})}async setBackgroundColor(e){return ge("plugin:window|set_background_color",{color:e}).then(()=>ge("plugin:webview|set_webview_background_color",{color:e}))}};GQ(rc,[ao,Ac])});var Ly={};or(Ly,{createGoogleLogin:()=>Aw,initializeGoogleLogin:()=>Iy,subscribeGoogleLogin:()=>tw});function _y(t,e=null){Ad.forEach(A=>{try{A(t,e)}catch(r){Ka("Google listener error:",r)}})}function tw(t){return Ad.push(t),()=>{let e=Ad.indexOf(t);e!==-1&&Ad.splice(e,1)}}var Fy,Uy,Z0,ew,xy,Ad,so,rd,Ou,Sy,Qy,J0,Iy,Aw,rw=zt(()=>{no();jo();Z0=()=>(Fy??=Promise.all([Promise.resolve().then(()=>(Wh(),zh)),Promise.resolve().then(()=>(D0(),k0))]).then(([t,e])=>({App:t.App,Browser:e.Browser})),Fy),ew=async()=>(Uy??=Promise.resolve().then(()=>(td(),ed)).then(t=>t.WebviewWindow),Uy),xy=!1,Ad=[];so=null,rd=null,Ou=null,Sy=async()=>{if(!Wn)return;let t=await ew();try{if(typeof t.getAll=="function"){let e=await t.getAll();for(let A of e||[])try{A?.label&&A.label!=="main"&&await A.close()}catch(r){zr("Error closing Tauri webview:",r)}}}catch(e){zr("Error listing Tauri webviews:",e)}try{let e=await t.getByLabel("auth");e&&await e.close()}catch(e){zr("Error closing Tauri auth window by label:",e)}},Qy=async()=>{if(rd&&(clearInterval(rd),rd=null),Ou&&typeof window<"u"&&(window.removeEventListener("message",Ou),Ou=null),so){let t=so;so=null;try{typeof t?.close=="function"&&await t.close()}catch(e){zr("Error closing auth window:",e)}}if(Wn){let t=await ew();await Sy()}if(pi)try{let{Browser:t}=await Z0();await t.close()}catch(t){zr("Error closing Capacitor browser:",t)}if(typeof window<"u"&&window!==window.parent)try{so&&typeof so.close=="function"&&await so.close()}catch(t){zr("Error closing popup fallback:",t)}},J0=async t=>{try{if(await Qy(),!t?.includes("token="))return;let A=new URLSearchParams(t.split("?")[1]).get("token");iA("Google login token:",A);let n=await(await fetch("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:`Bearer ${A}`}})).json(),i={id:n.sub,firstName:n.given_name,lastName:n.family_name,email:n.email,photo:n.picture,accessToken:A};iA("Google user profile:",i),localStorage.setItem("user",JSON.stringify(i)),localStorage.setItem("idToken",A),_y(i,null)}catch(e){_y(null,e)}},Iy=async()=>{if(!xy){if(xy=!0,pi){let{App:t}=await Z0();t.addListener("appUrlOpen",e=>{J0(e.url)})}if(Wn){let{listen:t}=await Promise.resolve().then(()=>(tc(),M0));await t("deep-link://open-url",async e=>{let A=e.payload;typeof A=="object"&&(A=A?.url||A?.payload||null),A&&await J0(A)})}}},Aw=async({appId:t="tevrocsoft",appName:e="Tevroc",serviceUrl:A="https://tevrocsoftapi.netlify.app"}={})=>{iA("appId:",t,"serviceUrl:",A),iA(pi,Wn),await Iy();let r=`${A}/login?mode=mobile&app=${encodeURIComponent(t)}&name=${encodeURIComponent(e)}`;if(pi){let{Browser:o}=await Z0();await o.open({url:r});return}if(Wn){let o=await ew();await Sy();let l=`${A}/login?mode=desktop&app=${encodeURIComponent(t)}&name=${encodeURIComponent(e)}`,h=new o("auth",{url:l,title:`${e} Login`,width:550,height:500,resizable:!0,center:!0});so=h,h.once("tauri://created",()=>{iA("Auth window opened")}),h.once("tauri://error",v=>{Ka("Auth window error:",v)});return}let n=!0,i=typeof window<"u"?window.location.host:t,a=`${A}/login?mode=${n?"localhost":"netlify"}&app=${encodeURIComponent(i)}&name=${encodeURIComponent(e)}`;if(n){let o=window.open(a,"googleLogin","width=500,height=650");o||Ka("Popup blocked"),so=o,Ou=async l=>{let h=new URL(A).origin;if(l.origin===h&&l.data?.type==="google-auth"){let v=l.data?.token||null,m=v?`${window.location.href}${window.location.href.includes("?")?"&":"?"}token=${v}`:window.location.href;await J0(m)}},window.addEventListener("message",Ou),rd=setInterval(()=>{o.closed&&Qy().catch(()=>{})},500);return}}});function Py(t,e=null){nd.forEach(A=>{try{A(t,e)}catch(r){Ka("Payment listener error:",r)}})}function ky(t){return nd.push(t),()=>{let e=nd.indexOf(t);e!==-1&&nd.splice(e,1)}}var Ty,Ny,Ry,zQ,Oy,nd,id,WQ,Pu,nw,$Q,Dy,Hy=zt(()=>{no();jo();Ry=()=>(Ty??=Promise.all([Promise.resolve().then(()=>(Wh(),zh)),Promise.resolve().then(()=>(D0(),k0))]).then(([t,e])=>({App:t.App,Browser:e.Browser})),Ty),zQ=async()=>(Ny??=Promise.resolve().then(()=>(td(),ed)).then(t=>t.WebviewWindow),Ny),Oy=!1,nd=[];id=null,WQ=[],Pu=(...t)=>{t.forEach(e=>{let A={message:e,time:new Date().toISOString()};WQ.push(A),iA(A)})},nw=async(t,e=()=>{})=>{try{if(Pu("PAYMENT CALLBACK:",t),!t?.includes("status="))return;let r=new URLSearchParams(t.split("?")[1]).get("status");Pu("PAYMENT RESULT:",r),r=="success"?Pu("PAYMENT SUCCESS"):Pu("PAYMENT FAILED"),e(r,null),Py(r,null)}catch(A){Pu("PAYMENT CALLBACK ERROR:",A.message),e(null,A),Py(null,A)}},$Q=async(t=()=>{})=>{if(!Oy){if(Oy=!0,pi){let{App:e}=await Ry();e.addListener("appUrlOpen",A=>{nw(A.url,t)})}if(Wn){let{listen:e}=await Promise.resolve().then(()=>(tc(),M0));await e("deep-link://open-url",async A=>{let r=A.payload;if(typeof r=="object"&&(r=r?.url||r?.payload||null),!!r){if(id)try{await id.close(),id=null}catch{}nw(r,t)}})}}},Dy=async(t,{appId:e="tevrocsoft",serviceUrl:A="https://tevrocsoftapi.netlify.app",payAccount:r="default",externalCallback:n=()=>{}}={})=>{await $Q(n);let i=Math.round(Number(t)*100),s=`${A.replace(/\/$/,"")}/yoco-pay`,a=`${s}?mode=mobile&amount=${i}&app=${e}&account=${r}`;if(iA(s,a),pi){let{Browser:v}=await Ry();await v.open({url:a});return}if(Wn){let v=await zQ(),m=`${s}?mode=desktop&amount=${i}&app=${e}&account=${r}`,g=new v("payment",{url:m,title:"Complete Payment",width:550,height:600,resizable:!0,center:!0});id=g,g.once("tauri://created",()=>{iA("Payment window opened")}),g.once("tauri://error",C=>{Ka("Payment window error:",C)});return}let l=window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1"?"localhost":"netlify",h=`${s}?mode=${l}&amount=${i}&app=${e}`;try{let v=window.open(h,"yocoPayment","width=500,height=650");if(!v){window.location.href=h;return}let m=!0,g=!0,C=_=>{try{let x=new URL(A).origin;if(_.origin!==x)return;if(_.data?.type==="payment-result"){let H=_.data?.status||null;m=!1,g=!1,window.removeEventListener("message",C);try{v.close()}catch{}let D=H?`${window.location.href}${window.location.href.includes("?")?"&":"?"}status=${H}`:window.location.href;nw(D,n)}}catch(x){Ka("Payment listener error",x)}};window.addEventListener("message",C);let F=setInterval(()=>{if(!g){clearInterval(F);return}v.closed&&(clearInterval(F),g=!1,m&&(m=!1,window.removeEventListener("message",C)))},500);return}catch{window.location.href=h;return}}});var sw=me((iw,aw)=>{(function(t,e){typeof iw=="object"&&typeof aw<"u"?aw.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.html2canvas=e())})(iw,(function(){"use strict";var t=function(f,c){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var b in d)Object.prototype.hasOwnProperty.call(d,b)&&(p[b]=d[b])},t(f,c)};function e(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");t(f,c);function p(){this.constructor=f}f.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}var A=function(){return A=Object.assign||function(c){for(var p,d=1,b=arguments.length;d<b;d++){p=arguments[d];for(var U in p)Object.prototype.hasOwnProperty.call(p,U)&&(c[U]=p[U])}return c},A.apply(this,arguments)};function r(f,c,p,d){function b(U){return U instanceof p?U:new p(function(L){L(U)})}return new(p||(p=Promise))(function(U,L){function G(ue){try{se(d.next(ue))}catch(Be){L(Be)}}function V(ue){try{se(d.throw(ue))}catch(Be){L(Be)}}function se(ue){ue.done?U(ue.value):b(ue.value).then(G,V)}se((d=d.apply(f,c||[])).next())})}function n(f,c){var p={label:0,sent:function(){if(U[0]&1)throw U[1];return U[1]},trys:[],ops:[]},d,b,U,L;return L={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(L[Symbol.iterator]=function(){return this}),L;function G(se){return function(ue){return V([se,ue])}}function V(se){if(d)throw new TypeError("Generator is already executing.");for(;p;)try{if(d=1,b&&(U=se[0]&2?b.return:se[0]?b.throw||((U=b.return)&&U.call(b),0):b.next)&&!(U=U.call(b,se[1])).done)return U;switch(b=0,U&&(se=[se[0]&2,U.value]),se[0]){case 0:case 1:U=se;break;case 4:return p.label++,{value:se[1],done:!1};case 5:p.label++,b=se[1],se=[0];continue;case 7:se=p.ops.pop(),p.trys.pop();continue;default:if(U=p.trys,!(U=U.length>0&&U[U.length-1])&&(se[0]===6||se[0]===2)){p=0;continue}if(se[0]===3&&(!U||se[1]>U[0]&&se[1]<U[3])){p.label=se[1];break}if(se[0]===6&&p.label<U[1]){p.label=U[1],U=se;break}if(U&&p.label<U[2]){p.label=U[2],p.ops.push(se);break}U[2]&&p.ops.pop(),p.trys.pop();continue}se=c.call(f,p)}catch(ue){se=[6,ue],b=0}finally{d=U=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}}function i(f,c,p){if(p||arguments.length===2)for(var d=0,b=c.length,U;d<b;d++)(U||!(d in c))&&(U||(U=Array.prototype.slice.call(c,0,d)),U[d]=c[d]);return f.concat(U||c)}for(var s=(function(){function f(c,p,d,b){this.left=c,this.top=p,this.width=d,this.height=b}return f.prototype.add=function(c,p,d,b){return new f(this.left+c,this.top+p,this.width+d,this.height+b)},f.fromClientRect=function(c,p){return new f(p.left+c.windowBounds.left,p.top+c.windowBounds.top,p.width,p.height)},f.fromDOMRectList=function(c,p){var d=Array.from(p).find(function(b){return b.width!==0});return d?new f(d.left+c.windowBounds.left,d.top+c.windowBounds.top,d.width,d.height):f.EMPTY},f.EMPTY=new f(0,0,0,0),f})(),a=function(f,c){return s.fromClientRect(f,c.getBoundingClientRect())},o=function(f){var c=f.body,p=f.documentElement;if(!c||!p)throw new Error("Unable to get document size");var d=Math.max(Math.max(c.scrollWidth,p.scrollWidth),Math.max(c.offsetWidth,p.offsetWidth),Math.max(c.clientWidth,p.clientWidth)),b=Math.max(Math.max(c.scrollHeight,p.scrollHeight),Math.max(c.offsetHeight,p.offsetHeight),Math.max(c.clientHeight,p.clientHeight));return new s(0,0,d,b)},l=function(f){for(var c=[],p=0,d=f.length;p<d;){var b=f.charCodeAt(p++);if(b>=55296&&b<=56319&&p<d){var U=f.charCodeAt(p++);(U&64512)===56320?c.push(((b&1023)<<10)+(U&1023)+65536):(c.push(b),p--)}else c.push(b)}return c},h=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];if(String.fromCodePoint)return String.fromCodePoint.apply(String,f);var p=f.length;if(!p)return"";for(var d=[],b=-1,U="";++b<p;){var L=f[b];L<=65535?d.push(L):(L-=65536,d.push((L>>10)+55296,L%1024+56320)),(b+1===p||d.length>16384)&&(U+=String.fromCharCode.apply(String,d),d.length=0)}return U},v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=typeof Uint8Array>"u"?[]:new Uint8Array(256),g=0;g<v.length;g++)m[v.charCodeAt(g)]=g;for(var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F=typeof Uint8Array>"u"?[]:new Uint8Array(256),_=0;_<C.length;_++)F[C.charCodeAt(_)]=_;for(var x=function(f){var c=f.length*.75,p=f.length,d,b=0,U,L,G,V;f[f.length-1]==="="&&(c--,f[f.length-2]==="="&&c--);var se=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(c):new Array(c),ue=Array.isArray(se)?se:new Uint8Array(se);for(d=0;d<p;d+=4)U=F[f.charCodeAt(d)],L=F[f.charCodeAt(d+1)],G=F[f.charCodeAt(d+2)],V=F[f.charCodeAt(d+3)],ue[b++]=U<<2|L>>4,ue[b++]=(L&15)<<4|G>>2,ue[b++]=(G&3)<<6|V&63;return se},H=function(f){for(var c=f.length,p=[],d=0;d<c;d+=2)p.push(f[d+1]<<8|f[d]);return p},D=function(f){for(var c=f.length,p=[],d=0;d<c;d+=4)p.push(f[d+3]<<24|f[d+2]<<16|f[d+1]<<8|f[d]);return p},k=5,re=11,fe=2,Ae=re-k,j=65536>>k,N=1<<k,Z=N-1,I=1024>>k,O=j+I,Y=O,ee=32,ce=Y+ee,be=65536>>re,Fe=1<<Ae,de=Fe-1,Ee=function(f,c,p){return f.slice?f.slice(c,p):new Uint16Array(Array.prototype.slice.call(f,c,p))},Pe=function(f,c,p){return f.slice?f.slice(c,p):new Uint32Array(Array.prototype.slice.call(f,c,p))},Ue=function(f,c){var p=x(f),d=Array.isArray(p)?D(p):new Uint32Array(p),b=Array.isArray(p)?H(p):new Uint16Array(p),U=24,L=Ee(b,U/2,d[4]/2),G=d[5]===2?Ee(b,(U+d[4])/2):Pe(d,Math.ceil((U+d[4])/4));return new P(d[0],d[1],d[2],d[3],L,G)},P=(function(){function f(c,p,d,b,U,L){this.initialValue=c,this.errorValue=p,this.highStart=d,this.highValueIndex=b,this.index=U,this.data=L}return f.prototype.get=function(c){var p;if(c>=0){if(c<55296||c>56319&&c<=65535)return p=this.index[c>>k],p=(p<<fe)+(c&Z),this.data[p];if(c<=65535)return p=this.index[j+(c-55296>>k)],p=(p<<fe)+(c&Z),this.data[p];if(c<this.highStart)return p=ce-be+(c>>re),p=this.index[p],p+=c>>k&de,p=this.index[p],p=(p<<fe)+(c&Z),this.data[p];if(c<=1114111)return this.data[this.highValueIndex]}return this.errorValue},f})(),J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",te=typeof Uint8Array>"u"?[]:new Uint8Array(256),ie=0;ie<J.length;ie++)te[J.charCodeAt(ie)]=ie;var oe="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",ve=50,xe=1,_e=2,Le=3,Oe=4,Je=5,qe=7,at=8,q=9,je=10,Tt=11,ut=12,Re=13,dt=14,$e=15,lt=16,Ze=17,Ut=18,Nt=19,St=20,Ht=21,Ot=22,tt=23,yt=24,Xe=25,aA=26,Gt=27,It=28,Rt=29,tA=30,mt=31,Jt=32,nt=33,xt=34,fA=35,bt=36,Ct=37,sA=38,ln=39,qA=40,WA=41,Sr=42,_t=43,On=[9001,65288],ti="!",Lt="\xD7",vr="\xF7",IA=Ue(oe),mA=[tA,bt],rr=[xe,_e,Le,Je],Bn=[je,at],yi=[Gt,aA],Pn=rr.concat(Bn),oA=[sA,ln,qA,xt,fA],Qr=[$e,Re],Rn=function(f,c){c===void 0&&(c="strict");var p=[],d=[],b=[];return f.forEach(function(U,L){var G=IA.get(U);if(G>ve?(b.push(!0),G-=ve):b.push(!1),["normal","auto","loose"].indexOf(c)!==-1&&[8208,8211,12316,12448].indexOf(U)!==-1)return d.push(L),p.push(lt);if(G===Oe||G===Tt){if(L===0)return d.push(L),p.push(tA);var V=p[L-1];return Pn.indexOf(V)===-1?(d.push(d[L-1]),p.push(V)):(d.push(L),p.push(tA))}if(d.push(L),G===mt)return p.push(c==="strict"?Ht:Ct);if(G===Sr||G===Rt)return p.push(tA);if(G===_t)return U>=131072&&U<=196605||U>=196608&&U<=262141?p.push(Ct):p.push(tA);p.push(G)}),[d,p,b]},kr=function(f,c,p,d){var b=d[p];if(Array.isArray(f)?f.indexOf(b)!==-1:f===b)for(var U=p;U<=d.length;){U++;var L=d[U];if(L===c)return!0;if(L!==je)break}if(b===je)for(var U=p;U>0;){U--;var G=d[U];if(Array.isArray(f)?f.indexOf(G)!==-1:f===G)for(var V=p;V<=d.length;){V++;var L=d[V];if(L===c)return!0;if(L!==je)break}if(G!==je)break}return!1},Ai=function(f,c){for(var p=f;p>=0;){var d=c[p];if(d===je)p--;else return d}return 0},kn=function(f,c,p,d,b){if(p[d]===0)return Lt;var U=d-1;if(Array.isArray(b)&&b[U]===!0)return Lt;var L=U-1,G=U+1,V=c[U],se=L>=0?c[L]:0,ue=c[G];if(V===_e&&ue===Le)return Lt;if(rr.indexOf(V)!==-1)return ti;if(rr.indexOf(ue)!==-1||Bn.indexOf(ue)!==-1)return Lt;if(Ai(U,c)===at)return vr;if(IA.get(f[U])===Tt||(V===Jt||V===nt)&&IA.get(f[G])===Tt||V===qe||ue===qe||V===q||[je,Re,$e].indexOf(V)===-1&&ue===q||[Ze,Ut,Nt,yt,It].indexOf(ue)!==-1||Ai(U,c)===Ot||kr(tt,Ot,U,c)||kr([Ze,Ut],Ht,U,c)||kr(ut,ut,U,c))return Lt;if(V===je)return vr;if(V===tt||ue===tt)return Lt;if(ue===lt||V===lt)return vr;if([Re,$e,Ht].indexOf(ue)!==-1||V===dt||se===bt&&Qr.indexOf(V)!==-1||V===It&&ue===bt||ue===St||mA.indexOf(ue)!==-1&&V===Xe||mA.indexOf(V)!==-1&&ue===Xe||V===Gt&&[Ct,Jt,nt].indexOf(ue)!==-1||[Ct,Jt,nt].indexOf(V)!==-1&&ue===aA||mA.indexOf(V)!==-1&&yi.indexOf(ue)!==-1||yi.indexOf(V)!==-1&&mA.indexOf(ue)!==-1||[Gt,aA].indexOf(V)!==-1&&(ue===Xe||[Ot,$e].indexOf(ue)!==-1&&c[G+1]===Xe)||[Ot,$e].indexOf(V)!==-1&&ue===Xe||V===Xe&&[Xe,It,yt].indexOf(ue)!==-1)return Lt;if([Xe,It,yt,Ze,Ut].indexOf(ue)!==-1)for(var Be=U;Be>=0;){var Ie=c[Be];if(Ie===Xe)return Lt;if([It,yt].indexOf(Ie)!==-1)Be--;else break}if([Gt,aA].indexOf(ue)!==-1)for(var Be=[Ze,Ut].indexOf(V)!==-1?L:U;Be>=0;){var Ie=c[Be];if(Ie===Xe)return Lt;if([It,yt].indexOf(Ie)!==-1)Be--;else break}if(sA===V&&[sA,ln,xt,fA].indexOf(ue)!==-1||[ln,xt].indexOf(V)!==-1&&[ln,qA].indexOf(ue)!==-1||[qA,fA].indexOf(V)!==-1&&ue===qA||oA.indexOf(V)!==-1&&[St,aA].indexOf(ue)!==-1||oA.indexOf(ue)!==-1&&V===Gt||mA.indexOf(V)!==-1&&mA.indexOf(ue)!==-1||V===yt&&mA.indexOf(ue)!==-1||mA.concat(Xe).indexOf(V)!==-1&&ue===Ot&&On.indexOf(f[G])===-1||mA.concat(Xe).indexOf(ue)!==-1&&V===Ut)return Lt;if(V===WA&&ue===WA){for(var it=p[U],ze=1;it>0&&(it--,c[it]===WA);)ze++;if(ze%2!==0)return Lt}return V===Jt&&ue===nt?Lt:vr},Di=function(f,c){c||(c={lineBreak:"normal",wordBreak:"normal"});var p=Rn(f,c.lineBreak),d=p[0],b=p[1],U=p[2];(c.wordBreak==="break-all"||c.wordBreak==="break-word")&&(b=b.map(function(G){return[Xe,tA,Sr].indexOf(G)!==-1?Ct:G}));var L=c.wordBreak==="keep-all"?U.map(function(G,V){return G&&f[V]>=19968&&f[V]<=40959}):void 0;return[d,b,L]},Ua=(function(){function f(c,p,d,b){this.codePoints=c,this.required=p===ti,this.start=d,this.end=b}return f.prototype.slice=function(){return h.apply(void 0,this.codePoints.slice(this.start,this.end))},f})(),xa=function(f,c){var p=l(f),d=Di(p,c),b=d[0],U=d[1],L=d[2],G=p.length,V=0,se=0;return{next:function(){if(se>=G)return{done:!0,value:null};for(var ue=Lt;se<G&&(ue=kn(p,U,b,++se,L))===Lt;);if(ue!==Lt||se===G){var Be=new Ua(p,ue,V,se);return V=se,{value:Be,done:!1}}return{done:!0,value:null}}}},_a=1,Uo=2,Ir=4,Sa=8,cn=10,un=47,Bi=92,is=9,Qa=32,ri=34,ni=61,ra=35,Dr=36,ii=37,$r=39,DA=40,Hi=41,Dn=95,$A=45,as=33,Xr=60,Ia=62,bi=64,ur=91,na=93,ss=61,We=123,X=63,ye=125,Ve=124,st=126,kt=128,Zt=65533,KA=42,yA=43,Yr=44,fr=58,La=59,xA=46,Yc=0,os=8,Pt=11,Jc=14,Zc=31,eu=127,ai=-1,El=48,Mi=97,qi=101,tu=102,Au=117,Ps=122,Rs=65,Ci=69,Fl=70,ks=85,ru=90,hr=function(f){return f>=El&&f<=57},Ta=function(f){return f>=55296&&f<=57343},Ki=function(f){return hr(f)||f>=Rs&&f<=Fl||f>=Mi&&f<=tu},ls=function(f){return f>=Mi&&f<=Ps},xo=function(f){return f>=Rs&&f<=ru},Ds=function(f){return ls(f)||xo(f)},_o=function(f){return f>=kt},ia=function(f){return f===cn||f===is||f===Qa},cs=function(f){return Ds(f)||_o(f)||f===Dn},ji=function(f){return cs(f)||hr(f)||f===$A},aa=function(f){return f>=Yc&&f<=os||f===Pt||f>=Jc&&f<=Zc||f===eu},Ei=function(f,c){return f!==Bi?!1:c!==cn},us=function(f,c,p){return f===$A?cs(c)||Ei(c,p):cs(f)?!0:!!(f===Bi&&Ei(f,c))},Hs=function(f,c,p){return f===yA||f===$A?hr(c)?!0:c===xA&&hr(p):hr(f===xA?c:f)},fs=function(f){var c=0,p=1;(f[c]===yA||f[c]===$A)&&(f[c]===$A&&(p=-1),c++);for(var d=[];hr(f[c]);)d.push(f[c++]);var b=d.length?parseInt(h.apply(void 0,d),10):0;f[c]===xA&&c++;for(var U=[];hr(f[c]);)U.push(f[c++]);var L=U.length,G=L?parseInt(h.apply(void 0,U),10):0;(f[c]===Ci||f[c]===qi)&&c++;var V=1;(f[c]===yA||f[c]===$A)&&(f[c]===$A&&(V=-1),c++);for(var se=[];hr(f[c]);)se.push(f[c++]);var ue=se.length?parseInt(h.apply(void 0,se),10):0;return p*(b+G*Math.pow(10,-L))*Math.pow(10,V*ue)},Ul={type:2},y={type:3},S={type:4},z={type:13},ne={type:8},he={type:21},Se={type:9},ke={type:10},pt={type:11},ft={type:12},Mt={type:14},Dt={type:23},lA={type:1},dr={type:25},LA={type:24},_A={type:26},HA={type:27},jA={type:28},VA={type:29},Jr={type:31},Fi={type:32},Ms=(function(){function f(){this._value=[]}return f.prototype.write=function(c){this._value=this._value.concat(l(c))},f.prototype.read=function(){for(var c=[],p=this.consumeToken();p!==Fi;)c.push(p),p=this.consumeToken();return c},f.prototype.consumeToken=function(){var c=this.consumeCodePoint();switch(c){case ri:return this.consumeStringToken(ri);case ra:var p=this.peekCodePoint(0),d=this.peekCodePoint(1),b=this.peekCodePoint(2);if(ji(p)||Ei(d,b)){var U=us(p,d,b)?Uo:_a,L=this.consumeName();return{type:5,value:L,flags:U}}break;case Dr:if(this.peekCodePoint(0)===ni)return this.consumeCodePoint(),z;break;case $r:return this.consumeStringToken($r);case DA:return Ul;case Hi:return y;case KA:if(this.peekCodePoint(0)===ni)return this.consumeCodePoint(),Mt;break;case yA:if(Hs(c,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(c),this.consumeNumericToken();break;case Yr:return S;case $A:var G=c,V=this.peekCodePoint(0),se=this.peekCodePoint(1);if(Hs(G,V,se))return this.reconsumeCodePoint(c),this.consumeNumericToken();if(us(G,V,se))return this.reconsumeCodePoint(c),this.consumeIdentLikeToken();if(V===$A&&se===Ia)return this.consumeCodePoint(),this.consumeCodePoint(),LA;break;case xA:if(Hs(c,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(c),this.consumeNumericToken();break;case un:if(this.peekCodePoint(0)===KA)for(this.consumeCodePoint();;){var ue=this.consumeCodePoint();if(ue===KA&&(ue=this.consumeCodePoint(),ue===un))return this.consumeToken();if(ue===ai)return this.consumeToken()}break;case fr:return _A;case La:return HA;case Xr:if(this.peekCodePoint(0)===as&&this.peekCodePoint(1)===$A&&this.peekCodePoint(2)===$A)return this.consumeCodePoint(),this.consumeCodePoint(),dr;break;case bi:var Be=this.peekCodePoint(0),Ie=this.peekCodePoint(1),it=this.peekCodePoint(2);if(us(Be,Ie,it)){var L=this.consumeName();return{type:7,value:L}}break;case ur:return jA;case Bi:if(Ei(c,this.peekCodePoint(0)))return this.reconsumeCodePoint(c),this.consumeIdentLikeToken();break;case na:return VA;case ss:if(this.peekCodePoint(0)===ni)return this.consumeCodePoint(),ne;break;case We:return pt;case ye:return ft;case Au:case ks:var ze=this.peekCodePoint(0),et=this.peekCodePoint(1);return ze===yA&&(Ki(et)||et===X)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(c),this.consumeIdentLikeToken();case Ve:if(this.peekCodePoint(0)===ni)return this.consumeCodePoint(),Se;if(this.peekCodePoint(0)===Ve)return this.consumeCodePoint(),he;break;case st:if(this.peekCodePoint(0)===ni)return this.consumeCodePoint(),ke;break;case ai:return Fi}return ia(c)?(this.consumeWhiteSpace(),Jr):hr(c)?(this.reconsumeCodePoint(c),this.consumeNumericToken()):cs(c)?(this.reconsumeCodePoint(c),this.consumeIdentLikeToken()):{type:6,value:h(c)}},f.prototype.consumeCodePoint=function(){var c=this._value.shift();return typeof c>"u"?-1:c},f.prototype.reconsumeCodePoint=function(c){this._value.unshift(c)},f.prototype.peekCodePoint=function(c){return c>=this._value.length?-1:this._value[c]},f.prototype.consumeUnicodeRangeToken=function(){for(var c=[],p=this.consumeCodePoint();Ki(p)&&c.length<6;)c.push(p),p=this.consumeCodePoint();for(var d=!1;p===X&&c.length<6;)c.push(p),p=this.consumeCodePoint(),d=!0;if(d){var b=parseInt(h.apply(void 0,c.map(function(V){return V===X?El:V})),16),U=parseInt(h.apply(void 0,c.map(function(V){return V===X?Fl:V})),16);return{type:30,start:b,end:U}}var L=parseInt(h.apply(void 0,c),16);if(this.peekCodePoint(0)===$A&&Ki(this.peekCodePoint(1))){this.consumeCodePoint(),p=this.consumeCodePoint();for(var G=[];Ki(p)&&G.length<6;)G.push(p),p=this.consumeCodePoint();var U=parseInt(h.apply(void 0,G),16);return{type:30,start:L,end:U}}else return{type:30,start:L,end:L}},f.prototype.consumeIdentLikeToken=function(){var c=this.consumeName();return c.toLowerCase()==="url"&&this.peekCodePoint(0)===DA?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===DA?(this.consumeCodePoint(),{type:19,value:c}):{type:20,value:c}},f.prototype.consumeUrlToken=function(){var c=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ai)return{type:22,value:""};var p=this.peekCodePoint(0);if(p===$r||p===ri){var d=this.consumeStringToken(this.consumeCodePoint());return d.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ai||this.peekCodePoint(0)===Hi)?(this.consumeCodePoint(),{type:22,value:d.value}):(this.consumeBadUrlRemnants(),Dt)}for(;;){var b=this.consumeCodePoint();if(b===ai||b===Hi)return{type:22,value:h.apply(void 0,c)};if(ia(b))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ai||this.peekCodePoint(0)===Hi?(this.consumeCodePoint(),{type:22,value:h.apply(void 0,c)}):(this.consumeBadUrlRemnants(),Dt);if(b===ri||b===$r||b===DA||aa(b))return this.consumeBadUrlRemnants(),Dt;if(b===Bi)if(Ei(b,this.peekCodePoint(0)))c.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Dt;else c.push(b)}},f.prototype.consumeWhiteSpace=function(){for(;ia(this.peekCodePoint(0));)this.consumeCodePoint()},f.prototype.consumeBadUrlRemnants=function(){for(;;){var c=this.consumeCodePoint();if(c===Hi||c===ai)return;Ei(c,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},f.prototype.consumeStringSlice=function(c){for(var p=5e4,d="";c>0;){var b=Math.min(p,c);d+=h.apply(void 0,this._value.splice(0,b)),c-=b}return this._value.shift(),d},f.prototype.consumeStringToken=function(c){var p="",d=0;do{var b=this._value[d];if(b===ai||b===void 0||b===c)return p+=this.consumeStringSlice(d),{type:0,value:p};if(b===cn)return this._value.splice(0,d),lA;if(b===Bi){var U=this._value[d+1];U!==ai&&U!==void 0&&(U===cn?(p+=this.consumeStringSlice(d),d=-1,this._value.shift()):Ei(b,U)&&(p+=this.consumeStringSlice(d),p+=h(this.consumeEscapedCodePoint()),d=-1))}d++}while(!0)},f.prototype.consumeNumber=function(){var c=[],p=Ir,d=this.peekCodePoint(0);for((d===yA||d===$A)&&c.push(this.consumeCodePoint());hr(this.peekCodePoint(0));)c.push(this.consumeCodePoint());d=this.peekCodePoint(0);var b=this.peekCodePoint(1);if(d===xA&&hr(b))for(c.push(this.consumeCodePoint(),this.consumeCodePoint()),p=Sa;hr(this.peekCodePoint(0));)c.push(this.consumeCodePoint());d=this.peekCodePoint(0),b=this.peekCodePoint(1);var U=this.peekCodePoint(2);if((d===Ci||d===qi)&&((b===yA||b===$A)&&hr(U)||hr(b)))for(c.push(this.consumeCodePoint(),this.consumeCodePoint()),p=Sa;hr(this.peekCodePoint(0));)c.push(this.consumeCodePoint());return[fs(c),p]},f.prototype.consumeNumericToken=function(){var c=this.consumeNumber(),p=c[0],d=c[1],b=this.peekCodePoint(0),U=this.peekCodePoint(1),L=this.peekCodePoint(2);if(us(b,U,L)){var G=this.consumeName();return{type:15,number:p,flags:d,unit:G}}return b===ii?(this.consumeCodePoint(),{type:16,number:p,flags:d}):{type:17,number:p,flags:d}},f.prototype.consumeEscapedCodePoint=function(){var c=this.consumeCodePoint();if(Ki(c)){for(var p=h(c);Ki(this.peekCodePoint(0))&&p.length<6;)p+=h(this.consumeCodePoint());ia(this.peekCodePoint(0))&&this.consumeCodePoint();var d=parseInt(p,16);return d===0||Ta(d)||d>1114111?Zt:d}return c===ai?Zt:c},f.prototype.consumeName=function(){for(var c="";;){var p=this.consumeCodePoint();if(ji(p))c+=h(p);else if(Ei(p,this.peekCodePoint(0)))c+=h(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(p),c}},f})(),Na=(function(){function f(c){this._tokens=c}return f.create=function(c){var p=new Ms;return p.write(c),new f(p.read())},f.parseValue=function(c){return f.create(c).parseComponentValue()},f.parseValues=function(c){return f.create(c).parseComponentValues()},f.prototype.parseComponentValue=function(){for(var c=this.consumeToken();c.type===31;)c=this.consumeToken();if(c.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(c);var p=this.consumeComponentValue();do c=this.consumeToken();while(c.type===31);if(c.type===32)return p;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},f.prototype.parseComponentValues=function(){for(var c=[];;){var p=this.consumeComponentValue();if(p.type===32)return c;c.push(p),c.push()}},f.prototype.consumeComponentValue=function(){var c=this.consumeToken();switch(c.type){case 11:case 28:case 2:return this.consumeSimpleBlock(c.type);case 19:return this.consumeFunction(c)}return c},f.prototype.consumeSimpleBlock=function(c){for(var p={type:c,values:[]},d=this.consumeToken();;){if(d.type===32||So(d,c))return p;this.reconsumeToken(d),p.values.push(this.consumeComponentValue()),d=this.consumeToken()}},f.prototype.consumeFunction=function(c){for(var p={name:c.value,values:[],type:18};;){var d=this.consumeToken();if(d.type===32||d.type===3)return p;this.reconsumeToken(d),p.values.push(this.consumeComponentValue())}},f.prototype.consumeToken=function(){var c=this._tokens.shift();return typeof c>"u"?Fi:c},f.prototype.reconsumeToken=function(c){this._tokens.unshift(c)},f})(),Ui=function(f){return f.type===15},Hn=function(f){return f.type===17},cA=function(f){return f.type===20},qs=function(f){return f.type===0},Oa=function(f,c){return cA(f)&&f.value===c},Hr=function(f){return f.type!==31},si=function(f){return f.type!==31&&f.type!==4},Zr=function(f){var c=[],p=[];return f.forEach(function(d){if(d.type===4){if(p.length===0)throw new Error("Error parsing function args, zero tokens for arg");c.push(p),p=[];return}d.type!==31&&p.push(d)}),p.length&&c.push(p),c},So=function(f,c){return c===11&&f.type===12||c===28&&f.type===29?!0:c===2&&f.type===3},Mr=function(f){return f.type===17||f.type===15},uA=function(f){return f.type===16||Mr(f)},Qo=function(f){return f.length>1?[f[0],f[1]]:[f[0]]},XA={type:17,number:0,flags:Ir},Ks={type:16,number:50,flags:Ir},mr={type:16,number:100,flags:Ir},xi=function(f,c,p){var d=f[0],b=f[1];return[BA(d,c),BA(typeof b<"u"?b:d,p)]},BA=function(f,c){if(f.type===16)return f.number/100*c;if(Ui(f))switch(f.unit){case"rem":case"em":return 16*f.number;default:return f.number}return f.number},hs="deg",Pa="grad",js="rad",en="turn",qr={name:"angle",parse:function(f,c){if(c.type===15)switch(c.unit){case hs:return Math.PI*c.number/180;case Pa:return Math.PI/200*c.number;case js:return c.number;case en:return Math.PI*2*c.number}throw new Error("Unsupported angle type")}},ds=function(f){return f.type===15&&(f.unit===hs||f.unit===Pa||f.unit===js||f.unit===en)},sa=function(f){var c=f.filter(cA).map(function(p){return p.value}).join(" ");switch(c){case"to bottom right":case"to right bottom":case"left top":case"top left":return[XA,XA];case"to top":case"bottom":return yr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[XA,mr];case"to right":case"left":return yr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[mr,mr];case"to bottom":case"top":return yr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[mr,XA];case"to left":case"right":return yr(270)}return 0},yr=function(f){return Math.PI*f/180},Mn={name:"color",parse:function(f,c){if(c.type===18){var p=Io[c.name];if(typeof p>"u")throw new Error('Attempting to parse an unsupported color function "'+c.name+'"');return p(f,c.values)}if(c.type===5){if(c.value.length===3){var d=c.value.substring(0,1),b=c.value.substring(1,2),U=c.value.substring(2,3);return Vi(parseInt(d+d,16),parseInt(b+b,16),parseInt(U+U,16),1)}if(c.value.length===4){var d=c.value.substring(0,1),b=c.value.substring(1,2),U=c.value.substring(2,3),L=c.value.substring(3,4);return Vi(parseInt(d+d,16),parseInt(b+b,16),parseInt(U+U,16),parseInt(L+L,16)/255)}if(c.value.length===6){var d=c.value.substring(0,2),b=c.value.substring(2,4),U=c.value.substring(4,6);return Vi(parseInt(d,16),parseInt(b,16),parseInt(U,16),1)}if(c.value.length===8){var d=c.value.substring(0,2),b=c.value.substring(2,4),U=c.value.substring(4,6),L=c.value.substring(6,8);return Vi(parseInt(d,16),parseInt(b,16),parseInt(U,16),parseInt(L,16)/255)}}if(c.type===20){var G=fn[c.value.toUpperCase()];if(typeof G<"u")return G}return fn.TRANSPARENT}},bn=function(f){return(255&f)===0},nA=function(f){var c=255&f,p=255&f>>8,d=255&f>>16,b=255&f>>24;return c<255?"rgba("+b+","+d+","+p+","+c/255+")":"rgb("+b+","+d+","+p+")"},Vi=function(f,c,p,d){return(f<<24|c<<16|p<<8|Math.round(d*255)<<0)>>>0},_i=function(f,c){if(f.type===17)return f.number;if(f.type===16){var p=c===3?1:255;return c===3?f.number/100*p:Math.round(f.number/100*p)}return 0},oi=function(f,c){var p=c.filter(si);if(p.length===3){var d=p.map(_i),b=d[0],U=d[1],L=d[2];return Vi(b,U,L,1)}if(p.length===4){var G=p.map(_i),b=G[0],U=G[1],L=G[2],V=G[3];return Vi(b,U,L,V)}return 0};function oa(f,c,p){return p<0&&(p+=1),p>=1&&(p-=1),p<1/6?(c-f)*p*6+f:p<1/2?c:p<2/3?(c-f)*6*(2/3-p)+f:f}var Vs=function(f,c){var p=c.filter(si),d=p[0],b=p[1],U=p[2],L=p[3],G=(d.type===17?yr(d.number):qr.parse(f,d))/(Math.PI*2),V=uA(b)?b.number/100:0,se=uA(U)?U.number/100:0,ue=typeof L<"u"&&uA(L)?BA(L,1):1;if(V===0)return Vi(se*255,se*255,se*255,1);var Be=se<=.5?se*(V+1):se+V-se*V,Ie=se*2-Be,it=oa(Ie,Be,G+1/3),ze=oa(Ie,Be,G),et=oa(Ie,Be,G-1/3);return Vi(it*255,ze*255,et*255,ue)},Io={hsl:Vs,hsla:Vs,rgb:oi,rgba:oi},Gi=function(f,c){return Mn.parse(f,Na.create(c).parseComponentValue())},fn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},ps={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(f,c){return c.map(function(p){if(cA(p))switch(p.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ra={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},li=function(f,c){var p=Mn.parse(f,c[0]),d=c[1];return d&&uA(d)?{color:p,stop:d}:{color:p,stop:null}},la=function(f,c){var p=f[0],d=f[f.length-1];p.stop===null&&(p.stop=XA),d.stop===null&&(d.stop=mr);for(var b=[],U=0,L=0;L<f.length;L++){var G=f[L].stop;if(G!==null){var V=BA(G,c);V>U?b.push(V):b.push(U),U=V}else b.push(null)}for(var se=null,L=0;L<b.length;L++){var ue=b[L];if(ue===null)se===null&&(se=L);else if(se!==null){for(var Be=L-se,Ie=b[se-1],it=(ue-Ie)/(Be+1),ze=1;ze<=Be;ze++)b[se+ze-1]=it*ze;se=null}}return f.map(function(et,eA){var Bt=et.color;return{color:Bt,stop:Math.max(Math.min(1,b[eA]/c),0)}})},Gs=function(f,c,p){var d=c/2,b=p/2,U=BA(f[0],c)-d,L=b-BA(f[1],p);return(Math.atan2(L,U)+Math.PI*2)%(Math.PI*2)},tn=function(f,c,p){var d=typeof f=="number"?f:Gs(f,c,p),b=Math.abs(c*Math.sin(d))+Math.abs(p*Math.cos(d)),U=c/2,L=p/2,G=b/2,V=Math.sin(d-Math.PI/2)*G,se=Math.cos(d-Math.PI/2)*G;return[b,U-se,U+se,L-V,L+V]},pr=function(f,c){return Math.sqrt(f*f+c*c)},TA=function(f,c,p,d,b){var U=[[0,0],[0,c],[f,0],[f,c]];return U.reduce(function(L,G){var V=G[0],se=G[1],ue=pr(p-V,d-se);return(b?ue<L.optimumDistance:ue>L.optimumDistance)?{optimumCorner:G,optimumDistance:ue}:L},{optimumDistance:b?1/0:-1/0,optimumCorner:null}).optimumCorner},RA=function(f,c,p,d,b){var U=0,L=0;switch(f.size){case 0:f.shape===0?U=L=Math.min(Math.abs(c),Math.abs(c-d),Math.abs(p),Math.abs(p-b)):f.shape===1&&(U=Math.min(Math.abs(c),Math.abs(c-d)),L=Math.min(Math.abs(p),Math.abs(p-b)));break;case 2:if(f.shape===0)U=L=Math.min(pr(c,p),pr(c,p-b),pr(c-d,p),pr(c-d,p-b));else if(f.shape===1){var G=Math.min(Math.abs(p),Math.abs(p-b))/Math.min(Math.abs(c),Math.abs(c-d)),V=TA(d,b,c,p,!0),se=V[0],ue=V[1];U=pr(se-c,(ue-p)/G),L=G*U}break;case 1:f.shape===0?U=L=Math.max(Math.abs(c),Math.abs(c-d),Math.abs(p),Math.abs(p-b)):f.shape===1&&(U=Math.max(Math.abs(c),Math.abs(c-d)),L=Math.max(Math.abs(p),Math.abs(p-b)));break;case 3:if(f.shape===0)U=L=Math.max(pr(c,p),pr(c,p-b),pr(c-d,p),pr(c-d,p-b));else if(f.shape===1){var G=Math.max(Math.abs(p),Math.abs(p-b))/Math.max(Math.abs(c),Math.abs(c-d)),Be=TA(d,b,c,p,!1),se=Be[0],ue=Be[1];U=pr(se-c,(ue-p)/G),L=G*U}break}return Array.isArray(f.size)&&(U=BA(f.size[0],d),L=f.size.length===2?BA(f.size[1],b):U),[U,L]},nr=function(f,c){var p=yr(180),d=[];return Zr(c).forEach(function(b,U){if(U===0){var L=b[0];if(L.type===20&&L.value==="to"){p=sa(b);return}else if(ds(L)){p=qr.parse(f,L);return}}var G=li(f,b);d.push(G)}),{angle:p,stops:d,type:1}},YA=function(f,c){var p=yr(180),d=[];return Zr(c).forEach(function(b,U){if(U===0){var L=b[0];if(L.type===20&&["top","left","right","bottom"].indexOf(L.value)!==-1){p=sa(b);return}else if(ds(L)){p=(qr.parse(f,L)+yr(270))%yr(360);return}}var G=li(f,b);d.push(G)}),{angle:p,stops:d,type:1}},ca=function(f,c){var p=yr(180),d=[],b=1,U=0,L=3,G=[];return Zr(c).forEach(function(V,se){var ue=V[0];if(se===0){if(cA(ue)&&ue.value==="linear"){b=1;return}else if(cA(ue)&&ue.value==="radial"){b=2;return}}if(ue.type===18){if(ue.name==="from"){var Be=Mn.parse(f,ue.values[0]);d.push({stop:XA,color:Be})}else if(ue.name==="to"){var Be=Mn.parse(f,ue.values[0]);d.push({stop:mr,color:Be})}else if(ue.name==="color-stop"){var Ie=ue.values.filter(si);if(Ie.length===2){var Be=Mn.parse(f,Ie[1]),it=Ie[0];Hn(it)&&d.push({stop:{type:16,number:it.number*100,flags:it.flags},color:Be})}}}}),b===1?{angle:(p+yr(180))%yr(360),stops:d,type:b}:{size:L,shape:U,stops:d,position:G,type:b}},zs="closest-side",gs="farthest-side",Lo="closest-corner",nu="farthest-corner",iu="circle",au="ellipse",su="cover",Ws="contain",ih=function(f,c){var p=0,d=3,b=[],U=[];return Zr(c).forEach(function(L,G){var V=!0;if(G===0){var se=!1;V=L.reduce(function(Be,Ie){if(se)if(cA(Ie))switch(Ie.value){case"center":return U.push(Ks),Be;case"top":case"left":return U.push(XA),Be;case"right":case"bottom":return U.push(mr),Be}else(uA(Ie)||Mr(Ie))&&U.push(Ie);else if(cA(Ie))switch(Ie.value){case iu:return p=0,!1;case au:return p=1,!1;case"at":return se=!0,!1;case zs:return d=0,!1;case su:case gs:return d=1,!1;case Ws:case Lo:return d=2,!1;case nu:return d=3,!1}else if(Mr(Ie)||uA(Ie))return Array.isArray(d)||(d=[]),d.push(Ie),!1;return Be},V)}if(V){var ue=li(f,L);b.push(ue)}}),{size:d,shape:p,stops:b,position:U,type:2}},To=function(f,c){var p=0,d=3,b=[],U=[];return Zr(c).forEach(function(L,G){var V=!0;if(G===0?V=L.reduce(function(ue,Be){if(cA(Be))switch(Be.value){case"center":return U.push(Ks),!1;case"top":case"left":return U.push(XA),!1;case"right":case"bottom":return U.push(mr),!1}else if(uA(Be)||Mr(Be))return U.push(Be),!1;return ue},V):G===1&&(V=L.reduce(function(ue,Be){if(cA(Be))switch(Be.value){case iu:return p=0,!1;case au:return p=1,!1;case Ws:case zs:return d=0,!1;case gs:return d=1,!1;case Lo:return d=2,!1;case su:case nu:return d=3,!1}else if(Mr(Be)||uA(Be))return Array.isArray(d)||(d=[]),d.push(Be),!1;return ue},V)),V){var se=li(f,L);b.push(se)}}),{size:d,shape:p,stops:b,position:U,type:2}},ah=function(f){return f.type===1},sh=function(f){return f.type===2},xl={name:"image",parse:function(f,c){if(c.type===22){var p={url:c.value,type:0};return f.cache.addImage(c.value),p}if(c.type===18){var d=ou[c.name];if(typeof d>"u")throw new Error('Attempting to parse an unsupported image function "'+c.name+'"');return d(f,c.values)}throw new Error("Unsupported image type "+c.type)}};function oh(f){return!(f.type===20&&f.value==="none")&&(f.type!==18||!!ou[f.name])}var ou={"linear-gradient":nr,"-moz-linear-gradient":YA,"-ms-linear-gradient":YA,"-o-linear-gradient":YA,"-webkit-linear-gradient":YA,"radial-gradient":ih,"-moz-radial-gradient":To,"-ms-radial-gradient":To,"-o-radial-gradient":To,"-webkit-radial-gradient":To,"-webkit-gradient":ca},lh={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(f,c){if(c.length===0)return[];var p=c[0];return p.type===20&&p.value==="none"?[]:c.filter(function(d){return si(d)&&oh(d)}).map(function(d){return xl.parse(f,d)})}},lu={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(f,c){return c.map(function(p){if(cA(p))switch(p.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},_l={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(f,c){return Zr(c).map(function(p){return p.filter(uA)}).map(Qo)}},qn={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(f,c){return Zr(c).map(function(p){return p.filter(cA).map(function(d){return d.value}).join(" ")}).map(ci)}},ci=function(f){switch(f){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},ua;(function(f){f.AUTO="auto",f.CONTAIN="contain",f.COVER="cover"})(ua||(ua={}));var Sl={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(f,c){return Zr(c).map(function(p){return p.filter(ch)})}},ch=function(f){return cA(f)||uA(f)},ws=function(f){return{name:"border-"+f+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ql=ws("top"),cu=ws("right"),uh=ws("bottom"),uu=ws("left"),$s=function(f){return{name:"border-radius-"+f,initialValue:"0 0",prefix:!1,type:1,parse:function(c,p){return Qo(p.filter(uA))}}},Il=$s("top-left"),fu=$s("top-right"),Kg=$s("bottom-right"),jg=$s("bottom-left"),No=function(f){return{name:"border-"+f+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(c,p){switch(p){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Vg=No("top"),Gg=No("right"),zg=No("bottom"),Wg=No("left"),Ll=function(f){return{name:"border-"+f+"-width",initialValue:"0",type:0,prefix:!1,parse:function(c,p){return Ui(p)?p.number:0}}},hu=Ll("top"),du=Ll("right"),Oo=Ll("bottom"),$g=Ll("left"),Xg={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fh={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(f,c){return c==="rtl"?1:0}},Yg={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(f,c){return c.filter(cA).reduce(function(p,d){return p|Jg(d.value)},0)}},Jg=function(f){switch(f){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Zg={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(f,c){switch(c){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},e0={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(f,c){return c.type===20&&c.value==="normal"?0:c.type===17||c.type===15?c.number:0}},Si;(function(f){f.NORMAL="normal",f.STRICT="strict"})(Si||(Si={}));var Qi={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(f,c){return c==="strict"?Si.STRICT:Si.NORMAL}},fa={name:"line-height",initialValue:"normal",prefix:!1,type:4},hh=function(f,c){return cA(f)&&f.value==="normal"?1.2*c:f.type===17?c*f.number:uA(f)?BA(f,c):c},dh={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(f,c){return c.type===20&&c.value==="none"?null:xl.parse(f,c)}},ka={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(f,c){return c==="inside"?0:1}},Cn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(f,c){switch(c){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Tl=function(f){return{name:"margin-"+f,initialValue:"0",prefix:!1,type:4}},t0=Tl("top"),ph=Tl("right"),gh=Tl("bottom"),wh=Tl("left"),vh={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(f,c){return c.filter(cA).map(function(p){switch(p.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},A0={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(f,c){return c==="break-word"?"break-word":"normal"}},vs=function(f){return{name:"padding-"+f,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Nl=vs("top"),Po=vs("right"),pu=vs("bottom"),mh=vs("left"),r0={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(f,c){switch(c){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},yh={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(f,c){switch(c){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},n0={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(f,c){return c.length===1&&Oa(c[0],"none")?[]:Zr(c).map(function(p){for(var d={color:fn.TRANSPARENT,offsetX:XA,offsetY:XA,blur:XA},b=0,U=0;U<p.length;U++){var L=p[U];Mr(L)?(b===0?d.offsetX=L:b===1?d.offsetY=L:d.blur=L,b++):d.color=Mn.parse(f,L)}return d})}},i0={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(f,c){switch(c){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},a0={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(f,c){if(c.type===20&&c.value==="none")return null;if(c.type===18){var p=l0[c.name];if(typeof p>"u")throw new Error('Attempting to parse an unsupported transform function "'+c.name+'"');return p(c.values)}return null}},s0=function(f){var c=f.filter(function(p){return p.type===17}).map(function(p){return p.number});return c.length===6?c:null},o0=function(f){var c=f.filter(function(V){return V.type===17}).map(function(V){return V.number}),p=c[0],d=c[1];c[2],c[3];var b=c[4],U=c[5];c[6],c[7],c[8],c[9],c[10],c[11];var L=c[12],G=c[13];return c[14],c[15],c.length===16?[p,d,b,U,L,G]:null},l0={matrix:s0,matrix3d:o0},gu={type:16,number:50,flags:Ir},Ol=[gu,gu],c0={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(f,c){var p=c.filter(uA);return p.length!==2?Ol:[p[0],p[1]]}},u0={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(f,c){switch(c){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Xs;(function(f){f.NORMAL="normal",f.BREAK_ALL="break-all",f.KEEP_ALL="keep-all"})(Xs||(Xs={}));for(var u={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(f,c){switch(c){case"break-all":return Xs.BREAK_ALL;case"keep-all":return Xs.KEEP_ALL;default:return Xs.NORMAL}}},w={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(f,c){if(c.type===20)return{auto:!0,order:0};if(Hn(c))return{auto:!1,order:c.number};throw new Error("Invalid z-index number parsed")}},B={name:"time",parse:function(f,c){if(c.type===15)switch(c.unit.toLowerCase()){case"s":return 1e3*c.number;case"ms":return c.number}throw new Error("Unsupported time type")}},E={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(f,c){return Hn(c)?c.number:1}},Q={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},T={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(f,c){return c.filter(cA).map(function(p){switch(p.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(p){return p!==0})}},R={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(f,c){var p=[],d=[];return c.forEach(function(b){switch(b.type){case 20:case 0:p.push(b.value);break;case 17:p.push(b.number.toString());break;case 4:d.push(p.join(" ")),p.length=0;break}}),p.length&&d.push(p.join(" ")),d.map(function(b){return b.indexOf(" ")===-1?b:"'"+b+"'"})}},M={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},K={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(f,c){return Hn(c)?c.number:cA(c)&&c.value==="bold"?700:400}},W={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(f,c){return c.filter(cA).map(function(p){return p.value})}},ae={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(f,c){switch(c){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},pe=function(f,c){return(f&c)!==0},$={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(f,c){if(c.length===0)return[];var p=c[0];return p.type===20&&p.value==="none"?[]:c}},le={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(f,c){if(c.length===0)return null;var p=c[0];if(p.type===20&&p.value==="none")return null;for(var d=[],b=c.filter(Hr),U=0;U<b.length;U++){var L=b[U],G=b[U+1];if(L.type===20){var V=G&&Hn(G)?G.number:1;d.push({counter:L.value,increment:V})}}return d}},we={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(f,c){if(c.length===0)return[];for(var p=[],d=c.filter(Hr),b=0;b<d.length;b++){var U=d[b],L=d[b+1];if(cA(U)&&U.value!=="none"){var G=L&&Hn(L)?L.number:0;p.push({counter:U.value,reset:G})}}return p}},Qe={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(f,c){return c.filter(Ui).map(function(p){return B.parse(f,p)})}},Ce={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(f,c){if(c.length===0)return null;var p=c[0];if(p.type===20&&p.value==="none")return null;var d=[],b=c.filter(qs);if(b.length%2!==0)return null;for(var U=0;U<b.length;U+=2){var L=b[U].value,G=b[U+1].value;d.push({open:L,close:G})}return d}},Te=function(f,c,p){if(!f)return"";var d=f[Math.min(c,f.length-1)];return d?p?d.open:d.close:""},Ne={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(f,c){return c.length===1&&Oa(c[0],"none")?[]:Zr(c).map(function(p){for(var d={color:255,offsetX:XA,offsetY:XA,blur:XA,spread:XA,inset:!1},b=0,U=0;U<p.length;U++){var L=p[U];Oa(L,"inset")?d.inset=!0:Mr(L)?(b===0?d.offsetX=L:b===1?d.offsetY=L:b===2?d.blur=L:d.spread=L,b++):d.color=Mn.parse(f,L)}return d})}},Ke={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(f,c){var p=[0,1,2],d=[];return c.filter(cA).forEach(function(b){switch(b.value){case"stroke":d.push(1);break;case"fill":d.push(0);break;case"markers":d.push(2);break}}),p.forEach(function(b){d.indexOf(b)===-1&&d.push(b)}),d}},De={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Et={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(f,c){return Ui(c)?c.number:0}},ct=(function(){function f(c,p){var d,b;this.animationDuration=He(c,Qe,p.animationDuration),this.backgroundClip=He(c,ps,p.backgroundClip),this.backgroundColor=He(c,Ra,p.backgroundColor),this.backgroundImage=He(c,lh,p.backgroundImage),this.backgroundOrigin=He(c,lu,p.backgroundOrigin),this.backgroundPosition=He(c,_l,p.backgroundPosition),this.backgroundRepeat=He(c,qn,p.backgroundRepeat),this.backgroundSize=He(c,Sl,p.backgroundSize),this.borderTopColor=He(c,Ql,p.borderTopColor),this.borderRightColor=He(c,cu,p.borderRightColor),this.borderBottomColor=He(c,uh,p.borderBottomColor),this.borderLeftColor=He(c,uu,p.borderLeftColor),this.borderTopLeftRadius=He(c,Il,p.borderTopLeftRadius),this.borderTopRightRadius=He(c,fu,p.borderTopRightRadius),this.borderBottomRightRadius=He(c,Kg,p.borderBottomRightRadius),this.borderBottomLeftRadius=He(c,jg,p.borderBottomLeftRadius),this.borderTopStyle=He(c,Vg,p.borderTopStyle),this.borderRightStyle=He(c,Gg,p.borderRightStyle),this.borderBottomStyle=He(c,zg,p.borderBottomStyle),this.borderLeftStyle=He(c,Wg,p.borderLeftStyle),this.borderTopWidth=He(c,hu,p.borderTopWidth),this.borderRightWidth=He(c,du,p.borderRightWidth),this.borderBottomWidth=He(c,Oo,p.borderBottomWidth),this.borderLeftWidth=He(c,$g,p.borderLeftWidth),this.boxShadow=He(c,Ne,p.boxShadow),this.color=He(c,Xg,p.color),this.direction=He(c,fh,p.direction),this.display=He(c,Yg,p.display),this.float=He(c,Zg,p.cssFloat),this.fontFamily=He(c,R,p.fontFamily),this.fontSize=He(c,M,p.fontSize),this.fontStyle=He(c,ae,p.fontStyle),this.fontVariant=He(c,W,p.fontVariant),this.fontWeight=He(c,K,p.fontWeight),this.letterSpacing=He(c,e0,p.letterSpacing),this.lineBreak=He(c,Qi,p.lineBreak),this.lineHeight=He(c,fa,p.lineHeight),this.listStyleImage=He(c,dh,p.listStyleImage),this.listStylePosition=He(c,ka,p.listStylePosition),this.listStyleType=He(c,Cn,p.listStyleType),this.marginTop=He(c,t0,p.marginTop),this.marginRight=He(c,ph,p.marginRight),this.marginBottom=He(c,gh,p.marginBottom),this.marginLeft=He(c,wh,p.marginLeft),this.opacity=He(c,E,p.opacity);var U=He(c,vh,p.overflow);this.overflowX=U[0],this.overflowY=U[U.length>1?1:0],this.overflowWrap=He(c,A0,p.overflowWrap),this.paddingTop=He(c,Nl,p.paddingTop),this.paddingRight=He(c,Po,p.paddingRight),this.paddingBottom=He(c,pu,p.paddingBottom),this.paddingLeft=He(c,mh,p.paddingLeft),this.paintOrder=He(c,Ke,p.paintOrder),this.position=He(c,yh,p.position),this.textAlign=He(c,r0,p.textAlign),this.textDecorationColor=He(c,Q,(d=p.textDecorationColor)!==null&&d!==void 0?d:p.color),this.textDecorationLine=He(c,T,(b=p.textDecorationLine)!==null&&b!==void 0?b:p.textDecoration),this.textShadow=He(c,n0,p.textShadow),this.textTransform=He(c,i0,p.textTransform),this.transform=He(c,a0,p.transform),this.transformOrigin=He(c,c0,p.transformOrigin),this.visibility=He(c,u0,p.visibility),this.webkitTextStrokeColor=He(c,De,p.webkitTextStrokeColor),this.webkitTextStrokeWidth=He(c,Et,p.webkitTextStrokeWidth),this.wordBreak=He(c,u,p.wordBreak),this.zIndex=He(c,w,p.zIndex)}return f.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},f.prototype.isTransparent=function(){return bn(this.backgroundColor)},f.prototype.isTransformed=function(){return this.transform!==null},f.prototype.isPositioned=function(){return this.position!==0},f.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},f.prototype.isFloating=function(){return this.float!==0},f.prototype.isInlineLevel=function(){return pe(this.display,4)||pe(this.display,33554432)||pe(this.display,268435456)||pe(this.display,536870912)||pe(this.display,67108864)||pe(this.display,134217728)},f})(),Xt=(function(){function f(c,p){this.content=He(c,$,p.content),this.quotes=He(c,Ce,p.quotes)}return f})(),gt=(function(){function f(c,p){this.counterIncrement=He(c,le,p.counterIncrement),this.counterReset=He(c,we,p.counterReset)}return f})(),He=function(f,c,p){var d=new Ms,b=p!==null&&typeof p<"u"?p.toString():c.initialValue;d.write(b);var U=new Na(d.read());switch(c.type){case 2:var L=U.parseComponentValue();return c.parse(f,cA(L)?L.value:c.initialValue);case 0:return c.parse(f,U.parseComponentValue());case 1:return c.parse(f,U.parseComponentValues());case 4:return U.parseComponentValue();case 3:switch(c.format){case"angle":return qr.parse(f,U.parseComponentValue());case"color":return Mn.parse(f,U.parseComponentValue());case"image":return xl.parse(f,U.parseComponentValue());case"length":var G=U.parseComponentValue();return Mr(G)?G:XA;case"length-percentage":var V=U.parseComponentValue();return uA(V)?V:XA;case"time":return B.parse(f,U.parseComponentValue())}break}},Br="data-html2canvas-debug",Yt=function(f){var c=f.getAttribute(Br);switch(c){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ht=function(f,c){var p=Yt(f);return p===1||c===p},Ge=(function(){function f(c,p){if(this.context=c,this.textNodes=[],this.elements=[],this.flags=0,ht(p,3))debugger;this.styles=new ct(c,window.getComputedStyle(p,null)),w0(p)&&(this.styles.animationDuration.some(function(d){return d>0})&&(p.style.animationDuration="0s"),this.styles.transform!==null&&(p.style.transform="none")),this.bounds=a(this.context,p),ht(p,4)&&(this.flags|=16)}return f})(),ir="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",AA=typeof Uint8Array>"u"?[]:new Uint8Array(256),SA=0;SA<jt.length;SA++)AA[jt.charCodeAt(SA)]=SA;for(var Kr=function(f){var c=f.length*.75,p=f.length,d,b=0,U,L,G,V;f[f.length-1]==="="&&(c--,f[f.length-2]==="="&&c--);var se=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(c):new Array(c),ue=Array.isArray(se)?se:new Uint8Array(se);for(d=0;d<p;d+=4)U=AA[f.charCodeAt(d)],L=AA[f.charCodeAt(d+1)],G=AA[f.charCodeAt(d+2)],V=AA[f.charCodeAt(d+3)],ue[b++]=U<<2|L>>4,ue[b++]=(L&15)<<4|G>>2,ue[b++]=(G&3)<<6|V&63;return se},hn=function(f){for(var c=f.length,p=[],d=0;d<c;d+=2)p.push(f[d+1]<<8|f[d]);return p},JA=function(f){for(var c=f.length,p=[],d=0;d<c;d+=4)p.push(f[d+3]<<24|f[d+2]<<16|f[d+1]<<8|f[d]);return p},ZA=5,jr=11,ar=2,hA=jr-ZA,bA=65536>>ZA,er=1<<ZA,vA=er-1,Vr=1024>>ZA,Ii=bA+Vr,sr=Ii,En=32,NA=sr+En,br=65536>>jr,Kn=1<<hA,dn=Kn-1,Fn=function(f,c,p){return f.slice?f.slice(c,p):new Uint16Array(Array.prototype.slice.call(f,c,p))},jn=function(f,c,p){return f.slice?f.slice(c,p):new Uint32Array(Array.prototype.slice.call(f,c,p))},Un=function(f,c){var p=Kr(f),d=Array.isArray(p)?JA(p):new Uint32Array(p),b=Array.isArray(p)?hn(p):new Uint16Array(p),U=24,L=Fn(b,U/2,d[4]/2),G=d[5]===2?Fn(b,(U+d[4])/2):jn(d,Math.ceil((U+d[4])/4));return new Vn(d[0],d[1],d[2],d[3],L,G)},Vn=(function(){function f(c,p,d,b,U,L){this.initialValue=c,this.errorValue=p,this.highStart=d,this.highValueIndex=b,this.index=U,this.data=L}return f.prototype.get=function(c){var p;if(c>=0){if(c<55296||c>56319&&c<=65535)return p=this.index[c>>ZA],p=(p<<ar)+(c&vA),this.data[p];if(c<=65535)return p=this.index[bA+(c-55296>>ZA)],p=(p<<ar)+(c&vA),this.data[p];if(c<this.highStart)return p=NA-br+(c>>jr),p=this.index[p],p+=c>>ZA&dn,p=this.index[p],p=(p<<ar)+(c&vA),this.data[p];if(c<=1114111)return this.data[this.highValueIndex]}return this.errorValue},f})(),OA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gn=typeof Uint8Array>"u"?[]:new Uint8Array(256),xn=0;xn<OA.length;xn++)Gn[OA.charCodeAt(xn)]=xn;var ms=1,Li=2,Cr=3,Ro=4,Pl=5,Rl=7,Ys=8,wu=9,vu=10,kl=11,ha=12,Bh=13,bh=14,mu=15,Ch=function(f){for(var c=[],p=0,d=f.length;p<d;){var b=f.charCodeAt(p++);if(b>=55296&&b<=56319&&p<d){var U=f.charCodeAt(p++);(U&64512)===56320?c.push(((b&1023)<<10)+(U&1023)+65536):(c.push(b),p--)}else c.push(b)}return c},Dl=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];if(String.fromCodePoint)return String.fromCodePoint.apply(String,f);var p=f.length;if(!p)return"";for(var d=[],b=-1,U="";++b<p;){var L=f[b];L<=65535?d.push(L):(L-=65536,d.push((L>>10)+55296,L%1024+56320)),(b+1===p||d.length>16384)&&(U+=String.fromCharCode.apply(String,d),d.length=0)}return U},Eh=Un(ir),zn="\xD7",Js="\xF7",yu=function(f){return Eh.get(f)},ko=function(f,c,p){var d=p-2,b=c[d],U=c[p-1],L=c[p];if(U===Li&&L===Cr)return zn;if(U===Li||U===Cr||U===Ro||L===Li||L===Cr||L===Ro)return Js;if(U===Ys&&[Ys,wu,kl,ha].indexOf(L)!==-1||(U===kl||U===wu)&&(L===wu||L===vu)||(U===ha||U===vu)&&L===vu||L===Bh||L===Pl||L===Rl||U===ms)return zn;if(U===Bh&&L===bh){for(;b===Pl;)b=c[--d];if(b===bh)return zn}if(U===mu&&L===mu){for(var G=0;b===mu;)G++,b=c[--d];if(G%2===0)return zn}return Js},Fh=function(f){var c=Ch(f),p=c.length,d=0,b=0,U=c.map(yu);return{next:function(){if(d>=p)return{done:!0,value:null};for(var L=zn;d<p&&(L=ko(c,U,++d))===zn;);if(L!==zn||d===p){var G=Dl.apply(null,c.slice(b,d));return b=d,{value:G,done:!1}}return{done:!0,value:null}}}},f0=function(f){for(var c=Fh(f),p=[],d;!(d=c.next()).done;)d.value&&p.push(d.value.slice());return p},Hl=function(f){var c=123;if(f.createRange){var p=f.createRange();if(p.getBoundingClientRect){var d=f.createElement("boundtest");d.style.height=c+"px",d.style.display="block",f.body.appendChild(d),p.selectNode(d);var b=p.getBoundingClientRect(),U=Math.round(b.height);if(f.body.removeChild(d),U===c)return!0}}return!1},Uh=function(f){var c=f.createElement("boundtest");c.style.width="50px",c.style.display="block",c.style.fontSize="12px",c.style.letterSpacing="0px",c.style.wordSpacing="0px",f.body.appendChild(c);var p=f.createRange();c.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var d=c.firstChild,b=l(d.data).map(function(V){return h(V)}),U=0,L={},G=b.every(function(V,se){p.setStart(d,U),p.setEnd(d,U+V.length);var ue=p.getBoundingClientRect();U+=V.length;var Be=ue.x>L.x||ue.y>L.y;return L=ue,se===0?!0:Be});return f.body.removeChild(c),G},Bu=function(){return typeof new Image().crossOrigin<"u"},Da=function(){return typeof new XMLHttpRequest().responseType=="string"},xh=function(f){var c=new Image,p=f.createElement("canvas"),d=p.getContext("2d");if(!d)return!1;c.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{d.drawImage(c,0,0),p.toDataURL()}catch{return!1}return!0},bu=function(f){return f[0]===0&&f[1]===255&&f[2]===0&&f[3]===255},h0=function(f){var c=f.createElement("canvas"),p=100;c.width=p,c.height=p;var d=c.getContext("2d");if(!d)return Promise.reject(!1);d.fillStyle="rgb(0, 255, 0)",d.fillRect(0,0,p,p);var b=new Image,U=c.toDataURL();b.src=U;var L=Ml(p,p,0,0,b);return d.fillStyle="red",d.fillRect(0,0,p,p),ys(L).then(function(G){d.drawImage(G,0,0);var V=d.getImageData(0,0,p,p).data;d.fillStyle="red",d.fillRect(0,0,p,p);var se=f.createElement("div");return se.style.backgroundImage="url("+U+")",se.style.height=p+"px",bu(V)?ys(Ml(p,p,0,0,se)):Promise.reject(!1)}).then(function(G){return d.drawImage(G,0,0),bu(d.getImageData(0,0,p,p).data)}).catch(function(){return!1})},Ml=function(f,c,p,d,b){var U="http://www.w3.org/2000/svg",L=document.createElementNS(U,"svg"),G=document.createElementNS(U,"foreignObject");return L.setAttributeNS(null,"width",f.toString()),L.setAttributeNS(null,"height",c.toString()),G.setAttributeNS(null,"width","100%"),G.setAttributeNS(null,"height","100%"),G.setAttributeNS(null,"x",p.toString()),G.setAttributeNS(null,"y",d.toString()),G.setAttributeNS(null,"externalResourcesRequired","true"),L.appendChild(G),G.appendChild(b),L},ys=function(f){return new Promise(function(c,p){var d=new Image;d.onload=function(){return c(d)},d.onerror=p,d.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(f))})},Gr={get SUPPORT_RANGE_BOUNDS(){var f=Hl(document);return Object.defineProperty(Gr,"SUPPORT_RANGE_BOUNDS",{value:f}),f},get SUPPORT_WORD_BREAKING(){var f=Gr.SUPPORT_RANGE_BOUNDS&&Uh(document);return Object.defineProperty(Gr,"SUPPORT_WORD_BREAKING",{value:f}),f},get SUPPORT_SVG_DRAWING(){var f=xh(document);return Object.defineProperty(Gr,"SUPPORT_SVG_DRAWING",{value:f}),f},get SUPPORT_FOREIGNOBJECT_DRAWING(){var f=typeof Array.from=="function"&&typeof window.fetch=="function"?h0(document):Promise.resolve(!1);return Object.defineProperty(Gr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:f}),f},get SUPPORT_CORS_IMAGES(){var f=Bu();return Object.defineProperty(Gr,"SUPPORT_CORS_IMAGES",{value:f}),f},get SUPPORT_RESPONSE_TYPE(){var f=Da();return Object.defineProperty(Gr,"SUPPORT_RESPONSE_TYPE",{value:f}),f},get SUPPORT_CORS_XHR(){var f="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Gr,"SUPPORT_CORS_XHR",{value:f}),f},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var f=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Gr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:f}),f}},Zs=(function(){function f(c,p){this.text=c,this.bounds=p}return f})(),d0=function(f,c,p,d){var b=ql(c,p),U=[],L=0;return b.forEach(function(G){if(p.textDecorationLine.length||G.trim().length>0)if(Gr.SUPPORT_RANGE_BOUNDS){var V=Sh(d,L,G.length).getClientRects();if(V.length>1){var se=Bs(G),ue=0;se.forEach(function(Ie){U.push(new Zs(Ie,s.fromDOMRectList(f,Sh(d,ue+L,Ie.length).getClientRects()))),ue+=Ie.length})}else U.push(new Zs(G,s.fromDOMRectList(f,V)))}else{var Be=d.splitText(G.length);U.push(new Zs(G,_h(f,d))),d=Be}else Gr.SUPPORT_RANGE_BOUNDS||(d=d.splitText(G.length));L+=G.length}),U},_h=function(f,c){var p=c.ownerDocument;if(p){var d=p.createElement("html2canvaswrapper");d.appendChild(c.cloneNode(!0));var b=c.parentNode;if(b){b.replaceChild(d,c);var U=a(f,d);return d.firstChild&&b.replaceChild(d.firstChild,d),U}}return s.EMPTY},Sh=function(f,c,p){var d=f.ownerDocument;if(!d)throw new Error("Node has no owner document");var b=d.createRange();return b.setStart(f,c),b.setEnd(f,c+p),b},Bs=function(f){if(Gr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var c=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(c.segment(f)).map(function(p){return p.segment})}return f0(f)},Cu=function(f,c){if(Gr.SUPPORT_NATIVE_TEXT_SEGMENTATION){var p=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(p.segment(f)).map(function(d){return d.segment})}return Ha(f,c)},ql=function(f,c){return c.letterSpacing!==0?Bs(f):Cu(f,c)},da=[32,160,4961,65792,65793,4153,4241],Ha=function(f,c){for(var p=xa(f,{lineBreak:c.lineBreak,wordBreak:c.overflowWrap==="break-word"?"break-word":c.wordBreak}),d=[],b,U=function(){if(b.value){var L=b.value.slice(),G=l(L),V="";G.forEach(function(se){da.indexOf(se)===-1?V+=h(se):(V.length&&d.push(V),d.push(h(se)),V="")}),V.length&&d.push(V)}};!(b=p.next()).done;)U();return d},Ma=(function(){function f(c,p,d){this.text=Kl(p.data,d.textTransform),this.textBounds=d0(c,this.text,d,p)}return f})(),Kl=function(f,c){switch(c){case 1:return f.toLowerCase();case 3:return f.replace(Eu,Qh);case 2:return f.toUpperCase();default:return f}},Eu=/(^|\s|:|-|\(|\))([a-z])/g,Qh=function(f,c,p){return f.length>0?c+p.toUpperCase():f},Ih=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.src=d.currentSrc||d.src,b.intrinsicWidth=d.naturalWidth,b.intrinsicHeight=d.naturalHeight,b.context.cache.addImage(b.src),b}return c})(Ge),jl=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.canvas=d,b.intrinsicWidth=d.width,b.intrinsicHeight=d.height,b}return c})(Ge),Vl=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this,U=new XMLSerializer,L=a(p,d);return d.setAttribute("width",L.width+"px"),d.setAttribute("height",L.height+"px"),b.svg="data:image/svg+xml,"+encodeURIComponent(U.serializeToString(d)),b.intrinsicWidth=d.width.baseVal.value,b.intrinsicHeight=d.height.baseVal.value,b.context.cache.addImage(b.svg),b}return c})(Ge),ym=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.value=d.value,b}return c})(Ge),p0=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.start=d.start,b.reversed=typeof d.reversed=="boolean"&&d.reversed===!0,b}return c})(Ge),v3=[{type:15,flags:0,unit:"px",number:3}],m3=[{type:16,flags:0,number:50}],y3=function(f){return f.width>f.height?new s(f.left+(f.width-f.height)/2,f.top,f.height,f.height):f.width<f.height?new s(f.left,f.top+(f.height-f.width)/2,f.width,f.width):f},B3=function(f){var c=f.type===b3?new Array(f.value.length+1).join("\u2022"):f.value;return c.length===0?f.placeholder||"":c},Lh="checkbox",Th="radio",b3="password",Bm=707406591,g0=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;switch(b.type=d.type.toLowerCase(),b.checked=d.checked,b.value=B3(d),(b.type===Lh||b.type===Th)&&(b.styles.backgroundColor=3739148031,b.styles.borderTopColor=b.styles.borderRightColor=b.styles.borderBottomColor=b.styles.borderLeftColor=2779096575,b.styles.borderTopWidth=b.styles.borderRightWidth=b.styles.borderBottomWidth=b.styles.borderLeftWidth=1,b.styles.borderTopStyle=b.styles.borderRightStyle=b.styles.borderBottomStyle=b.styles.borderLeftStyle=1,b.styles.backgroundClip=[0],b.styles.backgroundOrigin=[0],b.bounds=y3(b.bounds)),b.type){case Lh:b.styles.borderTopRightRadius=b.styles.borderTopLeftRadius=b.styles.borderBottomRightRadius=b.styles.borderBottomLeftRadius=v3;break;case Th:b.styles.borderTopRightRadius=b.styles.borderTopLeftRadius=b.styles.borderBottomRightRadius=b.styles.borderBottomLeftRadius=m3;break}return b}return c})(Ge),bm=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this,U=d.options[d.selectedIndex||0];return b.value=U&&U.text||"",b}return c})(Ge),Cm=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.value=d.value,b}return c})(Ge),Em=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;b.src=d.src,b.width=parseInt(d.width,10)||0,b.height=parseInt(d.height,10)||0,b.backgroundColor=b.styles.backgroundColor;try{if(d.contentWindow&&d.contentWindow.document&&d.contentWindow.document.documentElement){b.tree=Um(p,d.contentWindow.document.documentElement);var U=d.contentWindow.document.documentElement?Gi(p,getComputedStyle(d.contentWindow.document.documentElement).backgroundColor):fn.TRANSPARENT,L=d.contentWindow.document.body?Gi(p,getComputedStyle(d.contentWindow.document.body).backgroundColor):fn.TRANSPARENT;b.backgroundColor=bn(U)?bn(L)?b.styles.backgroundColor:L:U}}catch{}return b}return c})(Ge),C3=["OL","UL","MENU"],Nh=function(f,c,p,d){for(var b=c.firstChild,U=void 0;b;b=U)if(U=b.nextSibling,xm(b)&&b.data.trim().length>0)p.textNodes.push(new Ma(f,b,p.styles));else if(Gl(b))if(Tm(b)&&b.assignedNodes)b.assignedNodes().forEach(function(G){return Nh(f,G,p,d)});else{var L=Fm(f,b);L.styles.isVisible()&&(E3(b,L,d)?L.flags|=4:F3(L.styles)&&(L.flags|=2),C3.indexOf(b.tagName)!==-1&&(L.flags|=8),p.elements.push(L),b.slot,b.shadowRoot?Nh(f,b.shadowRoot,L,d):!Ph(b)&&!_m(b)&&!Rh(b)&&Nh(f,b,L,d))}},Fm=function(f,c){return m0(c)?new Ih(f,c):Sm(c)?new jl(f,c):_m(c)?new Vl(f,c):U3(c)?new ym(f,c):x3(c)?new p0(f,c):_3(c)?new g0(f,c):Rh(c)?new bm(f,c):Ph(c)?new Cm(f,c):Im(c)?new Em(f,c):new Ge(f,c)},Um=function(f,c){var p=Fm(f,c);return p.flags|=4,Nh(f,c,p,p),p},E3=function(f,c,p){return c.styles.isPositionedWithZIndex()||c.styles.opacity<1||c.styles.isTransformed()||v0(f)&&p.styles.isTransparent()},F3=function(f){return f.isPositioned()||f.isFloating()},xm=function(f){return f.nodeType===Node.TEXT_NODE},Gl=function(f){return f.nodeType===Node.ELEMENT_NODE},w0=function(f){return Gl(f)&&typeof f.style<"u"&&!Oh(f)},Oh=function(f){return typeof f.className=="object"},U3=function(f){return f.tagName==="LI"},x3=function(f){return f.tagName==="OL"},_3=function(f){return f.tagName==="INPUT"},S3=function(f){return f.tagName==="HTML"},_m=function(f){return f.tagName==="svg"},v0=function(f){return f.tagName==="BODY"},Sm=function(f){return f.tagName==="CANVAS"},Qm=function(f){return f.tagName==="VIDEO"},m0=function(f){return f.tagName==="IMG"},Im=function(f){return f.tagName==="IFRAME"},Lm=function(f){return f.tagName==="STYLE"},Q3=function(f){return f.tagName==="SCRIPT"},Ph=function(f){return f.tagName==="TEXTAREA"},Rh=function(f){return f.tagName==="SELECT"},Tm=function(f){return f.tagName==="SLOT"},Nm=function(f){return f.tagName.indexOf("-")>0},I3=(function(){function f(){this.counters={}}return f.prototype.getCounterValue=function(c){var p=this.counters[c];return p&&p.length?p[p.length-1]:1},f.prototype.getCounterValues=function(c){var p=this.counters[c];return p||[]},f.prototype.pop=function(c){var p=this;c.forEach(function(d){return p.counters[d].pop()})},f.prototype.parse=function(c){var p=this,d=c.counterIncrement,b=c.counterReset,U=!0;d!==null&&d.forEach(function(G){var V=p.counters[G.counter];V&&G.increment!==0&&(U=!1,V.length||V.push(1),V[Math.max(0,V.length-1)]+=G.increment)});var L=[];return U&&b.forEach(function(G){var V=p.counters[G.counter];L.push(G.counter),V||(V=p.counters[G.counter]=[]),V.push(G.reset)}),L},f})(),Om={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Pm={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},L3={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},T3={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},zl=function(f,c,p,d,b,U){return f<c||f>p?Uu(f,b,U.length>0):d.integers.reduce(function(L,G,V){for(;f>=G;)f-=G,L+=d.values[V];return L},"")+U},Rm=function(f,c,p,d){var b="";do p||f--,b=d(f)+b,f/=c;while(f*c>=c);return b},Er=function(f,c,p,d,b){var U=p-c+1;return(f<0?"-":"")+(Rm(Math.abs(f),U,d,function(L){return h(Math.floor(L%U)+c)})+b)},Do=function(f,c,p){p===void 0&&(p=". ");var d=c.length;return Rm(Math.abs(f),d,!1,function(b){return c[Math.floor(b%d)]})+p},Wl=1,eo=2,to=4,Fu=8,bs=function(f,c,p,d,b,U){if(f<-9999||f>9999)return Uu(f,4,b.length>0);var L=Math.abs(f),G=b;if(L===0)return c[0]+G;for(var V=0;L>0&&V<=4;V++){var se=L%10;se===0&&pe(U,Wl)&&G!==""?G=c[se]+G:se>1||se===1&&V===0||se===1&&V===1&&pe(U,eo)||se===1&&V===1&&pe(U,to)&&f>100||se===1&&V>1&&pe(U,Fu)?G=c[se]+(V>0?p[V-1]:"")+G:se===1&&V>0&&(G=p[V-1]+G),L=Math.floor(L/10)}return(f<0?d:"")+G},km="\u5341\u767E\u5343\u842C",Dm="\u62FE\u4F70\u4EDF\u842C",Hm="\u30DE\u30A4\u30CA\u30B9",y0="\uB9C8\uC774\uB108\uC2A4",Uu=function(f,c,p){var d=p?". ":"",b=p?"\u3001":"",U=p?", ":"",L=p?" ":"";switch(c){case 0:return"\u2022"+L;case 1:return"\u25E6"+L;case 2:return"\u25FE"+L;case 5:var G=Er(f,48,57,!0,d);return G.length<4?"0"+G:G;case 4:return Do(f,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",b);case 6:return zl(f,1,3999,Om,3,d).toLowerCase();case 7:return zl(f,1,3999,Om,3,d);case 8:return Er(f,945,969,!1,d);case 9:return Er(f,97,122,!1,d);case 10:return Er(f,65,90,!1,d);case 11:return Er(f,1632,1641,!0,d);case 12:case 49:return zl(f,1,9999,Pm,3,d);case 35:return zl(f,1,9999,Pm,3,d).toLowerCase();case 13:return Er(f,2534,2543,!0,d);case 14:case 30:return Er(f,6112,6121,!0,d);case 15:return Do(f,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",b);case 16:return Do(f,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",b);case 17:case 48:return bs(f,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",km,"\u8CA0",b,eo|to|Fu);case 47:return bs(f,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Dm,"\u8CA0",b,Wl|eo|to|Fu);case 42:return bs(f,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",km,"\u8D1F",b,eo|to|Fu);case 41:return bs(f,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Dm,"\u8D1F",b,Wl|eo|to|Fu);case 26:return bs(f,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",Hm,b,0);case 25:return bs(f,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",Hm,b,Wl|eo|to);case 31:return bs(f,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",y0,U,Wl|eo|to);case 33:return bs(f,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",y0,U,0);case 32:return bs(f,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",y0,U,Wl|eo|to);case 18:return Er(f,2406,2415,!0,d);case 20:return zl(f,1,19999,T3,3,d);case 21:return Er(f,2790,2799,!0,d);case 22:return Er(f,2662,2671,!0,d);case 22:return zl(f,1,10999,L3,3,d);case 23:return Do(f,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Do(f,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Er(f,3302,3311,!0,d);case 28:return Do(f,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",b);case 29:return Do(f,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",b);case 34:return Er(f,3792,3801,!0,d);case 37:return Er(f,6160,6169,!0,d);case 38:return Er(f,4160,4169,!0,d);case 39:return Er(f,2918,2927,!0,d);case 40:return Er(f,1776,1785,!0,d);case 43:return Er(f,3046,3055,!0,d);case 44:return Er(f,3174,3183,!0,d);case 45:return Er(f,3664,3673,!0,d);case 46:return Er(f,3872,3881,!0,d);default:return Er(f,48,57,!0,d)}},Mm="data-html2canvas-ignore",qm=(function(){function f(c,p,d){if(this.context=c,this.options=d,this.scrolledElements=[],this.referenceElement=p,this.counters=new I3,this.quoteDepth=0,!p.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(p.ownerDocument.documentElement,!1)}return f.prototype.toIFrame=function(c,p){var d=this,b=N3(c,p);if(!b.contentWindow)return Promise.reject("Unable to find iframe window");var U=c.defaultView.pageXOffset,L=c.defaultView.pageYOffset,G=b.contentWindow,V=G.document,se=R3(b).then(function(){return r(d,void 0,void 0,function(){var ue,Be;return n(this,function(Ie){switch(Ie.label){case 0:return this.scrolledElements.forEach(M3),G&&(G.scrollTo(p.left,p.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(G.scrollY!==p.top||G.scrollX!==p.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(G.scrollX-p.left,G.scrollY-p.top,0,0))),ue=this.options.onclone,Be=this.clonedReferenceElement,typeof Be>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:V.fonts&&V.fonts.ready?[4,V.fonts.ready]:[3,2];case 1:Ie.sent(),Ie.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,P3(V)]:[3,4];case 3:Ie.sent(),Ie.label=4;case 4:return typeof ue=="function"?[2,Promise.resolve().then(function(){return ue(V,Be)}).then(function(){return b})]:[2,b]}})})});return V.open(),V.write(D3(document.doctype)+"<html></html>"),H3(this.referenceElement.ownerDocument,U,L),V.replaceChild(V.adoptNode(this.documentElement),V.documentElement),V.close(),se},f.prototype.createElementClone=function(c){if(ht(c,2))debugger;if(Sm(c))return this.createCanvasClone(c);if(Qm(c))return this.createVideoClone(c);if(Lm(c))return this.createStyleClone(c);var p=c.cloneNode(!1);return m0(p)&&(m0(c)&&c.currentSrc&&c.currentSrc!==c.src&&(p.src=c.currentSrc,p.srcset=""),p.loading==="lazy"&&(p.loading="eager")),Nm(p)?this.createCustomElementClone(p):p},f.prototype.createCustomElementClone=function(c){var p=document.createElement("html2canvascustomelement");return B0(c.style,p),p},f.prototype.createStyleClone=function(c){try{var p=c.sheet;if(p&&p.cssRules){var d=[].slice.call(p.cssRules,0).reduce(function(U,L){return L&&typeof L.cssText=="string"?U+L.cssText:U},""),b=c.cloneNode(!1);return b.textContent=d,b}}catch(U){if(this.context.logger.error("Unable to access cssRules property",U),U.name!=="SecurityError")throw U}return c.cloneNode(!1)},f.prototype.createCanvasClone=function(c){var p;if(this.options.inlineImages&&c.ownerDocument){var d=c.ownerDocument.createElement("img");try{return d.src=c.toDataURL(),d}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",c)}}var b=c.cloneNode(!1);try{b.width=c.width,b.height=c.height;var U=c.getContext("2d"),L=b.getContext("2d");if(L)if(!this.options.allowTaint&&U)L.putImageData(U.getImageData(0,0,c.width,c.height),0,0);else{var G=(p=c.getContext("webgl2"))!==null&&p!==void 0?p:c.getContext("webgl");if(G){var V=G.getContextAttributes();V?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",c)}L.drawImage(c,0,0)}return b}catch{this.context.logger.info("Unable to clone canvas as it is tainted",c)}return b},f.prototype.createVideoClone=function(c){var p=c.ownerDocument.createElement("canvas");p.width=c.offsetWidth,p.height=c.offsetHeight;var d=p.getContext("2d");try{return d&&(d.drawImage(c,0,0,p.width,p.height),this.options.allowTaint||d.getImageData(0,0,p.width,p.height)),p}catch{this.context.logger.info("Unable to clone video as it is tainted",c)}var b=c.ownerDocument.createElement("canvas");return b.width=c.offsetWidth,b.height=c.offsetHeight,b},f.prototype.appendChildNode=function(c,p,d){(!Gl(p)||!Q3(p)&&!p.hasAttribute(Mm)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(p)))&&(!this.options.copyStyles||!Gl(p)||!Lm(p))&&c.appendChild(this.cloneNode(p,d))},f.prototype.cloneChildNodes=function(c,p,d){for(var b=this,U=c.shadowRoot?c.shadowRoot.firstChild:c.firstChild;U;U=U.nextSibling)if(Gl(U)&&Tm(U)&&typeof U.assignedNodes=="function"){var L=U.assignedNodes();L.length&&L.forEach(function(G){return b.appendChildNode(p,G,d)})}else this.appendChildNode(p,U,d)},f.prototype.cloneNode=function(c,p){if(xm(c))return document.createTextNode(c.data);if(!c.ownerDocument)return c.cloneNode(!1);var d=c.ownerDocument.defaultView;if(d&&Gl(c)&&(w0(c)||Oh(c))){var b=this.createElementClone(c);b.style.transitionProperty="none";var U=d.getComputedStyle(c),L=d.getComputedStyle(c,":before"),G=d.getComputedStyle(c,":after");this.referenceElement===c&&w0(b)&&(this.clonedReferenceElement=b),v0(b)&&j3(b);var V=this.counters.parse(new gt(this.context,U)),se=this.resolvePseudoContent(c,b,L,xu.BEFORE);Nm(c)&&(p=!0),Qm(c)||this.cloneChildNodes(c,b,p),se&&b.insertBefore(se,b.firstChild);var ue=this.resolvePseudoContent(c,b,G,xu.AFTER);return ue&&b.appendChild(ue),this.counters.pop(V),(U&&(this.options.copyStyles||Oh(c))&&!Im(c)||p)&&B0(U,b),(c.scrollTop!==0||c.scrollLeft!==0)&&this.scrolledElements.push([b,c.scrollLeft,c.scrollTop]),(Ph(c)||Rh(c))&&(Ph(b)||Rh(b))&&(b.value=c.value),b}return c.cloneNode(!1)},f.prototype.resolvePseudoContent=function(c,p,d,b){var U=this;if(d){var L=d.content,G=p.ownerDocument;if(!(!G||!L||L==="none"||L==="-moz-alt-content"||d.display==="none")){this.counters.parse(new gt(this.context,d));var V=new Xt(this.context,d),se=G.createElement("html2canvaspseudoelement");B0(d,se),V.content.forEach(function(Be){if(Be.type===0)se.appendChild(G.createTextNode(Be.value));else if(Be.type===22){var Ie=G.createElement("img");Ie.src=Be.value,Ie.style.opacity="1",se.appendChild(Ie)}else if(Be.type===18){if(Be.name==="attr"){var it=Be.values.filter(cA);it.length&&se.appendChild(G.createTextNode(c.getAttribute(it[0].value)||""))}else if(Be.name==="counter"){var ze=Be.values.filter(si),et=ze[0],eA=ze[1];if(et&&cA(et)){var Bt=U.counters.getCounterValue(et.value),wt=eA&&cA(eA)?Cn.parse(U.context,eA.value):3;se.appendChild(G.createTextNode(Uu(Bt,wt,!1)))}}else if(Be.name==="counters"){var CA=Be.values.filter(si),et=CA[0],rA=CA[1],eA=CA[2];if(et&&cA(et)){var qt=U.counters.getCounterValues(et.value),rt=eA&&cA(eA)?Cn.parse(U.context,eA.value):3,pA=rA&&rA.type===0?rA.value:"",gA=qt.map(function(ui){return Uu(ui,rt,!1)}).join(pA);se.appendChild(G.createTextNode(gA))}}}else if(Be.type===20)switch(Be.value){case"open-quote":se.appendChild(G.createTextNode(Te(V.quotes,U.quoteDepth++,!0)));break;case"close-quote":se.appendChild(G.createTextNode(Te(V.quotes,--U.quoteDepth,!1)));break;default:se.appendChild(G.createTextNode(Be.value))}}),se.className=b0+" "+C0;var ue=b===xu.BEFORE?" "+b0:" "+C0;return Oh(p)?p.className.baseValue+=ue:p.className+=ue,se}}},f.destroy=function(c){return c.parentNode?(c.parentNode.removeChild(c),!0):!1},f})(),xu;(function(f){f[f.BEFORE=0]="BEFORE",f[f.AFTER=1]="AFTER"})(xu||(xu={}));var N3=function(f,c){var p=f.createElement("iframe");return p.className="html2canvas-container",p.style.visibility="hidden",p.style.position="fixed",p.style.left="-10000px",p.style.top="0px",p.style.border="0",p.width=c.width.toString(),p.height=c.height.toString(),p.scrolling="no",p.setAttribute(Mm,"true"),f.body.appendChild(p),p},O3=function(f){return new Promise(function(c){if(f.complete){c();return}if(!f.src){c();return}f.onload=c,f.onerror=c})},P3=function(f){return Promise.all([].slice.call(f.images,0).map(O3))},R3=function(f){return new Promise(function(c,p){var d=f.contentWindow;if(!d)return p("No window assigned for iframe");var b=d.document;d.onload=f.onload=function(){d.onload=f.onload=null;var U=setInterval(function(){b.body.childNodes.length>0&&b.readyState==="complete"&&(clearInterval(U),c(f))},50)}})},k3=["all","d","content"],B0=function(f,c){for(var p=f.length-1;p>=0;p--){var d=f.item(p);k3.indexOf(d)===-1&&c.style.setProperty(d,f.getPropertyValue(d))}return c},D3=function(f){var c="";return f&&(c+="<!DOCTYPE ",f.name&&(c+=f.name),f.internalSubset&&(c+=f.internalSubset),f.publicId&&(c+='"'+f.publicId+'"'),f.systemId&&(c+='"'+f.systemId+'"'),c+=">"),c},H3=function(f,c,p){f&&f.defaultView&&(c!==f.defaultView.pageXOffset||p!==f.defaultView.pageYOffset)&&f.defaultView.scrollTo(c,p)},M3=function(f){var c=f[0],p=f[1],d=f[2];c.scrollLeft=p,c.scrollTop=d},q3=":before",K3=":after",b0="___html2canvas___pseudoelement_before",C0="___html2canvas___pseudoelement_after",Km=`{
|
|
2
2
|
content: "" !important;
|
|
3
3
|
display: none !important;
|
|
4
4
|
}`,j3=function(f){V3(f,"."+b0+q3+Km+`
|
|
5
|
-
.`+C0+K3+Km)},V3=function(f,c){var p=f.ownerDocument;if(p){var d=p.createElement("style");d.textContent=c,f.appendChild(d)}},jm=(function(){function f(){}return f.getOrigin=function(c){var p=f._link;return p?(p.href=c,p.href=p.href,p.protocol+p.hostname+p.port):"about:blank"},f.isSameOrigin=function(c){return f.getOrigin(c)===f._origin},f.setContext=function(c){f._link=c.document.createElement("a"),f._origin=f.getOrigin(c.location.href)},f._origin="about:blank",f})(),G3=(function(){function f(c,p){this.context=c,this._options=p,this._cache={}}return f.prototype.addImage=function(c){var p=Promise.resolve();return this.has(c)||(F0(c)||X3(c))&&(this._cache[c]=this.loadImage(c)).catch(function(){}),p},f.prototype.match=function(c){return this._cache[c]},f.prototype.loadImage=function(c){return r(this,void 0,void 0,function(){var p,d,b,U,L=this;return n(this,function(G){switch(G.label){case 0:return p=jm.isSameOrigin(c),d=!E0(c)&&this._options.useCORS===!0&&Gr.SUPPORT_CORS_IMAGES&&!p,b=!E0(c)&&!p&&!F0(c)&&typeof this._options.proxy=="string"&&Gr.SUPPORT_CORS_XHR&&!d,!p&&this._options.allowTaint===!1&&!E0(c)&&!F0(c)&&!b&&!d?[2]:(U=c,b?[4,this.proxy(U)]:[3,2]);case 1:U=G.sent(),G.label=2;case 2:return this.context.logger.debug("Added image "+c.substring(0,256)),[4,new Promise(function(V,se){var ue=new Image;ue.onload=function(){return V(ue)},ue.onerror=se,(Y3(U)||d)&&(ue.crossOrigin="anonymous"),ue.src=U,ue.complete===!0&&setTimeout(function(){return V(ue)},500),L._options.imageTimeout>0&&setTimeout(function(){return se("Timed out ("+L._options.imageTimeout+"ms) loading image")},L._options.imageTimeout)})];case 3:return[2,G.sent()]}})})},f.prototype.has=function(c){return typeof this._cache[c]<"u"},f.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},f.prototype.proxy=function(c){var p=this,d=this._options.proxy;if(!d)throw new Error("No proxy defined");var b=c.substring(0,256);return new Promise(function(U,L){var G=Gr.SUPPORT_RESPONSE_TYPE?"blob":"text",V=new XMLHttpRequest;V.onload=function(){if(V.status===200)if(G==="text")U(V.response);else{var Be=new FileReader;Be.addEventListener("load",function(){return U(Be.result)},!1),Be.addEventListener("error",function(Ie){return L(Ie)},!1),Be.readAsDataURL(V.response)}else L("Failed to proxy resource "+b+" with status code "+V.status)},V.onerror=L;var se=d.indexOf("?")>-1?"&":"?";if(V.open("GET",""+d+se+"url="+encodeURIComponent(c)+"&responseType="+G),G!=="text"&&V instanceof XMLHttpRequest&&(V.responseType=G),p._options.imageTimeout){var ue=p._options.imageTimeout;V.timeout=ue,V.ontimeout=function(){return L("Timed out ("+ue+"ms) proxying "+b)}}V.send()})},f})(),z3=/^data:image\/svg\+xml/i,W3=/^data:image\/.*;base64,/i,$3=/^data:image\/.*/i,X3=function(f){return Gr.SUPPORT_SVG_DRAWING||!J3(f)},E0=function(f){return $3.test(f)},Y3=function(f){return W3.test(f)},F0=function(f){return f.substr(0,4)==="blob"},J3=function(f){return f.substr(-3).toLowerCase()==="svg"||z3.test(f)},At=(function(){function f(c,p){this.type=0,this.x=c,this.y=p}return f.prototype.add=function(c,p){return new f(this.x+c,this.y+p)},f})(),$l=function(f,c,p){return new At(f.x+(c.x-f.x)*p,f.y+(c.y-f.y)*p)},kh=(function(){function f(c,p,d,b){this.type=1,this.start=c,this.startControl=p,this.endControl=d,this.end=b}return f.prototype.subdivide=function(c,p){var d=$l(this.start,this.startControl,c),b=$l(this.startControl,this.endControl,c),U=$l(this.endControl,this.end,c),L=$l(d,b,c),G=$l(b,U,c),V=$l(L,G,c);return p?new f(this.start,d,L,V):new f(V,G,U,this.end)},f.prototype.add=function(c,p){return new f(this.start.add(c,p),this.startControl.add(c,p),this.endControl.add(c,p),this.end.add(c,p))},f.prototype.reverse=function(){return new f(this.end,this.endControl,this.startControl,this.start)},f})(),Gi=function(f){return f.type===1},Z3=(function(){function f(c){var p=c.styles,d=c.bounds,b=Ui(p.borderTopLeftRadius,d.width,d.height),U=b[0],L=b[1],G=Ui(p.borderTopRightRadius,d.width,d.height),V=G[0],se=G[1],ue=Ui(p.borderBottomRightRadius,d.width,d.height),Be=ue[0],Ie=ue[1],it=Ui(p.borderBottomLeftRadius,d.width,d.height),ze=it[0],et=it[1],eA=[];eA.push((U+V)/d.width),eA.push((ze+Be)/d.width),eA.push((L+et)/d.height),eA.push((se+Ie)/d.height);var Bt=Math.max.apply(Math,eA);Bt>1&&(U/=Bt,L/=Bt,V/=Bt,se/=Bt,Be/=Bt,Ie/=Bt,ze/=Bt,et/=Bt);var wt=d.width-V,CA=d.height-Ie,rA=d.width-Be,qt=d.height-et,rt=p.borderTopWidth,pA=p.borderRightWidth,gA=p.borderBottomWidth,Vt=p.borderLeftWidth,Lr=BA(p.paddingTop,c.bounds.width),ui=BA(p.paddingRight,c.bounds.width),Li=BA(p.paddingBottom,c.bounds.width),kA=BA(p.paddingLeft,c.bounds.width);this.topLeftBorderDoubleOuterBox=U>0||L>0?tr(d.left+Vt/3,d.top+rt/3,U-Vt/3,L-rt/3,QA.TOP_LEFT):new At(d.left+Vt/3,d.top+rt/3),this.topRightBorderDoubleOuterBox=U>0||L>0?tr(d.left+wt,d.top+rt/3,V-pA/3,se-rt/3,QA.TOP_RIGHT):new At(d.left+d.width-pA/3,d.top+rt/3),this.bottomRightBorderDoubleOuterBox=Be>0||Ie>0?tr(d.left+rA,d.top+CA,Be-pA/3,Ie-gA/3,QA.BOTTOM_RIGHT):new At(d.left+d.width-pA/3,d.top+d.height-gA/3),this.bottomLeftBorderDoubleOuterBox=ze>0||et>0?tr(d.left+Vt/3,d.top+qt,ze-Vt/3,et-gA/3,QA.BOTTOM_LEFT):new At(d.left+Vt/3,d.top+d.height-gA/3),this.topLeftBorderDoubleInnerBox=U>0||L>0?tr(d.left+Vt*2/3,d.top+rt*2/3,U-Vt*2/3,L-rt*2/3,QA.TOP_LEFT):new At(d.left+Vt*2/3,d.top+rt*2/3),this.topRightBorderDoubleInnerBox=U>0||L>0?tr(d.left+wt,d.top+rt*2/3,V-pA*2/3,se-rt*2/3,QA.TOP_RIGHT):new At(d.left+d.width-pA*2/3,d.top+rt*2/3),this.bottomRightBorderDoubleInnerBox=Be>0||Ie>0?tr(d.left+rA,d.top+CA,Be-pA*2/3,Ie-gA*2/3,QA.BOTTOM_RIGHT):new At(d.left+d.width-pA*2/3,d.top+d.height-gA*2/3),this.bottomLeftBorderDoubleInnerBox=ze>0||et>0?tr(d.left+Vt*2/3,d.top+qt,ze-Vt*2/3,et-gA*2/3,QA.BOTTOM_LEFT):new At(d.left+Vt*2/3,d.top+d.height-gA*2/3),this.topLeftBorderStroke=U>0||L>0?tr(d.left+Vt/2,d.top+rt/2,U-Vt/2,L-rt/2,QA.TOP_LEFT):new At(d.left+Vt/2,d.top+rt/2),this.topRightBorderStroke=U>0||L>0?tr(d.left+wt,d.top+rt/2,V-pA/2,se-rt/2,QA.TOP_RIGHT):new At(d.left+d.width-pA/2,d.top+rt/2),this.bottomRightBorderStroke=Be>0||Ie>0?tr(d.left+rA,d.top+CA,Be-pA/2,Ie-gA/2,QA.BOTTOM_RIGHT):new At(d.left+d.width-pA/2,d.top+d.height-gA/2),this.bottomLeftBorderStroke=ze>0||et>0?tr(d.left+Vt/2,d.top+qt,ze-Vt/2,et-gA/2,QA.BOTTOM_LEFT):new At(d.left+Vt/2,d.top+d.height-gA/2),this.topLeftBorderBox=U>0||L>0?tr(d.left,d.top,U,L,QA.TOP_LEFT):new At(d.left,d.top),this.topRightBorderBox=V>0||se>0?tr(d.left+wt,d.top,V,se,QA.TOP_RIGHT):new At(d.left+d.width,d.top),this.bottomRightBorderBox=Be>0||Ie>0?tr(d.left+rA,d.top+CA,Be,Ie,QA.BOTTOM_RIGHT):new At(d.left+d.width,d.top+d.height),this.bottomLeftBorderBox=ze>0||et>0?tr(d.left,d.top+qt,ze,et,QA.BOTTOM_LEFT):new At(d.left,d.top+d.height),this.topLeftPaddingBox=U>0||L>0?tr(d.left+Vt,d.top+rt,Math.max(0,U-Vt),Math.max(0,L-rt),QA.TOP_LEFT):new At(d.left+Vt,d.top+rt),this.topRightPaddingBox=V>0||se>0?tr(d.left+Math.min(wt,d.width-pA),d.top+rt,wt>d.width+pA?0:Math.max(0,V-pA),Math.max(0,se-rt),QA.TOP_RIGHT):new At(d.left+d.width-pA,d.top+rt),this.bottomRightPaddingBox=Be>0||Ie>0?tr(d.left+Math.min(rA,d.width-Vt),d.top+Math.min(CA,d.height-gA),Math.max(0,Be-pA),Math.max(0,Ie-gA),QA.BOTTOM_RIGHT):new At(d.left+d.width-pA,d.top+d.height-gA),this.bottomLeftPaddingBox=ze>0||et>0?tr(d.left+Vt,d.top+Math.min(qt,d.height-gA),Math.max(0,ze-Vt),Math.max(0,et-gA),QA.BOTTOM_LEFT):new At(d.left+Vt,d.top+d.height-gA),this.topLeftContentBox=U>0||L>0?tr(d.left+Vt+kA,d.top+rt+Lr,Math.max(0,U-(Vt+kA)),Math.max(0,L-(rt+Lr)),QA.TOP_LEFT):new At(d.left+Vt+kA,d.top+rt+Lr),this.topRightContentBox=V>0||se>0?tr(d.left+Math.min(wt,d.width+Vt+kA),d.top+rt+Lr,wt>d.width+Vt+kA?0:V-Vt+kA,se-(rt+Lr),QA.TOP_RIGHT):new At(d.left+d.width-(pA+ui),d.top+rt+Lr),this.bottomRightContentBox=Be>0||Ie>0?tr(d.left+Math.min(rA,d.width-(Vt+kA)),d.top+Math.min(CA,d.height+rt+Lr),Math.max(0,Be-(pA+ui)),Ie-(gA+Li),QA.BOTTOM_RIGHT):new At(d.left+d.width-(pA+ui),d.top+d.height-(gA+Li)),this.bottomLeftContentBox=ze>0||et>0?tr(d.left+Vt+kA,d.top+qt,Math.max(0,ze-(Vt+kA)),et-(gA+Li),QA.BOTTOM_LEFT):new At(d.left+Vt+kA,d.top+d.height-(gA+Li))}return f})(),QA;(function(f){f[f.TOP_LEFT=0]="TOP_LEFT",f[f.TOP_RIGHT=1]="TOP_RIGHT",f[f.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",f[f.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(QA||(QA={}));var tr=function(f,c,p,d,b){var U=4*((Math.sqrt(2)-1)/3),L=p*U,G=d*U,V=f+p,se=c+d;switch(b){case QA.TOP_LEFT:return new kh(new At(f,se),new At(f,se-G),new At(V-L,c),new At(V,c));case QA.TOP_RIGHT:return new kh(new At(f,c),new At(f+L,c),new At(V,se-G),new At(V,se));case QA.BOTTOM_RIGHT:return new kh(new At(V,c),new At(V,c+G),new At(f+L,se),new At(f,se));case QA.BOTTOM_LEFT:default:return new kh(new At(V,se),new At(V-L,se),new At(f,c+G),new At(f,c))}},Dh=function(f){return[f.topLeftBorderBox,f.topRightBorderBox,f.bottomRightBorderBox,f.bottomLeftBorderBox]},eQ=function(f){return[f.topLeftContentBox,f.topRightContentBox,f.bottomRightContentBox,f.bottomLeftContentBox]},Hh=function(f){return[f.topLeftPaddingBox,f.topRightPaddingBox,f.bottomRightPaddingBox,f.bottomLeftPaddingBox]},tQ=(function(){function f(c,p,d){this.offsetX=c,this.offsetY=p,this.matrix=d,this.type=0,this.target=6}return f})(),Mh=(function(){function f(c,p){this.path=c,this.target=p,this.type=1}return f})(),AQ=(function(){function f(c){this.opacity=c,this.type=2,this.target=6}return f})(),rQ=function(f){return f.type===0},Vm=function(f){return f.type===1},nQ=function(f){return f.type===2},Gm=function(f,c){return f.length===c.length?f.some(function(p,d){return p===c[d]}):!1},iQ=function(f,c,p,d,b){return f.map(function(U,L){switch(L){case 0:return U.add(c,p);case 1:return U.add(c+d,p);case 2:return U.add(c+d,p+b);case 3:return U.add(c,p+b)}return U})},zm=(function(){function f(c){this.element=c,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return f})(),Wm=(function(){function f(c,p){if(this.container=c,this.parent=p,this.effects=[],this.curves=new Z3(this.container),this.container.styles.opacity<1&&this.effects.push(new AQ(this.container.styles.opacity)),this.container.styles.transform!==null){var d=this.container.bounds.left+this.container.styles.transformOrigin[0].number,b=this.container.bounds.top+this.container.styles.transformOrigin[1].number,U=this.container.styles.transform;this.effects.push(new tQ(d,b,U))}if(this.container.styles.overflowX!==0){var L=Dh(this.curves),G=Hh(this.curves);Gm(L,G)?this.effects.push(new Mh(L,6)):(this.effects.push(new Mh(L,2)),this.effects.push(new Mh(G,4)))}}return f.prototype.getEffects=function(c){for(var p=[2,3].indexOf(this.container.styles.position)===-1,d=this.parent,b=this.effects.slice(0);d;){var U=d.effects.filter(function(V){return!Vm(V)});if(p||d.container.styles.position!==0||!d.parent){if(b.unshift.apply(b,U),p=[2,3].indexOf(d.container.styles.position)===-1,d.container.styles.overflowX!==0){var L=Dh(d.curves),G=Hh(d.curves);Gm(L,G)||b.unshift(new Mh(G,6))}}else b.unshift.apply(b,U);d=d.parent}return b.filter(function(V){return pe(V.target,c)})},f})(),U0=function(f,c,p,d){f.container.elements.forEach(function(b){var U=pe(b.flags,4),L=pe(b.flags,2),G=new Wm(b,f);pe(b.styles.display,2048)&&d.push(G);var V=pe(b.flags,8)?[]:d;if(U||L){var se=U||b.styles.isPositioned()?p:c,ue=new zm(G);if(b.styles.isPositioned()||b.styles.opacity<1||b.styles.isTransformed()){var Be=b.styles.zIndex.order;if(Be<0){var Ie=0;se.negativeZIndex.some(function(ze,et){return Be>ze.element.container.styles.zIndex.order?(Ie=et,!1):Ie>0}),se.negativeZIndex.splice(Ie,0,ue)}else if(Be>0){var it=0;se.positiveZIndex.some(function(ze,et){return Be>=ze.element.container.styles.zIndex.order?(it=et+1,!1):it>0}),se.positiveZIndex.splice(it,0,ue)}else se.zeroOrAutoZIndexOrTransformedOrOpacity.push(ue)}else b.styles.isFloating()?se.nonPositionedFloats.push(ue):se.nonPositionedInlineLevel.push(ue);U0(G,ue,U?ue:p,V)}else b.styles.isInlineLevel()?c.inlineLevel.push(G):c.nonInlineLevel.push(G),U0(G,c,p,V);pe(b.flags,8)&&$m(b,V)})},$m=function(f,c){for(var p=f instanceof p0?f.start:1,d=f instanceof p0?f.reversed:!1,b=0;b<c.length;b++){var U=c[b];U.container instanceof ym&&typeof U.container.value=="number"&&U.container.value!==0&&(p=U.container.value),U.listValue=Uu(p,U.container.styles.listStyleType,!0),p+=d?-1:1}},aQ=function(f){var c=new Wm(f,null),p=new zm(c),d=[];return U0(c,p,p,d),$m(c.container,d),p},Xm=function(f,c){switch(c){case 0:return zi(f.topLeftBorderBox,f.topLeftPaddingBox,f.topRightBorderBox,f.topRightPaddingBox);case 1:return zi(f.topRightBorderBox,f.topRightPaddingBox,f.bottomRightBorderBox,f.bottomRightPaddingBox);case 2:return zi(f.bottomRightBorderBox,f.bottomRightPaddingBox,f.bottomLeftBorderBox,f.bottomLeftPaddingBox);default:return zi(f.bottomLeftBorderBox,f.bottomLeftPaddingBox,f.topLeftBorderBox,f.topLeftPaddingBox)}},sQ=function(f,c){switch(c){case 0:return zi(f.topLeftBorderBox,f.topLeftBorderDoubleOuterBox,f.topRightBorderBox,f.topRightBorderDoubleOuterBox);case 1:return zi(f.topRightBorderBox,f.topRightBorderDoubleOuterBox,f.bottomRightBorderBox,f.bottomRightBorderDoubleOuterBox);case 2:return zi(f.bottomRightBorderBox,f.bottomRightBorderDoubleOuterBox,f.bottomLeftBorderBox,f.bottomLeftBorderDoubleOuterBox);default:return zi(f.bottomLeftBorderBox,f.bottomLeftBorderDoubleOuterBox,f.topLeftBorderBox,f.topLeftBorderDoubleOuterBox)}},oQ=function(f,c){switch(c){case 0:return zi(f.topLeftBorderDoubleInnerBox,f.topLeftPaddingBox,f.topRightBorderDoubleInnerBox,f.topRightPaddingBox);case 1:return zi(f.topRightBorderDoubleInnerBox,f.topRightPaddingBox,f.bottomRightBorderDoubleInnerBox,f.bottomRightPaddingBox);case 2:return zi(f.bottomRightBorderDoubleInnerBox,f.bottomRightPaddingBox,f.bottomLeftBorderDoubleInnerBox,f.bottomLeftPaddingBox);default:return zi(f.bottomLeftBorderDoubleInnerBox,f.bottomLeftPaddingBox,f.topLeftBorderDoubleInnerBox,f.topLeftPaddingBox)}},lQ=function(f,c){switch(c){case 0:return qh(f.topLeftBorderStroke,f.topRightBorderStroke);case 1:return qh(f.topRightBorderStroke,f.bottomRightBorderStroke);case 2:return qh(f.bottomRightBorderStroke,f.bottomLeftBorderStroke);default:return qh(f.bottomLeftBorderStroke,f.topLeftBorderStroke)}},qh=function(f,c){var p=[];return Gi(f)?p.push(f.subdivide(.5,!1)):p.push(f),Gi(c)?p.push(c.subdivide(.5,!0)):p.push(c),p},zi=function(f,c,p,d){var b=[];return Gi(f)?b.push(f.subdivide(.5,!1)):b.push(f),Gi(p)?b.push(p.subdivide(.5,!0)):b.push(p),Gi(d)?b.push(d.subdivide(.5,!0).reverse()):b.push(d),Gi(c)?b.push(c.subdivide(.5,!1).reverse()):b.push(c),b},Ym=function(f){var c=f.bounds,p=f.styles;return c.add(p.borderLeftWidth,p.borderTopWidth,-(p.borderRightWidth+p.borderLeftWidth),-(p.borderTopWidth+p.borderBottomWidth))},Kh=function(f){var c=f.styles,p=f.bounds,d=BA(c.paddingLeft,p.width),b=BA(c.paddingRight,p.width),U=BA(c.paddingTop,p.width),L=BA(c.paddingBottom,p.width);return p.add(d+c.borderLeftWidth,U+c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth+d+b),-(c.borderTopWidth+c.borderBottomWidth+U+L))},cQ=function(f,c){return f===0?c.bounds:f===2?Kh(c):Ym(c)},uQ=function(f,c){return f===0?c.bounds:f===2?Kh(c):Ym(c)},x0=function(f,c,p){var d=cQ(Yl(f.styles.backgroundOrigin,c),f),b=uQ(Yl(f.styles.backgroundClip,c),f),U=fQ(Yl(f.styles.backgroundSize,c),p,d),L=U[0],G=U[1],V=Ui(Yl(f.styles.backgroundPosition,c),d.width-L,d.height-G),se=hQ(Yl(f.styles.backgroundRepeat,c),V,U,d,b),ue=Math.round(d.left+V[0]),Be=Math.round(d.top+V[1]);return[se,ue,Be,L,G]},Xl=function(f){return cA(f)&&f.value===ua.AUTO},jh=function(f){return typeof f=="number"},fQ=function(f,c,p){var d=c[0],b=c[1],U=c[2],L=f[0],G=f[1];if(!L)return[0,0];if(uA(L)&&G&&uA(G))return[BA(L,p.width),BA(G,p.height)];var V=jh(U);if(cA(L)&&(L.value===ua.CONTAIN||L.value===ua.COVER)){if(jh(U)){var se=p.width/p.height;return se<U!=(L.value===ua.COVER)?[p.width,p.width/U]:[p.height*U,p.height]}return[p.width,p.height]}var ue=jh(d),Be=jh(b),Ie=ue||Be;if(Xl(L)&&(!G||Xl(G))){if(ue&&Be)return[d,b];if(!V&&!Ie)return[p.width,p.height];if(Ie&&V){var it=ue?d:b*U,ze=Be?b:d/U;return[it,ze]}var et=ue?d:p.width,eA=Be?b:p.height;return[et,eA]}if(V){var Bt=0,wt=0;return uA(L)?Bt=BA(L,p.width):uA(G)&&(wt=BA(G,p.height)),Xl(L)?Bt=wt*U:(!G||Xl(G))&&(wt=Bt/U),[Bt,wt]}var CA=null,rA=null;if(uA(L)?CA=BA(L,p.width):G&&uA(G)&&(rA=BA(G,p.height)),CA!==null&&(!G||Xl(G))&&(rA=ue&&Be?CA/d*b:p.height),rA!==null&&Xl(L)&&(CA=ue&&Be?rA/b*d:p.width),CA!==null&&rA!==null)return[CA,rA];throw new Error("Unable to calculate background-size for element")},Yl=function(f,c){var p=f[c];return typeof p>"u"?f[0]:p},hQ=function(f,c,p,d,b){var U=c[0],L=c[1],G=p[0],V=p[1];switch(f){case 2:return[new At(Math.round(d.left),Math.round(d.top+L)),new At(Math.round(d.left+d.width),Math.round(d.top+L)),new At(Math.round(d.left+d.width),Math.round(V+d.top+L)),new At(Math.round(d.left),Math.round(V+d.top+L))];case 3:return[new At(Math.round(d.left+U),Math.round(d.top)),new At(Math.round(d.left+U+G),Math.round(d.top)),new At(Math.round(d.left+U+G),Math.round(d.height+d.top)),new At(Math.round(d.left+U),Math.round(d.height+d.top))];case 1:return[new At(Math.round(d.left+U),Math.round(d.top+L)),new At(Math.round(d.left+U+G),Math.round(d.top+L)),new At(Math.round(d.left+U+G),Math.round(d.top+L+V)),new At(Math.round(d.left+U),Math.round(d.top+L+V))];default:return[new At(Math.round(b.left),Math.round(b.top)),new At(Math.round(b.left+b.width),Math.round(b.top)),new At(Math.round(b.left+b.width),Math.round(b.height+b.top)),new At(Math.round(b.left),Math.round(b.height+b.top))]}},dQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Jm="Hidden Text",pQ=(function(){function f(c){this._data={},this._document=c}return f.prototype.parseMetrics=function(c,p){var d=this._document.createElement("div"),b=this._document.createElement("img"),U=this._document.createElement("span"),L=this._document.body;d.style.visibility="hidden",d.style.fontFamily=c,d.style.fontSize=p,d.style.margin="0",d.style.padding="0",d.style.whiteSpace="nowrap",L.appendChild(d),b.src=dQ,b.width=1,b.height=1,b.style.margin="0",b.style.padding="0",b.style.verticalAlign="baseline",U.style.fontFamily=c,U.style.fontSize=p,U.style.margin="0",U.style.padding="0",U.appendChild(this._document.createTextNode(Jm)),d.appendChild(U),d.appendChild(b);var G=b.offsetTop-U.offsetTop+2;d.removeChild(U),d.appendChild(this._document.createTextNode(Jm)),d.style.lineHeight="normal",b.style.verticalAlign="super";var V=b.offsetTop-d.offsetTop+2;return L.removeChild(d),{baseline:G,middle:V}},f.prototype.getMetrics=function(c,p){var d=c+" "+p;return typeof this._data[d]>"u"&&(this._data[d]=this.parseMetrics(c,p)),this._data[d]},f})(),Zm=(function(){function f(c,p){this.context=c,this.options=p}return f})(),gQ=1e4,wQ=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b._activeEffects=[],b.canvas=d.canvas?d.canvas:document.createElement("canvas"),b.ctx=b.canvas.getContext("2d"),d.canvas||(b.canvas.width=Math.floor(d.width*d.scale),b.canvas.height=Math.floor(d.height*d.scale),b.canvas.style.width=d.width+"px",b.canvas.style.height=d.height+"px"),b.fontMetrics=new pQ(document),b.ctx.scale(b.options.scale,b.options.scale),b.ctx.translate(-d.x,-d.y),b.ctx.textBaseline="bottom",b._activeEffects=[],b.context.logger.debug("Canvas renderer initialized ("+d.width+"x"+d.height+") with scale "+d.scale),b}return c.prototype.applyEffects=function(p){for(var d=this;this._activeEffects.length;)this.popEffect();p.forEach(function(b){return d.applyEffect(b)})},c.prototype.applyEffect=function(p){this.ctx.save(),nQ(p)&&(this.ctx.globalAlpha=p.opacity),rQ(p)&&(this.ctx.translate(p.offsetX,p.offsetY),this.ctx.transform(p.matrix[0],p.matrix[1],p.matrix[2],p.matrix[3],p.matrix[4],p.matrix[5]),this.ctx.translate(-p.offsetX,-p.offsetY)),Vm(p)&&(this.path(p.path),this.ctx.clip()),this._activeEffects.push(p)},c.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},c.prototype.renderStack=function(p){return r(this,void 0,void 0,function(){var d;return n(this,function(b){switch(b.label){case 0:return d=p.element.container.styles,d.isVisible()?[4,this.renderStackContent(p)]:[3,2];case 1:b.sent(),b.label=2;case 2:return[2]}})})},c.prototype.renderNode=function(p){return r(this,void 0,void 0,function(){return n(this,function(d){switch(d.label){case 0:if(pe(p.container.flags,16))debugger;return p.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(p)]:[3,3];case 1:return d.sent(),[4,this.renderNodeContent(p)];case 2:d.sent(),d.label=3;case 3:return[2]}})})},c.prototype.renderTextWithLetterSpacing=function(p,d,b){var U=this;if(d===0)this.ctx.fillText(p.text,p.bounds.left,p.bounds.top+b);else{var L=Bs(p.text);L.reduce(function(G,V){return U.ctx.fillText(V,G,p.bounds.top+b),G+U.ctx.measureText(V).width},p.bounds.left)}},c.prototype.createFontStyle=function(p){var d=p.fontVariant.filter(function(L){return L==="normal"||L==="small-caps"}).join(""),b=bQ(p.fontFamily).join(", "),U=Fi(p.fontSize)?""+p.fontSize.number+p.fontSize.unit:p.fontSize.number+"px";return[[p.fontStyle,d,p.fontWeight,U,b].join(" "),b,U]},c.prototype.renderTextNode=function(p,d){return r(this,void 0,void 0,function(){var b,U,L,G,V,se,ue,Be,Ie=this;return n(this,function(it){return b=this.createFontStyle(d),U=b[0],L=b[1],G=b[2],this.ctx.font=U,this.ctx.direction=d.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",V=this.fontMetrics.getMetrics(L,G),se=V.baseline,ue=V.middle,Be=d.paintOrder,p.textBounds.forEach(function(ze){Be.forEach(function(et){switch(et){case 0:Ie.ctx.fillStyle=nA(d.color),Ie.renderTextWithLetterSpacing(ze,d.letterSpacing,se);var eA=d.textShadow;eA.length&&ze.text.trim().length&&(eA.slice(0).reverse().forEach(function(Bt){Ie.ctx.shadowColor=nA(Bt.color),Ie.ctx.shadowOffsetX=Bt.offsetX.number*Ie.options.scale,Ie.ctx.shadowOffsetY=Bt.offsetY.number*Ie.options.scale,Ie.ctx.shadowBlur=Bt.blur.number,Ie.renderTextWithLetterSpacing(ze,d.letterSpacing,se)}),Ie.ctx.shadowColor="",Ie.ctx.shadowOffsetX=0,Ie.ctx.shadowOffsetY=0,Ie.ctx.shadowBlur=0),d.textDecorationLine.length&&(Ie.ctx.fillStyle=nA(d.textDecorationColor||d.color),d.textDecorationLine.forEach(function(Bt){switch(Bt){case 1:Ie.ctx.fillRect(ze.bounds.left,Math.round(ze.bounds.top+se),ze.bounds.width,1);break;case 2:Ie.ctx.fillRect(ze.bounds.left,Math.round(ze.bounds.top),ze.bounds.width,1);break;case 3:Ie.ctx.fillRect(ze.bounds.left,Math.ceil(ze.bounds.top+ue),ze.bounds.width,1);break}}));break;case 1:d.webkitTextStrokeWidth&&ze.text.trim().length&&(Ie.ctx.strokeStyle=nA(d.webkitTextStrokeColor),Ie.ctx.lineWidth=d.webkitTextStrokeWidth,Ie.ctx.lineJoin=window.chrome?"miter":"round",Ie.ctx.strokeText(ze.text,ze.bounds.left,ze.bounds.top+se)),Ie.ctx.strokeStyle="",Ie.ctx.lineWidth=0,Ie.ctx.lineJoin="miter";break}})}),[2]})})},c.prototype.renderReplacedElement=function(p,d,b){if(b&&p.intrinsicWidth>0&&p.intrinsicHeight>0){var U=Kh(p),L=Hh(d);this.path(L),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(b,0,0,p.intrinsicWidth,p.intrinsicHeight,U.left,U.top,U.width,U.height),this.ctx.restore()}},c.prototype.renderNodeContent=function(p){return r(this,void 0,void 0,function(){var d,b,U,L,G,V,wt,wt,se,ue,Be,Ie,rA,it,ze,qt,et,eA,Bt,wt,CA,rA,qt;return n(this,function(rt){switch(rt.label){case 0:this.applyEffects(p.getEffects(4)),d=p.container,b=p.curves,U=d.styles,L=0,G=d.textNodes,rt.label=1;case 1:return L<G.length?(V=G[L],[4,this.renderTextNode(V,U)]):[3,4];case 2:rt.sent(),rt.label=3;case 3:return L++,[3,1];case 4:if(!(d instanceof Ih))return[3,8];rt.label=5;case 5:return rt.trys.push([5,7,,8]),[4,this.context.cache.match(d.src)];case 6:return wt=rt.sent(),this.renderReplacedElement(d,b,wt),[3,8];case 7:return rt.sent(),this.context.logger.error("Error loading image "+d.src),[3,8];case 8:if(d instanceof jl&&this.renderReplacedElement(d,b,d.canvas),!(d instanceof Vl))return[3,12];rt.label=9;case 9:return rt.trys.push([9,11,,12]),[4,this.context.cache.match(d.svg)];case 10:return wt=rt.sent(),this.renderReplacedElement(d,b,wt),[3,12];case 11:return rt.sent(),this.context.logger.error("Error loading svg "+d.svg.substring(0,255)),[3,12];case 12:return d instanceof Em&&d.tree?(se=new c(this.context,{scale:this.options.scale,backgroundColor:d.backgroundColor,x:0,y:0,width:d.width,height:d.height}),[4,se.render(d.tree)]):[3,14];case 13:ue=rt.sent(),d.width&&d.height&&this.ctx.drawImage(ue,0,0,d.width,d.height,d.bounds.left,d.bounds.top,d.bounds.width,d.bounds.height),rt.label=14;case 14:if(d instanceof g0&&(Be=Math.min(d.bounds.width,d.bounds.height),d.type===Lh?d.checked&&(this.ctx.save(),this.path([new At(d.bounds.left+Be*.39363,d.bounds.top+Be*.79),new At(d.bounds.left+Be*.16,d.bounds.top+Be*.5549),new At(d.bounds.left+Be*.27347,d.bounds.top+Be*.44071),new At(d.bounds.left+Be*.39694,d.bounds.top+Be*.5649),new At(d.bounds.left+Be*.72983,d.bounds.top+Be*.23),new At(d.bounds.left+Be*.84,d.bounds.top+Be*.34085),new At(d.bounds.left+Be*.39363,d.bounds.top+Be*.79)]),this.ctx.fillStyle=nA(Bm),this.ctx.fill(),this.ctx.restore()):d.type===Th&&d.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(d.bounds.left+Be/2,d.bounds.top+Be/2,Be/4,0,Math.PI*2,!0),this.ctx.fillStyle=nA(Bm),this.ctx.fill(),this.ctx.restore())),vQ(d)&&d.value.length){switch(Ie=this.createFontStyle(U),rA=Ie[0],it=Ie[1],ze=this.fontMetrics.getMetrics(rA,it).baseline,this.ctx.font=rA,this.ctx.fillStyle=nA(U.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=yQ(d.styles.textAlign),qt=Kh(d),et=0,d.styles.textAlign){case 1:et+=qt.width/2;break;case 2:et+=qt.width;break}eA=qt.add(et,0,0,-qt.height/2+1),this.ctx.save(),this.path([new At(qt.left,qt.top),new At(qt.left+qt.width,qt.top),new At(qt.left+qt.width,qt.top+qt.height),new At(qt.left,qt.top+qt.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Zs(d.value,eA),U.letterSpacing,ze),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!pe(d.styles.display,2048))return[3,20];if(d.styles.listStyleImage===null)return[3,19];if(Bt=d.styles.listStyleImage,Bt.type!==0)return[3,18];wt=void 0,CA=Bt.url,rt.label=15;case 15:return rt.trys.push([15,17,,18]),[4,this.context.cache.match(CA)];case 16:return wt=rt.sent(),this.ctx.drawImage(wt,d.bounds.left-(wt.width+10),d.bounds.top),[3,18];case 17:return rt.sent(),this.context.logger.error("Error loading list-style-image "+CA),[3,18];case 18:return[3,20];case 19:p.listValue&&d.styles.listStyleType!==-1&&(rA=this.createFontStyle(U)[0],this.ctx.font=rA,this.ctx.fillStyle=nA(U.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",qt=new s(d.bounds.left,d.bounds.top+BA(d.styles.paddingTop,d.bounds.width),d.bounds.width,hh(U.lineHeight,U.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Zs(p.listValue,qt),U.letterSpacing,hh(U.lineHeight,U.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),rt.label=20;case 20:return[2]}})})},c.prototype.renderStackContent=function(p){return r(this,void 0,void 0,function(){var d,b,Bt,U,L,Bt,G,V,Bt,se,ue,Bt,Be,Ie,Bt,it,ze,Bt,et,eA,Bt;return n(this,function(wt){switch(wt.label){case 0:if(pe(p.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(p.element)];case 1:wt.sent(),d=0,b=p.negativeZIndex,wt.label=2;case 2:return d<b.length?(Bt=b[d],[4,this.renderStack(Bt)]):[3,5];case 3:wt.sent(),wt.label=4;case 4:return d++,[3,2];case 5:return[4,this.renderNodeContent(p.element)];case 6:wt.sent(),U=0,L=p.nonInlineLevel,wt.label=7;case 7:return U<L.length?(Bt=L[U],[4,this.renderNode(Bt)]):[3,10];case 8:wt.sent(),wt.label=9;case 9:return U++,[3,7];case 10:G=0,V=p.nonPositionedFloats,wt.label=11;case 11:return G<V.length?(Bt=V[G],[4,this.renderStack(Bt)]):[3,14];case 12:wt.sent(),wt.label=13;case 13:return G++,[3,11];case 14:se=0,ue=p.nonPositionedInlineLevel,wt.label=15;case 15:return se<ue.length?(Bt=ue[se],[4,this.renderStack(Bt)]):[3,18];case 16:wt.sent(),wt.label=17;case 17:return se++,[3,15];case 18:Be=0,Ie=p.inlineLevel,wt.label=19;case 19:return Be<Ie.length?(Bt=Ie[Be],[4,this.renderNode(Bt)]):[3,22];case 20:wt.sent(),wt.label=21;case 21:return Be++,[3,19];case 22:it=0,ze=p.zeroOrAutoZIndexOrTransformedOrOpacity,wt.label=23;case 23:return it<ze.length?(Bt=ze[it],[4,this.renderStack(Bt)]):[3,26];case 24:wt.sent(),wt.label=25;case 25:return it++,[3,23];case 26:et=0,eA=p.positiveZIndex,wt.label=27;case 27:return et<eA.length?(Bt=eA[et],[4,this.renderStack(Bt)]):[3,30];case 28:wt.sent(),wt.label=29;case 29:return et++,[3,27];case 30:return[2]}})})},c.prototype.mask=function(p){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(p.slice(0).reverse()),this.ctx.closePath()},c.prototype.path=function(p){this.ctx.beginPath(),this.formatPath(p),this.ctx.closePath()},c.prototype.formatPath=function(p){var d=this;p.forEach(function(b,U){var L=Gi(b)?b.start:b;U===0?d.ctx.moveTo(L.x,L.y):d.ctx.lineTo(L.x,L.y),Gi(b)&&d.ctx.bezierCurveTo(b.startControl.x,b.startControl.y,b.endControl.x,b.endControl.y,b.end.x,b.end.y)})},c.prototype.renderRepeat=function(p,d,b,U){this.path(p),this.ctx.fillStyle=d,this.ctx.translate(b,U),this.ctx.fill(),this.ctx.translate(-b,-U)},c.prototype.resizeImage=function(p,d,b){var U;if(p.width===d&&p.height===b)return p;var L=(U=this.canvas.ownerDocument)!==null&&U!==void 0?U:document,G=L.createElement("canvas");G.width=Math.max(1,d),G.height=Math.max(1,b);var V=G.getContext("2d");return V.drawImage(p,0,0,p.width,p.height,0,0,d,b),G},c.prototype.renderBackgroundImage=function(p){return r(this,void 0,void 0,function(){var d,b,U,L,G,V;return n(this,function(se){switch(se.label){case 0:d=p.styles.backgroundImage.length-1,b=function(ue){var Be,Ie,it,Lr,fi,hi,kA,pn,gA,ze,Lr,fi,hi,kA,pn,et,eA,Bt,wt,CA,rA,qt,rt,pA,gA,Vt,Lr,ui,Li,kA,pn,Ao,fi,hi,Ho,qa,ro,Mo,qo,Cs,Ko,Es;return n(this,function(Jl){switch(Jl.label){case 0:if(ue.type!==0)return[3,5];Be=void 0,Ie=ue.url,Jl.label=1;case 1:return Jl.trys.push([1,3,,4]),[4,U.context.cache.match(Ie)];case 2:return Be=Jl.sent(),[3,4];case 3:return Jl.sent(),U.context.logger.error("Error loading background-image "+Ie),[3,4];case 4:return Be&&(it=x0(p,d,[Be.width,Be.height,Be.width/Be.height]),Lr=it[0],fi=it[1],hi=it[2],kA=it[3],pn=it[4],gA=U.ctx.createPattern(U.resizeImage(Be,kA,pn),"repeat"),U.renderRepeat(Lr,gA,fi,hi)),[3,6];case 5:ah(ue)?(ze=x0(p,d,[null,null,null]),Lr=ze[0],fi=ze[1],hi=ze[2],kA=ze[3],pn=ze[4],et=tn(ue.angle,kA,pn),eA=et[0],Bt=et[1],wt=et[2],CA=et[3],rA=et[4],qt=document.createElement("canvas"),qt.width=kA,qt.height=pn,rt=qt.getContext("2d"),pA=rt.createLinearGradient(Bt,CA,wt,rA),la(ue.stops,eA).forEach(function(_u){return pA.addColorStop(_u.stop,nA(_u.color))}),rt.fillStyle=pA,rt.fillRect(0,0,kA,pn),kA>0&&pn>0&&(gA=U.ctx.createPattern(qt,"repeat"),U.renderRepeat(Lr,gA,fi,hi))):sh(ue)&&(Vt=x0(p,d,[null,null,null]),Lr=Vt[0],ui=Vt[1],Li=Vt[2],kA=Vt[3],pn=Vt[4],Ao=ue.position.length===0?[Ks]:ue.position,fi=BA(Ao[0],kA),hi=BA(Ao[Ao.length-1],pn),Ho=RA(ue,fi,hi,kA,pn),qa=Ho[0],ro=Ho[1],qa>0&&ro>0&&(Mo=U.ctx.createRadialGradient(ui+fi,Li+hi,0,ui+fi,Li+hi,qa),la(ue.stops,qa*2).forEach(function(_u){return Mo.addColorStop(_u.stop,nA(_u.color))}),U.path(Lr),U.ctx.fillStyle=Mo,qa!==ro?(qo=p.bounds.left+.5*p.bounds.width,Cs=p.bounds.top+.5*p.bounds.height,Ko=ro/qa,Es=1/Ko,U.ctx.save(),U.ctx.translate(qo,Cs),U.ctx.transform(1,0,0,Ko,0,0),U.ctx.translate(-qo,-Cs),U.ctx.fillRect(ui,Es*(Li-Cs)+Cs,kA,pn*Es),U.ctx.restore()):U.ctx.fill())),Jl.label=6;case 6:return d--,[2]}})},U=this,L=0,G=p.styles.backgroundImage.slice(0).reverse(),se.label=1;case 1:return L<G.length?(V=G[L],[5,b(V)]):[3,4];case 2:se.sent(),se.label=3;case 3:return L++,[3,1];case 4:return[2]}})})},c.prototype.renderSolidBorder=function(p,d,b){return r(this,void 0,void 0,function(){return n(this,function(U){return this.path(Xm(b,d)),this.ctx.fillStyle=nA(p),this.ctx.fill(),[2]})})},c.prototype.renderDoubleBorder=function(p,d,b,U){return r(this,void 0,void 0,function(){var L,G;return n(this,function(V){switch(V.label){case 0:return d<3?[4,this.renderSolidBorder(p,b,U)]:[3,2];case 1:return V.sent(),[2];case 2:return L=sQ(U,b),this.path(L),this.ctx.fillStyle=nA(p),this.ctx.fill(),G=oQ(U,b),this.path(G),this.ctx.fill(),[2]}})})},c.prototype.renderNodeBackgroundAndBorders=function(p){return r(this,void 0,void 0,function(){var d,b,U,L,G,V,se,ue,Be=this;return n(this,function(Ie){switch(Ie.label){case 0:return this.applyEffects(p.getEffects(2)),d=p.container.styles,b=!bn(d.backgroundColor)||d.backgroundImage.length,U=[{style:d.borderTopStyle,color:d.borderTopColor,width:d.borderTopWidth},{style:d.borderRightStyle,color:d.borderRightColor,width:d.borderRightWidth},{style:d.borderBottomStyle,color:d.borderBottomColor,width:d.borderBottomWidth},{style:d.borderLeftStyle,color:d.borderLeftColor,width:d.borderLeftWidth}],L=mQ(Yl(d.backgroundClip,0),p.curves),b||d.boxShadow.length?(this.ctx.save(),this.path(L),this.ctx.clip(),bn(d.backgroundColor)||(this.ctx.fillStyle=nA(d.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(p.container)]):[3,2];case 1:Ie.sent(),this.ctx.restore(),d.boxShadow.slice(0).reverse().forEach(function(it){Be.ctx.save();var ze=Dh(p.curves),et=it.inset?0:gQ,eA=iQ(ze,-et+(it.inset?1:-1)*it.spread.number,(it.inset?1:-1)*it.spread.number,it.spread.number*(it.inset?-2:2),it.spread.number*(it.inset?-2:2));it.inset?(Be.path(ze),Be.ctx.clip(),Be.mask(eA)):(Be.mask(ze),Be.ctx.clip(),Be.path(eA)),Be.ctx.shadowOffsetX=it.offsetX.number+et,Be.ctx.shadowOffsetY=it.offsetY.number,Be.ctx.shadowColor=nA(it.color),Be.ctx.shadowBlur=it.blur.number,Be.ctx.fillStyle=it.inset?nA(it.color):"rgba(0,0,0,1)",Be.ctx.fill(),Be.ctx.restore()}),Ie.label=2;case 2:G=0,V=0,se=U,Ie.label=3;case 3:return V<se.length?(ue=se[V],ue.style!==0&&!bn(ue.color)&&ue.width>0?ue.style!==2?[3,5]:[4,this.renderDashedDottedBorder(ue.color,ue.width,G,p.curves,2)]:[3,11]):[3,13];case 4:return Ie.sent(),[3,11];case 5:return ue.style!==3?[3,7]:[4,this.renderDashedDottedBorder(ue.color,ue.width,G,p.curves,3)];case 6:return Ie.sent(),[3,11];case 7:return ue.style!==4?[3,9]:[4,this.renderDoubleBorder(ue.color,ue.width,G,p.curves)];case 8:return Ie.sent(),[3,11];case 9:return[4,this.renderSolidBorder(ue.color,G,p.curves)];case 10:Ie.sent(),Ie.label=11;case 11:G++,Ie.label=12;case 12:return V++,[3,3];case 13:return[2]}})})},c.prototype.renderDashedDottedBorder=function(p,d,b,U,L){return r(this,void 0,void 0,function(){var G,V,se,ue,Be,Ie,it,ze,et,eA,Bt,wt,CA,rA,qt,rt,qt,rt;return n(this,function(pA){return this.ctx.save(),G=lQ(U,b),V=Xm(U,b),L===2&&(this.path(V),this.ctx.clip()),Gi(V[0])?(se=V[0].start.x,ue=V[0].start.y):(se=V[0].x,ue=V[0].y),Gi(V[1])?(Be=V[1].end.x,Ie=V[1].end.y):(Be=V[1].x,Ie=V[1].y),b===0||b===2?it=Math.abs(se-Be):it=Math.abs(ue-Ie),this.ctx.beginPath(),L===3?this.formatPath(G):this.formatPath(V.slice(0,2)),ze=d<3?d*3:d*2,et=d<3?d*2:d,L===3&&(ze=d,et=d),eA=!0,it<=ze*2?eA=!1:it<=ze*2+et?(Bt=it/(2*ze+et),ze*=Bt,et*=Bt):(wt=Math.floor((it+et)/(ze+et)),CA=(it-wt*ze)/(wt-1),rA=(it-(wt+1)*ze)/wt,et=rA<=0||Math.abs(et-CA)<Math.abs(et-rA)?CA:rA),eA&&(L===3?this.ctx.setLineDash([0,ze+et]):this.ctx.setLineDash([ze,et])),L===3?(this.ctx.lineCap="round",this.ctx.lineWidth=d):this.ctx.lineWidth=d*2+1.1,this.ctx.strokeStyle=nA(p),this.ctx.stroke(),this.ctx.setLineDash([]),L===2&&(Gi(V[0])&&(qt=V[3],rt=V[0],this.ctx.beginPath(),this.formatPath([new At(qt.end.x,qt.end.y),new At(rt.start.x,rt.start.y)]),this.ctx.stroke()),Gi(V[1])&&(qt=V[1],rt=V[2],this.ctx.beginPath(),this.formatPath([new At(qt.end.x,qt.end.y),new At(rt.start.x,rt.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},c.prototype.render=function(p){return r(this,void 0,void 0,function(){var d;return n(this,function(b){switch(b.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=nA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),d=aQ(p),[4,this.renderStack(d)];case 1:return b.sent(),this.applyEffects([]),[2,this.canvas]}})})},c})(Zm),vQ=function(f){return f instanceof Cm||f instanceof bm?!0:f instanceof g0&&f.type!==Th&&f.type!==Lh},mQ=function(f,c){switch(f){case 0:return Dh(c);case 2:return eQ(c);default:return Hh(c)}},yQ=function(f){switch(f){case 1:return"center";case 2:return"right";default:return"left"}},BQ=["-apple-system","system-ui"],bQ=function(f){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?f.filter(function(c){return BQ.indexOf(c)===-1}):f},CQ=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.canvas=d.canvas?d.canvas:document.createElement("canvas"),b.ctx=b.canvas.getContext("2d"),b.options=d,b.canvas.width=Math.floor(d.width*d.scale),b.canvas.height=Math.floor(d.height*d.scale),b.canvas.style.width=d.width+"px",b.canvas.style.height=d.height+"px",b.ctx.scale(b.options.scale,b.options.scale),b.ctx.translate(-d.x,-d.y),b.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+d.width+"x"+d.height+" at "+d.x+","+d.y+") with scale "+d.scale),b}return c.prototype.render=function(p){return r(this,void 0,void 0,function(){var d,b;return n(this,function(U){switch(U.label){case 0:return d=Ml(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,p),[4,EQ(d)];case 1:return b=U.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=nA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(b,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},c})(Zm),EQ=function(f){return new Promise(function(c,p){var d=new Image;d.onload=function(){c(d)},d.onerror=p,d.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(f))})},FQ=(function(){function f(c){var p=c.id,d=c.enabled;this.id=p,this.enabled=d,this.start=Date.now()}return f.prototype.debug=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,i([this.id,this.getTime()+"ms"],c)):this.info.apply(this,c))},f.prototype.getTime=function(){return Date.now()-this.start},f.prototype.info=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,i([this.id,this.getTime()+"ms"],c))},f.prototype.warn=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,i([this.id,this.getTime()+"ms"],c)):this.info.apply(this,c))},f.prototype.error=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,i([this.id,this.getTime()+"ms"],c)):this.info.apply(this,c))},f.instances={},f})(),UQ=(function(){function f(c,p){var d;this.windowBounds=p,this.instanceName="#"+f.instanceCount++,this.logger=new FQ({id:this.instanceName,enabled:c.logging}),this.cache=(d=c.cache)!==null&&d!==void 0?d:new G3(this,c)}return f.instanceCount=1,f})(),xQ=function(f,c){return c===void 0&&(c={}),_Q(f,c)};typeof window<"u"&&jm.setContext(window);var _Q=function(f,c){return r(void 0,void 0,void 0,function(){var p,d,b,U,L,G,V,se,ue,Be,Ie,it,ze,et,eA,Bt,wt,CA,rA,qt,pA,rt,pA,gA,Vt,Lr,ui,Li,kA,pn,Ao,fi,hi,Ho,qa,ro,Mo,qo,Cs,Ko;return n(this,function(Es){switch(Es.label){case 0:if(!f||typeof f!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(p=f.ownerDocument,!p)throw new Error("Element is not attached to a Document");if(d=p.defaultView,!d)throw new Error("Document is not attached to a Window");return b={allowTaint:(gA=c.allowTaint)!==null&&gA!==void 0?gA:!1,imageTimeout:(Vt=c.imageTimeout)!==null&&Vt!==void 0?Vt:15e3,proxy:c.proxy,useCORS:(Lr=c.useCORS)!==null&&Lr!==void 0?Lr:!1},U=A({logging:(ui=c.logging)!==null&&ui!==void 0?ui:!0,cache:c.cache},b),L={windowWidth:(Li=c.windowWidth)!==null&&Li!==void 0?Li:d.innerWidth,windowHeight:(kA=c.windowHeight)!==null&&kA!==void 0?kA:d.innerHeight,scrollX:(pn=c.scrollX)!==null&&pn!==void 0?pn:d.pageXOffset,scrollY:(Ao=c.scrollY)!==null&&Ao!==void 0?Ao:d.pageYOffset},G=new s(L.scrollX,L.scrollY,L.windowWidth,L.windowHeight),V=new UQ(U,G),se=(fi=c.foreignObjectRendering)!==null&&fi!==void 0?fi:!1,ue={allowTaint:(hi=c.allowTaint)!==null&&hi!==void 0?hi:!1,onclone:c.onclone,ignoreElements:c.ignoreElements,inlineImages:se,copyStyles:se},V.logger.debug("Starting document clone with size "+G.width+"x"+G.height+" scrolled to "+-G.left+","+-G.top),Be=new qm(V,f,ue),Ie=Be.clonedReferenceElement,Ie?[4,Be.toIFrame(p,G)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return it=Es.sent(),ze=v0(Ie)||S3(Ie)?o(Ie.ownerDocument):a(V,Ie),et=ze.width,eA=ze.height,Bt=ze.left,wt=ze.top,CA=SQ(V,Ie,c.backgroundColor),rA={canvas:c.canvas,backgroundColor:CA,scale:(qa=(Ho=c.scale)!==null&&Ho!==void 0?Ho:d.devicePixelRatio)!==null&&qa!==void 0?qa:1,x:((ro=c.x)!==null&&ro!==void 0?ro:0)+Bt,y:((Mo=c.y)!==null&&Mo!==void 0?Mo:0)+wt,width:(qo=c.width)!==null&&qo!==void 0?qo:Math.ceil(et),height:(Cs=c.height)!==null&&Cs!==void 0?Cs:Math.ceil(eA)},se?(V.logger.debug("Document cloned, using foreign object rendering"),pA=new CQ(V,rA),[4,pA.render(Ie)]):[3,3];case 2:return qt=Es.sent(),[3,5];case 3:return V.logger.debug("Document cloned, element located at "+Bt+","+wt+" with size "+et+"x"+eA+" using computed rendering"),V.logger.debug("Starting DOM parsing"),rt=Um(V,Ie),CA===rt.styles.backgroundColor&&(rt.styles.backgroundColor=fn.TRANSPARENT),V.logger.debug("Starting renderer for element at "+rA.x+","+rA.y+" with size "+rA.width+"x"+rA.height),pA=new wQ(V,rA),[4,pA.render(rt)];case 4:qt=Es.sent(),Es.label=5;case 5:return(!((Ko=c.removeContainer)!==null&&Ko!==void 0)||Ko)&&(qm.destroy(it)||V.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),V.logger.debug("Finished rendering"),[2,qt]}})})},SQ=function(f,c,p){var d=c.ownerDocument,b=d.documentElement?Vi(f,getComputedStyle(d.documentElement).backgroundColor):fn.TRANSPARENT,U=d.body?Vi(f,getComputedStyle(d.body).backgroundColor):fn.TRANSPARENT,L=typeof p=="string"?Vi(f,p):p===null?fn.TRANSPARENT:4294967295;return c===d.documentElement?bn(b)?bn(U)?L:U:b:L};return xQ}))});function dA(t){"@babel/helpers - typeof";return dA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dA(t)}var ad=zt(()=>{});var Zb={};or(Zb,{default:()=>MN});function Pb(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=Array(e);A<e;A++)r[A]=t[A];return r}function oN(t){if(Array.isArray(t))return t}function lN(t,e){var A=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(A!=null){var r,n,i,s,a=[],o=!0,l=!1;try{if(i=(A=A.call(t)).next,e!==0)for(;!(o=(r=i.call(A)).done)&&(a.push(r.value),a.length!==e);o=!0);}catch(h){l=!0,n=h}finally{try{if(!o&&A.return!=null&&(s=A.return(),Object(s)!==s))return}finally{if(l)throw n}}return a}}function cN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uN(t,e){return oN(t)||lN(t,e)||fN(t,e)||cN()}function fN(t,e){if(t){if(typeof t=="string")return Pb(t,e);var A={}.toString.call(t).slice(8,-1);return A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set"?Array.from(t):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?Pb(t,e):void 0}}function Nr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var A=arguments.length,r=new Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];return a1(t,e,r)}}function BN(t){return function(){for(var e=arguments.length,A=new Array(e),r=0;r<e;r++)A[r]=arguments[r];return s1(t,A)}}function wA(t,e){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ff;if(Rb&&Rb(t,null),!ho(e))return t;let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){let i=A(n);i!==n&&(hN(e)||(e[r]=i),n=i)}t[n]=!0}return t}function bN(t){for(let e=0;e<t.length;e++)an(t,e)||(t[e]=null);return t}function Zn(t){let e=pc(null);for(let r of Xb(t)){var A=uN(r,2);let n=A[0],i=A[1];an(t,n)&&(ho(i)?e[n]=bN(i):i&&typeof i=="object"&&i.constructor===Object?e[n]=Zn(i):e[n]=i)}return e}function CN(t){switch(typeof t){case"string":return t;case"number":return mN(t);case"boolean":return yN(t);case"bigint":return Mb?Mb(t):"0";case"symbol":return qb?qb(t):"Symbol()";case"undefined":return uf(t);case"function":case"object":{if(t===null)return uf(t);let e=t,A=Ja(e,"toString");if(typeof A=="function"){let r=A(e);return typeof r=="string"?r:uf(r)}return uf(t)}default:return uf(t)}}function Ja(t,e){for(;t!==null;){let r=pN(t,e);if(r){if(r.get)return Nr(r.get);if(typeof r.value=="function")return Nr(r.value)}t=dN(t)}function A(){return null}return A}function EN(t){try{return vn(t,""),!0}catch{return!1}}function Jb(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DN(),e=We=>Jb(We);if(e.version="3.4.11",e.removed=[],!t||!t.document||t.document.nodeType!==Ya.document||!t.Element)return e.isSupported=!1,e;let A=t.document,r=A,n=r.currentScript;t.DocumentFragment;let i=t.HTMLTemplateElement,s=t.Node,a=t.Element,o=t.NodeFilter,l=t.NamedNodeMap;l===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;let h=t.DOMParser,v=t.trustedTypes,m=a.prototype,g=Ja(m,"cloneNode"),C=Ja(m,"remove"),F=Ja(m,"nextSibling"),_=Ja(m,"childNodes"),x=Ja(m,"parentNode"),H=Ja(m,"shadowRoot"),D=Ja(m,"attributes"),k=s&&s.prototype?Ja(s.prototype,"nodeType"):null,re=s&&s.prototype?Ja(s.prototype,"nodeName"):null;if(typeof i=="function"){let We=A.createElement("template");We.content&&We.content.ownerDocument&&(A=We.content.ownerDocument)}let fe,Ae="",j,N=!1,Z=0,I=function(){if(Z>0)throw nl('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},O=function(X){I(),Z++;try{return fe.createHTML(X)}finally{Z--}},Y=function(X){I(),Z++;try{return fe.createScriptURL(X)}finally{Z--}},ee=function(){return N||(j=HN(v,n),N=!0),j},ce=A,be=ce.implementation,Fe=ce.createNodeIterator,de=ce.createDocumentFragment,Ee=ce.getElementsByTagName,Pe=r.importNode,Ue=$b();e.isSupported=typeof Xb=="function"&&typeof x=="function"&&be&&be.createHTMLDocument!==void 0;let P=xN,J=_N,te=SN,ie=QN,oe=IN,ve=LN,xe=TN,_e=ON,Le=zb,Oe=null,Je=wA({},[...Kb,...A1,...r1,...n1,...jb]),qe=null,at=wA({},[...Vb,...i1,...Gb,...Sd]),q=Object.seal(pc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),je=null,Tt=null,ut=Object.seal(pc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Re=!0,dt=!0,$e=!1,lt=!0,Ze=!1,Ut=!0,Nt=!1,St=!1,Ht=null,Ot=null,tt=!1,yt=!1,Xe=!1,aA=!1,Gt=!0,It=!1,Rt="user-content-",tA=!0,mt=!1,Jt={},nt=null,xt=wA({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),fA=null,bt=wA({},["audio","video","img","source","image","track"]),Ct=null,sA=wA({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ln="http://www.w3.org/1998/Math/MathML",qA="http://www.w3.org/2000/svg",WA="http://www.w3.org/1999/xhtml",Sr=WA,_t=!1,On=null,ti=wA({},[ln,qA,WA],t1),Lt=mn(["mi","mo","mn","ms","mtext"]),vr=wA({},Lt),IA=mn(["annotation-xml"]),mA=wA({},IA),rr=wA({},["title","style","font","a","script"]),Bn=null,mi=["application/xhtml+xml","text/html"],Pn="text/html",oA=null,Qr=null,Rn=A.createElement("form"),kr=function(X){return X instanceof RegExp||X instanceof Function},Ai=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Qr&&Qr===X)return;(!X||typeof X!="object")&&(X={}),X=Zn(X),Bn=mi.indexOf(X.PARSER_MEDIA_TYPE)===-1?Pn:X.PARSER_MEDIA_TYPE,oA=Bn==="application/xhtml+xml"?t1:ff,Oe=fo(X,"ALLOWED_TAGS",Je,{transform:oA}),qe=fo(X,"ALLOWED_ATTR",at,{transform:oA}),On=fo(X,"ALLOWED_NAMESPACES",ti,{transform:t1}),Ct=fo(X,"ADD_URI_SAFE_ATTR",sA,{transform:oA,base:sA}),fA=fo(X,"ADD_DATA_URI_TAGS",bt,{transform:oA,base:bt}),nt=fo(X,"FORBID_CONTENTS",xt,{transform:oA}),je=fo(X,"FORBID_TAGS",Zn({}),{transform:oA}),Tt=fo(X,"FORBID_ATTR",Zn({}),{transform:oA}),Jt=an(X,"USE_PROFILES")?X.USE_PROFILES&&typeof X.USE_PROFILES=="object"?Zn(X.USE_PROFILES):X.USE_PROFILES:!1,Re=X.ALLOW_ARIA_ATTR!==!1,dt=X.ALLOW_DATA_ATTR!==!1,$e=X.ALLOW_UNKNOWN_PROTOCOLS||!1,lt=X.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=X.SAFE_FOR_TEMPLATES||!1,Ut=X.SAFE_FOR_XML!==!1,Nt=X.WHOLE_DOCUMENT||!1,yt=X.RETURN_DOM||!1,Xe=X.RETURN_DOM_FRAGMENT||!1,aA=X.RETURN_TRUSTED_TYPE||!1,tt=X.FORCE_BODY||!1,Gt=X.SANITIZE_DOM!==!1,It=X.SANITIZE_NAMED_PROPS||!1,tA=X.KEEP_CONTENT!==!1,mt=X.IN_PLACE||!1,Le=EN(X.ALLOWED_URI_REGEXP)?X.ALLOWED_URI_REGEXP:zb,Sr=typeof X.NAMESPACE=="string"?X.NAMESPACE:WA,vr=an(X,"MATHML_TEXT_INTEGRATION_POINTS")&&X.MATHML_TEXT_INTEGRATION_POINTS&&typeof X.MATHML_TEXT_INTEGRATION_POINTS=="object"?Zn(X.MATHML_TEXT_INTEGRATION_POINTS):wA({},Lt),mA=an(X,"HTML_INTEGRATION_POINTS")&&X.HTML_INTEGRATION_POINTS&&typeof X.HTML_INTEGRATION_POINTS=="object"?Zn(X.HTML_INTEGRATION_POINTS):wA({},IA);let ye=an(X,"CUSTOM_ELEMENT_HANDLING")&&X.CUSTOM_ELEMENT_HANDLING&&typeof X.CUSTOM_ELEMENT_HANDLING=="object"?Zn(X.CUSTOM_ELEMENT_HANDLING):pc(null);if(q=pc(null),an(ye,"tagNameCheck")&&kr(ye.tagNameCheck)&&(q.tagNameCheck=ye.tagNameCheck),an(ye,"attributeNameCheck")&&kr(ye.attributeNameCheck)&&(q.attributeNameCheck=ye.attributeNameCheck),an(ye,"allowCustomizedBuiltInElements")&&typeof ye.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=ye.allowCustomizedBuiltInElements),yn(q),Ze&&(dt=!1),Xe&&(yt=!0),Jt&&(Oe=wA({},jb),qe=pc(null),Jt.html===!0&&(wA(Oe,Kb),wA(qe,Vb)),Jt.svg===!0&&(wA(Oe,A1),wA(qe,i1),wA(qe,Sd)),Jt.svgFilters===!0&&(wA(Oe,r1),wA(qe,i1),wA(qe,Sd)),Jt.mathMl===!0&&(wA(Oe,n1),wA(qe,Gb),wA(qe,Sd))),ut.tagCheck=null,ut.attributeCheck=null,an(X,"ADD_TAGS")&&(typeof X.ADD_TAGS=="function"?ut.tagCheck=X.ADD_TAGS:ho(X.ADD_TAGS)&&(Oe===Je&&(Oe=Zn(Oe)),wA(Oe,X.ADD_TAGS,oA))),an(X,"ADD_ATTR")&&(typeof X.ADD_ATTR=="function"?ut.attributeCheck=X.ADD_ATTR:ho(X.ADD_ATTR)&&(qe===at&&(qe=Zn(qe)),wA(qe,X.ADD_ATTR,oA))),an(X,"ADD_URI_SAFE_ATTR")&&ho(X.ADD_URI_SAFE_ATTR)&&wA(Ct,X.ADD_URI_SAFE_ATTR,oA),an(X,"FORBID_CONTENTS")&&ho(X.FORBID_CONTENTS)&&(nt===xt&&(nt=Zn(nt)),wA(nt,X.FORBID_CONTENTS,oA)),an(X,"ADD_FORBID_CONTENTS")&&ho(X.ADD_FORBID_CONTENTS)&&(nt===xt&&(nt=Zn(nt)),wA(nt,X.ADD_FORBID_CONTENTS,oA)),tA&&(Oe["#text"]=!0),Nt&&wA(Oe,["html","head","body"]),Oe.table&&(wA(Oe,["tbody"]),delete je.tbody),X.TRUSTED_TYPES_POLICY){if(typeof X.TRUSTED_TYPES_POLICY.createHTML!="function")throw nl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof X.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw nl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let Ve=fe;fe=X.TRUSTED_TYPES_POLICY;try{Ae=O("")}catch(st){throw fe=Ve,st}}else X.TRUSTED_TYPES_POLICY===null?(fe=void 0,Ae=""):(fe===void 0&&(fe=ee()),fe&&typeof Ae=="string"&&(Ae=O("")));mn&&mn(X),Qr=X},kn=wA({},[...A1,...r1,...FN]),ki=wA({},[...n1,...UN]),Ua=function(X,ye,Ve){return ye.namespaceURI===WA?X==="svg":ye.namespaceURI===ln?X==="svg"&&(Ve==="annotation-xml"||vr[Ve]):!!kn[X]},xa=function(X,ye,Ve){return ye.namespaceURI===WA?X==="math":ye.namespaceURI===qA?X==="math"&&mA[Ve]:!!ki[X]},_a=function(X,ye,Ve){return ye.namespaceURI===qA&&!mA[Ve]||ye.namespaceURI===ln&&!vr[Ve]?!1:!ki[X]&&(rr[X]||!kn[X])},Uo=function(X){let ye=x(X);(!ye||!ye.tagName)&&(ye={namespaceURI:Sr,tagName:"template"});let Ve=ff(X.tagName),st=ff(ye.tagName);return On[X.namespaceURI]?X.namespaceURI===qA?Ua(Ve,ye,st):X.namespaceURI===ln?xa(Ve,ye,st):X.namespaceURI===WA?_a(Ve,ye,st):!!(Bn==="application/xhtml+xml"&&On[X.namespaceURI]):!1},Ir=function(X){dc(e.removed,{element:X});try{x(X).removeChild(X)}catch{if(C(X),!x(X))throw nl("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Sa=function(X){let ye=_(X);if(ye){let st=[];lf(ye,kt=>{dc(st,kt)}),lf(st,kt=>{try{C(kt)}catch{}})}let Ve=D(X);if(Ve)for(let st=Ve.length-1;st>=0;--st){let kt=Ve[st],Zt=kt&&kt.name;if(typeof Zt=="string")try{X.removeAttribute(Zt)}catch{}}},cn=function(X,ye){try{dc(e.removed,{attribute:ye.getAttributeNode(X),from:ye})}catch{dc(e.removed,{attribute:null,from:ye})}if(ye.removeAttribute(X),X==="is")if(yt||Xe)try{Ir(ye)}catch{}else try{ye.setAttribute(X,"")}catch{}},un=function(X){let ye=D(X);if(ye)for(let Ve=ye.length-1;Ve>=0;--Ve){let st=ye[Ve],kt=st&&st.name;if(!(typeof kt!="string"||qe[oA(kt)]))try{X.removeAttribute(kt)}catch{}}},yi=function(X){let ye=[X];for(;ye.length>0;){let Ve=ye.pop();(k?k(Ve):Ve.nodeType)===Ya.element&&un(Ve);let kt=_(Ve);if(kt)for(let Zt=kt.length-1;Zt>=0;--Zt)ye.push(kt[Zt])}},is=function(X){let ye=null,Ve=null;if(tt)X="<remove></remove>"+X;else{let Zt=Db(X,/^[\r\n\t ]+/);Ve=Zt&&Zt[0]}Bn==="application/xhtml+xml"&&Sr===WA&&(X='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+X+"</body></html>");let st=fe?O(X):X;if(Sr===WA)try{ye=new h().parseFromString(st,Bn)}catch{}if(!ye||!ye.documentElement){ye=be.createDocument(Sr,"template",null);try{ye.documentElement.innerHTML=_t?Ae:st}catch{}}let kt=ye.body||ye.documentElement;return X&&Ve&&kt.insertBefore(A.createTextNode(Ve),kt.childNodes[0]||null),Sr===WA?Ee.call(ye,Nt?"html":"body")[0]:Nt?ye.documentElement:kt},Qa=function(X){return Fe.call(X.ownerDocument||X,X,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null)},ri=function(X){return X=cf(X,P," "),X=cf(X,J," "),X=cf(X,te," "),X},ni=function(X){var ye;X.normalize();let Ve=Fe.call(X.ownerDocument||X,X,o.SHOW_TEXT|o.SHOW_COMMENT|o.SHOW_CDATA_SECTION|o.SHOW_PROCESSING_INSTRUCTION,null),st=Ve.nextNode();for(;st;)st.data=ri(st.data),st=Ve.nextNode();let kt=(ye=X.querySelectorAll)===null||ye===void 0?void 0:ye.call(X,"template");kt&&lf(kt,Zt=>{Dr(Zt.content)&&ni(Zt.content)})},ra=function(X){let ye=re?re(X):null;return typeof ye!="string"||oA(ye)!=="form"?!1:typeof X.nodeName!="string"||typeof X.textContent!="string"||typeof X.removeChild!="function"||X.attributes!==D(X)||typeof X.removeAttribute!="function"||typeof X.setAttribute!="function"||typeof X.namespaceURI!="string"||typeof X.insertBefore!="function"||typeof X.hasChildNodes!="function"||X.nodeType!==k(X)||X.childNodes!==_(X)},Dr=function(X){if(!k||typeof X!="object"||X===null)return!1;try{return k(X)===Ya.documentFragment}catch{return!1}},ii=function(X){if(!k||typeof X!="object"||X===null)return!1;try{return typeof k(X)=="number"}catch{return!1}};function $r(We,X,ye){We.length!==0&&lf(We,Ve=>{Ve.call(e,X,ye,Qr)})}let DA=function(X,ye){return!!(Ut&&X.hasChildNodes()&&!ii(X.firstElementChild)&&vn(Wb,X.textContent)&&vn(Wb,X.innerHTML)||Ut&&X.namespaceURI===WA&&ye==="style"&&ii(X.firstElementChild)||X.nodeType===Ya.processingInstruction||Ut&&X.nodeType===Ya.comment&&vn(PN,X.data))},Di=function(X,ye){if(!je[ye]&&Xr(ye)&&(q.tagNameCheck instanceof RegExp&&vn(q.tagNameCheck,ye)||q.tagNameCheck instanceof Function&&q.tagNameCheck(ye)))return!1;if(tA&&!nt[ye]){let Ve=x(X),st=_(X);if(st&&Ve){let kt=st.length;for(let Zt=kt-1;Zt>=0;--Zt){let KA=mt?st[Zt]:g(st[Zt],!0);Ve.insertBefore(KA,F(X))}}}return Ir(X),!0},Dn=function(X){if($r(Ue.beforeSanitizeElements,X,null),ra(X))return Ir(X),!0;let ye=oA(re?re(X):X.nodeName);if($r(Ue.uponSanitizeElement,X,{tagName:ye,allowedTags:Oe}),DA(X,ye))return Ir(X),!0;if(je[ye]||!(ut.tagCheck instanceof Function&&ut.tagCheck(ye))&&!Oe[ye])return Di(X,ye);if((k?k(X):X.nodeType)===Ya.element&&!Uo(X)||(ye==="noscript"||ye==="noembed"||ye==="noframes")&&vn(RN,X.innerHTML))return Ir(X),!0;if(Ze&&X.nodeType===Ya.text){let st=ri(X.textContent);X.textContent!==st&&(dc(e.removed,{element:X.cloneNode()}),X.textContent=st)}return $r(Ue.afterSanitizeElements,X,null),!1},$A=function(X,ye,Ve){if(Tt[ye]||Gt&&(ye==="id"||ye==="name")&&(Ve in A||Ve in Rn))return!1;let st=qe[ye]||ut.attributeCheck instanceof Function&&ut.attributeCheck(ye,X);if(!(dt&&vn(ie,ye))){if(!(Re&&vn(oe,ye))){if(st){if(!Ct[ye]){if(!vn(Le,cf(Ve,xe,""))){if(!((ye==="src"||ye==="xlink:href"||ye==="href")&&X!=="script"&&Hb(Ve,"data:")===0&&fA[X])){if(!($e&&!vn(ve,cf(Ve,xe,"")))){if(Ve)return!1}}}}}else if(!(Xr(X)&&(q.tagNameCheck instanceof RegExp&&vn(q.tagNameCheck,X)||q.tagNameCheck instanceof Function&&q.tagNameCheck(X))&&(q.attributeNameCheck instanceof RegExp&&vn(q.attributeNameCheck,ye)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(ye,X))||ye==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&vn(q.tagNameCheck,Ve)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Ve))))return!1}}return!0},as=wA({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Xr=function(X){return!as[ff(X)]&&vn(_e,X)},Ia=function(X,ye,Ve,st){if(fe&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Ve)switch(v.getAttributeType(X,ye)){case"TrustedHTML":return O(st);case"TrustedScriptURL":return Y(st)}return st},Bi=function(X,ye,Ve,st){try{Ve?X.setAttributeNS(Ve,ye,st):X.setAttribute(ye,st),ra(X)?Ir(X):kb(e.removed)}catch{cn(ye,X)}},ur=function(X){$r(Ue.beforeSanitizeAttributes,X,null);let ye=X.attributes;if(!ye||ra(X))return;let Ve={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:qe,forceKeepAttr:void 0},st=ye.length,kt=oA(X.nodeName);for(;st--;){let Zt=ye[st],KA=Zt.name,yA=Zt.namespaceURI,Yr=Zt.value,fr=oA(KA),La=Yr,xA=KA==="value"?La:vN(La);if(Ve.attrName=fr,Ve.attrValue=xA,Ve.keepAttr=!0,Ve.forceKeepAttr=void 0,$r(Ue.uponSanitizeAttribute,X,Ve),xA=Ve.attrValue,It&&(fr==="id"||fr==="name")&&Hb(xA,Rt)!==0&&(cn(KA,X),xA=Rt+xA),Ut&&vn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,xA)){cn(KA,X);continue}if(fr==="attributename"&&Db(xA,"href")){cn(KA,X);continue}if(!Ve.forceKeepAttr){if(!Ve.keepAttr){cn(KA,X);continue}if(!lt&&vn(kN,xA)){cn(KA,X);continue}if(Ze&&(xA=ri(xA)),!$A(kt,fr,xA)){cn(KA,X);continue}xA=Ia(kt,fr,yA,xA),xA!==La&&Bi(X,KA,yA,xA)}}$r(Ue.afterSanitizeAttributes,X,null)},na=function(X){let ye=null,Ve=Qa(X);for($r(Ue.beforeSanitizeShadowDOM,X,null);ye=Ve.nextNode();)if($r(Ue.uponSanitizeShadowNode,ye,null),Dn(ye),ur(ye),Dr(ye.content)&&na(ye.content),(k?k(ye):ye.nodeType)===Ya.element){let kt=H(ye);Dr(kt)&&(ss(kt),na(kt))}$r(Ue.afterSanitizeShadowDOM,X,null)},ss=function(X){let ye=[{node:X,shadow:null}];for(;ye.length>0;){let Ve=ye.pop();if(Ve.shadow){na(Ve.shadow);continue}let st=Ve.node,Zt=(k?k(st):st.nodeType)===Ya.element,KA=_(st);if(KA)for(let yA=KA.length-1;yA>=0;--yA)ye.push({node:KA[yA],shadow:null});if(Zt){let yA=re?re(st):null;if(typeof yA=="string"&&oA(yA)==="template"){let Yr=st.content;Dr(Yr)&&ye.push({node:Yr,shadow:null})}}if(Zt){let yA=H(st);Dr(yA)&&ye.push({node:null,shadow:yA},{node:yA,shadow:null})}}};return e.sanitize=function(We){let X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ye=null,Ve=null,st=null,kt=null;if(_t=!We,_t&&(We="<!-->"),typeof We!="string"&&!ii(We)&&(We=CN(We),typeof We!="string"))throw nl("dirty is not a string, aborting");if(!e.isSupported)return We;St?(Oe=Ht,qe=Ot):Ai(X),(Ue.uponSanitizeElement.length>0||Ue.uponSanitizeAttribute.length>0)&&(Oe=Zn(Oe)),Ue.uponSanitizeAttribute.length>0&&(qe=Zn(qe)),e.removed=[];let Zt=mt&&typeof We!="string"&&ii(We);if(Zt){let Yr=re?re(We):We.nodeName;if(typeof Yr=="string"){let fr=oA(Yr);if(!Oe[fr]||je[fr])throw nl("root node is forbidden and cannot be sanitized in-place")}if(ra(We))throw nl("root node is clobbered and cannot be sanitized in-place");try{ss(We)}catch(fr){throw Sa(We),fr}}else if(ii(We))ye=is("<!---->"),Ve=ye.ownerDocument.importNode(We,!0),Ve.nodeType===Ya.element&&Ve.nodeName==="BODY"||Ve.nodeName==="HTML"?ye=Ve:ye.appendChild(Ve),ss(Ve);else{if(!yt&&!Ze&&!Nt&&We.indexOf("<")===-1)return fe&&aA?O(We):We;if(ye=is(We),!ye)return yt?null:aA?Ae:""}ye&&tt&&Ir(ye.firstChild);let KA=Qa(Zt?We:ye);try{for(;st=KA.nextNode();)Dn(st),ur(st),Dr(st.content)&&na(st.content)}catch(Yr){throw Zt&&Sa(We),Yr}if(Zt)return lf(e.removed,Yr=>{Yr.element&&yi(Yr.element)}),Ze&&ni(We),We;if(yt){if(Ze&&ni(ye),Xe)for(kt=de.call(ye.ownerDocument);ye.firstChild;)kt.appendChild(ye.firstChild);else kt=ye;return(qe.shadowroot||qe.shadowrootmode)&&(kt=Pe.call(r,kt,!0)),kt}let yA=Nt?ye.outerHTML:ye.innerHTML;return Nt&&Oe["!doctype"]&&ye.ownerDocument&&ye.ownerDocument.doctype&&ye.ownerDocument.doctype.name&&vn(NN,ye.ownerDocument.doctype.name)&&(yA="<!DOCTYPE "+ye.ownerDocument.doctype.name+`>
|
|
7
|
-
`+yA),Ze&&(yA=ri(yA)),fe&&aA?O(yA):yA},e.setConfig=function(){let We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ai(We),St=!0,Ht=Oe,Ot=qe},e.clearConfig=function(){Qr=null,St=!1,Ht=null,Ot=null,fe=j,Ae=""},e.isValidAttribute=function(We,X,ye){Qr||Ai({});let Ve=oA(We),st=oA(X);return $A(Ve,st,ye)},e.addHook=function(We,X){typeof X=="function"&&an(Ue,We)&&dc(Ue[We],X)},e.removeHook=function(We,X){if(an(Ue,We)){if(X!==void 0){let ye=gN(Ue[We],X);return ye===-1?void 0:wN(Ue[We],ye,1)[0]}return kb(Ue[We])}},e.removeHooks=function(We){an(Ue,We)&&(Ue[We]=[])},e.removeAllHooks=function(){Ue=$b()},e}var Xb,Rb,hN,dN,pN,mn,yn,pc,Yb,a1,s1,lf,gN,kb,dc,wN,ho,ff,t1,Db,cf,Hb,vN,mN,yN,Mb,qb,an,uf,vn,nl,Kb,A1,r1,FN,n1,UN,jb,Vb,i1,Gb,Sd,xN,_N,SN,QN,IN,zb,LN,TN,NN,ON,Wb,PN,RN,kN,Ya,DN,HN,$b,fo,MN,e5=zt(()=>{Xb=Object.entries,Rb=Object.setPrototypeOf,hN=Object.isFrozen,dN=Object.getPrototypeOf,pN=Object.getOwnPropertyDescriptor,mn=Object.freeze,yn=Object.seal,pc=Object.create,Yb=typeof Reflect<"u"&&Reflect,a1=Yb.apply,s1=Yb.construct;mn||(mn=function(e){return e});yn||(yn=function(e){return e});a1||(a1=function(e,A){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return e.apply(A,n)});s1||(s1=function(e){for(var A=arguments.length,r=new Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];return new e(...r)});lf=Nr(Array.prototype.forEach),gN=Nr(Array.prototype.lastIndexOf),kb=Nr(Array.prototype.pop),dc=Nr(Array.prototype.push),wN=Nr(Array.prototype.splice),ho=Array.isArray,ff=Nr(String.prototype.toLowerCase),t1=Nr(String.prototype.toString),Db=Nr(String.prototype.match),cf=Nr(String.prototype.replace),Hb=Nr(String.prototype.indexOf),vN=Nr(String.prototype.trim),mN=Nr(Number.prototype.toString),yN=Nr(Boolean.prototype.toString),Mb=typeof BigInt>"u"?null:Nr(BigInt.prototype.toString),qb=typeof Symbol>"u"?null:Nr(Symbol.prototype.toString),an=Nr(Object.prototype.hasOwnProperty),uf=Nr(Object.prototype.toString),vn=Nr(RegExp.prototype.test),nl=BN(TypeError);Kb=mn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),A1=mn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),r1=mn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),FN=mn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),n1=mn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),UN=mn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jb=mn(["#text"]),Vb=mn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),i1=mn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gb=mn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Sd=mn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xN=yn(/{{[\w\W]*|^[\w\W]*}}/g),_N=yn(/<%[\w\W]*|^[\w\W]*%>/g),SN=yn(/\${[\w\W]*/g),QN=yn(/^data-[\-\w.\u00B7-\uFFFF]+$/),IN=yn(/^aria-[\-\w]+$/),zb=yn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LN=yn(/^(?:\w+script|data):/i),TN=yn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),NN=yn(/^html$/i),ON=yn(/^[a-z][.\w]*(-[.\w]+)+$/i),Wb=yn(/<[/\w!]/g),PN=yn(/<[/\w]/g),RN=yn(/<\/no(script|embed|frames)/i),kN=yn(/\/>/i),Ya={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},DN=function(){return typeof window>"u"?null:window},HN=function(e,A){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";A&&A.hasAttribute(n)&&(r=A.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},$b=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},fo=function(e,A,r,n){return an(e,A)&&ho(e[A])?wA(n.base?Zn(n.base):{},e[A],n.transform):r};MN=Jb()});var GA=me((o1,t5)=>{"use strict";var hf=function(t){return t&&t.Math===Math&&t};t5.exports=hf(typeof globalThis=="object"&&globalThis)||hf(typeof window=="object"&&window)||hf(typeof self=="object"&&self)||hf(typeof global=="object"&&global)||hf(typeof o1=="object"&&o1)||(function(){return this})()||Function("return this")()});var lr=me((OG,A5)=>{"use strict";A5.exports=function(t){try{return!!t()}catch{return!0}}});var Zi=me((PG,r5)=>{"use strict";var qN=lr();r5.exports=!qN(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var df=me((RG,n5)=>{"use strict";var KN=lr();n5.exports=!KN(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})});var sn=me((kG,i5)=>{"use strict";var jN=df(),Qd=Function.prototype.call;i5.exports=jN?Qd.bind(Qd):function(){return Qd.apply(Qd,arguments)}});var l5=me(o5=>{"use strict";var a5={}.propertyIsEnumerable,s5=Object.getOwnPropertyDescriptor,VN=s5&&!a5.call({1:2},1);o5.f=VN?function(e){var A=s5(this,e);return!!A&&A.enumerable}:a5});var Id=me((HG,c5)=>{"use strict";c5.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}});var cr=me((MG,h5)=>{"use strict";var u5=df(),f5=Function.prototype,l1=f5.call,GN=u5&&f5.bind.bind(l1,l1);h5.exports=u5?GN:function(t){return function(){return l1.apply(t,arguments)}}});var po=me((qG,p5)=>{"use strict";var d5=cr(),zN=d5({}.toString),WN=d5("".slice);p5.exports=function(t){return WN(zN(t),8,-1)}});var u1=me((KG,g5)=>{"use strict";var $N=cr(),XN=lr(),YN=po(),c1=Object,JN=$N("".split);g5.exports=XN(function(){return!c1("z").propertyIsEnumerable(0)})?function(t){return YN(t)==="String"?JN(t,""):c1(t)}:c1});var pf=me((jG,w5)=>{"use strict";w5.exports=function(t){return t==null}});var ea=me((VG,v5)=>{"use strict";var ZN=pf(),eO=TypeError;v5.exports=function(t){if(ZN(t))throw new eO("Can't call method on "+t);return t}});var gc=me((GG,m5)=>{"use strict";var tO=u1(),AO=ea();m5.exports=function(t){return tO(AO(t))}});var gr=me((zG,y5)=>{"use strict";var f1=typeof document=="object"&&document.all;y5.exports=typeof f1>"u"&&f1!==void 0?function(t){return typeof t=="function"||t===f1}:function(t){return typeof t=="function"}});var ei=me((WG,B5)=>{"use strict";var rO=gr();B5.exports=function(t){return typeof t=="object"?t!==null:rO(t)}});var go=me(($G,b5)=>{"use strict";var h1=GA(),nO=gr(),iO=function(t){return nO(t)?t:void 0};b5.exports=function(t,e){return arguments.length<2?iO(h1[t]):h1[t]&&h1[t][e]}});var gf=me((XG,C5)=>{"use strict";var aO=cr();C5.exports=aO({}.isPrototypeOf)});var wc=me((YG,U5)=>{"use strict";var sO=GA(),E5=sO.navigator,F5=E5&&E5.userAgent;U5.exports=F5?String(F5):""});var Td=me((JG,L5)=>{"use strict";var I5=GA(),d1=wc(),x5=I5.process,_5=I5.Deno,S5=x5&&x5.versions||_5&&_5.version,Q5=S5&&S5.v8,wa,Ld;Q5&&(wa=Q5.split("."),Ld=wa[0]>0&&wa[0]<4?1:+(wa[0]+wa[1]));!Ld&&d1&&(wa=d1.match(/Edge\/(\d+)/),(!wa||wa[1]>=74)&&(wa=d1.match(/Chrome\/(\d+)/),wa&&(Ld=+wa[1])));L5.exports=Ld});var p1=me((ZG,N5)=>{"use strict";var T5=Td(),oO=lr(),lO=GA(),cO=lO.String;N5.exports=!!Object.getOwnPropertySymbols&&!oO(function(){var t=Symbol("symbol detection");return!cO(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&T5&&T5<41})});var g1=me((ez,O5)=>{"use strict";var uO=p1();O5.exports=uO&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var w1=me((tz,P5)=>{"use strict";var fO=go(),hO=gr(),dO=gf(),pO=g1(),gO=Object;P5.exports=pO?function(t){return typeof t=="symbol"}:function(t){var e=fO("Symbol");return hO(e)&&dO(e.prototype,gO(t))}});var wf=me((Az,R5)=>{"use strict";var wO=String;R5.exports=function(t){try{return wO(t)}catch{return"Object"}}});var Za=me((rz,k5)=>{"use strict";var vO=gr(),mO=wf(),yO=TypeError;k5.exports=function(t){if(vO(t))return t;throw new yO(mO(t)+" is not a function")}});var il=me((nz,D5)=>{"use strict";var BO=Za(),bO=pf();D5.exports=function(t,e){var A=t[e];return bO(A)?void 0:BO(A)}});var M5=me((iz,H5)=>{"use strict";var v1=sn(),m1=gr(),y1=ei(),CO=TypeError;H5.exports=function(t,e){var A,r;if(e==="string"&&m1(A=t.toString)&&!y1(r=v1(A,t))||m1(A=t.valueOf)&&!y1(r=v1(A,t))||e!=="string"&&m1(A=t.toString)&&!y1(r=v1(A,t)))return r;throw new CO("Can't convert object to primitive value")}});var va=me((az,q5)=>{"use strict";q5.exports=!1});var Nd=me((sz,j5)=>{"use strict";var K5=GA(),EO=Object.defineProperty;j5.exports=function(t,e){try{EO(K5,t,{value:e,configurable:!0,writable:!0})}catch{K5[t]=e}return e}});var Od=me((oz,z5)=>{"use strict";var FO=va(),UO=GA(),xO=Nd(),V5="__core-js_shared__",G5=z5.exports=UO[V5]||xO(V5,{});(G5.versions||(G5.versions=[])).push({version:"3.49.0",mode:FO?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Pd=me((lz,$5)=>{"use strict";var W5=Od();$5.exports=function(t,e){return W5[t]||(W5[t]=e||{})}});var vf=me((cz,X5)=>{"use strict";var _O=ea(),SO=Object;X5.exports=function(t){return SO(_O(t))}});var ta=me((uz,Y5)=>{"use strict";var QO=cr(),IO=vf(),LO=QO({}.hasOwnProperty);Y5.exports=Object.hasOwn||function(e,A){return LO(IO(e),A)}});var B1=me((fz,J5)=>{"use strict";var TO=cr(),NO=0,OO=Math.random(),PO=TO(1.1.toString);J5.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+PO(++NO+OO,36)}});var Wr=me((hz,eC)=>{"use strict";var RO=GA(),kO=Pd(),Z5=ta(),DO=B1(),HO=p1(),MO=g1(),vc=RO.Symbol,b1=kO("wks"),qO=MO?vc.for||vc:vc&&vc.withoutSetter||DO;eC.exports=function(t){return Z5(b1,t)||(b1[t]=HO&&Z5(vc,t)?vc[t]:qO("Symbol."+t)),b1[t]}});var nC=me((dz,rC)=>{"use strict";var KO=sn(),tC=ei(),AC=w1(),jO=il(),VO=M5(),GO=Wr(),zO=TypeError,WO=GO("toPrimitive");rC.exports=function(t,e){if(!tC(t)||AC(t))return t;var A=jO(t,WO),r;if(A){if(e===void 0&&(e="default"),r=KO(A,t,e),!tC(r)||AC(r))return r;throw new zO("Can't convert object to primitive value")}return e===void 0&&(e="number"),VO(t,e)}});var C1=me((pz,iC)=>{"use strict";var $O=nC(),XO=w1();iC.exports=function(t){var e=$O(t,"string");return XO(e)?e:e+""}});var mf=me((gz,sC)=>{"use strict";var YO=GA(),aC=ei(),E1=YO.document,JO=aC(E1)&&aC(E1.createElement);sC.exports=function(t){return JO?E1.createElement(t):{}}});var F1=me((wz,oC)=>{"use strict";var ZO=Zi(),e6=lr(),t6=mf();oC.exports=!ZO&&!e6(function(){return Object.defineProperty(t6("div"),"a",{get:function(){return 7}}).a!==7})});var yf=me(cC=>{"use strict";var A6=Zi(),r6=sn(),n6=l5(),i6=Id(),a6=gc(),s6=C1(),o6=ta(),l6=F1(),lC=Object.getOwnPropertyDescriptor;cC.f=A6?lC:function(e,A){if(e=a6(e),A=s6(A),l6)try{return lC(e,A)}catch{}if(o6(e,A))return i6(!r6(n6.f,e,A),e[A])}});var U1=me((mz,uC)=>{"use strict";var c6=Zi(),u6=lr();uC.exports=c6&&u6(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Sn=me((yz,fC)=>{"use strict";var f6=ei(),h6=String,d6=TypeError;fC.exports=function(t){if(f6(t))return t;throw new d6(h6(t)+" is not an object")}});var Ss=me(dC=>{"use strict";var p6=Zi(),g6=F1(),w6=U1(),Rd=Sn(),hC=C1(),v6=TypeError,x1=Object.defineProperty,m6=Object.getOwnPropertyDescriptor,_1="enumerable",S1="configurable",Q1="writable";dC.f=p6?w6?function(e,A,r){if(Rd(e),A=hC(A),Rd(r),typeof e=="function"&&A==="prototype"&&"value"in r&&Q1 in r&&!r[Q1]){var n=m6(e,A);n&&n[Q1]&&(e[A]=r.value,r={configurable:S1 in r?r[S1]:n[S1],enumerable:_1 in r?r[_1]:n[_1],writable:!1})}return x1(e,A,r)}:x1:function(e,A,r){if(Rd(e),A=hC(A),Rd(r),g6)try{return x1(e,A,r)}catch{}if("get"in r||"set"in r)throw new v6("Accessors not supported");return"value"in r&&(e[A]=r.value),e}});var mc=me((bz,pC)=>{"use strict";var y6=Zi(),B6=Ss(),b6=Id();pC.exports=y6?function(t,e,A){return B6.f(t,e,b6(1,A))}:function(t,e,A){return t[e]=A,t}});var Bf=me((Cz,wC)=>{"use strict";var I1=Zi(),C6=ta(),gC=Function.prototype,E6=I1&&Object.getOwnPropertyDescriptor,L1=C6(gC,"name"),F6=L1&&function(){}.name==="something",U6=L1&&(!I1||I1&&E6(gC,"name").configurable);wC.exports={EXISTS:L1,PROPER:F6,CONFIGURABLE:U6}});var kd=me((Ez,vC)=>{"use strict";var x6=cr(),_6=gr(),T1=Od(),S6=x6(Function.toString);_6(T1.inspectSource)||(T1.inspectSource=function(t){return S6(t)});vC.exports=T1.inspectSource});var BC=me((Fz,yC)=>{"use strict";var Q6=GA(),I6=gr(),mC=Q6.WeakMap;yC.exports=I6(mC)&&/native code/.test(String(mC))});var Dd=me((Uz,CC)=>{"use strict";var L6=Pd(),T6=B1(),bC=L6("keys");CC.exports=function(t){return bC[t]||(bC[t]=T6(t))}});var Hd=me((xz,EC)=>{"use strict";EC.exports={}});var Cf=me((_z,xC)=>{"use strict";var N6=BC(),UC=GA(),O6=ei(),P6=mc(),N1=ta(),O1=Od(),R6=Dd(),k6=Hd(),FC="Object already initialized",P1=UC.TypeError,D6=UC.WeakMap,Md,bf,qd,H6=function(t){return qd(t)?bf(t):Md(t,{})},M6=function(t){return function(e){var A;if(!O6(e)||(A=bf(e)).type!==t)throw new P1("Incompatible receiver, "+t+" required");return A}};N6||O1.state?(ma=O1.state||(O1.state=new D6),ma.get=ma.get,ma.has=ma.has,ma.set=ma.set,Md=function(t,e){if(ma.has(t))throw new P1(FC);return e.facade=t,ma.set(t,e),e},bf=function(t){return ma.get(t)||{}},qd=function(t){return ma.has(t)}):(al=R6("state"),k6[al]=!0,Md=function(t,e){if(N1(t,al))throw new P1(FC);return e.facade=t,P6(t,al,e),e},bf=function(t){return N1(t,al)?t[al]:{}},qd=function(t){return N1(t,al)});var ma,al;xC.exports={set:Md,get:bf,has:qd,enforce:H6,getterFor:M6}});var D1=me((Sz,QC)=>{"use strict";var k1=cr(),q6=lr(),K6=gr(),Kd=ta(),R1=Zi(),j6=Bf().CONFIGURABLE,V6=kd(),SC=Cf(),G6=SC.enforce,z6=SC.get,_C=String,jd=Object.defineProperty,W6=k1("".slice),$6=k1("".replace),X6=k1([].join),Y6=R1&&!q6(function(){return jd(function(){},"length",{value:8}).length!==8}),J6=String(String).split("String"),Z6=QC.exports=function(t,e,A){W6(_C(e),0,7)==="Symbol("&&(e="["+$6(_C(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),A&&A.getter&&(e="get "+e),A&&A.setter&&(e="set "+e),(!Kd(t,"name")||j6&&t.name!==e)&&(R1?jd(t,"name",{value:e,configurable:!0}):t.name=e),Y6&&A&&Kd(A,"arity")&&t.length!==A.arity&&jd(t,"length",{value:A.arity});try{A&&Kd(A,"constructor")&&A.constructor?R1&&jd(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=G6(t);return Kd(r,"source")||(r.source=X6(J6,typeof e=="string"?e:"")),t};Function.prototype.toString=Z6(function(){return K6(this)&&z6(this).source||V6(this)},"toString")});var wo=me((Qz,IC)=>{"use strict";var e8=gr(),t8=Ss(),A8=D1(),r8=Nd();IC.exports=function(t,e,A,r){r||(r={});var n=r.enumerable,i=r.name!==void 0?r.name:e;if(e8(A)&&A8(A,i,r),r.global)n?t[e]=A:r8(e,A);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch{}n?t[e]=A:t8.f(t,e,{value:A,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t}});var TC=me((Iz,LC)=>{"use strict";var n8=Math.ceil,i8=Math.floor;LC.exports=Math.trunc||function(e){var A=+e;return(A>0?i8:n8)(A)}});var Ef=me((Lz,NC)=>{"use strict";var a8=TC();NC.exports=function(t){var e=+t;return e!==e||e===0?0:a8(e)}});var PC=me((Tz,OC)=>{"use strict";var s8=Ef(),o8=Math.max,l8=Math.min;OC.exports=function(t,e){var A=s8(t);return A<0?o8(A+e,0):l8(A,e)}});var sl=me((Nz,RC)=>{"use strict";var c8=Ef(),u8=Math.min;RC.exports=function(t){var e=c8(t);return e>0?u8(e,9007199254740991):0}});var Vd=me((Oz,kC)=>{"use strict";var f8=sl();kC.exports=function(t){return f8(t.length)}});var H1=me((Pz,HC)=>{"use strict";var h8=gc(),d8=PC(),p8=Vd(),DC=function(t){return function(e,A,r){var n=h8(e),i=p8(n);if(i===0)return!t&&-1;var s=d8(r,i),a;if(t&&A!==A){for(;i>s;)if(a=n[s++],a!==a)return!0}else for(;i>s;s++)if((t||s in n)&&n[s]===A)return t||s||0;return!t&&-1}};HC.exports={includes:DC(!0),indexOf:DC(!1)}});var q1=me((Rz,qC)=>{"use strict";var g8=cr(),M1=ta(),w8=gc(),v8=H1().indexOf,m8=Hd(),MC=g8([].push);qC.exports=function(t,e){var A=w8(t),r=0,n=[],i;for(i in A)!M1(m8,i)&&M1(A,i)&&MC(n,i);for(;e.length>r;)M1(A,i=e[r++])&&(~v8(n,i)||MC(n,i));return n}});var Gd=me((kz,KC)=>{"use strict";KC.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var VC=me(jC=>{"use strict";var y8=q1(),B8=Gd(),b8=B8.concat("length","prototype");jC.f=Object.getOwnPropertyNames||function(e){return y8(e,b8)}});var zC=me(GC=>{"use strict";GC.f=Object.getOwnPropertySymbols});var $C=me((Mz,WC)=>{"use strict";var C8=go(),E8=cr(),F8=VC(),U8=zC(),x8=Sn(),_8=E8([].concat);WC.exports=C8("Reflect","ownKeys")||function(e){var A=F8.f(x8(e)),r=U8.f;return r?_8(A,r(e)):A}});var JC=me((qz,YC)=>{"use strict";var XC=ta(),S8=$C(),Q8=yf(),I8=Ss();YC.exports=function(t,e,A){for(var r=S8(e),n=I8.f,i=Q8.f,s=0;s<r.length;s++){var a=r[s];!XC(t,a)&&!(A&&XC(A,a))&&n(t,a,i(e,a))}}});var K1=me((Kz,ZC)=>{"use strict";var L8=lr(),T8=gr(),N8=/#|\.prototype\./,Ff=function(t,e){var A=P8[O8(t)];return A===k8?!0:A===R8?!1:T8(e)?L8(e):!!e},O8=Ff.normalize=function(t){return String(t).replace(N8,".").toLowerCase()},P8=Ff.data={},R8=Ff.NATIVE="N",k8=Ff.POLYFILL="P";ZC.exports=Ff});var Qn=me((jz,e4)=>{"use strict";var zd=GA(),D8=yf().f,H8=mc(),M8=wo(),q8=Nd(),K8=JC(),j8=K1();e4.exports=function(t,e){var A=t.target,r=t.global,n=t.stat,i,s,a,o,l,h;if(r?s=zd:n?s=zd[A]||q8(A,{}):s=zd[A]&&zd[A].prototype,s)for(a in e){if(l=e[a],t.dontCallGetSet?(h=D8(s,a),o=h&&h.value):o=s[a],i=j8(r?a:A+(n?".":"#")+a,t.forced),!i&&o!==void 0){if(typeof l==typeof o)continue;K8(l,o)}(t.sham||o&&o.sham)&&H8(l,"sham",!0),M8(s,a,l,t)}}});var j1=me((Vz,t4)=>{"use strict";var Uf=GA(),V8=wc(),G8=po(),Wd=function(t){return V8.slice(0,t.length)===t};t4.exports=(function(){return Wd("Bun/")?"BUN":Wd("Cloudflare-Workers")?"CLOUDFLARE":Wd("Deno/")?"DENO":Wd("Node.js/")?"NODE":Uf.Bun&&typeof Bun.version=="string"?"BUN":Uf.Deno&&typeof Deno.version=="object"?"DENO":G8(Uf.process)==="process"?"NODE":Uf.window&&Uf.document?"BROWSER":"REST"})()});var xf=me((Gz,A4)=>{"use strict";var z8=j1();A4.exports=z8==="NODE"});var n4=me((zz,r4)=>{"use strict";var W8=GA();r4.exports=W8});var a4=me((Wz,i4)=>{"use strict";var $8=cr(),X8=Za();i4.exports=function(t,e,A){try{return $8(X8(Object.getOwnPropertyDescriptor(t,e)[A]))}catch{}}});var o4=me(($z,s4)=>{"use strict";var Y8=ei();s4.exports=function(t){return Y8(t)||t===null}});var c4=me((Xz,l4)=>{"use strict";var J8=o4(),Z8=String,eP=TypeError;l4.exports=function(t){if(J8(t))return t;throw new eP("Can't set "+Z8(t)+" as a prototype")}});var V1=me((Yz,u4)=>{"use strict";var tP=a4(),AP=ei(),rP=ea(),nP=c4();u4.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var t=!1,e={},A;try{A=tP(Object.prototype,"__proto__","set"),A(e,[]),t=e instanceof Array}catch{}return function(n,i){return rP(n),nP(i),AP(n)&&(t?A(n,i):n.__proto__=i),n}})():void 0)});var _f=me((Jz,h4)=>{"use strict";var iP=Ss().f,aP=ta(),sP=Wr(),f4=sP("toStringTag");h4.exports=function(t,e,A){t&&!A&&(t=t.prototype),t&&!aP(t,f4)&&iP(t,f4,{configurable:!0,value:e})}});var g4=me((Zz,p4)=>{"use strict";var d4=D1(),oP=Ss();p4.exports=function(t,e,A){return A.get&&d4(A.get,e,{getter:!0}),A.set&&d4(A.set,e,{setter:!0}),oP.f(t,e,A)}});var m4=me((eW,v4)=>{"use strict";var lP=go(),cP=g4(),uP=Wr(),fP=Zi(),w4=uP("species");v4.exports=function(t){var e=lP(t);fP&&e&&!e[w4]&&cP(e,w4,{configurable:!0,get:function(){return this}})}});var B4=me((tW,y4)=>{"use strict";var hP=gf(),dP=TypeError;y4.exports=function(t,e){if(hP(e,t))return t;throw new dP("Incorrect invocation")}});var E4=me((AW,C4)=>{"use strict";var pP=Wr(),gP=pP("toStringTag"),b4={};b4[gP]="z";C4.exports=String(b4)==="[object z]"});var Xd=me((rW,F4)=>{"use strict";var wP=E4(),vP=gr(),$d=po(),mP=Wr(),yP=mP("toStringTag"),BP=Object,bP=$d((function(){return arguments})())==="Arguments",CP=function(t,e){try{return t[e]}catch{}};F4.exports=wP?$d:function(t){var e,A,r;return t===void 0?"Undefined":t===null?"Null":typeof(A=CP(e=BP(t),yP))=="string"?A:bP?$d(e):(r=$d(e))==="Object"&&vP(e.callee)?"Arguments":r}});var I4=me((nW,Q4)=>{"use strict";var EP=cr(),FP=lr(),U4=gr(),UP=Xd(),xP=go(),_P=kd(),x4=function(){},_4=xP("Reflect","construct"),G1=/^\s*(?:class|function)\b/,SP=EP(G1.exec),QP=!G1.test(x4),Sf=function(e){if(!U4(e))return!1;try{return _4(x4,[],e),!0}catch{return!1}},S4=function(e){if(!U4(e))return!1;switch(UP(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return QP||!!SP(G1,_P(e))}catch{return!0}};S4.sham=!0;Q4.exports=!_4||FP(function(){var t;return Sf(Sf.call)||!Sf(Object)||!Sf(function(){t=!0})||t})?S4:Sf});var T4=me((iW,L4)=>{"use strict";var IP=I4(),LP=wf(),TP=TypeError;L4.exports=function(t){if(IP(t))return t;throw new TP(LP(t)+" is not a constructor")}});var z1=me((aW,O4)=>{"use strict";var N4=Sn(),NP=T4(),OP=pf(),PP=Wr(),RP=PP("species");O4.exports=function(t,e){var A=N4(t).constructor,r;return A===void 0||OP(r=N4(A)[RP])?e:NP(r)}});var W1=me((sW,D4)=>{"use strict";var kP=df(),k4=Function.prototype,P4=k4.apply,R4=k4.call;D4.exports=typeof Reflect=="object"&&Reflect.apply||(kP?R4.bind(P4):function(){return R4.apply(P4,arguments)})});var Qf=me((oW,H4)=>{"use strict";var DP=po(),HP=cr();H4.exports=function(t){if(DP(t)==="Function")return HP(t)}});var Yd=me((lW,q4)=>{"use strict";var M4=Qf(),MP=Za(),qP=df(),KP=M4(M4.bind);q4.exports=function(t,e){return MP(t),e===void 0?t:qP?KP(t,e):function(){return t.apply(e,arguments)}}});var $1=me((cW,K4)=>{"use strict";var jP=go();K4.exports=jP("document","documentElement")});var V4=me((uW,j4)=>{"use strict";var VP=cr();j4.exports=VP([].slice)});var z4=me((fW,G4)=>{"use strict";var GP=TypeError;G4.exports=function(t,e){if(t<e)throw new GP("Not enough arguments");return t}});var X1=me((hW,$4)=>{"use strict";var W4=wc();$4.exports=/ipad|iphone|ipod/i.test(W4)&&/applewebkit/i.test(W4)});var iv=me((dW,nE)=>{"use strict";var Ri=GA(),zP=W1(),WP=Yd(),X4=gr(),$P=ta(),rE=lr(),Y4=$1(),XP=V4(),J4=mf(),YP=z4(),JP=X1(),ZP=xf(),Av=Ri.setImmediate,rv=Ri.clearImmediate,eR=Ri.process,Y1=Ri.Dispatch,tR=Ri.Function,Z4=Ri.MessageChannel,AR=Ri.String,J1=0,If={},eE="onreadystatechange",Lf,ol,Z1,ev;rE(function(){Lf=Ri.location});var nv=function(t){if($P(If,t)){var e=If[t];delete If[t],e()}},tv=function(t){return function(){nv(t)}},tE=function(t){nv(t.data)},AE=function(t){Ri.postMessage(AR(t),Lf.protocol+"//"+Lf.host)};(!Av||!rv)&&(Av=function(e){YP(arguments.length,1);var A=X4(e)?e:tR(e),r=XP(arguments,1);return If[++J1]=function(){zP(A,void 0,r)},ol(J1),J1},rv=function(e){delete If[e]},ZP?ol=function(t){eR.nextTick(tv(t))}:Y1&&Y1.now?ol=function(t){Y1.now(tv(t))}:Z4&&!JP?(Z1=new Z4,ev=Z1.port2,Z1.port1.onmessage=tE,ol=WP(ev.postMessage,ev)):Ri.addEventListener&&X4(Ri.postMessage)&&!Ri.importScripts&&Lf&&Lf.protocol!=="file:"&&!rE(AE)?(ol=AE,Ri.addEventListener("message",tE,!1)):eE in J4("script")?ol=function(t){Y4.appendChild(J4("script"))[eE]=function(){Y4.removeChild(this),nv(t)}}:ol=function(t){setTimeout(tv(t),0)});nE.exports={set:Av,clear:rv}});var sE=me((pW,aE)=>{"use strict";var iE=GA(),rR=Zi(),nR=Object.getOwnPropertyDescriptor;aE.exports=function(t){if(!rR)return iE[t];var e=nR(iE,t);return e&&e.value}});var av=me((gW,lE)=>{"use strict";var oE=function(){this.head=null,this.tail=null};oE.prototype={add:function(t){var e={item:t,next:null},A=this.tail;A?A.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};lE.exports=oE});var uE=me((wW,cE)=>{"use strict";var iR=wc();cE.exports=/ipad|iphone|ipod/i.test(iR)&&typeof Pebble<"u"});var hE=me((vW,fE)=>{"use strict";var aR=wc();fE.exports=/web0s(?!.*chrome)/i.test(aR)});var yE=me((mW,mE)=>{"use strict";var Bc=GA(),sR=sE(),dE=Yd(),sv=iv().set,oR=av(),lR=X1(),cR=uE(),uR=hE(),ov=xf(),pE=Bc.MutationObserver||Bc.WebKitMutationObserver,gE=Bc.document,wE=Bc.process,Jd=Bc.Promise,uv=sR("queueMicrotask"),yc,lv,cv,Zd,vE;uv||(Tf=new oR,Nf=function(){var t,e;for(ov&&(t=wE.domain)&&t.exit();e=Tf.get();)try{e()}catch(A){throw Tf.head&&yc(),A}t&&t.enter()},!lR&&!ov&&!uR&&pE&&gE?(lv=!0,cv=gE.createTextNode(""),new pE(Nf).observe(cv,{characterData:!0}),yc=function(){cv.data=lv=!lv}):!cR&&Jd&&Jd.resolve?(Zd=Jd.resolve(void 0),Zd.constructor=Jd,vE=dE(Zd.then,Zd),yc=function(){vE(Nf)}):ov?yc=function(){wE.nextTick(Nf)}:(sv=dE(sv,Bc),yc=function(){sv(Nf)}),uv=function(t){Tf.head||yc(),Tf.add(t)});var Tf,Nf;mE.exports=uv});var bE=me((yW,BE)=>{"use strict";BE.exports=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}}});var ep=me((BW,CE)=>{"use strict";CE.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}});var bc=me((bW,EE)=>{"use strict";var fR=GA();EE.exports=fR.Promise});var Cc=me((CW,_E)=>{"use strict";var hR=GA(),Of=bc(),dR=gr(),pR=K1(),gR=kd(),wR=Wr(),FE=j1(),vR=va(),fv=Td(),UE=Of&&Of.prototype,mR=wR("species"),hv=!1,xE=dR(hR.PromiseRejectionEvent),yR=pR("Promise",function(){var t=gR(Of),e=t!==String(Of);if(!e&&fv===66||vR&&!(UE.catch&&UE.finally))return!0;if(!fv||fv<51||!/native code/.test(t)){var A=new Of(function(i){i(1)}),r=function(i){i(function(){},function(){})},n=A.constructor={};if(n[mR]=r,hv=A.then(function(){})instanceof r,!hv)return!0}return!e&&(FE==="BROWSER"||FE==="DENO")&&!xE});_E.exports={CONSTRUCTOR:yR,REJECTION_EVENT:xE,SUBCLASSING:hv}});var Ec=me((EW,QE)=>{"use strict";var SE=Za(),BR=TypeError,bR=function(t){var e,A;this.promise=new t(function(r,n){if(e!==void 0||A!==void 0)throw new BR("Bad Promise constructor");e=r,A=n}),this.resolve=SE(e),this.reject=SE(A)};QE.exports.f=function(t){return new bR(t)}});var XE=me(()=>{"use strict";var CR=Qn(),ER=va(),np=xf(),vo=GA(),FR=n4(),_c=sn(),IE=wo(),LE=V1(),UR=_f(),xR=m4(),_R=Za(),rp=gr(),SR=ei(),QR=B4(),IR=z1(),RE=iv().set,vv=yE(),LR=bE(),TR=ep(),NR=av(),kE=Cf(),ip=bc(),mv=Cc(),DE=Ec(),ap="Promise",HE=mv.CONSTRUCTOR,OR=mv.REJECTION_EVENT,PR=mv.SUBCLASSING,dv=kE.getterFor(ap),RR=kE.set,Fc=ip&&ip.prototype,ll=ip,tp=Fc,ME=vo.TypeError,pv=vo.document,yv=vo.process,gv=DE.f,kR=gv,DR=!!(pv&&pv.createEvent&&vo.dispatchEvent),qE="unhandledrejection",HR="rejectionhandled",TE=0,KE=1,MR=2,Bv=1,jE=2,Ap,NE,VE,OE,GE=function(t){var e;return SR(t)&&rp(e=t.then)?e:!1},zE=function(t,e){var A=e.value,r=e.state===KE,n=r?t.ok:t.fail,i=t.resolve,s=t.reject,a=t.domain,o,l,h;try{n?(r||(e.rejection===jE&&KR(e),e.rejection=Bv),n===!0?o=A:(a&&a.enter(),o=n(A),a&&(a.exit(),h=!0)),o===t.promise?s(new ME("Promise-chain cycle")):(l=GE(o))?_c(l,o,i,s):i(o)):s(A)}catch(v){a&&!h&&a.exit(),s(v)}},WE=function(t,e){t.notified||(t.notified=!0,vv(function(){for(var A=t.reactions,r;r=A.get();)zE(r,t);t.notified=!1,e&&!t.rejection&&qR(t)}))},$E=function(t,e,A){var r,n;DR?(r=pv.createEvent("Event"),r.promise=e,r.reason=A,r.initEvent(t,!1,!0),vo.dispatchEvent(r)):r={promise:e,reason:A},!OR&&(n=vo["on"+t])?n(r):t===qE&&LR("Unhandled promise rejection",A)},qR=function(t){_c(RE,vo,function(){var e=t.facade,A=t.value,r=PE(t),n;if(r&&(n=TR(function(){np?yv.emit("unhandledRejection",A,e):$E(qE,e,A)}),t.rejection=np||PE(t)?jE:Bv,n.error))throw n.value})},PE=function(t){return t.rejection!==Bv&&!t.parent},KR=function(t){_c(RE,vo,function(){var e=t.facade;np?yv.emit("rejectionHandled",e):$E(HR,e,t.value)})},Uc=function(t,e,A){return function(r){t(e,r,A)}},xc=function(t,e,A){t.done||(t.done=!0,A&&(t=A),t.value=e,t.state=MR,WE(t,!0))},wv=function(t,e,A){if(!t.done){t.done=!0,A&&(t=A);try{if(t.facade===e)throw new ME("Promise can't be resolved itself");var r=GE(e);r?vv(function(){var n={done:!1};try{_c(r,e,Uc(wv,n,t),Uc(xc,n,t))}catch(i){xc(n,i,t)}}):(t.value=e,t.state=KE,WE(t,!1))}catch(n){xc({done:!1},n,t)}}};if(HE&&(ll=function(e){QR(this,tp),_R(e),_c(Ap,this);var A=dv(this);try{e(Uc(wv,A),Uc(xc,A))}catch(r){xc(A,r)}},tp=ll.prototype,Ap=function(e){RR(this,{type:ap,done:!1,notified:!1,parent:!1,reactions:new NR,rejection:!1,state:TE,value:null})},Ap.prototype=IE(tp,"then",function(e,A){var r=dv(this),n=gv(IR(this,ll));return r.parent=!0,n.ok=rp(e)?e:!0,n.fail=rp(A)&&A,n.domain=np?yv.domain:void 0,r.state===TE?r.reactions.add(n):vv(function(){zE(n,r)}),n.promise}),NE=function(){var t=new Ap,e=dv(t);this.promise=t,this.resolve=Uc(wv,e),this.reject=Uc(xc,e)},DE.f=gv=function(t){return t===ll||t===VE?new NE(t):kR(t)},!ER&&rp(ip)&&Fc!==Object.prototype)){OE=Fc.then,PR||IE(Fc,"then",function(e,A){var r=this;return new ll(function(n,i){_c(OE,r,n,i)}).then(e,A)},{unsafe:!0});try{delete Fc.constructor}catch{}LE&&LE(Fc,tp)}CR({global:!0,constructor:!0,wrap:!0,forced:HE},{Promise:ll});VE=FR.Promise;UR(ll,ap,!1,!0);xR(ap)});var Sc=me((xW,YE)=>{"use strict";YE.exports={}});var ZE=me((_W,JE)=>{"use strict";var jR=Wr(),VR=Sc(),GR=jR("iterator"),zR=Array.prototype;JE.exports=function(t){return t!==void 0&&(VR.Array===t||zR[GR]===t)}});var bv=me((SW,tF)=>{"use strict";var WR=Xd(),eF=il(),$R=pf(),XR=Sc(),YR=Wr(),JR=YR("iterator");tF.exports=function(t){if(!$R(t))return eF(t,JR)||eF(t,"@@iterator")||XR[WR(t)]}});var rF=me((QW,AF)=>{"use strict";var ZR=sn(),ek=Za(),tk=Sn(),Ak=wf(),rk=bv(),nk=TypeError;AF.exports=function(t,e){var A=arguments.length<2?rk(t):e;if(ek(A))return tk(ZR(A,t));throw new nk(Ak(t)+" is not iterable")}});var aF=me((IW,iF)=>{"use strict";var ik=sn(),nF=Sn(),ak=il();iF.exports=function(t,e,A){var r,n;nF(t);try{if(r=ak(t,"return"),!r){if(e==="throw")throw A;return A}r=ik(r,t)}catch(i){n=!0,r=i}if(e==="throw")throw A;if(n)throw r;return nF(r),A}});var Cv=me((LW,cF)=>{"use strict";var sk=Yd(),ok=sn(),lk=Sn(),ck=wf(),uk=ZE(),fk=Vd(),sF=gf(),hk=rF(),dk=bv(),oF=aF(),pk=TypeError,sp=function(t,e){this.stopped=t,this.result=e},lF=sp.prototype;cF.exports=function(t,e,A){var r=A&&A.that,n=!!(A&&A.AS_ENTRIES),i=!!(A&&A.IS_RECORD),s=!!(A&&A.IS_ITERATOR),a=!!(A&&A.INTERRUPTED),o=sk(e,r),l,h,v,m,g,C,F,_=function(D){var k=l;return l=void 0,k&&oF(k,"normal"),new sp(!0,D)},x=function(D){return n?(lk(D),a?o(D[0],D[1],_):o(D[0],D[1])):a?o(D,_):o(D)};if(i)l=t.iterator;else if(s)l=t;else{if(h=dk(t),!h)throw new pk(ck(t)+" is not iterable");if(uk(h)){for(v=0,m=fk(t);m>v;v++)if(g=x(t[v]),g&&sF(lF,g))return g;return new sp(!1)}l=hk(t,h)}for(C=i?t.next:l.next;!(F=ok(C,l)).done;){var H=F.value;try{g=x(H)}catch(D){if(l)oF(l,"throw",D);else throw D}if(typeof g=="object"&&g&&sF(lF,g))return g}return new sp(!1)}});var pF=me((TW,dF)=>{"use strict";var gk=Wr(),fF=gk("iterator"),hF=!1;try{uF=0,Ev={next:function(){return{done:!!uF++}},return:function(){hF=!0}},Ev[fF]=function(){return this},Array.from(Ev,function(){throw 2})}catch{}var uF,Ev;dF.exports=function(t,e){try{if(!e&&!hF)return!1}catch{return!1}var A=!1;try{var r={};r[fF]=function(){return{next:function(){return{done:A=!0}}}},t(r)}catch{}return A}});var Fv=me((NW,gF)=>{"use strict";var wk=bc(),vk=pF(),mk=Cc().CONSTRUCTOR;gF.exports=mk||!vk(function(t){wk.all(t).then(void 0,function(){})})});var wF=me(()=>{"use strict";var yk=Qn(),Bk=sn(),bk=Za(),Ck=Ec(),Ek=ep(),Fk=Cv(),Uk=Fv();yk({target:"Promise",stat:!0,forced:Uk},{all:function(e){var A=this,r=Ck.f(A),n=r.resolve,i=r.reject,s=Ek(function(){var a=bk(A.resolve),o=[],l=0,h=1;Fk(e,function(v){var m=l++,g=!1;h++,Bk(a,A,v).then(function(C){g||(g=!0,o[m]=C,--h||n(o))},i)}),--h||n(o)});return s.error&&i(s.value),r.promise}})});var mF=me(()=>{"use strict";var xk=Qn(),_k=va(),Sk=Cc().CONSTRUCTOR,xv=bc(),Qk=go(),Ik=gr(),Lk=wo(),vF=xv&&xv.prototype;xk({target:"Promise",proto:!0,forced:Sk,real:!0},{catch:function(t){return this.then(void 0,t)}});!_k&&Ik(xv)&&(Uv=Qk("Promise").prototype.catch,vF.catch!==Uv&&Lk(vF,"catch",Uv,{unsafe:!0}));var Uv});var yF=me(()=>{"use strict";var Tk=Qn(),Nk=sn(),Ok=Za(),Pk=Ec(),Rk=ep(),kk=Cv(),Dk=Fv();Tk({target:"Promise",stat:!0,forced:Dk},{race:function(e){var A=this,r=Pk.f(A),n=r.reject,i=Rk(function(){var s=Ok(A.resolve);kk(e,function(a){Nk(s,A,a).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}})});var BF=me(()=>{"use strict";var Hk=Qn(),Mk=Ec(),qk=Cc().CONSTRUCTOR;Hk({target:"Promise",stat:!0,forced:qk},{reject:function(e){var A=Mk.f(this),r=A.reject;return r(e),A.promise}})});var CF=me((KW,bF)=>{"use strict";var Kk=Sn(),jk=ei(),Vk=Ec();bF.exports=function(t,e){if(Kk(t),jk(e)&&e.constructor===t)return e;var A=Vk.f(t),r=A.resolve;return r(e),A.promise}});var UF=me(()=>{"use strict";var Gk=Qn(),zk=go(),EF=va(),Wk=bc(),FF=Cc().CONSTRUCTOR,$k=CF(),Xk=zk("Promise"),Yk=EF&&!FF;Gk({target:"Promise",stat:!0,forced:EF||FF},{resolve:function(e){return $k(Yk&&this===Xk?Wk:this,e)}})});var xF=me(()=>{"use strict";XE();wF();mF();yF();BF();UF()});function _F(t,e,A,r,n,i,s){try{var a=t[i](s),o=a.value}catch(l){return void A(l)}a.done?e(o):Promise.resolve(o).then(r,n)}function es(t){return function(){var e=this,A=arguments;return new Promise(function(r,n){var i=t.apply(e,A);function s(o){_F(i,r,n,s,a,"next",o)}function a(o){_F(i,r,n,s,a,"throw",o)}s(void 0)})}}var SF=zt(()=>{});var ya=me(($W,QF)=>{"use strict";var Jk=Xd(),Zk=String;QF.exports=function(t){if(Jk(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Zk(t)}});var _v=me((XW,IF)=>{"use strict";var eD=Sn();IF.exports=function(){var t=eD(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}});var Lv=me((YW,LF)=>{"use strict";var Sv=lr(),tD=GA(),Qv=tD.RegExp,Iv=Sv(function(){var t=Qv("a","y");return t.lastIndex=2,t.exec("abcd")!==null}),AD=Iv||Sv(function(){return!Qv("a","y").sticky}),rD=Iv||Sv(function(){var t=Qv("^r","gy");return t.lastIndex=2,t.exec("str")!==null});LF.exports={BROKEN_CARET:rD,MISSED_STICKY:AD,UNSUPPORTED_Y:Iv}});var NF=me((JW,TF)=>{"use strict";var nD=q1(),iD=Gd();TF.exports=Object.keys||function(e){return nD(e,iD)}});var PF=me(OF=>{"use strict";var aD=Zi(),sD=U1(),oD=Ss(),lD=Sn(),cD=gc(),uD=NF();OF.f=aD&&!sD?Object.defineProperties:function(e,A){lD(e);for(var r=cD(A),n=uD(A),i=n.length,s=0,a;i>s;)oD.f(e,a=n[s++],r[a]);return e}});var Pf=me((e$,KF)=>{"use strict";var fD=Sn(),hD=PF(),RF=Gd(),dD=Hd(),pD=$1(),gD=mf(),wD=Dd(),kF=">",DF="<",Nv="prototype",Ov="script",MF=wD("IE_PROTO"),Tv=function(){},qF=function(t){return DF+Ov+kF+t+DF+"/"+Ov+kF},HF=function(t){t.write(qF("")),t.close();var e=t.parentWindow.Object;return t=null,e},vD=function(){var t=gD("iframe"),e="java"+Ov+":",A;return t.style.display="none",pD.appendChild(t),t.src=String(e),A=t.contentWindow.document,A.open(),A.write(qF("document.F=Object")),A.close(),A.F},op,lp=function(){try{op=new ActiveXObject("htmlfile")}catch{}lp=typeof document<"u"?document.domain&&op?HF(op):vD():HF(op);for(var t=RF.length;t--;)delete lp[Nv][RF[t]];return lp()};dD[MF]=!0;KF.exports=Object.create||function(e,A){var r;return e!==null?(Tv[Nv]=fD(e),r=new Tv,Tv[Nv]=null,r[MF]=e):r=lp(),A===void 0?r:hD.f(r,A)}});var VF=me((t$,jF)=>{"use strict";var mD=lr(),yD=GA(),BD=yD.RegExp;jF.exports=mD(function(){var t=BD(".","s");return!(t.dotAll&&t.test(`
|
|
5
|
+
.`+C0+K3+Km)},V3=function(f,c){var p=f.ownerDocument;if(p){var d=p.createElement("style");d.textContent=c,f.appendChild(d)}},jm=(function(){function f(){}return f.getOrigin=function(c){var p=f._link;return p?(p.href=c,p.href=p.href,p.protocol+p.hostname+p.port):"about:blank"},f.isSameOrigin=function(c){return f.getOrigin(c)===f._origin},f.setContext=function(c){f._link=c.document.createElement("a"),f._origin=f.getOrigin(c.location.href)},f._origin="about:blank",f})(),G3=(function(){function f(c,p){this.context=c,this._options=p,this._cache={}}return f.prototype.addImage=function(c){var p=Promise.resolve();return this.has(c)||(F0(c)||X3(c))&&(this._cache[c]=this.loadImage(c)).catch(function(){}),p},f.prototype.match=function(c){return this._cache[c]},f.prototype.loadImage=function(c){return r(this,void 0,void 0,function(){var p,d,b,U,L=this;return n(this,function(G){switch(G.label){case 0:return p=jm.isSameOrigin(c),d=!E0(c)&&this._options.useCORS===!0&&Gr.SUPPORT_CORS_IMAGES&&!p,b=!E0(c)&&!p&&!F0(c)&&typeof this._options.proxy=="string"&&Gr.SUPPORT_CORS_XHR&&!d,!p&&this._options.allowTaint===!1&&!E0(c)&&!F0(c)&&!b&&!d?[2]:(U=c,b?[4,this.proxy(U)]:[3,2]);case 1:U=G.sent(),G.label=2;case 2:return this.context.logger.debug("Added image "+c.substring(0,256)),[4,new Promise(function(V,se){var ue=new Image;ue.onload=function(){return V(ue)},ue.onerror=se,(Y3(U)||d)&&(ue.crossOrigin="anonymous"),ue.src=U,ue.complete===!0&&setTimeout(function(){return V(ue)},500),L._options.imageTimeout>0&&setTimeout(function(){return se("Timed out ("+L._options.imageTimeout+"ms) loading image")},L._options.imageTimeout)})];case 3:return[2,G.sent()]}})})},f.prototype.has=function(c){return typeof this._cache[c]<"u"},f.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},f.prototype.proxy=function(c){var p=this,d=this._options.proxy;if(!d)throw new Error("No proxy defined");var b=c.substring(0,256);return new Promise(function(U,L){var G=Gr.SUPPORT_RESPONSE_TYPE?"blob":"text",V=new XMLHttpRequest;V.onload=function(){if(V.status===200)if(G==="text")U(V.response);else{var Be=new FileReader;Be.addEventListener("load",function(){return U(Be.result)},!1),Be.addEventListener("error",function(Ie){return L(Ie)},!1),Be.readAsDataURL(V.response)}else L("Failed to proxy resource "+b+" with status code "+V.status)},V.onerror=L;var se=d.indexOf("?")>-1?"&":"?";if(V.open("GET",""+d+se+"url="+encodeURIComponent(c)+"&responseType="+G),G!=="text"&&V instanceof XMLHttpRequest&&(V.responseType=G),p._options.imageTimeout){var ue=p._options.imageTimeout;V.timeout=ue,V.ontimeout=function(){return L("Timed out ("+ue+"ms) proxying "+b)}}V.send()})},f})(),z3=/^data:image\/svg\+xml/i,W3=/^data:image\/.*;base64,/i,$3=/^data:image\/.*/i,X3=function(f){return Gr.SUPPORT_SVG_DRAWING||!J3(f)},E0=function(f){return $3.test(f)},Y3=function(f){return W3.test(f)},F0=function(f){return f.substr(0,4)==="blob"},J3=function(f){return f.substr(-3).toLowerCase()==="svg"||z3.test(f)},At=(function(){function f(c,p){this.type=0,this.x=c,this.y=p}return f.prototype.add=function(c,p){return new f(this.x+c,this.y+p)},f})(),$l=function(f,c,p){return new At(f.x+(c.x-f.x)*p,f.y+(c.y-f.y)*p)},kh=(function(){function f(c,p,d,b){this.type=1,this.start=c,this.startControl=p,this.endControl=d,this.end=b}return f.prototype.subdivide=function(c,p){var d=$l(this.start,this.startControl,c),b=$l(this.startControl,this.endControl,c),U=$l(this.endControl,this.end,c),L=$l(d,b,c),G=$l(b,U,c),V=$l(L,G,c);return p?new f(this.start,d,L,V):new f(V,G,U,this.end)},f.prototype.add=function(c,p){return new f(this.start.add(c,p),this.startControl.add(c,p),this.endControl.add(c,p),this.end.add(c,p))},f.prototype.reverse=function(){return new f(this.end,this.endControl,this.startControl,this.start)},f})(),zi=function(f){return f.type===1},Z3=(function(){function f(c){var p=c.styles,d=c.bounds,b=xi(p.borderTopLeftRadius,d.width,d.height),U=b[0],L=b[1],G=xi(p.borderTopRightRadius,d.width,d.height),V=G[0],se=G[1],ue=xi(p.borderBottomRightRadius,d.width,d.height),Be=ue[0],Ie=ue[1],it=xi(p.borderBottomLeftRadius,d.width,d.height),ze=it[0],et=it[1],eA=[];eA.push((U+V)/d.width),eA.push((ze+Be)/d.width),eA.push((L+et)/d.height),eA.push((se+Ie)/d.height);var Bt=Math.max.apply(Math,eA);Bt>1&&(U/=Bt,L/=Bt,V/=Bt,se/=Bt,Be/=Bt,Ie/=Bt,ze/=Bt,et/=Bt);var wt=d.width-V,CA=d.height-Ie,rA=d.width-Be,qt=d.height-et,rt=p.borderTopWidth,pA=p.borderRightWidth,gA=p.borderBottomWidth,Vt=p.borderLeftWidth,Lr=BA(p.paddingTop,c.bounds.width),ui=BA(p.paddingRight,c.bounds.width),Ti=BA(p.paddingBottom,c.bounds.width),kA=BA(p.paddingLeft,c.bounds.width);this.topLeftBorderDoubleOuterBox=U>0||L>0?tr(d.left+Vt/3,d.top+rt/3,U-Vt/3,L-rt/3,QA.TOP_LEFT):new At(d.left+Vt/3,d.top+rt/3),this.topRightBorderDoubleOuterBox=U>0||L>0?tr(d.left+wt,d.top+rt/3,V-pA/3,se-rt/3,QA.TOP_RIGHT):new At(d.left+d.width-pA/3,d.top+rt/3),this.bottomRightBorderDoubleOuterBox=Be>0||Ie>0?tr(d.left+rA,d.top+CA,Be-pA/3,Ie-gA/3,QA.BOTTOM_RIGHT):new At(d.left+d.width-pA/3,d.top+d.height-gA/3),this.bottomLeftBorderDoubleOuterBox=ze>0||et>0?tr(d.left+Vt/3,d.top+qt,ze-Vt/3,et-gA/3,QA.BOTTOM_LEFT):new At(d.left+Vt/3,d.top+d.height-gA/3),this.topLeftBorderDoubleInnerBox=U>0||L>0?tr(d.left+Vt*2/3,d.top+rt*2/3,U-Vt*2/3,L-rt*2/3,QA.TOP_LEFT):new At(d.left+Vt*2/3,d.top+rt*2/3),this.topRightBorderDoubleInnerBox=U>0||L>0?tr(d.left+wt,d.top+rt*2/3,V-pA*2/3,se-rt*2/3,QA.TOP_RIGHT):new At(d.left+d.width-pA*2/3,d.top+rt*2/3),this.bottomRightBorderDoubleInnerBox=Be>0||Ie>0?tr(d.left+rA,d.top+CA,Be-pA*2/3,Ie-gA*2/3,QA.BOTTOM_RIGHT):new At(d.left+d.width-pA*2/3,d.top+d.height-gA*2/3),this.bottomLeftBorderDoubleInnerBox=ze>0||et>0?tr(d.left+Vt*2/3,d.top+qt,ze-Vt*2/3,et-gA*2/3,QA.BOTTOM_LEFT):new At(d.left+Vt*2/3,d.top+d.height-gA*2/3),this.topLeftBorderStroke=U>0||L>0?tr(d.left+Vt/2,d.top+rt/2,U-Vt/2,L-rt/2,QA.TOP_LEFT):new At(d.left+Vt/2,d.top+rt/2),this.topRightBorderStroke=U>0||L>0?tr(d.left+wt,d.top+rt/2,V-pA/2,se-rt/2,QA.TOP_RIGHT):new At(d.left+d.width-pA/2,d.top+rt/2),this.bottomRightBorderStroke=Be>0||Ie>0?tr(d.left+rA,d.top+CA,Be-pA/2,Ie-gA/2,QA.BOTTOM_RIGHT):new At(d.left+d.width-pA/2,d.top+d.height-gA/2),this.bottomLeftBorderStroke=ze>0||et>0?tr(d.left+Vt/2,d.top+qt,ze-Vt/2,et-gA/2,QA.BOTTOM_LEFT):new At(d.left+Vt/2,d.top+d.height-gA/2),this.topLeftBorderBox=U>0||L>0?tr(d.left,d.top,U,L,QA.TOP_LEFT):new At(d.left,d.top),this.topRightBorderBox=V>0||se>0?tr(d.left+wt,d.top,V,se,QA.TOP_RIGHT):new At(d.left+d.width,d.top),this.bottomRightBorderBox=Be>0||Ie>0?tr(d.left+rA,d.top+CA,Be,Ie,QA.BOTTOM_RIGHT):new At(d.left+d.width,d.top+d.height),this.bottomLeftBorderBox=ze>0||et>0?tr(d.left,d.top+qt,ze,et,QA.BOTTOM_LEFT):new At(d.left,d.top+d.height),this.topLeftPaddingBox=U>0||L>0?tr(d.left+Vt,d.top+rt,Math.max(0,U-Vt),Math.max(0,L-rt),QA.TOP_LEFT):new At(d.left+Vt,d.top+rt),this.topRightPaddingBox=V>0||se>0?tr(d.left+Math.min(wt,d.width-pA),d.top+rt,wt>d.width+pA?0:Math.max(0,V-pA),Math.max(0,se-rt),QA.TOP_RIGHT):new At(d.left+d.width-pA,d.top+rt),this.bottomRightPaddingBox=Be>0||Ie>0?tr(d.left+Math.min(rA,d.width-Vt),d.top+Math.min(CA,d.height-gA),Math.max(0,Be-pA),Math.max(0,Ie-gA),QA.BOTTOM_RIGHT):new At(d.left+d.width-pA,d.top+d.height-gA),this.bottomLeftPaddingBox=ze>0||et>0?tr(d.left+Vt,d.top+Math.min(qt,d.height-gA),Math.max(0,ze-Vt),Math.max(0,et-gA),QA.BOTTOM_LEFT):new At(d.left+Vt,d.top+d.height-gA),this.topLeftContentBox=U>0||L>0?tr(d.left+Vt+kA,d.top+rt+Lr,Math.max(0,U-(Vt+kA)),Math.max(0,L-(rt+Lr)),QA.TOP_LEFT):new At(d.left+Vt+kA,d.top+rt+Lr),this.topRightContentBox=V>0||se>0?tr(d.left+Math.min(wt,d.width+Vt+kA),d.top+rt+Lr,wt>d.width+Vt+kA?0:V-Vt+kA,se-(rt+Lr),QA.TOP_RIGHT):new At(d.left+d.width-(pA+ui),d.top+rt+Lr),this.bottomRightContentBox=Be>0||Ie>0?tr(d.left+Math.min(rA,d.width-(Vt+kA)),d.top+Math.min(CA,d.height+rt+Lr),Math.max(0,Be-(pA+ui)),Ie-(gA+Ti),QA.BOTTOM_RIGHT):new At(d.left+d.width-(pA+ui),d.top+d.height-(gA+Ti)),this.bottomLeftContentBox=ze>0||et>0?tr(d.left+Vt+kA,d.top+qt,Math.max(0,ze-(Vt+kA)),et-(gA+Ti),QA.BOTTOM_LEFT):new At(d.left+Vt+kA,d.top+d.height-(gA+Ti))}return f})(),QA;(function(f){f[f.TOP_LEFT=0]="TOP_LEFT",f[f.TOP_RIGHT=1]="TOP_RIGHT",f[f.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",f[f.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(QA||(QA={}));var tr=function(f,c,p,d,b){var U=4*((Math.sqrt(2)-1)/3),L=p*U,G=d*U,V=f+p,se=c+d;switch(b){case QA.TOP_LEFT:return new kh(new At(f,se),new At(f,se-G),new At(V-L,c),new At(V,c));case QA.TOP_RIGHT:return new kh(new At(f,c),new At(f+L,c),new At(V,se-G),new At(V,se));case QA.BOTTOM_RIGHT:return new kh(new At(V,c),new At(V,c+G),new At(f+L,se),new At(f,se));case QA.BOTTOM_LEFT:default:return new kh(new At(V,se),new At(V-L,se),new At(f,c+G),new At(f,c))}},Dh=function(f){return[f.topLeftBorderBox,f.topRightBorderBox,f.bottomRightBorderBox,f.bottomLeftBorderBox]},eQ=function(f){return[f.topLeftContentBox,f.topRightContentBox,f.bottomRightContentBox,f.bottomLeftContentBox]},Hh=function(f){return[f.topLeftPaddingBox,f.topRightPaddingBox,f.bottomRightPaddingBox,f.bottomLeftPaddingBox]},tQ=(function(){function f(c,p,d){this.offsetX=c,this.offsetY=p,this.matrix=d,this.type=0,this.target=6}return f})(),Mh=(function(){function f(c,p){this.path=c,this.target=p,this.type=1}return f})(),AQ=(function(){function f(c){this.opacity=c,this.type=2,this.target=6}return f})(),rQ=function(f){return f.type===0},Vm=function(f){return f.type===1},nQ=function(f){return f.type===2},Gm=function(f,c){return f.length===c.length?f.some(function(p,d){return p===c[d]}):!1},iQ=function(f,c,p,d,b){return f.map(function(U,L){switch(L){case 0:return U.add(c,p);case 1:return U.add(c+d,p);case 2:return U.add(c+d,p+b);case 3:return U.add(c,p+b)}return U})},zm=(function(){function f(c){this.element=c,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return f})(),Wm=(function(){function f(c,p){if(this.container=c,this.parent=p,this.effects=[],this.curves=new Z3(this.container),this.container.styles.opacity<1&&this.effects.push(new AQ(this.container.styles.opacity)),this.container.styles.transform!==null){var d=this.container.bounds.left+this.container.styles.transformOrigin[0].number,b=this.container.bounds.top+this.container.styles.transformOrigin[1].number,U=this.container.styles.transform;this.effects.push(new tQ(d,b,U))}if(this.container.styles.overflowX!==0){var L=Dh(this.curves),G=Hh(this.curves);Gm(L,G)?this.effects.push(new Mh(L,6)):(this.effects.push(new Mh(L,2)),this.effects.push(new Mh(G,4)))}}return f.prototype.getEffects=function(c){for(var p=[2,3].indexOf(this.container.styles.position)===-1,d=this.parent,b=this.effects.slice(0);d;){var U=d.effects.filter(function(V){return!Vm(V)});if(p||d.container.styles.position!==0||!d.parent){if(b.unshift.apply(b,U),p=[2,3].indexOf(d.container.styles.position)===-1,d.container.styles.overflowX!==0){var L=Dh(d.curves),G=Hh(d.curves);Gm(L,G)||b.unshift(new Mh(G,6))}}else b.unshift.apply(b,U);d=d.parent}return b.filter(function(V){return pe(V.target,c)})},f})(),U0=function(f,c,p,d){f.container.elements.forEach(function(b){var U=pe(b.flags,4),L=pe(b.flags,2),G=new Wm(b,f);pe(b.styles.display,2048)&&d.push(G);var V=pe(b.flags,8)?[]:d;if(U||L){var se=U||b.styles.isPositioned()?p:c,ue=new zm(G);if(b.styles.isPositioned()||b.styles.opacity<1||b.styles.isTransformed()){var Be=b.styles.zIndex.order;if(Be<0){var Ie=0;se.negativeZIndex.some(function(ze,et){return Be>ze.element.container.styles.zIndex.order?(Ie=et,!1):Ie>0}),se.negativeZIndex.splice(Ie,0,ue)}else if(Be>0){var it=0;se.positiveZIndex.some(function(ze,et){return Be>=ze.element.container.styles.zIndex.order?(it=et+1,!1):it>0}),se.positiveZIndex.splice(it,0,ue)}else se.zeroOrAutoZIndexOrTransformedOrOpacity.push(ue)}else b.styles.isFloating()?se.nonPositionedFloats.push(ue):se.nonPositionedInlineLevel.push(ue);U0(G,ue,U?ue:p,V)}else b.styles.isInlineLevel()?c.inlineLevel.push(G):c.nonInlineLevel.push(G),U0(G,c,p,V);pe(b.flags,8)&&$m(b,V)})},$m=function(f,c){for(var p=f instanceof p0?f.start:1,d=f instanceof p0?f.reversed:!1,b=0;b<c.length;b++){var U=c[b];U.container instanceof ym&&typeof U.container.value=="number"&&U.container.value!==0&&(p=U.container.value),U.listValue=Uu(p,U.container.styles.listStyleType,!0),p+=d?-1:1}},aQ=function(f){var c=new Wm(f,null),p=new zm(c),d=[];return U0(c,p,p,d),$m(c.container,d),p},Xm=function(f,c){switch(c){case 0:return Wi(f.topLeftBorderBox,f.topLeftPaddingBox,f.topRightBorderBox,f.topRightPaddingBox);case 1:return Wi(f.topRightBorderBox,f.topRightPaddingBox,f.bottomRightBorderBox,f.bottomRightPaddingBox);case 2:return Wi(f.bottomRightBorderBox,f.bottomRightPaddingBox,f.bottomLeftBorderBox,f.bottomLeftPaddingBox);default:return Wi(f.bottomLeftBorderBox,f.bottomLeftPaddingBox,f.topLeftBorderBox,f.topLeftPaddingBox)}},sQ=function(f,c){switch(c){case 0:return Wi(f.topLeftBorderBox,f.topLeftBorderDoubleOuterBox,f.topRightBorderBox,f.topRightBorderDoubleOuterBox);case 1:return Wi(f.topRightBorderBox,f.topRightBorderDoubleOuterBox,f.bottomRightBorderBox,f.bottomRightBorderDoubleOuterBox);case 2:return Wi(f.bottomRightBorderBox,f.bottomRightBorderDoubleOuterBox,f.bottomLeftBorderBox,f.bottomLeftBorderDoubleOuterBox);default:return Wi(f.bottomLeftBorderBox,f.bottomLeftBorderDoubleOuterBox,f.topLeftBorderBox,f.topLeftBorderDoubleOuterBox)}},oQ=function(f,c){switch(c){case 0:return Wi(f.topLeftBorderDoubleInnerBox,f.topLeftPaddingBox,f.topRightBorderDoubleInnerBox,f.topRightPaddingBox);case 1:return Wi(f.topRightBorderDoubleInnerBox,f.topRightPaddingBox,f.bottomRightBorderDoubleInnerBox,f.bottomRightPaddingBox);case 2:return Wi(f.bottomRightBorderDoubleInnerBox,f.bottomRightPaddingBox,f.bottomLeftBorderDoubleInnerBox,f.bottomLeftPaddingBox);default:return Wi(f.bottomLeftBorderDoubleInnerBox,f.bottomLeftPaddingBox,f.topLeftBorderDoubleInnerBox,f.topLeftPaddingBox)}},lQ=function(f,c){switch(c){case 0:return qh(f.topLeftBorderStroke,f.topRightBorderStroke);case 1:return qh(f.topRightBorderStroke,f.bottomRightBorderStroke);case 2:return qh(f.bottomRightBorderStroke,f.bottomLeftBorderStroke);default:return qh(f.bottomLeftBorderStroke,f.topLeftBorderStroke)}},qh=function(f,c){var p=[];return zi(f)?p.push(f.subdivide(.5,!1)):p.push(f),zi(c)?p.push(c.subdivide(.5,!0)):p.push(c),p},Wi=function(f,c,p,d){var b=[];return zi(f)?b.push(f.subdivide(.5,!1)):b.push(f),zi(p)?b.push(p.subdivide(.5,!0)):b.push(p),zi(d)?b.push(d.subdivide(.5,!0).reverse()):b.push(d),zi(c)?b.push(c.subdivide(.5,!1).reverse()):b.push(c),b},Ym=function(f){var c=f.bounds,p=f.styles;return c.add(p.borderLeftWidth,p.borderTopWidth,-(p.borderRightWidth+p.borderLeftWidth),-(p.borderTopWidth+p.borderBottomWidth))},Kh=function(f){var c=f.styles,p=f.bounds,d=BA(c.paddingLeft,p.width),b=BA(c.paddingRight,p.width),U=BA(c.paddingTop,p.width),L=BA(c.paddingBottom,p.width);return p.add(d+c.borderLeftWidth,U+c.borderTopWidth,-(c.borderRightWidth+c.borderLeftWidth+d+b),-(c.borderTopWidth+c.borderBottomWidth+U+L))},cQ=function(f,c){return f===0?c.bounds:f===2?Kh(c):Ym(c)},uQ=function(f,c){return f===0?c.bounds:f===2?Kh(c):Ym(c)},x0=function(f,c,p){var d=cQ(Yl(f.styles.backgroundOrigin,c),f),b=uQ(Yl(f.styles.backgroundClip,c),f),U=fQ(Yl(f.styles.backgroundSize,c),p,d),L=U[0],G=U[1],V=xi(Yl(f.styles.backgroundPosition,c),d.width-L,d.height-G),se=hQ(Yl(f.styles.backgroundRepeat,c),V,U,d,b),ue=Math.round(d.left+V[0]),Be=Math.round(d.top+V[1]);return[se,ue,Be,L,G]},Xl=function(f){return cA(f)&&f.value===ua.AUTO},jh=function(f){return typeof f=="number"},fQ=function(f,c,p){var d=c[0],b=c[1],U=c[2],L=f[0],G=f[1];if(!L)return[0,0];if(uA(L)&&G&&uA(G))return[BA(L,p.width),BA(G,p.height)];var V=jh(U);if(cA(L)&&(L.value===ua.CONTAIN||L.value===ua.COVER)){if(jh(U)){var se=p.width/p.height;return se<U!=(L.value===ua.COVER)?[p.width,p.width/U]:[p.height*U,p.height]}return[p.width,p.height]}var ue=jh(d),Be=jh(b),Ie=ue||Be;if(Xl(L)&&(!G||Xl(G))){if(ue&&Be)return[d,b];if(!V&&!Ie)return[p.width,p.height];if(Ie&&V){var it=ue?d:b*U,ze=Be?b:d/U;return[it,ze]}var et=ue?d:p.width,eA=Be?b:p.height;return[et,eA]}if(V){var Bt=0,wt=0;return uA(L)?Bt=BA(L,p.width):uA(G)&&(wt=BA(G,p.height)),Xl(L)?Bt=wt*U:(!G||Xl(G))&&(wt=Bt/U),[Bt,wt]}var CA=null,rA=null;if(uA(L)?CA=BA(L,p.width):G&&uA(G)&&(rA=BA(G,p.height)),CA!==null&&(!G||Xl(G))&&(rA=ue&&Be?CA/d*b:p.height),rA!==null&&Xl(L)&&(CA=ue&&Be?rA/b*d:p.width),CA!==null&&rA!==null)return[CA,rA];throw new Error("Unable to calculate background-size for element")},Yl=function(f,c){var p=f[c];return typeof p>"u"?f[0]:p},hQ=function(f,c,p,d,b){var U=c[0],L=c[1],G=p[0],V=p[1];switch(f){case 2:return[new At(Math.round(d.left),Math.round(d.top+L)),new At(Math.round(d.left+d.width),Math.round(d.top+L)),new At(Math.round(d.left+d.width),Math.round(V+d.top+L)),new At(Math.round(d.left),Math.round(V+d.top+L))];case 3:return[new At(Math.round(d.left+U),Math.round(d.top)),new At(Math.round(d.left+U+G),Math.round(d.top)),new At(Math.round(d.left+U+G),Math.round(d.height+d.top)),new At(Math.round(d.left+U),Math.round(d.height+d.top))];case 1:return[new At(Math.round(d.left+U),Math.round(d.top+L)),new At(Math.round(d.left+U+G),Math.round(d.top+L)),new At(Math.round(d.left+U+G),Math.round(d.top+L+V)),new At(Math.round(d.left+U),Math.round(d.top+L+V))];default:return[new At(Math.round(b.left),Math.round(b.top)),new At(Math.round(b.left+b.width),Math.round(b.top)),new At(Math.round(b.left+b.width),Math.round(b.height+b.top)),new At(Math.round(b.left),Math.round(b.height+b.top))]}},dQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Jm="Hidden Text",pQ=(function(){function f(c){this._data={},this._document=c}return f.prototype.parseMetrics=function(c,p){var d=this._document.createElement("div"),b=this._document.createElement("img"),U=this._document.createElement("span"),L=this._document.body;d.style.visibility="hidden",d.style.fontFamily=c,d.style.fontSize=p,d.style.margin="0",d.style.padding="0",d.style.whiteSpace="nowrap",L.appendChild(d),b.src=dQ,b.width=1,b.height=1,b.style.margin="0",b.style.padding="0",b.style.verticalAlign="baseline",U.style.fontFamily=c,U.style.fontSize=p,U.style.margin="0",U.style.padding="0",U.appendChild(this._document.createTextNode(Jm)),d.appendChild(U),d.appendChild(b);var G=b.offsetTop-U.offsetTop+2;d.removeChild(U),d.appendChild(this._document.createTextNode(Jm)),d.style.lineHeight="normal",b.style.verticalAlign="super";var V=b.offsetTop-d.offsetTop+2;return L.removeChild(d),{baseline:G,middle:V}},f.prototype.getMetrics=function(c,p){var d=c+" "+p;return typeof this._data[d]>"u"&&(this._data[d]=this.parseMetrics(c,p)),this._data[d]},f})(),Zm=(function(){function f(c,p){this.context=c,this.options=p}return f})(),gQ=1e4,wQ=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b._activeEffects=[],b.canvas=d.canvas?d.canvas:document.createElement("canvas"),b.ctx=b.canvas.getContext("2d"),d.canvas||(b.canvas.width=Math.floor(d.width*d.scale),b.canvas.height=Math.floor(d.height*d.scale),b.canvas.style.width=d.width+"px",b.canvas.style.height=d.height+"px"),b.fontMetrics=new pQ(document),b.ctx.scale(b.options.scale,b.options.scale),b.ctx.translate(-d.x,-d.y),b.ctx.textBaseline="bottom",b._activeEffects=[],b.context.logger.debug("Canvas renderer initialized ("+d.width+"x"+d.height+") with scale "+d.scale),b}return c.prototype.applyEffects=function(p){for(var d=this;this._activeEffects.length;)this.popEffect();p.forEach(function(b){return d.applyEffect(b)})},c.prototype.applyEffect=function(p){this.ctx.save(),nQ(p)&&(this.ctx.globalAlpha=p.opacity),rQ(p)&&(this.ctx.translate(p.offsetX,p.offsetY),this.ctx.transform(p.matrix[0],p.matrix[1],p.matrix[2],p.matrix[3],p.matrix[4],p.matrix[5]),this.ctx.translate(-p.offsetX,-p.offsetY)),Vm(p)&&(this.path(p.path),this.ctx.clip()),this._activeEffects.push(p)},c.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},c.prototype.renderStack=function(p){return r(this,void 0,void 0,function(){var d;return n(this,function(b){switch(b.label){case 0:return d=p.element.container.styles,d.isVisible()?[4,this.renderStackContent(p)]:[3,2];case 1:b.sent(),b.label=2;case 2:return[2]}})})},c.prototype.renderNode=function(p){return r(this,void 0,void 0,function(){return n(this,function(d){switch(d.label){case 0:if(pe(p.container.flags,16))debugger;return p.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(p)]:[3,3];case 1:return d.sent(),[4,this.renderNodeContent(p)];case 2:d.sent(),d.label=3;case 3:return[2]}})})},c.prototype.renderTextWithLetterSpacing=function(p,d,b){var U=this;if(d===0)this.ctx.fillText(p.text,p.bounds.left,p.bounds.top+b);else{var L=Bs(p.text);L.reduce(function(G,V){return U.ctx.fillText(V,G,p.bounds.top+b),G+U.ctx.measureText(V).width},p.bounds.left)}},c.prototype.createFontStyle=function(p){var d=p.fontVariant.filter(function(L){return L==="normal"||L==="small-caps"}).join(""),b=bQ(p.fontFamily).join(", "),U=Ui(p.fontSize)?""+p.fontSize.number+p.fontSize.unit:p.fontSize.number+"px";return[[p.fontStyle,d,p.fontWeight,U,b].join(" "),b,U]},c.prototype.renderTextNode=function(p,d){return r(this,void 0,void 0,function(){var b,U,L,G,V,se,ue,Be,Ie=this;return n(this,function(it){return b=this.createFontStyle(d),U=b[0],L=b[1],G=b[2],this.ctx.font=U,this.ctx.direction=d.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",V=this.fontMetrics.getMetrics(L,G),se=V.baseline,ue=V.middle,Be=d.paintOrder,p.textBounds.forEach(function(ze){Be.forEach(function(et){switch(et){case 0:Ie.ctx.fillStyle=nA(d.color),Ie.renderTextWithLetterSpacing(ze,d.letterSpacing,se);var eA=d.textShadow;eA.length&&ze.text.trim().length&&(eA.slice(0).reverse().forEach(function(Bt){Ie.ctx.shadowColor=nA(Bt.color),Ie.ctx.shadowOffsetX=Bt.offsetX.number*Ie.options.scale,Ie.ctx.shadowOffsetY=Bt.offsetY.number*Ie.options.scale,Ie.ctx.shadowBlur=Bt.blur.number,Ie.renderTextWithLetterSpacing(ze,d.letterSpacing,se)}),Ie.ctx.shadowColor="",Ie.ctx.shadowOffsetX=0,Ie.ctx.shadowOffsetY=0,Ie.ctx.shadowBlur=0),d.textDecorationLine.length&&(Ie.ctx.fillStyle=nA(d.textDecorationColor||d.color),d.textDecorationLine.forEach(function(Bt){switch(Bt){case 1:Ie.ctx.fillRect(ze.bounds.left,Math.round(ze.bounds.top+se),ze.bounds.width,1);break;case 2:Ie.ctx.fillRect(ze.bounds.left,Math.round(ze.bounds.top),ze.bounds.width,1);break;case 3:Ie.ctx.fillRect(ze.bounds.left,Math.ceil(ze.bounds.top+ue),ze.bounds.width,1);break}}));break;case 1:d.webkitTextStrokeWidth&&ze.text.trim().length&&(Ie.ctx.strokeStyle=nA(d.webkitTextStrokeColor),Ie.ctx.lineWidth=d.webkitTextStrokeWidth,Ie.ctx.lineJoin=window.chrome?"miter":"round",Ie.ctx.strokeText(ze.text,ze.bounds.left,ze.bounds.top+se)),Ie.ctx.strokeStyle="",Ie.ctx.lineWidth=0,Ie.ctx.lineJoin="miter";break}})}),[2]})})},c.prototype.renderReplacedElement=function(p,d,b){if(b&&p.intrinsicWidth>0&&p.intrinsicHeight>0){var U=Kh(p),L=Hh(d);this.path(L),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(b,0,0,p.intrinsicWidth,p.intrinsicHeight,U.left,U.top,U.width,U.height),this.ctx.restore()}},c.prototype.renderNodeContent=function(p){return r(this,void 0,void 0,function(){var d,b,U,L,G,V,wt,wt,se,ue,Be,Ie,rA,it,ze,qt,et,eA,Bt,wt,CA,rA,qt;return n(this,function(rt){switch(rt.label){case 0:this.applyEffects(p.getEffects(4)),d=p.container,b=p.curves,U=d.styles,L=0,G=d.textNodes,rt.label=1;case 1:return L<G.length?(V=G[L],[4,this.renderTextNode(V,U)]):[3,4];case 2:rt.sent(),rt.label=3;case 3:return L++,[3,1];case 4:if(!(d instanceof Ih))return[3,8];rt.label=5;case 5:return rt.trys.push([5,7,,8]),[4,this.context.cache.match(d.src)];case 6:return wt=rt.sent(),this.renderReplacedElement(d,b,wt),[3,8];case 7:return rt.sent(),this.context.logger.error("Error loading image "+d.src),[3,8];case 8:if(d instanceof jl&&this.renderReplacedElement(d,b,d.canvas),!(d instanceof Vl))return[3,12];rt.label=9;case 9:return rt.trys.push([9,11,,12]),[4,this.context.cache.match(d.svg)];case 10:return wt=rt.sent(),this.renderReplacedElement(d,b,wt),[3,12];case 11:return rt.sent(),this.context.logger.error("Error loading svg "+d.svg.substring(0,255)),[3,12];case 12:return d instanceof Em&&d.tree?(se=new c(this.context,{scale:this.options.scale,backgroundColor:d.backgroundColor,x:0,y:0,width:d.width,height:d.height}),[4,se.render(d.tree)]):[3,14];case 13:ue=rt.sent(),d.width&&d.height&&this.ctx.drawImage(ue,0,0,d.width,d.height,d.bounds.left,d.bounds.top,d.bounds.width,d.bounds.height),rt.label=14;case 14:if(d instanceof g0&&(Be=Math.min(d.bounds.width,d.bounds.height),d.type===Lh?d.checked&&(this.ctx.save(),this.path([new At(d.bounds.left+Be*.39363,d.bounds.top+Be*.79),new At(d.bounds.left+Be*.16,d.bounds.top+Be*.5549),new At(d.bounds.left+Be*.27347,d.bounds.top+Be*.44071),new At(d.bounds.left+Be*.39694,d.bounds.top+Be*.5649),new At(d.bounds.left+Be*.72983,d.bounds.top+Be*.23),new At(d.bounds.left+Be*.84,d.bounds.top+Be*.34085),new At(d.bounds.left+Be*.39363,d.bounds.top+Be*.79)]),this.ctx.fillStyle=nA(Bm),this.ctx.fill(),this.ctx.restore()):d.type===Th&&d.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(d.bounds.left+Be/2,d.bounds.top+Be/2,Be/4,0,Math.PI*2,!0),this.ctx.fillStyle=nA(Bm),this.ctx.fill(),this.ctx.restore())),vQ(d)&&d.value.length){switch(Ie=this.createFontStyle(U),rA=Ie[0],it=Ie[1],ze=this.fontMetrics.getMetrics(rA,it).baseline,this.ctx.font=rA,this.ctx.fillStyle=nA(U.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=yQ(d.styles.textAlign),qt=Kh(d),et=0,d.styles.textAlign){case 1:et+=qt.width/2;break;case 2:et+=qt.width;break}eA=qt.add(et,0,0,-qt.height/2+1),this.ctx.save(),this.path([new At(qt.left,qt.top),new At(qt.left+qt.width,qt.top),new At(qt.left+qt.width,qt.top+qt.height),new At(qt.left,qt.top+qt.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Zs(d.value,eA),U.letterSpacing,ze),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!pe(d.styles.display,2048))return[3,20];if(d.styles.listStyleImage===null)return[3,19];if(Bt=d.styles.listStyleImage,Bt.type!==0)return[3,18];wt=void 0,CA=Bt.url,rt.label=15;case 15:return rt.trys.push([15,17,,18]),[4,this.context.cache.match(CA)];case 16:return wt=rt.sent(),this.ctx.drawImage(wt,d.bounds.left-(wt.width+10),d.bounds.top),[3,18];case 17:return rt.sent(),this.context.logger.error("Error loading list-style-image "+CA),[3,18];case 18:return[3,20];case 19:p.listValue&&d.styles.listStyleType!==-1&&(rA=this.createFontStyle(U)[0],this.ctx.font=rA,this.ctx.fillStyle=nA(U.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",qt=new s(d.bounds.left,d.bounds.top+BA(d.styles.paddingTop,d.bounds.width),d.bounds.width,hh(U.lineHeight,U.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Zs(p.listValue,qt),U.letterSpacing,hh(U.lineHeight,U.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),rt.label=20;case 20:return[2]}})})},c.prototype.renderStackContent=function(p){return r(this,void 0,void 0,function(){var d,b,Bt,U,L,Bt,G,V,Bt,se,ue,Bt,Be,Ie,Bt,it,ze,Bt,et,eA,Bt;return n(this,function(wt){switch(wt.label){case 0:if(pe(p.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(p.element)];case 1:wt.sent(),d=0,b=p.negativeZIndex,wt.label=2;case 2:return d<b.length?(Bt=b[d],[4,this.renderStack(Bt)]):[3,5];case 3:wt.sent(),wt.label=4;case 4:return d++,[3,2];case 5:return[4,this.renderNodeContent(p.element)];case 6:wt.sent(),U=0,L=p.nonInlineLevel,wt.label=7;case 7:return U<L.length?(Bt=L[U],[4,this.renderNode(Bt)]):[3,10];case 8:wt.sent(),wt.label=9;case 9:return U++,[3,7];case 10:G=0,V=p.nonPositionedFloats,wt.label=11;case 11:return G<V.length?(Bt=V[G],[4,this.renderStack(Bt)]):[3,14];case 12:wt.sent(),wt.label=13;case 13:return G++,[3,11];case 14:se=0,ue=p.nonPositionedInlineLevel,wt.label=15;case 15:return se<ue.length?(Bt=ue[se],[4,this.renderStack(Bt)]):[3,18];case 16:wt.sent(),wt.label=17;case 17:return se++,[3,15];case 18:Be=0,Ie=p.inlineLevel,wt.label=19;case 19:return Be<Ie.length?(Bt=Ie[Be],[4,this.renderNode(Bt)]):[3,22];case 20:wt.sent(),wt.label=21;case 21:return Be++,[3,19];case 22:it=0,ze=p.zeroOrAutoZIndexOrTransformedOrOpacity,wt.label=23;case 23:return it<ze.length?(Bt=ze[it],[4,this.renderStack(Bt)]):[3,26];case 24:wt.sent(),wt.label=25;case 25:return it++,[3,23];case 26:et=0,eA=p.positiveZIndex,wt.label=27;case 27:return et<eA.length?(Bt=eA[et],[4,this.renderStack(Bt)]):[3,30];case 28:wt.sent(),wt.label=29;case 29:return et++,[3,27];case 30:return[2]}})})},c.prototype.mask=function(p){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(p.slice(0).reverse()),this.ctx.closePath()},c.prototype.path=function(p){this.ctx.beginPath(),this.formatPath(p),this.ctx.closePath()},c.prototype.formatPath=function(p){var d=this;p.forEach(function(b,U){var L=zi(b)?b.start:b;U===0?d.ctx.moveTo(L.x,L.y):d.ctx.lineTo(L.x,L.y),zi(b)&&d.ctx.bezierCurveTo(b.startControl.x,b.startControl.y,b.endControl.x,b.endControl.y,b.end.x,b.end.y)})},c.prototype.renderRepeat=function(p,d,b,U){this.path(p),this.ctx.fillStyle=d,this.ctx.translate(b,U),this.ctx.fill(),this.ctx.translate(-b,-U)},c.prototype.resizeImage=function(p,d,b){var U;if(p.width===d&&p.height===b)return p;var L=(U=this.canvas.ownerDocument)!==null&&U!==void 0?U:document,G=L.createElement("canvas");G.width=Math.max(1,d),G.height=Math.max(1,b);var V=G.getContext("2d");return V.drawImage(p,0,0,p.width,p.height,0,0,d,b),G},c.prototype.renderBackgroundImage=function(p){return r(this,void 0,void 0,function(){var d,b,U,L,G,V;return n(this,function(se){switch(se.label){case 0:d=p.styles.backgroundImage.length-1,b=function(ue){var Be,Ie,it,Lr,fi,hi,kA,pn,gA,ze,Lr,fi,hi,kA,pn,et,eA,Bt,wt,CA,rA,qt,rt,pA,gA,Vt,Lr,ui,Ti,kA,pn,Ao,fi,hi,Ho,qa,ro,Mo,qo,Cs,Ko,Es;return n(this,function(Jl){switch(Jl.label){case 0:if(ue.type!==0)return[3,5];Be=void 0,Ie=ue.url,Jl.label=1;case 1:return Jl.trys.push([1,3,,4]),[4,U.context.cache.match(Ie)];case 2:return Be=Jl.sent(),[3,4];case 3:return Jl.sent(),U.context.logger.error("Error loading background-image "+Ie),[3,4];case 4:return Be&&(it=x0(p,d,[Be.width,Be.height,Be.width/Be.height]),Lr=it[0],fi=it[1],hi=it[2],kA=it[3],pn=it[4],gA=U.ctx.createPattern(U.resizeImage(Be,kA,pn),"repeat"),U.renderRepeat(Lr,gA,fi,hi)),[3,6];case 5:ah(ue)?(ze=x0(p,d,[null,null,null]),Lr=ze[0],fi=ze[1],hi=ze[2],kA=ze[3],pn=ze[4],et=tn(ue.angle,kA,pn),eA=et[0],Bt=et[1],wt=et[2],CA=et[3],rA=et[4],qt=document.createElement("canvas"),qt.width=kA,qt.height=pn,rt=qt.getContext("2d"),pA=rt.createLinearGradient(Bt,CA,wt,rA),la(ue.stops,eA).forEach(function(_u){return pA.addColorStop(_u.stop,nA(_u.color))}),rt.fillStyle=pA,rt.fillRect(0,0,kA,pn),kA>0&&pn>0&&(gA=U.ctx.createPattern(qt,"repeat"),U.renderRepeat(Lr,gA,fi,hi))):sh(ue)&&(Vt=x0(p,d,[null,null,null]),Lr=Vt[0],ui=Vt[1],Ti=Vt[2],kA=Vt[3],pn=Vt[4],Ao=ue.position.length===0?[Ks]:ue.position,fi=BA(Ao[0],kA),hi=BA(Ao[Ao.length-1],pn),Ho=RA(ue,fi,hi,kA,pn),qa=Ho[0],ro=Ho[1],qa>0&&ro>0&&(Mo=U.ctx.createRadialGradient(ui+fi,Ti+hi,0,ui+fi,Ti+hi,qa),la(ue.stops,qa*2).forEach(function(_u){return Mo.addColorStop(_u.stop,nA(_u.color))}),U.path(Lr),U.ctx.fillStyle=Mo,qa!==ro?(qo=p.bounds.left+.5*p.bounds.width,Cs=p.bounds.top+.5*p.bounds.height,Ko=ro/qa,Es=1/Ko,U.ctx.save(),U.ctx.translate(qo,Cs),U.ctx.transform(1,0,0,Ko,0,0),U.ctx.translate(-qo,-Cs),U.ctx.fillRect(ui,Es*(Ti-Cs)+Cs,kA,pn*Es),U.ctx.restore()):U.ctx.fill())),Jl.label=6;case 6:return d--,[2]}})},U=this,L=0,G=p.styles.backgroundImage.slice(0).reverse(),se.label=1;case 1:return L<G.length?(V=G[L],[5,b(V)]):[3,4];case 2:se.sent(),se.label=3;case 3:return L++,[3,1];case 4:return[2]}})})},c.prototype.renderSolidBorder=function(p,d,b){return r(this,void 0,void 0,function(){return n(this,function(U){return this.path(Xm(b,d)),this.ctx.fillStyle=nA(p),this.ctx.fill(),[2]})})},c.prototype.renderDoubleBorder=function(p,d,b,U){return r(this,void 0,void 0,function(){var L,G;return n(this,function(V){switch(V.label){case 0:return d<3?[4,this.renderSolidBorder(p,b,U)]:[3,2];case 1:return V.sent(),[2];case 2:return L=sQ(U,b),this.path(L),this.ctx.fillStyle=nA(p),this.ctx.fill(),G=oQ(U,b),this.path(G),this.ctx.fill(),[2]}})})},c.prototype.renderNodeBackgroundAndBorders=function(p){return r(this,void 0,void 0,function(){var d,b,U,L,G,V,se,ue,Be=this;return n(this,function(Ie){switch(Ie.label){case 0:return this.applyEffects(p.getEffects(2)),d=p.container.styles,b=!bn(d.backgroundColor)||d.backgroundImage.length,U=[{style:d.borderTopStyle,color:d.borderTopColor,width:d.borderTopWidth},{style:d.borderRightStyle,color:d.borderRightColor,width:d.borderRightWidth},{style:d.borderBottomStyle,color:d.borderBottomColor,width:d.borderBottomWidth},{style:d.borderLeftStyle,color:d.borderLeftColor,width:d.borderLeftWidth}],L=mQ(Yl(d.backgroundClip,0),p.curves),b||d.boxShadow.length?(this.ctx.save(),this.path(L),this.ctx.clip(),bn(d.backgroundColor)||(this.ctx.fillStyle=nA(d.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(p.container)]):[3,2];case 1:Ie.sent(),this.ctx.restore(),d.boxShadow.slice(0).reverse().forEach(function(it){Be.ctx.save();var ze=Dh(p.curves),et=it.inset?0:gQ,eA=iQ(ze,-et+(it.inset?1:-1)*it.spread.number,(it.inset?1:-1)*it.spread.number,it.spread.number*(it.inset?-2:2),it.spread.number*(it.inset?-2:2));it.inset?(Be.path(ze),Be.ctx.clip(),Be.mask(eA)):(Be.mask(ze),Be.ctx.clip(),Be.path(eA)),Be.ctx.shadowOffsetX=it.offsetX.number+et,Be.ctx.shadowOffsetY=it.offsetY.number,Be.ctx.shadowColor=nA(it.color),Be.ctx.shadowBlur=it.blur.number,Be.ctx.fillStyle=it.inset?nA(it.color):"rgba(0,0,0,1)",Be.ctx.fill(),Be.ctx.restore()}),Ie.label=2;case 2:G=0,V=0,se=U,Ie.label=3;case 3:return V<se.length?(ue=se[V],ue.style!==0&&!bn(ue.color)&&ue.width>0?ue.style!==2?[3,5]:[4,this.renderDashedDottedBorder(ue.color,ue.width,G,p.curves,2)]:[3,11]):[3,13];case 4:return Ie.sent(),[3,11];case 5:return ue.style!==3?[3,7]:[4,this.renderDashedDottedBorder(ue.color,ue.width,G,p.curves,3)];case 6:return Ie.sent(),[3,11];case 7:return ue.style!==4?[3,9]:[4,this.renderDoubleBorder(ue.color,ue.width,G,p.curves)];case 8:return Ie.sent(),[3,11];case 9:return[4,this.renderSolidBorder(ue.color,G,p.curves)];case 10:Ie.sent(),Ie.label=11;case 11:G++,Ie.label=12;case 12:return V++,[3,3];case 13:return[2]}})})},c.prototype.renderDashedDottedBorder=function(p,d,b,U,L){return r(this,void 0,void 0,function(){var G,V,se,ue,Be,Ie,it,ze,et,eA,Bt,wt,CA,rA,qt,rt,qt,rt;return n(this,function(pA){return this.ctx.save(),G=lQ(U,b),V=Xm(U,b),L===2&&(this.path(V),this.ctx.clip()),zi(V[0])?(se=V[0].start.x,ue=V[0].start.y):(se=V[0].x,ue=V[0].y),zi(V[1])?(Be=V[1].end.x,Ie=V[1].end.y):(Be=V[1].x,Ie=V[1].y),b===0||b===2?it=Math.abs(se-Be):it=Math.abs(ue-Ie),this.ctx.beginPath(),L===3?this.formatPath(G):this.formatPath(V.slice(0,2)),ze=d<3?d*3:d*2,et=d<3?d*2:d,L===3&&(ze=d,et=d),eA=!0,it<=ze*2?eA=!1:it<=ze*2+et?(Bt=it/(2*ze+et),ze*=Bt,et*=Bt):(wt=Math.floor((it+et)/(ze+et)),CA=(it-wt*ze)/(wt-1),rA=(it-(wt+1)*ze)/wt,et=rA<=0||Math.abs(et-CA)<Math.abs(et-rA)?CA:rA),eA&&(L===3?this.ctx.setLineDash([0,ze+et]):this.ctx.setLineDash([ze,et])),L===3?(this.ctx.lineCap="round",this.ctx.lineWidth=d):this.ctx.lineWidth=d*2+1.1,this.ctx.strokeStyle=nA(p),this.ctx.stroke(),this.ctx.setLineDash([]),L===2&&(zi(V[0])&&(qt=V[3],rt=V[0],this.ctx.beginPath(),this.formatPath([new At(qt.end.x,qt.end.y),new At(rt.start.x,rt.start.y)]),this.ctx.stroke()),zi(V[1])&&(qt=V[1],rt=V[2],this.ctx.beginPath(),this.formatPath([new At(qt.end.x,qt.end.y),new At(rt.start.x,rt.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},c.prototype.render=function(p){return r(this,void 0,void 0,function(){var d;return n(this,function(b){switch(b.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=nA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),d=aQ(p),[4,this.renderStack(d)];case 1:return b.sent(),this.applyEffects([]),[2,this.canvas]}})})},c})(Zm),vQ=function(f){return f instanceof Cm||f instanceof bm?!0:f instanceof g0&&f.type!==Th&&f.type!==Lh},mQ=function(f,c){switch(f){case 0:return Dh(c);case 2:return eQ(c);default:return Hh(c)}},yQ=function(f){switch(f){case 1:return"center";case 2:return"right";default:return"left"}},BQ=["-apple-system","system-ui"],bQ=function(f){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?f.filter(function(c){return BQ.indexOf(c)===-1}):f},CQ=(function(f){e(c,f);function c(p,d){var b=f.call(this,p,d)||this;return b.canvas=d.canvas?d.canvas:document.createElement("canvas"),b.ctx=b.canvas.getContext("2d"),b.options=d,b.canvas.width=Math.floor(d.width*d.scale),b.canvas.height=Math.floor(d.height*d.scale),b.canvas.style.width=d.width+"px",b.canvas.style.height=d.height+"px",b.ctx.scale(b.options.scale,b.options.scale),b.ctx.translate(-d.x,-d.y),b.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+d.width+"x"+d.height+" at "+d.x+","+d.y+") with scale "+d.scale),b}return c.prototype.render=function(p){return r(this,void 0,void 0,function(){var d,b;return n(this,function(U){switch(U.label){case 0:return d=Ml(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,p),[4,EQ(d)];case 1:return b=U.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=nA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(b,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},c})(Zm),EQ=function(f){return new Promise(function(c,p){var d=new Image;d.onload=function(){c(d)},d.onerror=p,d.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(f))})},FQ=(function(){function f(c){var p=c.id,d=c.enabled;this.id=p,this.enabled=d,this.start=Date.now()}return f.prototype.debug=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,i([this.id,this.getTime()+"ms"],c)):this.info.apply(this,c))},f.prototype.getTime=function(){return Date.now()-this.start},f.prototype.info=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,i([this.id,this.getTime()+"ms"],c))},f.prototype.warn=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,i([this.id,this.getTime()+"ms"],c)):this.info.apply(this,c))},f.prototype.error=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,i([this.id,this.getTime()+"ms"],c)):this.info.apply(this,c))},f.instances={},f})(),UQ=(function(){function f(c,p){var d;this.windowBounds=p,this.instanceName="#"+f.instanceCount++,this.logger=new FQ({id:this.instanceName,enabled:c.logging}),this.cache=(d=c.cache)!==null&&d!==void 0?d:new G3(this,c)}return f.instanceCount=1,f})(),xQ=function(f,c){return c===void 0&&(c={}),_Q(f,c)};typeof window<"u"&&jm.setContext(window);var _Q=function(f,c){return r(void 0,void 0,void 0,function(){var p,d,b,U,L,G,V,se,ue,Be,Ie,it,ze,et,eA,Bt,wt,CA,rA,qt,pA,rt,pA,gA,Vt,Lr,ui,Ti,kA,pn,Ao,fi,hi,Ho,qa,ro,Mo,qo,Cs,Ko;return n(this,function(Es){switch(Es.label){case 0:if(!f||typeof f!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(p=f.ownerDocument,!p)throw new Error("Element is not attached to a Document");if(d=p.defaultView,!d)throw new Error("Document is not attached to a Window");return b={allowTaint:(gA=c.allowTaint)!==null&&gA!==void 0?gA:!1,imageTimeout:(Vt=c.imageTimeout)!==null&&Vt!==void 0?Vt:15e3,proxy:c.proxy,useCORS:(Lr=c.useCORS)!==null&&Lr!==void 0?Lr:!1},U=A({logging:(ui=c.logging)!==null&&ui!==void 0?ui:!0,cache:c.cache},b),L={windowWidth:(Ti=c.windowWidth)!==null&&Ti!==void 0?Ti:d.innerWidth,windowHeight:(kA=c.windowHeight)!==null&&kA!==void 0?kA:d.innerHeight,scrollX:(pn=c.scrollX)!==null&&pn!==void 0?pn:d.pageXOffset,scrollY:(Ao=c.scrollY)!==null&&Ao!==void 0?Ao:d.pageYOffset},G=new s(L.scrollX,L.scrollY,L.windowWidth,L.windowHeight),V=new UQ(U,G),se=(fi=c.foreignObjectRendering)!==null&&fi!==void 0?fi:!1,ue={allowTaint:(hi=c.allowTaint)!==null&&hi!==void 0?hi:!1,onclone:c.onclone,ignoreElements:c.ignoreElements,inlineImages:se,copyStyles:se},V.logger.debug("Starting document clone with size "+G.width+"x"+G.height+" scrolled to "+-G.left+","+-G.top),Be=new qm(V,f,ue),Ie=Be.clonedReferenceElement,Ie?[4,Be.toIFrame(p,G)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return it=Es.sent(),ze=v0(Ie)||S3(Ie)?o(Ie.ownerDocument):a(V,Ie),et=ze.width,eA=ze.height,Bt=ze.left,wt=ze.top,CA=SQ(V,Ie,c.backgroundColor),rA={canvas:c.canvas,backgroundColor:CA,scale:(qa=(Ho=c.scale)!==null&&Ho!==void 0?Ho:d.devicePixelRatio)!==null&&qa!==void 0?qa:1,x:((ro=c.x)!==null&&ro!==void 0?ro:0)+Bt,y:((Mo=c.y)!==null&&Mo!==void 0?Mo:0)+wt,width:(qo=c.width)!==null&&qo!==void 0?qo:Math.ceil(et),height:(Cs=c.height)!==null&&Cs!==void 0?Cs:Math.ceil(eA)},se?(V.logger.debug("Document cloned, using foreign object rendering"),pA=new CQ(V,rA),[4,pA.render(Ie)]):[3,3];case 2:return qt=Es.sent(),[3,5];case 3:return V.logger.debug("Document cloned, element located at "+Bt+","+wt+" with size "+et+"x"+eA+" using computed rendering"),V.logger.debug("Starting DOM parsing"),rt=Um(V,Ie),CA===rt.styles.backgroundColor&&(rt.styles.backgroundColor=fn.TRANSPARENT),V.logger.debug("Starting renderer for element at "+rA.x+","+rA.y+" with size "+rA.width+"x"+rA.height),pA=new wQ(V,rA),[4,pA.render(rt)];case 4:qt=Es.sent(),Es.label=5;case 5:return(!((Ko=c.removeContainer)!==null&&Ko!==void 0)||Ko)&&(qm.destroy(it)||V.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),V.logger.debug("Finished rendering"),[2,qt]}})})},SQ=function(f,c,p){var d=c.ownerDocument,b=d.documentElement?Gi(f,getComputedStyle(d.documentElement).backgroundColor):fn.TRANSPARENT,U=d.body?Gi(f,getComputedStyle(d.body).backgroundColor):fn.TRANSPARENT,L=typeof p=="string"?Gi(f,p):p===null?fn.TRANSPARENT:4294967295;return c===d.documentElement?bn(b)?bn(U)?L:U:b:L};return xQ}))});function dA(t){"@babel/helpers - typeof";return dA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dA(t)}var ad=zt(()=>{});var Zb={};or(Zb,{default:()=>MN});function Pb(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=Array(e);A<e;A++)r[A]=t[A];return r}function oN(t){if(Array.isArray(t))return t}function lN(t,e){var A=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(A!=null){var r,n,i,s,a=[],o=!0,l=!1;try{if(i=(A=A.call(t)).next,e!==0)for(;!(o=(r=i.call(A)).done)&&(a.push(r.value),a.length!==e);o=!0);}catch(h){l=!0,n=h}finally{try{if(!o&&A.return!=null&&(s=A.return(),Object(s)!==s))return}finally{if(l)throw n}}return a}}function cN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uN(t,e){return oN(t)||lN(t,e)||fN(t,e)||cN()}function fN(t,e){if(t){if(typeof t=="string")return Pb(t,e);var A={}.toString.call(t).slice(8,-1);return A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set"?Array.from(t):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?Pb(t,e):void 0}}function Nr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var A=arguments.length,r=new Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];return a1(t,e,r)}}function BN(t){return function(){for(var e=arguments.length,A=new Array(e),r=0;r<e;r++)A[r]=arguments[r];return s1(t,A)}}function wA(t,e){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ff;if(Rb&&Rb(t,null),!ho(e))return t;let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){let i=A(n);i!==n&&(hN(e)||(e[r]=i),n=i)}t[n]=!0}return t}function bN(t){for(let e=0;e<t.length;e++)an(t,e)||(t[e]=null);return t}function Zn(t){let e=pc(null);for(let r of Xb(t)){var A=uN(r,2);let n=A[0],i=A[1];an(t,n)&&(ho(i)?e[n]=bN(i):i&&typeof i=="object"&&i.constructor===Object?e[n]=Zn(i):e[n]=i)}return e}function CN(t){switch(typeof t){case"string":return t;case"number":return mN(t);case"boolean":return yN(t);case"bigint":return Mb?Mb(t):"0";case"symbol":return qb?qb(t):"Symbol()";case"undefined":return uf(t);case"function":case"object":{if(t===null)return uf(t);let e=t,A=Ja(e,"toString");if(typeof A=="function"){let r=A(e);return typeof r=="string"?r:uf(r)}return uf(t)}default:return uf(t)}}function Ja(t,e){for(;t!==null;){let r=pN(t,e);if(r){if(r.get)return Nr(r.get);if(typeof r.value=="function")return Nr(r.value)}t=dN(t)}function A(){return null}return A}function EN(t){try{return vn(t,""),!0}catch{return!1}}function Jb(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:DN(),e=We=>Jb(We);if(e.version="3.4.11",e.removed=[],!t||!t.document||t.document.nodeType!==Ya.document||!t.Element)return e.isSupported=!1,e;let A=t.document,r=A,n=r.currentScript;t.DocumentFragment;let i=t.HTMLTemplateElement,s=t.Node,a=t.Element,o=t.NodeFilter,l=t.NamedNodeMap;l===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;let h=t.DOMParser,v=t.trustedTypes,m=a.prototype,g=Ja(m,"cloneNode"),C=Ja(m,"remove"),F=Ja(m,"nextSibling"),_=Ja(m,"childNodes"),x=Ja(m,"parentNode"),H=Ja(m,"shadowRoot"),D=Ja(m,"attributes"),k=s&&s.prototype?Ja(s.prototype,"nodeType"):null,re=s&&s.prototype?Ja(s.prototype,"nodeName"):null;if(typeof i=="function"){let We=A.createElement("template");We.content&&We.content.ownerDocument&&(A=We.content.ownerDocument)}let fe,Ae="",j,N=!1,Z=0,I=function(){if(Z>0)throw nl('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},O=function(X){I(),Z++;try{return fe.createHTML(X)}finally{Z--}},Y=function(X){I(),Z++;try{return fe.createScriptURL(X)}finally{Z--}},ee=function(){return N||(j=HN(v,n),N=!0),j},ce=A,be=ce.implementation,Fe=ce.createNodeIterator,de=ce.createDocumentFragment,Ee=ce.getElementsByTagName,Pe=r.importNode,Ue=$b();e.isSupported=typeof Xb=="function"&&typeof x=="function"&&be&&be.createHTMLDocument!==void 0;let P=xN,J=_N,te=SN,ie=QN,oe=IN,ve=LN,xe=TN,_e=ON,Le=zb,Oe=null,Je=wA({},[...Kb,...A1,...r1,...n1,...jb]),qe=null,at=wA({},[...Vb,...i1,...Gb,...Sd]),q=Object.seal(pc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),je=null,Tt=null,ut=Object.seal(pc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Re=!0,dt=!0,$e=!1,lt=!0,Ze=!1,Ut=!0,Nt=!1,St=!1,Ht=null,Ot=null,tt=!1,yt=!1,Xe=!1,aA=!1,Gt=!0,It=!1,Rt="user-content-",tA=!0,mt=!1,Jt={},nt=null,xt=wA({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),fA=null,bt=wA({},["audio","video","img","source","image","track"]),Ct=null,sA=wA({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ln="http://www.w3.org/1998/Math/MathML",qA="http://www.w3.org/2000/svg",WA="http://www.w3.org/1999/xhtml",Sr=WA,_t=!1,On=null,ti=wA({},[ln,qA,WA],t1),Lt=mn(["mi","mo","mn","ms","mtext"]),vr=wA({},Lt),IA=mn(["annotation-xml"]),mA=wA({},IA),rr=wA({},["title","style","font","a","script"]),Bn=null,yi=["application/xhtml+xml","text/html"],Pn="text/html",oA=null,Qr=null,Rn=A.createElement("form"),kr=function(X){return X instanceof RegExp||X instanceof Function},Ai=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Qr&&Qr===X)return;(!X||typeof X!="object")&&(X={}),X=Zn(X),Bn=yi.indexOf(X.PARSER_MEDIA_TYPE)===-1?Pn:X.PARSER_MEDIA_TYPE,oA=Bn==="application/xhtml+xml"?t1:ff,Oe=fo(X,"ALLOWED_TAGS",Je,{transform:oA}),qe=fo(X,"ALLOWED_ATTR",at,{transform:oA}),On=fo(X,"ALLOWED_NAMESPACES",ti,{transform:t1}),Ct=fo(X,"ADD_URI_SAFE_ATTR",sA,{transform:oA,base:sA}),fA=fo(X,"ADD_DATA_URI_TAGS",bt,{transform:oA,base:bt}),nt=fo(X,"FORBID_CONTENTS",xt,{transform:oA}),je=fo(X,"FORBID_TAGS",Zn({}),{transform:oA}),Tt=fo(X,"FORBID_ATTR",Zn({}),{transform:oA}),Jt=an(X,"USE_PROFILES")?X.USE_PROFILES&&typeof X.USE_PROFILES=="object"?Zn(X.USE_PROFILES):X.USE_PROFILES:!1,Re=X.ALLOW_ARIA_ATTR!==!1,dt=X.ALLOW_DATA_ATTR!==!1,$e=X.ALLOW_UNKNOWN_PROTOCOLS||!1,lt=X.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=X.SAFE_FOR_TEMPLATES||!1,Ut=X.SAFE_FOR_XML!==!1,Nt=X.WHOLE_DOCUMENT||!1,yt=X.RETURN_DOM||!1,Xe=X.RETURN_DOM_FRAGMENT||!1,aA=X.RETURN_TRUSTED_TYPE||!1,tt=X.FORCE_BODY||!1,Gt=X.SANITIZE_DOM!==!1,It=X.SANITIZE_NAMED_PROPS||!1,tA=X.KEEP_CONTENT!==!1,mt=X.IN_PLACE||!1,Le=EN(X.ALLOWED_URI_REGEXP)?X.ALLOWED_URI_REGEXP:zb,Sr=typeof X.NAMESPACE=="string"?X.NAMESPACE:WA,vr=an(X,"MATHML_TEXT_INTEGRATION_POINTS")&&X.MATHML_TEXT_INTEGRATION_POINTS&&typeof X.MATHML_TEXT_INTEGRATION_POINTS=="object"?Zn(X.MATHML_TEXT_INTEGRATION_POINTS):wA({},Lt),mA=an(X,"HTML_INTEGRATION_POINTS")&&X.HTML_INTEGRATION_POINTS&&typeof X.HTML_INTEGRATION_POINTS=="object"?Zn(X.HTML_INTEGRATION_POINTS):wA({},IA);let ye=an(X,"CUSTOM_ELEMENT_HANDLING")&&X.CUSTOM_ELEMENT_HANDLING&&typeof X.CUSTOM_ELEMENT_HANDLING=="object"?Zn(X.CUSTOM_ELEMENT_HANDLING):pc(null);if(q=pc(null),an(ye,"tagNameCheck")&&kr(ye.tagNameCheck)&&(q.tagNameCheck=ye.tagNameCheck),an(ye,"attributeNameCheck")&&kr(ye.attributeNameCheck)&&(q.attributeNameCheck=ye.attributeNameCheck),an(ye,"allowCustomizedBuiltInElements")&&typeof ye.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=ye.allowCustomizedBuiltInElements),yn(q),Ze&&(dt=!1),Xe&&(yt=!0),Jt&&(Oe=wA({},jb),qe=pc(null),Jt.html===!0&&(wA(Oe,Kb),wA(qe,Vb)),Jt.svg===!0&&(wA(Oe,A1),wA(qe,i1),wA(qe,Sd)),Jt.svgFilters===!0&&(wA(Oe,r1),wA(qe,i1),wA(qe,Sd)),Jt.mathMl===!0&&(wA(Oe,n1),wA(qe,Gb),wA(qe,Sd))),ut.tagCheck=null,ut.attributeCheck=null,an(X,"ADD_TAGS")&&(typeof X.ADD_TAGS=="function"?ut.tagCheck=X.ADD_TAGS:ho(X.ADD_TAGS)&&(Oe===Je&&(Oe=Zn(Oe)),wA(Oe,X.ADD_TAGS,oA))),an(X,"ADD_ATTR")&&(typeof X.ADD_ATTR=="function"?ut.attributeCheck=X.ADD_ATTR:ho(X.ADD_ATTR)&&(qe===at&&(qe=Zn(qe)),wA(qe,X.ADD_ATTR,oA))),an(X,"ADD_URI_SAFE_ATTR")&&ho(X.ADD_URI_SAFE_ATTR)&&wA(Ct,X.ADD_URI_SAFE_ATTR,oA),an(X,"FORBID_CONTENTS")&&ho(X.FORBID_CONTENTS)&&(nt===xt&&(nt=Zn(nt)),wA(nt,X.FORBID_CONTENTS,oA)),an(X,"ADD_FORBID_CONTENTS")&&ho(X.ADD_FORBID_CONTENTS)&&(nt===xt&&(nt=Zn(nt)),wA(nt,X.ADD_FORBID_CONTENTS,oA)),tA&&(Oe["#text"]=!0),Nt&&wA(Oe,["html","head","body"]),Oe.table&&(wA(Oe,["tbody"]),delete je.tbody),X.TRUSTED_TYPES_POLICY){if(typeof X.TRUSTED_TYPES_POLICY.createHTML!="function")throw nl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof X.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw nl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let Ve=fe;fe=X.TRUSTED_TYPES_POLICY;try{Ae=O("")}catch(st){throw fe=Ve,st}}else X.TRUSTED_TYPES_POLICY===null?(fe=void 0,Ae=""):(fe===void 0&&(fe=ee()),fe&&typeof Ae=="string"&&(Ae=O("")));mn&&mn(X),Qr=X},kn=wA({},[...A1,...r1,...FN]),Di=wA({},[...n1,...UN]),Ua=function(X,ye,Ve){return ye.namespaceURI===WA?X==="svg":ye.namespaceURI===ln?X==="svg"&&(Ve==="annotation-xml"||vr[Ve]):!!kn[X]},xa=function(X,ye,Ve){return ye.namespaceURI===WA?X==="math":ye.namespaceURI===qA?X==="math"&&mA[Ve]:!!Di[X]},_a=function(X,ye,Ve){return ye.namespaceURI===qA&&!mA[Ve]||ye.namespaceURI===ln&&!vr[Ve]?!1:!Di[X]&&(rr[X]||!kn[X])},Uo=function(X){let ye=x(X);(!ye||!ye.tagName)&&(ye={namespaceURI:Sr,tagName:"template"});let Ve=ff(X.tagName),st=ff(ye.tagName);return On[X.namespaceURI]?X.namespaceURI===qA?Ua(Ve,ye,st):X.namespaceURI===ln?xa(Ve,ye,st):X.namespaceURI===WA?_a(Ve,ye,st):!!(Bn==="application/xhtml+xml"&&On[X.namespaceURI]):!1},Ir=function(X){dc(e.removed,{element:X});try{x(X).removeChild(X)}catch{if(C(X),!x(X))throw nl("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Sa=function(X){let ye=_(X);if(ye){let st=[];lf(ye,kt=>{dc(st,kt)}),lf(st,kt=>{try{C(kt)}catch{}})}let Ve=D(X);if(Ve)for(let st=Ve.length-1;st>=0;--st){let kt=Ve[st],Zt=kt&&kt.name;if(typeof Zt=="string")try{X.removeAttribute(Zt)}catch{}}},cn=function(X,ye){try{dc(e.removed,{attribute:ye.getAttributeNode(X),from:ye})}catch{dc(e.removed,{attribute:null,from:ye})}if(ye.removeAttribute(X),X==="is")if(yt||Xe)try{Ir(ye)}catch{}else try{ye.setAttribute(X,"")}catch{}},un=function(X){let ye=D(X);if(ye)for(let Ve=ye.length-1;Ve>=0;--Ve){let st=ye[Ve],kt=st&&st.name;if(!(typeof kt!="string"||qe[oA(kt)]))try{X.removeAttribute(kt)}catch{}}},Bi=function(X){let ye=[X];for(;ye.length>0;){let Ve=ye.pop();(k?k(Ve):Ve.nodeType)===Ya.element&&un(Ve);let kt=_(Ve);if(kt)for(let Zt=kt.length-1;Zt>=0;--Zt)ye.push(kt[Zt])}},is=function(X){let ye=null,Ve=null;if(tt)X="<remove></remove>"+X;else{let Zt=Db(X,/^[\r\n\t ]+/);Ve=Zt&&Zt[0]}Bn==="application/xhtml+xml"&&Sr===WA&&(X='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+X+"</body></html>");let st=fe?O(X):X;if(Sr===WA)try{ye=new h().parseFromString(st,Bn)}catch{}if(!ye||!ye.documentElement){ye=be.createDocument(Sr,"template",null);try{ye.documentElement.innerHTML=_t?Ae:st}catch{}}let kt=ye.body||ye.documentElement;return X&&Ve&&kt.insertBefore(A.createTextNode(Ve),kt.childNodes[0]||null),Sr===WA?Ee.call(ye,Nt?"html":"body")[0]:Nt?ye.documentElement:kt},Qa=function(X){return Fe.call(X.ownerDocument||X,X,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null)},ri=function(X){return X=cf(X,P," "),X=cf(X,J," "),X=cf(X,te," "),X},ni=function(X){var ye;X.normalize();let Ve=Fe.call(X.ownerDocument||X,X,o.SHOW_TEXT|o.SHOW_COMMENT|o.SHOW_CDATA_SECTION|o.SHOW_PROCESSING_INSTRUCTION,null),st=Ve.nextNode();for(;st;)st.data=ri(st.data),st=Ve.nextNode();let kt=(ye=X.querySelectorAll)===null||ye===void 0?void 0:ye.call(X,"template");kt&&lf(kt,Zt=>{Dr(Zt.content)&&ni(Zt.content)})},ra=function(X){let ye=re?re(X):null;return typeof ye!="string"||oA(ye)!=="form"?!1:typeof X.nodeName!="string"||typeof X.textContent!="string"||typeof X.removeChild!="function"||X.attributes!==D(X)||typeof X.removeAttribute!="function"||typeof X.setAttribute!="function"||typeof X.namespaceURI!="string"||typeof X.insertBefore!="function"||typeof X.hasChildNodes!="function"||X.nodeType!==k(X)||X.childNodes!==_(X)},Dr=function(X){if(!k||typeof X!="object"||X===null)return!1;try{return k(X)===Ya.documentFragment}catch{return!1}},ii=function(X){if(!k||typeof X!="object"||X===null)return!1;try{return typeof k(X)=="number"}catch{return!1}};function $r(We,X,ye){We.length!==0&&lf(We,Ve=>{Ve.call(e,X,ye,Qr)})}let DA=function(X,ye){return!!(Ut&&X.hasChildNodes()&&!ii(X.firstElementChild)&&vn(Wb,X.textContent)&&vn(Wb,X.innerHTML)||Ut&&X.namespaceURI===WA&&ye==="style"&&ii(X.firstElementChild)||X.nodeType===Ya.processingInstruction||Ut&&X.nodeType===Ya.comment&&vn(PN,X.data))},Hi=function(X,ye){if(!je[ye]&&Xr(ye)&&(q.tagNameCheck instanceof RegExp&&vn(q.tagNameCheck,ye)||q.tagNameCheck instanceof Function&&q.tagNameCheck(ye)))return!1;if(tA&&!nt[ye]){let Ve=x(X),st=_(X);if(st&&Ve){let kt=st.length;for(let Zt=kt-1;Zt>=0;--Zt){let KA=mt?st[Zt]:g(st[Zt],!0);Ve.insertBefore(KA,F(X))}}}return Ir(X),!0},Dn=function(X){if($r(Ue.beforeSanitizeElements,X,null),ra(X))return Ir(X),!0;let ye=oA(re?re(X):X.nodeName);if($r(Ue.uponSanitizeElement,X,{tagName:ye,allowedTags:Oe}),DA(X,ye))return Ir(X),!0;if(je[ye]||!(ut.tagCheck instanceof Function&&ut.tagCheck(ye))&&!Oe[ye])return Hi(X,ye);if((k?k(X):X.nodeType)===Ya.element&&!Uo(X)||(ye==="noscript"||ye==="noembed"||ye==="noframes")&&vn(RN,X.innerHTML))return Ir(X),!0;if(Ze&&X.nodeType===Ya.text){let st=ri(X.textContent);X.textContent!==st&&(dc(e.removed,{element:X.cloneNode()}),X.textContent=st)}return $r(Ue.afterSanitizeElements,X,null),!1},$A=function(X,ye,Ve){if(Tt[ye]||Gt&&(ye==="id"||ye==="name")&&(Ve in A||Ve in Rn))return!1;let st=qe[ye]||ut.attributeCheck instanceof Function&&ut.attributeCheck(ye,X);if(!(dt&&vn(ie,ye))){if(!(Re&&vn(oe,ye))){if(st){if(!Ct[ye]){if(!vn(Le,cf(Ve,xe,""))){if(!((ye==="src"||ye==="xlink:href"||ye==="href")&&X!=="script"&&Hb(Ve,"data:")===0&&fA[X])){if(!($e&&!vn(ve,cf(Ve,xe,"")))){if(Ve)return!1}}}}}else if(!(Xr(X)&&(q.tagNameCheck instanceof RegExp&&vn(q.tagNameCheck,X)||q.tagNameCheck instanceof Function&&q.tagNameCheck(X))&&(q.attributeNameCheck instanceof RegExp&&vn(q.attributeNameCheck,ye)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(ye,X))||ye==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&vn(q.tagNameCheck,Ve)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Ve))))return!1}}return!0},as=wA({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Xr=function(X){return!as[ff(X)]&&vn(_e,X)},Ia=function(X,ye,Ve,st){if(fe&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Ve)switch(v.getAttributeType(X,ye)){case"TrustedHTML":return O(st);case"TrustedScriptURL":return Y(st)}return st},bi=function(X,ye,Ve,st){try{Ve?X.setAttributeNS(Ve,ye,st):X.setAttribute(ye,st),ra(X)?Ir(X):kb(e.removed)}catch{cn(ye,X)}},ur=function(X){$r(Ue.beforeSanitizeAttributes,X,null);let ye=X.attributes;if(!ye||ra(X))return;let Ve={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:qe,forceKeepAttr:void 0},st=ye.length,kt=oA(X.nodeName);for(;st--;){let Zt=ye[st],KA=Zt.name,yA=Zt.namespaceURI,Yr=Zt.value,fr=oA(KA),La=Yr,xA=KA==="value"?La:vN(La);if(Ve.attrName=fr,Ve.attrValue=xA,Ve.keepAttr=!0,Ve.forceKeepAttr=void 0,$r(Ue.uponSanitizeAttribute,X,Ve),xA=Ve.attrValue,It&&(fr==="id"||fr==="name")&&Hb(xA,Rt)!==0&&(cn(KA,X),xA=Rt+xA),Ut&&vn(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,xA)){cn(KA,X);continue}if(fr==="attributename"&&Db(xA,"href")){cn(KA,X);continue}if(!Ve.forceKeepAttr){if(!Ve.keepAttr){cn(KA,X);continue}if(!lt&&vn(kN,xA)){cn(KA,X);continue}if(Ze&&(xA=ri(xA)),!$A(kt,fr,xA)){cn(KA,X);continue}xA=Ia(kt,fr,yA,xA),xA!==La&&bi(X,KA,yA,xA)}}$r(Ue.afterSanitizeAttributes,X,null)},na=function(X){let ye=null,Ve=Qa(X);for($r(Ue.beforeSanitizeShadowDOM,X,null);ye=Ve.nextNode();)if($r(Ue.uponSanitizeShadowNode,ye,null),Dn(ye),ur(ye),Dr(ye.content)&&na(ye.content),(k?k(ye):ye.nodeType)===Ya.element){let kt=H(ye);Dr(kt)&&(ss(kt),na(kt))}$r(Ue.afterSanitizeShadowDOM,X,null)},ss=function(X){let ye=[{node:X,shadow:null}];for(;ye.length>0;){let Ve=ye.pop();if(Ve.shadow){na(Ve.shadow);continue}let st=Ve.node,Zt=(k?k(st):st.nodeType)===Ya.element,KA=_(st);if(KA)for(let yA=KA.length-1;yA>=0;--yA)ye.push({node:KA[yA],shadow:null});if(Zt){let yA=re?re(st):null;if(typeof yA=="string"&&oA(yA)==="template"){let Yr=st.content;Dr(Yr)&&ye.push({node:Yr,shadow:null})}}if(Zt){let yA=H(st);Dr(yA)&&ye.push({node:null,shadow:yA},{node:yA,shadow:null})}}};return e.sanitize=function(We){let X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ye=null,Ve=null,st=null,kt=null;if(_t=!We,_t&&(We="<!-->"),typeof We!="string"&&!ii(We)&&(We=CN(We),typeof We!="string"))throw nl("dirty is not a string, aborting");if(!e.isSupported)return We;St?(Oe=Ht,qe=Ot):Ai(X),(Ue.uponSanitizeElement.length>0||Ue.uponSanitizeAttribute.length>0)&&(Oe=Zn(Oe)),Ue.uponSanitizeAttribute.length>0&&(qe=Zn(qe)),e.removed=[];let Zt=mt&&typeof We!="string"&&ii(We);if(Zt){let Yr=re?re(We):We.nodeName;if(typeof Yr=="string"){let fr=oA(Yr);if(!Oe[fr]||je[fr])throw nl("root node is forbidden and cannot be sanitized in-place")}if(ra(We))throw nl("root node is clobbered and cannot be sanitized in-place");try{ss(We)}catch(fr){throw Sa(We),fr}}else if(ii(We))ye=is("<!---->"),Ve=ye.ownerDocument.importNode(We,!0),Ve.nodeType===Ya.element&&Ve.nodeName==="BODY"||Ve.nodeName==="HTML"?ye=Ve:ye.appendChild(Ve),ss(Ve);else{if(!yt&&!Ze&&!Nt&&We.indexOf("<")===-1)return fe&&aA?O(We):We;if(ye=is(We),!ye)return yt?null:aA?Ae:""}ye&&tt&&Ir(ye.firstChild);let KA=Qa(Zt?We:ye);try{for(;st=KA.nextNode();)Dn(st),ur(st),Dr(st.content)&&na(st.content)}catch(Yr){throw Zt&&Sa(We),Yr}if(Zt)return lf(e.removed,Yr=>{Yr.element&&Bi(Yr.element)}),Ze&&ni(We),We;if(yt){if(Ze&&ni(ye),Xe)for(kt=de.call(ye.ownerDocument);ye.firstChild;)kt.appendChild(ye.firstChild);else kt=ye;return(qe.shadowroot||qe.shadowrootmode)&&(kt=Pe.call(r,kt,!0)),kt}let yA=Nt?ye.outerHTML:ye.innerHTML;return Nt&&Oe["!doctype"]&&ye.ownerDocument&&ye.ownerDocument.doctype&&ye.ownerDocument.doctype.name&&vn(NN,ye.ownerDocument.doctype.name)&&(yA="<!DOCTYPE "+ye.ownerDocument.doctype.name+`>
|
|
7
|
+
`+yA),Ze&&(yA=ri(yA)),fe&&aA?O(yA):yA},e.setConfig=function(){let We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ai(We),St=!0,Ht=Oe,Ot=qe},e.clearConfig=function(){Qr=null,St=!1,Ht=null,Ot=null,fe=j,Ae=""},e.isValidAttribute=function(We,X,ye){Qr||Ai({});let Ve=oA(We),st=oA(X);return $A(Ve,st,ye)},e.addHook=function(We,X){typeof X=="function"&&an(Ue,We)&&dc(Ue[We],X)},e.removeHook=function(We,X){if(an(Ue,We)){if(X!==void 0){let ye=gN(Ue[We],X);return ye===-1?void 0:wN(Ue[We],ye,1)[0]}return kb(Ue[We])}},e.removeHooks=function(We){an(Ue,We)&&(Ue[We]=[])},e.removeAllHooks=function(){Ue=$b()},e}var Xb,Rb,hN,dN,pN,mn,yn,pc,Yb,a1,s1,lf,gN,kb,dc,wN,ho,ff,t1,Db,cf,Hb,vN,mN,yN,Mb,qb,an,uf,vn,nl,Kb,A1,r1,FN,n1,UN,jb,Vb,i1,Gb,Sd,xN,_N,SN,QN,IN,zb,LN,TN,NN,ON,Wb,PN,RN,kN,Ya,DN,HN,$b,fo,MN,e5=zt(()=>{Xb=Object.entries,Rb=Object.setPrototypeOf,hN=Object.isFrozen,dN=Object.getPrototypeOf,pN=Object.getOwnPropertyDescriptor,mn=Object.freeze,yn=Object.seal,pc=Object.create,Yb=typeof Reflect<"u"&&Reflect,a1=Yb.apply,s1=Yb.construct;mn||(mn=function(e){return e});yn||(yn=function(e){return e});a1||(a1=function(e,A){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return e.apply(A,n)});s1||(s1=function(e){for(var A=arguments.length,r=new Array(A>1?A-1:0),n=1;n<A;n++)r[n-1]=arguments[n];return new e(...r)});lf=Nr(Array.prototype.forEach),gN=Nr(Array.prototype.lastIndexOf),kb=Nr(Array.prototype.pop),dc=Nr(Array.prototype.push),wN=Nr(Array.prototype.splice),ho=Array.isArray,ff=Nr(String.prototype.toLowerCase),t1=Nr(String.prototype.toString),Db=Nr(String.prototype.match),cf=Nr(String.prototype.replace),Hb=Nr(String.prototype.indexOf),vN=Nr(String.prototype.trim),mN=Nr(Number.prototype.toString),yN=Nr(Boolean.prototype.toString),Mb=typeof BigInt>"u"?null:Nr(BigInt.prototype.toString),qb=typeof Symbol>"u"?null:Nr(Symbol.prototype.toString),an=Nr(Object.prototype.hasOwnProperty),uf=Nr(Object.prototype.toString),vn=Nr(RegExp.prototype.test),nl=BN(TypeError);Kb=mn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),A1=mn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),r1=mn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),FN=mn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),n1=mn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),UN=mn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jb=mn(["#text"]),Vb=mn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),i1=mn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Gb=mn(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Sd=mn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xN=yn(/{{[\w\W]*|^[\w\W]*}}/g),_N=yn(/<%[\w\W]*|^[\w\W]*%>/g),SN=yn(/\${[\w\W]*/g),QN=yn(/^data-[\-\w.\u00B7-\uFFFF]+$/),IN=yn(/^aria-[\-\w]+$/),zb=yn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LN=yn(/^(?:\w+script|data):/i),TN=yn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),NN=yn(/^html$/i),ON=yn(/^[a-z][.\w]*(-[.\w]+)+$/i),Wb=yn(/<[/\w!]/g),PN=yn(/<[/\w]/g),RN=yn(/<\/no(script|embed|frames)/i),kN=yn(/\/>/i),Ya={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},DN=function(){return typeof window>"u"?null:window},HN=function(e,A){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null,n="data-tt-policy-suffix";A&&A.hasAttribute(n)&&(r=A.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},$b=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},fo=function(e,A,r,n){return an(e,A)&&ho(e[A])?wA(n.base?Zn(n.base):{},e[A],n.transform):r};MN=Jb()});var GA=me((o1,t5)=>{"use strict";var hf=function(t){return t&&t.Math===Math&&t};t5.exports=hf(typeof globalThis=="object"&&globalThis)||hf(typeof window=="object"&&window)||hf(typeof self=="object"&&self)||hf(typeof global=="object"&&global)||hf(typeof o1=="object"&&o1)||(function(){return this})()||Function("return this")()});var lr=me((OG,A5)=>{"use strict";A5.exports=function(t){try{return!!t()}catch{return!0}}});var Zi=me((PG,r5)=>{"use strict";var qN=lr();r5.exports=!qN(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var df=me((RG,n5)=>{"use strict";var KN=lr();n5.exports=!KN(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})});var sn=me((kG,i5)=>{"use strict";var jN=df(),Qd=Function.prototype.call;i5.exports=jN?Qd.bind(Qd):function(){return Qd.apply(Qd,arguments)}});var l5=me(o5=>{"use strict";var a5={}.propertyIsEnumerable,s5=Object.getOwnPropertyDescriptor,VN=s5&&!a5.call({1:2},1);o5.f=VN?function(e){var A=s5(this,e);return!!A&&A.enumerable}:a5});var Id=me((HG,c5)=>{"use strict";c5.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}});var cr=me((MG,h5)=>{"use strict";var u5=df(),f5=Function.prototype,l1=f5.call,GN=u5&&f5.bind.bind(l1,l1);h5.exports=u5?GN:function(t){return function(){return l1.apply(t,arguments)}}});var po=me((qG,p5)=>{"use strict";var d5=cr(),zN=d5({}.toString),WN=d5("".slice);p5.exports=function(t){return WN(zN(t),8,-1)}});var u1=me((KG,g5)=>{"use strict";var $N=cr(),XN=lr(),YN=po(),c1=Object,JN=$N("".split);g5.exports=XN(function(){return!c1("z").propertyIsEnumerable(0)})?function(t){return YN(t)==="String"?JN(t,""):c1(t)}:c1});var pf=me((jG,w5)=>{"use strict";w5.exports=function(t){return t==null}});var ea=me((VG,v5)=>{"use strict";var ZN=pf(),eO=TypeError;v5.exports=function(t){if(ZN(t))throw new eO("Can't call method on "+t);return t}});var gc=me((GG,m5)=>{"use strict";var tO=u1(),AO=ea();m5.exports=function(t){return tO(AO(t))}});var gr=me((zG,y5)=>{"use strict";var f1=typeof document=="object"&&document.all;y5.exports=typeof f1>"u"&&f1!==void 0?function(t){return typeof t=="function"||t===f1}:function(t){return typeof t=="function"}});var ei=me((WG,B5)=>{"use strict";var rO=gr();B5.exports=function(t){return typeof t=="object"?t!==null:rO(t)}});var go=me(($G,b5)=>{"use strict";var h1=GA(),nO=gr(),iO=function(t){return nO(t)?t:void 0};b5.exports=function(t,e){return arguments.length<2?iO(h1[t]):h1[t]&&h1[t][e]}});var gf=me((XG,C5)=>{"use strict";var aO=cr();C5.exports=aO({}.isPrototypeOf)});var wc=me((YG,U5)=>{"use strict";var sO=GA(),E5=sO.navigator,F5=E5&&E5.userAgent;U5.exports=F5?String(F5):""});var Td=me((JG,L5)=>{"use strict";var I5=GA(),d1=wc(),x5=I5.process,_5=I5.Deno,S5=x5&&x5.versions||_5&&_5.version,Q5=S5&&S5.v8,wa,Ld;Q5&&(wa=Q5.split("."),Ld=wa[0]>0&&wa[0]<4?1:+(wa[0]+wa[1]));!Ld&&d1&&(wa=d1.match(/Edge\/(\d+)/),(!wa||wa[1]>=74)&&(wa=d1.match(/Chrome\/(\d+)/),wa&&(Ld=+wa[1])));L5.exports=Ld});var p1=me((ZG,N5)=>{"use strict";var T5=Td(),oO=lr(),lO=GA(),cO=lO.String;N5.exports=!!Object.getOwnPropertySymbols&&!oO(function(){var t=Symbol("symbol detection");return!cO(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&T5&&T5<41})});var g1=me((ez,O5)=>{"use strict";var uO=p1();O5.exports=uO&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var w1=me((tz,P5)=>{"use strict";var fO=go(),hO=gr(),dO=gf(),pO=g1(),gO=Object;P5.exports=pO?function(t){return typeof t=="symbol"}:function(t){var e=fO("Symbol");return hO(e)&&dO(e.prototype,gO(t))}});var wf=me((Az,R5)=>{"use strict";var wO=String;R5.exports=function(t){try{return wO(t)}catch{return"Object"}}});var Za=me((rz,k5)=>{"use strict";var vO=gr(),mO=wf(),yO=TypeError;k5.exports=function(t){if(vO(t))return t;throw new yO(mO(t)+" is not a function")}});var il=me((nz,D5)=>{"use strict";var BO=Za(),bO=pf();D5.exports=function(t,e){var A=t[e];return bO(A)?void 0:BO(A)}});var M5=me((iz,H5)=>{"use strict";var v1=sn(),m1=gr(),y1=ei(),CO=TypeError;H5.exports=function(t,e){var A,r;if(e==="string"&&m1(A=t.toString)&&!y1(r=v1(A,t))||m1(A=t.valueOf)&&!y1(r=v1(A,t))||e!=="string"&&m1(A=t.toString)&&!y1(r=v1(A,t)))return r;throw new CO("Can't convert object to primitive value")}});var va=me((az,q5)=>{"use strict";q5.exports=!1});var Nd=me((sz,j5)=>{"use strict";var K5=GA(),EO=Object.defineProperty;j5.exports=function(t,e){try{EO(K5,t,{value:e,configurable:!0,writable:!0})}catch{K5[t]=e}return e}});var Od=me((oz,z5)=>{"use strict";var FO=va(),UO=GA(),xO=Nd(),V5="__core-js_shared__",G5=z5.exports=UO[V5]||xO(V5,{});(G5.versions||(G5.versions=[])).push({version:"3.49.0",mode:FO?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Pd=me((lz,$5)=>{"use strict";var W5=Od();$5.exports=function(t,e){return W5[t]||(W5[t]=e||{})}});var vf=me((cz,X5)=>{"use strict";var _O=ea(),SO=Object;X5.exports=function(t){return SO(_O(t))}});var ta=me((uz,Y5)=>{"use strict";var QO=cr(),IO=vf(),LO=QO({}.hasOwnProperty);Y5.exports=Object.hasOwn||function(e,A){return LO(IO(e),A)}});var B1=me((fz,J5)=>{"use strict";var TO=cr(),NO=0,OO=Math.random(),PO=TO(1.1.toString);J5.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+PO(++NO+OO,36)}});var Wr=me((hz,eC)=>{"use strict";var RO=GA(),kO=Pd(),Z5=ta(),DO=B1(),HO=p1(),MO=g1(),vc=RO.Symbol,b1=kO("wks"),qO=MO?vc.for||vc:vc&&vc.withoutSetter||DO;eC.exports=function(t){return Z5(b1,t)||(b1[t]=HO&&Z5(vc,t)?vc[t]:qO("Symbol."+t)),b1[t]}});var nC=me((dz,rC)=>{"use strict";var KO=sn(),tC=ei(),AC=w1(),jO=il(),VO=M5(),GO=Wr(),zO=TypeError,WO=GO("toPrimitive");rC.exports=function(t,e){if(!tC(t)||AC(t))return t;var A=jO(t,WO),r;if(A){if(e===void 0&&(e="default"),r=KO(A,t,e),!tC(r)||AC(r))return r;throw new zO("Can't convert object to primitive value")}return e===void 0&&(e="number"),VO(t,e)}});var C1=me((pz,iC)=>{"use strict";var $O=nC(),XO=w1();iC.exports=function(t){var e=$O(t,"string");return XO(e)?e:e+""}});var mf=me((gz,sC)=>{"use strict";var YO=GA(),aC=ei(),E1=YO.document,JO=aC(E1)&&aC(E1.createElement);sC.exports=function(t){return JO?E1.createElement(t):{}}});var F1=me((wz,oC)=>{"use strict";var ZO=Zi(),e6=lr(),t6=mf();oC.exports=!ZO&&!e6(function(){return Object.defineProperty(t6("div"),"a",{get:function(){return 7}}).a!==7})});var yf=me(cC=>{"use strict";var A6=Zi(),r6=sn(),n6=l5(),i6=Id(),a6=gc(),s6=C1(),o6=ta(),l6=F1(),lC=Object.getOwnPropertyDescriptor;cC.f=A6?lC:function(e,A){if(e=a6(e),A=s6(A),l6)try{return lC(e,A)}catch{}if(o6(e,A))return i6(!r6(n6.f,e,A),e[A])}});var U1=me((mz,uC)=>{"use strict";var c6=Zi(),u6=lr();uC.exports=c6&&u6(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Sn=me((yz,fC)=>{"use strict";var f6=ei(),h6=String,d6=TypeError;fC.exports=function(t){if(f6(t))return t;throw new d6(h6(t)+" is not an object")}});var Ss=me(dC=>{"use strict";var p6=Zi(),g6=F1(),w6=U1(),Rd=Sn(),hC=C1(),v6=TypeError,x1=Object.defineProperty,m6=Object.getOwnPropertyDescriptor,_1="enumerable",S1="configurable",Q1="writable";dC.f=p6?w6?function(e,A,r){if(Rd(e),A=hC(A),Rd(r),typeof e=="function"&&A==="prototype"&&"value"in r&&Q1 in r&&!r[Q1]){var n=m6(e,A);n&&n[Q1]&&(e[A]=r.value,r={configurable:S1 in r?r[S1]:n[S1],enumerable:_1 in r?r[_1]:n[_1],writable:!1})}return x1(e,A,r)}:x1:function(e,A,r){if(Rd(e),A=hC(A),Rd(r),g6)try{return x1(e,A,r)}catch{}if("get"in r||"set"in r)throw new v6("Accessors not supported");return"value"in r&&(e[A]=r.value),e}});var mc=me((bz,pC)=>{"use strict";var y6=Zi(),B6=Ss(),b6=Id();pC.exports=y6?function(t,e,A){return B6.f(t,e,b6(1,A))}:function(t,e,A){return t[e]=A,t}});var Bf=me((Cz,wC)=>{"use strict";var I1=Zi(),C6=ta(),gC=Function.prototype,E6=I1&&Object.getOwnPropertyDescriptor,L1=C6(gC,"name"),F6=L1&&function(){}.name==="something",U6=L1&&(!I1||I1&&E6(gC,"name").configurable);wC.exports={EXISTS:L1,PROPER:F6,CONFIGURABLE:U6}});var kd=me((Ez,vC)=>{"use strict";var x6=cr(),_6=gr(),T1=Od(),S6=x6(Function.toString);_6(T1.inspectSource)||(T1.inspectSource=function(t){return S6(t)});vC.exports=T1.inspectSource});var BC=me((Fz,yC)=>{"use strict";var Q6=GA(),I6=gr(),mC=Q6.WeakMap;yC.exports=I6(mC)&&/native code/.test(String(mC))});var Dd=me((Uz,CC)=>{"use strict";var L6=Pd(),T6=B1(),bC=L6("keys");CC.exports=function(t){return bC[t]||(bC[t]=T6(t))}});var Hd=me((xz,EC)=>{"use strict";EC.exports={}});var Cf=me((_z,xC)=>{"use strict";var N6=BC(),UC=GA(),O6=ei(),P6=mc(),N1=ta(),O1=Od(),R6=Dd(),k6=Hd(),FC="Object already initialized",P1=UC.TypeError,D6=UC.WeakMap,Md,bf,qd,H6=function(t){return qd(t)?bf(t):Md(t,{})},M6=function(t){return function(e){var A;if(!O6(e)||(A=bf(e)).type!==t)throw new P1("Incompatible receiver, "+t+" required");return A}};N6||O1.state?(ma=O1.state||(O1.state=new D6),ma.get=ma.get,ma.has=ma.has,ma.set=ma.set,Md=function(t,e){if(ma.has(t))throw new P1(FC);return e.facade=t,ma.set(t,e),e},bf=function(t){return ma.get(t)||{}},qd=function(t){return ma.has(t)}):(al=R6("state"),k6[al]=!0,Md=function(t,e){if(N1(t,al))throw new P1(FC);return e.facade=t,P6(t,al,e),e},bf=function(t){return N1(t,al)?t[al]:{}},qd=function(t){return N1(t,al)});var ma,al;xC.exports={set:Md,get:bf,has:qd,enforce:H6,getterFor:M6}});var D1=me((Sz,QC)=>{"use strict";var k1=cr(),q6=lr(),K6=gr(),Kd=ta(),R1=Zi(),j6=Bf().CONFIGURABLE,V6=kd(),SC=Cf(),G6=SC.enforce,z6=SC.get,_C=String,jd=Object.defineProperty,W6=k1("".slice),$6=k1("".replace),X6=k1([].join),Y6=R1&&!q6(function(){return jd(function(){},"length",{value:8}).length!==8}),J6=String(String).split("String"),Z6=QC.exports=function(t,e,A){W6(_C(e),0,7)==="Symbol("&&(e="["+$6(_C(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),A&&A.getter&&(e="get "+e),A&&A.setter&&(e="set "+e),(!Kd(t,"name")||j6&&t.name!==e)&&(R1?jd(t,"name",{value:e,configurable:!0}):t.name=e),Y6&&A&&Kd(A,"arity")&&t.length!==A.arity&&jd(t,"length",{value:A.arity});try{A&&Kd(A,"constructor")&&A.constructor?R1&&jd(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=G6(t);return Kd(r,"source")||(r.source=X6(J6,typeof e=="string"?e:"")),t};Function.prototype.toString=Z6(function(){return K6(this)&&z6(this).source||V6(this)},"toString")});var wo=me((Qz,IC)=>{"use strict";var e8=gr(),t8=Ss(),A8=D1(),r8=Nd();IC.exports=function(t,e,A,r){r||(r={});var n=r.enumerable,i=r.name!==void 0?r.name:e;if(e8(A)&&A8(A,i,r),r.global)n?t[e]=A:r8(e,A);else{try{r.unsafe?t[e]&&(n=!0):delete t[e]}catch{}n?t[e]=A:t8.f(t,e,{value:A,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t}});var TC=me((Iz,LC)=>{"use strict";var n8=Math.ceil,i8=Math.floor;LC.exports=Math.trunc||function(e){var A=+e;return(A>0?i8:n8)(A)}});var Ef=me((Lz,NC)=>{"use strict";var a8=TC();NC.exports=function(t){var e=+t;return e!==e||e===0?0:a8(e)}});var PC=me((Tz,OC)=>{"use strict";var s8=Ef(),o8=Math.max,l8=Math.min;OC.exports=function(t,e){var A=s8(t);return A<0?o8(A+e,0):l8(A,e)}});var sl=me((Nz,RC)=>{"use strict";var c8=Ef(),u8=Math.min;RC.exports=function(t){var e=c8(t);return e>0?u8(e,9007199254740991):0}});var Vd=me((Oz,kC)=>{"use strict";var f8=sl();kC.exports=function(t){return f8(t.length)}});var H1=me((Pz,HC)=>{"use strict";var h8=gc(),d8=PC(),p8=Vd(),DC=function(t){return function(e,A,r){var n=h8(e),i=p8(n);if(i===0)return!t&&-1;var s=d8(r,i),a;if(t&&A!==A){for(;i>s;)if(a=n[s++],a!==a)return!0}else for(;i>s;s++)if((t||s in n)&&n[s]===A)return t||s||0;return!t&&-1}};HC.exports={includes:DC(!0),indexOf:DC(!1)}});var q1=me((Rz,qC)=>{"use strict";var g8=cr(),M1=ta(),w8=gc(),v8=H1().indexOf,m8=Hd(),MC=g8([].push);qC.exports=function(t,e){var A=w8(t),r=0,n=[],i;for(i in A)!M1(m8,i)&&M1(A,i)&&MC(n,i);for(;e.length>r;)M1(A,i=e[r++])&&(~v8(n,i)||MC(n,i));return n}});var Gd=me((kz,KC)=>{"use strict";KC.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var VC=me(jC=>{"use strict";var y8=q1(),B8=Gd(),b8=B8.concat("length","prototype");jC.f=Object.getOwnPropertyNames||function(e){return y8(e,b8)}});var zC=me(GC=>{"use strict";GC.f=Object.getOwnPropertySymbols});var $C=me((Mz,WC)=>{"use strict";var C8=go(),E8=cr(),F8=VC(),U8=zC(),x8=Sn(),_8=E8([].concat);WC.exports=C8("Reflect","ownKeys")||function(e){var A=F8.f(x8(e)),r=U8.f;return r?_8(A,r(e)):A}});var JC=me((qz,YC)=>{"use strict";var XC=ta(),S8=$C(),Q8=yf(),I8=Ss();YC.exports=function(t,e,A){for(var r=S8(e),n=I8.f,i=Q8.f,s=0;s<r.length;s++){var a=r[s];!XC(t,a)&&!(A&&XC(A,a))&&n(t,a,i(e,a))}}});var K1=me((Kz,ZC)=>{"use strict";var L8=lr(),T8=gr(),N8=/#|\.prototype\./,Ff=function(t,e){var A=P8[O8(t)];return A===k8?!0:A===R8?!1:T8(e)?L8(e):!!e},O8=Ff.normalize=function(t){return String(t).replace(N8,".").toLowerCase()},P8=Ff.data={},R8=Ff.NATIVE="N",k8=Ff.POLYFILL="P";ZC.exports=Ff});var Qn=me((jz,e4)=>{"use strict";var zd=GA(),D8=yf().f,H8=mc(),M8=wo(),q8=Nd(),K8=JC(),j8=K1();e4.exports=function(t,e){var A=t.target,r=t.global,n=t.stat,i,s,a,o,l,h;if(r?s=zd:n?s=zd[A]||q8(A,{}):s=zd[A]&&zd[A].prototype,s)for(a in e){if(l=e[a],t.dontCallGetSet?(h=D8(s,a),o=h&&h.value):o=s[a],i=j8(r?a:A+(n?".":"#")+a,t.forced),!i&&o!==void 0){if(typeof l==typeof o)continue;K8(l,o)}(t.sham||o&&o.sham)&&H8(l,"sham",!0),M8(s,a,l,t)}}});var j1=me((Vz,t4)=>{"use strict";var Uf=GA(),V8=wc(),G8=po(),Wd=function(t){return V8.slice(0,t.length)===t};t4.exports=(function(){return Wd("Bun/")?"BUN":Wd("Cloudflare-Workers")?"CLOUDFLARE":Wd("Deno/")?"DENO":Wd("Node.js/")?"NODE":Uf.Bun&&typeof Bun.version=="string"?"BUN":Uf.Deno&&typeof Deno.version=="object"?"DENO":G8(Uf.process)==="process"?"NODE":Uf.window&&Uf.document?"BROWSER":"REST"})()});var xf=me((Gz,A4)=>{"use strict";var z8=j1();A4.exports=z8==="NODE"});var n4=me((zz,r4)=>{"use strict";var W8=GA();r4.exports=W8});var a4=me((Wz,i4)=>{"use strict";var $8=cr(),X8=Za();i4.exports=function(t,e,A){try{return $8(X8(Object.getOwnPropertyDescriptor(t,e)[A]))}catch{}}});var o4=me(($z,s4)=>{"use strict";var Y8=ei();s4.exports=function(t){return Y8(t)||t===null}});var c4=me((Xz,l4)=>{"use strict";var J8=o4(),Z8=String,eP=TypeError;l4.exports=function(t){if(J8(t))return t;throw new eP("Can't set "+Z8(t)+" as a prototype")}});var V1=me((Yz,u4)=>{"use strict";var tP=a4(),AP=ei(),rP=ea(),nP=c4();u4.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var t=!1,e={},A;try{A=tP(Object.prototype,"__proto__","set"),A(e,[]),t=e instanceof Array}catch{}return function(n,i){return rP(n),nP(i),AP(n)&&(t?A(n,i):n.__proto__=i),n}})():void 0)});var _f=me((Jz,h4)=>{"use strict";var iP=Ss().f,aP=ta(),sP=Wr(),f4=sP("toStringTag");h4.exports=function(t,e,A){t&&!A&&(t=t.prototype),t&&!aP(t,f4)&&iP(t,f4,{configurable:!0,value:e})}});var g4=me((Zz,p4)=>{"use strict";var d4=D1(),oP=Ss();p4.exports=function(t,e,A){return A.get&&d4(A.get,e,{getter:!0}),A.set&&d4(A.set,e,{setter:!0}),oP.f(t,e,A)}});var m4=me((eW,v4)=>{"use strict";var lP=go(),cP=g4(),uP=Wr(),fP=Zi(),w4=uP("species");v4.exports=function(t){var e=lP(t);fP&&e&&!e[w4]&&cP(e,w4,{configurable:!0,get:function(){return this}})}});var B4=me((tW,y4)=>{"use strict";var hP=gf(),dP=TypeError;y4.exports=function(t,e){if(hP(e,t))return t;throw new dP("Incorrect invocation")}});var E4=me((AW,C4)=>{"use strict";var pP=Wr(),gP=pP("toStringTag"),b4={};b4[gP]="z";C4.exports=String(b4)==="[object z]"});var Xd=me((rW,F4)=>{"use strict";var wP=E4(),vP=gr(),$d=po(),mP=Wr(),yP=mP("toStringTag"),BP=Object,bP=$d((function(){return arguments})())==="Arguments",CP=function(t,e){try{return t[e]}catch{}};F4.exports=wP?$d:function(t){var e,A,r;return t===void 0?"Undefined":t===null?"Null":typeof(A=CP(e=BP(t),yP))=="string"?A:bP?$d(e):(r=$d(e))==="Object"&&vP(e.callee)?"Arguments":r}});var I4=me((nW,Q4)=>{"use strict";var EP=cr(),FP=lr(),U4=gr(),UP=Xd(),xP=go(),_P=kd(),x4=function(){},_4=xP("Reflect","construct"),G1=/^\s*(?:class|function)\b/,SP=EP(G1.exec),QP=!G1.test(x4),Sf=function(e){if(!U4(e))return!1;try{return _4(x4,[],e),!0}catch{return!1}},S4=function(e){if(!U4(e))return!1;switch(UP(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return QP||!!SP(G1,_P(e))}catch{return!0}};S4.sham=!0;Q4.exports=!_4||FP(function(){var t;return Sf(Sf.call)||!Sf(Object)||!Sf(function(){t=!0})||t})?S4:Sf});var T4=me((iW,L4)=>{"use strict";var IP=I4(),LP=wf(),TP=TypeError;L4.exports=function(t){if(IP(t))return t;throw new TP(LP(t)+" is not a constructor")}});var z1=me((aW,O4)=>{"use strict";var N4=Sn(),NP=T4(),OP=pf(),PP=Wr(),RP=PP("species");O4.exports=function(t,e){var A=N4(t).constructor,r;return A===void 0||OP(r=N4(A)[RP])?e:NP(r)}});var W1=me((sW,D4)=>{"use strict";var kP=df(),k4=Function.prototype,P4=k4.apply,R4=k4.call;D4.exports=typeof Reflect=="object"&&Reflect.apply||(kP?R4.bind(P4):function(){return R4.apply(P4,arguments)})});var Qf=me((oW,H4)=>{"use strict";var DP=po(),HP=cr();H4.exports=function(t){if(DP(t)==="Function")return HP(t)}});var Yd=me((lW,q4)=>{"use strict";var M4=Qf(),MP=Za(),qP=df(),KP=M4(M4.bind);q4.exports=function(t,e){return MP(t),e===void 0?t:qP?KP(t,e):function(){return t.apply(e,arguments)}}});var $1=me((cW,K4)=>{"use strict";var jP=go();K4.exports=jP("document","documentElement")});var V4=me((uW,j4)=>{"use strict";var VP=cr();j4.exports=VP([].slice)});var z4=me((fW,G4)=>{"use strict";var GP=TypeError;G4.exports=function(t,e){if(t<e)throw new GP("Not enough arguments");return t}});var X1=me((hW,$4)=>{"use strict";var W4=wc();$4.exports=/ipad|iphone|ipod/i.test(W4)&&/applewebkit/i.test(W4)});var iv=me((dW,nE)=>{"use strict";var ki=GA(),zP=W1(),WP=Yd(),X4=gr(),$P=ta(),rE=lr(),Y4=$1(),XP=V4(),J4=mf(),YP=z4(),JP=X1(),ZP=xf(),Av=ki.setImmediate,rv=ki.clearImmediate,eR=ki.process,Y1=ki.Dispatch,tR=ki.Function,Z4=ki.MessageChannel,AR=ki.String,J1=0,If={},eE="onreadystatechange",Lf,ol,Z1,ev;rE(function(){Lf=ki.location});var nv=function(t){if($P(If,t)){var e=If[t];delete If[t],e()}},tv=function(t){return function(){nv(t)}},tE=function(t){nv(t.data)},AE=function(t){ki.postMessage(AR(t),Lf.protocol+"//"+Lf.host)};(!Av||!rv)&&(Av=function(e){YP(arguments.length,1);var A=X4(e)?e:tR(e),r=XP(arguments,1);return If[++J1]=function(){zP(A,void 0,r)},ol(J1),J1},rv=function(e){delete If[e]},ZP?ol=function(t){eR.nextTick(tv(t))}:Y1&&Y1.now?ol=function(t){Y1.now(tv(t))}:Z4&&!JP?(Z1=new Z4,ev=Z1.port2,Z1.port1.onmessage=tE,ol=WP(ev.postMessage,ev)):ki.addEventListener&&X4(ki.postMessage)&&!ki.importScripts&&Lf&&Lf.protocol!=="file:"&&!rE(AE)?(ol=AE,ki.addEventListener("message",tE,!1)):eE in J4("script")?ol=function(t){Y4.appendChild(J4("script"))[eE]=function(){Y4.removeChild(this),nv(t)}}:ol=function(t){setTimeout(tv(t),0)});nE.exports={set:Av,clear:rv}});var sE=me((pW,aE)=>{"use strict";var iE=GA(),rR=Zi(),nR=Object.getOwnPropertyDescriptor;aE.exports=function(t){if(!rR)return iE[t];var e=nR(iE,t);return e&&e.value}});var av=me((gW,lE)=>{"use strict";var oE=function(){this.head=null,this.tail=null};oE.prototype={add:function(t){var e={item:t,next:null},A=this.tail;A?A.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return e===null&&(this.tail=null),t.item}}};lE.exports=oE});var uE=me((wW,cE)=>{"use strict";var iR=wc();cE.exports=/ipad|iphone|ipod/i.test(iR)&&typeof Pebble<"u"});var hE=me((vW,fE)=>{"use strict";var aR=wc();fE.exports=/web0s(?!.*chrome)/i.test(aR)});var yE=me((mW,mE)=>{"use strict";var Bc=GA(),sR=sE(),dE=Yd(),sv=iv().set,oR=av(),lR=X1(),cR=uE(),uR=hE(),ov=xf(),pE=Bc.MutationObserver||Bc.WebKitMutationObserver,gE=Bc.document,wE=Bc.process,Jd=Bc.Promise,uv=sR("queueMicrotask"),yc,lv,cv,Zd,vE;uv||(Tf=new oR,Nf=function(){var t,e;for(ov&&(t=wE.domain)&&t.exit();e=Tf.get();)try{e()}catch(A){throw Tf.head&&yc(),A}t&&t.enter()},!lR&&!ov&&!uR&&pE&&gE?(lv=!0,cv=gE.createTextNode(""),new pE(Nf).observe(cv,{characterData:!0}),yc=function(){cv.data=lv=!lv}):!cR&&Jd&&Jd.resolve?(Zd=Jd.resolve(void 0),Zd.constructor=Jd,vE=dE(Zd.then,Zd),yc=function(){vE(Nf)}):ov?yc=function(){wE.nextTick(Nf)}:(sv=dE(sv,Bc),yc=function(){sv(Nf)}),uv=function(t){Tf.head||yc(),Tf.add(t)});var Tf,Nf;mE.exports=uv});var bE=me((yW,BE)=>{"use strict";BE.exports=function(t,e){try{arguments.length===1?console.error(t):console.error(t,e)}catch{}}});var ep=me((BW,CE)=>{"use strict";CE.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}});var bc=me((bW,EE)=>{"use strict";var fR=GA();EE.exports=fR.Promise});var Cc=me((CW,_E)=>{"use strict";var hR=GA(),Of=bc(),dR=gr(),pR=K1(),gR=kd(),wR=Wr(),FE=j1(),vR=va(),fv=Td(),UE=Of&&Of.prototype,mR=wR("species"),hv=!1,xE=dR(hR.PromiseRejectionEvent),yR=pR("Promise",function(){var t=gR(Of),e=t!==String(Of);if(!e&&fv===66||vR&&!(UE.catch&&UE.finally))return!0;if(!fv||fv<51||!/native code/.test(t)){var A=new Of(function(i){i(1)}),r=function(i){i(function(){},function(){})},n=A.constructor={};if(n[mR]=r,hv=A.then(function(){})instanceof r,!hv)return!0}return!e&&(FE==="BROWSER"||FE==="DENO")&&!xE});_E.exports={CONSTRUCTOR:yR,REJECTION_EVENT:xE,SUBCLASSING:hv}});var Ec=me((EW,QE)=>{"use strict";var SE=Za(),BR=TypeError,bR=function(t){var e,A;this.promise=new t(function(r,n){if(e!==void 0||A!==void 0)throw new BR("Bad Promise constructor");e=r,A=n}),this.resolve=SE(e),this.reject=SE(A)};QE.exports.f=function(t){return new bR(t)}});var XE=me(()=>{"use strict";var CR=Qn(),ER=va(),np=xf(),vo=GA(),FR=n4(),_c=sn(),IE=wo(),LE=V1(),UR=_f(),xR=m4(),_R=Za(),rp=gr(),SR=ei(),QR=B4(),IR=z1(),RE=iv().set,vv=yE(),LR=bE(),TR=ep(),NR=av(),kE=Cf(),ip=bc(),mv=Cc(),DE=Ec(),ap="Promise",HE=mv.CONSTRUCTOR,OR=mv.REJECTION_EVENT,PR=mv.SUBCLASSING,dv=kE.getterFor(ap),RR=kE.set,Fc=ip&&ip.prototype,ll=ip,tp=Fc,ME=vo.TypeError,pv=vo.document,yv=vo.process,gv=DE.f,kR=gv,DR=!!(pv&&pv.createEvent&&vo.dispatchEvent),qE="unhandledrejection",HR="rejectionhandled",TE=0,KE=1,MR=2,Bv=1,jE=2,Ap,NE,VE,OE,GE=function(t){var e;return SR(t)&&rp(e=t.then)?e:!1},zE=function(t,e){var A=e.value,r=e.state===KE,n=r?t.ok:t.fail,i=t.resolve,s=t.reject,a=t.domain,o,l,h;try{n?(r||(e.rejection===jE&&KR(e),e.rejection=Bv),n===!0?o=A:(a&&a.enter(),o=n(A),a&&(a.exit(),h=!0)),o===t.promise?s(new ME("Promise-chain cycle")):(l=GE(o))?_c(l,o,i,s):i(o)):s(A)}catch(v){a&&!h&&a.exit(),s(v)}},WE=function(t,e){t.notified||(t.notified=!0,vv(function(){for(var A=t.reactions,r;r=A.get();)zE(r,t);t.notified=!1,e&&!t.rejection&&qR(t)}))},$E=function(t,e,A){var r,n;DR?(r=pv.createEvent("Event"),r.promise=e,r.reason=A,r.initEvent(t,!1,!0),vo.dispatchEvent(r)):r={promise:e,reason:A},!OR&&(n=vo["on"+t])?n(r):t===qE&&LR("Unhandled promise rejection",A)},qR=function(t){_c(RE,vo,function(){var e=t.facade,A=t.value,r=PE(t),n;if(r&&(n=TR(function(){np?yv.emit("unhandledRejection",A,e):$E(qE,e,A)}),t.rejection=np||PE(t)?jE:Bv,n.error))throw n.value})},PE=function(t){return t.rejection!==Bv&&!t.parent},KR=function(t){_c(RE,vo,function(){var e=t.facade;np?yv.emit("rejectionHandled",e):$E(HR,e,t.value)})},Uc=function(t,e,A){return function(r){t(e,r,A)}},xc=function(t,e,A){t.done||(t.done=!0,A&&(t=A),t.value=e,t.state=MR,WE(t,!0))},wv=function(t,e,A){if(!t.done){t.done=!0,A&&(t=A);try{if(t.facade===e)throw new ME("Promise can't be resolved itself");var r=GE(e);r?vv(function(){var n={done:!1};try{_c(r,e,Uc(wv,n,t),Uc(xc,n,t))}catch(i){xc(n,i,t)}}):(t.value=e,t.state=KE,WE(t,!1))}catch(n){xc({done:!1},n,t)}}};if(HE&&(ll=function(e){QR(this,tp),_R(e),_c(Ap,this);var A=dv(this);try{e(Uc(wv,A),Uc(xc,A))}catch(r){xc(A,r)}},tp=ll.prototype,Ap=function(e){RR(this,{type:ap,done:!1,notified:!1,parent:!1,reactions:new NR,rejection:!1,state:TE,value:null})},Ap.prototype=IE(tp,"then",function(e,A){var r=dv(this),n=gv(IR(this,ll));return r.parent=!0,n.ok=rp(e)?e:!0,n.fail=rp(A)&&A,n.domain=np?yv.domain:void 0,r.state===TE?r.reactions.add(n):vv(function(){zE(n,r)}),n.promise}),NE=function(){var t=new Ap,e=dv(t);this.promise=t,this.resolve=Uc(wv,e),this.reject=Uc(xc,e)},DE.f=gv=function(t){return t===ll||t===VE?new NE(t):kR(t)},!ER&&rp(ip)&&Fc!==Object.prototype)){OE=Fc.then,PR||IE(Fc,"then",function(e,A){var r=this;return new ll(function(n,i){_c(OE,r,n,i)}).then(e,A)},{unsafe:!0});try{delete Fc.constructor}catch{}LE&&LE(Fc,tp)}CR({global:!0,constructor:!0,wrap:!0,forced:HE},{Promise:ll});VE=FR.Promise;UR(ll,ap,!1,!0);xR(ap)});var Sc=me((xW,YE)=>{"use strict";YE.exports={}});var ZE=me((_W,JE)=>{"use strict";var jR=Wr(),VR=Sc(),GR=jR("iterator"),zR=Array.prototype;JE.exports=function(t){return t!==void 0&&(VR.Array===t||zR[GR]===t)}});var bv=me((SW,tF)=>{"use strict";var WR=Xd(),eF=il(),$R=pf(),XR=Sc(),YR=Wr(),JR=YR("iterator");tF.exports=function(t){if(!$R(t))return eF(t,JR)||eF(t,"@@iterator")||XR[WR(t)]}});var rF=me((QW,AF)=>{"use strict";var ZR=sn(),ek=Za(),tk=Sn(),Ak=wf(),rk=bv(),nk=TypeError;AF.exports=function(t,e){var A=arguments.length<2?rk(t):e;if(ek(A))return tk(ZR(A,t));throw new nk(Ak(t)+" is not iterable")}});var aF=me((IW,iF)=>{"use strict";var ik=sn(),nF=Sn(),ak=il();iF.exports=function(t,e,A){var r,n;nF(t);try{if(r=ak(t,"return"),!r){if(e==="throw")throw A;return A}r=ik(r,t)}catch(i){n=!0,r=i}if(e==="throw")throw A;if(n)throw r;return nF(r),A}});var Cv=me((LW,cF)=>{"use strict";var sk=Yd(),ok=sn(),lk=Sn(),ck=wf(),uk=ZE(),fk=Vd(),sF=gf(),hk=rF(),dk=bv(),oF=aF(),pk=TypeError,sp=function(t,e){this.stopped=t,this.result=e},lF=sp.prototype;cF.exports=function(t,e,A){var r=A&&A.that,n=!!(A&&A.AS_ENTRIES),i=!!(A&&A.IS_RECORD),s=!!(A&&A.IS_ITERATOR),a=!!(A&&A.INTERRUPTED),o=sk(e,r),l,h,v,m,g,C,F,_=function(D){var k=l;return l=void 0,k&&oF(k,"normal"),new sp(!0,D)},x=function(D){return n?(lk(D),a?o(D[0],D[1],_):o(D[0],D[1])):a?o(D,_):o(D)};if(i)l=t.iterator;else if(s)l=t;else{if(h=dk(t),!h)throw new pk(ck(t)+" is not iterable");if(uk(h)){for(v=0,m=fk(t);m>v;v++)if(g=x(t[v]),g&&sF(lF,g))return g;return new sp(!1)}l=hk(t,h)}for(C=i?t.next:l.next;!(F=ok(C,l)).done;){var H=F.value;try{g=x(H)}catch(D){if(l)oF(l,"throw",D);else throw D}if(typeof g=="object"&&g&&sF(lF,g))return g}return new sp(!1)}});var pF=me((TW,dF)=>{"use strict";var gk=Wr(),fF=gk("iterator"),hF=!1;try{uF=0,Ev={next:function(){return{done:!!uF++}},return:function(){hF=!0}},Ev[fF]=function(){return this},Array.from(Ev,function(){throw 2})}catch{}var uF,Ev;dF.exports=function(t,e){try{if(!e&&!hF)return!1}catch{return!1}var A=!1;try{var r={};r[fF]=function(){return{next:function(){return{done:A=!0}}}},t(r)}catch{}return A}});var Fv=me((NW,gF)=>{"use strict";var wk=bc(),vk=pF(),mk=Cc().CONSTRUCTOR;gF.exports=mk||!vk(function(t){wk.all(t).then(void 0,function(){})})});var wF=me(()=>{"use strict";var yk=Qn(),Bk=sn(),bk=Za(),Ck=Ec(),Ek=ep(),Fk=Cv(),Uk=Fv();yk({target:"Promise",stat:!0,forced:Uk},{all:function(e){var A=this,r=Ck.f(A),n=r.resolve,i=r.reject,s=Ek(function(){var a=bk(A.resolve),o=[],l=0,h=1;Fk(e,function(v){var m=l++,g=!1;h++,Bk(a,A,v).then(function(C){g||(g=!0,o[m]=C,--h||n(o))},i)}),--h||n(o)});return s.error&&i(s.value),r.promise}})});var mF=me(()=>{"use strict";var xk=Qn(),_k=va(),Sk=Cc().CONSTRUCTOR,xv=bc(),Qk=go(),Ik=gr(),Lk=wo(),vF=xv&&xv.prototype;xk({target:"Promise",proto:!0,forced:Sk,real:!0},{catch:function(t){return this.then(void 0,t)}});!_k&&Ik(xv)&&(Uv=Qk("Promise").prototype.catch,vF.catch!==Uv&&Lk(vF,"catch",Uv,{unsafe:!0}));var Uv});var yF=me(()=>{"use strict";var Tk=Qn(),Nk=sn(),Ok=Za(),Pk=Ec(),Rk=ep(),kk=Cv(),Dk=Fv();Tk({target:"Promise",stat:!0,forced:Dk},{race:function(e){var A=this,r=Pk.f(A),n=r.reject,i=Rk(function(){var s=Ok(A.resolve);kk(e,function(a){Nk(s,A,a).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}})});var BF=me(()=>{"use strict";var Hk=Qn(),Mk=Ec(),qk=Cc().CONSTRUCTOR;Hk({target:"Promise",stat:!0,forced:qk},{reject:function(e){var A=Mk.f(this),r=A.reject;return r(e),A.promise}})});var CF=me((KW,bF)=>{"use strict";var Kk=Sn(),jk=ei(),Vk=Ec();bF.exports=function(t,e){if(Kk(t),jk(e)&&e.constructor===t)return e;var A=Vk.f(t),r=A.resolve;return r(e),A.promise}});var UF=me(()=>{"use strict";var Gk=Qn(),zk=go(),EF=va(),Wk=bc(),FF=Cc().CONSTRUCTOR,$k=CF(),Xk=zk("Promise"),Yk=EF&&!FF;Gk({target:"Promise",stat:!0,forced:EF||FF},{resolve:function(e){return $k(Yk&&this===Xk?Wk:this,e)}})});var xF=me(()=>{"use strict";XE();wF();mF();yF();BF();UF()});function _F(t,e,A,r,n,i,s){try{var a=t[i](s),o=a.value}catch(l){return void A(l)}a.done?e(o):Promise.resolve(o).then(r,n)}function es(t){return function(){var e=this,A=arguments;return new Promise(function(r,n){var i=t.apply(e,A);function s(o){_F(i,r,n,s,a,"next",o)}function a(o){_F(i,r,n,s,a,"throw",o)}s(void 0)})}}var SF=zt(()=>{});var ya=me(($W,QF)=>{"use strict";var Jk=Xd(),Zk=String;QF.exports=function(t){if(Jk(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Zk(t)}});var _v=me((XW,IF)=>{"use strict";var eD=Sn();IF.exports=function(){var t=eD(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}});var Lv=me((YW,LF)=>{"use strict";var Sv=lr(),tD=GA(),Qv=tD.RegExp,Iv=Sv(function(){var t=Qv("a","y");return t.lastIndex=2,t.exec("abcd")!==null}),AD=Iv||Sv(function(){return!Qv("a","y").sticky}),rD=Iv||Sv(function(){var t=Qv("^r","gy");return t.lastIndex=2,t.exec("str")!==null});LF.exports={BROKEN_CARET:rD,MISSED_STICKY:AD,UNSUPPORTED_Y:Iv}});var NF=me((JW,TF)=>{"use strict";var nD=q1(),iD=Gd();TF.exports=Object.keys||function(e){return nD(e,iD)}});var PF=me(OF=>{"use strict";var aD=Zi(),sD=U1(),oD=Ss(),lD=Sn(),cD=gc(),uD=NF();OF.f=aD&&!sD?Object.defineProperties:function(e,A){lD(e);for(var r=cD(A),n=uD(A),i=n.length,s=0,a;i>s;)oD.f(e,a=n[s++],r[a]);return e}});var Pf=me((e$,KF)=>{"use strict";var fD=Sn(),hD=PF(),RF=Gd(),dD=Hd(),pD=$1(),gD=mf(),wD=Dd(),kF=">",DF="<",Nv="prototype",Ov="script",MF=wD("IE_PROTO"),Tv=function(){},qF=function(t){return DF+Ov+kF+t+DF+"/"+Ov+kF},HF=function(t){t.write(qF("")),t.close();var e=t.parentWindow.Object;return t=null,e},vD=function(){var t=gD("iframe"),e="java"+Ov+":",A;return t.style.display="none",pD.appendChild(t),t.src=String(e),A=t.contentWindow.document,A.open(),A.write(qF("document.F=Object")),A.close(),A.F},op,lp=function(){try{op=new ActiveXObject("htmlfile")}catch{}lp=typeof document<"u"?document.domain&&op?HF(op):vD():HF(op);for(var t=RF.length;t--;)delete lp[Nv][RF[t]];return lp()};dD[MF]=!0;KF.exports=Object.create||function(e,A){var r;return e!==null?(Tv[Nv]=fD(e),r=new Tv,Tv[Nv]=null,r[MF]=e):r=lp(),A===void 0?r:hD.f(r,A)}});var VF=me((t$,jF)=>{"use strict";var mD=lr(),yD=GA(),BD=yD.RegExp;jF.exports=mD(function(){var t=BD(".","s");return!(t.dotAll&&t.test(`
|
|
8
8
|
`)&&t.flags==="s")})});var zF=me((A$,GF)=>{"use strict";var bD=lr(),CD=GA(),ED=CD.RegExp;GF.exports=bD(function(){var t=ED("(?<a>b)","g");return t.exec("b").groups.a!=="b"||"b".replace(t,"$<a>c")!=="bc"})});var fp=me((r$,YF)=>{"use strict";var Qc=sn(),up=cr(),FD=ya(),UD=_v(),xD=Lv(),_D=Pd(),SD=Pf(),QD=Cf().get,ID=VF(),LD=zF(),TD=_D("native-string-replace",String.prototype.replace),cp=RegExp.prototype.exec,Pv=cp,ND=up("".charAt),OD=up("".indexOf),PD=up("".replace),WF=up("".slice),Rv=(function(){var t=/a/,e=/b*/g;return Qc(cp,t,"a"),Qc(cp,e,"a"),t.lastIndex!==0||e.lastIndex!==0})(),XF=xD.BROKEN_CARET,kv=/()??/.exec("")[1]!==void 0,RD=Rv||kv||XF||ID||LD,$F=function(t,e){for(var A=t.groups=SD(null),r=0;r<e.length;r++){var n=e[r];A[n[0]]=t[n[1]]}};RD&&(Pv=function(e){var A=this,r=QD(A),n=FD(e),i=r.raw,s,a,o;if(i)return i.lastIndex=A.lastIndex,s=Qc(Pv,i,n),A.lastIndex=i.lastIndex,s&&r.groups&&$F(s,r.groups),s;var l=r.groups,h=XF&&A.sticky,v=Qc(UD,A),m=A.source,g=0,C=n;if(h){v=PD(v,"y",""),OD(v,"g")===-1&&(v+="g"),C=WF(n,A.lastIndex);var F=A.lastIndex>0&&ND(n,A.lastIndex-1);A.lastIndex>0&&(!A.multiline||A.multiline&&F!==`
|
|
9
9
|
`&&F!=="\r"&&F!=="\u2028"&&F!=="\u2029")&&(m="(?: (?:"+m+"))",C=" "+C,g++),a=new RegExp("^(?:"+m+")",v)}kv&&(a=new RegExp("^"+m+"$(?!\\s)",v)),Rv&&(o=A.lastIndex);var _=Qc(cp,h?a:A,C);return h?_?(_.input=n,_[0]=WF(_[0],g),_.index=A.lastIndex,A.lastIndex+=_[0].length):A.lastIndex=0:Rv&&_&&(A.lastIndex=A.global?_.index+_[0].length:o),kv&&_&&_.length>1&&Qc(TD,_[0],a,function(){for(var x=1;x<arguments.length-2;x++)arguments[x]===void 0&&(_[x]=void 0)}),_&&l&&$F(_,l),_});YF.exports=Pv});var ZF=me(()=>{"use strict";var kD=Qn(),JF=fp();kD({target:"RegExp",proto:!0,forced:/./.exec!==JF},{exec:JF})});var hp=me((a$,nU)=>{"use strict";ZF();var eU=sn(),tU=wo(),DD=fp(),AU=lr(),rU=Wr(),HD=mc(),MD=rU("species"),Dv=RegExp.prototype;nU.exports=function(t,e,A,r){var n=rU(t),i=!AU(function(){var l={};return l[n]=function(){return 7},""[t](l)!==7}),s=i&&!AU(function(){var l=!1,h=/a/;if(t==="split"){var v={};v[MD]=function(){return h},h={constructor:v,flags:""},h[n]=/./[n]}return h.exec=function(){return l=!0,null},h[n](""),!l});if(!i||!s||A){var a=/./[n],o=e(n,""[t],function(l,h,v,m,g){var C=h.exec;return C===DD||C===Dv.exec?i&&!g?{done:!0,value:eU(a,h,v,m)}:{done:!0,value:eU(l,v,h,m)}:{done:!1}});tU(String.prototype,t,o[0]),tU(Dv,n,o[1])}r&&HD(Dv[n],"sham",!0)}});var oU=me((s$,sU)=>{"use strict";var Hv=cr(),qD=Ef(),KD=ya(),jD=ea(),VD=Hv("".charAt),iU=Hv("".charCodeAt),GD=Hv("".slice),aU=function(t){return function(e,A){var r=KD(jD(e)),n=qD(A),i=r.length,s,a;return n<0||n>=i?t?"":void 0:(s=iU(r,n),s<55296||s>56319||n+1===i||(a=iU(r,n+1))<56320||a>57343?t?VD(r,n):s:t?GD(r,n,n+2):(s-55296<<10)+(a-56320)+65536)}};sU.exports={codeAt:aU(!1),charAt:aU(!0)}});var dp=me((o$,lU)=>{"use strict";var zD=oU().charAt;lU.exports=function(t,e,A){return e+(A&&zD(t,e).length||1)}});var fU=me((l$,uU)=>{"use strict";var WD=GA(),$D=lr(),cU=WD.RegExp,XD=!$D(function(){var t=!0;try{cU(".","d")}catch{t=!1}var e={},A="",r=t?"dgimsy":"gimsy",n=function(o,l){Object.defineProperty(e,o,{get:function(){return A+=l,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(i.hasIndices="d");for(var s in i)n(s,i[s]);var a=Object.getOwnPropertyDescriptor(cU.prototype,"flags").get.call(e);return a!==r||A!==r});uU.exports={correct:XD}});var Rf=me((c$,dU)=>{"use strict";var YD=sn(),JD=ta(),ZD=gf(),hU=fU(),eH=_v(),tH=RegExp.prototype;dU.exports=hU.correct?function(t){return t.flags}:function(t){return!hU.correct&&ZD(tH,t)&&!JD(t,"flags")?YD(eH,t):t.flags}});var pp=me((u$,gU)=>{"use strict";var pU=sn(),AH=Sn(),rH=gr(),nH=po(),iH=fp(),aH=TypeError;gU.exports=function(t,e){var A=t.exec;if(rH(A)){var r=pU(A,t,e);return r!==null&&AH(r),r}if(nH(t)==="RegExp")return pU(iH,t,e);throw new aH("RegExp#exec called on incompatible receiver")}});var vU=me(()=>{"use strict";var sH=sn(),oH=cr(),lH=hp(),cH=Sn(),uH=ei(),fH=sl(),gp=ya(),hH=ea(),dH=il(),pH=dp(),gH=Rf(),wU=pp(),Mv=oH("".indexOf);lH("match",function(t,e,A){return[function(n){var i=hH(this),s=uH(n)?dH(n,t):void 0;return s?sH(s,n,i):new RegExp(n)[t](gp(i))},function(r){var n=cH(this),i=gp(r),s=A(e,n,i);if(s.done)return s.value;var a=gp(gH(n));if(!~Mv(a,"g"))return wU(n,i);var o=!!~Mv(a,"u")||!!~Mv(a,"v");n.lastIndex=0;for(var l=[],h=0,v;(v=wU(n,i))!==null;){var m=gp(v[0]);l[h]=m,m===""&&(n.lastIndex=pH(i,fH(n.lastIndex),o)),h++}return h===0?null:l}]})});var yU=me((d$,mU)=>{"use strict";var jv=cr(),wH=vf(),vH=Math.floor,qv=jv("".charAt),mH=jv("".replace),Kv=jv("".slice),yH=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,BH=/\$([$&'`]|\d{1,2})/g;mU.exports=function(t,e,A,r,n,i){var s=A+t.length,a=r.length,o=BH;return n!==void 0&&(n=wH(n),o=yH),mH(i,o,function(l,h){var v;switch(qv(h,0)){case"$":return"$";case"&":return t;case"`":return Kv(e,0,A);case"'":return Kv(e,s);case"<":v=n[Kv(h,1,-1)];break;default:var m=+h;if(m===0)return l;if(m>a){var g=vH(m/10);return g===0?l:g<=a?r[g-1]===void 0?qv(h,1):r[g-1]+qv(h,1):l}v=r[m-1]}return v===void 0?"":v})}});var EU=me(()=>{"use strict";var bH=W1(),BU=sn(),wp=cr(),CH=hp(),EH=lr(),FH=Sn(),UH=gr(),xH=ei(),_H=Ef(),SH=sl(),cl=ya(),QH=ea(),IH=dp(),LH=il(),TH=yU(),NH=Rf(),OH=pp(),PH=Wr(),Gv=PH("replace"),RH=Math.max,kH=Math.min,DH=wp([].concat),Vv=wp([].push),Ic=wp("".indexOf),bU=wp("".slice),HH=function(t){return t===void 0?t:String(t)},MH=(function(){return"a".replace(/./,"$0")==="$0"})(),CU=(function(){return/./[Gv]?/./[Gv]("a","$0")==="":!1})(),qH=!EH(function(){var t=/./;return t.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(t,"$<a>")!=="7"});CH("replace",function(t,e,A){var r=CU?"$":"$0";return[function(i,s){var a=QH(this),o=xH(i)?LH(i,Gv):void 0;return o?BU(o,i,a,s):BU(e,cl(a),i,s)},function(n,i){var s=FH(this),a=cl(n),o=UH(i);o||(i=cl(i));var l=cl(NH(s));if(typeof i=="string"&&!~Ic(i,r)&&!~Ic(i,"$<")&&!~Ic(l,"y")){var h=A(e,s,a,i);if(h.done)return h.value}var v=!!~Ic(l,"g"),m;v&&(m=!!~Ic(l,"u")||!!~Ic(l,"v"),s.lastIndex=0);for(var g=[],C;C=OH(s,a),!(C===null||(Vv(g,C),!v));){var F=cl(C[0]);F===""&&(s.lastIndex=IH(a,SH(s.lastIndex),m))}for(var _="",x=0,H=0;H<g.length;H++){C=g[H];for(var D=cl(C[0]),k=RH(kH(_H(C.index),a.length),0),re=[],fe,Ae=1;Ae<C.length;Ae++)Vv(re,HH(C[Ae]));var j=C.groups;if(o){var N=DH([D],re,k,a);j!==void 0&&Vv(N,j),fe=cl(bH(i,void 0,N))}else fe=TH(D,a,k,re,j,i);k>=x&&(_+=bU(a,x,k)+fe,x=k+D.length)}return _+bU(a,x)}]},!qH||!MH||CU)});var UU=me((w$,FU)=>{"use strict";var KH=ei(),jH=po(),VH=Wr(),GH=VH("match");FU.exports=function(t){var e;return KH(t)&&((e=t[GH])!==void 0?!!e:jH(t)==="RegExp")}});var vp=me((v$,xU)=>{"use strict";var zH=UU(),WH=TypeError;xU.exports=function(t){if(zH(t))throw new WH("The method doesn't accept regular expressions");return t}});var mp=me((m$,_U)=>{"use strict";var $H=Wr(),XH=$H("match");_U.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[XH]=!1,"/./"[t](e)}catch{}}return!1}});var IU=me(()=>{"use strict";var YH=Qn(),JH=Qf(),ZH=yf().f,eM=sl(),SU=ya(),tM=vp(),AM=ea(),rM=mp(),nM=va(),iM=JH("".slice),aM=Math.min,QU=rM("startsWith"),sM=!nM&&!QU&&!!(function(){var t=ZH(String.prototype,"startsWith");return t&&!t.writable})();YH({target:"String",proto:!0,forced:!sM&&!QU},{startsWith:function(e){var A=SU(AM(this));tM(e);var r=SU(e),n=eM(aM(arguments.length>1?arguments[1]:void 0,A.length));return iM(A,n,n+r.length)===r}})});var TU=me((b$,LU)=>{"use strict";var oM=Wr(),lM=Pf(),cM=Ss().f,zv=oM("unscopables"),Wv=Array.prototype;Wv[zv]===void 0&&cM(Wv,zv,{configurable:!0,value:lM(null)});LU.exports=function(t){Wv[zv][t]=!0}});var OU=me((C$,NU)=>{"use strict";var uM=lr();NU.exports=!uM(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})});var Xv=me((E$,RU)=>{"use strict";var fM=ta(),hM=gr(),dM=vf(),pM=Dd(),gM=OU(),PU=pM("IE_PROTO"),$v=Object,wM=$v.prototype;RU.exports=gM?$v.getPrototypeOf:function(t){var e=dM(t);if(fM(e,PU))return e[PU];var A=e.constructor;return hM(A)&&e instanceof A?A.prototype:e instanceof $v?wM:null}});var e2=me((F$,HU)=>{"use strict";var vM=lr(),mM=gr(),yM=ei(),BM=Pf(),kU=Xv(),bM=wo(),CM=Wr(),EM=va(),Zv=CM("iterator"),DU=!1,Qs,Yv,Jv;[].keys&&(Jv=[].keys(),"next"in Jv?(Yv=kU(kU(Jv)),Yv!==Object.prototype&&(Qs=Yv)):DU=!0);var FM=!yM(Qs)||vM(function(){var t={};return Qs[Zv].call(t)!==t});FM?Qs={}:EM&&(Qs=BM(Qs));mM(Qs[Zv])||bM(Qs,Zv,function(){return this});HU.exports={IteratorPrototype:Qs,BUGGY_SAFARI_ITERATORS:DU}});var qU=me((U$,MU)=>{"use strict";var UM=e2().IteratorPrototype,xM=Pf(),_M=Id(),SM=_f(),QM=Sc(),IM=function(){return this};MU.exports=function(t,e,A,r){var n=e+" Iterator";return t.prototype=xM(UM,{next:_M(+!r,A)}),SM(t,n,!1,!0),QM[n]=IM,t}});var ZU=me((x$,JU)=>{"use strict";var LM=Qn(),TM=sn(),yp=va(),XU=Bf(),NM=gr(),OM=qU(),KU=Xv(),jU=V1(),PM=_f(),RM=mc(),t2=wo(),kM=Wr(),VU=Sc(),YU=e2(),DM=XU.PROPER,HM=XU.CONFIGURABLE,GU=YU.IteratorPrototype,Bp=YU.BUGGY_SAFARI_ITERATORS,kf=kM("iterator"),zU="keys",Df="values",WU="entries",$U=function(){return this};JU.exports=function(t,e,A,r,n,i,s){OM(A,e,r);var a=function(x){if(x===n&&m)return m;if(!Bp&&x&&x in h)return h[x];switch(x){case zU:return function(){return new A(this,x)};case Df:return function(){return new A(this,x)};case WU:return function(){return new A(this,x)}}return function(){return new A(this)}},o=e+" Iterator",l=!1,h=t.prototype,v=h[kf]||h["@@iterator"]||n&&h[n],m=!Bp&&v||a(n),g=e==="Array"&&h.entries||v,C,F,_;if(g&&(C=KU(g.call(new t)),C!==Object.prototype&&C.next&&(!yp&&KU(C)!==GU&&(jU?jU(C,GU):NM(C[kf])||t2(C,kf,$U)),PM(C,o,!0,!0),yp&&(VU[o]=$U))),DM&&n===Df&&v&&v.name!==Df&&(!yp&&HM?RM(h,"name",Df):(l=!0,m=function(){return TM(v,this)})),n)if(F={values:a(Df),keys:i?m:a(zU),entries:a(WU)},s)for(_ in F)(Bp||l||!(_ in h))&&t2(h,_,F[_]);else LM({target:e,proto:!0,forced:Bp||l},F);return(!yp||s)&&h[kf]!==m&&t2(h,kf,m,{name:n}),VU[e]=m,F}});var tx=me((_$,ex)=>{"use strict";ex.exports=function(t,e){return{value:t,done:e}}});var r2=me((S$,ax)=>{"use strict";var MM=gc(),A2=TU(),Ax=Sc(),nx=Cf(),qM=Ss().f,KM=ZU(),bp=tx(),jM=va(),VM=Zi(),ix="Array Iterator",GM=nx.set,zM=nx.getterFor(ix);ax.exports=KM(Array,"Array",function(t,e){GM(this,{type:ix,target:MM(t),index:0,kind:e})},function(){var t=zM(this),e=t.target,A=t.index++;if(!e||A>=e.length)return t.target=null,bp(void 0,!0);switch(t.kind){case"keys":return bp(A,!1);case"values":return bp(e[A],!1)}return bp([A,e[A]],!1)},"values");var rx=Ax.Arguments=Ax.Array;A2("keys");A2("values");A2("entries");if(!jM&&VM&&rx.name!=="values")try{qM(rx,"name",{value:"values"})}catch{}});var ox=me((Q$,sx)=>{"use strict";sx.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var ux=me((I$,cx)=>{"use strict";var WM=mf(),n2=WM("span").classList,lx=n2&&n2.constructor&&n2.constructor.prototype;cx.exports=lx===Object.prototype?void 0:lx});var gx=me(()=>{"use strict";var fx=GA(),dx=ox(),$M=ux(),Hf=r2(),hx=mc(),XM=_f(),YM=Wr(),i2=YM("iterator"),a2=Hf.values,px=function(t,e){if(t){if(t[i2]!==a2)try{hx(t,i2,a2)}catch{t[i2]=a2}if(XM(t,e,!0),dx[e]){for(var A in Hf)if(t[A]!==Hf[A])try{hx(t,A,Hf[A])}catch{t[A]=Hf[A]}}}};for(Cp in dx)px(fx[Cp]&&fx[Cp].prototype,Cp);var Cp;px($M,"DOMTokenList")});function wx(t,e){if(dA(t)!="object"||!t)return t;var A=t[Symbol.toPrimitive];if(A!==void 0){var r=A.call(t,e||"default");if(dA(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var vx=zt(()=>{ad()});function mx(t){var e=wx(t,"string");return dA(e)=="symbol"?e:e+""}var yx=zt(()=>{ad();vx()});function Ep(t,e,A){return(e=mx(e))in t?Object.defineProperty(t,e,{value:A,enumerable:!0,configurable:!0,writable:!0}):t[e]=A,t}var Bx=zt(()=>{yx()});var Ux=me((M$,Fx)=>{"use strict";var JM=Za(),ZM=vf(),e7=u1(),t7=Vd(),bx=TypeError,Cx="Reduce of empty array with no initial value",Ex=function(t){return function(e,A,r,n){var i=ZM(e),s=e7(i),a=t7(i);if(JM(A),a===0&&r<2)throw new bx(Cx);var o=t?a-1:0,l=t?-1:1;if(r<2)for(;;){if(o in s){n=s[o],o+=l;break}if(o+=l,t?o<0:a<=o)throw new bx(Cx)}for(;t?o>=0:a>o;o+=l)o in s&&(n=A(n,s[o],o,i));return n}};Fx.exports={left:Ex(!1),right:Ex(!0)}});var s2=me((q$,xx)=>{"use strict";var A7=lr();xx.exports=function(t,e){var A=[][t];return!!A&&A7(function(){A.call(null,e||function(){return 1},1)})}});var Sx=me(()=>{"use strict";var r7=Qn(),n7=Ux().left,i7=s2(),_x=Td(),a7=xf(),s7=!a7&&_x>79&&_x<83,o7=s7||!i7("reduce");r7({target:"Array",proto:!0,forced:o7},{reduce:function(e){var A=arguments.length;return n7(this,e,A,A>1?arguments[1]:void 0)}})});var Lx=me(()=>{"use strict";var l7=Qn(),c7=Qf(),u7=yf().f,f7=sl(),Qx=ya(),h7=vp(),d7=ea(),p7=mp(),g7=va(),w7=c7("".slice),v7=Math.min,Ix=p7("endsWith"),m7=!g7&&!Ix&&!!(function(){var t=u7(String.prototype,"endsWith");return t&&!t.writable})();l7({target:"String",proto:!0,forced:!m7&&!Ix},{endsWith:function(e){var A=Qx(d7(this));h7(e);var r=Qx(e),n=arguments.length>1?arguments[1]:void 0,i=A.length,s=n===void 0?i:v7(f7(n),i);return w7(A,s-r.length,s)===r}})});var Ox=me(()=>{"use strict";var o2=sn(),f2=cr(),y7=hp(),B7=Sn(),b7=ei(),C7=ea(),E7=z1(),F7=dp(),U7=sl(),l2=ya(),x7=il(),_7=Rf(),Tx=pp(),S7=Lv(),Q7=lr(),Lc=S7.UNSUPPORTED_Y,I7=4294967295,L7=Math.min,c2=f2([].push),u2=f2("".slice),Fp=f2("".indexOf),T7=!Q7(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var A="ab".split(t);return A.length!==2||A[0]!=="a"||A[1]!=="b"}),Nx="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;y7("split",function(t,e,A){var r="0".split(void 0,0).length?function(n,i){return n===void 0&&i===0?[]:o2(e,this,n,i)}:e;return[function(i,s){var a=C7(this),o=b7(i)?x7(i,t):void 0;return o?o2(o,i,a,s):o2(r,l2(a),i,s)},function(n,i){var s=B7(this),a=l2(n);if(!Nx){var o=A(r,s,a,i,r!==e);if(o.done)return o.value}var l=E7(s,RegExp),h=l2(_7(s)),v=!!~Fp(h,"u")||!!~Fp(h,"v");Lc?~Fp(h,"g")||(h+="g"):~Fp(h,"y")||(h+="y");var m=new l(Lc?"^(?:"+s.source+")":s,h),g=i===void 0?I7:i>>>0;if(g===0)return[];if(a.length===0)return Tx(m,a)===null?[a]:[];for(var C=0,F=0,_=[];F<a.length;){m.lastIndex=Lc?0:F;var x=Tx(m,Lc?u2(a,F):a),H;if(x===null||(H=L7(U7(m.lastIndex+(Lc?F:0)),a.length))===C)F=F7(a,F,v);else{if(c2(_,u2(a,C,F)),_.length===g)return _;for(var D=1;D<=x.length-1;D++)if(c2(_,x[D]),_.length===g)return _;F=C=H}}return c2(_,u2(a,C)),_}]},Nx||!T7,Lc)});var Rx=me((Px,Mf)=>{(function(){var t,e,A,r,n,i;typeof performance<"u"&&performance!==null&&performance.now?Mf.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Mf.exports=function(){return(t()-n)/1e6},e=process.hrtime,t=function(){var s;return s=e(),s[0]*1e9+s[1]},r=t(),i=process.uptime()*1e9,n=r-i):Date.now?(Mf.exports=function(){return Date.now()-A},A=Date.now()):(Mf.exports=function(){return new Date().getTime()-A},A=new Date().getTime())}).call(Px)});var Dx=me(($$,_p)=>{var N7=Rx(),Is=typeof window>"u"?global:window,Up=["moz","webkit"],Nc="AnimationFrame",Oc=Is["request"+Nc],qf=Is["cancel"+Nc]||Is["cancelRequest"+Nc];for(Tc=0;!Oc&&Tc<Up.length;Tc++)Oc=Is[Up[Tc]+"Request"+Nc],qf=Is[Up[Tc]+"Cancel"+Nc]||Is[Up[Tc]+"CancelRequest"+Nc];var Tc;(!Oc||!qf)&&(xp=0,h2=0,mo=[],kx=1e3/60,Oc=function(t){if(mo.length===0){var e=N7(),A=Math.max(0,kx-(e-xp));xp=A+e,setTimeout(function(){var r=mo.slice(0);mo.length=0;for(var n=0;n<r.length;n++)if(!r[n].cancelled)try{r[n].callback(xp)}catch(i){setTimeout(function(){throw i},0)}},Math.round(A))}return mo.push({handle:++h2,callback:t,cancelled:!1}),h2},qf=function(t){for(var e=0;e<mo.length;e++)mo[e].handle===t&&(mo[e].cancelled=!0)});var xp,h2,mo,kx;_p.exports=function(t){return Oc.call(Is,t)};_p.exports.cancel=function(){qf.apply(Is,arguments)};_p.exports.polyfill=function(t){t||(t=Is),t.requestAnimationFrame=Oc,t.cancelAnimationFrame=qf}});var d2=me((X$,Hx)=>{"use strict";Hx.exports=`
|
|
10
10
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var Kx=me((Y$,qx)=>{"use strict";var O7=cr(),P7=ea(),R7=ya(),g2=d2(),Mx=O7("".replace),k7=RegExp("^["+g2+"]+"),D7=RegExp("(^|[^"+g2+"])["+g2+"]+$"),p2=function(t){return function(e){var A=R7(P7(e));return t&1&&(A=Mx(A,k7,"")),t&2&&(A=Mx(A,D7,"$1")),A}};qx.exports={start:p2(1),end:p2(2),trim:p2(3)}});var zx=me((J$,Gx)=>{"use strict";var H7=Bf().PROPER,M7=lr(),jx=d2(),Vx="\u200B\x85\u180E";Gx.exports=function(t){return M7(function(){return!!jx[t]()||Vx[t]()!==Vx||H7&&jx[t].name!==t})}});var Wx=me(()=>{"use strict";var q7=Qn(),K7=Kx().trim,j7=zx();q7({target:"String",proto:!0,forced:j7("trim")},{trim:function(){return K7(this)}})});var Xx=me((tX,$x)=>{$x.exports=function(t){this.ok=!1,this.alpha=1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var A=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3]),parseFloat(o[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],r=0;r<A.length;r++){var n=A[r].re,i=A[r].process,s=n.exec(t);if(s){var a=i(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var o=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+o+l+h},this.getHelpXML=function(){for(var o=new Array,l=0;l<A.length;l++)for(var h=A[l].example,v=0;v<h.length;v++)o[o.length]=h[v];for(var m in e)o[o.length]=m;var g=document.createElement("ul");g.setAttribute("id","rgbcolor-examples");for(var l=0;l<o.length;l++)try{var C=document.createElement("li"),F=new RGBColor(o[l]),_=document.createElement("div");_.style.cssText="margin: 3px; border: 1px solid black; background:"+F.toHex()+"; color:"+F.toHex(),_.appendChild(document.createTextNode("test"));var x=document.createTextNode(" "+o[l]+" -> "+F.toRGB()+" -> "+F.toHex());C.appendChild(_),C.appendChild(x),g.appendChild(C)}catch{}return g}}});var Jx=me(()=>{"use strict";var V7=Qn(),G7=Qf(),z7=H1().indexOf,W7=s2(),w2=G7([].indexOf),Yx=!!w2&&1/w2([1],1,-0)<0,$7=Yx||!W7("indexOf");V7({target:"Array",proto:!0,forced:$7},{indexOf:function(e){var A=arguments.length>1?arguments[1]:void 0;return Yx?w2(this,e,A)||0:z7(this,e,A)}})});var e_=me(()=>{"use strict";var X7=Qn(),Y7=cr(),J7=vp(),Z7=ea(),Zx=ya(),eq=mp(),tq=Y7("".indexOf);X7({target:"String",proto:!0,forced:!eq("includes")},{includes:function(e){return!!~tq(Zx(Z7(this)),Zx(J7(e)),arguments.length>1?arguments[1]:void 0)}})});var A_=me((aX,t_)=>{"use strict";var Aq=po();t_.exports=Array.isArray||function(e){return Aq(e)==="Array"}});var n_=me(()=>{"use strict";var rq=Qn(),nq=cr(),iq=A_(),aq=nq([].reverse),r_=[1,2];rq({target:"Array",proto:!0,forced:String(r_)===String(r_.reverse())},{reverse:function(){return iq(this)&&(this.length=this.length),aq(this)}})});function f_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function A(){this.constructor=t}u_(t,e),t.prototype=e===null?Object.create(e):(A.prototype=e.prototype,new A)}function sq(t){var e="";Array.isArray(t)||(t=[t]);for(var A=0;A<t.length;A++){var r=t[A];if(r.type===Me.CLOSE_PATH)e+="z";else if(r.type===Me.HORIZ_LINE_TO)e+=(r.relative?"h":"H")+r.x;else if(r.type===Me.VERT_LINE_TO)e+=(r.relative?"v":"V")+r.y;else if(r.type===Me.MOVE_TO)e+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===Me.LINE_TO)e+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===Me.CURVE_TO)e+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===Me.SMOOTH_CURVE_TO)e+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===Me.QUAD_TO)e+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===Me.SMOOTH_QUAD_TO)e+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==Me.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+A+".");e+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return e}function m2(t,e){var A=t[0],r=t[1];return[A*Math.cos(e)-r*Math.sin(e),A*Math.sin(e)+r*Math.cos(e)]}function ba(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var A=0;A<t.length;A++)if(typeof t[A]!="number")throw new Error("assertNumbers arguments["+A+"] is not a number. "+typeof t[A]+" == typeof "+t[A]);return!0}function v2(t,e,A){t.lArcFlag=t.lArcFlag===0?0:1,t.sweepFlag=t.sweepFlag===0?0:1;var r=t.rX,n=t.rY,i=t.x,s=t.y;r=Math.abs(t.rX),n=Math.abs(t.rY);var a=m2([(e-i)/2,(A-s)/2],-t.xRot/180*yo),o=a[0],l=a[1],h=Math.pow(o,2)/Math.pow(r,2)+Math.pow(l,2)/Math.pow(n,2);1<h&&(r*=Math.sqrt(h),n*=Math.sqrt(h)),t.rX=r,t.rY=n;var v=Math.pow(r,2)*Math.pow(l,2)+Math.pow(n,2)*Math.pow(o,2),m=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(n,2)-v)/v)),g=r*l/n*m,C=-n*o/r*m,F=m2([g,C],t.xRot/180*yo);t.cX=F[0]+(e+i)/2,t.cY=F[1]+(A+s)/2,t.phi1=Math.atan2((l-C)/n,(o-g)/r),t.phi2=Math.atan2((-l-C)/n,(-o-g)/r),t.sweepFlag===0&&t.phi2>t.phi1&&(t.phi2-=2*yo),t.sweepFlag===1&&t.phi2<t.phi1&&(t.phi2+=2*yo),t.phi1*=180/yo,t.phi2*=180/yo}function i_(t,e,A){ba(t,e,A);var r=t*t+e*e-A*A;if(0>r)return[];if(r===0)return[[t*A/(t*t+e*e),e*A/(t*t+e*e)]];var n=Math.sqrt(r);return[[(t*A+e*n)/(t*t+e*e),(e*A-t*n)/(t*t+e*e)],[(t*A-e*n)/(t*t+e*e),(e*A+t*n)/(t*t+e*e)]]}function a_(t,e,A){return(1-A)*t+A*e}function s_(t,e,A,r){return t+Math.cos(r/180*yo)*e+Math.sin(r/180*yo)*A}function o_(t,e,A,r){var n=1e-6,i=e-t,s=A-e,a=3*i+3*(r-A)-6*s,o=6*(s-i),l=3*i;return Math.abs(a)<n?[-l/o]:(function(h,v,m){m===void 0&&(m=1e-6);var g=h*h/4-v;if(g<-m)return[];if(g<=m)return[-h/2];var C=Math.sqrt(g);return[-h/2-C,-h/2+C]})(o/a,l/a,n)}function l_(t,e,A,r,n){var i=1-n;return t*(i*i*i)+e*(3*i*i*n)+A*(3*i*n*n)+r*(n*n*n)}var u_,yo,Or,Ls,Ba,h_,oq,c_,lq,Me,cq,d_=zt(()=>{u_=function(t,e){return(u_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,r){A.__proto__=r}||function(A,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(A[n]=r[n])})(t,e)};yo=Math.PI;Ls=Math.PI/180;(function(t){function e(){return n((function(a,o,l){return a.relative&&(a.x1!==void 0&&(a.x1+=o),a.y1!==void 0&&(a.y1+=l),a.x2!==void 0&&(a.x2+=o),a.y2!==void 0&&(a.y2+=l),a.x!==void 0&&(a.x+=o),a.y!==void 0&&(a.y+=l),a.relative=!1),a}))}function A(){var a=NaN,o=NaN,l=NaN,h=NaN;return n((function(v,m,g){return v.type&Me.SMOOTH_CURVE_TO&&(v.type=Me.CURVE_TO,a=isNaN(a)?m:a,o=isNaN(o)?g:o,v.x1=v.relative?m-a:2*m-a,v.y1=v.relative?g-o:2*g-o),v.type&Me.CURVE_TO?(a=v.relative?m+v.x2:v.x2,o=v.relative?g+v.y2:v.y2):(a=NaN,o=NaN),v.type&Me.SMOOTH_QUAD_TO&&(v.type=Me.QUAD_TO,l=isNaN(l)?m:l,h=isNaN(h)?g:h,v.x1=v.relative?m-l:2*m-l,v.y1=v.relative?g-h:2*g-h),v.type&Me.QUAD_TO?(l=v.relative?m+v.x1:v.x1,h=v.relative?g+v.y1:v.y1):(l=NaN,h=NaN),v}))}function r(){var a=NaN,o=NaN;return n((function(l,h,v){if(l.type&Me.SMOOTH_QUAD_TO&&(l.type=Me.QUAD_TO,a=isNaN(a)?h:a,o=isNaN(o)?v:o,l.x1=l.relative?h-a:2*h-a,l.y1=l.relative?v-o:2*v-o),l.type&Me.QUAD_TO){a=l.relative?h+l.x1:l.x1,o=l.relative?v+l.y1:l.y1;var m=l.x1,g=l.y1;l.type=Me.CURVE_TO,l.x1=((l.relative?0:h)+2*m)/3,l.y1=((l.relative?0:v)+2*g)/3,l.x2=(l.x+2*m)/3,l.y2=(l.y+2*g)/3}else a=NaN,o=NaN;return l}))}function n(a){var o=0,l=0,h=NaN,v=NaN;return function(m){if(isNaN(h)&&!(m.type&Me.MOVE_TO))throw new Error("path must start with moveto");var g=a(m,o,l,h,v);return m.type&Me.CLOSE_PATH&&(o=h,l=v),m.x!==void 0&&(o=m.relative?o+m.x:m.x),m.y!==void 0&&(l=m.relative?l+m.y:m.y),m.type&Me.MOVE_TO&&(h=o,v=l),g}}function i(a,o,l,h,v,m){return ba(a,o,l,h,v,m),n((function(g,C,F,_){var x=g.x1,H=g.x2,D=g.relative&&!isNaN(_),k=g.x!==void 0?g.x:D?0:C,re=g.y!==void 0?g.y:D?0:F;function fe(P){return P*P}g.type&Me.HORIZ_LINE_TO&&o!==0&&(g.type=Me.LINE_TO,g.y=g.relative?0:F),g.type&Me.VERT_LINE_TO&&l!==0&&(g.type=Me.LINE_TO,g.x=g.relative?0:C),g.x!==void 0&&(g.x=g.x*a+re*l+(D?0:v)),g.y!==void 0&&(g.y=k*o+g.y*h+(D?0:m)),g.x1!==void 0&&(g.x1=g.x1*a+g.y1*l+(D?0:v)),g.y1!==void 0&&(g.y1=x*o+g.y1*h+(D?0:m)),g.x2!==void 0&&(g.x2=g.x2*a+g.y2*l+(D?0:v)),g.y2!==void 0&&(g.y2=H*o+g.y2*h+(D?0:m));var Ae=a*h-o*l;if(g.xRot!==void 0&&(a!==1||o!==0||l!==0||h!==1))if(Ae===0)delete g.rX,delete g.rY,delete g.xRot,delete g.lArcFlag,delete g.sweepFlag,g.type=Me.LINE_TO;else{var j=g.xRot*Math.PI/180,N=Math.sin(j),Z=Math.cos(j),I=1/fe(g.rX),O=1/fe(g.rY),Y=fe(Z)*I+fe(N)*O,ee=2*N*Z*(I-O),ce=fe(N)*I+fe(Z)*O,be=Y*h*h-ee*o*h+ce*o*o,Fe=ee*(a*h+o*l)-2*(Y*l*h+ce*a*o),de=Y*l*l-ee*a*l+ce*a*a,Ee=(Math.atan2(Fe,be-de)+Math.PI)%Math.PI/2,Pe=Math.sin(Ee),Ue=Math.cos(Ee);g.rX=Math.abs(Ae)/Math.sqrt(be*fe(Ue)+Fe*Pe*Ue+de*fe(Pe)),g.rY=Math.abs(Ae)/Math.sqrt(be*fe(Pe)-Fe*Pe*Ue+de*fe(Ue)),g.xRot=180*Ee/Math.PI}return g.sweepFlag!==void 0&&0>Ae&&(g.sweepFlag=+!g.sweepFlag),g}))}function s(){return function(a){var o={};for(var l in a)o[l]=a[l];return o}}t.ROUND=function(a){function o(l){return Math.round(l*a)/a}return a===void 0&&(a=1e13),ba(a),function(l){return l.x1!==void 0&&(l.x1=o(l.x1)),l.y1!==void 0&&(l.y1=o(l.y1)),l.x2!==void 0&&(l.x2=o(l.x2)),l.y2!==void 0&&(l.y2=o(l.y2)),l.x!==void 0&&(l.x=o(l.x)),l.y!==void 0&&(l.y=o(l.y)),l.rX!==void 0&&(l.rX=o(l.rX)),l.rY!==void 0&&(l.rY=o(l.rY)),l}},t.TO_ABS=e,t.TO_REL=function(){return n((function(a,o,l){return a.relative||(a.x1!==void 0&&(a.x1-=o),a.y1!==void 0&&(a.y1-=l),a.x2!==void 0&&(a.x2-=o),a.y2!==void 0&&(a.y2-=l),a.x!==void 0&&(a.x-=o),a.y!==void 0&&(a.y-=l),a.relative=!0),a}))},t.NORMALIZE_HVZ=function(a,o,l){return a===void 0&&(a=!0),o===void 0&&(o=!0),l===void 0&&(l=!0),n((function(h,v,m,g,C){if(isNaN(g)&&!(h.type&Me.MOVE_TO))throw new Error("path must start with moveto");return o&&h.type&Me.HORIZ_LINE_TO&&(h.type=Me.LINE_TO,h.y=h.relative?0:m),l&&h.type&Me.VERT_LINE_TO&&(h.type=Me.LINE_TO,h.x=h.relative?0:v),a&&h.type&Me.CLOSE_PATH&&(h.type=Me.LINE_TO,h.x=h.relative?g-v:g,h.y=h.relative?C-m:C),h.type&Me.ARC&&(h.rX===0||h.rY===0)&&(h.type=Me.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h}))},t.NORMALIZE_ST=A,t.QT_TO_C=r,t.INFO=n,t.SANITIZE=function(a){a===void 0&&(a=0),ba(a);var o=NaN,l=NaN,h=NaN,v=NaN;return n((function(m,g,C,F,_){var x=Math.abs,H=!1,D=0,k=0;if(m.type&Me.SMOOTH_CURVE_TO&&(D=isNaN(o)?0:g-o,k=isNaN(l)?0:C-l),m.type&(Me.CURVE_TO|Me.SMOOTH_CURVE_TO)?(o=m.relative?g+m.x2:m.x2,l=m.relative?C+m.y2:m.y2):(o=NaN,l=NaN),m.type&Me.SMOOTH_QUAD_TO?(h=isNaN(h)?g:2*g-h,v=isNaN(v)?C:2*C-v):m.type&Me.QUAD_TO?(h=m.relative?g+m.x1:m.x1,v=m.relative?C+m.y1:m.y2):(h=NaN,v=NaN),m.type&Me.LINE_COMMANDS||m.type&Me.ARC&&(m.rX===0||m.rY===0||!m.lArcFlag)||m.type&Me.CURVE_TO||m.type&Me.SMOOTH_CURVE_TO||m.type&Me.QUAD_TO||m.type&Me.SMOOTH_QUAD_TO){var re=m.x===void 0?0:m.relative?m.x:m.x-g,fe=m.y===void 0?0:m.relative?m.y:m.y-C;D=isNaN(h)?m.x1===void 0?D:m.relative?m.x:m.x1-g:h-g,k=isNaN(v)?m.y1===void 0?k:m.relative?m.y:m.y1-C:v-C;var Ae=m.x2===void 0?0:m.relative?m.x:m.x2-g,j=m.y2===void 0?0:m.relative?m.y:m.y2-C;x(re)<=a&&x(fe)<=a&&x(D)<=a&&x(k)<=a&&x(Ae)<=a&&x(j)<=a&&(H=!0)}return m.type&Me.CLOSE_PATH&&x(g-F)<=a&&x(C-_)<=a&&(H=!0),H?[]:m}))},t.MATRIX=i,t.ROTATE=function(a,o,l){o===void 0&&(o=0),l===void 0&&(l=0),ba(a,o,l);var h=Math.sin(a),v=Math.cos(a);return i(v,h,-h,v,o-o*v+l*h,l-o*h-l*v)},t.TRANSLATE=function(a,o){return o===void 0&&(o=0),ba(a,o),i(1,0,0,1,a,o)},t.SCALE=function(a,o){return o===void 0&&(o=a),ba(a,o),i(a,0,0,o,0,0)},t.SKEW_X=function(a){return ba(a),i(1,0,Math.atan(a),1,0,0)},t.SKEW_Y=function(a){return ba(a),i(1,Math.atan(a),0,1,0,0)},t.X_AXIS_SYMMETRY=function(a){return a===void 0&&(a=0),ba(a),i(-1,0,0,1,a,0)},t.Y_AXIS_SYMMETRY=function(a){return a===void 0&&(a=0),ba(a),i(1,0,0,-1,0,a)},t.A_TO_C=function(){return n((function(a,o,l){return Me.ARC===a.type?(function(h,v,m){var g,C,F,_;h.cX||v2(h,v,m);for(var x=Math.min(h.phi1,h.phi2),H=Math.max(h.phi1,h.phi2)-x,D=Math.ceil(H/90),k=new Array(D),re=v,fe=m,Ae=0;Ae<D;Ae++){var j=a_(h.phi1,h.phi2,Ae/D),N=a_(h.phi1,h.phi2,(Ae+1)/D),Z=N-j,I=4/3*Math.tan(Z*Ls/4),O=[Math.cos(j*Ls)-I*Math.sin(j*Ls),Math.sin(j*Ls)+I*Math.cos(j*Ls)],Y=O[0],ee=O[1],ce=[Math.cos(N*Ls),Math.sin(N*Ls)],be=ce[0],Fe=ce[1],de=[be+I*Math.sin(N*Ls),Fe-I*Math.cos(N*Ls)],Ee=de[0],Pe=de[1];k[Ae]={relative:h.relative,type:Me.CURVE_TO};var Ue=function(P,J){var te=m2([P*h.rX,J*h.rY],h.xRot),ie=te[0],oe=te[1];return[h.cX+ie,h.cY+oe]};g=Ue(Y,ee),k[Ae].x1=g[0],k[Ae].y1=g[1],C=Ue(Ee,Pe),k[Ae].x2=C[0],k[Ae].y2=C[1],F=Ue(be,Fe),k[Ae].x=F[0],k[Ae].y=F[1],h.relative&&(k[Ae].x1-=re,k[Ae].y1-=fe,k[Ae].x2-=re,k[Ae].y2-=fe,k[Ae].x-=re,k[Ae].y-=fe),re=(_=[k[Ae].x,k[Ae].y])[0],fe=_[1]}return k})(a,a.relative?0:o,a.relative?0:l):a}))},t.ANNOTATE_ARCS=function(){return n((function(a,o,l){return a.relative&&(o=0,l=0),Me.ARC===a.type&&v2(a,o,l),a}))},t.CLONE=s,t.CALCULATE_BOUNDS=function(){var a=function(m){var g={};for(var C in m)g[C]=m[C];return g},o=e(),l=r(),h=A(),v=n((function(m,g,C){var F=h(l(o(a(m))));function _(Pe){Pe>v.maxX&&(v.maxX=Pe),Pe<v.minX&&(v.minX=Pe)}function x(Pe){Pe>v.maxY&&(v.maxY=Pe),Pe<v.minY&&(v.minY=Pe)}if(F.type&Me.DRAWING_COMMANDS&&(_(g),x(C)),F.type&Me.HORIZ_LINE_TO&&_(F.x),F.type&Me.VERT_LINE_TO&&x(F.y),F.type&Me.LINE_TO&&(_(F.x),x(F.y)),F.type&Me.CURVE_TO){_(F.x),x(F.y);for(var H=0,D=o_(g,F.x1,F.x2,F.x);H<D.length;H++)0<(Ee=D[H])&&1>Ee&&_(l_(g,F.x1,F.x2,F.x,Ee));for(var k=0,re=o_(C,F.y1,F.y2,F.y);k<re.length;k++)0<(Ee=re[k])&&1>Ee&&x(l_(C,F.y1,F.y2,F.y,Ee))}if(F.type&Me.ARC){_(F.x),x(F.y),v2(F,g,C);for(var fe=F.xRot/180*Math.PI,Ae=Math.cos(fe)*F.rX,j=Math.sin(fe)*F.rX,N=-Math.sin(fe)*F.rY,Z=Math.cos(fe)*F.rY,I=F.phi1<F.phi2?[F.phi1,F.phi2]:-180>F.phi2?[F.phi2+360,F.phi1+360]:[F.phi2,F.phi1],O=I[0],Y=I[1],ee=function(Pe){var Ue=Pe[0],P=Pe[1],J=180*Math.atan2(P,Ue)/Math.PI;return J<O?J+360:J},ce=0,be=i_(N,-Ae,0).map(ee);ce<be.length;ce++)(Ee=be[ce])>O&&Ee<Y&&_(s_(F.cX,Ae,N,Ee));for(var Fe=0,de=i_(Z,-j,0).map(ee);Fe<de.length;Fe++){var Ee;(Ee=de[Fe])>O&&Ee<Y&&x(s_(F.cY,j,Z,Ee))}}return m}));return v.minX=1/0,v.maxX=-1/0,v.minY=1/0,v.maxY=-1/0,v}})(Or||(Or={}));h_=(function(){function t(){}return t.prototype.round=function(e){return this.transform(Or.ROUND(e))},t.prototype.toAbs=function(){return this.transform(Or.TO_ABS())},t.prototype.toRel=function(){return this.transform(Or.TO_REL())},t.prototype.normalizeHVZ=function(e,A,r){return this.transform(Or.NORMALIZE_HVZ(e,A,r))},t.prototype.normalizeST=function(){return this.transform(Or.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(Or.QT_TO_C())},t.prototype.aToC=function(){return this.transform(Or.A_TO_C())},t.prototype.sanitize=function(e){return this.transform(Or.SANITIZE(e))},t.prototype.translate=function(e,A){return this.transform(Or.TRANSLATE(e,A))},t.prototype.scale=function(e,A){return this.transform(Or.SCALE(e,A))},t.prototype.rotate=function(e,A,r){return this.transform(Or.ROTATE(e,A,r))},t.prototype.matrix=function(e,A,r,n,i,s){return this.transform(Or.MATRIX(e,A,r,n,i,s))},t.prototype.skewX=function(e){return this.transform(Or.SKEW_X(e))},t.prototype.skewY=function(e){return this.transform(Or.SKEW_Y(e))},t.prototype.xSymmetry=function(e){return this.transform(Or.X_AXIS_SYMMETRY(e))},t.prototype.ySymmetry=function(e){return this.transform(Or.Y_AXIS_SYMMETRY(e))},t.prototype.annotateArcs=function(){return this.transform(Or.ANNOTATE_ARCS())},t})(),oq=function(t){return t===" "||t===" "||t==="\r"||t===`
|
|
11
|
-
`},c_=function(t){return 48<=t.charCodeAt(0)&&t.charCodeAt(0)<=57},lq=(function(t){function e(){var A=t.call(this)||this;return A.curNumber="",A.curCommandType=-1,A.curCommandRelative=!1,A.canParseCommandOrComma=!0,A.curNumberHasExp=!1,A.curNumberHasExpDigits=!1,A.curNumberHasDecimal=!1,A.curArgs=[],A}return f_(e,t),e.prototype.finish=function(A){if(A===void 0&&(A=[]),this.parse(" ",A),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return A},e.prototype.parse=function(A,r){var n=this;r===void 0&&(r=[]);for(var i=function(v){r.push(v),n.curArgs.length=0,n.canParseCommandOrComma=!0},s=0;s<A.length;s++){var a=A[s],o=!(this.curCommandType!==Me.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=c_(a)&&(this.curNumber==="0"&&a==="0"||o);if(!c_(a)||l)if(a!=="e"&&a!=="E")if(a!=="-"&&a!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(a!=="."||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var h=Number(this.curNumber);if(isNaN(h))throw new SyntaxError("Invalid number ending at "+s);if(this.curCommandType===Me.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>h)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+s+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+s+'"')}this.curArgs.push(h),this.curArgs.length===cq[this.curCommandType]&&(Me.HORIZ_LINE_TO===this.curCommandType?i({type:Me.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):Me.VERT_LINE_TO===this.curCommandType?i({type:Me.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===Me.MOVE_TO||this.curCommandType===Me.LINE_TO||this.curCommandType===Me.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Me.MOVE_TO===this.curCommandType&&(this.curCommandType=Me.LINE_TO)):this.curCommandType===Me.CURVE_TO?i({type:Me.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Me.SMOOTH_CURVE_TO?i({type:Me.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Me.QUAD_TO?i({type:Me.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Me.ARC&&i({type:Me.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!oq(a))if(a===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(a!=="+"&&a!=="-"&&a!==".")if(l)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+s+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+s+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,a!=="z"&&a!=="Z")if(a==="h"||a==="H")this.curCommandType=Me.HORIZ_LINE_TO,this.curCommandRelative=a==="h";else if(a==="v"||a==="V")this.curCommandType=Me.VERT_LINE_TO,this.curCommandRelative=a==="v";else if(a==="m"||a==="M")this.curCommandType=Me.MOVE_TO,this.curCommandRelative=a==="m";else if(a==="l"||a==="L")this.curCommandType=Me.LINE_TO,this.curCommandRelative=a==="l";else if(a==="c"||a==="C")this.curCommandType=Me.CURVE_TO,this.curCommandRelative=a==="c";else if(a==="s"||a==="S")this.curCommandType=Me.SMOOTH_CURVE_TO,this.curCommandRelative=a==="s";else if(a==="q"||a==="Q")this.curCommandType=Me.QUAD_TO,this.curCommandRelative=a==="q";else if(a==="t"||a==="T")this.curCommandType=Me.SMOOTH_QUAD_TO,this.curCommandRelative=a==="t";else{if(a!=="a"&&a!=="A")throw new SyntaxError('Unexpected character "'+a+'" at index '+s+".");this.curCommandType=Me.ARC,this.curCommandRelative=a==="a"}else r.push({type:Me.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal=a==="."}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return r},e.prototype.transform=function(A){return Object.create(this,{parse:{value:function(r,n){n===void 0&&(n=[]);for(var i=0,s=Object.getPrototypeOf(this).parse.call(this,r);i<s.length;i++){var a=s[i],o=A(a);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},e})(h_),Me=(function(t){function e(A){var r=t.call(this)||this;return r.commands=typeof A=="string"?e.parse(A):A,r}return f_(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var A=Or.CALCULATE_BOUNDS();return this.transform(A),A},e.prototype.transform=function(A){for(var r=[],n=0,i=this.commands;n<i.length;n++){var s=A(i[n]);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return this.commands=r,this},e.encode=function(A){return sq(A)},e.parse=function(A){var r=new lq,n=[];return r.parse(A,n),r.finish(n),n},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e})(h_),cq=((Ba={})[Me.MOVE_TO]=2,Ba[Me.LINE_TO]=2,Ba[Me.HORIZ_LINE_TO]=1,Ba[Me.VERT_LINE_TO]=1,Ba[Me.CLOSE_PATH]=0,Ba[Me.QUAD_TO]=4,Ba[Me.SMOOTH_QUAD_TO]=2,Ba[Me.CURVE_TO]=6,Ba[Me.SMOOTH_CURVE_TO]=4,Ba[Me.ARC]=7,Ba)});var v_=me(()=>{"use strict";var uq=Bf().PROPER,fq=wo(),hq=Sn(),p_=ya(),dq=lr(),pq=Rf(),y2="toString",g_=RegExp.prototype,w_=g_[y2],gq=dq(function(){return w_.call({source:"a",flags:"b"})!=="/a/b"}),wq=uq&&w_.name!==y2;(gq||wq)&&fq(g_,y2,function(){var e=hq(this),A=p_(e.source),r=p_(pq(e));return"/"+A+"/"+r},{unsafe:!0})});function Sp(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sp=function(e){return typeof e}:Sp=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sp(t)}function vq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bq(t,e,A,r,n){if(typeof t=="string"&&(t=document.getElementById(t)),!t||Sp(t)!=="object"||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=t.getContext("2d");try{return i.getImageData(e,A,r,n)}catch(s){throw new Error("unable to access image data: "+s)}}function y_(t,e,A,r,n,i){if(!(isNaN(i)||i<1)){i|=0;var s=Bq(t,e,A,r,n);s=bq(s,e,A,r,n,i),t.getContext("2d").putImageData(s,e,A)}}function bq(t,e,A,r,n,i){for(var s=t.data,a=2*i+1,o=r-1,l=n-1,h=i+1,v=h*(h+1)/2,m=new m_,g=m,C,F=1;F<a;F++)g=g.next=new m_,F===h&&(C=g);g.next=m;for(var _=null,x=null,H=0,D=0,k=mq[i],re=yq[i],fe=0;fe<n;fe++){g=m;for(var Ae=s[D],j=s[D+1],N=s[D+2],Z=s[D+3],I=0;I<h;I++)g.r=Ae,g.g=j,g.b=N,g.a=Z,g=g.next;for(var O=0,Y=0,ee=0,ce=0,be=h*Ae,Fe=h*j,de=h*N,Ee=h*Z,Pe=v*Ae,Ue=v*j,P=v*N,J=v*Z,te=1;te<h;te++){var ie=D+((o<te?o:te)<<2),oe=s[ie],ve=s[ie+1],xe=s[ie+2],_e=s[ie+3],Le=h-te;Pe+=(g.r=oe)*Le,Ue+=(g.g=ve)*Le,P+=(g.b=xe)*Le,J+=(g.a=_e)*Le,O+=oe,Y+=ve,ee+=xe,ce+=_e,g=g.next}_=m,x=C;for(var Oe=0;Oe<r;Oe++){var Je=J*k>>>re;if(s[D+3]=Je,Je!==0){var qe=255/Je;s[D]=(Pe*k>>>re)*qe,s[D+1]=(Ue*k>>>re)*qe,s[D+2]=(P*k>>>re)*qe}else s[D]=s[D+1]=s[D+2]=0;Pe-=be,Ue-=Fe,P-=de,J-=Ee,be-=_.r,Fe-=_.g,de-=_.b,Ee-=_.a;var at=Oe+i+1;at=H+(at<o?at:o)<<2,O+=_.r=s[at],Y+=_.g=s[at+1],ee+=_.b=s[at+2],ce+=_.a=s[at+3],Pe+=O,Ue+=Y,P+=ee,J+=ce,_=_.next;var q=x,je=q.r,Tt=q.g,ut=q.b,Re=q.a;be+=je,Fe+=Tt,de+=ut,Ee+=Re,O-=je,Y-=Tt,ee-=ut,ce-=Re,x=x.next,D+=4}H+=r}for(var dt=0;dt<r;dt++){D=dt<<2;var $e=s[D],lt=s[D+1],Ze=s[D+2],Ut=s[D+3],Nt=h*$e,St=h*lt,Ht=h*Ze,Ot=h*Ut,tt=v*$e,yt=v*lt,Xe=v*Ze,aA=v*Ut;g=m;for(var Gt=0;Gt<h;Gt++)g.r=$e,g.g=lt,g.b=Ze,g.a=Ut,g=g.next;for(var It=r,Rt=0,tA=0,mt=0,Jt=0,nt=1;nt<=i;nt++){D=It+dt<<2;var xt=h-nt;tt+=(g.r=$e=s[D])*xt,yt+=(g.g=lt=s[D+1])*xt,Xe+=(g.b=Ze=s[D+2])*xt,aA+=(g.a=Ut=s[D+3])*xt,Jt+=$e,Rt+=lt,tA+=Ze,mt+=Ut,g=g.next,nt<l&&(It+=r)}D=dt,_=m,x=C;for(var fA=0;fA<n;fA++){var bt=D<<2;s[bt+3]=Ut=aA*k>>>re,Ut>0?(Ut=255/Ut,s[bt]=(tt*k>>>re)*Ut,s[bt+1]=(yt*k>>>re)*Ut,s[bt+2]=(Xe*k>>>re)*Ut):s[bt]=s[bt+1]=s[bt+2]=0,tt-=Nt,yt-=St,Xe-=Ht,aA-=Ot,Nt-=_.r,St-=_.g,Ht-=_.b,Ot-=_.a,bt=dt+((bt=fA+h)<l?bt:l)*r<<2,tt+=Jt+=_.r=s[bt],yt+=Rt+=_.g=s[bt+1],Xe+=tA+=_.b=s[bt+2],aA+=mt+=_.a=s[bt+3],_=_.next,Nt+=$e=x.r,St+=lt=x.g,Ht+=Ze=x.b,Ot+=Ut=x.a,Jt-=$e,Rt-=lt,tA-=Ze,mt-=Ut,x=x.next,D+=r}}return t}var mq,yq,m_,B_=zt(()=>{mq=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],yq=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];m_=function t(){vq(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}});var T_={};or(T_,{AElement:()=>ag,AnimateColorElement:()=>eg,AnimateElement:()=>kc,AnimateTransformElement:()=>tg,BoundingBox:()=>wi,CB1:()=>C2,CB2:()=>E2,CB3:()=>F2,CB4:()=>U2,Canvg:()=>L2,CircleElement:()=>jp,ClipPathElement:()=>fg,DefsElement:()=>Xp,DescElement:()=>vg,Document:()=>gl,Element:()=>zA,EllipseElement:()=>Vp,FeColorMatrixElement:()=>Yf,FeCompositeElement:()=>pg,FeDropShadowElement:()=>hg,FeGaussianBlurElement:()=>gg,FeMorphologyElement:()=>dg,FilterElement:()=>Zf,Font:()=>Aa,FontElement:()=>Ag,FontFaceElement:()=>rg,GElement:()=>Rc,GlyphElement:()=>Vf,GradientElement:()=>$f,ImageElement:()=>og,LineElement:()=>Gp,LinearGradientElement:()=>Yp,MarkerElement:()=>$p,MaskElement:()=>Jf,Matrix:()=>Kf,MissingGlyphElement:()=>ng,Mouse:()=>Rp,PSEUDO_ZERO:()=>hl,Parser:()=>Pc,PathElement:()=>Fr,PathParser:()=>Wt,PatternElement:()=>Wp,Point:()=>Rr,PolygonElement:()=>zp,PolylineElement:()=>Wf,Property:()=>Qt,QB1:()=>x2,QB2:()=>_2,QB3:()=>S2,RadialGradientElement:()=>Jp,RectElement:()=>zf,RenderedElement:()=>ts,Rotate:()=>Dp,SVGElement:()=>bo,SVGFontLoader:()=>cg,Scale:()=>Hp,Screen:()=>dl,Skew:()=>jf,SkewX:()=>Mp,SkewY:()=>qp,StopElement:()=>Zp,StyleElement:()=>Xf,SymbolElement:()=>lg,TRefElement:()=>ig,TSpanElement:()=>Gf,TextElement:()=>Bo,TextPathElement:()=>sg,TitleElement:()=>wg,Transform:()=>pl,Translate:()=>kp,UnknownElement:()=>Kp,UseElement:()=>ug,ViewPort:()=>Pp,compressSpaces:()=>wl,default:()=>L2,getSelectorSpecificity:()=>Q_,normalizeAttributeName:()=>__,normalizeColor:()=>S_,parseExternalUrl:()=>T2,presets:()=>Fq,toNumbers:()=>gi,trimLeft:()=>U_,trimRight:()=>x_,vectorMagnitude:()=>B2,vectorsAngle:()=>b2,vectorsRatio:()=>Op});function Cq(){var{DOMParser:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas(A,r){return new OffscreenCanvas(A,r)},createImage(A){return es(function*(){var r=yield fetch(A),n=yield r.blob(),i=yield createImageBitmap(n);return i})()}};return(typeof DOMParser<"u"||typeof t>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function Eq(t){var{DOMParser:e,canvas:A,fetch:r}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:A.createCanvas,createImage:A.loadImage}}function wl(t){return t.replace(/(?!\u3000)\s+/gm," ")}function U_(t){return t.replace(/^[\n \t]+/,"")}function x_(t){return t.replace(/[\n \t]+$/,"")}function gi(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}function __(t){return Uq.test(t)?t.toLowerCase():t}function T2(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function S_(t){if(!t.startsWith("rgb"))return t;var e=3,A=t.replace(/\d+(\.\d+)?/g,(r,n)=>e--&&n?String(Math.round(parseFloat(r))):r);return A}function ul(t,e){var A=e.exec(t);return A?[t.replace(e," "),A.length]:[t,0]}function Q_(t){var e=[0,0,0],A=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[A,r]=ul(A,xq),e[1]+=r,[A,r]=ul(A,_q),e[0]+=r,[A,r]=ul(A,Sq),e[1]+=r,[A,r]=ul(A,Qq),e[2]+=r,[A,r]=ul(A,Iq),e[1]+=r,[A,r]=ul(A,Lq),e[1]+=r,A=A.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[A,r]=ul(A,Tq),e[2]+=r,e.join("")}function B2(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Op(t,e){return(t[0]*e[0]+t[1]*e[1])/(B2(t)*B2(e))}function b2(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Op(t,e))}function C2(t){return t*t*t}function E2(t){return 3*t*t*(1-t)}function F2(t){return 3*t*(1-t)*(1-t)}function U2(t){return(1-t)*(1-t)*(1-t)}function x2(t){return t*t}function _2(t){return 2*t*(1-t)}function S2(t){return(1-t)*(1-t)}function Pq(t){return wl(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Rq(t){var[e,A]=t.split("(");return[e.trim(),A.trim().replace(")","")]}function kq(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Dq(t){return typeof process>"u"?t:t.trim().split(",").map(kq).join(",")}function Hq(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function Mq(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}function b_(t,e){var A=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),A.push.apply(A,r)}return A}function Qp(t){for(var e=1;e<arguments.length;e++){var A=arguments[e]!=null?arguments[e]:{};e%2?b_(Object(A),!0).forEach(function(r){Ep(t,r,A[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(A)):b_(Object(A)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(A,r))})}return t}function Ip(t,e,A,r,n,i){return t[A*r*4+e*4+i]}function Lp(t,e,A,r,n,i,s){t[A*r*4+e*4+i]=s}function Pr(t,e,A){var r=t[e];return r*A}function Ts(t,e,A,r){return e+Math.cos(t)*A+Math.sin(t)*r}function E_(t,e){var A=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),A.push.apply(A,r)}return A}function jq(t){for(var e=1;e<arguments.length;e++){var A=arguments[e]!=null?arguments[e]:{};e%2?E_(Object(A),!0).forEach(function(r){Ep(t,r,A[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(A)):E_(Object(A)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(A,r))})}return t}function Vq(t,e){var A=document.createElement("canvas");return A.width=t,A.height=e,A}function Gq(t){return I2.apply(this,arguments)}function I2(){return I2=es(function*(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=document.createElement("img");return e&&(A.crossOrigin="Anonymous"),new Promise((r,n)=>{A.onload=()=>{r(A)},A.onerror=(i,s,a,o,l)=>{n(l)},A.src=t})}),I2.apply(this,arguments)}function F_(t,e){var A=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),A.push.apply(A,r)}return A}function fl(t){for(var e=1;e<arguments.length;e++){var A=arguments[e]!=null?arguments[e]:{};e%2?F_(Object(A),!0).forEach(function(r){Ep(t,r,A[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(A)):F_(Object(A)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(A,r))})}return t}var hX,pX,gX,wX,vX,mX,BX,bX,CX,Tp,EX,Np,FX,UX,xX,SX,Fq,Uq,xq,_q,Sq,Qq,Iq,Lq,Tq,hl,Qt,Pp,Rr,Rp,I_,L_,dl,Nq,Oq,Pc,kp,Dp,Hp,Kf,jf,Mp,qp,pl,zA,Kp,Aa,wi,Wt,ts,Fr,Vf,Bo,Gf,Q2,bo,zf,jp,Vp,Gp,Wf,zp,Wp,$p,Xp,Rc,$f,Yp,Jp,Zp,kc,eg,tg,Ag,rg,ng,ig,ag,sg,qq,og,lg,cg,Xf,ug,Yf,Jf,C_,fg,Zf,hg,dg,pg,gg,wg,vg,Kq,gl,L2,N_=zt(()=>{hX=An(xF(),1);SF();pX=An(vU(),1),gX=An(EU(),1),wX=An(IU(),1),vX=An(r2(),1),mX=An(gx(),1);Bx();BX=An(Sx(),1),bX=An(Lx(),1),CX=An(Ox(),1),Tp=An(Dx(),1),EX=An(Wx(),1),Np=An(Xx(),1),FX=An(Jx(),1),UX=An(e_(),1),xX=An(n_(),1);d_();SX=An(v_(),1);B_();Fq=Object.freeze({__proto__:null,offscreen:Cq,node:Eq});Uq=/^[A-Z-]+$/;xq=/(\[[^\]]+\])/g,_q=/(#[^\s+>~.[:]+)/g,Sq=/(\.[^\s+>~.[:]+)/g,Qq=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Iq=/(:[\w-]+\([^)]*\))/gi,Lq=/(:[^\s+>~.[:]+)/g,Tq=/([^\s+>~.[:]+)/g;hl=1e-8;Qt=class t{constructor(e,A,r){this.document=e,this.name=A,this.value=r,this.isNormalizedColor=!1}static empty(e){return new t(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:A,name:r}=this;return wl(this.getString()).trim().split(e).map(n=>new t(A,r,n))}hasValue(e){var{value:A}=this;return A!==null&&A!==""&&(e||A!==0)&&typeof A<"u"}isString(e){var{value:A}=this,r=typeof A=="string";return!r||!e?r:e.test(A)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:A}=this,r=parseFloat(A);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var A=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,A=S_(A),this.value=A),A}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,n]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&n):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(r);default:{var s=this.getNumber();return A&&s<1?s*i.computeSize(r):s}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),A=/#([^)'"]+)/.exec(e);return A&&(A=A[1]),A||(A=e),this.document.definitions[A]}getFillStyleDefinition(e,A){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,A);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,e,A)}return null}getTextBaseline(){return this.hasValue()?t.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var A=this.getColor(),r=A.length,n=0,i=0;i<r&&(A[i]===","&&n++,n!==3);i++);if(e.hasValue()&&this.isString()&&n!==3){var s=new Np.default(A);s.ok&&(s.alpha=e.getNumber(),A=s.toRGBA())}return new t(this.document,this.name,A)}};Qt.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};Pp=class{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,A){this.viewPorts.push({width:e,height:A})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},Rr=class t{constructor(e,A){this.x=e,this.y=A}static parse(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=A,n=A]=gi(e);return new t(r,n)}static parseScale(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=A,n=r]=gi(e);return new t(r,n)}static parsePath(e){for(var A=gi(e),r=A.length,n=[],i=0;i<r;i+=2)n.push(new t(A[i],A[i+1]));return n}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:A,y:r}=this,n=A*e[0]+r*e[2]+e[4],i=A*e[1]+r*e[3]+e[5];this.x=n,this.y=i}},Rp=class{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:A,onMouseMove:r}=this,n=e.ctx.canvas;n.onclick=A,n.onmousemove=r,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:A,eventElements:r}=this,{style:n}=e.ctx.canvas;n&&(n.cursor=""),A.forEach((i,s)=>{for(var{run:a}=i,o=r[s];o;)a(o),o=o.parent}),this.events=[],this.eventElements=[]}}checkPath(e,A){if(!(!this.working||!A)){var{events:r,eventElements:n}=this;r.forEach((i,s)=>{var{x:a,y:o}=i;!n[s]&&A.isPointInPath&&A.isPointInPath(a,o)&&(n[s]=e)})}}checkBoundingBox(e,A){if(!(!this.working||!A)){var{events:r,eventElements:n}=this;r.forEach((i,s)=>{var{x:a,y:o}=i;!n[s]&&A.isPointInBox(a,o)&&(n[s]=e)})}}mapXY(e,A){for(var{window:r,ctx:n}=this.screen,i=new Rr(e,A),s=n.canvas;s;)i.x-=s.offsetLeft,i.y-=s.offsetTop,s=s.offsetParent;return r.scrollX&&(i.x+=r.scrollX),r.scrollY&&(i.y+=r.scrollY),i}onClick(e){var{x:A,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:A,y:r,run(n){n.onClick&&n.onClick()}})}onMouseMove(e){var{x:A,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:A,y:r,run(n){n.onMouseMove&&n.onMouseMove()}})}},I_=typeof window<"u"?window:null,L_=typeof fetch<"u"?fetch.bind(void 0):null,dl=class{constructor(e){var{fetch:A=L_,window:r=I_}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Pp,this.mouse=new Rp(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=A}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(A=>A());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:A,ctx:r,aspectRatio:n,width:i,desiredWidth:s,height:a,desiredHeight:o,minX:l=0,minY:h=0,refX:v,refY:m,clip:g=!1,clipX:C=0,clipY:F=0}=e,_=wl(n).replace(/^defer\s/,""),[x,H]=_.split(" "),D=x||"xMidYMid",k=H||"meet",re=i/s,fe=a/o,Ae=Math.min(re,fe),j=Math.max(re,fe),N=s,Z=o;k==="meet"&&(N*=Ae,Z*=Ae),k==="slice"&&(N*=j,Z*=j);var I=new Qt(A,"refX",v),O=new Qt(A,"refY",m),Y=I.hasValue()&&O.hasValue();if(Y&&r.translate(-Ae*I.getPixels("x"),-Ae*O.getPixels("y")),g){var ee=Ae*C,ce=Ae*F;r.beginPath(),r.moveTo(ee,ce),r.lineTo(i,ce),r.lineTo(i,a),r.lineTo(ee,a),r.closePath(),r.clip()}if(!Y){var be=k==="meet"&&Ae===fe,Fe=k==="slice"&&j===fe,de=k==="meet"&&Ae===re,Ee=k==="slice"&&j===re;D.startsWith("xMid")&&(be||Fe)&&r.translate(i/2-N/2,0),D.endsWith("YMid")&&(de||Ee)&&r.translate(0,a/2-Z/2),D.startsWith("xMax")&&(be||Fe)&&r.translate(i-N,0),D.endsWith("YMax")&&(de||Ee)&&r.translate(0,a-Z)}switch(!0){case D==="none":r.scale(re,fe);break;case k==="meet":r.scale(Ae,Ae);break;case k==="slice":r.scale(j,j);break}r.translate(-l,-h)}start(e){var{enableRedraw:A=!1,ignoreMouse:r=!1,ignoreAnimation:n=!1,ignoreDimensions:i=!1,ignoreClear:s=!1,forceRedraw:a,scaleWidth:o,scaleHeight:l,offsetX:h,offsetY:v}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:m,mouse:g}=this,C=1e3/m;if(this.frameDuration=C,this.readyPromise=new Promise(D=>{this.resolveReady=D}),this.isReady()&&this.render(e,i,s,o,l,h,v),!!A){var F=Date.now(),_=F,x=0,H=()=>{F=Date.now(),x=F-_,x>=C&&(_=F-x%C,this.shouldUpdate(n,a)&&(this.render(e,i,s,o,l,h,v),g.runEvents())),this.intervalId=(0,Tp.default)(H)};r||g.start(),this.intervalId=(0,Tp.default)(H)}}stop(){this.intervalId&&(Tp.default.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,A){if(!e){var{frameDuration:r}=this,n=this.animations.reduce((i,s)=>s.update(r)||i,!1);if(n)return!0}return!!(typeof A=="function"&&A()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,A,r,n,i,s,a){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:l,viewPort:h,ctx:v,isFirstRender:m}=this,g=v.canvas;h.clear(),g.width&&g.height?h.setCurrent(g.width,g.height):h.setCurrent(o,l);var C=e.getStyle("width"),F=e.getStyle("height");!A&&(m||typeof n!="number"&&typeof i!="number")&&(C.hasValue()&&(g.width=C.getPixels("x"),g.style&&(g.style.width="".concat(g.width,"px"))),F.hasValue()&&(g.height=F.getPixels("y"),g.style&&(g.style.height="".concat(g.height,"px"))));var _=g.clientWidth||g.width,x=g.clientHeight||g.height;if(A&&C.hasValue()&&F.hasValue()&&(_=C.getPixels("x"),x=F.getPixels("y")),h.setCurrent(_,x),typeof s=="number"&&e.getAttribute("x",!0).setValue(s),typeof a=="number"&&e.getAttribute("y",!0).setValue(a),typeof n=="number"||typeof i=="number"){var H=gi(e.getAttribute("viewBox").getString()),D=0,k=0;if(typeof n=="number"){var re=e.getStyle("width");re.hasValue()?D=re.getPixels("x")/n:isNaN(H[2])||(D=H[2]/n)}if(typeof i=="number"){var fe=e.getStyle("height");fe.hasValue()?k=fe.getPixels("y")/i:isNaN(H[3])||(k=H[3]/i)}D||(D=k),k||(k=D),e.getAttribute("width",!0).setValue(n),e.getAttribute("height",!0).setValue(i);var Ae=e.getStyle("transform",!0,!0);Ae.setValue("".concat(Ae.getString()," scale(").concat(1/D,", ").concat(1/k,")"))}r||v.clearRect(0,0,_,x),e.render(v),m&&(this.isFirstRender=!1)}};dl.defaultWindow=I_;dl.defaultFetch=L_;({defaultFetch:Nq}=dl),Oq=typeof DOMParser<"u"?DOMParser:null,Pc=class{constructor(){var{fetch:e=Nq,DOMParser:A=Oq}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=A}parse(e){var A=this;return es(function*(){return e.startsWith("<")?A.parseFromString(e):A.load(e)})()}parseFromString(e){var A=new this.DOMParser;try{return this.checkDocument(A.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(A.parseFromString(e,"text/xml"))}}checkDocument(e){var A=e.getElementsByTagName("parsererror")[0];if(A)throw new Error(A.textContent);return e}load(e){var A=this;return es(function*(){var r=yield A.fetch(e),n=yield r.text();return A.parseFromString(n)})()}},kp=class{constructor(e,A){this.type="translate",this.point=null,this.point=Rr.parse(A)}apply(e){var{x:A,y:r}=this.point;e.translate(A||0,r||0)}unapply(e){var{x:A,y:r}=this.point;e.translate(-1*A||0,-1*r||0)}applyToPoint(e){var{x:A,y:r}=this.point;e.applyTransform([1,0,0,1,A||0,r||0])}},Dp=class{constructor(e,A,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=gi(A);this.angle=new Qt(e,"angle",n[0]),this.originX=r[0],this.originY=r[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(e){var{cx:A,cy:r,originX:n,originY:i,angle:s}=this,a=A+n.getPixels("x"),o=r+i.getPixels("y");e.translate(a,o),e.rotate(s.getRadians()),e.translate(-a,-o)}unapply(e){var{cx:A,cy:r,originX:n,originY:i,angle:s}=this,a=A+n.getPixels("x"),o=r+i.getPixels("y");e.translate(a,o),e.rotate(-1*s.getRadians()),e.translate(-a,-o)}applyToPoint(e){var{cx:A,cy:r,angle:n}=this,i=n.getRadians();e.applyTransform([1,0,0,1,A||0,r||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-A||0,-r||0])}},Hp=class{constructor(e,A,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=Rr.parseScale(A);(n.x===0||n.y===0)&&(n.x=hl,n.y=hl),this.scale=n,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:A,y:r},originX:n,originY:i}=this,s=n.getPixels("x"),a=i.getPixels("y");e.translate(s,a),e.scale(A,r||A),e.translate(-s,-a)}unapply(e){var{scale:{x:A,y:r},originX:n,originY:i}=this,s=n.getPixels("x"),a=i.getPixels("y");e.translate(s,a),e.scale(1/A,1/r||A),e.translate(-s,-a)}applyToPoint(e){var{x:A,y:r}=this.scale;e.applyTransform([A||0,0,0,r||0,0,0])}},Kf=class{constructor(e,A,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=gi(A),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:A,originY:r,matrix:n}=this,i=A.getPixels("x"),s=r.getPixels("y");e.translate(i,s),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.translate(-i,-s)}unapply(e){var{originX:A,originY:r,matrix:n}=this,i=n[0],s=n[2],a=n[4],o=n[1],l=n[3],h=n[5],v=0,m=0,g=1,C=1/(i*(l*g-h*m)-s*(o*g-h*v)+a*(o*m-l*v)),F=A.getPixels("x"),_=r.getPixels("y");e.translate(F,_),e.transform(C*(l*g-h*m),C*(h*v-o*g),C*(a*m-s*g),C*(i*g-a*v),C*(s*h-a*l),C*(a*o-i*h)),e.translate(-F,-_)}applyToPoint(e){e.applyTransform(this.matrix)}},jf=class extends Kf{constructor(e,A,r){super(e,A,r),this.type="skew",this.angle=null,this.angle=new Qt(e,"angle",A)}},Mp=class extends jf{constructor(e,A,r){super(e,A,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}},qp=class extends jf{constructor(e,A,r){super(e,A,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}};pl=class t{constructor(e,A,r){this.document=e,this.transforms=[];var n=Pq(A);n.forEach(i=>{if(i!=="none"){var[s,a]=Rq(i),o=t.transformTypes[s];typeof o<"u"&&this.transforms.push(new o(this.document,a,r))}})}static fromElement(e,A){var r=A.getStyle("transform",!1,!0),[n,i=n]=A.getStyle("transform-origin",!1,!0).split(),s=[n,i];return r.hasValue()?new t(e,r.getString(),s):null}apply(e){for(var{transforms:A}=this,r=A.length,n=0;n<r;n++)A[n].apply(e)}unapply(e){for(var{transforms:A}=this,r=A.length,n=r-1;n>=0;n--)A[n].unapply(e)}applyToPoint(e){for(var{transforms:A}=this,r=A.length,n=0;n<r;n++)A[n].applyToPoint(e)}};pl.transformTypes={translate:kp,rotate:Dp,scale:Hp,matrix:Kf,skewX:Mp,skewY:qp};zA=class t{constructor(e,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=A,this.captureTextNodes=r,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!A||A.nodeType!==1)){if(Array.from(A.attributes).forEach(a=>{var o=__(a.nodeName);this.attributes[o]=new Qt(e,o,a.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var n=this.getAttribute("style").getString().split(";").map(a=>a.trim());n.forEach(a=>{if(a){var[o,l]=a.split(":").map(h=>h.trim());this.styles[o]=new Qt(e,o,l)}})}var{definitions:i}=e,s=this.getAttribute("id");s.hasValue()&&(i[s.getString()]||(i[s.getString()]=this)),Array.from(A.childNodes).forEach(a=>{if(a.nodeType===1)this.addChild(a);else if(r&&(a.nodeType===3||a.nodeType===4)){var o=e.createTextNode(a);o.getText().length>0&&this.addChild(o)}})}}getAttribute(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&A){var n=new Qt(this.document,e,"");return this.attributes[e]=n,n}return r||Qt.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return Qt.empty(this.document)}getStyle(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[e];if(n)return n;var i=this.getAttribute(e);if(i!=null&&i.hasValue())return this.styles[e]=i,i;if(!r){var{parent:s}=this;if(s){var a=s.getStyle(e);if(a!=null&&a.hasValue())return a}}if(A){var o=new Qt(this.document,e,"");return this.styles[e]=o,o}return n||Qt.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var A=this.getStyle("mask").getDefinition();A&&(this.applyEffects(e),A.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var A=pl.fromElement(this.document,this);A&&A.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(A=>{A.render(e)})}addChild(e){var A=e instanceof t?e:this.document.createElement(e);A.parent=this,t.ignoreChildTypes.includes(A.type)||this.children.push(A)}matchesSelector(e){var A,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var n=(A=r.getAttribute)===null||A===void 0?void 0:A.call(r,"class");return!n||n===""?!1:n.split(" ").some(i=>".".concat(i)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:A}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var n=e[r],i=A[r];if(n)for(var s in n){var a=this.stylesSpecificity[s];typeof a>"u"&&(a="000"),i>=a&&(this.styles[s]=n[s],this.stylesSpecificity[s]=i)}}}removeStyles(e,A){var r=A.reduce((n,i)=>{var s=e.getStyle(i);if(!s.hasValue())return n;var a=s.getString();return s.setValue(""),[...n,[i,a]]},[]);return r}restoreStyles(e,A){A.forEach(r=>{var[n,i]=r;e.getStyle(n,!0).setValue(i)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}};zA.ignoreChildTypes=["title"];Kp=class extends zA{constructor(e,A,r){super(e,A,r)}};Aa=class t{constructor(e,A,r,n,i,s){var a=s?typeof s=="string"?t.parse(s):s:{};this.fontFamily=i||a.fontFamily,this.fontSize=n||a.fontSize,this.fontStyle=e||a.fontStyle,this.fontWeight=r||a.fontWeight,this.fontVariant=A||a.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",A=arguments.length>1?arguments[1]:void 0,r="",n="",i="",s="",a="",o=wl(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(h=>{switch(!0){case(!l.fontStyle&&t.styles.includes(h)):h!=="inherit"&&(r=h),l.fontStyle=!0;break;case(!l.fontVariant&&t.variants.includes(h)):h!=="inherit"&&(n=h),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&t.weights.includes(h)):h!=="inherit"&&(i=h),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:h!=="inherit"&&([s]=h.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:h!=="inherit"&&(a+=h)}}),new t(r,n,i,s,a,A)}toString(){return[Hq(this.fontStyle),this.fontVariant,Mq(this.fontWeight),this.fontSize,Dq(this.fontFamily)].join(" ").trim()}};Aa.styles="normal|italic|oblique|inherit";Aa.variants="normal|small-caps|inherit";Aa.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";wi=class{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=A,this.x2=r,this.y2=n,this.addPoint(e,A),this.addPoint(r,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,A){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof A<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=A,this.y2=A),A<this.y1&&(this.y1=A),A>this.y2&&(this.y2=A))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:A,y1:r,x2:n,y2:i}=e;this.addPoint(A,r),this.addPoint(n,i)}}sumCubic(e,A,r,n,i){return Math.pow(1-e,3)*A+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*n+Math.pow(e,3)*i}bezierCurveAdd(e,A,r,n,i){var s=6*A-12*r+6*n,a=-3*A+9*r-9*n+3*i,o=3*r-3*A;if(a===0){if(s===0)return;var l=-o/s;0<l&&l<1&&(e?this.addX(this.sumCubic(l,A,r,n,i)):this.addY(this.sumCubic(l,A,r,n,i)));return}var h=Math.pow(s,2)-4*o*a;if(!(h<0)){var v=(-s+Math.sqrt(h))/(2*a);0<v&&v<1&&(e?this.addX(this.sumCubic(v,A,r,n,i)):this.addY(this.sumCubic(v,A,r,n,i)));var m=(-s-Math.sqrt(h))/(2*a);0<m&&m<1&&(e?this.addX(this.sumCubic(m,A,r,n,i)):this.addY(this.sumCubic(m,A,r,n,i)))}}addBezierCurve(e,A,r,n,i,s,a,o){this.addPoint(e,A),this.addPoint(a,o),this.bezierCurveAdd(!0,e,r,i,a),this.bezierCurveAdd(!1,A,n,s,o)}addQuadraticCurve(e,A,r,n,i,s){var a=e+.6666666666666666*(r-e),o=A+2/3*(n-A),l=a+1/3*(i-e),h=o+1/3*(s-A);this.addBezierCurve(e,A,a,l,o,h,i,s)}isPointInBox(e,A){var{x1:r,y1:n,x2:i,y2:s}=this;return r<=e&&e<=i&&n<=A&&A<=s}},Wt=class extends Me{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Rr(0,0),this.control=new Rr(0,0),this.current=new Rr(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:A}=this;return e>=A.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new Rr(this.command[e],this.command[A]);return this.makeAbsolute(r)}getAsControlPoint(e,A){var r=this.getPoint(e,A);return this.control=r,r}getAsCurrentPoint(e,A){var r=this.getPoint(e,A);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==Me.CURVE_TO&&e!==Me.SMOOTH_CURVE_TO&&e!==Me.QUAD_TO&&e!==Me.SMOOTH_QUAD_TO)return this.current;var{current:{x:A,y:r},control:{x:n,y:i}}=this,s=new Rr(2*A-n,2*r-i);return s}makeAbsolute(e){if(this.command.relative){var{x:A,y:r}=this.current;e.x+=A,e.y+=r}return e}addMarker(e,A,r){var{points:n,angles:i}=this;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(e,A?A.angleTo(e):null)}addMarkerAngle(e,A){this.points.push(e),this.angles.push(A)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,A=e.length,r=0;r<A;r++)if(!e[r]){for(var n=r+1;n<A;n++)if(e[n]){e[r]=e[n];break}}return e}},ts=class extends zA{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,A=this;A;){var r=A.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),A=A.parent}return e}setContext(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!A){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var a=r.getFillStyleDefinition(this,n);a&&(e.fillStyle=a)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();o!=="inherit"&&(e.fillStyle=o==="none"?"rgba(0,0,0,0)":o)}if(n.hasValue()){var l=new Qt(this.document,"fill",e.fillStyle).addOpacity(n).getColor();e.fillStyle=l}if(i.isUrlDefinition()){var h=i.getFillStyleDefinition(this,s);h&&(e.strokeStyle=h)}else if(i.hasValue()){i.getString()==="currentColor"&&i.setValue(this.getStyle("color").getColor());var v=i.getString();v!=="inherit"&&(e.strokeStyle=v==="none"?"rgba(0,0,0,0)":v)}if(s.hasValue()){var m=new Qt(this.document,"stroke",e.strokeStyle).addOpacity(s).getString();e.strokeStyle=m}var g=this.getStyle("stroke-width");if(g.hasValue()){var C=g.getPixels();e.lineWidth=C||hl}var F=this.getStyle("stroke-linecap"),_=this.getStyle("stroke-linejoin"),x=this.getStyle("stroke-miterlimit"),H=this.getStyle("stroke-dasharray"),D=this.getStyle("stroke-dashoffset");if(F.hasValue()&&(e.lineCap=F.getString()),_.hasValue()&&(e.lineJoin=_.getString()),x.hasValue()&&(e.miterLimit=x.getNumber()),H.hasValue()&&H.getString()!=="none"){var k=gi(H.getString());typeof e.setLineDash<"u"?e.setLineDash(k):typeof e.webkitLineDash<"u"?e.webkitLineDash=k:typeof e.mozDash<"u"&&!(k.length===1&&k[0]===0)&&(e.mozDash=k);var re=D.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=re:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=re:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=re)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var fe=this.getStyle("font"),Ae=this.getStyle("font-style"),j=this.getStyle("font-variant"),N=this.getStyle("font-weight"),Z=this.getStyle("font-size"),I=this.getStyle("font-family"),O=new Aa(Ae.getString(),j.getString(),N.getString(),Z.hasValue()?"".concat(Z.getPixels(!0),"px"):"",I.getString(),Aa.parse(fe.getString(),e.font));Ae.setValue(O.fontStyle),j.setValue(O.fontVariant),N.setValue(O.fontWeight),Z.setValue(O.fontSize),I.setValue(O.fontFamily),e.font=O.toString(),Z.isPixels()&&(this.document.emSize=Z.getPixels(),this.modifiedEmSizeStack=!0)}A||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}},Fr=class t extends ts{constructor(e,A,r){super(e,A,r),this.type="path",this.pathParser=null,this.pathParser=new Wt(this.getAttribute("d").getString())}path(e){var{pathParser:A}=this,r=new wi;for(A.reset(),e&&e.beginPath();!A.isEnd();)switch(A.next().type){case Wt.MOVE_TO:this.pathM(e,r);break;case Wt.LINE_TO:this.pathL(e,r);break;case Wt.HORIZ_LINE_TO:this.pathH(e,r);break;case Wt.VERT_LINE_TO:this.pathV(e,r);break;case Wt.CURVE_TO:this.pathC(e,r);break;case Wt.SMOOTH_CURVE_TO:this.pathS(e,r);break;case Wt.QUAD_TO:this.pathQ(e,r);break;case Wt.SMOOTH_QUAD_TO:this.pathT(e,r);break;case Wt.ARC:this.pathA(e,r);break;case Wt.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,A=e.getMarkerPoints(),r=e.getMarkerAngles(),n=A.map((i,s)=>[i,r[s]]);return n}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var A=this.getStyle("fill-rule");e.fillStyle!==""&&(A.getString("inherit")!=="inherit"?e.fill(A.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),[l,h]=r[0];o.render(e,l,h)}if(s.isUrlDefinition())for(var v=s.getDefinition(),m=1;m<n;m++){var[g,C]=r[m];v.render(e,g,C)}if(a.isUrlDefinition()){var F=a.getDefinition(),[_,x]=r[n];F.render(e,_,x)}}}static pathM(e){var A=e.getAsCurrentPoint();return e.start=e.current,{point:A}}pathM(e,A){var{pathParser:r}=this,{point:n}=t.pathM(r),{x:i,y:s}=n;r.addMarker(n),A.addPoint(i,s),e&&e.moveTo(i,s)}static pathL(e){var{current:A}=e,r=e.getAsCurrentPoint();return{current:A,point:r}}pathL(e,A){var{pathParser:r}=this,{current:n,point:i}=t.pathL(r),{x:s,y:a}=i;r.addMarker(i,n),A.addPoint(s,a),e&&e.lineTo(s,a)}static pathH(e){var{current:A,command:r}=e,n=new Rr((r.relative?A.x:0)+r.x,A.y);return e.current=n,{current:A,point:n}}pathH(e,A){var{pathParser:r}=this,{current:n,point:i}=t.pathH(r),{x:s,y:a}=i;r.addMarker(i,n),A.addPoint(s,a),e&&e.lineTo(s,a)}static pathV(e){var{current:A,command:r}=e,n=new Rr(A.x,(r.relative?A.y:0)+r.y);return e.current=n,{current:A,point:n}}pathV(e,A){var{pathParser:r}=this,{current:n,point:i}=t.pathV(r),{x:s,y:a}=i;r.addMarker(i,n),A.addPoint(s,a),e&&e.lineTo(s,a)}static pathC(e){var{current:A}=e,r=e.getPoint("x1","y1"),n=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:A,point:r,controlPoint:n,currentPoint:i}}pathC(e,A){var{pathParser:r}=this,{current:n,point:i,controlPoint:s,currentPoint:a}=t.pathC(r);r.addMarker(a,s,i),A.addBezierCurve(n.x,n.y,i.x,i.y,s.x,s.y,a.x,a.y),e&&e.bezierCurveTo(i.x,i.y,s.x,s.y,a.x,a.y)}static pathS(e){var{current:A}=e,r=e.getReflectedControlPoint(),n=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:A,point:r,controlPoint:n,currentPoint:i}}pathS(e,A){var{pathParser:r}=this,{current:n,point:i,controlPoint:s,currentPoint:a}=t.pathS(r);r.addMarker(a,s,i),A.addBezierCurve(n.x,n.y,i.x,i.y,s.x,s.y,a.x,a.y),e&&e.bezierCurveTo(i.x,i.y,s.x,s.y,a.x,a.y)}static pathQ(e){var{current:A}=e,r=e.getAsControlPoint("x1","y1"),n=e.getAsCurrentPoint();return{current:A,controlPoint:r,currentPoint:n}}pathQ(e,A){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:s}=t.pathQ(r);r.addMarker(s,i,i),A.addQuadraticCurve(n.x,n.y,i.x,i.y,s.x,s.y),e&&e.quadraticCurveTo(i.x,i.y,s.x,s.y)}static pathT(e){var{current:A}=e,r=e.getReflectedControlPoint();e.control=r;var n=e.getAsCurrentPoint();return{current:A,controlPoint:r,currentPoint:n}}pathT(e,A){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:s}=t.pathT(r);r.addMarker(s,i,i),A.addQuadraticCurve(n.x,n.y,i.x,i.y,s.x,s.y),e&&e.quadraticCurveTo(i.x,i.y,s.x,s.y)}static pathA(e){var{current:A,command:r}=e,{rX:n,rY:i,xRot:s,lArcFlag:a,sweepFlag:o}=r,l=s*(Math.PI/180),h=e.getAsCurrentPoint(),v=new Rr(Math.cos(l)*(A.x-h.x)/2+Math.sin(l)*(A.y-h.y)/2,-Math.sin(l)*(A.x-h.x)/2+Math.cos(l)*(A.y-h.y)/2),m=Math.pow(v.x,2)/Math.pow(n,2)+Math.pow(v.y,2)/Math.pow(i,2);m>1&&(n*=Math.sqrt(m),i*=Math.sqrt(m));var g=(a===o?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(v.y,2)-Math.pow(i,2)*Math.pow(v.x,2))/(Math.pow(n,2)*Math.pow(v.y,2)+Math.pow(i,2)*Math.pow(v.x,2)));isNaN(g)&&(g=0);var C=new Rr(g*n*v.y/i,g*-i*v.x/n),F=new Rr((A.x+h.x)/2+Math.cos(l)*C.x-Math.sin(l)*C.y,(A.y+h.y)/2+Math.sin(l)*C.x+Math.cos(l)*C.y),_=b2([1,0],[(v.x-C.x)/n,(v.y-C.y)/i]),x=[(v.x-C.x)/n,(v.y-C.y)/i],H=[(-v.x-C.x)/n,(-v.y-C.y)/i],D=b2(x,H);return Op(x,H)<=-1&&(D=Math.PI),Op(x,H)>=1&&(D=0),{currentPoint:h,rX:n,rY:i,sweepFlag:o,xAxisRotation:l,centp:F,a1:_,ad:D}}pathA(e,A){var{pathParser:r}=this,{currentPoint:n,rX:i,rY:s,sweepFlag:a,xAxisRotation:o,centp:l,a1:h,ad:v}=t.pathA(r),m=1-a?1:-1,g=h+m*(v/2),C=new Rr(l.x+i*Math.cos(g),l.y+s*Math.sin(g));if(r.addMarkerAngle(C,g-m*Math.PI/2),r.addMarkerAngle(n,g-m*Math.PI),A.addPoint(n.x,n.y),e&&!isNaN(h)&&!isNaN(v)){var F=i>s?i:s,_=i>s?1:i/s,x=i>s?s/i:1;e.translate(l.x,l.y),e.rotate(o),e.scale(_,x),e.arc(0,0,F,h,h+v,!!(1-a)),e.scale(1/_,1/x),e.rotate(-o),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,A){t.pathZ(this.pathParser),e&&A.x1!==A.x2&&A.y1!==A.y2&&e.closePath()}},Vf=class extends Fr{constructor(e,A,r){super(e,A,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}},Bo=class t extends ts{constructor(e,A,r){super(e,A,new.target===t?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,A);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var A=null;return this.children.forEach((r,n)=>{var i=this.getChildBoundingBox(e,this,this,n);A?A.addBoundingBox(i):A=i}),A}getFontSize(){var{document:e,parent:A}=this,r=Aa.parse(e.ctx.font).fontSize,n=A.getStyle("font-size").getNumber(r);return n}getTElementBoundingBox(e){var A=this.getFontSize();return new wi(this.x,this.y-A,this.x+this.measureText(e),this.y)}getGlyph(e,A,r){var n=A[r],i=null;if(e.isArabic){var s=A.length,a=A[r-1],o=A[r+1],l="isolated";if((r===0||a===" ")&&r<s-1&&o!==" "&&(l="terminal"),r>0&&a!==" "&&r<s-1&&o!==" "&&(l="medial"),r>0&&a!==" "&&(r===s-1||o===" ")&&(l="initial"),typeof e.glyphs[n]<"u"){var h=e.glyphs[n];i=h instanceof Vf?h:h[l]}}else i=e.glyphs[n];return i||(i=e.missingGlyph),i}getText(){return""}getTextFromNode(e){var A=e||this.node,r=Array.from(A.parentNode.childNodes),n=r.indexOf(A),i=r.length-1,s=wl(A.textContent||"");return n===0&&(s=U_(s)),n===i&&(s=x_(s)),s}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,n)=>{this.renderChild(e,this,this,n)});var{mouse:A}=this.document.screen;A.isWorking()&&A.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:A,parent:r}=this,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i){for(var{unitsPerEm:s}=i.fontFace,a=Aa.parse(A.ctx.font),o=r.getStyle("font-size").getNumber(a.fontSize),l=r.getStyle("font-style").getString(a.fontStyle),h=o/s,v=i.isRTL?n.split("").reverse().join(""):n,m=gi(r.getAttribute("dx").getString()),g=v.length,C=0;C<g;C++){var F=this.getGlyph(i,v,C);e.translate(this.x,this.y),e.scale(h,-h);var _=e.lineWidth;e.lineWidth=e.lineWidth*s/o,l==="italic"&&e.transform(1,0,.4,1,0,0),F.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=_,e.scale(1/h,-1/h),e.translate(-this.x,-this.y),this.x+=o*(F.horizAdvX||i.horizAdvX)/s,typeof m[C]<"u"&&!isNaN(m[C])&&(this.x+=m[C])}return}var{x,y:H}=this;e.fillStyle&&e.fillText(n,x,H),e.strokeStyle&&e.strokeText(n,x,H)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],A=e.getStyle("text-anchor").getString("start"),r=!1,n=0;A==="start"&&!r||A==="end"&&r?n=e.x-this.minX:A==="end"&&!r||A==="start"&&r?n=e.x-this.maxX:n=e.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((A,r)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,A,r,n){var i=r.children[n];i.children.length>0?i.children.forEach((s,a)=>{A.adjustChildCoordinatesRecursiveCore(e,A,i,a)}):this.adjustChildCoordinates(e,A,r,n)}adjustChildCoordinates(e,A,r,n){var i=r.children[n];if(typeof i.measureText!="function")return i;e.save(),i.setContext(e,!0);var s=i.getAttribute("x"),a=i.getAttribute("y"),o=i.getAttribute("dx"),l=i.getAttribute("dy"),h=i.getStyle("font-family").getDefinition(),v=!!h&&h.isRTL;n===0&&(s.hasValue()||s.setValue(i.getInheritedAttribute("x")),a.hasValue()||a.setValue(i.getInheritedAttribute("y")),o.hasValue()||o.setValue(i.getInheritedAttribute("dx")),l.hasValue()||l.setValue(i.getInheritedAttribute("dy")));var m=i.measureText(e);return v&&(A.x-=m),s.hasValue()?(A.applyAnchoring(),i.x=s.getPixels("x"),o.hasValue()&&(i.x+=o.getPixels("x"))):(o.hasValue()&&(A.x+=o.getPixels("x")),i.x=A.x),A.x=i.x,v||(A.x+=m),a.hasValue()?(i.y=a.getPixels("y"),l.hasValue()&&(i.y+=l.getPixels("y"))):(l.hasValue()&&(A.y+=l.getPixels("y")),i.y=A.y),A.y=i.y,A.leafTexts.push(i),A.minX=Math.min(A.minX,i.x,i.x+m),A.maxX=Math.max(A.maxX,i.x,i.x+m),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,A,r,n){var i=r.children[n];if(typeof i.getBoundingBox!="function")return null;var s=i.getBoundingBox(e);return s?(i.children.forEach((a,o)=>{var l=A.getChildBoundingBox(e,A,i,o);s.addBoundingBox(l)}),s):null}renderChild(e,A,r,n){var i=r.children[n];i.render(e),i.children.forEach((s,a)=>{A.renderChild(e,A,i,a)})}measureText(e){var{measureCache:A}=this;if(~A)return A;var r=this.getText(),n=this.measureTargetText(e,r);return this.measureCache=n,n}measureTargetText(e,A){if(!A.length)return 0;var{parent:r}=this,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),s=n.isRTL?A.split("").reverse().join(""):A,a=gi(r.getAttribute("dx").getString()),o=s.length,l=0,h=0;h<o;h++){var v=this.getGlyph(n,s,h);l+=(v.horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,typeof a[h]<"u"&&!isNaN(a[h])&&(l+=a[h])}return l}if(!e.measureText)return A.length*10;e.save(),this.setContext(e,!0);var{width:m}=e.measureText(A);return this.clearContext(e),e.restore(),m}getInheritedAttribute(e){for(var A=this;A instanceof t&&A.isFirstChild();){var r=A.parent.getAttribute(e);if(r.hasValue(!0))return r.getValue("0");A=A.parent}return null}},Gf=class t extends Bo{constructor(e,A,r){super(e,A,new.target===t?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}},Q2=class extends Gf{constructor(){super(...arguments),this.type="textNode"}},bo=class extends ts{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var A,{document:r}=this,{screen:n,window:i}=r,s=e.canvas;if(n.setDefaults(e),s.style&&typeof e.font<"u"&&i&&typeof i.getComputedStyle<"u"){e.font=i.getComputedStyle(s).getPropertyValue("font");var a=new Qt(r,"fontSize",Aa.parse(e.font).fontSize);a.hasValue()&&(r.rootEmSize=a.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:l}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),v=this.getAttribute("refY"),m=this.getAttribute("viewBox"),g=m.hasValue()?gi(m.getString()):null,C=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",F=0,_=0,x=0,H=0;g&&(F=g[0],_=g[1]),this.root||(o=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(x=F,H=_,F=0,_=0)),n.viewPort.setCurrent(o,l),this.node&&(!this.parent||((A=this.node.parentNode)===null||A===void 0?void 0:A.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),g&&(o=g[2],l=g[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:l,minX:F,minY:_,refX:h.getValue(),refY:v.getValue(),clip:C,clipX:x,clipY:H}),g&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),a=this.getAttribute("style"),o=n.getNumber(0),l=i.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(e),i.setValue(A),s.hasValue()||s.setValue("0 0 ".concat(o||e," ").concat(l||A)),a.hasValue()){var v=this.getStyle("width"),m=this.getStyle("height");v.hasValue()&&v.setValue("".concat(e,"px")),m.hasValue()&&m.setValue("".concat(A,"px"))}}},zf=class extends Fr{constructor(){super(...arguments),this.type="rect"}path(e){var A=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),a=this.getAttribute("ry"),o=s.getPixels("x"),l=a.getPixels("y");if(s.hasValue()&&!a.hasValue()&&(l=o),a.hasValue()&&!s.hasValue()&&(o=l),o=Math.min(o,n/2),l=Math.min(l,i/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),i>0&&n>0&&(e.moveTo(A+o,r),e.lineTo(A+n-o,r),e.bezierCurveTo(A+n-o+h*o,r,A+n,r+l-h*l,A+n,r+l),e.lineTo(A+n,r+i-l),e.bezierCurveTo(A+n,r+i-l+h*l,A+n-o+h*o,r+i,A+n-o,r+i),e.lineTo(A+o,r+i),e.bezierCurveTo(A+o-h*o,r+i,A,r+i-l+h*l,A,r+i-l),e.lineTo(A,r+l),e.bezierCurveTo(A,r+l-h*l,A+o-h*o,r,A+o,r),e.closePath())}return new wi(A,r,A+n,r+i)}getMarkers(){return null}},jp=class extends Fr{constructor(){super(...arguments),this.type="circle"}path(e){var A=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return e&&n>0&&(e.beginPath(),e.arc(A,r,n,0,Math.PI*2,!1),e.closePath()),new wi(A-n,r-n,A+n,r+n)}getMarkers(){return null}},Vp=class extends Fr{constructor(){super(...arguments),this.type="ellipse"}path(e){var A=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return e&&r>0&&n>0&&(e.beginPath(),e.moveTo(i+r,s),e.bezierCurveTo(i+r,s+A*n,i+A*r,s+n,i,s+n),e.bezierCurveTo(i-A*r,s+n,i-r,s+A*n,i-r,s),e.bezierCurveTo(i-r,s-A*n,i-A*r,s-n,i,s-n),e.bezierCurveTo(i+A*r,s-n,i+r,s-A*n,i+r,s),e.closePath()),new wi(i-r,s-n,i+r,s+n)}getMarkers(){return null}},Gp=class extends Fr{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Rr(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Rr(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:A,y:r},{x:n,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(A,r),e.lineTo(n,i)),new wi(A,r,n,i)}getMarkers(){var[e,A]=this.getPoints(),r=e.angleTo(A);return[[e,r],[A,r]]}},Wf=class extends Fr{constructor(e,A,r){super(e,A,r),this.type="polyline",this.points=[],this.points=Rr.parsePath(this.getAttribute("points").getString())}path(e){var{points:A}=this,[{x:r,y:n}]=A,i=new wi(r,n);return e&&(e.beginPath(),e.moveTo(r,n)),A.forEach(s=>{var{x:a,y:o}=s;i.addPoint(a,o),e&&e.lineTo(a,o)}),i}getMarkers(){var{points:e}=this,A=e.length-1,r=[];return e.forEach((n,i)=>{i!==A&&r.push([n,n.angleTo(e[i+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}},zp=class extends Wf{constructor(){super(...arguments),this.type="polygon"}path(e){var A=super.path(e),[{x:r,y:n}]=this.points;return e&&(e.lineTo(r,n),e.closePath()),A}},Wp=class extends zA{constructor(){super(...arguments),this.type="pattern"}createPattern(e,A,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),s=new bo(this.document,null);s.attributes.viewBox=new Qt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new Qt(this.document,"width","".concat(n,"px")),s.attributes.height=new Qt(this.document,"height","".concat(i,"px")),s.attributes.transform=new Qt(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var a=this.document.createCanvas(n,i),o=a.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&o.translate(l.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var v=-1;v<=1;v++)for(var m=-1;m<=1;m++)o.save(),s.attributes.x=new Qt(this.document,"x",v*a.width),s.attributes.y=new Qt(this.document,"y",m*a.height),s.render(o),o.restore();var g=e.createPattern(a,"repeat");return g}},$p=class extends zA{constructor(){super(...arguments),this.type="marker"}render(e,A,r){if(A){var{x:n,y:i}=A,s=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(n,i),s==="auto"&&e.rotate(r),a==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new bo(this.document,null);o.type=this.type,o.attributes.viewBox=new Qt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new Qt(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new Qt(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new Qt(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new Qt(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new Qt(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new Qt(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new Qt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(e),e.restore(),a==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),s==="auto"&&e.rotate(-r),e.translate(-n,-i)}}},Xp=class extends zA{constructor(){super(...arguments),this.type="defs"}render(){}},Rc=class extends ts{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var A=new wi;return this.children.forEach(r=>{A.addBoundingBox(r.getBoundingBox(e))}),A}},$f=class extends zA{constructor(e,A,r){super(e,A,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:i}=this;i.forEach(s=>{s.type==="stop"&&n.push(s)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,A,r){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:i}=n,s=this.getGradient(e,A);if(!s)return this.addParentOpacity(r,i[i.length-1].color);if(i.forEach(_=>{s.addColorStop(_.offset,this.addParentOpacity(r,_.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:a}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:l}=a.screen,[h]=l.viewPorts,v=new zf(a,null);v.attributes.x=new Qt(a,"x",-o/3),v.attributes.y=new Qt(a,"y",-o/3),v.attributes.width=new Qt(a,"width",o),v.attributes.height=new Qt(a,"height",o);var m=new Rc(a,null);m.attributes.transform=new Qt(a,"transform",this.getAttribute("gradientTransform").getValue()),m.children=[v];var g=new bo(a,null);g.attributes.x=new Qt(a,"x",0),g.attributes.y=new Qt(a,"y",0),g.attributes.width=new Qt(a,"width",h.width),g.attributes.height=new Qt(a,"height",h.height),g.children=[m];var C=a.createCanvas(h.width,h.height),F=C.getContext("2d");return F.fillStyle=s,g.render(F),F.createPattern(C,"no-repeat")}return s}inheritStopContainer(e){this.attributesToInherit.forEach(A=>{!this.getAttribute(A).hasValue()&&e.getAttribute(A).hasValue()&&this.getAttribute(A,!0).setValue(e.getAttribute(A).getValue())})}addParentOpacity(e,A){if(e.hasValue()){var r=new Qt(this.document,"color",A);return r.addOpacity(e).getColor()}return A}},Yp=class extends $f{constructor(e,A,r){super(e,A,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,A){var r=this.getGradientUnits()==="objectBoundingBox",n=r?A.getBoundingBox(e):null;if(r&&!n)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&s===o?null:e.createLinearGradient(i,s,a,o)}},Jp=class extends $f{constructor(e,A,r){super(e,A,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,A){var r=this.getGradientUnits()==="objectBoundingBox",n=A.getBoundingBox(e);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,o=s;this.getAttribute("fx").hasValue()&&(a=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(a,o,h,i,s,l)}},Zp=class extends zA{constructor(e,A,r){super(e,A,r),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),s=this.getStyle("stop-color",!0);s.getString()===""&&s.setValue("#000"),i.hasValue()&&(s=s.addOpacity(i)),this.offset=n,this.color=s.getColor()}},kc=class extends zA{constructor(e,A,r){super(e,A,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Qt(e,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),A=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(A,!0):this.parent.getAttribute(A,!0)}calcValue(){var{initialUnits:e}=this,{progress:A,from:r,to:n}=this.getProgress(),i=r.getNumber()+(n.getNumber()-r.getNumber())*A;return e==="%"&&(i*=100),"".concat(i).concat(e)}update(e){var{parent:A}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(n==="freeze"&&!this.frozen)this.frozen=!0,A.animationFrozen=!0,A.animationFrozenValue=r.getString();else if(n==="remove"&&!this.removed)return this.removed=!0,r.setValue(A.animationFrozen?A.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var s=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var o=a.getString();s="".concat(o,"(").concat(s,")")}r.setValue(s),i=!0}return i}getProgress(){var{document:e,values:A}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(A.hasValue()){var n=r.progress*(A.getValue().length-1),i=Math.floor(n),s=Math.ceil(n);r.from=new Qt(e,"from",parseFloat(A.getValue()[i])),r.to=new Qt(e,"to",parseFloat(A.getValue()[s])),r.progress=(n-i)/(s-i)}else r.from=this.from,r.to=this.to;return r}},eg=class extends kc{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:A,to:r}=this.getProgress(),n=new Np.default(A.getColor()),i=new Np.default(r.getColor());if(n.ok&&i.ok){var s=n.r+(i.r-n.r)*e,a=n.g+(i.g-n.g)*e,o=n.b+(i.b-n.b)*e;return"rgb(".concat(Math.floor(s),", ").concat(Math.floor(a),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}},tg=class extends kc{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:A,to:r}=this.getProgress(),n=gi(A.getString()),i=gi(r.getString()),s=n.map((a,o)=>{var l=i[o];return a+(l-a)*e}).join(" ");return s}},Ag=class extends zA{constructor(e,A,r){super(e,A,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=e,{children:i}=this;for(var s of i)switch(s.type){case"font-face":{this.fontFace=s;var a=s.getStyle("font-family");a.hasValue()&&(n[a.getString()]=this);break}case"missing-glyph":this.missingGlyph=s;break;case"glyph":{var o=s;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[o.unicode]>"u"&&(this.glyphs[o.unicode]=Object.create(null)),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}}render(){}},rg=class extends zA{constructor(e,A,r){super(e,A,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}},ng=class extends Fr{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}},ig=class extends Bo{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var A=e.children[0];if(A)return A.getText()}return""}},ag=class extends Bo{constructor(e,A,r){super(e,A,r),this.type="a";var{childNodes:n}=A,i=n[0],s=n.length>0&&Array.from(n).every(a=>a.nodeType===3);this.hasText=s,this.text=s?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:A,x:r,y:n}=this,{mouse:i}=A.screen,s=new Qt(A,"fontSize",Aa.parse(A.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new wi(r,n-s.getPixels("y"),r+this.measureText(e),n))}else if(this.children.length>0){var a=new Rc(this.document,null);a.children=this.children,a.parent=this,a.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}};sg=class extends Bo{constructor(e,A,r){super(e,A,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(e){var{dataArray:A}=this;e&&e.beginPath(),A.forEach(r=>{var{type:n,points:i}=r;switch(n){case Wt.LINE_TO:e&&e.lineTo(i[0],i[1]);break;case Wt.MOVE_TO:e&&e.moveTo(i[0],i[1]);break;case Wt.CURVE_TO:e&&e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case Wt.QUAD_TO:e&&e.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case Wt.ARC:{var[s,a,o,l,h,v,m,g]=i,C=o>l?o:l,F=o>l?1:o/l,_=o>l?l/o:1;e&&(e.translate(s,a),e.rotate(m),e.scale(F,_),e.arc(0,0,C,h,h+v,!!(1-g)),e.scale(1/F,1/_),e.rotate(-m),e.translate(-s,-a));break}case Wt.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var A=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:n}=this,i=e.fillStyle;A==="underline"&&e.beginPath(),n.forEach((s,a)=>{var{p0:o,p1:l,rotation:h,text:v}=s;e.save(),e.translate(o.x,o.y),e.rotate(h),e.fillStyle&&e.fillText(v,0,0),e.strokeStyle&&e.strokeText(v,0,0),e.restore(),A==="underline"&&(a===0&&e.moveTo(o.x,o.y+r/8),e.lineTo(l.x,l.y+r/5))}),A==="underline"&&(e.lineWidth=r/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,A,r,n,i,s,a,o,l){var h=s,v=this.measureText(e,o);o===" "&&A==="justify"&&r<n&&(v+=(n-r)/i),l>-1&&(h+=this.getLetterSpacingAt(l));var m=this.textHeight/20,g=this.getEquidistantPointOnPath(h,m,0),C=this.getEquidistantPointOnPath(h+v,m,0),F={p0:g,p1:C},_=g&&C?Math.atan2(C.y-g.y,C.x-g.x):0;if(a){var x=Math.cos(Math.PI/2+_)*a,H=Math.cos(-_)*a;F.p0=Qp(Qp({},g),{},{x:g.x+x,y:g.y+H}),F.p1=Qp(Qp({},C),{},{x:C.x+x,y:C.y+H})}return h+=v,{offset:h,segment:F,rotation:_}}measureText(e,A){var{measuresCache:r}=this,n=A||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(e,n);return r.set(n,i),i}setTextData(e){if(!this.glyphInfo){var A=this.getText(),r=A.split(""),n=A.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(k=>k.getPixels("x")),s=this.parent.getAttribute("dy").getPixels("y"),a=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!o.hasValue()||o.getValue()==="inherit"?h=l.getPixels():o.hasValue()&&o.getValue()!=="initial"&&o.getValue()!=="unset"&&(h=o.getPixels());var v=[],m=A.length;this.letterSpacingCache=v;for(var g=0;g<m;g++)v.push(typeof i[g]<"u"?i[g]:h);var C=v.reduce((k,re,fe)=>fe===0?0:k+re||0,0),F=this.measureText(e),_=Math.max(F+C,0);this.textWidth=F,this.textHeight=this.getFontSize(),this.glyphInfo=[];var x=this.getPathLength(),H=this.getStyle("startOffset").getNumber(0)*x,D=0;(a==="middle"||a==="center")&&(D=-_/2),(a==="end"||a==="right")&&(D=-_),D+=H,r.forEach((k,re)=>{var{offset:fe,segment:Ae,rotation:j}=this.findSegmentToFitChar(e,a,_,x,n,D,s,k,re);D=fe,!(!Ae.p0||!Ae.p1)&&this.glyphInfo.push({text:r[re],p0:Ae.p0,p1:Ae.p1,rotation:j})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var A=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:n}=r,i=n?n.x:0,s=n?n.y:0,a=r.next(),o=a.type,l=[];switch(a.type){case Wt.MOVE_TO:this.pathM(r,l);break;case Wt.LINE_TO:o=this.pathL(r,l);break;case Wt.HORIZ_LINE_TO:o=this.pathH(r,l);break;case Wt.VERT_LINE_TO:o=this.pathV(r,l);break;case Wt.CURVE_TO:this.pathC(r,l);break;case Wt.SMOOTH_CURVE_TO:o=this.pathS(r,l);break;case Wt.QUAD_TO:this.pathQ(r,l);break;case Wt.SMOOTH_QUAD_TO:o=this.pathT(r,l);break;case Wt.ARC:l=this.pathA(r);break;case Wt.CLOSE_PATH:Fr.pathZ(r);break}a.type!==Wt.CLOSE_PATH?A.push({type:o,points:l,start:{x:i,y:s},pathLength:this.calcLength(i,s,o,l)}):A.push({type:Wt.CLOSE_PATH,points:[],pathLength:0})}return A}pathM(e,A){var{x:r,y:n}=Fr.pathM(e).point;A.push(r,n)}pathL(e,A){var{x:r,y:n}=Fr.pathL(e).point;return A.push(r,n),Wt.LINE_TO}pathH(e,A){var{x:r,y:n}=Fr.pathH(e).point;return A.push(r,n),Wt.LINE_TO}pathV(e,A){var{x:r,y:n}=Fr.pathV(e).point;return A.push(r,n),Wt.LINE_TO}pathC(e,A){var{point:r,controlPoint:n,currentPoint:i}=Fr.pathC(e);A.push(r.x,r.y,n.x,n.y,i.x,i.y)}pathS(e,A){var{point:r,controlPoint:n,currentPoint:i}=Fr.pathS(e);return A.push(r.x,r.y,n.x,n.y,i.x,i.y),Wt.CURVE_TO}pathQ(e,A){var{controlPoint:r,currentPoint:n}=Fr.pathQ(e);A.push(r.x,r.y,n.x,n.y)}pathT(e,A){var{controlPoint:r,currentPoint:n}=Fr.pathT(e);return A.push(r.x,r.y,n.x,n.y),Wt.QUAD_TO}pathA(e){var{rX:A,rY:r,sweepFlag:n,xAxisRotation:i,centp:s,a1:a,ad:o}=Fr.pathA(e);return n===0&&o>0&&(o-=2*Math.PI),n===1&&o<0&&(o+=2*Math.PI),[s.x,s.y,A,r,a,o,i,n]}calcLength(e,A,r,n){var i=0,s=null,a=null,o=0;switch(r){case Wt.LINE_TO:return this.getLineLength(e,A,n[0],n[1]);case Wt.CURVE_TO:for(i=0,s=this.getPointOnCubicBezier(0,e,A,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)a=this.getPointOnCubicBezier(o,e,A,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return i;case Wt.QUAD_TO:for(i=0,s=this.getPointOnQuadraticBezier(0,e,A,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)a=this.getPointOnQuadraticBezier(o,e,A,n[0],n[1],n[2],n[3]),i+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return i;case Wt.ARC:{i=0;var l=n[4],h=n[5],v=n[4]+h,m=Math.PI/180;if(Math.abs(l-v)<m&&(m=Math.abs(l-v)),s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),h<0)for(o=l-m;o>v;o-=m)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(o=l+m;o<v;o+=m)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],v,0),i+=this.getLineLength(s.x,s.y,a.x,a.y),i}}return 0}getPointOnLine(e,A,r,n,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:A,a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,o=(i-r)/(n-A+hl),l=Math.sqrt(e*e/(1+o*o));n<A&&(l*=-1);var h=o*l,v=null;if(n===A)v={x:s,y:a+h};else if((a-r)/(s-A+hl)===o)v={x:s+l,y:a+h};else{var m=0,g=0,C=this.getLineLength(A,r,n,i);if(C<hl)return null;var F=(s-A)*(n-A)+(a-r)*(i-r);F/=C*C,m=A+F*(n-A),g=r+F*(i-r);var _=this.getLineLength(s,a,m,g),x=Math.sqrt(e*e-_*_);l=Math.sqrt(x*x/(1+o*o)),n<A&&(l*=-1),h=o*l,v={x:m+l,y:g+h}}return v}getPointOnPath(e){var A=this.getPathLength(),r=0,n=null;if(e<-5e-5||e-5e-5>A)return null;var{dataArray:i}=this;for(var s of i){if(s&&(s.pathLength<5e-5||r+s.pathLength+5e-5<e)){r+=s.pathLength;continue}var a=e-r,o=0;switch(s.type){case Wt.LINE_TO:n=this.getPointOnLine(a,s.start.x,s.start.y,s.points[0],s.points[1],s.start.x,s.start.y);break;case Wt.ARC:{var l=s.points[4],h=s.points[5],v=s.points[4]+h;if(o=l+a/s.pathLength*h,h<0&&o<v||h>=0&&o>v)break;n=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],o,s.points[6]);break}case Wt.CURVE_TO:o=a/s.pathLength,o>1&&(o=1),n=this.getPointOnCubicBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3],s.points[4],s.points[5]);break;case Wt.QUAD_TO:o=a/s.pathLength,o>1&&(o=1),n=this.getPointOnQuadraticBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3]);break}if(n)return n;break}return null}getLineLength(e,A,r,n){return Math.sqrt((r-e)*(r-e)+(n-A)*(n-A))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,A)=>A.pathLength>0?e+A.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,A,r,n,i,s,a,o,l){var h=o*C2(e)+s*E2(e)+n*F2(e)+A*U2(e),v=l*C2(e)+a*E2(e)+i*F2(e)+r*U2(e);return{x:h,y:v}}getPointOnQuadraticBezier(e,A,r,n,i,s,a){var o=s*x2(e)+n*_2(e)+A*S2(e),l=a*x2(e)+i*_2(e)+r*S2(e);return{x:o,y:l}}getPointOnEllipticalArc(e,A,r,n,i,s){var a=Math.cos(s),o=Math.sin(s),l={x:r*Math.cos(i),y:n*Math.sin(i)};return{x:e+(l.x*a-l.y*o),y:A+(l.x*o+l.y*a)}}buildEquidistantCache(e,A){var r=this.getPathLength(),n=A||.25,i=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var s=0,a=0;a<=r;a+=n){var o=this.getPointOnPath(a),l=this.getPointOnPath(a+n);!o||!l||(s+=this.getLineLength(o.x,o.y,l.x,l.y),s>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:a}),s-=i))}}}getEquidistantPointOnPath(e,A,r){if(this.buildEquidistantCache(A,r),e<0||e-this.getPathLength()>5e-5)return null;var n=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}},qq=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,og=class extends ts{constructor(e,A,r){super(e,A,r),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var i=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);e.images.push(this),i?this.loadSvg(n):this.loadImage(n),this.isSvg=i}}loadImage(e){var A=this;return es(function*(){try{var r=yield A.document.createImage(e);A.image=r}catch(n){console.error('Error while loading image "'.concat(e,'":'),n)}A.loaded=!0})()}loadSvg(e){var A=this;return es(function*(){var r=qq.exec(e);if(r){var n=r[5];r[4]==="base64"?A.image=atob(n):A.image=decodeURIComponent(n)}else try{var i=yield A.document.fetch(e),s=yield i.text();A.image=s}catch(a){console.error('Error while loading image "'.concat(e,'":'),a)}A.loaded=!0})()}renderChildren(e){var{document:A,image:r,loaded:n}=this,i=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!(!n||!r||!a||!o)){if(e.save(),e.translate(i,s),this.isSvg){var l=A.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:o});l.document.documentElement.parent=this,l.render()}else{var h=this.image;A.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:h.width,height:o,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new wi(e,A,e+r,A+n)}},lg=class extends ts{constructor(){super(...arguments),this.type="symbol"}render(e){}},cg=class{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,A){var r=this;return es(function*(){try{var{document:n}=r,i=yield n.canvg.parser.load(A),s=i.getElementsByTagName("font");Array.from(s).forEach(a=>{var o=n.createElement(a);n.definitions[e]=o})}catch(a){console.error('Error while loading font "'.concat(A,'":'),a)}r.loaded=!0})()}},Xf=class extends zA{constructor(e,A,r){super(e,A,r),this.type="style";var n=wl(Array.from(A.childNodes).map(s=>s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=n.split("}");i.forEach(s=>{var a=s.trim();if(a){var o=a.split("{"),l=o[0].split(","),h=o[1].split(";");l.forEach(v=>{var m=v.trim();if(m){var g=e.styles[m]||{};if(h.forEach(_=>{var x=_.indexOf(":"),H=_.substr(0,x).trim(),D=_.substr(x+1,_.length-x).trim();H&&D&&(g[H]=new Qt(e,H,D))}),e.styles[m]=g,e.stylesSpecificity[m]=Q_(m),m==="@font-face"){var C=g["font-family"].getString().replace(/"|'/g,""),F=g.src.getString().split(",");F.forEach(_=>{if(_.indexOf('format("svg")')>0){var x=T2(_);x&&new cg(e).load(C,x)}})}}})}})}};Xf.parseExternalUrl=T2;ug=class extends ts{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var A=this.getAttribute("x"),r=this.getAttribute("y");A.hasValue()&&e.translate(A.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:A}=this;A&&A.path(e)}renderChildren(e){var{document:A,element:r}=this;if(r){var n=r;if(r.type==="symbol"&&(n=new bo(A,null),n.attributes.viewBox=new Qt(A,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new Qt(A,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new Qt(A,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new Qt(A,"opacity",this.calculateOpacity())),n.type==="svg"){var i=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new Qt(A,"width",i.getString())),s.hasValue()&&(n.attributes.height=new Qt(A,"height",s.getString()))}var a=n.parent;n.parent=this,n.render(e),n.parent=a}}getBoundingBox(e){var{element:A}=this;return A?A.getBoundingBox(e):null}elementTransform(){var{document:e,element:A}=this;return pl.fromElement(e,A)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}};Yf=class extends zA{constructor(e,A,r){super(e,A,r),this.type="feColorMatrix";var n=gi(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var i=n[0];n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var s=n[0]*Math.PI/180;n=[Ts(s,.213,.787,-.213),Ts(s,.715,-.715,-.715),Ts(s,.072,-.072,.928),0,0,Ts(s,.213,-.213,.143),Ts(s,.715,.285,.14),Ts(s,.072,-.072,-.283),0,0,Ts(s,.213,-.213,-.787),Ts(s,.715,-.715,.715),Ts(s,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,A,r,n,i){for(var{includeOpacity:s,matrix:a}=this,o=e.getImageData(0,0,n,i),l=0;l<i;l++)for(var h=0;h<n;h++){var v=Ip(o.data,h,l,n,i,0),m=Ip(o.data,h,l,n,i,1),g=Ip(o.data,h,l,n,i,2),C=Ip(o.data,h,l,n,i,3),F=Pr(a,0,v)+Pr(a,1,m)+Pr(a,2,g)+Pr(a,3,C)+Pr(a,4,1),_=Pr(a,5,v)+Pr(a,6,m)+Pr(a,7,g)+Pr(a,8,C)+Pr(a,9,1),x=Pr(a,10,v)+Pr(a,11,m)+Pr(a,12,g)+Pr(a,13,C)+Pr(a,14,1),H=Pr(a,15,v)+Pr(a,16,m)+Pr(a,17,g)+Pr(a,18,C)+Pr(a,19,1);s&&(F=0,_=0,x=0,H*=C/255),Lp(o.data,h,l,n,i,0,F),Lp(o.data,h,l,n,i,1,_),Lp(o.data,h,l,n,i,2,x),Lp(o.data,h,l,n,i,3,H)}e.clearRect(0,0,n,i),e.putImageData(o,0,0)}},Jf=class t extends zA{constructor(){super(...arguments),this.type="mask"}apply(e,A){var{document:r}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(!s&&!a){var o=new wi;this.children.forEach(C=>{o.addBoundingBox(C.getBoundingBox(e))}),n=Math.floor(o.x1),i=Math.floor(o.y1),s=Math.floor(o.width),a=Math.floor(o.height)}var l=this.removeStyles(A,t.ignoreStyles),h=r.createCanvas(n+s,i+a),v=h.getContext("2d");r.screen.setDefaults(v),this.renderChildren(v),new Yf(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(v,0,0,n+s,i+a);var m=r.createCanvas(n+s,i+a),g=m.getContext("2d");r.screen.setDefaults(g),A.render(g),g.globalCompositeOperation="destination-in",g.fillStyle=v.createPattern(h,"no-repeat"),g.fillRect(0,0,n+s,i+a),e.fillStyle=g.createPattern(m,"no-repeat"),e.fillRect(0,0,n+s,i+a),this.restoreStyles(A,l)}render(e){}};Jf.ignoreStyles=["mask","transform","clip-path"];C_=()=>{},fg=class extends zA{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:A}=this,r=Reflect.getPrototypeOf(e),{beginPath:n,closePath:i}=e;r&&(r.beginPath=C_,r.closePath=C_),Reflect.apply(n,e,[]),this.children.forEach(s=>{if(!(typeof s.path>"u")){var a=typeof s.elementTransform<"u"?s.elementTransform():null;a||(a=pl.fromElement(A,s)),a&&a.apply(e),s.path(e),r&&(r.closePath=i),a&&a.unapply(e)}}),Reflect.apply(i,e,[]),e.clip(),r&&(r.beginPath=n,r.closePath=i)}render(e){}},Zf=class t extends zA{constructor(){super(...arguments),this.type="filter"}apply(e,A){var{document:r,children:n}=this,i=A.getBoundingBox(e);if(i){var s=0,a=0;n.forEach(x=>{var H=x.extraFilterDistance||0;s=Math.max(s,H),a=Math.max(a,H)});var o=Math.floor(i.width),l=Math.floor(i.height),h=o+2*s,v=l+2*a;if(!(h<1||v<1)){var m=Math.floor(i.x),g=Math.floor(i.y),C=this.removeStyles(A,t.ignoreStyles),F=r.createCanvas(h,v),_=F.getContext("2d");r.screen.setDefaults(_),_.translate(-m+s,-g+a),A.render(_),n.forEach(x=>{typeof x.apply=="function"&&x.apply(_,0,0,h,v)}),e.drawImage(F,0,0,h,v,m-s,g-a,h,v),this.restoreStyles(A,C)}}}render(e){}};Zf.ignoreStyles=["filter","transform","clip-path"];hg=class extends zA{constructor(e,A,r){super(e,A,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,A,r,n,i){}},dg=class extends zA{constructor(){super(...arguments),this.type="feMorphology"}apply(e,A,r,n,i){}},pg=class extends zA{constructor(){super(...arguments),this.type="feComposite"}apply(e,A,r,n,i){}},gg=class extends zA{constructor(e,A,r){super(e,A,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,A,r,n,i){var{document:s,blurRadius:a}=this,o=s.window?s.window.document.body:null,l=e.canvas;l.id=s.getUniqueId(),o&&(l.style.display="none",o.appendChild(l)),y_(l,A,r,n,i,a),o&&o.removeChild(l)}},wg=class extends zA{constructor(){super(...arguments),this.type="title"}},vg=class extends zA{constructor(){super(...arguments),this.type="desc"}},Kq={svg:bo,rect:zf,circle:jp,ellipse:Vp,line:Gp,polyline:Wf,polygon:zp,path:Fr,pattern:Wp,marker:$p,defs:Xp,linearGradient:Yp,radialGradient:Jp,stop:Zp,animate:kc,animateColor:eg,animateTransform:tg,font:Ag,"font-face":rg,"missing-glyph":ng,glyph:Vf,text:Bo,tspan:Gf,tref:ig,a:ag,textPath:sg,image:og,g:Rc,symbol:lg,style:Xf,use:ug,mask:Jf,clipPath:fg,filter:Zf,feDropShadow:hg,feMorphology:dg,feComposite:pg,feColorMatrix:Yf,feGaussianBlur:gg,title:wg,desc:vg};gl=class t{constructor(e){var{rootEmSize:A=12,emSize:r=12,createCanvas:n=t.createCanvas,createImage:i=t.createImage,anonymousCrossOrigin:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=A,this.emSize=r,this.createCanvas=n,this.createImage=this.bindCreateImage(i,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,A){return typeof A=="boolean"?(r,n)=>e(r,typeof n=="boolean"?n:A):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:A}=this;A.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var A=this.createElement(e.documentElement);return A.root=!0,A.addStylesFromStyleDefinition(),this.documentElement=A,A}createElement(e){var A=e.nodeName.replace(/^[^:]+:/,""),r=t.elementTypes[A];return typeof r<"u"?new r(this,e):new Kp(this,e)}createTextNode(e){return new Q2(this,e)}setViewBox(e){this.screen.setViewBox(jq({document:this},e))}};gl.createCanvas=Vq;gl.createImage=Gq;gl.elementTypes=Kq;L2=class t{constructor(e,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Pc(r),this.screen=new dl(e,r),this.options=r;var n=new gl(this,r),i=n.createDocumentElement(A);this.document=n,this.documentElement=i}static from(e,A){var r=arguments;return es(function*(){var n=r.length>2&&r[2]!==void 0?r[2]:{},i=new Pc(n),s=yield i.parse(A);return new t(e,s,n)})()}static fromString(e,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=new Pc(r),i=n.parseFromString(A);return new t(e,i,r)}fork(e,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.from(e,A,fl(fl({},this.options),r))}forkString(e,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.fromString(e,A,fl(fl({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,A=this;return es(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};A.start(fl({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield A.ready(),A.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:A,screen:r,options:n}=this;r.start(A,fl(fl({enableRedraw:!0},n),e))}stop(){this.screen.stop()}resize(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,A,r)}}});function I9(t){t.CapacitorUtils.Synapse=new Proxy({},{get(e,A){return new Proxy({},{get(r,n){return(i,s,a)=>{let o=t.Capacitor.Plugins[A];if(o===void 0){a(new Error(`Capacitor plugin ${A} not found`));return}if(typeof o[n]!="function"){a(new Error(`Method ${n} not found in Capacitor plugin ${A}`));return}(async()=>{try{let l=await o[n](i);s(l)}catch(l){a(l)}})()}}})}})}function L9(t){t.CapacitorUtils.Synapse=new Proxy({},{get(e,A){return t.cordova.plugins[A]}})}function gS(t=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!t?I9(window):window.cordova!==void 0&&L9(window))}var wS=zt(()=>{});var Qg,Wc,T9,N9,z2=zt(()=>{(function(t){t.Documents="DOCUMENTS",t.Data="DATA",t.Library="LIBRARY",t.Cache="CACHE",t.External="EXTERNAL",t.ExternalStorage="EXTERNAL_STORAGE",t.ExternalCache="EXTERNAL_CACHE",t.LibraryNoCloud="LIBRARY_NO_CLOUD",t.Temporary="TEMPORARY"})(Qg||(Qg={}));(function(t){t.UTF8="utf8",t.ASCII="ascii",t.UTF16="utf16"})(Wc||(Wc={}));T9=Qg,N9=Wc});var mS={};or(mS,{FilesystemWeb:()=>Ig});function vS(t){let e=t.split("/").filter(r=>r!=="."),A=[];return e.forEach(r=>{r===".."&&A.length>0&&A[A.length-1]!==".."?A.pop():A.push(r)}),A.join("/")}function O9(t,e){t=vS(t),e=vS(e);let A=t.split("/"),r=e.split("/");return t!==e&&A.every((n,i)=>n===r[i])}var Ig,yS=zt(()=>{Ti();z2();Ig=class t extends gn{constructor(){super(...arguments),this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=async e=>{var A,r;let n=P0(e,e.webFetchExtra),i=await fetch(e.url,n),s;if(!e.progress)s=await i.blob();else if(!i?.body)s=new Blob;else{let o=i.body.getReader(),l=0,h=[],v=i.headers.get("content-type"),m=parseInt(i.headers.get("content-length")||"0",10);for(;;){let{done:F,value:_}=await o.read();if(F)break;h.push(_),l+=_?.length||0;let x={url:e.url,bytes:l,contentLength:m};this.notifyListeners("progress",x)}let g=new Uint8Array(l),C=0;for(let F of h)typeof F>"u"||(g.set(F,C),C+=F.length);s=new Blob([g.buffer],{type:v||void 0})}return{path:(await this.writeFile({path:e.path,directory:(A=e.directory)!==null&&A!==void 0?A:void 0,recursive:(r=e.recursive)!==null&&r!==void 0?r:!1,data:s})).uri,blob:s}}}readFileInChunks(e,A){throw this.unavailable("Method not implemented.")}async initDb(){if(this._db!==void 0)return this._db;if(!("indexedDB"in window))throw this.unavailable("This browser doesn't support IndexedDB");return new Promise((e,A)=>{let r=indexedDB.open(this.DB_NAME,this.DB_VERSION);r.onupgradeneeded=t.doUpgrade,r.onsuccess=()=>{this._db=r.result,e(r.result)},r.onerror=()=>A(r.error),r.onblocked=()=>{console.warn("db blocked")}})}static doUpgrade(e){let r=e.target.result;switch(e.oldVersion){default:r.objectStoreNames.contains("FileStorage")&&r.deleteObjectStore("FileStorage"),r.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}}async dbRequest(e,A){let r=this._writeCmds.indexOf(e)!==-1?"readwrite":"readonly";return this.initDb().then(n=>new Promise((i,s)=>{let l=n.transaction(["FileStorage"],r).objectStore("FileStorage")[e](...A);l.onsuccess=()=>i(l.result),l.onerror=()=>s(l.error)}))}async dbIndexRequest(e,A,r){let n=this._writeCmds.indexOf(A)!==-1?"readwrite":"readonly";return this.initDb().then(i=>new Promise((s,a)=>{let v=i.transaction(["FileStorage"],n).objectStore("FileStorage").index(e)[A](...r);v.onsuccess=()=>s(v.result),v.onerror=()=>a(v.error)}))}getPath(e,A){let r=A!==void 0?A.replace(/^[/]+|[/]+$/g,""):"",n="";return e!==void 0&&(n+="/"+e),A!==""&&(n+="/"+r),n}async clear(){(await this.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()}async readFile(e){let A=this.getPath(e.directory,e.path),r=await this.dbRequest("get",[A]);if(r===void 0)throw Error("File does not exist.");return{data:r.content?r.content:""}}async writeFile(e){let A=this.getPath(e.directory,e.path),r=e.data,n=e.encoding,i=e.recursive,s=await this.dbRequest("get",[A]);if(s&&s.type==="directory")throw Error("The supplied path is a directory.");let a=A.substr(0,A.lastIndexOf("/"));if(await this.dbRequest("get",[a])===void 0){let v=a.indexOf("/",1);if(v!==-1){let m=a.substr(v);await this.mkdir({path:m,directory:e.directory,recursive:i})}}if(!n&&!(r instanceof Blob)&&(r=r.indexOf(",")>=0?r.split(",")[1]:r,!this.isBase64String(r)))throw Error("The supplied data is not valid base64 content.");let l=Date.now(),h={path:A,folder:a,type:"file",size:r instanceof Blob?r.size:r.length,ctime:l,mtime:l,content:r};return await this.dbRequest("put",[h]),{uri:h.path}}async appendFile(e){let A=this.getPath(e.directory,e.path),r=e.data,n=e.encoding,i=A.substr(0,A.lastIndexOf("/")),s=Date.now(),a=s,o=await this.dbRequest("get",[A]);if(o&&o.type==="directory")throw Error("The supplied path is a directory.");if(await this.dbRequest("get",[i])===void 0){let v=i.indexOf("/",1);if(v!==-1){let m=i.substr(v);await this.mkdir({path:m,directory:e.directory,recursive:!0})}}if(!n&&!this.isBase64String(r))throw Error("The supplied data is not valid base64 content.");if(o!==void 0){if(o.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");o.content!==void 0&&!n?r=btoa(atob(o.content)+atob(r)):r=o.content+r,a=o.ctime}let h={path:A,folder:i,type:"file",size:r.length,ctime:a,mtime:s,content:r};await this.dbRequest("put",[h])}async deleteFile(e){let A=this.getPath(e.directory,e.path);if(await this.dbRequest("get",[A])===void 0)throw Error("File does not exist.");if((await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(A)])).length!==0)throw Error("Folder is not empty.");await this.dbRequest("delete",[A])}async mkdir(e){let A=this.getPath(e.directory,e.path),r=e.recursive,n=A.substr(0,A.lastIndexOf("/")),i=(A.match(/\//g)||[]).length,s=await this.dbRequest("get",[n]),a=await this.dbRequest("get",[A]);if(i===1)throw Error("Cannot create Root directory");if(a!==void 0)throw Error("Current directory does already exist.");if(!r&&i!==2&&s===void 0)throw Error("Parent directory must exist");if(r&&i!==2&&s===void 0){let h=n.substr(n.indexOf("/",1));await this.mkdir({path:h,directory:e.directory,recursive:r})}let o=Date.now(),l={path:A,folder:n,type:"directory",size:0,ctime:o,mtime:o};await this.dbRequest("put",[l])}async rmdir(e){let{path:A,directory:r,recursive:n}=e,i=this.getPath(r,A),s=await this.dbRequest("get",[i]);if(s===void 0)throw Error("Folder does not exist.");if(s.type!=="directory")throw Error("Requested path is not a directory");let a=await this.readdir({path:A,directory:r});if(a.files.length!==0&&!n)throw Error("Folder is not empty");for(let o of a.files){let l=`${A}/${o.name}`;(await this.stat({path:l,directory:r})).type==="file"?await this.deleteFile({path:l,directory:r}):await this.rmdir({path:l,directory:r,recursive:n})}await this.dbRequest("delete",[i])}async readdir(e){let A=this.getPath(e.directory,e.path),r=await this.dbRequest("get",[A]);if(e.path!==""&&r===void 0)throw Error("Folder does not exist.");let n=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(A)]);return{files:await Promise.all(n.map(async s=>{let a=await this.dbRequest("get",[s]);return a===void 0&&(a=await this.dbRequest("get",[s+"/"])),{name:s.substring(A.length+1),type:a.type,size:a.size,ctime:a.ctime,mtime:a.mtime,uri:a.path}}))}}async getUri(e){let A=this.getPath(e.directory,e.path),r=await this.dbRequest("get",[A]);return r===void 0&&(r=await this.dbRequest("get",[A+"/"])),{uri:r?.path||A}}async stat(e){let A=this.getPath(e.directory,e.path),r=await this.dbRequest("get",[A]);if(r===void 0&&(r=await this.dbRequest("get",[A+"/"])),r===void 0)throw Error("Entry does not exist.");return{name:r.path.substring(A.length+1),type:r.type,size:r.size,ctime:r.ctime,mtime:r.mtime,uri:r.path}}async rename(e){await this._copy(e,!0)}async copy(e){return this._copy(e,!1)}async requestPermissions(){return{publicStorage:"granted"}}async checkPermissions(){return{publicStorage:"granted"}}async _copy(e,A=!1){let{toDirectory:r}=e,{to:n,from:i,directory:s}=e;if(!n||!i)throw Error("Both to and from must be provided");r||(r=s);let a=this.getPath(s,i),o=this.getPath(r,n);if(a===o)return{uri:o};if(O9(a,o))throw Error("To path cannot contain the from path");let l;try{l=await this.stat({path:n,directory:r})}catch{let C=n.split("/");C.pop();let F=C.join("/");if(C.length>0&&(await this.stat({path:F,directory:r})).type!=="directory")throw new Error("Parent directory of the to path is a file")}if(l&&l.type==="directory")throw new Error("Cannot overwrite a directory with a file");let h=await this.stat({path:i,directory:s}),v=async(g,C,F)=>{let _=this.getPath(r,g),x=await this.dbRequest("get",[_]);x.ctime=C,x.mtime=F,await this.dbRequest("put",[x])},m=h.ctime?h.ctime:Date.now();switch(h.type){case"file":{let g=await this.readFile({path:i,directory:s});A&&await this.deleteFile({path:i,directory:s});let C;!(g.data instanceof Blob)&&!this.isBase64String(g.data)&&(C=Wc.UTF8);let F=await this.writeFile({path:n,directory:r,data:g.data,encoding:C});return A&&await v(n,m,h.mtime),F}case"directory":{if(l)throw Error("Cannot move a directory over an existing object");try{await this.mkdir({path:n,directory:r,recursive:!1}),A&&await v(n,m,h.mtime)}catch{}let g=(await this.readdir({path:i,directory:s})).files;for(let C of g)await this._copy({from:`${i}/${C.name}`,to:`${n}/${C.name}`,directory:s,toDirectory:r},A);A&&await this.rmdir({path:i,directory:s})}}return{uri:o}}isBase64String(e){try{return btoa(atob(e))==e}catch{return!1}}};Ig._debug=!0});var BS={};or(BS,{Directory:()=>Qg,Encoding:()=>Wc,Filesystem:()=>P9,FilesystemDirectory:()=>T9,FilesystemEncoding:()=>N9});var P9,bS=zt(()=>{Ti();wS();z2();P9=$n("Filesystem",{web:()=>Promise.resolve().then(()=>(yS(),mS)).then(t=>new t.FilesystemWeb)});gS()});var CS=zt(()=>{});var ES={};or(ES,{ToastWeb:()=>W2});var W2,FS=zt(()=>{Ti();W2=class extends gn{async show(e){if(typeof document<"u"){let A=2e3;e.duration&&(A=e.duration==="long"?3500:2e3);let r=document.createElement("pwa-toast");r.duration=A,r.message=e.text,document.body.appendChild(r)}}}});var US={};or(US,{Toast:()=>R9});var R9,xS=zt(()=>{Ti();CS();R9=$n("Toast",{web:()=>Promise.resolve().then(()=>(FS(),ES)).then(t=>new t.ToastWeb)})});var _S={};or(_S,{ask:()=>q9,confirm:()=>K9,message:()=>M9,open:()=>D9,save:()=>H9});function k9(t){if(t!==void 0){if(typeof t=="string")return t;if("ok"in t&&"cancel"in t)return{OkCancelCustom:[t.ok,t.cancel]};if("yes"in t&&"no"in t&&"cancel"in t)return{YesNoCancelCustom:[t.yes,t.no,t.cancel]};if("ok"in t)return{OkCustom:t.ok}}}async function D9(t={}){return typeof t=="object"&&Object.freeze(t),await ge("plugin:dialog|open",{options:t})}async function H9(t={}){return typeof t=="object"&&Object.freeze(t),await ge("plugin:dialog|save",{options:t})}async function $2(t,e){return await ge("plugin:dialog|message",{message:t,title:e?.title,kind:e?.kind,buttons:k9(e?.buttons)})}async function M9(t,e){let A=typeof e=="string"?{title:e}:e;return A&&!A.buttons&&A.okLabel&&(A.buttons={ok:A.okLabel}),$2(t,A)}async function q9(t,e){let A=typeof e=="string"?{title:e}:e,r=A?.okLabel||A?.cancelLabel,n=A?.okLabel??"Yes";return await $2(t,{title:A?.title,kind:A?.kind,buttons:r?{ok:n,cancel:A.cancelLabel??"No"}:"YesNo"})===n}async function K9(t,e){let A=typeof e=="string"?{title:e}:e,r=A?.okLabel||A?.cancelLabel,n=A?.okLabel??"Ok";return await $2(t,{title:A?.title,kind:A?.kind,buttons:r?{ok:n,cancel:A.cancelLabel??"Cancel"}:"OkCancel"})===n}var SS=zt(()=>{pa()});var QS={};or(QS,{BaseDirectory:()=>PA,appCacheDir:()=>z9,appConfigDir:()=>j9,appDataDir:()=>V9,appLocalDataDir:()=>G9,appLogDir:()=>fK,audioDir:()=>W9,basename:()=>BK,cacheDir:()=>$9,configDir:()=>X9,dataDir:()=>Y9,delimiter:()=>pK,desktopDir:()=>J9,dirname:()=>mK,documentDir:()=>Z9,downloadDir:()=>eK,executableDir:()=>tK,extname:()=>yK,fontDir:()=>AK,homeDir:()=>rK,isAbsolute:()=>bK,join:()=>vK,localDataDir:()=>nK,normalize:()=>wK,pictureDir:()=>iK,publicDir:()=>aK,resolve:()=>gK,resolveResource:()=>oK,resourceDir:()=>sK,runtimeDir:()=>lK,sep:()=>dK,tempDir:()=>hK,templateDir:()=>cK,videoDir:()=>uK});async function j9(){return ge("plugin:path|resolve_directory",{directory:PA.AppConfig})}async function V9(){return ge("plugin:path|resolve_directory",{directory:PA.AppData})}async function G9(){return ge("plugin:path|resolve_directory",{directory:PA.AppLocalData})}async function z9(){return ge("plugin:path|resolve_directory",{directory:PA.AppCache})}async function W9(){return ge("plugin:path|resolve_directory",{directory:PA.Audio})}async function $9(){return ge("plugin:path|resolve_directory",{directory:PA.Cache})}async function X9(){return ge("plugin:path|resolve_directory",{directory:PA.Config})}async function Y9(){return ge("plugin:path|resolve_directory",{directory:PA.Data})}async function J9(){return ge("plugin:path|resolve_directory",{directory:PA.Desktop})}async function Z9(){return ge("plugin:path|resolve_directory",{directory:PA.Document})}async function eK(){return ge("plugin:path|resolve_directory",{directory:PA.Download})}async function tK(){return ge("plugin:path|resolve_directory",{directory:PA.Executable})}async function AK(){return ge("plugin:path|resolve_directory",{directory:PA.Font})}async function rK(){return ge("plugin:path|resolve_directory",{directory:PA.Home})}async function nK(){return ge("plugin:path|resolve_directory",{directory:PA.LocalData})}async function iK(){return ge("plugin:path|resolve_directory",{directory:PA.Picture})}async function aK(){return ge("plugin:path|resolve_directory",{directory:PA.Public})}async function sK(){return ge("plugin:path|resolve_directory",{directory:PA.Resource})}async function oK(t){return ge("plugin:path|resolve_directory",{directory:PA.Resource,path:t})}async function lK(){return ge("plugin:path|resolve_directory",{directory:PA.Runtime})}async function cK(){return ge("plugin:path|resolve_directory",{directory:PA.Template})}async function uK(){return ge("plugin:path|resolve_directory",{directory:PA.Video})}async function fK(){return ge("plugin:path|resolve_directory",{directory:PA.AppLog})}async function hK(){return ge("plugin:path|resolve_directory",{directory:PA.Temp})}function dK(){return window.__TAURI_INTERNALS__.plugins.path.sep}function pK(){return window.__TAURI_INTERNALS__.plugins.path.delimiter}async function gK(...t){return ge("plugin:path|resolve",{paths:t})}async function wK(t){return ge("plugin:path|normalize",{path:t})}async function vK(...t){return ge("plugin:path|join",{paths:t})}async function mK(t){return ge("plugin:path|dirname",{path:t})}async function yK(t){return ge("plugin:path|extname",{path:t})}async function BK(t,e){return ge("plugin:path|basename",{path:t,ext:e})}async function bK(t){return ge("plugin:path|is_absolute",{path:t})}var PA,X2=zt(()=>{pa();(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(PA||(PA={}))});var em={};or(em,{BaseDirectory:()=>PA,FileHandle:()=>eh,SeekMode:()=>Y2,copyFile:()=>FK,create:()=>EK,exists:()=>kK,lstat:()=>NK,mkdir:()=>UK,open:()=>IS,readDir:()=>xK,readFile:()=>_K,readTextFile:()=>SK,readTextFileLines:()=>QK,remove:()=>IK,rename:()=>LK,size:()=>MK,startAccessingSecurityScopedResource:()=>qK,stat:()=>TK,stopAccessingSecurityScopedResource:()=>KK,truncate:()=>OK,watch:()=>DK,watchImmediate:()=>HK,writeFile:()=>PK,writeTextFile:()=>RK});function Z2(t){return{isFile:t.isFile,isDirectory:t.isDirectory,isSymlink:t.isSymlink,size:t.size,mtime:t.mtime!==null?new Date(t.mtime):null,atime:t.atime!==null?new Date(t.atime):null,birthtime:t.birthtime!==null?new Date(t.birthtime):null,readonly:t.readonly,fileAttributes:t.fileAttributes,dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,blksize:t.blksize,blocks:t.blocks}}function CK(t){let e=new Uint8ClampedArray(t),A=e.byteLength,r=0;for(let n=0;n<A;n++){let i=e[n];r*=256,r+=i}return r}async function EK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let A=await ge("plugin:fs|create",{path:t instanceof URL?t.toString():t,options:e});return new eh(A)}async function IS(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let A=await ge("plugin:fs|open",{path:t instanceof URL?t.toString():t,options:e});return new eh(A)}async function FK(t,e,A){if(t instanceof URL&&t.protocol!=="file:"||e instanceof URL&&e.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|copy_file",{fromPath:t instanceof URL?t.toString():t,toPath:e instanceof URL?e.toString():e,options:A})}async function UK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function xK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ge("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function _K(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let A=await ge("plugin:fs|read_file",{path:t instanceof URL?t.toString():t,options:e});return A instanceof ArrayBuffer?new Uint8Array(A):Uint8Array.from(A)}async function SK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let A=await ge("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e}),r=A instanceof ArrayBuffer?A:Uint8Array.from(A);return new TextDecoder(e?.encoding??"utf-8").decode(r)}async function QK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let A=t instanceof URL?t.toString():t;return await Promise.resolve({path:A,rid:null,async next(){let r=new TextDecoder(e?.encoding??"utf-8");if(this.rid===null){let o=r.encoding;this.rid=await ge("plugin:fs|read_text_file_lines",{path:A,options:e!=null?{...e,encoding:o}:void 0})}let n=await ge("plugin:fs|read_text_file_lines_next",{rid:this.rid}),i=n instanceof ArrayBuffer?new Uint8Array(n):Uint8Array.from(n),s=i[i.byteLength-1]===1;return s?(this.rid=null,{value:null,done:s}):{value:r.decode(i.slice(0,i.byteLength-1)),done:s}},[Symbol.asyncIterator](){return this}})}async function IK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function LK(t,e,A){if(t instanceof URL&&t.protocol!=="file:"||e instanceof URL&&e.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|rename",{oldPath:t instanceof URL?t.toString():t,newPath:e instanceof URL?e.toString():e,options:A})}async function TK(t,e){let A=await ge("plugin:fs|stat",{path:t instanceof URL?t.toString():t,options:e});return Z2(A)}async function NK(t,e){let A=await ge("plugin:fs|lstat",{path:t instanceof URL?t.toString():t,options:e});return Z2(A)}async function OK(t,e,A){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|truncate",{path:t instanceof URL?t.toString():t,len:e,options:A})}async function PK(t,e,A){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");if(e instanceof ReadableStream){let r=await IS(t,{read:!1,create:!0,write:!0,...A}),n=e.getReader();try{for(;;){let{done:i,value:s}=await n.read();if(i)break;await r.write(s)}}finally{n.releaseLock(),await r.close()}}else await ge("plugin:fs|write_file",e,{headers:{path:encodeURIComponent(t instanceof URL?t.toString():t),options:JSON.stringify(A)}})}async function RK(t,e,A){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let r=new TextEncoder;await ge("plugin:fs|write_text_file",r.encode(e),{headers:{path:encodeURIComponent(t instanceof URL?t.toString():t),options:JSON.stringify(A)}})}async function kK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ge("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}async function LS(t,e,A){let r=Array.isArray(t)?t:[t];for(let a of r)if(a instanceof URL&&a.protocol!=="file:")throw new TypeError("Must be a file URL.");let n=new Jh;n.onmessage=e;let i=await ge("plugin:fs|watch",{paths:r.map(a=>a instanceof URL?a.toString():a),options:A,onEvent:n}),s=new J2(i);return()=>{s.close()}}async function DK(t,e,A){return await LS(t,e,{delayMs:2e3,...A})}async function HK(t,e,A){return await LS(t,e,{...A,delayMs:void 0})}async function MK(t){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ge("plugin:fs|size",{path:t instanceof URL?t.toString():t})}async function qK(t){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|start_accessing_security_scoped_resource",{path:t instanceof URL?t.toString():t})}async function KK(t){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|stop_accessing_security_scoped_resource",{path:t instanceof URL?t.toString():t})}var Y2,eh,J2,tm=zt(()=>{X2();pa();(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(Y2||(Y2={}));eh=class extends zo{async read(e){if(e.byteLength===0)return 0;let A=await ge("plugin:fs|read",{rid:this.rid,len:e.byteLength}),r=CK(A.slice(-8)),n=A instanceof ArrayBuffer?new Uint8Array(A):A;return e.set(n.slice(0,n.length-8)),r===0?null:r}async seek(e,A){return await ge("plugin:fs|seek",{rid:this.rid,offset:e,whence:A})}async stat(){let e=await ge("plugin:fs|fstat",{rid:this.rid});return Z2(e)}async truncate(e){await ge("plugin:fs|ftruncate",{rid:this.rid,len:e})}async write(e){return await ge("plugin:fs|write",{rid:this.rid,data:e})}};J2=class extends zo{}});var am,th,qS=zt(()=>{am=class{constructor(e){this.sqlite=e,this._connectionDict=new Map}async initWebStore(){try{return await this.sqlite.initWebStore(),Promise.resolve()}catch(e){return Promise.reject(e)}}async saveToStore(e){try{return await this.sqlite.saveToStore({database:e}),Promise.resolve()}catch(A){return Promise.reject(A)}}async saveToLocalDisk(e){try{return await this.sqlite.saveToLocalDisk({database:e}),Promise.resolve()}catch(A){return Promise.reject(A)}}async getFromLocalDiskToStore(e){let A=e??!0;try{return await this.sqlite.getFromLocalDiskToStore({overwrite:A}),Promise.resolve()}catch(r){return Promise.reject(r)}}async echo(e){try{let A=await this.sqlite.echo({value:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async isSecretStored(){try{let e=await this.sqlite.isSecretStored();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async setEncryptionSecret(e){try{return await this.sqlite.setEncryptionSecret({passphrase:e}),Promise.resolve()}catch(A){return Promise.reject(A)}}async changeEncryptionSecret(e,A){try{return await this.sqlite.changeEncryptionSecret({passphrase:e,oldpassphrase:A}),Promise.resolve()}catch(r){return Promise.reject(r)}}async clearEncryptionSecret(){try{return await this.sqlite.clearEncryptionSecret(),Promise.resolve()}catch(e){return Promise.reject(e)}}async checkEncryptionSecret(e){try{let A=await this.sqlite.checkEncryptionSecret({passphrase:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async addUpgradeStatement(e,A){try{return e.endsWith(".db")&&(e=e.slice(0,-3)),await this.sqlite.addUpgradeStatement({database:e,upgrade:A}),Promise.resolve()}catch(r){return Promise.reject(r)}}async createConnection(e,A,r,n,i){try{e.endsWith(".db")&&(e=e.slice(0,-3)),await this.sqlite.createConnection({database:e,encrypted:A,mode:r,version:n,readonly:i});let s=new th(e,i,this.sqlite),a=i?`RO_${e}`:`RW_${e}`;return this._connectionDict.set(a,s),Promise.resolve(s)}catch(s){return Promise.reject(s)}}async closeConnection(e,A){try{e.endsWith(".db")&&(e=e.slice(0,-3)),await this.sqlite.closeConnection({database:e,readonly:A});let r=A?`RO_${e}`:`RW_${e}`;return this._connectionDict.delete(r),Promise.resolve()}catch(r){return Promise.reject(r)}}async isConnection(e,A){let r={};e.endsWith(".db")&&(e=e.slice(0,-3));let n=A?`RO_${e}`:`RW_${e}`;return r.result=this._connectionDict.has(n),Promise.resolve(r)}async retrieveConnection(e,A){e.endsWith(".db")&&(e=e.slice(0,-3));let r=A?`RO_${e}`:`RW_${e}`;if(this._connectionDict.has(r)){let n=this._connectionDict.get(r);return typeof n<"u"?Promise.resolve(n):Promise.reject(`Connection ${e} is undefined`)}else return Promise.reject(`Connection ${e} does not exist`)}async getNCDatabasePath(e,A){try{let r=await this.sqlite.getNCDatabasePath({path:e,database:A});return Promise.resolve(r)}catch(r){return Promise.reject(r)}}async createNCConnection(e,A){try{await this.sqlite.createNCConnection({databasePath:e,version:A});let r=new th(e,!0,this.sqlite),n=`RO_${e})`;return this._connectionDict.set(n,r),Promise.resolve(r)}catch(r){return Promise.reject(r)}}async closeNCConnection(e){try{await this.sqlite.closeNCConnection({databasePath:e});let A=`RO_${e})`;return this._connectionDict.delete(A),Promise.resolve()}catch(A){return Promise.reject(A)}}async isNCConnection(e){let A={},r=`RO_${e})`;return A.result=this._connectionDict.has(r),Promise.resolve(A)}async retrieveNCConnection(e){if(this._connectionDict.has(e)){let A=`RO_${e})`,r=this._connectionDict.get(A);return typeof r<"u"?Promise.resolve(r):Promise.reject(`Connection ${e} is undefined`)}else return Promise.reject(`Connection ${e} does not exist`)}async isNCDatabase(e){try{let A=await this.sqlite.isNCDatabase({databasePath:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async retrieveAllConnections(){return this._connectionDict}async closeAllConnections(){let e=new Map;try{for(let A of this._connectionDict.keys()){let r=A.substring(3),n=A.substring(0,3)==="RO_";await this.sqlite.closeConnection({database:r,readonly:n}),e.set(A,null)}for(let A of e.keys())this._connectionDict.delete(A);return Promise.resolve()}catch(A){return Promise.reject(A)}}async checkConnectionsConsistency(){try{let e=[...this._connectionDict.keys()],A=[],r=[];for(let i of e)A.push(i.substring(0,2)),r.push(i.substring(3));let n=await this.sqlite.checkConnectionsConsistency({dbNames:r,openModes:A});return n.result||(this._connectionDict=new Map),Promise.resolve(n)}catch(e){return this._connectionDict=new Map,Promise.reject(e)}}async importFromJson(e){try{let A=await this.sqlite.importFromJson({jsonstring:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async isJsonValid(e){try{let A=await this.sqlite.isJsonValid({jsonstring:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async copyFromAssets(e){let A=e??!0;try{return await this.sqlite.copyFromAssets({overwrite:A}),Promise.resolve()}catch(r){return Promise.reject(r)}}async getFromHTTPRequest(e,A){let r=A??!0;try{return await this.sqlite.getFromHTTPRequest({url:e,overwrite:r}),Promise.resolve()}catch(n){return Promise.reject(n)}}async isDatabaseEncrypted(e){e.endsWith(".db")&&(e=e.slice(0,-3));try{let A=await this.sqlite.isDatabaseEncrypted({database:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async isInConfigEncryption(){try{let e=await this.sqlite.isInConfigEncryption();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async isInConfigBiometricAuth(){try{let e=await this.sqlite.isInConfigBiometricAuth();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async isDatabase(e){e.endsWith(".db")&&(e=e.slice(0,-3));try{let A=await this.sqlite.isDatabase({database:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async getDatabaseList(){try{let A=(await this.sqlite.getDatabaseList()).values;A.sort();let r={values:A};return Promise.resolve(r)}catch(e){return Promise.reject(e)}}async getMigratableDbList(e){let A=e||"default";try{let r=await this.sqlite.getMigratableDbList({folderPath:A});return Promise.resolve(r)}catch(r){return Promise.reject(r)}}async addSQLiteSuffix(e,A){let r=e||"default",n=A||[];try{let i=await this.sqlite.addSQLiteSuffix({folderPath:r,dbNameList:n});return Promise.resolve(i)}catch(i){return Promise.reject(i)}}async deleteOldDatabases(e,A){let r=e||"default",n=A||[];try{let i=await this.sqlite.deleteOldDatabases({folderPath:r,dbNameList:n});return Promise.resolve(i)}catch(i){return Promise.reject(i)}}async moveDatabasesAndAddSuffix(e,A){let r=e||"default",n=A||[];return this.sqlite.moveDatabasesAndAddSuffix({folderPath:r,dbNameList:n})}},th=class{constructor(e,A,r){this.dbName=e,this.readonly=A,this.sqlite=r}getConnectionDBName(){return this.dbName}getConnectionReadOnly(){return this.readonly}async open(){try{return await this.sqlite.open({database:this.dbName,readonly:this.readonly}),Promise.resolve()}catch(e){return Promise.reject(e)}}async close(){try{return await this.sqlite.close({database:this.dbName,readonly:this.readonly}),Promise.resolve()}catch(e){return Promise.reject(e)}}async beginTransaction(){try{let e=await this.sqlite.beginTransaction({database:this.dbName});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async commitTransaction(){try{let e=await this.sqlite.commitTransaction({database:this.dbName});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async rollbackTransaction(){try{let e=await this.sqlite.rollbackTransaction({database:this.dbName});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async isTransactionActive(){try{let e=await this.sqlite.isTransactionActive({database:this.dbName});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async loadExtension(e){try{return await this.sqlite.loadExtension({database:this.dbName,path:e,readonly:this.readonly}),Promise.resolve()}catch(A){return Promise.reject(A)}}async enableLoadExtension(e){try{return await this.sqlite.enableLoadExtension({database:this.dbName,toggle:e,readonly:this.readonly}),Promise.resolve()}catch(A){return Promise.reject(A)}}async getUrl(){try{let e=await this.sqlite.getUrl({database:this.dbName,readonly:this.readonly});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async getVersion(){try{let e=await this.sqlite.getVersion({database:this.dbName,readonly:this.readonly});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async getTableList(){try{let e=await this.sqlite.getTableList({database:this.dbName,readonly:this.readonly});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async execute(e,A=!0,r=!0){try{if(this.readonly)return Promise.reject("not allowed in read-only mode");{let n=await this.sqlite.execute({database:this.dbName,statements:e,transaction:A,readonly:!1,isSQL92:r});return Promise.resolve(n)}}catch(n){return Promise.reject(n)}}async query(e,A,r=!0){let n;try{return A&&A.length>0?n=await this.sqlite.query({database:this.dbName,statement:e,values:A,readonly:this.readonly,isSQL92:!0}):n=await this.sqlite.query({database:this.dbName,statement:e,values:[],readonly:this.readonly,isSQL92:r}),n=await this.reorderRows(n),Promise.resolve(n)}catch(i){return Promise.reject(i)}}async run(e,A,r=!0,n="no",i=!0){let s;try{return this.readonly?Promise.reject("not allowed in read-only mode"):(A&&A.length>0?s=await this.sqlite.run({database:this.dbName,statement:e,values:A,transaction:r,readonly:!1,returnMode:n,isSQL92:!0}):s=await this.sqlite.run({database:this.dbName,statement:e,values:[],transaction:r,readonly:!1,returnMode:n,isSQL92:i}),s.changes=await this.reorderRows(s.changes),Promise.resolve(s))}catch(a){return Promise.reject(a)}}async executeSet(e,A=!0,r="no",n=!0){let i;try{return this.readonly?Promise.reject("not allowed in read-only mode"):(i=await this.sqlite.executeSet({database:this.dbName,set:e,transaction:A,readonly:!1,returnMode:r,isSQL92:n}),i.changes=await this.reorderRows(i.changes),Promise.resolve(i))}catch(s){return Promise.reject(s)}}async isExists(){try{let e=await this.sqlite.isDBExists({database:this.dbName,readonly:this.readonly});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async isTable(e){try{let A=await this.sqlite.isTableExists({database:this.dbName,table:e,readonly:this.readonly});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async isDBOpen(){try{let e=await this.sqlite.isDBOpen({database:this.dbName,readonly:this.readonly});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async delete(){try{return this.readonly?Promise.reject("not allowed in read-only mode"):(await this.sqlite.deleteDatabase({database:this.dbName,readonly:!1}),Promise.resolve())}catch(e){return Promise.reject(e)}}async createSyncTable(){try{if(this.readonly)return Promise.reject("not allowed in read-only mode");{let e=await this.sqlite.createSyncTable({database:this.dbName,readonly:!1});return Promise.resolve(e)}}catch(e){return Promise.reject(e)}}async setSyncDate(e){try{return this.readonly?Promise.reject("not allowed in read-only mode"):(await this.sqlite.setSyncDate({database:this.dbName,syncdate:e,readonly:!1}),Promise.resolve())}catch(A){return Promise.reject(A)}}async getSyncDate(){try{let e=await this.sqlite.getSyncDate({database:this.dbName,readonly:this.readonly}),A="";return e.syncDate>0&&(A=new Date(e.syncDate*1e3).toISOString()),Promise.resolve(A)}catch(e){return Promise.reject(e)}}async exportToJson(e,A=!1){try{let r=await this.sqlite.exportToJson({database:this.dbName,jsonexportmode:e,readonly:this.readonly,encrypted:A});return Promise.resolve(r)}catch(r){return Promise.reject(r)}}async deleteExportedRows(){try{return this.readonly?Promise.reject("not allowed in read-only mode"):(await this.sqlite.deleteExportedRows({database:this.dbName,readonly:!1}),Promise.resolve())}catch(e){return Promise.reject(e)}}async executeTransaction(e,A=!0){let r=0,n=!1;if(this.readonly)return Promise.reject("not allowed in read-only mode");if(await this.sqlite.beginTransaction({database:this.dbName}),n=await this.sqlite.isTransactionActive({database:this.dbName}),!n)return Promise.reject("After Begin Transaction, no transaction active");try{for(let a of e){if(typeof a!="object"||!("statement"in a))throw new Error("Error a task.statement must be provided");if("values"in a&&a.values&&a.values.length>0){let o=a.statement.toUpperCase().includes("RETURNING")?"all":"no",l=await this.sqlite.run({database:this.dbName,statement:a.statement,values:a.values,transaction:!1,readonly:!1,returnMode:o,isSQL92:A});if(l.changes.changes<0)throw new Error("Error in transaction method run ");r+=l.changes.changes}else{let o=await this.sqlite.execute({database:this.dbName,statements:a.statement,transaction:!1,readonly:!1});if(o.changes.changes<0)throw new Error("Error in transaction method execute ");r+=o.changes.changes}}let i=await this.sqlite.commitTransaction({database:this.dbName});r+=i.changes.changes;let s={changes:{changes:r}};return Promise.resolve(s)}catch(i){let s=i.message?i.message:i;return await this.sqlite.rollbackTransaction({database:this.dbName}),Promise.reject(s)}}async reorderRows(e){let A=e;if(e?.values&&typeof e.values[0]=="object"&&Object.keys(e.values[0]).includes("ios_columns")){let r=e.values[0].ios_columns,n=[];for(let i=1;i<e.values.length;i++){let s=e.values[i],a={};for(let o of r)a[o]=s[o];n.push(a)}A.values=n}return Promise.resolve(A)}}});var KS={};or(KS,{CapacitorSQLiteWeb:()=>sm});var sm,jS=zt(()=>{Ti();sm=class extends gn{constructor(){super(...arguments),this.jeepSqliteElement=null,this.isWebStoreOpen=!1}async initWebStore(){await customElements.whenDefined("jeep-sqlite"),this.jeepSqliteElement=document.querySelector("jeep-sqlite"),this.ensureJeepSqliteIsAvailable(),this.jeepSqliteElement.addEventListener("jeepSqliteImportProgress",e=>{this.notifyListeners("sqliteImportProgressEvent",e.detail)}),this.jeepSqliteElement.addEventListener("jeepSqliteExportProgress",e=>{this.notifyListeners("sqliteExportProgressEvent",e.detail)}),this.jeepSqliteElement.addEventListener("jeepSqliteHTTPRequestEnded",e=>{this.notifyListeners("sqliteHTTPRequestEndedEvent",e.detail)}),this.jeepSqliteElement.addEventListener("jeepSqlitePickDatabaseEnded",e=>{this.notifyListeners("sqlitePickDatabaseEndedEvent",e.detail)}),this.jeepSqliteElement.addEventListener("jeepSqliteSaveDatabaseToDisk",e=>{this.notifyListeners("sqliteSaveDatabaseToDiskEvent",e.detail)}),this.isWebStoreOpen||(this.isWebStoreOpen=await this.jeepSqliteElement.isStoreOpen())}async saveToStore(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.saveToStore(e);return}catch(A){throw new Error(`${A}`)}}async getFromLocalDiskToStore(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.getFromLocalDiskToStore(e);return}catch(A){throw new Error(`${A}`)}}async saveToLocalDisk(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.saveToLocalDisk(e);return}catch(A){throw new Error(`${A}`)}}async echo(e){return this.ensureJeepSqliteIsAvailable(),await this.jeepSqliteElement.echo(e)}async createConnection(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.createConnection(e);return}catch(A){throw new Error(`${A}`)}}async open(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.open(e);return}catch(A){throw new Error(`${A}`)}}async closeConnection(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.closeConnection(e);return}catch(A){throw new Error(`${A}`)}}async getVersion(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.getVersion(e)}catch(A){throw new Error(`${A}`)}}async checkConnectionsConsistency(e){this.ensureJeepSqliteIsAvailable();try{return await this.jeepSqliteElement.checkConnectionsConsistency(e)}catch(A){throw new Error(`${A}`)}}async close(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.close(e);return}catch(A){throw new Error(`${A}`)}}async beginTransaction(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.beginTransaction(e)}catch(A){throw new Error(`${A}`)}}async commitTransaction(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.commitTransaction(e)}catch(A){throw new Error(`${A}`)}}async rollbackTransaction(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.rollbackTransaction(e)}catch(A){throw new Error(`${A}`)}}async isTransactionActive(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isTransactionActive(e)}catch(A){throw new Error(`${A}`)}}async getTableList(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.getTableList(e)}catch(A){throw new Error(`${A}`)}}async execute(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.execute(e)}catch(A){throw new Error(`${A}`)}}async executeSet(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.executeSet(e)}catch(A){throw new Error(`${A}`)}}async run(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.run(e)}catch(A){throw new Error(`${A}`)}}async query(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.query(e)}catch(A){throw new Error(`${A}`)}}async isDBExists(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isDBExists(e)}catch(A){throw new Error(`${A}`)}}async isDBOpen(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isDBOpen(e)}catch(A){throw new Error(`${A}`)}}async isDatabase(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isDatabase(e)}catch(A){throw new Error(`${A}`)}}async isTableExists(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isTableExists(e)}catch(A){throw new Error(`${A}`)}}async deleteDatabase(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.deleteDatabase(e);return}catch(A){throw new Error(`${A}`)}}async isJsonValid(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isJsonValid(e)}catch(A){throw new Error(`${A}`)}}async importFromJson(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.importFromJson(e)}catch(A){throw new Error(`${A}`)}}async exportToJson(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.exportToJson(e)}catch(A){throw new Error(`${A}`)}}async createSyncTable(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.createSyncTable(e)}catch(A){throw new Error(`${A}`)}}async setSyncDate(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.setSyncDate(e);return}catch(A){throw new Error(`${A}`)}}async getSyncDate(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.getSyncDate(e)}catch(A){throw new Error(`${A}`)}}async deleteExportedRows(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.deleteExportedRows(e);return}catch(A){throw new Error(`${A}`)}}async addUpgradeStatement(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.addUpgradeStatement(e);return}catch(A){throw new Error(`${A}`)}}async copyFromAssets(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.copyFromAssets(e);return}catch(A){throw new Error(`${A}`)}}async getFromHTTPRequest(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.getFromHTTPRequest(e);return}catch(A){throw new Error(`${A}`)}}async getDatabaseList(){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.getDatabaseList()}catch(e){throw new Error(`${e}`)}}ensureJeepSqliteIsAvailable(){if(this.jeepSqliteElement===null)throw new Error("The jeep-sqlite element is not present in the DOM! Please check the @capacitor-community/sqlite documentation for instructions regarding the web platform.")}ensureWebstoreIsOpen(){if(!this.isWebStoreOpen)throw new Error('WebStore is not open yet. You have to call "initWebStore()" first.')}async getUrl(){throw this.unimplemented("Not implemented on web.")}async getMigratableDbList(e){throw console.log("getMigratableDbList",e),this.unimplemented("Not implemented on web.")}async addSQLiteSuffix(e){throw console.log("addSQLiteSuffix",e),this.unimplemented("Not implemented on web.")}async deleteOldDatabases(e){throw console.log("deleteOldDatabases",e),this.unimplemented("Not implemented on web.")}async moveDatabasesAndAddSuffix(e){throw console.log("moveDatabasesAndAddSuffix",e),this.unimplemented("Not implemented on web.")}async isSecretStored(){throw this.unimplemented("Not implemented on web.")}async setEncryptionSecret(e){throw console.log("setEncryptionSecret",e),this.unimplemented("Not implemented on web.")}async changeEncryptionSecret(e){throw console.log("changeEncryptionSecret",e),this.unimplemented("Not implemented on web.")}async clearEncryptionSecret(){throw console.log("clearEncryptionSecret"),this.unimplemented("Not implemented on web.")}async checkEncryptionSecret(e){throw console.log("checkEncryptionPassPhrase",e),this.unimplemented("Not implemented on web.")}async getNCDatabasePath(e){throw console.log("getNCDatabasePath",e),this.unimplemented("Not implemented on web.")}async createNCConnection(e){throw console.log("createNCConnection",e),this.unimplemented("Not implemented on web.")}async closeNCConnection(e){throw console.log("closeNCConnection",e),this.unimplemented("Not implemented on web.")}async isNCDatabase(e){throw console.log("isNCDatabase",e),this.unimplemented("Not implemented on web.")}async isDatabaseEncrypted(e){throw console.log("isDatabaseEncrypted",e),this.unimplemented("Not implemented on web.")}async isInConfigEncryption(){throw this.unimplemented("Not implemented on web.")}async isInConfigBiometricAuth(){throw this.unimplemented("Not implemented on web.")}async loadExtension(e){throw console.log("loadExtension",e),this.unimplemented("Not implemented on web.")}async enableLoadExtension(e){throw console.log("enableLoadExtension",e),this.unimplemented("Not implemented on web.")}}});var VS={};or(VS,{CapacitorSQLite:()=>YK,SQLiteConnection:()=>am,SQLiteDBConnection:()=>th});var YK,GS=zt(()=>{Ti();qS();YK=$n("CapacitorSQLite",{web:()=>Promise.resolve().then(()=>(jS(),KS)).then(t=>new t.CapacitorSQLiteWeb),electron:()=>window.CapacitorCustomPlatform.plugins.CapacitorSQLite})});var zS={};or(zS,{default:()=>om});var om,WS=zt(()=>{pa();om=class t{constructor(e){this.path=e}static async load(e){let A=await ge("plugin:sql|load",{db:e});return new t(A)}static get(e){return new t(e)}async execute(e,A){let[r,n]=await ge("plugin:sql|execute",{db:this.path,query:e,values:A??[]});return{lastInsertId:n,rowsAffected:r}}async select(e,A){return await ge("plugin:sql|select",{db:this.path,query:e,values:A??[]})}async close(e){return await ge("plugin:sql|close",{db:e})}}});var i3=zt(()=>{});var s3={};or(s3,{Network:()=>ZK,NetworkWeb:()=>Rg});function a3(){let t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,e="unknown",A=t?t.type||t.effectiveType:null;if(A&&typeof A=="string")switch(A){case"bluetooth":case"cellular":e="cellular";break;case"none":e="none";break;case"ethernet":case"wifi":case"wimax":e="wifi";break;case"other":case"unknown":e="unknown";break;case"slow-2g":case"2g":case"3g":e="cellular";break;case"4g":e="wifi";break;default:break}return e}var Rg,ZK,o3=zt(()=>{Ti();Rg=class extends gn{constructor(){super(),this.handleOnline=()=>{let A={connected:!0,connectionType:a3()};this.notifyListeners("networkStatusChange",A)},this.handleOffline=()=>{let e={connected:!1,connectionType:"none"};this.notifyListeners("networkStatusChange",e)},typeof window<"u"&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}async getStatus(){if(!window.navigator)throw this.unavailable("Browser does not support the Network Information API");let e=window.navigator.onLine,A=a3();return{connected:e,connectionType:e?A:"none"}}},ZK=new Rg});var l3={};or(l3,{Network:()=>ej});var ej,c3=zt(()=>{Ti();i3();ej=$n("Network",{web:()=>Promise.resolve().then(()=>(o3(),s3)).then(t=>new t.NetworkWeb)})});var Pj={};or(Pj,{TevrocClient:()=>nh,TevrocError:()=>Os,createChatbotClient:()=>oj,createClient:()=>sj,registerDebugHandler:()=>ry,unregisterDebugHandler:()=>Q0});rw();Hy();jo();var PS=An(sw(),1);ad();var ga=Uint8Array,Ni=Uint16Array,fw=Int32Array,hw=new ga([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),dw=new ga([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),My=new ga([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Vy=function(t,e){for(var A=new Ni(31),r=0;r<31;++r)A[r]=e+=1<<t[r-1];for(var n=new fw(A[30]),r=1;r<30;++r)for(var i=A[r];i<A[r+1];++i)n[i]=i-A[r]<<5|r;return{b:A,r:n}},Gy=Vy(hw,2),XQ=Gy.b,lw=Gy.r;XQ[28]=258,lw[258]=28;var zy=Vy(dw,0),FV=zy.b,qy=zy.r,cw=new Ni(32768);for(FA=0;FA<32768;++FA)Fs=(FA&43690)>>1|(FA&21845)<<1,Fs=(Fs&52428)>>2|(Fs&13107)<<2,Fs=(Fs&61680)>>4|(Fs&3855)<<4,cw[FA]=((Fs&65280)>>8|(Fs&255)<<8)>>1;var Fs,FA,Du=(function(t,e,A){for(var r=t.length,n=0,i=new Ni(e);n<r;++n)t[n]&&++i[t[n]-1];var s=new Ni(e);for(n=1;n<e;++n)s[n]=s[n-1]+i[n-1]<<1;var a;if(A){a=new Ni(1<<e);var o=15-e;for(n=0;n<r;++n)if(t[n])for(var l=n<<4|t[n],h=e-t[n],v=s[t[n]-1]++<<h,m=v|(1<<h)-1;v<=m;++v)a[cw[v]>>o]=l}else for(a=new Ni(r),n=0;n<r;++n)t[n]&&(a[n]=cw[s[t[n]-1]++]>>15-t[n]);return a}),$o=new ga(288);for(FA=0;FA<144;++FA)$o[FA]=8;var FA;for(FA=144;FA<256;++FA)$o[FA]=9;var FA;for(FA=256;FA<280;++FA)$o[FA]=7;var FA;for(FA=280;FA<288;++FA)$o[FA]=8;var FA,sd=new ga(32);for(FA=0;FA<32;++FA)sd[FA]=5;var FA,YQ=Du($o,9,0);var JQ=Du(sd,5,0);var Wy=function(t){return(t+7)/8|0},ZQ=function(t,e,A){return(e==null||e<0)&&(e=0),(A==null||A>t.length)&&(A=t.length),new ga(t.subarray(e,A))};var Us=function(t,e,A){A<<=e&7;var r=e/8|0;t[r]|=A,t[r+1]|=A>>8},Ru=function(t,e,A){A<<=e&7;var r=e/8|0;t[r]|=A,t[r+1]|=A>>8,t[r+2]|=A>>16},ow=function(t,e){for(var A=[],r=0;r<t.length;++r)t[r]&&A.push({s:r,f:t[r]});var n=A.length,i=A.slice();if(!n)return{t:Xy,l:0};if(n==1){var s=new ga(A[0].s+1);return s[A[0].s]=1,{t:s,l:1}}A.sort(function(re,fe){return re.f-fe.f}),A.push({s:-1,f:25001});var a=A[0],o=A[1],l=0,h=1,v=2;for(A[0]={s:-1,f:a.f+o.f,l:a,r:o};h!=n-1;)a=A[A[l].f<A[v].f?l++:v++],o=A[l!=h&&A[l].f<A[v].f?l++:v++],A[h++]={s:-1,f:a.f+o.f,l:a,r:o};for(var m=i[0].s,r=1;r<n;++r)i[r].s>m&&(m=i[r].s);var g=new Ni(m+1),C=uw(A[h-1],g,0);if(C>e){var r=0,F=0,_=C-e,x=1<<_;for(i.sort(function(fe,Ae){return g[Ae.s]-g[fe.s]||fe.f-Ae.f});r<n;++r){var H=i[r].s;if(g[H]>e)F+=x-(1<<C-g[H]),g[H]=e;else break}for(F>>=_;F>0;){var D=i[r].s;g[D]<e?F-=1<<e-g[D]++-1:++r}for(;r>=0&&F;--r){var k=i[r].s;g[k]==e&&(--g[k],++F)}C=e}return{t:new ga(g),l:C}},uw=function(t,e,A){return t.s==-1?Math.max(uw(t.l,e,A+1),uw(t.r,e,A+1)):e[t.s]=A},Ky=function(t){for(var e=t.length;e&&!t[--e];);for(var A=new Ni(++e),r=0,n=t[0],i=1,s=function(o){A[r++]=o},a=1;a<=e;++a)if(t[a]==n&&a!=e)++i;else{if(!n&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(n),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(n);i=1,n=t[a]}return{c:A.subarray(0,r),n:e}},ku=function(t,e){for(var A=0,r=0;r<e.length;++r)A+=t[r]*e[r];return A},$y=function(t,e,A){var r=A.length,n=Wy(e+2);t[n]=r&255,t[n+1]=r>>8,t[n+2]=t[n]^255,t[n+3]=t[n+1]^255;for(var i=0;i<r;++i)t[n+i+4]=A[i];return(n+4+r)*8},jy=function(t,e,A,r,n,i,s,a,o,l,h){Us(e,h++,A),++n[256];for(var v=ow(n,15),m=v.t,g=v.l,C=ow(i,15),F=C.t,_=C.l,x=Ky(m),H=x.c,D=x.n,k=Ky(F),re=k.c,fe=k.n,Ae=new Ni(19),j=0;j<H.length;++j)++Ae[H[j]&31];for(var j=0;j<re.length;++j)++Ae[re[j]&31];for(var N=ow(Ae,7),Z=N.t,I=N.l,O=19;O>4&&!Z[My[O-1]];--O);var Y=l+5<<3,ee=ku(n,$o)+ku(i,sd)+s,ce=ku(n,m)+ku(i,F)+s+14+3*O+ku(Ae,Z)+2*Ae[16]+3*Ae[17]+7*Ae[18];if(o>=0&&Y<=ee&&Y<=ce)return $y(e,h,t.subarray(o,o+l));var be,Fe,de,Ee;if(Us(e,h,1+(ce<ee)),h+=2,ce<ee){be=Du(m,g,0),Fe=m,de=Du(F,_,0),Ee=F;var Pe=Du(Z,I,0);Us(e,h,D-257),Us(e,h+5,fe-1),Us(e,h+10,O-4),h+=14;for(var j=0;j<O;++j)Us(e,h+3*j,Z[My[j]]);h+=3*O;for(var Ue=[H,re],P=0;P<2;++P)for(var J=Ue[P],j=0;j<J.length;++j){var te=J[j]&31;Us(e,h,Pe[te]),h+=Z[te],te>15&&(Us(e,h,J[j]>>5&127),h+=J[j]>>12)}}else be=YQ,Fe=$o,de=JQ,Ee=sd;for(var j=0;j<a;++j){var ie=r[j];if(ie>255){var te=ie>>18&31;Ru(e,h,be[te+257]),h+=Fe[te+257],te>7&&(Us(e,h,ie>>23&31),h+=hw[te]);var oe=ie&31;Ru(e,h,de[oe]),h+=Ee[oe],oe>3&&(Ru(e,h,ie>>5&8191),h+=dw[oe])}else Ru(e,h,be[ie]),h+=Fe[ie]}return Ru(e,h,be[256]),h+Fe[256]},eI=new fw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Xy=new ga(0),tI=function(t,e,A,r,n,i){var s=i.z||t.length,a=new ga(r+s+5*(1+Math.ceil(s/7e3))+n),o=a.subarray(r,a.length-n),l=i.l,h=(i.r||0)&7;if(e){h&&(o[0]=i.r>>3);for(var v=eI[e-1],m=v>>13,g=v&8191,C=(1<<A)-1,F=i.p||new Ni(32768),_=i.h||new Ni(C+1),x=Math.ceil(A/3),H=2*x,D=function(at){return(t[at]^t[at+1]<<x^t[at+2]<<H)&C},k=new fw(25e3),re=new Ni(288),fe=new Ni(32),Ae=0,j=0,N=i.i||0,Z=0,I=i.w||0,O=0;N+2<s;++N){var Y=D(N),ee=N&32767,ce=_[Y];if(F[ee]=ce,_[Y]=ee,I<=N){var be=s-N;if((Ae>7e3||Z>24576)&&(be>423||!l)){h=jy(t,o,0,k,re,fe,j,Z,O,N-O,h),Z=Ae=j=0,O=N;for(var Fe=0;Fe<286;++Fe)re[Fe]=0;for(var Fe=0;Fe<30;++Fe)fe[Fe]=0}var de=2,Ee=0,Pe=g,Ue=ee-ce&32767;if(be>2&&Y==D(N-Ue))for(var P=Math.min(m,be)-1,J=Math.min(32767,N),te=Math.min(258,be);Ue<=J&&--Pe&&ee!=ce;){if(t[N+de]==t[N+de-Ue]){for(var ie=0;ie<te&&t[N+ie]==t[N+ie-Ue];++ie);if(ie>de){if(de=ie,Ee=Ue,ie>P)break;for(var oe=Math.min(Ue,ie-2),ve=0,Fe=0;Fe<oe;++Fe){var xe=N-Ue+Fe&32767,_e=F[xe],Le=xe-_e&32767;Le>ve&&(ve=Le,ce=xe)}}}ee=ce,ce=F[ee],Ue+=ee-ce&32767}if(Ee){k[Z++]=268435456|lw[de]<<18|qy[Ee];var Oe=lw[de]&31,Je=qy[Ee]&31;j+=hw[Oe]+dw[Je],++re[257+Oe],++fe[Je],I=N+de,++Ae}else k[Z++]=t[N],++re[t[N]]}}for(N=Math.max(N,I);N<s;++N)k[Z++]=t[N],++re[t[N]];h=jy(t,o,l,k,re,fe,j,Z,O,N-O,h),l||(i.r=h&7|o[h/8|0]<<3,h-=7,i.h=_,i.p=F,i.i=N,i.w=I)}else{for(var N=i.w||0;N<s+l;N+=65535){var qe=N+65535;qe>=s&&(o[h/8|0]=l,qe=s),h=$y(o,h+1,t.subarray(N,qe))}i.i=s}return ZQ(a,0,r+Wy(h)+n)};var Yy=function(){var t=1,e=0;return{p:function(A){for(var r=t,n=e,i=A.length|0,s=0;s!=i;){for(var a=Math.min(s+2655,i);s<a;++s)n+=r+=A[s];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}t=r,e=n},d:function(){return t%=65521,e%=65521,(t&255)<<24|(t&65280)<<8|(e&255)<<8|e>>8}}},AI=function(t,e,A,r,n){if(!n&&(n={l:1},e.dictionary)){var i=e.dictionary.subarray(-32768),s=new ga(i.length+t.length);s.set(i),s.set(t,i.length),t=s,n.w=i.length}return tI(t,e.level==null?6:e.level,e.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+e.mem,A,r,n)};var Jy=function(t,e,A){for(;A;++e)t[e]=A,A>>>=8};var rI=function(t,e){var A=e.level,r=A==0?0:A<6?1:A==9?3:2;if(t[0]=120,t[1]=r<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var n=Yy();n.p(e.dictionary),Jy(t,2,n.d())}};function od(t,e){e||(e={});var A=Yy();A.p(t);var r=AI(t,e,e.dictionary?6:2,4);return rI(r,e),Jy(r,r.length-4,A.d()),r}var nI=typeof TextDecoder<"u"&&new TextDecoder,iI=0;try{nI.decode(Xy,{stream:!0}),iI=1}catch{}function Zy(t){if(Array.isArray(t))return t}function eB(t,e){var A=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(A!=null){var r,n,i,s,a=[],o=!0,l=!1;try{if(i=(A=A.call(t)).next,e===0){if(Object(A)!==A)return;o=!1}else for(;!(o=(r=i.call(A)).done)&&(a.push(r.value),a.length!==e);o=!0);}catch(h){l=!0,n=h}finally{try{if(!o&&A.return!=null&&(s=A.return(),Object(s)!==s))return}finally{if(l)throw n}}return a}}function pw(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=Array(e);A<e;A++)r[A]=t[A];return r}function tB(t,e){if(t){if(typeof t=="string")return pw(t,e);var A={}.toString.call(t).slice(8,-1);return A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set"?Array.from(t):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?pw(t,e):void 0}}function AB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gw(t,e){return Zy(t)||eB(t,e)||tB(t,e)||AB()}function ww(t,e="utf8"){return new TextDecoder(e).decode(t)}var aI=new TextEncoder;function rB(t){return aI.encode(t)}var sI=1024*8,oI=(()=>{let t=new Uint8Array(4),e=new Uint32Array(t.buffer);return!((e[0]=1)&t[0])})(),vw={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},Hu=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=sI,A={}){let r=!1;typeof e=="number"?e=new ArrayBuffer(e):(r=!0,this.lastWrittenByte=e.byteLength);let n=A.offset?A.offset>>>0:0,i=e.byteLength-n,s=n;(ArrayBuffer.isView(e)||e instanceof t)&&(e.byteLength!==e.buffer.byteLength&&(s=e.byteOffset+n),e=e.buffer),r?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=e,this.length=i,this.byteLength=i,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,i),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let e=this._marks.pop();if(e===void 0)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){let r=(this.offset+e)*2,n=new Uint8Array(r);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,A){let r=vw[A].BYTES_PER_ELEMENT*e,n=this.byteOffset+this.offset,i=this.buffer.slice(n,n+r);if(this.littleEndian===oI&&A!=="uint8"&&A!=="int8"){let a=new Uint8Array(this.buffer.slice(n,n+r));a.reverse();let o=new vw[A](a.buffer);return this.offset+=r,o.reverse(),o}let s=new vw[A](i);return this.offset+=r,s}readInt16(){let e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){let e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){let e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){let e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){let e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){let e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){let e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){let e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let A="";for(let r=0;r<e;r++)A+=this.readChar();return A}readUtf8(e=1){return ww(this.readBytes(e))}decodeText(e=1,A="utf8"){return ww(this.readBytes(e),A)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let A=0;A<e.length;A++)this._data.setUint8(this.offset++,e[A]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let A=0;A<e.length;A++)this.writeUint8(e.charCodeAt(A));return this}writeUtf8(e){return this.writeBytes(rB(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function cc(t){let e=t.length;for(;--e>=0;)t[e]=0}var lI=0,jB=1,cI=2,uI=3,fI=258,qw=29,ef=256,zu=ef+1+qw,ac=30,Kw=19,VB=2*zu+1,Xo=15,mw=16,hI=7,jw=256,GB=16,zB=17,WB=18,Tw=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),dd=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),dI=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),$B=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pI=512,_s=new Array((zu+2)*2);cc(_s);var ju=new Array(ac*2);cc(ju);var Wu=new Array(pI);cc(Wu);var $u=new Array(fI-uI+1);cc($u);var Vw=new Array(qw);cc(Vw);var pd=new Array(ac);cc(pd);function yw(t,e,A,r,n){this.static_tree=t,this.extra_bits=e,this.extra_base=A,this.elems=r,this.max_length=n,this.has_stree=t&&t.length}var XB,YB,JB;function Bw(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}var ZB=t=>t<256?Wu[t]:Wu[256+(t>>>7)],Xu=(t,e)=>{t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255},pi=(t,e,A)=>{t.bi_valid>mw-A?(t.bi_buf|=e<<t.bi_valid&65535,Xu(t,t.bi_buf),t.bi_buf=e>>mw-t.bi_valid,t.bi_valid+=A-mw):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=A)},Wa=(t,e,A)=>{pi(t,A[e*2],A[e*2+1])},eb=(t,e)=>{let A=0;do A|=t&1,t>>>=1,A<<=1;while(--e>0);return A>>>1},gI=t=>{t.bi_valid===16?(Xu(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},wI=(t,e)=>{let A=e.dyn_tree,r=e.max_code,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,s=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,o=e.stat_desc.max_length,l,h,v,m,g,C,F=0;for(m=0;m<=Xo;m++)t.bl_count[m]=0;for(A[t.heap[t.heap_max]*2+1]=0,l=t.heap_max+1;l<VB;l++)h=t.heap[l],m=A[A[h*2+1]*2+1]+1,m>o&&(m=o,F++),A[h*2+1]=m,!(h>r)&&(t.bl_count[m]++,g=0,h>=a&&(g=s[h-a]),C=A[h*2],t.opt_len+=C*(m+g),i&&(t.static_len+=C*(n[h*2+1]+g)));if(F!==0){do{for(m=o-1;t.bl_count[m]===0;)m--;t.bl_count[m]--,t.bl_count[m+1]+=2,t.bl_count[o]--,F-=2}while(F>0);for(m=o;m!==0;m--)for(h=t.bl_count[m];h!==0;)v=t.heap[--l],!(v>r)&&(A[v*2+1]!==m&&(t.opt_len+=(m-A[v*2+1])*A[v*2],A[v*2+1]=m),h--)}},tb=(t,e,A)=>{let r=new Array(Xo+1),n=0,i,s;for(i=1;i<=Xo;i++)n=n+A[i-1]<<1,r[i]=n;for(s=0;s<=e;s++){let a=t[s*2+1];a!==0&&(t[s*2]=eb(r[a]++,a))}},vI=()=>{let t,e,A,r,n,i=new Array(Xo+1);for(A=0,r=0;r<qw-1;r++)for(Vw[r]=A,t=0;t<1<<Tw[r];t++)$u[A++]=r;for($u[A-1]=r,n=0,r=0;r<16;r++)for(pd[r]=n,t=0;t<1<<dd[r];t++)Wu[n++]=r;for(n>>=7;r<ac;r++)for(pd[r]=n<<7,t=0;t<1<<dd[r]-7;t++)Wu[256+n++]=r;for(e=0;e<=Xo;e++)i[e]=0;for(t=0;t<=143;)_s[t*2+1]=8,t++,i[8]++;for(;t<=255;)_s[t*2+1]=9,t++,i[9]++;for(;t<=279;)_s[t*2+1]=7,t++,i[7]++;for(;t<=287;)_s[t*2+1]=8,t++,i[8]++;for(tb(_s,zu+1,i),t=0;t<ac;t++)ju[t*2+1]=5,ju[t*2]=eb(t,5);XB=new yw(_s,Tw,ef+1,zu,Xo),YB=new yw(ju,dd,0,ac,Xo),JB=new yw(new Array(0),dI,0,Kw,hI)},Ab=t=>{let e;for(e=0;e<zu;e++)t.dyn_ltree[e*2]=0;for(e=0;e<ac;e++)t.dyn_dtree[e*2]=0;for(e=0;e<Kw;e++)t.bl_tree[e*2]=0;t.dyn_ltree[jw*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},rb=t=>{t.bi_valid>8?Xu(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},nB=(t,e,A,r)=>{let n=e*2,i=A*2;return t[n]<t[i]||t[n]===t[i]&&r[e]<=r[A]},bw=(t,e,A)=>{let r=t.heap[A],n=A<<1;for(;n<=t.heap_len&&(n<t.heap_len&&nB(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!nB(e,r,t.heap[n],t.depth));)t.heap[A]=t.heap[n],A=n,n<<=1;t.heap[A]=r},iB=(t,e,A)=>{let r,n,i=0,s,a;if(t.sym_next!==0)do r=t.pending_buf[t.sym_buf+i++]&255,r+=(t.pending_buf[t.sym_buf+i++]&255)<<8,n=t.pending_buf[t.sym_buf+i++],r===0?Wa(t,n,e):(s=$u[n],Wa(t,s+ef+1,e),a=Tw[s],a!==0&&(n-=Vw[s],pi(t,n,a)),r--,s=ZB(r),Wa(t,s,A),a=dd[s],a!==0&&(r-=pd[s],pi(t,r,a)));while(i<t.sym_next);Wa(t,jw,e)},Nw=(t,e)=>{let A=e.dyn_tree,r=e.stat_desc.static_tree,n=e.stat_desc.has_stree,i=e.stat_desc.elems,s,a,o=-1,l;for(t.heap_len=0,t.heap_max=VB,s=0;s<i;s++)A[s*2]!==0?(t.heap[++t.heap_len]=o=s,t.depth[s]=0):A[s*2+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=o<2?++o:0,A[l*2]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=r[l*2+1]);for(e.max_code=o,s=t.heap_len>>1;s>=1;s--)bw(t,A,s);l=i;do s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],bw(t,A,1),a=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=a,A[l*2]=A[s*2]+A[a*2],t.depth[l]=(t.depth[s]>=t.depth[a]?t.depth[s]:t.depth[a])+1,A[s*2+1]=A[a*2+1]=l,t.heap[1]=l++,bw(t,A,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],wI(t,e),tb(A,o,t.bl_count)},aB=(t,e,A)=>{let r,n=-1,i,s=e[1],a=0,o=7,l=4;for(s===0&&(o=138,l=3),e[(A+1)*2+1]=65535,r=0;r<=A;r++)i=s,s=e[(r+1)*2+1],!(++a<o&&i===s)&&(a<l?t.bl_tree[i*2]+=a:i!==0?(i!==n&&t.bl_tree[i*2]++,t.bl_tree[GB*2]++):a<=10?t.bl_tree[zB*2]++:t.bl_tree[WB*2]++,a=0,n=i,s===0?(o=138,l=3):i===s?(o=6,l=3):(o=7,l=4))},sB=(t,e,A)=>{let r,n=-1,i,s=e[1],a=0,o=7,l=4;for(s===0&&(o=138,l=3),r=0;r<=A;r++)if(i=s,s=e[(r+1)*2+1],!(++a<o&&i===s)){if(a<l)do Wa(t,i,t.bl_tree);while(--a!==0);else i!==0?(i!==n&&(Wa(t,i,t.bl_tree),a--),Wa(t,GB,t.bl_tree),pi(t,a-3,2)):a<=10?(Wa(t,zB,t.bl_tree),pi(t,a-3,3)):(Wa(t,WB,t.bl_tree),pi(t,a-11,7));a=0,n=i,s===0?(o=138,l=3):i===s?(o=6,l=3):(o=7,l=4)}},mI=t=>{let e;for(aB(t,t.dyn_ltree,t.l_desc.max_code),aB(t,t.dyn_dtree,t.d_desc.max_code),Nw(t,t.bl_desc),e=Kw-1;e>=3&&t.bl_tree[$B[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},yI=(t,e,A,r)=>{let n;for(pi(t,e-257,5),pi(t,A-1,5),pi(t,r-4,4),n=0;n<r;n++)pi(t,t.bl_tree[$B[n]*2+1],3);sB(t,t.dyn_ltree,e-1),sB(t,t.dyn_dtree,A-1)},BI=t=>{let e=4093624447,A;for(A=0;A<=31;A++,e>>>=1)if(e&1&&t.dyn_ltree[A*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(A=32;A<ef;A++)if(t.dyn_ltree[A*2]!==0)return 1;return 0},oB=!1,bI=t=>{oB||(vI(),oB=!0),t.l_desc=new Bw(t.dyn_ltree,XB),t.d_desc=new Bw(t.dyn_dtree,YB),t.bl_desc=new Bw(t.bl_tree,JB),t.bi_buf=0,t.bi_valid=0,Ab(t)},nb=(t,e,A,r)=>{pi(t,(lI<<1)+(r?1:0),3),rb(t),Xu(t,A),Xu(t,~A),A&&t.pending_buf.set(t.window.subarray(e,e+A),t.pending),t.pending+=A},CI=t=>{pi(t,jB<<1,3),Wa(t,jw,_s),gI(t)},EI=(t,e,A,r)=>{let n,i,s=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=BI(t)),Nw(t,t.l_desc),Nw(t,t.d_desc),s=mI(t),n=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,i<=n&&(n=i)):n=i=A+5,A+4<=n&&e!==-1?nb(t,e,A,r):t.strategy===4||i===n?(pi(t,(jB<<1)+(r?1:0),3),iB(t,_s,ju)):(pi(t,(cI<<1)+(r?1:0),3),yI(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),iB(t,t.dyn_ltree,t.dyn_dtree)),Ab(t),r&&rb(t)},FI=(t,e,A)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=A,e===0?t.dyn_ltree[A*2]++:(t.matches++,e--,t.dyn_ltree[($u[A]+ef+1)*2]++,t.dyn_dtree[ZB(e)*2]++),t.sym_next===t.sym_end),UI=bI,xI=nb,_I=EI,SI=FI,QI=CI,II={_tr_init:UI,_tr_stored_block:xI,_tr_flush_block:_I,_tr_tally:SI,_tr_align:QI},LI=(t,e,A,r)=>{let n=t&65535|0,i=t>>>16&65535|0,s=0;for(;A!==0;){s=A>2e3?2e3:A,A-=s;do n=n+e[r++]|0,i=i+n|0;while(--s);n%=65521,i%=65521}return n|i<<16|0},Yu=LI,TI=()=>{let t,e=[];for(var A=0;A<256;A++){t=A;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;e[A]=t}return e},NI=new Uint32Array(TI()),OI=(t,e,A,r)=>{let n=NI,i=r+A;t^=-1;for(let s=r;s<i;s++)t=t>>>8^n[(t^e[s])&255];return t^-1},nn=OI,Zo={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},uc={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:PI,_tr_stored_block:Ow,_tr_flush_block:RI,_tr_tally:co,_tr_align:kI}=II,{Z_NO_FLUSH:uo,Z_PARTIAL_FLUSH:DI,Z_FULL_FLUSH:HI,Z_FINISH:Yi,Z_BLOCK:lB,Z_OK:wn,Z_STREAM_END:cB,Z_STREAM_ERROR:$a,Z_DATA_ERROR:MI,Z_BUF_ERROR:Cw,Z_DEFAULT_COMPRESSION:qI,Z_FILTERED:KI,Z_HUFFMAN_ONLY:ld,Z_RLE:jI,Z_FIXED:VI,Z_DEFAULT_STRATEGY:GI,Z_UNKNOWN:zI,Z_DEFLATED:vd}=uc,WI=9,$I=15,XI=8,YI=29,JI=256,Pw=JI+1+YI,ZI=30,eL=19,tL=2*Pw+1,AL=15,EA=3,lo=258,Xa=lo+EA+1,rL=32,oc=42,Gw=57,Rw=69,kw=73,Dw=91,Hw=103,Yo=113,qu=666,Yn=1,fc=2,el=3,hc=4,nL=3,Jo=(t,e)=>(t.msg=Zo[e],e),uB=t=>t*2-(t>4?9:0),oo=t=>{let e=t.length;for(;--e>=0;)t[e]=0},iL=t=>{let e,A,r,n=t.w_size;e=t.hash_size,r=e;do A=t.head[--r],t.head[r]=A>=n?A-n:0;while(--e);e=n,r=e;do A=t.prev[--r],t.prev[r]=A>=n?A-n:0;while(--e)},zw=(t,e,A)=>(e<<t.hash_shift^A)&t.hash_mask,tl=(t,e)=>{let A;if(t.legacy_hash)A=t.ins_h=zw(t,t.ins_h,t.window[e+EA-1]);else{let n=t.window,i=n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24;A=t.ins_h=Math.imul(i,66521)+66521>>>16&t.hash_mask}let r=t.prev[e&t.w_mask]=t.head[A];return t.head[A]=e,r},Oi=t=>{let e=t.state,A=e.pending;A>t.avail_out&&(A=t.avail_out),A!==0&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+A),t.next_out),t.next_out+=A,e.pending_out+=A,t.total_out+=A,t.avail_out-=A,e.pending-=A,e.pending===0&&(e.pending_out=0))},Pi=(t,e)=>{RI(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Oi(t.strm)},UA=(t,e)=>{t.pending_buf[t.pending++]=e},Mu=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255},Mw=(t,e,A,r)=>{let n=t.avail_in;return n>r&&(n=r),n===0?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),A),t.state.wrap===1?t.adler=Yu(t.adler,e,n,A):t.state.wrap===2&&(t.adler=nn(t.adler,e,n,A)),t.next_in+=n,t.total_in+=n,n)},ib=(t,e)=>{let A=t.max_chain_length,r=t.strstart,n,i,s=t.prev_length,a=t.nice_match,o=t.strstart>t.w_size-Xa?t.strstart-(t.w_size-Xa):0,l=t.window,h=t.w_mask,v=t.prev,m=t.strstart+lo,g=l[r+s-1],C=l[r+s];t.prev_length>=t.good_match&&(A>>=2),a>t.lookahead&&(a=t.lookahead);do if(n=e,!(l[n+s]!==C||l[n+s-1]!==g||l[n]!==l[r]||l[++n]!==l[r+1])){r+=2,n++;do;while(l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&r<m);if(i=lo-(m-r),r=m-lo,i>s){if(t.match_start=e,s=i,i>=a)break;g=l[r+s-1],C=l[r+s]}}while((e=v[e&h])>o&&--A!==0);return s<=t.lookahead?s:t.lookahead},lc=t=>{let e=t.w_size,A,r,n;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-Xa)&&(t.window.set(t.window.subarray(e,e+e-r),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),iL(t),r+=e),t.strm.avail_in===0)break;if(A=Mw(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=A,t.legacy_hash){if(t.lookahead+t.insert>=EA)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=zw(t,t.ins_h,t.window[n+1]);t.insert&&(tl(t,n),n++,t.insert--,!(t.lookahead+t.insert<EA)););}else if(t.lookahead+t.insert>EA)for(n=t.strstart-t.insert;t.insert&&(tl(t,n),n++,t.insert--,!(t.lookahead+t.insert<=EA)););}while(t.lookahead<Xa&&t.strm.avail_in!==0)},ab=(t,e)=>{let A=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r,n,i,s=0,a=t.strm.avail_in;do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i||(i=t.strm.avail_out-i,n=t.strstart-t.block_start,r>n+t.strm.avail_in&&(r=n+t.strm.avail_in),r>i&&(r=i),r<A&&(r===0&&e!==Yi||e===uo||r!==n+t.strm.avail_in)))break;s=e===Yi&&r===n+t.strm.avail_in?1:0,Ow(t,0,0,s),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,Oi(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(Mw(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(s===0);return a-=t.strm.avail_in,a&&(a>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=a&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-a,t.strm.next_in),t.strstart),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),s?hc:e!==uo&&e!==Yi&&t.strm.avail_in===0&&t.strstart===t.block_start?fc:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(Mw(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,A=i>t.w_size?t.w_size:i,n=t.strstart-t.block_start,(n>=A||(n||e===Yi)&&e!==uo&&t.strm.avail_in===0&&n<=i)&&(r=n>i?i:n,s=e===Yi&&t.strm.avail_in===0&&r===n?1:0,Ow(t,t.block_start,r,s),t.block_start+=r,Oi(t.strm)),s?el:Yn)},Ew=(t,e)=>{let A,r;for(;;){if(t.lookahead<Xa){if(lc(t),t.lookahead<Xa&&e===uo)return Yn;if(t.lookahead===0)break}if(A=0,t.lookahead>=EA&&(A=tl(t,t.strstart)),A!==0&&t.strstart-A<=t.w_size-Xa&&(t.match_length=ib(t,A)),t.match_length>=EA)if(r=co(t,t.strstart-t.match_start,t.match_length-EA),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=EA){t.match_length--;do t.strstart++,A=tl(t,t.strstart);while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.legacy_hash&&(t.ins_h=t.window[t.strstart],t.ins_h=zw(t,t.ins_h,t.window[t.strstart+1]));else r=co(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(Pi(t,!1),t.strm.avail_out===0))return Yn}return t.insert=t.strstart<EA-1?t.strstart:EA-1,e===Yi?(Pi(t,!0),t.strm.avail_out===0?el:hc):t.sym_next&&(Pi(t,!1),t.strm.avail_out===0)?Yn:fc},nc=(t,e)=>{let A,r,n;for(;;){if(t.lookahead<Xa){if(lc(t),t.lookahead<Xa&&e===uo)return Yn;if(t.lookahead===0)break}if(A=0,t.lookahead>=EA&&(A=tl(t,t.strstart)),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=EA-1,A!==0&&t.prev_length<t.max_lazy_match&&t.strstart-A<=t.w_size-Xa&&(t.match_length=ib(t,A),t.match_length<=5&&(t.strategy===KI||t.match_length===EA&&t.strstart-t.match_start>4096)&&(t.match_length=EA-1)),t.prev_length>=EA&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-EA,r=co(t,t.strstart-1-t.prev_match,t.prev_length-EA),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=n&&(A=tl(t,t.strstart));while(--t.prev_length!==0);if(t.match_available=0,t.match_length=EA-1,t.strstart++,r&&(Pi(t,!1),t.strm.avail_out===0))return Yn}else if(t.match_available){if(r=co(t,0,t.window[t.strstart-1]),r&&Pi(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Yn}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=co(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<EA-1?t.strstart:EA-1,e===Yi?(Pi(t,!0),t.strm.avail_out===0?el:hc):t.sym_next&&(Pi(t,!1),t.strm.avail_out===0)?Yn:fc},aL=(t,e)=>{let A,r,n,i,s=t.window;for(;;){if(t.lookahead<=lo){if(lc(t),t.lookahead<=lo&&e===uo)return Yn;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=EA&&t.strstart>0&&(n=t.strstart-1,r=s[n],r===s[++n]&&r===s[++n]&&r===s[++n])){i=t.strstart+lo;do;while(r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&n<i);t.match_length=lo-(i-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=EA?(A=co(t,1,t.match_length-EA),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(A=co(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),A&&(Pi(t,!1),t.strm.avail_out===0))return Yn}return t.insert=0,e===Yi?(Pi(t,!0),t.strm.avail_out===0?el:hc):t.sym_next&&(Pi(t,!1),t.strm.avail_out===0)?Yn:fc},sL=(t,e)=>{let A;for(;;){if(t.lookahead===0&&(lc(t),t.lookahead===0)){if(e===uo)return Yn;break}if(t.match_length=0,A=co(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,A&&(Pi(t,!1),t.strm.avail_out===0))return Yn}return t.insert=0,e===Yi?(Pi(t,!0),t.strm.avail_out===0?el:hc):t.sym_next&&(Pi(t,!1),t.strm.avail_out===0)?Yn:fc};function Ga(t,e,A,r,n){this.good_length=t,this.max_lazy=e,this.nice_length=A,this.max_chain=r,this.func=n}var Ku=[new Ga(0,0,0,0,ab),new Ga(4,4,8,4,Ew),new Ga(4,5,16,8,Ew),new Ga(4,6,32,32,Ew),new Ga(4,4,16,16,nc),new Ga(8,16,32,32,nc),new Ga(8,16,128,128,nc),new Ga(8,32,128,256,nc),new Ga(32,128,258,1024,nc),new Ga(32,258,258,4096,nc)],oL=t=>{t.window_size=2*t.w_size,oo(t.head),t.max_lazy_match=Ku[t.level].max_lazy,t.good_match=Ku[t.level].good_length,t.nice_match=Ku[t.level].nice_length,t.max_chain_length=Ku[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=EA-1,t.match_available=0,t.ins_h=0};function lL(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=vd,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.legacy_hash=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(tL*2),this.dyn_dtree=new Uint16Array((2*ZI+1)*2),this.bl_tree=new Uint16Array((2*eL+1)*2),oo(this.dyn_ltree),oo(this.dyn_dtree),oo(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(AL+1),this.heap=new Uint16Array(2*Pw+1),oo(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Pw+1),oo(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var tf=t=>{if(!t)return 1;let e=t.state;return!e||e.strm!==t||e.status!==oc&&e.status!==Gw&&e.status!==Rw&&e.status!==kw&&e.status!==Dw&&e.status!==Hw&&e.status!==Yo&&e.status!==qu?1:0},sb=t=>{if(tf(t))return Jo(t,$a);t.total_in=t.total_out=0,t.data_type=zI;let e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?Gw:e.wrap?oc:Yo,t.adler=e.wrap===2?0:1,e.last_flush=-2,PI(e),wn},ob=t=>{let e=sb(t);return e===wn&&oL(t.state),e},cL=(t,e)=>tf(t)||t.state.wrap!==2?$a:(t.state.gzhead=e,wn),lb=(t,e,A,r,n,i,s)=>{if(!t)return $a;let a=1;if(e===qI&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),n<1||n>WI||A!==vd||r<8||r>15||e<0||e>9||i<0||i>VI||r===8&&a!==1)return Jo(t,$a);r===8&&(r=9);let o=new lL;return t.state=o,o.strm=t,o.status=oc,o.wrap=a,o.gzhead=null,o.w_bits=r,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.legacy_hash=s?1:0,o.hash_bits=n+7,!o.legacy_hash&&o.hash_bits<15&&(o.hash_bits=15),o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+EA-1)/EA),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=e,o.strategy=i,o.method=A,ob(t)},uL=(t,e)=>lb(t,e,vd,$I,XI,GI),fL=(t,e)=>{if(tf(t)||e>lB||e<0)return t?Jo(t,$a):$a;let A=t.state;if(!t.output||t.avail_in!==0&&!t.input||A.status===qu&&e!==Yi)return Jo(t,t.avail_out===0?Cw:$a);let r=A.last_flush;if(A.last_flush=e,A.pending!==0){if(Oi(t),t.avail_out===0)return A.last_flush=-1,wn}else if(t.avail_in===0&&uB(e)<=uB(r)&&e!==Yi)return Jo(t,Cw);if(A.status===qu&&t.avail_in!==0)return Jo(t,Cw);if(A.status===oc&&A.wrap===0&&(A.status=Yo),A.status===oc){let n=vd+(A.w_bits-8<<4)<<8,i=-1;if(A.strategy>=ld||A.level<2?i=0:A.level<6?i=1:A.level===6?i=2:i=3,n|=i<<6,A.strstart!==0&&(n|=rL),n+=31-n%31,Mu(A,n),A.strstart!==0&&(Mu(A,t.adler>>>16),Mu(A,t.adler&65535)),t.adler=1,A.status=Yo,Oi(t),A.pending!==0)return A.last_flush=-1,wn}if(A.status===Gw){if(t.adler=0,UA(A,31),UA(A,139),UA(A,8),A.gzhead)UA(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),UA(A,A.gzhead.time&255),UA(A,A.gzhead.time>>8&255),UA(A,A.gzhead.time>>16&255),UA(A,A.gzhead.time>>24&255),UA(A,A.level===9?2:A.strategy>=ld||A.level<2?4:0),UA(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(UA(A,A.gzhead.extra.length&255),UA(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(t.adler=nn(t.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=Rw;else if(UA(A,0),UA(A,0),UA(A,0),UA(A,0),UA(A,0),UA(A,A.level===9?2:A.strategy>=ld||A.level<2?4:0),UA(A,nL),A.status=Yo,Oi(t),A.pending!==0)return A.last_flush=-1,wn}if(A.status===Rw){if(A.gzhead.extra){let n=A.pending,i=(A.gzhead.extra.length&65535)-A.gzindex;for(;A.pending+i>A.pending_buf_size;){let a=A.pending_buf_size-A.pending;if(A.pending_buf.set(A.gzhead.extra.subarray(A.gzindex,A.gzindex+a),A.pending),A.pending=A.pending_buf_size,A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n)),A.gzindex+=a,Oi(t),A.pending!==0)return A.last_flush=-1,wn;n=0,i-=a}let s=new Uint8Array(A.gzhead.extra);A.pending_buf.set(s.subarray(A.gzindex,A.gzindex+i),A.pending),A.pending+=i,A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n)),A.gzindex=0}A.status=kw}if(A.status===kw){if(A.gzhead.name){let n=A.pending,i;do{if(A.pending===A.pending_buf_size){if(A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n)),Oi(t),A.pending!==0)return A.last_flush=-1,wn;n=0}A.gzindex<A.gzhead.name.length?i=A.gzhead.name.charCodeAt(A.gzindex++)&255:i=0,UA(A,i)}while(i!==0);A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n)),A.gzindex=0}A.status=Dw}if(A.status===Dw){if(A.gzhead.comment){let n=A.pending,i;do{if(A.pending===A.pending_buf_size){if(A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n)),Oi(t),A.pending!==0)return A.last_flush=-1,wn;n=0}A.gzindex<A.gzhead.comment.length?i=A.gzhead.comment.charCodeAt(A.gzindex++)&255:i=0,UA(A,i)}while(i!==0);A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n))}A.status=Hw}if(A.status===Hw){if(A.gzhead.hcrc){if(A.pending+2>A.pending_buf_size&&(Oi(t),A.pending!==0))return A.last_flush=-1,wn;UA(A,t.adler&255),UA(A,t.adler>>8&255),t.adler=0}if(A.status=Yo,Oi(t),A.pending!==0)return A.last_flush=-1,wn}if(t.avail_in!==0||A.lookahead!==0||e!==uo&&A.status!==qu){let n=A.level===0?ab(A,e):A.strategy===ld?sL(A,e):A.strategy===jI?aL(A,e):Ku[A.level].func(A,e);if((n===el||n===hc)&&(A.status=qu),n===Yn||n===el)return t.avail_out===0&&(A.last_flush=-1),wn;if(n===fc&&(e===DI?kI(A):e!==lB&&(Ow(A,0,0,!1),e===HI&&(oo(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),Oi(t),t.avail_out===0))return A.last_flush=-1,wn}return e!==Yi?wn:A.wrap<=0?cB:(A.wrap===2?(UA(A,t.adler&255),UA(A,t.adler>>8&255),UA(A,t.adler>>16&255),UA(A,t.adler>>24&255),UA(A,t.total_in&255),UA(A,t.total_in>>8&255),UA(A,t.total_in>>16&255),UA(A,t.total_in>>24&255)):(Mu(A,t.adler>>>16),Mu(A,t.adler&65535)),Oi(t),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?wn:cB)},hL=t=>{if(tf(t))return $a;let e=t.state.status;return t.state=null,e===Yo?Jo(t,MI):wn},dL=(t,e)=>{let A=e.length;if(tf(t))return $a;let r=t.state,n=r.wrap;if(n===2||n===1&&r.status!==oc||r.lookahead)return $a;if(n===1&&(t.adler=Yu(t.adler,e,A,0)),r.wrap=0,A>=r.w_size){n===0&&(oo(r.head),r.strstart=0,r.block_start=0,r.insert=0);let o=new Uint8Array(r.w_size);o.set(e.subarray(A-r.w_size,A),0),e=o,A=r.w_size}let i=t.avail_in,s=t.next_in,a=t.input;for(t.avail_in=A,t.next_in=0,t.input=e,lc(r);r.lookahead>=EA;){let o=r.strstart,l=r.lookahead-(EA-1);do tl(r,o),o++;while(--l);r.strstart=o,r.lookahead=EA-1,lc(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=EA-1,r.match_available=0,t.next_in=s,t.input=a,t.avail_in=i,r.wrap=n,wn},pL=uL,gL=lb,wL=ob,vL=sb,mL=cL,yL=fL,BL=hL,bL=dL,CL="pako deflate (from Nodeca project)",Vu={deflateInit:pL,deflateInit2:gL,deflateReset:wL,deflateResetKeep:vL,deflateSetHeader:mL,deflate:yL,deflateEnd:BL,deflateSetDictionary:bL,deflateInfo:CL},EL=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),FL=function(t){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let A=e.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(let r in A)EL(A,r)&&(t[r]=A[r])}}return t},UL=t=>{let e=0;for(let r=0,n=t.length;r<n;r++)e+=t[r].length;let A=new Uint8Array(e);for(let r=0,n=0,i=t.length;r<i;r++){let s=t[r];A.set(s,n),n+=s.length}return A},md={assign:FL,flattenChunks:UL},cb=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{cb=!1}var Ju=new Uint8Array(256);for(let t=0;t<256;t++)Ju[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ju[254]=Ju[255]=1;var xL=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,A,r,n,i,s=t.length,a=0;for(n=0;n<s;n++)A=t.charCodeAt(n),(A&64512)===55296&&n+1<s&&(r=t.charCodeAt(n+1),(r&64512)===56320&&(A=65536+(A-55296<<10)+(r-56320),n++)),a+=A<128?1:A<2048?2:A<65536?3:4;for(e=new Uint8Array(a),i=0,n=0;i<a;n++)A=t.charCodeAt(n),(A&64512)===55296&&n+1<s&&(r=t.charCodeAt(n+1),(r&64512)===56320&&(A=65536+(A-55296<<10)+(r-56320),n++)),A<128?e[i++]=A:A<2048?(e[i++]=192|A>>>6,e[i++]=128|A&63):A<65536?(e[i++]=224|A>>>12,e[i++]=128|A>>>6&63,e[i++]=128|A&63):(e[i++]=240|A>>>18,e[i++]=128|A>>>12&63,e[i++]=128|A>>>6&63,e[i++]=128|A&63);return e},_L=(t,e)=>{if(e<65534&&t.subarray&&cb)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let A="";for(let r=0;r<e;r++)A+=String.fromCharCode(t[r]);return A},SL=(t,e)=>{let A=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let r,n,i=new Array(A*2);for(n=0,r=0;r<A;){let s=t[r++];if(s<128){i[n++]=s;continue}let a=Ju[s];if(a>4){i[n++]=65533,r+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&r<A;)s=s<<6|t[r++]&63,a--;if(a>1){i[n++]=65533;continue}s<65536?i[n++]=s:(s-=65536,i[n++]=55296|s>>10&1023,i[n++]=56320|s&1023)}return _L(i,n)},QL=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let A=e-1;for(;A>=0&&(t[A]&192)===128;)A--;return A<0||A===0?e:A+Ju[t[A]]>e?A:e},Zu={string2buf:xL,buf2string:SL,utf8border:QL};function IL(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var ub=IL,fb=Object.prototype.toString,{Z_NO_FLUSH:LL,Z_SYNC_FLUSH:TL,Z_FULL_FLUSH:NL,Z_FINISH:OL,Z_OK:gd,Z_STREAM_END:PL,Z_DEFAULT_COMPRESSION:RL,Z_DEFAULT_STRATEGY:kL,Z_DEFLATED:DL}=uc,HL={level:RL,method:DL,chunkSize:16384,windowBits:15,memLevel:8,strategy:kL,legacyHash:!0};function Af(t){this.options=md.assign({},HL,t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ub,this.strm.avail_out=0;let A=Vu.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy,e.legacyHash);if(A!==gd)throw new Error(Zo[A]);if(e.header&&Vu.deflateSetHeader(this.strm,e.header),e.dictionary){let r;if(typeof e.dictionary=="string"?r=Zu.string2buf(e.dictionary):fb.call(e.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(e.dictionary):r=e.dictionary,A=Vu.deflateSetDictionary(this.strm,r),A!==gd)throw new Error(Zo[A]);this._dict_set=!0}}Af.prototype.push=function(t,e){let A=this.strm,r=this.options.chunkSize,n,i;if(this.ended)return!1;for(e===~~e?i=e:i=e===!0?OL:LL,typeof t=="string"?A.input=Zu.string2buf(t):fb.call(t)==="[object ArrayBuffer]"?A.input=new Uint8Array(t):A.input=t,A.next_in=0,A.avail_in=A.input.length;;){if(A.avail_out===0&&(A.output=new Uint8Array(r),A.next_out=0,A.avail_out=r),(i===TL||i===NL)&&A.avail_out<=6){this.onData(A.output.subarray(0,A.next_out)),A.avail_out=0;continue}if(n=Vu.deflate(A,i),n===PL)return A.next_out>0&&this.onData(A.output.subarray(0,A.next_out)),n=Vu.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===gd;if(A.avail_out===0){this.onData(A.output);continue}if(i>0&&A.next_out>0){this.onData(A.output.subarray(0,A.next_out)),A.avail_out=0;continue}if(A.avail_in===0)break}return!0};Af.prototype.onData=function(t){this.chunks.push(t)};Af.prototype.onEnd=function(t){t===gd&&(this.result=md.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Ww(t,e){let A=new Af(e);if(A.push(t,!0),A.err)throw A.msg||Zo[A.err];return A.result}function ML(t,e){return e=e||{},e.raw=!0,Ww(t,e)}function qL(t,e){return e=e||{},e.gzip=!0,Ww(t,e)}var KL=Af,jL=Ww,VL=ML,GL=qL,zL=uc,WL={Deflate:KL,deflate:jL,deflateRaw:VL,gzip:GL,constants:zL},cd=16209,$L=16191,XL=function(e,A){let r,n,i,s,a,o,l,h,v,m,g,C,F,_,x,H,D,k,re,fe,Ae,j,N,Z,I=e.state;r=e.next_in,N=e.input,n=r+(e.avail_in-5),i=e.next_out,Z=e.output,s=i-(A-e.avail_out),a=i+(e.avail_out-257),o=I.dmax,l=I.wsize,h=I.whave,v=I.wnext,m=I.window,g=I.hold,C=I.bits,F=I.lencode,_=I.distcode,x=(1<<I.lenbits)-1,H=(1<<I.distbits)-1;e:do{C<15&&(g+=N[r++]<<C,C+=8,g+=N[r++]<<C,C+=8),D=F[g&x];t:for(;;){if(k=D>>>24,g>>>=k,C-=k,k=D>>>16&255,k===0)Z[i++]=D&65535;else if(k&16){re=D&65535,k&=15,k&&(C<k&&(g+=N[r++]<<C,C+=8),re+=g&(1<<k)-1,g>>>=k,C-=k),C<15&&(g+=N[r++]<<C,C+=8,g+=N[r++]<<C,C+=8),D=_[g&H];A:for(;;){if(k=D>>>24,g>>>=k,C-=k,k=D>>>16&255,k&16){if(fe=D&65535,k&=15,C<k&&(g+=N[r++]<<C,C+=8,C<k&&(g+=N[r++]<<C,C+=8)),fe+=g&(1<<k)-1,fe>o){e.msg="invalid distance too far back",I.mode=cd;break e}if(g>>>=k,C-=k,k=i-s,fe>k){if(k=fe-k,k>h&&I.sane){e.msg="invalid distance too far back",I.mode=cd;break e}if(Ae=0,j=m,v===0){if(Ae+=l-k,k<re){re-=k;do Z[i++]=m[Ae++];while(--k);Ae=i-fe,j=Z}}else if(v<k){if(Ae+=l+v-k,k-=v,k<re){re-=k;do Z[i++]=m[Ae++];while(--k);if(Ae=0,v<re){k=v,re-=k;do Z[i++]=m[Ae++];while(--k);Ae=i-fe,j=Z}}}else if(Ae+=v-k,k<re){re-=k;do Z[i++]=m[Ae++];while(--k);Ae=i-fe,j=Z}for(;re>2;)Z[i++]=j[Ae++],Z[i++]=j[Ae++],Z[i++]=j[Ae++],re-=3;re&&(Z[i++]=j[Ae++],re>1&&(Z[i++]=j[Ae++]))}else{Ae=i-fe;do Z[i++]=Z[Ae++],Z[i++]=Z[Ae++],Z[i++]=Z[Ae++],re-=3;while(re>2);re&&(Z[i++]=Z[Ae++],re>1&&(Z[i++]=Z[Ae++]))}}else if((k&64)===0){D=_[(D&65535)+(g&(1<<k)-1)];continue A}else{e.msg="invalid distance code",I.mode=cd;break e}break}}else if((k&64)===0){D=F[(D&65535)+(g&(1<<k)-1)];continue t}else if(k&32){I.mode=$L;break e}else{e.msg="invalid literal/length code",I.mode=cd;break e}break}}while(r<n&&i<a);re=C>>3,r-=re,C-=re<<3,g&=(1<<C)-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?5+(n-r):5-(r-n),e.avail_out=i<a?257+(a-i):257-(i-a),I.hold=g,I.bits=C},ic=15,fB=852,hB=592,dB=0,Fw=1,pB=2,YL=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),JL=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),ZL=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),eT=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),tT=(t,e,A,r,n,i,s,a)=>{let o=a.bits,l=0,h=0,v=0,m=0,g=0,C=0,F=0,_=0,x=0,H=0,D,k,re,fe,Ae,j=null,N,Z=new Uint16Array(ic+1),I=new Uint16Array(ic+1),O=null,Y,ee,ce;for(l=0;l<=ic;l++)Z[l]=0;for(h=0;h<r;h++)Z[e[A+h]]++;for(g=o,m=ic;m>=1&&Z[m]===0;m--);if(g>m&&(g=m),m===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,a.bits=1,0;for(v=1;v<m&&Z[v]===0;v++);for(g<v&&(g=v),_=1,l=1;l<=ic;l++)if(_<<=1,_-=Z[l],_<0)return-1;if(_>0&&(t===dB||m!==1))return-1;for(I[1]=0,l=1;l<ic;l++)I[l+1]=I[l]+Z[l];for(h=0;h<r;h++)e[A+h]!==0&&(s[I[e[A+h]]++]=h);if(t===dB?(j=O=s,N=20):t===Fw?(j=YL,O=JL,N=257):(j=ZL,O=eT,N=0),H=0,h=0,l=v,Ae=i,C=g,F=0,re=-1,x=1<<g,fe=x-1,t===Fw&&x>fB||t===pB&&x>hB)return 1;for(;;){Y=l-F,s[h]+1<N?(ee=0,ce=s[h]):s[h]>=N?(ee=O[s[h]-N],ce=j[s[h]-N]):(ee=96,ce=0),D=1<<l-F,k=1<<C,v=k;do k-=D,n[Ae+(H>>F)+k]=Y<<24|ee<<16|ce|0;while(k!==0);for(D=1<<l-1;H&D;)D>>=1;if(D!==0?(H&=D-1,H+=D):H=0,h++,--Z[l]===0){if(l===m)break;l=e[A+s[h]]}if(l>g&&(H&fe)!==re){for(F===0&&(F=g),Ae+=v,C=l-F,_=1<<C;C+F<m&&(_-=Z[C+F],!(_<=0));)C++,_<<=1;if(x+=1<<C,t===Fw&&x>fB||t===pB&&x>hB)return 1;re=H&fe,n[re]=g<<24|C<<16|Ae-i|0}}return H!==0&&(n[Ae+H]=l-F<<24|64<<16|0),a.bits=g,0},Gu=tT,AT=0,hb=1,db=2,{Z_FINISH:gB,Z_BLOCK:rT,Z_TREES:ud,Z_OK:Al,Z_STREAM_END:nT,Z_NEED_DICT:iT,Z_STREAM_ERROR:Ji,Z_DATA_ERROR:pb,Z_MEM_ERROR:gb,Z_BUF_ERROR:aT,Z_DEFLATED:wB}=uc,yd=16180,vB=16181,mB=16182,yB=16183,BB=16184,bB=16185,CB=16186,EB=16187,FB=16188,UB=16189,wd=16190,xs=16191,Uw=16192,xB=16193,xw=16194,_B=16195,SB=16196,QB=16197,IB=16198,fd=16199,hd=16200,LB=16201,TB=16202,NB=16203,OB=16204,PB=16205,_w=16206,RB=16207,kB=16208,Ar=16209,wb=16210,vb=16211,sT=852,oT=592,lT=15,cT=lT,DB=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function uT(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var rl=t=>{if(!t)return 1;let e=t.state;return!e||e.strm!==t||e.mode<yd||e.mode>vb?1:0},mb=t=>{if(rl(t))return Ji;let e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=yd,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(sT),e.distcode=e.distdyn=new Int32Array(oT),e.sane=1,e.back=-1,Al},yb=t=>{if(rl(t))return Ji;let e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,mb(t)},Bb=(t,e)=>{let A;if(rl(t))return Ji;let r=t.state;return e<0?(A=0,e=-e):(A=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Ji:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=A,r.wbits=e,yb(t))},bb=(t,e)=>{if(!t)return Ji;let A=new uT;t.state=A,A.strm=t,A.window=null,A.mode=yd;let r=Bb(t,e);return r!==Al&&(t.state=null),r},fT=t=>bb(t,cT),HB=!0,Sw,Qw,hT=t=>{if(HB){Sw=new Int32Array(512),Qw=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Gu(hb,t.lens,0,288,Sw,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Gu(db,t.lens,0,32,Qw,0,t.work,{bits:5}),HB=!1}t.lencode=Sw,t.lenbits=9,t.distcode=Qw,t.distbits=5},Cb=(t,e,A,r)=>{let n,i=t.state;return i.window===null&&(i.window=new Uint8Array(1<<i.wbits)),i.wsize===0&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0),r>=i.wsize?(i.window.set(e.subarray(A-i.wsize,A),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(e.subarray(A-r,A-r+n),i.wnext),r-=n,r?(i.window.set(e.subarray(A-r,A),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=n))),0},dT=(t,e)=>{let A,r,n,i,s,a,o,l,h,v,m,g,C,F,_=0,x,H,D,k,re,fe,Ae,j,N=new Uint8Array(4),Z,I,O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(rl(t)||!t.output||!t.input&&t.avail_in!==0)return Ji;A=t.state,A.mode===xs&&(A.mode=Uw),s=t.next_out,n=t.output,o=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,l=A.hold,h=A.bits,v=a,m=o,j=Al;e:for(;;)switch(A.mode){case yd:if(A.wrap===0){A.mode=Uw;break}for(;h<16;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(A.wrap&2&&l===35615){A.wbits===0&&(A.wbits=15),A.check=0,N[0]=l&255,N[1]=l>>>8&255,A.check=nn(A.check,N,2,0),l=0,h=0,A.mode=vB;break}if(A.head&&(A.head.done=!1),!(A.wrap&1)||(((l&255)<<8)+(l>>8))%31){t.msg="incorrect header check",A.mode=Ar;break}if((l&15)!==wB){t.msg="unknown compression method",A.mode=Ar;break}if(l>>>=4,h-=4,Ae=(l&15)+8,A.wbits===0&&(A.wbits=Ae),Ae>15||Ae>A.wbits){t.msg="invalid window size",A.mode=Ar;break}A.dmax=1<<A.wbits,A.flags=0,t.adler=A.check=1,A.mode=l&512?UB:xs,l=0,h=0;break;case vB:for(;h<16;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(A.flags=l,(A.flags&255)!==wB){t.msg="unknown compression method",A.mode=Ar;break}if(A.flags&57344){t.msg="unknown header flags set",A.mode=Ar;break}A.head&&(A.head.text=l>>8&1),A.flags&512&&A.wrap&4&&(N[0]=l&255,N[1]=l>>>8&255,A.check=nn(A.check,N,2,0)),l=0,h=0,A.mode=mB;case mB:for(;h<32;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.head&&(A.head.time=l),A.flags&512&&A.wrap&4&&(N[0]=l&255,N[1]=l>>>8&255,N[2]=l>>>16&255,N[3]=l>>>24&255,A.check=nn(A.check,N,4,0)),l=0,h=0,A.mode=yB;case yB:for(;h<16;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.head&&(A.head.xflags=l&255,A.head.os=l>>8),A.flags&512&&A.wrap&4&&(N[0]=l&255,N[1]=l>>>8&255,A.check=nn(A.check,N,2,0)),l=0,h=0,A.mode=BB;case BB:if(A.flags&1024){for(;h<16;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.length=l,A.head&&(A.head.extra_len=l),A.flags&512&&A.wrap&4&&(N[0]=l&255,N[1]=l>>>8&255,A.check=nn(A.check,N,2,0)),l=0,h=0}else A.head&&(A.head.extra=null);A.mode=bB;case bB:if(A.flags&1024&&(g=A.length,g>a&&(g=a),g&&(A.head&&(Ae=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Uint8Array(A.head.extra_len)),A.head.extra.set(r.subarray(i,i+g),Ae)),A.flags&512&&A.wrap&4&&(A.check=nn(A.check,r,g,i)),a-=g,i+=g,A.length-=g),A.length))break e;A.length=0,A.mode=CB;case CB:if(A.flags&2048){if(a===0)break e;g=0;do Ae=r[i+g++],A.head&&Ae&&A.length<65536&&(A.head.name+=String.fromCharCode(Ae));while(Ae&&g<a);if(A.flags&512&&A.wrap&4&&(A.check=nn(A.check,r,g,i)),a-=g,i+=g,Ae)break e}else A.head&&(A.head.name=null);A.length=0,A.mode=EB;case EB:if(A.flags&4096){if(a===0)break e;g=0;do Ae=r[i+g++],A.head&&Ae&&A.length<65536&&(A.head.comment+=String.fromCharCode(Ae));while(Ae&&g<a);if(A.flags&512&&A.wrap&4&&(A.check=nn(A.check,r,g,i)),a-=g,i+=g,Ae)break e}else A.head&&(A.head.comment=null);A.mode=FB;case FB:if(A.flags&512){for(;h<16;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(A.wrap&4&&l!==(A.check&65535)){t.msg="header crc mismatch",A.mode=Ar;break}l=0,h=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),t.adler=A.check=0,A.mode=xs;break;case UB:for(;h<32;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}t.adler=A.check=DB(l),l=0,h=0,A.mode=wd;case wd:if(A.havedict===0)return t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,A.hold=l,A.bits=h,iT;t.adler=A.check=1,A.mode=xs;case xs:if(e===rT||e===ud)break e;case Uw:if(A.last){l>>>=h&7,h-=h&7,A.mode=_w;break}for(;h<3;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}switch(A.last=l&1,l>>>=1,h-=1,l&3){case 0:A.mode=xB;break;case 1:if(hT(A),A.mode=fd,e===ud){l>>>=2,h-=2;break e}break;case 2:A.mode=SB;break;case 3:t.msg="invalid block type",A.mode=Ar}l>>>=2,h-=2;break;case xB:for(l>>>=h&7,h-=h&7;h<32;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if((l&65535)!==(l>>>16^65535)){t.msg="invalid stored block lengths",A.mode=Ar;break}if(A.length=l&65535,l=0,h=0,A.mode=xw,e===ud)break e;case xw:A.mode=_B;case _B:if(g=A.length,g){if(g>a&&(g=a),g>o&&(g=o),g===0)break e;n.set(r.subarray(i,i+g),s),a-=g,i+=g,o-=g,s+=g,A.length-=g;break}A.mode=xs;break;case SB:for(;h<14;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(A.nlen=(l&31)+257,l>>>=5,h-=5,A.ndist=(l&31)+1,l>>>=5,h-=5,A.ncode=(l&15)+4,l>>>=4,h-=4,A.nlen>286||A.ndist>30){t.msg="too many length or distance symbols",A.mode=Ar;break}A.have=0,A.mode=QB;case QB:for(;A.have<A.ncode;){for(;h<3;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.lens[O[A.have++]]=l&7,l>>>=3,h-=3}for(;A.have<19;)A.lens[O[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,Z={bits:A.lenbits},j=Gu(AT,A.lens,0,19,A.lencode,0,A.work,Z),A.lenbits=Z.bits,j){t.msg="invalid code lengths set",A.mode=Ar;break}A.have=0,A.mode=IB;case IB:for(;A.have<A.nlen+A.ndist;){for(;_=A.lencode[l&(1<<A.lenbits)-1],x=_>>>24,H=_>>>16&255,D=_&65535,!(x<=h);){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(D<16)l>>>=x,h-=x,A.lens[A.have++]=D;else{if(D===16){for(I=x+2;h<I;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(l>>>=x,h-=x,A.have===0){t.msg="invalid bit length repeat",A.mode=Ar;break}Ae=A.lens[A.have-1],g=3+(l&3),l>>>=2,h-=2}else if(D===17){for(I=x+3;h<I;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}l>>>=x,h-=x,Ae=0,g=3+(l&7),l>>>=3,h-=3}else{for(I=x+7;h<I;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}l>>>=x,h-=x,Ae=0,g=11+(l&127),l>>>=7,h-=7}if(A.have+g>A.nlen+A.ndist){t.msg="invalid bit length repeat",A.mode=Ar;break}for(;g--;)A.lens[A.have++]=Ae}}if(A.mode===Ar)break;if(A.lens[256]===0){t.msg="invalid code -- missing end-of-block",A.mode=Ar;break}if(A.lenbits=9,Z={bits:A.lenbits},j=Gu(hb,A.lens,0,A.nlen,A.lencode,0,A.work,Z),A.lenbits=Z.bits,j){t.msg="invalid literal/lengths set",A.mode=Ar;break}if(A.distbits=6,A.distcode=A.distdyn,Z={bits:A.distbits},j=Gu(db,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,Z),A.distbits=Z.bits,j){t.msg="invalid distances set",A.mode=Ar;break}if(A.mode=fd,e===ud)break e;case fd:A.mode=hd;case hd:if(a>=6&&o>=258){t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,A.hold=l,A.bits=h,XL(t,m),s=t.next_out,n=t.output,o=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,l=A.hold,h=A.bits,A.mode===xs&&(A.back=-1);break}for(A.back=0;_=A.lencode[l&(1<<A.lenbits)-1],x=_>>>24,H=_>>>16&255,D=_&65535,!(x<=h);){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(H&&(H&240)===0){for(k=x,re=H,fe=D;_=A.lencode[fe+((l&(1<<k+re)-1)>>k)],x=_>>>24,H=_>>>16&255,D=_&65535,!(k+x<=h);){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}l>>>=k,h-=k,A.back+=k}if(l>>>=x,h-=x,A.back+=x,A.length=D,H===0){A.mode=PB;break}if(H&32){A.back=-1,A.mode=xs;break}if(H&64){t.msg="invalid literal/length code",A.mode=Ar;break}A.extra=H&15,A.mode=LB;case LB:if(A.extra){for(I=A.extra;h<I;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.length+=l&(1<<A.extra)-1,l>>>=A.extra,h-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=TB;case TB:for(;_=A.distcode[l&(1<<A.distbits)-1],x=_>>>24,H=_>>>16&255,D=_&65535,!(x<=h);){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if((H&240)===0){for(k=x,re=H,fe=D;_=A.distcode[fe+((l&(1<<k+re)-1)>>k)],x=_>>>24,H=_>>>16&255,D=_&65535,!(k+x<=h);){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}l>>>=k,h-=k,A.back+=k}if(l>>>=x,h-=x,A.back+=x,H&64){t.msg="invalid distance code",A.mode=Ar;break}A.offset=D,A.extra=H&15,A.mode=NB;case NB:if(A.extra){for(I=A.extra;h<I;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.offset+=l&(1<<A.extra)-1,l>>>=A.extra,h-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){t.msg="invalid distance too far back",A.mode=Ar;break}A.mode=OB;case OB:if(o===0)break e;if(g=m-o,A.offset>g){if(g=A.offset-g,g>A.whave&&A.sane){t.msg="invalid distance too far back",A.mode=Ar;break}g>A.wnext?(g-=A.wnext,C=A.wsize-g):C=A.wnext-g,g>A.length&&(g=A.length),F=A.window}else F=n,C=s-A.offset,g=A.length;g>o&&(g=o),o-=g,A.length-=g;do n[s++]=F[C++];while(--g);A.length===0&&(A.mode=hd);break;case PB:if(o===0)break e;n[s++]=A.length,o--,A.mode=hd;break;case _w:if(A.wrap){for(;h<32;){if(a===0)break e;a--,l|=r[i++]<<h,h+=8}if(m-=o,t.total_out+=m,A.total+=m,A.wrap&4&&m&&(t.adler=A.check=A.flags?nn(A.check,n,m,s-m):Yu(A.check,n,m,s-m)),m=o,A.wrap&4&&(A.flags?l:DB(l))!==A.check){t.msg="incorrect data check",A.mode=Ar;break}l=0,h=0}A.mode=RB;case RB:if(A.wrap&&A.flags){for(;h<32;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(A.wrap&4&&l!==(A.total&4294967295)){t.msg="incorrect length check",A.mode=Ar;break}l=0,h=0}A.mode=kB;case kB:j=nT;break e;case Ar:j=pb;break e;case wb:return gb;case vb:default:return Ji}return t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,A.hold=l,A.bits=h,(A.wsize||m!==t.avail_out&&A.mode<Ar&&(A.mode<_w||e!==gB))&&Cb(t,t.output,t.next_out,m-t.avail_out),v-=t.avail_in,m-=t.avail_out,t.total_in+=v,t.total_out+=m,A.total+=m,A.wrap&4&&m&&(t.adler=A.check=A.flags?nn(A.check,n,m,t.next_out-m):Yu(A.check,n,m,t.next_out-m)),t.data_type=A.bits+(A.last?64:0)+(A.mode===xs?128:0)+(A.mode===fd||A.mode===xw?256:0),(v===0&&m===0||e===gB)&&j===Al&&(j=aT),j},pT=t=>{if(rl(t))return Ji;let e=t.state;return e.window&&(e.window=null),t.state=null,Al},gT=(t,e)=>{if(rl(t))return Ji;let A=t.state;return(A.wrap&2)===0?Ji:(A.head=e,e.done=!1,Al)},wT=(t,e)=>{let A=e.length,r,n,i;return rl(t)||(r=t.state,r.wrap!==0&&r.mode!==wd)?Ji:r.mode===wd&&(n=1,n=Yu(n,e,A,0),n!==r.check)?pb:(i=Cb(t,e,A,A),i?(r.mode=wb,gb):(r.havedict=1,Al))},vT=yb,mT=Bb,yT=mb,BT=fT,bT=bb,CT=dT,ET=pT,FT=gT,UT=wT,xT="pako inflate (from Nodeca project)",za={inflateReset:vT,inflateReset2:mT,inflateResetKeep:yT,inflateInit:BT,inflateInit2:bT,inflate:CT,inflateEnd:ET,inflateGetHeader:FT,inflateSetDictionary:UT,inflateInfo:xT};function _T(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var ST=_T,Eb=Object.prototype.toString,{Z_NO_FLUSH:QT,Z_FINISH:MB,Z_OK:sc,Z_STREAM_END:Iw,Z_NEED_DICT:Lw,Z_STREAM_ERROR:IT,Z_DATA_ERROR:qB,Z_MEM_ERROR:LT,Z_BUF_ERROR:KB}=uc,TT={chunkSize:1024*64,windowBits:15,to:""};function rf(t){this.options=md.assign({},TT,t||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ub,this.strm.avail_out=0;let A=za.inflateInit2(this.strm,e.windowBits);if(A!==sc)throw new Error(Zo[A]);if(this.header=new ST,za.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Zu.string2buf(e.dictionary):Eb.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(A=za.inflateSetDictionary(this.strm,e.dictionary),A!==sc)))throw new Error(Zo[A])}rf.prototype.push=function(t,e){let A=this.strm,r=this.options.chunkSize,n=this.options.dictionary,i,s,a;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?MB:QT,Eb.call(t)==="[object ArrayBuffer]"?A.input=new Uint8Array(t):A.input=t,A.next_in=0,A.avail_in=A.input.length;;){for(A.avail_out===0&&(A.output=new Uint8Array(r),A.next_out=0,A.avail_out=r),i=za.inflate(A,s),i===Lw&&n&&(i=za.inflateSetDictionary(A,n),i===sc?i=za.inflate(A,s):i===qB&&(i=Lw));A.avail_in>0&&i===Iw&&A.state.wrap&2&&A.state.flags!==0&&A.input[A.next_in]!==0;)za.inflateReset(A),i=za.inflate(A,s);switch(i){case IT:case qB:case Lw:case LT:return this.onEnd(i),this.ended=!0,!1}if(a=A.avail_out,A.next_out&&(A.avail_out===0||i===Iw||s>0))if(this.options.to==="string"){let o=Zu.utf8border(A.output,A.next_out),l=A.next_out-o,h=Zu.buf2string(A.output,o);A.next_out=l,A.avail_out=r-l,l&&A.output.set(A.output.subarray(o,o+l),0),this.onData(h)}else this.onData(A.output.length===A.next_out?A.output:A.output.subarray(0,A.next_out)),A.avail_out=0,A.next_out=0;if(!((i===sc||i===KB)&&a===0)){if(i===Iw)return i=za.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(A.avail_in===0){if(s===MB)return i=za.inflateEnd(this.strm),this.onEnd(i===sc?KB:i),this.ended=!0,!1;break}}}return!0};rf.prototype.onData=function(t){this.chunks.push(t)};rf.prototype.onEnd=function(t){t===sc&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=md.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function $w(t,e){let A=new rf(e);if(A.push(t,!0),A.err)throw A.msg||Zo[A.err];return A.result}function NT(t,e){return e=e||{},e.raw=!0,$w(t,e)}var OT=rf,PT=$w,RT=NT,kT=$w,DT=uc,HT={Inflate:OT,inflate:PT,inflateRaw:RT,ungzip:kT,constants:DT},{Deflate:MV,deflate:qV,deflateRaw:KV,gzip:jV}=WL,{Inflate:MT,inflate:qT,inflateRaw:VV,ungzip:GV}=HT;var Xw=MT,Fb=qT;var xb=[];for(let t=0;t<256;t++){let e=t;for(let A=0;A<8;A++)e&1?e=3988292384^e>>>1:e=e>>>1;xb[t]=e}var Ub=4294967295;function KT(t,e,A){let r=t;for(let n=0;n<A;n++)r=xb[(r^e[n])&255]^r>>>8;return r}function jT(t,e){return(KT(Ub,t,e)^Ub)>>>0}function Yw(t,e,A){let r=t.readUint32(),n=jT(new Uint8Array(t.buffer,t.byteOffset+t.offset-e-4,e),e);if(n!==r)throw new Error(`CRC mismatch for chunk ${A}. Expected ${r}, found ${n}`)}function Bd(t,e,A){for(let r=0;r<A;r++)e[r]=t[r]}function bd(t,e,A,r){let n=0;for(;n<r;n++)e[n]=t[n];for(;n<A;n++)e[n]=t[n]+e[n-r]&255}function Cd(t,e,A,r){let n=0;if(A.length===0)for(;n<r;n++)e[n]=t[n];else for(;n<r;n++)e[n]=t[n]+A[n]&255}function Ed(t,e,A,r,n){let i=0;if(A.length===0){for(;i<n;i++)e[i]=t[i];for(;i<r;i++)e[i]=t[i]+(e[i-n]>>1)&255}else{for(;i<n;i++)e[i]=t[i]+(A[i]>>1)&255;for(;i<r;i++)e[i]=t[i]+(e[i-n]+A[i]>>1)&255}}function Fd(t,e,A,r,n){let i=0;if(A.length===0){for(;i<n;i++)e[i]=t[i];for(;i<r;i++)e[i]=t[i]+e[i-n]&255}else{for(;i<n;i++)e[i]=t[i]+A[i]&255;for(;i<r;i++)e[i]=t[i]+VT(e[i-n],A[i],A[i-n])&255}}function VT(t,e,A){let r=t+e-A,n=Math.abs(r-t),i=Math.abs(r-e),s=Math.abs(r-A);return n<=i&&n<=s?t:i<=s?e:A}function _b(t,e,A,r,n,i){switch(t){case 0:Bd(e,A,n);break;case 1:bd(e,A,n,i);break;case 2:Cd(e,A,r,n);break;case 3:Ed(e,A,r,n,i);break;case 4:Fd(e,A,r,n,i);break;default:throw new Error(`Unsupported filter: ${t}`)}}var GT=new Uint16Array([255]),zT=new Uint8Array(GT.buffer),WT=zT[0]===255;function Sb(t){let{data:e,width:A,height:r,channels:n,depth:i}=t,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(i/8)*n,o=new Uint8Array(r*A*a),l=0;for(let h=0;h<7;h++){let v=s[h],m=Math.ceil((A-v.x)/v.xStep),g=Math.ceil((r-v.y)/v.yStep);if(m<=0||g<=0)continue;let C=m*a,F=new Uint8Array(C);for(let _=0;_<g;_++){let x=e[l++],H=e.subarray(l,l+C);l+=C;let D=new Uint8Array(C);_b(x,H,D,F,C,a),F.set(D);for(let k=0;k<m;k++){let re=v.x+k*v.xStep,fe=v.y+_*v.yStep;if(!(re>=A||fe>=r))for(let Ae=0;Ae<a;Ae++)o[(fe*A+re)*a+Ae]=D[k*a+Ae]}}}if(i===16){let h=new Uint16Array(o.buffer);if(WT)for(let v=0;v<h.length;v++)h[v]=$T(h[v]);return h}else return o}function $T(t){return(t&255)<<8|t>>8&255}var XT=new Uint16Array([255]),YT=new Uint8Array(XT.buffer),JT=YT[0]===255,ZT=new Uint8Array(0);function Jw(t){let{data:e,width:A,height:r,channels:n,depth:i}=t,s=Math.ceil(i/8)*n,a=Math.ceil(i/8*n*A),o=new Uint8Array(r*a),l=ZT,h=0,v,m;for(let g=0;g<r;g++){switch(v=e.subarray(h+1,h+1+a),m=o.subarray(g*a,(g+1)*a),e[h]){case 0:Bd(v,m,a);break;case 1:bd(v,m,a,s);break;case 2:Cd(v,m,l,a);break;case 3:Ed(v,m,l,a,s);break;case 4:Fd(v,m,l,a,s);break;default:throw new Error(`Unsupported filter: ${e[h]}`)}l=m,h+=a+1}if(i===16){let g=new Uint16Array(o.buffer);if(JT)for(let C=0;C<g.length;C++)g[C]=eN(g[C]);return g}else return o}function eN(t){return(t&255)<<8|t>>8&255}var Ud=Uint8Array.of(137,80,78,71,13,10,26,10);function Zw(t){if(!Qb(t.readBytes(Ud.length)))throw new Error("wrong PNG signature")}function Qb(t){if(t.length<Ud.length)return!1;for(let e=0;e<Ud.length;e++)if(t[e]!==Ud[e])return!1;return!0}var Ib="tEXt",AN=0,Lb=new TextDecoder("latin1");function rN(t){if(iN(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}var nN=/^[\u0000-\u00FF]*$/;function iN(t){if(!nN.test(t))throw new Error("invalid latin1 text")}function Tb(t,e,A){let r=e1(e);t[r]=aN(e,A-r.length-1)}function e1(t){for(t.mark();t.readByte()!==AN;);let e=t.offset;t.reset();let A=Lb.decode(t.readBytes(e-t.offset-1));return t.skip(1),rN(A),A}function aN(t,e){return Lb.decode(t.readBytes(e))}var Jn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},nf={UNKNOWN:-1,DEFLATE:0},xd={UNKNOWN:-1,ADAPTIVE:0},af={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},sf={NONE:0,BACKGROUND:1,PREVIOUS:2},_d={SOURCE:0,OVER:1};var of=class extends Hu{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,A={}){super(e);let{checkCrc:r=!1}=A;this._checkCrc=r,this._inflator=new Xw,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=nf.UNKNOWN,this._filterMethod=xd.UNKNOWN,this._interlaceMethod=af.UNKNOWN,this._colorType=Jn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Zw(this);!this._end;){let e=this.readUint32(),A=this.readChars(4);this.decodeChunk(e,A)}return this.decodeImage(),this._png}decodeApng(){for(Zw(this);!this._end;){let e=this.readUint32(),A=this.readChars(4);this.decodeApngChunk(e,A)}return this.decodeApngImage(),this._apng}decodeChunk(e,A){let r=this.offset;switch(A){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case Ib:Tb(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-r!==e)throw new Error(`Length mismatch while decoding chunk ${A}`);this._checkCrc?Yw(this,e+4,A):this.skip(4)}decodeApngChunk(e,A){let r=this.offset;switch(A!=="fdAT"&&A!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),A){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,A),this.offset=r+e;break}if(this.offset-r!==e)throw new Error(`Length mismatch while decoding chunk ${A}`);this._checkCrc?Yw(this,e+4,A):this.skip(4)}decodeIHDR(){let e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=sN(this.readUint8());let A=this.readUint8();this._colorType=A;let r;switch(A){case Jn.GREYSCALE:r=1;break;case Jn.TRUECOLOUR:r=3;break;case Jn.INDEXED_COLOUR:r=1;break;case Jn.GREYSCALE_ALPHA:r=2;break;case Jn.TRUECOLOUR_ALPHA:r=4;break;case Jn.UNKNOWN:default:throw new Error(`Unknown color type: ${A}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==nf.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);let A=e/3;this._hasPalette=!0;let r=[];this._palette=r;for(let n=0;n<A;n++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;let A=e,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,A)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let A=e,r=this.offset+this.byteOffset;if(r+=4,A-=4,this._inflator.push(new Uint8Array(this.buffer,r,A)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case Jn.GREYSCALE:case Jn.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let A=0;A<e/2;A++)this._transparency[A]=this.readUint16();break}case Jn.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let A=0;for(;A<e;A++){let r=this.readByte();this._palette[A].push(r)}for(;A<this._palette.length;A++)this._palette[A].push(255);break}case Jn.UNKNOWN:case Jn.GREYSCALE_ALPHA:case Jn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){let A=e1(this),r=this.readUint8();if(r!==nf.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);let n=this.readBytes(e-A.length-2);this._png.iccEmbeddedProfile={name:A,profile:Fb(n)}}decodepHYs(){let e=this.readUint32(),A=this.readUint32(),r=this.readByte();this._png.resolution={x:e,y:A,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){let A={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(e);if(r){if(r.data=Jw({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)A.data=r.data;else{let n=this._apng.frames.at(e-1);this.disposeFrame(r,n,A),this.addFrameDataToCanvas(A,r)}this._apng.frames.push(A)}}return this._apng}disposeFrame(e,A,r){switch(e.disposeOp){case sf.NONE:break;case sf.BACKGROUND:for(let n=0;n<this._png.height;n++)for(let i=0;i<this._png.width;i++){let s=(n*e.width+i)*this._png.channels;for(let a=0;a<this._png.channels;a++)r.data[s+a]=0}break;case sf.PREVIOUS:r.data.set(A.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,A){let r=1<<this._png.depth,n=(i,s)=>{let a=((i+A.yOffset)*this._png.width+A.xOffset+s)*this._png.channels,o=(i*A.width+s)*this._png.channels;return{index:a,frameIndex:o}};switch(A.blendOp){case _d.SOURCE:for(let i=0;i<A.height;i++)for(let s=0;s<A.width;s++){let{index:a,frameIndex:o}=n(i,s);for(let l=0;l<this._png.channels;l++)e.data[a+l]=A.data[o+l]}break;case _d.OVER:for(let i=0;i<A.height;i++)for(let s=0;s<A.width;s++){let{index:a,frameIndex:o}=n(i,s);for(let l=0;l<this._png.channels;l++){let h=A.data[o+this._png.channels-1]/r,v=l%(this._png.channels-1)===0?1:A.data[o+l],m=Math.floor(h*v+(1-h)*e.data[a+l]);e.data[a+l]+=m}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);let e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==xd.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===af.NO_INTERLACE)this._png.data=Jw({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===af.ADAM7)this._png.data=Sb({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let e=this._inflator.result,A=this._frames.at(-1);A?A.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:sf.NONE,blendOp:_d.SOURCE,data:e}),this._inflator=new Xw,this._writingDataChunks=!1}};function sN(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var Nb;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(Nb||(Nb={}));function Ob(t,e){return new of(t,e).decode()}var Kt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function N2(){Kt.console&&typeof Kt.console.log=="function"&&Kt.console.log.apply(Kt.console,arguments)}var MA={log:N2,warn:function(t){Kt.console&&(typeof Kt.console.warn=="function"?Kt.console.warn.apply(Kt.console,arguments):N2.call(null,arguments))},error:function(t){Kt.console&&(typeof Kt.console.error=="function"?Kt.console.error.apply(Kt.console,arguments):N2(t))}};function O2(t,e,A){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){vl(r.response,e,A)},r.onerror=function(){MA.error("could not download file")},r.send()}function O_(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function mg(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var vl=Kt.saveAs||((typeof window>"u"?"undefined":dA(window))!=="object"||window!==Kt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,A){var r=Kt.URL||Kt.webkitURL,n=document.createElement("a");e=e||t.name||"download",n.download=e,n.rel="noopener",typeof t=="string"?(n.href=t,n.origin!==location.origin?O_(n.href)?O2(t,e,A):mg(n,n.target="_blank"):mg(n)):(n.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){mg(n)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,A){if(e=e||t.name||"download",typeof t=="string")if(O_(t))O2(t,e,A);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){mg(r)})}else navigator.msSaveOrOpenBlob((function(n,i){return i===void 0?i={autoBom:!1}:dA(i)!=="object"&&(MA.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n})(t,A),e)}:function(t,e,A,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return O2(t,e,A);var n=t.type==="application/octet-stream",i=/constructor/i.test(Kt.HTMLElement)||Kt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&(typeof FileReader>"u"?"undefined":dA(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var h=a.result;h=s?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=h:location=h,r=null},a.readAsDataURL(t)}else{var o=Kt.URL||Kt.webkitURL,l=o.createObjectURL(t);r?r.location=l:location.href=l,r=null,setTimeout(function(){o.revokeObjectURL(l)},4e4)}});function rS(t){var e;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var A=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<A.length;r++){var n=A[r].re,i=A[r].process,s=n.exec(t);s&&(e=i(s),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),o=this.g.toString(16),l=this.b.toString(16);return a.length==1&&(a="0"+a),o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),"#"+a+o+l}}var bg=Kt.atob.bind(Kt),P_=Kt.btoa.bind(Kt);function P2(t,e){var A=t[0],r=t[1],n=t[2],i=t[3];A=In(A,r,n,i,e[0],7,-680876936),i=In(i,A,r,n,e[1],12,-389564586),n=In(n,i,A,r,e[2],17,606105819),r=In(r,n,i,A,e[3],22,-1044525330),A=In(A,r,n,i,e[4],7,-176418897),i=In(i,A,r,n,e[5],12,1200080426),n=In(n,i,A,r,e[6],17,-1473231341),r=In(r,n,i,A,e[7],22,-45705983),A=In(A,r,n,i,e[8],7,1770035416),i=In(i,A,r,n,e[9],12,-1958414417),n=In(n,i,A,r,e[10],17,-42063),r=In(r,n,i,A,e[11],22,-1990404162),A=In(A,r,n,i,e[12],7,1804603682),i=In(i,A,r,n,e[13],12,-40341101),n=In(n,i,A,r,e[14],17,-1502002290),A=Ln(A,r=In(r,n,i,A,e[15],22,1236535329),n,i,e[1],5,-165796510),i=Ln(i,A,r,n,e[6],9,-1069501632),n=Ln(n,i,A,r,e[11],14,643717713),r=Ln(r,n,i,A,e[0],20,-373897302),A=Ln(A,r,n,i,e[5],5,-701558691),i=Ln(i,A,r,n,e[10],9,38016083),n=Ln(n,i,A,r,e[15],14,-660478335),r=Ln(r,n,i,A,e[4],20,-405537848),A=Ln(A,r,n,i,e[9],5,568446438),i=Ln(i,A,r,n,e[14],9,-1019803690),n=Ln(n,i,A,r,e[3],14,-187363961),r=Ln(r,n,i,A,e[8],20,1163531501),A=Ln(A,r,n,i,e[13],5,-1444681467),i=Ln(i,A,r,n,e[2],9,-51403784),n=Ln(n,i,A,r,e[7],14,1735328473),A=Tn(A,r=Ln(r,n,i,A,e[12],20,-1926607734),n,i,e[5],4,-378558),i=Tn(i,A,r,n,e[8],11,-2022574463),n=Tn(n,i,A,r,e[11],16,1839030562),r=Tn(r,n,i,A,e[14],23,-35309556),A=Tn(A,r,n,i,e[1],4,-1530992060),i=Tn(i,A,r,n,e[4],11,1272893353),n=Tn(n,i,A,r,e[7],16,-155497632),r=Tn(r,n,i,A,e[10],23,-1094730640),A=Tn(A,r,n,i,e[13],4,681279174),i=Tn(i,A,r,n,e[0],11,-358537222),n=Tn(n,i,A,r,e[3],16,-722521979),r=Tn(r,n,i,A,e[6],23,76029189),A=Tn(A,r,n,i,e[9],4,-640364487),i=Tn(i,A,r,n,e[12],11,-421815835),n=Tn(n,i,A,r,e[15],16,530742520),A=Nn(A,r=Tn(r,n,i,A,e[2],23,-995338651),n,i,e[0],6,-198630844),i=Nn(i,A,r,n,e[7],10,1126891415),n=Nn(n,i,A,r,e[14],15,-1416354905),r=Nn(r,n,i,A,e[5],21,-57434055),A=Nn(A,r,n,i,e[12],6,1700485571),i=Nn(i,A,r,n,e[3],10,-1894986606),n=Nn(n,i,A,r,e[10],15,-1051523),r=Nn(r,n,i,A,e[1],21,-2054922799),A=Nn(A,r,n,i,e[8],6,1873313359),i=Nn(i,A,r,n,e[15],10,-30611744),n=Nn(n,i,A,r,e[6],15,-1560198380),r=Nn(r,n,i,A,e[13],21,1309151649),A=Nn(A,r,n,i,e[4],6,-145523070),i=Nn(i,A,r,n,e[11],10,-1120210379),n=Nn(n,i,A,r,e[2],15,718787259),r=Nn(r,n,i,A,e[9],21,-343485551),t[0]=Eo(A,t[0]),t[1]=Eo(r,t[1]),t[2]=Eo(n,t[2]),t[3]=Eo(i,t[3])}function Sg(t,e,A,r,n,i){return e=Eo(Eo(e,t),Eo(r,i)),Eo(e<<n|e>>>32-n,A)}function In(t,e,A,r,n,i,s){return Sg(e&A|~e&r,t,e,n,i,s)}function Ln(t,e,A,r,n,i,s){return Sg(e&r|A&~r,t,e,n,i,s)}function Tn(t,e,A,r,n,i,s){return Sg(e^A^r,t,e,n,i,s)}function Nn(t,e,A,r,n,i,s){return Sg(A^(e|~r),t,e,n,i,s)}function nS(t){var e,A=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)P2(r,zq(t.substring(e-64,e)));t=t.substring(e-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)n[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(n[e>>2]|=128<<(e%4<<3),e>55)for(P2(r,n),e=0;e<16;e++)n[e]=0;return n[14]=8*A,P2(r,n),r}function zq(t){var e,A=[];for(e=0;e<64;e+=4)A[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return A}var R_="0123456789abcdef".split("");function Wq(t){for(var e="",A=0;A<4;A++)e+=R_[t>>8*A+4&15]+R_[t>>8*A&15];return e}function $q(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function q2(t){return nS(t).map($q).join("")}var Xq=(function(t){for(var e=0;e<t.length;e++)t[e]=Wq(t[e]);return t.join("")})(nS("hello"))!="5d41402abc4b2a76b9719d911017c592";function Eo(t,e){if(Xq){var A=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(A>>16)<<16|65535&A}return t+e&4294967295}function K2(t,e){var A,r,n,i;if(t!==A){for(var s=(n=t,i=1+(256/t.length|0),new Array(i+1).join(n)),a=[],o=0;o<256;o++)a[o]=o;var l=0;for(o=0;o<256;o++){var h=a[o];l=(l+h+s.charCodeAt(o))%256,a[o]=a[l],a[l]=h}A=t,r=a}else a=r;var v=e.length,m=0,g=0,C="";for(o=0;o<v;o++)g=(g+(h=a[m=(m+1)%256]))%256,a[m]=a[g],a[g]=h,s=a[(a[m]+a[g])%256],C+=String.fromCharCode(e.charCodeAt(o)^s);return C}var k_={print:4,modify:8,copy:16,"annot-forms":32};function Mc(t,e,A,r){this.v=1,this.r=2;var n=192;t.forEach(function(a){if(k_.perm!==void 0)throw new Error("Invalid permission: "+a);n+=k_[a]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var i=(e+this.padding).substr(0,32),s=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=q2(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=K2(this.encryptionKey,this.padding)}function qc(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",A=t.length,r=0;r<A;r++){var n=t.charCodeAt(r);e+=n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?"#"+("0"+n.toString(16)).slice(-2):t[r]}return e}function D_(t){if(dA(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(A,r,n){if(n=n||!1,typeof A!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(A)||(e[A]={});var i=Math.random().toString(35);return e[A][i]=[r,!!n],i},this.unsubscribe=function(A){for(var r in e)if(e[r][A])return delete e[r][A],Object.keys(e[r]).length===0&&delete e[r],!0;return!1},this.publish=function(A){if(e.hasOwnProperty(A)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in e[A]){var s=e[A][i];try{s[0].apply(t,r)}catch(a){Kt.console&&MA.error("jsPDF PubSub Error",a.message,a)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function xg(t){if(!(this instanceof xg))return new xg(t);var e="opacity,stroke-opacity".split(",");for(var A in t)t.hasOwnProperty(A)&&e.indexOf(A)>=0&&(this[A]=t[A]);this.id="",this.objectNumber=-1}function iS(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function ml(t,e,A,r,n){if(!(this instanceof ml))return new ml(t,e,A,r,n);this.type=t==="axial"?2:3,this.coords=e,this.colors=A,iS.call(this,r,n)}function Kc(t,e,A,r,n){if(!(this instanceof Kc))return new Kc(t,e,A,r,n);this.boundingBox=t,this.xStep=e,this.yStep=A,this.stream="",this.cloneIndex=0,iS.call(this,r,n)}function Ft(t){var e,A=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],s=[],a=1,o=16,l="S",h=null;dA(t=t||{})==="object"&&(A=t.orientation,r=t.unit||r,n=t.format||n,i=t.compress||t.compressPdf||i,(h=t.encryption||null)!==null&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),a=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(o=t.floatPrecision),l=t.defaultPathOperation||"S"),s=t.filters||(i===!0?["FlateEncode"]:s),r=r||"mm",A=(""+(A||"P")).toLowerCase();var v=t.putOnlyUsedFonts||!1,m={},g={internal:{},__private__:{}};g.__private__.PubSub=D_;var C="1.3",F=g.__private__.getPdfVersion=function(){return C};g.__private__.setPdfVersion=function(y){C=y};var _={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};g.__private__.getPageFormats=function(){return _};var x=g.__private__.getPageFormat=function(y){return _[y]};n=n||"a4";var H="compat",D="advanced",k=H;function re(){this.saveGraphicsState(),q(new _t(yt,0,0,-yt,0,fs()*yt).toString()+" cm"),this.setFontSize(this.getFontSize()/yt),l="n",k=D}function fe(){this.restoreGraphicsState(),l="S",k=H}var Ae=g.__private__.combineFontStyleAndFontWeight=function(y,S){if(y=="bold"&&S=="normal"||y=="bold"&&S==400||y=="normal"&&S=="italic"||y=="bold"&&S=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return S&&(y=S==400||S==="normal"?y==="italic"?"italic":"normal":S!=700&&S!=="bold"||y!=="normal"?(S==700?"bold":S)+""+y:"bold"),y};g.advancedAPI=function(y){var S=k===H;return S&&re.call(this),typeof y!="function"||(y(this),S&&fe.call(this)),this},g.compatAPI=function(y){var S=k===D;return S&&fe.call(this),typeof y!="function"||(y(this),S&&re.call(this)),this},g.isAdvancedAPI=function(){return k===D};var j,N=function(y){if(k!==D)throw new Error(y+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Z=g.roundToPrecision=g.__private__.roundToPrecision=function(y,S){var z=e||S;if(isNaN(y)||isNaN(z))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return y.toFixed(z).replace(/0+$/,"")};j=g.hpf=g.__private__.hpf=typeof o=="number"?function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(y,o)}:o==="smart"?function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(y,y>-1&&y<1?16:5)}:function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(y,16)};var I=g.f2=g.__private__.f2=function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.f2");return Z(y,2)},O=g.__private__.f3=function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.f3");return Z(y,3)},Y=g.scale=g.__private__.scale=function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.scale");return k===H?y*yt:k===D?y:void 0},ee=function(y){return Y((function(S){return k===H?fs()-S:k===D?S:void 0})(y))};g.__private__.setPrecision=g.setPrecision=function(y){typeof parseInt(y,10)=="number"&&(e=parseInt(y,10))};var ce,be="00000000000000000000000000000000",Fe=g.__private__.getFileId=function(){return be},de=g.__private__.setFileId=function(y){return be=y!==void 0&&/^[a-fA-F0-9]{32}$/.test(y)?y.toUpperCase():be.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),h!==null&&(ur=new Mc(h.userPermissions,h.userPassword,h.ownerPassword,be)),be};g.setFileId=function(y){return de(y),this},g.getFileId=function(){return Fe()};var Ee=g.__private__.convertDateToPDFDate=function(y){var S=y.getTimezoneOffset(),z=S<0?"+":"-",ne=Math.floor(Math.abs(S/60)),he=Math.abs(S%60),Se=[z,te(ne),"'",te(he),"'"].join("");return["D:",y.getFullYear(),te(y.getMonth()+1),te(y.getDate()),te(y.getHours()),te(y.getMinutes()),te(y.getSeconds()),Se].join("")},Pe=g.__private__.convertPDFDateToDate=function(y){var S=parseInt(y.substr(2,4),10),z=parseInt(y.substr(6,2),10)-1,ne=parseInt(y.substr(8,2),10),he=parseInt(y.substr(10,2),10),Se=parseInt(y.substr(12,2),10),ke=parseInt(y.substr(14,2),10);return new Date(S,z,ne,he,Se,ke,0)},Ue=g.__private__.setCreationDate=function(y){var S;if(y===void 0&&(y=new Date),y instanceof Date)S=Ee(y);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(y))throw new Error("Invalid argument passed to jsPDF.setCreationDate");S=y}return ce=S},P=g.__private__.getCreationDate=function(y){var S=ce;return y==="jsDate"&&(S=Pe(ce)),S};g.setCreationDate=function(y){return Ue(y),this},g.getCreationDate=function(y){return P(y)};var J,te=g.__private__.padd2=function(y){return("0"+parseInt(y)).slice(-2)},ie=g.__private__.padd2Hex=function(y){return("00"+(y=y.toString())).substr(y.length)},oe=0,ve=[],xe=[],_e=0,Le=[],Oe=[],Je=!1,qe=xe;g.__private__.setCustomOutputDestination=function(y){Je=!0,qe=y};var at=function(y){Je||(qe=y)};g.__private__.resetCustomOutputDestination=function(){Je=!1,qe=xe};var q=g.__private__.out=function(y){return y=y.toString(),_e+=y.length+1,qe.push(y),qe},je=g.__private__.write=function(y){return q(arguments.length===1?y.toString():Array.prototype.join.call(arguments," "))},Tt=g.__private__.getArrayBuffer=function(y){for(var S=y.length,z=new ArrayBuffer(S),ne=new Uint8Array(z);S--;)ne[S]=y.charCodeAt(S);return z},ut=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];g.__private__.getStandardFonts=function(){return ut};var Re=t.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(y){return Re=k===D?y/yt:y,this};var dt,$e=g.__private__.getFontSize=g.getFontSize=function(){return k===H?Re:Re*yt},lt=t.R2L||!1;g.__private__.setR2L=g.setR2L=function(y){return lt=y,this},g.__private__.getR2L=g.getR2L=function(){return lt};var Ze,Ut=g.__private__.setZoomMode=function(y){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(y))dt=y;else if(isNaN(y)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(y)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+y+'" is not recognized.');dt=y}else dt=parseInt(y,10)};g.__private__.getZoomMode=function(){return dt};var Nt,St=g.__private__.setPageMode=function(y){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(y)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+y+'" is not recognized.');Ze=y};g.__private__.getPageMode=function(){return Ze};var Ht=g.__private__.setLayoutMode=function(y){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(y)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+y+'" is not recognized.');Nt=y};g.__private__.getLayoutMode=function(){return Nt},g.__private__.setDisplayMode=g.setDisplayMode=function(y,S,z){return Ut(y),Ht(S),St(z),this};var Ot={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(y){if(Object.keys(Ot).indexOf(y)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ot[y]},g.__private__.getDocumentProperties=function(){return Ot},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(y){for(var S in Ot)Ot.hasOwnProperty(S)&&y[S]&&(Ot[S]=y[S]);return this},g.__private__.setDocumentProperty=function(y,S){if(Object.keys(Ot).indexOf(y)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ot[y]=S};var tt,yt,Xe,aA,Gt,It={},Rt={},tA=[],mt={},Jt={},nt={},xt={},fA=null,bt=0,Ct=[],sA=new D_(g),ln=t.hotfixes||[],qA={},WA={},Sr=[],_t=function y(S,z,ne,he,Se,ke){if(!(this instanceof y))return new y(S,z,ne,he,Se,ke);isNaN(S)&&(S=1),isNaN(z)&&(z=0),isNaN(ne)&&(ne=0),isNaN(he)&&(he=1),isNaN(Se)&&(Se=0),isNaN(ke)&&(ke=0),this._matrix=[S,z,ne,he,Se,ke]};Object.defineProperty(_t.prototype,"sx",{get:function(){return this._matrix[0]},set:function(y){this._matrix[0]=y}}),Object.defineProperty(_t.prototype,"shy",{get:function(){return this._matrix[1]},set:function(y){this._matrix[1]=y}}),Object.defineProperty(_t.prototype,"shx",{get:function(){return this._matrix[2]},set:function(y){this._matrix[2]=y}}),Object.defineProperty(_t.prototype,"sy",{get:function(){return this._matrix[3]},set:function(y){this._matrix[3]=y}}),Object.defineProperty(_t.prototype,"tx",{get:function(){return this._matrix[4]},set:function(y){this._matrix[4]=y}}),Object.defineProperty(_t.prototype,"ty",{get:function(){return this._matrix[5]},set:function(y){this._matrix[5]=y}}),Object.defineProperty(_t.prototype,"a",{get:function(){return this._matrix[0]},set:function(y){this._matrix[0]=y}}),Object.defineProperty(_t.prototype,"b",{get:function(){return this._matrix[1]},set:function(y){this._matrix[1]=y}}),Object.defineProperty(_t.prototype,"c",{get:function(){return this._matrix[2]},set:function(y){this._matrix[2]=y}}),Object.defineProperty(_t.prototype,"d",{get:function(){return this._matrix[3]},set:function(y){this._matrix[3]=y}}),Object.defineProperty(_t.prototype,"e",{get:function(){return this._matrix[4]},set:function(y){this._matrix[4]=y}}),Object.defineProperty(_t.prototype,"f",{get:function(){return this._matrix[5]},set:function(y){this._matrix[5]=y}}),Object.defineProperty(_t.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(_t.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(_t.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(_t.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),_t.prototype.join=function(y){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(j).join(y)},_t.prototype.multiply=function(y){var S=y.sx*this.sx+y.shy*this.shx,z=y.sx*this.shy+y.shy*this.sy,ne=y.shx*this.sx+y.sy*this.shx,he=y.shx*this.shy+y.sy*this.sy,Se=y.tx*this.sx+y.ty*this.shx+this.tx,ke=y.tx*this.shy+y.ty*this.sy+this.ty;return new _t(S,z,ne,he,Se,ke)},_t.prototype.decompose=function(){var y=this.sx,S=this.shy,z=this.shx,ne=this.sy,he=this.tx,Se=this.ty,ke=Math.sqrt(y*y+S*S),pt=(y/=ke)*z+(S/=ke)*ne;z-=y*pt,ne-=S*pt;var ft=Math.sqrt(z*z+ne*ne);return pt/=ft,y*(ne/=ft)<S*(z/=ft)&&(y=-y,S=-S,pt=-pt,ke=-ke),{scale:new _t(ke,0,0,ft,0,0),translate:new _t(1,0,0,1,he,Se),rotate:new _t(y,S,-S,y,0,0),skew:new _t(1,0,pt,1,0,0)}},_t.prototype.toString=function(y){return this.join(" ")},_t.prototype.inversed=function(){var y=this.sx,S=this.shy,z=this.shx,ne=this.sy,he=this.tx,Se=this.ty,ke=1/(y*ne-S*z),pt=ne*ke,ft=-S*ke,Mt=-z*ke,Dt=y*ke;return new _t(pt,ft,Mt,Dt,-pt*he-Mt*Se,-ft*he-Dt*Se)},_t.prototype.applyToPoint=function(y){var S=y.x*this.sx+y.y*this.shx+this.tx,z=y.x*this.shy+y.y*this.sy+this.ty;return new ls(S,z)},_t.prototype.applyToRectangle=function(y){var S=this.applyToPoint(y),z=this.applyToPoint(new ls(y.x+y.w,y.y+y.h));return new xo(S.x,S.y,z.x-S.x,z.y-S.y)},_t.prototype.clone=function(){var y=this.sx,S=this.shy,z=this.shx,ne=this.sy,he=this.tx,Se=this.ty;return new _t(y,S,z,ne,he,Se)},g.Matrix=_t;var On=g.matrixMult=function(y,S){return S.multiply(y)},ti=new _t(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=ti;var Lt=function(y,S){if(!Jt[y]){var z=(S instanceof ml?"Sh":"P")+(Object.keys(mt).length+1).toString(10);S.id=z,Jt[y]=z,mt[z]=S,sA.publish("addPattern",S)}};g.ShadingPattern=ml,g.TilingPattern=Kc,g.addShadingPattern=function(y,S){return N("addShadingPattern()"),Lt(y,S),this},g.beginTilingPattern=function(y){N("beginTilingPattern()"),_o(y.boundingBox[0],y.boundingBox[1],y.boundingBox[2]-y.boundingBox[0],y.boundingBox[3]-y.boundingBox[1],y.matrix)},g.endTilingPattern=function(y,S){N("endTilingPattern()"),S.stream=Oe[J].join(`
|
|
13
|
-
`),Lt(y,S),sA.publish("endTilingPattern",S),Sr.pop().restore()};var vr,IA=g.__private__.newObject=function(){var y=mA();return rr(y,!0),y},mA=g.__private__.newObjectDeferred=function(){return oe++,ve[oe]=function(){return _e},oe},rr=function(y,S){return S=typeof S=="boolean"&&S,ve[y]=_e,S&&q(y+" 0 obj"),y},Bn=g.__private__.newAdditionalObject=function(){var y={objId:mA(),content:""};return Le.push(y),y},
|
|
11
|
+
`},c_=function(t){return 48<=t.charCodeAt(0)&&t.charCodeAt(0)<=57},lq=(function(t){function e(){var A=t.call(this)||this;return A.curNumber="",A.curCommandType=-1,A.curCommandRelative=!1,A.canParseCommandOrComma=!0,A.curNumberHasExp=!1,A.curNumberHasExpDigits=!1,A.curNumberHasDecimal=!1,A.curArgs=[],A}return f_(e,t),e.prototype.finish=function(A){if(A===void 0&&(A=[]),this.parse(" ",A),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return A},e.prototype.parse=function(A,r){var n=this;r===void 0&&(r=[]);for(var i=function(v){r.push(v),n.curArgs.length=0,n.canParseCommandOrComma=!0},s=0;s<A.length;s++){var a=A[s],o=!(this.curCommandType!==Me.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=c_(a)&&(this.curNumber==="0"&&a==="0"||o);if(!c_(a)||l)if(a!=="e"&&a!=="E")if(a!=="-"&&a!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(a!=="."||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var h=Number(this.curNumber);if(isNaN(h))throw new SyntaxError("Invalid number ending at "+s);if(this.curCommandType===Me.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>h)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+s+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+s+'"')}this.curArgs.push(h),this.curArgs.length===cq[this.curCommandType]&&(Me.HORIZ_LINE_TO===this.curCommandType?i({type:Me.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):Me.VERT_LINE_TO===this.curCommandType?i({type:Me.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===Me.MOVE_TO||this.curCommandType===Me.LINE_TO||this.curCommandType===Me.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Me.MOVE_TO===this.curCommandType&&(this.curCommandType=Me.LINE_TO)):this.curCommandType===Me.CURVE_TO?i({type:Me.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===Me.SMOOTH_CURVE_TO?i({type:Me.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Me.QUAD_TO?i({type:Me.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Me.ARC&&i({type:Me.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!oq(a))if(a===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(a!=="+"&&a!=="-"&&a!==".")if(l)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+s+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+s+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,a!=="z"&&a!=="Z")if(a==="h"||a==="H")this.curCommandType=Me.HORIZ_LINE_TO,this.curCommandRelative=a==="h";else if(a==="v"||a==="V")this.curCommandType=Me.VERT_LINE_TO,this.curCommandRelative=a==="v";else if(a==="m"||a==="M")this.curCommandType=Me.MOVE_TO,this.curCommandRelative=a==="m";else if(a==="l"||a==="L")this.curCommandType=Me.LINE_TO,this.curCommandRelative=a==="l";else if(a==="c"||a==="C")this.curCommandType=Me.CURVE_TO,this.curCommandRelative=a==="c";else if(a==="s"||a==="S")this.curCommandType=Me.SMOOTH_CURVE_TO,this.curCommandRelative=a==="s";else if(a==="q"||a==="Q")this.curCommandType=Me.QUAD_TO,this.curCommandRelative=a==="q";else if(a==="t"||a==="T")this.curCommandType=Me.SMOOTH_QUAD_TO,this.curCommandRelative=a==="t";else{if(a!=="a"&&a!=="A")throw new SyntaxError('Unexpected character "'+a+'" at index '+s+".");this.curCommandType=Me.ARC,this.curCommandRelative=a==="a"}else r.push({type:Me.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal=a==="."}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return r},e.prototype.transform=function(A){return Object.create(this,{parse:{value:function(r,n){n===void 0&&(n=[]);for(var i=0,s=Object.getPrototypeOf(this).parse.call(this,r);i<s.length;i++){var a=s[i],o=A(a);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},e})(h_),Me=(function(t){function e(A){var r=t.call(this)||this;return r.commands=typeof A=="string"?e.parse(A):A,r}return f_(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var A=Or.CALCULATE_BOUNDS();return this.transform(A),A},e.prototype.transform=function(A){for(var r=[],n=0,i=this.commands;n<i.length;n++){var s=A(i[n]);Array.isArray(s)?r.push.apply(r,s):r.push(s)}return this.commands=r,this},e.encode=function(A){return sq(A)},e.parse=function(A){var r=new lq,n=[];return r.parse(A,n),r.finish(n),n},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e})(h_),cq=((Ba={})[Me.MOVE_TO]=2,Ba[Me.LINE_TO]=2,Ba[Me.HORIZ_LINE_TO]=1,Ba[Me.VERT_LINE_TO]=1,Ba[Me.CLOSE_PATH]=0,Ba[Me.QUAD_TO]=4,Ba[Me.SMOOTH_QUAD_TO]=2,Ba[Me.CURVE_TO]=6,Ba[Me.SMOOTH_CURVE_TO]=4,Ba[Me.ARC]=7,Ba)});var v_=me(()=>{"use strict";var uq=Bf().PROPER,fq=wo(),hq=Sn(),p_=ya(),dq=lr(),pq=Rf(),y2="toString",g_=RegExp.prototype,w_=g_[y2],gq=dq(function(){return w_.call({source:"a",flags:"b"})!=="/a/b"}),wq=uq&&w_.name!==y2;(gq||wq)&&fq(g_,y2,function(){var e=hq(this),A=p_(e.source),r=p_(pq(e));return"/"+A+"/"+r},{unsafe:!0})});function Sp(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Sp=function(e){return typeof e}:Sp=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sp(t)}function vq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bq(t,e,A,r,n){if(typeof t=="string"&&(t=document.getElementById(t)),!t||Sp(t)!=="object"||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=t.getContext("2d");try{return i.getImageData(e,A,r,n)}catch(s){throw new Error("unable to access image data: "+s)}}function y_(t,e,A,r,n,i){if(!(isNaN(i)||i<1)){i|=0;var s=Bq(t,e,A,r,n);s=bq(s,e,A,r,n,i),t.getContext("2d").putImageData(s,e,A)}}function bq(t,e,A,r,n,i){for(var s=t.data,a=2*i+1,o=r-1,l=n-1,h=i+1,v=h*(h+1)/2,m=new m_,g=m,C,F=1;F<a;F++)g=g.next=new m_,F===h&&(C=g);g.next=m;for(var _=null,x=null,H=0,D=0,k=mq[i],re=yq[i],fe=0;fe<n;fe++){g=m;for(var Ae=s[D],j=s[D+1],N=s[D+2],Z=s[D+3],I=0;I<h;I++)g.r=Ae,g.g=j,g.b=N,g.a=Z,g=g.next;for(var O=0,Y=0,ee=0,ce=0,be=h*Ae,Fe=h*j,de=h*N,Ee=h*Z,Pe=v*Ae,Ue=v*j,P=v*N,J=v*Z,te=1;te<h;te++){var ie=D+((o<te?o:te)<<2),oe=s[ie],ve=s[ie+1],xe=s[ie+2],_e=s[ie+3],Le=h-te;Pe+=(g.r=oe)*Le,Ue+=(g.g=ve)*Le,P+=(g.b=xe)*Le,J+=(g.a=_e)*Le,O+=oe,Y+=ve,ee+=xe,ce+=_e,g=g.next}_=m,x=C;for(var Oe=0;Oe<r;Oe++){var Je=J*k>>>re;if(s[D+3]=Je,Je!==0){var qe=255/Je;s[D]=(Pe*k>>>re)*qe,s[D+1]=(Ue*k>>>re)*qe,s[D+2]=(P*k>>>re)*qe}else s[D]=s[D+1]=s[D+2]=0;Pe-=be,Ue-=Fe,P-=de,J-=Ee,be-=_.r,Fe-=_.g,de-=_.b,Ee-=_.a;var at=Oe+i+1;at=H+(at<o?at:o)<<2,O+=_.r=s[at],Y+=_.g=s[at+1],ee+=_.b=s[at+2],ce+=_.a=s[at+3],Pe+=O,Ue+=Y,P+=ee,J+=ce,_=_.next;var q=x,je=q.r,Tt=q.g,ut=q.b,Re=q.a;be+=je,Fe+=Tt,de+=ut,Ee+=Re,O-=je,Y-=Tt,ee-=ut,ce-=Re,x=x.next,D+=4}H+=r}for(var dt=0;dt<r;dt++){D=dt<<2;var $e=s[D],lt=s[D+1],Ze=s[D+2],Ut=s[D+3],Nt=h*$e,St=h*lt,Ht=h*Ze,Ot=h*Ut,tt=v*$e,yt=v*lt,Xe=v*Ze,aA=v*Ut;g=m;for(var Gt=0;Gt<h;Gt++)g.r=$e,g.g=lt,g.b=Ze,g.a=Ut,g=g.next;for(var It=r,Rt=0,tA=0,mt=0,Jt=0,nt=1;nt<=i;nt++){D=It+dt<<2;var xt=h-nt;tt+=(g.r=$e=s[D])*xt,yt+=(g.g=lt=s[D+1])*xt,Xe+=(g.b=Ze=s[D+2])*xt,aA+=(g.a=Ut=s[D+3])*xt,Jt+=$e,Rt+=lt,tA+=Ze,mt+=Ut,g=g.next,nt<l&&(It+=r)}D=dt,_=m,x=C;for(var fA=0;fA<n;fA++){var bt=D<<2;s[bt+3]=Ut=aA*k>>>re,Ut>0?(Ut=255/Ut,s[bt]=(tt*k>>>re)*Ut,s[bt+1]=(yt*k>>>re)*Ut,s[bt+2]=(Xe*k>>>re)*Ut):s[bt]=s[bt+1]=s[bt+2]=0,tt-=Nt,yt-=St,Xe-=Ht,aA-=Ot,Nt-=_.r,St-=_.g,Ht-=_.b,Ot-=_.a,bt=dt+((bt=fA+h)<l?bt:l)*r<<2,tt+=Jt+=_.r=s[bt],yt+=Rt+=_.g=s[bt+1],Xe+=tA+=_.b=s[bt+2],aA+=mt+=_.a=s[bt+3],_=_.next,Nt+=$e=x.r,St+=lt=x.g,Ht+=Ze=x.b,Ot+=Ut=x.a,Jt-=$e,Rt-=lt,tA-=Ze,mt-=Ut,x=x.next,D+=r}}return t}var mq,yq,m_,B_=zt(()=>{mq=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],yq=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];m_=function t(){vq(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}});var T_={};or(T_,{AElement:()=>ag,AnimateColorElement:()=>eg,AnimateElement:()=>kc,AnimateTransformElement:()=>tg,BoundingBox:()=>vi,CB1:()=>C2,CB2:()=>E2,CB3:()=>F2,CB4:()=>U2,Canvg:()=>L2,CircleElement:()=>jp,ClipPathElement:()=>fg,DefsElement:()=>Xp,DescElement:()=>vg,Document:()=>gl,Element:()=>zA,EllipseElement:()=>Vp,FeColorMatrixElement:()=>Yf,FeCompositeElement:()=>pg,FeDropShadowElement:()=>hg,FeGaussianBlurElement:()=>gg,FeMorphologyElement:()=>dg,FilterElement:()=>Zf,Font:()=>Aa,FontElement:()=>Ag,FontFaceElement:()=>rg,GElement:()=>Rc,GlyphElement:()=>Vf,GradientElement:()=>$f,ImageElement:()=>og,LineElement:()=>Gp,LinearGradientElement:()=>Yp,MarkerElement:()=>$p,MaskElement:()=>Jf,Matrix:()=>Kf,MissingGlyphElement:()=>ng,Mouse:()=>Rp,PSEUDO_ZERO:()=>hl,Parser:()=>Pc,PathElement:()=>Fr,PathParser:()=>Wt,PatternElement:()=>Wp,Point:()=>Rr,PolygonElement:()=>zp,PolylineElement:()=>Wf,Property:()=>Qt,QB1:()=>x2,QB2:()=>_2,QB3:()=>S2,RadialGradientElement:()=>Jp,RectElement:()=>zf,RenderedElement:()=>ts,Rotate:()=>Dp,SVGElement:()=>bo,SVGFontLoader:()=>cg,Scale:()=>Hp,Screen:()=>dl,Skew:()=>jf,SkewX:()=>Mp,SkewY:()=>qp,StopElement:()=>Zp,StyleElement:()=>Xf,SymbolElement:()=>lg,TRefElement:()=>ig,TSpanElement:()=>Gf,TextElement:()=>Bo,TextPathElement:()=>sg,TitleElement:()=>wg,Transform:()=>pl,Translate:()=>kp,UnknownElement:()=>Kp,UseElement:()=>ug,ViewPort:()=>Pp,compressSpaces:()=>wl,default:()=>L2,getSelectorSpecificity:()=>Q_,normalizeAttributeName:()=>__,normalizeColor:()=>S_,parseExternalUrl:()=>T2,presets:()=>Fq,toNumbers:()=>wi,trimLeft:()=>U_,trimRight:()=>x_,vectorMagnitude:()=>B2,vectorsAngle:()=>b2,vectorsRatio:()=>Op});function Cq(){var{DOMParser:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas(A,r){return new OffscreenCanvas(A,r)},createImage(A){return es(function*(){var r=yield fetch(A),n=yield r.blob(),i=yield createImageBitmap(n);return i})()}};return(typeof DOMParser<"u"||typeof t>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function Eq(t){var{DOMParser:e,canvas:A,fetch:r}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:r,createCanvas:A.createCanvas,createImage:A.loadImage}}function wl(t){return t.replace(/(?!\u3000)\s+/gm," ")}function U_(t){return t.replace(/^[\n \t]+/,"")}function x_(t){return t.replace(/[\n \t]+$/,"")}function wi(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}function __(t){return Uq.test(t)?t.toLowerCase():t}function T2(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function S_(t){if(!t.startsWith("rgb"))return t;var e=3,A=t.replace(/\d+(\.\d+)?/g,(r,n)=>e--&&n?String(Math.round(parseFloat(r))):r);return A}function ul(t,e){var A=e.exec(t);return A?[t.replace(e," "),A.length]:[t,0]}function Q_(t){var e=[0,0,0],A=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[A,r]=ul(A,xq),e[1]+=r,[A,r]=ul(A,_q),e[0]+=r,[A,r]=ul(A,Sq),e[1]+=r,[A,r]=ul(A,Qq),e[2]+=r,[A,r]=ul(A,Iq),e[1]+=r,[A,r]=ul(A,Lq),e[1]+=r,A=A.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[A,r]=ul(A,Tq),e[2]+=r,e.join("")}function B2(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Op(t,e){return(t[0]*e[0]+t[1]*e[1])/(B2(t)*B2(e))}function b2(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Op(t,e))}function C2(t){return t*t*t}function E2(t){return 3*t*t*(1-t)}function F2(t){return 3*t*(1-t)*(1-t)}function U2(t){return(1-t)*(1-t)*(1-t)}function x2(t){return t*t}function _2(t){return 2*t*(1-t)}function S2(t){return(1-t)*(1-t)}function Pq(t){return wl(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Rq(t){var[e,A]=t.split("(");return[e.trim(),A.trim().replace(")","")]}function kq(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Dq(t){return typeof process>"u"?t:t.trim().split(",").map(kq).join(",")}function Hq(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function Mq(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}function b_(t,e){var A=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),A.push.apply(A,r)}return A}function Qp(t){for(var e=1;e<arguments.length;e++){var A=arguments[e]!=null?arguments[e]:{};e%2?b_(Object(A),!0).forEach(function(r){Ep(t,r,A[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(A)):b_(Object(A)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(A,r))})}return t}function Ip(t,e,A,r,n,i){return t[A*r*4+e*4+i]}function Lp(t,e,A,r,n,i,s){t[A*r*4+e*4+i]=s}function Pr(t,e,A){var r=t[e];return r*A}function Ts(t,e,A,r){return e+Math.cos(t)*A+Math.sin(t)*r}function E_(t,e){var A=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),A.push.apply(A,r)}return A}function jq(t){for(var e=1;e<arguments.length;e++){var A=arguments[e]!=null?arguments[e]:{};e%2?E_(Object(A),!0).forEach(function(r){Ep(t,r,A[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(A)):E_(Object(A)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(A,r))})}return t}function Vq(t,e){var A=document.createElement("canvas");return A.width=t,A.height=e,A}function Gq(t){return I2.apply(this,arguments)}function I2(){return I2=es(function*(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A=document.createElement("img");return e&&(A.crossOrigin="Anonymous"),new Promise((r,n)=>{A.onload=()=>{r(A)},A.onerror=(i,s,a,o,l)=>{n(l)},A.src=t})}),I2.apply(this,arguments)}function F_(t,e){var A=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),A.push.apply(A,r)}return A}function fl(t){for(var e=1;e<arguments.length;e++){var A=arguments[e]!=null?arguments[e]:{};e%2?F_(Object(A),!0).forEach(function(r){Ep(t,r,A[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(A)):F_(Object(A)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(A,r))})}return t}var hX,pX,gX,wX,vX,mX,BX,bX,CX,Tp,EX,Np,FX,UX,xX,SX,Fq,Uq,xq,_q,Sq,Qq,Iq,Lq,Tq,hl,Qt,Pp,Rr,Rp,I_,L_,dl,Nq,Oq,Pc,kp,Dp,Hp,Kf,jf,Mp,qp,pl,zA,Kp,Aa,vi,Wt,ts,Fr,Vf,Bo,Gf,Q2,bo,zf,jp,Vp,Gp,Wf,zp,Wp,$p,Xp,Rc,$f,Yp,Jp,Zp,kc,eg,tg,Ag,rg,ng,ig,ag,sg,qq,og,lg,cg,Xf,ug,Yf,Jf,C_,fg,Zf,hg,dg,pg,gg,wg,vg,Kq,gl,L2,N_=zt(()=>{hX=An(xF(),1);SF();pX=An(vU(),1),gX=An(EU(),1),wX=An(IU(),1),vX=An(r2(),1),mX=An(gx(),1);Bx();BX=An(Sx(),1),bX=An(Lx(),1),CX=An(Ox(),1),Tp=An(Dx(),1),EX=An(Wx(),1),Np=An(Xx(),1),FX=An(Jx(),1),UX=An(e_(),1),xX=An(n_(),1);d_();SX=An(v_(),1);B_();Fq=Object.freeze({__proto__:null,offscreen:Cq,node:Eq});Uq=/^[A-Z-]+$/;xq=/(\[[^\]]+\])/g,_q=/(#[^\s+>~.[:]+)/g,Sq=/(\.[^\s+>~.[:]+)/g,Qq=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Iq=/(:[\w-]+\([^)]*\))/gi,Lq=/(:[^\s+>~.[:]+)/g,Tq=/([^\s+>~.[:]+)/g;hl=1e-8;Qt=class t{constructor(e,A,r){this.document=e,this.name=A,this.value=r,this.isNormalizedColor=!1}static empty(e){return new t(e,"EMPTY","")}split(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:A,name:r}=this;return wl(this.getString()).trim().split(e).map(n=>new t(A,r,n))}hasValue(e){var{value:A}=this;return A!==null&&A!==""&&(e||A!==0)&&typeof A<"u"}isString(e){var{value:A}=this,r=typeof A=="string";return!r||!e?r:e.test(A)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:A}=this,r=parseFloat(A);return this.isString(/%$/)&&(r/=100),r}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var A=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,A=S_(A),this.value=A),A}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,n]=typeof e=="boolean"?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&n):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(r);default:{var s=this.getNumber();return A&&s<1?s*i.computeSize(r):s}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),A=/#([^)'"]+)/.exec(e);return A&&(A=A[1]),A||(A=e),this.document.definitions[A]}getFillStyleDefinition(e,A){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,e,A);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,e,A)}return null}getTextBaseline(){return this.hasValue()?t.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var A=this.getColor(),r=A.length,n=0,i=0;i<r&&(A[i]===","&&n++,n!==3);i++);if(e.hasValue()&&this.isString()&&n!==3){var s=new Np.default(A);s.ok&&(s.alpha=e.getNumber(),A=s.toRGBA())}return new t(this.document,this.name,A)}};Qt.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};Pp=class{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(e,A){this.viewPorts.push({width:e,height:A})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:e}=this;return e[e.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(e){return typeof e=="number"?e:e==="x"?this.width:e==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},Rr=class t{constructor(e,A){this.x=e,this.y=A}static parse(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=A,n=A]=wi(e);return new t(r,n)}static parseScale(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=A,n=r]=wi(e);return new t(r,n)}static parsePath(e){for(var A=wi(e),r=A.length,n=[],i=0;i<r;i+=2)n.push(new t(A[i],A[i+1]));return n}angleTo(e){return Math.atan2(e.y-this.y,e.x-this.x)}applyTransform(e){var{x:A,y:r}=this,n=A*e[0]+r*e[2]+e[4],i=A*e[1]+r*e[3]+e[5];this.x=n,this.y=i}},Rp=class{constructor(e){this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:e,onClick:A,onMouseMove:r}=this,n=e.ctx.canvas;n.onclick=A,n.onmousemove=r,this.working=!0}}stop(){if(this.working){var e=this.screen.ctx.canvas;this.working=!1,e.onclick=null,e.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:e,events:A,eventElements:r}=this,{style:n}=e.ctx.canvas;n&&(n.cursor=""),A.forEach((i,s)=>{for(var{run:a}=i,o=r[s];o;)a(o),o=o.parent}),this.events=[],this.eventElements=[]}}checkPath(e,A){if(!(!this.working||!A)){var{events:r,eventElements:n}=this;r.forEach((i,s)=>{var{x:a,y:o}=i;!n[s]&&A.isPointInPath&&A.isPointInPath(a,o)&&(n[s]=e)})}}checkBoundingBox(e,A){if(!(!this.working||!A)){var{events:r,eventElements:n}=this;r.forEach((i,s)=>{var{x:a,y:o}=i;!n[s]&&A.isPointInBox(a,o)&&(n[s]=e)})}}mapXY(e,A){for(var{window:r,ctx:n}=this.screen,i=new Rr(e,A),s=n.canvas;s;)i.x-=s.offsetLeft,i.y-=s.offsetTop,s=s.offsetParent;return r.scrollX&&(i.x+=r.scrollX),r.scrollY&&(i.y+=r.scrollY),i}onClick(e){var{x:A,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:A,y:r,run(n){n.onClick&&n.onClick()}})}onMouseMove(e){var{x:A,y:r}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:A,y:r,run(n){n.onMouseMove&&n.onMouseMove()}})}},I_=typeof window<"u"?window:null,L_=typeof fetch<"u"?fetch.bind(void 0):null,dl=class{constructor(e){var{fetch:A=L_,window:r=I_}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Pp,this.mouse=new Rp(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=A}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(A=>A());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:A,ctx:r,aspectRatio:n,width:i,desiredWidth:s,height:a,desiredHeight:o,minX:l=0,minY:h=0,refX:v,refY:m,clip:g=!1,clipX:C=0,clipY:F=0}=e,_=wl(n).replace(/^defer\s/,""),[x,H]=_.split(" "),D=x||"xMidYMid",k=H||"meet",re=i/s,fe=a/o,Ae=Math.min(re,fe),j=Math.max(re,fe),N=s,Z=o;k==="meet"&&(N*=Ae,Z*=Ae),k==="slice"&&(N*=j,Z*=j);var I=new Qt(A,"refX",v),O=new Qt(A,"refY",m),Y=I.hasValue()&&O.hasValue();if(Y&&r.translate(-Ae*I.getPixels("x"),-Ae*O.getPixels("y")),g){var ee=Ae*C,ce=Ae*F;r.beginPath(),r.moveTo(ee,ce),r.lineTo(i,ce),r.lineTo(i,a),r.lineTo(ee,a),r.closePath(),r.clip()}if(!Y){var be=k==="meet"&&Ae===fe,Fe=k==="slice"&&j===fe,de=k==="meet"&&Ae===re,Ee=k==="slice"&&j===re;D.startsWith("xMid")&&(be||Fe)&&r.translate(i/2-N/2,0),D.endsWith("YMid")&&(de||Ee)&&r.translate(0,a/2-Z/2),D.startsWith("xMax")&&(be||Fe)&&r.translate(i-N,0),D.endsWith("YMax")&&(de||Ee)&&r.translate(0,a-Z)}switch(!0){case D==="none":r.scale(re,fe);break;case k==="meet":r.scale(Ae,Ae);break;case k==="slice":r.scale(j,j);break}r.translate(-l,-h)}start(e){var{enableRedraw:A=!1,ignoreMouse:r=!1,ignoreAnimation:n=!1,ignoreDimensions:i=!1,ignoreClear:s=!1,forceRedraw:a,scaleWidth:o,scaleHeight:l,offsetX:h,offsetY:v}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:m,mouse:g}=this,C=1e3/m;if(this.frameDuration=C,this.readyPromise=new Promise(D=>{this.resolveReady=D}),this.isReady()&&this.render(e,i,s,o,l,h,v),!!A){var F=Date.now(),_=F,x=0,H=()=>{F=Date.now(),x=F-_,x>=C&&(_=F-x%C,this.shouldUpdate(n,a)&&(this.render(e,i,s,o,l,h,v),g.runEvents())),this.intervalId=(0,Tp.default)(H)};r||g.start(),this.intervalId=(0,Tp.default)(H)}}stop(){this.intervalId&&(Tp.default.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,A){if(!e){var{frameDuration:r}=this,n=this.animations.reduce((i,s)=>s.update(r)||i,!1);if(n)return!0}return!!(typeof A=="function"&&A()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,A,r,n,i,s,a){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:l,viewPort:h,ctx:v,isFirstRender:m}=this,g=v.canvas;h.clear(),g.width&&g.height?h.setCurrent(g.width,g.height):h.setCurrent(o,l);var C=e.getStyle("width"),F=e.getStyle("height");!A&&(m||typeof n!="number"&&typeof i!="number")&&(C.hasValue()&&(g.width=C.getPixels("x"),g.style&&(g.style.width="".concat(g.width,"px"))),F.hasValue()&&(g.height=F.getPixels("y"),g.style&&(g.style.height="".concat(g.height,"px"))));var _=g.clientWidth||g.width,x=g.clientHeight||g.height;if(A&&C.hasValue()&&F.hasValue()&&(_=C.getPixels("x"),x=F.getPixels("y")),h.setCurrent(_,x),typeof s=="number"&&e.getAttribute("x",!0).setValue(s),typeof a=="number"&&e.getAttribute("y",!0).setValue(a),typeof n=="number"||typeof i=="number"){var H=wi(e.getAttribute("viewBox").getString()),D=0,k=0;if(typeof n=="number"){var re=e.getStyle("width");re.hasValue()?D=re.getPixels("x")/n:isNaN(H[2])||(D=H[2]/n)}if(typeof i=="number"){var fe=e.getStyle("height");fe.hasValue()?k=fe.getPixels("y")/i:isNaN(H[3])||(k=H[3]/i)}D||(D=k),k||(k=D),e.getAttribute("width",!0).setValue(n),e.getAttribute("height",!0).setValue(i);var Ae=e.getStyle("transform",!0,!0);Ae.setValue("".concat(Ae.getString()," scale(").concat(1/D,", ").concat(1/k,")"))}r||v.clearRect(0,0,_,x),e.render(v),m&&(this.isFirstRender=!1)}};dl.defaultWindow=I_;dl.defaultFetch=L_;({defaultFetch:Nq}=dl),Oq=typeof DOMParser<"u"?DOMParser:null,Pc=class{constructor(){var{fetch:e=Nq,DOMParser:A=Oq}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=A}parse(e){var A=this;return es(function*(){return e.startsWith("<")?A.parseFromString(e):A.load(e)})()}parseFromString(e){var A=new this.DOMParser;try{return this.checkDocument(A.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(A.parseFromString(e,"text/xml"))}}checkDocument(e){var A=e.getElementsByTagName("parsererror")[0];if(A)throw new Error(A.textContent);return e}load(e){var A=this;return es(function*(){var r=yield A.fetch(e),n=yield r.text();return A.parseFromString(n)})()}},kp=class{constructor(e,A){this.type="translate",this.point=null,this.point=Rr.parse(A)}apply(e){var{x:A,y:r}=this.point;e.translate(A||0,r||0)}unapply(e){var{x:A,y:r}=this.point;e.translate(-1*A||0,-1*r||0)}applyToPoint(e){var{x:A,y:r}=this.point;e.applyTransform([1,0,0,1,A||0,r||0])}},Dp=class{constructor(e,A,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=wi(A);this.angle=new Qt(e,"angle",n[0]),this.originX=r[0],this.originY=r[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(e){var{cx:A,cy:r,originX:n,originY:i,angle:s}=this,a=A+n.getPixels("x"),o=r+i.getPixels("y");e.translate(a,o),e.rotate(s.getRadians()),e.translate(-a,-o)}unapply(e){var{cx:A,cy:r,originX:n,originY:i,angle:s}=this,a=A+n.getPixels("x"),o=r+i.getPixels("y");e.translate(a,o),e.rotate(-1*s.getRadians()),e.translate(-a,-o)}applyToPoint(e){var{cx:A,cy:r,angle:n}=this,i=n.getRadians();e.applyTransform([1,0,0,1,A||0,r||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-A||0,-r||0])}},Hp=class{constructor(e,A,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=Rr.parseScale(A);(n.x===0||n.y===0)&&(n.x=hl,n.y=hl),this.scale=n,this.originX=r[0],this.originY=r[1]}apply(e){var{scale:{x:A,y:r},originX:n,originY:i}=this,s=n.getPixels("x"),a=i.getPixels("y");e.translate(s,a),e.scale(A,r||A),e.translate(-s,-a)}unapply(e){var{scale:{x:A,y:r},originX:n,originY:i}=this,s=n.getPixels("x"),a=i.getPixels("y");e.translate(s,a),e.scale(1/A,1/r||A),e.translate(-s,-a)}applyToPoint(e){var{x:A,y:r}=this.scale;e.applyTransform([A||0,0,0,r||0,0,0])}},Kf=class{constructor(e,A,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=wi(A),this.originX=r[0],this.originY=r[1]}apply(e){var{originX:A,originY:r,matrix:n}=this,i=A.getPixels("x"),s=r.getPixels("y");e.translate(i,s),e.transform(n[0],n[1],n[2],n[3],n[4],n[5]),e.translate(-i,-s)}unapply(e){var{originX:A,originY:r,matrix:n}=this,i=n[0],s=n[2],a=n[4],o=n[1],l=n[3],h=n[5],v=0,m=0,g=1,C=1/(i*(l*g-h*m)-s*(o*g-h*v)+a*(o*m-l*v)),F=A.getPixels("x"),_=r.getPixels("y");e.translate(F,_),e.transform(C*(l*g-h*m),C*(h*v-o*g),C*(a*m-s*g),C*(i*g-a*v),C*(s*h-a*l),C*(a*o-i*h)),e.translate(-F,-_)}applyToPoint(e){e.applyTransform(this.matrix)}},jf=class extends Kf{constructor(e,A,r){super(e,A,r),this.type="skew",this.angle=null,this.angle=new Qt(e,"angle",A)}},Mp=class extends jf{constructor(e,A,r){super(e,A,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}},qp=class extends jf{constructor(e,A,r){super(e,A,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}};pl=class t{constructor(e,A,r){this.document=e,this.transforms=[];var n=Pq(A);n.forEach(i=>{if(i!=="none"){var[s,a]=Rq(i),o=t.transformTypes[s];typeof o<"u"&&this.transforms.push(new o(this.document,a,r))}})}static fromElement(e,A){var r=A.getStyle("transform",!1,!0),[n,i=n]=A.getStyle("transform-origin",!1,!0).split(),s=[n,i];return r.hasValue()?new t(e,r.getString(),s):null}apply(e){for(var{transforms:A}=this,r=A.length,n=0;n<r;n++)A[n].apply(e)}unapply(e){for(var{transforms:A}=this,r=A.length,n=r-1;n>=0;n--)A[n].unapply(e)}applyToPoint(e){for(var{transforms:A}=this,r=A.length,n=0;n<r;n++)A[n].applyToPoint(e)}};pl.transformTypes={translate:kp,rotate:Dp,scale:Hp,matrix:Kf,skewX:Mp,skewY:qp};zA=class t{constructor(e,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=A,this.captureTextNodes=r,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!A||A.nodeType!==1)){if(Array.from(A.attributes).forEach(a=>{var o=__(a.nodeName);this.attributes[o]=new Qt(e,o,a.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var n=this.getAttribute("style").getString().split(";").map(a=>a.trim());n.forEach(a=>{if(a){var[o,l]=a.split(":").map(h=>h.trim());this.styles[o]=new Qt(e,o,l)}})}var{definitions:i}=e,s=this.getAttribute("id");s.hasValue()&&(i[s.getString()]||(i[s.getString()]=this)),Array.from(A.childNodes).forEach(a=>{if(a.nodeType===1)this.addChild(a);else if(r&&(a.nodeType===3||a.nodeType===4)){var o=e.createTextNode(a);o.getText().length>0&&this.addChild(o)}})}}getAttribute(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[e];if(!r&&A){var n=new Qt(this.document,e,"");return this.attributes[e]=n,n}return r||Qt.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e==="href"||e.endsWith(":href"))return this.attributes[e];return Qt.empty(this.document)}getStyle(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[e];if(n)return n;var i=this.getAttribute(e);if(i!=null&&i.hasValue())return this.styles[e]=i,i;if(!r){var{parent:s}=this;if(s){var a=s.getStyle(e);if(a!=null&&a.hasValue())return a}}if(A){var o=new Qt(this.document,e,"");return this.styles[e]=o,o}return n||Qt.empty(this.document)}render(e){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(e.save(),this.getStyle("mask").hasValue()){var A=this.getStyle("mask").getDefinition();A&&(this.applyEffects(e),A.apply(e,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var A=pl.fromElement(this.document,this);A&&A.apply(e);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(A=>{A.render(e)})}addChild(e){var A=e instanceof t?e:this.document.createElement(e);A.parent=this,t.ignoreChildTypes.includes(A.type)||this.children.push(A)}matchesSelector(e){var A,{node:r}=this;if(typeof r.matches=="function")return r.matches(e);var n=(A=r.getAttribute)===null||A===void 0?void 0:A.call(r,"class");return!n||n===""?!1:n.split(" ").some(i=>".".concat(i)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:A}=this.document;for(var r in e)if(!r.startsWith("@")&&this.matchesSelector(r)){var n=e[r],i=A[r];if(n)for(var s in n){var a=this.stylesSpecificity[s];typeof a>"u"&&(a="000"),i>=a&&(this.styles[s]=n[s],this.stylesSpecificity[s]=i)}}}removeStyles(e,A){var r=A.reduce((n,i)=>{var s=e.getStyle(i);if(!s.hasValue())return n;var a=s.getString();return s.setValue(""),[...n,[i,a]]},[]);return r}restoreStyles(e,A){A.forEach(r=>{var[n,i]=r;e.getStyle(n,!0).setValue(i)})}isFirstChild(){var e;return((e=this.parent)===null||e===void 0?void 0:e.children.indexOf(this))===0}};zA.ignoreChildTypes=["title"];Kp=class extends zA{constructor(e,A,r){super(e,A,r)}};Aa=class t{constructor(e,A,r,n,i,s){var a=s?typeof s=="string"?t.parse(s):s:{};this.fontFamily=i||a.fontFamily,this.fontSize=n||a.fontSize,this.fontStyle=e||a.fontStyle,this.fontWeight=r||a.fontWeight,this.fontVariant=A||a.fontVariant}static parse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",A=arguments.length>1?arguments[1]:void 0,r="",n="",i="",s="",a="",o=wl(e).trim().split(" "),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(h=>{switch(!0){case(!l.fontStyle&&t.styles.includes(h)):h!=="inherit"&&(r=h),l.fontStyle=!0;break;case(!l.fontVariant&&t.variants.includes(h)):h!=="inherit"&&(n=h),l.fontStyle=!0,l.fontVariant=!0;break;case(!l.fontWeight&&t.weights.includes(h)):h!=="inherit"&&(i=h),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:h!=="inherit"&&([s]=h.split("/")),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:h!=="inherit"&&(a+=h)}}),new t(r,n,i,s,a,A)}toString(){return[Hq(this.fontStyle),this.fontVariant,Mq(this.fontWeight),this.fontSize,Dq(this.fontFamily)].join(" ").trim()}};Aa.styles="normal|italic|oblique|inherit";Aa.variants="normal|small-caps|inherit";Aa.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";vi=class{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=A,this.x2=r,this.y2=n,this.addPoint(e,A),this.addPoint(r,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,A){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),e<this.x1&&(this.x1=e),e>this.x2&&(this.x2=e)),typeof A<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=A,this.y2=A),A<this.y1&&(this.y1=A),A>this.y2&&(this.y2=A))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:A,y1:r,x2:n,y2:i}=e;this.addPoint(A,r),this.addPoint(n,i)}}sumCubic(e,A,r,n,i){return Math.pow(1-e,3)*A+3*Math.pow(1-e,2)*e*r+3*(1-e)*Math.pow(e,2)*n+Math.pow(e,3)*i}bezierCurveAdd(e,A,r,n,i){var s=6*A-12*r+6*n,a=-3*A+9*r-9*n+3*i,o=3*r-3*A;if(a===0){if(s===0)return;var l=-o/s;0<l&&l<1&&(e?this.addX(this.sumCubic(l,A,r,n,i)):this.addY(this.sumCubic(l,A,r,n,i)));return}var h=Math.pow(s,2)-4*o*a;if(!(h<0)){var v=(-s+Math.sqrt(h))/(2*a);0<v&&v<1&&(e?this.addX(this.sumCubic(v,A,r,n,i)):this.addY(this.sumCubic(v,A,r,n,i)));var m=(-s-Math.sqrt(h))/(2*a);0<m&&m<1&&(e?this.addX(this.sumCubic(m,A,r,n,i)):this.addY(this.sumCubic(m,A,r,n,i)))}}addBezierCurve(e,A,r,n,i,s,a,o){this.addPoint(e,A),this.addPoint(a,o),this.bezierCurveAdd(!0,e,r,i,a),this.bezierCurveAdd(!1,A,n,s,o)}addQuadraticCurve(e,A,r,n,i,s){var a=e+.6666666666666666*(r-e),o=A+2/3*(n-A),l=a+1/3*(i-e),h=o+1/3*(s-A);this.addBezierCurve(e,A,a,l,o,h,i,s)}isPointInBox(e,A){var{x1:r,y1:n,x2:i,y2:s}=this;return r<=e&&e<=i&&n<=A&&A<=s}},Wt=class extends Me{constructor(e){super(e.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Rr(0,0),this.control=new Rr(0,0),this.current=new Rr(0,0),this.points=[],this.angles=[]}isEnd(){var{i:e,commands:A}=this;return e>=A.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new Rr(this.command[e],this.command[A]);return this.makeAbsolute(r)}getAsControlPoint(e,A){var r=this.getPoint(e,A);return this.control=r,r}getAsCurrentPoint(e,A){var r=this.getPoint(e,A);return this.current=r,r}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==Me.CURVE_TO&&e!==Me.SMOOTH_CURVE_TO&&e!==Me.QUAD_TO&&e!==Me.SMOOTH_QUAD_TO)return this.current;var{current:{x:A,y:r},control:{x:n,y:i}}=this,s=new Rr(2*A-n,2*r-i);return s}makeAbsolute(e){if(this.command.relative){var{x:A,y:r}=this.current;e.x+=A,e.y+=r}return e}addMarker(e,A,r){var{points:n,angles:i}=this;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(e,A?A.angleTo(e):null)}addMarkerAngle(e,A){this.points.push(e),this.angles.push(A)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,A=e.length,r=0;r<A;r++)if(!e[r]){for(var n=r+1;n<A;n++)if(e[n]){e[r]=e[n];break}}return e}},ts=class extends zA{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var e=1,A=this;A;){var r=A.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),A=A.parent}return e}setContext(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!A){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var a=r.getFillStyleDefinition(this,n);a&&(e.fillStyle=a)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();o!=="inherit"&&(e.fillStyle=o==="none"?"rgba(0,0,0,0)":o)}if(n.hasValue()){var l=new Qt(this.document,"fill",e.fillStyle).addOpacity(n).getColor();e.fillStyle=l}if(i.isUrlDefinition()){var h=i.getFillStyleDefinition(this,s);h&&(e.strokeStyle=h)}else if(i.hasValue()){i.getString()==="currentColor"&&i.setValue(this.getStyle("color").getColor());var v=i.getString();v!=="inherit"&&(e.strokeStyle=v==="none"?"rgba(0,0,0,0)":v)}if(s.hasValue()){var m=new Qt(this.document,"stroke",e.strokeStyle).addOpacity(s).getString();e.strokeStyle=m}var g=this.getStyle("stroke-width");if(g.hasValue()){var C=g.getPixels();e.lineWidth=C||hl}var F=this.getStyle("stroke-linecap"),_=this.getStyle("stroke-linejoin"),x=this.getStyle("stroke-miterlimit"),H=this.getStyle("stroke-dasharray"),D=this.getStyle("stroke-dashoffset");if(F.hasValue()&&(e.lineCap=F.getString()),_.hasValue()&&(e.lineJoin=_.getString()),x.hasValue()&&(e.miterLimit=x.getNumber()),H.hasValue()&&H.getString()!=="none"){var k=wi(H.getString());typeof e.setLineDash<"u"?e.setLineDash(k):typeof e.webkitLineDash<"u"?e.webkitLineDash=k:typeof e.mozDash<"u"&&!(k.length===1&&k[0]===0)&&(e.mozDash=k);var re=D.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=re:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=re:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=re)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var fe=this.getStyle("font"),Ae=this.getStyle("font-style"),j=this.getStyle("font-variant"),N=this.getStyle("font-weight"),Z=this.getStyle("font-size"),I=this.getStyle("font-family"),O=new Aa(Ae.getString(),j.getString(),N.getString(),Z.hasValue()?"".concat(Z.getPixels(!0),"px"):"",I.getString(),Aa.parse(fe.getString(),e.font));Ae.setValue(O.fontStyle),j.setValue(O.fontVariant),N.setValue(O.fontWeight),Z.setValue(O.fontSize),I.setValue(O.fontFamily),e.font=O.toString(),Z.isPixels()&&(this.document.emSize=Z.getPixels(),this.modifiedEmSizeStack=!0)}A||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}},Fr=class t extends ts{constructor(e,A,r){super(e,A,r),this.type="path",this.pathParser=null,this.pathParser=new Wt(this.getAttribute("d").getString())}path(e){var{pathParser:A}=this,r=new vi;for(A.reset(),e&&e.beginPath();!A.isEnd();)switch(A.next().type){case Wt.MOVE_TO:this.pathM(e,r);break;case Wt.LINE_TO:this.pathL(e,r);break;case Wt.HORIZ_LINE_TO:this.pathH(e,r);break;case Wt.VERT_LINE_TO:this.pathV(e,r);break;case Wt.CURVE_TO:this.pathC(e,r);break;case Wt.SMOOTH_CURVE_TO:this.pathS(e,r);break;case Wt.QUAD_TO:this.pathQ(e,r);break;case Wt.SMOOTH_QUAD_TO:this.pathT(e,r);break;case Wt.ARC:this.pathA(e,r);break;case Wt.CLOSE_PATH:this.pathZ(e,r);break}return r}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,A=e.getMarkerPoints(),r=e.getMarkerAngles(),n=A.map((i,s)=>[i,r[s]]);return n}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var A=this.getStyle("fill-rule");e.fillStyle!==""&&(A.getString("inherit")!=="inherit"?e.fill(A.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),[l,h]=r[0];o.render(e,l,h)}if(s.isUrlDefinition())for(var v=s.getDefinition(),m=1;m<n;m++){var[g,C]=r[m];v.render(e,g,C)}if(a.isUrlDefinition()){var F=a.getDefinition(),[_,x]=r[n];F.render(e,_,x)}}}static pathM(e){var A=e.getAsCurrentPoint();return e.start=e.current,{point:A}}pathM(e,A){var{pathParser:r}=this,{point:n}=t.pathM(r),{x:i,y:s}=n;r.addMarker(n),A.addPoint(i,s),e&&e.moveTo(i,s)}static pathL(e){var{current:A}=e,r=e.getAsCurrentPoint();return{current:A,point:r}}pathL(e,A){var{pathParser:r}=this,{current:n,point:i}=t.pathL(r),{x:s,y:a}=i;r.addMarker(i,n),A.addPoint(s,a),e&&e.lineTo(s,a)}static pathH(e){var{current:A,command:r}=e,n=new Rr((r.relative?A.x:0)+r.x,A.y);return e.current=n,{current:A,point:n}}pathH(e,A){var{pathParser:r}=this,{current:n,point:i}=t.pathH(r),{x:s,y:a}=i;r.addMarker(i,n),A.addPoint(s,a),e&&e.lineTo(s,a)}static pathV(e){var{current:A,command:r}=e,n=new Rr(A.x,(r.relative?A.y:0)+r.y);return e.current=n,{current:A,point:n}}pathV(e,A){var{pathParser:r}=this,{current:n,point:i}=t.pathV(r),{x:s,y:a}=i;r.addMarker(i,n),A.addPoint(s,a),e&&e.lineTo(s,a)}static pathC(e){var{current:A}=e,r=e.getPoint("x1","y1"),n=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:A,point:r,controlPoint:n,currentPoint:i}}pathC(e,A){var{pathParser:r}=this,{current:n,point:i,controlPoint:s,currentPoint:a}=t.pathC(r);r.addMarker(a,s,i),A.addBezierCurve(n.x,n.y,i.x,i.y,s.x,s.y,a.x,a.y),e&&e.bezierCurveTo(i.x,i.y,s.x,s.y,a.x,a.y)}static pathS(e){var{current:A}=e,r=e.getReflectedControlPoint(),n=e.getAsControlPoint("x2","y2"),i=e.getAsCurrentPoint();return{current:A,point:r,controlPoint:n,currentPoint:i}}pathS(e,A){var{pathParser:r}=this,{current:n,point:i,controlPoint:s,currentPoint:a}=t.pathS(r);r.addMarker(a,s,i),A.addBezierCurve(n.x,n.y,i.x,i.y,s.x,s.y,a.x,a.y),e&&e.bezierCurveTo(i.x,i.y,s.x,s.y,a.x,a.y)}static pathQ(e){var{current:A}=e,r=e.getAsControlPoint("x1","y1"),n=e.getAsCurrentPoint();return{current:A,controlPoint:r,currentPoint:n}}pathQ(e,A){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:s}=t.pathQ(r);r.addMarker(s,i,i),A.addQuadraticCurve(n.x,n.y,i.x,i.y,s.x,s.y),e&&e.quadraticCurveTo(i.x,i.y,s.x,s.y)}static pathT(e){var{current:A}=e,r=e.getReflectedControlPoint();e.control=r;var n=e.getAsCurrentPoint();return{current:A,controlPoint:r,currentPoint:n}}pathT(e,A){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:s}=t.pathT(r);r.addMarker(s,i,i),A.addQuadraticCurve(n.x,n.y,i.x,i.y,s.x,s.y),e&&e.quadraticCurveTo(i.x,i.y,s.x,s.y)}static pathA(e){var{current:A,command:r}=e,{rX:n,rY:i,xRot:s,lArcFlag:a,sweepFlag:o}=r,l=s*(Math.PI/180),h=e.getAsCurrentPoint(),v=new Rr(Math.cos(l)*(A.x-h.x)/2+Math.sin(l)*(A.y-h.y)/2,-Math.sin(l)*(A.x-h.x)/2+Math.cos(l)*(A.y-h.y)/2),m=Math.pow(v.x,2)/Math.pow(n,2)+Math.pow(v.y,2)/Math.pow(i,2);m>1&&(n*=Math.sqrt(m),i*=Math.sqrt(m));var g=(a===o?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(v.y,2)-Math.pow(i,2)*Math.pow(v.x,2))/(Math.pow(n,2)*Math.pow(v.y,2)+Math.pow(i,2)*Math.pow(v.x,2)));isNaN(g)&&(g=0);var C=new Rr(g*n*v.y/i,g*-i*v.x/n),F=new Rr((A.x+h.x)/2+Math.cos(l)*C.x-Math.sin(l)*C.y,(A.y+h.y)/2+Math.sin(l)*C.x+Math.cos(l)*C.y),_=b2([1,0],[(v.x-C.x)/n,(v.y-C.y)/i]),x=[(v.x-C.x)/n,(v.y-C.y)/i],H=[(-v.x-C.x)/n,(-v.y-C.y)/i],D=b2(x,H);return Op(x,H)<=-1&&(D=Math.PI),Op(x,H)>=1&&(D=0),{currentPoint:h,rX:n,rY:i,sweepFlag:o,xAxisRotation:l,centp:F,a1:_,ad:D}}pathA(e,A){var{pathParser:r}=this,{currentPoint:n,rX:i,rY:s,sweepFlag:a,xAxisRotation:o,centp:l,a1:h,ad:v}=t.pathA(r),m=1-a?1:-1,g=h+m*(v/2),C=new Rr(l.x+i*Math.cos(g),l.y+s*Math.sin(g));if(r.addMarkerAngle(C,g-m*Math.PI/2),r.addMarkerAngle(n,g-m*Math.PI),A.addPoint(n.x,n.y),e&&!isNaN(h)&&!isNaN(v)){var F=i>s?i:s,_=i>s?1:i/s,x=i>s?s/i:1;e.translate(l.x,l.y),e.rotate(o),e.scale(_,x),e.arc(0,0,F,h,h+v,!!(1-a)),e.scale(1/_,1/x),e.rotate(-o),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,A){t.pathZ(this.pathParser),e&&A.x1!==A.x2&&A.y1!==A.y2&&e.closePath()}},Vf=class extends Fr{constructor(e,A,r){super(e,A,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}},Bo=class t extends ts{constructor(e,A,r){super(e,A,new.target===t?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,A);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var A=null;return this.children.forEach((r,n)=>{var i=this.getChildBoundingBox(e,this,this,n);A?A.addBoundingBox(i):A=i}),A}getFontSize(){var{document:e,parent:A}=this,r=Aa.parse(e.ctx.font).fontSize,n=A.getStyle("font-size").getNumber(r);return n}getTElementBoundingBox(e){var A=this.getFontSize();return new vi(this.x,this.y-A,this.x+this.measureText(e),this.y)}getGlyph(e,A,r){var n=A[r],i=null;if(e.isArabic){var s=A.length,a=A[r-1],o=A[r+1],l="isolated";if((r===0||a===" ")&&r<s-1&&o!==" "&&(l="terminal"),r>0&&a!==" "&&r<s-1&&o!==" "&&(l="medial"),r>0&&a!==" "&&(r===s-1||o===" ")&&(l="initial"),typeof e.glyphs[n]<"u"){var h=e.glyphs[n];i=h instanceof Vf?h:h[l]}}else i=e.glyphs[n];return i||(i=e.missingGlyph),i}getText(){return""}getTextFromNode(e){var A=e||this.node,r=Array.from(A.parentNode.childNodes),n=r.indexOf(A),i=r.length-1,s=wl(A.textContent||"");return n===0&&(s=U_(s)),n===i&&(s=x_(s)),s}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((r,n)=>{this.renderChild(e,this,this,n)});var{mouse:A}=this.document.screen;A.isWorking()&&A.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:A,parent:r}=this,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i){for(var{unitsPerEm:s}=i.fontFace,a=Aa.parse(A.ctx.font),o=r.getStyle("font-size").getNumber(a.fontSize),l=r.getStyle("font-style").getString(a.fontStyle),h=o/s,v=i.isRTL?n.split("").reverse().join(""):n,m=wi(r.getAttribute("dx").getString()),g=v.length,C=0;C<g;C++){var F=this.getGlyph(i,v,C);e.translate(this.x,this.y),e.scale(h,-h);var _=e.lineWidth;e.lineWidth=e.lineWidth*s/o,l==="italic"&&e.transform(1,0,.4,1,0,0),F.render(e),l==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=_,e.scale(1/h,-1/h),e.translate(-this.x,-this.y),this.x+=o*(F.horizAdvX||i.horizAdvX)/s,typeof m[C]<"u"&&!isNaN(m[C])&&(this.x+=m[C])}return}var{x,y:H}=this;e.fillStyle&&e.fillText(n,x,H),e.strokeStyle&&e.strokeText(n,x,H)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],A=e.getStyle("text-anchor").getString("start"),r=!1,n=0;A==="start"&&!r||A==="end"&&r?n=e.x-this.minX:A==="end"&&!r||A==="start"&&r?n=e.x-this.maxX:n=e.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(e){this.children.forEach((A,r)=>{this.adjustChildCoordinatesRecursiveCore(e,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,A,r,n){var i=r.children[n];i.children.length>0?i.children.forEach((s,a)=>{A.adjustChildCoordinatesRecursiveCore(e,A,i,a)}):this.adjustChildCoordinates(e,A,r,n)}adjustChildCoordinates(e,A,r,n){var i=r.children[n];if(typeof i.measureText!="function")return i;e.save(),i.setContext(e,!0);var s=i.getAttribute("x"),a=i.getAttribute("y"),o=i.getAttribute("dx"),l=i.getAttribute("dy"),h=i.getStyle("font-family").getDefinition(),v=!!h&&h.isRTL;n===0&&(s.hasValue()||s.setValue(i.getInheritedAttribute("x")),a.hasValue()||a.setValue(i.getInheritedAttribute("y")),o.hasValue()||o.setValue(i.getInheritedAttribute("dx")),l.hasValue()||l.setValue(i.getInheritedAttribute("dy")));var m=i.measureText(e);return v&&(A.x-=m),s.hasValue()?(A.applyAnchoring(),i.x=s.getPixels("x"),o.hasValue()&&(i.x+=o.getPixels("x"))):(o.hasValue()&&(A.x+=o.getPixels("x")),i.x=A.x),A.x=i.x,v||(A.x+=m),a.hasValue()?(i.y=a.getPixels("y"),l.hasValue()&&(i.y+=l.getPixels("y"))):(l.hasValue()&&(A.y+=l.getPixels("y")),i.y=A.y),A.y=i.y,A.leafTexts.push(i),A.minX=Math.min(A.minX,i.x,i.x+m),A.maxX=Math.max(A.maxX,i.x,i.x+m),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,A,r,n){var i=r.children[n];if(typeof i.getBoundingBox!="function")return null;var s=i.getBoundingBox(e);return s?(i.children.forEach((a,o)=>{var l=A.getChildBoundingBox(e,A,i,o);s.addBoundingBox(l)}),s):null}renderChild(e,A,r,n){var i=r.children[n];i.render(e),i.children.forEach((s,a)=>{A.renderChild(e,A,i,a)})}measureText(e){var{measureCache:A}=this;if(~A)return A;var r=this.getText(),n=this.measureTargetText(e,r);return this.measureCache=n,n}measureTargetText(e,A){if(!A.length)return 0;var{parent:r}=this,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),s=n.isRTL?A.split("").reverse().join(""):A,a=wi(r.getAttribute("dx").getString()),o=s.length,l=0,h=0;h<o;h++){var v=this.getGlyph(n,s,h);l+=(v.horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,typeof a[h]<"u"&&!isNaN(a[h])&&(l+=a[h])}return l}if(!e.measureText)return A.length*10;e.save(),this.setContext(e,!0);var{width:m}=e.measureText(A);return this.clearContext(e),e.restore(),m}getInheritedAttribute(e){for(var A=this;A instanceof t&&A.isFirstChild();){var r=A.parent.getAttribute(e);if(r.hasValue(!0))return r.getValue("0");A=A.parent}return null}},Gf=class t extends Bo{constructor(e,A,r){super(e,A,new.target===t?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}},Q2=class extends Gf{constructor(){super(...arguments),this.type="textNode"}},bo=class extends ts{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var A,{document:r}=this,{screen:n,window:i}=r,s=e.canvas;if(n.setDefaults(e),s.style&&typeof e.font<"u"&&i&&typeof i.getComputedStyle<"u"){e.font=i.getComputedStyle(s).getPropertyValue("font");var a=new Qt(r,"fontSize",Aa.parse(e.font).fontSize);a.hasValue()&&(r.rootEmSize=a.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:l}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),v=this.getAttribute("refY"),m=this.getAttribute("viewBox"),g=m.hasValue()?wi(m.getString()):null,C=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",F=0,_=0,x=0,H=0;g&&(F=g[0],_=g[1]),this.root||(o=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(x=F,H=_,F=0,_=0)),n.viewPort.setCurrent(o,l),this.node&&(!this.parent||((A=this.node.parentNode)===null||A===void 0?void 0:A.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),g&&(o=g[2],l=g[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:l,minX:F,minY:_,refX:h.getValue(),refY:v.getValue(),clip:C,clipX:x,clipY:H}),g&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),a=this.getAttribute("style"),o=n.getNumber(0),l=i.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(e),i.setValue(A),s.hasValue()||s.setValue("0 0 ".concat(o||e," ").concat(l||A)),a.hasValue()){var v=this.getStyle("width"),m=this.getStyle("height");v.hasValue()&&v.setValue("".concat(e,"px")),m.hasValue()&&m.setValue("".concat(A,"px"))}}},zf=class extends Fr{constructor(){super(...arguments),this.type="rect"}path(e){var A=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),a=this.getAttribute("ry"),o=s.getPixels("x"),l=a.getPixels("y");if(s.hasValue()&&!a.hasValue()&&(l=o),a.hasValue()&&!s.hasValue()&&(o=l),o=Math.min(o,n/2),l=Math.min(l,i/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),i>0&&n>0&&(e.moveTo(A+o,r),e.lineTo(A+n-o,r),e.bezierCurveTo(A+n-o+h*o,r,A+n,r+l-h*l,A+n,r+l),e.lineTo(A+n,r+i-l),e.bezierCurveTo(A+n,r+i-l+h*l,A+n-o+h*o,r+i,A+n-o,r+i),e.lineTo(A+o,r+i),e.bezierCurveTo(A+o-h*o,r+i,A,r+i-l+h*l,A,r+i-l),e.lineTo(A,r+l),e.bezierCurveTo(A,r+l-h*l,A+o-h*o,r,A+o,r),e.closePath())}return new vi(A,r,A+n,r+i)}getMarkers(){return null}},jp=class extends Fr{constructor(){super(...arguments),this.type="circle"}path(e){var A=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return e&&n>0&&(e.beginPath(),e.arc(A,r,n,0,Math.PI*2,!1),e.closePath()),new vi(A-n,r-n,A+n,r+n)}getMarkers(){return null}},Vp=class extends Fr{constructor(){super(...arguments),this.type="ellipse"}path(e){var A=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return e&&r>0&&n>0&&(e.beginPath(),e.moveTo(i+r,s),e.bezierCurveTo(i+r,s+A*n,i+A*r,s+n,i,s+n),e.bezierCurveTo(i-A*r,s+n,i-r,s+A*n,i-r,s),e.bezierCurveTo(i-r,s-A*n,i-A*r,s-n,i,s-n),e.bezierCurveTo(i+A*r,s-n,i+r,s-A*n,i+r,s),e.closePath()),new vi(i-r,s-n,i+r,s+n)}getMarkers(){return null}},Gp=class extends Fr{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Rr(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Rr(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:A,y:r},{x:n,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(A,r),e.lineTo(n,i)),new vi(A,r,n,i)}getMarkers(){var[e,A]=this.getPoints(),r=e.angleTo(A);return[[e,r],[A,r]]}},Wf=class extends Fr{constructor(e,A,r){super(e,A,r),this.type="polyline",this.points=[],this.points=Rr.parsePath(this.getAttribute("points").getString())}path(e){var{points:A}=this,[{x:r,y:n}]=A,i=new vi(r,n);return e&&(e.beginPath(),e.moveTo(r,n)),A.forEach(s=>{var{x:a,y:o}=s;i.addPoint(a,o),e&&e.lineTo(a,o)}),i}getMarkers(){var{points:e}=this,A=e.length-1,r=[];return e.forEach((n,i)=>{i!==A&&r.push([n,n.angleTo(e[i+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}},zp=class extends Wf{constructor(){super(...arguments),this.type="polygon"}path(e){var A=super.path(e),[{x:r,y:n}]=this.points;return e&&(e.lineTo(r,n),e.closePath()),A}},Wp=class extends zA{constructor(){super(...arguments),this.type="pattern"}createPattern(e,A,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),s=new bo(this.document,null);s.attributes.viewBox=new Qt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new Qt(this.document,"width","".concat(n,"px")),s.attributes.height=new Qt(this.document,"height","".concat(i,"px")),s.attributes.transform=new Qt(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var a=this.document.createCanvas(n,i),o=a.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&o.translate(l.getPixels("x",!0),h.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var v=-1;v<=1;v++)for(var m=-1;m<=1;m++)o.save(),s.attributes.x=new Qt(this.document,"x",v*a.width),s.attributes.y=new Qt(this.document,"y",m*a.height),s.render(o),o.restore();var g=e.createPattern(a,"repeat");return g}},$p=class extends zA{constructor(){super(...arguments),this.type="marker"}render(e,A,r){if(A){var{x:n,y:i}=A,s=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(n,i),s==="auto"&&e.rotate(r),a==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var o=new bo(this.document,null);o.type=this.type,o.attributes.viewBox=new Qt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new Qt(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new Qt(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new Qt(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new Qt(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new Qt(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new Qt(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new Qt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(e),e.restore(),a==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),s==="auto"&&e.rotate(-r),e.translate(-n,-i)}}},Xp=class extends zA{constructor(){super(...arguments),this.type="defs"}render(){}},Rc=class extends ts{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var A=new vi;return this.children.forEach(r=>{A.addBoundingBox(r.getBoundingBox(e))}),A}},$f=class extends zA{constructor(e,A,r){super(e,A,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:i}=this;i.forEach(s=>{s.type==="stop"&&n.push(s)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,A,r){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:i}=n,s=this.getGradient(e,A);if(!s)return this.addParentOpacity(r,i[i.length-1].color);if(i.forEach(_=>{s.addColorStop(_.offset,this.addParentOpacity(r,_.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:a}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:l}=a.screen,[h]=l.viewPorts,v=new zf(a,null);v.attributes.x=new Qt(a,"x",-o/3),v.attributes.y=new Qt(a,"y",-o/3),v.attributes.width=new Qt(a,"width",o),v.attributes.height=new Qt(a,"height",o);var m=new Rc(a,null);m.attributes.transform=new Qt(a,"transform",this.getAttribute("gradientTransform").getValue()),m.children=[v];var g=new bo(a,null);g.attributes.x=new Qt(a,"x",0),g.attributes.y=new Qt(a,"y",0),g.attributes.width=new Qt(a,"width",h.width),g.attributes.height=new Qt(a,"height",h.height),g.children=[m];var C=a.createCanvas(h.width,h.height),F=C.getContext("2d");return F.fillStyle=s,g.render(F),F.createPattern(C,"no-repeat")}return s}inheritStopContainer(e){this.attributesToInherit.forEach(A=>{!this.getAttribute(A).hasValue()&&e.getAttribute(A).hasValue()&&this.getAttribute(A,!0).setValue(e.getAttribute(A).getValue())})}addParentOpacity(e,A){if(e.hasValue()){var r=new Qt(this.document,"color",A);return r.addOpacity(e).getColor()}return A}},Yp=class extends $f{constructor(e,A,r){super(e,A,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,A){var r=this.getGradientUnits()==="objectBoundingBox",n=r?A.getBoundingBox(e):null;if(r&&!n)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===a&&s===o?null:e.createLinearGradient(i,s,a,o)}},Jp=class extends $f{constructor(e,A,r){super(e,A,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,A){var r=this.getGradientUnits()==="objectBoundingBox",n=A.getBoundingBox(e);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,o=s;this.getAttribute("fx").hasValue()&&(a=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(a,o,h,i,s,l)}},Zp=class extends zA{constructor(e,A,r){super(e,A,r),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),s=this.getStyle("stop-color",!0);s.getString()===""&&s.setValue("#000"),i.hasValue()&&(s=s.addOpacity(i)),this.offset=n,this.color=s.getColor()}},kc=class extends zA{constructor(e,A,r){super(e,A,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new Qt(e,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),A=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(A,!0):this.parent.getAttribute(A,!0)}calcValue(){var{initialUnits:e}=this,{progress:A,from:r,to:n}=this.getProgress(),i=r.getNumber()+(n.getNumber()-r.getNumber())*A;return e==="%"&&(i*=100),"".concat(i).concat(e)}update(e){var{parent:A}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(n==="freeze"&&!this.frozen)this.frozen=!0,A.animationFrozen=!0,A.animationFrozenValue=r.getString();else if(n==="remove"&&!this.removed)return this.removed=!0,r.setValue(A.animationFrozen?A.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var i=!1;if(this.begin<this.duration){var s=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var o=a.getString();s="".concat(o,"(").concat(s,")")}r.setValue(s),i=!0}return i}getProgress(){var{document:e,values:A}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(A.hasValue()){var n=r.progress*(A.getValue().length-1),i=Math.floor(n),s=Math.ceil(n);r.from=new Qt(e,"from",parseFloat(A.getValue()[i])),r.to=new Qt(e,"to",parseFloat(A.getValue()[s])),r.progress=(n-i)/(s-i)}else r.from=this.from,r.to=this.to;return r}},eg=class extends kc{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:e,from:A,to:r}=this.getProgress(),n=new Np.default(A.getColor()),i=new Np.default(r.getColor());if(n.ok&&i.ok){var s=n.r+(i.r-n.r)*e,a=n.g+(i.g-n.g)*e,o=n.b+(i.b-n.b)*e;return"rgb(".concat(Math.floor(s),", ").concat(Math.floor(a),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}},tg=class extends kc{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:e,from:A,to:r}=this.getProgress(),n=wi(A.getString()),i=wi(r.getString()),s=n.map((a,o)=>{var l=i[o];return a+(l-a)*e}).join(" ");return s}},Ag=class extends zA{constructor(e,A,r){super(e,A,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=e,{children:i}=this;for(var s of i)switch(s.type){case"font-face":{this.fontFace=s;var a=s.getStyle("font-family");a.hasValue()&&(n[a.getString()]=this);break}case"missing-glyph":this.missingGlyph=s;break;case"glyph":{var o=s;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[o.unicode]>"u"&&(this.glyphs[o.unicode]=Object.create(null)),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}}render(){}},rg=class extends zA{constructor(e,A,r){super(e,A,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}},ng=class extends Fr{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}},ig=class extends Bo{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var A=e.children[0];if(A)return A.getText()}return""}},ag=class extends Bo{constructor(e,A,r){super(e,A,r),this.type="a";var{childNodes:n}=A,i=n[0],s=n.length>0&&Array.from(n).every(a=>a.nodeType===3);this.hasText=s,this.text=s?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:A,x:r,y:n}=this,{mouse:i}=A.screen,s=new Qt(A,"fontSize",Aa.parse(A.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new vi(r,n-s.getPixels("y"),r+this.measureText(e),n))}else if(this.children.length>0){var a=new Rc(this.document,null);a.children=this.children,a.parent=this,a.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}};sg=class extends Bo{constructor(e,A,r){super(e,A,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(e){var{dataArray:A}=this;e&&e.beginPath(),A.forEach(r=>{var{type:n,points:i}=r;switch(n){case Wt.LINE_TO:e&&e.lineTo(i[0],i[1]);break;case Wt.MOVE_TO:e&&e.moveTo(i[0],i[1]);break;case Wt.CURVE_TO:e&&e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case Wt.QUAD_TO:e&&e.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case Wt.ARC:{var[s,a,o,l,h,v,m,g]=i,C=o>l?o:l,F=o>l?1:o/l,_=o>l?l/o:1;e&&(e.translate(s,a),e.rotate(m),e.scale(F,_),e.arc(0,0,C,h,h+v,!!(1-g)),e.scale(1/F,1/_),e.rotate(-m),e.translate(-s,-a));break}case Wt.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var A=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:n}=this,i=e.fillStyle;A==="underline"&&e.beginPath(),n.forEach((s,a)=>{var{p0:o,p1:l,rotation:h,text:v}=s;e.save(),e.translate(o.x,o.y),e.rotate(h),e.fillStyle&&e.fillText(v,0,0),e.strokeStyle&&e.strokeText(v,0,0),e.restore(),A==="underline"&&(a===0&&e.moveTo(o.x,o.y+r/8),e.lineTo(l.x,l.y+r/5))}),A==="underline"&&(e.lineWidth=r/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,A,r,n,i,s,a,o,l){var h=s,v=this.measureText(e,o);o===" "&&A==="justify"&&r<n&&(v+=(n-r)/i),l>-1&&(h+=this.getLetterSpacingAt(l));var m=this.textHeight/20,g=this.getEquidistantPointOnPath(h,m,0),C=this.getEquidistantPointOnPath(h+v,m,0),F={p0:g,p1:C},_=g&&C?Math.atan2(C.y-g.y,C.x-g.x):0;if(a){var x=Math.cos(Math.PI/2+_)*a,H=Math.cos(-_)*a;F.p0=Qp(Qp({},g),{},{x:g.x+x,y:g.y+H}),F.p1=Qp(Qp({},C),{},{x:C.x+x,y:C.y+H})}return h+=v,{offset:h,segment:F,rotation:_}}measureText(e,A){var{measuresCache:r}=this,n=A||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(e,n);return r.set(n,i),i}setTextData(e){if(!this.glyphInfo){var A=this.getText(),r=A.split(""),n=A.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(k=>k.getPixels("x")),s=this.parent.getAttribute("dy").getPixels("y"),a=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!o.hasValue()||o.getValue()==="inherit"?h=l.getPixels():o.hasValue()&&o.getValue()!=="initial"&&o.getValue()!=="unset"&&(h=o.getPixels());var v=[],m=A.length;this.letterSpacingCache=v;for(var g=0;g<m;g++)v.push(typeof i[g]<"u"?i[g]:h);var C=v.reduce((k,re,fe)=>fe===0?0:k+re||0,0),F=this.measureText(e),_=Math.max(F+C,0);this.textWidth=F,this.textHeight=this.getFontSize(),this.glyphInfo=[];var x=this.getPathLength(),H=this.getStyle("startOffset").getNumber(0)*x,D=0;(a==="middle"||a==="center")&&(D=-_/2),(a==="end"||a==="right")&&(D=-_),D+=H,r.forEach((k,re)=>{var{offset:fe,segment:Ae,rotation:j}=this.findSegmentToFitChar(e,a,_,x,n,D,s,k,re);D=fe,!(!Ae.p0||!Ae.p1)&&this.glyphInfo.push({text:r[re],p0:Ae.p0,p1:Ae.p1,rotation:j})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var A=[],{pathParser:r}=e;for(r.reset();!r.isEnd();){var{current:n}=r,i=n?n.x:0,s=n?n.y:0,a=r.next(),o=a.type,l=[];switch(a.type){case Wt.MOVE_TO:this.pathM(r,l);break;case Wt.LINE_TO:o=this.pathL(r,l);break;case Wt.HORIZ_LINE_TO:o=this.pathH(r,l);break;case Wt.VERT_LINE_TO:o=this.pathV(r,l);break;case Wt.CURVE_TO:this.pathC(r,l);break;case Wt.SMOOTH_CURVE_TO:o=this.pathS(r,l);break;case Wt.QUAD_TO:this.pathQ(r,l);break;case Wt.SMOOTH_QUAD_TO:o=this.pathT(r,l);break;case Wt.ARC:l=this.pathA(r);break;case Wt.CLOSE_PATH:Fr.pathZ(r);break}a.type!==Wt.CLOSE_PATH?A.push({type:o,points:l,start:{x:i,y:s},pathLength:this.calcLength(i,s,o,l)}):A.push({type:Wt.CLOSE_PATH,points:[],pathLength:0})}return A}pathM(e,A){var{x:r,y:n}=Fr.pathM(e).point;A.push(r,n)}pathL(e,A){var{x:r,y:n}=Fr.pathL(e).point;return A.push(r,n),Wt.LINE_TO}pathH(e,A){var{x:r,y:n}=Fr.pathH(e).point;return A.push(r,n),Wt.LINE_TO}pathV(e,A){var{x:r,y:n}=Fr.pathV(e).point;return A.push(r,n),Wt.LINE_TO}pathC(e,A){var{point:r,controlPoint:n,currentPoint:i}=Fr.pathC(e);A.push(r.x,r.y,n.x,n.y,i.x,i.y)}pathS(e,A){var{point:r,controlPoint:n,currentPoint:i}=Fr.pathS(e);return A.push(r.x,r.y,n.x,n.y,i.x,i.y),Wt.CURVE_TO}pathQ(e,A){var{controlPoint:r,currentPoint:n}=Fr.pathQ(e);A.push(r.x,r.y,n.x,n.y)}pathT(e,A){var{controlPoint:r,currentPoint:n}=Fr.pathT(e);return A.push(r.x,r.y,n.x,n.y),Wt.QUAD_TO}pathA(e){var{rX:A,rY:r,sweepFlag:n,xAxisRotation:i,centp:s,a1:a,ad:o}=Fr.pathA(e);return n===0&&o>0&&(o-=2*Math.PI),n===1&&o<0&&(o+=2*Math.PI),[s.x,s.y,A,r,a,o,i,n]}calcLength(e,A,r,n){var i=0,s=null,a=null,o=0;switch(r){case Wt.LINE_TO:return this.getLineLength(e,A,n[0],n[1]);case Wt.CURVE_TO:for(i=0,s=this.getPointOnCubicBezier(0,e,A,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)a=this.getPointOnCubicBezier(o,e,A,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return i;case Wt.QUAD_TO:for(i=0,s=this.getPointOnQuadraticBezier(0,e,A,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)a=this.getPointOnQuadraticBezier(o,e,A,n[0],n[1],n[2],n[3]),i+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return i;case Wt.ARC:{i=0;var l=n[4],h=n[5],v=n[4]+h,m=Math.PI/180;if(Math.abs(l-v)<m&&(m=Math.abs(l-v)),s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),h<0)for(o=l-m;o>v;o-=m)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(o=l+m;o<v;o+=m)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],v,0),i+=this.getLineLength(s.x,s.y,a.x,a.y),i}}return 0}getPointOnLine(e,A,r,n,i){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:A,a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,o=(i-r)/(n-A+hl),l=Math.sqrt(e*e/(1+o*o));n<A&&(l*=-1);var h=o*l,v=null;if(n===A)v={x:s,y:a+h};else if((a-r)/(s-A+hl)===o)v={x:s+l,y:a+h};else{var m=0,g=0,C=this.getLineLength(A,r,n,i);if(C<hl)return null;var F=(s-A)*(n-A)+(a-r)*(i-r);F/=C*C,m=A+F*(n-A),g=r+F*(i-r);var _=this.getLineLength(s,a,m,g),x=Math.sqrt(e*e-_*_);l=Math.sqrt(x*x/(1+o*o)),n<A&&(l*=-1),h=o*l,v={x:m+l,y:g+h}}return v}getPointOnPath(e){var A=this.getPathLength(),r=0,n=null;if(e<-5e-5||e-5e-5>A)return null;var{dataArray:i}=this;for(var s of i){if(s&&(s.pathLength<5e-5||r+s.pathLength+5e-5<e)){r+=s.pathLength;continue}var a=e-r,o=0;switch(s.type){case Wt.LINE_TO:n=this.getPointOnLine(a,s.start.x,s.start.y,s.points[0],s.points[1],s.start.x,s.start.y);break;case Wt.ARC:{var l=s.points[4],h=s.points[5],v=s.points[4]+h;if(o=l+a/s.pathLength*h,h<0&&o<v||h>=0&&o>v)break;n=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],o,s.points[6]);break}case Wt.CURVE_TO:o=a/s.pathLength,o>1&&(o=1),n=this.getPointOnCubicBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3],s.points[4],s.points[5]);break;case Wt.QUAD_TO:o=a/s.pathLength,o>1&&(o=1),n=this.getPointOnQuadraticBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3]);break}if(n)return n;break}return null}getLineLength(e,A,r,n){return Math.sqrt((r-e)*(r-e)+(n-A)*(n-A))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,A)=>A.pathLength>0?e+A.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,A,r,n,i,s,a,o,l){var h=o*C2(e)+s*E2(e)+n*F2(e)+A*U2(e),v=l*C2(e)+a*E2(e)+i*F2(e)+r*U2(e);return{x:h,y:v}}getPointOnQuadraticBezier(e,A,r,n,i,s,a){var o=s*x2(e)+n*_2(e)+A*S2(e),l=a*x2(e)+i*_2(e)+r*S2(e);return{x:o,y:l}}getPointOnEllipticalArc(e,A,r,n,i,s){var a=Math.cos(s),o=Math.sin(s),l={x:r*Math.cos(i),y:n*Math.sin(i)};return{x:e+(l.x*a-l.y*o),y:A+(l.x*o+l.y*a)}}buildEquidistantCache(e,A){var r=this.getPathLength(),n=A||.25,i=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var s=0,a=0;a<=r;a+=n){var o=this.getPointOnPath(a),l=this.getPointOnPath(a+n);!o||!l||(s+=this.getLineLength(o.x,o.y,l.x,l.y),s>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:a}),s-=i))}}}getEquidistantPointOnPath(e,A,r){if(this.buildEquidistantCache(A,r),e<0||e-this.getPathLength()>5e-5)return null;var n=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}},qq=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,og=class extends ts{constructor(e,A,r){super(e,A,r),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var i=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);e.images.push(this),i?this.loadSvg(n):this.loadImage(n),this.isSvg=i}}loadImage(e){var A=this;return es(function*(){try{var r=yield A.document.createImage(e);A.image=r}catch(n){console.error('Error while loading image "'.concat(e,'":'),n)}A.loaded=!0})()}loadSvg(e){var A=this;return es(function*(){var r=qq.exec(e);if(r){var n=r[5];r[4]==="base64"?A.image=atob(n):A.image=decodeURIComponent(n)}else try{var i=yield A.document.fetch(e),s=yield i.text();A.image=s}catch(a){console.error('Error while loading image "'.concat(e,'":'),a)}A.loaded=!0})()}renderChildren(e){var{document:A,image:r,loaded:n}=this,i=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!(!n||!r||!a||!o)){if(e.save(),e.translate(i,s),this.isSvg){var l=A.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:o});l.document.documentElement.parent=this,l.render()}else{var h=this.image;A.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:h.width,height:o,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),A=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new vi(e,A,e+r,A+n)}},lg=class extends ts{constructor(){super(...arguments),this.type="symbol"}render(e){}},cg=class{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,A){var r=this;return es(function*(){try{var{document:n}=r,i=yield n.canvg.parser.load(A),s=i.getElementsByTagName("font");Array.from(s).forEach(a=>{var o=n.createElement(a);n.definitions[e]=o})}catch(a){console.error('Error while loading font "'.concat(A,'":'),a)}r.loaded=!0})()}},Xf=class extends zA{constructor(e,A,r){super(e,A,r),this.type="style";var n=wl(Array.from(A.childNodes).map(s=>s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=n.split("}");i.forEach(s=>{var a=s.trim();if(a){var o=a.split("{"),l=o[0].split(","),h=o[1].split(";");l.forEach(v=>{var m=v.trim();if(m){var g=e.styles[m]||{};if(h.forEach(_=>{var x=_.indexOf(":"),H=_.substr(0,x).trim(),D=_.substr(x+1,_.length-x).trim();H&&D&&(g[H]=new Qt(e,H,D))}),e.styles[m]=g,e.stylesSpecificity[m]=Q_(m),m==="@font-face"){var C=g["font-family"].getString().replace(/"|'/g,""),F=g.src.getString().split(",");F.forEach(_=>{if(_.indexOf('format("svg")')>0){var x=T2(_);x&&new cg(e).load(C,x)}})}}})}})}};Xf.parseExternalUrl=T2;ug=class extends ts{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var A=this.getAttribute("x"),r=this.getAttribute("y");A.hasValue()&&e.translate(A.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}path(e){var{element:A}=this;A&&A.path(e)}renderChildren(e){var{document:A,element:r}=this;if(r){var n=r;if(r.type==="symbol"&&(n=new bo(A,null),n.attributes.viewBox=new Qt(A,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new Qt(A,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new Qt(A,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new Qt(A,"opacity",this.calculateOpacity())),n.type==="svg"){var i=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new Qt(A,"width",i.getString())),s.hasValue()&&(n.attributes.height=new Qt(A,"height",s.getString()))}var a=n.parent;n.parent=this,n.render(e),n.parent=a}}getBoundingBox(e){var{element:A}=this;return A?A.getBoundingBox(e):null}elementTransform(){var{document:e,element:A}=this;return pl.fromElement(e,A)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}};Yf=class extends zA{constructor(e,A,r){super(e,A,r),this.type="feColorMatrix";var n=wi(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var i=n[0];n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var s=n[0]*Math.PI/180;n=[Ts(s,.213,.787,-.213),Ts(s,.715,-.715,-.715),Ts(s,.072,-.072,.928),0,0,Ts(s,.213,-.213,.143),Ts(s,.715,.285,.14),Ts(s,.072,-.072,-.283),0,0,Ts(s,.213,-.213,-.787),Ts(s,.715,-.715,.715),Ts(s,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,A,r,n,i){for(var{includeOpacity:s,matrix:a}=this,o=e.getImageData(0,0,n,i),l=0;l<i;l++)for(var h=0;h<n;h++){var v=Ip(o.data,h,l,n,i,0),m=Ip(o.data,h,l,n,i,1),g=Ip(o.data,h,l,n,i,2),C=Ip(o.data,h,l,n,i,3),F=Pr(a,0,v)+Pr(a,1,m)+Pr(a,2,g)+Pr(a,3,C)+Pr(a,4,1),_=Pr(a,5,v)+Pr(a,6,m)+Pr(a,7,g)+Pr(a,8,C)+Pr(a,9,1),x=Pr(a,10,v)+Pr(a,11,m)+Pr(a,12,g)+Pr(a,13,C)+Pr(a,14,1),H=Pr(a,15,v)+Pr(a,16,m)+Pr(a,17,g)+Pr(a,18,C)+Pr(a,19,1);s&&(F=0,_=0,x=0,H*=C/255),Lp(o.data,h,l,n,i,0,F),Lp(o.data,h,l,n,i,1,_),Lp(o.data,h,l,n,i,2,x),Lp(o.data,h,l,n,i,3,H)}e.clearRect(0,0,n,i),e.putImageData(o,0,0)}},Jf=class t extends zA{constructor(){super(...arguments),this.type="mask"}apply(e,A){var{document:r}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(!s&&!a){var o=new vi;this.children.forEach(C=>{o.addBoundingBox(C.getBoundingBox(e))}),n=Math.floor(o.x1),i=Math.floor(o.y1),s=Math.floor(o.width),a=Math.floor(o.height)}var l=this.removeStyles(A,t.ignoreStyles),h=r.createCanvas(n+s,i+a),v=h.getContext("2d");r.screen.setDefaults(v),this.renderChildren(v),new Yf(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(v,0,0,n+s,i+a);var m=r.createCanvas(n+s,i+a),g=m.getContext("2d");r.screen.setDefaults(g),A.render(g),g.globalCompositeOperation="destination-in",g.fillStyle=v.createPattern(h,"no-repeat"),g.fillRect(0,0,n+s,i+a),e.fillStyle=g.createPattern(m,"no-repeat"),e.fillRect(0,0,n+s,i+a),this.restoreStyles(A,l)}render(e){}};Jf.ignoreStyles=["mask","transform","clip-path"];C_=()=>{},fg=class extends zA{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:A}=this,r=Reflect.getPrototypeOf(e),{beginPath:n,closePath:i}=e;r&&(r.beginPath=C_,r.closePath=C_),Reflect.apply(n,e,[]),this.children.forEach(s=>{if(!(typeof s.path>"u")){var a=typeof s.elementTransform<"u"?s.elementTransform():null;a||(a=pl.fromElement(A,s)),a&&a.apply(e),s.path(e),r&&(r.closePath=i),a&&a.unapply(e)}}),Reflect.apply(i,e,[]),e.clip(),r&&(r.beginPath=n,r.closePath=i)}render(e){}},Zf=class t extends zA{constructor(){super(...arguments),this.type="filter"}apply(e,A){var{document:r,children:n}=this,i=A.getBoundingBox(e);if(i){var s=0,a=0;n.forEach(x=>{var H=x.extraFilterDistance||0;s=Math.max(s,H),a=Math.max(a,H)});var o=Math.floor(i.width),l=Math.floor(i.height),h=o+2*s,v=l+2*a;if(!(h<1||v<1)){var m=Math.floor(i.x),g=Math.floor(i.y),C=this.removeStyles(A,t.ignoreStyles),F=r.createCanvas(h,v),_=F.getContext("2d");r.screen.setDefaults(_),_.translate(-m+s,-g+a),A.render(_),n.forEach(x=>{typeof x.apply=="function"&&x.apply(_,0,0,h,v)}),e.drawImage(F,0,0,h,v,m-s,g-a,h,v),this.restoreStyles(A,C)}}}render(e){}};Zf.ignoreStyles=["filter","transform","clip-path"];hg=class extends zA{constructor(e,A,r){super(e,A,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,A,r,n,i){}},dg=class extends zA{constructor(){super(...arguments),this.type="feMorphology"}apply(e,A,r,n,i){}},pg=class extends zA{constructor(){super(...arguments),this.type="feComposite"}apply(e,A,r,n,i){}},gg=class extends zA{constructor(e,A,r){super(e,A,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,A,r,n,i){var{document:s,blurRadius:a}=this,o=s.window?s.window.document.body:null,l=e.canvas;l.id=s.getUniqueId(),o&&(l.style.display="none",o.appendChild(l)),y_(l,A,r,n,i,a),o&&o.removeChild(l)}},wg=class extends zA{constructor(){super(...arguments),this.type="title"}},vg=class extends zA{constructor(){super(...arguments),this.type="desc"}},Kq={svg:bo,rect:zf,circle:jp,ellipse:Vp,line:Gp,polyline:Wf,polygon:zp,path:Fr,pattern:Wp,marker:$p,defs:Xp,linearGradient:Yp,radialGradient:Jp,stop:Zp,animate:kc,animateColor:eg,animateTransform:tg,font:Ag,"font-face":rg,"missing-glyph":ng,glyph:Vf,text:Bo,tspan:Gf,tref:ig,a:ag,textPath:sg,image:og,g:Rc,symbol:lg,style:Xf,use:ug,mask:Jf,clipPath:fg,filter:Zf,feDropShadow:hg,feMorphology:dg,feComposite:pg,feColorMatrix:Yf,feGaussianBlur:gg,title:wg,desc:vg};gl=class t{constructor(e){var{rootEmSize:A=12,emSize:r=12,createCanvas:n=t.createCanvas,createImage:i=t.createImage,anonymousCrossOrigin:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=e,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=A,this.emSize=r,this.createCanvas=n,this.createImage=this.bindCreateImage(i,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,A){return typeof A=="boolean"?(r,n)=>e(r,typeof n=="boolean"?n:A):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:A}=this;A.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var A=this.createElement(e.documentElement);return A.root=!0,A.addStylesFromStyleDefinition(),this.documentElement=A,A}createElement(e){var A=e.nodeName.replace(/^[^:]+:/,""),r=t.elementTypes[A];return typeof r<"u"?new r(this,e):new Kp(this,e)}createTextNode(e){return new Q2(this,e)}setViewBox(e){this.screen.setViewBox(jq({document:this},e))}};gl.createCanvas=Vq;gl.createImage=Gq;gl.elementTypes=Kq;L2=class t{constructor(e,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Pc(r),this.screen=new dl(e,r),this.options=r;var n=new gl(this,r),i=n.createDocumentElement(A);this.document=n,this.documentElement=i}static from(e,A){var r=arguments;return es(function*(){var n=r.length>2&&r[2]!==void 0?r[2]:{},i=new Pc(n),s=yield i.parse(A);return new t(e,s,n)})()}static fromString(e,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=new Pc(r),i=n.parseFromString(A);return new t(e,i,r)}fork(e,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.from(e,A,fl(fl({},this.options),r))}forkString(e,A){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t.fromString(e,A,fl(fl({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,A=this;return es(function*(){var r=e.length>0&&e[0]!==void 0?e[0]:{};A.start(fl({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield A.ready(),A.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:A,screen:r,options:n}=this;r.start(A,fl(fl({enableRedraw:!0},n),e))}stop(){this.screen.stop()}resize(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,A,r)}}});function I9(t){t.CapacitorUtils.Synapse=new Proxy({},{get(e,A){return new Proxy({},{get(r,n){return(i,s,a)=>{let o=t.Capacitor.Plugins[A];if(o===void 0){a(new Error(`Capacitor plugin ${A} not found`));return}if(typeof o[n]!="function"){a(new Error(`Method ${n} not found in Capacitor plugin ${A}`));return}(async()=>{try{let l=await o[n](i);s(l)}catch(l){a(l)}})()}}})}})}function L9(t){t.CapacitorUtils.Synapse=new Proxy({},{get(e,A){return t.cordova.plugins[A]}})}function gS(t=!1){typeof window>"u"||(window.CapacitorUtils=window.CapacitorUtils||{},window.Capacitor!==void 0&&!t?I9(window):window.cordova!==void 0&&L9(window))}var wS=zt(()=>{});var Qg,Wc,T9,N9,z2=zt(()=>{(function(t){t.Documents="DOCUMENTS",t.Data="DATA",t.Library="LIBRARY",t.Cache="CACHE",t.External="EXTERNAL",t.ExternalStorage="EXTERNAL_STORAGE",t.ExternalCache="EXTERNAL_CACHE",t.LibraryNoCloud="LIBRARY_NO_CLOUD",t.Temporary="TEMPORARY"})(Qg||(Qg={}));(function(t){t.UTF8="utf8",t.ASCII="ascii",t.UTF16="utf16"})(Wc||(Wc={}));T9=Qg,N9=Wc});var mS={};or(mS,{FilesystemWeb:()=>Ig});function vS(t){let e=t.split("/").filter(r=>r!=="."),A=[];return e.forEach(r=>{r===".."&&A.length>0&&A[A.length-1]!==".."?A.pop():A.push(r)}),A.join("/")}function O9(t,e){t=vS(t),e=vS(e);let A=t.split("/"),r=e.split("/");return t!==e&&A.every((n,i)=>n===r[i])}var Ig,yS=zt(()=>{Ni();z2();Ig=class t extends gn{constructor(){super(...arguments),this.DB_VERSION=1,this.DB_NAME="Disc",this._writeCmds=["add","put","delete"],this.downloadFile=async e=>{var A,r;let n=P0(e,e.webFetchExtra),i=await fetch(e.url,n),s;if(!e.progress)s=await i.blob();else if(!i?.body)s=new Blob;else{let o=i.body.getReader(),l=0,h=[],v=i.headers.get("content-type"),m=parseInt(i.headers.get("content-length")||"0",10);for(;;){let{done:F,value:_}=await o.read();if(F)break;h.push(_),l+=_?.length||0;let x={url:e.url,bytes:l,contentLength:m};this.notifyListeners("progress",x)}let g=new Uint8Array(l),C=0;for(let F of h)typeof F>"u"||(g.set(F,C),C+=F.length);s=new Blob([g.buffer],{type:v||void 0})}return{path:(await this.writeFile({path:e.path,directory:(A=e.directory)!==null&&A!==void 0?A:void 0,recursive:(r=e.recursive)!==null&&r!==void 0?r:!1,data:s})).uri,blob:s}}}readFileInChunks(e,A){throw this.unavailable("Method not implemented.")}async initDb(){if(this._db!==void 0)return this._db;if(!("indexedDB"in window))throw this.unavailable("This browser doesn't support IndexedDB");return new Promise((e,A)=>{let r=indexedDB.open(this.DB_NAME,this.DB_VERSION);r.onupgradeneeded=t.doUpgrade,r.onsuccess=()=>{this._db=r.result,e(r.result)},r.onerror=()=>A(r.error),r.onblocked=()=>{console.warn("db blocked")}})}static doUpgrade(e){let r=e.target.result;switch(e.oldVersion){default:r.objectStoreNames.contains("FileStorage")&&r.deleteObjectStore("FileStorage"),r.createObjectStore("FileStorage",{keyPath:"path"}).createIndex("by_folder","folder")}}async dbRequest(e,A){let r=this._writeCmds.indexOf(e)!==-1?"readwrite":"readonly";return this.initDb().then(n=>new Promise((i,s)=>{let l=n.transaction(["FileStorage"],r).objectStore("FileStorage")[e](...A);l.onsuccess=()=>i(l.result),l.onerror=()=>s(l.error)}))}async dbIndexRequest(e,A,r){let n=this._writeCmds.indexOf(A)!==-1?"readwrite":"readonly";return this.initDb().then(i=>new Promise((s,a)=>{let v=i.transaction(["FileStorage"],n).objectStore("FileStorage").index(e)[A](...r);v.onsuccess=()=>s(v.result),v.onerror=()=>a(v.error)}))}getPath(e,A){let r=A!==void 0?A.replace(/^[/]+|[/]+$/g,""):"",n="";return e!==void 0&&(n+="/"+e),A!==""&&(n+="/"+r),n}async clear(){(await this.initDb()).transaction(["FileStorage"],"readwrite").objectStore("FileStorage").clear()}async readFile(e){let A=this.getPath(e.directory,e.path),r=await this.dbRequest("get",[A]);if(r===void 0)throw Error("File does not exist.");return{data:r.content?r.content:""}}async writeFile(e){let A=this.getPath(e.directory,e.path),r=e.data,n=e.encoding,i=e.recursive,s=await this.dbRequest("get",[A]);if(s&&s.type==="directory")throw Error("The supplied path is a directory.");let a=A.substr(0,A.lastIndexOf("/"));if(await this.dbRequest("get",[a])===void 0){let v=a.indexOf("/",1);if(v!==-1){let m=a.substr(v);await this.mkdir({path:m,directory:e.directory,recursive:i})}}if(!n&&!(r instanceof Blob)&&(r=r.indexOf(",")>=0?r.split(",")[1]:r,!this.isBase64String(r)))throw Error("The supplied data is not valid base64 content.");let l=Date.now(),h={path:A,folder:a,type:"file",size:r instanceof Blob?r.size:r.length,ctime:l,mtime:l,content:r};return await this.dbRequest("put",[h]),{uri:h.path}}async appendFile(e){let A=this.getPath(e.directory,e.path),r=e.data,n=e.encoding,i=A.substr(0,A.lastIndexOf("/")),s=Date.now(),a=s,o=await this.dbRequest("get",[A]);if(o&&o.type==="directory")throw Error("The supplied path is a directory.");if(await this.dbRequest("get",[i])===void 0){let v=i.indexOf("/",1);if(v!==-1){let m=i.substr(v);await this.mkdir({path:m,directory:e.directory,recursive:!0})}}if(!n&&!this.isBase64String(r))throw Error("The supplied data is not valid base64 content.");if(o!==void 0){if(o.content instanceof Blob)throw Error("The occupied entry contains a Blob object which cannot be appended to.");o.content!==void 0&&!n?r=btoa(atob(o.content)+atob(r)):r=o.content+r,a=o.ctime}let h={path:A,folder:i,type:"file",size:r.length,ctime:a,mtime:s,content:r};await this.dbRequest("put",[h])}async deleteFile(e){let A=this.getPath(e.directory,e.path);if(await this.dbRequest("get",[A])===void 0)throw Error("File does not exist.");if((await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(A)])).length!==0)throw Error("Folder is not empty.");await this.dbRequest("delete",[A])}async mkdir(e){let A=this.getPath(e.directory,e.path),r=e.recursive,n=A.substr(0,A.lastIndexOf("/")),i=(A.match(/\//g)||[]).length,s=await this.dbRequest("get",[n]),a=await this.dbRequest("get",[A]);if(i===1)throw Error("Cannot create Root directory");if(a!==void 0)throw Error("Current directory does already exist.");if(!r&&i!==2&&s===void 0)throw Error("Parent directory must exist");if(r&&i!==2&&s===void 0){let h=n.substr(n.indexOf("/",1));await this.mkdir({path:h,directory:e.directory,recursive:r})}let o=Date.now(),l={path:A,folder:n,type:"directory",size:0,ctime:o,mtime:o};await this.dbRequest("put",[l])}async rmdir(e){let{path:A,directory:r,recursive:n}=e,i=this.getPath(r,A),s=await this.dbRequest("get",[i]);if(s===void 0)throw Error("Folder does not exist.");if(s.type!=="directory")throw Error("Requested path is not a directory");let a=await this.readdir({path:A,directory:r});if(a.files.length!==0&&!n)throw Error("Folder is not empty");for(let o of a.files){let l=`${A}/${o.name}`;(await this.stat({path:l,directory:r})).type==="file"?await this.deleteFile({path:l,directory:r}):await this.rmdir({path:l,directory:r,recursive:n})}await this.dbRequest("delete",[i])}async readdir(e){let A=this.getPath(e.directory,e.path),r=await this.dbRequest("get",[A]);if(e.path!==""&&r===void 0)throw Error("Folder does not exist.");let n=await this.dbIndexRequest("by_folder","getAllKeys",[IDBKeyRange.only(A)]);return{files:await Promise.all(n.map(async s=>{let a=await this.dbRequest("get",[s]);return a===void 0&&(a=await this.dbRequest("get",[s+"/"])),{name:s.substring(A.length+1),type:a.type,size:a.size,ctime:a.ctime,mtime:a.mtime,uri:a.path}}))}}async getUri(e){let A=this.getPath(e.directory,e.path),r=await this.dbRequest("get",[A]);return r===void 0&&(r=await this.dbRequest("get",[A+"/"])),{uri:r?.path||A}}async stat(e){let A=this.getPath(e.directory,e.path),r=await this.dbRequest("get",[A]);if(r===void 0&&(r=await this.dbRequest("get",[A+"/"])),r===void 0)throw Error("Entry does not exist.");return{name:r.path.substring(A.length+1),type:r.type,size:r.size,ctime:r.ctime,mtime:r.mtime,uri:r.path}}async rename(e){await this._copy(e,!0)}async copy(e){return this._copy(e,!1)}async requestPermissions(){return{publicStorage:"granted"}}async checkPermissions(){return{publicStorage:"granted"}}async _copy(e,A=!1){let{toDirectory:r}=e,{to:n,from:i,directory:s}=e;if(!n||!i)throw Error("Both to and from must be provided");r||(r=s);let a=this.getPath(s,i),o=this.getPath(r,n);if(a===o)return{uri:o};if(O9(a,o))throw Error("To path cannot contain the from path");let l;try{l=await this.stat({path:n,directory:r})}catch{let C=n.split("/");C.pop();let F=C.join("/");if(C.length>0&&(await this.stat({path:F,directory:r})).type!=="directory")throw new Error("Parent directory of the to path is a file")}if(l&&l.type==="directory")throw new Error("Cannot overwrite a directory with a file");let h=await this.stat({path:i,directory:s}),v=async(g,C,F)=>{let _=this.getPath(r,g),x=await this.dbRequest("get",[_]);x.ctime=C,x.mtime=F,await this.dbRequest("put",[x])},m=h.ctime?h.ctime:Date.now();switch(h.type){case"file":{let g=await this.readFile({path:i,directory:s});A&&await this.deleteFile({path:i,directory:s});let C;!(g.data instanceof Blob)&&!this.isBase64String(g.data)&&(C=Wc.UTF8);let F=await this.writeFile({path:n,directory:r,data:g.data,encoding:C});return A&&await v(n,m,h.mtime),F}case"directory":{if(l)throw Error("Cannot move a directory over an existing object");try{await this.mkdir({path:n,directory:r,recursive:!1}),A&&await v(n,m,h.mtime)}catch{}let g=(await this.readdir({path:i,directory:s})).files;for(let C of g)await this._copy({from:`${i}/${C.name}`,to:`${n}/${C.name}`,directory:s,toDirectory:r},A);A&&await this.rmdir({path:i,directory:s})}}return{uri:o}}isBase64String(e){try{return btoa(atob(e))==e}catch{return!1}}};Ig._debug=!0});var BS={};or(BS,{Directory:()=>Qg,Encoding:()=>Wc,Filesystem:()=>P9,FilesystemDirectory:()=>T9,FilesystemEncoding:()=>N9});var P9,bS=zt(()=>{Ni();wS();z2();P9=$n("Filesystem",{web:()=>Promise.resolve().then(()=>(yS(),mS)).then(t=>new t.FilesystemWeb)});gS()});var CS=zt(()=>{});var ES={};or(ES,{ToastWeb:()=>W2});var W2,FS=zt(()=>{Ni();W2=class extends gn{async show(e){if(typeof document<"u"){let A=2e3;e.duration&&(A=e.duration==="long"?3500:2e3);let r=document.createElement("pwa-toast");r.duration=A,r.message=e.text,document.body.appendChild(r)}}}});var US={};or(US,{Toast:()=>R9});var R9,xS=zt(()=>{Ni();CS();R9=$n("Toast",{web:()=>Promise.resolve().then(()=>(FS(),ES)).then(t=>new t.ToastWeb)})});var _S={};or(_S,{ask:()=>q9,confirm:()=>K9,message:()=>M9,open:()=>D9,save:()=>H9});function k9(t){if(t!==void 0){if(typeof t=="string")return t;if("ok"in t&&"cancel"in t)return{OkCancelCustom:[t.ok,t.cancel]};if("yes"in t&&"no"in t&&"cancel"in t)return{YesNoCancelCustom:[t.yes,t.no,t.cancel]};if("ok"in t)return{OkCustom:t.ok}}}async function D9(t={}){return typeof t=="object"&&Object.freeze(t),await ge("plugin:dialog|open",{options:t})}async function H9(t={}){return typeof t=="object"&&Object.freeze(t),await ge("plugin:dialog|save",{options:t})}async function $2(t,e){return await ge("plugin:dialog|message",{message:t,title:e?.title,kind:e?.kind,buttons:k9(e?.buttons)})}async function M9(t,e){let A=typeof e=="string"?{title:e}:e;return A&&!A.buttons&&A.okLabel&&(A.buttons={ok:A.okLabel}),$2(t,A)}async function q9(t,e){let A=typeof e=="string"?{title:e}:e,r=A?.okLabel||A?.cancelLabel,n=A?.okLabel??"Yes";return await $2(t,{title:A?.title,kind:A?.kind,buttons:r?{ok:n,cancel:A.cancelLabel??"No"}:"YesNo"})===n}async function K9(t,e){let A=typeof e=="string"?{title:e}:e,r=A?.okLabel||A?.cancelLabel,n=A?.okLabel??"Ok";return await $2(t,{title:A?.title,kind:A?.kind,buttons:r?{ok:n,cancel:A.cancelLabel??"Cancel"}:"OkCancel"})===n}var SS=zt(()=>{pa()});var QS={};or(QS,{BaseDirectory:()=>PA,appCacheDir:()=>z9,appConfigDir:()=>j9,appDataDir:()=>V9,appLocalDataDir:()=>G9,appLogDir:()=>fK,audioDir:()=>W9,basename:()=>BK,cacheDir:()=>$9,configDir:()=>X9,dataDir:()=>Y9,delimiter:()=>pK,desktopDir:()=>J9,dirname:()=>mK,documentDir:()=>Z9,downloadDir:()=>eK,executableDir:()=>tK,extname:()=>yK,fontDir:()=>AK,homeDir:()=>rK,isAbsolute:()=>bK,join:()=>vK,localDataDir:()=>nK,normalize:()=>wK,pictureDir:()=>iK,publicDir:()=>aK,resolve:()=>gK,resolveResource:()=>oK,resourceDir:()=>sK,runtimeDir:()=>lK,sep:()=>dK,tempDir:()=>hK,templateDir:()=>cK,videoDir:()=>uK});async function j9(){return ge("plugin:path|resolve_directory",{directory:PA.AppConfig})}async function V9(){return ge("plugin:path|resolve_directory",{directory:PA.AppData})}async function G9(){return ge("plugin:path|resolve_directory",{directory:PA.AppLocalData})}async function z9(){return ge("plugin:path|resolve_directory",{directory:PA.AppCache})}async function W9(){return ge("plugin:path|resolve_directory",{directory:PA.Audio})}async function $9(){return ge("plugin:path|resolve_directory",{directory:PA.Cache})}async function X9(){return ge("plugin:path|resolve_directory",{directory:PA.Config})}async function Y9(){return ge("plugin:path|resolve_directory",{directory:PA.Data})}async function J9(){return ge("plugin:path|resolve_directory",{directory:PA.Desktop})}async function Z9(){return ge("plugin:path|resolve_directory",{directory:PA.Document})}async function eK(){return ge("plugin:path|resolve_directory",{directory:PA.Download})}async function tK(){return ge("plugin:path|resolve_directory",{directory:PA.Executable})}async function AK(){return ge("plugin:path|resolve_directory",{directory:PA.Font})}async function rK(){return ge("plugin:path|resolve_directory",{directory:PA.Home})}async function nK(){return ge("plugin:path|resolve_directory",{directory:PA.LocalData})}async function iK(){return ge("plugin:path|resolve_directory",{directory:PA.Picture})}async function aK(){return ge("plugin:path|resolve_directory",{directory:PA.Public})}async function sK(){return ge("plugin:path|resolve_directory",{directory:PA.Resource})}async function oK(t){return ge("plugin:path|resolve_directory",{directory:PA.Resource,path:t})}async function lK(){return ge("plugin:path|resolve_directory",{directory:PA.Runtime})}async function cK(){return ge("plugin:path|resolve_directory",{directory:PA.Template})}async function uK(){return ge("plugin:path|resolve_directory",{directory:PA.Video})}async function fK(){return ge("plugin:path|resolve_directory",{directory:PA.AppLog})}async function hK(){return ge("plugin:path|resolve_directory",{directory:PA.Temp})}function dK(){return window.__TAURI_INTERNALS__.plugins.path.sep}function pK(){return window.__TAURI_INTERNALS__.plugins.path.delimiter}async function gK(...t){return ge("plugin:path|resolve",{paths:t})}async function wK(t){return ge("plugin:path|normalize",{path:t})}async function vK(...t){return ge("plugin:path|join",{paths:t})}async function mK(t){return ge("plugin:path|dirname",{path:t})}async function yK(t){return ge("plugin:path|extname",{path:t})}async function BK(t,e){return ge("plugin:path|basename",{path:t,ext:e})}async function bK(t){return ge("plugin:path|is_absolute",{path:t})}var PA,X2=zt(()=>{pa();(function(t){t[t.Audio=1]="Audio",t[t.Cache=2]="Cache",t[t.Config=3]="Config",t[t.Data=4]="Data",t[t.LocalData=5]="LocalData",t[t.Document=6]="Document",t[t.Download=7]="Download",t[t.Picture=8]="Picture",t[t.Public=9]="Public",t[t.Video=10]="Video",t[t.Resource=11]="Resource",t[t.Temp=12]="Temp",t[t.AppConfig=13]="AppConfig",t[t.AppData=14]="AppData",t[t.AppLocalData=15]="AppLocalData",t[t.AppCache=16]="AppCache",t[t.AppLog=17]="AppLog",t[t.Desktop=18]="Desktop",t[t.Executable=19]="Executable",t[t.Font=20]="Font",t[t.Home=21]="Home",t[t.Runtime=22]="Runtime",t[t.Template=23]="Template"})(PA||(PA={}))});var em={};or(em,{BaseDirectory:()=>PA,FileHandle:()=>eh,SeekMode:()=>Y2,copyFile:()=>FK,create:()=>EK,exists:()=>kK,lstat:()=>NK,mkdir:()=>UK,open:()=>IS,readDir:()=>xK,readFile:()=>_K,readTextFile:()=>SK,readTextFileLines:()=>QK,remove:()=>IK,rename:()=>LK,size:()=>MK,startAccessingSecurityScopedResource:()=>qK,stat:()=>TK,stopAccessingSecurityScopedResource:()=>KK,truncate:()=>OK,watch:()=>DK,watchImmediate:()=>HK,writeFile:()=>PK,writeTextFile:()=>RK});function Z2(t){return{isFile:t.isFile,isDirectory:t.isDirectory,isSymlink:t.isSymlink,size:t.size,mtime:t.mtime!==null?new Date(t.mtime):null,atime:t.atime!==null?new Date(t.atime):null,birthtime:t.birthtime!==null?new Date(t.birthtime):null,readonly:t.readonly,fileAttributes:t.fileAttributes,dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,blksize:t.blksize,blocks:t.blocks}}function CK(t){let e=new Uint8ClampedArray(t),A=e.byteLength,r=0;for(let n=0;n<A;n++){let i=e[n];r*=256,r+=i}return r}async function EK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let A=await ge("plugin:fs|create",{path:t instanceof URL?t.toString():t,options:e});return new eh(A)}async function IS(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let A=await ge("plugin:fs|open",{path:t instanceof URL?t.toString():t,options:e});return new eh(A)}async function FK(t,e,A){if(t instanceof URL&&t.protocol!=="file:"||e instanceof URL&&e.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|copy_file",{fromPath:t instanceof URL?t.toString():t,toPath:e instanceof URL?e.toString():e,options:A})}async function UK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|mkdir",{path:t instanceof URL?t.toString():t,options:e})}async function xK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ge("plugin:fs|read_dir",{path:t instanceof URL?t.toString():t,options:e})}async function _K(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let A=await ge("plugin:fs|read_file",{path:t instanceof URL?t.toString():t,options:e});return A instanceof ArrayBuffer?new Uint8Array(A):Uint8Array.from(A)}async function SK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let A=await ge("plugin:fs|read_text_file",{path:t instanceof URL?t.toString():t,options:e}),r=A instanceof ArrayBuffer?A:Uint8Array.from(A);return new TextDecoder(e?.encoding??"utf-8").decode(r)}async function QK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let A=t instanceof URL?t.toString():t;return await Promise.resolve({path:A,rid:null,async next(){let r=new TextDecoder(e?.encoding??"utf-8");if(this.rid===null){let o=r.encoding;this.rid=await ge("plugin:fs|read_text_file_lines",{path:A,options:e!=null?{...e,encoding:o}:void 0})}let n=await ge("plugin:fs|read_text_file_lines_next",{rid:this.rid}),i=n instanceof ArrayBuffer?new Uint8Array(n):Uint8Array.from(n),s=i[i.byteLength-1]===1;return s?(this.rid=null,{value:null,done:s}):{value:r.decode(i.slice(0,i.byteLength-1)),done:s}},[Symbol.asyncIterator](){return this}})}async function IK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|remove",{path:t instanceof URL?t.toString():t,options:e})}async function LK(t,e,A){if(t instanceof URL&&t.protocol!=="file:"||e instanceof URL&&e.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|rename",{oldPath:t instanceof URL?t.toString():t,newPath:e instanceof URL?e.toString():e,options:A})}async function TK(t,e){let A=await ge("plugin:fs|stat",{path:t instanceof URL?t.toString():t,options:e});return Z2(A)}async function NK(t,e){let A=await ge("plugin:fs|lstat",{path:t instanceof URL?t.toString():t,options:e});return Z2(A)}async function OK(t,e,A){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|truncate",{path:t instanceof URL?t.toString():t,len:e,options:A})}async function PK(t,e,A){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");if(e instanceof ReadableStream){let r=await IS(t,{read:!1,create:!0,write:!0,...A}),n=e.getReader();try{for(;;){let{done:i,value:s}=await n.read();if(i)break;await r.write(s)}}finally{n.releaseLock(),await r.close()}}else await ge("plugin:fs|write_file",e,{headers:{path:encodeURIComponent(t instanceof URL?t.toString():t),options:JSON.stringify(A)}})}async function RK(t,e,A){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");let r=new TextEncoder;await ge("plugin:fs|write_text_file",r.encode(e),{headers:{path:encodeURIComponent(t instanceof URL?t.toString():t),options:JSON.stringify(A)}})}async function kK(t,e){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ge("plugin:fs|exists",{path:t instanceof URL?t.toString():t,options:e})}async function LS(t,e,A){let r=Array.isArray(t)?t:[t];for(let a of r)if(a instanceof URL&&a.protocol!=="file:")throw new TypeError("Must be a file URL.");let n=new Jh;n.onmessage=e;let i=await ge("plugin:fs|watch",{paths:r.map(a=>a instanceof URL?a.toString():a),options:A,onEvent:n}),s=new J2(i);return()=>{s.close()}}async function DK(t,e,A){return await LS(t,e,{delayMs:2e3,...A})}async function HK(t,e,A){return await LS(t,e,{...A,delayMs:void 0})}async function MK(t){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");return await ge("plugin:fs|size",{path:t instanceof URL?t.toString():t})}async function qK(t){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|start_accessing_security_scoped_resource",{path:t instanceof URL?t.toString():t})}async function KK(t){if(t instanceof URL&&t.protocol!=="file:")throw new TypeError("Must be a file URL.");await ge("plugin:fs|stop_accessing_security_scoped_resource",{path:t instanceof URL?t.toString():t})}var Y2,eh,J2,tm=zt(()=>{X2();pa();(function(t){t[t.Start=0]="Start",t[t.Current=1]="Current",t[t.End=2]="End"})(Y2||(Y2={}));eh=class extends zo{async read(e){if(e.byteLength===0)return 0;let A=await ge("plugin:fs|read",{rid:this.rid,len:e.byteLength}),r=CK(A.slice(-8)),n=A instanceof ArrayBuffer?new Uint8Array(A):A;return e.set(n.slice(0,n.length-8)),r===0?null:r}async seek(e,A){return await ge("plugin:fs|seek",{rid:this.rid,offset:e,whence:A})}async stat(){let e=await ge("plugin:fs|fstat",{rid:this.rid});return Z2(e)}async truncate(e){await ge("plugin:fs|ftruncate",{rid:this.rid,len:e})}async write(e){return await ge("plugin:fs|write",{rid:this.rid,data:e})}};J2=class extends zo{}});var am,th,qS=zt(()=>{am=class{constructor(e){this.sqlite=e,this._connectionDict=new Map}async initWebStore(){try{return await this.sqlite.initWebStore(),Promise.resolve()}catch(e){return Promise.reject(e)}}async saveToStore(e){try{return await this.sqlite.saveToStore({database:e}),Promise.resolve()}catch(A){return Promise.reject(A)}}async saveToLocalDisk(e){try{return await this.sqlite.saveToLocalDisk({database:e}),Promise.resolve()}catch(A){return Promise.reject(A)}}async getFromLocalDiskToStore(e){let A=e??!0;try{return await this.sqlite.getFromLocalDiskToStore({overwrite:A}),Promise.resolve()}catch(r){return Promise.reject(r)}}async echo(e){try{let A=await this.sqlite.echo({value:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async isSecretStored(){try{let e=await this.sqlite.isSecretStored();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async setEncryptionSecret(e){try{return await this.sqlite.setEncryptionSecret({passphrase:e}),Promise.resolve()}catch(A){return Promise.reject(A)}}async changeEncryptionSecret(e,A){try{return await this.sqlite.changeEncryptionSecret({passphrase:e,oldpassphrase:A}),Promise.resolve()}catch(r){return Promise.reject(r)}}async clearEncryptionSecret(){try{return await this.sqlite.clearEncryptionSecret(),Promise.resolve()}catch(e){return Promise.reject(e)}}async checkEncryptionSecret(e){try{let A=await this.sqlite.checkEncryptionSecret({passphrase:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async addUpgradeStatement(e,A){try{return e.endsWith(".db")&&(e=e.slice(0,-3)),await this.sqlite.addUpgradeStatement({database:e,upgrade:A}),Promise.resolve()}catch(r){return Promise.reject(r)}}async createConnection(e,A,r,n,i){try{e.endsWith(".db")&&(e=e.slice(0,-3)),await this.sqlite.createConnection({database:e,encrypted:A,mode:r,version:n,readonly:i});let s=new th(e,i,this.sqlite),a=i?`RO_${e}`:`RW_${e}`;return this._connectionDict.set(a,s),Promise.resolve(s)}catch(s){return Promise.reject(s)}}async closeConnection(e,A){try{e.endsWith(".db")&&(e=e.slice(0,-3)),await this.sqlite.closeConnection({database:e,readonly:A});let r=A?`RO_${e}`:`RW_${e}`;return this._connectionDict.delete(r),Promise.resolve()}catch(r){return Promise.reject(r)}}async isConnection(e,A){let r={};e.endsWith(".db")&&(e=e.slice(0,-3));let n=A?`RO_${e}`:`RW_${e}`;return r.result=this._connectionDict.has(n),Promise.resolve(r)}async retrieveConnection(e,A){e.endsWith(".db")&&(e=e.slice(0,-3));let r=A?`RO_${e}`:`RW_${e}`;if(this._connectionDict.has(r)){let n=this._connectionDict.get(r);return typeof n<"u"?Promise.resolve(n):Promise.reject(`Connection ${e} is undefined`)}else return Promise.reject(`Connection ${e} does not exist`)}async getNCDatabasePath(e,A){try{let r=await this.sqlite.getNCDatabasePath({path:e,database:A});return Promise.resolve(r)}catch(r){return Promise.reject(r)}}async createNCConnection(e,A){try{await this.sqlite.createNCConnection({databasePath:e,version:A});let r=new th(e,!0,this.sqlite),n=`RO_${e})`;return this._connectionDict.set(n,r),Promise.resolve(r)}catch(r){return Promise.reject(r)}}async closeNCConnection(e){try{await this.sqlite.closeNCConnection({databasePath:e});let A=`RO_${e})`;return this._connectionDict.delete(A),Promise.resolve()}catch(A){return Promise.reject(A)}}async isNCConnection(e){let A={},r=`RO_${e})`;return A.result=this._connectionDict.has(r),Promise.resolve(A)}async retrieveNCConnection(e){if(this._connectionDict.has(e)){let A=`RO_${e})`,r=this._connectionDict.get(A);return typeof r<"u"?Promise.resolve(r):Promise.reject(`Connection ${e} is undefined`)}else return Promise.reject(`Connection ${e} does not exist`)}async isNCDatabase(e){try{let A=await this.sqlite.isNCDatabase({databasePath:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async retrieveAllConnections(){return this._connectionDict}async closeAllConnections(){let e=new Map;try{for(let A of this._connectionDict.keys()){let r=A.substring(3),n=A.substring(0,3)==="RO_";await this.sqlite.closeConnection({database:r,readonly:n}),e.set(A,null)}for(let A of e.keys())this._connectionDict.delete(A);return Promise.resolve()}catch(A){return Promise.reject(A)}}async checkConnectionsConsistency(){try{let e=[...this._connectionDict.keys()],A=[],r=[];for(let i of e)A.push(i.substring(0,2)),r.push(i.substring(3));let n=await this.sqlite.checkConnectionsConsistency({dbNames:r,openModes:A});return n.result||(this._connectionDict=new Map),Promise.resolve(n)}catch(e){return this._connectionDict=new Map,Promise.reject(e)}}async importFromJson(e){try{let A=await this.sqlite.importFromJson({jsonstring:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async isJsonValid(e){try{let A=await this.sqlite.isJsonValid({jsonstring:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async copyFromAssets(e){let A=e??!0;try{return await this.sqlite.copyFromAssets({overwrite:A}),Promise.resolve()}catch(r){return Promise.reject(r)}}async getFromHTTPRequest(e,A){let r=A??!0;try{return await this.sqlite.getFromHTTPRequest({url:e,overwrite:r}),Promise.resolve()}catch(n){return Promise.reject(n)}}async isDatabaseEncrypted(e){e.endsWith(".db")&&(e=e.slice(0,-3));try{let A=await this.sqlite.isDatabaseEncrypted({database:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async isInConfigEncryption(){try{let e=await this.sqlite.isInConfigEncryption();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async isInConfigBiometricAuth(){try{let e=await this.sqlite.isInConfigBiometricAuth();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async isDatabase(e){e.endsWith(".db")&&(e=e.slice(0,-3));try{let A=await this.sqlite.isDatabase({database:e});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async getDatabaseList(){try{let A=(await this.sqlite.getDatabaseList()).values;A.sort();let r={values:A};return Promise.resolve(r)}catch(e){return Promise.reject(e)}}async getMigratableDbList(e){let A=e||"default";try{let r=await this.sqlite.getMigratableDbList({folderPath:A});return Promise.resolve(r)}catch(r){return Promise.reject(r)}}async addSQLiteSuffix(e,A){let r=e||"default",n=A||[];try{let i=await this.sqlite.addSQLiteSuffix({folderPath:r,dbNameList:n});return Promise.resolve(i)}catch(i){return Promise.reject(i)}}async deleteOldDatabases(e,A){let r=e||"default",n=A||[];try{let i=await this.sqlite.deleteOldDatabases({folderPath:r,dbNameList:n});return Promise.resolve(i)}catch(i){return Promise.reject(i)}}async moveDatabasesAndAddSuffix(e,A){let r=e||"default",n=A||[];return this.sqlite.moveDatabasesAndAddSuffix({folderPath:r,dbNameList:n})}},th=class{constructor(e,A,r){this.dbName=e,this.readonly=A,this.sqlite=r}getConnectionDBName(){return this.dbName}getConnectionReadOnly(){return this.readonly}async open(){try{return await this.sqlite.open({database:this.dbName,readonly:this.readonly}),Promise.resolve()}catch(e){return Promise.reject(e)}}async close(){try{return await this.sqlite.close({database:this.dbName,readonly:this.readonly}),Promise.resolve()}catch(e){return Promise.reject(e)}}async beginTransaction(){try{let e=await this.sqlite.beginTransaction({database:this.dbName});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async commitTransaction(){try{let e=await this.sqlite.commitTransaction({database:this.dbName});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async rollbackTransaction(){try{let e=await this.sqlite.rollbackTransaction({database:this.dbName});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async isTransactionActive(){try{let e=await this.sqlite.isTransactionActive({database:this.dbName});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async loadExtension(e){try{return await this.sqlite.loadExtension({database:this.dbName,path:e,readonly:this.readonly}),Promise.resolve()}catch(A){return Promise.reject(A)}}async enableLoadExtension(e){try{return await this.sqlite.enableLoadExtension({database:this.dbName,toggle:e,readonly:this.readonly}),Promise.resolve()}catch(A){return Promise.reject(A)}}async getUrl(){try{let e=await this.sqlite.getUrl({database:this.dbName,readonly:this.readonly});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async getVersion(){try{let e=await this.sqlite.getVersion({database:this.dbName,readonly:this.readonly});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async getTableList(){try{let e=await this.sqlite.getTableList({database:this.dbName,readonly:this.readonly});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async execute(e,A=!0,r=!0){try{if(this.readonly)return Promise.reject("not allowed in read-only mode");{let n=await this.sqlite.execute({database:this.dbName,statements:e,transaction:A,readonly:!1,isSQL92:r});return Promise.resolve(n)}}catch(n){return Promise.reject(n)}}async query(e,A,r=!0){let n;try{return A&&A.length>0?n=await this.sqlite.query({database:this.dbName,statement:e,values:A,readonly:this.readonly,isSQL92:!0}):n=await this.sqlite.query({database:this.dbName,statement:e,values:[],readonly:this.readonly,isSQL92:r}),n=await this.reorderRows(n),Promise.resolve(n)}catch(i){return Promise.reject(i)}}async run(e,A,r=!0,n="no",i=!0){let s;try{return this.readonly?Promise.reject("not allowed in read-only mode"):(A&&A.length>0?s=await this.sqlite.run({database:this.dbName,statement:e,values:A,transaction:r,readonly:!1,returnMode:n,isSQL92:!0}):s=await this.sqlite.run({database:this.dbName,statement:e,values:[],transaction:r,readonly:!1,returnMode:n,isSQL92:i}),s.changes=await this.reorderRows(s.changes),Promise.resolve(s))}catch(a){return Promise.reject(a)}}async executeSet(e,A=!0,r="no",n=!0){let i;try{return this.readonly?Promise.reject("not allowed in read-only mode"):(i=await this.sqlite.executeSet({database:this.dbName,set:e,transaction:A,readonly:!1,returnMode:r,isSQL92:n}),i.changes=await this.reorderRows(i.changes),Promise.resolve(i))}catch(s){return Promise.reject(s)}}async isExists(){try{let e=await this.sqlite.isDBExists({database:this.dbName,readonly:this.readonly});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async isTable(e){try{let A=await this.sqlite.isTableExists({database:this.dbName,table:e,readonly:this.readonly});return Promise.resolve(A)}catch(A){return Promise.reject(A)}}async isDBOpen(){try{let e=await this.sqlite.isDBOpen({database:this.dbName,readonly:this.readonly});return Promise.resolve(e)}catch(e){return Promise.reject(e)}}async delete(){try{return this.readonly?Promise.reject("not allowed in read-only mode"):(await this.sqlite.deleteDatabase({database:this.dbName,readonly:!1}),Promise.resolve())}catch(e){return Promise.reject(e)}}async createSyncTable(){try{if(this.readonly)return Promise.reject("not allowed in read-only mode");{let e=await this.sqlite.createSyncTable({database:this.dbName,readonly:!1});return Promise.resolve(e)}}catch(e){return Promise.reject(e)}}async setSyncDate(e){try{return this.readonly?Promise.reject("not allowed in read-only mode"):(await this.sqlite.setSyncDate({database:this.dbName,syncdate:e,readonly:!1}),Promise.resolve())}catch(A){return Promise.reject(A)}}async getSyncDate(){try{let e=await this.sqlite.getSyncDate({database:this.dbName,readonly:this.readonly}),A="";return e.syncDate>0&&(A=new Date(e.syncDate*1e3).toISOString()),Promise.resolve(A)}catch(e){return Promise.reject(e)}}async exportToJson(e,A=!1){try{let r=await this.sqlite.exportToJson({database:this.dbName,jsonexportmode:e,readonly:this.readonly,encrypted:A});return Promise.resolve(r)}catch(r){return Promise.reject(r)}}async deleteExportedRows(){try{return this.readonly?Promise.reject("not allowed in read-only mode"):(await this.sqlite.deleteExportedRows({database:this.dbName,readonly:!1}),Promise.resolve())}catch(e){return Promise.reject(e)}}async executeTransaction(e,A=!0){let r=0,n=!1;if(this.readonly)return Promise.reject("not allowed in read-only mode");if(await this.sqlite.beginTransaction({database:this.dbName}),n=await this.sqlite.isTransactionActive({database:this.dbName}),!n)return Promise.reject("After Begin Transaction, no transaction active");try{for(let a of e){if(typeof a!="object"||!("statement"in a))throw new Error("Error a task.statement must be provided");if("values"in a&&a.values&&a.values.length>0){let o=a.statement.toUpperCase().includes("RETURNING")?"all":"no",l=await this.sqlite.run({database:this.dbName,statement:a.statement,values:a.values,transaction:!1,readonly:!1,returnMode:o,isSQL92:A});if(l.changes.changes<0)throw new Error("Error in transaction method run ");r+=l.changes.changes}else{let o=await this.sqlite.execute({database:this.dbName,statements:a.statement,transaction:!1,readonly:!1});if(o.changes.changes<0)throw new Error("Error in transaction method execute ");r+=o.changes.changes}}let i=await this.sqlite.commitTransaction({database:this.dbName});r+=i.changes.changes;let s={changes:{changes:r}};return Promise.resolve(s)}catch(i){let s=i.message?i.message:i;return await this.sqlite.rollbackTransaction({database:this.dbName}),Promise.reject(s)}}async reorderRows(e){let A=e;if(e?.values&&typeof e.values[0]=="object"&&Object.keys(e.values[0]).includes("ios_columns")){let r=e.values[0].ios_columns,n=[];for(let i=1;i<e.values.length;i++){let s=e.values[i],a={};for(let o of r)a[o]=s[o];n.push(a)}A.values=n}return Promise.resolve(A)}}});var KS={};or(KS,{CapacitorSQLiteWeb:()=>sm});var sm,jS=zt(()=>{Ni();sm=class extends gn{constructor(){super(...arguments),this.jeepSqliteElement=null,this.isWebStoreOpen=!1}async initWebStore(){await customElements.whenDefined("jeep-sqlite"),this.jeepSqliteElement=document.querySelector("jeep-sqlite"),this.ensureJeepSqliteIsAvailable(),this.jeepSqliteElement.addEventListener("jeepSqliteImportProgress",e=>{this.notifyListeners("sqliteImportProgressEvent",e.detail)}),this.jeepSqliteElement.addEventListener("jeepSqliteExportProgress",e=>{this.notifyListeners("sqliteExportProgressEvent",e.detail)}),this.jeepSqliteElement.addEventListener("jeepSqliteHTTPRequestEnded",e=>{this.notifyListeners("sqliteHTTPRequestEndedEvent",e.detail)}),this.jeepSqliteElement.addEventListener("jeepSqlitePickDatabaseEnded",e=>{this.notifyListeners("sqlitePickDatabaseEndedEvent",e.detail)}),this.jeepSqliteElement.addEventListener("jeepSqliteSaveDatabaseToDisk",e=>{this.notifyListeners("sqliteSaveDatabaseToDiskEvent",e.detail)}),this.isWebStoreOpen||(this.isWebStoreOpen=await this.jeepSqliteElement.isStoreOpen())}async saveToStore(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.saveToStore(e);return}catch(A){throw new Error(`${A}`)}}async getFromLocalDiskToStore(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.getFromLocalDiskToStore(e);return}catch(A){throw new Error(`${A}`)}}async saveToLocalDisk(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.saveToLocalDisk(e);return}catch(A){throw new Error(`${A}`)}}async echo(e){return this.ensureJeepSqliteIsAvailable(),await this.jeepSqliteElement.echo(e)}async createConnection(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.createConnection(e);return}catch(A){throw new Error(`${A}`)}}async open(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.open(e);return}catch(A){throw new Error(`${A}`)}}async closeConnection(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.closeConnection(e);return}catch(A){throw new Error(`${A}`)}}async getVersion(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.getVersion(e)}catch(A){throw new Error(`${A}`)}}async checkConnectionsConsistency(e){this.ensureJeepSqliteIsAvailable();try{return await this.jeepSqliteElement.checkConnectionsConsistency(e)}catch(A){throw new Error(`${A}`)}}async close(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.close(e);return}catch(A){throw new Error(`${A}`)}}async beginTransaction(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.beginTransaction(e)}catch(A){throw new Error(`${A}`)}}async commitTransaction(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.commitTransaction(e)}catch(A){throw new Error(`${A}`)}}async rollbackTransaction(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.rollbackTransaction(e)}catch(A){throw new Error(`${A}`)}}async isTransactionActive(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isTransactionActive(e)}catch(A){throw new Error(`${A}`)}}async getTableList(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.getTableList(e)}catch(A){throw new Error(`${A}`)}}async execute(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.execute(e)}catch(A){throw new Error(`${A}`)}}async executeSet(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.executeSet(e)}catch(A){throw new Error(`${A}`)}}async run(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.run(e)}catch(A){throw new Error(`${A}`)}}async query(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.query(e)}catch(A){throw new Error(`${A}`)}}async isDBExists(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isDBExists(e)}catch(A){throw new Error(`${A}`)}}async isDBOpen(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isDBOpen(e)}catch(A){throw new Error(`${A}`)}}async isDatabase(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isDatabase(e)}catch(A){throw new Error(`${A}`)}}async isTableExists(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isTableExists(e)}catch(A){throw new Error(`${A}`)}}async deleteDatabase(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.deleteDatabase(e);return}catch(A){throw new Error(`${A}`)}}async isJsonValid(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.isJsonValid(e)}catch(A){throw new Error(`${A}`)}}async importFromJson(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.importFromJson(e)}catch(A){throw new Error(`${A}`)}}async exportToJson(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.exportToJson(e)}catch(A){throw new Error(`${A}`)}}async createSyncTable(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.createSyncTable(e)}catch(A){throw new Error(`${A}`)}}async setSyncDate(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.setSyncDate(e);return}catch(A){throw new Error(`${A}`)}}async getSyncDate(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.getSyncDate(e)}catch(A){throw new Error(`${A}`)}}async deleteExportedRows(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.deleteExportedRows(e);return}catch(A){throw new Error(`${A}`)}}async addUpgradeStatement(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.addUpgradeStatement(e);return}catch(A){throw new Error(`${A}`)}}async copyFromAssets(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.copyFromAssets(e);return}catch(A){throw new Error(`${A}`)}}async getFromHTTPRequest(e){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{await this.jeepSqliteElement.getFromHTTPRequest(e);return}catch(A){throw new Error(`${A}`)}}async getDatabaseList(){this.ensureJeepSqliteIsAvailable(),this.ensureWebstoreIsOpen();try{return await this.jeepSqliteElement.getDatabaseList()}catch(e){throw new Error(`${e}`)}}ensureJeepSqliteIsAvailable(){if(this.jeepSqliteElement===null)throw new Error("The jeep-sqlite element is not present in the DOM! Please check the @capacitor-community/sqlite documentation for instructions regarding the web platform.")}ensureWebstoreIsOpen(){if(!this.isWebStoreOpen)throw new Error('WebStore is not open yet. You have to call "initWebStore()" first.')}async getUrl(){throw this.unimplemented("Not implemented on web.")}async getMigratableDbList(e){throw console.log("getMigratableDbList",e),this.unimplemented("Not implemented on web.")}async addSQLiteSuffix(e){throw console.log("addSQLiteSuffix",e),this.unimplemented("Not implemented on web.")}async deleteOldDatabases(e){throw console.log("deleteOldDatabases",e),this.unimplemented("Not implemented on web.")}async moveDatabasesAndAddSuffix(e){throw console.log("moveDatabasesAndAddSuffix",e),this.unimplemented("Not implemented on web.")}async isSecretStored(){throw this.unimplemented("Not implemented on web.")}async setEncryptionSecret(e){throw console.log("setEncryptionSecret",e),this.unimplemented("Not implemented on web.")}async changeEncryptionSecret(e){throw console.log("changeEncryptionSecret",e),this.unimplemented("Not implemented on web.")}async clearEncryptionSecret(){throw console.log("clearEncryptionSecret"),this.unimplemented("Not implemented on web.")}async checkEncryptionSecret(e){throw console.log("checkEncryptionPassPhrase",e),this.unimplemented("Not implemented on web.")}async getNCDatabasePath(e){throw console.log("getNCDatabasePath",e),this.unimplemented("Not implemented on web.")}async createNCConnection(e){throw console.log("createNCConnection",e),this.unimplemented("Not implemented on web.")}async closeNCConnection(e){throw console.log("closeNCConnection",e),this.unimplemented("Not implemented on web.")}async isNCDatabase(e){throw console.log("isNCDatabase",e),this.unimplemented("Not implemented on web.")}async isDatabaseEncrypted(e){throw console.log("isDatabaseEncrypted",e),this.unimplemented("Not implemented on web.")}async isInConfigEncryption(){throw this.unimplemented("Not implemented on web.")}async isInConfigBiometricAuth(){throw this.unimplemented("Not implemented on web.")}async loadExtension(e){throw console.log("loadExtension",e),this.unimplemented("Not implemented on web.")}async enableLoadExtension(e){throw console.log("enableLoadExtension",e),this.unimplemented("Not implemented on web.")}}});var VS={};or(VS,{CapacitorSQLite:()=>YK,SQLiteConnection:()=>am,SQLiteDBConnection:()=>th});var YK,GS=zt(()=>{Ni();qS();YK=$n("CapacitorSQLite",{web:()=>Promise.resolve().then(()=>(jS(),KS)).then(t=>new t.CapacitorSQLiteWeb),electron:()=>window.CapacitorCustomPlatform.plugins.CapacitorSQLite})});var zS={};or(zS,{default:()=>om});var om,WS=zt(()=>{pa();om=class t{constructor(e){this.path=e}static async load(e){let A=await ge("plugin:sql|load",{db:e});return new t(A)}static get(e){return new t(e)}async execute(e,A){let[r,n]=await ge("plugin:sql|execute",{db:this.path,query:e,values:A??[]});return{lastInsertId:n,rowsAffected:r}}async select(e,A){return await ge("plugin:sql|select",{db:this.path,query:e,values:A??[]})}async close(e){return await ge("plugin:sql|close",{db:e})}}});var i3=zt(()=>{});var s3={};or(s3,{Network:()=>ZK,NetworkWeb:()=>Rg});function a3(){let t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection,e="unknown",A=t?t.type||t.effectiveType:null;if(A&&typeof A=="string")switch(A){case"bluetooth":case"cellular":e="cellular";break;case"none":e="none";break;case"ethernet":case"wifi":case"wimax":e="wifi";break;case"other":case"unknown":e="unknown";break;case"slow-2g":case"2g":case"3g":e="cellular";break;case"4g":e="wifi";break;default:break}return e}var Rg,ZK,o3=zt(()=>{Ni();Rg=class extends gn{constructor(){super(),this.handleOnline=()=>{let A={connected:!0,connectionType:a3()};this.notifyListeners("networkStatusChange",A)},this.handleOffline=()=>{let e={connected:!1,connectionType:"none"};this.notifyListeners("networkStatusChange",e)},typeof window<"u"&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}async getStatus(){if(!window.navigator)throw this.unavailable("Browser does not support the Network Information API");let e=window.navigator.onLine,A=a3();return{connected:e,connectionType:e?A:"none"}}},ZK=new Rg});var l3={};or(l3,{Network:()=>ej});var ej,c3=zt(()=>{Ni();i3();ej=$n("Network",{web:()=>Promise.resolve().then(()=>(o3(),s3)).then(t=>new t.NetworkWeb)})});var Pj={};or(Pj,{TevrocClient:()=>nh,TevrocError:()=>Os,createChatbotClient:()=>oj,createClient:()=>sj,registerDebugHandler:()=>ry,unregisterDebugHandler:()=>Q0});rw();Hy();jo();var PS=An(sw(),1);ad();var ga=Uint8Array,Oi=Uint16Array,fw=Int32Array,hw=new ga([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),dw=new ga([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),My=new ga([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Vy=function(t,e){for(var A=new Oi(31),r=0;r<31;++r)A[r]=e+=1<<t[r-1];for(var n=new fw(A[30]),r=1;r<30;++r)for(var i=A[r];i<A[r+1];++i)n[i]=i-A[r]<<5|r;return{b:A,r:n}},Gy=Vy(hw,2),XQ=Gy.b,lw=Gy.r;XQ[28]=258,lw[258]=28;var zy=Vy(dw,0),FV=zy.b,qy=zy.r,cw=new Oi(32768);for(FA=0;FA<32768;++FA)Fs=(FA&43690)>>1|(FA&21845)<<1,Fs=(Fs&52428)>>2|(Fs&13107)<<2,Fs=(Fs&61680)>>4|(Fs&3855)<<4,cw[FA]=((Fs&65280)>>8|(Fs&255)<<8)>>1;var Fs,FA,Du=(function(t,e,A){for(var r=t.length,n=0,i=new Oi(e);n<r;++n)t[n]&&++i[t[n]-1];var s=new Oi(e);for(n=1;n<e;++n)s[n]=s[n-1]+i[n-1]<<1;var a;if(A){a=new Oi(1<<e);var o=15-e;for(n=0;n<r;++n)if(t[n])for(var l=n<<4|t[n],h=e-t[n],v=s[t[n]-1]++<<h,m=v|(1<<h)-1;v<=m;++v)a[cw[v]>>o]=l}else for(a=new Oi(r),n=0;n<r;++n)t[n]&&(a[n]=cw[s[t[n]-1]++]>>15-t[n]);return a}),$o=new ga(288);for(FA=0;FA<144;++FA)$o[FA]=8;var FA;for(FA=144;FA<256;++FA)$o[FA]=9;var FA;for(FA=256;FA<280;++FA)$o[FA]=7;var FA;for(FA=280;FA<288;++FA)$o[FA]=8;var FA,sd=new ga(32);for(FA=0;FA<32;++FA)sd[FA]=5;var FA,YQ=Du($o,9,0);var JQ=Du(sd,5,0);var Wy=function(t){return(t+7)/8|0},ZQ=function(t,e,A){return(e==null||e<0)&&(e=0),(A==null||A>t.length)&&(A=t.length),new ga(t.subarray(e,A))};var Us=function(t,e,A){A<<=e&7;var r=e/8|0;t[r]|=A,t[r+1]|=A>>8},Ru=function(t,e,A){A<<=e&7;var r=e/8|0;t[r]|=A,t[r+1]|=A>>8,t[r+2]|=A>>16},ow=function(t,e){for(var A=[],r=0;r<t.length;++r)t[r]&&A.push({s:r,f:t[r]});var n=A.length,i=A.slice();if(!n)return{t:Xy,l:0};if(n==1){var s=new ga(A[0].s+1);return s[A[0].s]=1,{t:s,l:1}}A.sort(function(re,fe){return re.f-fe.f}),A.push({s:-1,f:25001});var a=A[0],o=A[1],l=0,h=1,v=2;for(A[0]={s:-1,f:a.f+o.f,l:a,r:o};h!=n-1;)a=A[A[l].f<A[v].f?l++:v++],o=A[l!=h&&A[l].f<A[v].f?l++:v++],A[h++]={s:-1,f:a.f+o.f,l:a,r:o};for(var m=i[0].s,r=1;r<n;++r)i[r].s>m&&(m=i[r].s);var g=new Oi(m+1),C=uw(A[h-1],g,0);if(C>e){var r=0,F=0,_=C-e,x=1<<_;for(i.sort(function(fe,Ae){return g[Ae.s]-g[fe.s]||fe.f-Ae.f});r<n;++r){var H=i[r].s;if(g[H]>e)F+=x-(1<<C-g[H]),g[H]=e;else break}for(F>>=_;F>0;){var D=i[r].s;g[D]<e?F-=1<<e-g[D]++-1:++r}for(;r>=0&&F;--r){var k=i[r].s;g[k]==e&&(--g[k],++F)}C=e}return{t:new ga(g),l:C}},uw=function(t,e,A){return t.s==-1?Math.max(uw(t.l,e,A+1),uw(t.r,e,A+1)):e[t.s]=A},Ky=function(t){for(var e=t.length;e&&!t[--e];);for(var A=new Oi(++e),r=0,n=t[0],i=1,s=function(o){A[r++]=o},a=1;a<=e;++a)if(t[a]==n&&a!=e)++i;else{if(!n&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(n),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(n);i=1,n=t[a]}return{c:A.subarray(0,r),n:e}},ku=function(t,e){for(var A=0,r=0;r<e.length;++r)A+=t[r]*e[r];return A},$y=function(t,e,A){var r=A.length,n=Wy(e+2);t[n]=r&255,t[n+1]=r>>8,t[n+2]=t[n]^255,t[n+3]=t[n+1]^255;for(var i=0;i<r;++i)t[n+i+4]=A[i];return(n+4+r)*8},jy=function(t,e,A,r,n,i,s,a,o,l,h){Us(e,h++,A),++n[256];for(var v=ow(n,15),m=v.t,g=v.l,C=ow(i,15),F=C.t,_=C.l,x=Ky(m),H=x.c,D=x.n,k=Ky(F),re=k.c,fe=k.n,Ae=new Oi(19),j=0;j<H.length;++j)++Ae[H[j]&31];for(var j=0;j<re.length;++j)++Ae[re[j]&31];for(var N=ow(Ae,7),Z=N.t,I=N.l,O=19;O>4&&!Z[My[O-1]];--O);var Y=l+5<<3,ee=ku(n,$o)+ku(i,sd)+s,ce=ku(n,m)+ku(i,F)+s+14+3*O+ku(Ae,Z)+2*Ae[16]+3*Ae[17]+7*Ae[18];if(o>=0&&Y<=ee&&Y<=ce)return $y(e,h,t.subarray(o,o+l));var be,Fe,de,Ee;if(Us(e,h,1+(ce<ee)),h+=2,ce<ee){be=Du(m,g,0),Fe=m,de=Du(F,_,0),Ee=F;var Pe=Du(Z,I,0);Us(e,h,D-257),Us(e,h+5,fe-1),Us(e,h+10,O-4),h+=14;for(var j=0;j<O;++j)Us(e,h+3*j,Z[My[j]]);h+=3*O;for(var Ue=[H,re],P=0;P<2;++P)for(var J=Ue[P],j=0;j<J.length;++j){var te=J[j]&31;Us(e,h,Pe[te]),h+=Z[te],te>15&&(Us(e,h,J[j]>>5&127),h+=J[j]>>12)}}else be=YQ,Fe=$o,de=JQ,Ee=sd;for(var j=0;j<a;++j){var ie=r[j];if(ie>255){var te=ie>>18&31;Ru(e,h,be[te+257]),h+=Fe[te+257],te>7&&(Us(e,h,ie>>23&31),h+=hw[te]);var oe=ie&31;Ru(e,h,de[oe]),h+=Ee[oe],oe>3&&(Ru(e,h,ie>>5&8191),h+=dw[oe])}else Ru(e,h,be[ie]),h+=Fe[ie]}return Ru(e,h,be[256]),h+Fe[256]},eI=new fw([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Xy=new ga(0),tI=function(t,e,A,r,n,i){var s=i.z||t.length,a=new ga(r+s+5*(1+Math.ceil(s/7e3))+n),o=a.subarray(r,a.length-n),l=i.l,h=(i.r||0)&7;if(e){h&&(o[0]=i.r>>3);for(var v=eI[e-1],m=v>>13,g=v&8191,C=(1<<A)-1,F=i.p||new Oi(32768),_=i.h||new Oi(C+1),x=Math.ceil(A/3),H=2*x,D=function(at){return(t[at]^t[at+1]<<x^t[at+2]<<H)&C},k=new fw(25e3),re=new Oi(288),fe=new Oi(32),Ae=0,j=0,N=i.i||0,Z=0,I=i.w||0,O=0;N+2<s;++N){var Y=D(N),ee=N&32767,ce=_[Y];if(F[ee]=ce,_[Y]=ee,I<=N){var be=s-N;if((Ae>7e3||Z>24576)&&(be>423||!l)){h=jy(t,o,0,k,re,fe,j,Z,O,N-O,h),Z=Ae=j=0,O=N;for(var Fe=0;Fe<286;++Fe)re[Fe]=0;for(var Fe=0;Fe<30;++Fe)fe[Fe]=0}var de=2,Ee=0,Pe=g,Ue=ee-ce&32767;if(be>2&&Y==D(N-Ue))for(var P=Math.min(m,be)-1,J=Math.min(32767,N),te=Math.min(258,be);Ue<=J&&--Pe&&ee!=ce;){if(t[N+de]==t[N+de-Ue]){for(var ie=0;ie<te&&t[N+ie]==t[N+ie-Ue];++ie);if(ie>de){if(de=ie,Ee=Ue,ie>P)break;for(var oe=Math.min(Ue,ie-2),ve=0,Fe=0;Fe<oe;++Fe){var xe=N-Ue+Fe&32767,_e=F[xe],Le=xe-_e&32767;Le>ve&&(ve=Le,ce=xe)}}}ee=ce,ce=F[ee],Ue+=ee-ce&32767}if(Ee){k[Z++]=268435456|lw[de]<<18|qy[Ee];var Oe=lw[de]&31,Je=qy[Ee]&31;j+=hw[Oe]+dw[Je],++re[257+Oe],++fe[Je],I=N+de,++Ae}else k[Z++]=t[N],++re[t[N]]}}for(N=Math.max(N,I);N<s;++N)k[Z++]=t[N],++re[t[N]];h=jy(t,o,l,k,re,fe,j,Z,O,N-O,h),l||(i.r=h&7|o[h/8|0]<<3,h-=7,i.h=_,i.p=F,i.i=N,i.w=I)}else{for(var N=i.w||0;N<s+l;N+=65535){var qe=N+65535;qe>=s&&(o[h/8|0]=l,qe=s),h=$y(o,h+1,t.subarray(N,qe))}i.i=s}return ZQ(a,0,r+Wy(h)+n)};var Yy=function(){var t=1,e=0;return{p:function(A){for(var r=t,n=e,i=A.length|0,s=0;s!=i;){for(var a=Math.min(s+2655,i);s<a;++s)n+=r+=A[s];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}t=r,e=n},d:function(){return t%=65521,e%=65521,(t&255)<<24|(t&65280)<<8|(e&255)<<8|e>>8}}},AI=function(t,e,A,r,n){if(!n&&(n={l:1},e.dictionary)){var i=e.dictionary.subarray(-32768),s=new ga(i.length+t.length);s.set(i),s.set(t,i.length),t=s,n.w=i.length}return tI(t,e.level==null?6:e.level,e.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+e.mem,A,r,n)};var Jy=function(t,e,A){for(;A;++e)t[e]=A,A>>>=8};var rI=function(t,e){var A=e.level,r=A==0?0:A<6?1:A==9?3:2;if(t[0]=120,t[1]=r<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var n=Yy();n.p(e.dictionary),Jy(t,2,n.d())}};function od(t,e){e||(e={});var A=Yy();A.p(t);var r=AI(t,e,e.dictionary?6:2,4);return rI(r,e),Jy(r,r.length-4,A.d()),r}var nI=typeof TextDecoder<"u"&&new TextDecoder,iI=0;try{nI.decode(Xy,{stream:!0}),iI=1}catch{}function Zy(t){if(Array.isArray(t))return t}function eB(t,e){var A=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(A!=null){var r,n,i,s,a=[],o=!0,l=!1;try{if(i=(A=A.call(t)).next,e===0){if(Object(A)!==A)return;o=!1}else for(;!(o=(r=i.call(A)).done)&&(a.push(r.value),a.length!==e);o=!0);}catch(h){l=!0,n=h}finally{try{if(!o&&A.return!=null&&(s=A.return(),Object(s)!==s))return}finally{if(l)throw n}}return a}}function pw(t,e){(e==null||e>t.length)&&(e=t.length);for(var A=0,r=Array(e);A<e;A++)r[A]=t[A];return r}function tB(t,e){if(t){if(typeof t=="string")return pw(t,e);var A={}.toString.call(t).slice(8,-1);return A==="Object"&&t.constructor&&(A=t.constructor.name),A==="Map"||A==="Set"?Array.from(t):A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A)?pw(t,e):void 0}}function AB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gw(t,e){return Zy(t)||eB(t,e)||tB(t,e)||AB()}function ww(t,e="utf8"){return new TextDecoder(e).decode(t)}var aI=new TextEncoder;function rB(t){return aI.encode(t)}var sI=1024*8,oI=(()=>{let t=new Uint8Array(4),e=new Uint32Array(t.buffer);return!((e[0]=1)&t[0])})(),vw={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},Hu=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(e=sI,A={}){let r=!1;typeof e=="number"?e=new ArrayBuffer(e):(r=!0,this.lastWrittenByte=e.byteLength);let n=A.offset?A.offset>>>0:0,i=e.byteLength-n,s=n;(ArrayBuffer.isView(e)||e instanceof t)&&(e.byteLength!==e.buffer.byteLength&&(s=e.byteOffset+n),e=e.buffer),r?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=e,this.length=i,this.byteLength=i,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,i),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let e=this._marks.pop();if(e===void 0)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){let r=(this.offset+e)*2,n=new Uint8Array(r);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,A){let r=vw[A].BYTES_PER_ELEMENT*e,n=this.byteOffset+this.offset,i=this.buffer.slice(n,n+r);if(this.littleEndian===oI&&A!=="uint8"&&A!=="int8"){let a=new Uint8Array(this.buffer.slice(n,n+r));a.reverse();let o=new vw[A](a.buffer);return this.offset+=r,o.reverse(),o}let s=new vw[A](i);return this.offset+=r,s}readInt16(){let e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){let e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){let e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){let e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){let e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){let e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){let e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){let e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let A="";for(let r=0;r<e;r++)A+=this.readChar();return A}readUtf8(e=1){return ww(this.readBytes(e))}decodeText(e=1,A="utf8"){return ww(this.readBytes(e),A)}writeBoolean(e){return this.writeUint8(e?255:0),this}writeInt8(e){return this.ensureAvailable(1),this._data.setInt8(this.offset++,e),this._updateLastWrittenByte(),this}writeUint8(e){return this.ensureAvailable(1),this._data.setUint8(this.offset++,e),this._updateLastWrittenByte(),this}writeByte(e){return this.writeUint8(e)}writeBytes(e){this.ensureAvailable(e.length);for(let A=0;A<e.length;A++)this._data.setUint8(this.offset++,e[A]);return this._updateLastWrittenByte(),this}writeInt16(e){return this.ensureAvailable(2),this._data.setInt16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(e){return this.ensureAvailable(2),this._data.setUint16(this.offset,e,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(e){return this.ensureAvailable(4),this._data.setInt32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(e){return this.ensureAvailable(4),this._data.setUint32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(e){return this.ensureAvailable(4),this._data.setFloat32(this.offset,e,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(e){return this.ensureAvailable(8),this._data.setFloat64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(e){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(e){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,e,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(e){return this.writeUint8(e.charCodeAt(0))}writeChars(e){for(let A=0;A<e.length;A++)this.writeUint8(e.charCodeAt(A));return this}writeUtf8(e){return this.writeBytes(rB(e))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function cc(t){let e=t.length;for(;--e>=0;)t[e]=0}var lI=0,jB=1,cI=2,uI=3,fI=258,qw=29,ef=256,zu=ef+1+qw,ac=30,Kw=19,VB=2*zu+1,Xo=15,mw=16,hI=7,jw=256,GB=16,zB=17,WB=18,Tw=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),dd=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),dI=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),$B=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),pI=512,_s=new Array((zu+2)*2);cc(_s);var ju=new Array(ac*2);cc(ju);var Wu=new Array(pI);cc(Wu);var $u=new Array(fI-uI+1);cc($u);var Vw=new Array(qw);cc(Vw);var pd=new Array(ac);cc(pd);function yw(t,e,A,r,n){this.static_tree=t,this.extra_bits=e,this.extra_base=A,this.elems=r,this.max_length=n,this.has_stree=t&&t.length}var XB,YB,JB;function Bw(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}var ZB=t=>t<256?Wu[t]:Wu[256+(t>>>7)],Xu=(t,e)=>{t.pending_buf[t.pending++]=e&255,t.pending_buf[t.pending++]=e>>>8&255},gi=(t,e,A)=>{t.bi_valid>mw-A?(t.bi_buf|=e<<t.bi_valid&65535,Xu(t,t.bi_buf),t.bi_buf=e>>mw-t.bi_valid,t.bi_valid+=A-mw):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=A)},Wa=(t,e,A)=>{gi(t,A[e*2],A[e*2+1])},eb=(t,e)=>{let A=0;do A|=t&1,t>>>=1,A<<=1;while(--e>0);return A>>>1},gI=t=>{t.bi_valid===16?(Xu(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},wI=(t,e)=>{let A=e.dyn_tree,r=e.max_code,n=e.stat_desc.static_tree,i=e.stat_desc.has_stree,s=e.stat_desc.extra_bits,a=e.stat_desc.extra_base,o=e.stat_desc.max_length,l,h,v,m,g,C,F=0;for(m=0;m<=Xo;m++)t.bl_count[m]=0;for(A[t.heap[t.heap_max]*2+1]=0,l=t.heap_max+1;l<VB;l++)h=t.heap[l],m=A[A[h*2+1]*2+1]+1,m>o&&(m=o,F++),A[h*2+1]=m,!(h>r)&&(t.bl_count[m]++,g=0,h>=a&&(g=s[h-a]),C=A[h*2],t.opt_len+=C*(m+g),i&&(t.static_len+=C*(n[h*2+1]+g)));if(F!==0){do{for(m=o-1;t.bl_count[m]===0;)m--;t.bl_count[m]--,t.bl_count[m+1]+=2,t.bl_count[o]--,F-=2}while(F>0);for(m=o;m!==0;m--)for(h=t.bl_count[m];h!==0;)v=t.heap[--l],!(v>r)&&(A[v*2+1]!==m&&(t.opt_len+=(m-A[v*2+1])*A[v*2],A[v*2+1]=m),h--)}},tb=(t,e,A)=>{let r=new Array(Xo+1),n=0,i,s;for(i=1;i<=Xo;i++)n=n+A[i-1]<<1,r[i]=n;for(s=0;s<=e;s++){let a=t[s*2+1];a!==0&&(t[s*2]=eb(r[a]++,a))}},vI=()=>{let t,e,A,r,n,i=new Array(Xo+1);for(A=0,r=0;r<qw-1;r++)for(Vw[r]=A,t=0;t<1<<Tw[r];t++)$u[A++]=r;for($u[A-1]=r,n=0,r=0;r<16;r++)for(pd[r]=n,t=0;t<1<<dd[r];t++)Wu[n++]=r;for(n>>=7;r<ac;r++)for(pd[r]=n<<7,t=0;t<1<<dd[r]-7;t++)Wu[256+n++]=r;for(e=0;e<=Xo;e++)i[e]=0;for(t=0;t<=143;)_s[t*2+1]=8,t++,i[8]++;for(;t<=255;)_s[t*2+1]=9,t++,i[9]++;for(;t<=279;)_s[t*2+1]=7,t++,i[7]++;for(;t<=287;)_s[t*2+1]=8,t++,i[8]++;for(tb(_s,zu+1,i),t=0;t<ac;t++)ju[t*2+1]=5,ju[t*2]=eb(t,5);XB=new yw(_s,Tw,ef+1,zu,Xo),YB=new yw(ju,dd,0,ac,Xo),JB=new yw(new Array(0),dI,0,Kw,hI)},Ab=t=>{let e;for(e=0;e<zu;e++)t.dyn_ltree[e*2]=0;for(e=0;e<ac;e++)t.dyn_dtree[e*2]=0;for(e=0;e<Kw;e++)t.bl_tree[e*2]=0;t.dyn_ltree[jw*2]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},rb=t=>{t.bi_valid>8?Xu(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},nB=(t,e,A,r)=>{let n=e*2,i=A*2;return t[n]<t[i]||t[n]===t[i]&&r[e]<=r[A]},bw=(t,e,A)=>{let r=t.heap[A],n=A<<1;for(;n<=t.heap_len&&(n<t.heap_len&&nB(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!nB(e,r,t.heap[n],t.depth));)t.heap[A]=t.heap[n],A=n,n<<=1;t.heap[A]=r},iB=(t,e,A)=>{let r,n,i=0,s,a;if(t.sym_next!==0)do r=t.pending_buf[t.sym_buf+i++]&255,r+=(t.pending_buf[t.sym_buf+i++]&255)<<8,n=t.pending_buf[t.sym_buf+i++],r===0?Wa(t,n,e):(s=$u[n],Wa(t,s+ef+1,e),a=Tw[s],a!==0&&(n-=Vw[s],gi(t,n,a)),r--,s=ZB(r),Wa(t,s,A),a=dd[s],a!==0&&(r-=pd[s],gi(t,r,a)));while(i<t.sym_next);Wa(t,jw,e)},Nw=(t,e)=>{let A=e.dyn_tree,r=e.stat_desc.static_tree,n=e.stat_desc.has_stree,i=e.stat_desc.elems,s,a,o=-1,l;for(t.heap_len=0,t.heap_max=VB,s=0;s<i;s++)A[s*2]!==0?(t.heap[++t.heap_len]=o=s,t.depth[s]=0):A[s*2+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=o<2?++o:0,A[l*2]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=r[l*2+1]);for(e.max_code=o,s=t.heap_len>>1;s>=1;s--)bw(t,A,s);l=i;do s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],bw(t,A,1),a=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=a,A[l*2]=A[s*2]+A[a*2],t.depth[l]=(t.depth[s]>=t.depth[a]?t.depth[s]:t.depth[a])+1,A[s*2+1]=A[a*2+1]=l,t.heap[1]=l++,bw(t,A,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],wI(t,e),tb(A,o,t.bl_count)},aB=(t,e,A)=>{let r,n=-1,i,s=e[1],a=0,o=7,l=4;for(s===0&&(o=138,l=3),e[(A+1)*2+1]=65535,r=0;r<=A;r++)i=s,s=e[(r+1)*2+1],!(++a<o&&i===s)&&(a<l?t.bl_tree[i*2]+=a:i!==0?(i!==n&&t.bl_tree[i*2]++,t.bl_tree[GB*2]++):a<=10?t.bl_tree[zB*2]++:t.bl_tree[WB*2]++,a=0,n=i,s===0?(o=138,l=3):i===s?(o=6,l=3):(o=7,l=4))},sB=(t,e,A)=>{let r,n=-1,i,s=e[1],a=0,o=7,l=4;for(s===0&&(o=138,l=3),r=0;r<=A;r++)if(i=s,s=e[(r+1)*2+1],!(++a<o&&i===s)){if(a<l)do Wa(t,i,t.bl_tree);while(--a!==0);else i!==0?(i!==n&&(Wa(t,i,t.bl_tree),a--),Wa(t,GB,t.bl_tree),gi(t,a-3,2)):a<=10?(Wa(t,zB,t.bl_tree),gi(t,a-3,3)):(Wa(t,WB,t.bl_tree),gi(t,a-11,7));a=0,n=i,s===0?(o=138,l=3):i===s?(o=6,l=3):(o=7,l=4)}},mI=t=>{let e;for(aB(t,t.dyn_ltree,t.l_desc.max_code),aB(t,t.dyn_dtree,t.d_desc.max_code),Nw(t,t.bl_desc),e=Kw-1;e>=3&&t.bl_tree[$B[e]*2+1]===0;e--);return t.opt_len+=3*(e+1)+5+5+4,e},yI=(t,e,A,r)=>{let n;for(gi(t,e-257,5),gi(t,A-1,5),gi(t,r-4,4),n=0;n<r;n++)gi(t,t.bl_tree[$B[n]*2+1],3);sB(t,t.dyn_ltree,e-1),sB(t,t.dyn_dtree,A-1)},BI=t=>{let e=4093624447,A;for(A=0;A<=31;A++,e>>>=1)if(e&1&&t.dyn_ltree[A*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(A=32;A<ef;A++)if(t.dyn_ltree[A*2]!==0)return 1;return 0},oB=!1,bI=t=>{oB||(vI(),oB=!0),t.l_desc=new Bw(t.dyn_ltree,XB),t.d_desc=new Bw(t.dyn_dtree,YB),t.bl_desc=new Bw(t.bl_tree,JB),t.bi_buf=0,t.bi_valid=0,Ab(t)},nb=(t,e,A,r)=>{gi(t,(lI<<1)+(r?1:0),3),rb(t),Xu(t,A),Xu(t,~A),A&&t.pending_buf.set(t.window.subarray(e,e+A),t.pending),t.pending+=A},CI=t=>{gi(t,jB<<1,3),Wa(t,jw,_s),gI(t)},EI=(t,e,A,r)=>{let n,i,s=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=BI(t)),Nw(t,t.l_desc),Nw(t,t.d_desc),s=mI(t),n=t.opt_len+3+7>>>3,i=t.static_len+3+7>>>3,i<=n&&(n=i)):n=i=A+5,A+4<=n&&e!==-1?nb(t,e,A,r):t.strategy===4||i===n?(gi(t,(jB<<1)+(r?1:0),3),iB(t,_s,ju)):(gi(t,(cI<<1)+(r?1:0),3),yI(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),iB(t,t.dyn_ltree,t.dyn_dtree)),Ab(t),r&&rb(t)},FI=(t,e,A)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=A,e===0?t.dyn_ltree[A*2]++:(t.matches++,e--,t.dyn_ltree[($u[A]+ef+1)*2]++,t.dyn_dtree[ZB(e)*2]++),t.sym_next===t.sym_end),UI=bI,xI=nb,_I=EI,SI=FI,QI=CI,II={_tr_init:UI,_tr_stored_block:xI,_tr_flush_block:_I,_tr_tally:SI,_tr_align:QI},LI=(t,e,A,r)=>{let n=t&65535|0,i=t>>>16&65535|0,s=0;for(;A!==0;){s=A>2e3?2e3:A,A-=s;do n=n+e[r++]|0,i=i+n|0;while(--s);n%=65521,i%=65521}return n|i<<16|0},Yu=LI,TI=()=>{let t,e=[];for(var A=0;A<256;A++){t=A;for(var r=0;r<8;r++)t=t&1?3988292384^t>>>1:t>>>1;e[A]=t}return e},NI=new Uint32Array(TI()),OI=(t,e,A,r)=>{let n=NI,i=r+A;t^=-1;for(let s=r;s<i;s++)t=t>>>8^n[(t^e[s])&255];return t^-1},nn=OI,Zo={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},uc={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:PI,_tr_stored_block:Ow,_tr_flush_block:RI,_tr_tally:co,_tr_align:kI}=II,{Z_NO_FLUSH:uo,Z_PARTIAL_FLUSH:DI,Z_FULL_FLUSH:HI,Z_FINISH:Yi,Z_BLOCK:lB,Z_OK:wn,Z_STREAM_END:cB,Z_STREAM_ERROR:$a,Z_DATA_ERROR:MI,Z_BUF_ERROR:Cw,Z_DEFAULT_COMPRESSION:qI,Z_FILTERED:KI,Z_HUFFMAN_ONLY:ld,Z_RLE:jI,Z_FIXED:VI,Z_DEFAULT_STRATEGY:GI,Z_UNKNOWN:zI,Z_DEFLATED:vd}=uc,WI=9,$I=15,XI=8,YI=29,JI=256,Pw=JI+1+YI,ZI=30,eL=19,tL=2*Pw+1,AL=15,EA=3,lo=258,Xa=lo+EA+1,rL=32,oc=42,Gw=57,Rw=69,kw=73,Dw=91,Hw=103,Yo=113,qu=666,Yn=1,fc=2,el=3,hc=4,nL=3,Jo=(t,e)=>(t.msg=Zo[e],e),uB=t=>t*2-(t>4?9:0),oo=t=>{let e=t.length;for(;--e>=0;)t[e]=0},iL=t=>{let e,A,r,n=t.w_size;e=t.hash_size,r=e;do A=t.head[--r],t.head[r]=A>=n?A-n:0;while(--e);e=n,r=e;do A=t.prev[--r],t.prev[r]=A>=n?A-n:0;while(--e)},zw=(t,e,A)=>(e<<t.hash_shift^A)&t.hash_mask,tl=(t,e)=>{let A;if(t.legacy_hash)A=t.ins_h=zw(t,t.ins_h,t.window[e+EA-1]);else{let n=t.window,i=n[e]|n[e+1]<<8|n[e+2]<<16|n[e+3]<<24;A=t.ins_h=Math.imul(i,66521)+66521>>>16&t.hash_mask}let r=t.prev[e&t.w_mask]=t.head[A];return t.head[A]=e,r},Pi=t=>{let e=t.state,A=e.pending;A>t.avail_out&&(A=t.avail_out),A!==0&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+A),t.next_out),t.next_out+=A,e.pending_out+=A,t.total_out+=A,t.avail_out-=A,e.pending-=A,e.pending===0&&(e.pending_out=0))},Ri=(t,e)=>{RI(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Pi(t.strm)},UA=(t,e)=>{t.pending_buf[t.pending++]=e},Mu=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=e&255},Mw=(t,e,A,r)=>{let n=t.avail_in;return n>r&&(n=r),n===0?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),A),t.state.wrap===1?t.adler=Yu(t.adler,e,n,A):t.state.wrap===2&&(t.adler=nn(t.adler,e,n,A)),t.next_in+=n,t.total_in+=n,n)},ib=(t,e)=>{let A=t.max_chain_length,r=t.strstart,n,i,s=t.prev_length,a=t.nice_match,o=t.strstart>t.w_size-Xa?t.strstart-(t.w_size-Xa):0,l=t.window,h=t.w_mask,v=t.prev,m=t.strstart+lo,g=l[r+s-1],C=l[r+s];t.prev_length>=t.good_match&&(A>>=2),a>t.lookahead&&(a=t.lookahead);do if(n=e,!(l[n+s]!==C||l[n+s-1]!==g||l[n]!==l[r]||l[++n]!==l[r+1])){r+=2,n++;do;while(l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&l[++r]===l[++n]&&r<m);if(i=lo-(m-r),r=m-lo,i>s){if(t.match_start=e,s=i,i>=a)break;g=l[r+s-1],C=l[r+s]}}while((e=v[e&h])>o&&--A!==0);return s<=t.lookahead?s:t.lookahead},lc=t=>{let e=t.w_size,A,r,n;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-Xa)&&(t.window.set(t.window.subarray(e,e+e-r),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),iL(t),r+=e),t.strm.avail_in===0)break;if(A=Mw(t.strm,t.window,t.strstart+t.lookahead,r),t.lookahead+=A,t.legacy_hash){if(t.lookahead+t.insert>=EA)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=zw(t,t.ins_h,t.window[n+1]);t.insert&&(tl(t,n),n++,t.insert--,!(t.lookahead+t.insert<EA)););}else if(t.lookahead+t.insert>EA)for(n=t.strstart-t.insert;t.insert&&(tl(t,n),n++,t.insert--,!(t.lookahead+t.insert<=EA)););}while(t.lookahead<Xa&&t.strm.avail_in!==0)},ab=(t,e)=>{let A=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r,n,i,s=0,a=t.strm.avail_in;do{if(r=65535,i=t.bi_valid+42>>3,t.strm.avail_out<i||(i=t.strm.avail_out-i,n=t.strstart-t.block_start,r>n+t.strm.avail_in&&(r=n+t.strm.avail_in),r>i&&(r=i),r<A&&(r===0&&e!==Yi||e===uo||r!==n+t.strm.avail_in)))break;s=e===Yi&&r===n+t.strm.avail_in?1:0,Ow(t,0,0,s),t.pending_buf[t.pending-4]=r,t.pending_buf[t.pending-3]=r>>8,t.pending_buf[t.pending-2]=~r,t.pending_buf[t.pending-1]=~r>>8,Pi(t.strm),n&&(n>r&&(n=r),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+n),t.strm.next_out),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n,t.block_start+=n,r-=n),r&&(Mw(t.strm,t.strm.output,t.strm.next_out,r),t.strm.next_out+=r,t.strm.avail_out-=r,t.strm.total_out+=r)}while(s===0);return a-=t.strm.avail_in,a&&(a>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=a&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-a,t.strm.next_in),t.strstart),t.strstart+=a,t.insert+=a>t.w_size-t.insert?t.w_size-t.insert:a),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),s?hc:e!==uo&&e!==Yi&&t.strm.avail_in===0&&t.strstart===t.block_start?fc:(i=t.window_size-t.strstart,t.strm.avail_in>i&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,i+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),i>t.strm.avail_in&&(i=t.strm.avail_in),i&&(Mw(t.strm,t.window,t.strstart,i),t.strstart+=i,t.insert+=i>t.w_size-t.insert?t.w_size-t.insert:i),t.high_water<t.strstart&&(t.high_water=t.strstart),i=t.bi_valid+42>>3,i=t.pending_buf_size-i>65535?65535:t.pending_buf_size-i,A=i>t.w_size?t.w_size:i,n=t.strstart-t.block_start,(n>=A||(n||e===Yi)&&e!==uo&&t.strm.avail_in===0&&n<=i)&&(r=n>i?i:n,s=e===Yi&&t.strm.avail_in===0&&r===n?1:0,Ow(t,t.block_start,r,s),t.block_start+=r,Pi(t.strm)),s?el:Yn)},Ew=(t,e)=>{let A,r;for(;;){if(t.lookahead<Xa){if(lc(t),t.lookahead<Xa&&e===uo)return Yn;if(t.lookahead===0)break}if(A=0,t.lookahead>=EA&&(A=tl(t,t.strstart)),A!==0&&t.strstart-A<=t.w_size-Xa&&(t.match_length=ib(t,A)),t.match_length>=EA)if(r=co(t,t.strstart-t.match_start,t.match_length-EA),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=EA){t.match_length--;do t.strstart++,A=tl(t,t.strstart);while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.legacy_hash&&(t.ins_h=t.window[t.strstart],t.ins_h=zw(t,t.ins_h,t.window[t.strstart+1]));else r=co(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(Ri(t,!1),t.strm.avail_out===0))return Yn}return t.insert=t.strstart<EA-1?t.strstart:EA-1,e===Yi?(Ri(t,!0),t.strm.avail_out===0?el:hc):t.sym_next&&(Ri(t,!1),t.strm.avail_out===0)?Yn:fc},nc=(t,e)=>{let A,r,n;for(;;){if(t.lookahead<Xa){if(lc(t),t.lookahead<Xa&&e===uo)return Yn;if(t.lookahead===0)break}if(A=0,t.lookahead>=EA&&(A=tl(t,t.strstart)),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=EA-1,A!==0&&t.prev_length<t.max_lazy_match&&t.strstart-A<=t.w_size-Xa&&(t.match_length=ib(t,A),t.match_length<=5&&(t.strategy===KI||t.match_length===EA&&t.strstart-t.match_start>4096)&&(t.match_length=EA-1)),t.prev_length>=EA&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-EA,r=co(t,t.strstart-1-t.prev_match,t.prev_length-EA),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=n&&(A=tl(t,t.strstart));while(--t.prev_length!==0);if(t.match_available=0,t.match_length=EA-1,t.strstart++,r&&(Ri(t,!1),t.strm.avail_out===0))return Yn}else if(t.match_available){if(r=co(t,0,t.window[t.strstart-1]),r&&Ri(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Yn}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=co(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<EA-1?t.strstart:EA-1,e===Yi?(Ri(t,!0),t.strm.avail_out===0?el:hc):t.sym_next&&(Ri(t,!1),t.strm.avail_out===0)?Yn:fc},aL=(t,e)=>{let A,r,n,i,s=t.window;for(;;){if(t.lookahead<=lo){if(lc(t),t.lookahead<=lo&&e===uo)return Yn;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=EA&&t.strstart>0&&(n=t.strstart-1,r=s[n],r===s[++n]&&r===s[++n]&&r===s[++n])){i=t.strstart+lo;do;while(r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&r===s[++n]&&n<i);t.match_length=lo-(i-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=EA?(A=co(t,1,t.match_length-EA),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(A=co(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),A&&(Ri(t,!1),t.strm.avail_out===0))return Yn}return t.insert=0,e===Yi?(Ri(t,!0),t.strm.avail_out===0?el:hc):t.sym_next&&(Ri(t,!1),t.strm.avail_out===0)?Yn:fc},sL=(t,e)=>{let A;for(;;){if(t.lookahead===0&&(lc(t),t.lookahead===0)){if(e===uo)return Yn;break}if(t.match_length=0,A=co(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,A&&(Ri(t,!1),t.strm.avail_out===0))return Yn}return t.insert=0,e===Yi?(Ri(t,!0),t.strm.avail_out===0?el:hc):t.sym_next&&(Ri(t,!1),t.strm.avail_out===0)?Yn:fc};function Ga(t,e,A,r,n){this.good_length=t,this.max_lazy=e,this.nice_length=A,this.max_chain=r,this.func=n}var Ku=[new Ga(0,0,0,0,ab),new Ga(4,4,8,4,Ew),new Ga(4,5,16,8,Ew),new Ga(4,6,32,32,Ew),new Ga(4,4,16,16,nc),new Ga(8,16,32,32,nc),new Ga(8,16,128,128,nc),new Ga(8,32,128,256,nc),new Ga(32,128,258,1024,nc),new Ga(32,258,258,4096,nc)],oL=t=>{t.window_size=2*t.w_size,oo(t.head),t.max_lazy_match=Ku[t.level].max_lazy,t.good_match=Ku[t.level].good_length,t.nice_match=Ku[t.level].nice_length,t.max_chain_length=Ku[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=EA-1,t.match_available=0,t.ins_h=0};function lL(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=vd,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.legacy_hash=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(tL*2),this.dyn_dtree=new Uint16Array((2*ZI+1)*2),this.bl_tree=new Uint16Array((2*eL+1)*2),oo(this.dyn_ltree),oo(this.dyn_dtree),oo(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(AL+1),this.heap=new Uint16Array(2*Pw+1),oo(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Pw+1),oo(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var tf=t=>{if(!t)return 1;let e=t.state;return!e||e.strm!==t||e.status!==oc&&e.status!==Gw&&e.status!==Rw&&e.status!==kw&&e.status!==Dw&&e.status!==Hw&&e.status!==Yo&&e.status!==qu?1:0},sb=t=>{if(tf(t))return Jo(t,$a);t.total_in=t.total_out=0,t.data_type=zI;let e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap===2?Gw:e.wrap?oc:Yo,t.adler=e.wrap===2?0:1,e.last_flush=-2,PI(e),wn},ob=t=>{let e=sb(t);return e===wn&&oL(t.state),e},cL=(t,e)=>tf(t)||t.state.wrap!==2?$a:(t.state.gzhead=e,wn),lb=(t,e,A,r,n,i,s)=>{if(!t)return $a;let a=1;if(e===qI&&(e=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),n<1||n>WI||A!==vd||r<8||r>15||e<0||e>9||i<0||i>VI||r===8&&a!==1)return Jo(t,$a);r===8&&(r=9);let o=new lL;return t.state=o,o.strm=t,o.status=oc,o.wrap=a,o.gzhead=null,o.w_bits=r,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.legacy_hash=s?1:0,o.hash_bits=n+7,!o.legacy_hash&&o.hash_bits<15&&(o.hash_bits=15),o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+EA-1)/EA),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=e,o.strategy=i,o.method=A,ob(t)},uL=(t,e)=>lb(t,e,vd,$I,XI,GI),fL=(t,e)=>{if(tf(t)||e>lB||e<0)return t?Jo(t,$a):$a;let A=t.state;if(!t.output||t.avail_in!==0&&!t.input||A.status===qu&&e!==Yi)return Jo(t,t.avail_out===0?Cw:$a);let r=A.last_flush;if(A.last_flush=e,A.pending!==0){if(Pi(t),t.avail_out===0)return A.last_flush=-1,wn}else if(t.avail_in===0&&uB(e)<=uB(r)&&e!==Yi)return Jo(t,Cw);if(A.status===qu&&t.avail_in!==0)return Jo(t,Cw);if(A.status===oc&&A.wrap===0&&(A.status=Yo),A.status===oc){let n=vd+(A.w_bits-8<<4)<<8,i=-1;if(A.strategy>=ld||A.level<2?i=0:A.level<6?i=1:A.level===6?i=2:i=3,n|=i<<6,A.strstart!==0&&(n|=rL),n+=31-n%31,Mu(A,n),A.strstart!==0&&(Mu(A,t.adler>>>16),Mu(A,t.adler&65535)),t.adler=1,A.status=Yo,Pi(t),A.pending!==0)return A.last_flush=-1,wn}if(A.status===Gw){if(t.adler=0,UA(A,31),UA(A,139),UA(A,8),A.gzhead)UA(A,(A.gzhead.text?1:0)+(A.gzhead.hcrc?2:0)+(A.gzhead.extra?4:0)+(A.gzhead.name?8:0)+(A.gzhead.comment?16:0)),UA(A,A.gzhead.time&255),UA(A,A.gzhead.time>>8&255),UA(A,A.gzhead.time>>16&255),UA(A,A.gzhead.time>>24&255),UA(A,A.level===9?2:A.strategy>=ld||A.level<2?4:0),UA(A,A.gzhead.os&255),A.gzhead.extra&&A.gzhead.extra.length&&(UA(A,A.gzhead.extra.length&255),UA(A,A.gzhead.extra.length>>8&255)),A.gzhead.hcrc&&(t.adler=nn(t.adler,A.pending_buf,A.pending,0)),A.gzindex=0,A.status=Rw;else if(UA(A,0),UA(A,0),UA(A,0),UA(A,0),UA(A,0),UA(A,A.level===9?2:A.strategy>=ld||A.level<2?4:0),UA(A,nL),A.status=Yo,Pi(t),A.pending!==0)return A.last_flush=-1,wn}if(A.status===Rw){if(A.gzhead.extra){let n=A.pending,i=(A.gzhead.extra.length&65535)-A.gzindex;for(;A.pending+i>A.pending_buf_size;){let a=A.pending_buf_size-A.pending;if(A.pending_buf.set(A.gzhead.extra.subarray(A.gzindex,A.gzindex+a),A.pending),A.pending=A.pending_buf_size,A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n)),A.gzindex+=a,Pi(t),A.pending!==0)return A.last_flush=-1,wn;n=0,i-=a}let s=new Uint8Array(A.gzhead.extra);A.pending_buf.set(s.subarray(A.gzindex,A.gzindex+i),A.pending),A.pending+=i,A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n)),A.gzindex=0}A.status=kw}if(A.status===kw){if(A.gzhead.name){let n=A.pending,i;do{if(A.pending===A.pending_buf_size){if(A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n)),Pi(t),A.pending!==0)return A.last_flush=-1,wn;n=0}A.gzindex<A.gzhead.name.length?i=A.gzhead.name.charCodeAt(A.gzindex++)&255:i=0,UA(A,i)}while(i!==0);A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n)),A.gzindex=0}A.status=Dw}if(A.status===Dw){if(A.gzhead.comment){let n=A.pending,i;do{if(A.pending===A.pending_buf_size){if(A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n)),Pi(t),A.pending!==0)return A.last_flush=-1,wn;n=0}A.gzindex<A.gzhead.comment.length?i=A.gzhead.comment.charCodeAt(A.gzindex++)&255:i=0,UA(A,i)}while(i!==0);A.gzhead.hcrc&&A.pending>n&&(t.adler=nn(t.adler,A.pending_buf,A.pending-n,n))}A.status=Hw}if(A.status===Hw){if(A.gzhead.hcrc){if(A.pending+2>A.pending_buf_size&&(Pi(t),A.pending!==0))return A.last_flush=-1,wn;UA(A,t.adler&255),UA(A,t.adler>>8&255),t.adler=0}if(A.status=Yo,Pi(t),A.pending!==0)return A.last_flush=-1,wn}if(t.avail_in!==0||A.lookahead!==0||e!==uo&&A.status!==qu){let n=A.level===0?ab(A,e):A.strategy===ld?sL(A,e):A.strategy===jI?aL(A,e):Ku[A.level].func(A,e);if((n===el||n===hc)&&(A.status=qu),n===Yn||n===el)return t.avail_out===0&&(A.last_flush=-1),wn;if(n===fc&&(e===DI?kI(A):e!==lB&&(Ow(A,0,0,!1),e===HI&&(oo(A.head),A.lookahead===0&&(A.strstart=0,A.block_start=0,A.insert=0))),Pi(t),t.avail_out===0))return A.last_flush=-1,wn}return e!==Yi?wn:A.wrap<=0?cB:(A.wrap===2?(UA(A,t.adler&255),UA(A,t.adler>>8&255),UA(A,t.adler>>16&255),UA(A,t.adler>>24&255),UA(A,t.total_in&255),UA(A,t.total_in>>8&255),UA(A,t.total_in>>16&255),UA(A,t.total_in>>24&255)):(Mu(A,t.adler>>>16),Mu(A,t.adler&65535)),Pi(t),A.wrap>0&&(A.wrap=-A.wrap),A.pending!==0?wn:cB)},hL=t=>{if(tf(t))return $a;let e=t.state.status;return t.state=null,e===Yo?Jo(t,MI):wn},dL=(t,e)=>{let A=e.length;if(tf(t))return $a;let r=t.state,n=r.wrap;if(n===2||n===1&&r.status!==oc||r.lookahead)return $a;if(n===1&&(t.adler=Yu(t.adler,e,A,0)),r.wrap=0,A>=r.w_size){n===0&&(oo(r.head),r.strstart=0,r.block_start=0,r.insert=0);let o=new Uint8Array(r.w_size);o.set(e.subarray(A-r.w_size,A),0),e=o,A=r.w_size}let i=t.avail_in,s=t.next_in,a=t.input;for(t.avail_in=A,t.next_in=0,t.input=e,lc(r);r.lookahead>=EA;){let o=r.strstart,l=r.lookahead-(EA-1);do tl(r,o),o++;while(--l);r.strstart=o,r.lookahead=EA-1,lc(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=EA-1,r.match_available=0,t.next_in=s,t.input=a,t.avail_in=i,r.wrap=n,wn},pL=uL,gL=lb,wL=ob,vL=sb,mL=cL,yL=fL,BL=hL,bL=dL,CL="pako deflate (from Nodeca project)",Vu={deflateInit:pL,deflateInit2:gL,deflateReset:wL,deflateResetKeep:vL,deflateSetHeader:mL,deflate:yL,deflateEnd:BL,deflateSetDictionary:bL,deflateInfo:CL},EL=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),FL=function(t){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let A=e.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(let r in A)EL(A,r)&&(t[r]=A[r])}}return t},UL=t=>{let e=0;for(let r=0,n=t.length;r<n;r++)e+=t[r].length;let A=new Uint8Array(e);for(let r=0,n=0,i=t.length;r<i;r++){let s=t[r];A.set(s,n),n+=s.length}return A},md={assign:FL,flattenChunks:UL},cb=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{cb=!1}var Ju=new Uint8Array(256);for(let t=0;t<256;t++)Ju[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ju[254]=Ju[255]=1;var xL=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,A,r,n,i,s=t.length,a=0;for(n=0;n<s;n++)A=t.charCodeAt(n),(A&64512)===55296&&n+1<s&&(r=t.charCodeAt(n+1),(r&64512)===56320&&(A=65536+(A-55296<<10)+(r-56320),n++)),a+=A<128?1:A<2048?2:A<65536?3:4;for(e=new Uint8Array(a),i=0,n=0;i<a;n++)A=t.charCodeAt(n),(A&64512)===55296&&n+1<s&&(r=t.charCodeAt(n+1),(r&64512)===56320&&(A=65536+(A-55296<<10)+(r-56320),n++)),A<128?e[i++]=A:A<2048?(e[i++]=192|A>>>6,e[i++]=128|A&63):A<65536?(e[i++]=224|A>>>12,e[i++]=128|A>>>6&63,e[i++]=128|A&63):(e[i++]=240|A>>>18,e[i++]=128|A>>>12&63,e[i++]=128|A>>>6&63,e[i++]=128|A&63);return e},_L=(t,e)=>{if(e<65534&&t.subarray&&cb)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let A="";for(let r=0;r<e;r++)A+=String.fromCharCode(t[r]);return A},SL=(t,e)=>{let A=e||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let r,n,i=new Array(A*2);for(n=0,r=0;r<A;){let s=t[r++];if(s<128){i[n++]=s;continue}let a=Ju[s];if(a>4){i[n++]=65533,r+=a-1;continue}for(s&=a===2?31:a===3?15:7;a>1&&r<A;)s=s<<6|t[r++]&63,a--;if(a>1){i[n++]=65533;continue}s<65536?i[n++]=s:(s-=65536,i[n++]=55296|s>>10&1023,i[n++]=56320|s&1023)}return _L(i,n)},QL=(t,e)=>{e=e||t.length,e>t.length&&(e=t.length);let A=e-1;for(;A>=0&&(t[A]&192)===128;)A--;return A<0||A===0?e:A+Ju[t[A]]>e?A:e},Zu={string2buf:xL,buf2string:SL,utf8border:QL};function IL(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var ub=IL,fb=Object.prototype.toString,{Z_NO_FLUSH:LL,Z_SYNC_FLUSH:TL,Z_FULL_FLUSH:NL,Z_FINISH:OL,Z_OK:gd,Z_STREAM_END:PL,Z_DEFAULT_COMPRESSION:RL,Z_DEFAULT_STRATEGY:kL,Z_DEFLATED:DL}=uc,HL={level:RL,method:DL,chunkSize:16384,windowBits:15,memLevel:8,strategy:kL,legacyHash:!0};function Af(t){this.options=md.assign({},HL,t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ub,this.strm.avail_out=0;let A=Vu.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy,e.legacyHash);if(A!==gd)throw new Error(Zo[A]);if(e.header&&Vu.deflateSetHeader(this.strm,e.header),e.dictionary){let r;if(typeof e.dictionary=="string"?r=Zu.string2buf(e.dictionary):fb.call(e.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(e.dictionary):r=e.dictionary,A=Vu.deflateSetDictionary(this.strm,r),A!==gd)throw new Error(Zo[A]);this._dict_set=!0}}Af.prototype.push=function(t,e){let A=this.strm,r=this.options.chunkSize,n,i;if(this.ended)return!1;for(e===~~e?i=e:i=e===!0?OL:LL,typeof t=="string"?A.input=Zu.string2buf(t):fb.call(t)==="[object ArrayBuffer]"?A.input=new Uint8Array(t):A.input=t,A.next_in=0,A.avail_in=A.input.length;;){if(A.avail_out===0&&(A.output=new Uint8Array(r),A.next_out=0,A.avail_out=r),(i===TL||i===NL)&&A.avail_out<=6){this.onData(A.output.subarray(0,A.next_out)),A.avail_out=0;continue}if(n=Vu.deflate(A,i),n===PL)return A.next_out>0&&this.onData(A.output.subarray(0,A.next_out)),n=Vu.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===gd;if(A.avail_out===0){this.onData(A.output);continue}if(i>0&&A.next_out>0){this.onData(A.output.subarray(0,A.next_out)),A.avail_out=0;continue}if(A.avail_in===0)break}return!0};Af.prototype.onData=function(t){this.chunks.push(t)};Af.prototype.onEnd=function(t){t===gd&&(this.result=md.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Ww(t,e){let A=new Af(e);if(A.push(t,!0),A.err)throw A.msg||Zo[A.err];return A.result}function ML(t,e){return e=e||{},e.raw=!0,Ww(t,e)}function qL(t,e){return e=e||{},e.gzip=!0,Ww(t,e)}var KL=Af,jL=Ww,VL=ML,GL=qL,zL=uc,WL={Deflate:KL,deflate:jL,deflateRaw:VL,gzip:GL,constants:zL},cd=16209,$L=16191,XL=function(e,A){let r,n,i,s,a,o,l,h,v,m,g,C,F,_,x,H,D,k,re,fe,Ae,j,N,Z,I=e.state;r=e.next_in,N=e.input,n=r+(e.avail_in-5),i=e.next_out,Z=e.output,s=i-(A-e.avail_out),a=i+(e.avail_out-257),o=I.dmax,l=I.wsize,h=I.whave,v=I.wnext,m=I.window,g=I.hold,C=I.bits,F=I.lencode,_=I.distcode,x=(1<<I.lenbits)-1,H=(1<<I.distbits)-1;e:do{C<15&&(g+=N[r++]<<C,C+=8,g+=N[r++]<<C,C+=8),D=F[g&x];t:for(;;){if(k=D>>>24,g>>>=k,C-=k,k=D>>>16&255,k===0)Z[i++]=D&65535;else if(k&16){re=D&65535,k&=15,k&&(C<k&&(g+=N[r++]<<C,C+=8),re+=g&(1<<k)-1,g>>>=k,C-=k),C<15&&(g+=N[r++]<<C,C+=8,g+=N[r++]<<C,C+=8),D=_[g&H];A:for(;;){if(k=D>>>24,g>>>=k,C-=k,k=D>>>16&255,k&16){if(fe=D&65535,k&=15,C<k&&(g+=N[r++]<<C,C+=8,C<k&&(g+=N[r++]<<C,C+=8)),fe+=g&(1<<k)-1,fe>o){e.msg="invalid distance too far back",I.mode=cd;break e}if(g>>>=k,C-=k,k=i-s,fe>k){if(k=fe-k,k>h&&I.sane){e.msg="invalid distance too far back",I.mode=cd;break e}if(Ae=0,j=m,v===0){if(Ae+=l-k,k<re){re-=k;do Z[i++]=m[Ae++];while(--k);Ae=i-fe,j=Z}}else if(v<k){if(Ae+=l+v-k,k-=v,k<re){re-=k;do Z[i++]=m[Ae++];while(--k);if(Ae=0,v<re){k=v,re-=k;do Z[i++]=m[Ae++];while(--k);Ae=i-fe,j=Z}}}else if(Ae+=v-k,k<re){re-=k;do Z[i++]=m[Ae++];while(--k);Ae=i-fe,j=Z}for(;re>2;)Z[i++]=j[Ae++],Z[i++]=j[Ae++],Z[i++]=j[Ae++],re-=3;re&&(Z[i++]=j[Ae++],re>1&&(Z[i++]=j[Ae++]))}else{Ae=i-fe;do Z[i++]=Z[Ae++],Z[i++]=Z[Ae++],Z[i++]=Z[Ae++],re-=3;while(re>2);re&&(Z[i++]=Z[Ae++],re>1&&(Z[i++]=Z[Ae++]))}}else if((k&64)===0){D=_[(D&65535)+(g&(1<<k)-1)];continue A}else{e.msg="invalid distance code",I.mode=cd;break e}break}}else if((k&64)===0){D=F[(D&65535)+(g&(1<<k)-1)];continue t}else if(k&32){I.mode=$L;break e}else{e.msg="invalid literal/length code",I.mode=cd;break e}break}}while(r<n&&i<a);re=C>>3,r-=re,C-=re<<3,g&=(1<<C)-1,e.next_in=r,e.next_out=i,e.avail_in=r<n?5+(n-r):5-(r-n),e.avail_out=i<a?257+(a-i):257-(i-a),I.hold=g,I.bits=C},ic=15,fB=852,hB=592,dB=0,Fw=1,pB=2,YL=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),JL=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,199,75]),ZL=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),eT=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),tT=(t,e,A,r,n,i,s,a)=>{let o=a.bits,l=0,h=0,v=0,m=0,g=0,C=0,F=0,_=0,x=0,H=0,D,k,re,fe,Ae,j=null,N,Z=new Uint16Array(ic+1),I=new Uint16Array(ic+1),O=null,Y,ee,ce;for(l=0;l<=ic;l++)Z[l]=0;for(h=0;h<r;h++)Z[e[A+h]]++;for(g=o,m=ic;m>=1&&Z[m]===0;m--);if(g>m&&(g=m),m===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,a.bits=1,0;for(v=1;v<m&&Z[v]===0;v++);for(g<v&&(g=v),_=1,l=1;l<=ic;l++)if(_<<=1,_-=Z[l],_<0)return-1;if(_>0&&(t===dB||m!==1))return-1;for(I[1]=0,l=1;l<ic;l++)I[l+1]=I[l]+Z[l];for(h=0;h<r;h++)e[A+h]!==0&&(s[I[e[A+h]]++]=h);if(t===dB?(j=O=s,N=20):t===Fw?(j=YL,O=JL,N=257):(j=ZL,O=eT,N=0),H=0,h=0,l=v,Ae=i,C=g,F=0,re=-1,x=1<<g,fe=x-1,t===Fw&&x>fB||t===pB&&x>hB)return 1;for(;;){Y=l-F,s[h]+1<N?(ee=0,ce=s[h]):s[h]>=N?(ee=O[s[h]-N],ce=j[s[h]-N]):(ee=96,ce=0),D=1<<l-F,k=1<<C,v=k;do k-=D,n[Ae+(H>>F)+k]=Y<<24|ee<<16|ce|0;while(k!==0);for(D=1<<l-1;H&D;)D>>=1;if(D!==0?(H&=D-1,H+=D):H=0,h++,--Z[l]===0){if(l===m)break;l=e[A+s[h]]}if(l>g&&(H&fe)!==re){for(F===0&&(F=g),Ae+=v,C=l-F,_=1<<C;C+F<m&&(_-=Z[C+F],!(_<=0));)C++,_<<=1;if(x+=1<<C,t===Fw&&x>fB||t===pB&&x>hB)return 1;re=H&fe,n[re]=g<<24|C<<16|Ae-i|0}}return H!==0&&(n[Ae+H]=l-F<<24|64<<16|0),a.bits=g,0},Gu=tT,AT=0,hb=1,db=2,{Z_FINISH:gB,Z_BLOCK:rT,Z_TREES:ud,Z_OK:Al,Z_STREAM_END:nT,Z_NEED_DICT:iT,Z_STREAM_ERROR:Ji,Z_DATA_ERROR:pb,Z_MEM_ERROR:gb,Z_BUF_ERROR:aT,Z_DEFLATED:wB}=uc,yd=16180,vB=16181,mB=16182,yB=16183,BB=16184,bB=16185,CB=16186,EB=16187,FB=16188,UB=16189,wd=16190,xs=16191,Uw=16192,xB=16193,xw=16194,_B=16195,SB=16196,QB=16197,IB=16198,fd=16199,hd=16200,LB=16201,TB=16202,NB=16203,OB=16204,PB=16205,_w=16206,RB=16207,kB=16208,Ar=16209,wb=16210,vb=16211,sT=852,oT=592,lT=15,cT=lT,DB=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function uT(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var rl=t=>{if(!t)return 1;let e=t.state;return!e||e.strm!==t||e.mode<yd||e.mode>vb?1:0},mb=t=>{if(rl(t))return Ji;let e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=e.wrap&1),e.mode=yd,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(sT),e.distcode=e.distdyn=new Int32Array(oT),e.sane=1,e.back=-1,Al},yb=t=>{if(rl(t))return Ji;let e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,mb(t)},Bb=(t,e)=>{let A;if(rl(t))return Ji;let r=t.state;return e<0?(A=0,e=-e):(A=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Ji:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=A,r.wbits=e,yb(t))},bb=(t,e)=>{if(!t)return Ji;let A=new uT;t.state=A,A.strm=t,A.window=null,A.mode=yd;let r=Bb(t,e);return r!==Al&&(t.state=null),r},fT=t=>bb(t,cT),HB=!0,Sw,Qw,hT=t=>{if(HB){Sw=new Int32Array(512),Qw=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Gu(hb,t.lens,0,288,Sw,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Gu(db,t.lens,0,32,Qw,0,t.work,{bits:5}),HB=!1}t.lencode=Sw,t.lenbits=9,t.distcode=Qw,t.distbits=5},Cb=(t,e,A,r)=>{let n,i=t.state;return i.window===null&&(i.window=new Uint8Array(1<<i.wbits)),i.wsize===0&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0),r>=i.wsize?(i.window.set(e.subarray(A-i.wsize,A),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(e.subarray(A-r,A-r+n),i.wnext),r-=n,r?(i.window.set(e.subarray(A-r,A),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=n))),0},dT=(t,e)=>{let A,r,n,i,s,a,o,l,h,v,m,g,C,F,_=0,x,H,D,k,re,fe,Ae,j,N=new Uint8Array(4),Z,I,O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(rl(t)||!t.output||!t.input&&t.avail_in!==0)return Ji;A=t.state,A.mode===xs&&(A.mode=Uw),s=t.next_out,n=t.output,o=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,l=A.hold,h=A.bits,v=a,m=o,j=Al;e:for(;;)switch(A.mode){case yd:if(A.wrap===0){A.mode=Uw;break}for(;h<16;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(A.wrap&2&&l===35615){A.wbits===0&&(A.wbits=15),A.check=0,N[0]=l&255,N[1]=l>>>8&255,A.check=nn(A.check,N,2,0),l=0,h=0,A.mode=vB;break}if(A.head&&(A.head.done=!1),!(A.wrap&1)||(((l&255)<<8)+(l>>8))%31){t.msg="incorrect header check",A.mode=Ar;break}if((l&15)!==wB){t.msg="unknown compression method",A.mode=Ar;break}if(l>>>=4,h-=4,Ae=(l&15)+8,A.wbits===0&&(A.wbits=Ae),Ae>15||Ae>A.wbits){t.msg="invalid window size",A.mode=Ar;break}A.dmax=1<<A.wbits,A.flags=0,t.adler=A.check=1,A.mode=l&512?UB:xs,l=0,h=0;break;case vB:for(;h<16;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(A.flags=l,(A.flags&255)!==wB){t.msg="unknown compression method",A.mode=Ar;break}if(A.flags&57344){t.msg="unknown header flags set",A.mode=Ar;break}A.head&&(A.head.text=l>>8&1),A.flags&512&&A.wrap&4&&(N[0]=l&255,N[1]=l>>>8&255,A.check=nn(A.check,N,2,0)),l=0,h=0,A.mode=mB;case mB:for(;h<32;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.head&&(A.head.time=l),A.flags&512&&A.wrap&4&&(N[0]=l&255,N[1]=l>>>8&255,N[2]=l>>>16&255,N[3]=l>>>24&255,A.check=nn(A.check,N,4,0)),l=0,h=0,A.mode=yB;case yB:for(;h<16;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.head&&(A.head.xflags=l&255,A.head.os=l>>8),A.flags&512&&A.wrap&4&&(N[0]=l&255,N[1]=l>>>8&255,A.check=nn(A.check,N,2,0)),l=0,h=0,A.mode=BB;case BB:if(A.flags&1024){for(;h<16;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.length=l,A.head&&(A.head.extra_len=l),A.flags&512&&A.wrap&4&&(N[0]=l&255,N[1]=l>>>8&255,A.check=nn(A.check,N,2,0)),l=0,h=0}else A.head&&(A.head.extra=null);A.mode=bB;case bB:if(A.flags&1024&&(g=A.length,g>a&&(g=a),g&&(A.head&&(Ae=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Uint8Array(A.head.extra_len)),A.head.extra.set(r.subarray(i,i+g),Ae)),A.flags&512&&A.wrap&4&&(A.check=nn(A.check,r,g,i)),a-=g,i+=g,A.length-=g),A.length))break e;A.length=0,A.mode=CB;case CB:if(A.flags&2048){if(a===0)break e;g=0;do Ae=r[i+g++],A.head&&Ae&&A.length<65536&&(A.head.name+=String.fromCharCode(Ae));while(Ae&&g<a);if(A.flags&512&&A.wrap&4&&(A.check=nn(A.check,r,g,i)),a-=g,i+=g,Ae)break e}else A.head&&(A.head.name=null);A.length=0,A.mode=EB;case EB:if(A.flags&4096){if(a===0)break e;g=0;do Ae=r[i+g++],A.head&&Ae&&A.length<65536&&(A.head.comment+=String.fromCharCode(Ae));while(Ae&&g<a);if(A.flags&512&&A.wrap&4&&(A.check=nn(A.check,r,g,i)),a-=g,i+=g,Ae)break e}else A.head&&(A.head.comment=null);A.mode=FB;case FB:if(A.flags&512){for(;h<16;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(A.wrap&4&&l!==(A.check&65535)){t.msg="header crc mismatch",A.mode=Ar;break}l=0,h=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),t.adler=A.check=0,A.mode=xs;break;case UB:for(;h<32;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}t.adler=A.check=DB(l),l=0,h=0,A.mode=wd;case wd:if(A.havedict===0)return t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,A.hold=l,A.bits=h,iT;t.adler=A.check=1,A.mode=xs;case xs:if(e===rT||e===ud)break e;case Uw:if(A.last){l>>>=h&7,h-=h&7,A.mode=_w;break}for(;h<3;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}switch(A.last=l&1,l>>>=1,h-=1,l&3){case 0:A.mode=xB;break;case 1:if(hT(A),A.mode=fd,e===ud){l>>>=2,h-=2;break e}break;case 2:A.mode=SB;break;case 3:t.msg="invalid block type",A.mode=Ar}l>>>=2,h-=2;break;case xB:for(l>>>=h&7,h-=h&7;h<32;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if((l&65535)!==(l>>>16^65535)){t.msg="invalid stored block lengths",A.mode=Ar;break}if(A.length=l&65535,l=0,h=0,A.mode=xw,e===ud)break e;case xw:A.mode=_B;case _B:if(g=A.length,g){if(g>a&&(g=a),g>o&&(g=o),g===0)break e;n.set(r.subarray(i,i+g),s),a-=g,i+=g,o-=g,s+=g,A.length-=g;break}A.mode=xs;break;case SB:for(;h<14;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(A.nlen=(l&31)+257,l>>>=5,h-=5,A.ndist=(l&31)+1,l>>>=5,h-=5,A.ncode=(l&15)+4,l>>>=4,h-=4,A.nlen>286||A.ndist>30){t.msg="too many length or distance symbols",A.mode=Ar;break}A.have=0,A.mode=QB;case QB:for(;A.have<A.ncode;){for(;h<3;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.lens[O[A.have++]]=l&7,l>>>=3,h-=3}for(;A.have<19;)A.lens[O[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,Z={bits:A.lenbits},j=Gu(AT,A.lens,0,19,A.lencode,0,A.work,Z),A.lenbits=Z.bits,j){t.msg="invalid code lengths set",A.mode=Ar;break}A.have=0,A.mode=IB;case IB:for(;A.have<A.nlen+A.ndist;){for(;_=A.lencode[l&(1<<A.lenbits)-1],x=_>>>24,H=_>>>16&255,D=_&65535,!(x<=h);){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(D<16)l>>>=x,h-=x,A.lens[A.have++]=D;else{if(D===16){for(I=x+2;h<I;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(l>>>=x,h-=x,A.have===0){t.msg="invalid bit length repeat",A.mode=Ar;break}Ae=A.lens[A.have-1],g=3+(l&3),l>>>=2,h-=2}else if(D===17){for(I=x+3;h<I;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}l>>>=x,h-=x,Ae=0,g=3+(l&7),l>>>=3,h-=3}else{for(I=x+7;h<I;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}l>>>=x,h-=x,Ae=0,g=11+(l&127),l>>>=7,h-=7}if(A.have+g>A.nlen+A.ndist){t.msg="invalid bit length repeat",A.mode=Ar;break}for(;g--;)A.lens[A.have++]=Ae}}if(A.mode===Ar)break;if(A.lens[256]===0){t.msg="invalid code -- missing end-of-block",A.mode=Ar;break}if(A.lenbits=9,Z={bits:A.lenbits},j=Gu(hb,A.lens,0,A.nlen,A.lencode,0,A.work,Z),A.lenbits=Z.bits,j){t.msg="invalid literal/lengths set",A.mode=Ar;break}if(A.distbits=6,A.distcode=A.distdyn,Z={bits:A.distbits},j=Gu(db,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,Z),A.distbits=Z.bits,j){t.msg="invalid distances set",A.mode=Ar;break}if(A.mode=fd,e===ud)break e;case fd:A.mode=hd;case hd:if(a>=6&&o>=258){t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,A.hold=l,A.bits=h,XL(t,m),s=t.next_out,n=t.output,o=t.avail_out,i=t.next_in,r=t.input,a=t.avail_in,l=A.hold,h=A.bits,A.mode===xs&&(A.back=-1);break}for(A.back=0;_=A.lencode[l&(1<<A.lenbits)-1],x=_>>>24,H=_>>>16&255,D=_&65535,!(x<=h);){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(H&&(H&240)===0){for(k=x,re=H,fe=D;_=A.lencode[fe+((l&(1<<k+re)-1)>>k)],x=_>>>24,H=_>>>16&255,D=_&65535,!(k+x<=h);){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}l>>>=k,h-=k,A.back+=k}if(l>>>=x,h-=x,A.back+=x,A.length=D,H===0){A.mode=PB;break}if(H&32){A.back=-1,A.mode=xs;break}if(H&64){t.msg="invalid literal/length code",A.mode=Ar;break}A.extra=H&15,A.mode=LB;case LB:if(A.extra){for(I=A.extra;h<I;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.length+=l&(1<<A.extra)-1,l>>>=A.extra,h-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=TB;case TB:for(;_=A.distcode[l&(1<<A.distbits)-1],x=_>>>24,H=_>>>16&255,D=_&65535,!(x<=h);){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if((H&240)===0){for(k=x,re=H,fe=D;_=A.distcode[fe+((l&(1<<k+re)-1)>>k)],x=_>>>24,H=_>>>16&255,D=_&65535,!(k+x<=h);){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}l>>>=k,h-=k,A.back+=k}if(l>>>=x,h-=x,A.back+=x,H&64){t.msg="invalid distance code",A.mode=Ar;break}A.offset=D,A.extra=H&15,A.mode=NB;case NB:if(A.extra){for(I=A.extra;h<I;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}A.offset+=l&(1<<A.extra)-1,l>>>=A.extra,h-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){t.msg="invalid distance too far back",A.mode=Ar;break}A.mode=OB;case OB:if(o===0)break e;if(g=m-o,A.offset>g){if(g=A.offset-g,g>A.whave&&A.sane){t.msg="invalid distance too far back",A.mode=Ar;break}g>A.wnext?(g-=A.wnext,C=A.wsize-g):C=A.wnext-g,g>A.length&&(g=A.length),F=A.window}else F=n,C=s-A.offset,g=A.length;g>o&&(g=o),o-=g,A.length-=g;do n[s++]=F[C++];while(--g);A.length===0&&(A.mode=hd);break;case PB:if(o===0)break e;n[s++]=A.length,o--,A.mode=hd;break;case _w:if(A.wrap){for(;h<32;){if(a===0)break e;a--,l|=r[i++]<<h,h+=8}if(m-=o,t.total_out+=m,A.total+=m,A.wrap&4&&m&&(t.adler=A.check=A.flags?nn(A.check,n,m,s-m):Yu(A.check,n,m,s-m)),m=o,A.wrap&4&&(A.flags?l:DB(l))!==A.check){t.msg="incorrect data check",A.mode=Ar;break}l=0,h=0}A.mode=RB;case RB:if(A.wrap&&A.flags){for(;h<32;){if(a===0)break e;a--,l+=r[i++]<<h,h+=8}if(A.wrap&4&&l!==(A.total&4294967295)){t.msg="incorrect length check",A.mode=Ar;break}l=0,h=0}A.mode=kB;case kB:j=nT;break e;case Ar:j=pb;break e;case wb:return gb;case vb:default:return Ji}return t.next_out=s,t.avail_out=o,t.next_in=i,t.avail_in=a,A.hold=l,A.bits=h,(A.wsize||m!==t.avail_out&&A.mode<Ar&&(A.mode<_w||e!==gB))&&Cb(t,t.output,t.next_out,m-t.avail_out),v-=t.avail_in,m-=t.avail_out,t.total_in+=v,t.total_out+=m,A.total+=m,A.wrap&4&&m&&(t.adler=A.check=A.flags?nn(A.check,n,m,t.next_out-m):Yu(A.check,n,m,t.next_out-m)),t.data_type=A.bits+(A.last?64:0)+(A.mode===xs?128:0)+(A.mode===fd||A.mode===xw?256:0),(v===0&&m===0||e===gB)&&j===Al&&(j=aT),j},pT=t=>{if(rl(t))return Ji;let e=t.state;return e.window&&(e.window=null),t.state=null,Al},gT=(t,e)=>{if(rl(t))return Ji;let A=t.state;return(A.wrap&2)===0?Ji:(A.head=e,e.done=!1,Al)},wT=(t,e)=>{let A=e.length,r,n,i;return rl(t)||(r=t.state,r.wrap!==0&&r.mode!==wd)?Ji:r.mode===wd&&(n=1,n=Yu(n,e,A,0),n!==r.check)?pb:(i=Cb(t,e,A,A),i?(r.mode=wb,gb):(r.havedict=1,Al))},vT=yb,mT=Bb,yT=mb,BT=fT,bT=bb,CT=dT,ET=pT,FT=gT,UT=wT,xT="pako inflate (from Nodeca project)",za={inflateReset:vT,inflateReset2:mT,inflateResetKeep:yT,inflateInit:BT,inflateInit2:bT,inflate:CT,inflateEnd:ET,inflateGetHeader:FT,inflateSetDictionary:UT,inflateInfo:xT};function _T(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var ST=_T,Eb=Object.prototype.toString,{Z_NO_FLUSH:QT,Z_FINISH:MB,Z_OK:sc,Z_STREAM_END:Iw,Z_NEED_DICT:Lw,Z_STREAM_ERROR:IT,Z_DATA_ERROR:qB,Z_MEM_ERROR:LT,Z_BUF_ERROR:KB}=uc,TT={chunkSize:1024*64,windowBits:15,to:""};function rf(t){this.options=md.assign({},TT,t||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,e.windowBits===0&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(e.windowBits&15)===0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new ub,this.strm.avail_out=0;let A=za.inflateInit2(this.strm,e.windowBits);if(A!==sc)throw new Error(Zo[A]);if(this.header=new ST,za.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=Zu.string2buf(e.dictionary):Eb.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(A=za.inflateSetDictionary(this.strm,e.dictionary),A!==sc)))throw new Error(Zo[A])}rf.prototype.push=function(t,e){let A=this.strm,r=this.options.chunkSize,n=this.options.dictionary,i,s,a;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?MB:QT,Eb.call(t)==="[object ArrayBuffer]"?A.input=new Uint8Array(t):A.input=t,A.next_in=0,A.avail_in=A.input.length;;){for(A.avail_out===0&&(A.output=new Uint8Array(r),A.next_out=0,A.avail_out=r),i=za.inflate(A,s),i===Lw&&n&&(i=za.inflateSetDictionary(A,n),i===sc?i=za.inflate(A,s):i===qB&&(i=Lw));A.avail_in>0&&i===Iw&&A.state.wrap&2&&A.state.flags!==0&&A.input[A.next_in]!==0;)za.inflateReset(A),i=za.inflate(A,s);switch(i){case IT:case qB:case Lw:case LT:return this.onEnd(i),this.ended=!0,!1}if(a=A.avail_out,A.next_out&&(A.avail_out===0||i===Iw||s>0))if(this.options.to==="string"){let o=Zu.utf8border(A.output,A.next_out),l=A.next_out-o,h=Zu.buf2string(A.output,o);A.next_out=l,A.avail_out=r-l,l&&A.output.set(A.output.subarray(o,o+l),0),this.onData(h)}else this.onData(A.output.length===A.next_out?A.output:A.output.subarray(0,A.next_out)),A.avail_out=0,A.next_out=0;if(!((i===sc||i===KB)&&a===0)){if(i===Iw)return i=za.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(A.avail_in===0){if(s===MB)return i=za.inflateEnd(this.strm),this.onEnd(i===sc?KB:i),this.ended=!0,!1;break}}}return!0};rf.prototype.onData=function(t){this.chunks.push(t)};rf.prototype.onEnd=function(t){t===sc&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=md.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function $w(t,e){let A=new rf(e);if(A.push(t,!0),A.err)throw A.msg||Zo[A.err];return A.result}function NT(t,e){return e=e||{},e.raw=!0,$w(t,e)}var OT=rf,PT=$w,RT=NT,kT=$w,DT=uc,HT={Inflate:OT,inflate:PT,inflateRaw:RT,ungzip:kT,constants:DT},{Deflate:MV,deflate:qV,deflateRaw:KV,gzip:jV}=WL,{Inflate:MT,inflate:qT,inflateRaw:VV,ungzip:GV}=HT;var Xw=MT,Fb=qT;var xb=[];for(let t=0;t<256;t++){let e=t;for(let A=0;A<8;A++)e&1?e=3988292384^e>>>1:e=e>>>1;xb[t]=e}var Ub=4294967295;function KT(t,e,A){let r=t;for(let n=0;n<A;n++)r=xb[(r^e[n])&255]^r>>>8;return r}function jT(t,e){return(KT(Ub,t,e)^Ub)>>>0}function Yw(t,e,A){let r=t.readUint32(),n=jT(new Uint8Array(t.buffer,t.byteOffset+t.offset-e-4,e),e);if(n!==r)throw new Error(`CRC mismatch for chunk ${A}. Expected ${r}, found ${n}`)}function Bd(t,e,A){for(let r=0;r<A;r++)e[r]=t[r]}function bd(t,e,A,r){let n=0;for(;n<r;n++)e[n]=t[n];for(;n<A;n++)e[n]=t[n]+e[n-r]&255}function Cd(t,e,A,r){let n=0;if(A.length===0)for(;n<r;n++)e[n]=t[n];else for(;n<r;n++)e[n]=t[n]+A[n]&255}function Ed(t,e,A,r,n){let i=0;if(A.length===0){for(;i<n;i++)e[i]=t[i];for(;i<r;i++)e[i]=t[i]+(e[i-n]>>1)&255}else{for(;i<n;i++)e[i]=t[i]+(A[i]>>1)&255;for(;i<r;i++)e[i]=t[i]+(e[i-n]+A[i]>>1)&255}}function Fd(t,e,A,r,n){let i=0;if(A.length===0){for(;i<n;i++)e[i]=t[i];for(;i<r;i++)e[i]=t[i]+e[i-n]&255}else{for(;i<n;i++)e[i]=t[i]+A[i]&255;for(;i<r;i++)e[i]=t[i]+VT(e[i-n],A[i],A[i-n])&255}}function VT(t,e,A){let r=t+e-A,n=Math.abs(r-t),i=Math.abs(r-e),s=Math.abs(r-A);return n<=i&&n<=s?t:i<=s?e:A}function _b(t,e,A,r,n,i){switch(t){case 0:Bd(e,A,n);break;case 1:bd(e,A,n,i);break;case 2:Cd(e,A,r,n);break;case 3:Ed(e,A,r,n,i);break;case 4:Fd(e,A,r,n,i);break;default:throw new Error(`Unsupported filter: ${t}`)}}var GT=new Uint16Array([255]),zT=new Uint8Array(GT.buffer),WT=zT[0]===255;function Sb(t){let{data:e,width:A,height:r,channels:n,depth:i}=t,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],a=Math.ceil(i/8)*n,o=new Uint8Array(r*A*a),l=0;for(let h=0;h<7;h++){let v=s[h],m=Math.ceil((A-v.x)/v.xStep),g=Math.ceil((r-v.y)/v.yStep);if(m<=0||g<=0)continue;let C=m*a,F=new Uint8Array(C);for(let _=0;_<g;_++){let x=e[l++],H=e.subarray(l,l+C);l+=C;let D=new Uint8Array(C);_b(x,H,D,F,C,a),F.set(D);for(let k=0;k<m;k++){let re=v.x+k*v.xStep,fe=v.y+_*v.yStep;if(!(re>=A||fe>=r))for(let Ae=0;Ae<a;Ae++)o[(fe*A+re)*a+Ae]=D[k*a+Ae]}}}if(i===16){let h=new Uint16Array(o.buffer);if(WT)for(let v=0;v<h.length;v++)h[v]=$T(h[v]);return h}else return o}function $T(t){return(t&255)<<8|t>>8&255}var XT=new Uint16Array([255]),YT=new Uint8Array(XT.buffer),JT=YT[0]===255,ZT=new Uint8Array(0);function Jw(t){let{data:e,width:A,height:r,channels:n,depth:i}=t,s=Math.ceil(i/8)*n,a=Math.ceil(i/8*n*A),o=new Uint8Array(r*a),l=ZT,h=0,v,m;for(let g=0;g<r;g++){switch(v=e.subarray(h+1,h+1+a),m=o.subarray(g*a,(g+1)*a),e[h]){case 0:Bd(v,m,a);break;case 1:bd(v,m,a,s);break;case 2:Cd(v,m,l,a);break;case 3:Ed(v,m,l,a,s);break;case 4:Fd(v,m,l,a,s);break;default:throw new Error(`Unsupported filter: ${e[h]}`)}l=m,h+=a+1}if(i===16){let g=new Uint16Array(o.buffer);if(JT)for(let C=0;C<g.length;C++)g[C]=eN(g[C]);return g}else return o}function eN(t){return(t&255)<<8|t>>8&255}var Ud=Uint8Array.of(137,80,78,71,13,10,26,10);function Zw(t){if(!Qb(t.readBytes(Ud.length)))throw new Error("wrong PNG signature")}function Qb(t){if(t.length<Ud.length)return!1;for(let e=0;e<Ud.length;e++)if(t[e]!==Ud[e])return!1;return!0}var Ib="tEXt",AN=0,Lb=new TextDecoder("latin1");function rN(t){if(iN(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}var nN=/^[\u0000-\u00FF]*$/;function iN(t){if(!nN.test(t))throw new Error("invalid latin1 text")}function Tb(t,e,A){let r=e1(e);t[r]=aN(e,A-r.length-1)}function e1(t){for(t.mark();t.readByte()!==AN;);let e=t.offset;t.reset();let A=Lb.decode(t.readBytes(e-t.offset-1));return t.skip(1),rN(A),A}function aN(t,e){return Lb.decode(t.readBytes(e))}var Jn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},nf={UNKNOWN:-1,DEFLATE:0},xd={UNKNOWN:-1,ADAPTIVE:0},af={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},sf={NONE:0,BACKGROUND:1,PREVIOUS:2},_d={SOURCE:0,OVER:1};var of=class extends Hu{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(e,A={}){super(e);let{checkCrc:r=!1}=A;this._checkCrc=r,this._inflator=new Xw,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=nf.UNKNOWN,this._filterMethod=xd.UNKNOWN,this._interlaceMethod=af.UNKNOWN,this._colorType=Jn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Zw(this);!this._end;){let e=this.readUint32(),A=this.readChars(4);this.decodeChunk(e,A)}return this.decodeImage(),this._png}decodeApng(){for(Zw(this);!this._end;){let e=this.readUint32(),A=this.readChars(4);this.decodeApngChunk(e,A)}return this.decodeApngImage(),this._apng}decodeChunk(e,A){let r=this.offset;switch(A){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case Ib:Tb(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-r!==e)throw new Error(`Length mismatch while decoding chunk ${A}`);this._checkCrc?Yw(this,e+4,A):this.skip(4)}decodeApngChunk(e,A){let r=this.offset;switch(A!=="fdAT"&&A!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),A){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,A),this.offset=r+e;break}if(this.offset-r!==e)throw new Error(`Length mismatch while decoding chunk ${A}`);this._checkCrc?Yw(this,e+4,A):this.skip(4)}decodeIHDR(){let e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=sN(this.readUint8());let A=this.readUint8();this._colorType=A;let r;switch(A){case Jn.GREYSCALE:r=1;break;case Jn.TRUECOLOUR:r=3;break;case Jn.INDEXED_COLOUR:r=1;break;case Jn.GREYSCALE_ALPHA:r=2;break;case Jn.TRUECOLOUR_ALPHA:r=4;break;case Jn.UNKNOWN:default:throw new Error(`Unknown color type: ${A}`)}if(this._png.channels=r,this._compressionMethod=this.readUint8(),this._compressionMethod!==nf.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);let A=e/3;this._hasPalette=!0;let r=[];this._palette=r;for(let n=0;n<A;n++)r.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;let A=e,r=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,r,A)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let A=e,r=this.offset+this.byteOffset;if(r+=4,A-=4,this._inflator.push(new Uint8Array(this.buffer,r,A)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case Jn.GREYSCALE:case Jn.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let A=0;A<e/2;A++)this._transparency[A]=this.readUint16();break}case Jn.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let A=0;for(;A<e;A++){let r=this.readByte();this._palette[A].push(r)}for(;A<this._palette.length;A++)this._palette[A].push(255);break}case Jn.UNKNOWN:case Jn.GREYSCALE_ALPHA:case Jn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){let A=e1(this),r=this.readUint8();if(r!==nf.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${r}`);let n=this.readBytes(e-A.length-2);this._png.iccEmbeddedProfile={name:A,profile:Fb(n)}}decodepHYs(){let e=this.readUint32(),A=this.readUint32(),r=this.readByte();this._png.resolution={x:e,y:A,unit:r}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){let A={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},r=this._frames.at(e);if(r){if(r.data=Jw({data:r.data,width:r.width,height:r.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||r.xOffset===0&&r.yOffset===0&&r.width===this._png.width&&r.height===this._png.height)A.data=r.data;else{let n=this._apng.frames.at(e-1);this.disposeFrame(r,n,A),this.addFrameDataToCanvas(A,r)}this._apng.frames.push(A)}}return this._apng}disposeFrame(e,A,r){switch(e.disposeOp){case sf.NONE:break;case sf.BACKGROUND:for(let n=0;n<this._png.height;n++)for(let i=0;i<this._png.width;i++){let s=(n*e.width+i)*this._png.channels;for(let a=0;a<this._png.channels;a++)r.data[s+a]=0}break;case sf.PREVIOUS:r.data.set(A.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,A){let r=1<<this._png.depth,n=(i,s)=>{let a=((i+A.yOffset)*this._png.width+A.xOffset+s)*this._png.channels,o=(i*A.width+s)*this._png.channels;return{index:a,frameIndex:o}};switch(A.blendOp){case _d.SOURCE:for(let i=0;i<A.height;i++)for(let s=0;s<A.width;s++){let{index:a,frameIndex:o}=n(i,s);for(let l=0;l<this._png.channels;l++)e.data[a+l]=A.data[o+l]}break;case _d.OVER:for(let i=0;i<A.height;i++)for(let s=0;s<A.width;s++){let{index:a,frameIndex:o}=n(i,s);for(let l=0;l<this._png.channels;l++){let h=A.data[o+this._png.channels-1]/r,v=l%(this._png.channels-1)===0?1:A.data[o+l],m=Math.floor(h*v+(1-h)*e.data[a+l]);e.data[a+l]+=m}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);let e=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==xd.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===af.NO_INTERLACE)this._png.data=Jw({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===af.ADAM7)this._png.data=Sb({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){let e=this._inflator.result,A=this._frames.at(-1);A?A.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:sf.NONE,blendOp:_d.SOURCE,data:e}),this._inflator=new Xw,this._writingDataChunks=!1}};function sN(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var Nb;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(Nb||(Nb={}));function Ob(t,e){return new of(t,e).decode()}var Kt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function N2(){Kt.console&&typeof Kt.console.log=="function"&&Kt.console.log.apply(Kt.console,arguments)}var MA={log:N2,warn:function(t){Kt.console&&(typeof Kt.console.warn=="function"?Kt.console.warn.apply(Kt.console,arguments):N2.call(null,arguments))},error:function(t){Kt.console&&(typeof Kt.console.error=="function"?Kt.console.error.apply(Kt.console,arguments):N2(t))}};function O2(t,e,A){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){vl(r.response,e,A)},r.onerror=function(){MA.error("could not download file")},r.send()}function O_(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function mg(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var vl=Kt.saveAs||((typeof window>"u"?"undefined":dA(window))!=="object"||window!==Kt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,e,A){var r=Kt.URL||Kt.webkitURL,n=document.createElement("a");e=e||t.name||"download",n.download=e,n.rel="noopener",typeof t=="string"?(n.href=t,n.origin!==location.origin?O_(n.href)?O2(t,e,A):mg(n,n.target="_blank"):mg(n)):(n.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){mg(n)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,A){if(e=e||t.name||"download",typeof t=="string")if(O_(t))O2(t,e,A);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){mg(r)})}else navigator.msSaveOrOpenBlob((function(n,i){return i===void 0?i={autoBom:!1}:dA(i)!=="object"&&(MA.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n})(t,A),e)}:function(t,e,A,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return O2(t,e,A);var n=t.type==="application/octet-stream",i=/constructor/i.test(Kt.HTMLElement)||Kt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&(typeof FileReader>"u"?"undefined":dA(FileReader))==="object"){var a=new FileReader;a.onloadend=function(){var h=a.result;h=s?h:h.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=h:location=h,r=null},a.readAsDataURL(t)}else{var o=Kt.URL||Kt.webkitURL,l=o.createObjectURL(t);r?r.location=l:location.href=l,r=null,setTimeout(function(){o.revokeObjectURL(l)},4e4)}});function rS(t){var e;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var A=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(a){return[parseInt(a[1]),parseInt(a[2]),parseInt(a[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}}],r=0;r<A.length;r++){var n=A[r].re,i=A[r].process,s=n.exec(t);s&&(e=i(s),this.r=e[0],this.g=e[1],this.b=e[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var a=this.r.toString(16),o=this.g.toString(16),l=this.b.toString(16);return a.length==1&&(a="0"+a),o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),"#"+a+o+l}}var bg=Kt.atob.bind(Kt),P_=Kt.btoa.bind(Kt);function P2(t,e){var A=t[0],r=t[1],n=t[2],i=t[3];A=In(A,r,n,i,e[0],7,-680876936),i=In(i,A,r,n,e[1],12,-389564586),n=In(n,i,A,r,e[2],17,606105819),r=In(r,n,i,A,e[3],22,-1044525330),A=In(A,r,n,i,e[4],7,-176418897),i=In(i,A,r,n,e[5],12,1200080426),n=In(n,i,A,r,e[6],17,-1473231341),r=In(r,n,i,A,e[7],22,-45705983),A=In(A,r,n,i,e[8],7,1770035416),i=In(i,A,r,n,e[9],12,-1958414417),n=In(n,i,A,r,e[10],17,-42063),r=In(r,n,i,A,e[11],22,-1990404162),A=In(A,r,n,i,e[12],7,1804603682),i=In(i,A,r,n,e[13],12,-40341101),n=In(n,i,A,r,e[14],17,-1502002290),A=Ln(A,r=In(r,n,i,A,e[15],22,1236535329),n,i,e[1],5,-165796510),i=Ln(i,A,r,n,e[6],9,-1069501632),n=Ln(n,i,A,r,e[11],14,643717713),r=Ln(r,n,i,A,e[0],20,-373897302),A=Ln(A,r,n,i,e[5],5,-701558691),i=Ln(i,A,r,n,e[10],9,38016083),n=Ln(n,i,A,r,e[15],14,-660478335),r=Ln(r,n,i,A,e[4],20,-405537848),A=Ln(A,r,n,i,e[9],5,568446438),i=Ln(i,A,r,n,e[14],9,-1019803690),n=Ln(n,i,A,r,e[3],14,-187363961),r=Ln(r,n,i,A,e[8],20,1163531501),A=Ln(A,r,n,i,e[13],5,-1444681467),i=Ln(i,A,r,n,e[2],9,-51403784),n=Ln(n,i,A,r,e[7],14,1735328473),A=Tn(A,r=Ln(r,n,i,A,e[12],20,-1926607734),n,i,e[5],4,-378558),i=Tn(i,A,r,n,e[8],11,-2022574463),n=Tn(n,i,A,r,e[11],16,1839030562),r=Tn(r,n,i,A,e[14],23,-35309556),A=Tn(A,r,n,i,e[1],4,-1530992060),i=Tn(i,A,r,n,e[4],11,1272893353),n=Tn(n,i,A,r,e[7],16,-155497632),r=Tn(r,n,i,A,e[10],23,-1094730640),A=Tn(A,r,n,i,e[13],4,681279174),i=Tn(i,A,r,n,e[0],11,-358537222),n=Tn(n,i,A,r,e[3],16,-722521979),r=Tn(r,n,i,A,e[6],23,76029189),A=Tn(A,r,n,i,e[9],4,-640364487),i=Tn(i,A,r,n,e[12],11,-421815835),n=Tn(n,i,A,r,e[15],16,530742520),A=Nn(A,r=Tn(r,n,i,A,e[2],23,-995338651),n,i,e[0],6,-198630844),i=Nn(i,A,r,n,e[7],10,1126891415),n=Nn(n,i,A,r,e[14],15,-1416354905),r=Nn(r,n,i,A,e[5],21,-57434055),A=Nn(A,r,n,i,e[12],6,1700485571),i=Nn(i,A,r,n,e[3],10,-1894986606),n=Nn(n,i,A,r,e[10],15,-1051523),r=Nn(r,n,i,A,e[1],21,-2054922799),A=Nn(A,r,n,i,e[8],6,1873313359),i=Nn(i,A,r,n,e[15],10,-30611744),n=Nn(n,i,A,r,e[6],15,-1560198380),r=Nn(r,n,i,A,e[13],21,1309151649),A=Nn(A,r,n,i,e[4],6,-145523070),i=Nn(i,A,r,n,e[11],10,-1120210379),n=Nn(n,i,A,r,e[2],15,718787259),r=Nn(r,n,i,A,e[9],21,-343485551),t[0]=Eo(A,t[0]),t[1]=Eo(r,t[1]),t[2]=Eo(n,t[2]),t[3]=Eo(i,t[3])}function Sg(t,e,A,r,n,i){return e=Eo(Eo(e,t),Eo(r,i)),Eo(e<<n|e>>>32-n,A)}function In(t,e,A,r,n,i,s){return Sg(e&A|~e&r,t,e,n,i,s)}function Ln(t,e,A,r,n,i,s){return Sg(e&r|A&~r,t,e,n,i,s)}function Tn(t,e,A,r,n,i,s){return Sg(e^A^r,t,e,n,i,s)}function Nn(t,e,A,r,n,i,s){return Sg(A^(e|~r),t,e,n,i,s)}function nS(t){var e,A=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)P2(r,zq(t.substring(e-64,e)));t=t.substring(e-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)n[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(n[e>>2]|=128<<(e%4<<3),e>55)for(P2(r,n),e=0;e<16;e++)n[e]=0;return n[14]=8*A,P2(r,n),r}function zq(t){var e,A=[];for(e=0;e<64;e+=4)A[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return A}var R_="0123456789abcdef".split("");function Wq(t){for(var e="",A=0;A<4;A++)e+=R_[t>>8*A+4&15]+R_[t>>8*A&15];return e}function $q(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function q2(t){return nS(t).map($q).join("")}var Xq=(function(t){for(var e=0;e<t.length;e++)t[e]=Wq(t[e]);return t.join("")})(nS("hello"))!="5d41402abc4b2a76b9719d911017c592";function Eo(t,e){if(Xq){var A=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(A>>16)<<16|65535&A}return t+e&4294967295}function K2(t,e){var A,r,n,i;if(t!==A){for(var s=(n=t,i=1+(256/t.length|0),new Array(i+1).join(n)),a=[],o=0;o<256;o++)a[o]=o;var l=0;for(o=0;o<256;o++){var h=a[o];l=(l+h+s.charCodeAt(o))%256,a[o]=a[l],a[l]=h}A=t,r=a}else a=r;var v=e.length,m=0,g=0,C="";for(o=0;o<v;o++)g=(g+(h=a[m=(m+1)%256]))%256,a[m]=a[g],a[g]=h,s=a[(a[m]+a[g])%256],C+=String.fromCharCode(e.charCodeAt(o)^s);return C}var k_={print:4,modify:8,copy:16,"annot-forms":32};function Mc(t,e,A,r){this.v=1,this.r=2;var n=192;t.forEach(function(a){if(k_.perm!==void 0)throw new Error("Invalid permission: "+a);n+=k_[a]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var i=(e+this.padding).substr(0,32),s=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=q2(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=K2(this.encryptionKey,this.padding)}function qc(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",A=t.length,r=0;r<A;r++){var n=t.charCodeAt(r);e+=n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?"#"+("0"+n.toString(16)).slice(-2):t[r]}return e}function D_(t){if(dA(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(A,r,n){if(n=n||!1,typeof A!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(A)||(e[A]={});var i=Math.random().toString(35);return e[A][i]=[r,!!n],i},this.unsubscribe=function(A){for(var r in e)if(e[r][A])return delete e[r][A],Object.keys(e[r]).length===0&&delete e[r],!0;return!1},this.publish=function(A){if(e.hasOwnProperty(A)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in e[A]){var s=e[A][i];try{s[0].apply(t,r)}catch(a){Kt.console&&MA.error("jsPDF PubSub Error",a.message,a)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function xg(t){if(!(this instanceof xg))return new xg(t);var e="opacity,stroke-opacity".split(",");for(var A in t)t.hasOwnProperty(A)&&e.indexOf(A)>=0&&(this[A]=t[A]);this.id="",this.objectNumber=-1}function iS(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function ml(t,e,A,r,n){if(!(this instanceof ml))return new ml(t,e,A,r,n);this.type=t==="axial"?2:3,this.coords=e,this.colors=A,iS.call(this,r,n)}function Kc(t,e,A,r,n){if(!(this instanceof Kc))return new Kc(t,e,A,r,n);this.boundingBox=t,this.xStep=e,this.yStep=A,this.stream="",this.cloneIndex=0,iS.call(this,r,n)}function Ft(t){var e,A=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],s=[],a=1,o=16,l="S",h=null;dA(t=t||{})==="object"&&(A=t.orientation,r=t.unit||r,n=t.format||n,i=t.compress||t.compressPdf||i,(h=t.encryption||null)!==null&&(h.userPassword=h.userPassword||"",h.ownerPassword=h.ownerPassword||"",h.userPermissions=h.userPermissions||[]),a=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(e=t.precision),t.floatPrecision!==void 0&&(o=t.floatPrecision),l=t.defaultPathOperation||"S"),s=t.filters||(i===!0?["FlateEncode"]:s),r=r||"mm",A=(""+(A||"P")).toLowerCase();var v=t.putOnlyUsedFonts||!1,m={},g={internal:{},__private__:{}};g.__private__.PubSub=D_;var C="1.3",F=g.__private__.getPdfVersion=function(){return C};g.__private__.setPdfVersion=function(y){C=y};var _={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};g.__private__.getPageFormats=function(){return _};var x=g.__private__.getPageFormat=function(y){return _[y]};n=n||"a4";var H="compat",D="advanced",k=H;function re(){this.saveGraphicsState(),q(new _t(yt,0,0,-yt,0,fs()*yt).toString()+" cm"),this.setFontSize(this.getFontSize()/yt),l="n",k=D}function fe(){this.restoreGraphicsState(),l="S",k=H}var Ae=g.__private__.combineFontStyleAndFontWeight=function(y,S){if(y=="bold"&&S=="normal"||y=="bold"&&S==400||y=="normal"&&S=="italic"||y=="bold"&&S=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return S&&(y=S==400||S==="normal"?y==="italic"?"italic":"normal":S!=700&&S!=="bold"||y!=="normal"?(S==700?"bold":S)+""+y:"bold"),y};g.advancedAPI=function(y){var S=k===H;return S&&re.call(this),typeof y!="function"||(y(this),S&&fe.call(this)),this},g.compatAPI=function(y){var S=k===D;return S&&fe.call(this),typeof y!="function"||(y(this),S&&re.call(this)),this},g.isAdvancedAPI=function(){return k===D};var j,N=function(y){if(k!==D)throw new Error(y+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Z=g.roundToPrecision=g.__private__.roundToPrecision=function(y,S){var z=e||S;if(isNaN(y)||isNaN(z))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return y.toFixed(z).replace(/0+$/,"")};j=g.hpf=g.__private__.hpf=typeof o=="number"?function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(y,o)}:o==="smart"?function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(y,y>-1&&y<1?16:5)}:function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.hpf");return Z(y,16)};var I=g.f2=g.__private__.f2=function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.f2");return Z(y,2)},O=g.__private__.f3=function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.f3");return Z(y,3)},Y=g.scale=g.__private__.scale=function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.scale");return k===H?y*yt:k===D?y:void 0},ee=function(y){return Y((function(S){return k===H?fs()-S:k===D?S:void 0})(y))};g.__private__.setPrecision=g.setPrecision=function(y){typeof parseInt(y,10)=="number"&&(e=parseInt(y,10))};var ce,be="00000000000000000000000000000000",Fe=g.__private__.getFileId=function(){return be},de=g.__private__.setFileId=function(y){return be=y!==void 0&&/^[a-fA-F0-9]{32}$/.test(y)?y.toUpperCase():be.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),h!==null&&(ur=new Mc(h.userPermissions,h.userPassword,h.ownerPassword,be)),be};g.setFileId=function(y){return de(y),this},g.getFileId=function(){return Fe()};var Ee=g.__private__.convertDateToPDFDate=function(y){var S=y.getTimezoneOffset(),z=S<0?"+":"-",ne=Math.floor(Math.abs(S/60)),he=Math.abs(S%60),Se=[z,te(ne),"'",te(he),"'"].join("");return["D:",y.getFullYear(),te(y.getMonth()+1),te(y.getDate()),te(y.getHours()),te(y.getMinutes()),te(y.getSeconds()),Se].join("")},Pe=g.__private__.convertPDFDateToDate=function(y){var S=parseInt(y.substr(2,4),10),z=parseInt(y.substr(6,2),10)-1,ne=parseInt(y.substr(8,2),10),he=parseInt(y.substr(10,2),10),Se=parseInt(y.substr(12,2),10),ke=parseInt(y.substr(14,2),10);return new Date(S,z,ne,he,Se,ke,0)},Ue=g.__private__.setCreationDate=function(y){var S;if(y===void 0&&(y=new Date),y instanceof Date)S=Ee(y);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(y))throw new Error("Invalid argument passed to jsPDF.setCreationDate");S=y}return ce=S},P=g.__private__.getCreationDate=function(y){var S=ce;return y==="jsDate"&&(S=Pe(ce)),S};g.setCreationDate=function(y){return Ue(y),this},g.getCreationDate=function(y){return P(y)};var J,te=g.__private__.padd2=function(y){return("0"+parseInt(y)).slice(-2)},ie=g.__private__.padd2Hex=function(y){return("00"+(y=y.toString())).substr(y.length)},oe=0,ve=[],xe=[],_e=0,Le=[],Oe=[],Je=!1,qe=xe;g.__private__.setCustomOutputDestination=function(y){Je=!0,qe=y};var at=function(y){Je||(qe=y)};g.__private__.resetCustomOutputDestination=function(){Je=!1,qe=xe};var q=g.__private__.out=function(y){return y=y.toString(),_e+=y.length+1,qe.push(y),qe},je=g.__private__.write=function(y){return q(arguments.length===1?y.toString():Array.prototype.join.call(arguments," "))},Tt=g.__private__.getArrayBuffer=function(y){for(var S=y.length,z=new ArrayBuffer(S),ne=new Uint8Array(z);S--;)ne[S]=y.charCodeAt(S);return z},ut=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];g.__private__.getStandardFonts=function(){return ut};var Re=t.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(y){return Re=k===D?y/yt:y,this};var dt,$e=g.__private__.getFontSize=g.getFontSize=function(){return k===H?Re:Re*yt},lt=t.R2L||!1;g.__private__.setR2L=g.setR2L=function(y){return lt=y,this},g.__private__.getR2L=g.getR2L=function(){return lt};var Ze,Ut=g.__private__.setZoomMode=function(y){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(y))dt=y;else if(isNaN(y)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(y)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+y+'" is not recognized.');dt=y}else dt=parseInt(y,10)};g.__private__.getZoomMode=function(){return dt};var Nt,St=g.__private__.setPageMode=function(y){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(y)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+y+'" is not recognized.');Ze=y};g.__private__.getPageMode=function(){return Ze};var Ht=g.__private__.setLayoutMode=function(y){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(y)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+y+'" is not recognized.');Nt=y};g.__private__.getLayoutMode=function(){return Nt},g.__private__.setDisplayMode=g.setDisplayMode=function(y,S,z){return Ut(y),Ht(S),St(z),this};var Ot={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(y){if(Object.keys(Ot).indexOf(y)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ot[y]},g.__private__.getDocumentProperties=function(){return Ot},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(y){for(var S in Ot)Ot.hasOwnProperty(S)&&y[S]&&(Ot[S]=y[S]);return this},g.__private__.setDocumentProperty=function(y,S){if(Object.keys(Ot).indexOf(y)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ot[y]=S};var tt,yt,Xe,aA,Gt,It={},Rt={},tA=[],mt={},Jt={},nt={},xt={},fA=null,bt=0,Ct=[],sA=new D_(g),ln=t.hotfixes||[],qA={},WA={},Sr=[],_t=function y(S,z,ne,he,Se,ke){if(!(this instanceof y))return new y(S,z,ne,he,Se,ke);isNaN(S)&&(S=1),isNaN(z)&&(z=0),isNaN(ne)&&(ne=0),isNaN(he)&&(he=1),isNaN(Se)&&(Se=0),isNaN(ke)&&(ke=0),this._matrix=[S,z,ne,he,Se,ke]};Object.defineProperty(_t.prototype,"sx",{get:function(){return this._matrix[0]},set:function(y){this._matrix[0]=y}}),Object.defineProperty(_t.prototype,"shy",{get:function(){return this._matrix[1]},set:function(y){this._matrix[1]=y}}),Object.defineProperty(_t.prototype,"shx",{get:function(){return this._matrix[2]},set:function(y){this._matrix[2]=y}}),Object.defineProperty(_t.prototype,"sy",{get:function(){return this._matrix[3]},set:function(y){this._matrix[3]=y}}),Object.defineProperty(_t.prototype,"tx",{get:function(){return this._matrix[4]},set:function(y){this._matrix[4]=y}}),Object.defineProperty(_t.prototype,"ty",{get:function(){return this._matrix[5]},set:function(y){this._matrix[5]=y}}),Object.defineProperty(_t.prototype,"a",{get:function(){return this._matrix[0]},set:function(y){this._matrix[0]=y}}),Object.defineProperty(_t.prototype,"b",{get:function(){return this._matrix[1]},set:function(y){this._matrix[1]=y}}),Object.defineProperty(_t.prototype,"c",{get:function(){return this._matrix[2]},set:function(y){this._matrix[2]=y}}),Object.defineProperty(_t.prototype,"d",{get:function(){return this._matrix[3]},set:function(y){this._matrix[3]=y}}),Object.defineProperty(_t.prototype,"e",{get:function(){return this._matrix[4]},set:function(y){this._matrix[4]=y}}),Object.defineProperty(_t.prototype,"f",{get:function(){return this._matrix[5]},set:function(y){this._matrix[5]=y}}),Object.defineProperty(_t.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(_t.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(_t.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(_t.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),_t.prototype.join=function(y){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(j).join(y)},_t.prototype.multiply=function(y){var S=y.sx*this.sx+y.shy*this.shx,z=y.sx*this.shy+y.shy*this.sy,ne=y.shx*this.sx+y.sy*this.shx,he=y.shx*this.shy+y.sy*this.sy,Se=y.tx*this.sx+y.ty*this.shx+this.tx,ke=y.tx*this.shy+y.ty*this.sy+this.ty;return new _t(S,z,ne,he,Se,ke)},_t.prototype.decompose=function(){var y=this.sx,S=this.shy,z=this.shx,ne=this.sy,he=this.tx,Se=this.ty,ke=Math.sqrt(y*y+S*S),pt=(y/=ke)*z+(S/=ke)*ne;z-=y*pt,ne-=S*pt;var ft=Math.sqrt(z*z+ne*ne);return pt/=ft,y*(ne/=ft)<S*(z/=ft)&&(y=-y,S=-S,pt=-pt,ke=-ke),{scale:new _t(ke,0,0,ft,0,0),translate:new _t(1,0,0,1,he,Se),rotate:new _t(y,S,-S,y,0,0),skew:new _t(1,0,pt,1,0,0)}},_t.prototype.toString=function(y){return this.join(" ")},_t.prototype.inversed=function(){var y=this.sx,S=this.shy,z=this.shx,ne=this.sy,he=this.tx,Se=this.ty,ke=1/(y*ne-S*z),pt=ne*ke,ft=-S*ke,Mt=-z*ke,Dt=y*ke;return new _t(pt,ft,Mt,Dt,-pt*he-Mt*Se,-ft*he-Dt*Se)},_t.prototype.applyToPoint=function(y){var S=y.x*this.sx+y.y*this.shx+this.tx,z=y.x*this.shy+y.y*this.sy+this.ty;return new ls(S,z)},_t.prototype.applyToRectangle=function(y){var S=this.applyToPoint(y),z=this.applyToPoint(new ls(y.x+y.w,y.y+y.h));return new xo(S.x,S.y,z.x-S.x,z.y-S.y)},_t.prototype.clone=function(){var y=this.sx,S=this.shy,z=this.shx,ne=this.sy,he=this.tx,Se=this.ty;return new _t(y,S,z,ne,he,Se)},g.Matrix=_t;var On=g.matrixMult=function(y,S){return S.multiply(y)},ti=new _t(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=ti;var Lt=function(y,S){if(!Jt[y]){var z=(S instanceof ml?"Sh":"P")+(Object.keys(mt).length+1).toString(10);S.id=z,Jt[y]=z,mt[z]=S,sA.publish("addPattern",S)}};g.ShadingPattern=ml,g.TilingPattern=Kc,g.addShadingPattern=function(y,S){return N("addShadingPattern()"),Lt(y,S),this},g.beginTilingPattern=function(y){N("beginTilingPattern()"),_o(y.boundingBox[0],y.boundingBox[1],y.boundingBox[2]-y.boundingBox[0],y.boundingBox[3]-y.boundingBox[1],y.matrix)},g.endTilingPattern=function(y,S){N("endTilingPattern()"),S.stream=Oe[J].join(`
|
|
13
|
+
`),Lt(y,S),sA.publish("endTilingPattern",S),Sr.pop().restore()};var vr,IA=g.__private__.newObject=function(){var y=mA();return rr(y,!0),y},mA=g.__private__.newObjectDeferred=function(){return oe++,ve[oe]=function(){return _e},oe},rr=function(y,S){return S=typeof S=="boolean"&&S,ve[y]=_e,S&&q(y+" 0 obj"),y},Bn=g.__private__.newAdditionalObject=function(){var y={objId:mA(),content:""};return Le.push(y),y},yi=mA(),Pn=mA(),oA=g.__private__.decodeColorString=function(y){var S=y.split(" ");if(S.length!==2||S[1]!=="g"&&S[1]!=="G")S.length!==5||S[4]!=="k"&&S[4]!=="K"||(S=[(1-S[0])*(1-S[3]),(1-S[1])*(1-S[3]),(1-S[2])*(1-S[3]),"r"]);else{var z=parseFloat(S[0]);S=[z,z,z,"r"]}for(var ne="#",he=0;he<3;he++)ne+=("0"+Math.floor(255*parseFloat(S[he])).toString(16)).slice(-2);return ne},Qr=g.__private__.encodeColorString=function(y){var S;typeof y=="string"&&(y={ch1:y});var z=y.ch1,ne=y.ch2,he=y.ch3,Se=y.ch4,ke=y.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof z=="string"&&z.charAt(0)!=="#"){var pt=new rS(z);if(pt.ok)z=pt.toHex();else if(!/^\d*\.?\d*$/.test(z))throw new Error('Invalid color "'+z+'" passed to jsPDF.encodeColorString.')}if(typeof z=="string"&&/^#[0-9A-Fa-f]{3}$/.test(z)&&(z="#"+z[1]+z[1]+z[2]+z[2]+z[3]+z[3]),typeof z=="string"&&/^#[0-9A-Fa-f]{6}$/.test(z)){var ft=parseInt(z.substr(1),16);z=ft>>16&255,ne=ft>>8&255,he=255&ft}if(ne===void 0||Se===void 0&&z===ne&&ne===he)S=typeof z=="string"?z+" "+ke[0]:y.precision===2?I(z/255)+" "+ke[0]:O(z/255)+" "+ke[0];else if(Se===void 0||dA(Se)==="object"){if(Se&&!isNaN(Se.a)&&Se.a===0)return["1.","1.","1.",ke[1]].join(" ");S=typeof z=="string"?[z,ne,he,ke[1]].join(" "):y.precision===2?[I(z/255),I(ne/255),I(he/255),ke[1]].join(" "):[O(z/255),O(ne/255),O(he/255),ke[1]].join(" ")}else S=typeof z=="string"?[z,ne,he,Se,ke[2]].join(" "):y.precision===2?[I(z),I(ne),I(he),I(Se),ke[2]].join(" "):[O(z),O(ne),O(he),O(Se),ke[2]].join(" ");return S},Rn=g.__private__.getFilters=function(){return s},kr=g.__private__.putStream=function(y){var S=(y=y||{}).data||"",z=y.filters||Rn(),ne=y.alreadyAppliedFilters||[],he=y.addLength1||!1,Se=S.length,ke=y.objectId,pt=function(HA){return HA};if(h!==null&&ke===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");h!==null&&(pt=ur.encryptor(ke,0));var ft={};z===!0&&(z=["FlateEncode"]);var Mt=y.additionalKeyValues||[],Dt=(ft=Ft.API.processDataByFilters!==void 0?Ft.API.processDataByFilters(S,z):{data:S,reverseChain:[]}).reverseChain+(Array.isArray(ne)?ne.join(" "):ne.toString());if(ft.data.length!==0&&(Mt.push({key:"Length",value:ft.data.length}),he===!0&&Mt.push({key:"Length1",value:Se})),Dt.length!=0)if(Dt.split("/").length-1==1)Mt.push({key:"Filter",value:Dt});else{Mt.push({key:"Filter",value:"["+Dt+"]"});for(var lA=0;lA<Mt.length;lA+=1)if(Mt[lA].key==="DecodeParms"){for(var dr=[],LA=0;LA<ft.reverseChain.split("/").length-1;LA+=1)dr.push("null");dr.push(Mt[lA].value),Mt[lA].value="["+dr.join(" ")+"]"}}q("<<");for(var _A=0;_A<Mt.length;_A++)q("/"+Mt[_A].key+" "+Mt[_A].value);q(">>"),ft.data.length!==0&&(q("stream"),q(pt(ft.data)),q("endstream"))},Ai=g.__private__.putPage=function(y){var S=y.number,z=y.data,ne=y.objId,he=y.contentsObjId;rr(ne,!0),q("<</Type /Page"),q("/Parent "+y.rootDictionaryObjId+" 0 R"),q("/Resources "+y.resourceDictionaryObjId+" 0 R"),q("/MediaBox ["+parseFloat(j(y.mediaBox.bottomLeftX))+" "+parseFloat(j(y.mediaBox.bottomLeftY))+" "+j(y.mediaBox.topRightX)+" "+j(y.mediaBox.topRightY)+"]"),y.cropBox!==null&&q("/CropBox ["+j(y.cropBox.bottomLeftX)+" "+j(y.cropBox.bottomLeftY)+" "+j(y.cropBox.topRightX)+" "+j(y.cropBox.topRightY)+"]"),y.bleedBox!==null&&q("/BleedBox ["+j(y.bleedBox.bottomLeftX)+" "+j(y.bleedBox.bottomLeftY)+" "+j(y.bleedBox.topRightX)+" "+j(y.bleedBox.topRightY)+"]"),y.trimBox!==null&&q("/TrimBox ["+j(y.trimBox.bottomLeftX)+" "+j(y.trimBox.bottomLeftY)+" "+j(y.trimBox.topRightX)+" "+j(y.trimBox.topRightY)+"]"),y.artBox!==null&&q("/ArtBox ["+j(y.artBox.bottomLeftX)+" "+j(y.artBox.bottomLeftY)+" "+j(y.artBox.topRightX)+" "+j(y.artBox.topRightY)+"]"),typeof y.userUnit=="number"&&y.userUnit!==1&&q("/UserUnit "+y.userUnit),sA.publish("putPage",{objId:ne,pageContext:Ct[S],pageNumber:S,page:z}),q("/Contents "+he+" 0 R"),q(">>"),q("endobj");var Se=z.join(`
|
|
14
14
|
`);return k===D&&(Se+=`
|
|
15
|
-
Q`),rr(he,!0),kr({data:Se,filters:Rn(),objectId:he}),q("endobj"),ne},kn=g.__private__.putPages=function(){var y,S,z=[];for(y=1;y<=bt;y++)Ct[y].objId=mA(),Ct[y].contentsObjId=mA();for(y=1;y<=bt;y++)z.push(Ai({number:y,data:Oe[y],objId:Ct[y].objId,contentsObjId:Ct[y].contentsObjId,mediaBox:Ct[y].mediaBox,cropBox:Ct[y].cropBox,bleedBox:Ct[y].bleedBox,trimBox:Ct[y].trimBox,artBox:Ct[y].artBox,userUnit:Ct[y].userUnit,rootDictionaryObjId:
|
|
16
|
-
`);kr({data:z,additionalKeyValues:S,objectId:y.objectNumber}),q("endobj")},xa=function(y,S){S||(S=21);var z=IA(),ne=(function(ke,pt){var ft,Mt=[],Dt=1/(pt-1);for(ft=0;ft<1;ft+=Dt)Mt.push(ft);if(Mt.push(1),ke[0].offset!=0){var lA={offset:0,color:ke[0].color};ke.unshift(lA)}if(ke[ke.length-1].offset!=1){var dr={offset:1,color:ke[ke.length-1].color};ke.push(dr)}for(var LA="",_A=0,HA=0;HA<Mt.length;HA++){for(ft=Mt[HA];ft>ke[_A+1].offset;)_A++;var jA=ke[_A].offset,VA=(ft-jA)/(ke[_A+1].offset-jA),Jr=ke[_A].color,
|
|
15
|
+
Q`),rr(he,!0),kr({data:Se,filters:Rn(),objectId:he}),q("endobj"),ne},kn=g.__private__.putPages=function(){var y,S,z=[];for(y=1;y<=bt;y++)Ct[y].objId=mA(),Ct[y].contentsObjId=mA();for(y=1;y<=bt;y++)z.push(Ai({number:y,data:Oe[y],objId:Ct[y].objId,contentsObjId:Ct[y].contentsObjId,mediaBox:Ct[y].mediaBox,cropBox:Ct[y].cropBox,bleedBox:Ct[y].bleedBox,trimBox:Ct[y].trimBox,artBox:Ct[y].artBox,userUnit:Ct[y].userUnit,rootDictionaryObjId:yi,resourceDictionaryObjId:Pn}));rr(yi,!0),q("<</Type /Pages");var ne="/Kids [";for(S=0;S<bt;S++)ne+=z[S]+" 0 R ";q(ne+"]"),q("/Count "+bt),q(">>"),q("endobj"),sA.publish("postPutPages")},Di=function(y){sA.publish("putFont",{font:y,out:q,newObject:IA,putStream:kr}),y.isAlreadyPutted!==!0&&(y.objectNumber=IA(),q("<<"),q("/Type /Font"),q("/BaseFont /"+qc(y.postScriptName)),q("/Subtype /Type1"),typeof y.encoding=="string"&&q("/Encoding /"+y.encoding),q("/FirstChar 32"),q("/LastChar 255"),q(">>"),q("endobj"))},Ua=function(y){y.objectNumber=IA();var S=[];S.push({key:"Type",value:"/XObject"}),S.push({key:"Subtype",value:"/Form"}),S.push({key:"BBox",value:"["+[j(y.x),j(y.y),j(y.x+y.width),j(y.y+y.height)].join(" ")+"]"}),S.push({key:"Matrix",value:"["+y.matrix.toString()+"]"});var z=y.pages[1].join(`
|
|
16
|
+
`);kr({data:z,additionalKeyValues:S,objectId:y.objectNumber}),q("endobj")},xa=function(y,S){S||(S=21);var z=IA(),ne=(function(ke,pt){var ft,Mt=[],Dt=1/(pt-1);for(ft=0;ft<1;ft+=Dt)Mt.push(ft);if(Mt.push(1),ke[0].offset!=0){var lA={offset:0,color:ke[0].color};ke.unshift(lA)}if(ke[ke.length-1].offset!=1){var dr={offset:1,color:ke[ke.length-1].color};ke.push(dr)}for(var LA="",_A=0,HA=0;HA<Mt.length;HA++){for(ft=Mt[HA];ft>ke[_A+1].offset;)_A++;var jA=ke[_A].offset,VA=(ft-jA)/(ke[_A+1].offset-jA),Jr=ke[_A].color,Fi=ke[_A+1].color;LA+=ie(Math.round((1-VA)*Jr[0]+VA*Fi[0]).toString(16))+ie(Math.round((1-VA)*Jr[1]+VA*Fi[1]).toString(16))+ie(Math.round((1-VA)*Jr[2]+VA*Fi[2]).toString(16))}return LA.trim()})(y.colors,S),he=[];he.push({key:"FunctionType",value:"0"}),he.push({key:"Domain",value:"[0.0 1.0]"}),he.push({key:"Size",value:"["+S+"]"}),he.push({key:"BitsPerSample",value:"8"}),he.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),he.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),kr({data:ne,additionalKeyValues:he,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:z}),q("endobj"),y.objectNumber=IA(),q("<< /ShadingType "+y.type),q("/ColorSpace /DeviceRGB");var Se="/Coords ["+j(parseFloat(y.coords[0]))+" "+j(parseFloat(y.coords[1]))+" ";y.type===2?Se+=j(parseFloat(y.coords[2]))+" "+j(parseFloat(y.coords[3])):Se+=j(parseFloat(y.coords[2]))+" "+j(parseFloat(y.coords[3]))+" "+j(parseFloat(y.coords[4]))+" "+j(parseFloat(y.coords[5])),q(Se+="]"),y.matrix&&q("/Matrix ["+y.matrix.toString()+"]"),q("/Function "+z+" 0 R"),q("/Extend [true true]"),q(">>"),q("endobj")},_a=function(y,S){var z=mA(),ne=IA();S.push({resourcesOid:z,objectOid:ne}),y.objectNumber=ne;var he=[];he.push({key:"Type",value:"/Pattern"}),he.push({key:"PatternType",value:"1"}),he.push({key:"PaintType",value:"1"}),he.push({key:"TilingType",value:"1"}),he.push({key:"BBox",value:"["+y.boundingBox.map(j).join(" ")+"]"}),he.push({key:"XStep",value:j(y.xStep)}),he.push({key:"YStep",value:j(y.yStep)}),he.push({key:"Resources",value:z+" 0 R"}),y.matrix&&he.push({key:"Matrix",value:"["+y.matrix.toString()+"]"}),kr({data:y.stream,additionalKeyValues:he,objectId:y.objectNumber}),q("endobj")},Uo=function(y){for(var S in y.objectNumber=IA(),q("<<"),y)switch(S){case"opacity":q("/ca "+I(y[S]));break;case"stroke-opacity":q("/CA "+I(y[S]))}q(">>"),q("endobj")},Ir=function(y){rr(y.resourcesOid,!0),q("<<"),q("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var S in q("/Font <<"),It)It.hasOwnProperty(S)&&(v===!1||v===!0&&m.hasOwnProperty(S))&&q("/"+S+" "+It[S].objectNumber+" 0 R");q(">>")})(),(function(){if(Object.keys(mt).length>0){for(var S in q("/Shading <<"),mt)mt.hasOwnProperty(S)&&mt[S]instanceof ml&&mt[S].objectNumber>=0&&q("/"+S+" "+mt[S].objectNumber+" 0 R");sA.publish("putShadingPatternDict"),q(">>")}})(),(function(S){if(Object.keys(mt).length>0){for(var z in q("/Pattern <<"),mt)mt.hasOwnProperty(z)&&mt[z]instanceof g.TilingPattern&&mt[z].objectNumber>=0&&mt[z].objectNumber<S&&q("/"+z+" "+mt[z].objectNumber+" 0 R");sA.publish("putTilingPatternDict"),q(">>")}})(y.objectOid),(function(){if(Object.keys(nt).length>0){var S;for(S in q("/ExtGState <<"),nt)nt.hasOwnProperty(S)&&nt[S].objectNumber>=0&&q("/"+S+" "+nt[S].objectNumber+" 0 R");sA.publish("putGStateDict"),q(">>")}})(),(function(){for(var S in q("/XObject <<"),qA)qA.hasOwnProperty(S)&&qA[S].objectNumber>=0&&q("/"+S+" "+qA[S].objectNumber+" 0 R");sA.publish("putXobjectDict"),q(">>")})(),q(">>"),q("endobj")},Sa=function(y){Rt[y.fontName]=Rt[y.fontName]||{},Rt[y.fontName][y.fontStyle]=y.id},cn=function(y,S,z,ne,he){var Se={id:"F"+(Object.keys(It).length+1).toString(10),postScriptName:y,fontName:S,fontStyle:z,encoding:ne,isStandardFont:he||!1,metadata:{}};return sA.publish("addFont",{font:Se,instance:this}),It[Se.id]=Se,Sa(Se),Se.id},un=g.__private__.pdfEscape=g.pdfEscape=function(y,S){return(function(z,ne){var he,Se,ke,pt,ft,Mt,Dt,lA,dr;if(ke=(ne=ne||{}).sourceEncoding||"Unicode",ft=ne.outputEncoding,(ne.autoencode||ft)&&It[tt].metadata&&It[tt].metadata[ke]&&It[tt].metadata[ke].encoding&&(pt=It[tt].metadata[ke].encoding,!ft&&It[tt].encoding&&(ft=It[tt].encoding),!ft&&pt.codePages&&(ft=pt.codePages[0]),typeof ft=="string"&&(ft=pt[ft]),ft)){for(Dt=!1,Mt=[],he=0,Se=z.length;he<Se;he++)(lA=ft[z.charCodeAt(he)])?Mt.push(String.fromCharCode(lA)):Mt.push(z[he]),Mt[he].charCodeAt(0)>>8&&(Dt=!0);z=Mt.join("")}for(he=z.length;Dt===void 0&&he!==0;)z.charCodeAt(he-1)>>8&&(Dt=!0),he--;if(!Dt)return z;for(Mt=ne.noBOM?[]:[254,255],he=0,Se=z.length;he<Se;he++){if((dr=(lA=z.charCodeAt(he))>>8)>>8)throw new Error("Character at position "+he+" of string '"+z+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Mt.push(dr),Mt.push(lA-(dr<<8))}return String.fromCharCode.apply(void 0,Mt)})(y,S).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Bi=g.__private__.beginPage=function(y){Oe[++bt]=[],Ct[bt]={objId:0,contentsObjId:0,userUnit:Number(a),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(y[0]),topRightY:Number(y[1])}},ri(bt),at(Oe[J])},is=function(y,S){var z,ne,he;switch(A=S||A,typeof y=="string"&&(z=x(y.toLowerCase()),Array.isArray(z)&&(ne=z[0],he=z[1])),Array.isArray(y)&&(ne=y[0]*yt,he=y[1]*yt),isNaN(ne)&&(ne=n[0],he=n[1]),(ne>14400||he>14400)&&(MA.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ne=Math.min(14400,ne),he=Math.min(14400,he)),n=[ne,he],A.substr(0,1)){case"l":he>ne&&(n=[he,ne]);break;case"p":ne>he&&(n=[he,ne])}Bi(n),Zc(Pt),q(Ps),hr!==0&&q(hr+" J"),Ta!==0&&q(Ta+" j"),sA.publish("addPage",{pageNumber:bt})},Qa=function(y){y>0&&y<=bt&&(Oe.splice(y,1),Ct.splice(y,1),bt--,J>bt&&(J=bt),this.setPage(J))},ri=function(y){y>0&&y<=bt&&(J=y)},ni=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return Oe.length-1},ra=function(y,S,z){var ne,he=void 0;return z=z||{},y=y!==void 0?y:It[tt].fontName,S=S!==void 0?S:It[tt].fontStyle,ne=y.toLowerCase(),Rt[ne]!==void 0&&Rt[ne][S]!==void 0?he=Rt[ne][S]:Rt[y]!==void 0&&Rt[y][S]!==void 0?he=Rt[y][S]:z.disableWarning===!1&&MA.warn("Unable to look up font label for font '"+y+"', '"+S+"'. Refer to getFontList() for available fonts."),he||z.noFallback||(he=Rt.times[S])==null&&(he=Rt.times.normal),he},Dr=g.__private__.putInfo=function(){var y=IA(),S=function(ne){return ne};for(var z in h!==null&&(S=ur.encryptor(y,0)),q("<<"),q("/Producer ("+un(S("jsPDF "+Ft.version))+")"),Ot)Ot.hasOwnProperty(z)&&Ot[z]&&q("/"+z.substr(0,1).toUpperCase()+z.substr(1)+" ("+un(S(Ot[z]))+")");q("/CreationDate ("+un(S(ce))+")"),q(">>"),q("endobj")},ii=g.__private__.putCatalog=function(y){var S=(y=y||{}).rootDictionaryObjId||yi;switch(IA(),q("<<"),q("/Type /Catalog"),q("/Pages "+S+" 0 R"),dt||(dt="fullwidth"),dt){case"fullwidth":q("/OpenAction [3 0 R /FitH null]");break;case"fullheight":q("/OpenAction [3 0 R /FitV null]");break;case"fullpage":q("/OpenAction [3 0 R /Fit]");break;case"original":q("/OpenAction [3 0 R /XYZ null null 1]");break;default:var z=""+dt;z.substr(z.length-1)==="%"&&(dt=parseInt(dt)/100),typeof dt=="number"&&q("/OpenAction [3 0 R /XYZ null null "+I(dt)+"]")}switch(Nt||(Nt="continuous"),Nt){case"continuous":q("/PageLayout /OneColumn");break;case"single":q("/PageLayout /SinglePage");break;case"two":case"twoleft":q("/PageLayout /TwoColumnLeft");break;case"tworight":q("/PageLayout /TwoColumnRight")}Ze&&q("/PageMode /"+Ze),sA.publish("putCatalog"),q(">>"),q("endobj")},$r=g.__private__.putTrailer=function(){q("trailer"),q("<<"),q("/Size "+(oe+1)),q("/Root "+oe+" 0 R"),q("/Info "+(oe-1)+" 0 R"),h!==null&&q("/Encrypt "+ur.oid+" 0 R"),q("/ID [ <"+be+"> <"+be+"> ]"),q(">>")},DA=g.__private__.putHeader=function(){q("%PDF-"+C),q("%\xBA\xDF\xAC\xE0")},Hi=g.__private__.putXRef=function(){var y="0000000000";q("xref"),q("0 "+(oe+1)),q("0000000000 65535 f ");for(var S=1;S<=oe;S++)typeof ve[S]=="function"?q((y+ve[S]()).slice(-10)+" 00000 n "):ve[S]!==void 0?q((y+ve[S]).slice(-10)+" 00000 n "):q("0000000000 00000 n ")},Dn=g.__private__.buildDocument=function(){var y;oe=0,_e=0,xe=[],ve=[],Le=[],yi=mA(),Pn=mA(),at(xe),sA.publish("buildDocument"),DA(),kn(),(function(){sA.publish("putAdditionalObjects");for(var z=0;z<Le.length;z++){var ne=Le[z];rr(ne.objId,!0),q(ne.content),q("endobj")}sA.publish("postPutAdditionalObjects")})(),y=[],(function(){for(var z in It)It.hasOwnProperty(z)&&(v===!1||v===!0&&m.hasOwnProperty(z))&&Di(It[z])})(),(function(){var z;for(z in nt)nt.hasOwnProperty(z)&&Uo(nt[z])})(),(function(){for(var z in qA)qA.hasOwnProperty(z)&&Ua(qA[z])})(),(function(z){var ne;for(ne in mt)mt.hasOwnProperty(ne)&&(mt[ne]instanceof ml?xa(mt[ne]):mt[ne]instanceof Kc&&_a(mt[ne],z))})(y),sA.publish("putResources"),y.forEach(Ir),Ir({resourcesOid:Pn,objectOid:Number.MAX_SAFE_INTEGER}),sA.publish("postPutResources"),h!==null&&(ur.oid=IA(),q("<<"),q("/Filter /Standard"),q("/V "+ur.v),q("/R "+ur.r),q("/U <"+ur.toHexString(ur.U)+">"),q("/O <"+ur.toHexString(ur.O)+">"),q("/P "+ur.P),q(">>"),q("endobj")),Dr(),ii();var S=_e;return Hi(),$r(),q("startxref"),q(""+S),q("%%EOF"),at(Oe[J]),xe.join(`
|
|
17
17
|
`)},$A=g.__private__.getBlob=function(y){return new Blob([Tt(y)],{type:"application/pdf"})},as=function(y){for(;y.firstChild;)y.removeChild(y.firstChild)},Xr=function(y){var S,z=y.document,ne=z.documentElement,he=z.head,Se=z.body;return he||(he=z.createElement("head"),ne.appendChild(he)),Se||(Se=z.createElement("body"),ne.appendChild(Se)),as(he),as(Se),(S=z.createElement("style")).appendChild(z.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),he.appendChild(S),{document:z,body:Se}},Ia=g.output=g.__private__.output=(vr=function(y,S){switch(typeof(S=S||{})=="string"?S={filename:S}:S.filename=S.filename||"generated.pdf",y){case void 0:return Dn();case"save":g.save(S.filename);break;case"arraybuffer":return Tt(Dn());case"blob":return $A(Dn());case"bloburi":case"bloburl":if(Kt.URL!==void 0&&typeof Kt.URL.createObjectURL=="function")return Kt.URL&&Kt.URL.createObjectURL($A(Dn()))||void 0;MA.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var z="",ne=Dn();try{z=P_(ne)}catch{z=P_(unescape(encodeURIComponent(ne)))}return"data:application/pdf;filename="+encodeURIComponent(S.filename)+";base64,"+z;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Kt)==="[object Window]"){var he="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Se=!S.pdfObjectUrl;Se||(he=S.pdfObjectUrl);var ke=Kt.open();if(ke!==null){var pt=Xr(ke),ft=pt.document.createElement("script"),Mt=this;ft.src=he,Se&&(ft.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",ft.crossOrigin="anonymous"),ft.onload=function(){ke.PDFObject.embed(Mt.output("dataurlstring"),S)},pt.body.appendChild(ft)}return ke}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Kt)==="[object Window]"){var Dt=S.pdfJsUrl||"examples/PDF.js/web/viewer.html",lA=Kt.open();if(lA!==null){var dr=Xr(lA),LA=dr.document.createElement("iframe"),_A=Dt.indexOf("?")===-1?"?":"&";Mt=this,LA.id="pdfViewer",LA.width="500px",LA.height="400px",LA.src=Dt+_A+"file=&downloadName="+encodeURIComponent(S.filename),LA.onload=function(){lA.document.title=S.filename,LA.contentWindow.PDFViewerApplication.open(Mt.output("bloburl"))},dr.body.appendChild(LA)}return lA}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Kt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var HA=Kt.open();if(HA!==null){var jA=Xr(HA),VA=jA.document.createElement("iframe");VA.src=this.output("datauristring",S),jA.body.appendChild(VA),HA.document.title=S.filename}if(HA||typeof safari>"u")return HA;break;case"datauri":case"dataurl":return Kt.document.location.href=this.output("datauristring",S);default:return null}},vr.foo=function(){try{return vr.apply(this,arguments)}catch(z){var y=z.stack||"";~y.indexOf(" at ")&&(y=y.split(" at ")[1]);var S="Error in function "+y.split(`
|
|
18
|
-
`)[0].split("<")[0]+": "+z.message;if(!Kt.console)throw new Error(S);Kt.console.error(S,z),Kt.alert&&alert(S)}},vr.foo.bar=vr,vr.foo),
|
|
18
|
+
`)[0].split("<")[0]+": "+z.message;if(!Kt.console)throw new Error(S);Kt.console.error(S,z),Kt.alert&&alert(S)}},vr.foo.bar=vr,vr.foo),bi=function(y){return Array.isArray(ln)===!0&&ln.indexOf(y)>-1};switch(r){case"pt":yt=1;break;case"mm":yt=72/25.4;break;case"cm":yt=72/2.54;break;case"in":yt=72;break;case"px":yt=bi("px_scaling")==1?.75:96/72;break;case"pc":case"em":yt=12;break;case"ex":yt=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);yt=r}var ur=null;Ue(),de();var na=g.__private__.getPageInfo=g.getPageInfo=function(y){if(isNaN(y)||y%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ct[y].objId,pageNumber:y,pageContext:Ct[y]}},ss=g.__private__.getPageInfoByObjId=function(y){if(isNaN(y)||y%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var S in Ct)if(Ct[S].objId===y)break;return na(S)},We=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:Ct[J].objId,pageNumber:J,pageContext:Ct[J]}};g.addPage=function(){return is.apply(this,arguments),this},g.setPage=function(){return ri.apply(this,arguments),at.call(this,Oe[J]),this},g.insertPage=function(y){return this.addPage(),this.movePage(J,y),this},g.movePage=function(y,S){var z,ne;if(y>S){z=Oe[y],ne=Ct[y];for(var he=y;he>S;he--)Oe[he]=Oe[he-1],Ct[he]=Ct[he-1];Oe[S]=z,Ct[S]=ne,this.setPage(S)}else if(y<S){z=Oe[y],ne=Ct[y];for(var Se=y;Se<S;Se++)Oe[Se]=Oe[Se+1],Ct[Se]=Ct[Se+1];Oe[S]=z,Ct[S]=ne,this.setPage(S)}return this},g.deletePage=function(){return Qa.apply(this,arguments),this},g.__private__.text=g.text=function(y,S,z,ne,he){var Se,ke,pt,ft,Mt,Dt,lA,dr,LA,_A=(ne=ne||{}).scope||this;if(typeof y=="number"&&typeof S=="number"&&(typeof z=="string"||Array.isArray(z))){var HA=z;z=S,S=y,y=HA}if(arguments[3]instanceof _t==0?(pt=arguments[4],ft=arguments[5],dA(lA=arguments[3])==="object"&&lA!==null||(typeof pt=="string"&&(ft=pt,pt=null),typeof lA=="string"&&(ft=lA,lA=null),typeof lA=="number"&&(pt=lA,lA=null),ne={flags:lA,angle:pt,align:ft})):(N("The transform parameter of text() with a Matrix value"),LA=he),isNaN(S)||isNaN(z)||y==null)throw new Error("Invalid arguments passed to jsPDF.text");if(y.length===0)return _A;var jA,VA="",Jr=typeof ne.lineHeightFactor=="number"?ne.lineHeightFactor:os,Fi=_A.internal.scaleFactor;function Ms(TA){return TA=TA.split(" ").join(Array(ne.TabLen||9).join(" ")),un(TA,lA)}function Na(TA){for(var RA,nr=TA.concat(),YA=[],ca=nr.length;ca--;)typeof(RA=nr.shift())=="string"?YA.push(RA):Array.isArray(TA)&&(RA.length===1||RA[1]===void 0&&RA[2]===void 0)?YA.push(RA[0]):YA.push([RA[0],RA[1],RA[2]]);return YA}function Ui(TA,RA){var nr;if(typeof TA=="string")nr=RA(TA)[0];else if(Array.isArray(TA)){for(var YA,ca,zs=TA.concat(),gs=[],Lo=zs.length;Lo--;)typeof(YA=zs.shift())=="string"?gs.push(RA(YA)[0]):Array.isArray(YA)&&typeof YA[0]=="string"&&(ca=RA(YA[0],YA[1],YA[2]),gs.push([ca[0],ca[1],ca[2]]));nr=gs}return nr}var Hn=!1,cA=!0;if(typeof y=="string")Hn=!0;else if(Array.isArray(y)){var qs=y.concat();ke=[];for(var Oa,Hr=qs.length;Hr--;)(typeof(Oa=qs.shift())!="string"||Array.isArray(Oa)&&typeof Oa[0]!="string")&&(cA=!1);Hn=cA}if(Hn===!1)throw new Error('Type of text must be string or Array. "'+y+'" is not recognized.');typeof y=="string"&&(y=y.match(/[\r?\n]/)?y.split(/\r\n|\r|\n/g):[y]);var si=Re/_A.internal.scaleFactor,Zr=si*(Jr-1);switch(ne.baseline){case"bottom":z-=Zr;break;case"top":z+=si-Zr;break;case"hanging":z+=si-2*Zr;break;case"middle":z+=si/2-Zr}if((Dt=ne.maxWidth||0)>0&&(typeof y=="string"?y=_A.splitTextToSize(y,Dt):Object.prototype.toString.call(y)==="[object Array]"&&(y=y.reduce(function(TA,RA){return TA.concat(_A.splitTextToSize(RA,Dt))},[]))),Se={text:y,x:S,y:z,options:ne,mutex:{pdfEscape:un,activeFontKey:tt,fonts:It,activeFontSize:Re}},sA.publish("preProcessText",Se),y=Se.text,pt=(ne=Se.options).angle,LA instanceof _t==0&&pt&&typeof pt=="number"){pt*=Math.PI/180,ne.rotationDirection===0&&(pt=-pt),k===D&&(pt=-pt);var So=Math.cos(pt),Mr=Math.sin(pt);LA=new _t(So,Mr,-Mr,So,0,0)}else pt&&pt instanceof _t&&(LA=pt);k!==D||LA||(LA=ti),(Mt=ne.charSpace||ks)!==void 0&&(VA+=j(Y(Mt))+` Tc
|
|
19
19
|
`,this.setCharSpace(this.getCharSpace()||0)),(dr=ne.horizontalScale)!==void 0&&(VA+=j(100*dr)+` Tz
|
|
20
20
|
`),ne.lang;var uA=-1,Qo=ne.renderingMode!==void 0?ne.renderingMode:ne.stroke,XA=_A.internal.getCurrentPageInfo().pageContext;switch(Qo){case 0:case!1:case"fill":uA=0;break;case 1:case!0:case"stroke":uA=1;break;case 2:case"fillThenStroke":uA=2;break;case 3:case"invisible":uA=3;break;case 4:case"fillAndAddForClipping":uA=4;break;case 5:case"strokeAndAddPathForClipping":uA=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":uA=6;break;case 7:case"addToPathForClipping":uA=7}var Ks=XA.usedRenderingMode!==void 0?XA.usedRenderingMode:-1;uA!==-1?VA+=uA+` Tr
|
|
21
21
|
`:Ks!==-1&&(VA+=`0 Tr
|
|
22
|
-
`),uA!==-1&&(XA.usedRenderingMode=uA),ft=ne.align||"left";var mr,
|
|
22
|
+
`),uA!==-1&&(XA.usedRenderingMode=uA),ft=ne.align||"left";var mr,xi=Re*Jr,BA=_A.internal.pageSize.getWidth(),hs=It[tt];Mt=ne.charSpace||ks,Dt=ne.maxWidth||0,lA=Object.assign({autoencode:!0,noBOM:!0},ne.flags);var Pa=[],js=function(TA){return _A.getStringUnitWidth(TA,{font:hs,charSpace:Mt,fontSize:Re,doKerning:!1})*Re/Fi};if(Object.prototype.toString.call(y)==="[object Array]"){var en;ke=Na(y),ft!=="left"&&(mr=ke.map(js));var qr,ds=0;if(ft==="right"){S-=mr[0],y=[],Hr=ke.length;for(var sa=0;sa<Hr;sa++)sa===0?(qr=Mi(S),en=qi(z)):(qr=Y(ds-mr[sa]),en=-xi),y.push([ke[sa],qr,en]),ds=mr[sa]}else if(ft==="center"){S-=mr[0]/2,y=[],Hr=ke.length;for(var yr=0;yr<Hr;yr++)yr===0?(qr=Mi(S),en=qi(z)):(qr=Y((ds-mr[yr])/2),en=-xi),y.push([ke[yr],qr,en]),ds=mr[yr]}else if(ft==="left"){y=[],Hr=ke.length;for(var Mn=0;Mn<Hr;Mn++)y.push(ke[Mn])}else if(ft==="justify"&&hs.encoding==="Identity-H"){y=[],Hr=ke.length,Dt=Dt!==0?Dt:BA;for(var bn=0,nA=0;nA<Hr;nA++)if(en=nA===0?qi(z):-xi,qr=nA===0?Mi(S):bn,nA<Hr-1){var Vi=Y((Dt-mr[nA])/(ke[nA].split(" ").length-1)),_i=ke[nA].split(" ");y.push([_i[0]+" ",qr,en]),bn=0;for(var oi=1;oi<_i.length;oi++){var oa=(js(_i[oi-1]+" "+_i[oi])-js(_i[oi]))*Fi+Vi;oi==_i.length-1?y.push([_i[oi],oa,0]):y.push([_i[oi]+" ",oa,0]),bn-=oa}}else y.push([ke[nA],qr,en]);y.push(["",bn,0])}else{if(ft!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(y=[],Hr=ke.length,Dt=Dt!==0?Dt:BA,nA=0;nA<Hr;nA++){en=nA===0?qi(z):-xi,qr=nA===0?Mi(S):0;var Vs=ke[nA].split(" ").length-1,Io=Vs>0?(Dt-mr[nA])/Vs:0;nA<Hr-1?Pa.push(j(Y(Io))):Pa.push(0),y.push([ke[nA],qr,en])}}}(typeof ne.R2L=="boolean"?ne.R2L:lt)===!0&&(y=Ui(y,function(TA,RA,nr){return[TA.split("").reverse().join(""),RA,nr]})),Se={text:y,x:S,y:z,options:ne,mutex:{pdfEscape:un,activeFontKey:tt,fonts:It,activeFontSize:Re}},sA.publish("postProcessText",Se),y=Se.text,jA=Se.mutex.isHex||!1;var Gi=It[tt].encoding;Gi!=="WinAnsiEncoding"&&Gi!=="StandardEncoding"||(y=Ui(y,function(TA,RA,nr){return[Ms(TA),RA,nr]})),ke=Na(y),y=[];for(var fn,ps,Ra,li=Array.isArray(ke[0])?1:0,la="",Gs=function(TA,RA,nr){var YA="";return nr instanceof _t?(nr=typeof ne.angle=="number"?On(nr,new _t(1,0,0,1,TA,RA)):On(new _t(1,0,0,1,TA,RA),nr),k===D&&(nr=On(new _t(1,0,0,-1,0,0),nr)),YA=nr.join(" ")+` Tm
|
|
23
23
|
`):YA=j(TA)+" "+j(RA)+` Td
|
|
24
|
-
`,YA},tn=0;tn<ke.length;tn++){switch(la="",li){case 1:Ra=(jA?"<":"(")+ke[tn][0]+(jA?">":")"),fn=parseFloat(ke[tn][1]),ps=parseFloat(ke[tn][2]);break;case 0:Ra=(jA?"<":"(")+ke[tn]+(jA?">":")"),fn=
|
|
24
|
+
`,YA},tn=0;tn<ke.length;tn++){switch(la="",li){case 1:Ra=(jA?"<":"(")+ke[tn][0]+(jA?">":")"),fn=parseFloat(ke[tn][1]),ps=parseFloat(ke[tn][2]);break;case 0:Ra=(jA?"<":"(")+ke[tn]+(jA?">":")"),fn=Mi(S),ps=qi(z)}Pa!==void 0&&Pa[tn]!==void 0&&(la=Pa[tn]+` Tw
|
|
25
25
|
`),tn===0?y.push(la+Gs(fn,ps,LA)+Ra):li===0?y.push(la+Ra):li===1&&y.push(la+Gs(fn,ps,LA)+Ra)}y=li===0?y.join(` Tj
|
|
26
26
|
T* `):y.join(` Tj
|
|
27
27
|
`),y+=` Tj
|
|
28
28
|
`;var pr=`BT
|
|
29
29
|
/`;return pr+=tt+" "+Re+` Tf
|
|
30
30
|
`,pr+=j(Re*Jr)+` TL
|
|
31
|
-
`,pr+=
|
|
32
|
-
`,pr+=VA,pr+=y,q(pr+="ET"),m[tt]=!0,_A};var X=g.__private__.clip=g.clip=function(y){return q(y==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return X("evenodd")},g.__private__.discardPath=g.discardPath=function(){return q("n"),this};var ye=g.__private__.isValidStyle=function(y){var S=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(y)!==-1&&(S=!0),S};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(y){return ye(y)&&(l=y),this};var Ve=g.__private__.getStyle=g.getStyle=function(y){var S=l;switch(y){case"D":case"S":S="S";break;case"F":S="f";break;case"FD":case"DF":S="B";break;case"f":case"f*":case"B":case"B*":S=y}return S},st=g.close=function(){return q("h"),this};g.stroke=function(){return q("S"),this},g.fill=function(y){return kt("f",y),this},g.fillEvenOdd=function(y){return kt("f*",y),this},g.fillStroke=function(y){return kt("B",y),this},g.fillStrokeEvenOdd=function(y){return kt("B*",y),this};var kt=function(y,S){dA(S)==="object"?yA(S,y):q(y)},Zt=function(y){y===null||k===D&&y===void 0||(y=Ve(y),q(y))};function KA(y,S,z,ne,he){var Se=new Kc(S||this.boundingBox,z||this.xStep,ne||this.yStep,this.gState,he||this.matrix);Se.stream=this.stream;var ke=y+"$$"+this.cloneIndex+++"$$";return Lt(ke,Se),Se}var yA=function(y,S){var z=Jt[y.key],ne=mt[z];if(ne instanceof ml)q("q"),q(Yr(S)),ne.gState&&g.setGState(ne.gState),q(y.matrix.toString()+" cm"),q("/"+z+" sh"),q("Q");else if(ne instanceof Kc){var he=new _t(1,0,0,-1,0,fs());y.matrix&&(he=he.multiply(y.matrix||ti),z=KA.call(ne,y.key,y.boundingBox,y.xStep,y.yStep,he).id),q("q"),q("/Pattern cs"),q("/"+z+" scn"),ne.gState&&g.setGState(ne.gState),q(S),q("Q")}},Yr=function(y){switch(y){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},fr=g.moveTo=function(y,S){return q(j(Y(y))+" "+j(ee(S))+" m"),this},La=g.lineTo=function(y,S){return q(j(Y(y))+" "+j(ee(S))+" l"),this},xA=g.curveTo=function(y,S,z,ne,he,Se){return q([j(Y(y)),j(ee(S)),j(Y(z)),j(ee(ne)),j(Y(he)),j(ee(Se)),"c"].join(" ")),this};g.__private__.line=g.line=function(y,S,z,ne,he){if(isNaN(y)||isNaN(S)||isNaN(z)||isNaN(ne)||!ye(he))throw new Error("Invalid arguments passed to jsPDF.line");return k===H?this.lines([[z-y,ne-S]],y,S,[1,1],he||"S"):this.lines([[z-y,ne-S]],y,S,[1,1]).stroke()},g.__private__.lines=g.lines=function(y,S,z,ne,he,Se){var ke,pt,ft,Mt,Dt,lA,dr,LA,_A,HA,jA,VA;if(typeof y=="number"&&(VA=z,z=S,S=y,y=VA),ne=ne||[1,1],Se=Se||!1,isNaN(S)||isNaN(z)||!Array.isArray(y)||!Array.isArray(ne)||!ye(he)||typeof Se!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(fr(S,z),ke=ne[0],pt=ne[1],Mt=y.length,HA=S,jA=z,ft=0;ft<Mt;ft++)(Dt=y[ft]).length===2?(HA=Dt[0]*ke+HA,jA=Dt[1]*pt+jA,La(HA,jA)):(lA=Dt[0]*ke+HA,dr=Dt[1]*pt+jA,LA=Dt[2]*ke+HA,_A=Dt[3]*pt+jA,HA=Dt[4]*ke+HA,jA=Dt[5]*pt+jA,xA(lA,dr,LA,_A,HA,jA));return Se&&st(),Zt(he),this},g.path=function(y){for(var S=0;S<y.length;S++){var z=y[S],ne=z.c;switch(z.op){case"m":fr(ne[0],ne[1]);break;case"l":La(ne[0],ne[1]);break;case"c":xA.apply(this,ne);break;case"h":st()}}return this},g.__private__.rect=g.rect=function(y,S,z,ne,he){if(isNaN(y)||isNaN(S)||isNaN(z)||isNaN(ne)||!ye(he))throw new Error("Invalid arguments passed to jsPDF.rect");return k===H&&(ne=-ne),q([j(Y(y)),j(ee(S)),j(Y(z)),j(Y(ne)),"re"].join(" ")),Zt(he),this},g.__private__.triangle=g.triangle=function(y,S,z,ne,he,Se,ke){if(isNaN(y)||isNaN(S)||isNaN(z)||isNaN(ne)||isNaN(he)||isNaN(Se)||!ye(ke))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[z-y,ne-S],[he-z,Se-ne],[y-he,S-Se]],y,S,[1,1],ke,!0),this},g.__private__.roundedRect=g.roundedRect=function(y,S,z,ne,he,Se,ke){if(isNaN(y)||isNaN(S)||isNaN(z)||isNaN(ne)||isNaN(he)||isNaN(Se)||!ye(ke))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var pt=4/3*(Math.SQRT2-1);return he=Math.min(he,.5*z),Se=Math.min(Se,.5*ne),this.lines([[z-2*he,0],[he*pt,0,he,Se-Se*pt,he,Se],[0,ne-2*Se],[0,Se*pt,-he*pt,Se,-he,Se],[2*he-z,0],[-he*pt,0,-he,-Se*pt,-he,-Se],[0,2*Se-ne],[0,-Se*pt,he*pt,-Se,he,-Se]],y+he,S,[1,1],ke,!0),this},g.__private__.ellipse=g.ellipse=function(y,S,z,ne,he){if(isNaN(y)||isNaN(S)||isNaN(z)||isNaN(ne)||!ye(he))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Se=4/3*(Math.SQRT2-1)*z,ke=4/3*(Math.SQRT2-1)*ne;return fr(y+z,S),xA(y+z,S-ke,y+Se,S-ne,y,S-ne),xA(y-Se,S-ne,y-z,S-ke,y-z,S),xA(y-z,S+ke,y-Se,S+ne,y,S+ne),xA(y+Se,S+ne,y+z,S+ke,y+z,S),Zt(he),this},g.__private__.circle=g.circle=function(y,S,z,ne){if(isNaN(y)||isNaN(S)||isNaN(z)||!ye(ne))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(y,S,z,z,ne)},g.setFont=function(y,S,z){return z&&(S=Ae(S,z)),tt=ra(y,S,{disableWarning:!1}),this};var Yc=g.__private__.getFont=g.getFont=function(){return It[ra.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var y,S,z={};for(y in Rt)if(Rt.hasOwnProperty(y))for(S in z[y]=[],Rt[y])Rt[y].hasOwnProperty(S)&&z[y].push(S);return z},g.addFont=function(y,S,z,ne,he){var Se=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Se.indexOf(arguments[3])!==-1?he=arguments[3]:arguments[3]&&Se.indexOf(arguments[3])==-1&&(z=Ae(z,ne)),cn.call(this,y,S,z,he=he||"Identity-H")};var os,Pt=t.lineWidth||.200025,Jc=g.__private__.getLineWidth=g.getLineWidth=function(){return Pt},Zc=g.__private__.setLineWidth=g.setLineWidth=function(y){return Pt=y,q(j(Y(y))+" w"),this};g.__private__.setLineDash=Ft.API.setLineDash=Ft.API.setLineDashPattern=function(y,S){if(y=y||[],S=S||0,isNaN(S)||!Array.isArray(y))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return y=y.map(function(z){return j(Y(z))}).join(" "),S=j(Y(S)),q("["+y+"] "+S+" d"),this};var eu=g.__private__.getLineHeight=g.getLineHeight=function(){return Re*os};g.__private__.getLineHeight=g.getLineHeight=function(){return Re*os};var ai=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(y){return typeof(y=y||1.15)=="number"&&(os=y),this},El=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return os};ai(t.lineHeight);var Hi=g.__private__.getHorizontalCoordinate=function(y){return Y(y)},Mi=g.__private__.getVerticalCoordinate=function(y){return k===D?y:Ct[J].mediaBox.topRightY-Ct[J].mediaBox.bottomLeftY-Y(y)},tu=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(y){return j(Hi(y))},Au=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(y){return j(Mi(y))},Ps=t.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return oA(Ps)},g.__private__.setStrokeColor=g.setDrawColor=function(y,S,z,ne){return Ps=Qr({ch1:y,ch2:S,ch3:z,ch4:ne,pdfColorType:"draw",precision:2}),q(Ps),this};var Rs=t.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return oA(Rs)},g.__private__.setFillColor=g.setFillColor=function(y,S,z,ne){return Rs=Qr({ch1:y,ch2:S,ch3:z,ch4:ne,pdfColorType:"fill",precision:2}),q(Rs),this};var bi=t.textColor||"0 g",Fl=g.__private__.getTextColor=g.getTextColor=function(){return oA(bi)};g.__private__.setTextColor=g.setTextColor=function(y,S,z,ne){return bi=Qr({ch1:y,ch2:S,ch3:z,ch4:ne,pdfColorType:"text",precision:3}),this};var ks=t.charSpace,ru=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(ks||0)};g.__private__.setCharSpace=g.setCharSpace=function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ks=y,this};var hr=0;g.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},g.__private__.setLineCap=g.setLineCap=function(y){var S=g.CapJoinStyles[y];if(S===void 0)throw new Error("Line cap style of '"+y+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return hr=S,q(S+" J"),this};var Ta=0;g.__private__.setLineJoin=g.setLineJoin=function(y){var S=g.CapJoinStyles[y];if(S===void 0)throw new Error("Line join style of '"+y+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ta=S,q(S+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(y){if(y=y||0,isNaN(y))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return q(j(Y(y))+" M"),this},g.GState=xg,g.setGState=function(y){(y=typeof y=="string"?nt[xt[y]]:qi(null,y)).equals(fA)||(q("/"+y.id+" gs"),fA=y)};var qi=function(y,S){if(!y||!xt[y]){var z=!1;for(var ne in nt)if(nt.hasOwnProperty(ne)&&nt[ne].equals(S)){z=!0;break}if(z)S=nt[ne];else{var he="GS"+(Object.keys(nt).length+1).toString(10);nt[he]=S,S.id=he}return y&&(xt[y]=S.id),sA.publish("addGState",S),S}};g.addGState=function(y,S){return qi(y,S),this},g.saveGraphicsState=function(){return q("q"),tA.push({key:tt,size:Re,color:bi}),this},g.restoreGraphicsState=function(){q("Q");var y=tA.pop();return tt=y.key,Re=y.size,bi=y.color,fA=null,this},g.setCurrentTransformationMatrix=function(y){return q(y.toString()+" cm"),this},g.comment=function(y){return q("#"+y),this};var ls=function(y,S){var z=y||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return z},set:function(Se){isNaN(Se)||(z=parseFloat(Se))}});var ne=S||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ne},set:function(Se){isNaN(Se)||(ne=parseFloat(Se))}});var he="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return he},set:function(Se){he=Se.toString()}}),this},xo=function(y,S,z,ne){ls.call(this,y,S),this.type="rect";var he=z||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return he},set:function(ke){isNaN(ke)||(he=parseFloat(ke))}});var Se=ne||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Se},set:function(ke){isNaN(ke)||(Se=parseFloat(ke))}}),this},Ds=function(){this.page=bt,this.currentPage=J,this.pages=Oe.slice(0),this.pagesContext=Ct.slice(0),this.x=Xe,this.y=aA,this.matrix=Gt,this.width=cs(J),this.height=aa(J),this.outputDestination=qe,this.id="",this.objectNumber=-1};Ds.prototype.restore=function(){bt=this.page,J=this.currentPage,Ct=this.pagesContext,Oe=this.pages,Xe=this.x,aA=this.y,Gt=this.matrix,Ki(J,this.width),Ci(J,this.height),qe=this.outputDestination};var _o=function(y,S,z,ne,he){Sr.push(new Ds),bt=J=0,Oe=[],Xe=y,aA=S,Gt=he,yi([z,ne])};for(var ia in g.beginFormObject=function(y,S,z,ne,he){return _o(y,S,z,ne,he),this},g.endFormObject=function(y){return(function(S){if(WA[S])Sr.pop().restore();else{var z=new Ds,ne="Xo"+(Object.keys(qA).length+1).toString(10);z.id=ne,WA[S]=ne,qA[ne]=z,sA.publish("addFormObject",z),Sr.pop().restore()}})(y),this},g.doFormObject=function(y,S){var z=qA[WA[y]];return q("q"),q(S.toString()+" cm"),q("/"+z.id+" Do"),q("Q"),this},g.getFormObject=function(y){var S=qA[WA[y]];return{x:S.x,y:S.y,width:S.width,height:S.height,matrix:S.matrix}},g.save=function(y,S){return y=y||"generated.pdf",(S=S||{}).returnPromise=S.returnPromise||!1,S.returnPromise===!1?(vl($A(Dn()),y),typeof vl.unload=="function"&&Kt.setTimeout&&setTimeout(vl.unload,911),this):new Promise(function(z,ne){try{var he=vl($A(Dn()),y);typeof vl.unload=="function"&&Kt.setTimeout&&setTimeout(vl.unload,911),z(he)}catch(Se){ne(Se.message)}})},Ft.API)Ft.API.hasOwnProperty(ia)&&(ia==="events"&&Ft.API.events.length?(function(y,S){var z,ne,he;for(he=S.length-1;he!==-1;he--)z=S[he][0],ne=S[he][1],y.subscribe.apply(y,[z].concat(typeof ne=="function"?[ne]:ne))})(sA,Ft.API.events):g[ia]=Ft.API[ia]);function cs(y){return Ct[y].mediaBox.topRightX-Ct[y].mediaBox.bottomLeftX}function Ki(y,S){Ct[y].mediaBox.topRightX=S+Ct[y].mediaBox.bottomLeftX}function aa(y){return Ct[y].mediaBox.topRightY-Ct[y].mediaBox.bottomLeftY}function Ci(y,S){Ct[y].mediaBox.topRightY=S+Ct[y].mediaBox.bottomLeftY}var us=g.getPageWidth=function(y){return cs(y=y||J)/yt},Hs=g.setPageWidth=function(y,S){Ki(y,S*yt)},fs=g.getPageHeight=function(y){return aa(y=y||J)/yt},Ul=g.setPageHeight=function(y,S){Ci(y,S*yt)};return g.internal={pdfEscape:un,getStyle:Ve,getFont:Yc,getFontSize:$e,getCharSpace:ru,getTextColor:Fl,getLineHeight:eu,getLineHeightFactor:El,getLineWidth:Jc,write:je,getHorizontalCoordinate:Hi,getVerticalCoordinate:Mi,getCoordinateString:tu,getVerticalCoordinateString:Au,collections:{},newObject:IA,newAdditionalObject:Bn,newObjectDeferred:mA,newObjectDeferredBegin:rr,getFilters:Rn,putStream:kr,events:sA,scaleFactor:yt,pageSize:{getWidth:function(){return us(J)},setWidth:function(y){Hs(J,y)},getHeight:function(){return fs(J)},setHeight:function(y){Ul(J,y)}},encryptionOptions:h,encryption:ur,getEncryptor:function(y){return h!==null?ur.encryptor(y,0):function(S){return S}},output:Ia,getNumberOfPages:ni,get pages(){return Oe},out:q,f2:I,f3:O,getPageInfo:na,getPageInfoByObjId:ss,getCurrentPageInfo:We,getPDFVersion:F,Point:ls,Rectangle:xo,Matrix:_t,hasHotfix:Bi},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return us(J)},set:function(y){Hs(J,y)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return fs(J)},set:function(y){Ul(J,y)},enumerable:!0,configurable:!0}),function(y){for(var S=0,z=ut.length;S<z;S++){var ne=cn.call(this,y[S][0],y[S][1],y[S][2],ut[S][3],!0);v===!1&&(m[ne]=!0);var he=y[S][0].split("-");Sa({id:ne,fontName:he[0],fontStyle:he[1]||""})}sA.publish("addFonts",{fonts:It,dictionary:Rt})}.call(g,ut),tt="F1",is(n,A),sA.publish("initialized"),g}Mc.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},Mc.prototype.toHexString=function(t){return t.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Mc.prototype.hexToBytes=function(t){for(var e=[],A=0;A<t.length;A+=2)e.push(String.fromCharCode(parseInt(t.substr(A,2),16)));return e.join("")},Mc.prototype.processOwnerPassword=function(t,e){return K2(q2(e).substr(0,5),t)},Mc.prototype.encryptor=function(t,e){var A=q2(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(r){return K2(A,r)}},xg.prototype.equals=function(t){var e,A="id,objectNumber,equals";if(!t||dA(t)!==dA(this))return!1;var r=0;for(e in this)if(!(A.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&A.indexOf(e)<0&&r--;return r===0},Ft.API={events:[]},Ft.version="4.2.1";var wr=Ft.API,G2=1,bl=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Dc=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Bl=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(e){var A=e.charCodeAt(0).toString(16).toUpperCase();return"#"+(A.length===1?"0"+A:A)})},$t=function(t){return t.toFixed(2)},Co=function(t){return t.toFixed(5)};wr.__acroform__={};var vi=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},H_=function(t){return t*G2},As=function(t){var e=new sS,A=vt.internal.getHeight(t)||0,r=vt.internal.getWidth(t)||0;return e.BBox=[0,0,Number($t(r)),Number($t(A))],e},Yq=wr.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},Jq=wr.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},Zq=wr.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},Ur=wr.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Zq(t,e-1)},xr=wr.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Yq(t,e-1)},_r=wr.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Jq(t,e-1)},e9=wr.__acroform__.calculateCoordinates=function(t,e){var A=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,n=t[0],i=t[1],s=t[2],a=t[3],o={};return o.lowerLeft_X=A(n)||0,o.lowerLeft_Y=r(i+a)||0,o.upperRight_X=A(n+s)||0,o.upperRight_Y=r(i)||0,[Number($t(o.lowerLeft_X)),Number($t(o.lowerLeft_Y)),Number($t(o.upperRight_X)),Number($t(o.upperRight_Y))]},t9=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],A=t._V||t.DV,r=j2(t,A),n=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+n+" "+$t(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=As(t);return i.scope=t.scope,i.stream=e.join(`
|
|
31
|
+
`,pr+=Ci+`
|
|
32
|
+
`,pr+=VA,pr+=y,q(pr+="ET"),m[tt]=!0,_A};var X=g.__private__.clip=g.clip=function(y){return q(y==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return X("evenodd")},g.__private__.discardPath=g.discardPath=function(){return q("n"),this};var ye=g.__private__.isValidStyle=function(y){var S=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(y)!==-1&&(S=!0),S};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(y){return ye(y)&&(l=y),this};var Ve=g.__private__.getStyle=g.getStyle=function(y){var S=l;switch(y){case"D":case"S":S="S";break;case"F":S="f";break;case"FD":case"DF":S="B";break;case"f":case"f*":case"B":case"B*":S=y}return S},st=g.close=function(){return q("h"),this};g.stroke=function(){return q("S"),this},g.fill=function(y){return kt("f",y),this},g.fillEvenOdd=function(y){return kt("f*",y),this},g.fillStroke=function(y){return kt("B",y),this},g.fillStrokeEvenOdd=function(y){return kt("B*",y),this};var kt=function(y,S){dA(S)==="object"?yA(S,y):q(y)},Zt=function(y){y===null||k===D&&y===void 0||(y=Ve(y),q(y))};function KA(y,S,z,ne,he){var Se=new Kc(S||this.boundingBox,z||this.xStep,ne||this.yStep,this.gState,he||this.matrix);Se.stream=this.stream;var ke=y+"$$"+this.cloneIndex+++"$$";return Lt(ke,Se),Se}var yA=function(y,S){var z=Jt[y.key],ne=mt[z];if(ne instanceof ml)q("q"),q(Yr(S)),ne.gState&&g.setGState(ne.gState),q(y.matrix.toString()+" cm"),q("/"+z+" sh"),q("Q");else if(ne instanceof Kc){var he=new _t(1,0,0,-1,0,fs());y.matrix&&(he=he.multiply(y.matrix||ti),z=KA.call(ne,y.key,y.boundingBox,y.xStep,y.yStep,he).id),q("q"),q("/Pattern cs"),q("/"+z+" scn"),ne.gState&&g.setGState(ne.gState),q(S),q("Q")}},Yr=function(y){switch(y){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},fr=g.moveTo=function(y,S){return q(j(Y(y))+" "+j(ee(S))+" m"),this},La=g.lineTo=function(y,S){return q(j(Y(y))+" "+j(ee(S))+" l"),this},xA=g.curveTo=function(y,S,z,ne,he,Se){return q([j(Y(y)),j(ee(S)),j(Y(z)),j(ee(ne)),j(Y(he)),j(ee(Se)),"c"].join(" ")),this};g.__private__.line=g.line=function(y,S,z,ne,he){if(isNaN(y)||isNaN(S)||isNaN(z)||isNaN(ne)||!ye(he))throw new Error("Invalid arguments passed to jsPDF.line");return k===H?this.lines([[z-y,ne-S]],y,S,[1,1],he||"S"):this.lines([[z-y,ne-S]],y,S,[1,1]).stroke()},g.__private__.lines=g.lines=function(y,S,z,ne,he,Se){var ke,pt,ft,Mt,Dt,lA,dr,LA,_A,HA,jA,VA;if(typeof y=="number"&&(VA=z,z=S,S=y,y=VA),ne=ne||[1,1],Se=Se||!1,isNaN(S)||isNaN(z)||!Array.isArray(y)||!Array.isArray(ne)||!ye(he)||typeof Se!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(fr(S,z),ke=ne[0],pt=ne[1],Mt=y.length,HA=S,jA=z,ft=0;ft<Mt;ft++)(Dt=y[ft]).length===2?(HA=Dt[0]*ke+HA,jA=Dt[1]*pt+jA,La(HA,jA)):(lA=Dt[0]*ke+HA,dr=Dt[1]*pt+jA,LA=Dt[2]*ke+HA,_A=Dt[3]*pt+jA,HA=Dt[4]*ke+HA,jA=Dt[5]*pt+jA,xA(lA,dr,LA,_A,HA,jA));return Se&&st(),Zt(he),this},g.path=function(y){for(var S=0;S<y.length;S++){var z=y[S],ne=z.c;switch(z.op){case"m":fr(ne[0],ne[1]);break;case"l":La(ne[0],ne[1]);break;case"c":xA.apply(this,ne);break;case"h":st()}}return this},g.__private__.rect=g.rect=function(y,S,z,ne,he){if(isNaN(y)||isNaN(S)||isNaN(z)||isNaN(ne)||!ye(he))throw new Error("Invalid arguments passed to jsPDF.rect");return k===H&&(ne=-ne),q([j(Y(y)),j(ee(S)),j(Y(z)),j(Y(ne)),"re"].join(" ")),Zt(he),this},g.__private__.triangle=g.triangle=function(y,S,z,ne,he,Se,ke){if(isNaN(y)||isNaN(S)||isNaN(z)||isNaN(ne)||isNaN(he)||isNaN(Se)||!ye(ke))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[z-y,ne-S],[he-z,Se-ne],[y-he,S-Se]],y,S,[1,1],ke,!0),this},g.__private__.roundedRect=g.roundedRect=function(y,S,z,ne,he,Se,ke){if(isNaN(y)||isNaN(S)||isNaN(z)||isNaN(ne)||isNaN(he)||isNaN(Se)||!ye(ke))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var pt=4/3*(Math.SQRT2-1);return he=Math.min(he,.5*z),Se=Math.min(Se,.5*ne),this.lines([[z-2*he,0],[he*pt,0,he,Se-Se*pt,he,Se],[0,ne-2*Se],[0,Se*pt,-he*pt,Se,-he,Se],[2*he-z,0],[-he*pt,0,-he,-Se*pt,-he,-Se],[0,2*Se-ne],[0,-Se*pt,he*pt,-Se,he,-Se]],y+he,S,[1,1],ke,!0),this},g.__private__.ellipse=g.ellipse=function(y,S,z,ne,he){if(isNaN(y)||isNaN(S)||isNaN(z)||isNaN(ne)||!ye(he))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Se=4/3*(Math.SQRT2-1)*z,ke=4/3*(Math.SQRT2-1)*ne;return fr(y+z,S),xA(y+z,S-ke,y+Se,S-ne,y,S-ne),xA(y-Se,S-ne,y-z,S-ke,y-z,S),xA(y-z,S+ke,y-Se,S+ne,y,S+ne),xA(y+Se,S+ne,y+z,S+ke,y+z,S),Zt(he),this},g.__private__.circle=g.circle=function(y,S,z,ne){if(isNaN(y)||isNaN(S)||isNaN(z)||!ye(ne))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(y,S,z,z,ne)},g.setFont=function(y,S,z){return z&&(S=Ae(S,z)),tt=ra(y,S,{disableWarning:!1}),this};var Yc=g.__private__.getFont=g.getFont=function(){return It[ra.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var y,S,z={};for(y in Rt)if(Rt.hasOwnProperty(y))for(S in z[y]=[],Rt[y])Rt[y].hasOwnProperty(S)&&z[y].push(S);return z},g.addFont=function(y,S,z,ne,he){var Se=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Se.indexOf(arguments[3])!==-1?he=arguments[3]:arguments[3]&&Se.indexOf(arguments[3])==-1&&(z=Ae(z,ne)),cn.call(this,y,S,z,he=he||"Identity-H")};var os,Pt=t.lineWidth||.200025,Jc=g.__private__.getLineWidth=g.getLineWidth=function(){return Pt},Zc=g.__private__.setLineWidth=g.setLineWidth=function(y){return Pt=y,q(j(Y(y))+" w"),this};g.__private__.setLineDash=Ft.API.setLineDash=Ft.API.setLineDashPattern=function(y,S){if(y=y||[],S=S||0,isNaN(S)||!Array.isArray(y))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return y=y.map(function(z){return j(Y(z))}).join(" "),S=j(Y(S)),q("["+y+"] "+S+" d"),this};var eu=g.__private__.getLineHeight=g.getLineHeight=function(){return Re*os};g.__private__.getLineHeight=g.getLineHeight=function(){return Re*os};var ai=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(y){return typeof(y=y||1.15)=="number"&&(os=y),this},El=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return os};ai(t.lineHeight);var Mi=g.__private__.getHorizontalCoordinate=function(y){return Y(y)},qi=g.__private__.getVerticalCoordinate=function(y){return k===D?y:Ct[J].mediaBox.topRightY-Ct[J].mediaBox.bottomLeftY-Y(y)},tu=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(y){return j(Mi(y))},Au=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(y){return j(qi(y))},Ps=t.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return oA(Ps)},g.__private__.setStrokeColor=g.setDrawColor=function(y,S,z,ne){return Ps=Qr({ch1:y,ch2:S,ch3:z,ch4:ne,pdfColorType:"draw",precision:2}),q(Ps),this};var Rs=t.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return oA(Rs)},g.__private__.setFillColor=g.setFillColor=function(y,S,z,ne){return Rs=Qr({ch1:y,ch2:S,ch3:z,ch4:ne,pdfColorType:"fill",precision:2}),q(Rs),this};var Ci=t.textColor||"0 g",Fl=g.__private__.getTextColor=g.getTextColor=function(){return oA(Ci)};g.__private__.setTextColor=g.setTextColor=function(y,S,z,ne){return Ci=Qr({ch1:y,ch2:S,ch3:z,ch4:ne,pdfColorType:"text",precision:3}),this};var ks=t.charSpace,ru=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(ks||0)};g.__private__.setCharSpace=g.setCharSpace=function(y){if(isNaN(y))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ks=y,this};var hr=0;g.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},g.__private__.setLineCap=g.setLineCap=function(y){var S=g.CapJoinStyles[y];if(S===void 0)throw new Error("Line cap style of '"+y+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return hr=S,q(S+" J"),this};var Ta=0;g.__private__.setLineJoin=g.setLineJoin=function(y){var S=g.CapJoinStyles[y];if(S===void 0)throw new Error("Line join style of '"+y+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ta=S,q(S+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(y){if(y=y||0,isNaN(y))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return q(j(Y(y))+" M"),this},g.GState=xg,g.setGState=function(y){(y=typeof y=="string"?nt[xt[y]]:Ki(null,y)).equals(fA)||(q("/"+y.id+" gs"),fA=y)};var Ki=function(y,S){if(!y||!xt[y]){var z=!1;for(var ne in nt)if(nt.hasOwnProperty(ne)&&nt[ne].equals(S)){z=!0;break}if(z)S=nt[ne];else{var he="GS"+(Object.keys(nt).length+1).toString(10);nt[he]=S,S.id=he}return y&&(xt[y]=S.id),sA.publish("addGState",S),S}};g.addGState=function(y,S){return Ki(y,S),this},g.saveGraphicsState=function(){return q("q"),tA.push({key:tt,size:Re,color:Ci}),this},g.restoreGraphicsState=function(){q("Q");var y=tA.pop();return tt=y.key,Re=y.size,Ci=y.color,fA=null,this},g.setCurrentTransformationMatrix=function(y){return q(y.toString()+" cm"),this},g.comment=function(y){return q("#"+y),this};var ls=function(y,S){var z=y||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return z},set:function(Se){isNaN(Se)||(z=parseFloat(Se))}});var ne=S||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ne},set:function(Se){isNaN(Se)||(ne=parseFloat(Se))}});var he="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return he},set:function(Se){he=Se.toString()}}),this},xo=function(y,S,z,ne){ls.call(this,y,S),this.type="rect";var he=z||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return he},set:function(ke){isNaN(ke)||(he=parseFloat(ke))}});var Se=ne||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Se},set:function(ke){isNaN(ke)||(Se=parseFloat(ke))}}),this},Ds=function(){this.page=bt,this.currentPage=J,this.pages=Oe.slice(0),this.pagesContext=Ct.slice(0),this.x=Xe,this.y=aA,this.matrix=Gt,this.width=cs(J),this.height=aa(J),this.outputDestination=qe,this.id="",this.objectNumber=-1};Ds.prototype.restore=function(){bt=this.page,J=this.currentPage,Ct=this.pagesContext,Oe=this.pages,Xe=this.x,aA=this.y,Gt=this.matrix,ji(J,this.width),Ei(J,this.height),qe=this.outputDestination};var _o=function(y,S,z,ne,he){Sr.push(new Ds),bt=J=0,Oe=[],Xe=y,aA=S,Gt=he,Bi([z,ne])};for(var ia in g.beginFormObject=function(y,S,z,ne,he){return _o(y,S,z,ne,he),this},g.endFormObject=function(y){return(function(S){if(WA[S])Sr.pop().restore();else{var z=new Ds,ne="Xo"+(Object.keys(qA).length+1).toString(10);z.id=ne,WA[S]=ne,qA[ne]=z,sA.publish("addFormObject",z),Sr.pop().restore()}})(y),this},g.doFormObject=function(y,S){var z=qA[WA[y]];return q("q"),q(S.toString()+" cm"),q("/"+z.id+" Do"),q("Q"),this},g.getFormObject=function(y){var S=qA[WA[y]];return{x:S.x,y:S.y,width:S.width,height:S.height,matrix:S.matrix}},g.save=function(y,S){return y=y||"generated.pdf",(S=S||{}).returnPromise=S.returnPromise||!1,S.returnPromise===!1?(vl($A(Dn()),y),typeof vl.unload=="function"&&Kt.setTimeout&&setTimeout(vl.unload,911),this):new Promise(function(z,ne){try{var he=vl($A(Dn()),y);typeof vl.unload=="function"&&Kt.setTimeout&&setTimeout(vl.unload,911),z(he)}catch(Se){ne(Se.message)}})},Ft.API)Ft.API.hasOwnProperty(ia)&&(ia==="events"&&Ft.API.events.length?(function(y,S){var z,ne,he;for(he=S.length-1;he!==-1;he--)z=S[he][0],ne=S[he][1],y.subscribe.apply(y,[z].concat(typeof ne=="function"?[ne]:ne))})(sA,Ft.API.events):g[ia]=Ft.API[ia]);function cs(y){return Ct[y].mediaBox.topRightX-Ct[y].mediaBox.bottomLeftX}function ji(y,S){Ct[y].mediaBox.topRightX=S+Ct[y].mediaBox.bottomLeftX}function aa(y){return Ct[y].mediaBox.topRightY-Ct[y].mediaBox.bottomLeftY}function Ei(y,S){Ct[y].mediaBox.topRightY=S+Ct[y].mediaBox.bottomLeftY}var us=g.getPageWidth=function(y){return cs(y=y||J)/yt},Hs=g.setPageWidth=function(y,S){ji(y,S*yt)},fs=g.getPageHeight=function(y){return aa(y=y||J)/yt},Ul=g.setPageHeight=function(y,S){Ei(y,S*yt)};return g.internal={pdfEscape:un,getStyle:Ve,getFont:Yc,getFontSize:$e,getCharSpace:ru,getTextColor:Fl,getLineHeight:eu,getLineHeightFactor:El,getLineWidth:Jc,write:je,getHorizontalCoordinate:Mi,getVerticalCoordinate:qi,getCoordinateString:tu,getVerticalCoordinateString:Au,collections:{},newObject:IA,newAdditionalObject:Bn,newObjectDeferred:mA,newObjectDeferredBegin:rr,getFilters:Rn,putStream:kr,events:sA,scaleFactor:yt,pageSize:{getWidth:function(){return us(J)},setWidth:function(y){Hs(J,y)},getHeight:function(){return fs(J)},setHeight:function(y){Ul(J,y)}},encryptionOptions:h,encryption:ur,getEncryptor:function(y){return h!==null?ur.encryptor(y,0):function(S){return S}},output:Ia,getNumberOfPages:ni,get pages(){return Oe},out:q,f2:I,f3:O,getPageInfo:na,getPageInfoByObjId:ss,getCurrentPageInfo:We,getPDFVersion:F,Point:ls,Rectangle:xo,Matrix:_t,hasHotfix:bi},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return us(J)},set:function(y){Hs(J,y)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return fs(J)},set:function(y){Ul(J,y)},enumerable:!0,configurable:!0}),function(y){for(var S=0,z=ut.length;S<z;S++){var ne=cn.call(this,y[S][0],y[S][1],y[S][2],ut[S][3],!0);v===!1&&(m[ne]=!0);var he=y[S][0].split("-");Sa({id:ne,fontName:he[0],fontStyle:he[1]||""})}sA.publish("addFonts",{fonts:It,dictionary:Rt})}.call(g,ut),tt="F1",is(n,A),sA.publish("initialized"),g}Mc.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},Mc.prototype.toHexString=function(t){return t.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Mc.prototype.hexToBytes=function(t){for(var e=[],A=0;A<t.length;A+=2)e.push(String.fromCharCode(parseInt(t.substr(A,2),16)));return e.join("")},Mc.prototype.processOwnerPassword=function(t,e){return K2(q2(e).substr(0,5),t)},Mc.prototype.encryptor=function(t,e){var A=q2(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(r){return K2(A,r)}},xg.prototype.equals=function(t){var e,A="id,objectNumber,equals";if(!t||dA(t)!==dA(this))return!1;var r=0;for(e in this)if(!(A.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&A.indexOf(e)<0&&r--;return r===0},Ft.API={events:[]},Ft.version="4.2.1";var wr=Ft.API,G2=1,bl=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Dc=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Bl=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(e){var A=e.charCodeAt(0).toString(16).toUpperCase();return"#"+(A.length===1?"0"+A:A)})},$t=function(t){return t.toFixed(2)},Co=function(t){return t.toFixed(5)};wr.__acroform__={};var mi=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},H_=function(t){return t*G2},As=function(t){var e=new sS,A=vt.internal.getHeight(t)||0,r=vt.internal.getWidth(t)||0;return e.BBox=[0,0,Number($t(r)),Number($t(A))],e},Yq=wr.__acroform__.setBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<e},Jq=wr.__acroform__.clearBit=function(t,e){if(t=t||0,e=e||0,isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<e)},Zq=wr.__acroform__.getBit=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<e?1:0},Ur=wr.__acroform__.getBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Zq(t,e-1)},xr=wr.__acroform__.setBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Yq(t,e-1)},_r=wr.__acroform__.clearBitForPdf=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Jq(t,e-1)},e9=wr.__acroform__.calculateCoordinates=function(t,e){var A=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,n=t[0],i=t[1],s=t[2],a=t[3],o={};return o.lowerLeft_X=A(n)||0,o.lowerLeft_Y=r(i+a)||0,o.upperRight_X=A(n+s)||0,o.upperRight_Y=r(i)||0,[Number($t(o.lowerLeft_X)),Number($t(o.lowerLeft_Y)),Number($t(o.upperRight_X)),Number($t(o.upperRight_Y))]},t9=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var e=[],A=t._V||t.DV,r=j2(t,A),n=t.scope.internal.getFont(t.fontName,t.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(t.scope.__private__.encodeColorString(t.color)),e.push("/"+n+" "+$t(r.fontSize)+" Tf"),e.push("1 0 0 1 0 0 Tm"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC");var i=As(t);return i.scope=t.scope,i.stream=e.join(`
|
|
33
33
|
`),i}},j2=function(t,e){var A=t.fontSize===0?t.maxFontSize:t.fontSize,r={text:"",fontSize:""},n=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");n=t.multiline?n.map(function(I){return I.split(`
|
|
34
34
|
`)}):n.map(function(I){return[I]});var i=A,s=vt.internal.getHeight(t)||0;s=s<0?-s:s;var a=vt.internal.getWidth(t)||0;a=a<0?-a:a;var o=function(I,O,Y){if(I+1<n.length){var ee=O+" "+n[I+1][0];return yg(ee,t,Y).width<=a-4}return!1};i++;e:for(;i>0;){e="",i--;var l,h,v=yg("3",t,i).height,m=t.multiline?s-i:(s-v)/2,g=m+=2,C=0,F=0,_=0;if(i<=0){e=`(...) Tj
|
|
35
35
|
`,e+="% Width of Text: "+yg(e,t,i=12).width+", FieldWidth:"+a+`
|
|
@@ -37,9 +37,9 @@ T* `):y.join(` Tj
|
|
|
37
37
|
`,e+="("+bl(j)+`) Tj
|
|
38
38
|
`,e+=-$t(l)+` 0 Td
|
|
39
39
|
`,g=-(i+2),h=0,C=k?F:F+1,H++,x=""}break}return r.text=e,r.fontSize=i,r},yg=function(t,e,A){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),n=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(A),charSpace:0})*parseFloat(A);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(A),charSpace:0})*parseFloat(A)*1.5,width:n}},A9={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},r9=function(t,e){var A={type:"reference",object:t};e.internal.getPageInfo(t.page).pageContext.annotations.find(function(r){return r.type===A.type&&r.object===A.object})===void 0&&e.internal.getPageInfo(t.page).pageContext.annotations.push(A)},n9=function(t,e){if(e.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(Ea.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(A9)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");G2=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new oS,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(A){A.internal.events.unsubscribe(A.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete A.internal.acroformPlugin.acroFormDictionaryRoot._eventID,A.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(A){A.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=A.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&r9(i,A)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(A){if(A.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");A.internal.write("/AcroForm "+A.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(A){(function(r,n){var i=!r;for(var s in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(s)){var a=r[s],o=[],l=a.Rect;if(a.Rect&&(a.Rect=e9(a.Rect,n)),n.internal.newObjectDeferredBegin(a.objId,!0),a.DA=vt.createDefaultAppearanceStream(a),dA(a)==="object"&&typeof a.getKeyValueListForStream=="function"&&(o=a.getKeyValueListForStream()),a.Rect=l,a.hasAppearanceStream&&!a.appearanceStreamContent){var h=t9(a);o.push({key:"AP",value:"<</N "+h+">>"}),n.internal.acroformPlugin.xForms.push(h)}if(a.appearanceStreamContent){var v="";for(var m in a.appearanceStreamContent)if(a.appearanceStreamContent.hasOwnProperty(m)){var g=a.appearanceStreamContent[m];if(v+="/"+m+" ",v+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var s in g)if(g.hasOwnProperty(s)){var C=g[s];typeof C=="function"&&(C=C.call(n,a)),v+="/"+s+" "+C+" ",n.internal.acroformPlugin.xForms.indexOf(C)>=0||n.internal.acroformPlugin.xForms.push(C)}}else typeof(C=g)=="function"&&(C=C.call(n,a)),v+="/"+s+" "+C,n.internal.acroformPlugin.xForms.indexOf(C)>=0||n.internal.acroformPlugin.xForms.push(C);v+=">>"}o.push({key:"AP",value:`<<
|
|
40
|
-
`+v+">>"})}n.internal.putStream({additionalKeyValues:o,objectId:a.objId}),n.internal.out("endobj")}i&&(function(F,_){for(var x in F)if(F.hasOwnProperty(x)){var H=x,D=F[x];_.internal.newObjectDeferredBegin(D.objId,!0),dA(D)==="object"&&typeof D.putStream=="function"&&D.putStream(),delete F[H]}})(n.internal.acroformPlugin.xForms,n)})(A,t)}),t.internal.acroformPlugin.isInitialized=!0}},aS=wr.__acroform__.arrayToPdfArray=function(t,e,A){var r=function(s){return s};if(Array.isArray(t)){for(var n="[",i=0;i<t.length;i++)switch(i!==0&&(n+=" "),dA(t[i])){case"boolean":case"number":case"object":n+=t[i].toString();break;case"string":t[i].substr(0,1)==="/"?n+="/"+Bl(t[i].substr(1)):(e!==void 0&&A&&(r=A.internal.getEncryptor(e)),n+="("+bl(r(t[i].toString()))+")")}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},R2=function(t,e,A){var r=function(n){return n};return e!==void 0&&A&&(r=A.internal.getEncryptor(e)),(t=t||"").toString(),"("+bl(r(t))+")"},rs=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};rs.prototype.toString=function(){return this.objId+" 0 R"},rs.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},rs.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var A in e)if(Object.getOwnPropertyDescriptor(this,e[A]).configurable===!1){var r=e[A],n=this[r];n&&(Array.isArray(n)?t.push({key:r,value:aS(n,this.objId,this.scope)}):n instanceof rs?(n.scope=this.scope,t.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&t.push({key:r,value:n}))}return t};var sS=function(){rs.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(A){t=A.trim()},get:function(){return t||null}})};vi(sS,rs);var oS=function(){rs.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var A=function(r){return r};return this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),"("+bl(A(t))+")"}},set:function(A){t=A}})};vi(oS,rs);var Ea=function t(){rs.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(x){if(isNaN(x))throw new Error('Invalid value "'+x+'" for attribute F supplied.');e=x}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ur(e,3)},set:function(x){x?this.F=xr(e,3):this.F=_r(e,3)}});var A=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return A},set:function(x){if(isNaN(x))throw new Error('Invalid value "'+x+'" for attribute Ff supplied.');A=x}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(x){r=x!==void 0?x:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(x){r[0]=x}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(x){r[1]=x}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(x){r[2]=x}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(x){r[3]=x}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(x){switch(x){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=x;break;default:throw new Error('Invalid value "'+x+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof _g)return;i="FieldObject"+t.FieldNum++}var x=function(H){return H};return this.scope&&(x=this.scope.internal.getEncryptor(this.objId)),"("+bl(x(i))+")"},set:function(x){i=x.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(x){i=x}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(x){s=x}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(x){a=x}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(x){o=x}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/G2:l},set:function(x){l=x}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(x){h=x}});var v="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!v||this instanceof _g||this instanceof yl))return R2(v,this.objId,this.scope)},set:function(x){x=x.toString(),v=x}});var m=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof on==0?R2(m,this.objId,this.scope):m},set:function(x){x=x.toString(),m=this instanceof on==0?x.substr(0,1)==="("?Dc(x.substr(1,x.length-2)):Dc(x):x}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof on==1?Dc(m.substr(1,m.length-1)):m},set:function(x){x=x.toString(),m=this instanceof on==1?"/"+Bl(x):x}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(x){this.V=x}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof on==0?R2(g,this.objId,this.scope):g},set:function(x){x=x.toString(),g=this instanceof on==0?x.substr(0,1)==="("?Dc(x.substr(1,x.length-2)):Dc(x):x}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof on==1?Dc(g.substr(1,g.length-1)):g},set:function(x){x=x.toString(),g=this instanceof on==1?"/"+Bl(x):x}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var C,F=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return F},set:function(x){x=!!x,F=x}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(C)return C},set:function(x){C=x}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,1)},set:function(x){x?this.Ff=xr(this.Ff,1):this.Ff=_r(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,2)},set:function(x){x?this.Ff=xr(this.Ff,2):this.Ff=_r(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,3)},set:function(x){x?this.Ff=xr(this.Ff,3):this.Ff=_r(this.Ff,3)}});var _=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(_!==null)return _},set:function(x){if([0,1,2].indexOf(x)===-1)throw new Error('Invalid value "'+x+'" for attribute Q supplied.');_=x}}),Object.defineProperty(this,"textAlign",{get:function(){var x;switch(_){case 0:default:x="left";break;case 1:x="center";break;case 2:x="right"}return x},configurable:!0,enumerable:!0,set:function(x){switch(x){case"right":case 2:_=2;break;case"center":case 1:_=1;break;default:_=0}}})};vi(Ea,rs);var jc=function(){Ea.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(A){t=A}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return aS(e,this.objId,this.scope)},set:function(A){var r,n;n=[],typeof(r=A)=="string"&&(n=(function(i,s,a){a||(a=1);for(var o,l=[];o=s.exec(i);)l.push(o[a]);return l})(r,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(A){e=A,this.sort&&e.sort()},this.addOption=function(A){A=(A=A||"").toString(),e.push(A),this.sort&&e.sort()},this.removeOption=function(A,r){for(r=r||!1,A=(A=A||"").toString();e.indexOf(A)!==-1&&(e.splice(e.indexOf(A),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,18)},set:function(A){A?this.Ff=xr(this.Ff,18):this.Ff=_r(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,19)},set:function(A){this.combo===!0&&(A?this.Ff=xr(this.Ff,19):this.Ff=_r(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,20)},set:function(A){A?(this.Ff=xr(this.Ff,20),e.sort()):this.Ff=_r(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,22)},set:function(A){A?this.Ff=xr(this.Ff,22):this.Ff=_r(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,23)},set:function(A){A?this.Ff=xr(this.Ff,23):this.Ff=_r(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,27)},set:function(A){A?this.Ff=xr(this.Ff,27):this.Ff=_r(this.Ff,27)}}),this.hasAppearanceStream=!1};vi(jc,Ea);var Vc=function(){jc.call(this),this.fontName="helvetica",this.combo=!1};vi(Vc,jc);var Gc=function(){Vc.call(this),this.combo=!0};vi(Gc,Vc);var Cg=function(){Gc.call(this),this.edit=!0};vi(Cg,Gc);var on=function(){Ea.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,15)},set:function(A){A?this.Ff=xr(this.Ff,15):this.Ff=_r(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,16)},set:function(A){A?this.Ff=xr(this.Ff,16):this.Ff=_r(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,17)},set:function(A){A?this.Ff=xr(this.Ff,17):this.Ff=_r(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,26)},set:function(A){A?this.Ff=xr(this.Ff,26):this.Ff=_r(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(i){return i};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var r,n=[];for(r in n.push("<<"),e)n.push("/"+r+" ("+bl(A(e[r]))+")");return n.push(">>"),n.join(`
|
|
41
|
-
`)}},set:function(A){dA(A)==="object"&&(e=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(A){typeof A=="string"&&(e.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){var r=A==null?"":A.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),t="/"+Bl(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(A){t="/"+Bl(A)}})};
|
|
42
|
-
`)},set:function(n){dA(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(n){var i=n==null?"":n.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),A="/"+Bl(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(n){var i=n==null?"":n.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),A="/"+Bl(i)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=vt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};
|
|
40
|
+
`+v+">>"})}n.internal.putStream({additionalKeyValues:o,objectId:a.objId}),n.internal.out("endobj")}i&&(function(F,_){for(var x in F)if(F.hasOwnProperty(x)){var H=x,D=F[x];_.internal.newObjectDeferredBegin(D.objId,!0),dA(D)==="object"&&typeof D.putStream=="function"&&D.putStream(),delete F[H]}})(n.internal.acroformPlugin.xForms,n)})(A,t)}),t.internal.acroformPlugin.isInitialized=!0}},aS=wr.__acroform__.arrayToPdfArray=function(t,e,A){var r=function(s){return s};if(Array.isArray(t)){for(var n="[",i=0;i<t.length;i++)switch(i!==0&&(n+=" "),dA(t[i])){case"boolean":case"number":case"object":n+=t[i].toString();break;case"string":t[i].substr(0,1)==="/"?n+="/"+Bl(t[i].substr(1)):(e!==void 0&&A&&(r=A.internal.getEncryptor(e)),n+="("+bl(r(t[i].toString()))+")")}return n+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},R2=function(t,e,A){var r=function(n){return n};return e!==void 0&&A&&(r=A.internal.getEncryptor(e)),(t=t||"").toString(),"("+bl(r(t))+")"},rs=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};rs.prototype.toString=function(){return this.objId+" 0 R"},rs.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},rs.prototype.getKeyValueListForStream=function(){var t=[],e=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var A in e)if(Object.getOwnPropertyDescriptor(this,e[A]).configurable===!1){var r=e[A],n=this[r];n&&(Array.isArray(n)?t.push({key:r,value:aS(n,this.objId,this.scope)}):n instanceof rs?(n.scope=this.scope,t.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&t.push({key:r,value:n}))}return t};var sS=function(){rs.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(A){t=A.trim()},get:function(){return t||null}})};mi(sS,rs);var oS=function(){rs.call(this);var t,e=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return e.length>0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var A=function(r){return r};return this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),"("+bl(A(t))+")"}},set:function(A){t=A}})};mi(oS,rs);var Ea=function t(){rs.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(x){if(isNaN(x))throw new Error('Invalid value "'+x+'" for attribute F supplied.');e=x}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ur(e,3)},set:function(x){x?this.F=xr(e,3):this.F=_r(e,3)}});var A=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return A},set:function(x){if(isNaN(x))throw new Error('Invalid value "'+x+'" for attribute Ff supplied.');A=x}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(x){r=x!==void 0?x:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(x){r[0]=x}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(x){r[1]=x}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(x){r[2]=x}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(x){r[3]=x}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(x){switch(x){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=x;break;default:throw new Error('Invalid value "'+x+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof _g)return;i="FieldObject"+t.FieldNum++}var x=function(H){return H};return this.scope&&(x=this.scope.internal.getEncryptor(this.objId)),"("+bl(x(i))+")"},set:function(x){i=x.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(x){i=x}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(x){s=x}});var a="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return a},set:function(x){a=x}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(x){o=x}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/G2:l},set:function(x){l=x}});var h="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return h},set:function(x){h=x}});var v="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!v||this instanceof _g||this instanceof yl))return R2(v,this.objId,this.scope)},set:function(x){x=x.toString(),v=x}});var m=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof on==0?R2(m,this.objId,this.scope):m},set:function(x){x=x.toString(),m=this instanceof on==0?x.substr(0,1)==="("?Dc(x.substr(1,x.length-2)):Dc(x):x}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof on==1?Dc(m.substr(1,m.length-1)):m},set:function(x){x=x.toString(),m=this instanceof on==1?"/"+Bl(x):x}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(x){this.V=x}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof on==0?R2(g,this.objId,this.scope):g},set:function(x){x=x.toString(),g=this instanceof on==0?x.substr(0,1)==="("?Dc(x.substr(1,x.length-2)):Dc(x):x}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof on==1?Dc(g.substr(1,g.length-1)):g},set:function(x){x=x.toString(),g=this instanceof on==1?"/"+Bl(x):x}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var C,F=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return F},set:function(x){x=!!x,F=x}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(C)return C},set:function(x){C=x}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,1)},set:function(x){x?this.Ff=xr(this.Ff,1):this.Ff=_r(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,2)},set:function(x){x?this.Ff=xr(this.Ff,2):this.Ff=_r(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,3)},set:function(x){x?this.Ff=xr(this.Ff,3):this.Ff=_r(this.Ff,3)}});var _=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(_!==null)return _},set:function(x){if([0,1,2].indexOf(x)===-1)throw new Error('Invalid value "'+x+'" for attribute Q supplied.');_=x}}),Object.defineProperty(this,"textAlign",{get:function(){var x;switch(_){case 0:default:x="left";break;case 1:x="center";break;case 2:x="right"}return x},configurable:!0,enumerable:!0,set:function(x){switch(x){case"right":case 2:_=2;break;case"center":case 1:_=1;break;default:_=0}}})};mi(Ea,rs);var jc=function(){Ea.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(A){t=A}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(A){t=A}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return aS(e,this.objId,this.scope)},set:function(A){var r,n;n=[],typeof(r=A)=="string"&&(n=(function(i,s,a){a||(a=1);for(var o,l=[];o=s.exec(i);)l.push(o[a]);return l})(r,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(A){e=A,this.sort&&e.sort()},this.addOption=function(A){A=(A=A||"").toString(),e.push(A),this.sort&&e.sort()},this.removeOption=function(A,r){for(r=r||!1,A=(A=A||"").toString();e.indexOf(A)!==-1&&(e.splice(e.indexOf(A),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,18)},set:function(A){A?this.Ff=xr(this.Ff,18):this.Ff=_r(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,19)},set:function(A){this.combo===!0&&(A?this.Ff=xr(this.Ff,19):this.Ff=_r(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,20)},set:function(A){A?(this.Ff=xr(this.Ff,20),e.sort()):this.Ff=_r(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,22)},set:function(A){A?this.Ff=xr(this.Ff,22):this.Ff=_r(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,23)},set:function(A){A?this.Ff=xr(this.Ff,23):this.Ff=_r(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,27)},set:function(A){A?this.Ff=xr(this.Ff,27):this.Ff=_r(this.Ff,27)}}),this.hasAppearanceStream=!1};mi(jc,Ea);var Vc=function(){jc.call(this),this.fontName="helvetica",this.combo=!1};mi(Vc,jc);var Gc=function(){Vc.call(this),this.combo=!0};mi(Gc,Vc);var Cg=function(){Gc.call(this),this.edit=!0};mi(Cg,Gc);var on=function(){Ea.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,15)},set:function(A){A?this.Ff=xr(this.Ff,15):this.Ff=_r(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,16)},set:function(A){A?this.Ff=xr(this.Ff,16):this.Ff=_r(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,17)},set:function(A){A?this.Ff=xr(this.Ff,17):this.Ff=_r(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,26)},set:function(A){A?this.Ff=xr(this.Ff,26):this.Ff=_r(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(i){return i};if(this.scope&&(A=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var r,n=[];for(r in n.push("<<"),e)n.push("/"+r+" ("+bl(A(e[r]))+")");return n.push(">>"),n.join(`
|
|
41
|
+
`)}},set:function(A){dA(A)==="object"&&(e=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(A){typeof A=="string"&&(e.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(A){var r=A==null?"":A.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),t="/"+Bl(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(A){t="/"+Bl(A)}})};mi(on,Ea);var Eg=function(){on.call(this),this.pushButton=!0};mi(Eg,on);var zc=function(){on.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e!==void 0?e:[]}})};mi(zc,on);var _g=function(){var t,e;Ea.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(n){e=n}});var A,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(a){return a};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,s=[];for(i in s.push("<<"),r)s.push("/"+i+" ("+bl(n(r[i]))+")");return s.push(">>"),s.join(`
|
|
42
|
+
`)},set:function(n){dA(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return A},set:function(n){var i=n==null?"":n.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),A="/"+Bl(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return A.substr(1,A.length-1)},set:function(n){var i=n==null?"":n.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),A="/"+Bl(i)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=vt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};mi(_g,Ea),zc.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var A=this.Kids[e];A.appearanceStreamContent=t.createAppearanceStream(A.optionName),A.caption=t.getCA()}},zc.prototype.createOption=function(t){var e=new _g;return e.Parent=this,e.optionName=t,this.Kids.push(e),i9.call(this.scope,e),e};var Fg=function(){on.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=vt.CheckBox.createAppearanceStream()};mi(Fg,on);var yl=function(){Ea.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,13)},set:function(e){e?this.Ff=xr(this.Ff,13):this.Ff=_r(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,21)},set:function(e){e?this.Ff=xr(this.Ff,21):this.Ff=_r(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,23)},set:function(e){e?this.Ff=xr(this.Ff,23):this.Ff=_r(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,24)},set:function(e){e?this.Ff=xr(this.Ff,24):this.Ff=_r(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,25)},set:function(e){e?this.Ff=xr(this.Ff,25):this.Ff=_r(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,26)},set:function(e){e?this.Ff=xr(this.Ff,26):this.Ff=_r(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};mi(yl,Ea);var Ug=function(){yl.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ur(this.Ff,14)},set:function(t){t?this.Ff=xr(this.Ff,14):this.Ff=_r(this.Ff,14)}}),this.password=!0};mi(Ug,yl);var vt={CheckBox:{createAppearanceStream:function(){return{N:{On:vt.CheckBox.YesNormal},D:{On:vt.CheckBox.YesPushDown,Off:vt.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=As(t);e.scope=t.scope;var A=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color),i=j2(t,t.caption);return A.push("0.749023 g"),A.push("0 0 "+$t(vt.internal.getWidth(t))+" "+$t(vt.internal.getHeight(t))+" re"),A.push("f"),A.push("BMC"),A.push("q"),A.push("0 0 1 rg"),A.push("/"+r+" "+$t(i.fontSize)+" Tf "+n),A.push("BT"),A.push(i.text),A.push("ET"),A.push("Q"),A.push("EMC"),e.stream=A.join(`
|
|
43
43
|
`),e},YesNormal:function(t){var e=As(t);e.scope=t.scope;var A=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),n=[],i=vt.internal.getHeight(t),s=vt.internal.getWidth(t),a=j2(t,t.caption);return n.push("1 g"),n.push("0 0 "+$t(s)+" "+$t(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+$t(s-1)+" "+$t(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+A+" "+$t(a.fontSize)+" Tf "+r),n.push(a.text),n.push("ET"),n.push("Q"),e.stream=n.join(`
|
|
44
44
|
`),e},OffPushDown:function(t){var e=As(t);e.scope=t.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+$t(vt.internal.getWidth(t))+" "+$t(vt.internal.getHeight(t))+" re"),A.push("f"),e.stream=A.join(`
|
|
45
45
|
`),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:vt.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=vt.RadioButton.Circle.YesNormal,e.D[t]=vt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=As(t);e.scope=t.scope;var A=[],r=vt.internal.getWidth(t)<=vt.internal.getHeight(t)?vt.internal.getWidth(t)/4:vt.internal.getHeight(t)/4;r=Number((.9*r).toFixed(5));var n=vt.internal.Bezier_C,i=Number((r*n).toFixed(5));return A.push("q"),A.push("1 0 0 1 "+Co(vt.internal.getWidth(t)/2)+" "+Co(vt.internal.getHeight(t)/2)+" cm"),A.push(r+" 0 m"),A.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),A.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),A.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),A.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),A.push("f"),A.push("Q"),e.stream=A.join(`
|
|
@@ -48,7 +48,7 @@ T* `):y.join(` Tj
|
|
|
48
48
|
`),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:vt.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=vt.RadioButton.Cross.YesNormal,e.D[t]=vt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=As(t);e.scope=t.scope;var A=[],r=vt.internal.calculateCross(t);return A.push("q"),A.push("1 1 "+$t(vt.internal.getWidth(t)-2)+" "+$t(vt.internal.getHeight(t)-2)+" re"),A.push("W"),A.push("n"),A.push($t(r.x1.x)+" "+$t(r.x1.y)+" m"),A.push($t(r.x2.x)+" "+$t(r.x2.y)+" l"),A.push($t(r.x4.x)+" "+$t(r.x4.y)+" m"),A.push($t(r.x3.x)+" "+$t(r.x3.y)+" l"),A.push("s"),A.push("Q"),e.stream=A.join(`
|
|
49
49
|
`),e},YesPushDown:function(t){var e=As(t);e.scope=t.scope;var A=vt.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+$t(vt.internal.getWidth(t))+" "+$t(vt.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+$t(vt.internal.getWidth(t)-2)+" "+$t(vt.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push($t(A.x1.x)+" "+$t(A.x1.y)+" m"),r.push($t(A.x2.x)+" "+$t(A.x2.y)+" l"),r.push($t(A.x4.x)+" "+$t(A.x4.y)+" m"),r.push($t(A.x3.x)+" "+$t(A.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
|
|
50
50
|
`),e},OffPushDown:function(t){var e=As(t);e.scope=t.scope;var A=[];return A.push("0.749023 g"),A.push("0 0 "+$t(vt.internal.getWidth(t))+" "+$t(vt.internal.getHeight(t))+" re"),A.push("f"),e.stream=A.join(`
|
|
51
|
-
`),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,A=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+A}};vt.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=vt.internal.getWidth(t),A=vt.internal.getHeight(t),r=Math.min(e,A);return{x1:{x:(e-r)/2,y:(A-r)/2+r},x2:{x:(e-r)/2+r,y:(A-r)/2},x3:{x:(e-r)/2,y:(A-r)/2},x4:{x:(e-r)/2+r,y:(A-r)/2+r}}}},vt.internal.getWidth=function(t){var e=0;return dA(t)==="object"&&(e=H_(t.Rect[2])),e},vt.internal.getHeight=function(t){var e=0;return dA(t)==="object"&&(e=H_(t.Rect[3])),e};var i9=wr.addField=function(t){if(n9(this,t),!(t instanceof Ea))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};wr.AcroFormChoiceField=jc,wr.AcroFormListBox=Vc,wr.AcroFormComboBox=Gc,wr.AcroFormEditBox=Cg,wr.AcroFormButton=on,wr.AcroFormPushButton=Eg,wr.AcroFormRadioButton=zc,wr.AcroFormCheckBox=Fg,wr.AcroFormTextField=yl,wr.AcroFormPasswordField=Ug,wr.AcroFormAppearance=vt,wr.AcroForm={ChoiceField:jc,ListBox:Vc,ComboBox:Gc,EditBox:Cg,Button:on,PushButton:Eg,RadioButton:zc,CheckBox:Fg,TextField:yl,PasswordField:Ug,Appearance:vt},Ft.AcroForm={ChoiceField:jc,ListBox:Vc,ComboBox:Gc,EditBox:Cg,Button:on,PushButton:Eg,RadioButton:zc,CheckBox:Fg,TextField:yl,PasswordField:Ug,Appearance:vt};var OX=Ft.AcroForm;function lS(t){return t.reduce(function(e,A,r){return e[A]=r,e},{})}(function(t){var e="addImage_";t.__addimage__={};var A="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=t.__addimage__.getImageFileTypeByImageData=function(I,O){var Y,ee,ce,be,Fe,de=A;if((O=O||A)==="RGBA"||I.data!==void 0&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if(fe(I))for(Fe in r)for(ce=r[Fe],Y=0;Y<ce.length;Y+=1){for(be=!0,ee=0;ee<ce[Y].length;ee+=1)if(ce[Y][ee]!==void 0&&ce[Y][ee]!==I[ee]){be=!1;break}if(be===!0){de=Fe;break}}else for(Fe in r)for(ce=r[Fe],Y=0;Y<ce.length;Y+=1){for(be=!0,ee=0;ee<ce[Y].length;ee+=1)if(ce[Y][ee]!==void 0&&ce[Y][ee]!==I.charCodeAt(ee)){be=!1;break}if(be===!0){de=Fe;break}}return de===A&&O!==A&&(de=O),de},i=function I(O){for(var Y=this.internal.write,ee=this.internal.putStream,ce=(0,this.internal.getFilters)();ce.indexOf("FlateEncode")!==-1;)ce.splice(ce.indexOf("FlateEncode"),1);O.objectId=this.internal.newObject();var be=[];if(be.push({key:"Type",value:"/XObject"}),be.push({key:"Subtype",value:"/Image"}),be.push({key:"Width",value:O.width}),be.push({key:"Height",value:O.height}),O.colorSpace===x.INDEXED?be.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(O.palette.length/3-1)+" "+("sMask"in O&&O.sMask!==void 0?O.objectId+2:O.objectId+1)+" 0 R]"}):(be.push({key:"ColorSpace",value:"/"+O.colorSpace}),O.colorSpace===x.DEVICE_CMYK&&be.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),be.push({key:"BitsPerComponent",value:O.bitsPerComponent}),"decodeParameters"in O&&O.decodeParameters!==void 0&&be.push({key:"DecodeParms",value:"<<"+O.decodeParameters+">>"}),"transparency"in O&&Array.isArray(O.transparency)&&O.transparency.length>0){for(var Fe="",de=0,Ee=O.transparency.length;de<Ee;de++)Fe+=O.transparency[de]+" "+O.transparency[de]+" ";be.push({key:"Mask",value:"["+Fe+"]"})}O.sMask!==void 0&&be.push({key:"SMask",value:O.objectId+1+" 0 R"});var Pe=O.filter!==void 0?["/"+O.filter]:void 0;if(ee({data:O.data,additionalKeyValues:be,alreadyAppliedFilters:Pe,objectId:O.objectId}),Y("endobj"),"sMask"in O&&O.sMask!==void 0){var Ue,P=(Ue=O.sMaskBitsPerComponent)!==null&&Ue!==void 0?Ue:O.bitsPerComponent,J={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:P,data:O.sMask};"filter"in O&&(J.decodeParameters="/Predictor ".concat(O.predictor," /Colors 1 /BitsPerComponent ").concat(P," /Columns ").concat(O.width),J.filter=O.filter),I.call(this,J)}if(O.colorSpace===x.INDEXED){var te=this.internal.newObject();ee({data:j(new Uint8Array(O.palette)),objectId:te}),Y("endobj")}},s=function(){var I=this.internal.collections[e+"images"];for(var O in I)i.call(this,I[O])},a=function(){var I,O=this.internal.collections[e+"images"],Y=this.internal.write;for(var ee in O)Y("/I"+(I=O[ee]).index,I.objectId,"0","R")},o=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",a))},l=function(){var I=this.internal.collections[e+"images"];return o.call(this),I},h=function(){return Object.keys(this.internal.collections[e+"images"]).length},v=function(I){return typeof t["process"+I.toUpperCase()]=="function"},m=function(I){return dA(I)==="object"&&I.nodeType===1},g=function(I,O){if(I.nodeName==="IMG"&&I.hasAttribute("src")){var Y=""+I.getAttribute("src");if(Y.indexOf("data:image/")===0)return bg(unescape(Y).split("base64,").pop());var ee=t.loadFile(Y,!0);if(ee!==void 0)return ee}if(I.nodeName==="CANVAS"){if(I.width===0||I.height===0)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var ce;switch(O){case"PNG":ce="image/png";break;case"WEBP":ce="image/webp";break;default:ce="image/jpeg"}return bg(I.toDataURL(ce,1).split("base64,").pop())}},C=function(I){var O=this.internal.collections[e+"images"];if(O){for(var Y in O)if(I===O[Y].alias)return O[Y]}},F=function(I,O,Y){return I||O||(I=-96,O=-96),I<0&&(I=-1*Y.width*72/I/this.internal.scaleFactor),O<0&&(O=-1*Y.height*72/O/this.internal.scaleFactor),I===0&&(I=O*Y.width/Y.height),O===0&&(O=I*Y.height/Y.width),[I,O]},_=function(I,O,Y,ee,ce,be){var Fe=F.call(this,Y,ee,ce),de=this.internal.getCoordinateString,Ee=this.internal.getVerticalCoordinateString,Pe=l.call(this);if(Y=Fe[0],ee=Fe[1],Pe[ce.index]=ce,be){be*=Math.PI/180;var Ue=Math.cos(be),P=Math.sin(be),J=function(ie){return ie.toFixed(4)},te=[J(Ue),J(P),J(-1*P),J(Ue),0,0,"cm"]}this.internal.write("q"),be?(this.internal.write([1,"0","0",1,de(I),Ee(O+ee),"cm"].join(" ")),this.internal.write(te.join(" ")),this.internal.write([de(Y),"0","0",de(ee),"0","0","cm"].join(" "))):this.internal.write([de(Y),"0","0",de(ee),de(I),Ee(O+ee),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ce.index+" Do"),this.internal.write("Q")},x=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var H=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},D=t.__addimage__.sHashCode=function(I){var O,Y,ee=0;if(typeof I=="string")for(Y=I.length,O=0;O<Y;O++)ee=(ee<<5)-ee+I.charCodeAt(O),ee|=0;else if(fe(I))for(Y=I.byteLength/2,O=0;O<Y;O++)ee=(ee<<5)-ee+I[O],ee|=0;return ee},k=t.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var O=!0;return I.length===0&&(O=!1),I.length%4!=0&&(O=!1),/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))===!1&&(O=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))===!1&&(O=!1),O},re=t.__addimage__.extractImageFromDataUrl=function(I){if(I==null||!(I=I.trim()).startsWith("data:"))return null;var O=I.indexOf(",");return O<0?null:I.substring(0,O).trim().endsWith("base64")?I.substring(O+1):null};t.__addimage__.isArrayBuffer=function(I){return I instanceof ArrayBuffer};var fe=t.__addimage__.isArrayBufferView=function(I){return I instanceof Int8Array||I instanceof Uint8Array||I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array},Ae=t.__addimage__.binaryStringToUint8Array=function(I){for(var O=I.length,Y=new Uint8Array(O),ee=0;ee<O;ee++)Y[ee]=I.charCodeAt(ee);return Y},j=t.__addimage__.arrayBufferToBinaryString=function(I){for(var O="",Y=fe(I)?I:new Uint8Array(I),ee=0;ee<Y.length;ee+=8192)O+=String.fromCharCode.apply(null,Y.subarray(ee,ee+8192));return O};t.addImage=function(){var I,O,Y,ee,ce,be,Fe,de,Ee;if(typeof arguments[1]=="number"?(O=A,Y=arguments[1],ee=arguments[2],ce=arguments[3],be=arguments[4],Fe=arguments[5],de=arguments[6],Ee=arguments[7]):(O=arguments[1],Y=arguments[2],ee=arguments[3],ce=arguments[4],be=arguments[5],Fe=arguments[6],de=arguments[7],Ee=arguments[8]),dA(I=arguments[0])==="object"&&!m(I)&&"imageData"in I){var Pe=I;I=Pe.imageData,O=Pe.format||O||A,Y=Pe.x||Y||0,ee=Pe.y||ee||0,ce=Pe.w||Pe.width||ce,be=Pe.h||Pe.height||be,Fe=Pe.alias||Fe,de=Pe.compression||de,Ee=Pe.rotation||Pe.angle||Ee}var Ue=this.internal.getFilters();if(de===void 0&&Ue.indexOf("FlateEncode")!==-1&&(de="SLOW"),isNaN(Y)||isNaN(ee))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var P=N.call(this,I,O,Fe,de);return _.call(this,Y,ee,ce,be,P,Ee),this};var N=function(I,O,Y,ee){var ce,be,Fe;if(typeof I=="string"&&n(I)===A){I=unescape(I);var de=Z(I,!1);(de!==""||(de=t.loadFile(I,!0))!==void 0)&&(I=de)}if(m(I)&&(I=g(I,O)),O=n(I,O),!v(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((Fe=Y)==null||Fe.length===0)&&(Y=(function(Ee){return typeof Ee=="string"||fe(Ee)?D(Ee):fe(Ee.data)?D(Ee.data):null})(I)),(ce=C.call(this,Y))||(I instanceof Uint8Array||O==="RGBA"||(be=I,I=Ae(I)),ce=this["process"+O.toUpperCase()](I,h.call(this),Y,(function(Ee){return Ee&&typeof Ee=="string"&&(Ee=Ee.toUpperCase()),Ee in t.image_compression?Ee:H.NONE})(ee),be)),!ce)throw new Error("An unknown error occurred whilst processing the image.");return ce},Z=t.__addimage__.convertBase64ToBinaryString=function(I,O){O=typeof O!="boolean"||O;var Y,ee="";if(typeof I=="string"){var ce;Y=(ce=re(I))!==null&&ce!==void 0?ce:I;try{ee=bg(Y)}catch(be){if(O)throw k(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+be.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ee};t.getImageProperties=function(I){var O,Y,ee="";if(m(I)&&(I=g(I)),typeof I=="string"&&n(I)===A&&((ee=Z(I,!1))===""&&(ee=t.loadFile(I)||""),I=ee),Y=n(I),!v(Y))throw new Error("addImage does not support files of type '"+Y+"', please ensure that a plugin for '"+Y+"' support is added.");if(I instanceof Uint8Array||(I=Ae(I)),!(O=this["process"+Y.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=Y,O}})(Ft.API),(function(t){var e=function(A){if(A!==void 0&&A!="")return!0};Ft.API.events.push(["addPage",function(A){this.internal.getPageInfo(A.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(A){for(var r,n,i,s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(A.objId),l=A.pageContext.annotations,h=!1,v=0;v<l.length&&!h;v++)switch((r=l[v]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(h=!0);break;case"reference":case"text":case"freetext":h=!0}if(h!=0){this.internal.write("/Annots [");for(var m=0;m<l.length;m++){r=l[m];var g=this.internal.pdfEscape,C=this.internal.getEncryptor(A.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var F=this.internal.newAdditionalObject(),_=this.internal.newAdditionalObject(),x=this.internal.getEncryptor(F.objId),H=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+g(x(r.contents))+")",i+=" /Popup "+_.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+g(x(H))+") >>",F.content=i;var D=F.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+s(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+D,r.open&&(i+=" /Open true"),i+=" >>",_.content=i,this.internal.write(F.objId,"0 R",_.objId,"0 R");break;case"freetext":n="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var k="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+g(C(r.contents))+")",i+=" /DS("+g(C(k))+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var re=this.annotations._nameMap[r.options.name];r.options.pageNumber=re.page,r.options.top=re.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+g(C(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;default:var fe=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+fe+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(A){var r=this.internal.getCurrentPageInfo();switch(A.type){case"link":this.link(A.bounds.x,A.bounds.y,A.bounds.w,A.bounds.h,A);break;case"text":case"freetext":r.pageContext.annotations.push(A)}},t.link=function(A,r,n,i,s){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(A),y:l(r),w:o(A+n),h:l(r+i)},options:s,type:"link"})},t.textWithLink=function(A,r,n,i){var s,a,o=this.getTextWidth(A),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){a=i.maxWidth;var h=this.splitTextToSize(A,a).length;s=Math.ceil(l*h)}else a=o,s=l;return this.text(A,r,n,i),n+=.2*l,i.align==="center"&&(r-=o/2),i.align==="right"&&(r-=o),this.link(r,n-l,a,s,i),o},t.getTextWidth=function(A){var r=this.internal.getFontSize();return this.getStringUnitWidth(A)*r/this.internal.scaleFactor}})(Ft.API),(function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},A={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(F){return e[F.charCodeAt(0)]!==void 0},s=t.__arabicParser__.isArabicLetter=function(F){return typeof F=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(F)},a=t.__arabicParser__.isArabicEndLetter=function(F){return s(F)&&i(F)&&e[F.charCodeAt(0)].length<=2},o=t.__arabicParser__.isArabicAlfLetter=function(F){return s(F)&&n.indexOf(F.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(F){return s(F)&&i(F)&&e[F.charCodeAt(0)].length>=1};var l=t.__arabicParser__.arabicLetterHasFinalForm=function(F){return s(F)&&i(F)&&e[F.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(F){return s(F)&&i(F)&&e[F.charCodeAt(0)].length>=3};var h=t.__arabicParser__.arabicLetterHasMedialForm=function(F){return s(F)&&i(F)&&e[F.charCodeAt(0)].length==4},v=t.__arabicParser__.resolveLigatures=function(F){var _=0,x=A,H="",D=0;for(_=0;_<F.length;_+=1)x[F.charCodeAt(_)]!==void 0?(D++,typeof(x=x[F.charCodeAt(_)])=="number"&&(H+=String.fromCharCode(x),x=A,D=0),_===F.length-1&&(x=A,H+=F.charAt(_-(D-1)),_-=D-1,D=0)):(x=A,H+=F.charAt(_-D),_-=D,D=0);return H};t.__arabicParser__.isArabicDiacritic=function(F){return F!==void 0&&r[F.charCodeAt(0)]!==void 0};var m=t.__arabicParser__.getCorrectForm=function(F,_,x){return s(F)?i(F)===!1?-1:!l(F)||!s(_)&&!s(x)||!s(x)&&a(_)||a(F)&&!s(_)||a(F)&&o(_)||a(F)&&a(_)?0:h(F)&&s(_)&&!a(_)&&s(x)&&l(x)?3:a(F)||!s(x)?1:2:-1},g=function(F){var _=0,x=0,H=0,D="",k="",re="",fe=(F=F||"").split("\\s+"),Ae=[];for(_=0;_<fe.length;_+=1){for(Ae.push(""),x=0;x<fe[_].length;x+=1)D=fe[_][x],k=fe[_][x-1],re=fe[_][x+1],s(D)?(H=m(D,k,re),Ae[_]+=H!==-1?String.fromCharCode(e[D.charCodeAt(0)][H]):D):Ae[_]+=D;Ae[_]=v(Ae[_])}return Ae.join(" ")},C=t.__arabicParser__.processArabic=t.processArabic=function(){var F,_=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,x=[];if(Array.isArray(_)){var H=0;for(x=[],H=0;H<_.length;H+=1)Array.isArray(_[H])?x.push([g(_[H][0]),_[H][1],_[H][2]]):x.push([g(_[H])]);F=x}else F=g(_);return typeof arguments[0]=="string"?F:(arguments[0].text=F,arguments[0])};t.events.push(["preProcessText",C])})(Ft.API),Ft.API.autoPrint=function(t){var e;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})),this},(function(t){var e=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(a){A=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(a){n=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(a){i=a}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(a){s=a}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(A,r){var n;if((A=A||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])})(Ft.API),(function(t){var e={left:0,top:0,bottom:0,right:0},A=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(F){o=F}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(F){l=F}});var h=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return h},set:function(F){h=F}});var v=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return v},set:function(F){v=F}});var m=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return m},set:function(F){m=F}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(F){g=F}});var C=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return C},set:function(F){C=F}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(o){return r.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},t.getTextDimensions=function(o,l){r.call(this);var h=(l=l||{}).fontSize||this.getFontSize(),v=l.font||this.getFont(),m=l.scaleFactor||this.internal.scaleFactor,g=0,C=0,F=0,_=this;if(!Array.isArray(o)&&typeof o!="string"){if(typeof o!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");o=String(o)}var x=l.maxWidth;x>0?typeof o=="string"?o=this.splitTextToSize(o,x):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(D,k){return D.concat(_.splitTextToSize(k,x))},[])):o=Array.isArray(o)?o:[o];for(var H=0;H<o.length;H++)g<(F=this.getStringUnitWidth(o[H],{font:v})*h)&&(g=F);return g!==0&&(C=o.length),{w:g/=m,h:Math.max((C*h*this.getLineHeightFactor()-h*(this.getLineHeightFactor()-1))/m,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var o=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var o;o=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var l=this.internal.__cell__.lastCell,h=this.internal.__cell__.padding,v=this.internal.__cell__.margins||e,m=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return l.lineNumber!==void 0&&(l.lineNumber===o.lineNumber?(o.x=(l.x||0)+(l.width||0),o.y=l.y||0):l.y+l.height+o.height+v.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=v.top,g&&m&&(this.printHeaderRow(o.lineNumber,!0),o.y+=m[0].height)):o.y=l.y+l.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,A===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-h,o.y+h,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+h,{align:"center",baseline:"top",maxWidth:o.width-h-h}):this.text(o.text,o.x+h,o.y+h,{align:"left",baseline:"top",maxWidth:o.width-h-h})),this.internal.__cell__.lastCell=o,this};t.table=function(o,l,h,v,m){if(r.call(this),!h)throw new Error("No data for PDF table.");var g,C,F,_,x=[],H=[],D=[],k={},re={},fe=[],Ae=[],j=(m=m||{}).autoSize||!1,N=m.printHeaders!==!1,Z=m.css&&m.css["font-size"]!==void 0?16*m.css["font-size"]:m.fontSize||12,I=m.margins||Object.assign({width:this.getPageWidth()},e),O=typeof m.padding=="number"?m.padding:3,Y=m.headerBackgroundColor||"#c8c8c8",ee=m.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=N,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=Z,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=Y,this.internal.__cell__.headerTextColor=ee,this.setFontSize(Z),v==null)H=x=Object.keys(h[0]),D=x.map(function(){return"left"});else if(Array.isArray(v)&&dA(v[0])==="object")for(x=v.map(function(Pe){return Pe.name}),H=v.map(function(Pe){return Pe.prompt||Pe.name||""}),D=v.map(function(Pe){return Pe.align||"left"}),g=0;g<v.length;g+=1)re[v[g].name]=.7499990551181103*v[g].width;else Array.isArray(v)&&typeof v[0]=="string"&&(H=x=v,D=x.map(function(){return"left"}));if(j||Array.isArray(v)&&typeof v[0]=="string")for(g=0;g<x.length;g+=1){for(k[_=x[g]]=h.map(function(Pe){return Pe[_]}),this.setFont(void 0,"bold"),fe.push(this.getTextDimensions(H[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),C=k[_],this.setFont(void 0,"normal"),F=0;F<C.length;F+=1)fe.push(this.getTextDimensions(C[F],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);re[_]=Math.max.apply(null,fe)+O+O,fe=[]}if(N){var ce={};for(g=0;g<x.length;g+=1)ce[x[g]]={},ce[x[g]].text=H[g],ce[x[g]].align=D[g];var be=a.call(this,ce,re);Ae=x.map(function(Pe){return new i(o,l,re[Pe],be,ce[Pe].text,void 0,ce[Pe].align)}),this.setTableHeaderRow(Ae),this.printHeaderRow(1,!1)}var Fe=v.reduce(function(Pe,Ue){return Pe[Ue.name]=Ue.align,Pe},{});for(g=0;g<h.length;g+=1){"rowStart"in m&&m.rowStart instanceof Function&&m.rowStart({row:g,data:h[g]},this);var de=a.call(this,h[g],re);for(F=0;F<x.length;F+=1){var Ee=h[g][x[F]];"cellStart"in m&&m.cellStart instanceof Function&&m.cellStart({row:g,col:F,data:Ee},this),s.call(this,new i(o,l,re[x[F]],de,Ee,g+2,Fe[x[F]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=l,this};var a=function(o,l){var h=this.internal.__cell__.padding,v=this.internal.__cell__.table_font_size,m=this.internal.scaleFactor;return Object.keys(o).map(function(g){var C=o[g];return this.splitTextToSize(C.hasOwnProperty("text")?C.text:C,l[g]-h-h)},this).map(function(g){return this.getLineHeightFactor()*g.length*v/m+h+h},this).reduce(function(g,C){return Math.max(g,C)},0)};t.setTableHeaderRow=function(o){r.call(this),this.internal.__cell__.tableHeaderRow=o},t.printHeaderRow=function(o,l){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var h;if(A=!0,typeof this.internal.__cell__.headerFunction=="function"){var v=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(v[0],v[1],v[2],v[3],void 0,-1)}this.setFont(void 0,"bold");for(var m=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){h=this.internal.__cell__.tableHeaderRow[g].clone(),l&&(h.y=this.internal.__cell__.margins.top||0,m.push(h)),h.lineNumber=o;var C=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,h),this.setTextColor(C)}m.length>0&&this.setTableHeaderRow(m),this.setFont(void 0,"normal"),A=!1}})(Ft.API);var cS={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},uS=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],V2=lS(uS),fS=[100,200,300,400,500,600,700,800,900],a9=lS(fS);function k2(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),A=(function(i){return cS[i=i||"normal"]?i:"normal"})(t.style),r=(function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400})(t.weight),n=(function(i){return typeof V2[i=i||"normal"]=="number"?i:"normal"})(t.stretch);return{family:e,style:A,weight:r,stretch:n,src:t.src||[],ref:t.ref||{name:e,style:[n,A,r].join(" ")}}}function M_(t,e,A,r){var n;for(n=A;n>=0&&n<e.length;n+=r)if(t[e[n]])return t[e[n]];for(n=A;n>=0&&n<e.length;n-=r)if(t[e[n]])return t[e[n]]}var s9={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},q_={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function K_(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function j_(t){return t.trimLeft()}function o9(t,e){for(var A=0;A<t.length;){if(t.charAt(A)===e)return[t.substring(0,A),t.substring(A+1)];A+=1}return null}function l9(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var Hc,Bg,V_,G_,z_,D2=["times"];function W_(t,e,A,r,n){var i=4,s=X_;switch(n){case Ft.API.image_compression.FAST:i=1,s=$_;break;case Ft.API.image_compression.MEDIUM:i=6,s=Y_;break;case Ft.API.image_compression.SLOW:i=9,s=J_}t=(function(o,l,h,v){for(var m,g=o.length/l,C=new Uint8Array(o.length+g),F=[c9,$_,X_,Y_,J_],_=0;_<g;_+=1){var x=_*l,H=o.subarray(x,x+l);if(v)C.set(v(H,h,m),x+_);else{for(var D=F.length,k=[],re=0;re<D;re+=1)k[re]=F[re](H,h,m);var fe=f9(k.concat());C.set(k[fe],x+_)}m=H}return C})(t,e,Math.ceil(A*r/8),s);var a=od(t,{level:i});return Ft.API.__addimage__.arrayBufferToBinaryString(a)}function c9(t){var e=Array.apply([],t);return e.unshift(0),e}function $_(t,e){var A=t.length,r=[];r[0]=1;for(var n=0;n<A;n+=1){var i=t[n-e]||0;r[n+1]=t[n]-i+256&255}return r}function X_(t,e,A){var r=t.length,n=[];n[0]=2;for(var i=0;i<r;i+=1){var s=A&&A[i]||0;n[i+1]=t[i]-s+256&255}return n}function Y_(t,e,A){var r=t.length,n=[];n[0]=3;for(var i=0;i<r;i+=1){var s=t[i-e]||0,a=A&&A[i]||0;n[i+1]=t[i]+256-(s+a>>>1)&255}return n}function J_(t,e,A){var r=t.length,n=[];n[0]=4;for(var i=0;i<r;i+=1){var s=u9(t[i-e]||0,A&&A[i]||0,A&&A[i-e]||0);n[i+1]=t[i]-s+256&255}return n}function u9(t,e,A){if(t===e&&e===A)return t;var r=Math.abs(e-A),n=Math.abs(t-A),i=Math.abs(t+e-A-A);return r<=n&&r<=i?t:n<=i?e:A}function f9(t){var e=t.map(function(A){return A.reduce(function(r,n){return r+Math.abs(n)},0)});return e.indexOf(Math.min.apply(null,e))}function H2(t,e,A){var r=e*A,n=Math.floor(r/8),i=16-(r-8*n+A),s=(1<<A)-1;return hS(t,n)>>i&s}function Z_(t,e,A,r){var n=A*r,i=Math.floor(n/8),s=16-(n-8*i+r),a=(1<<r)-1,o=(e&a)<<s;(function(l,h,v){if(h+1<l.byteLength)l.setUint16(h,v,!1);else{var m=v>>8&255;l.setUint8(h,m)}})(t,i,hS(t,i)&~(a<<s)&65535|o)}function hS(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function h9(t){var e=0;if(t[e++]!==71||t[e++]!==73||t[e++]!==70||t[e++]!==56||(t[e++]+1&253)!=56||t[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var A=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,n=t[e++],i=n>>7,s=1<<1+(7&n);t[e++],t[e++];var a=null,o=null;i&&(a=e,o=s,e+=3*s);var l=!0,h=[],v=0,m=null,g=0,C=null;for(this.width=A,this.height=r;l&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(t[e]!==11||t[e+1]==78&&t[e+2]==69&&t[e+3]==84&&t[e+4]==83&&t[e+5]==67&&t[e+6]==65&&t[e+7]==80&&t[e+8]==69&&t[e+9]==50&&t[e+10]==46&&t[e+11]==48&&t[e+12]==3&&t[e+13]==1&&t[e+16]==0)e+=14,C=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(I===0)break;e+=I}break;case 249:if(t[e++]!==4||t[e+4]!==0)throw new Error("Invalid graphics extension block.");var F=t[e++];v=t[e++]|t[e++]<<8,m=t[e++],1&F||(m=null),g=F>>2&7,e++;break;case 254:for(;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(I===0)break;e+=I}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var _=t[e++]|t[e++]<<8,x=t[e++]|t[e++]<<8,H=t[e++]|t[e++]<<8,D=t[e++]|t[e++]<<8,k=t[e++],re=k>>6&1,fe=1<<1+(7&k),Ae=a,j=o,N=!1;k>>7&&(N=!0,Ae=e,j=fe,e+=3*fe);var Z=e;for(e++;;){var I;if(!((I=t[e++])>=0))throw Error("Invalid block size");if(I===0)break;e+=I}h.push({x:_,y:x,width:H,height:D,has_local_palette:N,palette_offset:Ae,palette_size:j,data_offset:Z,data_length:e-Z,transparent_index:m,interlaced:!!re,delay:v,disposal:g});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return C},this.frameInfo=function(O){if(O<0||O>=h.length)throw new Error("Frame index out of range.");return h[O]},this.decodeAndBlitFrameBGRA=function(O,Y){var ee=this.frameInfo(O),ce=ee.width*ee.height;if(ce>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var be=new Uint8Array(ce);eS(t,ee.data_offset,be,ce);var Fe=ee.palette_offset,de=ee.transparent_index;de===null&&(de=256);var Ee=ee.width,Pe=A-Ee,Ue=Ee,P=4*(ee.y*A+ee.x),J=4*((ee.y+ee.height)*A+ee.x),te=P,ie=4*Pe;ee.interlaced===!0&&(ie+=4*A*7);for(var oe=8,ve=0,xe=be.length;ve<xe;++ve){var _e=be[ve];if(Ue===0&&(Ue=Ee,(te+=ie)>=J&&(ie=4*Pe+4*A*(oe-1),te=P+(Ee+Pe)*(oe<<1),oe>>=1)),_e===de)te+=4;else{var Le=t[Fe+3*_e],Oe=t[Fe+3*_e+1],Je=t[Fe+3*_e+2];Y[te++]=Je,Y[te++]=Oe,Y[te++]=Le,Y[te++]=255}--Ue}},this.decodeAndBlitFrameRGBA=function(O,Y){var ee=this.frameInfo(O),ce=ee.width*ee.height;if(ce>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var be=new Uint8Array(ce);eS(t,ee.data_offset,be,ce);var Fe=ee.palette_offset,de=ee.transparent_index;de===null&&(de=256);var Ee=ee.width,Pe=A-Ee,Ue=Ee,P=4*(ee.y*A+ee.x),J=4*((ee.y+ee.height)*A+ee.x),te=P,ie=4*Pe;ee.interlaced===!0&&(ie+=4*A*7);for(var oe=8,ve=0,xe=be.length;ve<xe;++ve){var _e=be[ve];if(Ue===0&&(Ue=Ee,(te+=ie)>=J&&(ie=4*Pe+4*A*(oe-1),te=P+(Ee+Pe)*(oe<<1),oe>>=1)),_e===de)te+=4;else{var Le=t[Fe+3*_e],Oe=t[Fe+3*_e+1],Je=t[Fe+3*_e+2];Y[te++]=Le,Y[te++]=Oe,Y[te++]=Je,Y[te++]=255}--Ue}}}function eS(t,e,A,r){for(var n=t[e++],i=1<<n,s=i+1,a=s+1,o=n+1,l=(1<<o)-1,h=0,v=0,m=0,g=t[e++],C=new Int32Array(4096),F=null;;){for(;h<16&&g!==0;)v|=t[e++]<<h,h+=8,g===1?g=t[e++]:--g;if(h<o)break;var _=v&l;if(v>>=o,h-=o,_!==i){if(_===s)break;for(var x=_<a?_:F,H=0,D=x;D>i;)D=C[D]>>8,++H;var k=D;if(m+H+(x!==_?1:0)>r)return void MA.log("Warning, gif stream longer than expected.");A[m++]=k;var re=m+=H;for(x!==_&&(A[m++]=k),D=x;H--;)D=C[D],A[--re]=255&D,D>>=8;F!==null&&a<4096&&(C[a++]=F<<8|k,a>=l+1&&o<12&&(++o,l=l<<1|1)),F=_}else a=s+1,l=(1<<(o=n+1))-1,F=null}return m!==r&&MA.log("Warning, gif stream shorter than expected."),A}function M2(t){var e,A,r,n,i,s=Math.floor,a=new Array(64),o=new Array(64),l=new Array(64),h=new Array(64),v=new Array(65535),m=new Array(65535),g=new Array(64),C=new Array(64),F=[],_=0,x=7,H=new Array(64),D=new Array(64),k=new Array(64),re=new Array(256),fe=new Array(2048),Ae=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],j=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],Z=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Y=[0,1,2,3,4,5,6,7,8,9,10,11],ee=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ce=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function be(P,J){for(var te=0,ie=0,oe=new Array,ve=1;ve<=16;ve++){for(var xe=1;xe<=P[ve];xe++)oe[J[ie]]=[],oe[J[ie]][0]=te,oe[J[ie]][1]=ve,ie++,te++;te*=2}return oe}function Fe(P){for(var J=P[0],te=P[1]-1;te>=0;)J&1<<te&&(_|=1<<x),te--,--x<0&&(_==255?(de(255),de(0)):de(_),x=7,_=0)}function de(P){F.push(P)}function Ee(P){de(P>>8&255),de(255&P)}function Pe(P,J,te,ie,oe){for(var ve,xe=oe[0],_e=oe[240],Le=(function(Re,dt){var $e,lt,Ze,Ut,Nt,St,Ht,Ot,tt,yt,Xe=0;for(tt=0;tt<8;++tt){$e=Re[Xe],lt=Re[Xe+1],Ze=Re[Xe+2],Ut=Re[Xe+3],Nt=Re[Xe+4],St=Re[Xe+5],Ht=Re[Xe+6];var aA=$e+(Ot=Re[Xe+7]),Gt=$e-Ot,It=lt+Ht,Rt=lt-Ht,tA=Ze+St,mt=Ze-St,Jt=Ut+Nt,nt=Ut-Nt,xt=aA+Jt,fA=aA-Jt,bt=It+tA,Ct=It-tA;Re[Xe]=xt+bt,Re[Xe+4]=xt-bt;var sA=.707106781*(Ct+fA);Re[Xe+2]=fA+sA,Re[Xe+6]=fA-sA;var ln=.382683433*((xt=nt+mt)-(Ct=Rt+Gt)),qA=.5411961*xt+ln,WA=1.306562965*Ct+ln,Sr=.707106781*(bt=mt+Rt),_t=Gt+Sr,On=Gt-Sr;Re[Xe+5]=On+qA,Re[Xe+3]=On-qA,Re[Xe+1]=_t+WA,Re[Xe+7]=_t-WA,Xe+=8}for(Xe=0,tt=0;tt<8;++tt){$e=Re[Xe],lt=Re[Xe+8],Ze=Re[Xe+16],Ut=Re[Xe+24],Nt=Re[Xe+32],St=Re[Xe+40],Ht=Re[Xe+48];var ti=$e+(Ot=Re[Xe+56]),Lt=$e-Ot,vr=lt+Ht,IA=lt-Ht,mA=Ze+St,rr=Ze-St,Bn=Ut+Nt,mi=Ut-Nt,Pn=ti+Bn,oA=ti-Bn,Qr=vr+mA,Rn=vr-mA;Re[Xe]=Pn+Qr,Re[Xe+32]=Pn-Qr;var kr=.707106781*(Rn+oA);Re[Xe+16]=oA+kr,Re[Xe+48]=oA-kr;var Ai=.382683433*((Pn=mi+rr)-(Rn=IA+Lt)),kn=.5411961*Pn+Ai,ki=1.306562965*Rn+Ai,Ua=.707106781*(Qr=rr+IA),xa=Lt+Ua,_a=Lt-Ua;Re[Xe+40]=_a+kn,Re[Xe+24]=_a-kn,Re[Xe+8]=xa+ki,Re[Xe+56]=xa-ki,Xe++}for(tt=0;tt<64;++tt)yt=Re[tt]*dt[tt],g[tt]=yt>0?yt+.5|0:yt-.5|0;return g})(P,J),Oe=0;Oe<64;++Oe)C[Ae[Oe]]=Le[Oe];var Je=C[0]-te;te=C[0],Je==0?Fe(ie[0]):(Fe(ie[m[ve=32767+Je]]),Fe(v[ve]));for(var qe=63;qe>0&&C[qe]==0;)qe--;if(qe==0)return Fe(xe),te;for(var at,q=1;q<=qe;){for(var je=q;C[q]==0&&q<=qe;)++q;var Tt=q-je;if(Tt>=16){at=Tt>>4;for(var ut=1;ut<=at;++ut)Fe(_e);Tt&=15}ve=32767+C[q],Fe(oe[(Tt<<4)+m[ve]]),Fe(v[ve]),q++}return qe!=63&&Fe(xe),te}function Ue(P){P=Math.min(Math.max(P,1),100),i!=P&&((function(J){for(var te=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],ie=0;ie<64;ie++){var oe=s((te[ie]*J+50)/100);oe=Math.min(Math.max(oe,1),255),a[Ae[ie]]=oe}for(var ve=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],xe=0;xe<64;xe++){var _e=s((ve[xe]*J+50)/100);_e=Math.min(Math.max(_e,1),255),o[Ae[xe]]=_e}for(var Le=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Oe=0,Je=0;Je<8;Je++)for(var qe=0;qe<8;qe++)l[Oe]=1/(a[Ae[Oe]]*Le[Je]*Le[qe]*8),h[Oe]=1/(o[Ae[Oe]]*Le[Je]*Le[qe]*8),Oe++})(P<50?Math.floor(5e3/P):Math.floor(200-2*P)),i=P)}this.encode=function(P,J){J&&Ue(J),F=new Array,_=0,x=7,Ee(65496),Ee(65504),Ee(16),de(74),de(70),de(73),de(70),de(0),de(1),de(1),de(0),Ee(1),Ee(1),de(0),de(0),(function(){Ee(65499),Ee(132),de(0);for(var lt=0;lt<64;lt++)de(a[lt]);de(1);for(var Ze=0;Ze<64;Ze++)de(o[Ze])})(),(function(lt,Ze){Ee(65472),Ee(17),de(8),Ee(Ze),Ee(lt),de(3),de(1),de(17),de(0),de(2),de(17),de(1),de(3),de(17),de(1)})(P.width,P.height),(function(){Ee(65476),Ee(418),de(0);for(var lt=0;lt<16;lt++)de(j[lt+1]);for(var Ze=0;Ze<=11;Ze++)de(N[Ze]);de(16);for(var Ut=0;Ut<16;Ut++)de(Z[Ut+1]);for(var Nt=0;Nt<=161;Nt++)de(I[Nt]);de(1);for(var St=0;St<16;St++)de(O[St+1]);for(var Ht=0;Ht<=11;Ht++)de(Y[Ht]);de(17);for(var Ot=0;Ot<16;Ot++)de(ee[Ot+1]);for(var tt=0;tt<=161;tt++)de(ce[tt])})(),Ee(65498),Ee(12),de(3),de(1),de(0),de(2),de(17),de(3),de(17),de(0),de(63),de(0);var te=0,ie=0,oe=0;_=0,x=7,this.encode.displayName="_encode_";for(var ve,xe,_e,Le,Oe,Je,qe,at,q,je=P.data,Tt=P.width,ut=P.height,Re=4*Tt,dt=0;dt<ut;){for(ve=0;ve<Re;){for(Oe=Re*dt+ve,qe=-1,at=0,q=0;q<64;q++)Je=Oe+(at=q>>3)*Re+(qe=4*(7&q)),dt+at>=ut&&(Je-=Re*(dt+1+at-ut)),ve+qe>=Re&&(Je-=ve+qe-Re+4),xe=je[Je++],_e=je[Je++],Le=je[Je++],H[q]=(fe[xe]+fe[_e+256|0]+fe[Le+512|0]>>16)-128,D[q]=(fe[xe+768|0]+fe[_e+1024|0]+fe[Le+1280|0]>>16)-128,k[q]=(fe[xe+1280|0]+fe[_e+1536|0]+fe[Le+1792|0]>>16)-128;te=Pe(H,l,te,e,r),ie=Pe(D,h,ie,A,n),oe=Pe(k,h,oe,A,n),ve+=32}dt+=8}if(x>=0){var $e=[];$e[1]=x+1,$e[0]=(1<<x+1)-1,Fe($e)}return Ee(65497),new Uint8Array(F)},t=t||50,(function(){for(var P=String.fromCharCode,J=0;J<256;J++)re[J]=P(J)})(),e=be(j,N),A=be(O,Y),r=be(Z,I),n=be(ee,ce),(function(){for(var P=1,J=2,te=1;te<=15;te++){for(var ie=P;ie<J;ie++)m[32767+ie]=te,v[32767+ie]=[],v[32767+ie][1]=te,v[32767+ie][0]=ie;for(var oe=-(J-1);oe<=-P;oe++)m[32767+oe]=te,v[32767+oe]=[],v[32767+oe][1]=te,v[32767+oe][0]=J-1+oe;P<<=1,J<<=1}})(),(function(){for(var P=0;P<256;P++)fe[P]=19595*P,fe[P+256|0]=38470*P,fe[P+512|0]=7471*P+32768,fe[P+768|0]=-11059*P,fe[P+1024|0]=-21709*P,fe[P+1280|0]=32768*P+8421375,fe[P+1536|0]=-27439*P,fe[P+1792|0]=-5329*P})(),Ue(t)}function Ca(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function tS(t){function e(N){if(!N)throw Error("assert :P")}function A(N,Z,I){for(var O=0;4>O;O++)if(N[Z+O]!=I.charCodeAt(O))return!0;return!1}function r(N,Z,I,O,Y){for(var ee=0;ee<Y;ee++)N[Z+ee]=I[O+ee]}function n(N,Z,I,O){for(var Y=0;Y<O;Y++)N[Z+Y]=I}function i(N){return new Int32Array(N)}function s(N,Z){for(var I=[],O=0;O<N;O++)I.push(new Z);return I}function a(N,Z){var I=[];return(function O(Y,ee,ce){for(var be=ce[ee],Fe=0;Fe<be&&(Y.push(ce.length>ee+1?[]:new Z),!(ce.length<ee+1));Fe++)O(Y[Fe],ee+1,ce)})(I,0,N),I}var o=function(){var N=this;function Z(u,w){for(var B=1<<w-1>>>0;u&B;)B>>>=1;return B?(u&B-1)+B:u}function I(u,w,B,E,Q){e(!(E%B));do u[w+(E-=B)]=Q;while(0<E)}function O(u,w,B,E,Q){if(e(2328>=Q),512>=Q)var T=i(512);else if((T=i(Q))==null)return 0;return(function(R,M,K,W,ae,pe){var $,le,we=M,Qe=1<<K,Ce=i(16),Te=i(16);for(e(ae!=0),e(W!=null),e(R!=null),e(0<K),le=0;le<ae;++le){if(15<W[le])return 0;++Ce[W[le]]}if(Ce[0]==ae)return 0;for(Te[1]=0,$=1;15>$;++$){if(Ce[$]>1<<$)return 0;Te[$+1]=Te[$]+Ce[$]}for(le=0;le<ae;++le)$=W[le],0<W[le]&&(pe[Te[$]++]=le);if(Te[15]==1)return(W=new Y).g=0,W.value=pe[0],I(R,we,1,Qe,W),Qe;var Ne,Ke=-1,De=Qe-1,Et=0,ct=1,Xt=1,gt=1<<K;for(le=0,$=1,ae=2;$<=K;++$,ae<<=1){if(ct+=Xt<<=1,0>(Xt-=Ce[$]))return 0;for(;0<Ce[$];--Ce[$])(W=new Y).g=$,W.value=pe[le++],I(R,we+Et,ae,gt,W),Et=Z(Et,$)}for($=K+1,ae=2;15>=$;++$,ae<<=1){if(ct+=Xt<<=1,0>(Xt-=Ce[$]))return 0;for(;0<Ce[$];--Ce[$]){if(W=new Y,(Et&De)!=Ke){for(we+=gt,Ne=1<<(Ke=$)-K;15>Ke&&!(0>=(Ne-=Ce[Ke]));)++Ke,Ne<<=1;Qe+=gt=1<<(Ne=Ke-K),R[M+(Ke=Et&De)].g=Ne+K,R[M+Ke].value=we-M-Ke}W.g=$-K,W.value=pe[le++],I(R,we+(Et>>K),ae,gt,W),Et=Z(Et,$)}}return ct!=2*Te[15]-1?0:Qe})(u,w,B,E,Q,T)}function Y(){this.value=this.g=0}function ee(){this.value=this.g=0}function ce(){this.G=s(5,Y),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(hs,ee)}function be(u,w,B,E){e(u!=null),e(w!=null),e(2147483648>E),u.Ca=254,u.I=0,u.b=-8,u.Ka=0,u.oa=w,u.pa=B,u.Jd=w,u.Yc=B+E,u.Zc=4<=E?B+E-4+1:B,xe(u)}function Fe(u,w){for(var B=0;0<w--;)B|=Le(u,128)<<w;return B}function de(u,w){var B=Fe(u,w);return _e(u)?-B:B}function Ee(u,w,B,E){var Q,T=0;for(e(u!=null),e(w!=null),e(4294967288>E),u.Sb=E,u.Ra=0,u.u=0,u.h=0,4<E&&(E=4),Q=0;Q<E;++Q)T+=w[B+Q]<<8*Q;u.Ra=T,u.bb=E,u.oa=w,u.pa=B}function Pe(u){for(;8<=u.u&&u.bb<u.Sb;)u.Ra>>>=8,u.Ra+=u.oa[u.pa+u.bb]<<en-8>>>0,++u.bb,u.u-=8;ie(u)&&(u.h=1,u.u=0)}function Ue(u,w){if(e(0<=w),!u.h&&w<=js){var B=te(u)&Pa[w];return u.u+=w,Pe(u),B}return u.h=1,u.u=0}function P(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function J(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function te(u){return u.Ra>>>(u.u&en-1)>>>0}function ie(u){return e(u.bb<=u.Sb),u.h||u.bb==u.Sb&&u.u>en}function oe(u,w){u.u=w,u.h=ie(u)}function ve(u){u.u>=qr&&(e(u.u>=qr),Pe(u))}function xe(u){e(u!=null&&u.oa!=null),u.pa<u.Zc?(u.I=(u.oa[u.pa++]|u.I<<8)>>>0,u.b+=8):(e(u!=null&&u.oa!=null),u.pa<u.Yc?(u.b+=8,u.I=u.oa[u.pa++]|u.I<<8):u.Ka?u.b=0:(u.I<<=8,u.b+=8,u.Ka=1))}function _e(u){return Fe(u,1)}function Le(u,w){var B=u.Ca;0>u.b&&xe(u);var E=u.b,Q=B*w>>>8,T=(u.I>>>E>Q)+0;for(T?(B-=Q,u.I-=Q+1<<E>>>0):B=Q+1,E=B,Q=0;256<=E;)Q+=8,E>>=8;return E=7^Q+ds[E],u.b-=E,u.Ca=(B<<E)-1,T}function Oe(u,w,B){u[w+0]=B>>24&255,u[w+1]=B>>16&255,u[w+2]=B>>8&255,u[w+3]=255&B}function Je(u,w){return u[w+0]|u[w+1]<<8}function qe(u,w){return Je(u,w)|u[w+2]<<16}function at(u,w){return Je(u,w)|Je(u,w+2)<<16}function q(u,w){var B=1<<w;return e(u!=null),e(0<w),u.X=i(B),u.X==null?0:(u.Mb=32-w,u.Xa=w,1)}function je(u,w){e(u!=null),e(w!=null),e(u.Xa==w.Xa),r(w.X,0,u.X,0,1<<w.Xa)}function Tt(){this.X=[],this.Xa=this.Mb=0}function ut(u,w,B,E){e(B!=null),e(E!=null);var Q=B[0],T=E[0];return Q==0&&(Q=(u*T+w/2)/w),T==0&&(T=(w*Q+u/2)/u),0>=Q||0>=T?0:(B[0]=Q,E[0]=T,1)}function Re(u,w){return u+(1<<w)-1>>>w}function dt(u,w){return((4278255360&u)+(4278255360&w)>>>0&4278255360)+((16711935&u)+(16711935&w)>>>0&16711935)>>>0}function $e(u,w){N[w]=function(B,E,Q,T,R,M,K){var W;for(W=0;W<R;++W){var ae=N[u](M[K+W-1],Q,T+W);M[K+W]=dt(B[E+W],ae)}}}function lt(){this.ud=this.hd=this.jd=0}function Ze(u,w){return((4278124286&(u^w))>>>1)+(u&w)>>>0}function Ut(u){return 0<=u&&256>u?u:0>u?0:255<u?255:void 0}function Nt(u,w){return Ut(u+(u-w+.5>>1))}function St(u,w,B){return Math.abs(w-B)-Math.abs(u-B)}function Ht(u,w,B,E,Q,T,R){for(E=T[R-1],B=0;B<Q;++B)T[R+B]=E=dt(u[w+B],E)}function Ot(u,w,B,E,Q){var T;for(T=0;T<B;++T){var R=u[w+T],M=R>>8&255,K=16711935&(K=(K=16711935&R)+((M<<16)+M));E[Q+T]=(4278255360&R)+K>>>0}}function tt(u,w){w.jd=255&u,w.hd=u>>8&255,w.ud=u>>16&255}function yt(u,w,B,E,Q,T){var R;for(R=0;R<E;++R){var M=w[B+R],K=M>>>8,W=M,ae=255&(ae=(ae=M>>>16)+((u.jd<<24>>24)*(K<<24>>24)>>>5));W=255&(W=(W+=(u.hd<<24>>24)*(K<<24>>24)>>>5)+((u.ud<<24>>24)*(ae<<24>>24)>>>5)),Q[T+R]=(4278255360&M)+(ae<<16)+W}}function Xe(u,w,B,E,Q){N[w]=function(T,R,M,K,W,ae,pe,$,le){for(K=pe;K<$;++K)for(pe=0;pe<le;++pe)W[ae++]=Q(M[E(T[R++])])},N[u]=function(T,R,M,K,W,ae,pe){var $=8>>T.b,le=T.Ea,we=T.K[0],Qe=T.w;if(8>$)for(T=(1<<T.b)-1,Qe=(1<<$)-1;R<M;++R){var Ce,Te=0;for(Ce=0;Ce<le;++Ce)Ce&T||(Te=E(K[W++])),ae[pe++]=Q(we[Te&Qe]),Te>>=$}else N["VP8LMapColor"+B](K,W,we,Qe,ae,pe,R,M,le)}}function aA(u,w,B,E,Q){for(B=w+B;w<B;){var T=u[w++];E[Q++]=T>>16&255,E[Q++]=T>>8&255,E[Q++]=255&T}}function Gt(u,w,B,E,Q){for(B=w+B;w<B;){var T=u[w++];E[Q++]=T>>16&255,E[Q++]=T>>8&255,E[Q++]=255&T,E[Q++]=T>>24&255}}function It(u,w,B,E,Q){for(B=w+B;w<B;){var T=(R=u[w++])>>16&240|R>>12&15,R=240&R|R>>28&15;E[Q++]=T,E[Q++]=R}}function Rt(u,w,B,E,Q){for(B=w+B;w<B;){var T=(R=u[w++])>>16&248|R>>13&7,R=R>>5&224|R>>3&31;E[Q++]=T,E[Q++]=R}}function tA(u,w,B,E,Q){for(B=w+B;w<B;){var T=u[w++];E[Q++]=255&T,E[Q++]=T>>8&255,E[Q++]=T>>16&255}}function mt(u,w,B,E,Q,T){if(T==0)for(B=w+B;w<B;)Oe(E,((T=u[w++])[0]>>24|T[1]>>8&65280|T[2]<<8&16711680|T[3]<<24)>>>0),Q+=32;else r(E,Q,u,w,B)}function Jt(u,w){N[w][0]=N[u+"0"],N[w][1]=N[u+"1"],N[w][2]=N[u+"2"],N[w][3]=N[u+"3"],N[w][4]=N[u+"4"],N[w][5]=N[u+"5"],N[w][6]=N[u+"6"],N[w][7]=N[u+"7"],N[w][8]=N[u+"8"],N[w][9]=N[u+"9"],N[w][10]=N[u+"10"],N[w][11]=N[u+"11"],N[w][12]=N[u+"12"],N[w][13]=N[u+"13"],N[w][14]=N[u+"0"],N[w][15]=N[u+"0"]}function nt(u){return u==uu||u==$s||u==Il||u==fu}function xt(){this.eb=[],this.size=this.A=this.fb=0}function fA(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function bt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new xt,this.f.kb=new fA,this.sd=null}function Ct(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function sA(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ln(u){return alert("todo:WebPSamplerProcessPlane"),u.T}function qA(u,w){var B=u.T,E=w.ba.f.RGBA,Q=E.eb,T=E.fb+u.ka*E.A,R=Cn[w.ba.S],M=u.y,K=u.O,W=u.f,ae=u.N,pe=u.ea,$=u.W,le=w.cc,we=w.dc,Qe=w.Mc,Ce=w.Nc,Te=u.ka,Ne=u.ka+u.T,Ke=u.U,De=Ke+1>>1;for(Te==0?R(M,K,null,null,W,ae,pe,$,W,ae,pe,$,Q,T,null,null,Ke):(R(w.ec,w.fc,M,K,le,we,Qe,Ce,W,ae,pe,$,Q,T-E.A,Q,T,Ke),++B);Te+2<Ne;Te+=2)le=W,we=ae,Qe=pe,Ce=$,ae+=u.Rc,$+=u.Rc,T+=2*E.A,R(M,(K+=2*u.fa)-u.fa,M,K,le,we,Qe,Ce,W,ae,pe,$,Q,T-E.A,Q,T,Ke);return K+=u.fa,u.j+Ne<u.o?(r(w.ec,w.fc,M,K,Ke),r(w.cc,w.dc,W,ae,De),r(w.Mc,w.Nc,pe,$,De),B--):1&Ne||R(M,K,null,null,W,ae,pe,$,W,ae,pe,$,Q,T+E.A,null,null,Ke),B}function WA(u,w,B){var E=u.F,Q=[u.J];if(E!=null){var T=u.U,R=w.ba.S,M=R==Ql||R==Il;w=w.ba.f.RGBA;var K=[0],W=u.ka;K[0]=u.T,u.Kb&&(W==0?--K[0]:(--W,Q[0]-=u.width),u.j+u.ka+u.T==u.o&&(K[0]=u.o-u.j-W));var ae=w.eb;W=w.fb+W*w.A,u=To(E,Q[0],u.width,T,K,ae,W+(M?0:3),w.A),e(B==K),u&&nt(R)&&Ws(ae,W,M,T,K,w.A)}return 0}function Sr(u){var w=u.ma,B=w.ba.S,E=11>B,Q=B==Sl||B==ws||B==Ql||B==cu||B==12||nt(B);if(w.memory=null,w.Ib=null,w.Jb=null,w.Nd=null,!mr(w.Oa,u,Q?11:12))return 0;if(Q&&nt(B)&&Ei(),u.da)alert("todo:use_scaling");else{if(E){if(w.Ib=ln,u.Kb){if(B=u.U+1>>1,w.memory=i(u.U+2*B),w.memory==null)return 0;w.ec=w.memory,w.fc=0,w.cc=w.ec,w.dc=w.fc+u.U,w.Mc=w.cc,w.Nc=w.dc+B,w.Ib=qA,Ei()}}else alert("todo:EmitYUV");Q&&(w.Jb=WA,E&&VA())}if(E&&!yh){for(u=0;256>u;++u)n0[u]=89858*(u-128)+Nl>>vs,s0[u]=-22014*(u-128)+Nl,a0[u]=-45773*(u-128),i0[u]=113618*(u-128)+Nl>>vs;for(u=Po;u<pu;++u)w=76283*(u-16)+Nl>>vs,o0[u-Po]=Dr(w,255),l0[u-Po]=Dr(w+8>>4,15);yh=1}return 1}function _t(u){var w=u.ma,B=u.U,E=u.T;return e(!(1&u.ka)),0>=B||0>=E?0:(B=w.Ib(u,w),w.Jb!=null&&w.Jb(u,w,B),w.Dc+=B,1)}function On(u){u.ma.memory=null}function ti(u,w,B,E){return Ue(u,8)!=47?0:(w[0]=Ue(u,14)+1,B[0]=Ue(u,14)+1,E[0]=Ue(u,1),Ue(u,3)!=0?0:!u.h)}function Lt(u,w){if(4>u)return u+1;var B=u-2>>1;return(2+(1&u)<<B)+Ue(w,B)+1}function vr(u,w){return 120<w?w-120:1<=(B=((B=zg[w-1])>>4)*u+(8-(15&B)))?B:1;var B}function IA(u,w,B){var E=te(B),Q=u[w+=255&E].g-8;return 0<Q&&(oe(B,B.u+8),E=te(B),w+=u[w].value,w+=E&(1<<Q)-1),oe(B,B.u+u[w].g),u[w].value}function mA(u,w,B){return B.g+=u.g,B.value+=u.value<<w>>>0,e(8>=B.g),u.g}function rr(u,w,B){var E=u.xc;return e((w=E==0?0:u.vc[u.md*(B>>E)+(w>>E)])<u.Wb),u.Ya[w]}function Bn(u,w,B,E){var Q=u.ab,T=u.c*w,R=u.C;w=R+w;var M=B,K=E;for(E=u.Ta,B=u.Ua;0<Q--;){var W=u.gc[Q],ae=R,pe=w,$=M,le=K,we=(K=E,M=B,W.Ea);switch(e(ae<pe),e(pe<=W.nc),W.hc){case 2:Mn($,le,(pe-ae)*we,K,M);break;case 0:var Qe=ae,Ce=pe,Te=K,Ne=M,Ke=(gt=W).Ea;Qe==0&&(sa($,le,null,null,1,Te,Ne),Ht($,le+1,0,0,Ke-1,Te,Ne+1),le+=Ke,Ne+=Ke,++Qe);for(var De=1<<gt.b,Et=De-1,ct=Re(Ke,gt.b),Xt=gt.K,gt=gt.w+(Qe>>gt.b)*ct;Qe<Ce;){var He=Xt,Br=gt,Yt=1;for(yr($,le,Te,Ne-Ke,1,Te,Ne);Yt<Ke;){var ht=(Yt&~Et)+De;ht>Ke&&(ht=Ke),(0,oi[He[Br++]>>8&15])($,le+ +Yt,Te,Ne+Yt-Ke,ht-Yt,Te,Ne+Yt),Yt=ht}le+=Ke,Ne+=Ke,++Qe&Et||(gt+=ct)}pe!=W.nc&&r(K,M-we,K,M+(pe-ae-1)*we,we);break;case 1:for(we=$,Ce=le,Ke=($=W.Ea)-(Ne=$&~(Te=(le=1<<W.b)-1)),Qe=Re($,W.b),De=W.K,W=W.w+(ae>>W.b)*Qe;ae<pe;){for(Et=De,ct=W,Xt=new lt,gt=Ce+Ne,He=Ce+$;Ce<gt;)tt(Et[ct++],Xt),oa(Xt,we,Ce,le,K,M),Ce+=le,M+=le;Ce<He&&(tt(Et[ct++],Xt),oa(Xt,we,Ce,Ke,K,M),Ce+=Ke,M+=Ke),++ae&Te||(W+=Qe)}break;case 3:if($==K&&le==M&&0<W.b){for(Ce=K,$=we=M+(pe-ae)*we-(Ne=(pe-ae)*Re(W.Ea,W.b)),le=K,Te=M,Qe=[],Ne=(Ke=Ne)-1;0<=Ne;--Ne)Qe[Ne]=le[Te+Ne];for(Ne=Ke-1;0<=Ne;--Ne)Ce[$+Ne]=Qe[Ne];bn(W,ae,pe,K,we,K,M)}else bn(W,ae,pe,$,le,K,M)}M=E,K=B}K!=B&&r(E,B,M,K,T)}function mi(u,w){var B=u.V,E=u.Ba+u.c*u.C,Q=w-u.C;if(e(w<=u.l.o),e(16>=Q),0<Q){var T=u.l,R=u.Ta,M=u.Ua,K=T.width;if(Bn(u,Q,B,E),Q=M=[M],e((B=u.C)<(E=w)),e(T.v<T.va),E>T.o&&(E=T.o),B<T.j){var W=T.j-B;B=T.j,Q[0]+=W*K}if(B>=E?B=0:(Q[0]+=4*T.v,T.ka=B-T.j,T.U=T.va-T.v,T.T=E-B,B=1),B){if(M=M[0],11>(B=u.ca).S){var ae=B.f.RGBA,pe=(E=B.S,Q=T.U,T=T.T,W=ae.eb,ae.A),$=T;for(ae=ae.fb+u.Ma*ae.A;0<$--;){var le=R,we=M,Qe=Q,Ce=W,Te=ae;switch(E){case ua:Vs(le,we,Qe,Ce,Te);break;case Sl:Io(le,we,Qe,Ce,Te);break;case uu:Io(le,we,Qe,Ce,Te),Ws(Ce,Te,0,Qe,1,0);break;case ch:ps(le,we,Qe,Ce,Te);break;case ws:mt(le,we,Qe,Ce,Te,1);break;case $s:mt(le,we,Qe,Ce,Te,1),Ws(Ce,Te,0,Qe,1,0);break;case Ql:mt(le,we,Qe,Ce,Te,0);break;case Il:mt(le,we,Qe,Ce,Te,0),Ws(Ce,Te,1,Qe,1,0);break;case cu:Vi(le,we,Qe,Ce,Te);break;case fu:Vi(le,we,Qe,Ce,Te),ih(Ce,Te,Qe,1,0);break;case uh:fn(le,we,Qe,Ce,Te);break;default:e(0)}M+=K,ae+=pe}u.Ma+=T}else alert("todo:EmitRescaledRowsYUVA");e(u.Ma<=B.height)}}u.C=w,e(u.C<=u.i)}function Pn(u){var w;if(0<u.ua)return 0;for(w=0;w<u.Wb;++w){var B=u.Ya[w].G,E=u.Ya[w].H;if(0<B[1][E[1]+0].g||0<B[2][E[2]+0].g||0<B[3][E[3]+0].g)return 0}return 1}function oA(u,w,B,E,Q,T){if(u.Z!=0){var R=u.qd,M=u.rd;for(e(ka[u.Z]!=null);w<B;++w)ka[u.Z](R,M,E,Q,E,Q,T),R=E,M=Q,Q+=T;u.qd=R,u.rd=M}}function Qr(u,w){var B=u.l.ma,E=B.Z==0||B.Z==1?u.l.j:u.C;if(E=u.C<E?E:u.C,e(w<=u.l.o),w>E){var Q=u.l.width,T=B.ca,R=B.tb+Q*E,M=u.V,K=u.Ba+u.c*E,W=u.gc;e(u.ab==1),e(W[0].hc==3),ji(W[0],E,w,M,K,T,R),oA(B,E,w,T,R,Q)}u.C=u.Ma=w}function Rn(u,w,B,E,Q,T,R){var M=u.$/E,K=u.$%E,W=u.m,ae=u.s,pe=B+u.$,$=pe;Q=B+E*Q;var le=B+E*T,we=280+ae.ua,Qe=u.Pb?M:16777216,Ce=0<ae.ua?ae.Wa:null,Te=ae.wc,Ne=pe<le?rr(ae,K,M):null;e(u.C<T),e(le<=Q);var Ke=!1;e:for(;;){for(;Ke||pe<le;){var De=0;if(M>=Qe){var Et=pe-B;e((Qe=u).Pb),Qe.wd=Qe.m,Qe.xd=Et,0<Qe.s.ua&&je(Qe.s.Wa,Qe.s.vb),Qe=M+Ll}if(K&Te||(Ne=rr(ae,K,M)),e(Ne!=null),Ne.Qb&&(w[pe]=Ne.qb,Ke=!0),!Ke)if(ve(W),Ne.jc){De=W,Et=w;var ct=pe,Xt=Ne.pd[te(De)&hs-1];e(Ne.jc),256>Xt.g?(oe(De,De.u+Xt.g),Et[ct]=Xt.value,De=0):(oe(De,De.u+Xt.g-256),e(256<=Xt.value),De=Xt.value),De==0&&(Ke=!0)}else De=IA(Ne.G[0],Ne.H[0],W);if(W.h)break;if(Ke||256>De){if(!Ke)if(Ne.nd)w[pe]=(Ne.qb|De<<8)>>>0;else{if(ve(W),Ke=IA(Ne.G[1],Ne.H[1],W),ve(W),Et=IA(Ne.G[2],Ne.H[2],W),ct=IA(Ne.G[3],Ne.H[3],W),W.h)break;w[pe]=(ct<<24|Ke<<16|De<<8|Et)>>>0}if(Ke=!1,++pe,++K>=E&&(K=0,++M,R!=null&&M<=T&&!(M%16)&&R(u,M),Ce!=null))for(;$<pe;)De=w[$++],Ce.X[(506832829*De&4294967295)>>>Ce.Mb]=De}else if(280>De){if(De=Lt(De-256,W),Et=IA(Ne.G[4],Ne.H[4],W),ve(W),Et=vr(E,Et=Lt(Et,W)),W.h)break;if(pe-B<Et||Q-pe<De)break e;for(ct=0;ct<De;++ct)w[pe+ct]=w[pe+ct-Et];for(pe+=De,K+=De;K>=E;)K-=E,++M,R!=null&&M<=T&&!(M%16)&&R(u,M);if(e(pe<=Q),K&Te&&(Ne=rr(ae,K,M)),Ce!=null)for(;$<pe;)De=w[$++],Ce.X[(506832829*De&4294967295)>>>Ce.Mb]=De}else{if(!(De<we))break e;for(Ke=De-280,e(Ce!=null);$<pe;)De=w[$++],Ce.X[(506832829*De&4294967295)>>>Ce.Mb]=De;De=pe,e(!(Ke>>>(Et=Ce).Xa)),w[De]=Et.X[Ke],Ke=!0}Ke||e(W.h==ie(W))}if(u.Pb&&W.h&&pe<Q)e(u.m.h),u.a=5,u.m=u.wd,u.$=u.xd,0<u.s.ua&&je(u.s.vb,u.s.Wa);else{if(W.h)break e;R?.(u,M>T?T:M),u.a=0,u.$=pe-B}return 1}return u.a=3,0}function kr(u){e(u!=null),u.vc=null,u.yc=null,u.Ya=null;var w=u.Wa;w!=null&&(w.X=null),u.vb=null,e(u!=null)}function Ai(){var u=new pt;return u==null?null:(u.a=0,u.xb=dh,Jt("Predictor","VP8LPredictors"),Jt("Predictor","VP8LPredictors_C"),Jt("PredictorAdd","VP8LPredictorsAdd"),Jt("PredictorAdd","VP8LPredictorsAdd_C"),Mn=Ot,oa=yt,Vs=aA,Io=Gt,Vi=It,fn=Rt,ps=tA,N.VP8LMapColor32b=nA,N.VP8LMapColor8b=xi,u)}function kn(u,w,B,E,Q){var T=1,R=[u],M=[w],K=E.m,W=E.s,ae=null,pe=0;e:for(;;){if(B)for(;T&&Ue(K,1);){var $=R,le=M,we=E,Qe=1,Ce=we.m,Te=we.gc[we.ab],Ne=Ue(Ce,2);if(we.Oc&1<<Ne)T=0;else{switch(we.Oc|=1<<Ne,Te.hc=Ne,Te.Ea=$[0],Te.nc=le[0],Te.K=[null],++we.ab,e(4>=we.ab),Ne){case 0:case 1:Te.b=Ue(Ce,3)+2,Qe=kn(Re(Te.Ea,Te.b),Re(Te.nc,Te.b),0,we,Te.K),Te.K=Te.K[0];break;case 3:var Ke,De=Ue(Ce,8)+1,Et=16<De?0:4<De?1:2<De?2:3;if($[0]=Re(Te.Ea,Et),Te.b=Et,Ke=Qe=kn(De,1,0,we,Te.K)){var ct,Xt=De,gt=Te,He=1<<(8>>gt.b),Br=i(He);if(Br==null)Ke=0;else{var Yt=gt.K[0],ht=gt.w;for(Br[0]=gt.K[0][0],ct=1;ct<1*Xt;++ct)Br[ct]=dt(Yt[ht+ct],Br[ct-1]);for(;ct<4*He;++ct)Br[ct]=0;gt.K[0]=null,gt.K[0]=Br,Ke=1}}Qe=Ke;break;case 2:break;default:e(0)}T=Qe}}if(R=R[0],M=M[0],T&&Ue(K,1)&&!(T=1<=(pe=Ue(K,4))&&11>=pe)){E.a=3;break e}var Ge;if(Ge=T)t:{var ir,jt,AA,SA=E,Kr=R,hn=M,JA=pe,ZA=B,jr=SA.m,ar=SA.s,hA=[null],bA=1,er=0,vA=Wg[JA];A:for(;;){if(ZA&&Ue(jr,1)){var Vr=Ue(jr,3)+2,Qi=Re(Kr,Vr),sr=Re(hn,Vr),En=Qi*sr;if(!kn(Qi,sr,0,SA,hA))break A;for(hA=hA[0],ar.xc=Vr,ir=0;ir<En;++ir){var NA=hA[ir]>>8&65535;hA[ir]=NA,NA>=bA&&(bA=NA+1)}}if(jr.h)break A;for(jt=0;5>jt;++jt){var br=No[jt];!jt&&0<JA&&(br+=1<<JA),er<br&&(er=br)}var Kn=s(bA*vA,Y),dn=bA,Fn=s(dn,ce);if(Fn==null)var jn=null;else e(65536>=dn),jn=Fn;var Un=i(er);if(jn==null||Un==null||Kn==null){SA.a=1;break A}var Vn=Kn;for(ir=AA=0;ir<bA;++ir){var OA=jn[ir],Gn=OA.G,xn=OA.H,ms=0,Ii=1,Cr=0;for(jt=0;5>jt;++jt){br=No[jt],Gn[jt]=Vn,xn[jt]=AA,!jt&&0<JA&&(br+=1<<JA);n:{var Ro,Pl=br,Rl=SA,Ys=Un,wu=Vn,vu=AA,kl=0,ha=Rl.m,Bh=Ue(ha,1);if(n(Ys,0,0,Pl),Bh){var bh=Ue(ha,1)+1,mu=Ue(ha,1),Ch=Ue(ha,mu==0?1:8);Ys[Ch]=1,bh==2&&(Ys[Ch=Ue(ha,8)]=1);var Dl=1}else{var Eh=i(19),zn=Ue(ha,4)+4;if(19<zn){Rl.a=3;var Js=0;break n}for(Ro=0;Ro<zn;++Ro)Eh[Gg[Ro]]=Ue(ha,3);var yu=void 0,ko=void 0,Fh=Rl,f0=Eh,Hl=Pl,Uh=Ys,Bu=0,Da=Fh.m,xh=8,bu=s(128,Y);r:for(;O(bu,0,7,f0,19);){if(Ue(Da,1)){var h0=2+2*Ue(Da,3);if((yu=2+Ue(Da,h0))>Hl)break r}else yu=Hl;for(ko=0;ko<Hl&&yu--;){ve(Da);var Ml=bu[0+(127&te(Da))];oe(Da,Da.u+Ml.g);var ys=Ml.value;if(16>ys)Uh[ko++]=ys,ys!=0&&(xh=ys);else{var Gr=ys==16,Zs=ys-16,d0=jg[Zs],_h=Ue(Da,Kg[Zs])+d0;if(ko+_h>Hl)break r;for(var Sh=Gr?xh:0;0<_h--;)Uh[ko++]=Sh}}Bu=1;break r}Bu||(Fh.a=3),Dl=Bu}(Dl=Dl&&!ha.h)&&(kl=O(wu,vu,8,Ys,Pl)),Dl&&kl!=0?Js=kl:(Rl.a=3,Js=0)}if(Js==0)break A;if(Ii&&Vg[jt]==1&&(Ii=Vn[AA].g==0),ms+=Vn[AA].g,AA+=Js,3>=jt){var Bs,Cu=Un[0];for(Bs=1;Bs<br;++Bs)Un[Bs]>Cu&&(Cu=Un[Bs]);Cr+=Cu}}if(OA.nd=Ii,OA.Qb=0,Ii&&(OA.qb=(Gn[3][xn[3]+0].value<<24|Gn[1][xn[1]+0].value<<16|Gn[2][xn[2]+0].value)>>>0,ms==0&&256>Gn[0][xn[0]+0].value&&(OA.Qb=1,OA.qb+=Gn[0][xn[0]+0].value<<8)),OA.jc=!OA.Qb&&6>Cr,OA.jc){var ql,da=OA;for(ql=0;ql<hs;++ql){var Ha=ql,Ma=da.pd[Ha],Kl=da.G[0][da.H[0]+Ha];256<=Kl.value?(Ma.g=Kl.g+256,Ma.value=Kl.value):(Ma.g=0,Ma.value=0,Ha>>=mA(Kl,8,Ma),Ha>>=mA(da.G[1][da.H[1]+Ha],16,Ma),Ha>>=mA(da.G[2][da.H[2]+Ha],0,Ma),mA(da.G[3][da.H[3]+Ha],24,Ma))}}}ar.vc=hA,ar.Wb=bA,ar.Ya=jn,ar.yc=Kn,Ge=1;break t}Ge=0}if(!(T=Ge)){E.a=3;break e}if(0<pe){if(W.ua=1<<pe,!q(W.Wa,pe)){E.a=1,T=0;break e}}else W.ua=0;var Eu=E,Qh=R,Ih=M,jl=Eu.s,Vl=jl.xc;if(Eu.c=Qh,Eu.i=Ih,jl.md=Re(Qh,Vl),jl.wc=Vl==0?-1:(1<<Vl)-1,B){E.xb=hh;break e}if((ae=i(R*M))==null){E.a=1,T=0;break e}T=(T=Rn(E,ae,0,R,M,M,null))&&!K.h;break e}return T?(Q!=null?Q[0]=ae:(e(ae==null),e(B)),E.$=0,B||kr(W)):kr(W),T}function ki(u,w){var B=u.c*u.i,E=B+w+16*w;return e(u.c<=w),u.V=i(E),u.V==null?(u.Ta=null,u.Ua=0,u.a=1,0):(u.Ta=u.V,u.Ua=u.Ba+B+w,1)}function Ua(u,w){var B=u.C,E=w-B,Q=u.V,T=u.Ba+u.c*B;for(e(w<=u.l.o);0<E;){var R=16<E?16:E,M=u.l.ma,K=u.l.width,W=K*R,ae=M.ca,pe=M.tb+K*B,$=u.Ta,le=u.Ua;Bn(u,R,Q,T),ah($,le,ae,pe,W),oA(M,B,B+R,ae,pe,K),E-=R,Q+=R*u.c,B+=R}e(B==w),u.C=u.Ma=w}function xa(){this.ub=this.yd=this.td=this.Rb=0}function _a(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Uo(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Ir(){this.Yb=(function(){var u=[];return(function w(B,E,Q){for(var T=Q[E],R=0;R<T&&(B.push(Q.length>E+1?[]:0),!(Q.length<E+1));R++)w(B[R],E+1,Q)})(u,0,[3,11]),u})()}function Sa(){this.jb=i(3),this.Wc=a([4,8],Ir),this.Xc=a([4,17],Ir)}function cn(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function un(){this.ld=this.La=this.dd=this.tc=0}function yi(){this.Na=this.la=0}function is(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Qa(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function ri(){this.uc=this.M=this.Nb=0,this.wa=Array(new un),this.Y=0,this.ya=Array(new Qa),this.aa=0,this.l=new ii}function ni(){this.y=i(16),this.f=i(8),this.ea=i(8)}function ra(){this.cb=this.a=0,this.sc="",this.m=new P,this.Od=new xa,this.Kc=new _a,this.ed=new cn,this.Qa=new Uo,this.Ic=this.$c=this.Aa=0,this.D=new ri,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,P),this.ia=0,this.pb=s(4,is),this.Pa=new Sa,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ni),this.Hd=0,this.rb=Array(new yi),this.sb=0,this.wa=Array(new un),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Qa),this.L=this.aa=0,this.gd=a([4,2],un),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Dr(u,w){return 0>u?0:u>w?w:u}function ii(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function $r(){var u=new ra;return u!=null&&(u.a=0,u.sc="OK",u.cb=0,u.Xb=0,Oo||(Oo=$A)),u}function DA(u,w,B){return u.a==0&&(u.a=w,u.sc=B,u.cb=0),0}function Di(u,w,B){return 3<=B&&u[w+0]==157&&u[w+1]==1&&u[w+2]==42}function Dn(u,w){if(u==null)return 0;if(u.a=0,u.sc="OK",w==null)return DA(u,2,"null VP8Io passed to VP8GetHeaders()");var B=w.data,E=w.w,Q=w.ha;if(4>Q)return DA(u,7,"Truncated header.");var T=B[E+0]|B[E+1]<<8|B[E+2]<<16,R=u.Od;if(R.Rb=!(1&T),R.td=T>>1&7,R.yd=T>>4&1,R.ub=T>>5,3<R.td)return DA(u,3,"Incorrect keyframe parameters.");if(!R.yd)return DA(u,4,"Frame not displayable.");E+=3,Q-=3;var M=u.Kc;if(R.Rb){if(7>Q)return DA(u,7,"cannot parse picture header");if(!Di(B,E,Q))return DA(u,3,"Bad code word");M.c=16383&(B[E+4]<<8|B[E+3]),M.Td=B[E+4]>>6,M.i=16383&(B[E+6]<<8|B[E+5]),M.Ud=B[E+6]>>6,E+=7,Q-=7,u.za=M.c+15>>4,u.Ub=M.i+15>>4,w.width=M.c,w.height=M.i,w.Da=0,w.j=0,w.v=0,w.va=w.width,w.o=w.height,w.da=0,w.ib=w.width,w.hb=w.height,w.U=w.width,w.T=w.height,n((T=u.Pa).jb,0,255,T.jb.length),e((T=u.Qa)!=null),T.Cb=0,T.Bb=0,T.Fb=1,n(T.Zb,0,0,T.Zb.length),n(T.Lb,0,0,T.Lb)}if(R.ub>Q)return DA(u,7,"bad partition length");be(T=u.m,B,E,R.ub),E+=R.ub,Q-=R.ub,R.Rb&&(M.Ld=_e(T),M.Kd=_e(T)),M=u.Qa;var K,W=u.Pa;if(e(T!=null),e(M!=null),M.Cb=_e(T),M.Cb){if(M.Bb=_e(T),_e(T)){for(M.Fb=_e(T),K=0;4>K;++K)M.Zb[K]=_e(T)?de(T,7):0;for(K=0;4>K;++K)M.Lb[K]=_e(T)?de(T,6):0}if(M.Bb)for(K=0;3>K;++K)W.jb[K]=_e(T)?Fe(T,8):255}else M.Bb=0;if(T.Ka)return DA(u,3,"cannot parse segment header");if((M=u.ed).zd=_e(T),M.Tb=Fe(T,6),M.wb=Fe(T,3),M.Pc=_e(T),M.Pc&&_e(T)){for(W=0;4>W;++W)_e(T)&&(M.vd[W]=de(T,6));for(W=0;4>W;++W)_e(T)&&(M.od[W]=de(T,6))}if(u.L=M.Tb==0?0:M.zd?1:2,T.Ka)return DA(u,3,"cannot parse filter header");var ae=Q;if(Q=K=E,E=K+ae,M=ae,u.Xb=(1<<Fe(u.m,2))-1,ae<3*(W=u.Xb))B=7;else{for(K+=3*W,M-=3*W,ae=0;ae<W;++ae){var pe=B[Q+0]|B[Q+1]<<8|B[Q+2]<<16;pe>M&&(pe=M),be(u.Jc[+ae],B,K,pe),K+=pe,M-=pe,Q+=3}be(u.Jc[+W],B,K,M),B=K<E?0:5}if(B!=0)return DA(u,B,"cannot parse partitions");for(B=Fe(K=u.m,7),Q=_e(K)?de(K,4):0,E=_e(K)?de(K,4):0,M=_e(K)?de(K,4):0,W=_e(K)?de(K,4):0,K=_e(K)?de(K,4):0,ae=u.Qa,pe=0;4>pe;++pe){if(ae.Cb){var $=ae.Zb[pe];ae.Fb||($+=B)}else{if(0<pe){u.pb[pe]=u.pb[0];continue}$=B}var le=u.pb[pe];le.Sc[0]=hu[Dr($+Q,127)],le.Sc[1]=du[Dr($+0,127)],le.Eb[0]=2*hu[Dr($+E,127)],le.Eb[1]=101581*du[Dr($+M,127)]>>16,8>le.Eb[1]&&(le.Eb[1]=8),le.Qc[0]=hu[Dr($+W,117)],le.Qc[1]=du[Dr($+K,127)],le.lc=$+K}if(!R.Rb)return DA(u,4,"Not a key frame.");for(_e(T),R=u.Pa,B=0;4>B;++B){for(Q=0;8>Q;++Q)for(E=0;3>E;++E)for(M=0;11>M;++M)W=Le(T,Zg[B][Q][E][M])?Fe(T,8):Yg[B][Q][E][M],R.Wc[B][Q].Yb[E][M]=W;for(Q=0;17>Q;++Q)R.Xc[B][Q]=R.Wc[B][e0[Q]]}return u.kc=_e(T),u.kc&&(u.Bd=Fe(T,8)),u.cb=1}function $A(u,w,B,E,Q,T,R){var M=w[Q].Yb[B];for(B=0;16>Q;++Q){if(!Le(u,M[B+0]))return Q;for(;!Le(u,M[B+1]);)if(M=w[++Q].Yb[0],B=0,Q==16)return 16;var K=w[Q+1].Yb;if(Le(u,M[B+2])){var W=u,ae=0;if(Le(W,($=M)[(pe=B)+3]))if(Le(W,$[pe+6])){for(M=0,pe=2*(ae=Le(W,$[pe+8]))+($=Le(W,$[pe+9+ae])),ae=0,$=$g[pe];$[M];++M)ae+=ae+Le(W,$[M]);ae+=3+(8<<pe)}else Le(W,$[pe+7])?(ae=7+2*Le(W,165),ae+=Le(W,145)):ae=5+Le(W,159);else ae=Le(W,$[pe+4])?3+Le(W,$[pe+5]):2;M=K[2]}else ae=1,M=K[1];K=R+Xg[Q],0>(W=u).b&&xe(W);var pe,$=W.b,le=(pe=W.Ca>>1)-(W.I>>$)>>31;--W.b,W.Ca+=le,W.Ca|=1,W.I-=(pe+1&le)<<$,T[K]=((ae^le)-le)*E[(0<Q)+0]}return 16}function as(u){var w=u.rb[u.sb-1];w.la=0,w.Na=0,n(u.zc,0,0,u.zc.length),u.ja=0}function Xr(u,w,B,E,Q){Q=u[w+B+32*E]+(Q>>3),u[w+B+32*E]=-256&Q?0>Q?0:255:Q}function Ia(u,w,B,E,Q,T){Xr(u,w,0,B,E+Q),Xr(u,w,1,B,E+T),Xr(u,w,2,B,E-T),Xr(u,w,3,B,E-Q)}function Bi(u){return(20091*u>>16)+u}function ur(u,w,B,E){var Q,T=0,R=i(16);for(Q=0;4>Q;++Q){var M=u[w+0]+u[w+8],K=u[w+0]-u[w+8],W=(35468*u[w+4]>>16)-Bi(u[w+12]),ae=Bi(u[w+4])+(35468*u[w+12]>>16);R[T+0]=M+ae,R[T+1]=K+W,R[T+2]=K-W,R[T+3]=M-ae,T+=4,w++}for(Q=T=0;4>Q;++Q)M=(u=R[T+0]+4)+R[T+8],K=u-R[T+8],W=(35468*R[T+4]>>16)-Bi(R[T+12]),Xr(B,E,0,0,M+(ae=Bi(R[T+4])+(35468*R[T+12]>>16))),Xr(B,E,1,0,K+W),Xr(B,E,2,0,K-W),Xr(B,E,3,0,M-ae),T++,E+=32}function na(u,w,B,E){var Q=u[w+0]+4,T=35468*u[w+4]>>16,R=Bi(u[w+4]),M=35468*u[w+1]>>16;Ia(B,E,0,Q+R,u=Bi(u[w+1]),M),Ia(B,E,1,Q+T,u,M),Ia(B,E,2,Q-T,u,M),Ia(B,E,3,Q-R,u,M)}function ss(u,w,B,E,Q){ur(u,w,B,E),Q&&ur(u,w+16,B,E+4)}function We(u,w,B,E){li(u,w+0,B,E,1),li(u,w+32,B,E+128,1)}function X(u,w,B,E){var Q;for(u=u[w+0]+4,Q=0;4>Q;++Q)for(w=0;4>w;++w)Xr(B,E,w,Q,u)}function ye(u,w,B,E){u[w+0]&&tn(u,w+0,B,E),u[w+16]&&tn(u,w+16,B,E+4),u[w+32]&&tn(u,w+32,B,E+128),u[w+48]&&tn(u,w+48,B,E+128+4)}function Ve(u,w,B,E){var Q,T=i(16);for(Q=0;4>Q;++Q){var R=u[w+0+Q]+u[w+12+Q],M=u[w+4+Q]+u[w+8+Q],K=u[w+4+Q]-u[w+8+Q],W=u[w+0+Q]-u[w+12+Q];T[0+Q]=R+M,T[8+Q]=R-M,T[4+Q]=W+K,T[12+Q]=W-K}for(Q=0;4>Q;++Q)R=(u=T[0+4*Q]+3)+T[3+4*Q],M=T[1+4*Q]+T[2+4*Q],K=T[1+4*Q]-T[2+4*Q],W=u-T[3+4*Q],B[E+0]=R+M>>3,B[E+16]=W+K>>3,B[E+32]=R-M>>3,B[E+48]=W-K>>3,E+=64}function st(u,w,B){var E,Q=w-32,T=qn,R=255-u[Q-1];for(E=0;E<B;++E){var M,K=T,W=R+u[w-1];for(M=0;M<B;++M)u[w+M]=K[W+u[Q+M]];w+=32}}function kt(u,w){st(u,w,4)}function Zt(u,w){st(u,w,8)}function KA(u,w){st(u,w,16)}function yA(u,w){var B;for(B=0;16>B;++B)r(u,w+32*B,u,w-32,16)}function Yr(u,w){var B;for(B=16;0<B;--B)n(u,w,u[w-1],16),w+=32}function fr(u,w,B){var E;for(E=0;16>E;++E)n(w,B+32*E,u,16)}function La(u,w){var B,E=16;for(B=0;16>B;++B)E+=u[w-1+32*B]+u[w+B-32];fr(E>>5,u,w)}function xA(u,w){var B,E=8;for(B=0;16>B;++B)E+=u[w-1+32*B];fr(E>>4,u,w)}function Yc(u,w){var B,E=8;for(B=0;16>B;++B)E+=u[w+B-32];fr(E>>4,u,w)}function os(u,w){fr(128,u,w)}function Pt(u,w,B){return u+2*w+B+2>>2}function Jc(u,w){var B,E=w-32;for(E=new Uint8Array([Pt(u[E-1],u[E+0],u[E+1]),Pt(u[E+0],u[E+1],u[E+2]),Pt(u[E+1],u[E+2],u[E+3]),Pt(u[E+2],u[E+3],u[E+4])]),B=0;4>B;++B)r(u,w+32*B,E,0,E.length)}function Zc(u,w){var B=u[w-1],E=u[w-1+32],Q=u[w-1+64],T=u[w-1+96];Oe(u,w+0,16843009*Pt(u[w-1-32],B,E)),Oe(u,w+32,16843009*Pt(B,E,Q)),Oe(u,w+64,16843009*Pt(E,Q,T)),Oe(u,w+96,16843009*Pt(Q,T,T))}function eu(u,w){var B,E=4;for(B=0;4>B;++B)E+=u[w+B-32]+u[w-1+32*B];for(E>>=3,B=0;4>B;++B)n(u,w+32*B,E,4)}function ai(u,w){var B=u[w-1+0],E=u[w-1+32],Q=u[w-1+64],T=u[w-1-32],R=u[w+0-32],M=u[w+1-32],K=u[w+2-32],W=u[w+3-32];u[w+0+96]=Pt(E,Q,u[w-1+96]),u[w+1+96]=u[w+0+64]=Pt(B,E,Q),u[w+2+96]=u[w+1+64]=u[w+0+32]=Pt(T,B,E),u[w+3+96]=u[w+2+64]=u[w+1+32]=u[w+0+0]=Pt(R,T,B),u[w+3+64]=u[w+2+32]=u[w+1+0]=Pt(M,R,T),u[w+3+32]=u[w+2+0]=Pt(K,M,R),u[w+3+0]=Pt(W,K,M)}function El(u,w){var B=u[w+1-32],E=u[w+2-32],Q=u[w+3-32],T=u[w+4-32],R=u[w+5-32],M=u[w+6-32],K=u[w+7-32];u[w+0+0]=Pt(u[w+0-32],B,E),u[w+1+0]=u[w+0+32]=Pt(B,E,Q),u[w+2+0]=u[w+1+32]=u[w+0+64]=Pt(E,Q,T),u[w+3+0]=u[w+2+32]=u[w+1+64]=u[w+0+96]=Pt(Q,T,R),u[w+3+32]=u[w+2+64]=u[w+1+96]=Pt(T,R,M),u[w+3+64]=u[w+2+96]=Pt(R,M,K),u[w+3+96]=Pt(M,K,K)}function Hi(u,w){var B=u[w-1+0],E=u[w-1+32],Q=u[w-1+64],T=u[w-1-32],R=u[w+0-32],M=u[w+1-32],K=u[w+2-32],W=u[w+3-32];u[w+0+0]=u[w+1+64]=T+R+1>>1,u[w+1+0]=u[w+2+64]=R+M+1>>1,u[w+2+0]=u[w+3+64]=M+K+1>>1,u[w+3+0]=K+W+1>>1,u[w+0+96]=Pt(Q,E,B),u[w+0+64]=Pt(E,B,T),u[w+0+32]=u[w+1+96]=Pt(B,T,R),u[w+1+32]=u[w+2+96]=Pt(T,R,M),u[w+2+32]=u[w+3+96]=Pt(R,M,K),u[w+3+32]=Pt(M,K,W)}function Mi(u,w){var B=u[w+0-32],E=u[w+1-32],Q=u[w+2-32],T=u[w+3-32],R=u[w+4-32],M=u[w+5-32],K=u[w+6-32],W=u[w+7-32];u[w+0+0]=B+E+1>>1,u[w+1+0]=u[w+0+64]=E+Q+1>>1,u[w+2+0]=u[w+1+64]=Q+T+1>>1,u[w+3+0]=u[w+2+64]=T+R+1>>1,u[w+0+32]=Pt(B,E,Q),u[w+1+32]=u[w+0+96]=Pt(E,Q,T),u[w+2+32]=u[w+1+96]=Pt(Q,T,R),u[w+3+32]=u[w+2+96]=Pt(T,R,M),u[w+3+64]=Pt(R,M,K),u[w+3+96]=Pt(M,K,W)}function tu(u,w){var B=u[w-1+0],E=u[w-1+32],Q=u[w-1+64],T=u[w-1+96];u[w+0+0]=B+E+1>>1,u[w+2+0]=u[w+0+32]=E+Q+1>>1,u[w+2+32]=u[w+0+64]=Q+T+1>>1,u[w+1+0]=Pt(B,E,Q),u[w+3+0]=u[w+1+32]=Pt(E,Q,T),u[w+3+32]=u[w+1+64]=Pt(Q,T,T),u[w+3+64]=u[w+2+64]=u[w+0+96]=u[w+1+96]=u[w+2+96]=u[w+3+96]=T}function Au(u,w){var B=u[w-1+0],E=u[w-1+32],Q=u[w-1+64],T=u[w-1+96],R=u[w-1-32],M=u[w+0-32],K=u[w+1-32],W=u[w+2-32];u[w+0+0]=u[w+2+32]=B+R+1>>1,u[w+0+32]=u[w+2+64]=E+B+1>>1,u[w+0+64]=u[w+2+96]=Q+E+1>>1,u[w+0+96]=T+Q+1>>1,u[w+3+0]=Pt(M,K,W),u[w+2+0]=Pt(R,M,K),u[w+1+0]=u[w+3+32]=Pt(B,R,M),u[w+1+32]=u[w+3+64]=Pt(E,B,R),u[w+1+64]=u[w+3+96]=Pt(Q,E,B),u[w+1+96]=Pt(T,Q,E)}function Ps(u,w){var B;for(B=0;8>B;++B)r(u,w+32*B,u,w-32,8)}function Rs(u,w){var B;for(B=0;8>B;++B)n(u,w,u[w-1],8),w+=32}function bi(u,w,B){var E;for(E=0;8>E;++E)n(w,B+32*E,u,8)}function Fl(u,w){var B,E=8;for(B=0;8>B;++B)E+=u[w+B-32]+u[w-1+32*B];bi(E>>4,u,w)}function ks(u,w){var B,E=4;for(B=0;8>B;++B)E+=u[w+B-32];bi(E>>3,u,w)}function ru(u,w){var B,E=4;for(B=0;8>B;++B)E+=u[w-1+32*B];bi(E>>3,u,w)}function hr(u,w){bi(128,u,w)}function Ta(u,w,B){var E=u[w-B],Q=u[w+0],T=3*(Q-E)+lu[1020+u[w-2*B]-u[w+B]],R=_l[112+(T+4>>3)];u[w-B]=qn[255+E+_l[112+(T+3>>3)]],u[w+0]=qn[255+Q-R]}function qi(u,w,B,E){var Q=u[w+0],T=u[w+B];return ci[255+u[w-2*B]-u[w-B]]>E||ci[255+T-Q]>E}function ls(u,w,B,E){return 4*ci[255+u[w-B]-u[w+0]]+ci[255+u[w-2*B]-u[w+B]]<=E}function xo(u,w,B,E,Q){var T=u[w-3*B],R=u[w-2*B],M=u[w-B],K=u[w+0],W=u[w+B],ae=u[w+2*B],pe=u[w+3*B];return 4*ci[255+M-K]+ci[255+R-W]>E?0:ci[255+u[w-4*B]-T]<=Q&&ci[255+T-R]<=Q&&ci[255+R-M]<=Q&&ci[255+pe-ae]<=Q&&ci[255+ae-W]<=Q&&ci[255+W-K]<=Q}function Ds(u,w,B,E){var Q=2*E+1;for(E=0;16>E;++E)ls(u,w+E,B,Q)&&Ta(u,w+E,B)}function _o(u,w,B,E){var Q=2*E+1;for(E=0;16>E;++E)ls(u,w+E*B,1,Q)&&Ta(u,w+E*B,1)}function ia(u,w,B,E){var Q;for(Q=3;0<Q;--Q)Ds(u,w+=4*B,B,E)}function cs(u,w,B,E){var Q;for(Q=3;0<Q;--Q)_o(u,w+=4,B,E)}function Ki(u,w,B,E,Q,T,R,M){for(T=2*T+1;0<Q--;){if(xo(u,w,B,T,R))if(qi(u,w,B,M))Ta(u,w,B);else{var K=u,W=w,ae=B,pe=K[W-2*ae],$=K[W-ae],le=K[W+0],we=K[W+ae],Qe=K[W+2*ae],Ce=27*(Ne=lu[1020+3*(le-$)+lu[1020+pe-we]])+63>>7,Te=18*Ne+63>>7,Ne=9*Ne+63>>7;K[W-3*ae]=qn[255+K[W-3*ae]+Ne],K[W-2*ae]=qn[255+pe+Te],K[W-ae]=qn[255+$+Ce],K[W+0]=qn[255+le-Ce],K[W+ae]=qn[255+we-Te],K[W+2*ae]=qn[255+Qe-Ne]}w+=E}}function aa(u,w,B,E,Q,T,R,M){for(T=2*T+1;0<Q--;){if(xo(u,w,B,T,R))if(qi(u,w,B,M))Ta(u,w,B);else{var K=u,W=w,ae=B,pe=K[W-ae],$=K[W+0],le=K[W+ae],we=_l[112+(4+(Qe=3*($-pe))>>3)],Qe=_l[112+(Qe+3>>3)],Ce=we+1>>1;K[W-2*ae]=qn[255+K[W-2*ae]+Ce],K[W-ae]=qn[255+pe+Qe],K[W+0]=qn[255+$-we],K[W+ae]=qn[255+le-Ce]}w+=E}}function Ci(u,w,B,E,Q,T){Ki(u,w,B,1,16,E,Q,T)}function us(u,w,B,E,Q,T){Ki(u,w,1,B,16,E,Q,T)}function Hs(u,w,B,E,Q,T){var R;for(R=3;0<R;--R)aa(u,w+=4*B,B,1,16,E,Q,T)}function fs(u,w,B,E,Q,T){var R;for(R=3;0<R;--R)aa(u,w+=4,1,B,16,E,Q,T)}function Ul(u,w,B,E,Q,T,R,M){Ki(u,w,Q,1,8,T,R,M),Ki(B,E,Q,1,8,T,R,M)}function y(u,w,B,E,Q,T,R,M){Ki(u,w,1,Q,8,T,R,M),Ki(B,E,1,Q,8,T,R,M)}function S(u,w,B,E,Q,T,R,M){aa(u,w+4*Q,Q,1,8,T,R,M),aa(B,E+4*Q,Q,1,8,T,R,M)}function z(u,w,B,E,Q,T,R,M){aa(u,w+4,1,Q,8,T,R,M),aa(B,E+4,1,Q,8,T,R,M)}function ne(){this.ba=new bt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new sA,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function he(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Se(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ke(){this.ua=0,this.Wa=new Tt,this.vb=new Tt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ce,this.yc=new Y}function pt(){this.xb=this.a=0,this.l=new ii,this.ca=new bt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new J,this.Pb=0,this.wd=new J,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ke,this.ab=0,this.gc=s(4,Se),this.Oc=0}function ft(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ii,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Mt(u,w,B,E,Q,T,R){for(u=u==null?0:u[w+0],w=0;w<R;++w)Q[T+w]=u+B[E+w]&255,u=Q[T+w]}function Dt(u,w,B,E,Q,T,R){var M;if(u==null)Mt(null,null,B,E,Q,T,R);else for(M=0;M<R;++M)Q[T+M]=u[w+M]+B[E+M]&255}function lA(u,w,B,E,Q,T,R){if(u==null)Mt(null,null,B,E,Q,T,R);else{var M,K=u[w+0],W=K,ae=K;for(M=0;M<R;++M)W=ae+(K=u[w+M])-W,ae=B[E+M]+(-256&W?0>W?0:255:W)&255,W=K,Q[T+M]=ae}}function dr(u,w,B,E){var Q=w.width,T=w.o;if(e(u!=null&&w!=null),0>B||0>=E||B+E>T)return null;if(!u.Cc){if(u.ga==null){var R;if(u.ga=new ft,(R=u.ga==null)||(R=w.width*w.o,e(u.Gb.length==0),u.Gb=i(R),u.Uc=0,u.Gb==null?R=0:(u.mb=u.Gb,u.nb=u.Uc,u.rc=null,R=1),R=!R),!R){R=u.ga;var M=u.Fa,K=u.P,W=u.qc,ae=u.mb,pe=u.nb,$=K+1,le=W-1,we=R.l;if(e(M!=null&&ae!=null&&w!=null),ka[0]=null,ka[1]=Mt,ka[2]=Dt,ka[3]=lA,R.ca=ae,R.tb=pe,R.c=w.width,R.i=w.height,e(0<R.c&&0<R.i),1>=W)w=0;else if(R.$a=3&M[K+0],R.Z=M[K+0]>>2&3,R.Lc=M[K+0]>>4&3,K=M[K+0]>>6&3,0>R.$a||1<R.$a||4<=R.Z||1<R.Lc||K)w=0;else if(we.put=_t,we.ac=Sr,we.bc=On,we.ma=R,we.width=w.width,we.height=w.height,we.Da=w.Da,we.v=w.v,we.va=w.va,we.j=w.j,we.o=w.o,R.$a)e:{e(R.$a==1),w=Ai();t:for(;;){if(w==null){w=0;break e}if(e(R!=null),R.mc=w,w.c=R.c,w.i=R.i,w.l=R.l,w.l.ma=R,w.l.width=R.c,w.l.height=R.i,w.a=0,Ee(w.m,M,$,le),!kn(R.c,R.i,1,w,null)||(w.ab==1&&w.gc[0].hc==3&&Pn(w.s)?(R.ic=1,M=w.c*w.i,w.Ta=null,w.Ua=0,w.V=i(M),w.Ba=0,w.V==null?(w.a=1,w=0):w=1):(R.ic=0,w=ki(w,R.c)),!w))break t;w=1;break e}R.mc=null,w=0}else w=le>=R.c*R.i;R=!w}if(R)return null;u.ga.Lc!=1?u.Ga=0:E=T-B}e(u.ga!=null),e(B+E<=T);e:{if(w=(M=u.ga).c,T=M.l.o,M.$a==0){if($=u.rc,le=u.Vc,we=u.Fa,K=u.P+1+B*w,W=u.mb,ae=u.nb+B*w,e(K<=u.P+u.qc),M.Z!=0)for(e(ka[M.Z]!=null),R=0;R<E;++R)ka[M.Z]($,le,we,K,W,ae,w),$=W,le=ae,ae+=w,K+=w;else for(R=0;R<E;++R)r(W,ae,we,K,w),$=W,le=ae,ae+=w,K+=w;u.rc=$,u.Vc=le}else{if(e(M.mc!=null),w=B+E,e((R=M.mc)!=null),e(w<=R.i),R.C>=w)w=1;else if(M.ic||VA(),M.ic){M=R.V,$=R.Ba,le=R.c;var Qe=R.i,Ce=(we=1,K=R.$/le,W=R.$%le,ae=R.m,pe=R.s,R.$),Te=le*Qe,Ne=le*w,Ke=pe.wc,De=Ce<Ne?rr(pe,W,K):null;e(Ce<=Te),e(w<=Qe),e(Pn(pe));t:for(;;){for(;!ae.h&&Ce<Ne;){if(W&Ke||(De=rr(pe,W,K)),e(De!=null),ve(ae),256>(Qe=IA(De.G[0],De.H[0],ae)))M[$+Ce]=Qe,++Ce,++W>=le&&(W=0,++K<=w&&!(K%16)&&Qr(R,K));else{if(!(280>Qe)){we=0;break t}Qe=Lt(Qe-256,ae);var Et,ct=IA(De.G[4],De.H[4],ae);if(ve(ae),!(Ce>=(ct=vr(le,ct=Lt(ct,ae)))&&Te-Ce>=Qe)){we=0;break t}for(Et=0;Et<Qe;++Et)M[$+Ce+Et]=M[$+Ce+Et-ct];for(Ce+=Qe,W+=Qe;W>=le;)W-=le,++K<=w&&!(K%16)&&Qr(R,K);Ce<Ne&&W&Ke&&(De=rr(pe,W,K))}e(ae.h==ie(ae))}Qr(R,K>w?w:K);break t}!we||ae.h&&Ce<Te?(we=0,R.a=ae.h?5:3):R.$=Ce,w=we}else w=Rn(R,R.V,R.Ba,R.c,R.i,w,Ua);if(!w){E=0;break e}}B+E>=T&&(u.Cc=1),E=1}if(!E)return null;if(u.Cc&&((E=u.ga)!=null&&(E.mc=null),u.ga=null,0<u.Ga))return alert("todo:WebPDequantizeLevels"),null}return u.nb+B*Q}function LA(u,w,B,E,Q,T){for(;0<Q--;){var R,M=u,K=w+(B?1:0),W=u,ae=w+(B?0:3);for(R=0;R<E;++R){var pe=W[ae+4*R];pe!=255&&(pe*=32897,M[K+4*R+0]=M[K+4*R+0]*pe>>23,M[K+4*R+1]=M[K+4*R+1]*pe>>23,M[K+4*R+2]=M[K+4*R+2]*pe>>23)}w+=T}}function _A(u,w,B,E,Q){for(;0<E--;){var T;for(T=0;T<B;++T){var R=u[w+2*T+0],M=15&(W=u[w+2*T+1]),K=4369*M,W=(240&W|W>>4)*K>>16;u[w+2*T+0]=(240&R|R>>4)*K>>16&240|(15&R|R<<4)*K>>16>>4&15,u[w+2*T+1]=240&W|M}w+=Q}}function HA(u,w,B,E,Q,T,R,M){var K,W,ae=255;for(W=0;W<Q;++W){for(K=0;K<E;++K){var pe=u[w+K];T[R+4*K]=pe,ae&=pe}w+=B,R+=M}return ae!=255}function jA(u,w,B,E,Q){var T;for(T=0;T<Q;++T)B[E+T]=u[w+T]>>8}function VA(){Ws=LA,ih=_A,To=HA,ah=jA}function Jr(u,w,B){N[u]=function(E,Q,T,R,M,K,W,ae,pe,$,le,we,Qe,Ce,Te,Ne,Ke){var De,Et=Ke-1>>1,ct=M[K+0]|W[ae+0]<<16,Xt=pe[$+0]|le[we+0]<<16;e(E!=null);var gt=3*ct+Xt+131074>>2;for(w(E[Q+0],255>,gt>>16,Qe,Ce),T!=null&&(gt=3*Xt+ct+131074>>2,w(T[R+0],255>,gt>>16,Te,Ne)),De=1;De<=Et;++De){var He=M[K+De]|W[ae+De]<<16,Br=pe[$+De]|le[we+De]<<16,Yt=ct+He+Xt+Br+524296,ht=Yt+2*(He+Xt)>>3;gt=ht+ct>>1,ct=(Yt=Yt+2*(ct+Br)>>3)+He>>1,w(E[Q+2*De-1],255>,gt>>16,Qe,Ce+(2*De-1)*B),w(E[Q+2*De-0],255&ct,ct>>16,Qe,Ce+(2*De-0)*B),T!=null&&(gt=Yt+Xt>>1,ct=ht+Br>>1,w(T[R+2*De-1],255>,gt>>16,Te,Ne+(2*De-1)*B),w(T[R+2*De+0],255&ct,ct>>16,Te,Ne+(2*De+0)*B)),ct=He,Xt=Br}1&Ke||(gt=3*ct+Xt+131074>>2,w(E[Q+Ke-1],255>,gt>>16,Qe,Ce+(Ke-1)*B),T!=null&&(gt=3*Xt+ct+131074>>2,w(T[R+Ke-1],255>,gt>>16,Te,Ne+(Ke-1)*B)))}}function Ei(){Cn[ua]=Tl,Cn[Sl]=ph,Cn[ch]=t0,Cn[ws]=gh,Cn[Ql]=wh,Cn[cu]=vh,Cn[uh]=A0,Cn[uu]=ph,Cn[$s]=gh,Cn[Il]=wh,Cn[fu]=vh}function Ms(u){return u&~r0?0>u?0:255:u>>mh}function Na(u,w){return Ms((19077*u>>8)+(26149*w>>8)-14234)}function Fi(u,w,B){return Ms((19077*u>>8)-(6419*w>>8)-(13320*B>>8)+8708)}function Hn(u,w){return Ms((19077*u>>8)+(33050*w>>8)-17685)}function cA(u,w,B,E,Q){E[Q+0]=Na(u,B),E[Q+1]=Fi(u,w,B),E[Q+2]=Hn(u,w)}function qs(u,w,B,E,Q){E[Q+0]=Hn(u,w),E[Q+1]=Fi(u,w,B),E[Q+2]=Na(u,B)}function Oa(u,w,B,E,Q){var T=Fi(u,w,B);w=T<<3&224|Hn(u,w)>>3,E[Q+0]=248&Na(u,B)|T>>5,E[Q+1]=w}function Hr(u,w,B,E,Q){var T=240&Hn(u,w)|15;E[Q+0]=240&Na(u,B)|Fi(u,w,B)>>4,E[Q+1]=T}function si(u,w,B,E,Q){E[Q+0]=255,cA(u,w,B,E,Q+1)}function Zr(u,w,B,E,Q){qs(u,w,B,E,Q),E[Q+3]=255}function So(u,w,B,E,Q){cA(u,w,B,E,Q),E[Q+3]=255}function Mr(u,w,B){N[u]=function(E,Q,T,R,M,K,W,ae,pe){for(var $=ae+(-2&pe)*B;ae!=$;)w(E[Q+0],T[R+0],M[K+0],W,ae),w(E[Q+1],T[R+0],M[K+0],W,ae+B),Q+=2,++R,++K,ae+=2*B;1&pe&&w(E[Q+0],T[R+0],M[K+0],W,ae)}}function uA(u,w,B){return B==0?u==0?w==0?6:5:w==0?4:0:B}function Qo(u,w,B,E,Q){switch(u>>>30){case 3:li(w,B,E,Q,0);break;case 2:la(w,B,E,Q);break;case 1:tn(w,B,E,Q)}}function XA(u,w){var B,E,Q=w.M,T=w.Nb,R=u.oc,M=u.pc+40,K=u.oc,W=u.pc+584,ae=u.oc,pe=u.pc+600;for(B=0;16>B;++B)R[M+32*B-1]=129;for(B=0;8>B;++B)K[W+32*B-1]=129,ae[pe+32*B-1]=129;for(0<Q?R[M-1-32]=K[W-1-32]=ae[pe-1-32]=129:(n(R,M-32-1,127,21),n(K,W-32-1,127,9),n(ae,pe-32-1,127,9)),E=0;E<u.za;++E){var $=w.ya[w.aa+E];if(0<E){for(B=-1;16>B;++B)r(R,M+32*B-4,R,M+32*B+12,4);for(B=-1;8>B;++B)r(K,W+32*B-4,K,W+32*B+4,4),r(ae,pe+32*B-4,ae,pe+32*B+4,4)}var le=u.Gd,we=u.Hd+E,Qe=$.ad,Ce=$.Hc;if(0<Q&&(r(R,M-32,le[we].y,0,16),r(K,W-32,le[we].f,0,8),r(ae,pe-32,le[we].ea,0,8)),$.Za){var Te=R,Ne=M-32+16;for(0<Q&&(E>=u.za-1?n(Te,Ne,le[we].y[15],4):r(Te,Ne,le[we+1].y,0,4)),B=0;4>B;B++)Te[Ne+128+B]=Te[Ne+256+B]=Te[Ne+384+B]=Te[Ne+0+B];for(B=0;16>B;++B,Ce<<=2)Te=R,Ne=M+gu[B],Si[$.Ob[B]](Te,Ne),Qo(Ce,Qe,16*+B,Te,Ne)}else if(Te=uA(E,Q,$.Ob[0]),_i[Te](R,M),Ce!=0)for(B=0;16>B;++B,Ce<<=2)Qo(Ce,Qe,16*+B,R,M+gu[B]);for(B=$.Gc,Te=uA(E,Q,$.Dd),fa[Te](K,W),fa[Te](ae,pe),Ce=Qe,Te=K,Ne=W,255&($=0|B)&&(170&$?Gs(Ce,256,Te,Ne):pr(Ce,256,Te,Ne)),$=ae,Ce=pe,255&(B>>=8)&&(170&B?Gs(Qe,320,$,Ce):pr(Qe,320,$,Ce)),Q<u.Ub-1&&(r(le[we].y,0,R,M+480,16),r(le[we].f,0,K,W+224,8),r(le[we].ea,0,ae,pe+224,8)),B=8*T*u.B,le=u.sa,we=u.ta+16*E+16*T*u.R,Qe=u.qa,$=u.ra+8*E+B,Ce=u.Ha,Te=u.Ia+8*E+B,B=0;16>B;++B)r(le,we+B*u.R,R,M+32*B,16);for(B=0;8>B;++B)r(Qe,$+B*u.B,K,W+32*B,8),r(Ce,Te+B*u.B,ae,pe+32*B,8)}}function Ks(u,w,B,E,Q,T,R,M,K){var W=[0],ae=[0],pe=0,$=K!=null?K.kd:0,le=K??new he;if(u==null||12>B)return 7;le.data=u,le.w=w,le.ha=B,w=[w],B=[B],le.gb=[le.gb];e:{var we=w,Qe=B,Ce=le.gb;if(e(u!=null),e(Qe!=null),e(Ce!=null),Ce[0]=0,12<=Qe[0]&&!A(u,we[0],"RIFF")){if(A(u,we[0]+8,"WEBP")){Ce=3;break e}var Te=at(u,we[0]+4);if(12>Te||4294967286<Te){Ce=3;break e}if($&&Te>Qe[0]-8){Ce=7;break e}Ce[0]=Te,we[0]+=12,Qe[0]-=12}Ce=0}if(Ce!=0)return Ce;for(Te=0<le.gb[0],B=B[0];;){e:{var Ne=u;Qe=w,Ce=B;var Ke=W,De=ae,Et=we=[0];if((gt=pe=[pe])[0]=0,8>Ce[0])Ce=7;else{if(!A(Ne,Qe[0],"VP8X")){if(at(Ne,Qe[0]+4)!=10){Ce=3;break e}if(18>Ce[0]){Ce=7;break e}var ct=at(Ne,Qe[0]+8),Xt=1+qe(Ne,Qe[0]+12);if(2147483648<=Xt*(Ne=1+qe(Ne,Qe[0]+15))){Ce=3;break e}Et!=null&&(Et[0]=ct),Ke!=null&&(Ke[0]=Xt),De!=null&&(De[0]=Ne),Qe[0]+=18,Ce[0]-=18,gt[0]=1}Ce=0}}if(pe=pe[0],we=we[0],Ce!=0)return Ce;if(Qe=!!(2&we),!Te&&pe)return 3;if(T!=null&&(T[0]=!!(16&we)),R!=null&&(R[0]=Qe),M!=null&&(M[0]=0),R=W[0],we=ae[0],pe&&Qe&&K==null){Ce=0;break}if(4>B){Ce=7;break}if(Te&&pe||!Te&&!pe&&!A(u,w[0],"ALPH")){B=[B],le.na=[le.na],le.P=[le.P],le.Sa=[le.Sa];e:{ct=u,Ce=w,Te=B;var gt=le.gb;Ke=le.na,De=le.P,Et=le.Sa,Xt=22,e(ct!=null),e(Te!=null),Ne=Ce[0];var He=Te[0];for(e(Ke!=null),e(Et!=null),Ke[0]=null,De[0]=null,Et[0]=0;;){if(Ce[0]=Ne,Te[0]=He,8>He){Ce=7;break e}var Br=at(ct,Ne+4);if(4294967286<Br){Ce=3;break e}var Yt=8+Br+1&-2;if(Xt+=Yt,0<gt&&Xt>gt){Ce=3;break e}if(!A(ct,Ne,"VP8 ")||!A(ct,Ne,"VP8L")){Ce=0;break e}if(He[0]<Yt){Ce=7;break e}A(ct,Ne,"ALPH")||(Ke[0]=ct,De[0]=Ne+8,Et[0]=Br),Ne+=Yt,He-=Yt}}if(B=B[0],le.na=le.na[0],le.P=le.P[0],le.Sa=le.Sa[0],Ce!=0)break}B=[B],le.Ja=[le.Ja],le.xa=[le.xa];e:if(gt=u,Ce=w,Te=B,Ke=le.gb[0],De=le.Ja,Et=le.xa,ct=Ce[0],Ne=!A(gt,ct,"VP8 "),Xt=!A(gt,ct,"VP8L"),e(gt!=null),e(Te!=null),e(De!=null),e(Et!=null),8>Te[0])Ce=7;else{if(Ne||Xt){if(gt=at(gt,ct+4),12<=Ke&>>Ke-12){Ce=3;break e}if($&>>Te[0]-8){Ce=7;break e}De[0]=gt,Ce[0]+=8,Te[0]-=8,Et[0]=Xt}else Et[0]=5<=Te[0]&>[ct+0]==47&&!(gt[ct+4]>>5),De[0]=Te[0];Ce=0}if(B=B[0],le.Ja=le.Ja[0],le.xa=le.xa[0],w=w[0],Ce!=0)break;if(4294967286<le.Ja)return 3;if(M==null||Qe||(M[0]=le.xa?2:1),R=[R],we=[we],le.xa){if(5>B){Ce=7;break}M=R,$=we,Qe=T,u==null||5>B?u=0:5<=B&&u[w+0]==47&&!(u[w+4]>>5)?(Te=[0],gt=[0],Ke=[0],Ee(De=new J,u,w,B),ti(De,Te,gt,Ke)?(M!=null&&(M[0]=Te[0]),$!=null&&($[0]=gt[0]),Qe!=null&&(Qe[0]=Ke[0]),u=1):u=0):u=0}else{if(10>B){Ce=7;break}M=we,u==null||10>B||!Di(u,w+3,B-3)?u=0:($=u[w+0]|u[w+1]<<8|u[w+2]<<16,Qe=16383&(u[w+7]<<8|u[w+6]),u=16383&(u[w+9]<<8|u[w+8]),1&$||3<($>>1&7)||!($>>4&1)||$>>5>=le.Ja||!Qe||!u?u=0:(R&&(R[0]=Qe),M&&(M[0]=u),u=1))}if(!u||(R=R[0],we=we[0],pe&&(W[0]!=R||ae[0]!=we)))return 3;K!=null&&(K[0]=le,K.offset=w-K.w,e(4294967286>w-K.w),e(K.offset==K.ha-B));break}return Ce==0||Ce==7&&pe&&K==null?(T!=null&&(T[0]|=le.na!=null&&0<le.na.length),E!=null&&(E[0]=R),Q!=null&&(Q[0]=we),0):Ce}function mr(u,w,B){var E=w.width,Q=w.height,T=0,R=0,M=E,K=Q;if(w.Da=u!=null&&0<u.Da,w.Da&&(M=u.cd,K=u.bd,T=u.v,R=u.j,11>B||(T&=-2,R&=-2),0>T||0>R||0>=M||0>=K||T+M>E||R+K>Q))return 0;if(w.v=T,w.j=R,w.va=T+M,w.o=R+K,w.U=M,w.T=K,w.da=u!=null&&0<u.da,w.da){if(!ut(M,K,B=[u.ib],T=[u.hb]))return 0;w.ib=B[0],w.hb=T[0]}return w.ob=u!=null&&u.ob,w.Kb=u==null||!u.Sd,w.da&&(w.ob=w.ib<3*E/4&&w.hb<3*Q/4,w.Kb=0),1}function Ui(u){if(u==null)return 2;if(11>u.S){var w=u.f.RGBA;w.fb+=(u.height-1)*w.A,w.A=-w.A}else w=u.f.kb,u=u.height,w.O+=(u-1)*w.fa,w.fa=-w.fa,w.N+=(u-1>>1)*w.Ab,w.Ab=-w.Ab,w.W+=(u-1>>1)*w.Db,w.Db=-w.Db,w.F!=null&&(w.J+=(u-1)*w.lb,w.lb=-w.lb);return 0}function BA(u,w,B,E){if(E==null||0>=u||0>=w)return 2;if(B!=null){if(B.Da){var Q=B.cd,T=B.bd,R=-2&B.v,M=-2&B.j;if(0>R||0>M||0>=Q||0>=T||R+Q>u||M+T>w)return 2;u=Q,w=T}if(B.da){if(!ut(u,w,Q=[B.ib],T=[B.hb]))return 2;u=Q[0],w=T[0]}}E.width=u,E.height=w;e:{var K=E.width,W=E.height;if(u=E.S,0>=K||0>=W||!(u>=ua&&13>u))u=2;else{if(0>=E.Rd&&E.sd==null){R=T=Q=w=0;var ae=(M=K*Xs[u])*W;if(11>u||(T=(W+1)/2*(w=(K+1)/2),u==12&&(R=(Q=K)*W)),(W=i(ae+2*T+R))==null){u=1;break e}E.sd=W,11>u?((K=E.f.RGBA).eb=W,K.fb=0,K.A=M,K.size=ae):((K=E.f.kb).y=W,K.O=0,K.fa=M,K.Fd=ae,K.f=W,K.N=0+ae,K.Ab=w,K.Cd=T,K.ea=W,K.W=0+ae+T,K.Db=w,K.Ed=T,u==12&&(K.F=W,K.J=0+ae+2*T),K.Tc=R,K.lb=Q)}if(w=1,Q=E.S,T=E.width,R=E.height,Q>=ua&&13>Q)if(11>Q)u=E.f.RGBA,w&=(M=Math.abs(u.A))*(R-1)+T<=u.size,w&=M>=T*Xs[Q],w&=u.eb!=null;else{u=E.f.kb,M=(T+1)/2,ae=(R+1)/2,K=Math.abs(u.fa),W=Math.abs(u.Ab);var pe=Math.abs(u.Db),$=Math.abs(u.lb),le=$*(R-1)+T;w&=K*(R-1)+T<=u.Fd,w&=W*(ae-1)+M<=u.Cd,w=(w&=pe*(ae-1)+M<=u.Ed)&K>=T&W>=M&pe>=M,w&=u.y!=null,w&=u.f!=null,w&=u.ea!=null,Q==12&&(w&=$>=T,w&=le<=u.Tc,w&=u.F!=null)}else w=0;u=w?0:2}}return u!=0||B!=null&&B.fd&&(u=Ui(E)),u}var hs=64,Pa=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],js=24,en=32,qr=8,ds=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];$e("Predictor0","PredictorAdd0"),N.Predictor0=function(){return 4278190080},N.Predictor1=function(u){return u},N.Predictor2=function(u,w,B){return w[B+0]},N.Predictor3=function(u,w,B){return w[B+1]},N.Predictor4=function(u,w,B){return w[B-1]},N.Predictor5=function(u,w,B){return Ze(Ze(u,w[B+1]),w[B+0])},N.Predictor6=function(u,w,B){return Ze(u,w[B-1])},N.Predictor7=function(u,w,B){return Ze(u,w[B+0])},N.Predictor8=function(u,w,B){return Ze(w[B-1],w[B+0])},N.Predictor9=function(u,w,B){return Ze(w[B+0],w[B+1])},N.Predictor10=function(u,w,B){return Ze(Ze(u,w[B-1]),Ze(w[B+0],w[B+1]))},N.Predictor11=function(u,w,B){var E=w[B+0];return 0>=St(E>>24&255,u>>24&255,(w=w[B-1])>>24&255)+St(E>>16&255,u>>16&255,w>>16&255)+St(E>>8&255,u>>8&255,w>>8&255)+St(255&E,255&u,255&w)?E:u},N.Predictor12=function(u,w,B){var E=w[B+0];return(Ut((u>>24&255)+(E>>24&255)-((w=w[B-1])>>24&255))<<24|Ut((u>>16&255)+(E>>16&255)-(w>>16&255))<<16|Ut((u>>8&255)+(E>>8&255)-(w>>8&255))<<8|Ut((255&u)+(255&E)-(255&w)))>>>0},N.Predictor13=function(u,w,B){var E=w[B-1];return(Nt((u=Ze(u,w[B+0]))>>24&255,E>>24&255)<<24|Nt(u>>16&255,E>>16&255)<<16|Nt(u>>8&255,E>>8&255)<<8|Nt(255&u,255&E))>>>0};var sa=N.PredictorAdd0;N.PredictorAdd1=Ht,$e("Predictor2","PredictorAdd2"),$e("Predictor3","PredictorAdd3"),$e("Predictor4","PredictorAdd4"),$e("Predictor5","PredictorAdd5"),$e("Predictor6","PredictorAdd6"),$e("Predictor7","PredictorAdd7"),$e("Predictor8","PredictorAdd8"),$e("Predictor9","PredictorAdd9"),$e("Predictor10","PredictorAdd10"),$e("Predictor11","PredictorAdd11"),$e("Predictor12","PredictorAdd12"),$e("Predictor13","PredictorAdd13");var yr=N.PredictorAdd2;Xe("ColorIndexInverseTransform","MapARGB","32b",function(u){return u>>8&255},function(u){return u}),Xe("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(u){return u},function(u){return u>>8&255});var Mn,bn=N.ColorIndexInverseTransform,nA=N.MapARGB,ji=N.VP8LColorIndexInverseTransformAlpha,xi=N.MapAlpha,oi=N.VP8LPredictorsAdd=[];oi.length=16,(N.VP8LPredictors=[]).length=16,(N.VP8LPredictorsAdd_C=[]).length=16,(N.VP8LPredictors_C=[]).length=16;var oa,Vs,Io,Vi,fn,ps,Ra,li,la,Gs,tn,pr,TA,RA,nr,YA,ca,zs,gs,Lo,nu,iu,au,su,Ws,ih,To,ah,sh=i(511),xl=i(2041),oh=i(225),ou=i(767),lh=0,lu=xl,_l=oh,qn=ou,ci=sh,ua=0,Sl=1,ch=2,ws=3,Ql=4,cu=5,uh=6,uu=7,$s=8,Il=9,fu=10,Kg=[2,3,7],jg=[3,3,11],No=[280,256,256,256,40],Vg=[0,1,1,1,0],Gg=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],zg=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Wg=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Ll=8,hu=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],du=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Oo=null,$g=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Xg=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],fh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Yg=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Jg=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Zg=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],e0=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],_i=[],Si=[],fa=[],hh=1,dh=2,ka=[],Cn=[];Jr("UpsampleRgbLinePair",cA,3),Jr("UpsampleBgrLinePair",qs,3),Jr("UpsampleRgbaLinePair",So,4),Jr("UpsampleBgraLinePair",Zr,4),Jr("UpsampleArgbLinePair",si,4),Jr("UpsampleRgba4444LinePair",Hr,2),Jr("UpsampleRgb565LinePair",Oa,2);var Tl=N.UpsampleRgbLinePair,t0=N.UpsampleBgrLinePair,ph=N.UpsampleRgbaLinePair,gh=N.UpsampleBgraLinePair,wh=N.UpsampleArgbLinePair,vh=N.UpsampleRgba4444LinePair,A0=N.UpsampleRgb565LinePair,vs=16,Nl=1<<vs-1,Po=-227,pu=482,mh=6,r0=(256<<mh)-1,yh=0,n0=i(256),i0=i(256),a0=i(256),s0=i(256),o0=i(pu-Po),l0=i(pu-Po);Mr("YuvToRgbRow",cA,3),Mr("YuvToBgrRow",qs,3),Mr("YuvToRgbaRow",So,4),Mr("YuvToBgraRow",Zr,4),Mr("YuvToArgbRow",si,4),Mr("YuvToRgba4444Row",Hr,2),Mr("YuvToRgb565Row",Oa,2);var gu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ol=[0,2,8],c0=[8,7,6,4,4,2,2,2,1,1,1,1],u0=1;this.WebPDecodeRGBA=function(u,w,B,E,Q){var T=Sl,R=new ne,M=new bt;R.ba=M,M.S=T,M.width=[M.width],M.height=[M.height];var K=M.width,W=M.height,ae=new Ct;if(ae==null||u==null)var pe=2;else e(ae!=null),pe=Ks(u,w,B,ae.width,ae.height,ae.Pd,ae.Qd,ae.format,null);if(pe!=0?K=0:(K!=null&&(K[0]=ae.width[0]),W!=null&&(W[0]=ae.height[0]),K=1),K){M.width=M.width[0],M.height=M.height[0],E!=null&&(E[0]=M.width),Q!=null&&(Q[0]=M.height);e:{if(E=new ii,(Q=new he).data=u,Q.w=w,Q.ha=B,Q.kd=1,w=[0],e(Q!=null),((u=Ks(Q.data,Q.w,Q.ha,null,null,null,w,null,Q))==0||u==7)&&w[0]&&(u=4),(w=u)==0){if(e(R!=null),E.data=Q.data,E.w=Q.w+Q.offset,E.ha=Q.ha-Q.offset,E.put=_t,E.ac=Sr,E.bc=On,E.ma=R,Q.xa){if((u=Ai())==null){R=1;break e}if((function($,le){var we=[0],Qe=[0],Ce=[0];t:for(;;){if($==null)return 0;if(le==null)return $.a=2,0;if($.l=le,$.a=0,Ee($.m,le.data,le.w,le.ha),!ti($.m,we,Qe,Ce)){$.a=3;break t}if($.xb=dh,le.width=we[0],le.height=Qe[0],!kn(we[0],Qe[0],1,$,null))break t;return 1}return e($.a!=0),0})(u,E)){if(E=(w=BA(E.width,E.height,R.Oa,R.ba))==0){t:{E=u;A:for(;;){if(E==null){E=0;break t}if(e(E.s.yc!=null),e(E.s.Ya!=null),e(0<E.s.Wb),e((B=E.l)!=null),e((Q=B.ma)!=null),E.xb!=0){if(E.ca=Q.ba,E.tb=Q.tb,e(E.ca!=null),!mr(Q.Oa,B,ws)){E.a=2;break A}if(!ki(E,B.width)||B.da)break A;if((B.da||nt(E.ca.S))&&VA(),11>E.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),E.ca.f.kb.F!=null&&VA()),E.Pb&&0<E.s.ua&&E.s.vb.X==null&&!q(E.s.vb,E.s.Wa.Xa)){E.a=1;break A}E.xb=0}if(!Rn(E,E.V,E.Ba,E.c,E.i,B.o,mi))break A;Q.Dc=E.Ma,E=1;break t}e(E.a!=0),E=0}E=!E}E&&(w=u.a)}else w=u.a}else{if((u=new $r)==null){R=1;break e}if(u.Fa=Q.na,u.P=Q.P,u.qc=Q.Sa,Dn(u,E)){if((w=BA(E.width,E.height,R.Oa,R.ba))==0){if(u.Aa=0,B=R.Oa,e((Q=u)!=null),B!=null){if(0<(K=0>(K=B.Md)?0:100<K?255:255*K/100)){for(W=ae=0;4>W;++W)12>(pe=Q.pb[W]).lc&&(pe.ia=K*c0[0>pe.lc?0:pe.lc]>>3),ae|=pe.ia;ae&&(alert("todo:VP8InitRandom"),Q.ia=1)}Q.Ga=B.Id,100<Q.Ga?Q.Ga=100:0>Q.Ga&&(Q.Ga=0)}(function($,le){if($==null)return 0;if(le==null)return DA($,2,"NULL VP8Io parameter in VP8Decode().");if(!$.cb&&!Dn($,le))return 0;if(e($.cb),le.ac==null||le.ac(le)){le.ob&&($.L=0);var we=Ol[$.L];if($.L==2?($.yb=0,$.zb=0):($.yb=le.v-we>>4,$.zb=le.j-we>>4,0>$.yb&&($.yb=0),0>$.zb&&($.zb=0)),$.Va=le.o+15+we>>4,$.Hb=le.va+15+we>>4,$.Hb>$.za&&($.Hb=$.za),$.Va>$.Ub&&($.Va=$.Ub),0<$.L){var Qe=$.ed;for(we=0;4>we;++we){var Ce;if($.Qa.Cb){var Te=$.Qa.Lb[we];$.Qa.Fb||(Te+=Qe.Tb)}else Te=Qe.Tb;for(Ce=0;1>=Ce;++Ce){var Ne=$.gd[we][Ce],Ke=Te;if(Qe.Pc&&(Ke+=Qe.vd[0],Ce&&(Ke+=Qe.od[0])),0<(Ke=0>Ke?0:63<Ke?63:Ke)){var De=Ke;0<Qe.wb&&(De=4<Qe.wb?De>>2:De>>1)>9-Qe.wb&&(De=9-Qe.wb),1>De&&(De=1),Ne.dd=De,Ne.tc=2*Ke+De,Ne.ld=40<=Ke?2:15<=Ke?1:0}else Ne.tc=0;Ne.La=Ce}}}we=0}else DA($,6,"Frame setup failed"),we=$.a;if(we=we==0){if(we){$.$c=0,0<$.Aa||($.Ic=u0);t:{we=$.Ic,Qe=4*(De=$.za);var Et=32*De,ct=De+1,Xt=0<$.L?De*(0<$.Aa?2:1):0,gt=($.Aa==2?2:1)*De;if((Ne=Qe+832+(Ce=3*(16*we+Ol[$.L])/2*Et)+(Te=$.Fa!=null&&0<$.Fa.length?$.Kc.c*$.Kc.i:0))!=Ne)we=0;else{if(Ne>$.Vb){if($.Vb=0,$.Ec=i(Ne),$.Fc=0,$.Ec==null){we=DA($,1,"no memory during frame initialization.");break t}$.Vb=Ne}Ne=$.Ec,Ke=$.Fc,$.Ac=Ne,$.Bc=Ke,Ke+=Qe,$.Gd=s(Et,ni),$.Hd=0,$.rb=s(ct+1,yi),$.sb=1,$.wa=Xt?s(Xt,un):null,$.Y=0,$.D.Nb=0,$.D.wa=$.wa,$.D.Y=$.Y,0<$.Aa&&($.D.Y+=De),e(!0),$.oc=Ne,$.pc=Ke,Ke+=832,$.ya=s(gt,Qa),$.aa=0,$.D.ya=$.ya,$.D.aa=$.aa,$.Aa==2&&($.D.aa+=De),$.R=16*De,$.B=8*De,De=(Et=Ol[$.L])*$.R,Et=Et/2*$.B,$.sa=Ne,$.ta=Ke+De,$.qa=$.sa,$.ra=$.ta+16*we*$.R+Et,$.Ha=$.qa,$.Ia=$.ra+8*we*$.B+Et,$.$c=0,Ke+=Ce,$.mb=Te?Ne:null,$.nb=Te?Ke:null,e(Ke+Te<=$.Fc+$.Vb),as($),n($.Ac,$.Bc,0,Qe),we=1}}if(we){if(le.ka=0,le.y=$.sa,le.O=$.ta,le.f=$.qa,le.N=$.ra,le.ea=$.Ha,le.Vd=$.Ia,le.fa=$.R,le.Rc=$.B,le.F=null,le.J=0,!lh){for(we=-255;255>=we;++we)sh[255+we]=0>we?-we:we;for(we=-1020;1020>=we;++we)xl[1020+we]=-128>we?-128:127<we?127:we;for(we=-112;112>=we;++we)oh[112+we]=-16>we?-16:15<we?15:we;for(we=-255;510>=we;++we)ou[255+we]=0>we?0:255<we?255:we;lh=1}Ra=Ve,li=ss,Gs=We,tn=X,pr=ye,la=na,TA=Ci,RA=us,nr=Ul,YA=y,ca=Hs,zs=fs,gs=S,Lo=z,nu=Ds,iu=_o,au=ia,su=cs,Si[0]=eu,Si[1]=kt,Si[2]=Jc,Si[3]=Zc,Si[4]=ai,Si[5]=Hi,Si[6]=El,Si[7]=Mi,Si[8]=Au,Si[9]=tu,_i[0]=La,_i[1]=KA,_i[2]=yA,_i[3]=Yr,_i[4]=xA,_i[5]=Yc,_i[6]=os,fa[0]=Fl,fa[1]=Zt,fa[2]=Ps,fa[3]=Rs,fa[4]=ru,fa[5]=ks,fa[6]=hr,we=1}else we=0}we&&(we=(function(He,Br){for(He.M=0;He.M<He.Va;++He.M){var Yt,ht=He.Jc[He.M&He.Xb],Ge=He.m,ir=He;for(Yt=0;Yt<ir.za;++Yt){var jt=Ge,AA=ir,SA=AA.Ac,Kr=AA.Bc+4*Yt,hn=AA.zc,JA=AA.ya[AA.aa+Yt];if(AA.Qa.Bb?JA.$b=Le(jt,AA.Pa.jb[0])?2+Le(jt,AA.Pa.jb[2]):Le(jt,AA.Pa.jb[1]):JA.$b=0,AA.kc&&(JA.Ad=Le(jt,AA.Bd)),JA.Za=!Le(jt,145)+0,JA.Za){var ZA=JA.Ob,jr=0;for(AA=0;4>AA;++AA){var ar,hA=hn[0+AA];for(ar=0;4>ar;++ar){hA=Jg[SA[Kr+ar]][hA];for(var bA=fh[Le(jt,hA[0])];0<bA;)bA=fh[2*bA+Le(jt,hA[bA])];hA=-bA,SA[Kr+ar]=hA}r(ZA,jr,SA,Kr,4),jr+=4,hn[0+AA]=hA}}else hA=Le(jt,156)?Le(jt,128)?1:3:Le(jt,163)?2:0,JA.Ob[0]=hA,n(SA,Kr,hA,4),n(hn,0,hA,4);JA.Dd=Le(jt,142)?Le(jt,114)?Le(jt,183)?1:3:2:0}if(ir.m.Ka)return DA(He,7,"Premature end-of-partition0 encountered.");for(;He.ja<He.za;++He.ja){if(ir=ht,jt=(Ge=He).rb[Ge.sb-1],SA=Ge.rb[Ge.sb+Ge.ja],Yt=Ge.ya[Ge.aa+Ge.ja],Kr=Ge.kc?Yt.Ad:0)jt.la=SA.la=0,Yt.Za||(jt.Na=SA.Na=0),Yt.Hc=0,Yt.Gc=0,Yt.ia=0;else{var er,vA;if(jt=SA,SA=ir,Kr=Ge.Pa.Xc,hn=Ge.ya[Ge.aa+Ge.ja],JA=Ge.pb[hn.$b],AA=hn.ad,ZA=0,jr=Ge.rb[Ge.sb-1],hA=ar=0,n(AA,ZA,0,384),hn.Za)var Vr=0,Qi=Kr[3];else{bA=i(16);var sr=jt.Na+jr.Na;if(sr=Oo(SA,Kr[1],sr,JA.Eb,0,bA,0),jt.Na=jr.Na=(0<sr)+0,1<sr)Ra(bA,0,AA,ZA);else{var En=bA[0]+3>>3;for(bA=0;256>bA;bA+=16)AA[ZA+bA]=En}Vr=1,Qi=Kr[0]}var NA=15&jt.la,br=15&jr.la;for(bA=0;4>bA;++bA){var Kn=1&br;for(En=vA=0;4>En;++En)NA=NA>>1|(Kn=(sr=Oo(SA,Qi,sr=Kn+(1&NA),JA.Sc,Vr,AA,ZA))>Vr)<<7,vA=vA<<2|(3<sr?3:1<sr?2:AA[ZA+0]!=0),ZA+=16;NA>>=4,br=br>>1|Kn<<7,ar=(ar<<8|vA)>>>0}for(Qi=NA,Vr=br>>4,er=0;4>er;er+=2){for(vA=0,NA=jt.la>>4+er,br=jr.la>>4+er,bA=0;2>bA;++bA){for(Kn=1&br,En=0;2>En;++En)sr=Kn+(1&NA),NA=NA>>1|(Kn=0<(sr=Oo(SA,Kr[2],sr,JA.Qc,0,AA,ZA)))<<3,vA=vA<<2|(3<sr?3:1<sr?2:AA[ZA+0]!=0),ZA+=16;NA>>=2,br=br>>1|Kn<<5}hA|=vA<<4*er,Qi|=NA<<4<<er,Vr|=(240&br)<<er}jt.la=Qi,jr.la=Vr,hn.Hc=ar,hn.Gc=hA,hn.ia=43690&hA?0:JA.ia,Kr=!(ar|hA)}if(0<Ge.L&&(Ge.wa[Ge.Y+Ge.ja]=Ge.gd[Yt.$b][Yt.Za],Ge.wa[Ge.Y+Ge.ja].La|=!Kr),ir.Ka)return DA(He,7,"Premature end-of-file encountered.")}if(as(He),Ge=Br,ir=1,Yt=(ht=He).D,jt=0<ht.L&&ht.M>=ht.zb&&ht.M<=ht.Va,ht.Aa==0)t:{if(Yt.M=ht.M,Yt.uc=jt,XA(ht,Yt),ir=1,Yt=(vA=ht.D).Nb,jt=(hA=Ol[ht.L])*ht.R,SA=hA/2*ht.B,bA=16*Yt*ht.R,En=8*Yt*ht.B,Kr=ht.sa,hn=ht.ta-jt+bA,JA=ht.qa,AA=ht.ra-SA+En,ZA=ht.Ha,jr=ht.Ia-SA+En,br=(NA=vA.M)==0,ar=NA>=ht.Va-1,ht.Aa==2&&XA(ht,vA),vA.uc)for(Kn=(sr=ht).D.M,e(sr.D.uc),vA=sr.yb;vA<sr.Hb;++vA){Vr=vA,Qi=Kn;var dn=(Fn=(Cr=sr).D).Nb;er=Cr.R;var Fn=Fn.wa[Fn.Y+Vr],jn=Cr.sa,Un=Cr.ta+16*dn*er+16*Vr,Vn=Fn.dd,OA=Fn.tc;if(OA!=0)if(e(3<=OA),Cr.L==1)0<Vr&&iu(jn,Un,er,OA+4),Fn.La&&su(jn,Un,er,OA),0<Qi&&nu(jn,Un,er,OA+4),Fn.La&&au(jn,Un,er,OA);else{var Gn=Cr.B,xn=Cr.qa,ms=Cr.ra+8*dn*Gn+8*Vr,Ii=Cr.Ha,Cr=Cr.Ia+8*dn*Gn+8*Vr;dn=Fn.ld,0<Vr&&(RA(jn,Un,er,OA+4,Vn,dn),YA(xn,ms,Ii,Cr,Gn,OA+4,Vn,dn)),Fn.La&&(zs(jn,Un,er,OA,Vn,dn),Lo(xn,ms,Ii,Cr,Gn,OA,Vn,dn)),0<Qi&&(TA(jn,Un,er,OA+4,Vn,dn),nr(xn,ms,Ii,Cr,Gn,OA+4,Vn,dn)),Fn.La&&(ca(jn,Un,er,OA,Vn,dn),gs(xn,ms,Ii,Cr,Gn,OA,Vn,dn))}}if(ht.ia&&alert("todo:DitherRow"),Ge.put!=null){if(vA=16*NA,NA=16*(NA+1),br?(Ge.y=ht.sa,Ge.O=ht.ta+bA,Ge.f=ht.qa,Ge.N=ht.ra+En,Ge.ea=ht.Ha,Ge.W=ht.Ia+En):(vA-=hA,Ge.y=Kr,Ge.O=hn,Ge.f=JA,Ge.N=AA,Ge.ea=ZA,Ge.W=jr),ar||(NA-=hA),NA>Ge.o&&(NA=Ge.o),Ge.F=null,Ge.J=null,ht.Fa!=null&&0<ht.Fa.length&&vA<NA&&(Ge.J=dr(ht,Ge,vA,NA-vA),Ge.F=ht.mb,Ge.F==null&&Ge.F.length==0)){ir=DA(ht,3,"Could not decode alpha data.");break t}vA<Ge.j&&(hA=Ge.j-vA,vA=Ge.j,e(!(1&hA)),Ge.O+=ht.R*hA,Ge.N+=ht.B*(hA>>1),Ge.W+=ht.B*(hA>>1),Ge.F!=null&&(Ge.J+=Ge.width*hA)),vA<NA&&(Ge.O+=Ge.v,Ge.N+=Ge.v>>1,Ge.W+=Ge.v>>1,Ge.F!=null&&(Ge.J+=Ge.v),Ge.ka=vA-Ge.j,Ge.U=Ge.va-Ge.v,Ge.T=NA-vA,ir=Ge.put(Ge))}Yt+1!=ht.Ic||ar||(r(ht.sa,ht.ta-jt,Kr,hn+16*ht.R,jt),r(ht.qa,ht.ra-SA,JA,AA+8*ht.B,SA),r(ht.Ha,ht.Ia-SA,ZA,jr+8*ht.B,SA))}if(!ir)return DA(He,6,"Output aborted.")}return 1})($,le)),le.bc!=null&&le.bc(le),we&=1}return we?($.cb=0,we):0})(u,E)||(w=u.a)}}else w=u.a}w==0&&R.Oa!=null&&R.Oa.fd&&(w=Ui(R.ba))}R=w}T=R!=0?null:11>T?M.f.RGBA.eb:M.f.kb.y}else T=null;return T};var Xs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(N,Z){for(var I="",O=0;O<4;O++)I+=String.fromCharCode(N[Z++]);return I}function h(N,Z){return N[Z+0]|N[Z+1]<<8}function v(N,Z){return(N[Z+0]|N[Z+1]<<8|N[Z+2]<<16)>>>0}function m(N,Z){return(N[Z+0]|N[Z+1]<<8|N[Z+2]<<16|N[Z+3]<<24)>>>0}new o;var g=[0],C=[0],F=[],_=new o,x=t,H=(function(N,Z){var I={},O=0,Y=!1,ee=0,ce=0;if(I.frames=[],!(function(P,J){for(var te=0;te<4;te++)if(P[J+te]!="RIFF".charCodeAt(te))return!0;return!1})(N,Z)){for(m(N,Z+=4),Z+=8;Z<N.length;){var be=l(N,Z),Fe=m(N,Z+=4);Z+=4;var de=Fe+(1&Fe);switch(be){case"VP8 ":case"VP8L":I.frames[O]===void 0&&(I.frames[O]={}),(Ue=I.frames[O]).src_off=Y?ce:Z-8,Ue.src_size=ee+Fe+8,O++,Y&&(Y=!1,ee=0,ce=0);break;case"VP8X":(Ue=I.header={}).feature_flags=N[Z];var Ee=Z+4;Ue.canvas_width=1+v(N,Ee),Ee+=3,Ue.canvas_height=1+v(N,Ee),Ee+=3;break;case"ALPH":Y=!0,ee=de+8,ce=Z-8;break;case"ANIM":(Ue=I.header).bgcolor=m(N,Z),Ee=Z+4,Ue.loop_count=h(N,Ee),Ee+=2;break;case"ANMF":var Pe,Ue;(Ue=I.frames[O]={}).offset_x=2*v(N,Z),Z+=3,Ue.offset_y=2*v(N,Z),Z+=3,Ue.width=1+v(N,Z),Z+=3,Ue.height=1+v(N,Z),Z+=3,Ue.duration=v(N,Z),Z+=3,Pe=N[Z++],Ue.dispose=1&Pe,Ue.blend=Pe>>1&1}be!="ANMF"&&(Z+=de)}return I}})(x,0);H.response=x,H.rgbaoutput=!0,H.dataurl=!1;var D=H.header?H.header:null,k=H.frames?H.frames:null;if(D){D.loop_counter=D.loop_count,g=[D.canvas_height],C=[D.canvas_width];for(var re=0;re<k.length&&k[re].blend!=0;re++);}var fe=k[0],Ae=_.WebPDecodeRGBA(x,fe.src_off,fe.src_size,C,g);fe.rgba=Ae,fe.imgwidth=C[0],fe.imgheight=g[0];for(var j=0;j<C[0]*g[0]*4;j++)F[j]=Ae[j];return this.width=C,this.height=g,this.data=F,this}function d9(){var t,e=this.internal.__metadata__.metadata,A=unescape(encodeURIComponent(e));t=this.internal.__metadata__.rawXml?A:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function p9(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(t){var e,A,r,n,i,s,a,o,l,h=function(P){return P=P||{},this.isStrokeTransparent=P.isStrokeTransparent||!1,this.strokeOpacity=P.strokeOpacity||1,this.strokeStyle=P.strokeStyle||"#000000",this.fillStyle=P.fillStyle||"#000000",this.isFillTransparent=P.isFillTransparent||!1,this.fillOpacity=P.fillOpacity||1,this.font=P.font||"10px sans-serif",this.textBaseline=P.textBaseline||"alphabetic",this.textAlign=P.textAlign||"left",this.lineWidth=P.lineWidth||1,this.lineJoin=P.lineJoin||"miter",this.lineCap=P.lineCap||"butt",this.path=P.path||[],this.transform=P.transform!==void 0?P.transform.clone():new o,this.globalCompositeOperation=P.globalCompositeOperation||"normal",this.globalAlpha=P.globalAlpha||1,this.clip_path=P.clip_path||[],this.currentPoint=P.currentPoint||new s,this.miterLimit=P.miterLimit||10,this.lastPoint=P.lastPoint||new s,this.lineDashOffset=P.lineDashOffset||0,this.lineDash=P.lineDash||[],this.margin=P.margin||[0,0,0,0],this.prevPageLastElemOffset=P.prevPageLastElemOffset||0,this.ignoreClearRect=typeof P.ignoreClearRect!="boolean"||P.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new v(this),e=this.internal.f2,A=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,o=this.internal.Matrix,l=new h}]);var v=function(P){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var J=P;Object.defineProperty(this,"pdf",{get:function(){return J}});var te=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return te},set:function(q){te=!!q}});var ie=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ie},set:function(q){ie=!!q}});var oe=0;Object.defineProperty(this,"posX",{get:function(){return oe},set:function(q){isNaN(q)||(oe=q)}});var ve=0;Object.defineProperty(this,"posY",{get:function(){return ve},set:function(q){isNaN(q)||(ve=q)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(q){var je;typeof q=="number"?je=[q,q,q,q]:((je=new Array(4))[0]=q[0],je[1]=q.length>=2?q[1]:je[0],je[2]=q.length>=3?q[2]:je[0],je[3]=q.length>=4?q[3]:je[1]),l.margin=je}});var xe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return xe},set:function(q){xe=q}});var _e=0;Object.defineProperty(this,"lastBreak",{get:function(){return _e},set:function(q){_e=q}});var Le=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Le},set:function(q){Le=q}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(q){q instanceof h&&(l=q)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(q){l.path=q}});var Oe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Oe},set:function(q){Oe=q}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(q){var je;je=m(q),this.ctx.fillStyle=je.style,this.ctx.isFillTransparent=je.a===0,this.ctx.fillOpacity=je.a,this.pdf.setFillColor(je.r,je.g,je.b,{a:je.a}),this.pdf.setTextColor(je.r,je.g,je.b,{a:je.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(q){var je=m(q);this.ctx.strokeStyle=je.style,this.ctx.isStrokeTransparent=je.a===0,this.ctx.strokeOpacity=je.a,je.a===0?this.pdf.setDrawColor(255,255,255):(je.a,this.pdf.setDrawColor(je.r,je.g,je.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(q){["butt","round","square"].indexOf(q)!==-1&&(this.ctx.lineCap=q,this.pdf.setLineCap(q))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(q){isNaN(q)||(this.ctx.lineWidth=q,this.pdf.setLineWidth(q))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(q){["bevel","round","miter"].indexOf(q)!==-1&&(this.ctx.lineJoin=q,this.pdf.setLineJoin(q))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(q){isNaN(q)||(this.ctx.miterLimit=q,this.pdf.setMiterLimit(q))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(q){this.ctx.textBaseline=q}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(q){["right","end","center","left","start"].indexOf(q)!==-1&&(this.ctx.textAlign=q)}});var Je=null,qe=null,at=null;Object.defineProperty(this,"fontFaces",{get:function(){return at},set:function(q){Je=null,qe=null,at=q}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(q){var je;if(this.ctx.font=q,(je=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(q))!==null){var Tt=je[1];je[2];var ut=je[3],Re=je[4];je[5];var dt=je[6],$e=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Re)[2];Re=Math.floor($e==="px"?parseFloat(Re)*this.pdf.internal.scaleFactor:$e==="em"?parseFloat(Re)*this.pdf.getFontSize():parseFloat(Re)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Re);var lt=(function(Xe){var aA,Gt,It=[],Rt=Xe.trim();if(Rt==="")return D2;if(Rt in q_)return[q_[Rt]];for(;Rt!=="";){switch(Gt=null,aA=(Rt=j_(Rt)).charAt(0)){case'"':case"'":Gt=o9(Rt.substring(1),aA);break;default:Gt=l9(Rt)}if(Gt===null||(It.push(Gt[0]),(Rt=j_(Gt[1]))!==""&&Rt.charAt(0)!==","))return D2;Rt=Rt.replace(/^,/,"")}return It})(dt);if(this.fontFaces){var Ze=(function(Xe,aA){var Gt=Xe.getFontList(),It=JSON.stringify(Gt);if(Je===null||qe!==It){var Rt=(function(tA){var mt=[];return Object.keys(tA).forEach(function(Jt){tA[Jt].forEach(function(nt){var xt=null;switch(nt){case"bold":xt={family:Jt,weight:"bold"};break;case"italic":xt={family:Jt,style:"italic"};break;case"bolditalic":xt={family:Jt,weight:"bold",style:"italic"};break;case"":case"normal":xt={family:Jt}}xt!==null&&(xt.ref={name:Jt,style:nt},mt.push(xt))})}),mt})(Gt);Je=(function(tA){for(var mt={},Jt=0;Jt<tA.length;++Jt){var nt=k2(tA[Jt]),xt=nt.family,fA=nt.stretch,bt=nt.style,Ct=nt.weight;mt[xt]=mt[xt]||{},mt[xt][fA]=mt[xt][fA]||{},mt[xt][fA][bt]=mt[xt][fA][bt]||{},mt[xt][fA][bt][Ct]=nt}return mt})(Rt.concat(aA)),qe=It}return Je})(this.pdf,this.fontFaces),Ut=lt.map(function(Xe){return{family:Xe,stretch:"normal",weight:ut,style:Tt}}),Nt=(function(Xe,aA,Gt){for(var It=(Gt=Gt||{}).defaultFontFamily||"times",Rt=Object.assign({},s9,Gt.genericFontFamilies||{}),tA=null,mt=null,Jt=0;Jt<aA.length;++Jt)if(Rt[(tA=k2(aA[Jt])).family]&&(tA.family=Rt[tA.family]),Xe.hasOwnProperty(tA.family)){mt=Xe[tA.family];break}if(!(mt=mt||Xe[It]))throw new Error("Could not find a font-family for the rule '"+K_(tA)+"' and default family '"+It+"'.");if(mt=(function(nt,xt){if(xt[nt])return xt[nt];var fA=V2[nt],bt=fA<=V2.normal?-1:1,Ct=M_(xt,uS,fA,bt);if(!Ct)throw new Error("Could not find a matching font-stretch value for "+nt);return Ct})(tA.stretch,mt),mt=(function(nt,xt){if(xt[nt])return xt[nt];for(var fA=cS[nt],bt=0;bt<fA.length;++bt)if(xt[fA[bt]])return xt[fA[bt]];throw new Error("Could not find a matching font-style for "+nt)})(tA.style,mt),!(mt=(function(nt,xt){if(xt[nt])return xt[nt];if(nt===400&&xt[500])return xt[500];if(nt===500&&xt[400])return xt[400];var fA=a9[nt],bt=M_(xt,fS,fA,nt<400?-1:1);if(!bt)throw new Error("Could not find a matching font-weight for value "+nt);return bt})(tA.weight,mt)))throw new Error("Failed to resolve a font for the rule '"+K_(tA)+"'.");return mt})(Ze,Ut);this.pdf.setFont(Nt.ref.name,Nt.ref.style)}else{var St="";(ut==="bold"||parseInt(ut,10)>=700||Tt==="bold")&&(St="bold"),Tt==="italic"&&(St+="italic"),St.length===0&&(St="normal");for(var Ht="",Ot={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},tt=0;tt<lt.length;tt++){if(this.pdf.internal.getFont(lt[tt],St,{noFallback:!0,disableWarning:!0})!==void 0){Ht=lt[tt];break}if(St==="bolditalic"&&this.pdf.internal.getFont(lt[tt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ht=lt[tt],St="bold";else if(this.pdf.internal.getFont(lt[tt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ht=lt[tt],St="normal";break}}if(Ht===""){for(var yt=0;yt<lt.length;yt++)if(Ot[lt[yt]]){Ht=Ot[lt[yt]];break}}Ht=Ht===""?"Times":Ht,this.pdf.setFont(Ht,St)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(q){this.ctx.globalCompositeOperation=q}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(q){this.ctx.globalAlpha=q}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(q){this.ctx.lineDashOffset=q,Ue.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(q){this.ctx.lineDash=q,Ue.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(q){this.ctx.ignoreClearRect=!!q}})};v.prototype.setLineDash=function(P){this.lineDash=P},v.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},v.prototype.fill=function(){k.call(this,"fill",!1)},v.prototype.stroke=function(){k.call(this,"stroke",!1)},v.prototype.beginPath=function(){this.path=[{type:"begin"}]},v.prototype.moveTo=function(P,J){if(isNaN(P)||isNaN(J))throw MA.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var te=this.ctx.transform.applyToPoint(new s(P,J));this.path.push({type:"mt",x:te.x,y:te.y}),this.ctx.lastPoint=new s(P,J)},v.prototype.closePath=function(){var P=new s(0,0),J=0;for(J=this.path.length-1;J!==-1;J--)if(this.path[J].type==="begin"&&dA(this.path[J+1])==="object"&&typeof this.path[J+1].x=="number"){P=new s(this.path[J+1].x,this.path[J+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(P.x,P.y)},v.prototype.lineTo=function(P,J){if(isNaN(P)||isNaN(J))throw MA.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var te=this.ctx.transform.applyToPoint(new s(P,J));this.path.push({type:"lt",x:te.x,y:te.y}),this.ctx.lastPoint=new s(te.x,te.y)},v.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),k.call(this,null,!0)},v.prototype.quadraticCurveTo=function(P,J,te,ie){if(isNaN(te)||isNaN(ie)||isNaN(P)||isNaN(J))throw MA.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var oe=this.ctx.transform.applyToPoint(new s(te,ie)),ve=this.ctx.transform.applyToPoint(new s(P,J));this.path.push({type:"qct",x1:ve.x,y1:ve.y,x:oe.x,y:oe.y}),this.ctx.lastPoint=new s(oe.x,oe.y)},v.prototype.bezierCurveTo=function(P,J,te,ie,oe,ve){if(isNaN(oe)||isNaN(ve)||isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie))throw MA.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var xe=this.ctx.transform.applyToPoint(new s(oe,ve)),_e=this.ctx.transform.applyToPoint(new s(P,J)),Le=this.ctx.transform.applyToPoint(new s(te,ie));this.path.push({type:"bct",x1:_e.x,y1:_e.y,x2:Le.x,y2:Le.y,x:xe.x,y:xe.y}),this.ctx.lastPoint=new s(xe.x,xe.y)},v.prototype.arc=function(P,J,te,ie,oe,ve){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie)||isNaN(oe))throw MA.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ve=!!ve,!this.ctx.transform.isIdentity){var xe=this.ctx.transform.applyToPoint(new s(P,J));P=xe.x,J=xe.y;var _e=this.ctx.transform.applyToPoint(new s(0,te)),Le=this.ctx.transform.applyToPoint(new s(0,0));te=Math.sqrt(Math.pow(_e.x-Le.x,2)+Math.pow(_e.y-Le.y,2))}Math.abs(oe-ie)>=2*Math.PI&&(ie=0,oe=2*Math.PI),this.path.push({type:"arc",x:P,y:J,radius:te,startAngle:ie,endAngle:oe,counterclockwise:ve})},v.prototype.arcTo=function(P,J,te,ie,oe){throw new Error("arcTo not implemented.")},v.prototype.rect=function(P,J,te,ie){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie))throw MA.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(P,J),this.lineTo(P+te,J),this.lineTo(P+te,J+ie),this.lineTo(P,J+ie),this.lineTo(P,J),this.lineTo(P+te,J),this.lineTo(P,J)},v.prototype.fillRect=function(P,J,te,ie){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie))throw MA.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var oe={};this.lineCap!=="butt"&&(oe.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(oe.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(P,J,te,ie),this.fill(),oe.hasOwnProperty("lineCap")&&(this.lineCap=oe.lineCap),oe.hasOwnProperty("lineJoin")&&(this.lineJoin=oe.lineJoin)}},v.prototype.strokeRect=function(P,J,te,ie){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie))throw MA.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");C.call(this)||(this.beginPath(),this.rect(P,J,te,ie),this.stroke())},v.prototype.clearRect=function(P,J,te,ie){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie))throw MA.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(P,J,te,ie))},v.prototype.save=function(P){P=typeof P!="boolean"||P;for(var J=this.pdf.internal.getCurrentPageInfo().pageNumber,te=0;te<this.pdf.internal.getNumberOfPages();te++)this.pdf.setPage(te+1),this.pdf.internal.out("q");if(this.pdf.setPage(J),P){this.ctx.fontSize=this.pdf.internal.getFontSize();var ie=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ie}},v.prototype.restore=function(P){P=typeof P!="boolean"||P;for(var J=this.pdf.internal.getCurrentPageInfo().pageNumber,te=0;te<this.pdf.internal.getNumberOfPages();te++)this.pdf.setPage(te+1),this.pdf.internal.out("Q");this.pdf.setPage(J),P&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},v.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var m=function(P){var J,te,ie,oe;if(P.isCanvasGradient===!0&&(P=P.getColor()),!P)return{r:0,g:0,b:0,a:0,style:P};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(P))J=0,te=0,ie=0,oe=0;else{var ve=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(P);if(ve!==null)J=parseInt(ve[1]),te=parseInt(ve[2]),ie=parseInt(ve[3]),oe=1;else if((ve=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(P))!==null)J=parseInt(ve[1]),te=parseInt(ve[2]),ie=parseInt(ve[3]),oe=parseFloat(ve[4]);else{if(oe=1,typeof P=="string"&&P.charAt(0)!=="#"){var xe=new rS(P);P=xe.ok?xe.toHex():"#000000"}P.length===4?(J=P.substring(1,2),J+=J,te=P.substring(2,3),te+=te,ie=P.substring(3,4),ie+=ie):(J=P.substring(1,3),te=P.substring(3,5),ie=P.substring(5,7)),J=parseInt(J,16),te=parseInt(te,16),ie=parseInt(ie,16)}}return{r:J,g:te,b:ie,a:oe,style:P}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},C=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};v.prototype.fillText=function(P,J,te,ie){if(isNaN(J)||isNaN(te)||typeof P!="string")throw MA.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(ie=isNaN(ie)?void 0:ie,!g.call(this)){var oe=de(this.ctx.transform.rotation),ve=this.ctx.transform.scaleX;O.call(this,{text:P,x:J,y:te,scale:ve,angle:oe,align:this.textAlign,maxWidth:ie})}},v.prototype.strokeText=function(P,J,te,ie){if(isNaN(J)||isNaN(te)||typeof P!="string")throw MA.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!C.call(this)){ie=isNaN(ie)?void 0:ie;var oe=de(this.ctx.transform.rotation),ve=this.ctx.transform.scaleX;O.call(this,{text:P,x:J,y:te,scale:ve,renderingMode:"stroke",angle:oe,align:this.textAlign,maxWidth:ie})}},v.prototype.measureText=function(P){if(typeof P!="string")throw MA.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var J=this.pdf,te=this.pdf.internal.scaleFactor,ie=J.internal.getFontSize(),oe=J.getStringUnitWidth(P)*ie/J.internal.scaleFactor;return new function(ve){var xe=(ve=ve||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return xe}}),this}({width:oe*=Math.round(96*te/72*1e4)/1e4})},v.prototype.scale=function(P,J){if(isNaN(P)||isNaN(J))throw MA.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var te=new o(P,0,0,J,0,0);this.ctx.transform=this.ctx.transform.multiply(te)},v.prototype.rotate=function(P){if(isNaN(P))throw MA.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var J=new o(Math.cos(P),Math.sin(P),-Math.sin(P),Math.cos(P),0,0);this.ctx.transform=this.ctx.transform.multiply(J)},v.prototype.translate=function(P,J){if(isNaN(P)||isNaN(J))throw MA.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var te=new o(1,0,0,1,P,J);this.ctx.transform=this.ctx.transform.multiply(te)},v.prototype.transform=function(P,J,te,ie,oe,ve){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie)||isNaN(oe)||isNaN(ve))throw MA.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var xe=new o(P,J,te,ie,oe,ve);this.ctx.transform=this.ctx.transform.multiply(xe)},v.prototype.setTransform=function(P,J,te,ie,oe,ve){P=isNaN(P)?1:P,J=isNaN(J)?0:J,te=isNaN(te)?0:te,ie=isNaN(ie)?1:ie,oe=isNaN(oe)?0:oe,ve=isNaN(ve)?0:ve,this.ctx.transform=new o(P,J,te,ie,oe,ve)};var F=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};v.prototype.drawImage=function(P,J,te,ie,oe,ve,xe,_e,Le){var Oe=this.pdf.getImageProperties(P),Je=1,qe=1,at=1,q=1;ie!==void 0&&_e!==void 0&&(at=_e/ie,q=Le/oe,Je=Oe.width/ie*_e/ie,qe=Oe.height/oe*Le/oe),ve===void 0&&(ve=J,xe=te,J=0,te=0),ie!==void 0&&_e===void 0&&(_e=ie,Le=oe),ie===void 0&&_e===void 0&&(_e=Oe.width,Le=Oe.height);var je=this.ctx.transform.decompose(),Tt=de(je.rotate.shx),ut=new o,Re=(ut=(ut=(ut=ut.multiply(je.translate)).multiply(je.skew)).multiply(je.scale)).applyToRectangle(new a(ve-J*at,xe-te*q,ie*Je,oe*qe));if(this.autoPaging){for(var dt,$e=_.call(this,Re),lt=[],Ze=0;Ze<$e.length;Ze+=1)lt.indexOf($e[Ze])===-1&<.push($e[Ze]);D(lt);for(var Ut=lt[0],Nt=lt[lt.length-1],St=Ut;St<Nt+1;St++){this.pdf.setPage(St);var Ht=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ot=St===1?this.posY+this.margin[0]:this.margin[0],tt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],yt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Xe=St===1?0:tt+(St-2)*yt;if(this.ctx.clip_path.length!==0){var aA=this.path;dt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(dt,this.posX+this.margin[3],-Xe+Ot+this.ctx.prevPageLastElemOffset),re.call(this,"fill",!0),this.path=aA}var Gt=JSON.parse(JSON.stringify(Re));Gt=H([Gt],this.posX+this.margin[3],-Xe+Ot+this.ctx.prevPageLastElemOffset)[0];var It=(St>Ut||St<Nt)&&F.call(this);It&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ht,yt,null).clip().discardPath()),this.pdf.addImage(P,"JPEG",Gt.x,Gt.y,Gt.w,Gt.h,null,null,Tt),It&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(P,"JPEG",Re.x,Re.y,Re.w,Re.h,null,null,Tt)};var _=function(P,J,te){var ie=[];J=J||this.pdf.internal.pageSize.width,te=te||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var oe=this.posY+this.ctx.prevPageLastElemOffset;switch(P.type){default:case"mt":case"lt":ie.push(Math.floor((P.y+oe)/te)+1);break;case"arc":ie.push(Math.floor((P.y+oe-P.radius)/te)+1),ie.push(Math.floor((P.y+oe+P.radius)/te)+1);break;case"qct":var ve=Ee(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x,P.y);ie.push(Math.floor((ve.y+oe)/te)+1),ie.push(Math.floor((ve.y+ve.h+oe)/te)+1);break;case"bct":var xe=Pe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x2,P.y2,P.x,P.y);ie.push(Math.floor((xe.y+oe)/te)+1),ie.push(Math.floor((xe.y+xe.h+oe)/te)+1);break;case"rect":ie.push(Math.floor((P.y+oe)/te)+1),ie.push(Math.floor((P.y+P.h+oe)/te)+1)}for(var _e=0;_e<ie.length;_e+=1)for(;this.pdf.internal.getNumberOfPages()<ie[_e];)x.call(this);return ie},x=function(){var P=this.fillStyle,J=this.strokeStyle,te=this.font,ie=this.lineCap,oe=this.lineWidth,ve=this.lineJoin;this.pdf.addPage(),this.fillStyle=P,this.strokeStyle=J,this.font=te,this.lineCap=ie,this.lineWidth=oe,this.lineJoin=ve},H=function(P,J,te){for(var ie=0;ie<P.length;ie++)switch(P[ie].type){case"bct":P[ie].x2+=J,P[ie].y2+=te;case"qct":P[ie].x1+=J,P[ie].y1+=te;default:P[ie].x+=J,P[ie].y+=te}return P},D=function(P){return P.sort(function(J,te){return J-te})},k=function(P,J){var te=this.fillStyle,ie=this.strokeStyle,oe=this.lineCap,ve=this.lineWidth,xe=Math.abs(ve*this.ctx.transform.scaleX),_e=this.lineJoin;if(this.autoPaging){for(var Le,Oe,Je=JSON.parse(JSON.stringify(this.path)),qe=JSON.parse(JSON.stringify(this.path)),at=[],q=0;q<qe.length;q++)if(qe[q].x!==void 0)for(var je=_.call(this,qe[q]),Tt=0;Tt<je.length;Tt+=1)at.indexOf(je[Tt])===-1&&at.push(je[Tt]);for(var ut=0;ut<at.length;ut++)for(;this.pdf.internal.getNumberOfPages()<at[ut];)x.call(this);D(at);for(var Re=at[0],dt=at[at.length-1],$e=Re;$e<dt+1;$e++){this.pdf.setPage($e),this.fillStyle=te,this.strokeStyle=ie,this.lineCap=oe,this.lineWidth=xe,this.lineJoin=_e;var lt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ze=$e===1?this.posY+this.margin[0]:this.margin[0],Ut=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Nt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],St=$e===1?0:Ut+($e-2)*Nt;if(this.ctx.clip_path.length!==0){var Ht=this.path;Le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(Le,this.posX+this.margin[3],-St+Ze+this.ctx.prevPageLastElemOffset),re.call(this,P,!0),this.path=Ht}if(Oe=JSON.parse(JSON.stringify(Je)),this.path=H(Oe,this.posX+this.margin[3],-St+Ze+this.ctx.prevPageLastElemOffset),J===!1||$e===0){var Ot=($e>Re||$e<dt)&&F.call(this);Ot&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],lt,Nt,null).clip().discardPath()),re.call(this,P,J),Ot&&this.pdf.restoreGraphicsState()}this.lineWidth=ve}this.path=Je}else this.lineWidth=xe,re.call(this,P,J),this.lineWidth=ve},re=function(P,J){if((P!=="stroke"||J||!C.call(this))&&(P==="stroke"||J||!g.call(this))){for(var te,ie,oe=[],ve=this.path,xe=0;xe<ve.length;xe++){var _e=ve[xe];switch(_e.type){case"begin":oe.push({begin:!0});break;case"close":oe.push({close:!0});break;case"mt":oe.push({start:_e,deltas:[],abs:[]});break;case"lt":var Le=oe.length;if(ve[xe-1]&&!isNaN(ve[xe-1].x)&&(te=[_e.x-ve[xe-1].x,_e.y-ve[xe-1].y],Le>0)){for(;Le>=0;Le--)if(oe[Le-1].close!==!0&&oe[Le-1].begin!==!0){oe[Le-1].deltas.push(te),oe[Le-1].abs.push(_e);break}}break;case"bct":te=[_e.x1-ve[xe-1].x,_e.y1-ve[xe-1].y,_e.x2-ve[xe-1].x,_e.y2-ve[xe-1].y,_e.x-ve[xe-1].x,_e.y-ve[xe-1].y],oe[oe.length-1].deltas.push(te);break;case"qct":var Oe=ve[xe-1].x+2/3*(_e.x1-ve[xe-1].x),Je=ve[xe-1].y+2/3*(_e.y1-ve[xe-1].y),qe=_e.x+2/3*(_e.x1-_e.x),at=_e.y+2/3*(_e.y1-_e.y),q=_e.x,je=_e.y;te=[Oe-ve[xe-1].x,Je-ve[xe-1].y,qe-ve[xe-1].x,at-ve[xe-1].y,q-ve[xe-1].x,je-ve[xe-1].y],oe[oe.length-1].deltas.push(te);break;case"arc":oe.push({deltas:[],abs:[],arc:!0}),Array.isArray(oe[oe.length-1].abs)&&oe[oe.length-1].abs.push(_e)}}ie=J?null:P==="stroke"?"stroke":"fill";for(var Tt=!1,ut=0;ut<oe.length;ut++)if(oe[ut].arc)for(var Re=oe[ut].abs,dt=0;dt<Re.length;dt++){var $e=Re[dt];$e.type==="arc"?j.call(this,$e.x,$e.y,$e.radius,$e.startAngle,$e.endAngle,$e.counterclockwise,void 0,J,!Tt):Y.call(this,$e.x,$e.y),Tt=!0}else if(oe[ut].close===!0)this.pdf.internal.out("h"),Tt=!1;else if(oe[ut].begin!==!0){var lt=oe[ut].start.x,Ze=oe[ut].start.y;ee.call(this,oe[ut].deltas,lt,Ze),Tt=!0}ie&&N.call(this,ie),J&&Z.call(this)}},fe=function(P){var J=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,te=J*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return P-te;case"top":return P+J-te;case"hanging":return P+J-2*te;case"middle":return P+J/2-te;default:return P}},Ae=function(P){return P+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};v.prototype.createLinearGradient=function(){var P=function(){};return P.colorStops=[],P.addColorStop=function(J,te){this.colorStops.push([J,te])},P.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},P.isCanvasGradient=!0,P},v.prototype.createPattern=function(){return this.createLinearGradient()},v.prototype.createRadialGradient=function(){return this.createLinearGradient()};var j=function(P,J,te,ie,oe,ve,xe,_e,Le){for(var Oe=be.call(this,te,ie,oe,ve),Je=0;Je<Oe.length;Je++){var qe=Oe[Je];Je===0&&(Le?I.call(this,qe.x1+P,qe.y1+J):Y.call(this,qe.x1+P,qe.y1+J)),ce.call(this,P,J,qe.x2,qe.y2,qe.x3,qe.y3,qe.x4,qe.y4)}_e?Z.call(this):N.call(this,xe)},N=function(P){switch(P){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Z=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(P,J){this.pdf.internal.out(A(P)+" "+r(J)+" m")},O=function(P){var J;switch(P.align){case"right":case"end":J="right";break;case"center":J="center";break;default:J="left"}var te,ie,oe,ve=this.pdf.getTextDimensions(P.text),xe=fe.call(this,P.y),_e=Ae.call(this,xe)-ve.h,Le=this.ctx.transform.applyToPoint(new s(P.x,xe));if(this.autoPaging){var Oe=this.ctx.transform.decompose(),Je=new o;Je=(Je=(Je=Je.multiply(Oe.translate)).multiply(Oe.skew)).multiply(Oe.scale);for(var qe=this.ctx.transform.applyToRectangle(new a(P.x,xe,ve.w,ve.h)),at=Je.applyToRectangle(new a(P.x,_e,ve.w,ve.h)),q=_.call(this,at),je=[],Tt=0;Tt<q.length;Tt+=1)je.indexOf(q[Tt])===-1&&je.push(q[Tt]);D(je);for(var ut=je[0],Re=je[je.length-1],dt=ut;dt<Re+1;dt++){this.pdf.setPage(dt);var $e=dt===1?this.posY+this.margin[0]:this.margin[0],lt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ze=this.pdf.internal.pageSize.height-this.margin[2],Ut=Ze-this.margin[0],Nt=this.pdf.internal.pageSize.width-this.margin[1],St=Nt-this.margin[3],Ht=dt===1?0:lt+(dt-2)*Ut;if(this.ctx.clip_path.length!==0){var Ot=this.path;te=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(te,this.posX+this.margin[3],-1*Ht+$e),re.call(this,"fill",!0),this.path=Ot}var tt=H([JSON.parse(JSON.stringify(at))],this.posX+this.margin[3],-Ht+$e+this.ctx.prevPageLastElemOffset)[0];P.scale>=.01&&(ie=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ie*P.scale),oe=this.lineWidth,this.lineWidth=oe*P.scale);var yt=this.autoPaging!=="text";if(yt||tt.y+tt.h<=Ze){if(yt||tt.y>=$e&&tt.x<=Nt){var Xe=yt?P.text:this.pdf.splitTextToSize(P.text,P.maxWidth||Nt-tt.x)[0],aA=H([JSON.parse(JSON.stringify(qe))],this.posX+this.margin[3],-Ht+$e+this.ctx.prevPageLastElemOffset)[0],Gt=yt&&(dt>ut||dt<Re)&&F.call(this);Gt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],St,Ut,null).clip().discardPath()),this.pdf.text(Xe,aA.x,aA.y,{angle:P.angle,align:J,renderingMode:P.renderingMode}),Gt&&this.pdf.restoreGraphicsState()}}else tt.y<Ze&&(this.ctx.prevPageLastElemOffset+=Ze-tt.y);P.scale>=.01&&(this.pdf.setFontSize(ie),this.lineWidth=oe)}}else P.scale>=.01&&(ie=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ie*P.scale),oe=this.lineWidth,this.lineWidth=oe*P.scale),this.pdf.text(P.text,Le.x+this.posX,Le.y+this.posY,{angle:P.angle,align:J,renderingMode:P.renderingMode,maxWidth:P.maxWidth}),P.scale>=.01&&(this.pdf.setFontSize(ie),this.lineWidth=oe)},Y=function(P,J,te,ie){te=te||0,ie=ie||0,this.pdf.internal.out(A(P+te)+" "+r(J+ie)+" l")},ee=function(P,J,te){return this.pdf.lines(P,J,te,null,null)},ce=function(P,J,te,ie,oe,ve,xe,_e){this.pdf.internal.out([e(n(te+P)),e(i(ie+J)),e(n(oe+P)),e(i(ve+J)),e(n(xe+P)),e(i(_e+J)),"c"].join(" "))},be=function(P,J,te,ie){for(var oe=2*Math.PI,ve=Math.PI/2;J>te;)J-=oe;var xe=Math.abs(te-J);xe<oe&&ie&&(xe=oe-xe);for(var _e=[],Le=ie?-1:1,Oe=J;xe>1e-5;){var Je=Oe+Le*Math.min(xe,ve);_e.push(Fe.call(this,P,Oe,Je)),xe-=Math.abs(Je-Oe),Oe=Je}return _e},Fe=function(P,J,te){var ie=(te-J)/2,oe=P*Math.cos(ie),ve=P*Math.sin(ie),xe=oe,_e=-ve,Le=xe*xe+_e*_e,Oe=Le+xe*oe+_e*ve,Je=4/3*(Math.sqrt(2*Le*Oe)-Oe)/(xe*ve-_e*oe),qe=xe-Je*_e,at=_e+Je*xe,q=qe,je=-at,Tt=ie+J,ut=Math.cos(Tt),Re=Math.sin(Tt);return{x1:P*Math.cos(J),y1:P*Math.sin(J),x2:qe*ut-at*Re,y2:qe*Re+at*ut,x3:q*ut-je*Re,y3:q*Re+je*ut,x4:P*Math.cos(te),y4:P*Math.sin(te)}},de=function(P){return 180*P/Math.PI},Ee=function(P,J,te,ie,oe,ve){var xe=P+.5*(te-P),_e=J+.5*(ie-J),Le=oe+.5*(te-oe),Oe=ve+.5*(ie-ve),Je=Math.min(P,oe,xe,Le),qe=Math.max(P,oe,xe,Le),at=Math.min(J,ve,_e,Oe),q=Math.max(J,ve,_e,Oe);return new a(Je,at,qe-Je,q-at)},Pe=function(P,J,te,ie,oe,ve,xe,_e){var Le,Oe,Je,qe,at,q,je,Tt,ut,Re,dt,$e,lt,Ze,Ut=te-P,Nt=ie-J,St=oe-te,Ht=ve-ie,Ot=xe-oe,tt=_e-ve;for(Oe=0;Oe<41;Oe++)ut=(je=(Je=P+(Le=Oe/40)*Ut)+Le*((at=te+Le*St)-Je))+Le*(at+Le*(oe+Le*Ot-at)-je),Re=(Tt=(qe=J+Le*Nt)+Le*((q=ie+Le*Ht)-qe))+Le*(q+Le*(ve+Le*tt-q)-Tt),Oe==0?(dt=ut,$e=Re,lt=ut,Ze=Re):(dt=Math.min(dt,ut),$e=Math.min($e,Re),lt=Math.max(lt,ut),Ze=Math.max(Ze,Re));return new a(Math.round(dt),Math.round($e),Math.round(lt-dt),Math.round(Ze-$e))},Ue=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var P,J,te=(P=this.ctx.lineDash,J=this.ctx.lineDashOffset,JSON.stringify({lineDash:P,lineDashOffset:J}));this.prevLineDash!==te&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=te)}}})(Ft.API),(function(t){var e=function(s){var a,o,l,h,v,m,g,C,F,_;for(/[^\x00-\xFF]/.test(s),o=[],l=0,h=(s+=a="\0\0\0\0".slice(s.length%4||4)).length;h>l;l+=4)(v=(s.charCodeAt(l)<<24)+(s.charCodeAt(l+1)<<16)+(s.charCodeAt(l+2)<<8)+s.charCodeAt(l+3))!==0?(m=(v=((v=((v=((v=(v-(_=v%85))/85)-(F=v%85))/85)-(C=v%85))/85)-(g=v%85))/85)%85,o.push(m+33,g+33,C+33,F+33,_+33)):o.push(122);return(function(x,H){for(var D=H;D>0;D--)x.pop()})(o,a.length),String.fromCharCode.apply(String,o)+"~>"},A=function(s){var a,o,l,h,v,m=String,g="length",C=255,F="charCodeAt",_="slice",x="replace";for(s[_](-2),s=s[_](0,-2)[x](/\s/g,"")[x]("z","!!!!!"),l=[],h=0,v=(s+=a="uuuuu"[_](s[g]%5||5))[g];v>h;h+=5)o=52200625*(s[F](h)-33)+614125*(s[F](h+1)-33)+7225*(s[F](h+2)-33)+85*(s[F](h+3)-33)+(s[F](h+4)-33),l.push(C&o>>24,C&o>>16,C&o>>8,C&o);return(function(H,D){for(var k=D;k>0;k--)H.pop()})(l,a[g]),m.fromCharCode.apply(m,l)},r=function(s){return s.split("").map(function(a){return("0"+a.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(s){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),a.test(s)===!1)return"";for(var o="",l=0;l<s.length;l+=2)o+=String.fromCharCode("0x"+(s[l]+s[l+1]));return o},i=function(s){for(var a=new Uint8Array(s.length),o=s.length;o--;)a[o]=s.charCodeAt(o);return(a=od(a)).reduce(function(l,h){return l+String.fromCharCode(h)},"")};t.processDataByFilters=function(s,a){var o=0,l=s||"",h=[];for(typeof(a=a||[])=="string"&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":l=A(l),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=r(l),h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:l,reverseChain:h.reverse().join(" ")}}})(Ft.API),(function(t){t.loadFile=function(e,A,r){return(function(n,i,s){i=i!==!1,s=typeof s=="function"?s:function(){};var a=void 0;try{a=(function(o,l,h){var v=new XMLHttpRequest,m=0,g=function(C){var F=C.length,_=[],x=String.fromCharCode;for(m=0;m<F;m+=1)_.push(x(255&C.charCodeAt(m)));return _.join("")};if(v.open("GET",o,!l),v.overrideMimeType("text/plain; charset=x-user-defined"),l===!1&&(v.onload=function(){v.status===200?h(g(this.responseText)):h(void 0)}),v.send(null),l&&v.status===200)return g(v.responseText)})(n,i,s)}catch{}return a})(e,A,r)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile})(Ft.API),(function(t){function e(){return(Kt.html2canvas?Promise.resolve(Kt.html2canvas):Promise.resolve().then(()=>An(sw()))).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function A(){return(Kt.DOMPurify?Promise.resolve(Kt.DOMPurify):Promise.resolve().then(()=>(e5(),Zb))).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var o=dA(a);return o==="undefined"?"undefined":o==="string"||a instanceof String?"string":o==="number"||a instanceof Number?"number":o==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":o==="object"?"object":"unknown"},n=function(a,o){var l=document.createElement(a);for(var h in o.className&&(l.className=o.className),o.innerHTML&&o.dompurify&&(l.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)l.style[h]=o.style[h];return l},i=function a(o,l){for(var h=o.nodeType===3?document.createTextNode(o.nodeValue):o.cloneNode(!1),v=o.firstChild;v;v=v.nextSibling)l!==!0&&v.nodeType===1&&v.nodeName==="SCRIPT"||h.appendChild(a(v,l));return o.nodeType===1&&(o.nodeName==="CANVAS"?(h.width=o.width,h.height=o.height,h.getContext("2d").drawImage(o,0,0)):o.nodeName!=="TEXTAREA"&&o.nodeName!=="SELECT"||(h.value=o.value),h.addEventListener("load",function(){h.scrollTop=o.scrollTop,h.scrollLeft=o.scrollLeft},!0)),h},s=function a(o){var l=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),h=a.convert(Promise.resolve(),l);return(h=h.setProgress(1,a,1,[a])).set(o)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(a,o){return a.__proto__=o||s.prototype,a},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(a,o){return this.then(function(){switch(o=o||(function(l){switch(r(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(a),o){case"string":return this.then(A).then(function(l){return this.set({src:n("div",{innerHTML:a,dompurify:l})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},s.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},o=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(o),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(e).then(function(o){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,o(this.prop.container,l)}).then(function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(e).then(function(o){var l=this.opt.jsPDF,h=this.opt.fontFaces,v=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,m=Object.assign({async:!0,allowTaint:!0,scale:v,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete m.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=h,h)for(var g=0;g<h.length;++g){var C=h[g],F=C.src.find(function(_){return _.format==="truetype"});F&&l.addFont(F.url,C.ref.name,C.ref.style)}return m.windowHeight=m.windowHeight||0,m.windowHeight=m.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):m.windowHeight,l.context2d.save(!0),o(this.prop.container,m)}).then(function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(a,o,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(a,o):this.outputPdf(a,o)},s.prototype.outputPdf=function(a,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,o)})},s.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},s.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(a){if(r(a)!=="object")return this;var o=Object.keys(a||{}).map(function(l){if(l in s.template.prop)return function(){this.prop[l]=a[l]};switch(l){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[l]=a[l]}}},this);return this.then(function(){return this.thenList(o)})},s.prototype.get=function(a,o){return this.then(function(){var l=a in s.template.prop?this.prop[a]:this.opt[a];return o?o(l):l})},s.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},s.prototype.setPageSize=function(a){function o(l,h){return Math.floor(l*h/72*96)}return this.then(function(){(a=a||Ft.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:o(a.inner.width,a.k),height:o(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},s.prototype.setProgress=function(a,o,l,h){return a!=null&&(this.progress.val=a),o!=null&&(this.progress.state=o),l!=null&&(this.progress.n=l),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(a,o,l,h){return this.setProgress(a?this.progress.val+a:null,o||null,l?this.progress.n+l:null,h?this.progress.stack.concat(h):null)},s.prototype.then=function(a,o){var l=this;return this.thenCore(a,o,function(h,v){return l.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(m){return l.updateProgress(null,h),m}).then(h,v).then(function(m){return l.updateProgress(1),m})})},s.prototype.thenCore=function(a,o,l){l=l||Promise.prototype.then;var h=this;a&&(a=a.bind(h)),o&&(o=o.bind(h));var v=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?h:s.convert(Object.assign({},h),Promise.prototype),m=l.call(v,a,o);return s.convert(m,h.__proto__)},s.prototype.thenExternal=function(a,o){return Promise.prototype.then.call(this,a,o)},s.prototype.thenList=function(a){var o=this;return a.forEach(function(l){o=o.thenCore(l)}),o},s.prototype.catch=function(a){a&&(a=a.bind(this));var o=Promise.prototype.catch.call(this,a);return s.convert(o,this)},s.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},s.prototype.error=function(a){return this.then(function(){throw new Error(a)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,Ft.getPageSize=function(a,o,l){if(dA(a)==="object"){var h=a;a=h.orientation,o=h.unit||o,l=h.format||l}o=o||"mm",l=l||"a4",a=(""+(a||"P")).toLowerCase();var v,m=(""+l).toLowerCase(),g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(o){case"pt":v=1;break;case"mm":v=72/25.4;break;case"cm":v=72/2.54;break;case"in":v=72;break;case"px":v=.75;break;case"pc":case"em":v=12;break;case"ex":v=6;break;default:throw"Invalid unit: "+o}var C,F=0,_=0;if(g.hasOwnProperty(m))F=g[m][1]/v,_=g[m][0]/v;else try{F=l[1],_=l[0]}catch{throw new Error("Invalid format: "+l)}if(a==="p"||a==="portrait")a="p",_>F&&(C=_,_=F,F=C);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",F>_&&(C=_,_=F,F=C)}return{width:_,height:F,unit:o,k:v,orientation:a}},t.html=function(a,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(k2):null;var l=new s(o);return o.worker?l:l.from(a).doCallback()}})(Ft.API),Ft.API.addJS=function(t){var e,A,r=(function(n){for(var i="",s=0;s<n.length;s++){var a=n[s];if(a==="("||a===")"){for(var o=0,l=s-1;l>=0&&n[l]==="\\";l--)o++;i+=o%2==0?"\\"+a:a}else i+=a}return i})(t);return this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){e!==void 0&&A!==void 0&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")}),this},(function(t){var e;t.events.push(["postPutResources",function(){var A=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=A.outline.render().split(/\r\n/),i=0;i<n.length;i++){var s=n[i],a=r.exec(s);if(a!=null){var o=a[1];A.internal.newObjectDeferredBegin(o,!1)}A.internal.write(s)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,h=[];for(i=0;i<l;i++){var v=A.internal.newObject();h.push(v);var m=A.internal.getPageInfo(i+1);A.internal.write("<< /D["+m.objId+" 0 R /XYZ null null null]>> endobj")}var g=A.internal.newObject();for(A.internal.write("<< /Names [ "),i=0;i<h.length;i++)A.internal.write("(page_"+(i+1)+")"+h[i]+" 0 R");A.internal.write(" ] >>","endobj"),e=A.internal.newObject(),A.internal.write("<< /Dests "+g+" 0 R"),A.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var A=this;A.outline.root.children.length>0&&(A.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&A.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(r,n,i){var s={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(s),s},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(r){r.id=A.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},A.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},A.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var s=r.children[i];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var a=this.count=this.count_r({count:0},s);if(a>0&&this.line("/Count "+a),s.options&&s.options.pageNumber){var o=A.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var l=0;l<r.children.length;l++)this.renderItems(r.children[l])},A.outline.line=function(r){this.ctx.val+=r+`\r
|
|
51
|
+
`),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,A=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+A}};vt.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=vt.internal.getWidth(t),A=vt.internal.getHeight(t),r=Math.min(e,A);return{x1:{x:(e-r)/2,y:(A-r)/2+r},x2:{x:(e-r)/2+r,y:(A-r)/2},x3:{x:(e-r)/2,y:(A-r)/2},x4:{x:(e-r)/2+r,y:(A-r)/2+r}}}},vt.internal.getWidth=function(t){var e=0;return dA(t)==="object"&&(e=H_(t.Rect[2])),e},vt.internal.getHeight=function(t){var e=0;return dA(t)==="object"&&(e=H_(t.Rect[3])),e};var i9=wr.addField=function(t){if(n9(this,t),!(t instanceof Ea))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=t).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};wr.AcroFormChoiceField=jc,wr.AcroFormListBox=Vc,wr.AcroFormComboBox=Gc,wr.AcroFormEditBox=Cg,wr.AcroFormButton=on,wr.AcroFormPushButton=Eg,wr.AcroFormRadioButton=zc,wr.AcroFormCheckBox=Fg,wr.AcroFormTextField=yl,wr.AcroFormPasswordField=Ug,wr.AcroFormAppearance=vt,wr.AcroForm={ChoiceField:jc,ListBox:Vc,ComboBox:Gc,EditBox:Cg,Button:on,PushButton:Eg,RadioButton:zc,CheckBox:Fg,TextField:yl,PasswordField:Ug,Appearance:vt},Ft.AcroForm={ChoiceField:jc,ListBox:Vc,ComboBox:Gc,EditBox:Cg,Button:on,PushButton:Eg,RadioButton:zc,CheckBox:Fg,TextField:yl,PasswordField:Ug,Appearance:vt};var OX=Ft.AcroForm;function lS(t){return t.reduce(function(e,A,r){return e[A]=r,e},{})}(function(t){var e="addImage_";t.__addimage__={};var A="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=t.__addimage__.getImageFileTypeByImageData=function(I,O){var Y,ee,ce,be,Fe,de=A;if((O=O||A)==="RGBA"||I.data!==void 0&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if(fe(I))for(Fe in r)for(ce=r[Fe],Y=0;Y<ce.length;Y+=1){for(be=!0,ee=0;ee<ce[Y].length;ee+=1)if(ce[Y][ee]!==void 0&&ce[Y][ee]!==I[ee]){be=!1;break}if(be===!0){de=Fe;break}}else for(Fe in r)for(ce=r[Fe],Y=0;Y<ce.length;Y+=1){for(be=!0,ee=0;ee<ce[Y].length;ee+=1)if(ce[Y][ee]!==void 0&&ce[Y][ee]!==I.charCodeAt(ee)){be=!1;break}if(be===!0){de=Fe;break}}return de===A&&O!==A&&(de=O),de},i=function I(O){for(var Y=this.internal.write,ee=this.internal.putStream,ce=(0,this.internal.getFilters)();ce.indexOf("FlateEncode")!==-1;)ce.splice(ce.indexOf("FlateEncode"),1);O.objectId=this.internal.newObject();var be=[];if(be.push({key:"Type",value:"/XObject"}),be.push({key:"Subtype",value:"/Image"}),be.push({key:"Width",value:O.width}),be.push({key:"Height",value:O.height}),O.colorSpace===x.INDEXED?be.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(O.palette.length/3-1)+" "+("sMask"in O&&O.sMask!==void 0?O.objectId+2:O.objectId+1)+" 0 R]"}):(be.push({key:"ColorSpace",value:"/"+O.colorSpace}),O.colorSpace===x.DEVICE_CMYK&&be.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),be.push({key:"BitsPerComponent",value:O.bitsPerComponent}),"decodeParameters"in O&&O.decodeParameters!==void 0&&be.push({key:"DecodeParms",value:"<<"+O.decodeParameters+">>"}),"transparency"in O&&Array.isArray(O.transparency)&&O.transparency.length>0){for(var Fe="",de=0,Ee=O.transparency.length;de<Ee;de++)Fe+=O.transparency[de]+" "+O.transparency[de]+" ";be.push({key:"Mask",value:"["+Fe+"]"})}O.sMask!==void 0&&be.push({key:"SMask",value:O.objectId+1+" 0 R"});var Pe=O.filter!==void 0?["/"+O.filter]:void 0;if(ee({data:O.data,additionalKeyValues:be,alreadyAppliedFilters:Pe,objectId:O.objectId}),Y("endobj"),"sMask"in O&&O.sMask!==void 0){var Ue,P=(Ue=O.sMaskBitsPerComponent)!==null&&Ue!==void 0?Ue:O.bitsPerComponent,J={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:P,data:O.sMask};"filter"in O&&(J.decodeParameters="/Predictor ".concat(O.predictor," /Colors 1 /BitsPerComponent ").concat(P," /Columns ").concat(O.width),J.filter=O.filter),I.call(this,J)}if(O.colorSpace===x.INDEXED){var te=this.internal.newObject();ee({data:j(new Uint8Array(O.palette)),objectId:te}),Y("endobj")}},s=function(){var I=this.internal.collections[e+"images"];for(var O in I)i.call(this,I[O])},a=function(){var I,O=this.internal.collections[e+"images"],Y=this.internal.write;for(var ee in O)Y("/I"+(I=O[ee]).index,I.objectId,"0","R")},o=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",a))},l=function(){var I=this.internal.collections[e+"images"];return o.call(this),I},h=function(){return Object.keys(this.internal.collections[e+"images"]).length},v=function(I){return typeof t["process"+I.toUpperCase()]=="function"},m=function(I){return dA(I)==="object"&&I.nodeType===1},g=function(I,O){if(I.nodeName==="IMG"&&I.hasAttribute("src")){var Y=""+I.getAttribute("src");if(Y.indexOf("data:image/")===0)return bg(unescape(Y).split("base64,").pop());var ee=t.loadFile(Y,!0);if(ee!==void 0)return ee}if(I.nodeName==="CANVAS"){if(I.width===0||I.height===0)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var ce;switch(O){case"PNG":ce="image/png";break;case"WEBP":ce="image/webp";break;default:ce="image/jpeg"}return bg(I.toDataURL(ce,1).split("base64,").pop())}},C=function(I){var O=this.internal.collections[e+"images"];if(O){for(var Y in O)if(I===O[Y].alias)return O[Y]}},F=function(I,O,Y){return I||O||(I=-96,O=-96),I<0&&(I=-1*Y.width*72/I/this.internal.scaleFactor),O<0&&(O=-1*Y.height*72/O/this.internal.scaleFactor),I===0&&(I=O*Y.width/Y.height),O===0&&(O=I*Y.height/Y.width),[I,O]},_=function(I,O,Y,ee,ce,be){var Fe=F.call(this,Y,ee,ce),de=this.internal.getCoordinateString,Ee=this.internal.getVerticalCoordinateString,Pe=l.call(this);if(Y=Fe[0],ee=Fe[1],Pe[ce.index]=ce,be){be*=Math.PI/180;var Ue=Math.cos(be),P=Math.sin(be),J=function(ie){return ie.toFixed(4)},te=[J(Ue),J(P),J(-1*P),J(Ue),0,0,"cm"]}this.internal.write("q"),be?(this.internal.write([1,"0","0",1,de(I),Ee(O+ee),"cm"].join(" ")),this.internal.write(te.join(" ")),this.internal.write([de(Y),"0","0",de(ee),"0","0","cm"].join(" "))):this.internal.write([de(Y),"0","0",de(ee),de(I),Ee(O+ee),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ce.index+" Do"),this.internal.write("Q")},x=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var H=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},D=t.__addimage__.sHashCode=function(I){var O,Y,ee=0;if(typeof I=="string")for(Y=I.length,O=0;O<Y;O++)ee=(ee<<5)-ee+I.charCodeAt(O),ee|=0;else if(fe(I))for(Y=I.byteLength/2,O=0;O<Y;O++)ee=(ee<<5)-ee+I[O],ee|=0;return ee},k=t.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var O=!0;return I.length===0&&(O=!1),I.length%4!=0&&(O=!1),/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))===!1&&(O=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))===!1&&(O=!1),O},re=t.__addimage__.extractImageFromDataUrl=function(I){if(I==null||!(I=I.trim()).startsWith("data:"))return null;var O=I.indexOf(",");return O<0?null:I.substring(0,O).trim().endsWith("base64")?I.substring(O+1):null};t.__addimage__.isArrayBuffer=function(I){return I instanceof ArrayBuffer};var fe=t.__addimage__.isArrayBufferView=function(I){return I instanceof Int8Array||I instanceof Uint8Array||I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array},Ae=t.__addimage__.binaryStringToUint8Array=function(I){for(var O=I.length,Y=new Uint8Array(O),ee=0;ee<O;ee++)Y[ee]=I.charCodeAt(ee);return Y},j=t.__addimage__.arrayBufferToBinaryString=function(I){for(var O="",Y=fe(I)?I:new Uint8Array(I),ee=0;ee<Y.length;ee+=8192)O+=String.fromCharCode.apply(null,Y.subarray(ee,ee+8192));return O};t.addImage=function(){var I,O,Y,ee,ce,be,Fe,de,Ee;if(typeof arguments[1]=="number"?(O=A,Y=arguments[1],ee=arguments[2],ce=arguments[3],be=arguments[4],Fe=arguments[5],de=arguments[6],Ee=arguments[7]):(O=arguments[1],Y=arguments[2],ee=arguments[3],ce=arguments[4],be=arguments[5],Fe=arguments[6],de=arguments[7],Ee=arguments[8]),dA(I=arguments[0])==="object"&&!m(I)&&"imageData"in I){var Pe=I;I=Pe.imageData,O=Pe.format||O||A,Y=Pe.x||Y||0,ee=Pe.y||ee||0,ce=Pe.w||Pe.width||ce,be=Pe.h||Pe.height||be,Fe=Pe.alias||Fe,de=Pe.compression||de,Ee=Pe.rotation||Pe.angle||Ee}var Ue=this.internal.getFilters();if(de===void 0&&Ue.indexOf("FlateEncode")!==-1&&(de="SLOW"),isNaN(Y)||isNaN(ee))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var P=N.call(this,I,O,Fe,de);return _.call(this,Y,ee,ce,be,P,Ee),this};var N=function(I,O,Y,ee){var ce,be,Fe;if(typeof I=="string"&&n(I)===A){I=unescape(I);var de=Z(I,!1);(de!==""||(de=t.loadFile(I,!0))!==void 0)&&(I=de)}if(m(I)&&(I=g(I,O)),O=n(I,O),!v(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((Fe=Y)==null||Fe.length===0)&&(Y=(function(Ee){return typeof Ee=="string"||fe(Ee)?D(Ee):fe(Ee.data)?D(Ee.data):null})(I)),(ce=C.call(this,Y))||(I instanceof Uint8Array||O==="RGBA"||(be=I,I=Ae(I)),ce=this["process"+O.toUpperCase()](I,h.call(this),Y,(function(Ee){return Ee&&typeof Ee=="string"&&(Ee=Ee.toUpperCase()),Ee in t.image_compression?Ee:H.NONE})(ee),be)),!ce)throw new Error("An unknown error occurred whilst processing the image.");return ce},Z=t.__addimage__.convertBase64ToBinaryString=function(I,O){O=typeof O!="boolean"||O;var Y,ee="";if(typeof I=="string"){var ce;Y=(ce=re(I))!==null&&ce!==void 0?ce:I;try{ee=bg(Y)}catch(be){if(O)throw k(Y)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+be.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ee};t.getImageProperties=function(I){var O,Y,ee="";if(m(I)&&(I=g(I)),typeof I=="string"&&n(I)===A&&((ee=Z(I,!1))===""&&(ee=t.loadFile(I)||""),I=ee),Y=n(I),!v(Y))throw new Error("addImage does not support files of type '"+Y+"', please ensure that a plugin for '"+Y+"' support is added.");if(I instanceof Uint8Array||(I=Ae(I)),!(O=this["process"+Y.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=Y,O}})(Ft.API),(function(t){var e=function(A){if(A!==void 0&&A!="")return!0};Ft.API.events.push(["addPage",function(A){this.internal.getPageInfo(A.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(A){for(var r,n,i,s=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(A.objId),l=A.pageContext.annotations,h=!1,v=0;v<l.length&&!h;v++)switch((r=l[v]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(h=!0);break;case"reference":case"text":case"freetext":h=!0}if(h!=0){this.internal.write("/Annots [");for(var m=0;m<l.length;m++){r=l[m];var g=this.internal.pdfEscape,C=this.internal.getEncryptor(A.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var F=this.internal.newAdditionalObject(),_=this.internal.newAdditionalObject(),x=this.internal.getEncryptor(F.objId),H=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y)+"] ")+"/Contents ("+g(x(r.contents))+")",i+=" /Popup "+_.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+g(x(H))+") >>",F.content=i;var D=F.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+s(r.bounds.x+30)+" "+a(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+a(r.bounds.y)+"] ")+" /Parent "+D,r.open&&(i+=" /Open true"),i+=" >>",_.content=i,this.internal.write(F.objId,"0 R",_.objId,"0 R");break;case"freetext":n="/Rect ["+s(r.bounds.x)+" "+a(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+a(r.bounds.y+r.bounds.h)+"] ";var k="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+g(C(r.contents))+")",i+=" /DS("+g(C(k))+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var re=this.annotations._nameMap[r.options.name];r.options.pageNumber=re.page,r.options.top=re.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+g(C(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;default:var fe=a(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+fe+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),t.createAnnotation=function(A){var r=this.internal.getCurrentPageInfo();switch(A.type){case"link":this.link(A.bounds.x,A.bounds.y,A.bounds.w,A.bounds.h,A);break;case"text":case"freetext":r.pageContext.annotations.push(A)}},t.link=function(A,r,n,i,s){var a=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;a.pageContext.annotations.push({finalBounds:{x:o(A),y:l(r),w:o(A+n),h:l(r+i)},options:s,type:"link"})},t.textWithLink=function(A,r,n,i){var s,a,o=this.getTextWidth(A),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){a=i.maxWidth;var h=this.splitTextToSize(A,a).length;s=Math.ceil(l*h)}else a=o,s=l;return this.text(A,r,n,i),n+=.2*l,i.align==="center"&&(r-=o/2),i.align==="right"&&(r-=o),this.link(r,n-l,a,s,i),o},t.getTextWidth=function(A){var r=this.internal.getFontSize();return this.getStringUnitWidth(A)*r/this.internal.scaleFactor}})(Ft.API),(function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},A={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];t.__arabicParser__={};var i=t.__arabicParser__.isInArabicSubstitutionA=function(F){return e[F.charCodeAt(0)]!==void 0},s=t.__arabicParser__.isArabicLetter=function(F){return typeof F=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(F)},a=t.__arabicParser__.isArabicEndLetter=function(F){return s(F)&&i(F)&&e[F.charCodeAt(0)].length<=2},o=t.__arabicParser__.isArabicAlfLetter=function(F){return s(F)&&n.indexOf(F.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(F){return s(F)&&i(F)&&e[F.charCodeAt(0)].length>=1};var l=t.__arabicParser__.arabicLetterHasFinalForm=function(F){return s(F)&&i(F)&&e[F.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(F){return s(F)&&i(F)&&e[F.charCodeAt(0)].length>=3};var h=t.__arabicParser__.arabicLetterHasMedialForm=function(F){return s(F)&&i(F)&&e[F.charCodeAt(0)].length==4},v=t.__arabicParser__.resolveLigatures=function(F){var _=0,x=A,H="",D=0;for(_=0;_<F.length;_+=1)x[F.charCodeAt(_)]!==void 0?(D++,typeof(x=x[F.charCodeAt(_)])=="number"&&(H+=String.fromCharCode(x),x=A,D=0),_===F.length-1&&(x=A,H+=F.charAt(_-(D-1)),_-=D-1,D=0)):(x=A,H+=F.charAt(_-D),_-=D,D=0);return H};t.__arabicParser__.isArabicDiacritic=function(F){return F!==void 0&&r[F.charCodeAt(0)]!==void 0};var m=t.__arabicParser__.getCorrectForm=function(F,_,x){return s(F)?i(F)===!1?-1:!l(F)||!s(_)&&!s(x)||!s(x)&&a(_)||a(F)&&!s(_)||a(F)&&o(_)||a(F)&&a(_)?0:h(F)&&s(_)&&!a(_)&&s(x)&&l(x)?3:a(F)||!s(x)?1:2:-1},g=function(F){var _=0,x=0,H=0,D="",k="",re="",fe=(F=F||"").split("\\s+"),Ae=[];for(_=0;_<fe.length;_+=1){for(Ae.push(""),x=0;x<fe[_].length;x+=1)D=fe[_][x],k=fe[_][x-1],re=fe[_][x+1],s(D)?(H=m(D,k,re),Ae[_]+=H!==-1?String.fromCharCode(e[D.charCodeAt(0)][H]):D):Ae[_]+=D;Ae[_]=v(Ae[_])}return Ae.join(" ")},C=t.__arabicParser__.processArabic=t.processArabic=function(){var F,_=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,x=[];if(Array.isArray(_)){var H=0;for(x=[],H=0;H<_.length;H+=1)Array.isArray(_[H])?x.push([g(_[H][0]),_[H][1],_[H][2]]):x.push([g(_[H])]);F=x}else F=g(_);return typeof arguments[0]=="string"?F:(arguments[0].text=F,arguments[0])};t.events.push(["preProcessText",C])})(Ft.API),Ft.API.autoPrint=function(t){var e;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})),this},(function(t){var e=function(){var A=void 0;Object.defineProperty(this,"pdf",{get:function(){return A},set:function(a){A=a}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(a){r=isNaN(a)||Number.isInteger(a)===!1||a<0?150:a,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(a){n=isNaN(a)||Number.isInteger(a)===!1||a<0?300:a,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(a){i=a}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(a){s=a}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(A,r){var n;if((A=A||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])})(Ft.API),(function(t){var e={left:0,top:0,bottom:0,right:0},A=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},e),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(F){o=F}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(F){l=F}});var h=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return h},set:function(F){h=F}});var v=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return v},set:function(F){v=F}});var m=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return m},set:function(F){m=F}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(F){g=F}});var C=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return C},set:function(F){C=F}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(o){return r.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},t.getTextDimensions=function(o,l){r.call(this);var h=(l=l||{}).fontSize||this.getFontSize(),v=l.font||this.getFont(),m=l.scaleFactor||this.internal.scaleFactor,g=0,C=0,F=0,_=this;if(!Array.isArray(o)&&typeof o!="string"){if(typeof o!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");o=String(o)}var x=l.maxWidth;x>0?typeof o=="string"?o=this.splitTextToSize(o,x):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(D,k){return D.concat(_.splitTextToSize(k,x))},[])):o=Array.isArray(o)?o:[o];for(var H=0;H<o.length;H++)g<(F=this.getStringUnitWidth(o[H],{font:v})*h)&&(g=F);return g!==0&&(C=o.length),{w:g/=m,h:Math.max((C*h*this.getLineHeightFactor()-h*(this.getLineHeightFactor()-1))/m,0)}},t.cellAddPage=function(){r.call(this),this.addPage();var o=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=t.cell=function(){var o;o=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var l=this.internal.__cell__.lastCell,h=this.internal.__cell__.padding,v=this.internal.__cell__.margins||e,m=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return l.lineNumber!==void 0&&(l.lineNumber===o.lineNumber?(o.x=(l.x||0)+(l.width||0),o.y=l.y||0):l.y+l.height+o.height+v.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=v.top,g&&m&&(this.printHeaderRow(o.lineNumber,!0),o.y+=m[0].height)):o.y=l.y+l.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,A===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-h,o.y+h,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+h,{align:"center",baseline:"top",maxWidth:o.width-h-h}):this.text(o.text,o.x+h,o.y+h,{align:"left",baseline:"top",maxWidth:o.width-h-h})),this.internal.__cell__.lastCell=o,this};t.table=function(o,l,h,v,m){if(r.call(this),!h)throw new Error("No data for PDF table.");var g,C,F,_,x=[],H=[],D=[],k={},re={},fe=[],Ae=[],j=(m=m||{}).autoSize||!1,N=m.printHeaders!==!1,Z=m.css&&m.css["font-size"]!==void 0?16*m.css["font-size"]:m.fontSize||12,I=m.margins||Object.assign({width:this.getPageWidth()},e),O=typeof m.padding=="number"?m.padding:3,Y=m.headerBackgroundColor||"#c8c8c8",ee=m.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=N,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=Z,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=Y,this.internal.__cell__.headerTextColor=ee,this.setFontSize(Z),v==null)H=x=Object.keys(h[0]),D=x.map(function(){return"left"});else if(Array.isArray(v)&&dA(v[0])==="object")for(x=v.map(function(Pe){return Pe.name}),H=v.map(function(Pe){return Pe.prompt||Pe.name||""}),D=v.map(function(Pe){return Pe.align||"left"}),g=0;g<v.length;g+=1)re[v[g].name]=.7499990551181103*v[g].width;else Array.isArray(v)&&typeof v[0]=="string"&&(H=x=v,D=x.map(function(){return"left"}));if(j||Array.isArray(v)&&typeof v[0]=="string")for(g=0;g<x.length;g+=1){for(k[_=x[g]]=h.map(function(Pe){return Pe[_]}),this.setFont(void 0,"bold"),fe.push(this.getTextDimensions(H[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),C=k[_],this.setFont(void 0,"normal"),F=0;F<C.length;F+=1)fe.push(this.getTextDimensions(C[F],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);re[_]=Math.max.apply(null,fe)+O+O,fe=[]}if(N){var ce={};for(g=0;g<x.length;g+=1)ce[x[g]]={},ce[x[g]].text=H[g],ce[x[g]].align=D[g];var be=a.call(this,ce,re);Ae=x.map(function(Pe){return new i(o,l,re[Pe],be,ce[Pe].text,void 0,ce[Pe].align)}),this.setTableHeaderRow(Ae),this.printHeaderRow(1,!1)}var Fe=v.reduce(function(Pe,Ue){return Pe[Ue.name]=Ue.align,Pe},{});for(g=0;g<h.length;g+=1){"rowStart"in m&&m.rowStart instanceof Function&&m.rowStart({row:g,data:h[g]},this);var de=a.call(this,h[g],re);for(F=0;F<x.length;F+=1){var Ee=h[g][x[F]];"cellStart"in m&&m.cellStart instanceof Function&&m.cellStart({row:g,col:F,data:Ee},this),s.call(this,new i(o,l,re[x[F]],de,Ee,g+2,Fe[x[F]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=l,this};var a=function(o,l){var h=this.internal.__cell__.padding,v=this.internal.__cell__.table_font_size,m=this.internal.scaleFactor;return Object.keys(o).map(function(g){var C=o[g];return this.splitTextToSize(C.hasOwnProperty("text")?C.text:C,l[g]-h-h)},this).map(function(g){return this.getLineHeightFactor()*g.length*v/m+h+h},this).reduce(function(g,C){return Math.max(g,C)},0)};t.setTableHeaderRow=function(o){r.call(this),this.internal.__cell__.tableHeaderRow=o},t.printHeaderRow=function(o,l){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var h;if(A=!0,typeof this.internal.__cell__.headerFunction=="function"){var v=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(v[0],v[1],v[2],v[3],void 0,-1)}this.setFont(void 0,"bold");for(var m=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){h=this.internal.__cell__.tableHeaderRow[g].clone(),l&&(h.y=this.internal.__cell__.margins.top||0,m.push(h)),h.lineNumber=o;var C=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,h),this.setTextColor(C)}m.length>0&&this.setTableHeaderRow(m),this.setFont(void 0,"normal"),A=!1}})(Ft.API);var cS={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},uS=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],V2=lS(uS),fS=[100,200,300,400,500,600,700,800,900],a9=lS(fS);function k2(t){var e=t.family.replace(/"|'/g,"").toLowerCase(),A=(function(i){return cS[i=i||"normal"]?i:"normal"})(t.style),r=(function(i){return i?typeof i=="number"?i>=100&&i<=900&&i%100==0?i:400:/^\d00$/.test(i)?parseInt(i):i==="bold"?700:400:400})(t.weight),n=(function(i){return typeof V2[i=i||"normal"]=="number"?i:"normal"})(t.stretch);return{family:e,style:A,weight:r,stretch:n,src:t.src||[],ref:t.ref||{name:e,style:[n,A,r].join(" ")}}}function M_(t,e,A,r){var n;for(n=A;n>=0&&n<e.length;n+=r)if(t[e[n]])return t[e[n]];for(n=A;n>=0&&n<e.length;n-=r)if(t[e[n]])return t[e[n]]}var s9={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},q_={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function K_(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function j_(t){return t.trimLeft()}function o9(t,e){for(var A=0;A<t.length;){if(t.charAt(A)===e)return[t.substring(0,A),t.substring(A+1)];A+=1}return null}function l9(t){var e=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],t.substring(e[0].length)]}var Hc,Bg,V_,G_,z_,D2=["times"];function W_(t,e,A,r,n){var i=4,s=X_;switch(n){case Ft.API.image_compression.FAST:i=1,s=$_;break;case Ft.API.image_compression.MEDIUM:i=6,s=Y_;break;case Ft.API.image_compression.SLOW:i=9,s=J_}t=(function(o,l,h,v){for(var m,g=o.length/l,C=new Uint8Array(o.length+g),F=[c9,$_,X_,Y_,J_],_=0;_<g;_+=1){var x=_*l,H=o.subarray(x,x+l);if(v)C.set(v(H,h,m),x+_);else{for(var D=F.length,k=[],re=0;re<D;re+=1)k[re]=F[re](H,h,m);var fe=f9(k.concat());C.set(k[fe],x+_)}m=H}return C})(t,e,Math.ceil(A*r/8),s);var a=od(t,{level:i});return Ft.API.__addimage__.arrayBufferToBinaryString(a)}function c9(t){var e=Array.apply([],t);return e.unshift(0),e}function $_(t,e){var A=t.length,r=[];r[0]=1;for(var n=0;n<A;n+=1){var i=t[n-e]||0;r[n+1]=t[n]-i+256&255}return r}function X_(t,e,A){var r=t.length,n=[];n[0]=2;for(var i=0;i<r;i+=1){var s=A&&A[i]||0;n[i+1]=t[i]-s+256&255}return n}function Y_(t,e,A){var r=t.length,n=[];n[0]=3;for(var i=0;i<r;i+=1){var s=t[i-e]||0,a=A&&A[i]||0;n[i+1]=t[i]+256-(s+a>>>1)&255}return n}function J_(t,e,A){var r=t.length,n=[];n[0]=4;for(var i=0;i<r;i+=1){var s=u9(t[i-e]||0,A&&A[i]||0,A&&A[i-e]||0);n[i+1]=t[i]-s+256&255}return n}function u9(t,e,A){if(t===e&&e===A)return t;var r=Math.abs(e-A),n=Math.abs(t-A),i=Math.abs(t+e-A-A);return r<=n&&r<=i?t:n<=i?e:A}function f9(t){var e=t.map(function(A){return A.reduce(function(r,n){return r+Math.abs(n)},0)});return e.indexOf(Math.min.apply(null,e))}function H2(t,e,A){var r=e*A,n=Math.floor(r/8),i=16-(r-8*n+A),s=(1<<A)-1;return hS(t,n)>>i&s}function Z_(t,e,A,r){var n=A*r,i=Math.floor(n/8),s=16-(n-8*i+r),a=(1<<r)-1,o=(e&a)<<s;(function(l,h,v){if(h+1<l.byteLength)l.setUint16(h,v,!1);else{var m=v>>8&255;l.setUint8(h,m)}})(t,i,hS(t,i)&~(a<<s)&65535|o)}function hS(t,e){return e+1<t.byteLength?t.getUint16(e,!1):t.getUint8(e)<<8}function h9(t){var e=0;if(t[e++]!==71||t[e++]!==73||t[e++]!==70||t[e++]!==56||(t[e++]+1&253)!=56||t[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var A=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,n=t[e++],i=n>>7,s=1<<1+(7&n);t[e++],t[e++];var a=null,o=null;i&&(a=e,o=s,e+=3*s);var l=!0,h=[],v=0,m=null,g=0,C=null;for(this.width=A,this.height=r;l&&e<t.length;)switch(t[e++]){case 33:switch(t[e++]){case 255:if(t[e]!==11||t[e+1]==78&&t[e+2]==69&&t[e+3]==84&&t[e+4]==83&&t[e+5]==67&&t[e+6]==65&&t[e+7]==80&&t[e+8]==69&&t[e+9]==50&&t[e+10]==46&&t[e+11]==48&&t[e+12]==3&&t[e+13]==1&&t[e+16]==0)e+=14,C=t[e++]|t[e++]<<8,e++;else for(e+=12;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(I===0)break;e+=I}break;case 249:if(t[e++]!==4||t[e+4]!==0)throw new Error("Invalid graphics extension block.");var F=t[e++];v=t[e++]|t[e++]<<8,m=t[e++],1&F||(m=null),g=F>>2&7,e++;break;case 254:for(;;){if(!((I=t[e++])>=0))throw Error("Invalid block size");if(I===0)break;e+=I}break;default:throw new Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var _=t[e++]|t[e++]<<8,x=t[e++]|t[e++]<<8,H=t[e++]|t[e++]<<8,D=t[e++]|t[e++]<<8,k=t[e++],re=k>>6&1,fe=1<<1+(7&k),Ae=a,j=o,N=!1;k>>7&&(N=!0,Ae=e,j=fe,e+=3*fe);var Z=e;for(e++;;){var I;if(!((I=t[e++])>=0))throw Error("Invalid block size");if(I===0)break;e+=I}h.push({x:_,y:x,width:H,height:D,has_local_palette:N,palette_offset:Ae,palette_size:j,data_offset:Z,data_length:e-Z,transparent_index:m,interlaced:!!re,delay:v,disposal:g});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return h.length},this.loopCount=function(){return C},this.frameInfo=function(O){if(O<0||O>=h.length)throw new Error("Frame index out of range.");return h[O]},this.decodeAndBlitFrameBGRA=function(O,Y){var ee=this.frameInfo(O),ce=ee.width*ee.height;if(ce>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var be=new Uint8Array(ce);eS(t,ee.data_offset,be,ce);var Fe=ee.palette_offset,de=ee.transparent_index;de===null&&(de=256);var Ee=ee.width,Pe=A-Ee,Ue=Ee,P=4*(ee.y*A+ee.x),J=4*((ee.y+ee.height)*A+ee.x),te=P,ie=4*Pe;ee.interlaced===!0&&(ie+=4*A*7);for(var oe=8,ve=0,xe=be.length;ve<xe;++ve){var _e=be[ve];if(Ue===0&&(Ue=Ee,(te+=ie)>=J&&(ie=4*Pe+4*A*(oe-1),te=P+(Ee+Pe)*(oe<<1),oe>>=1)),_e===de)te+=4;else{var Le=t[Fe+3*_e],Oe=t[Fe+3*_e+1],Je=t[Fe+3*_e+2];Y[te++]=Je,Y[te++]=Oe,Y[te++]=Le,Y[te++]=255}--Ue}},this.decodeAndBlitFrameRGBA=function(O,Y){var ee=this.frameInfo(O),ce=ee.width*ee.height;if(ce>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var be=new Uint8Array(ce);eS(t,ee.data_offset,be,ce);var Fe=ee.palette_offset,de=ee.transparent_index;de===null&&(de=256);var Ee=ee.width,Pe=A-Ee,Ue=Ee,P=4*(ee.y*A+ee.x),J=4*((ee.y+ee.height)*A+ee.x),te=P,ie=4*Pe;ee.interlaced===!0&&(ie+=4*A*7);for(var oe=8,ve=0,xe=be.length;ve<xe;++ve){var _e=be[ve];if(Ue===0&&(Ue=Ee,(te+=ie)>=J&&(ie=4*Pe+4*A*(oe-1),te=P+(Ee+Pe)*(oe<<1),oe>>=1)),_e===de)te+=4;else{var Le=t[Fe+3*_e],Oe=t[Fe+3*_e+1],Je=t[Fe+3*_e+2];Y[te++]=Le,Y[te++]=Oe,Y[te++]=Je,Y[te++]=255}--Ue}}}function eS(t,e,A,r){for(var n=t[e++],i=1<<n,s=i+1,a=s+1,o=n+1,l=(1<<o)-1,h=0,v=0,m=0,g=t[e++],C=new Int32Array(4096),F=null;;){for(;h<16&&g!==0;)v|=t[e++]<<h,h+=8,g===1?g=t[e++]:--g;if(h<o)break;var _=v&l;if(v>>=o,h-=o,_!==i){if(_===s)break;for(var x=_<a?_:F,H=0,D=x;D>i;)D=C[D]>>8,++H;var k=D;if(m+H+(x!==_?1:0)>r)return void MA.log("Warning, gif stream longer than expected.");A[m++]=k;var re=m+=H;for(x!==_&&(A[m++]=k),D=x;H--;)D=C[D],A[--re]=255&D,D>>=8;F!==null&&a<4096&&(C[a++]=F<<8|k,a>=l+1&&o<12&&(++o,l=l<<1|1)),F=_}else a=s+1,l=(1<<(o=n+1))-1,F=null}return m!==r&&MA.log("Warning, gif stream shorter than expected."),A}function M2(t){var e,A,r,n,i,s=Math.floor,a=new Array(64),o=new Array(64),l=new Array(64),h=new Array(64),v=new Array(65535),m=new Array(65535),g=new Array(64),C=new Array(64),F=[],_=0,x=7,H=new Array(64),D=new Array(64),k=new Array(64),re=new Array(256),fe=new Array(2048),Ae=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],j=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],Z=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Y=[0,1,2,3,4,5,6,7,8,9,10,11],ee=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ce=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function be(P,J){for(var te=0,ie=0,oe=new Array,ve=1;ve<=16;ve++){for(var xe=1;xe<=P[ve];xe++)oe[J[ie]]=[],oe[J[ie]][0]=te,oe[J[ie]][1]=ve,ie++,te++;te*=2}return oe}function Fe(P){for(var J=P[0],te=P[1]-1;te>=0;)J&1<<te&&(_|=1<<x),te--,--x<0&&(_==255?(de(255),de(0)):de(_),x=7,_=0)}function de(P){F.push(P)}function Ee(P){de(P>>8&255),de(255&P)}function Pe(P,J,te,ie,oe){for(var ve,xe=oe[0],_e=oe[240],Le=(function(Re,dt){var $e,lt,Ze,Ut,Nt,St,Ht,Ot,tt,yt,Xe=0;for(tt=0;tt<8;++tt){$e=Re[Xe],lt=Re[Xe+1],Ze=Re[Xe+2],Ut=Re[Xe+3],Nt=Re[Xe+4],St=Re[Xe+5],Ht=Re[Xe+6];var aA=$e+(Ot=Re[Xe+7]),Gt=$e-Ot,It=lt+Ht,Rt=lt-Ht,tA=Ze+St,mt=Ze-St,Jt=Ut+Nt,nt=Ut-Nt,xt=aA+Jt,fA=aA-Jt,bt=It+tA,Ct=It-tA;Re[Xe]=xt+bt,Re[Xe+4]=xt-bt;var sA=.707106781*(Ct+fA);Re[Xe+2]=fA+sA,Re[Xe+6]=fA-sA;var ln=.382683433*((xt=nt+mt)-(Ct=Rt+Gt)),qA=.5411961*xt+ln,WA=1.306562965*Ct+ln,Sr=.707106781*(bt=mt+Rt),_t=Gt+Sr,On=Gt-Sr;Re[Xe+5]=On+qA,Re[Xe+3]=On-qA,Re[Xe+1]=_t+WA,Re[Xe+7]=_t-WA,Xe+=8}for(Xe=0,tt=0;tt<8;++tt){$e=Re[Xe],lt=Re[Xe+8],Ze=Re[Xe+16],Ut=Re[Xe+24],Nt=Re[Xe+32],St=Re[Xe+40],Ht=Re[Xe+48];var ti=$e+(Ot=Re[Xe+56]),Lt=$e-Ot,vr=lt+Ht,IA=lt-Ht,mA=Ze+St,rr=Ze-St,Bn=Ut+Nt,yi=Ut-Nt,Pn=ti+Bn,oA=ti-Bn,Qr=vr+mA,Rn=vr-mA;Re[Xe]=Pn+Qr,Re[Xe+32]=Pn-Qr;var kr=.707106781*(Rn+oA);Re[Xe+16]=oA+kr,Re[Xe+48]=oA-kr;var Ai=.382683433*((Pn=yi+rr)-(Rn=IA+Lt)),kn=.5411961*Pn+Ai,Di=1.306562965*Rn+Ai,Ua=.707106781*(Qr=rr+IA),xa=Lt+Ua,_a=Lt-Ua;Re[Xe+40]=_a+kn,Re[Xe+24]=_a-kn,Re[Xe+8]=xa+Di,Re[Xe+56]=xa-Di,Xe++}for(tt=0;tt<64;++tt)yt=Re[tt]*dt[tt],g[tt]=yt>0?yt+.5|0:yt-.5|0;return g})(P,J),Oe=0;Oe<64;++Oe)C[Ae[Oe]]=Le[Oe];var Je=C[0]-te;te=C[0],Je==0?Fe(ie[0]):(Fe(ie[m[ve=32767+Je]]),Fe(v[ve]));for(var qe=63;qe>0&&C[qe]==0;)qe--;if(qe==0)return Fe(xe),te;for(var at,q=1;q<=qe;){for(var je=q;C[q]==0&&q<=qe;)++q;var Tt=q-je;if(Tt>=16){at=Tt>>4;for(var ut=1;ut<=at;++ut)Fe(_e);Tt&=15}ve=32767+C[q],Fe(oe[(Tt<<4)+m[ve]]),Fe(v[ve]),q++}return qe!=63&&Fe(xe),te}function Ue(P){P=Math.min(Math.max(P,1),100),i!=P&&((function(J){for(var te=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],ie=0;ie<64;ie++){var oe=s((te[ie]*J+50)/100);oe=Math.min(Math.max(oe,1),255),a[Ae[ie]]=oe}for(var ve=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],xe=0;xe<64;xe++){var _e=s((ve[xe]*J+50)/100);_e=Math.min(Math.max(_e,1),255),o[Ae[xe]]=_e}for(var Le=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Oe=0,Je=0;Je<8;Je++)for(var qe=0;qe<8;qe++)l[Oe]=1/(a[Ae[Oe]]*Le[Je]*Le[qe]*8),h[Oe]=1/(o[Ae[Oe]]*Le[Je]*Le[qe]*8),Oe++})(P<50?Math.floor(5e3/P):Math.floor(200-2*P)),i=P)}this.encode=function(P,J){J&&Ue(J),F=new Array,_=0,x=7,Ee(65496),Ee(65504),Ee(16),de(74),de(70),de(73),de(70),de(0),de(1),de(1),de(0),Ee(1),Ee(1),de(0),de(0),(function(){Ee(65499),Ee(132),de(0);for(var lt=0;lt<64;lt++)de(a[lt]);de(1);for(var Ze=0;Ze<64;Ze++)de(o[Ze])})(),(function(lt,Ze){Ee(65472),Ee(17),de(8),Ee(Ze),Ee(lt),de(3),de(1),de(17),de(0),de(2),de(17),de(1),de(3),de(17),de(1)})(P.width,P.height),(function(){Ee(65476),Ee(418),de(0);for(var lt=0;lt<16;lt++)de(j[lt+1]);for(var Ze=0;Ze<=11;Ze++)de(N[Ze]);de(16);for(var Ut=0;Ut<16;Ut++)de(Z[Ut+1]);for(var Nt=0;Nt<=161;Nt++)de(I[Nt]);de(1);for(var St=0;St<16;St++)de(O[St+1]);for(var Ht=0;Ht<=11;Ht++)de(Y[Ht]);de(17);for(var Ot=0;Ot<16;Ot++)de(ee[Ot+1]);for(var tt=0;tt<=161;tt++)de(ce[tt])})(),Ee(65498),Ee(12),de(3),de(1),de(0),de(2),de(17),de(3),de(17),de(0),de(63),de(0);var te=0,ie=0,oe=0;_=0,x=7,this.encode.displayName="_encode_";for(var ve,xe,_e,Le,Oe,Je,qe,at,q,je=P.data,Tt=P.width,ut=P.height,Re=4*Tt,dt=0;dt<ut;){for(ve=0;ve<Re;){for(Oe=Re*dt+ve,qe=-1,at=0,q=0;q<64;q++)Je=Oe+(at=q>>3)*Re+(qe=4*(7&q)),dt+at>=ut&&(Je-=Re*(dt+1+at-ut)),ve+qe>=Re&&(Je-=ve+qe-Re+4),xe=je[Je++],_e=je[Je++],Le=je[Je++],H[q]=(fe[xe]+fe[_e+256|0]+fe[Le+512|0]>>16)-128,D[q]=(fe[xe+768|0]+fe[_e+1024|0]+fe[Le+1280|0]>>16)-128,k[q]=(fe[xe+1280|0]+fe[_e+1536|0]+fe[Le+1792|0]>>16)-128;te=Pe(H,l,te,e,r),ie=Pe(D,h,ie,A,n),oe=Pe(k,h,oe,A,n),ve+=32}dt+=8}if(x>=0){var $e=[];$e[1]=x+1,$e[0]=(1<<x+1)-1,Fe($e)}return Ee(65497),new Uint8Array(F)},t=t||50,(function(){for(var P=String.fromCharCode,J=0;J<256;J++)re[J]=P(J)})(),e=be(j,N),A=be(O,Y),r=be(Z,I),n=be(ee,ce),(function(){for(var P=1,J=2,te=1;te<=15;te++){for(var ie=P;ie<J;ie++)m[32767+ie]=te,v[32767+ie]=[],v[32767+ie][1]=te,v[32767+ie][0]=ie;for(var oe=-(J-1);oe<=-P;oe++)m[32767+oe]=te,v[32767+oe]=[],v[32767+oe][1]=te,v[32767+oe][0]=J-1+oe;P<<=1,J<<=1}})(),(function(){for(var P=0;P<256;P++)fe[P]=19595*P,fe[P+256|0]=38470*P,fe[P+512|0]=7471*P+32768,fe[P+768|0]=-11059*P,fe[P+1024|0]=-21709*P,fe[P+1280|0]=32768*P+8421375,fe[P+1536|0]=-27439*P,fe[P+1792|0]=-5329*P})(),Ue(t)}function Ca(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function tS(t){function e(N){if(!N)throw Error("assert :P")}function A(N,Z,I){for(var O=0;4>O;O++)if(N[Z+O]!=I.charCodeAt(O))return!0;return!1}function r(N,Z,I,O,Y){for(var ee=0;ee<Y;ee++)N[Z+ee]=I[O+ee]}function n(N,Z,I,O){for(var Y=0;Y<O;Y++)N[Z+Y]=I}function i(N){return new Int32Array(N)}function s(N,Z){for(var I=[],O=0;O<N;O++)I.push(new Z);return I}function a(N,Z){var I=[];return(function O(Y,ee,ce){for(var be=ce[ee],Fe=0;Fe<be&&(Y.push(ce.length>ee+1?[]:new Z),!(ce.length<ee+1));Fe++)O(Y[Fe],ee+1,ce)})(I,0,N),I}var o=function(){var N=this;function Z(u,w){for(var B=1<<w-1>>>0;u&B;)B>>>=1;return B?(u&B-1)+B:u}function I(u,w,B,E,Q){e(!(E%B));do u[w+(E-=B)]=Q;while(0<E)}function O(u,w,B,E,Q){if(e(2328>=Q),512>=Q)var T=i(512);else if((T=i(Q))==null)return 0;return(function(R,M,K,W,ae,pe){var $,le,we=M,Qe=1<<K,Ce=i(16),Te=i(16);for(e(ae!=0),e(W!=null),e(R!=null),e(0<K),le=0;le<ae;++le){if(15<W[le])return 0;++Ce[W[le]]}if(Ce[0]==ae)return 0;for(Te[1]=0,$=1;15>$;++$){if(Ce[$]>1<<$)return 0;Te[$+1]=Te[$]+Ce[$]}for(le=0;le<ae;++le)$=W[le],0<W[le]&&(pe[Te[$]++]=le);if(Te[15]==1)return(W=new Y).g=0,W.value=pe[0],I(R,we,1,Qe,W),Qe;var Ne,Ke=-1,De=Qe-1,Et=0,ct=1,Xt=1,gt=1<<K;for(le=0,$=1,ae=2;$<=K;++$,ae<<=1){if(ct+=Xt<<=1,0>(Xt-=Ce[$]))return 0;for(;0<Ce[$];--Ce[$])(W=new Y).g=$,W.value=pe[le++],I(R,we+Et,ae,gt,W),Et=Z(Et,$)}for($=K+1,ae=2;15>=$;++$,ae<<=1){if(ct+=Xt<<=1,0>(Xt-=Ce[$]))return 0;for(;0<Ce[$];--Ce[$]){if(W=new Y,(Et&De)!=Ke){for(we+=gt,Ne=1<<(Ke=$)-K;15>Ke&&!(0>=(Ne-=Ce[Ke]));)++Ke,Ne<<=1;Qe+=gt=1<<(Ne=Ke-K),R[M+(Ke=Et&De)].g=Ne+K,R[M+Ke].value=we-M-Ke}W.g=$-K,W.value=pe[le++],I(R,we+(Et>>K),ae,gt,W),Et=Z(Et,$)}}return ct!=2*Te[15]-1?0:Qe})(u,w,B,E,Q,T)}function Y(){this.value=this.g=0}function ee(){this.value=this.g=0}function ce(){this.G=s(5,Y),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(hs,ee)}function be(u,w,B,E){e(u!=null),e(w!=null),e(2147483648>E),u.Ca=254,u.I=0,u.b=-8,u.Ka=0,u.oa=w,u.pa=B,u.Jd=w,u.Yc=B+E,u.Zc=4<=E?B+E-4+1:B,xe(u)}function Fe(u,w){for(var B=0;0<w--;)B|=Le(u,128)<<w;return B}function de(u,w){var B=Fe(u,w);return _e(u)?-B:B}function Ee(u,w,B,E){var Q,T=0;for(e(u!=null),e(w!=null),e(4294967288>E),u.Sb=E,u.Ra=0,u.u=0,u.h=0,4<E&&(E=4),Q=0;Q<E;++Q)T+=w[B+Q]<<8*Q;u.Ra=T,u.bb=E,u.oa=w,u.pa=B}function Pe(u){for(;8<=u.u&&u.bb<u.Sb;)u.Ra>>>=8,u.Ra+=u.oa[u.pa+u.bb]<<en-8>>>0,++u.bb,u.u-=8;ie(u)&&(u.h=1,u.u=0)}function Ue(u,w){if(e(0<=w),!u.h&&w<=js){var B=te(u)&Pa[w];return u.u+=w,Pe(u),B}return u.h=1,u.u=0}function P(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function J(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function te(u){return u.Ra>>>(u.u&en-1)>>>0}function ie(u){return e(u.bb<=u.Sb),u.h||u.bb==u.Sb&&u.u>en}function oe(u,w){u.u=w,u.h=ie(u)}function ve(u){u.u>=qr&&(e(u.u>=qr),Pe(u))}function xe(u){e(u!=null&&u.oa!=null),u.pa<u.Zc?(u.I=(u.oa[u.pa++]|u.I<<8)>>>0,u.b+=8):(e(u!=null&&u.oa!=null),u.pa<u.Yc?(u.b+=8,u.I=u.oa[u.pa++]|u.I<<8):u.Ka?u.b=0:(u.I<<=8,u.b+=8,u.Ka=1))}function _e(u){return Fe(u,1)}function Le(u,w){var B=u.Ca;0>u.b&&xe(u);var E=u.b,Q=B*w>>>8,T=(u.I>>>E>Q)+0;for(T?(B-=Q,u.I-=Q+1<<E>>>0):B=Q+1,E=B,Q=0;256<=E;)Q+=8,E>>=8;return E=7^Q+ds[E],u.b-=E,u.Ca=(B<<E)-1,T}function Oe(u,w,B){u[w+0]=B>>24&255,u[w+1]=B>>16&255,u[w+2]=B>>8&255,u[w+3]=255&B}function Je(u,w){return u[w+0]|u[w+1]<<8}function qe(u,w){return Je(u,w)|u[w+2]<<16}function at(u,w){return Je(u,w)|Je(u,w+2)<<16}function q(u,w){var B=1<<w;return e(u!=null),e(0<w),u.X=i(B),u.X==null?0:(u.Mb=32-w,u.Xa=w,1)}function je(u,w){e(u!=null),e(w!=null),e(u.Xa==w.Xa),r(w.X,0,u.X,0,1<<w.Xa)}function Tt(){this.X=[],this.Xa=this.Mb=0}function ut(u,w,B,E){e(B!=null),e(E!=null);var Q=B[0],T=E[0];return Q==0&&(Q=(u*T+w/2)/w),T==0&&(T=(w*Q+u/2)/u),0>=Q||0>=T?0:(B[0]=Q,E[0]=T,1)}function Re(u,w){return u+(1<<w)-1>>>w}function dt(u,w){return((4278255360&u)+(4278255360&w)>>>0&4278255360)+((16711935&u)+(16711935&w)>>>0&16711935)>>>0}function $e(u,w){N[w]=function(B,E,Q,T,R,M,K){var W;for(W=0;W<R;++W){var ae=N[u](M[K+W-1],Q,T+W);M[K+W]=dt(B[E+W],ae)}}}function lt(){this.ud=this.hd=this.jd=0}function Ze(u,w){return((4278124286&(u^w))>>>1)+(u&w)>>>0}function Ut(u){return 0<=u&&256>u?u:0>u?0:255<u?255:void 0}function Nt(u,w){return Ut(u+(u-w+.5>>1))}function St(u,w,B){return Math.abs(w-B)-Math.abs(u-B)}function Ht(u,w,B,E,Q,T,R){for(E=T[R-1],B=0;B<Q;++B)T[R+B]=E=dt(u[w+B],E)}function Ot(u,w,B,E,Q){var T;for(T=0;T<B;++T){var R=u[w+T],M=R>>8&255,K=16711935&(K=(K=16711935&R)+((M<<16)+M));E[Q+T]=(4278255360&R)+K>>>0}}function tt(u,w){w.jd=255&u,w.hd=u>>8&255,w.ud=u>>16&255}function yt(u,w,B,E,Q,T){var R;for(R=0;R<E;++R){var M=w[B+R],K=M>>>8,W=M,ae=255&(ae=(ae=M>>>16)+((u.jd<<24>>24)*(K<<24>>24)>>>5));W=255&(W=(W+=(u.hd<<24>>24)*(K<<24>>24)>>>5)+((u.ud<<24>>24)*(ae<<24>>24)>>>5)),Q[T+R]=(4278255360&M)+(ae<<16)+W}}function Xe(u,w,B,E,Q){N[w]=function(T,R,M,K,W,ae,pe,$,le){for(K=pe;K<$;++K)for(pe=0;pe<le;++pe)W[ae++]=Q(M[E(T[R++])])},N[u]=function(T,R,M,K,W,ae,pe){var $=8>>T.b,le=T.Ea,we=T.K[0],Qe=T.w;if(8>$)for(T=(1<<T.b)-1,Qe=(1<<$)-1;R<M;++R){var Ce,Te=0;for(Ce=0;Ce<le;++Ce)Ce&T||(Te=E(K[W++])),ae[pe++]=Q(we[Te&Qe]),Te>>=$}else N["VP8LMapColor"+B](K,W,we,Qe,ae,pe,R,M,le)}}function aA(u,w,B,E,Q){for(B=w+B;w<B;){var T=u[w++];E[Q++]=T>>16&255,E[Q++]=T>>8&255,E[Q++]=255&T}}function Gt(u,w,B,E,Q){for(B=w+B;w<B;){var T=u[w++];E[Q++]=T>>16&255,E[Q++]=T>>8&255,E[Q++]=255&T,E[Q++]=T>>24&255}}function It(u,w,B,E,Q){for(B=w+B;w<B;){var T=(R=u[w++])>>16&240|R>>12&15,R=240&R|R>>28&15;E[Q++]=T,E[Q++]=R}}function Rt(u,w,B,E,Q){for(B=w+B;w<B;){var T=(R=u[w++])>>16&248|R>>13&7,R=R>>5&224|R>>3&31;E[Q++]=T,E[Q++]=R}}function tA(u,w,B,E,Q){for(B=w+B;w<B;){var T=u[w++];E[Q++]=255&T,E[Q++]=T>>8&255,E[Q++]=T>>16&255}}function mt(u,w,B,E,Q,T){if(T==0)for(B=w+B;w<B;)Oe(E,((T=u[w++])[0]>>24|T[1]>>8&65280|T[2]<<8&16711680|T[3]<<24)>>>0),Q+=32;else r(E,Q,u,w,B)}function Jt(u,w){N[w][0]=N[u+"0"],N[w][1]=N[u+"1"],N[w][2]=N[u+"2"],N[w][3]=N[u+"3"],N[w][4]=N[u+"4"],N[w][5]=N[u+"5"],N[w][6]=N[u+"6"],N[w][7]=N[u+"7"],N[w][8]=N[u+"8"],N[w][9]=N[u+"9"],N[w][10]=N[u+"10"],N[w][11]=N[u+"11"],N[w][12]=N[u+"12"],N[w][13]=N[u+"13"],N[w][14]=N[u+"0"],N[w][15]=N[u+"0"]}function nt(u){return u==uu||u==$s||u==Il||u==fu}function xt(){this.eb=[],this.size=this.A=this.fb=0}function fA(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function bt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new xt,this.f.kb=new fA,this.sd=null}function Ct(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function sA(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ln(u){return alert("todo:WebPSamplerProcessPlane"),u.T}function qA(u,w){var B=u.T,E=w.ba.f.RGBA,Q=E.eb,T=E.fb+u.ka*E.A,R=Cn[w.ba.S],M=u.y,K=u.O,W=u.f,ae=u.N,pe=u.ea,$=u.W,le=w.cc,we=w.dc,Qe=w.Mc,Ce=w.Nc,Te=u.ka,Ne=u.ka+u.T,Ke=u.U,De=Ke+1>>1;for(Te==0?R(M,K,null,null,W,ae,pe,$,W,ae,pe,$,Q,T,null,null,Ke):(R(w.ec,w.fc,M,K,le,we,Qe,Ce,W,ae,pe,$,Q,T-E.A,Q,T,Ke),++B);Te+2<Ne;Te+=2)le=W,we=ae,Qe=pe,Ce=$,ae+=u.Rc,$+=u.Rc,T+=2*E.A,R(M,(K+=2*u.fa)-u.fa,M,K,le,we,Qe,Ce,W,ae,pe,$,Q,T-E.A,Q,T,Ke);return K+=u.fa,u.j+Ne<u.o?(r(w.ec,w.fc,M,K,Ke),r(w.cc,w.dc,W,ae,De),r(w.Mc,w.Nc,pe,$,De),B--):1&Ne||R(M,K,null,null,W,ae,pe,$,W,ae,pe,$,Q,T+E.A,null,null,Ke),B}function WA(u,w,B){var E=u.F,Q=[u.J];if(E!=null){var T=u.U,R=w.ba.S,M=R==Ql||R==Il;w=w.ba.f.RGBA;var K=[0],W=u.ka;K[0]=u.T,u.Kb&&(W==0?--K[0]:(--W,Q[0]-=u.width),u.j+u.ka+u.T==u.o&&(K[0]=u.o-u.j-W));var ae=w.eb;W=w.fb+W*w.A,u=To(E,Q[0],u.width,T,K,ae,W+(M?0:3),w.A),e(B==K),u&&nt(R)&&Ws(ae,W,M,T,K,w.A)}return 0}function Sr(u){var w=u.ma,B=w.ba.S,E=11>B,Q=B==Sl||B==ws||B==Ql||B==cu||B==12||nt(B);if(w.memory=null,w.Ib=null,w.Jb=null,w.Nd=null,!mr(w.Oa,u,Q?11:12))return 0;if(Q&&nt(B)&&Fi(),u.da)alert("todo:use_scaling");else{if(E){if(w.Ib=ln,u.Kb){if(B=u.U+1>>1,w.memory=i(u.U+2*B),w.memory==null)return 0;w.ec=w.memory,w.fc=0,w.cc=w.ec,w.dc=w.fc+u.U,w.Mc=w.cc,w.Nc=w.dc+B,w.Ib=qA,Fi()}}else alert("todo:EmitYUV");Q&&(w.Jb=WA,E&&VA())}if(E&&!yh){for(u=0;256>u;++u)n0[u]=89858*(u-128)+Nl>>vs,s0[u]=-22014*(u-128)+Nl,a0[u]=-45773*(u-128),i0[u]=113618*(u-128)+Nl>>vs;for(u=Po;u<pu;++u)w=76283*(u-16)+Nl>>vs,o0[u-Po]=Dr(w,255),l0[u-Po]=Dr(w+8>>4,15);yh=1}return 1}function _t(u){var w=u.ma,B=u.U,E=u.T;return e(!(1&u.ka)),0>=B||0>=E?0:(B=w.Ib(u,w),w.Jb!=null&&w.Jb(u,w,B),w.Dc+=B,1)}function On(u){u.ma.memory=null}function ti(u,w,B,E){return Ue(u,8)!=47?0:(w[0]=Ue(u,14)+1,B[0]=Ue(u,14)+1,E[0]=Ue(u,1),Ue(u,3)!=0?0:!u.h)}function Lt(u,w){if(4>u)return u+1;var B=u-2>>1;return(2+(1&u)<<B)+Ue(w,B)+1}function vr(u,w){return 120<w?w-120:1<=(B=((B=zg[w-1])>>4)*u+(8-(15&B)))?B:1;var B}function IA(u,w,B){var E=te(B),Q=u[w+=255&E].g-8;return 0<Q&&(oe(B,B.u+8),E=te(B),w+=u[w].value,w+=E&(1<<Q)-1),oe(B,B.u+u[w].g),u[w].value}function mA(u,w,B){return B.g+=u.g,B.value+=u.value<<w>>>0,e(8>=B.g),u.g}function rr(u,w,B){var E=u.xc;return e((w=E==0?0:u.vc[u.md*(B>>E)+(w>>E)])<u.Wb),u.Ya[w]}function Bn(u,w,B,E){var Q=u.ab,T=u.c*w,R=u.C;w=R+w;var M=B,K=E;for(E=u.Ta,B=u.Ua;0<Q--;){var W=u.gc[Q],ae=R,pe=w,$=M,le=K,we=(K=E,M=B,W.Ea);switch(e(ae<pe),e(pe<=W.nc),W.hc){case 2:Mn($,le,(pe-ae)*we,K,M);break;case 0:var Qe=ae,Ce=pe,Te=K,Ne=M,Ke=(gt=W).Ea;Qe==0&&(sa($,le,null,null,1,Te,Ne),Ht($,le+1,0,0,Ke-1,Te,Ne+1),le+=Ke,Ne+=Ke,++Qe);for(var De=1<<gt.b,Et=De-1,ct=Re(Ke,gt.b),Xt=gt.K,gt=gt.w+(Qe>>gt.b)*ct;Qe<Ce;){var He=Xt,Br=gt,Yt=1;for(yr($,le,Te,Ne-Ke,1,Te,Ne);Yt<Ke;){var ht=(Yt&~Et)+De;ht>Ke&&(ht=Ke),(0,oi[He[Br++]>>8&15])($,le+ +Yt,Te,Ne+Yt-Ke,ht-Yt,Te,Ne+Yt),Yt=ht}le+=Ke,Ne+=Ke,++Qe&Et||(gt+=ct)}pe!=W.nc&&r(K,M-we,K,M+(pe-ae-1)*we,we);break;case 1:for(we=$,Ce=le,Ke=($=W.Ea)-(Ne=$&~(Te=(le=1<<W.b)-1)),Qe=Re($,W.b),De=W.K,W=W.w+(ae>>W.b)*Qe;ae<pe;){for(Et=De,ct=W,Xt=new lt,gt=Ce+Ne,He=Ce+$;Ce<gt;)tt(Et[ct++],Xt),oa(Xt,we,Ce,le,K,M),Ce+=le,M+=le;Ce<He&&(tt(Et[ct++],Xt),oa(Xt,we,Ce,Ke,K,M),Ce+=Ke,M+=Ke),++ae&Te||(W+=Qe)}break;case 3:if($==K&&le==M&&0<W.b){for(Ce=K,$=we=M+(pe-ae)*we-(Ne=(pe-ae)*Re(W.Ea,W.b)),le=K,Te=M,Qe=[],Ne=(Ke=Ne)-1;0<=Ne;--Ne)Qe[Ne]=le[Te+Ne];for(Ne=Ke-1;0<=Ne;--Ne)Ce[$+Ne]=Qe[Ne];bn(W,ae,pe,K,we,K,M)}else bn(W,ae,pe,$,le,K,M)}M=E,K=B}K!=B&&r(E,B,M,K,T)}function yi(u,w){var B=u.V,E=u.Ba+u.c*u.C,Q=w-u.C;if(e(w<=u.l.o),e(16>=Q),0<Q){var T=u.l,R=u.Ta,M=u.Ua,K=T.width;if(Bn(u,Q,B,E),Q=M=[M],e((B=u.C)<(E=w)),e(T.v<T.va),E>T.o&&(E=T.o),B<T.j){var W=T.j-B;B=T.j,Q[0]+=W*K}if(B>=E?B=0:(Q[0]+=4*T.v,T.ka=B-T.j,T.U=T.va-T.v,T.T=E-B,B=1),B){if(M=M[0],11>(B=u.ca).S){var ae=B.f.RGBA,pe=(E=B.S,Q=T.U,T=T.T,W=ae.eb,ae.A),$=T;for(ae=ae.fb+u.Ma*ae.A;0<$--;){var le=R,we=M,Qe=Q,Ce=W,Te=ae;switch(E){case ua:Vs(le,we,Qe,Ce,Te);break;case Sl:Io(le,we,Qe,Ce,Te);break;case uu:Io(le,we,Qe,Ce,Te),Ws(Ce,Te,0,Qe,1,0);break;case ch:ps(le,we,Qe,Ce,Te);break;case ws:mt(le,we,Qe,Ce,Te,1);break;case $s:mt(le,we,Qe,Ce,Te,1),Ws(Ce,Te,0,Qe,1,0);break;case Ql:mt(le,we,Qe,Ce,Te,0);break;case Il:mt(le,we,Qe,Ce,Te,0),Ws(Ce,Te,1,Qe,1,0);break;case cu:Gi(le,we,Qe,Ce,Te);break;case fu:Gi(le,we,Qe,Ce,Te),ih(Ce,Te,Qe,1,0);break;case uh:fn(le,we,Qe,Ce,Te);break;default:e(0)}M+=K,ae+=pe}u.Ma+=T}else alert("todo:EmitRescaledRowsYUVA");e(u.Ma<=B.height)}}u.C=w,e(u.C<=u.i)}function Pn(u){var w;if(0<u.ua)return 0;for(w=0;w<u.Wb;++w){var B=u.Ya[w].G,E=u.Ya[w].H;if(0<B[1][E[1]+0].g||0<B[2][E[2]+0].g||0<B[3][E[3]+0].g)return 0}return 1}function oA(u,w,B,E,Q,T){if(u.Z!=0){var R=u.qd,M=u.rd;for(e(ka[u.Z]!=null);w<B;++w)ka[u.Z](R,M,E,Q,E,Q,T),R=E,M=Q,Q+=T;u.qd=R,u.rd=M}}function Qr(u,w){var B=u.l.ma,E=B.Z==0||B.Z==1?u.l.j:u.C;if(E=u.C<E?E:u.C,e(w<=u.l.o),w>E){var Q=u.l.width,T=B.ca,R=B.tb+Q*E,M=u.V,K=u.Ba+u.c*E,W=u.gc;e(u.ab==1),e(W[0].hc==3),Vi(W[0],E,w,M,K,T,R),oA(B,E,w,T,R,Q)}u.C=u.Ma=w}function Rn(u,w,B,E,Q,T,R){var M=u.$/E,K=u.$%E,W=u.m,ae=u.s,pe=B+u.$,$=pe;Q=B+E*Q;var le=B+E*T,we=280+ae.ua,Qe=u.Pb?M:16777216,Ce=0<ae.ua?ae.Wa:null,Te=ae.wc,Ne=pe<le?rr(ae,K,M):null;e(u.C<T),e(le<=Q);var Ke=!1;e:for(;;){for(;Ke||pe<le;){var De=0;if(M>=Qe){var Et=pe-B;e((Qe=u).Pb),Qe.wd=Qe.m,Qe.xd=Et,0<Qe.s.ua&&je(Qe.s.Wa,Qe.s.vb),Qe=M+Ll}if(K&Te||(Ne=rr(ae,K,M)),e(Ne!=null),Ne.Qb&&(w[pe]=Ne.qb,Ke=!0),!Ke)if(ve(W),Ne.jc){De=W,Et=w;var ct=pe,Xt=Ne.pd[te(De)&hs-1];e(Ne.jc),256>Xt.g?(oe(De,De.u+Xt.g),Et[ct]=Xt.value,De=0):(oe(De,De.u+Xt.g-256),e(256<=Xt.value),De=Xt.value),De==0&&(Ke=!0)}else De=IA(Ne.G[0],Ne.H[0],W);if(W.h)break;if(Ke||256>De){if(!Ke)if(Ne.nd)w[pe]=(Ne.qb|De<<8)>>>0;else{if(ve(W),Ke=IA(Ne.G[1],Ne.H[1],W),ve(W),Et=IA(Ne.G[2],Ne.H[2],W),ct=IA(Ne.G[3],Ne.H[3],W),W.h)break;w[pe]=(ct<<24|Ke<<16|De<<8|Et)>>>0}if(Ke=!1,++pe,++K>=E&&(K=0,++M,R!=null&&M<=T&&!(M%16)&&R(u,M),Ce!=null))for(;$<pe;)De=w[$++],Ce.X[(506832829*De&4294967295)>>>Ce.Mb]=De}else if(280>De){if(De=Lt(De-256,W),Et=IA(Ne.G[4],Ne.H[4],W),ve(W),Et=vr(E,Et=Lt(Et,W)),W.h)break;if(pe-B<Et||Q-pe<De)break e;for(ct=0;ct<De;++ct)w[pe+ct]=w[pe+ct-Et];for(pe+=De,K+=De;K>=E;)K-=E,++M,R!=null&&M<=T&&!(M%16)&&R(u,M);if(e(pe<=Q),K&Te&&(Ne=rr(ae,K,M)),Ce!=null)for(;$<pe;)De=w[$++],Ce.X[(506832829*De&4294967295)>>>Ce.Mb]=De}else{if(!(De<we))break e;for(Ke=De-280,e(Ce!=null);$<pe;)De=w[$++],Ce.X[(506832829*De&4294967295)>>>Ce.Mb]=De;De=pe,e(!(Ke>>>(Et=Ce).Xa)),w[De]=Et.X[Ke],Ke=!0}Ke||e(W.h==ie(W))}if(u.Pb&&W.h&&pe<Q)e(u.m.h),u.a=5,u.m=u.wd,u.$=u.xd,0<u.s.ua&&je(u.s.vb,u.s.Wa);else{if(W.h)break e;R?.(u,M>T?T:M),u.a=0,u.$=pe-B}return 1}return u.a=3,0}function kr(u){e(u!=null),u.vc=null,u.yc=null,u.Ya=null;var w=u.Wa;w!=null&&(w.X=null),u.vb=null,e(u!=null)}function Ai(){var u=new pt;return u==null?null:(u.a=0,u.xb=dh,Jt("Predictor","VP8LPredictors"),Jt("Predictor","VP8LPredictors_C"),Jt("PredictorAdd","VP8LPredictorsAdd"),Jt("PredictorAdd","VP8LPredictorsAdd_C"),Mn=Ot,oa=yt,Vs=aA,Io=Gt,Gi=It,fn=Rt,ps=tA,N.VP8LMapColor32b=nA,N.VP8LMapColor8b=_i,u)}function kn(u,w,B,E,Q){var T=1,R=[u],M=[w],K=E.m,W=E.s,ae=null,pe=0;e:for(;;){if(B)for(;T&&Ue(K,1);){var $=R,le=M,we=E,Qe=1,Ce=we.m,Te=we.gc[we.ab],Ne=Ue(Ce,2);if(we.Oc&1<<Ne)T=0;else{switch(we.Oc|=1<<Ne,Te.hc=Ne,Te.Ea=$[0],Te.nc=le[0],Te.K=[null],++we.ab,e(4>=we.ab),Ne){case 0:case 1:Te.b=Ue(Ce,3)+2,Qe=kn(Re(Te.Ea,Te.b),Re(Te.nc,Te.b),0,we,Te.K),Te.K=Te.K[0];break;case 3:var Ke,De=Ue(Ce,8)+1,Et=16<De?0:4<De?1:2<De?2:3;if($[0]=Re(Te.Ea,Et),Te.b=Et,Ke=Qe=kn(De,1,0,we,Te.K)){var ct,Xt=De,gt=Te,He=1<<(8>>gt.b),Br=i(He);if(Br==null)Ke=0;else{var Yt=gt.K[0],ht=gt.w;for(Br[0]=gt.K[0][0],ct=1;ct<1*Xt;++ct)Br[ct]=dt(Yt[ht+ct],Br[ct-1]);for(;ct<4*He;++ct)Br[ct]=0;gt.K[0]=null,gt.K[0]=Br,Ke=1}}Qe=Ke;break;case 2:break;default:e(0)}T=Qe}}if(R=R[0],M=M[0],T&&Ue(K,1)&&!(T=1<=(pe=Ue(K,4))&&11>=pe)){E.a=3;break e}var Ge;if(Ge=T)t:{var ir,jt,AA,SA=E,Kr=R,hn=M,JA=pe,ZA=B,jr=SA.m,ar=SA.s,hA=[null],bA=1,er=0,vA=Wg[JA];A:for(;;){if(ZA&&Ue(jr,1)){var Vr=Ue(jr,3)+2,Ii=Re(Kr,Vr),sr=Re(hn,Vr),En=Ii*sr;if(!kn(Ii,sr,0,SA,hA))break A;for(hA=hA[0],ar.xc=Vr,ir=0;ir<En;++ir){var NA=hA[ir]>>8&65535;hA[ir]=NA,NA>=bA&&(bA=NA+1)}}if(jr.h)break A;for(jt=0;5>jt;++jt){var br=No[jt];!jt&&0<JA&&(br+=1<<JA),er<br&&(er=br)}var Kn=s(bA*vA,Y),dn=bA,Fn=s(dn,ce);if(Fn==null)var jn=null;else e(65536>=dn),jn=Fn;var Un=i(er);if(jn==null||Un==null||Kn==null){SA.a=1;break A}var Vn=Kn;for(ir=AA=0;ir<bA;++ir){var OA=jn[ir],Gn=OA.G,xn=OA.H,ms=0,Li=1,Cr=0;for(jt=0;5>jt;++jt){br=No[jt],Gn[jt]=Vn,xn[jt]=AA,!jt&&0<JA&&(br+=1<<JA);n:{var Ro,Pl=br,Rl=SA,Ys=Un,wu=Vn,vu=AA,kl=0,ha=Rl.m,Bh=Ue(ha,1);if(n(Ys,0,0,Pl),Bh){var bh=Ue(ha,1)+1,mu=Ue(ha,1),Ch=Ue(ha,mu==0?1:8);Ys[Ch]=1,bh==2&&(Ys[Ch=Ue(ha,8)]=1);var Dl=1}else{var Eh=i(19),zn=Ue(ha,4)+4;if(19<zn){Rl.a=3;var Js=0;break n}for(Ro=0;Ro<zn;++Ro)Eh[Gg[Ro]]=Ue(ha,3);var yu=void 0,ko=void 0,Fh=Rl,f0=Eh,Hl=Pl,Uh=Ys,Bu=0,Da=Fh.m,xh=8,bu=s(128,Y);r:for(;O(bu,0,7,f0,19);){if(Ue(Da,1)){var h0=2+2*Ue(Da,3);if((yu=2+Ue(Da,h0))>Hl)break r}else yu=Hl;for(ko=0;ko<Hl&&yu--;){ve(Da);var Ml=bu[0+(127&te(Da))];oe(Da,Da.u+Ml.g);var ys=Ml.value;if(16>ys)Uh[ko++]=ys,ys!=0&&(xh=ys);else{var Gr=ys==16,Zs=ys-16,d0=jg[Zs],_h=Ue(Da,Kg[Zs])+d0;if(ko+_h>Hl)break r;for(var Sh=Gr?xh:0;0<_h--;)Uh[ko++]=Sh}}Bu=1;break r}Bu||(Fh.a=3),Dl=Bu}(Dl=Dl&&!ha.h)&&(kl=O(wu,vu,8,Ys,Pl)),Dl&&kl!=0?Js=kl:(Rl.a=3,Js=0)}if(Js==0)break A;if(Li&&Vg[jt]==1&&(Li=Vn[AA].g==0),ms+=Vn[AA].g,AA+=Js,3>=jt){var Bs,Cu=Un[0];for(Bs=1;Bs<br;++Bs)Un[Bs]>Cu&&(Cu=Un[Bs]);Cr+=Cu}}if(OA.nd=Li,OA.Qb=0,Li&&(OA.qb=(Gn[3][xn[3]+0].value<<24|Gn[1][xn[1]+0].value<<16|Gn[2][xn[2]+0].value)>>>0,ms==0&&256>Gn[0][xn[0]+0].value&&(OA.Qb=1,OA.qb+=Gn[0][xn[0]+0].value<<8)),OA.jc=!OA.Qb&&6>Cr,OA.jc){var ql,da=OA;for(ql=0;ql<hs;++ql){var Ha=ql,Ma=da.pd[Ha],Kl=da.G[0][da.H[0]+Ha];256<=Kl.value?(Ma.g=Kl.g+256,Ma.value=Kl.value):(Ma.g=0,Ma.value=0,Ha>>=mA(Kl,8,Ma),Ha>>=mA(da.G[1][da.H[1]+Ha],16,Ma),Ha>>=mA(da.G[2][da.H[2]+Ha],0,Ma),mA(da.G[3][da.H[3]+Ha],24,Ma))}}}ar.vc=hA,ar.Wb=bA,ar.Ya=jn,ar.yc=Kn,Ge=1;break t}Ge=0}if(!(T=Ge)){E.a=3;break e}if(0<pe){if(W.ua=1<<pe,!q(W.Wa,pe)){E.a=1,T=0;break e}}else W.ua=0;var Eu=E,Qh=R,Ih=M,jl=Eu.s,Vl=jl.xc;if(Eu.c=Qh,Eu.i=Ih,jl.md=Re(Qh,Vl),jl.wc=Vl==0?-1:(1<<Vl)-1,B){E.xb=hh;break e}if((ae=i(R*M))==null){E.a=1,T=0;break e}T=(T=Rn(E,ae,0,R,M,M,null))&&!K.h;break e}return T?(Q!=null?Q[0]=ae:(e(ae==null),e(B)),E.$=0,B||kr(W)):kr(W),T}function Di(u,w){var B=u.c*u.i,E=B+w+16*w;return e(u.c<=w),u.V=i(E),u.V==null?(u.Ta=null,u.Ua=0,u.a=1,0):(u.Ta=u.V,u.Ua=u.Ba+B+w,1)}function Ua(u,w){var B=u.C,E=w-B,Q=u.V,T=u.Ba+u.c*B;for(e(w<=u.l.o);0<E;){var R=16<E?16:E,M=u.l.ma,K=u.l.width,W=K*R,ae=M.ca,pe=M.tb+K*B,$=u.Ta,le=u.Ua;Bn(u,R,Q,T),ah($,le,ae,pe,W),oA(M,B,B+R,ae,pe,K),E-=R,Q+=R*u.c,B+=R}e(B==w),u.C=u.Ma=w}function xa(){this.ub=this.yd=this.td=this.Rb=0}function _a(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Uo(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Ir(){this.Yb=(function(){var u=[];return(function w(B,E,Q){for(var T=Q[E],R=0;R<T&&(B.push(Q.length>E+1?[]:0),!(Q.length<E+1));R++)w(B[R],E+1,Q)})(u,0,[3,11]),u})()}function Sa(){this.jb=i(3),this.Wc=a([4,8],Ir),this.Xc=a([4,17],Ir)}function cn(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function un(){this.ld=this.La=this.dd=this.tc=0}function Bi(){this.Na=this.la=0}function is(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Qa(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function ri(){this.uc=this.M=this.Nb=0,this.wa=Array(new un),this.Y=0,this.ya=Array(new Qa),this.aa=0,this.l=new ii}function ni(){this.y=i(16),this.f=i(8),this.ea=i(8)}function ra(){this.cb=this.a=0,this.sc="",this.m=new P,this.Od=new xa,this.Kc=new _a,this.ed=new cn,this.Qa=new Uo,this.Ic=this.$c=this.Aa=0,this.D=new ri,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,P),this.ia=0,this.pb=s(4,is),this.Pa=new Sa,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ni),this.Hd=0,this.rb=Array(new Bi),this.sb=0,this.wa=Array(new un),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Qa),this.L=this.aa=0,this.gd=a([4,2],un),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Dr(u,w){return 0>u?0:u>w?w:u}function ii(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function $r(){var u=new ra;return u!=null&&(u.a=0,u.sc="OK",u.cb=0,u.Xb=0,Oo||(Oo=$A)),u}function DA(u,w,B){return u.a==0&&(u.a=w,u.sc=B,u.cb=0),0}function Hi(u,w,B){return 3<=B&&u[w+0]==157&&u[w+1]==1&&u[w+2]==42}function Dn(u,w){if(u==null)return 0;if(u.a=0,u.sc="OK",w==null)return DA(u,2,"null VP8Io passed to VP8GetHeaders()");var B=w.data,E=w.w,Q=w.ha;if(4>Q)return DA(u,7,"Truncated header.");var T=B[E+0]|B[E+1]<<8|B[E+2]<<16,R=u.Od;if(R.Rb=!(1&T),R.td=T>>1&7,R.yd=T>>4&1,R.ub=T>>5,3<R.td)return DA(u,3,"Incorrect keyframe parameters.");if(!R.yd)return DA(u,4,"Frame not displayable.");E+=3,Q-=3;var M=u.Kc;if(R.Rb){if(7>Q)return DA(u,7,"cannot parse picture header");if(!Hi(B,E,Q))return DA(u,3,"Bad code word");M.c=16383&(B[E+4]<<8|B[E+3]),M.Td=B[E+4]>>6,M.i=16383&(B[E+6]<<8|B[E+5]),M.Ud=B[E+6]>>6,E+=7,Q-=7,u.za=M.c+15>>4,u.Ub=M.i+15>>4,w.width=M.c,w.height=M.i,w.Da=0,w.j=0,w.v=0,w.va=w.width,w.o=w.height,w.da=0,w.ib=w.width,w.hb=w.height,w.U=w.width,w.T=w.height,n((T=u.Pa).jb,0,255,T.jb.length),e((T=u.Qa)!=null),T.Cb=0,T.Bb=0,T.Fb=1,n(T.Zb,0,0,T.Zb.length),n(T.Lb,0,0,T.Lb)}if(R.ub>Q)return DA(u,7,"bad partition length");be(T=u.m,B,E,R.ub),E+=R.ub,Q-=R.ub,R.Rb&&(M.Ld=_e(T),M.Kd=_e(T)),M=u.Qa;var K,W=u.Pa;if(e(T!=null),e(M!=null),M.Cb=_e(T),M.Cb){if(M.Bb=_e(T),_e(T)){for(M.Fb=_e(T),K=0;4>K;++K)M.Zb[K]=_e(T)?de(T,7):0;for(K=0;4>K;++K)M.Lb[K]=_e(T)?de(T,6):0}if(M.Bb)for(K=0;3>K;++K)W.jb[K]=_e(T)?Fe(T,8):255}else M.Bb=0;if(T.Ka)return DA(u,3,"cannot parse segment header");if((M=u.ed).zd=_e(T),M.Tb=Fe(T,6),M.wb=Fe(T,3),M.Pc=_e(T),M.Pc&&_e(T)){for(W=0;4>W;++W)_e(T)&&(M.vd[W]=de(T,6));for(W=0;4>W;++W)_e(T)&&(M.od[W]=de(T,6))}if(u.L=M.Tb==0?0:M.zd?1:2,T.Ka)return DA(u,3,"cannot parse filter header");var ae=Q;if(Q=K=E,E=K+ae,M=ae,u.Xb=(1<<Fe(u.m,2))-1,ae<3*(W=u.Xb))B=7;else{for(K+=3*W,M-=3*W,ae=0;ae<W;++ae){var pe=B[Q+0]|B[Q+1]<<8|B[Q+2]<<16;pe>M&&(pe=M),be(u.Jc[+ae],B,K,pe),K+=pe,M-=pe,Q+=3}be(u.Jc[+W],B,K,M),B=K<E?0:5}if(B!=0)return DA(u,B,"cannot parse partitions");for(B=Fe(K=u.m,7),Q=_e(K)?de(K,4):0,E=_e(K)?de(K,4):0,M=_e(K)?de(K,4):0,W=_e(K)?de(K,4):0,K=_e(K)?de(K,4):0,ae=u.Qa,pe=0;4>pe;++pe){if(ae.Cb){var $=ae.Zb[pe];ae.Fb||($+=B)}else{if(0<pe){u.pb[pe]=u.pb[0];continue}$=B}var le=u.pb[pe];le.Sc[0]=hu[Dr($+Q,127)],le.Sc[1]=du[Dr($+0,127)],le.Eb[0]=2*hu[Dr($+E,127)],le.Eb[1]=101581*du[Dr($+M,127)]>>16,8>le.Eb[1]&&(le.Eb[1]=8),le.Qc[0]=hu[Dr($+W,117)],le.Qc[1]=du[Dr($+K,127)],le.lc=$+K}if(!R.Rb)return DA(u,4,"Not a key frame.");for(_e(T),R=u.Pa,B=0;4>B;++B){for(Q=0;8>Q;++Q)for(E=0;3>E;++E)for(M=0;11>M;++M)W=Le(T,Zg[B][Q][E][M])?Fe(T,8):Yg[B][Q][E][M],R.Wc[B][Q].Yb[E][M]=W;for(Q=0;17>Q;++Q)R.Xc[B][Q]=R.Wc[B][e0[Q]]}return u.kc=_e(T),u.kc&&(u.Bd=Fe(T,8)),u.cb=1}function $A(u,w,B,E,Q,T,R){var M=w[Q].Yb[B];for(B=0;16>Q;++Q){if(!Le(u,M[B+0]))return Q;for(;!Le(u,M[B+1]);)if(M=w[++Q].Yb[0],B=0,Q==16)return 16;var K=w[Q+1].Yb;if(Le(u,M[B+2])){var W=u,ae=0;if(Le(W,($=M)[(pe=B)+3]))if(Le(W,$[pe+6])){for(M=0,pe=2*(ae=Le(W,$[pe+8]))+($=Le(W,$[pe+9+ae])),ae=0,$=$g[pe];$[M];++M)ae+=ae+Le(W,$[M]);ae+=3+(8<<pe)}else Le(W,$[pe+7])?(ae=7+2*Le(W,165),ae+=Le(W,145)):ae=5+Le(W,159);else ae=Le(W,$[pe+4])?3+Le(W,$[pe+5]):2;M=K[2]}else ae=1,M=K[1];K=R+Xg[Q],0>(W=u).b&&xe(W);var pe,$=W.b,le=(pe=W.Ca>>1)-(W.I>>$)>>31;--W.b,W.Ca+=le,W.Ca|=1,W.I-=(pe+1&le)<<$,T[K]=((ae^le)-le)*E[(0<Q)+0]}return 16}function as(u){var w=u.rb[u.sb-1];w.la=0,w.Na=0,n(u.zc,0,0,u.zc.length),u.ja=0}function Xr(u,w,B,E,Q){Q=u[w+B+32*E]+(Q>>3),u[w+B+32*E]=-256&Q?0>Q?0:255:Q}function Ia(u,w,B,E,Q,T){Xr(u,w,0,B,E+Q),Xr(u,w,1,B,E+T),Xr(u,w,2,B,E-T),Xr(u,w,3,B,E-Q)}function bi(u){return(20091*u>>16)+u}function ur(u,w,B,E){var Q,T=0,R=i(16);for(Q=0;4>Q;++Q){var M=u[w+0]+u[w+8],K=u[w+0]-u[w+8],W=(35468*u[w+4]>>16)-bi(u[w+12]),ae=bi(u[w+4])+(35468*u[w+12]>>16);R[T+0]=M+ae,R[T+1]=K+W,R[T+2]=K-W,R[T+3]=M-ae,T+=4,w++}for(Q=T=0;4>Q;++Q)M=(u=R[T+0]+4)+R[T+8],K=u-R[T+8],W=(35468*R[T+4]>>16)-bi(R[T+12]),Xr(B,E,0,0,M+(ae=bi(R[T+4])+(35468*R[T+12]>>16))),Xr(B,E,1,0,K+W),Xr(B,E,2,0,K-W),Xr(B,E,3,0,M-ae),T++,E+=32}function na(u,w,B,E){var Q=u[w+0]+4,T=35468*u[w+4]>>16,R=bi(u[w+4]),M=35468*u[w+1]>>16;Ia(B,E,0,Q+R,u=bi(u[w+1]),M),Ia(B,E,1,Q+T,u,M),Ia(B,E,2,Q-T,u,M),Ia(B,E,3,Q-R,u,M)}function ss(u,w,B,E,Q){ur(u,w,B,E),Q&&ur(u,w+16,B,E+4)}function We(u,w,B,E){li(u,w+0,B,E,1),li(u,w+32,B,E+128,1)}function X(u,w,B,E){var Q;for(u=u[w+0]+4,Q=0;4>Q;++Q)for(w=0;4>w;++w)Xr(B,E,w,Q,u)}function ye(u,w,B,E){u[w+0]&&tn(u,w+0,B,E),u[w+16]&&tn(u,w+16,B,E+4),u[w+32]&&tn(u,w+32,B,E+128),u[w+48]&&tn(u,w+48,B,E+128+4)}function Ve(u,w,B,E){var Q,T=i(16);for(Q=0;4>Q;++Q){var R=u[w+0+Q]+u[w+12+Q],M=u[w+4+Q]+u[w+8+Q],K=u[w+4+Q]-u[w+8+Q],W=u[w+0+Q]-u[w+12+Q];T[0+Q]=R+M,T[8+Q]=R-M,T[4+Q]=W+K,T[12+Q]=W-K}for(Q=0;4>Q;++Q)R=(u=T[0+4*Q]+3)+T[3+4*Q],M=T[1+4*Q]+T[2+4*Q],K=T[1+4*Q]-T[2+4*Q],W=u-T[3+4*Q],B[E+0]=R+M>>3,B[E+16]=W+K>>3,B[E+32]=R-M>>3,B[E+48]=W-K>>3,E+=64}function st(u,w,B){var E,Q=w-32,T=qn,R=255-u[Q-1];for(E=0;E<B;++E){var M,K=T,W=R+u[w-1];for(M=0;M<B;++M)u[w+M]=K[W+u[Q+M]];w+=32}}function kt(u,w){st(u,w,4)}function Zt(u,w){st(u,w,8)}function KA(u,w){st(u,w,16)}function yA(u,w){var B;for(B=0;16>B;++B)r(u,w+32*B,u,w-32,16)}function Yr(u,w){var B;for(B=16;0<B;--B)n(u,w,u[w-1],16),w+=32}function fr(u,w,B){var E;for(E=0;16>E;++E)n(w,B+32*E,u,16)}function La(u,w){var B,E=16;for(B=0;16>B;++B)E+=u[w-1+32*B]+u[w+B-32];fr(E>>5,u,w)}function xA(u,w){var B,E=8;for(B=0;16>B;++B)E+=u[w-1+32*B];fr(E>>4,u,w)}function Yc(u,w){var B,E=8;for(B=0;16>B;++B)E+=u[w+B-32];fr(E>>4,u,w)}function os(u,w){fr(128,u,w)}function Pt(u,w,B){return u+2*w+B+2>>2}function Jc(u,w){var B,E=w-32;for(E=new Uint8Array([Pt(u[E-1],u[E+0],u[E+1]),Pt(u[E+0],u[E+1],u[E+2]),Pt(u[E+1],u[E+2],u[E+3]),Pt(u[E+2],u[E+3],u[E+4])]),B=0;4>B;++B)r(u,w+32*B,E,0,E.length)}function Zc(u,w){var B=u[w-1],E=u[w-1+32],Q=u[w-1+64],T=u[w-1+96];Oe(u,w+0,16843009*Pt(u[w-1-32],B,E)),Oe(u,w+32,16843009*Pt(B,E,Q)),Oe(u,w+64,16843009*Pt(E,Q,T)),Oe(u,w+96,16843009*Pt(Q,T,T))}function eu(u,w){var B,E=4;for(B=0;4>B;++B)E+=u[w+B-32]+u[w-1+32*B];for(E>>=3,B=0;4>B;++B)n(u,w+32*B,E,4)}function ai(u,w){var B=u[w-1+0],E=u[w-1+32],Q=u[w-1+64],T=u[w-1-32],R=u[w+0-32],M=u[w+1-32],K=u[w+2-32],W=u[w+3-32];u[w+0+96]=Pt(E,Q,u[w-1+96]),u[w+1+96]=u[w+0+64]=Pt(B,E,Q),u[w+2+96]=u[w+1+64]=u[w+0+32]=Pt(T,B,E),u[w+3+96]=u[w+2+64]=u[w+1+32]=u[w+0+0]=Pt(R,T,B),u[w+3+64]=u[w+2+32]=u[w+1+0]=Pt(M,R,T),u[w+3+32]=u[w+2+0]=Pt(K,M,R),u[w+3+0]=Pt(W,K,M)}function El(u,w){var B=u[w+1-32],E=u[w+2-32],Q=u[w+3-32],T=u[w+4-32],R=u[w+5-32],M=u[w+6-32],K=u[w+7-32];u[w+0+0]=Pt(u[w+0-32],B,E),u[w+1+0]=u[w+0+32]=Pt(B,E,Q),u[w+2+0]=u[w+1+32]=u[w+0+64]=Pt(E,Q,T),u[w+3+0]=u[w+2+32]=u[w+1+64]=u[w+0+96]=Pt(Q,T,R),u[w+3+32]=u[w+2+64]=u[w+1+96]=Pt(T,R,M),u[w+3+64]=u[w+2+96]=Pt(R,M,K),u[w+3+96]=Pt(M,K,K)}function Mi(u,w){var B=u[w-1+0],E=u[w-1+32],Q=u[w-1+64],T=u[w-1-32],R=u[w+0-32],M=u[w+1-32],K=u[w+2-32],W=u[w+3-32];u[w+0+0]=u[w+1+64]=T+R+1>>1,u[w+1+0]=u[w+2+64]=R+M+1>>1,u[w+2+0]=u[w+3+64]=M+K+1>>1,u[w+3+0]=K+W+1>>1,u[w+0+96]=Pt(Q,E,B),u[w+0+64]=Pt(E,B,T),u[w+0+32]=u[w+1+96]=Pt(B,T,R),u[w+1+32]=u[w+2+96]=Pt(T,R,M),u[w+2+32]=u[w+3+96]=Pt(R,M,K),u[w+3+32]=Pt(M,K,W)}function qi(u,w){var B=u[w+0-32],E=u[w+1-32],Q=u[w+2-32],T=u[w+3-32],R=u[w+4-32],M=u[w+5-32],K=u[w+6-32],W=u[w+7-32];u[w+0+0]=B+E+1>>1,u[w+1+0]=u[w+0+64]=E+Q+1>>1,u[w+2+0]=u[w+1+64]=Q+T+1>>1,u[w+3+0]=u[w+2+64]=T+R+1>>1,u[w+0+32]=Pt(B,E,Q),u[w+1+32]=u[w+0+96]=Pt(E,Q,T),u[w+2+32]=u[w+1+96]=Pt(Q,T,R),u[w+3+32]=u[w+2+96]=Pt(T,R,M),u[w+3+64]=Pt(R,M,K),u[w+3+96]=Pt(M,K,W)}function tu(u,w){var B=u[w-1+0],E=u[w-1+32],Q=u[w-1+64],T=u[w-1+96];u[w+0+0]=B+E+1>>1,u[w+2+0]=u[w+0+32]=E+Q+1>>1,u[w+2+32]=u[w+0+64]=Q+T+1>>1,u[w+1+0]=Pt(B,E,Q),u[w+3+0]=u[w+1+32]=Pt(E,Q,T),u[w+3+32]=u[w+1+64]=Pt(Q,T,T),u[w+3+64]=u[w+2+64]=u[w+0+96]=u[w+1+96]=u[w+2+96]=u[w+3+96]=T}function Au(u,w){var B=u[w-1+0],E=u[w-1+32],Q=u[w-1+64],T=u[w-1+96],R=u[w-1-32],M=u[w+0-32],K=u[w+1-32],W=u[w+2-32];u[w+0+0]=u[w+2+32]=B+R+1>>1,u[w+0+32]=u[w+2+64]=E+B+1>>1,u[w+0+64]=u[w+2+96]=Q+E+1>>1,u[w+0+96]=T+Q+1>>1,u[w+3+0]=Pt(M,K,W),u[w+2+0]=Pt(R,M,K),u[w+1+0]=u[w+3+32]=Pt(B,R,M),u[w+1+32]=u[w+3+64]=Pt(E,B,R),u[w+1+64]=u[w+3+96]=Pt(Q,E,B),u[w+1+96]=Pt(T,Q,E)}function Ps(u,w){var B;for(B=0;8>B;++B)r(u,w+32*B,u,w-32,8)}function Rs(u,w){var B;for(B=0;8>B;++B)n(u,w,u[w-1],8),w+=32}function Ci(u,w,B){var E;for(E=0;8>E;++E)n(w,B+32*E,u,8)}function Fl(u,w){var B,E=8;for(B=0;8>B;++B)E+=u[w+B-32]+u[w-1+32*B];Ci(E>>4,u,w)}function ks(u,w){var B,E=4;for(B=0;8>B;++B)E+=u[w+B-32];Ci(E>>3,u,w)}function ru(u,w){var B,E=4;for(B=0;8>B;++B)E+=u[w-1+32*B];Ci(E>>3,u,w)}function hr(u,w){Ci(128,u,w)}function Ta(u,w,B){var E=u[w-B],Q=u[w+0],T=3*(Q-E)+lu[1020+u[w-2*B]-u[w+B]],R=_l[112+(T+4>>3)];u[w-B]=qn[255+E+_l[112+(T+3>>3)]],u[w+0]=qn[255+Q-R]}function Ki(u,w,B,E){var Q=u[w+0],T=u[w+B];return ci[255+u[w-2*B]-u[w-B]]>E||ci[255+T-Q]>E}function ls(u,w,B,E){return 4*ci[255+u[w-B]-u[w+0]]+ci[255+u[w-2*B]-u[w+B]]<=E}function xo(u,w,B,E,Q){var T=u[w-3*B],R=u[w-2*B],M=u[w-B],K=u[w+0],W=u[w+B],ae=u[w+2*B],pe=u[w+3*B];return 4*ci[255+M-K]+ci[255+R-W]>E?0:ci[255+u[w-4*B]-T]<=Q&&ci[255+T-R]<=Q&&ci[255+R-M]<=Q&&ci[255+pe-ae]<=Q&&ci[255+ae-W]<=Q&&ci[255+W-K]<=Q}function Ds(u,w,B,E){var Q=2*E+1;for(E=0;16>E;++E)ls(u,w+E,B,Q)&&Ta(u,w+E,B)}function _o(u,w,B,E){var Q=2*E+1;for(E=0;16>E;++E)ls(u,w+E*B,1,Q)&&Ta(u,w+E*B,1)}function ia(u,w,B,E){var Q;for(Q=3;0<Q;--Q)Ds(u,w+=4*B,B,E)}function cs(u,w,B,E){var Q;for(Q=3;0<Q;--Q)_o(u,w+=4,B,E)}function ji(u,w,B,E,Q,T,R,M){for(T=2*T+1;0<Q--;){if(xo(u,w,B,T,R))if(Ki(u,w,B,M))Ta(u,w,B);else{var K=u,W=w,ae=B,pe=K[W-2*ae],$=K[W-ae],le=K[W+0],we=K[W+ae],Qe=K[W+2*ae],Ce=27*(Ne=lu[1020+3*(le-$)+lu[1020+pe-we]])+63>>7,Te=18*Ne+63>>7,Ne=9*Ne+63>>7;K[W-3*ae]=qn[255+K[W-3*ae]+Ne],K[W-2*ae]=qn[255+pe+Te],K[W-ae]=qn[255+$+Ce],K[W+0]=qn[255+le-Ce],K[W+ae]=qn[255+we-Te],K[W+2*ae]=qn[255+Qe-Ne]}w+=E}}function aa(u,w,B,E,Q,T,R,M){for(T=2*T+1;0<Q--;){if(xo(u,w,B,T,R))if(Ki(u,w,B,M))Ta(u,w,B);else{var K=u,W=w,ae=B,pe=K[W-ae],$=K[W+0],le=K[W+ae],we=_l[112+(4+(Qe=3*($-pe))>>3)],Qe=_l[112+(Qe+3>>3)],Ce=we+1>>1;K[W-2*ae]=qn[255+K[W-2*ae]+Ce],K[W-ae]=qn[255+pe+Qe],K[W+0]=qn[255+$-we],K[W+ae]=qn[255+le-Ce]}w+=E}}function Ei(u,w,B,E,Q,T){ji(u,w,B,1,16,E,Q,T)}function us(u,w,B,E,Q,T){ji(u,w,1,B,16,E,Q,T)}function Hs(u,w,B,E,Q,T){var R;for(R=3;0<R;--R)aa(u,w+=4*B,B,1,16,E,Q,T)}function fs(u,w,B,E,Q,T){var R;for(R=3;0<R;--R)aa(u,w+=4,1,B,16,E,Q,T)}function Ul(u,w,B,E,Q,T,R,M){ji(u,w,Q,1,8,T,R,M),ji(B,E,Q,1,8,T,R,M)}function y(u,w,B,E,Q,T,R,M){ji(u,w,1,Q,8,T,R,M),ji(B,E,1,Q,8,T,R,M)}function S(u,w,B,E,Q,T,R,M){aa(u,w+4*Q,Q,1,8,T,R,M),aa(B,E+4*Q,Q,1,8,T,R,M)}function z(u,w,B,E,Q,T,R,M){aa(u,w+4,1,Q,8,T,R,M),aa(B,E+4,1,Q,8,T,R,M)}function ne(){this.ba=new bt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new sA,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function he(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Se(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ke(){this.ua=0,this.Wa=new Tt,this.vb=new Tt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ce,this.yc=new Y}function pt(){this.xb=this.a=0,this.l=new ii,this.ca=new bt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new J,this.Pb=0,this.wd=new J,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ke,this.ab=0,this.gc=s(4,Se),this.Oc=0}function ft(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ii,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Mt(u,w,B,E,Q,T,R){for(u=u==null?0:u[w+0],w=0;w<R;++w)Q[T+w]=u+B[E+w]&255,u=Q[T+w]}function Dt(u,w,B,E,Q,T,R){var M;if(u==null)Mt(null,null,B,E,Q,T,R);else for(M=0;M<R;++M)Q[T+M]=u[w+M]+B[E+M]&255}function lA(u,w,B,E,Q,T,R){if(u==null)Mt(null,null,B,E,Q,T,R);else{var M,K=u[w+0],W=K,ae=K;for(M=0;M<R;++M)W=ae+(K=u[w+M])-W,ae=B[E+M]+(-256&W?0>W?0:255:W)&255,W=K,Q[T+M]=ae}}function dr(u,w,B,E){var Q=w.width,T=w.o;if(e(u!=null&&w!=null),0>B||0>=E||B+E>T)return null;if(!u.Cc){if(u.ga==null){var R;if(u.ga=new ft,(R=u.ga==null)||(R=w.width*w.o,e(u.Gb.length==0),u.Gb=i(R),u.Uc=0,u.Gb==null?R=0:(u.mb=u.Gb,u.nb=u.Uc,u.rc=null,R=1),R=!R),!R){R=u.ga;var M=u.Fa,K=u.P,W=u.qc,ae=u.mb,pe=u.nb,$=K+1,le=W-1,we=R.l;if(e(M!=null&&ae!=null&&w!=null),ka[0]=null,ka[1]=Mt,ka[2]=Dt,ka[3]=lA,R.ca=ae,R.tb=pe,R.c=w.width,R.i=w.height,e(0<R.c&&0<R.i),1>=W)w=0;else if(R.$a=3&M[K+0],R.Z=M[K+0]>>2&3,R.Lc=M[K+0]>>4&3,K=M[K+0]>>6&3,0>R.$a||1<R.$a||4<=R.Z||1<R.Lc||K)w=0;else if(we.put=_t,we.ac=Sr,we.bc=On,we.ma=R,we.width=w.width,we.height=w.height,we.Da=w.Da,we.v=w.v,we.va=w.va,we.j=w.j,we.o=w.o,R.$a)e:{e(R.$a==1),w=Ai();t:for(;;){if(w==null){w=0;break e}if(e(R!=null),R.mc=w,w.c=R.c,w.i=R.i,w.l=R.l,w.l.ma=R,w.l.width=R.c,w.l.height=R.i,w.a=0,Ee(w.m,M,$,le),!kn(R.c,R.i,1,w,null)||(w.ab==1&&w.gc[0].hc==3&&Pn(w.s)?(R.ic=1,M=w.c*w.i,w.Ta=null,w.Ua=0,w.V=i(M),w.Ba=0,w.V==null?(w.a=1,w=0):w=1):(R.ic=0,w=Di(w,R.c)),!w))break t;w=1;break e}R.mc=null,w=0}else w=le>=R.c*R.i;R=!w}if(R)return null;u.ga.Lc!=1?u.Ga=0:E=T-B}e(u.ga!=null),e(B+E<=T);e:{if(w=(M=u.ga).c,T=M.l.o,M.$a==0){if($=u.rc,le=u.Vc,we=u.Fa,K=u.P+1+B*w,W=u.mb,ae=u.nb+B*w,e(K<=u.P+u.qc),M.Z!=0)for(e(ka[M.Z]!=null),R=0;R<E;++R)ka[M.Z]($,le,we,K,W,ae,w),$=W,le=ae,ae+=w,K+=w;else for(R=0;R<E;++R)r(W,ae,we,K,w),$=W,le=ae,ae+=w,K+=w;u.rc=$,u.Vc=le}else{if(e(M.mc!=null),w=B+E,e((R=M.mc)!=null),e(w<=R.i),R.C>=w)w=1;else if(M.ic||VA(),M.ic){M=R.V,$=R.Ba,le=R.c;var Qe=R.i,Ce=(we=1,K=R.$/le,W=R.$%le,ae=R.m,pe=R.s,R.$),Te=le*Qe,Ne=le*w,Ke=pe.wc,De=Ce<Ne?rr(pe,W,K):null;e(Ce<=Te),e(w<=Qe),e(Pn(pe));t:for(;;){for(;!ae.h&&Ce<Ne;){if(W&Ke||(De=rr(pe,W,K)),e(De!=null),ve(ae),256>(Qe=IA(De.G[0],De.H[0],ae)))M[$+Ce]=Qe,++Ce,++W>=le&&(W=0,++K<=w&&!(K%16)&&Qr(R,K));else{if(!(280>Qe)){we=0;break t}Qe=Lt(Qe-256,ae);var Et,ct=IA(De.G[4],De.H[4],ae);if(ve(ae),!(Ce>=(ct=vr(le,ct=Lt(ct,ae)))&&Te-Ce>=Qe)){we=0;break t}for(Et=0;Et<Qe;++Et)M[$+Ce+Et]=M[$+Ce+Et-ct];for(Ce+=Qe,W+=Qe;W>=le;)W-=le,++K<=w&&!(K%16)&&Qr(R,K);Ce<Ne&&W&Ke&&(De=rr(pe,W,K))}e(ae.h==ie(ae))}Qr(R,K>w?w:K);break t}!we||ae.h&&Ce<Te?(we=0,R.a=ae.h?5:3):R.$=Ce,w=we}else w=Rn(R,R.V,R.Ba,R.c,R.i,w,Ua);if(!w){E=0;break e}}B+E>=T&&(u.Cc=1),E=1}if(!E)return null;if(u.Cc&&((E=u.ga)!=null&&(E.mc=null),u.ga=null,0<u.Ga))return alert("todo:WebPDequantizeLevels"),null}return u.nb+B*Q}function LA(u,w,B,E,Q,T){for(;0<Q--;){var R,M=u,K=w+(B?1:0),W=u,ae=w+(B?0:3);for(R=0;R<E;++R){var pe=W[ae+4*R];pe!=255&&(pe*=32897,M[K+4*R+0]=M[K+4*R+0]*pe>>23,M[K+4*R+1]=M[K+4*R+1]*pe>>23,M[K+4*R+2]=M[K+4*R+2]*pe>>23)}w+=T}}function _A(u,w,B,E,Q){for(;0<E--;){var T;for(T=0;T<B;++T){var R=u[w+2*T+0],M=15&(W=u[w+2*T+1]),K=4369*M,W=(240&W|W>>4)*K>>16;u[w+2*T+0]=(240&R|R>>4)*K>>16&240|(15&R|R<<4)*K>>16>>4&15,u[w+2*T+1]=240&W|M}w+=Q}}function HA(u,w,B,E,Q,T,R,M){var K,W,ae=255;for(W=0;W<Q;++W){for(K=0;K<E;++K){var pe=u[w+K];T[R+4*K]=pe,ae&=pe}w+=B,R+=M}return ae!=255}function jA(u,w,B,E,Q){var T;for(T=0;T<Q;++T)B[E+T]=u[w+T]>>8}function VA(){Ws=LA,ih=_A,To=HA,ah=jA}function Jr(u,w,B){N[u]=function(E,Q,T,R,M,K,W,ae,pe,$,le,we,Qe,Ce,Te,Ne,Ke){var De,Et=Ke-1>>1,ct=M[K+0]|W[ae+0]<<16,Xt=pe[$+0]|le[we+0]<<16;e(E!=null);var gt=3*ct+Xt+131074>>2;for(w(E[Q+0],255>,gt>>16,Qe,Ce),T!=null&&(gt=3*Xt+ct+131074>>2,w(T[R+0],255>,gt>>16,Te,Ne)),De=1;De<=Et;++De){var He=M[K+De]|W[ae+De]<<16,Br=pe[$+De]|le[we+De]<<16,Yt=ct+He+Xt+Br+524296,ht=Yt+2*(He+Xt)>>3;gt=ht+ct>>1,ct=(Yt=Yt+2*(ct+Br)>>3)+He>>1,w(E[Q+2*De-1],255>,gt>>16,Qe,Ce+(2*De-1)*B),w(E[Q+2*De-0],255&ct,ct>>16,Qe,Ce+(2*De-0)*B),T!=null&&(gt=Yt+Xt>>1,ct=ht+Br>>1,w(T[R+2*De-1],255>,gt>>16,Te,Ne+(2*De-1)*B),w(T[R+2*De+0],255&ct,ct>>16,Te,Ne+(2*De+0)*B)),ct=He,Xt=Br}1&Ke||(gt=3*ct+Xt+131074>>2,w(E[Q+Ke-1],255>,gt>>16,Qe,Ce+(Ke-1)*B),T!=null&&(gt=3*Xt+ct+131074>>2,w(T[R+Ke-1],255>,gt>>16,Te,Ne+(Ke-1)*B)))}}function Fi(){Cn[ua]=Tl,Cn[Sl]=ph,Cn[ch]=t0,Cn[ws]=gh,Cn[Ql]=wh,Cn[cu]=vh,Cn[uh]=A0,Cn[uu]=ph,Cn[$s]=gh,Cn[Il]=wh,Cn[fu]=vh}function Ms(u){return u&~r0?0>u?0:255:u>>mh}function Na(u,w){return Ms((19077*u>>8)+(26149*w>>8)-14234)}function Ui(u,w,B){return Ms((19077*u>>8)-(6419*w>>8)-(13320*B>>8)+8708)}function Hn(u,w){return Ms((19077*u>>8)+(33050*w>>8)-17685)}function cA(u,w,B,E,Q){E[Q+0]=Na(u,B),E[Q+1]=Ui(u,w,B),E[Q+2]=Hn(u,w)}function qs(u,w,B,E,Q){E[Q+0]=Hn(u,w),E[Q+1]=Ui(u,w,B),E[Q+2]=Na(u,B)}function Oa(u,w,B,E,Q){var T=Ui(u,w,B);w=T<<3&224|Hn(u,w)>>3,E[Q+0]=248&Na(u,B)|T>>5,E[Q+1]=w}function Hr(u,w,B,E,Q){var T=240&Hn(u,w)|15;E[Q+0]=240&Na(u,B)|Ui(u,w,B)>>4,E[Q+1]=T}function si(u,w,B,E,Q){E[Q+0]=255,cA(u,w,B,E,Q+1)}function Zr(u,w,B,E,Q){qs(u,w,B,E,Q),E[Q+3]=255}function So(u,w,B,E,Q){cA(u,w,B,E,Q),E[Q+3]=255}function Mr(u,w,B){N[u]=function(E,Q,T,R,M,K,W,ae,pe){for(var $=ae+(-2&pe)*B;ae!=$;)w(E[Q+0],T[R+0],M[K+0],W,ae),w(E[Q+1],T[R+0],M[K+0],W,ae+B),Q+=2,++R,++K,ae+=2*B;1&pe&&w(E[Q+0],T[R+0],M[K+0],W,ae)}}function uA(u,w,B){return B==0?u==0?w==0?6:5:w==0?4:0:B}function Qo(u,w,B,E,Q){switch(u>>>30){case 3:li(w,B,E,Q,0);break;case 2:la(w,B,E,Q);break;case 1:tn(w,B,E,Q)}}function XA(u,w){var B,E,Q=w.M,T=w.Nb,R=u.oc,M=u.pc+40,K=u.oc,W=u.pc+584,ae=u.oc,pe=u.pc+600;for(B=0;16>B;++B)R[M+32*B-1]=129;for(B=0;8>B;++B)K[W+32*B-1]=129,ae[pe+32*B-1]=129;for(0<Q?R[M-1-32]=K[W-1-32]=ae[pe-1-32]=129:(n(R,M-32-1,127,21),n(K,W-32-1,127,9),n(ae,pe-32-1,127,9)),E=0;E<u.za;++E){var $=w.ya[w.aa+E];if(0<E){for(B=-1;16>B;++B)r(R,M+32*B-4,R,M+32*B+12,4);for(B=-1;8>B;++B)r(K,W+32*B-4,K,W+32*B+4,4),r(ae,pe+32*B-4,ae,pe+32*B+4,4)}var le=u.Gd,we=u.Hd+E,Qe=$.ad,Ce=$.Hc;if(0<Q&&(r(R,M-32,le[we].y,0,16),r(K,W-32,le[we].f,0,8),r(ae,pe-32,le[we].ea,0,8)),$.Za){var Te=R,Ne=M-32+16;for(0<Q&&(E>=u.za-1?n(Te,Ne,le[we].y[15],4):r(Te,Ne,le[we+1].y,0,4)),B=0;4>B;B++)Te[Ne+128+B]=Te[Ne+256+B]=Te[Ne+384+B]=Te[Ne+0+B];for(B=0;16>B;++B,Ce<<=2)Te=R,Ne=M+gu[B],Qi[$.Ob[B]](Te,Ne),Qo(Ce,Qe,16*+B,Te,Ne)}else if(Te=uA(E,Q,$.Ob[0]),Si[Te](R,M),Ce!=0)for(B=0;16>B;++B,Ce<<=2)Qo(Ce,Qe,16*+B,R,M+gu[B]);for(B=$.Gc,Te=uA(E,Q,$.Dd),fa[Te](K,W),fa[Te](ae,pe),Ce=Qe,Te=K,Ne=W,255&($=0|B)&&(170&$?Gs(Ce,256,Te,Ne):pr(Ce,256,Te,Ne)),$=ae,Ce=pe,255&(B>>=8)&&(170&B?Gs(Qe,320,$,Ce):pr(Qe,320,$,Ce)),Q<u.Ub-1&&(r(le[we].y,0,R,M+480,16),r(le[we].f,0,K,W+224,8),r(le[we].ea,0,ae,pe+224,8)),B=8*T*u.B,le=u.sa,we=u.ta+16*E+16*T*u.R,Qe=u.qa,$=u.ra+8*E+B,Ce=u.Ha,Te=u.Ia+8*E+B,B=0;16>B;++B)r(le,we+B*u.R,R,M+32*B,16);for(B=0;8>B;++B)r(Qe,$+B*u.B,K,W+32*B,8),r(Ce,Te+B*u.B,ae,pe+32*B,8)}}function Ks(u,w,B,E,Q,T,R,M,K){var W=[0],ae=[0],pe=0,$=K!=null?K.kd:0,le=K??new he;if(u==null||12>B)return 7;le.data=u,le.w=w,le.ha=B,w=[w],B=[B],le.gb=[le.gb];e:{var we=w,Qe=B,Ce=le.gb;if(e(u!=null),e(Qe!=null),e(Ce!=null),Ce[0]=0,12<=Qe[0]&&!A(u,we[0],"RIFF")){if(A(u,we[0]+8,"WEBP")){Ce=3;break e}var Te=at(u,we[0]+4);if(12>Te||4294967286<Te){Ce=3;break e}if($&&Te>Qe[0]-8){Ce=7;break e}Ce[0]=Te,we[0]+=12,Qe[0]-=12}Ce=0}if(Ce!=0)return Ce;for(Te=0<le.gb[0],B=B[0];;){e:{var Ne=u;Qe=w,Ce=B;var Ke=W,De=ae,Et=we=[0];if((gt=pe=[pe])[0]=0,8>Ce[0])Ce=7;else{if(!A(Ne,Qe[0],"VP8X")){if(at(Ne,Qe[0]+4)!=10){Ce=3;break e}if(18>Ce[0]){Ce=7;break e}var ct=at(Ne,Qe[0]+8),Xt=1+qe(Ne,Qe[0]+12);if(2147483648<=Xt*(Ne=1+qe(Ne,Qe[0]+15))){Ce=3;break e}Et!=null&&(Et[0]=ct),Ke!=null&&(Ke[0]=Xt),De!=null&&(De[0]=Ne),Qe[0]+=18,Ce[0]-=18,gt[0]=1}Ce=0}}if(pe=pe[0],we=we[0],Ce!=0)return Ce;if(Qe=!!(2&we),!Te&&pe)return 3;if(T!=null&&(T[0]=!!(16&we)),R!=null&&(R[0]=Qe),M!=null&&(M[0]=0),R=W[0],we=ae[0],pe&&Qe&&K==null){Ce=0;break}if(4>B){Ce=7;break}if(Te&&pe||!Te&&!pe&&!A(u,w[0],"ALPH")){B=[B],le.na=[le.na],le.P=[le.P],le.Sa=[le.Sa];e:{ct=u,Ce=w,Te=B;var gt=le.gb;Ke=le.na,De=le.P,Et=le.Sa,Xt=22,e(ct!=null),e(Te!=null),Ne=Ce[0];var He=Te[0];for(e(Ke!=null),e(Et!=null),Ke[0]=null,De[0]=null,Et[0]=0;;){if(Ce[0]=Ne,Te[0]=He,8>He){Ce=7;break e}var Br=at(ct,Ne+4);if(4294967286<Br){Ce=3;break e}var Yt=8+Br+1&-2;if(Xt+=Yt,0<gt&&Xt>gt){Ce=3;break e}if(!A(ct,Ne,"VP8 ")||!A(ct,Ne,"VP8L")){Ce=0;break e}if(He[0]<Yt){Ce=7;break e}A(ct,Ne,"ALPH")||(Ke[0]=ct,De[0]=Ne+8,Et[0]=Br),Ne+=Yt,He-=Yt}}if(B=B[0],le.na=le.na[0],le.P=le.P[0],le.Sa=le.Sa[0],Ce!=0)break}B=[B],le.Ja=[le.Ja],le.xa=[le.xa];e:if(gt=u,Ce=w,Te=B,Ke=le.gb[0],De=le.Ja,Et=le.xa,ct=Ce[0],Ne=!A(gt,ct,"VP8 "),Xt=!A(gt,ct,"VP8L"),e(gt!=null),e(Te!=null),e(De!=null),e(Et!=null),8>Te[0])Ce=7;else{if(Ne||Xt){if(gt=at(gt,ct+4),12<=Ke&>>Ke-12){Ce=3;break e}if($&>>Te[0]-8){Ce=7;break e}De[0]=gt,Ce[0]+=8,Te[0]-=8,Et[0]=Xt}else Et[0]=5<=Te[0]&>[ct+0]==47&&!(gt[ct+4]>>5),De[0]=Te[0];Ce=0}if(B=B[0],le.Ja=le.Ja[0],le.xa=le.xa[0],w=w[0],Ce!=0)break;if(4294967286<le.Ja)return 3;if(M==null||Qe||(M[0]=le.xa?2:1),R=[R],we=[we],le.xa){if(5>B){Ce=7;break}M=R,$=we,Qe=T,u==null||5>B?u=0:5<=B&&u[w+0]==47&&!(u[w+4]>>5)?(Te=[0],gt=[0],Ke=[0],Ee(De=new J,u,w,B),ti(De,Te,gt,Ke)?(M!=null&&(M[0]=Te[0]),$!=null&&($[0]=gt[0]),Qe!=null&&(Qe[0]=Ke[0]),u=1):u=0):u=0}else{if(10>B){Ce=7;break}M=we,u==null||10>B||!Hi(u,w+3,B-3)?u=0:($=u[w+0]|u[w+1]<<8|u[w+2]<<16,Qe=16383&(u[w+7]<<8|u[w+6]),u=16383&(u[w+9]<<8|u[w+8]),1&$||3<($>>1&7)||!($>>4&1)||$>>5>=le.Ja||!Qe||!u?u=0:(R&&(R[0]=Qe),M&&(M[0]=u),u=1))}if(!u||(R=R[0],we=we[0],pe&&(W[0]!=R||ae[0]!=we)))return 3;K!=null&&(K[0]=le,K.offset=w-K.w,e(4294967286>w-K.w),e(K.offset==K.ha-B));break}return Ce==0||Ce==7&&pe&&K==null?(T!=null&&(T[0]|=le.na!=null&&0<le.na.length),E!=null&&(E[0]=R),Q!=null&&(Q[0]=we),0):Ce}function mr(u,w,B){var E=w.width,Q=w.height,T=0,R=0,M=E,K=Q;if(w.Da=u!=null&&0<u.Da,w.Da&&(M=u.cd,K=u.bd,T=u.v,R=u.j,11>B||(T&=-2,R&=-2),0>T||0>R||0>=M||0>=K||T+M>E||R+K>Q))return 0;if(w.v=T,w.j=R,w.va=T+M,w.o=R+K,w.U=M,w.T=K,w.da=u!=null&&0<u.da,w.da){if(!ut(M,K,B=[u.ib],T=[u.hb]))return 0;w.ib=B[0],w.hb=T[0]}return w.ob=u!=null&&u.ob,w.Kb=u==null||!u.Sd,w.da&&(w.ob=w.ib<3*E/4&&w.hb<3*Q/4,w.Kb=0),1}function xi(u){if(u==null)return 2;if(11>u.S){var w=u.f.RGBA;w.fb+=(u.height-1)*w.A,w.A=-w.A}else w=u.f.kb,u=u.height,w.O+=(u-1)*w.fa,w.fa=-w.fa,w.N+=(u-1>>1)*w.Ab,w.Ab=-w.Ab,w.W+=(u-1>>1)*w.Db,w.Db=-w.Db,w.F!=null&&(w.J+=(u-1)*w.lb,w.lb=-w.lb);return 0}function BA(u,w,B,E){if(E==null||0>=u||0>=w)return 2;if(B!=null){if(B.Da){var Q=B.cd,T=B.bd,R=-2&B.v,M=-2&B.j;if(0>R||0>M||0>=Q||0>=T||R+Q>u||M+T>w)return 2;u=Q,w=T}if(B.da){if(!ut(u,w,Q=[B.ib],T=[B.hb]))return 2;u=Q[0],w=T[0]}}E.width=u,E.height=w;e:{var K=E.width,W=E.height;if(u=E.S,0>=K||0>=W||!(u>=ua&&13>u))u=2;else{if(0>=E.Rd&&E.sd==null){R=T=Q=w=0;var ae=(M=K*Xs[u])*W;if(11>u||(T=(W+1)/2*(w=(K+1)/2),u==12&&(R=(Q=K)*W)),(W=i(ae+2*T+R))==null){u=1;break e}E.sd=W,11>u?((K=E.f.RGBA).eb=W,K.fb=0,K.A=M,K.size=ae):((K=E.f.kb).y=W,K.O=0,K.fa=M,K.Fd=ae,K.f=W,K.N=0+ae,K.Ab=w,K.Cd=T,K.ea=W,K.W=0+ae+T,K.Db=w,K.Ed=T,u==12&&(K.F=W,K.J=0+ae+2*T),K.Tc=R,K.lb=Q)}if(w=1,Q=E.S,T=E.width,R=E.height,Q>=ua&&13>Q)if(11>Q)u=E.f.RGBA,w&=(M=Math.abs(u.A))*(R-1)+T<=u.size,w&=M>=T*Xs[Q],w&=u.eb!=null;else{u=E.f.kb,M=(T+1)/2,ae=(R+1)/2,K=Math.abs(u.fa),W=Math.abs(u.Ab);var pe=Math.abs(u.Db),$=Math.abs(u.lb),le=$*(R-1)+T;w&=K*(R-1)+T<=u.Fd,w&=W*(ae-1)+M<=u.Cd,w=(w&=pe*(ae-1)+M<=u.Ed)&K>=T&W>=M&pe>=M,w&=u.y!=null,w&=u.f!=null,w&=u.ea!=null,Q==12&&(w&=$>=T,w&=le<=u.Tc,w&=u.F!=null)}else w=0;u=w?0:2}}return u!=0||B!=null&&B.fd&&(u=xi(E)),u}var hs=64,Pa=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],js=24,en=32,qr=8,ds=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];$e("Predictor0","PredictorAdd0"),N.Predictor0=function(){return 4278190080},N.Predictor1=function(u){return u},N.Predictor2=function(u,w,B){return w[B+0]},N.Predictor3=function(u,w,B){return w[B+1]},N.Predictor4=function(u,w,B){return w[B-1]},N.Predictor5=function(u,w,B){return Ze(Ze(u,w[B+1]),w[B+0])},N.Predictor6=function(u,w,B){return Ze(u,w[B-1])},N.Predictor7=function(u,w,B){return Ze(u,w[B+0])},N.Predictor8=function(u,w,B){return Ze(w[B-1],w[B+0])},N.Predictor9=function(u,w,B){return Ze(w[B+0],w[B+1])},N.Predictor10=function(u,w,B){return Ze(Ze(u,w[B-1]),Ze(w[B+0],w[B+1]))},N.Predictor11=function(u,w,B){var E=w[B+0];return 0>=St(E>>24&255,u>>24&255,(w=w[B-1])>>24&255)+St(E>>16&255,u>>16&255,w>>16&255)+St(E>>8&255,u>>8&255,w>>8&255)+St(255&E,255&u,255&w)?E:u},N.Predictor12=function(u,w,B){var E=w[B+0];return(Ut((u>>24&255)+(E>>24&255)-((w=w[B-1])>>24&255))<<24|Ut((u>>16&255)+(E>>16&255)-(w>>16&255))<<16|Ut((u>>8&255)+(E>>8&255)-(w>>8&255))<<8|Ut((255&u)+(255&E)-(255&w)))>>>0},N.Predictor13=function(u,w,B){var E=w[B-1];return(Nt((u=Ze(u,w[B+0]))>>24&255,E>>24&255)<<24|Nt(u>>16&255,E>>16&255)<<16|Nt(u>>8&255,E>>8&255)<<8|Nt(255&u,255&E))>>>0};var sa=N.PredictorAdd0;N.PredictorAdd1=Ht,$e("Predictor2","PredictorAdd2"),$e("Predictor3","PredictorAdd3"),$e("Predictor4","PredictorAdd4"),$e("Predictor5","PredictorAdd5"),$e("Predictor6","PredictorAdd6"),$e("Predictor7","PredictorAdd7"),$e("Predictor8","PredictorAdd8"),$e("Predictor9","PredictorAdd9"),$e("Predictor10","PredictorAdd10"),$e("Predictor11","PredictorAdd11"),$e("Predictor12","PredictorAdd12"),$e("Predictor13","PredictorAdd13");var yr=N.PredictorAdd2;Xe("ColorIndexInverseTransform","MapARGB","32b",function(u){return u>>8&255},function(u){return u}),Xe("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(u){return u},function(u){return u>>8&255});var Mn,bn=N.ColorIndexInverseTransform,nA=N.MapARGB,Vi=N.VP8LColorIndexInverseTransformAlpha,_i=N.MapAlpha,oi=N.VP8LPredictorsAdd=[];oi.length=16,(N.VP8LPredictors=[]).length=16,(N.VP8LPredictorsAdd_C=[]).length=16,(N.VP8LPredictors_C=[]).length=16;var oa,Vs,Io,Gi,fn,ps,Ra,li,la,Gs,tn,pr,TA,RA,nr,YA,ca,zs,gs,Lo,nu,iu,au,su,Ws,ih,To,ah,sh=i(511),xl=i(2041),oh=i(225),ou=i(767),lh=0,lu=xl,_l=oh,qn=ou,ci=sh,ua=0,Sl=1,ch=2,ws=3,Ql=4,cu=5,uh=6,uu=7,$s=8,Il=9,fu=10,Kg=[2,3,7],jg=[3,3,11],No=[280,256,256,256,40],Vg=[0,1,1,1,0],Gg=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],zg=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Wg=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Ll=8,hu=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],du=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Oo=null,$g=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Xg=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],fh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Yg=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Jg=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Zg=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],e0=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Si=[],Qi=[],fa=[],hh=1,dh=2,ka=[],Cn=[];Jr("UpsampleRgbLinePair",cA,3),Jr("UpsampleBgrLinePair",qs,3),Jr("UpsampleRgbaLinePair",So,4),Jr("UpsampleBgraLinePair",Zr,4),Jr("UpsampleArgbLinePair",si,4),Jr("UpsampleRgba4444LinePair",Hr,2),Jr("UpsampleRgb565LinePair",Oa,2);var Tl=N.UpsampleRgbLinePair,t0=N.UpsampleBgrLinePair,ph=N.UpsampleRgbaLinePair,gh=N.UpsampleBgraLinePair,wh=N.UpsampleArgbLinePair,vh=N.UpsampleRgba4444LinePair,A0=N.UpsampleRgb565LinePair,vs=16,Nl=1<<vs-1,Po=-227,pu=482,mh=6,r0=(256<<mh)-1,yh=0,n0=i(256),i0=i(256),a0=i(256),s0=i(256),o0=i(pu-Po),l0=i(pu-Po);Mr("YuvToRgbRow",cA,3),Mr("YuvToBgrRow",qs,3),Mr("YuvToRgbaRow",So,4),Mr("YuvToBgraRow",Zr,4),Mr("YuvToArgbRow",si,4),Mr("YuvToRgba4444Row",Hr,2),Mr("YuvToRgb565Row",Oa,2);var gu=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ol=[0,2,8],c0=[8,7,6,4,4,2,2,2,1,1,1,1],u0=1;this.WebPDecodeRGBA=function(u,w,B,E,Q){var T=Sl,R=new ne,M=new bt;R.ba=M,M.S=T,M.width=[M.width],M.height=[M.height];var K=M.width,W=M.height,ae=new Ct;if(ae==null||u==null)var pe=2;else e(ae!=null),pe=Ks(u,w,B,ae.width,ae.height,ae.Pd,ae.Qd,ae.format,null);if(pe!=0?K=0:(K!=null&&(K[0]=ae.width[0]),W!=null&&(W[0]=ae.height[0]),K=1),K){M.width=M.width[0],M.height=M.height[0],E!=null&&(E[0]=M.width),Q!=null&&(Q[0]=M.height);e:{if(E=new ii,(Q=new he).data=u,Q.w=w,Q.ha=B,Q.kd=1,w=[0],e(Q!=null),((u=Ks(Q.data,Q.w,Q.ha,null,null,null,w,null,Q))==0||u==7)&&w[0]&&(u=4),(w=u)==0){if(e(R!=null),E.data=Q.data,E.w=Q.w+Q.offset,E.ha=Q.ha-Q.offset,E.put=_t,E.ac=Sr,E.bc=On,E.ma=R,Q.xa){if((u=Ai())==null){R=1;break e}if((function($,le){var we=[0],Qe=[0],Ce=[0];t:for(;;){if($==null)return 0;if(le==null)return $.a=2,0;if($.l=le,$.a=0,Ee($.m,le.data,le.w,le.ha),!ti($.m,we,Qe,Ce)){$.a=3;break t}if($.xb=dh,le.width=we[0],le.height=Qe[0],!kn(we[0],Qe[0],1,$,null))break t;return 1}return e($.a!=0),0})(u,E)){if(E=(w=BA(E.width,E.height,R.Oa,R.ba))==0){t:{E=u;A:for(;;){if(E==null){E=0;break t}if(e(E.s.yc!=null),e(E.s.Ya!=null),e(0<E.s.Wb),e((B=E.l)!=null),e((Q=B.ma)!=null),E.xb!=0){if(E.ca=Q.ba,E.tb=Q.tb,e(E.ca!=null),!mr(Q.Oa,B,ws)){E.a=2;break A}if(!Di(E,B.width)||B.da)break A;if((B.da||nt(E.ca.S))&&VA(),11>E.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),E.ca.f.kb.F!=null&&VA()),E.Pb&&0<E.s.ua&&E.s.vb.X==null&&!q(E.s.vb,E.s.Wa.Xa)){E.a=1;break A}E.xb=0}if(!Rn(E,E.V,E.Ba,E.c,E.i,B.o,yi))break A;Q.Dc=E.Ma,E=1;break t}e(E.a!=0),E=0}E=!E}E&&(w=u.a)}else w=u.a}else{if((u=new $r)==null){R=1;break e}if(u.Fa=Q.na,u.P=Q.P,u.qc=Q.Sa,Dn(u,E)){if((w=BA(E.width,E.height,R.Oa,R.ba))==0){if(u.Aa=0,B=R.Oa,e((Q=u)!=null),B!=null){if(0<(K=0>(K=B.Md)?0:100<K?255:255*K/100)){for(W=ae=0;4>W;++W)12>(pe=Q.pb[W]).lc&&(pe.ia=K*c0[0>pe.lc?0:pe.lc]>>3),ae|=pe.ia;ae&&(alert("todo:VP8InitRandom"),Q.ia=1)}Q.Ga=B.Id,100<Q.Ga?Q.Ga=100:0>Q.Ga&&(Q.Ga=0)}(function($,le){if($==null)return 0;if(le==null)return DA($,2,"NULL VP8Io parameter in VP8Decode().");if(!$.cb&&!Dn($,le))return 0;if(e($.cb),le.ac==null||le.ac(le)){le.ob&&($.L=0);var we=Ol[$.L];if($.L==2?($.yb=0,$.zb=0):($.yb=le.v-we>>4,$.zb=le.j-we>>4,0>$.yb&&($.yb=0),0>$.zb&&($.zb=0)),$.Va=le.o+15+we>>4,$.Hb=le.va+15+we>>4,$.Hb>$.za&&($.Hb=$.za),$.Va>$.Ub&&($.Va=$.Ub),0<$.L){var Qe=$.ed;for(we=0;4>we;++we){var Ce;if($.Qa.Cb){var Te=$.Qa.Lb[we];$.Qa.Fb||(Te+=Qe.Tb)}else Te=Qe.Tb;for(Ce=0;1>=Ce;++Ce){var Ne=$.gd[we][Ce],Ke=Te;if(Qe.Pc&&(Ke+=Qe.vd[0],Ce&&(Ke+=Qe.od[0])),0<(Ke=0>Ke?0:63<Ke?63:Ke)){var De=Ke;0<Qe.wb&&(De=4<Qe.wb?De>>2:De>>1)>9-Qe.wb&&(De=9-Qe.wb),1>De&&(De=1),Ne.dd=De,Ne.tc=2*Ke+De,Ne.ld=40<=Ke?2:15<=Ke?1:0}else Ne.tc=0;Ne.La=Ce}}}we=0}else DA($,6,"Frame setup failed"),we=$.a;if(we=we==0){if(we){$.$c=0,0<$.Aa||($.Ic=u0);t:{we=$.Ic,Qe=4*(De=$.za);var Et=32*De,ct=De+1,Xt=0<$.L?De*(0<$.Aa?2:1):0,gt=($.Aa==2?2:1)*De;if((Ne=Qe+832+(Ce=3*(16*we+Ol[$.L])/2*Et)+(Te=$.Fa!=null&&0<$.Fa.length?$.Kc.c*$.Kc.i:0))!=Ne)we=0;else{if(Ne>$.Vb){if($.Vb=0,$.Ec=i(Ne),$.Fc=0,$.Ec==null){we=DA($,1,"no memory during frame initialization.");break t}$.Vb=Ne}Ne=$.Ec,Ke=$.Fc,$.Ac=Ne,$.Bc=Ke,Ke+=Qe,$.Gd=s(Et,ni),$.Hd=0,$.rb=s(ct+1,Bi),$.sb=1,$.wa=Xt?s(Xt,un):null,$.Y=0,$.D.Nb=0,$.D.wa=$.wa,$.D.Y=$.Y,0<$.Aa&&($.D.Y+=De),e(!0),$.oc=Ne,$.pc=Ke,Ke+=832,$.ya=s(gt,Qa),$.aa=0,$.D.ya=$.ya,$.D.aa=$.aa,$.Aa==2&&($.D.aa+=De),$.R=16*De,$.B=8*De,De=(Et=Ol[$.L])*$.R,Et=Et/2*$.B,$.sa=Ne,$.ta=Ke+De,$.qa=$.sa,$.ra=$.ta+16*we*$.R+Et,$.Ha=$.qa,$.Ia=$.ra+8*we*$.B+Et,$.$c=0,Ke+=Ce,$.mb=Te?Ne:null,$.nb=Te?Ke:null,e(Ke+Te<=$.Fc+$.Vb),as($),n($.Ac,$.Bc,0,Qe),we=1}}if(we){if(le.ka=0,le.y=$.sa,le.O=$.ta,le.f=$.qa,le.N=$.ra,le.ea=$.Ha,le.Vd=$.Ia,le.fa=$.R,le.Rc=$.B,le.F=null,le.J=0,!lh){for(we=-255;255>=we;++we)sh[255+we]=0>we?-we:we;for(we=-1020;1020>=we;++we)xl[1020+we]=-128>we?-128:127<we?127:we;for(we=-112;112>=we;++we)oh[112+we]=-16>we?-16:15<we?15:we;for(we=-255;510>=we;++we)ou[255+we]=0>we?0:255<we?255:we;lh=1}Ra=Ve,li=ss,Gs=We,tn=X,pr=ye,la=na,TA=Ei,RA=us,nr=Ul,YA=y,ca=Hs,zs=fs,gs=S,Lo=z,nu=Ds,iu=_o,au=ia,su=cs,Qi[0]=eu,Qi[1]=kt,Qi[2]=Jc,Qi[3]=Zc,Qi[4]=ai,Qi[5]=Mi,Qi[6]=El,Qi[7]=qi,Qi[8]=Au,Qi[9]=tu,Si[0]=La,Si[1]=KA,Si[2]=yA,Si[3]=Yr,Si[4]=xA,Si[5]=Yc,Si[6]=os,fa[0]=Fl,fa[1]=Zt,fa[2]=Ps,fa[3]=Rs,fa[4]=ru,fa[5]=ks,fa[6]=hr,we=1}else we=0}we&&(we=(function(He,Br){for(He.M=0;He.M<He.Va;++He.M){var Yt,ht=He.Jc[He.M&He.Xb],Ge=He.m,ir=He;for(Yt=0;Yt<ir.za;++Yt){var jt=Ge,AA=ir,SA=AA.Ac,Kr=AA.Bc+4*Yt,hn=AA.zc,JA=AA.ya[AA.aa+Yt];if(AA.Qa.Bb?JA.$b=Le(jt,AA.Pa.jb[0])?2+Le(jt,AA.Pa.jb[2]):Le(jt,AA.Pa.jb[1]):JA.$b=0,AA.kc&&(JA.Ad=Le(jt,AA.Bd)),JA.Za=!Le(jt,145)+0,JA.Za){var ZA=JA.Ob,jr=0;for(AA=0;4>AA;++AA){var ar,hA=hn[0+AA];for(ar=0;4>ar;++ar){hA=Jg[SA[Kr+ar]][hA];for(var bA=fh[Le(jt,hA[0])];0<bA;)bA=fh[2*bA+Le(jt,hA[bA])];hA=-bA,SA[Kr+ar]=hA}r(ZA,jr,SA,Kr,4),jr+=4,hn[0+AA]=hA}}else hA=Le(jt,156)?Le(jt,128)?1:3:Le(jt,163)?2:0,JA.Ob[0]=hA,n(SA,Kr,hA,4),n(hn,0,hA,4);JA.Dd=Le(jt,142)?Le(jt,114)?Le(jt,183)?1:3:2:0}if(ir.m.Ka)return DA(He,7,"Premature end-of-partition0 encountered.");for(;He.ja<He.za;++He.ja){if(ir=ht,jt=(Ge=He).rb[Ge.sb-1],SA=Ge.rb[Ge.sb+Ge.ja],Yt=Ge.ya[Ge.aa+Ge.ja],Kr=Ge.kc?Yt.Ad:0)jt.la=SA.la=0,Yt.Za||(jt.Na=SA.Na=0),Yt.Hc=0,Yt.Gc=0,Yt.ia=0;else{var er,vA;if(jt=SA,SA=ir,Kr=Ge.Pa.Xc,hn=Ge.ya[Ge.aa+Ge.ja],JA=Ge.pb[hn.$b],AA=hn.ad,ZA=0,jr=Ge.rb[Ge.sb-1],hA=ar=0,n(AA,ZA,0,384),hn.Za)var Vr=0,Ii=Kr[3];else{bA=i(16);var sr=jt.Na+jr.Na;if(sr=Oo(SA,Kr[1],sr,JA.Eb,0,bA,0),jt.Na=jr.Na=(0<sr)+0,1<sr)Ra(bA,0,AA,ZA);else{var En=bA[0]+3>>3;for(bA=0;256>bA;bA+=16)AA[ZA+bA]=En}Vr=1,Ii=Kr[0]}var NA=15&jt.la,br=15&jr.la;for(bA=0;4>bA;++bA){var Kn=1&br;for(En=vA=0;4>En;++En)NA=NA>>1|(Kn=(sr=Oo(SA,Ii,sr=Kn+(1&NA),JA.Sc,Vr,AA,ZA))>Vr)<<7,vA=vA<<2|(3<sr?3:1<sr?2:AA[ZA+0]!=0),ZA+=16;NA>>=4,br=br>>1|Kn<<7,ar=(ar<<8|vA)>>>0}for(Ii=NA,Vr=br>>4,er=0;4>er;er+=2){for(vA=0,NA=jt.la>>4+er,br=jr.la>>4+er,bA=0;2>bA;++bA){for(Kn=1&br,En=0;2>En;++En)sr=Kn+(1&NA),NA=NA>>1|(Kn=0<(sr=Oo(SA,Kr[2],sr,JA.Qc,0,AA,ZA)))<<3,vA=vA<<2|(3<sr?3:1<sr?2:AA[ZA+0]!=0),ZA+=16;NA>>=2,br=br>>1|Kn<<5}hA|=vA<<4*er,Ii|=NA<<4<<er,Vr|=(240&br)<<er}jt.la=Ii,jr.la=Vr,hn.Hc=ar,hn.Gc=hA,hn.ia=43690&hA?0:JA.ia,Kr=!(ar|hA)}if(0<Ge.L&&(Ge.wa[Ge.Y+Ge.ja]=Ge.gd[Yt.$b][Yt.Za],Ge.wa[Ge.Y+Ge.ja].La|=!Kr),ir.Ka)return DA(He,7,"Premature end-of-file encountered.")}if(as(He),Ge=Br,ir=1,Yt=(ht=He).D,jt=0<ht.L&&ht.M>=ht.zb&&ht.M<=ht.Va,ht.Aa==0)t:{if(Yt.M=ht.M,Yt.uc=jt,XA(ht,Yt),ir=1,Yt=(vA=ht.D).Nb,jt=(hA=Ol[ht.L])*ht.R,SA=hA/2*ht.B,bA=16*Yt*ht.R,En=8*Yt*ht.B,Kr=ht.sa,hn=ht.ta-jt+bA,JA=ht.qa,AA=ht.ra-SA+En,ZA=ht.Ha,jr=ht.Ia-SA+En,br=(NA=vA.M)==0,ar=NA>=ht.Va-1,ht.Aa==2&&XA(ht,vA),vA.uc)for(Kn=(sr=ht).D.M,e(sr.D.uc),vA=sr.yb;vA<sr.Hb;++vA){Vr=vA,Ii=Kn;var dn=(Fn=(Cr=sr).D).Nb;er=Cr.R;var Fn=Fn.wa[Fn.Y+Vr],jn=Cr.sa,Un=Cr.ta+16*dn*er+16*Vr,Vn=Fn.dd,OA=Fn.tc;if(OA!=0)if(e(3<=OA),Cr.L==1)0<Vr&&iu(jn,Un,er,OA+4),Fn.La&&su(jn,Un,er,OA),0<Ii&&nu(jn,Un,er,OA+4),Fn.La&&au(jn,Un,er,OA);else{var Gn=Cr.B,xn=Cr.qa,ms=Cr.ra+8*dn*Gn+8*Vr,Li=Cr.Ha,Cr=Cr.Ia+8*dn*Gn+8*Vr;dn=Fn.ld,0<Vr&&(RA(jn,Un,er,OA+4,Vn,dn),YA(xn,ms,Li,Cr,Gn,OA+4,Vn,dn)),Fn.La&&(zs(jn,Un,er,OA,Vn,dn),Lo(xn,ms,Li,Cr,Gn,OA,Vn,dn)),0<Ii&&(TA(jn,Un,er,OA+4,Vn,dn),nr(xn,ms,Li,Cr,Gn,OA+4,Vn,dn)),Fn.La&&(ca(jn,Un,er,OA,Vn,dn),gs(xn,ms,Li,Cr,Gn,OA,Vn,dn))}}if(ht.ia&&alert("todo:DitherRow"),Ge.put!=null){if(vA=16*NA,NA=16*(NA+1),br?(Ge.y=ht.sa,Ge.O=ht.ta+bA,Ge.f=ht.qa,Ge.N=ht.ra+En,Ge.ea=ht.Ha,Ge.W=ht.Ia+En):(vA-=hA,Ge.y=Kr,Ge.O=hn,Ge.f=JA,Ge.N=AA,Ge.ea=ZA,Ge.W=jr),ar||(NA-=hA),NA>Ge.o&&(NA=Ge.o),Ge.F=null,Ge.J=null,ht.Fa!=null&&0<ht.Fa.length&&vA<NA&&(Ge.J=dr(ht,Ge,vA,NA-vA),Ge.F=ht.mb,Ge.F==null&&Ge.F.length==0)){ir=DA(ht,3,"Could not decode alpha data.");break t}vA<Ge.j&&(hA=Ge.j-vA,vA=Ge.j,e(!(1&hA)),Ge.O+=ht.R*hA,Ge.N+=ht.B*(hA>>1),Ge.W+=ht.B*(hA>>1),Ge.F!=null&&(Ge.J+=Ge.width*hA)),vA<NA&&(Ge.O+=Ge.v,Ge.N+=Ge.v>>1,Ge.W+=Ge.v>>1,Ge.F!=null&&(Ge.J+=Ge.v),Ge.ka=vA-Ge.j,Ge.U=Ge.va-Ge.v,Ge.T=NA-vA,ir=Ge.put(Ge))}Yt+1!=ht.Ic||ar||(r(ht.sa,ht.ta-jt,Kr,hn+16*ht.R,jt),r(ht.qa,ht.ra-SA,JA,AA+8*ht.B,SA),r(ht.Ha,ht.Ia-SA,ZA,jr+8*ht.B,SA))}if(!ir)return DA(He,6,"Output aborted.")}return 1})($,le)),le.bc!=null&&le.bc(le),we&=1}return we?($.cb=0,we):0})(u,E)||(w=u.a)}}else w=u.a}w==0&&R.Oa!=null&&R.Oa.fd&&(w=xi(R.ba))}R=w}T=R!=0?null:11>T?M.f.RGBA.eb:M.f.kb.y}else T=null;return T};var Xs=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(N,Z){for(var I="",O=0;O<4;O++)I+=String.fromCharCode(N[Z++]);return I}function h(N,Z){return N[Z+0]|N[Z+1]<<8}function v(N,Z){return(N[Z+0]|N[Z+1]<<8|N[Z+2]<<16)>>>0}function m(N,Z){return(N[Z+0]|N[Z+1]<<8|N[Z+2]<<16|N[Z+3]<<24)>>>0}new o;var g=[0],C=[0],F=[],_=new o,x=t,H=(function(N,Z){var I={},O=0,Y=!1,ee=0,ce=0;if(I.frames=[],!(function(P,J){for(var te=0;te<4;te++)if(P[J+te]!="RIFF".charCodeAt(te))return!0;return!1})(N,Z)){for(m(N,Z+=4),Z+=8;Z<N.length;){var be=l(N,Z),Fe=m(N,Z+=4);Z+=4;var de=Fe+(1&Fe);switch(be){case"VP8 ":case"VP8L":I.frames[O]===void 0&&(I.frames[O]={}),(Ue=I.frames[O]).src_off=Y?ce:Z-8,Ue.src_size=ee+Fe+8,O++,Y&&(Y=!1,ee=0,ce=0);break;case"VP8X":(Ue=I.header={}).feature_flags=N[Z];var Ee=Z+4;Ue.canvas_width=1+v(N,Ee),Ee+=3,Ue.canvas_height=1+v(N,Ee),Ee+=3;break;case"ALPH":Y=!0,ee=de+8,ce=Z-8;break;case"ANIM":(Ue=I.header).bgcolor=m(N,Z),Ee=Z+4,Ue.loop_count=h(N,Ee),Ee+=2;break;case"ANMF":var Pe,Ue;(Ue=I.frames[O]={}).offset_x=2*v(N,Z),Z+=3,Ue.offset_y=2*v(N,Z),Z+=3,Ue.width=1+v(N,Z),Z+=3,Ue.height=1+v(N,Z),Z+=3,Ue.duration=v(N,Z),Z+=3,Pe=N[Z++],Ue.dispose=1&Pe,Ue.blend=Pe>>1&1}be!="ANMF"&&(Z+=de)}return I}})(x,0);H.response=x,H.rgbaoutput=!0,H.dataurl=!1;var D=H.header?H.header:null,k=H.frames?H.frames:null;if(D){D.loop_counter=D.loop_count,g=[D.canvas_height],C=[D.canvas_width];for(var re=0;re<k.length&&k[re].blend!=0;re++);}var fe=k[0],Ae=_.WebPDecodeRGBA(x,fe.src_off,fe.src_size,C,g);fe.rgba=Ae,fe.imgwidth=C[0],fe.imgheight=g[0];for(var j=0;j<C[0]*g[0]*4;j++)F[j]=Ae[j];return this.width=C,this.height=g,this.data=F,this}function d9(){var t,e=this.internal.__metadata__.metadata,A=unescape(encodeURIComponent(e));t=this.internal.__metadata__.rawXml?A:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function p9(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(t){var e,A,r,n,i,s,a,o,l,h=function(P){return P=P||{},this.isStrokeTransparent=P.isStrokeTransparent||!1,this.strokeOpacity=P.strokeOpacity||1,this.strokeStyle=P.strokeStyle||"#000000",this.fillStyle=P.fillStyle||"#000000",this.isFillTransparent=P.isFillTransparent||!1,this.fillOpacity=P.fillOpacity||1,this.font=P.font||"10px sans-serif",this.textBaseline=P.textBaseline||"alphabetic",this.textAlign=P.textAlign||"left",this.lineWidth=P.lineWidth||1,this.lineJoin=P.lineJoin||"miter",this.lineCap=P.lineCap||"butt",this.path=P.path||[],this.transform=P.transform!==void 0?P.transform.clone():new o,this.globalCompositeOperation=P.globalCompositeOperation||"normal",this.globalAlpha=P.globalAlpha||1,this.clip_path=P.clip_path||[],this.currentPoint=P.currentPoint||new s,this.miterLimit=P.miterLimit||10,this.lastPoint=P.lastPoint||new s,this.lineDashOffset=P.lineDashOffset||0,this.lineDash=P.lineDash||[],this.margin=P.margin||[0,0,0,0],this.prevPageLastElemOffset=P.prevPageLastElemOffset||0,this.ignoreClearRect=typeof P.ignoreClearRect!="boolean"||P.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new v(this),e=this.internal.f2,A=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,s=this.internal.Point,a=this.internal.Rectangle,o=this.internal.Matrix,l=new h}]);var v=function(P){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var J=P;Object.defineProperty(this,"pdf",{get:function(){return J}});var te=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return te},set:function(q){te=!!q}});var ie=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return ie},set:function(q){ie=!!q}});var oe=0;Object.defineProperty(this,"posX",{get:function(){return oe},set:function(q){isNaN(q)||(oe=q)}});var ve=0;Object.defineProperty(this,"posY",{get:function(){return ve},set:function(q){isNaN(q)||(ve=q)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(q){var je;typeof q=="number"?je=[q,q,q,q]:((je=new Array(4))[0]=q[0],je[1]=q.length>=2?q[1]:je[0],je[2]=q.length>=3?q[2]:je[0],je[3]=q.length>=4?q[3]:je[1]),l.margin=je}});var xe=!1;Object.defineProperty(this,"autoPaging",{get:function(){return xe},set:function(q){xe=q}});var _e=0;Object.defineProperty(this,"lastBreak",{get:function(){return _e},set:function(q){_e=q}});var Le=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Le},set:function(q){Le=q}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(q){q instanceof h&&(l=q)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(q){l.path=q}});var Oe=[];Object.defineProperty(this,"ctxStack",{get:function(){return Oe},set:function(q){Oe=q}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(q){var je;je=m(q),this.ctx.fillStyle=je.style,this.ctx.isFillTransparent=je.a===0,this.ctx.fillOpacity=je.a,this.pdf.setFillColor(je.r,je.g,je.b,{a:je.a}),this.pdf.setTextColor(je.r,je.g,je.b,{a:je.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(q){var je=m(q);this.ctx.strokeStyle=je.style,this.ctx.isStrokeTransparent=je.a===0,this.ctx.strokeOpacity=je.a,je.a===0?this.pdf.setDrawColor(255,255,255):(je.a,this.pdf.setDrawColor(je.r,je.g,je.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(q){["butt","round","square"].indexOf(q)!==-1&&(this.ctx.lineCap=q,this.pdf.setLineCap(q))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(q){isNaN(q)||(this.ctx.lineWidth=q,this.pdf.setLineWidth(q))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(q){["bevel","round","miter"].indexOf(q)!==-1&&(this.ctx.lineJoin=q,this.pdf.setLineJoin(q))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(q){isNaN(q)||(this.ctx.miterLimit=q,this.pdf.setMiterLimit(q))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(q){this.ctx.textBaseline=q}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(q){["right","end","center","left","start"].indexOf(q)!==-1&&(this.ctx.textAlign=q)}});var Je=null,qe=null,at=null;Object.defineProperty(this,"fontFaces",{get:function(){return at},set:function(q){Je=null,qe=null,at=q}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(q){var je;if(this.ctx.font=q,(je=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(q))!==null){var Tt=je[1];je[2];var ut=je[3],Re=je[4];je[5];var dt=je[6],$e=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Re)[2];Re=Math.floor($e==="px"?parseFloat(Re)*this.pdf.internal.scaleFactor:$e==="em"?parseFloat(Re)*this.pdf.getFontSize():parseFloat(Re)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Re);var lt=(function(Xe){var aA,Gt,It=[],Rt=Xe.trim();if(Rt==="")return D2;if(Rt in q_)return[q_[Rt]];for(;Rt!=="";){switch(Gt=null,aA=(Rt=j_(Rt)).charAt(0)){case'"':case"'":Gt=o9(Rt.substring(1),aA);break;default:Gt=l9(Rt)}if(Gt===null||(It.push(Gt[0]),(Rt=j_(Gt[1]))!==""&&Rt.charAt(0)!==","))return D2;Rt=Rt.replace(/^,/,"")}return It})(dt);if(this.fontFaces){var Ze=(function(Xe,aA){var Gt=Xe.getFontList(),It=JSON.stringify(Gt);if(Je===null||qe!==It){var Rt=(function(tA){var mt=[];return Object.keys(tA).forEach(function(Jt){tA[Jt].forEach(function(nt){var xt=null;switch(nt){case"bold":xt={family:Jt,weight:"bold"};break;case"italic":xt={family:Jt,style:"italic"};break;case"bolditalic":xt={family:Jt,weight:"bold",style:"italic"};break;case"":case"normal":xt={family:Jt}}xt!==null&&(xt.ref={name:Jt,style:nt},mt.push(xt))})}),mt})(Gt);Je=(function(tA){for(var mt={},Jt=0;Jt<tA.length;++Jt){var nt=k2(tA[Jt]),xt=nt.family,fA=nt.stretch,bt=nt.style,Ct=nt.weight;mt[xt]=mt[xt]||{},mt[xt][fA]=mt[xt][fA]||{},mt[xt][fA][bt]=mt[xt][fA][bt]||{},mt[xt][fA][bt][Ct]=nt}return mt})(Rt.concat(aA)),qe=It}return Je})(this.pdf,this.fontFaces),Ut=lt.map(function(Xe){return{family:Xe,stretch:"normal",weight:ut,style:Tt}}),Nt=(function(Xe,aA,Gt){for(var It=(Gt=Gt||{}).defaultFontFamily||"times",Rt=Object.assign({},s9,Gt.genericFontFamilies||{}),tA=null,mt=null,Jt=0;Jt<aA.length;++Jt)if(Rt[(tA=k2(aA[Jt])).family]&&(tA.family=Rt[tA.family]),Xe.hasOwnProperty(tA.family)){mt=Xe[tA.family];break}if(!(mt=mt||Xe[It]))throw new Error("Could not find a font-family for the rule '"+K_(tA)+"' and default family '"+It+"'.");if(mt=(function(nt,xt){if(xt[nt])return xt[nt];var fA=V2[nt],bt=fA<=V2.normal?-1:1,Ct=M_(xt,uS,fA,bt);if(!Ct)throw new Error("Could not find a matching font-stretch value for "+nt);return Ct})(tA.stretch,mt),mt=(function(nt,xt){if(xt[nt])return xt[nt];for(var fA=cS[nt],bt=0;bt<fA.length;++bt)if(xt[fA[bt]])return xt[fA[bt]];throw new Error("Could not find a matching font-style for "+nt)})(tA.style,mt),!(mt=(function(nt,xt){if(xt[nt])return xt[nt];if(nt===400&&xt[500])return xt[500];if(nt===500&&xt[400])return xt[400];var fA=a9[nt],bt=M_(xt,fS,fA,nt<400?-1:1);if(!bt)throw new Error("Could not find a matching font-weight for value "+nt);return bt})(tA.weight,mt)))throw new Error("Failed to resolve a font for the rule '"+K_(tA)+"'.");return mt})(Ze,Ut);this.pdf.setFont(Nt.ref.name,Nt.ref.style)}else{var St="";(ut==="bold"||parseInt(ut,10)>=700||Tt==="bold")&&(St="bold"),Tt==="italic"&&(St+="italic"),St.length===0&&(St="normal");for(var Ht="",Ot={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},tt=0;tt<lt.length;tt++){if(this.pdf.internal.getFont(lt[tt],St,{noFallback:!0,disableWarning:!0})!==void 0){Ht=lt[tt];break}if(St==="bolditalic"&&this.pdf.internal.getFont(lt[tt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ht=lt[tt],St="bold";else if(this.pdf.internal.getFont(lt[tt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ht=lt[tt],St="normal";break}}if(Ht===""){for(var yt=0;yt<lt.length;yt++)if(Ot[lt[yt]]){Ht=Ot[lt[yt]];break}}Ht=Ht===""?"Times":Ht,this.pdf.setFont(Ht,St)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(q){this.ctx.globalCompositeOperation=q}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(q){this.ctx.globalAlpha=q}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(q){this.ctx.lineDashOffset=q,Ue.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(q){this.ctx.lineDash=q,Ue.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(q){this.ctx.ignoreClearRect=!!q}})};v.prototype.setLineDash=function(P){this.lineDash=P},v.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},v.prototype.fill=function(){k.call(this,"fill",!1)},v.prototype.stroke=function(){k.call(this,"stroke",!1)},v.prototype.beginPath=function(){this.path=[{type:"begin"}]},v.prototype.moveTo=function(P,J){if(isNaN(P)||isNaN(J))throw MA.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var te=this.ctx.transform.applyToPoint(new s(P,J));this.path.push({type:"mt",x:te.x,y:te.y}),this.ctx.lastPoint=new s(P,J)},v.prototype.closePath=function(){var P=new s(0,0),J=0;for(J=this.path.length-1;J!==-1;J--)if(this.path[J].type==="begin"&&dA(this.path[J+1])==="object"&&typeof this.path[J+1].x=="number"){P=new s(this.path[J+1].x,this.path[J+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(P.x,P.y)},v.prototype.lineTo=function(P,J){if(isNaN(P)||isNaN(J))throw MA.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var te=this.ctx.transform.applyToPoint(new s(P,J));this.path.push({type:"lt",x:te.x,y:te.y}),this.ctx.lastPoint=new s(te.x,te.y)},v.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),k.call(this,null,!0)},v.prototype.quadraticCurveTo=function(P,J,te,ie){if(isNaN(te)||isNaN(ie)||isNaN(P)||isNaN(J))throw MA.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var oe=this.ctx.transform.applyToPoint(new s(te,ie)),ve=this.ctx.transform.applyToPoint(new s(P,J));this.path.push({type:"qct",x1:ve.x,y1:ve.y,x:oe.x,y:oe.y}),this.ctx.lastPoint=new s(oe.x,oe.y)},v.prototype.bezierCurveTo=function(P,J,te,ie,oe,ve){if(isNaN(oe)||isNaN(ve)||isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie))throw MA.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var xe=this.ctx.transform.applyToPoint(new s(oe,ve)),_e=this.ctx.transform.applyToPoint(new s(P,J)),Le=this.ctx.transform.applyToPoint(new s(te,ie));this.path.push({type:"bct",x1:_e.x,y1:_e.y,x2:Le.x,y2:Le.y,x:xe.x,y:xe.y}),this.ctx.lastPoint=new s(xe.x,xe.y)},v.prototype.arc=function(P,J,te,ie,oe,ve){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie)||isNaN(oe))throw MA.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ve=!!ve,!this.ctx.transform.isIdentity){var xe=this.ctx.transform.applyToPoint(new s(P,J));P=xe.x,J=xe.y;var _e=this.ctx.transform.applyToPoint(new s(0,te)),Le=this.ctx.transform.applyToPoint(new s(0,0));te=Math.sqrt(Math.pow(_e.x-Le.x,2)+Math.pow(_e.y-Le.y,2))}Math.abs(oe-ie)>=2*Math.PI&&(ie=0,oe=2*Math.PI),this.path.push({type:"arc",x:P,y:J,radius:te,startAngle:ie,endAngle:oe,counterclockwise:ve})},v.prototype.arcTo=function(P,J,te,ie,oe){throw new Error("arcTo not implemented.")},v.prototype.rect=function(P,J,te,ie){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie))throw MA.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(P,J),this.lineTo(P+te,J),this.lineTo(P+te,J+ie),this.lineTo(P,J+ie),this.lineTo(P,J),this.lineTo(P+te,J),this.lineTo(P,J)},v.prototype.fillRect=function(P,J,te,ie){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie))throw MA.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var oe={};this.lineCap!=="butt"&&(oe.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(oe.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(P,J,te,ie),this.fill(),oe.hasOwnProperty("lineCap")&&(this.lineCap=oe.lineCap),oe.hasOwnProperty("lineJoin")&&(this.lineJoin=oe.lineJoin)}},v.prototype.strokeRect=function(P,J,te,ie){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie))throw MA.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");C.call(this)||(this.beginPath(),this.rect(P,J,te,ie),this.stroke())},v.prototype.clearRect=function(P,J,te,ie){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie))throw MA.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(P,J,te,ie))},v.prototype.save=function(P){P=typeof P!="boolean"||P;for(var J=this.pdf.internal.getCurrentPageInfo().pageNumber,te=0;te<this.pdf.internal.getNumberOfPages();te++)this.pdf.setPage(te+1),this.pdf.internal.out("q");if(this.pdf.setPage(J),P){this.ctx.fontSize=this.pdf.internal.getFontSize();var ie=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=ie}},v.prototype.restore=function(P){P=typeof P!="boolean"||P;for(var J=this.pdf.internal.getCurrentPageInfo().pageNumber,te=0;te<this.pdf.internal.getNumberOfPages();te++)this.pdf.setPage(te+1),this.pdf.internal.out("Q");this.pdf.setPage(J),P&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},v.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var m=function(P){var J,te,ie,oe;if(P.isCanvasGradient===!0&&(P=P.getColor()),!P)return{r:0,g:0,b:0,a:0,style:P};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(P))J=0,te=0,ie=0,oe=0;else{var ve=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(P);if(ve!==null)J=parseInt(ve[1]),te=parseInt(ve[2]),ie=parseInt(ve[3]),oe=1;else if((ve=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(P))!==null)J=parseInt(ve[1]),te=parseInt(ve[2]),ie=parseInt(ve[3]),oe=parseFloat(ve[4]);else{if(oe=1,typeof P=="string"&&P.charAt(0)!=="#"){var xe=new rS(P);P=xe.ok?xe.toHex():"#000000"}P.length===4?(J=P.substring(1,2),J+=J,te=P.substring(2,3),te+=te,ie=P.substring(3,4),ie+=ie):(J=P.substring(1,3),te=P.substring(3,5),ie=P.substring(5,7)),J=parseInt(J,16),te=parseInt(te,16),ie=parseInt(ie,16)}}return{r:J,g:te,b:ie,a:oe,style:P}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},C=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};v.prototype.fillText=function(P,J,te,ie){if(isNaN(J)||isNaN(te)||typeof P!="string")throw MA.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(ie=isNaN(ie)?void 0:ie,!g.call(this)){var oe=de(this.ctx.transform.rotation),ve=this.ctx.transform.scaleX;O.call(this,{text:P,x:J,y:te,scale:ve,angle:oe,align:this.textAlign,maxWidth:ie})}},v.prototype.strokeText=function(P,J,te,ie){if(isNaN(J)||isNaN(te)||typeof P!="string")throw MA.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!C.call(this)){ie=isNaN(ie)?void 0:ie;var oe=de(this.ctx.transform.rotation),ve=this.ctx.transform.scaleX;O.call(this,{text:P,x:J,y:te,scale:ve,renderingMode:"stroke",angle:oe,align:this.textAlign,maxWidth:ie})}},v.prototype.measureText=function(P){if(typeof P!="string")throw MA.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var J=this.pdf,te=this.pdf.internal.scaleFactor,ie=J.internal.getFontSize(),oe=J.getStringUnitWidth(P)*ie/J.internal.scaleFactor;return new function(ve){var xe=(ve=ve||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return xe}}),this}({width:oe*=Math.round(96*te/72*1e4)/1e4})},v.prototype.scale=function(P,J){if(isNaN(P)||isNaN(J))throw MA.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var te=new o(P,0,0,J,0,0);this.ctx.transform=this.ctx.transform.multiply(te)},v.prototype.rotate=function(P){if(isNaN(P))throw MA.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var J=new o(Math.cos(P),Math.sin(P),-Math.sin(P),Math.cos(P),0,0);this.ctx.transform=this.ctx.transform.multiply(J)},v.prototype.translate=function(P,J){if(isNaN(P)||isNaN(J))throw MA.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var te=new o(1,0,0,1,P,J);this.ctx.transform=this.ctx.transform.multiply(te)},v.prototype.transform=function(P,J,te,ie,oe,ve){if(isNaN(P)||isNaN(J)||isNaN(te)||isNaN(ie)||isNaN(oe)||isNaN(ve))throw MA.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var xe=new o(P,J,te,ie,oe,ve);this.ctx.transform=this.ctx.transform.multiply(xe)},v.prototype.setTransform=function(P,J,te,ie,oe,ve){P=isNaN(P)?1:P,J=isNaN(J)?0:J,te=isNaN(te)?0:te,ie=isNaN(ie)?1:ie,oe=isNaN(oe)?0:oe,ve=isNaN(ve)?0:ve,this.ctx.transform=new o(P,J,te,ie,oe,ve)};var F=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};v.prototype.drawImage=function(P,J,te,ie,oe,ve,xe,_e,Le){var Oe=this.pdf.getImageProperties(P),Je=1,qe=1,at=1,q=1;ie!==void 0&&_e!==void 0&&(at=_e/ie,q=Le/oe,Je=Oe.width/ie*_e/ie,qe=Oe.height/oe*Le/oe),ve===void 0&&(ve=J,xe=te,J=0,te=0),ie!==void 0&&_e===void 0&&(_e=ie,Le=oe),ie===void 0&&_e===void 0&&(_e=Oe.width,Le=Oe.height);var je=this.ctx.transform.decompose(),Tt=de(je.rotate.shx),ut=new o,Re=(ut=(ut=(ut=ut.multiply(je.translate)).multiply(je.skew)).multiply(je.scale)).applyToRectangle(new a(ve-J*at,xe-te*q,ie*Je,oe*qe));if(this.autoPaging){for(var dt,$e=_.call(this,Re),lt=[],Ze=0;Ze<$e.length;Ze+=1)lt.indexOf($e[Ze])===-1&<.push($e[Ze]);D(lt);for(var Ut=lt[0],Nt=lt[lt.length-1],St=Ut;St<Nt+1;St++){this.pdf.setPage(St);var Ht=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ot=St===1?this.posY+this.margin[0]:this.margin[0],tt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],yt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Xe=St===1?0:tt+(St-2)*yt;if(this.ctx.clip_path.length!==0){var aA=this.path;dt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(dt,this.posX+this.margin[3],-Xe+Ot+this.ctx.prevPageLastElemOffset),re.call(this,"fill",!0),this.path=aA}var Gt=JSON.parse(JSON.stringify(Re));Gt=H([Gt],this.posX+this.margin[3],-Xe+Ot+this.ctx.prevPageLastElemOffset)[0];var It=(St>Ut||St<Nt)&&F.call(this);It&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ht,yt,null).clip().discardPath()),this.pdf.addImage(P,"JPEG",Gt.x,Gt.y,Gt.w,Gt.h,null,null,Tt),It&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(P,"JPEG",Re.x,Re.y,Re.w,Re.h,null,null,Tt)};var _=function(P,J,te){var ie=[];J=J||this.pdf.internal.pageSize.width,te=te||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var oe=this.posY+this.ctx.prevPageLastElemOffset;switch(P.type){default:case"mt":case"lt":ie.push(Math.floor((P.y+oe)/te)+1);break;case"arc":ie.push(Math.floor((P.y+oe-P.radius)/te)+1),ie.push(Math.floor((P.y+oe+P.radius)/te)+1);break;case"qct":var ve=Ee(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x,P.y);ie.push(Math.floor((ve.y+oe)/te)+1),ie.push(Math.floor((ve.y+ve.h+oe)/te)+1);break;case"bct":var xe=Pe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x2,P.y2,P.x,P.y);ie.push(Math.floor((xe.y+oe)/te)+1),ie.push(Math.floor((xe.y+xe.h+oe)/te)+1);break;case"rect":ie.push(Math.floor((P.y+oe)/te)+1),ie.push(Math.floor((P.y+P.h+oe)/te)+1)}for(var _e=0;_e<ie.length;_e+=1)for(;this.pdf.internal.getNumberOfPages()<ie[_e];)x.call(this);return ie},x=function(){var P=this.fillStyle,J=this.strokeStyle,te=this.font,ie=this.lineCap,oe=this.lineWidth,ve=this.lineJoin;this.pdf.addPage(),this.fillStyle=P,this.strokeStyle=J,this.font=te,this.lineCap=ie,this.lineWidth=oe,this.lineJoin=ve},H=function(P,J,te){for(var ie=0;ie<P.length;ie++)switch(P[ie].type){case"bct":P[ie].x2+=J,P[ie].y2+=te;case"qct":P[ie].x1+=J,P[ie].y1+=te;default:P[ie].x+=J,P[ie].y+=te}return P},D=function(P){return P.sort(function(J,te){return J-te})},k=function(P,J){var te=this.fillStyle,ie=this.strokeStyle,oe=this.lineCap,ve=this.lineWidth,xe=Math.abs(ve*this.ctx.transform.scaleX),_e=this.lineJoin;if(this.autoPaging){for(var Le,Oe,Je=JSON.parse(JSON.stringify(this.path)),qe=JSON.parse(JSON.stringify(this.path)),at=[],q=0;q<qe.length;q++)if(qe[q].x!==void 0)for(var je=_.call(this,qe[q]),Tt=0;Tt<je.length;Tt+=1)at.indexOf(je[Tt])===-1&&at.push(je[Tt]);for(var ut=0;ut<at.length;ut++)for(;this.pdf.internal.getNumberOfPages()<at[ut];)x.call(this);D(at);for(var Re=at[0],dt=at[at.length-1],$e=Re;$e<dt+1;$e++){this.pdf.setPage($e),this.fillStyle=te,this.strokeStyle=ie,this.lineCap=oe,this.lineWidth=xe,this.lineJoin=_e;var lt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ze=$e===1?this.posY+this.margin[0]:this.margin[0],Ut=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Nt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],St=$e===1?0:Ut+($e-2)*Nt;if(this.ctx.clip_path.length!==0){var Ht=this.path;Le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(Le,this.posX+this.margin[3],-St+Ze+this.ctx.prevPageLastElemOffset),re.call(this,P,!0),this.path=Ht}if(Oe=JSON.parse(JSON.stringify(Je)),this.path=H(Oe,this.posX+this.margin[3],-St+Ze+this.ctx.prevPageLastElemOffset),J===!1||$e===0){var Ot=($e>Re||$e<dt)&&F.call(this);Ot&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],lt,Nt,null).clip().discardPath()),re.call(this,P,J),Ot&&this.pdf.restoreGraphicsState()}this.lineWidth=ve}this.path=Je}else this.lineWidth=xe,re.call(this,P,J),this.lineWidth=ve},re=function(P,J){if((P!=="stroke"||J||!C.call(this))&&(P==="stroke"||J||!g.call(this))){for(var te,ie,oe=[],ve=this.path,xe=0;xe<ve.length;xe++){var _e=ve[xe];switch(_e.type){case"begin":oe.push({begin:!0});break;case"close":oe.push({close:!0});break;case"mt":oe.push({start:_e,deltas:[],abs:[]});break;case"lt":var Le=oe.length;if(ve[xe-1]&&!isNaN(ve[xe-1].x)&&(te=[_e.x-ve[xe-1].x,_e.y-ve[xe-1].y],Le>0)){for(;Le>=0;Le--)if(oe[Le-1].close!==!0&&oe[Le-1].begin!==!0){oe[Le-1].deltas.push(te),oe[Le-1].abs.push(_e);break}}break;case"bct":te=[_e.x1-ve[xe-1].x,_e.y1-ve[xe-1].y,_e.x2-ve[xe-1].x,_e.y2-ve[xe-1].y,_e.x-ve[xe-1].x,_e.y-ve[xe-1].y],oe[oe.length-1].deltas.push(te);break;case"qct":var Oe=ve[xe-1].x+2/3*(_e.x1-ve[xe-1].x),Je=ve[xe-1].y+2/3*(_e.y1-ve[xe-1].y),qe=_e.x+2/3*(_e.x1-_e.x),at=_e.y+2/3*(_e.y1-_e.y),q=_e.x,je=_e.y;te=[Oe-ve[xe-1].x,Je-ve[xe-1].y,qe-ve[xe-1].x,at-ve[xe-1].y,q-ve[xe-1].x,je-ve[xe-1].y],oe[oe.length-1].deltas.push(te);break;case"arc":oe.push({deltas:[],abs:[],arc:!0}),Array.isArray(oe[oe.length-1].abs)&&oe[oe.length-1].abs.push(_e)}}ie=J?null:P==="stroke"?"stroke":"fill";for(var Tt=!1,ut=0;ut<oe.length;ut++)if(oe[ut].arc)for(var Re=oe[ut].abs,dt=0;dt<Re.length;dt++){var $e=Re[dt];$e.type==="arc"?j.call(this,$e.x,$e.y,$e.radius,$e.startAngle,$e.endAngle,$e.counterclockwise,void 0,J,!Tt):Y.call(this,$e.x,$e.y),Tt=!0}else if(oe[ut].close===!0)this.pdf.internal.out("h"),Tt=!1;else if(oe[ut].begin!==!0){var lt=oe[ut].start.x,Ze=oe[ut].start.y;ee.call(this,oe[ut].deltas,lt,Ze),Tt=!0}ie&&N.call(this,ie),J&&Z.call(this)}},fe=function(P){var J=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,te=J*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return P-te;case"top":return P+J-te;case"hanging":return P+J-2*te;case"middle":return P+J/2-te;default:return P}},Ae=function(P){return P+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};v.prototype.createLinearGradient=function(){var P=function(){};return P.colorStops=[],P.addColorStop=function(J,te){this.colorStops.push([J,te])},P.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},P.isCanvasGradient=!0,P},v.prototype.createPattern=function(){return this.createLinearGradient()},v.prototype.createRadialGradient=function(){return this.createLinearGradient()};var j=function(P,J,te,ie,oe,ve,xe,_e,Le){for(var Oe=be.call(this,te,ie,oe,ve),Je=0;Je<Oe.length;Je++){var qe=Oe[Je];Je===0&&(Le?I.call(this,qe.x1+P,qe.y1+J):Y.call(this,qe.x1+P,qe.y1+J)),ce.call(this,P,J,qe.x2,qe.y2,qe.x3,qe.y3,qe.x4,qe.y4)}_e?Z.call(this):N.call(this,xe)},N=function(P){switch(P){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Z=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(P,J){this.pdf.internal.out(A(P)+" "+r(J)+" m")},O=function(P){var J;switch(P.align){case"right":case"end":J="right";break;case"center":J="center";break;default:J="left"}var te,ie,oe,ve=this.pdf.getTextDimensions(P.text),xe=fe.call(this,P.y),_e=Ae.call(this,xe)-ve.h,Le=this.ctx.transform.applyToPoint(new s(P.x,xe));if(this.autoPaging){var Oe=this.ctx.transform.decompose(),Je=new o;Je=(Je=(Je=Je.multiply(Oe.translate)).multiply(Oe.skew)).multiply(Oe.scale);for(var qe=this.ctx.transform.applyToRectangle(new a(P.x,xe,ve.w,ve.h)),at=Je.applyToRectangle(new a(P.x,_e,ve.w,ve.h)),q=_.call(this,at),je=[],Tt=0;Tt<q.length;Tt+=1)je.indexOf(q[Tt])===-1&&je.push(q[Tt]);D(je);for(var ut=je[0],Re=je[je.length-1],dt=ut;dt<Re+1;dt++){this.pdf.setPage(dt);var $e=dt===1?this.posY+this.margin[0]:this.margin[0],lt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ze=this.pdf.internal.pageSize.height-this.margin[2],Ut=Ze-this.margin[0],Nt=this.pdf.internal.pageSize.width-this.margin[1],St=Nt-this.margin[3],Ht=dt===1?0:lt+(dt-2)*Ut;if(this.ctx.clip_path.length!==0){var Ot=this.path;te=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=H(te,this.posX+this.margin[3],-1*Ht+$e),re.call(this,"fill",!0),this.path=Ot}var tt=H([JSON.parse(JSON.stringify(at))],this.posX+this.margin[3],-Ht+$e+this.ctx.prevPageLastElemOffset)[0];P.scale>=.01&&(ie=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ie*P.scale),oe=this.lineWidth,this.lineWidth=oe*P.scale);var yt=this.autoPaging!=="text";if(yt||tt.y+tt.h<=Ze){if(yt||tt.y>=$e&&tt.x<=Nt){var Xe=yt?P.text:this.pdf.splitTextToSize(P.text,P.maxWidth||Nt-tt.x)[0],aA=H([JSON.parse(JSON.stringify(qe))],this.posX+this.margin[3],-Ht+$e+this.ctx.prevPageLastElemOffset)[0],Gt=yt&&(dt>ut||dt<Re)&&F.call(this);Gt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],St,Ut,null).clip().discardPath()),this.pdf.text(Xe,aA.x,aA.y,{angle:P.angle,align:J,renderingMode:P.renderingMode}),Gt&&this.pdf.restoreGraphicsState()}}else tt.y<Ze&&(this.ctx.prevPageLastElemOffset+=Ze-tt.y);P.scale>=.01&&(this.pdf.setFontSize(ie),this.lineWidth=oe)}}else P.scale>=.01&&(ie=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ie*P.scale),oe=this.lineWidth,this.lineWidth=oe*P.scale),this.pdf.text(P.text,Le.x+this.posX,Le.y+this.posY,{angle:P.angle,align:J,renderingMode:P.renderingMode,maxWidth:P.maxWidth}),P.scale>=.01&&(this.pdf.setFontSize(ie),this.lineWidth=oe)},Y=function(P,J,te,ie){te=te||0,ie=ie||0,this.pdf.internal.out(A(P+te)+" "+r(J+ie)+" l")},ee=function(P,J,te){return this.pdf.lines(P,J,te,null,null)},ce=function(P,J,te,ie,oe,ve,xe,_e){this.pdf.internal.out([e(n(te+P)),e(i(ie+J)),e(n(oe+P)),e(i(ve+J)),e(n(xe+P)),e(i(_e+J)),"c"].join(" "))},be=function(P,J,te,ie){for(var oe=2*Math.PI,ve=Math.PI/2;J>te;)J-=oe;var xe=Math.abs(te-J);xe<oe&&ie&&(xe=oe-xe);for(var _e=[],Le=ie?-1:1,Oe=J;xe>1e-5;){var Je=Oe+Le*Math.min(xe,ve);_e.push(Fe.call(this,P,Oe,Je)),xe-=Math.abs(Je-Oe),Oe=Je}return _e},Fe=function(P,J,te){var ie=(te-J)/2,oe=P*Math.cos(ie),ve=P*Math.sin(ie),xe=oe,_e=-ve,Le=xe*xe+_e*_e,Oe=Le+xe*oe+_e*ve,Je=4/3*(Math.sqrt(2*Le*Oe)-Oe)/(xe*ve-_e*oe),qe=xe-Je*_e,at=_e+Je*xe,q=qe,je=-at,Tt=ie+J,ut=Math.cos(Tt),Re=Math.sin(Tt);return{x1:P*Math.cos(J),y1:P*Math.sin(J),x2:qe*ut-at*Re,y2:qe*Re+at*ut,x3:q*ut-je*Re,y3:q*Re+je*ut,x4:P*Math.cos(te),y4:P*Math.sin(te)}},de=function(P){return 180*P/Math.PI},Ee=function(P,J,te,ie,oe,ve){var xe=P+.5*(te-P),_e=J+.5*(ie-J),Le=oe+.5*(te-oe),Oe=ve+.5*(ie-ve),Je=Math.min(P,oe,xe,Le),qe=Math.max(P,oe,xe,Le),at=Math.min(J,ve,_e,Oe),q=Math.max(J,ve,_e,Oe);return new a(Je,at,qe-Je,q-at)},Pe=function(P,J,te,ie,oe,ve,xe,_e){var Le,Oe,Je,qe,at,q,je,Tt,ut,Re,dt,$e,lt,Ze,Ut=te-P,Nt=ie-J,St=oe-te,Ht=ve-ie,Ot=xe-oe,tt=_e-ve;for(Oe=0;Oe<41;Oe++)ut=(je=(Je=P+(Le=Oe/40)*Ut)+Le*((at=te+Le*St)-Je))+Le*(at+Le*(oe+Le*Ot-at)-je),Re=(Tt=(qe=J+Le*Nt)+Le*((q=ie+Le*Ht)-qe))+Le*(q+Le*(ve+Le*tt-q)-Tt),Oe==0?(dt=ut,$e=Re,lt=ut,Ze=Re):(dt=Math.min(dt,ut),$e=Math.min($e,Re),lt=Math.max(lt,ut),Ze=Math.max(Ze,Re));return new a(Math.round(dt),Math.round($e),Math.round(lt-dt),Math.round(Ze-$e))},Ue=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var P,J,te=(P=this.ctx.lineDash,J=this.ctx.lineDashOffset,JSON.stringify({lineDash:P,lineDashOffset:J}));this.prevLineDash!==te&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=te)}}})(Ft.API),(function(t){var e=function(s){var a,o,l,h,v,m,g,C,F,_;for(/[^\x00-\xFF]/.test(s),o=[],l=0,h=(s+=a="\0\0\0\0".slice(s.length%4||4)).length;h>l;l+=4)(v=(s.charCodeAt(l)<<24)+(s.charCodeAt(l+1)<<16)+(s.charCodeAt(l+2)<<8)+s.charCodeAt(l+3))!==0?(m=(v=((v=((v=((v=(v-(_=v%85))/85)-(F=v%85))/85)-(C=v%85))/85)-(g=v%85))/85)%85,o.push(m+33,g+33,C+33,F+33,_+33)):o.push(122);return(function(x,H){for(var D=H;D>0;D--)x.pop()})(o,a.length),String.fromCharCode.apply(String,o)+"~>"},A=function(s){var a,o,l,h,v,m=String,g="length",C=255,F="charCodeAt",_="slice",x="replace";for(s[_](-2),s=s[_](0,-2)[x](/\s/g,"")[x]("z","!!!!!"),l=[],h=0,v=(s+=a="uuuuu"[_](s[g]%5||5))[g];v>h;h+=5)o=52200625*(s[F](h)-33)+614125*(s[F](h+1)-33)+7225*(s[F](h+2)-33)+85*(s[F](h+3)-33)+(s[F](h+4)-33),l.push(C&o>>24,C&o>>16,C&o>>8,C&o);return(function(H,D){for(var k=D;k>0;k--)H.pop()})(l,a[g]),m.fromCharCode.apply(m,l)},r=function(s){return s.split("").map(function(a){return("0"+a.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(s){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),a.test(s)===!1)return"";for(var o="",l=0;l<s.length;l+=2)o+=String.fromCharCode("0x"+(s[l]+s[l+1]));return o},i=function(s){for(var a=new Uint8Array(s.length),o=s.length;o--;)a[o]=s.charCodeAt(o);return(a=od(a)).reduce(function(l,h){return l+String.fromCharCode(h)},"")};t.processDataByFilters=function(s,a){var o=0,l=s||"",h=[];for(typeof(a=a||[])=="string"&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":l=A(l),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=r(l),h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:l,reverseChain:h.reverse().join(" ")}}})(Ft.API),(function(t){t.loadFile=function(e,A,r){return(function(n,i,s){i=i!==!1,s=typeof s=="function"?s:function(){};var a=void 0;try{a=(function(o,l,h){var v=new XMLHttpRequest,m=0,g=function(C){var F=C.length,_=[],x=String.fromCharCode;for(m=0;m<F;m+=1)_.push(x(255&C.charCodeAt(m)));return _.join("")};if(v.open("GET",o,!l),v.overrideMimeType("text/plain; charset=x-user-defined"),l===!1&&(v.onload=function(){v.status===200?h(g(this.responseText)):h(void 0)}),v.send(null),l&&v.status===200)return g(v.responseText)})(n,i,s)}catch{}return a})(e,A,r)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile})(Ft.API),(function(t){function e(){return(Kt.html2canvas?Promise.resolve(Kt.html2canvas):Promise.resolve().then(()=>An(sw()))).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function A(){return(Kt.DOMPurify?Promise.resolve(Kt.DOMPurify):Promise.resolve().then(()=>(e5(),Zb))).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var o=dA(a);return o==="undefined"?"undefined":o==="string"||a instanceof String?"string":o==="number"||a instanceof Number?"number":o==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":o==="object"?"object":"unknown"},n=function(a,o){var l=document.createElement(a);for(var h in o.className&&(l.className=o.className),o.innerHTML&&o.dompurify&&(l.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)l.style[h]=o.style[h];return l},i=function a(o,l){for(var h=o.nodeType===3?document.createTextNode(o.nodeValue):o.cloneNode(!1),v=o.firstChild;v;v=v.nextSibling)l!==!0&&v.nodeType===1&&v.nodeName==="SCRIPT"||h.appendChild(a(v,l));return o.nodeType===1&&(o.nodeName==="CANVAS"?(h.width=o.width,h.height=o.height,h.getContext("2d").drawImage(o,0,0)):o.nodeName!=="TEXTAREA"&&o.nodeName!=="SELECT"||(h.value=o.value),h.addEventListener("load",function(){h.scrollTop=o.scrollTop,h.scrollLeft=o.scrollLeft},!0)),h},s=function a(o){var l=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),h=a.convert(Promise.resolve(),l);return(h=h.setProgress(1,a,1,[a])).set(o)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(a,o){return a.__proto__=o||s.prototype,a},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(a,o){return this.then(function(){switch(o=o||(function(l){switch(r(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(a),o){case"string":return this.then(A).then(function(l){return this.set({src:n("div",{innerHTML:a,dompurify:l})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},s.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},o=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(o),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(e).then(function(o){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,o(this.prop.container,l)}).then(function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(e).then(function(o){var l=this.opt.jsPDF,h=this.opt.fontFaces,v=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,m=Object.assign({async:!0,allowTaint:!0,scale:v,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete m.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=h,h)for(var g=0;g<h.length;++g){var C=h[g],F=C.src.find(function(_){return _.format==="truetype"});F&&l.addFont(F.url,C.ref.name,C.ref.style)}return m.windowHeight=m.windowHeight||0,m.windowHeight=m.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):m.windowHeight,l.context2d.save(!0),o(this.prop.container,m)}).then(function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(a,o,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(a,o):this.outputPdf(a,o)},s.prototype.outputPdf=function(a,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,o)})},s.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},s.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(a){if(r(a)!=="object")return this;var o=Object.keys(a||{}).map(function(l){if(l in s.template.prop)return function(){this.prop[l]=a[l]};switch(l){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[l]=a[l]}}},this);return this.then(function(){return this.thenList(o)})},s.prototype.get=function(a,o){return this.then(function(){var l=a in s.template.prop?this.prop[a]:this.opt[a];return o?o(l):l})},s.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},s.prototype.setPageSize=function(a){function o(l,h){return Math.floor(l*h/72*96)}return this.then(function(){(a=a||Ft.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:o(a.inner.width,a.k),height:o(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},s.prototype.setProgress=function(a,o,l,h){return a!=null&&(this.progress.val=a),o!=null&&(this.progress.state=o),l!=null&&(this.progress.n=l),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(a,o,l,h){return this.setProgress(a?this.progress.val+a:null,o||null,l?this.progress.n+l:null,h?this.progress.stack.concat(h):null)},s.prototype.then=function(a,o){var l=this;return this.thenCore(a,o,function(h,v){return l.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(m){return l.updateProgress(null,h),m}).then(h,v).then(function(m){return l.updateProgress(1),m})})},s.prototype.thenCore=function(a,o,l){l=l||Promise.prototype.then;var h=this;a&&(a=a.bind(h)),o&&(o=o.bind(h));var v=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?h:s.convert(Object.assign({},h),Promise.prototype),m=l.call(v,a,o);return s.convert(m,h.__proto__)},s.prototype.thenExternal=function(a,o){return Promise.prototype.then.call(this,a,o)},s.prototype.thenList=function(a){var o=this;return a.forEach(function(l){o=o.thenCore(l)}),o},s.prototype.catch=function(a){a&&(a=a.bind(this));var o=Promise.prototype.catch.call(this,a);return s.convert(o,this)},s.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},s.prototype.error=function(a){return this.then(function(){throw new Error(a)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,Ft.getPageSize=function(a,o,l){if(dA(a)==="object"){var h=a;a=h.orientation,o=h.unit||o,l=h.format||l}o=o||"mm",l=l||"a4",a=(""+(a||"P")).toLowerCase();var v,m=(""+l).toLowerCase(),g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(o){case"pt":v=1;break;case"mm":v=72/25.4;break;case"cm":v=72/2.54;break;case"in":v=72;break;case"px":v=.75;break;case"pc":case"em":v=12;break;case"ex":v=6;break;default:throw"Invalid unit: "+o}var C,F=0,_=0;if(g.hasOwnProperty(m))F=g[m][1]/v,_=g[m][0]/v;else try{F=l[1],_=l[0]}catch{throw new Error("Invalid format: "+l)}if(a==="p"||a==="portrait")a="p",_>F&&(C=_,_=F,F=C);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",F>_&&(C=_,_=F,F=C)}return{width:_,height:F,unit:o,k:v,orientation:a}},t.html=function(a,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(k2):null;var l=new s(o);return o.worker?l:l.from(a).doCallback()}})(Ft.API),Ft.API.addJS=function(t){var e,A,r=(function(n){for(var i="",s=0;s<n.length;s++){var a=n[s];if(a==="("||a===")"){for(var o=0,l=s-1;l>=0&&n[l]==="\\";l--)o++;i+=o%2==0?"\\"+a:a}else i+=a}return i})(t);return this.internal.events.subscribe("postPutResources",function(){e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(e+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){e!==void 0&&A!==void 0&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")}),this},(function(t){var e;t.events.push(["postPutResources",function(){var A=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=A.outline.render().split(/\r\n/),i=0;i<n.length;i++){var s=n[i],a=r.exec(s);if(a!=null){var o=a[1];A.internal.newObjectDeferredBegin(o,!1)}A.internal.write(s)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,h=[];for(i=0;i<l;i++){var v=A.internal.newObject();h.push(v);var m=A.internal.getPageInfo(i+1);A.internal.write("<< /D["+m.objId+" 0 R /XYZ null null null]>> endobj")}var g=A.internal.newObject();for(A.internal.write("<< /Names [ "),i=0;i<h.length;i++)A.internal.write("(page_"+(i+1)+")"+h[i]+" 0 R");A.internal.write(" ] >>","endobj"),e=A.internal.newObject(),A.internal.write("<< /Dests "+g+" 0 R"),A.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var A=this;A.outline.root.children.length>0&&(A.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&A.internal.write("/Names "+e+" 0 R"))}]),t.events.push(["initialized",function(){var A=this;A.outline={createNamedDestinations:!1,root:{children:[]}},A.outline.add=function(r,n,i){var s={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(s),s},A.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=A,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},A.outline.genIds_r=function(r){r.id=A.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},A.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},A.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var s=r.children[i];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var a=this.count=this.count_r({count:0},s);if(a>0&&this.line("/Count "+a),s.options&&s.options.pageNumber){var o=A.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var l=0;l<r.children.length;l++)this.renderItems(r.children[l])},A.outline.line=function(r){this.ctx.val+=r+`\r
|
|
52
52
|
`},A.outline.makeRef=function(r){return r.id+" 0 R"},A.outline.makeString=function(r){return"("+A.internal.pdfEscape(r)+")"},A.outline.objStart=function(r){this.ctx.val+=`\r
|
|
53
53
|
`+r.id+` 0 obj\r
|
|
54
54
|
<<\r
|
|
@@ -85,7 +85,7 @@ endbfchar
|
|
|
85
85
|
CMapName currentdict /CMap defineresource pop
|
|
86
86
|
end
|
|
87
87
|
end`};e.events.push(["putFont",function(i){(function(s){var a=s.font,o=s.out,l=s.newObject,h=s.putStream;if(a.metadata instanceof t.API.TTFFont&&a.encoding==="Identity-H"){for(var v=a.metadata.Unicode.widths,m=a.metadata.subset.encode(a.metadata.glyIdsUsed,1),g="",C=0;C<m.length;C++)g+=String.fromCharCode(m[C]);var F=l();h({data:g,addLength1:!0,objectId:F}),o("endobj");var _=l();h({data:r(a.metadata.toUnicode),addLength1:!0,objectId:_}),o("endobj");var x=l();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+qc(a.fontName)),o("/FontFile2 "+F+" 0 R"),o("/FontBBox "+t.API.PDFObject.convert(a.metadata.bbox)),o("/Flags "+a.metadata.flags),o("/StemV "+a.metadata.stemV),o("/ItalicAngle "+a.metadata.italicAngle),o("/Ascent "+a.metadata.ascender),o("/Descent "+a.metadata.decender),o("/CapHeight "+a.metadata.capHeight),o(">>"),o("endobj");var H=l();o("<<"),o("/Type /Font"),o("/BaseFont /"+qc(a.fontName)),o("/FontDescriptor "+x+" 0 R"),o("/W "+t.API.PDFObject.convert(v)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+a.encoding+")"),o(">>"),o(">>"),o("endobj"),a.objectNumber=l(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+_+" 0 R"),o("/BaseFont /"+qc(a.fontName)),o("/Encoding /"+a.encoding),o("/DescendantFonts ["+H+" 0 R]"),o(">>"),o("endobj"),a.isAlreadyPutted=!0}})(i)}]),e.events.push(["putFont",function(i){(function(s){var a=s.font,o=s.out,l=s.newObject,h=s.putStream;if(a.metadata instanceof t.API.TTFFont&&a.encoding==="WinAnsiEncoding"){for(var v=a.metadata.rawData,m="",g=0;g<v.length;g++)m+=String.fromCharCode(v[g]);var C=l();h({data:m,addLength1:!0,objectId:C}),o("endobj");var F=l();h({data:r(a.metadata.toUnicode),addLength1:!0,objectId:F}),o("endobj");var _=l();o("<<"),o("/Descent "+a.metadata.decender),o("/CapHeight "+a.metadata.capHeight),o("/StemV "+a.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+C+" 0 R"),o("/Flags 96"),o("/FontBBox "+t.API.PDFObject.convert(a.metadata.bbox)),o("/FontName /"+qc(a.fontName)),o("/ItalicAngle "+a.metadata.italicAngle),o("/Ascent "+a.metadata.ascender),o(">>"),o("endobj"),a.objectNumber=l();for(var x=0;x<a.metadata.hmtx.widths.length;x++)a.metadata.hmtx.widths[x]=parseInt(a.metadata.hmtx.widths[x]*(1e3/a.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+F+" 0 R/BaseFont/"+qc(a.fontName)+"/FontDescriptor "+_+" 0 R/Encoding/"+a.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(a.metadata.hmtx.widths)+">>"),o("endobj"),a.isAlreadyPutted=!0}})(i)}]);var n=function(i){var s,a=i.text||"",o=i.x,l=i.y,h=i.options||{},v=i.mutex||{},m=v.pdfEscape,g=v.activeFontKey,C=v.fonts,F=g,_="",x=0,H="",D=C[F].encoding;if(C[F].encoding!=="Identity-H")return{text:a,x:o,y:l,options:h,mutex:v};for(H=a,F=g,Array.isArray(a)&&(H=a[0]),x=0;x<H.length;x+=1)C[F].metadata.hasOwnProperty("cmap")&&(s=C[F].metadata.cmap.unicode.codeMap[H[x].charCodeAt(0)]),s||H[x].charCodeAt(0)<256&&C[F].metadata.hasOwnProperty("Unicode")?_+=H[x]:_+="";var k="";return parseInt(F.slice(1))<14||D==="WinAnsiEncoding"?k=m(_,F).split("").map(function(re){return re.charCodeAt(0).toString(16)}).join(""):D==="Identity-H"&&(k=A(_,C[F])),v.isHex=!0,{text:k,x:o,y:l,options:h,mutex:v}};e.events.push(["postProcessText",function(i){var s=i.text||"",a=[],o={text:s,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(s)){var l=0;for(l=0;l<s.length;l+=1)Array.isArray(s[l])&&s[l].length===3?a.push([n(Object.assign({},o,{text:s[l][0]})).text,s[l][1],s[l][2]]):a.push(n(Object.assign({},o,{text:s[l]})).text);i.text=a}else i.text=n(Object.assign({},o,{text:s})).text}])})(Ft),(function(t){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(A){return e.call(this),this.internal.vFS[A]!==void 0},t.addFileToVFS=function(A,r){return e.call(this),this.internal.vFS[A]=r,this},t.getFileFromVFS=function(A){return e.call(this),this.internal.vFS[A]!==void 0?this.internal.vFS[A]:null}})(Ft.API),(function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(r){var n,i,s,a,o,l,h,v=e,m=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],C={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},F={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},_=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],x=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),H=!1,D=0;this.__bidiEngine__={};var k=function(I){var O=I.charCodeAt(),Y=O>>8,ee=F[Y];return ee!==void 0?v[256*ee+(255&O)]:Y===252||Y===253?"AL":x.test(Y)?"L":Y===8?"R":"N"},re=function(I){for(var O,Y=0;Y<I.length;Y++){if((O=k(I.charAt(Y)))==="L")return!1;if(O==="R")return!0}return!1},fe=function(I,O,Y,ee){var ce,be,Fe,de,Ee=O[ee];switch(Ee){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":H=!1;break;case"N":case"AN":break;case"EN":H&&(Ee="AN");break;case"AL":H=!0,Ee="R";break;case"WS":case"BN":Ee="N";break;case"CS":ee<1||ee+1>=O.length||(ce=Y[ee-1])!=="EN"&&ce!=="AN"||(be=O[ee+1])!=="EN"&&be!=="AN"?Ee="N":H&&(be="AN"),Ee=be===ce?be:"N";break;case"ES":Ee=(ce=ee>0?Y[ee-1]:"B")==="EN"&&ee+1<O.length&&O[ee+1]==="EN"?"EN":"N";break;case"ET":if(ee>0&&Y[ee-1]==="EN"){Ee="EN";break}if(H){Ee="N";break}for(Fe=ee+1,de=O.length;Fe<de&&O[Fe]==="ET";)Fe++;Ee=Fe<de&&O[Fe]==="EN"?"EN":"N";break;case"NSM":if(s&&!a){for(de=O.length,Fe=ee+1;Fe<de&&O[Fe]==="NSM";)Fe++;if(Fe<de){var Pe=I[ee],Ue=Pe>=1425&&Pe<=2303||Pe===64286;if(ce=O[Fe],Ue&&(ce==="R"||ce==="AL")){Ee="R";break}}}Ee=ee<1||(ce=O[ee-1])==="B"?"N":Y[ee-1];break;case"B":H=!1,n=!0,Ee=D;break;case"S":i=!0,Ee="N"}return Ee},Ae=function(I,O,Y){var ee=I.split("");return Y&&j(ee,Y,{hiLevel:D}),ee.reverse(),O&&O.reverse(),ee.join("")},j=function(I,O,Y){var ee,ce,be,Fe,de,Ee=-1,Pe=I.length,Ue=0,P=[],J=D?g:m,te=[];for(H=!1,n=!1,i=!1,ce=0;ce<Pe;ce++)te[ce]=k(I[ce]);for(be=0;be<Pe;be++){if(de=Ue,P[be]=fe(I,te,P,be),ee=240&(Ue=J[de][C[P[be]]]),Ue&=15,O[be]=Fe=J[Ue][5],ee>0)if(ee===16){for(ce=Ee;ce<be;ce++)O[ce]=1;Ee=-1}else Ee=-1;if(J[Ue][6])Ee===-1&&(Ee=be);else if(Ee>-1){for(ce=Ee;ce<be;ce++)O[ce]=Fe;Ee=-1}te[be]==="B"&&(O[be]=0),Y.hiLevel|=Fe}i&&(function(ie,oe,ve){for(var xe=0;xe<ve;xe++)if(ie[xe]==="S"){oe[xe]=D;for(var _e=xe-1;_e>=0&&ie[_e]==="WS";_e--)oe[_e]=D}})(te,O,Pe)},N=function(I,O,Y,ee,ce){if(!(ce.hiLevel<I)){if(I===1&&D===1&&!n)return O.reverse(),void(Y&&Y.reverse());for(var be,Fe,de,Ee,Pe=O.length,Ue=0;Ue<Pe;){if(ee[Ue]>=I){for(de=Ue+1;de<Pe&&ee[de]>=I;)de++;for(Ee=Ue,Fe=de-1;Ee<Fe;Ee++,Fe--)be=O[Ee],O[Ee]=O[Fe],O[Fe]=be,Y&&(be=Y[Ee],Y[Ee]=Y[Fe],Y[Fe]=be);Ue=de}Ue++}}},Z=function(I,O,Y){var ee=I.split(""),ce={hiLevel:D};return Y||(Y=[]),j(ee,Y,ce),(function(be,Fe,de){if(de.hiLevel!==0&&h)for(var Ee,Pe=0;Pe<be.length;Pe++)Fe[Pe]===1&&(Ee=_.indexOf(be[Pe]))>=0&&(be[Pe]=_[Ee+1])})(ee,Y,ce),N(2,ee,O,Y,ce),N(1,ee,O,Y,ce),ee.join("")};return this.__bidiEngine__.doBidiReorder=function(I,O,Y){if((function(ce,be){if(be)for(var Fe=0;Fe<ce.length;Fe++)be[Fe]=Fe;a===void 0&&(a=re(ce)),l===void 0&&(l=re(ce))})(I,O),s||!o||l)if(s&&o&&a^l)D=a?1:0,I=Ae(I,O,Y);else if(!s&&o&&l)D=a?1:0,I=Z(I,O,Y),I=Ae(I,O);else if(!s||a||o||l){if(s&&!o&&a^l)I=Ae(I,O),a?(D=0,I=Z(I,O,Y)):(D=1,I=Z(I,O,Y),I=Ae(I,O));else if(s&&a&&!o&&l)D=1,I=Z(I,O,Y),I=Ae(I,O);else if(!s&&!o&&a^l){var ee=h;a?(D=1,I=Z(I,O,Y),D=0,h=!1,I=Z(I,O,Y),h=ee):(D=0,I=Z(I,O,Y),I=Ae(I,O),D=1,h=!1,I=Z(I,O,Y),h=ee,I=Ae(I,O))}}else D=0,I=Z(I,O,Y);else D=a?1:0,I=Z(I,O,Y);return I},this.__bidiEngine__.setOptions=function(I){I&&(s=I.isInputVisual,o=I.isOutputVisual,a=I.isInputRtl,l=I.isOutputRtl,h=I.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],A=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(r){var n=r.text;r.x,r.y;var i=r.options||{};r.mutex,i.lang;var s=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,A.setOptions(i),Object.prototype.toString.call(n)==="[object Array]"){var a=0;for(s=[],a=0;a<n.length;a+=1)Object.prototype.toString.call(n[a])==="[object Array]"?s.push([A.doBidiReorder(n[a][0]),n[a][1],n[a][2]]):s.push([A.doBidiReorder(n[a])]);r.text=s}else r.text=A.doBidiReorder(n);A.setOptions({isInputVisual:!0})}])})(Ft),Ft.API.TTFFont=(function(){function t(e){var A;if(this.rawData=e,A=this.contents=new Fo(e),this.contents.pos=4,A.readString(4)==="ttcf")throw new Error("TTCF not supported.");A.pos=0,this.parse(),this.subset=new Q9(this),this.registerTTF()}return t.open=function(e){return new t(e)},t.prototype.parse=function(){return this.directory=new g9(this.contents),this.head=new v9(this),this.name=new C9(this),this.cmap=new dS(this),this.toUnicode={},this.hhea=new m9(this),this.maxp=new E9(this),this.hmtx=new F9(this),this.post=new B9(this),this.os2=new y9(this),this.loca=new S9(this),this.glyf=new U9(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var e,A,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var s,a,o,l;for(l=[],s=0,a=(o=this.bbox).length;s<a;s++)e=o[s],l.push(Math.round(e*this.scaleFactor));return l}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(A=n>>16)&&(A=-(1+(65535^A))),this.italicAngle=+(A+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(e){var A;return((A=this.cmap.unicode)!=null?A.codeMap[e]:void 0)||0},t.prototype.widthOfGlyph=function(e){var A;return A=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*A},t.prototype.widthOfString=function(e,A,r){var n,i,s,a;for(s=0,i=0,a=(e=""+e).length;0<=a?i<a:i>a;i=0<=a?++i:--i)n=e.charCodeAt(i),s+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/A)||0;return s*(A/1e3)},t.prototype.lineHeight=function(e,A){var r;return A==null&&(A=!1),r=A?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},t})();var Fa,Fo=(function(){function t(e){this.data=e??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(e){return this.data[this.pos++]=e},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},t.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},t.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},t.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},t.prototype.readString=function(e){var A,r;for(r=[],A=0;0<=e?A<e:A>e;A=0<=e?++A:--A)r[A]=String.fromCharCode(this.readByte());return r.join("")},t.prototype.writeString=function(e){var A,r,n;for(n=[],A=0,r=e.length;0<=r?A<r:A>r;A=0<=r?++A:--A)n.push(this.writeByte(e.charCodeAt(A)));return n},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(e){return this.writeInt16(e)},t.prototype.readLongLong=function(){var e,A,r,n,i,s,a,o;return e=this.readByte(),A=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),s=this.readByte(),a=this.readByte(),o=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^A)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^s)+256*(255^a)+(255^o)+1):72057594037927940*e+281474976710656*A+1099511627776*r+4294967296*n+16777216*i+65536*s+256*a+o},t.prototype.writeLongLong=function(e){var A,r;return A=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(A>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(e){return this.writeInt32(e)},t.prototype.read=function(e){var A,r;for(A=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)A.push(this.readByte());return A},t.prototype.write=function(e){var A,r,n,i;for(i=[],r=0,n=e.length;r<n;r++)A=e[r],i.push(this.writeByte(A));return i},t})(),g9=(function(){var t;function e(A){var r,n,i;for(this.scalarType=A.readInt(),this.tableCount=A.readShort(),this.searchRange=A.readShort(),this.entrySelector=A.readShort(),this.rangeShift=A.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)r={tag:A.readString(4),checksum:A.readInt(),offset:A.readInt(),length:A.readInt()},this.tables[r.tag]=r}return e.prototype.encode=function(A){var r,n,i,s,a,o,l,h,v,m,g,C,F;for(F in g=Object.keys(A).length,o=Math.log(2),v=16*Math.floor(Math.log(g)/o),s=Math.floor(v/o),h=16*g-v,(n=new Fo).writeInt(this.scalarType),n.writeShort(g),n.writeShort(v),n.writeShort(s),n.writeShort(h),i=16*g,l=n.pos+i,a=null,C=[],A)for(m=A[F],n.writeString(F),n.writeInt(t(m)),n.writeInt(l),n.writeInt(m.length),C=C.concat(m),F==="head"&&(a=l),l+=m.length;l%4;)C.push(0),l++;return n.write(C),r=2981146554-t(n.data),n.pos=a+8,n.writeUInt32(r),n.data},t=function(A){var r,n,i,s;for(A=pS.call(A);A.length%4;)A.push(0);for(i=new Fo(A),n=0,r=0,s=A.length;r<s;r=r+=4)n+=i.readUInt32();return 4294967295&n},e})(),w9={}.hasOwnProperty,ns=function(t,e){for(var A in e)w9.call(e,A)&&(t[A]=e[A]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t};Fa=(function(){function t(e){var A;this.file=e,A=this.file.directory.tables[this.tag],this.exists=!!A,A&&(this.offset=A.offset,this.length=A.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t})();var v9=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ns(t,Fa),t.prototype.tag="head",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},t.prototype.encode=function(e){var A;return(A=new Fo).writeInt(this.version),A.writeInt(this.revision),A.writeInt(this.checkSumAdjustment),A.writeInt(this.magicNumber),A.writeShort(this.flags),A.writeShort(this.unitsPerEm),A.writeLongLong(this.created),A.writeLongLong(this.modified),A.writeShort(this.xMin),A.writeShort(this.yMin),A.writeShort(this.xMax),A.writeShort(this.yMax),A.writeShort(this.macStyle),A.writeShort(this.lowestRecPPEM),A.writeShort(this.fontDirectionHint),A.writeShort(e),A.writeShort(this.glyphDataFormat),A.data},t})(),AS=(function(){function t(e,A){var r,n,i,s,a,o,l,h,v,m,g,C,F,_,x,H,D;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=A+e.readInt(),v=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=e.readByte();break;case 4:for(g=e.readUInt16(),m=g/2,e.pos+=6,i=(function(){var k,re;for(re=[],o=k=0;0<=m?k<m:k>m;o=0<=m?++k:--k)re.push(e.readUInt16());return re})(),e.pos+=2,F=(function(){var k,re;for(re=[],o=k=0;0<=m?k<m:k>m;o=0<=m?++k:--k)re.push(e.readUInt16());return re})(),l=(function(){var k,re;for(re=[],o=k=0;0<=m?k<m:k>m;o=0<=m?++k:--k)re.push(e.readUInt16());return re})(),h=(function(){var k,re;for(re=[],o=k=0;0<=m?k<m:k>m;o=0<=m?++k:--k)re.push(e.readUInt16());return re})(),n=(this.length-e.pos+this.offset)/2,a=(function(){var k,re;for(re=[],o=k=0;0<=n?k<n:k>n;o=0<=n?++k:--k)re.push(e.readUInt16());return re})(),o=x=0,D=i.length;x<D;o=++x)for(_=i[o],r=H=C=F[o];C<=_?H<=_:H>=_;r=C<=_?++H:--H)h[o]===0?s=r+l[o]:(s=a[h[o]/2+(r-C)-(m-o)]||0)!==0&&(s+=l[o]),this.codeMap[r]=65535&s}e.pos=v}return t.encode=function(e,A){var r,n,i,s,a,o,l,h,v,m,g,C,F,_,x,H,D,k,re,fe,Ae,j,N,Z,I,O,Y,ee,ce,be,Fe,de,Ee,Pe,Ue,P,J,te,ie,oe,ve,xe,_e,Le,Oe,Je;switch(ee=new Fo,s=Object.keys(e).sort(function(qe,at){return qe-at}),A){case"macroman":for(F=0,_=(function(){var qe=[];for(C=0;C<256;++C)qe.push(0);return qe})(),H={0:0},i={},ce=0,Ee=s.length;ce<Ee;ce++)H[_e=e[n=s[ce]]]==null&&(H[_e]=++F),i[n]={old:e[n],new:H[e[n]]},_[n]=H[e[n]];return ee.writeUInt16(1),ee.writeUInt16(0),ee.writeUInt32(12),ee.writeUInt16(0),ee.writeUInt16(262),ee.writeUInt16(0),ee.write(_),{charMap:i,subtable:ee.data,maxGlyphID:F+1};case"unicode":for(O=[],v=[],D=0,H={},r={},x=l=null,be=0,Pe=s.length;be<Pe;be++)H[re=e[n=s[be]]]==null&&(H[re]=++D),r[n]={old:re,new:H[re]},a=H[re]-n,x!=null&&a===l||(x&&v.push(x),O.push(n),l=a),x=n;for(x&&v.push(x),v.push(65535),O.push(65535),Z=2*(N=O.length),j=2*Math.pow(Math.log(N)/Math.LN2,2),m=Math.log(j/2)/Math.LN2,Ae=2*N-j,o=[],fe=[],g=[],C=Fe=0,Ue=O.length;Fe<Ue;C=++Fe){if(I=O[C],h=v[C],I===65535){o.push(0),fe.push(0);break}if(I-(Y=r[I].new)>=32768)for(o.push(0),fe.push(2*(g.length+N-C)),n=de=I;I<=h?de<=h:de>=h;n=I<=h?++de:--de)g.push(r[n].new);else o.push(Y-I),fe.push(0)}for(ee.writeUInt16(3),ee.writeUInt16(1),ee.writeUInt32(12),ee.writeUInt16(4),ee.writeUInt16(16+8*N+2*g.length),ee.writeUInt16(0),ee.writeUInt16(Z),ee.writeUInt16(j),ee.writeUInt16(m),ee.writeUInt16(Ae),ve=0,P=v.length;ve<P;ve++)n=v[ve],ee.writeUInt16(n);for(ee.writeUInt16(0),xe=0,J=O.length;xe<J;xe++)n=O[xe],ee.writeUInt16(n);for(Le=0,te=o.length;Le<te;Le++)a=o[Le],ee.writeUInt16(a);for(Oe=0,ie=fe.length;Oe<ie;Oe++)k=fe[Oe],ee.writeUInt16(k);for(Je=0,oe=g.length;Je<oe;Je++)F=g[Je],ee.writeUInt16(F);return{charMap:r,subtable:ee.data,maxGlyphID:D+1}}},t})(),dS=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ns(t,Fa),t.prototype.tag="cmap",t.prototype.parse=function(e){var A,r,n;for(e.pos=this.offset,this.version=e.readUInt16(),n=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:r>n;r=0<=n?++r:--r)A=new AS(e,this.offset),this.tables.push(A),A.isUnicode&&this.unicode==null&&(this.unicode=A);return!0},t.encode=function(e,A){var r,n;return A==null&&(A="macroman"),r=AS.encode(e,A),(n=new Fo).writeUInt16(0),n.writeUInt16(1),r.table=n.data.concat(r.subtable),r},t})(),m9=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ns(t,Fa),t.prototype.tag="hhea",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},t})(),y9=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ns(t,Fa),t.prototype.tag="OS/2",t.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=(function(){var A,r;for(r=[],A=0;A<10;++A)r.push(e.readByte());return r})(),this.charRange=(function(){var A,r;for(r=[],A=0;A<4;++A)r.push(e.readInt());return r})(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=(function(){var A,r;for(r=[],A=0;A<2;A=++A)r.push(e.readInt());return r})(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},t})(),B9=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ns(t,Fa),t.prototype.tag="post",t.prototype.parse=function(e){var A,r,n;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(r=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=r?i<r:i>r;i=0<=r?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],n=[];e.pos<this.offset+this.length;)A=e.readByte(),n.push(this.names.push(e.readString(A)));return n;case 151552:return r=e.readUInt16(),this.offsets=e.read(r);case 262144:return this.map=function(){var s,a,o;for(o=[],i=s=0,a=this.file.maxp.numGlyphs;0<=a?s<a:s>a;i=0<=a?++s:--s)o.push(e.readUInt32());return o}.call(this)}},t})(),b9=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},C9=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ns(t,Fa),t.prototype.tag="name",t.prototype.parse=function(e){var A,r,n,i,s,a,o,l,h,v,m;for(e.pos=this.offset,e.readShort(),A=e.readShort(),a=e.readShort(),r=[],i=0;0<=A?i<A:i>A;i=0<=A?++i:--i)r.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+a+e.readShort()});for(o={},i=h=0,v=r.length;h<v;i=++h)n=r[i],e.pos=n.offset,l=e.readString(n.length),s=new b9(l,n),o[m=n.nameID]==null&&(o[m]=[]),o[n.nameID].push(s);this.strings=o,this.copyright=o[0],this.fontFamily=o[1],this.fontSubfamily=o[2],this.uniqueSubfamily=o[3],this.fontName=o[4],this.version=o[5];try{this.postscriptName=o[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=o[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=o[7],this.manufacturer=o[8],this.designer=o[9],this.description=o[10],this.vendorUrl=o[11],this.designerUrl=o[12],this.license=o[13],this.licenseUrl=o[14],this.preferredFamily=o[15],this.preferredSubfamily=o[17],this.compatibleFull=o[18],this.sampleText=o[19]},t})(),E9=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ns(t,Fa),t.prototype.tag="maxp",t.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},t})(),F9=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ns(t,Fa),t.prototype.tag="hmtx",t.prototype.parse=function(e){var A,r,n,i,s,a,o;for(e.pos=this.offset,this.metrics=[],A=0,a=this.file.hhea.numberOfMetrics;0<=a?A<a:A>a;A=0<=a?++A:--A)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var l,h;for(h=[],A=l=0;0<=n?l<n:l>n;A=0<=n?++l:--l)h.push(e.readInt16());return h})(),this.widths=function(){var l,h,v,m;for(m=[],l=0,h=(v=this.metrics).length;l<h;l++)i=v[l],m.push(i.advance);return m}.call(this),r=this.widths[this.widths.length-1],o=[],A=s=0;0<=n?s<n:s>n;A=0<=n?++s:--s)o.push(this.widths.push(r));return o},t.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},t})(),pS=[].slice,U9=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ns(t,Fa),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(e){var A,r,n,i,s,a,o,l,h,v;return e in this.cache?this.cache[e]:(i=this.file.loca,A=this.file.contents,r=i.indexOf(e),(n=i.lengthOf(e))===0?this.cache[e]=null:(A.pos=this.offset+r,s=(a=new Fo(A.read(n))).readShort(),l=a.readShort(),v=a.readShort(),o=a.readShort(),h=a.readShort(),this.cache[e]=s===-1?new _9(a,l,v,o,h):new x9(a,s,l,v,o,h),this.cache[e]))},t.prototype.encode=function(e,A,r){var n,i,s,a,o;for(s=[],i=[],a=0,o=A.length;a<o;a++)n=e[A[a]],i.push(s.length),n&&(s=s.concat(n.encode(r)));return i.push(s.length),{table:s,offsets:i}},t})(),x9=(function(){function t(e,A,r,n,i,s){this.raw=e,this.numberOfContours=A,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=s,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t})(),_9=(function(){function t(e,A,r,n,i){var s,a;for(this.raw=e,this.xMin=A,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;a=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&a;)s.pos+=1&a?4:2,128&a?s.pos+=8:64&a?s.pos+=4:8&a&&(s.pos+=2)}return t.prototype.encode=function(){var e,A,r;for(A=new Fo(pS.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)A.pos=this.glyphOffsets[e];return A.data},t})(),S9=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return ns(t,Fa),t.prototype.tag="loca",t.prototype.parse=function(e){var A,r;return e.pos=this.offset,A=this.file.head.indexToLocFormat,this.offsets=A===0?function(){var n,i;for(i=[],r=0,n=this.length;r<n;r+=2)i.push(2*e.readUInt16());return i}.call(this):function(){var n,i;for(i=[],r=0,n=this.length;r<n;r+=4)i.push(e.readUInt32());return i}.call(this)},t.prototype.indexOf=function(e){return this.offsets[e]},t.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},t.prototype.encode=function(e,A){for(var r=new Uint32Array(this.offsets.length),n=0,i=0,s=0;s<r.length;++s)if(r[s]=n,i<A.length&&A[i]==s){++i,r[s]=n;var a=this.offsets[s],o=this.offsets[s+1]-a;o>0&&(n+=o)}for(var l=new Array(4*r.length),h=0;h<r.length;++h)l[4*h+3]=255&r[h],l[4*h+2]=(65280&r[h])>>8,l[4*h+1]=(16711680&r[h])>>16,l[4*h]=(4278190080&r[h])>>24;return l},t})(),Q9=(function(){function t(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var e,A,r,n,i;for(A in n=this.font.cmap.tables[0].codeMap,e={},i=this.subset)r=i[A],e[A]=n[r];return e},t.prototype.glyphsFor=function(e){var A,r,n,i,s,a,o;for(n={},s=0,a=e.length;s<a;s++)n[i=e[s]]=this.font.glyf.glyphFor(i);for(i in A=[],n)(r=n[i])!=null&&r.compound&&A.push.apply(A,r.glyphIDs);if(A.length>0)for(i in o=this.glyphsFor(A))r=o[i],n[i]=r;return n},t.prototype.encode=function(e,A){var r,n,i,s,a,o,l,h,v,m,g,C,F,_,x;for(n in r=dS.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(e),g={0:0},x=r.charMap)g[(o=x[n]).old]=o.new;for(C in m=r.maxGlyphID,s)C in g||(g[C]=m++);return h=(function(H){var D,k;for(D in k={},H)k[H[D]]=D;return k})(g),v=Object.keys(h).sort(function(H,D){return H-D}),F=(function(){var H,D,k;for(k=[],H=0,D=v.length;H<D;H++)a=v[H],k.push(h[a]);return k})(),i=this.font.glyf.encode(s,F,g),l=this.font.loca.encode(i.offsets,F),_={cmap:this.font.cmap.raw(),glyf:i.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(A)},this.font.os2.exists&&(_["OS/2"]=this.font.os2.raw()),this.font.directory.encode(_)},t})();Ft.API.PDFObject=(function(){var t;function e(){}return t=function(A,r){return(Array(r+1).join("0")+A).slice(-r)},e.convert=function(A){var r,n,i,s;if(Array.isArray(A))return"["+(function(){var a,o,l;for(l=[],a=0,o=A.length;a<o;a++)r=A[a],l.push(e.convert(r));return l})().join(" ")+"]";if(typeof A=="string")return"/"+A;if(A?.isString)return"("+A+")";if(A instanceof Date)return"(D:"+t(A.getUTCFullYear(),4)+t(A.getUTCMonth(),2)+t(A.getUTCDate(),2)+t(A.getUTCHours(),2)+t(A.getUTCMinutes(),2)+t(A.getUTCSeconds(),2)+"Z)";if({}.toString.call(A)==="[object Object]"){for(n in i=["<<"],A)s=A[n],i.push("/"+n+" "+e.convert(s));return i.push(">>"),i.join(`
|
|
88
|
-
`)}return""+A},e})();no();jo();var jK=t=>new Promise((e,A)=>{let r=new FileReader;r.onloadend=()=>{let n=r.result;typeof n=="string"?e(n.split(",")[1]):A(new Error("Unable to encode PDF blob to base64"))},r.onerror=A,r.readAsDataURL(t)}),Am=async t=>{if(!t)throw new Error("PDF source is required");if(t instanceof Blob)return t;if(typeof t.output=="function"){let e=t.output("blob");return e instanceof Promise?await e:e}throw new Error("Unsupported PDF source. Pass a Blob or a jsPDF document instance.")},VK=async t=>{if(!t)throw new Error("File source is required");if(t instanceof Blob)return t;if(typeof t.output=="function"){let e=t.output("blob");return e instanceof Promise?await e:e}if(t instanceof ArrayBuffer)return new Blob([t]);if(t instanceof Uint8Array)return new Blob([t]);if(t&&typeof t.arrayBuffer=="function"){let e=await t.arrayBuffer();return new Blob([e])}throw new Error("Unsupported file source. Pass a Blob, ArrayBuffer, Uint8Array, or a jsPDF document instance.")},rm=t=>URL.createObjectURL(t),TS=async(t,e)=>{let A=rm(t),r=document.createElement("a");r.href=A,r.download=e,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(A)},RS=t=>{if(!t)return"";let e=String(t).trim().split(".");return e.length>1?e.pop().toLowerCase():""},GK=t=>{let e=RS(t);return e?[{name:e.toUpperCase(),extensions:[e]}]:[]},Lg=(t,e="pdf")=>t?String(t).includes(".")?t:`${t}.${e}`:`document.${e}`,NS=async(t,e,A="pdf")=>{let{Filesystem:r,Directory:n}=await Promise.resolve().then(()=>(bS(),BS)),{Toast:i}=await Promise.resolve().then(()=>(xS(),US)),s=Lg(e,A),a=await jK(t);await r.writeFile({path:s,data:a,directory:n.Documents,recursive:!0});let o=await r.getUri({directory:n.Documents,path:s});try{await i.show({text:`Saved to Documents/${s}`,duration:"short"})}catch{}return o?.uri??s},OS=async(t,e,A="pdf")=>{let{save:r}=await Promise.resolve().then(()=>(SS(),_S)),{writeFile:n}=await Promise.resolve().then(()=>(tm(),em)),i=Lg(e,A),s=GK(i),a=await r({defaultPath:i,filters:s});if(!a)return;let o=await t.arrayBuffer(),l=new Uint8Array(o);return await n(a,l),a},zK=async(t,e="document.pdf")=>{let{writeFile:A}=await Promise.resolve().then(()=>(tm(),em)),{tempDir:r,join:n}=await Promise.resolve().then(()=>(X2(),QS)),i=String(e||"document.pdf").trim().replace(/[^a-zA-Z0-9._-]+/g,"_"),s=await r(),a=await n(s,`${Date.now()}-${i}`),o=await t.arrayBuffer();await A(a,new Uint8Array(o));let l=a.replace(/\\/g,"/");return l.startsWith("/")?`file://${l}`:`file:///${l}`},kS=async(t,e="document.pdf",A=!1)=>{let{WebviewWindow:r}=await Promise.resolve().then(()=>(td(),ed)),n=await zK(t,e);iA("Opening Tauri PDF webview from local file URL");let i=`pdf-print-${Date.now()}`,s=new r(i,{url:n,title:"Print PDF",width:1e3,height:800,resizable:!0,center:!0,focus:!0,visible:!0});return s.once("tauri://created",()=>{iA("Tauri PDF print webview opened:",i);try{s.show?.(),s.setFocus?.()}catch(a){zr("Unable to focus PDF print window:",a)}}),s.once("tauri://error",a=>{Ka("Tauri PDF print webview error:",a)}),s},WK=async(t,e)=>{if(Wn&&typeof window<"u"&&(window.__TAURI__||window.__TAURI_INTERNALS__))try{let n=await kS(t,e,!1);if(n)return n}catch{}let A=rm(t),r=null;if(typeof window<"u"&&typeof window.open=="function")try{if(r=window.open("","_blank","noopener,noreferrer"),r){r.location.href=A;try{r.focus?.()}catch{}return setTimeout(()=>{try{URL.revokeObjectURL(A)}catch{}},1500),A}}catch{}if(typeof document<"u"){let n=document.createElement("a");n.href=A,n.target="_blank",n.rel="noopener noreferrer",n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}return A},$K=async(t,e)=>{if(Wn&&typeof window<"u"&&(window.__TAURI__||window.__TAURI_INTERNALS__))try{let i=await kS(t,e,!0);if(i)return i}catch{}let A=rm(t),r=null;if(typeof window<"u"&&typeof window.open=="function")try{if(r=window.open("","_blank","noopener,noreferrer"),r){r.location.href=A;try{r.focus?.()}catch{}setTimeout(()=>{try{r.print?.()}catch{}},800);return}}catch{}if(typeof document>"u")throw new Error("PDF printing requires a browser document context.");let n=document.createElement("iframe");return n.style.position="fixed",n.style.right="0",n.style.bottom="0",n.style.width="0",n.style.height="0",n.style.border="0",n.src=A,new Promise((i,s)=>{n.onload=()=>{try{n.contentWindow.focus(),setTimeout(()=>{try{n.contentWindow.print()}catch{}i()},800)}catch(a){s(a)}},document.body.appendChild(n)})};function DS(){return{async generatePdfFromElement(t,e={}){if(!t)throw new Error("Element is required to generate PDF.");let A=await(0,PS.default)(t,{scale:e.scale??2,useCORS:!0,backgroundColor:e.backgroundColor??"#ffffff",...e.html2canvas}),r=A.toDataURL("image/png"),n=new Ft(e.jsPDF||{orientation:"p",unit:"mm",format:"a4"}),i=e.pageWidth??210,s=e.pageHeight??297,a=A.height*i/A.width,o=0;n.addImage(r,"PNG",0,o,i,a);let l=a-s;for(;l>0;)o=l-a,n.addPage(),n.addImage(r,"PNG",0,o,i,a),l-=s;return n},async downloadPdf(t,e){let A=await Am(t),r=Lg(e,"pdf");return Wi&&di!=="web"?await NS(A,r,"pdf"):Wn?await OS(A,r,"pdf"):(await TS(A,r),r)},async downloadFile(t,e){let A=await VK(t),r=Lg(e,"bin"),n=RS(r)||"bin";return Wi&&di!=="web"?await NS(A,r,n):Wn?await OS(A,r,n):(await TS(A,r),r)},async previewPdf(t,e="preview.pdf"){let A=await Am(t);return await WK(A,e)},async printPdf(t,e="print.pdf"){let A=await Am(t);return await $K(A,e)}}}var nm=t=>Array.isArray(t)?t:t?.data||[],XK=t=>[...t].sort((e,A)=>{let r=Number(e.createdAt||e.updatedAt||0)||Date.parse(e.createdAt||e.updatedAt||0)||0;return(Number(A.createdAt||A.updatedAt||0)||Date.parse(A.createdAt||A.updatedAt||0)||0)-r})[0]||null;function HS(t){let e=null,A=!0,r=new Map,n=new Set,i=H=>n.forEach(D=>D(H)),s=H=>H.sessionId||H.session_id||H.id,a=async(H,D)=>{let k=await t.entities.ChatMessage.query({filter:{appId:D,sessionId:H},limit:100});return nm(k)},o=(H,D)=>{let k=t.realtime.room(H,{},{maxReconnects:2});k.publish({type:"chat_message",sessionId:H,session_id:H,message:D,payload:D}),setTimeout(()=>k.close(),1e3)},l=async H=>{let D=s(H);await t.entities.ChatSession.update(H.id,{status:"agent_active",agent_email:t.agentIdentity||"agent",updatedAt:Date.now()}),i({type:"accepted",sessionId:D,session:H})},h=async H=>{let D=s(H);await t.entities.ChatSession.update(H.id,{status:"agent_rejected",updatedAt:Date.now()}),i({type:"rejected",sessionId:D,session:H})},v=async(H,D)=>{let k=s(H);if(!D?.trim())throw new TypeError("A reply message is required.");let re={id:`msg_${Date.now()}_${Math.random().toString(36).slice(2)}`,appId:H.appId||t.appId,userId:t.agentIdentity||"agent",sessionId:k,session_id:k,role:"agent",content:D.trim(),createdAt:Date.now()};return await t.entities.ChatMessage.create(re),o(k,re),i({type:"replied",sessionId:k,session:H,message:re}),re},m=async({action:H,sessionId:D,reply:k})=>{let re=t.appId,Ae=nm(await t.entities.ChatSession.query({filter:{appId:re,sessionId:D},limit:1}))[0];if(Ae){if(H==="open")return i({type:"open",sessionId:D,session:Ae});if(H==="accept")return l(Ae);if(H==="reject")return h(Ae);if(H==="reply")return v(Ae,k)}},g=H=>t.notifications.show({id:`agent-request-${H.sessionId}`,title:H.title,body:H.body,data:{sessionId:H.sessionId},channel:"agent_requests",actions:[{id:"accept",title:"Accept"},{id:"reject",title:"Reject"},{id:"reply",title:"Reply",input:!0}]}),C=async({appId:H=t.appId}={})=>{let D=nm(await t.entities.ChatSession.query({filter:{appId:H,status:"escalated"},limit:100}));for(let k of D){let re=s(k);if(!re)continue;let fe=XK(await a(re,H)),Ae=`${k.updatedAt||k.lastMessageAt||k.createdAt}:${fe?.id||fe?.content||""}`;if(r.get(re)===Ae)continue;r.set(re,Ae);let j={sessionId:re,title:`Support request from ${k.visitor_name||"a visitor"}`,body:fe?.content||"A visitor is requesting a human agent.",latestMessage:fe,session:k};await g(j),i({type:"request",...j})}},F=async({pollMs:H=8e3,agentIdentity:D,...k}={})=>{D&&(t.agentIdentity=D),A=!1,await C(k),clearInterval(e),e=setInterval(()=>!A&&C(k).catch(re=>i({type:"error",error:re})),H)},_=()=>{A=!0,clearInterval(e),e=null},x=H=>(n.add(H),()=>n.delete(H));return t.notifications.onAction(({action:H,data:D,reply:k})=>{D?.sessionId&&m({action:H,sessionId:D.sessionId,reply:k}).catch(re=>i({type:"error",error:re}))}),{start:F,stop:_,check:C,onEvent:x,accept:l,reject:h,reply:v,dispatchAction:m}}var im=()=>typeof window<"u"&&typeof Notification<"u";function MS(){let t=new Set,e=new Map,A=!1,r=g=>t.forEach(C=>C(g)),n=()=>globalThis?.Capacitor?.Plugins?.AppNotifications,i=()=>{if(A)return;let g=n();if(!g?.addListener)return;A=!0;let C=event.data||{};if(typeof C=="string")try{C=JSON.parse(C)}catch{C={}}g.addListener("notificationAction",F=>r({id:F.id,action:F.action||"open",reply:F.reply||"",data:C,platform:"capacitor"})),g.consumePendingAction?.().catch?.(()=>{})},s=async()=>{let g=n();if(g?.checkPermissions)return g.checkPermissions();if(globalThis?.__TAURI_INTERNALS__)try{return{display:await(await new Function("name","return import(name)")("@tauri-apps/plugin-notification")).isPermissionGranted()?"granted":"prompt"}}catch{return{display:"denied"}}return{display:im()?Notification.permission:"denied"}},a=async()=>{let g=n();if(g?.requestPermissions)return g.requestPermissions();if(globalThis?.__TAURI_INTERNALS__)try{return{display:await(await new Function("name","return import(name)")("@tauri-apps/plugin-notification")).requestPermission()}}catch{return{display:"denied"}}return{display:im()?await Notification.requestPermission():"denied"}},o=async(g={})=>{let C=String(g.id||`notification_${Date.now()}_${Math.random().toString(36).slice(2)}`),F={id:C,title:g.title||"Notification",body:g.body||"",data:g.data||{},actions:g.actions||[],silent:!!g.silent,channel:g.channel||"general"},_=n();if(_?.show)return i(),await _.show(F),{id:C,platform:"capacitor"};if(globalThis?.__TAURI_INTERNALS__)try{let D=await new Function("name","return import(name)")("@tauri-apps/plugin-notification");if((await D.isPermissionGranted()?"granted":await D.requestPermission())==="granted")return D.sendNotification({title:F.title,body:F.body,extra:F.data}),{id:C,platform:"tauri"}}catch{}if(!im())throw new Error("Notifications are not supported on this platform.");if((Notification.permission==="default"?await Notification.requestPermission():Notification.permission)!=="granted")throw new Error("Notification permission was not granted.");let H=new Notification(F.title,{body:F.body,tag:C,data:F.data,silent:F.silent});return H.onclick=()=>r({id:C,action:"open",data:F.data,platform:"web"}),{id:C,platform:"web",notification:H}};return{permission:s,requestPermission:a,show:o,schedule:async(g={})=>{let C=new Date(g.at||Date.now()).getTime(),F=Math.max(0,C-Date.now()),_=String(g.id||`notification_${C}_${Math.random().toString(36).slice(2)}`),x=setTimeout(()=>{e.delete(_),o({...g,id:_}).catch(H=>r({type:"error",error:H}))},F);return e.set(_,x),{id:_,at:C}},cancel:async g=>{let C=e.get(String(g));C&&clearTimeout(C),e.delete(String(g)),await n()?.cancel?.({id:String(g)})},cancelAll:async()=>{for(let g of e.values())clearTimeout(g);e.clear(),await n()?.cancelAll?.()},onAction:g=>(i(),t.add(g),()=>t.delete(g))}}no();no();jo();var $S=di==="android"||di==="ios",XS=di==="tauri",Tg=null,Ng=null,YS=new Map;function lm(t="default"){return`tevroc_${String(t||"default").replace(/[^a-z0-9_-]/gi,"_")}`}async function t3(t){return Ng||Tg||(Tg=(async()=>{if(!$S&&!XS){let e=YS.get(t)||{};return YS.set(t,e),{async get(A){return e[A]??null},async set(A,r){e[A]=r}}}try{if($S){iA("[tevrocsdk][useEntities] opening mobile SQLite for appId",t);let e=await Promise.resolve().then(()=>(GS(),VS));zr("[tevrocsdk][useEntities] Capacitor SQLite module loaded",{mod:e});let A=e?.SQLiteConnection?new e.SQLiteConnection(e.CapacitorSQLite):null;if(zr("[tevrocsdk][useEntities] SQLiteConnection instance created",{sqlite:A}),!A)throw new Error("Capacitor SQLite module loaded but SQLiteConnection is unavailable");zr("[tevrocsdk][useEntities] opening SQLite connection for appId",{appId:t});let r=lm(t),n=await A.createConnection(r,!1,"no-encryption",1,!1);return zr("[tevrocsdk][useEntities] SQLite connection created",{name:r,db:n}),await n.open(),zr("[tevrocsdk][useEntities] SQLite connection opened",{name:r,db:n}),await n.execute("CREATE TABLE IF NOT EXISTS kv (key TEXT PRIMARY KEY, value TEXT NOT NULL)"),iA("[tevrocsdk][useEntities] mobile SQLite opened",{name:r}),{async get(i){return(await n.query("SELECT value FROM kv WHERE key = ? LIMIT 1",[i])).values?.[0]?.value??null},async set(i,s){await n.run("INSERT OR REPLACE INTO kv (key, value) VALUES (?, ?)",[i,s])}}}if(XS){iA("[tevrocsdk][useEntities] opening desktop SQLite for appId",t);let e=await Promise.resolve().then(()=>(WS(),zS)),r=await(e.default||e.Database).load(`sqlite:${lm(t)}.db`);return await r.execute("CREATE TABLE IF NOT EXISTS kv (key TEXT PRIMARY KEY, value TEXT NOT NULL)"),iA("[tevrocsdk][useEntities] desktop SQLite opened",{dbFile:`${lm(t)}.db`}),{async get(n){return(await r.select("SELECT value FROM kv WHERE key = ? LIMIT 1",[n]))?.[0]?.value??null},async set(n,i){await r.execute("INSERT OR REPLACE INTO kv (key, value) VALUES (?, ?)",[n,i])}}}throw new Error("Unsupported native platform for SQLite.")}catch(e){zr("[tevrocsdk][useEntities] SQLite open failed, falling back to in-memory store",{error:e});try{if(typeof window<"u"&&(window.__TEVROC_SDK_ERRORS__=window.__TEVROC_SDK_ERRORS__||[],window.__TEVROC_SDK_ERRORS__.push({source:"useEntities.sqlite",message:String(e?.message||e),stack:e?.stack}),typeof window.__TEVROC_SDK_ON_ERROR=="function"))try{window.__TEVROC_SDK_ON_ERROR({source:"useEntities.sqlite",error:e})}catch{}}catch{}let A={};return{async get(r){return A[r]??null},async set(r,n){A[r]=n}}}})(),Ng=await Tg,Ng)}async function Ah(t){let A=await(await t3(t)).get("db");return JK(A)}async function Og(t,e){let A=JSON.stringify(e||{},null,2);await(await t3(t)).set("db",A)}function JK(t){if(!t)return{};if(typeof t=="object")return t;if(typeof t!="string")return{};try{return JSON.parse(t)}catch{}try{return JSON.parse(atob(t))}catch{}return{}}function cm(t,e,A=!1){let r=String(e||"").split("/").filter(Boolean),n=t;for(let i=0;i<r.length-1;i+=1){let s=r[i];if(!(s in n)){if(!A)return null;n[s]={}}n=n[s]}return{ref:n,key:r.at(-1)}}function A3(t={},e={}){for(let A of Object.keys(e||{}))e[A]&&typeof e[A]=="object"&&!Array.isArray(e[A])?((!t[A]||typeof t[A]!="object")&&(t[A]={}),A3(t[A],e[A])):t[A]=e[A];return t}var Cl=new Map,Pg=new Map;function um(t,e){return JSON.stringify(t)===JSON.stringify(e)}function JS(t){return{exists:()=>t!=null,val:()=>t??null}}function $c(t="default"){async function e(h){let v=await Ah(t),m=h?.path||h||"",g=String(m).split("/").filter(Boolean),C=v;for(let F of g)if(C=C?.[F],C===void 0)break;return JS(C)}async function A(h,v){let m=await Ah(t),g=h?.path||h||"",C=cm(m,g,!0);C&&(um(C.ref[C.key],v)||(C.ref[C.key]=v,await Og(t,m)))}async function r(h,v){let m=await Ah(t),g=h?.path||h||"",C=cm(m,g,!0);if(!C)return;let F=C.ref[C.key]||{},_=A3(structuredClone(F),v);um(F,_)||(C.ref[C.key]=_,await Og(t,m))}async function n(h){let v=await Ah(t),m=h?.path||h||"",g=cm(v,m);!g||g.ref[g.key]===void 0||(delete g.ref[g.key],await Og(t,v))}function i(h,v){return{path:v}}function s(h,v){return{path:`${h?.path||h||""}/${v}`}}function a(h){let v=h?.path||h||"",m=`id_${crypto.randomUUID?.().replaceAll("-","")||Math.random().toString(36).slice(2)}`;return{key:m,path:`${v}/${m}`}}function o(h,v){let m=h?.path||h||"";if(e(m).then(C=>{Pg.set(m,C.val()),v(C)}),Cl.has(m))return Cl.get(m).add(v),()=>Cl.get(m)?.delete(v);let g=new Set([v]);return g.interval=setInterval(async()=>{let C=await e(m),F=C.val();um(Pg.get(m),F)||(Pg.set(m,F),g.forEach(_=>_(C)))},1e3),Cl.set(m,g),()=>{g.delete(v),g.size===0&&(clearInterval(g.interval),Cl.delete(m),Pg.delete(m))}}function l(h,v,m){let g=h?.path||h||"";Cl.has(g)&&m&&Cl.get(g).delete(m)}return{ref:i,child:s,push:a,get:e,set:A,update:r,remove:n,onValue:o,off:l,serverTimestamp:()=>Date.now(),increment:(h=1)=>({__increment__:h}),runTransaction:async(h,v)=>{let m=await e(h),g=await v(m.val());return await A(h,g),{committed:!0,snapshot:JS(g)}},exportDB:()=>Ah(t),importDB:h=>Og(t,h||{}),exists:async h=>(await e(h)).exists()}}function ZS(){return new Date().toISOString()}async function rh(t,e){let A=(await t.get(`drive/${e}`)).val()||{},r=(await t.get(`collaborators/${e}`)).val()||{},n=[];for(let s of Object.keys(A)){let a=A[s];a?.fileId&&!a.deleted&&n.push({fileId:a.fileId,projectId:s,ownerUid:e,isOwner:!0,isNew:!1,collaborators:Object.keys(a.collaborators||{}).filter(o=>o!==e).length})}let i=new Set;for(let[s,a]of Object.entries(r||{}))for(let o of Object.keys(a||{})){let l=`${o}_${s}`;if(i.has(l))continue;i.add(l);let h=(await t.get(`drive/${o}/${s}`)).val();!h?.fileId||h.deleted||n.push({fileId:h.fileId,projectId:s,ownerUid:o,isOwner:!1,isNew:!1,collaborators:0})}return n}function dm(t){let e=$c(t);return{saveJsonToDrive:async(A,r,n,i="local")=>{let s=(await rh(e,i)).filter(g=>g.fileId===n),a=!n||s.length===0,o=n||`file_${Date.now()}`,l=a?i:s[0].ownerUid,h=`drive/${l}/${o}`,v=(await e.get(h)).val()||{},m=ZS();return await e.set(h,{...v,name:A,data:r,updatedAt:m,createdAt:v.createdAt||m}),await e.set(`files/${l}/${s[0]?.projectId||o}`,{fileId:o,name:A,ownerUid:l,collaborators:v.collaborators||{[i]:"admin"},deleted:!1}),{fileId:o,fileName:A,webViewLink:`filebase://${h}`,downloadLink:`filebase://${h}`}},readJsonFromDrive:async(A,r="local")=>{let n=(await e.get(`drive/${r}/${A}`)).val();if(n?.data)return n.data;let s=(await rh(e,r)).find(a=>a.fileId===A);return s?(await e.get(`drive/${s.ownerUid}/${A}`)).val()?.data||{}:{}},deleteFromDrive:async(A,r="local")=>{let s=`drive/${((await rh(e,r)).find(o=>o.fileId===A)||{ownerUid:r}).ownerUid}/${A}`,a=(await e.get(s)).val()||{};await e.set(s,{...a,deleted:!0,deletedAt:ZS()})},grantDriveAccess:async(A,r,n="reader",i="local")=>{let a=(await rh(e,i)).find(o=>o.fileId===A);a&&(await e.update(`drive/${a.ownerUid}/${a.projectId}`,{collaborators:{[r]:n}}),await e.update(`collaborators/${r}/${a.projectId}`,{[a.ownerUid]:n}))},revokeDriveAccess:async(A,r,n="local")=>{let s=(await rh(e,n)).find(o=>o.fileId===A);if(!s)return;let a=(await e.get(`drive/${s.ownerUid}/${s.projectId}`)).val()||{};delete a.collaborators?.[r],await e.set(`drive/${s.ownerUid}/${s.projectId}`,a),await e.remove(`collaborators/${r}/${s.projectId}/${s.ownerUid}`)},ref:e.ref,child:e.child,push:e.push,get:e.get,set:e.set,update:e.update,remove:e.remove,onValue:e.onValue,off:e.off,serverTimestamp:e.serverTimestamp,increment:e.increment,runTransaction:e.runTransaction,exportDB:e.exportDB,importDB:e.importDB,exists:e.exists}}var fm="https://www.googleapis.com/drive/v3",e3="https://www.googleapis.com/upload/drive/v3";function hm(){return globalThis.sessionStorage?.getItem("gAccessToken")||globalThis.localStorage?.getItem("gAccessToken")}function r3(t){let e=dm(t);return{...e,saveJsonToDrive:async(A,r,n,i)=>{let s=hm();if(!s)return e.saveJsonToDrive(A,r,n,i);let a=JSON.stringify(r,null,2),o=new Blob([a],{type:"application/json"}),l=new FormData;l.append("metadata",new Blob([JSON.stringify({name:`${A}.json`,mimeType:"application/json"})],{type:"application/json"})),l.append("file",o);let h=n?`${e3}/files/${n}?uploadType=multipart`:`${e3}/files?uploadType=multipart`,v=await fetch(h,{method:n?"PATCH":"POST",headers:{Authorization:`Bearer ${s}`},body:l});if(!v.ok)throw new Error((await v.json().catch(()=>({})))?.error?.message||"Drive upload failed");let m=await v.json();return{fileId:m.id,fileName:m.name,webViewLink:`https://drive.google.com/file/d/${m.id}/view`,downloadLink:`${fm}/files/${m.id}?alt=media`}},readJsonFromDrive:async(A,r)=>{let n=hm();if(!n)return e.readJsonFromDrive(A,r);let i=await fetch(`${fm}/files/${A}?alt=media`,{headers:{Authorization:`Bearer ${n}`}});if(!i.ok)throw new Error("Could not read file from Drive");return i.json()},deleteFromDrive:async(A,r)=>{let n=hm();if(!n)return e.deleteFromDrive(A,r);let i=await fetch(`${fm}/files/${A}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}});if(!i.ok&&i.status!==404)throw new Error("Failed to delete file from Drive")}}}function n3(t){let e=$c(t),A=r=>typeof r=="string"&&r?r.replace(/\./g,"_").replace(/@/g,"__at__"):"";return{encodeEmail:A,upsertUser:async r=>{await e.set(`users/${r.uid}`,{email:r.email,displayName:r.displayName,photoURL:r.photoURL||""}),await e.set(`usersByEmail/${A(r.email)}`,r.uid)},resolveOrCreateUser:async r=>(await e.get(`usersByEmail/${A(r)}`)).val()||`email:${A(r)}`,saveProjectMeta:(r,n,i)=>e.set(`projects/${r}/${n}`,i),getProject:async(r,n)=>(await e.get(`projects/${r}/${n}`)).val(),deleteProject:async(r,n)=>e.remove(`projects/${r}/${n}`),addCollaborator:(r,n,i,s)=>e.set(`projects/${r}/${n}/collaborators/${i}`,s),removeCollaborator:(r,n,i)=>e.remove(`projects/${r}/${n}/collaborators/${i}`),getUser:async r=>(await e.get(`users/${r}`)).val(),subscribeProjects:(r,n,i)=>{let s=`email:${A(i?.trim().toLowerCase())}`,a={},o={},l={},h=async()=>{let C=[],F=new Set;Object.entries(a||{}).forEach(([_,x])=>{!x||x.deleted||(C.push({...x,projectId:_,ownerUid:r,isOwner:!0}),F.add(`${r}_${_}`))});for(let _ of[o,l])for(let[x,H]of Object.entries(_||{}))for(let D of Object.keys(H||{})){let k=`${D}_${x}`;if(F.has(k))continue;F.add(k);let re=(await e.get(`projects/${D}/${x}`)).val();re&&!re.deleted&&C.push({...re,projectId:x,ownerUid:D,isOwner:!1})}n(C)},v=e.onValue(`projects/${r}`,C=>{a=C.val()||{},h()}),m=e.onValue(`collaborators/${r}`,C=>{o=C.val()||{},h()}),g=e.onValue(`collaborators/${s}`,C=>{l=C.val()||{},h()});return()=>{v?.(),m?.(),g?.()}},subscribePresence:(r,n,i,s)=>{e.set(`presence/${r}/${n}`,{...i,ts:Date.now()});let a=e.onValue(`presence/${r}`,o=>s(Object.values(o.val()||{})));return()=>{e.remove(`presence/${r}/${n}`),a?.()}}}}jo();no();async function u3(t){return!t||typeof FileReader>"u"?"":new Promise((e,A)=>{let r=new FileReader;r.onloadend=()=>{let n=r.result;if(typeof n!="string")return e("");e(n.split(",")[1]||"")},r.onerror=A,r.readAsDataURL(t)})}function f3(t){return typeof t=="string"&&t.startsWith("data:")}function tj(t){return f3(t)&&t.split(",")[1]||null}function Aj(t){return!t||typeof t!="string"||t.length<100?!1:/^[A-Za-z0-9+/=\n\r]+$/.test(t.replace(/\s+/g,""))}async function h3(t){if(!t||!ot)return null;try{console.debug("[tevrocsdk][fileoffline] downloadUrlToBase64 fetching",t);let e=await fetch(t,{cache:"no-store"});if(!e.ok)return null;let A=await e.blob(),r=await u3(A).catch(()=>null);return console.debug("[tevrocsdk][fileoffline] downloadUrlToBase64 fetched -> base64 length",r?r.length:0),r}catch(e){return console.warn("[tevrocsdk][fileoffline] downloadUrlToBase64 failed",e),null}}function pm(t){try{return t?(String(t).split("/").filter(Boolean).at(-1)||`file_${Date.now()}`).split("?")[0]:`file_${Date.now()}`}catch{return`file_${Date.now()}`}}async function kg(t,e,A,r){try{if(!ot)return!1;if(console.debug("[tevrocsdk][fileoffline] persistFileToNative",{key:e,contentType:r,hasBase64:!!A}),!t?.native?.store||!A)return console.warn("[tevrocsdk][fileoffline] persistFileToNative skipped - missing native.store or base64"),!1;let n=new Date().toISOString();return await t.native.store.set(`downloaded_files/${e}`,{data:A,contentType:r||"application/octet-stream",key:e,updatedAt:n}),console.debug("[tevrocsdk][fileoffline] persistFileToNative stored",{key:e,updatedAt:n}),!0}catch(n){return console.warn("[tevrocsdk][fileoffline] persistFileToNative error",n),!1}}async function gm(t,e){if(!(!e||typeof e!="object")&&!(!ot||!t?.native?.store)){console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles start");for(let A of Object.keys(e)){let r=e[A];if(typeof r=="string"){if(f3(r)){console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles found data URL at key",A);let n=tj(r),i=pm(A)||`inline_${Date.now()}`;await kg(t,i,n,(r.match(/^data:([^;]+);/)||[])[1]||"application/octet-stream")}else if(/^https?:\/\//.test(r)||r.startsWith("filebase://")){console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles found URL at key",A,r);let n=r.startsWith("filebase://")?r.replace(/^filebase:\/\//,""):r,i=await h3(r).catch(()=>null);if(i){let s=pm(r);await kg(t,s,i,"application/octet-stream")}}else if(Aj(r)){console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles found inline base64 at key",A);let n=pm(A)||`inline_${Date.now()}`;await kg(t,n,r,"application/octet-stream")}}else r&&typeof r=="object"&&(console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles recursing into",A),await gm(t,r))}console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles end")}}function d3(t){let e=$c(t.appId),A=new Map;function r(j,N){try{if(typeof window<"u"&&(window.__TEVROC_SDK_ERRORS__=window.__TEVROC_SDK_ERRORS__||[],window.__TEVROC_SDK_ERRORS__.push({source:N||"offline",message:String(j?.message||j),stack:j?.stack}),typeof window.__TEVROC_SDK_ON_ERROR=="function"))try{window.__TEVROC_SDK_ON_ERROR({source:N||"offline",error:j})}catch{}}catch{}}async function n(){let N=(await e.get("sync_queue")).val()||[];return iA("[tevrocsdk][fileoffline] getQueue",{length:N.length}),N}async function i(j){iA("[tevrocsdk][fileoffline] setQueue",{length:j?.length||0}),await e.set("sync_queue",j||[])}async function s(){let j=new AbortController,N=setTimeout(()=>j.abort(),500);try{return(await fetch("https://www.cloudflare.com/cdn-cgi/trace",{cache:"no-store",signal:j.signal})).ok}catch{return!1}finally{clearTimeout(N)}}async function a(j,N,Z,I){let O=await n(),Y={id:crypto.randomUUID?.()||String(Date.now()),entity:j,op:N,recordId:Z,payload:I,createdAt:new Date().toISOString()};if(O.push(Y),await i(O),iA("[tevrocsdk][fileoffline] queueOperation queued",{item:Y,queueLength:O.length}),N==="create"||N==="update"){let ee=Z||I?.id||`loc_${Date.now()}`;return await e.set(`entities/${j}/${ee}`,{...I||{},id:ee}),{data:{...I||{},id:ee}}}return N==="delete"?(await e.remove(`entities/${j}/${Z}`),{deleted:!0,id:Z}):j==="files"&&N==="upload"?(await e.set(`pending_uploads/${Y.id}`,{...Y.payload||{},fileId:Z,createdAt:Y.createdAt}),{pending:!0,id:Y.id,entity:j,op:N,payload:Y.payload}):null}async function o(){if(iA("[tevrocsdk][fileoffline] syncOnce start",{online:await s()}),!await s())return iA("[tevrocsdk][fileoffline] syncOnce aborted - offline"),{ok:!1,reason:"offline"};let j=await n();if(!j||j.length===0)return iA("[tevrocsdk][fileoffline] syncOnce nothing to sync"),{ok:!0,synced:0};Ae("sync:start",{count:j.length}),iA("[tevrocsdk][fileoffline] syncOnce processing queue",{count:j.length});for(let N of[...j])try{iA("[tevrocsdk][fileoffline] syncOnce item",{item:N});let Z=(await e.get(`entities/${N.entity}/${N.recordId||N.payload&&N.payload.id||""}`)).val();if(N.op==="create"){let I=await t.request(`/entities/${encodeURIComponent(N.entity)}`,{method:"POST",body:N.payload}),O=I?.data?.id||I?.id||N.recordId;if(O){await e.set(`entities/${N.entity}/${O}`,I?.data||{...N.payload||{},id:O});try{await gm(t,I?.data||{})}catch{}}j=j.filter(Y=>Y.id!==N.id),Ae("sync:item",{item:N,result:I})}else if(N.op==="update"){let I=await t.request(`/entities/${encodeURIComponent(N.entity)}/${encodeURIComponent(N.recordId)}`,{method:"PATCH",body:N.payload}),O=I?.data??I,Y=O?.updatedAt||O?.updated_date||null,ee=Z?.updatedAt||Z?.updated_date||null;if(ee&&Y&&ee>Y&&JSON.stringify(Z)!==JSON.stringify(O)){let ce=`${N.entity}/${N.recordId}`;await e.set(`conflicts/${ce}`,{local:Z,server:O,item:N}),Ae("conflict",{conflictId:ce,local:Z,server:O,item:N})}else{O&&await e.set(`entities/${N.entity}/${N.recordId}`,O);try{await gm(t,O||{})}catch{}j=j.filter(ce=>ce.id!==N.id),Ae("sync:item",{item:N,result:I})}}else if(N.entity==="files"&&N.op==="upload"){iA("[tevrocsdk][fileoffline] syncOnce upload file",{payload:N.payload});let I=N.payload?.headers||{},O=N.payload?.body;if(N.payload?.bodyIsBase64)try{let be=typeof atob=="function"?atob(O||""):O||"",Fe=new Uint8Array(be.length);for(let de=0;de<be.length;de+=1)Fe[de]=be.charCodeAt(de);O=new Blob([Fe],{type:N.payload.contentType||"application/octet-stream"})}catch{O=new Blob([String(O||"")],{type:N.payload.contentType||"application/octet-stream"})}let Y=await t.request(N.payload.path,{method:N.payload.method||"POST",body:O,headers:I,skipSync:!0}),ee=Y?.data??Y,ce=ee?.key||(typeof ee?.url=="string"?ee.url.split("/").pop():null);if(ce&&t.native?.store){let be=N.payload?.contentType||ee?.contentType||"application/octet-stream",Fe=typeof O=="string"?new Blob([O],{type:be}):O instanceof Blob?O:new Blob([JSON.stringify(O||"")],{type:be}),de=await u3(Fe).catch(()=>"");if(de&&await t.native.store.set(`downloaded_files/${ce}`,{data:de,contentType:be,key:ce,updatedAt:new Date().toISOString()}),ee?.url)try{let Ee=await h3(ee.url);Ee&&await kg(t,ce,Ee,be)}catch{}}j=j.filter(be=>be.id!==N.id),await e.remove(`pending_uploads/${N.id}`),Ae("sync:item",{item:N,result:Y}),iA("[tevrocsdk][fileoffline] syncOnce upload success",{itemId:N.id,key:ce})}else N.op==="delete"&&(await t.request(`/entities/${encodeURIComponent(N.entity)}/${encodeURIComponent(N.recordId)}`,{method:"DELETE"}),await e.remove(`entities/${N.entity}/${N.recordId}`),j=j.filter(I=>I.id!==N.id),Ae("sync:item",{item:N,result:{deleted:!0}}))}catch(Z){zr("[tevrocsdk][fileoffline] syncOnce item failed",{item:N,error:Z}),Ae("sync:error",{item:N,error:Z}),r(Z,"offline.syncOnce.item");break}return await i(j),iA("[tevrocsdk][fileoffline] syncOnce end",{remaining:j.length}),Ae("sync:end",{remaining:j.length}),{ok:!0,synced:0,remaining:j.length}}let l=null,h=null,v=!1,m=[],g=null,C=null,F=null,_=!1;async function x(){if(v)return{ok:!1,reason:"already_running"};v=!0;try{return await o()}finally{v=!1}}function H(){h&&(clearInterval(h),h=null)}function D(j=1e4){h||(iA("[tevrocsdk][fileoffline] startPendingRetry",{intervalMs:j}),h=setInterval(async()=>{if(iA("[tevrocsdk][fileoffline] retry interval fired"),!await s()){iA("[tevrocsdk][fileoffline] retry skipped - offline");return}let N=await x(),Z=await n();if(!N.ok||Z.length>0){iA("[tevrocsdk][fileoffline] retry more pending",{ok:N.ok,remaining:Z.length});return}H(),iA("[tevrocsdk][fileoffline] pending retry complete")},j))}async function k(j=1e4){if(iA("[tevrocsdk][fileoffline] syncPendingActions called",{online:await s()}),!await s())return iA("[tevrocsdk][fileoffline] syncPendingActions aborted - offline"),{ok:!1,reason:"offline"};let N=await x();return iA("[tevrocsdk][fileoffline] syncPendingActions result",N),(await n()).length>0?D(j):H(),N}function re(j=3e4){if(_)return;_=!0;let N=()=>{try{if(typeof window<"u"){let Z=()=>o();window.addEventListener("online",Z),m.push(()=>window.removeEventListener("online",Z));let I=()=>{document.hidden||o()};document.addEventListener("visibilitychange",I),m.push(()=>document.removeEventListener("visibilitychange",I));let O=()=>o();window.addEventListener("focus",O),m.push(()=>window.removeEventListener("focus",O))}}catch{}(async()=>{try{let Z=await Promise.resolve().then(()=>(c3(),l3));if(g=Z.Network||Z,g&&g.getStatus){F=(await g.getStatus()).connected;let O=g.addListener("networkStatusChange",Y=>{F=Y.connected,Y.connected&&o()});m.push(()=>O.remove())}}catch(Z){r(Z,"offline.capacitorNetwork")}try{let Z=await Promise.resolve().then(()=>(Wh(),zh));if(C=Z.App||Z,C&&C.addListener){let I=C.addListener("appStateChange",O=>{O.isActive&&o()});m.push(()=>I.remove());try{let O=C.addListener("pause",async()=>{try{await o()}catch{await o()}});m.push(()=>O.remove());let Y=C.addListener("resume",async()=>{await o()});m.push(()=>Y.remove())}catch{}}}catch(Z){r(Z,"offline.capacitorApp")}try{if(typeof window<"u"&&(window.__TAURI__||window.__TAURI_INTERNALS__))try{let Z=window.__TAURI__?.event;if(Z&&Z.listen){let I=await Z.listen("tauri://update",()=>o()).catch(()=>null),O=await Z.listen("tauri://resume",()=>o()).catch(()=>null);I&&m.push(()=>I.then(Y=>Y()).catch(()=>{})),O&&m.push(()=>O.then(Y=>Y()).catch(()=>{}))}}catch(Z){r(Z,"offline.tauri")}}catch{}})(),l||(l=setInterval(()=>o(),j))};if(typeof window<"u"&&document&&document.readyState!=="complete"){let Z=()=>{try{N()}catch{}};window.addEventListener("load",Z,{once:!0}),m.push(()=>window.removeEventListener("load",Z))}else try{N()}catch{}}function fe(){for(let j of m.splice(0))try{j()}catch{}l&&(clearInterval(l),l=null)}function Ae(j,N){try{if(!A.has(j))return;for(let Z of A.get(j))try{Z(N)}catch(I){zr(t,"listener error",I)}}catch{}}return{store:e,isOnline:s,queueOperation:a,syncOnce:o,syncPendingActions:k,startAutoSync:re,stopAutoSync:fe,getQueue:n,on:(j,N)=>(A.has(j)||A.set(j,new Set),A.get(j).add(N),()=>A.get(j).delete(N)),off:(j,N)=>{A.has(j)&&A.get(j).delete(N)},getPendingUploads:async()=>{let j=await e.get("pending_uploads");return Object.values(j.val()||{})},listConflicts:async()=>(await e.get("conflicts")).val()||{},resolveConflict:async(j,N="useServer")=>{let Z=String(j).split("/"),I=Z.shift(),O=Z.join("/"),Y=(await e.get(`conflicts/${j}`)).val();if(!Y)return null;if(N==="useServer"){await e.set(`entities/${I}/${O}`,Y.server),await e.remove(`conflicts/${j}`);let ee=await n();return await i(ee.filter(ce=>!(ce.entity===I&&String(ce.recordId)===String(O)))),{applied:"server"}}return N==="useLocal"?(await a(I,"update",O,Y.local),await e.remove(`conflicts/${j}`),{requeued:!0}):null}}}var rj=3e4,wm=null;async function nj(){return wm||(wm=await Promise.resolve().then(()=>(no(),ty))),wm}var vm=null;async function ij(){return vm||(vm=await Promise.resolve().then(()=>(rw(),Ly))),vm}var Os=class extends Error{constructor(e,A={}){super(e),this.name="TevrocError",this.status=A.status,this.code=A.code,this.details=A.details,this.response=A.response}};function aj(t,e=""){if(!t)return"";let A=String(e||"tevrocdev"),r=String(t),n="";for(let i=0;i<r.length;i+=1){let s=r.charCodeAt(i),a=A.charCodeAt(i%A.length);n+=(s^a+i+1).toString(16).padStart(2,"0")}return`chat:${n}`}function sj(t={}){return new nh(t)}function oj(t={}){if(!t.apiKey)throw new Os("apiKey is required to create a chatbot client");let e=new nh({...t,appId:void 0,token:null,headers:{...t.headers||{},"x-api-key":t.apiKey}}),A=(r,n={})=>e.request(r,{...n,auth:!1});return{resolveSrc:async r=>{if(!r)return r;try{let n=r;try{let o=new URL(String(r)).pathname.split("/").filter(Boolean);o.length>=2&&(o[o.length-2]==="files"||o[o.length-2]==="private-files")&&(n=o[o.length-1])}catch{n=r}let i=ot&&e.offline?await e.offline.isOnline():!0;if(ot&&!i){let a=await mm(e,n);if(a)return a}return r}catch{return r}},getConfig:()=>A("/chatbot/config"),createConversation:(r={})=>A("/chatbot/conversations",{method:"POST",body:r}),sendMessage:(r,n)=>A(`/chatbot/conversations/${encodeURIComponent(r)}/messages`,{method:"POST",body:n})}}var nh=class{constructor(e={}){let A=e.baseUrl??e.url,r=e.serviceUrl??e.url;if(!A)throw new TypeError("createClient requires a baseUrl");if(this.baseUrl=g3(A),this.serviceUrl=g3(r),this.appId=e.appId,this.appName=e.appName,this.payAccount=e.payAccount??"default",this.fetch=(e.fetch??globalThis.fetch).bind(globalThis),typeof this.fetch!="function")throw new TypeError("No fetch implementation available");this.timeoutMs=e.timeoutMs??rj,this.defaultHeaders=Lj(e.headers),this.token=e.token??null,this.debug=e.debug??!1,_0(this.debug),this.auth=dj(this),this.entities=gj(this),this.functions=vj(this),this.integrations=mj(this),this.agents=yj(this),this.logs=bj(this),this.connectors=Cj(this),this.customIntegrations=Ej(this),this.sso=Fj(this),this.files=Sj(this),this.native={store:$c(this.appId),files:dm(this.appId),googleDrive:r3(this.appId),projects:n3(this.appId)},this.offline=d3(this);try{this.offline&&typeof this.offline.startAutoSync=="function"&&this.offline.startAutoSync()}catch(n){try{if(typeof window<"u"&&(window.__TEVROC_SDK_ERRORS__=window.__TEVROC_SDK_ERRORS__||[],window.__TEVROC_SDK_ERRORS__.push({source:"client.offline.startAutoSync",message:String(n?.message||n),stack:n?.stack}),typeof window.__TEVROC_SDK_ON_ERROR=="function"))try{window.__TEVROC_SDK_ON_ERROR({source:"client.offline.startAutoSync",error:n})}catch{}}catch{}}this.payments=hj(this),this.commerce=uj(this),this.realtime=cj(this),this.notifications=MS(),this.agentNotifications=HS(this),this.shiplogic=lj(this),this.platform=fj(this),this.pdf=DS(this)}setToken(e){return this.token=e||null,this.token?Mg()?.setItem("tevroc_access_token",this.token):Mg()?.removeItem("tevroc_access_token"),this}clearToken(){return this.token=null,Mg()?.removeItem("tevroc_access_token"),this}setDebug(e){return this.debug=!!e,_0(this.debug),this}async request(e,A={}){let r=(A.method??"GET").toUpperCase(),n=new Headers(this.defaultHeaders),i=A.query?Ij(A.query):"",s=`${this.baseUrl}${e.startsWith("/")?e:`/${e}`}${i}`,a=new AbortController,o=A.timeoutMs||this.timeoutMs||2500,l=null,h=this.token||Tj();Ye(this,h,A),h&&A.auth!==!1&&n.set("authorization",`Bearer ${h}`),this.appId&&n.set("x-app-id",this.appId);let v=A.body;if(v!=null&&Oj(v)&&(n.set("content-type","application/json"),v=JSON.stringify(v)),A.headers)for(let[m,g]of Object.entries(A.headers))g!=null&&n.set(m,String(g));Ye(this,"[tevrocsdk] request start",{url:s,method:r,query:A.query,auth:A.auth,isNative:ot,skipSync:A.skipSync});try{let m=await this.offline?.isOnline();if(ot&&!A.skipSync&&m){Ye(this,"[tevrocsdk] request triggering pending sync");try{typeof this.offline.syncPendingActions=="function"?await this.offline.syncPendingActions():typeof this.offline.syncOnce=="function"?(Xc(this,"[tevrocsdk] offline manager missing syncPendingActions, using syncOnce fallback"),await this.offline.syncOnce()):Xc(this,"[tevrocsdk] offline manager has no syncPendingActions or syncOnce"),Ye(this,"[tevrocsdk] pending sync completed")}catch(x){Xc(this,"[tevrocsdk] pending sync failed",x)}}let g;g=this.fetch(s,{method:r,headers:n,body:v,signal:A.signal??a.signal});let C=new Promise((x,H)=>{l=setTimeout(()=>{try{a.abort()}catch{}H(new Os("Request timed out",{code:"timeout"}))},o)}),F=await Promise.race([g,C]),_=await Qj(F,A.parseAs);return Ye(this,"Response from request:",_),_}catch(m){throw Xc(this,"[tevrocsdk] request failed",{url:s,method:r,error:m}),m?.name==="AbortError"?new Os("Request timed out",{code:"timeout"}):m instanceof Os?m:new Os(m?.message??"Network request failed",{code:"network_error",details:m})}finally{clearTimeout(l)}}};function lj(t){return{getRates:(e={})=>t.request("/shiplogic/rates",{method:"POST",body:e}),createShipment:(e={})=>t.request("/shiplogic/shipments",{method:"POST",body:e}),cancelShipment:e=>t.request(`/shiplogic/shipments/${encodeURIComponent(e)}`,{method:"DELETE"}),trackShipment:e=>t.request(`/shiplogic/track/${encodeURIComponent(e)}`),printLabel:e=>t.request(`/shiplogic/labels/${encodeURIComponent(e)}`,{parseAs:"response"}),validateAddress:(e={})=>t.request("/shiplogic/address/validate",{method:"POST",body:e}),getBranches:(e={})=>t.request("/shiplogic/branches",{query:e}),getCollectionSlots:(e={})=>t.request("/shiplogic/collections/slots",{method:"POST",body:e}),bookCollection:(e={})=>t.request("/shiplogic/collections",{method:"POST",body:e})}}function cj(t){let e=n=>n.replace(/^http:/,"ws:").replace(/^https:/,"wss:"),A=n=>aj(n,t.appId),r=(n,i={},s={})=>{let a=A(n||s.room||"default"),o=encodeURIComponent(a||"default"),l=a||"default",h=`${e(t.baseUrl)}/realtime/${o}`,v=`${e(t.baseUrl)}/realtime/${l}`,m=s.reconnectMs??3e3,g=s.maxReconnects??5;Hg(t,"[tevrocsdk] realtime connect requested",{room:n,roomName:a,url:h,appId:t.appId,reconnectMs:m,maxReconnects:g});let C=null,F=null,_=0,x=!1,H=[],D=Ae=>C?.readyState!==WebSocket.OPEN?!1:(C.send(typeof Ae=="string"?Ae:JSON.stringify(Ae)),!0),k=()=>{F&&(clearTimeout(F),F=null)},re=!1,fe=()=>{k(),!x&&(Hg(t,"[tevrocsdk] opening realtime socket",{room:n,roomName:a,url:h,appId:t.appId}),C=new WebSocket(h),C.addEventListener("open",Ae=>{for(_=0,Hg(t,"[tevrocsdk] realtime socket open",{room:n,roomName:a,readyState:C.readyState,url:h}),i.open?.(Ae);H.length&&D(H[0]);)H.shift()}),C.addEventListener("message",Ae=>{let j=Ae.data;try{j=JSON.parse(Ae.data)}catch{}Hg(t,"[tevrocsdk] realtime socket message",{room:n,roomName:a,data:j}),i.message?.(j,Ae)}),C.addEventListener("close",Ae=>{if(Ye(t,"[tevrocsdk] realtime socket close",{room:n,roomName:a,code:Ae.code,reason:Ae.reason,wasClean:Ae.wasClean,url:h}),i.close?.(Ae),(Ae?.code===1006||C?.readyState!==WebSocket.OPEN)&&!re&&v&&v!==h){re=!0,Xc(t,"[tevrocsdk] realtime fallback to raw URL after failed encoded handshake",{encodedUrl:h,rawUrl:v}),h=v,F=setTimeout(()=>fe(),500);return}x||_>=g||(F=setTimeout(()=>{_+=1,Ye(t,"[tevrocsdk] realtime retry",{room:n,roomName:a,attempt:_,delayMs:m,url:h}),fe()},m))}),C.addEventListener("error",Ae=>{Ye(t,"[tevrocsdk] realtime socket error",{room:n,roomName:a,event:Ae}),i.error?.(Ae)}))};return fe(),{socket:()=>C,send:Ae=>(D(Ae)||(H.push(Ae),Ye(t,"[tevrocsdk] realtime message queued until the socket opens",{room:n,roomName:a,queued:H.length})),!0),close:()=>{x=!0,k(),H.length=0,Ye(t,"[tevrocsdk] realtime socket close requested",{room:n,roomName:a}),C?.close()},reconnect:()=>{x=!1,fe()}}};return{encryptRoomName:A,roomName:A,connect:r,room:(n,i={},s={})=>{let a=r(n,i,s);return Ye(t,"[tevrocsdk] realtime room created",{room:n,options:s}),{...a,publish:o=>(Ye(t,"[tevrocsdk] realtime publish requested",{room:n,payload:o}),a.send(o))}},iceServers:(n={})=>{let i=[],s=String(n.stun_urls||n.stunUrls||"stun:stun.l.google.com:19302").split(",").map(a=>a.trim()).filter(Boolean);return s.length&&i.push({urls:s}),(n.turn_url||n.turnUrl)&&i.push({urls:n.turn_url||n.turnUrl,username:n.turn_username||n.turnUsername,credential:n.turn_credential||n.turnCredential}),i}}}function uj(t){let e=A=>({list:(r={})=>t.request(`/commerce/${encodeURIComponent(A)}`,{query:r}),query:(r={})=>t.request(`/commerce/${encodeURIComponent(A)}/query`,{method:"POST",body:r}),create:(r={})=>t.request(`/commerce/${encodeURIComponent(A)}`,{method:"POST",body:r}),update:(r,n={})=>t.request(`/commerce/${encodeURIComponent(A)}/${encodeURIComponent(r)}`,{method:"PATCH",body:n})});return{orders:e("CustomerOrder"),deliveries:e("Delivery"),deliveryMessages:e("DeliveryMessage"),availability:e("AvailabilitySlot"),bookings:e("Booking"),appointmentMessages:e("AppointmentMessage"),appointmentSignals:e("AppointmentSignal")}}function fj(t){return(async function(){let{isNative:e,isCapacitor:A,isTauri:r,platform:n}=await nj();return{platform:n,isCapacitor:A,isTauri:r,isNative:e}})()}function hj(t){return{create:async({amountZAR:e,appId:A="tevrocsoft",mode:r="web",account:n="default",externalCallback:i=void 0}={})=>await Dy(e,{appId:A,serviceUrl:t.serviceUrl,mode:r,payAccount:n,externalCallback:i}),createCheckout:async(e={})=>await t.request("/create-checkout",{method:"POST",body:e,auth:!1}),onstatus:e=>{if(typeof e!="function")throw new Error("onstatus requires a function");return ky(e)}}}function dj(t){return{async register(e){let A=Ns(e,t),r=await t.request("/auth/register",{method:"POST",body:A,auth:!1});return r.token&&t.setToken(r.token),r},loginWithProvider:async(e,A,r=async()=>{})=>{if(e==="google"){let{createGoogleLogin:n,subscribeGoogleLogin:i}=await ij();if(Ye(t,{serviceUrl:t.serviceUrl,appId:t.appId,appName:t.appName}),n({serviceUrl:t.serviceUrl,appId:t.appId,appName:t.appName}),A){let s=i(async(a,o)=>{if(Ye(t,"Google callback:",a,o),s(),!a)return;let l=await t.request("/auth/google",{method:"POST",body:Ns({accessToken:a.accessToken},t),auth:!1});Ye(t,l),await r(l.token,l.user),Ye(t,"Redirecting to:",A),window.location.href=A})}}},googleLogin:e=>Aw(e),onGoogleLogin:e=>tw(e),async login(e){let A=Ns(e,t),r=await t.request("/auth/login",{method:"POST",body:A,auth:!1});return r.token&&t.setToken(r.token),r},async logout(){let e=await t.request("/auth/logout",{method:"POST",body:Ns({},t)});return t.clearToken(),e},inviteUser:e=>t.request("/users/invite",{method:"POST",body:Ns(e,t)}),acceptInvite:e=>t.request("/auth/accept-invite",{method:"POST",body:Ns(e,t),auth:!1}),me:async()=>{let e=ot&&t.offline?await t.offline.isOnline():!0,A=ot&&!e;if(Ye(t,"[tevrocsdk][auth] me",{online:e,offline:A}),A){let n=(await t.native.store.get("auth/me")).val();if(Ye(t,"[tevrocsdk][auth] me offline result",{exists:n!=null}),n)return n}let r=await t.request("/auth/me",{headers:pj(t)});return Ye(t,"[tevrocsdk][auth] me online result",r),ot&&t.native?.store&&r&&typeof r=="object"&&await t.native.store.set("auth/me",r),r},verifyOtp:e=>t.request("/auth/verify-otp",{method:"POST",body:Ns(e,t),auth:!1}),changePassword:e=>t.request("/auth/change-password",{method:"POST",body:Ns(e,t)}),resetPassword:e=>t.request("/auth/reset-password",{method:"POST",body:Ns(e,t),auth:!1}),loginUrl:e=>t.request("/auth/login-url",{query:e?{redirectTo:e,appId:t.appId||void 0}:{appId:t.appId||void 0},auth:!1})}}function Ns(t={},e){let A={...t||{}};return e?.appId&&A.appId==null&&(A.appId=e.appId),A}function pj(t){return t?.appId?{"x-app-id":t.appId}:{}}function gj(t){return new Proxy({},{get(e,A){if(typeof A=="string")return wj(t,A)}})}function wj(t,e){let A=`/entities/${encodeURIComponent(e)}`;async function r(l){!t.native?.store||!ot||!l||typeof l!="object"||!l.id||await t.native.store.set(`entities/${e}/${l.id}`,l)}async function n(l){!t.native?.store||!ot||!Array.isArray(l)||await Promise.all(l.filter(h=>h&&typeof h=="object"&&h.id).map(h=>t.native.store.set(`entities/${e}/${h.id}`,h)))}function i(l,h={}){return Object.entries(h).every(([v,m])=>m&&typeof m=="object"?"$eq"in m?l?.[v]===m.$eq:!0:l?.[v]===m)}async function s(){if(!t.native?.store||!ot)return{data:[]};let l=await t.native.store.get(`entities/${e}`);return{data:Object.values(l.val()||{}),limit:0,offset:0}}async function a(l){return!t.native?.store||!ot?{data:null}:{data:(await t.native.store.get(`${e}/${l}`)).val()}}async function o(l={}){if(!t.native?.store||!ot)return{data:[]};let h=await t.native.store.get(`entities/${e}`);return{data:Object.values(h.val()||{}).filter(m=>i(m,l.filter||l.where||l.filters||{})).slice(0,l.limit||200),limit:l.limit}}return{list:async l=>{let h=await t.offline?.isOnline(),v=ot&&!h;if(Ye(t,`[tevrocsdk][entities:${e}] list`,{online:h,offline:v,options:l}),v){let g=await t.native.store.get(`entities/${e}`),C=Object.values(g.val()||{});return Ye(t,`[tevrocsdk][entities:${e}] list offline result`,{count:C.length}),{data:C,limit:l?.limit,offset:l?.offset||0}}let m=await t.request(A,{query:l});return Ye(t,`[tevrocsdk][entities:${e}] list online result`,m),ot&&(await n(m?.data||[]),Ye(t,`[tevrocsdk][entities:${e}] list cached ${m?.data?.length||0} records for offline use`)),m},get:async l=>{let h=await t.offline?.isOnline(),v=ot&&!h;if(Ye(t,`[tevrocsdk][entities:${e}] get`,{id:l,online:h,offline:v}),v){let g=(await t.native.store.get(`${e}/${l}`)).val();return Ye(t,`[tevrocsdk][entities:${e}] get offline result`,{id:l,exists:g!=null}),{data:g}}let m=await t.request(`${A}/${encodeURIComponent(l)}`);return Ye(t,`[tevrocsdk][entities:${e}] get online result`,{id:l,result:m}),ot&&(await r(m?.data),Ye(t,`[tevrocsdk][entities:${e}] get cached record ${m?.data?.id||"unknown"} for offline use`)),m},create:async l=>{let h=await t.offline?.isOnline(),v=ot&&!h;if(Ye(t,`[tevrocsdk][entities:${e}] create`,{online:h,offline:v,id:l?.id}),v){let g=await t.offline.queueOperation(e,"create",l?.id,l);return Ye(t,`[tevrocsdk][entities:${e}] create queued`,g),g}let m=await t.request(A,{method:"POST",body:l});if(Ye(t,`[tevrocsdk][entities:${e}] create online result`,m),ot){let g=m?.data??m;if(g&&typeof g=="object"){let C=g.id??l?.id;C&&await t.native.store.set(`entities/${e}/${C}`,g)}}return m},update:async(l,h)=>{let v=await t.offline?.isOnline(),m=ot&&!v;if(Ye(t,`[tevrocsdk][entities:${e}] update`,{online:v,offline:m,id:l,patch:h}),m){let C=await t.offline.queueOperation(e,"update",l,h);return Ye(t,`[tevrocsdk][entities:${e}] update queued`,C),C}let g=await t.request(`${A}/${encodeURIComponent(l)}`,{method:"PATCH",body:h});if(Ye(t,`[tevrocsdk][entities:${e}] update online result`,{id:l,result:g}),ot){let C=g?.data??g;if(C&&typeof C=="object"){let F=C.id??l;F&&await t.native.store.set(`entities/${e}/${F}`,C)}}return g},delete:async l=>{let h=await t.offline?.isOnline(),v=ot&&!h;if(Ye(t,`[tevrocsdk][entities:${e}] delete`,{online:h,offline:v,id:l}),v){let g=await t.offline.queueOperation(e,"delete",l);return Ye(t,`[tevrocsdk][entities:${e}] delete queued`,g),g}let m=await t.request(`${A}/${encodeURIComponent(l)}`,{method:"DELETE"});return Ye(t,`[tevrocsdk][entities:${e}] delete online result`,{id:l,result:m}),ot&&await t.native.store.remove(`entities/${e}/${l}`),m},query:async(l={})=>{let h=await t.offline?.isOnline(),v=ot&&!h;if(Ye(t,`[tevrocsdk][entities:${e}] query`,{online:h,offline:v,input:l}),v){let g=await t.native.store.get(`entities/${e}`),C=Object.values(g.val()||{}).filter(F=>i(F,l.filter||l.where||l.filters||{}));return Ye(t,`[tevrocsdk][entities:${e}] query offline result`,{count:C.length}),{data:C.slice(0,l.limit||200),limit:l.limit}}let m=await t.request(`${A}/query`,{method:"POST",body:l});return Ye(t,`[tevrocsdk][entities:${e}] query online result`,m),ot&&(await n(m?.data||[]),Ye(t,`[tevrocsdk][entities:${e}] query online cached`)),m},filter:async(l={},h,v)=>{let m=await t.offline?.isOnline(),g=ot&&!m,C=Nj(l,h,v);if(Ye(t,`[tevrocsdk][entities:${e}] filter`,{online:m,offline:g,filter:C,sortOrOptions:h,limit:v}),g){let _=await t.native.store.get(`entities/${e}`),x=Object.values(_.val()||{}).filter(H=>i(H,C.filter||C.where||C.filters||{}));return C.sort&&typeof C.sort=="string"&&x.sort((H,D)=>{let k=H?.[C.sort],re=D?.[C.sort];return k==null&&re==null?0:k==null?1:re==null||k<re?-1:k>re?1:0}),{data:x.slice(0,C.limit||200),limit:C.limit,offset:0}}let F=await t.request(`${A}/query`,{method:"POST",body:C});return Ye(t,`[tevrocsdk][entities:${e}] filter online result`,F),ot&&await n(F?.data||[]),F},bulkCreate:async(l=[])=>{let h=await t.offline?.isOnline();if(Ye(t,`[tevrocsdk][entities:${e}] bulkCreate`,{online:h,count:l?.length}),!h){let m=0;for(let g of l)await t.offline.queueOperation(e,"create",g?.id,g),m+=1;return Ye(t,`[tevrocsdk][entities:${e}] bulkCreate queued`,{inserted:m}),{inserted:m}}let v=await t.request(`${A}/bulk`,{method:"POST",body:{records:l}});return Ye(t,`[tevrocsdk][entities:${e}] bulkCreate online result`,v),ot&&await n(v?.data||[]),v},bulkUpdate:async(l=[])=>{let h=await t.offline?.isOnline();if(Ye(t,`[tevrocsdk][entities:${e}] bulkUpdate`,{online:h,count:l?.length}),!h){let m=0;for(let g of l)g?.id&&(await t.offline.queueOperation(e,"update",g.id,g),m+=1);return Ye(t,`[tevrocsdk][entities:${e}] bulkUpdate queued`,{updated:m}),{updated:m}}let v=await t.request(`${A}/bulk`,{method:"PATCH",body:{records:l}});return Ye(t,`[tevrocsdk][entities:${e}] bulkUpdate online result`,v),ot&&await n(v?.data||[]),v},bulkDelete:async(l=[])=>{let h=await t.offline?.isOnline();if(Ye(t,`[tevrocsdk][entities:${e}] bulkDelete`,{online:h,ids:l}),!h){for(let m of l)await t.offline.queueOperation(e,"delete",m);return Ye(t,`[tevrocsdk][entities:${e}] bulkDelete queued`,{count:l.length}),{deleted:l.length}}let v=await t.request(`${A}/bulk`,{method:"DELETE",body:{ids:l}});if(Ye(t,`[tevrocsdk][entities:${e}] bulkDelete online result`,v),ot)for(let m of l)await t.native.store.remove(`entities/${e}/${m}`);return v},import:async(l=[])=>{let h=await t.offline?.isOnline();if(Ye(t,`[tevrocsdk][entities:${e}] import`,{online:h,count:l?.length}),!h){let m=0;for(let g of l)await t.offline.queueOperation(e,"create",g?.id,g),m+=1;return Ye(t,`[tevrocsdk][entities:${e}] import queued`,{imported:m}),{imported:m}}let v=await t.request(`${A}/import`,{method:"POST",body:{records:l}});return Ye(t,`[tevrocsdk][entities:${e}] import online result`,v),ot&&await n(v?.data||[]),v}}}function vj(t){return new Proxy({invoke:(e,A)=>t.request(`/functions/${encodeURIComponent(e)}`,{method:"POST",body:A})},{get(e,A){if(A in e)return e[A];if(typeof A=="string")return r=>e.invoke(A,r)}})}function mj(t){return{Core:{InvokeLLM:e=>t.request("/integrations/core/invoke-llm",{method:"POST",body:e}),GenerateImage:e=>t.request("/integrations/core/generate-image",{method:"POST",body:e}),UploadFile:(e,A={})=>qg(t,"/integrations/core/upload-file",e,A),UploadPrivateFile:(e,A={})=>qg(t,"/integrations/core/upload-private-file",e,A),CreateFileSignedUrl:e=>t.request("/integrations/core/create-file-signed-url",{method:"POST",body:e}),SendEmail:e=>t.request("/integrations/core/send-email",{method:"POST",body:e}),ExtractDataFromUploadedFile:e=>t.request("/integrations/core/extract-data-from-uploaded-file",{method:"POST",body:e})}}}function yj(t){return new Proxy({},{get(e,A){if(typeof A=="string")return Bj(t,A)}})}function Bj(t,e){let A=`/agents/${encodeURIComponent(e)}/conversations`,r=`agents/${encodeURIComponent(e)}`;async function n(s){!t.native?.store||!ot||!s||typeof s!="object"||!s.id||await t.native.store.set(`${r}/conversations/${s.id}`,s)}async function i(s,a=[]){!t.native?.store||!ot||!s||await Promise.all((Array.isArray(a)?a:[]).filter(o=>o&&typeof o=="object"&&o.id).map(o=>t.native.store.set(`${r}/conversations/${s}/messages/${o.id}`,o)))}return{createConversation:async(s={})=>{let a=await t.offline?.isOnline(),o=ot&&!a;if(Ye(t,`[tevrocsdk][agents:${e}] createConversation`,{online:a,offline:o,input:s}),o){let h=await t.offline.queueOperation(`agents/${e}`,"create",s?.id,{type:"conversation",...s});return Ye(t,`[tevrocsdk][agents:${e}] createConversation queued`,h),h}let l=await t.request(A,{method:"POST",body:s});if(Ye(t,`[tevrocsdk][agents:${e}] createConversation online result`,l),ot){let h=l?.data??l;h&&typeof h=="object"&&await n(h)}return l},listConversations:async()=>{let s=await t.offline?.isOnline(),a=ot&&!s;if(Ye(t,`[tevrocsdk][agents:${e}] listConversations`,{online:s,offline:a}),a){let l=await t.native.store.get(`${r}/conversations`),h=Object.values(l.val()||{});return Ye(t,`[tevrocsdk][agents:${e}] listConversations offline result`,{count:h.length}),{data:h}}let o=await t.request(A);return Ye(t,`[tevrocsdk][agents:${e}] listConversations online result`,o),ot&&Array.isArray(o?.data)&&await Promise.all(o.data.map(l=>n(l))),o},getConversation:async s=>{let a=await t.offline?.isOnline(),o=ot&&!a;if(Ye(t,`[tevrocsdk][agents:${e}] getConversation`,{conversationId:s,online:a,offline:o}),o){let h=(await t.native.store.get(`${r}/conversations/${s}`)).val();return Ye(t,`[tevrocsdk][agents:${e}] getConversation offline result`,{conversationId:s,exists:h!=null}),{data:h}}let l=await t.request(`${A}/${encodeURIComponent(s)}`);return Ye(t,`[tevrocsdk][agents:${e}] getConversation online result`,{conversationId:s,result:l}),ot&&await n(l?.data??l),l},deleteConversation:async s=>{let a=await t.offline?.isOnline(),o=ot&&!a;if(Ye(t,`[tevrocsdk][agents:${e}] deleteConversation`,{conversationId:s,online:a,offline:o}),o){let h=await t.offline.queueOperation(`agents/${e}`,"delete",s,{type:"conversation"});return Ye(t,`[tevrocsdk][agents:${e}] deleteConversation queued`,h),h}let l=await t.request(`${A}/${encodeURIComponent(s)}`,{method:"DELETE"});return Ye(t,`[tevrocsdk][agents:${e}] deleteConversation online result`,{conversationId:s,result:l}),ot&&await t.native.store.remove(`${r}/conversations/${s}`),l},addMessage:async(s,a)=>{let o=await t.offline?.isOnline(),l=ot&&!o;if(Ye(t,`[tevrocsdk][agents:${e}] addMessage`,{conversationId:s,online:o,offline:l,input:a}),l){let v=a?.id||`msg_${Date.now()}`,m=await t.offline.queueOperation(`agents/${e}`,"create",v,{type:"message",conversationId:s,...a,id:v});return Ye(t,`[tevrocsdk][agents:${e}] addMessage queued`,m),m}let h=await t.request(`${A}/${encodeURIComponent(s)}/messages`,{method:"POST",body:a});if(Ye(t,`[tevrocsdk][agents:${e}] addMessage online result`,{conversationId:s,result:h}),ot){let v=h?.data??h;v&&typeof v=="object"&&await t.native.store.set(`${r}/conversations/${s}/messages/${v.id||messageId||"unknown"}`,v)}return h},listMessages:async s=>{let a=await t.offline?.isOnline(),o=ot&&!a;if(Ye(t,`[tevrocsdk][agents:${e}] listMessages`,{conversationId:s,online:a,offline:o}),o){let h=await t.native.store.get(`${r}/conversations/${s}/messages`),v=Object.values(h.val()||{});return Ye(t,`[tevrocsdk][agents:${e}] listMessages offline result`,{conversationId:s,count:v.length}),{data:v}}let l=await t.request(`${A}/${encodeURIComponent(s)}/messages`);return Ye(t,`[tevrocsdk][agents:${e}] listMessages online result`,{conversationId:s,result:l}),ot&&Array.isArray(l?.data)&&await i(s,l.data),l}}}function bj(t){return{list:e=>t.request("/app-logs",{query:e}),create:e=>t.request("/app-logs",{method:"POST",body:e}),get:e=>t.request(`/app-logs/${encodeURIComponent(e)}`)}}function Cj(t){return{list:()=>t.request("/connectors"),get:e=>t.request(`/connectors/${encodeURIComponent(e)}`),connect:(e,A={})=>t.request(`/connectors/${encodeURIComponent(e)}/connect`,{method:"POST",body:A}),disconnect:e=>t.request(`/connectors/${encodeURIComponent(e)}/disconnect`,{method:"POST"}),status:e=>t.request(`/connectors/${encodeURIComponent(e)}/status`),user:{list:()=>t.request("/user-connectors"),get:e=>t.request(`/user-connectors/${encodeURIComponent(e)}`),refresh:e=>t.request(`/user-connectors/${encodeURIComponent(e)}/refresh`,{method:"POST"}),delete:e=>t.request(`/user-connectors/${encodeURIComponent(e)}`,{method:"DELETE"})}}}function Ej(t){return new Proxy({invoke:(e,A,r)=>t.request(`/custom-integrations/${encodeURIComponent(e)}/${encodeURIComponent(A)}`,{method:"POST",body:r})},{get(e,A){if(A in e)return e[A];if(typeof A=="string")return new Proxy({},{get(r,n){if(typeof n=="string")return i=>e.invoke(A,n,i)}})}})}function Fj(t){return{accessToken:e=>t.request("/sso/access-token",{method:"POST",body:e,auth:!1}),callback:e=>t.request("/sso/callback",{query:e,auth:!1})}}async function w3(t){return new Promise((e,A)=>{if(typeof FileReader>"u")return A(new Error("FileReader unavailable"));let r=new FileReader;r.onloadend=()=>{let n=r.result;if(typeof n!="string")return e("");let i=n.split(",")[1]||"";e(i)},r.onerror=A,r.readAsDataURL(t)})}async function p3(t,e){if(!t.native?.store||!ot)return null;let A=(await t.native.store.get(`downloaded_files/${e}`)).val();if(console.debug("[tevrocsdk][files] readCachedFileResponse",{key:e,hasCached:!!A?.data}),!A?.data)return null;let r=Uj(A.data,A.contentType||"application/octet-stream");return console.debug("[tevrocsdk][files] readCachedFileResponse built blob",{key:e,size:r&&r.size}),new Response(r,{headers:{"content-type":A.contentType||"application/octet-stream"}})}async function Dg(t,e,A,r="application/octet-stream"){if(!(!t.native?.store||!ot||!e))try{console.debug("[tevrocsdk][files] storeCachedFileResponse",{key:e});let n=A instanceof Response?A.clone():null,i=n?await n.blob():null,s=n&&n.headers.get("content-type")||r,a=i?await w3(i):"";if(console.debug("[tevrocsdk][files] storeCachedFileResponse data length",{key:e,length:a?a.length:0,contentType:s}),!a){console.warn("[tevrocsdk][files] storeCachedFileResponse no data to store",{key:e});return}await t.native.store.set(`downloaded_files/${e}`,{data:a,contentType:s,key:e,updatedAt:new Date().toISOString()}),console.debug("[tevrocsdk][files] storeCachedFileResponse stored",{key:e})}catch(n){Xc(t,"Failed to cache downloaded file",n),console.warn("[tevrocsdk][files] storeCachedFileResponse error",n)}}async function mm(t,e){if(!t.native?.store||!ot||!e)return null;let A=(await t.native.store.get(`downloaded_files/${e}`)).val();return console.debug("[tevrocsdk][files] readCachedFileDataUrl",{key:e,hasCached:!!A?.data}),A?.data?(console.debug("[tevrocsdk][files] readCachedFileDataUrl returning data url",{key:e,length:A.data.length}),`data:${A.contentType||"application/octet-stream"};base64,${A.data}`):null}function Uj(t,e="application/octet-stream"){if(typeof atob>"u"||typeof Blob>"u")return t;let A=atob(t),r=new Uint8Array(A.length);for(let n=0;n<A.length;n+=1)r[n]=A.charCodeAt(n);return new Blob([r],{type:e})}function xj(t){let e="",A=new Uint8Array(t),r=32768;for(let n=0;n<A.length;n+=r){let i=A.subarray(n,n+r);e+=String.fromCharCode.apply(null,i)}return btoa(e)}async function _j(t){if(typeof Blob<"u"&&t instanceof Blob)return{data:await w3(t),contentType:t.type||"application/octet-stream",bodyIsBase64:!0};if(t&&typeof t.arrayBuffer=="function"){let e=await t.arrayBuffer();return{data:xj(e),contentType:"application/octet-stream",bodyIsBase64:!0}}return typeof t=="string"?{data:t,contentType:"text/plain",bodyIsBase64:!1}:{data:JSON.stringify(t),contentType:"application/json",bodyIsBase64:!1}}function Sj(t){return{url:async e=>{let A=ot&&t.offline?await t.offline.isOnline():!0,r=ot&&!A,n=String(e??"");try{let s,a=0;do{s=n;try{n=decodeURIComponent(n)}catch{break}a+=1}while(n!==s&&n.includes("%25")&&a<5);a>0&&console.debug("[tevrocsdk][files] iterative decode performed",{original:e,rawKey:n,rounds:a})}catch{}if(Ye(t,"[tevrocsdk][files:url]",{key:e,rawKey:n,online:A,offline:r,isNative:ot}),r){let s=await mm(t,n);if(s)return s}let i=await t.request(`/files/${encodeURIComponent(n)}`,{parseAs:"response",auth:!1,skipSync:!0}).catch(()=>null);return i&&ot&&t.native?.store&&await Dg(t,n,i,i.headers.get("content-type")||"application/octet-stream"),`${t.baseUrl}/files/${encodeURIComponent(n)}`},privateUrl:async e=>{let A=ot&&t.offline?await t.offline.isOnline():!0,r=ot&&!A,n=String(e??"");try{let s,a=0;do{s=n;try{n=decodeURIComponent(n)}catch{break}a+=1}while(n!==s&&n.includes("%25")&&a<5);a>0&&console.debug("[tevrocsdk][files] iterative decode performed (privateUrl)",{original:e,rawKey:n,rounds:a})}catch{}if(Ye(t,"[tevrocsdk][files:privateUrl]",{key:e,rawKey:n,online:A,offline:r,isNative:ot}),r){let s=await mm(t,n);if(s)return s}let i=await t.request(`/private-files/${encodeURIComponent(n)}`,{parseAs:"response",skipSync:!0}).catch(()=>null);return i&&ot&&t.native?.store&&await Dg(t,n,i,i.headers.get("content-type")||"application/octet-stream"),`${t.baseUrl}/private-files/${encodeURIComponent(n)}`},upload:async(e,A={})=>qg(t,"/integrations/core/upload-file",e,A),uploadPrivate:async(e,A={})=>qg(t,"/integrations/core/upload-private-file",e,A),syncPendingUploads:async()=>!t.offline||typeof t.offline.syncPendingActions!="function"?{ok:!1,reason:"offline_unavailable"}:t.offline.syncPendingActions(),listPendingUploads:async()=>!t.offline||typeof t.offline.getPendingUploads!="function"?[]:t.offline.getPendingUploads(),get:async e=>{let A=ot&&t.offline?await t.offline.isOnline():!0,r=ot&&!A,n=String(e??"");try{let s,a=0;do{s=n;try{n=decodeURIComponent(n)}catch{break}a+=1}while(n!==s&&n.includes("%25")&&a<5);a>0&&console.debug("[tevrocsdk][files] iterative decode performed (get)",{original:e,rawKey:n,rounds:a})}catch{}if(Ye(t,"[tevrocsdk][files] get",{key:e,rawKey:n,isNative:ot,online:A,offline:r}),r){let s=await p3(t,n);if(Ye(t,"[tevrocsdk][files] get offline cached",{rawKey:n,cached:!!s}),s)return s}let i=await t.request(`/files/${encodeURIComponent(n)}`,{parseAs:"response",auth:!1,skipSync:!0});return Ye(t,"[tevrocsdk][files] get online response",{rawKey:n,status:i.status}),await Dg(t,n,i,i.headers.get("content-type")||"application/octet-stream"),i},getPrivate:async e=>{let A=ot&&t.offline?await t.offline.isOnline():!0,r=ot&&!A,n=String(e??"");try{let s,a=0;do{s=n;try{n=decodeURIComponent(n)}catch{break}a+=1}while(n!==s&&n.includes("%25")&&a<5);a>0&&console.debug("[tevrocsdk][files] iterative decode performed (getPrivate)",{original:e,rawKey:n,rounds:a})}catch{}if(Ye(t,"[tevrocsdk][files] getPrivate",{key:e,rawKey:n,isNative:ot,online:A,offline:r}),r){let s=await p3(t,n);if(Ye(t,"[tevrocsdk][files] getPrivate offline cached",{rawKey:n,cached:!!s}),s)return s}let i=await t.request(`/private-files/${encodeURIComponent(n)}`,{parseAs:"response",skipSync:!0});return Ye(t,"[tevrocsdk][files] getPrivate online response",{rawKey:n,status:i.status}),await Dg(t,n,i,i.headers.get("content-type")||"application/octet-stream"),i}}}async function qg(t,e,A,r={}){let n={};if(r.filename&&(n["x-filename"]=r.filename),r.contentType&&(n["content-type"]=r.contentType),ot&&t.offline&&!await t.offline.isOnline()){let a=r.filename||`file_${Date.now()}`,o=await _j(A),l={path:e,method:"POST",headers:n,body:o.data,contentType:o.contentType,bodyIsBase64:o.bodyIsBase64,filename:r.filename,createdAt:new Date().toISOString()},h=await t.offline.queueOperation("files","upload",a,l);return Ye(t,"[tevrocsdk][files] upload queued offline",{path:e,id:a,queued:h}),h}return ot&&t.offline&&typeof t.offline.syncPendingActions=="function"&&await t.offline.syncPendingActions(),await t.request(e,{method:"POST",body:A,headers:n,skipSync:!0})}async function Qj(t,e){if(e==="response")return t;let r=(t.headers.get("content-type")??"").includes("application/json"),n=r?await t.json():await t.text();if(!t.ok){let i=r&&n?.error?n.error:{};throw new Os(i.message??t.statusText,{status:t.status,code:i.code??"api_error",details:i.details??n,response:t})}return n}function Ij(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(n!=null)if(Array.isArray(n))for(let i of n)e.append(r,String(i));else e.set(r,String(n));let A=e.toString();return A?`?${A}`:""}function g3(t){return String(t).replace(/\/+$/,"")}function Lj(t={}){return Object.fromEntries(new Headers(t).entries())}function Ye(t,...e){t?.debug&&console.log(...e)}function Xc(t,...e){t?.debug&&console.warn(...e)}function Hg(t,...e){t?.debug&&console.error(...e)}function Mg(){return typeof globalThis<"u"?globalThis.localStorage:void 0}function Tj(){return Mg()?.getItem("tevroc_access_token")??null}function Nj(t={},e,A){let r={filter:t};return typeof e=="string"?r.sort=e:e&&typeof e=="object"&&Object.assign(r,e),A!==void 0&&(r.limit=A),r}function Oj(t){let e=typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer,A=typeof Blob<"u"&&t instanceof Blob,r=typeof FormData<"u"&&t instanceof FormData;return typeof t=="object"&&!e&&!A&&!r}return OQ(Pj);})();
|
|
88
|
+
`)}return""+A},e})();no();jo();var jK=t=>new Promise((e,A)=>{let r=new FileReader;r.onloadend=()=>{let n=r.result;typeof n=="string"?e(n.split(",")[1]):A(new Error("Unable to encode PDF blob to base64"))},r.onerror=A,r.readAsDataURL(t)}),Am=async t=>{if(!t)throw new Error("PDF source is required");if(t instanceof Blob)return t;if(typeof t.output=="function"){let e=t.output("blob");return e instanceof Promise?await e:e}throw new Error("Unsupported PDF source. Pass a Blob or a jsPDF document instance.")},VK=async t=>{if(!t)throw new Error("File source is required");if(t instanceof Blob)return t;if(typeof t.output=="function"){let e=t.output("blob");return e instanceof Promise?await e:e}if(t instanceof ArrayBuffer)return new Blob([t]);if(t instanceof Uint8Array)return new Blob([t]);if(t&&typeof t.arrayBuffer=="function"){let e=await t.arrayBuffer();return new Blob([e])}throw new Error("Unsupported file source. Pass a Blob, ArrayBuffer, Uint8Array, or a jsPDF document instance.")},rm=t=>URL.createObjectURL(t),TS=async(t,e)=>{let A=rm(t),r=document.createElement("a");r.href=A,r.download=e,r.style.display="none",document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(A)},RS=t=>{if(!t)return"";let e=String(t).trim().split(".");return e.length>1?e.pop().toLowerCase():""},GK=t=>{let e=RS(t);return e?[{name:e.toUpperCase(),extensions:[e]}]:[]},Lg=(t,e="pdf")=>t?String(t).includes(".")?t:`${t}.${e}`:`document.${e}`,NS=async(t,e,A="pdf")=>{let{Filesystem:r,Directory:n}=await Promise.resolve().then(()=>(bS(),BS)),{Toast:i}=await Promise.resolve().then(()=>(xS(),US)),s=Lg(e,A),a=await jK(t);await r.writeFile({path:s,data:a,directory:n.Documents,recursive:!0});let o=await r.getUri({directory:n.Documents,path:s});try{await i.show({text:`Saved to Documents/${s}`,duration:"short"})}catch{}return o?.uri??s},OS=async(t,e,A="pdf")=>{let{save:r}=await Promise.resolve().then(()=>(SS(),_S)),{writeFile:n}=await Promise.resolve().then(()=>(tm(),em)),i=Lg(e,A),s=GK(i),a=await r({defaultPath:i,filters:s});if(!a)return;let o=await t.arrayBuffer(),l=new Uint8Array(o);return await n(a,l),a},zK=async(t,e="document.pdf")=>{let{writeFile:A}=await Promise.resolve().then(()=>(tm(),em)),{tempDir:r,join:n}=await Promise.resolve().then(()=>(X2(),QS)),i=String(e||"document.pdf").trim().replace(/[^a-zA-Z0-9._-]+/g,"_"),s=await r(),a=await n(s,`${Date.now()}-${i}`),o=await t.arrayBuffer();await A(a,new Uint8Array(o));let l=a.replace(/\\/g,"/");return l.startsWith("/")?`file://${l}`:`file:///${l}`},kS=async(t,e="document.pdf",A=!1)=>{let{WebviewWindow:r}=await Promise.resolve().then(()=>(td(),ed)),n=await zK(t,e);iA("Opening Tauri PDF webview from local file URL");let i=`pdf-print-${Date.now()}`,s=new r(i,{url:n,title:"Print PDF",width:1e3,height:800,resizable:!0,center:!0,focus:!0,visible:!0});return s.once("tauri://created",()=>{iA("Tauri PDF print webview opened:",i);try{s.show?.(),s.setFocus?.()}catch(a){zr("Unable to focus PDF print window:",a)}}),s.once("tauri://error",a=>{Ka("Tauri PDF print webview error:",a)}),s},WK=async(t,e)=>{if(Wn&&typeof window<"u"&&(window.__TAURI__||window.__TAURI_INTERNALS__))try{let n=await kS(t,e,!1);if(n)return n}catch{}let A=rm(t),r=null;if(typeof window<"u"&&typeof window.open=="function")try{if(r=window.open("","_blank","noopener,noreferrer"),r){r.location.href=A;try{r.focus?.()}catch{}return setTimeout(()=>{try{URL.revokeObjectURL(A)}catch{}},1500),A}}catch{}if(typeof document<"u"){let n=document.createElement("a");n.href=A,n.target="_blank",n.rel="noopener noreferrer",n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)}return A},$K=async(t,e)=>{if(Wn&&typeof window<"u"&&(window.__TAURI__||window.__TAURI_INTERNALS__))try{let i=await kS(t,e,!0);if(i)return i}catch{}let A=rm(t),r=null;if(typeof window<"u"&&typeof window.open=="function")try{if(r=window.open("","_blank","noopener,noreferrer"),r){r.location.href=A;try{r.focus?.()}catch{}setTimeout(()=>{try{r.print?.()}catch{}},800);return}}catch{}if(typeof document>"u")throw new Error("PDF printing requires a browser document context.");let n=document.createElement("iframe");return n.style.position="fixed",n.style.right="0",n.style.bottom="0",n.style.width="0",n.style.height="0",n.style.border="0",n.src=A,new Promise((i,s)=>{n.onload=()=>{try{n.contentWindow.focus(),setTimeout(()=>{try{n.contentWindow.print()}catch{}i()},800)}catch(a){s(a)}},document.body.appendChild(n)})};function DS(){return{async generatePdfFromElement(t,e={}){if(!t)throw new Error("Element is required to generate PDF.");let A=await(0,PS.default)(t,{scale:e.scale??2,useCORS:!0,backgroundColor:e.backgroundColor??"#ffffff",...e.html2canvas}),r=A.toDataURL("image/png"),n=new Ft(e.jsPDF||{orientation:"p",unit:"mm",format:"a4"}),i=e.pageWidth??210,s=e.pageHeight??297,a=A.height*i/A.width,o=0;n.addImage(r,"PNG",0,o,i,a);let l=a-s;for(;l>0;)o=l-a,n.addPage(),n.addImage(r,"PNG",0,o,i,a),l-=s;return n},async downloadPdf(t,e){let A=await Am(t),r=Lg(e,"pdf");return pi&&di!=="web"?await NS(A,r,"pdf"):Wn?await OS(A,r,"pdf"):(await TS(A,r),r)},async downloadFile(t,e){let A=await VK(t),r=Lg(e,"bin"),n=RS(r)||"bin";return pi&&di!=="web"?await NS(A,r,n):Wn?await OS(A,r,n):(await TS(A,r),r)},async previewPdf(t,e="preview.pdf"){let A=await Am(t);return await WK(A,e)},async printPdf(t,e="print.pdf"){let A=await Am(t);return await $K(A,e)}}}var nm=t=>Array.isArray(t)?t:t?.data||[],XK=t=>[...t].sort((e,A)=>{let r=Number(e.createdAt||e.updatedAt||0)||Date.parse(e.createdAt||e.updatedAt||0)||0;return(Number(A.createdAt||A.updatedAt||0)||Date.parse(A.createdAt||A.updatedAt||0)||0)-r})[0]||null;function HS(t){let e=null,A=!0,r=new Map,n=new Set,i=H=>n.forEach(D=>D(H)),s=H=>H.sessionId||H.session_id||H.id,a=async(H,D)=>{let k=await t.entities.ChatMessage.query({filter:{appId:D,sessionId:H},limit:100});return nm(k)},o=(H,D)=>{let k=t.realtime.room(H,{},{maxReconnects:2});k.publish({type:"chat_message",sessionId:H,session_id:H,message:D,payload:D}),setTimeout(()=>k.close(),1e3)},l=async H=>{let D=s(H);await t.entities.ChatSession.update(H.id,{status:"agent_active",agent_email:t.agentIdentity||"agent",updatedAt:Date.now()}),i({type:"accepted",sessionId:D,session:H})},h=async H=>{let D=s(H);await t.entities.ChatSession.update(H.id,{status:"agent_rejected",updatedAt:Date.now()}),i({type:"rejected",sessionId:D,session:H})},v=async(H,D)=>{let k=s(H);if(!D?.trim())throw new TypeError("A reply message is required.");let re={id:`msg_${Date.now()}_${Math.random().toString(36).slice(2)}`,appId:H.appId||t.appId,userId:t.agentIdentity||"agent",sessionId:k,session_id:k,role:"agent",content:D.trim(),createdAt:Date.now()};return await t.entities.ChatMessage.create(re),o(k,re),i({type:"replied",sessionId:k,session:H,message:re}),re},m=async({action:H,sessionId:D,reply:k})=>{let re=t.appId,Ae=nm(await t.entities.ChatSession.query({filter:{appId:re,sessionId:D},limit:1}))[0];if(Ae){if(H==="open")return i({type:"open",sessionId:D,session:Ae});if(H==="accept")return l(Ae);if(H==="reject")return h(Ae);if(H==="reply")return v(Ae,k)}},g=H=>t.notifications.show({id:`agent-request-${H.sessionId}`,title:H.title,body:H.body,data:{sessionId:H.sessionId},channel:"agent_requests",actions:[{id:"accept",title:"Accept"},{id:"reject",title:"Reject"},{id:"reply",title:"Reply",input:!0}]}),C=async({appId:H=t.appId}={})=>{let D=nm(await t.entities.ChatSession.query({filter:{appId:H,status:"escalated"},limit:100}));for(let k of D){let re=s(k);if(!re)continue;let fe=XK(await a(re,H)),Ae=`${k.updatedAt||k.lastMessageAt||k.createdAt}:${fe?.id||fe?.content||""}`;if(r.get(re)===Ae)continue;r.set(re,Ae);let j={sessionId:re,title:`Support request from ${k.visitor_name||"a visitor"}`,body:fe?.content||"A visitor is requesting a human agent.",latestMessage:fe,session:k};await g(j),i({type:"request",...j})}},F=async({pollMs:H=8e3,agentIdentity:D,...k}={})=>{D&&(t.agentIdentity=D),A=!1,await C(k),clearInterval(e),e=setInterval(()=>!A&&C(k).catch(re=>i({type:"error",error:re})),H)},_=()=>{A=!0,clearInterval(e),e=null},x=H=>(n.add(H),()=>n.delete(H));return t.notifications.onAction(({action:H,data:D,reply:k})=>{D?.sessionId&&m({action:H,sessionId:D.sessionId,reply:k}).catch(re=>i({type:"error",error:re}))}),{start:F,stop:_,check:C,onEvent:x,accept:l,reject:h,reply:v,dispatchAction:m}}var im=()=>typeof window<"u"&&typeof Notification<"u";function MS(){let t=new Set,e=new Map,A=!1,r=g=>t.forEach(C=>C(g)),n=()=>globalThis?.Capacitor?.Plugins?.AppNotifications,i=()=>{if(A)return;let g=n();if(!g?.addListener)return;A=!0;let C=event.data||{};if(typeof C=="string")try{C=JSON.parse(C)}catch{C={}}g.addListener("notificationAction",F=>r({id:F.id,action:F.action||"open",reply:F.reply||"",data:C,platform:"capacitor"})),g.consumePendingAction?.().catch?.(()=>{})},s=async()=>{let g=n();if(g?.checkPermissions)return g.checkPermissions();if(globalThis?.__TAURI_INTERNALS__)try{return{display:await(await new Function("name","return import(name)")("@tauri-apps/plugin-notification")).isPermissionGranted()?"granted":"prompt"}}catch{return{display:"denied"}}return{display:im()?Notification.permission:"denied"}},a=async()=>{let g=n();if(g?.requestPermissions)return g.requestPermissions();if(globalThis?.__TAURI_INTERNALS__)try{return{display:await(await new Function("name","return import(name)")("@tauri-apps/plugin-notification")).requestPermission()}}catch{return{display:"denied"}}return{display:im()?await Notification.requestPermission():"denied"}},o=async(g={})=>{let C=String(g.id||`notification_${Date.now()}_${Math.random().toString(36).slice(2)}`),F={id:C,title:g.title||"Notification",body:g.body||"",data:g.data||{},actions:g.actions||[],silent:!!g.silent,channel:g.channel||"general"},_=n();if(_?.show)return i(),await _.show(F),{id:C,platform:"capacitor"};if(globalThis?.__TAURI_INTERNALS__)try{let D=await new Function("name","return import(name)")("@tauri-apps/plugin-notification");if((await D.isPermissionGranted()?"granted":await D.requestPermission())==="granted")return D.sendNotification({title:F.title,body:F.body,extra:F.data}),{id:C,platform:"tauri"}}catch{}if(!im())throw new Error("Notifications are not supported on this platform.");if((Notification.permission==="default"?await Notification.requestPermission():Notification.permission)!=="granted")throw new Error("Notification permission was not granted.");let H=new Notification(F.title,{body:F.body,tag:C,data:F.data,silent:F.silent});return H.onclick=()=>r({id:C,action:"open",data:F.data,platform:"web"}),{id:C,platform:"web",notification:H}};return{permission:s,requestPermission:a,show:o,schedule:async(g={})=>{let C=new Date(g.at||Date.now()).getTime(),F=Math.max(0,C-Date.now()),_=String(g.id||`notification_${C}_${Math.random().toString(36).slice(2)}`),x=setTimeout(()=>{e.delete(_),o({...g,id:_}).catch(H=>r({type:"error",error:H}))},F);return e.set(_,x),{id:_,at:C}},cancel:async g=>{let C=e.get(String(g));C&&clearTimeout(C),e.delete(String(g)),await n()?.cancel?.({id:String(g)})},cancelAll:async()=>{for(let g of e.values())clearTimeout(g);e.clear(),await n()?.cancelAll?.()},onAction:g=>(i(),t.add(g),()=>t.delete(g))}}no();no();jo();var $S=di==="android"||di==="ios",XS=di==="tauri",Tg=null,Ng=null,YS=new Map;function lm(t="default"){return`tevroc_${String(t||"default").replace(/[^a-z0-9_-]/gi,"_")}`}async function t3(t){return Ng||Tg||(Tg=(async()=>{if(!$S&&!XS){let e=YS.get(t)||{};return YS.set(t,e),{async get(A){return e[A]??null},async set(A,r){e[A]=r}}}try{if($S){iA("[tevrocsdk][useEntities] opening mobile SQLite for appId",t);let e=await Promise.resolve().then(()=>(GS(),VS));zr("[tevrocsdk][useEntities] Capacitor SQLite module loaded",{mod:e});let A=e?.SQLiteConnection?new e.SQLiteConnection(e.CapacitorSQLite):null;if(zr("[tevrocsdk][useEntities] SQLiteConnection instance created",{sqlite:A}),!A)throw new Error("Capacitor SQLite module loaded but SQLiteConnection is unavailable");zr("[tevrocsdk][useEntities] opening SQLite connection for appId",{appId:t});let r=lm(t),n=await A.createConnection(r,!1,"no-encryption",1,!1);return zr("[tevrocsdk][useEntities] SQLite connection created",{name:r,db:n}),await n.open(),zr("[tevrocsdk][useEntities] SQLite connection opened",{name:r,db:n}),await n.execute("CREATE TABLE IF NOT EXISTS kv (key TEXT PRIMARY KEY, value TEXT NOT NULL)"),iA("[tevrocsdk][useEntities] mobile SQLite opened",{name:r}),{async get(i){return(await n.query("SELECT value FROM kv WHERE key = ? LIMIT 1",[i])).values?.[0]?.value??null},async set(i,s){await n.run("INSERT OR REPLACE INTO kv (key, value) VALUES (?, ?)",[i,s])}}}if(XS){iA("[tevrocsdk][useEntities] opening desktop SQLite for appId",t);let e=await Promise.resolve().then(()=>(WS(),zS)),r=await(e.default||e.Database).load(`sqlite:${lm(t)}.db`);return await r.execute("CREATE TABLE IF NOT EXISTS kv (key TEXT PRIMARY KEY, value TEXT NOT NULL)"),iA("[tevrocsdk][useEntities] desktop SQLite opened",{dbFile:`${lm(t)}.db`}),{async get(n){return(await r.select("SELECT value FROM kv WHERE key = ? LIMIT 1",[n]))?.[0]?.value??null},async set(n,i){await r.execute("INSERT OR REPLACE INTO kv (key, value) VALUES (?, ?)",[n,i])}}}throw new Error("Unsupported native platform for SQLite.")}catch(e){zr("[tevrocsdk][useEntities] SQLite open failed, falling back to in-memory store",{error:e});try{if(typeof window<"u"&&(window.__TEVROC_SDK_ERRORS__=window.__TEVROC_SDK_ERRORS__||[],window.__TEVROC_SDK_ERRORS__.push({source:"useEntities.sqlite",message:String(e?.message||e),stack:e?.stack}),typeof window.__TEVROC_SDK_ON_ERROR=="function"))try{window.__TEVROC_SDK_ON_ERROR({source:"useEntities.sqlite",error:e})}catch{}}catch{}let A={};return{async get(r){return A[r]??null},async set(r,n){A[r]=n}}}})(),Ng=await Tg,Ng)}async function Ah(t){let A=await(await t3(t)).get("db");return JK(A)}async function Og(t,e){let A=JSON.stringify(e||{},null,2);await(await t3(t)).set("db",A)}function JK(t){if(!t)return{};if(typeof t=="object")return t;if(typeof t!="string")return{};try{return JSON.parse(t)}catch{}try{return JSON.parse(atob(t))}catch{}return{}}function cm(t,e,A=!1){let r=String(e||"").split("/").filter(Boolean),n=t;for(let i=0;i<r.length-1;i+=1){let s=r[i];if(!(s in n)){if(!A)return null;n[s]={}}n=n[s]}return{ref:n,key:r.at(-1)}}function A3(t={},e={}){for(let A of Object.keys(e||{}))e[A]&&typeof e[A]=="object"&&!Array.isArray(e[A])?((!t[A]||typeof t[A]!="object")&&(t[A]={}),A3(t[A],e[A])):t[A]=e[A];return t}var Cl=new Map,Pg=new Map;function um(t,e){return JSON.stringify(t)===JSON.stringify(e)}function JS(t){return{exists:()=>t!=null,val:()=>t??null}}function $c(t="default"){async function e(h){let v=await Ah(t),m=h?.path||h||"",g=String(m).split("/").filter(Boolean),C=v;for(let F of g)if(C=C?.[F],C===void 0)break;return JS(C)}async function A(h,v){let m=await Ah(t),g=h?.path||h||"",C=cm(m,g,!0);C&&(um(C.ref[C.key],v)||(C.ref[C.key]=v,await Og(t,m)))}async function r(h,v){let m=await Ah(t),g=h?.path||h||"",C=cm(m,g,!0);if(!C)return;let F=C.ref[C.key]||{},_=A3(structuredClone(F),v);um(F,_)||(C.ref[C.key]=_,await Og(t,m))}async function n(h){let v=await Ah(t),m=h?.path||h||"",g=cm(v,m);!g||g.ref[g.key]===void 0||(delete g.ref[g.key],await Og(t,v))}function i(h,v){return{path:v}}function s(h,v){return{path:`${h?.path||h||""}/${v}`}}function a(h){let v=h?.path||h||"",m=`id_${crypto.randomUUID?.().replaceAll("-","")||Math.random().toString(36).slice(2)}`;return{key:m,path:`${v}/${m}`}}function o(h,v){let m=h?.path||h||"";if(e(m).then(C=>{Pg.set(m,C.val()),v(C)}),Cl.has(m))return Cl.get(m).add(v),()=>Cl.get(m)?.delete(v);let g=new Set([v]);return g.interval=setInterval(async()=>{let C=await e(m),F=C.val();um(Pg.get(m),F)||(Pg.set(m,F),g.forEach(_=>_(C)))},1e3),Cl.set(m,g),()=>{g.delete(v),g.size===0&&(clearInterval(g.interval),Cl.delete(m),Pg.delete(m))}}function l(h,v,m){let g=h?.path||h||"";Cl.has(g)&&m&&Cl.get(g).delete(m)}return{ref:i,child:s,push:a,get:e,set:A,update:r,remove:n,onValue:o,off:l,serverTimestamp:()=>Date.now(),increment:(h=1)=>({__increment__:h}),runTransaction:async(h,v)=>{let m=await e(h),g=await v(m.val());return await A(h,g),{committed:!0,snapshot:JS(g)}},exportDB:()=>Ah(t),importDB:h=>Og(t,h||{}),exists:async h=>(await e(h)).exists()}}function ZS(){return new Date().toISOString()}async function rh(t,e){let A=(await t.get(`drive/${e}`)).val()||{},r=(await t.get(`collaborators/${e}`)).val()||{},n=[];for(let s of Object.keys(A)){let a=A[s];a?.fileId&&!a.deleted&&n.push({fileId:a.fileId,projectId:s,ownerUid:e,isOwner:!0,isNew:!1,collaborators:Object.keys(a.collaborators||{}).filter(o=>o!==e).length})}let i=new Set;for(let[s,a]of Object.entries(r||{}))for(let o of Object.keys(a||{})){let l=`${o}_${s}`;if(i.has(l))continue;i.add(l);let h=(await t.get(`drive/${o}/${s}`)).val();!h?.fileId||h.deleted||n.push({fileId:h.fileId,projectId:s,ownerUid:o,isOwner:!1,isNew:!1,collaborators:0})}return n}function dm(t){let e=$c(t);return{saveJsonToDrive:async(A,r,n,i="local")=>{let s=(await rh(e,i)).filter(g=>g.fileId===n),a=!n||s.length===0,o=n||`file_${Date.now()}`,l=a?i:s[0].ownerUid,h=`drive/${l}/${o}`,v=(await e.get(h)).val()||{},m=ZS();return await e.set(h,{...v,name:A,data:r,updatedAt:m,createdAt:v.createdAt||m}),await e.set(`files/${l}/${s[0]?.projectId||o}`,{fileId:o,name:A,ownerUid:l,collaborators:v.collaborators||{[i]:"admin"},deleted:!1}),{fileId:o,fileName:A,webViewLink:`filebase://${h}`,downloadLink:`filebase://${h}`}},readJsonFromDrive:async(A,r="local")=>{let n=(await e.get(`drive/${r}/${A}`)).val();if(n?.data)return n.data;let s=(await rh(e,r)).find(a=>a.fileId===A);return s?(await e.get(`drive/${s.ownerUid}/${A}`)).val()?.data||{}:{}},deleteFromDrive:async(A,r="local")=>{let s=`drive/${((await rh(e,r)).find(o=>o.fileId===A)||{ownerUid:r}).ownerUid}/${A}`,a=(await e.get(s)).val()||{};await e.set(s,{...a,deleted:!0,deletedAt:ZS()})},grantDriveAccess:async(A,r,n="reader",i="local")=>{let a=(await rh(e,i)).find(o=>o.fileId===A);a&&(await e.update(`drive/${a.ownerUid}/${a.projectId}`,{collaborators:{[r]:n}}),await e.update(`collaborators/${r}/${a.projectId}`,{[a.ownerUid]:n}))},revokeDriveAccess:async(A,r,n="local")=>{let s=(await rh(e,n)).find(o=>o.fileId===A);if(!s)return;let a=(await e.get(`drive/${s.ownerUid}/${s.projectId}`)).val()||{};delete a.collaborators?.[r],await e.set(`drive/${s.ownerUid}/${s.projectId}`,a),await e.remove(`collaborators/${r}/${s.projectId}/${s.ownerUid}`)},ref:e.ref,child:e.child,push:e.push,get:e.get,set:e.set,update:e.update,remove:e.remove,onValue:e.onValue,off:e.off,serverTimestamp:e.serverTimestamp,increment:e.increment,runTransaction:e.runTransaction,exportDB:e.exportDB,importDB:e.importDB,exists:e.exists}}var fm="https://www.googleapis.com/drive/v3",e3="https://www.googleapis.com/upload/drive/v3";function hm(){return globalThis.sessionStorage?.getItem("gAccessToken")||globalThis.localStorage?.getItem("gAccessToken")}function r3(t){let e=dm(t);return{...e,saveJsonToDrive:async(A,r,n,i)=>{let s=hm();if(!s)return e.saveJsonToDrive(A,r,n,i);let a=JSON.stringify(r,null,2),o=new Blob([a],{type:"application/json"}),l=new FormData;l.append("metadata",new Blob([JSON.stringify({name:`${A}.json`,mimeType:"application/json"})],{type:"application/json"})),l.append("file",o);let h=n?`${e3}/files/${n}?uploadType=multipart`:`${e3}/files?uploadType=multipart`,v=await fetch(h,{method:n?"PATCH":"POST",headers:{Authorization:`Bearer ${s}`},body:l});if(!v.ok)throw new Error((await v.json().catch(()=>({})))?.error?.message||"Drive upload failed");let m=await v.json();return{fileId:m.id,fileName:m.name,webViewLink:`https://drive.google.com/file/d/${m.id}/view`,downloadLink:`${fm}/files/${m.id}?alt=media`}},readJsonFromDrive:async(A,r)=>{let n=hm();if(!n)return e.readJsonFromDrive(A,r);let i=await fetch(`${fm}/files/${A}?alt=media`,{headers:{Authorization:`Bearer ${n}`}});if(!i.ok)throw new Error("Could not read file from Drive");return i.json()},deleteFromDrive:async(A,r)=>{let n=hm();if(!n)return e.deleteFromDrive(A,r);let i=await fetch(`${fm}/files/${A}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}});if(!i.ok&&i.status!==404)throw new Error("Failed to delete file from Drive")}}}function n3(t){let e=$c(t),A=r=>typeof r=="string"&&r?r.replace(/\./g,"_").replace(/@/g,"__at__"):"";return{encodeEmail:A,upsertUser:async r=>{await e.set(`users/${r.uid}`,{email:r.email,displayName:r.displayName,photoURL:r.photoURL||""}),await e.set(`usersByEmail/${A(r.email)}`,r.uid)},resolveOrCreateUser:async r=>(await e.get(`usersByEmail/${A(r)}`)).val()||`email:${A(r)}`,saveProjectMeta:(r,n,i)=>e.set(`projects/${r}/${n}`,i),getProject:async(r,n)=>(await e.get(`projects/${r}/${n}`)).val(),deleteProject:async(r,n)=>e.remove(`projects/${r}/${n}`),addCollaborator:(r,n,i,s)=>e.set(`projects/${r}/${n}/collaborators/${i}`,s),removeCollaborator:(r,n,i)=>e.remove(`projects/${r}/${n}/collaborators/${i}`),getUser:async r=>(await e.get(`users/${r}`)).val(),subscribeProjects:(r,n,i)=>{let s=`email:${A(i?.trim().toLowerCase())}`,a={},o={},l={},h=async()=>{let C=[],F=new Set;Object.entries(a||{}).forEach(([_,x])=>{!x||x.deleted||(C.push({...x,projectId:_,ownerUid:r,isOwner:!0}),F.add(`${r}_${_}`))});for(let _ of[o,l])for(let[x,H]of Object.entries(_||{}))for(let D of Object.keys(H||{})){let k=`${D}_${x}`;if(F.has(k))continue;F.add(k);let re=(await e.get(`projects/${D}/${x}`)).val();re&&!re.deleted&&C.push({...re,projectId:x,ownerUid:D,isOwner:!1})}n(C)},v=e.onValue(`projects/${r}`,C=>{a=C.val()||{},h()}),m=e.onValue(`collaborators/${r}`,C=>{o=C.val()||{},h()}),g=e.onValue(`collaborators/${s}`,C=>{l=C.val()||{},h()});return()=>{v?.(),m?.(),g?.()}},subscribePresence:(r,n,i,s)=>{e.set(`presence/${r}/${n}`,{...i,ts:Date.now()});let a=e.onValue(`presence/${r}`,o=>s(Object.values(o.val()||{})));return()=>{e.remove(`presence/${r}/${n}`),a?.()}}}}jo();no();async function u3(t){return!t||typeof FileReader>"u"?"":new Promise((e,A)=>{let r=new FileReader;r.onloadend=()=>{let n=r.result;if(typeof n!="string")return e("");e(n.split(",")[1]||"")},r.onerror=A,r.readAsDataURL(t)})}function f3(t){return typeof t=="string"&&t.startsWith("data:")}function tj(t){return f3(t)&&t.split(",")[1]||null}function Aj(t){return!t||typeof t!="string"||t.length<100?!1:/^[A-Za-z0-9+/=\n\r]+$/.test(t.replace(/\s+/g,""))}async function h3(t){if(!t||!ot)return null;try{console.debug("[tevrocsdk][fileoffline] downloadUrlToBase64 fetching",t);let e=await fetch(t,{cache:"no-store"});if(!e.ok)return null;let A=await e.blob(),r=await u3(A).catch(()=>null);return console.debug("[tevrocsdk][fileoffline] downloadUrlToBase64 fetched -> base64 length",r?r.length:0),r}catch(e){return console.warn("[tevrocsdk][fileoffline] downloadUrlToBase64 failed",e),null}}function pm(t){try{return t?(String(t).split("/").filter(Boolean).at(-1)||`file_${Date.now()}`).split("?")[0]:`file_${Date.now()}`}catch{return`file_${Date.now()}`}}async function kg(t,e,A,r){try{if(!ot)return!1;if(console.debug("[tevrocsdk][fileoffline] persistFileToNative",{key:e,contentType:r,hasBase64:!!A}),!t?.native?.store||!A)return console.warn("[tevrocsdk][fileoffline] persistFileToNative skipped - missing native.store or base64"),!1;let n=new Date().toISOString();return await t.native.store.set(`downloaded_files/${e}`,{data:A,contentType:r||"application/octet-stream",key:e,updatedAt:n}),console.debug("[tevrocsdk][fileoffline] persistFileToNative stored",{key:e,updatedAt:n}),!0}catch(n){return console.warn("[tevrocsdk][fileoffline] persistFileToNative error",n),!1}}async function gm(t,e){if(!(!e||typeof e!="object")&&!(!ot||!t?.native?.store)){console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles start");for(let A of Object.keys(e)){let r=e[A];if(typeof r=="string"){if(f3(r)){console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles found data URL at key",A);let n=tj(r),i=pm(A)||`inline_${Date.now()}`;await kg(t,i,n,(r.match(/^data:([^;]+);/)||[])[1]||"application/octet-stream")}else if(/^https?:\/\//.test(r)||r.startsWith("filebase://")){console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles found URL at key",A,r);let n=r.startsWith("filebase://")?r.replace(/^filebase:\/\//,""):r,i=await h3(r).catch(()=>null);if(i){let s=pm(r);await kg(t,s,i,"application/octet-stream")}}else if(Aj(r)){console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles found inline base64 at key",A);let n=pm(A)||`inline_${Date.now()}`;await kg(t,n,r,"application/octet-stream")}}else r&&typeof r=="object"&&(console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles recursing into",A),await gm(t,r))}console.debug("[tevrocsdk][fileoffline] walkAndPersistFiles end")}}function d3(t){let e=$c(t.appId),A=new Map;function r(j,N){try{if(typeof window<"u"&&(window.__TEVROC_SDK_ERRORS__=window.__TEVROC_SDK_ERRORS__||[],window.__TEVROC_SDK_ERRORS__.push({source:N||"offline",message:String(j?.message||j),stack:j?.stack}),typeof window.__TEVROC_SDK_ON_ERROR=="function"))try{window.__TEVROC_SDK_ON_ERROR({source:N||"offline",error:j})}catch{}}catch{}}async function n(){let N=(await e.get("sync_queue")).val()||[];return iA("[tevrocsdk][fileoffline] getQueue",{length:N.length}),N}async function i(j){iA("[tevrocsdk][fileoffline] setQueue",{length:j?.length||0}),await e.set("sync_queue",j||[])}async function s(){let j=new AbortController,N=setTimeout(()=>j.abort(),500);try{return(await fetch("https://www.cloudflare.com/cdn-cgi/trace",{cache:"no-store",signal:j.signal})).ok}catch{return!1}finally{clearTimeout(N)}}async function a(j,N,Z,I){let O=await n(),Y={id:crypto.randomUUID?.()||String(Date.now()),entity:j,op:N,recordId:Z,payload:I,createdAt:new Date().toISOString()};if(O.push(Y),await i(O),iA("[tevrocsdk][fileoffline] queueOperation queued",{item:Y,queueLength:O.length}),N==="create"||N==="update"){let ee=Z||I?.id||`loc_${Date.now()}`;return await e.set(`entities/${j}/${ee}`,{...I||{},id:ee}),{data:{...I||{},id:ee}}}return N==="delete"?(await e.remove(`entities/${j}/${Z}`),{deleted:!0,id:Z}):j==="files"&&N==="upload"?(await e.set(`pending_uploads/${Y.id}`,{...Y.payload||{},fileId:Z,createdAt:Y.createdAt}),{pending:!0,id:Y.id,entity:j,op:N,payload:Y.payload}):null}async function o(){if(iA("[tevrocsdk][fileoffline] syncOnce start",{online:await s()}),!await s())return iA("[tevrocsdk][fileoffline] syncOnce aborted - offline"),{ok:!1,reason:"offline"};let j=await n();if(!j||j.length===0)return iA("[tevrocsdk][fileoffline] syncOnce nothing to sync"),{ok:!0,synced:0};Ae("sync:start",{count:j.length}),iA("[tevrocsdk][fileoffline] syncOnce processing queue",{count:j.length});for(let N of[...j])try{iA("[tevrocsdk][fileoffline] syncOnce item",{item:N});let Z=(await e.get(`entities/${N.entity}/${N.recordId||N.payload&&N.payload.id||""}`)).val();if(N.op==="create"){let I=await t.request(`/entities/${encodeURIComponent(N.entity)}`,{method:"POST",body:N.payload}),O=I?.data?.id||I?.id||N.recordId;if(O){await e.set(`entities/${N.entity}/${O}`,I?.data||{...N.payload||{},id:O});try{await gm(t,I?.data||{})}catch{}}j=j.filter(Y=>Y.id!==N.id),Ae("sync:item",{item:N,result:I})}else if(N.op==="update"){let I=await t.request(`/entities/${encodeURIComponent(N.entity)}/${encodeURIComponent(N.recordId)}`,{method:"PATCH",body:N.payload}),O=I?.data??I,Y=O?.updatedAt||O?.updated_date||null,ee=Z?.updatedAt||Z?.updated_date||null;if(ee&&Y&&ee>Y&&JSON.stringify(Z)!==JSON.stringify(O)){let ce=`${N.entity}/${N.recordId}`;await e.set(`conflicts/${ce}`,{local:Z,server:O,item:N}),Ae("conflict",{conflictId:ce,local:Z,server:O,item:N})}else{O&&await e.set(`entities/${N.entity}/${N.recordId}`,O);try{await gm(t,O||{})}catch{}j=j.filter(ce=>ce.id!==N.id),Ae("sync:item",{item:N,result:I})}}else if(N.entity==="files"&&N.op==="upload"){iA("[tevrocsdk][fileoffline] syncOnce upload file",{payload:N.payload});let I=N.payload?.headers||{},O=N.payload?.body;if(N.payload?.bodyIsBase64)try{let be=typeof atob=="function"?atob(O||""):O||"",Fe=new Uint8Array(be.length);for(let de=0;de<be.length;de+=1)Fe[de]=be.charCodeAt(de);O=new Blob([Fe],{type:N.payload.contentType||"application/octet-stream"})}catch{O=new Blob([String(O||"")],{type:N.payload.contentType||"application/octet-stream"})}let Y=await t.request(N.payload.path,{method:N.payload.method||"POST",body:O,headers:I,skipSync:!0}),ee=Y?.data??Y,ce=ee?.key||(typeof ee?.url=="string"?ee.url.split("/").pop():null);if(ce&&t.native?.store){let be=N.payload?.contentType||ee?.contentType||"application/octet-stream",Fe=typeof O=="string"?new Blob([O],{type:be}):O instanceof Blob?O:new Blob([JSON.stringify(O||"")],{type:be}),de=await u3(Fe).catch(()=>"");if(de&&await t.native.store.set(`downloaded_files/${ce}`,{data:de,contentType:be,key:ce,updatedAt:new Date().toISOString()}),ee?.url)try{let Ee=await h3(ee.url);Ee&&await kg(t,ce,Ee,be)}catch{}}j=j.filter(be=>be.id!==N.id),await e.remove(`pending_uploads/${N.id}`),Ae("sync:item",{item:N,result:Y}),iA("[tevrocsdk][fileoffline] syncOnce upload success",{itemId:N.id,key:ce})}else N.op==="delete"&&(await t.request(`/entities/${encodeURIComponent(N.entity)}/${encodeURIComponent(N.recordId)}`,{method:"DELETE"}),await e.remove(`entities/${N.entity}/${N.recordId}`),j=j.filter(I=>I.id!==N.id),Ae("sync:item",{item:N,result:{deleted:!0}}))}catch(Z){zr("[tevrocsdk][fileoffline] syncOnce item failed",{item:N,error:Z}),Ae("sync:error",{item:N,error:Z}),r(Z,"offline.syncOnce.item");break}return await i(j),iA("[tevrocsdk][fileoffline] syncOnce end",{remaining:j.length}),Ae("sync:end",{remaining:j.length}),{ok:!0,synced:0,remaining:j.length}}let l=null,h=null,v=!1,m=[],g=null,C=null,F=null,_=!1;async function x(){if(v)return{ok:!1,reason:"already_running"};v=!0;try{return await o()}finally{v=!1}}function H(){h&&(clearInterval(h),h=null)}function D(j=1e4){h||(iA("[tevrocsdk][fileoffline] startPendingRetry",{intervalMs:j}),h=setInterval(async()=>{if(iA("[tevrocsdk][fileoffline] retry interval fired"),!await s()){iA("[tevrocsdk][fileoffline] retry skipped - offline");return}let N=await x(),Z=await n();if(!N.ok||Z.length>0){iA("[tevrocsdk][fileoffline] retry more pending",{ok:N.ok,remaining:Z.length});return}H(),iA("[tevrocsdk][fileoffline] pending retry complete")},j))}async function k(j=1e4){if(iA("[tevrocsdk][fileoffline] syncPendingActions called",{online:await s()}),!await s())return iA("[tevrocsdk][fileoffline] syncPendingActions aborted - offline"),{ok:!1,reason:"offline"};let N=await x();return iA("[tevrocsdk][fileoffline] syncPendingActions result",N),(await n()).length>0?D(j):H(),N}function re(j=3e4){if(_)return;_=!0;let N=()=>{try{if(typeof window<"u"){let Z=()=>o();window.addEventListener("online",Z),m.push(()=>window.removeEventListener("online",Z));let I=()=>{document.hidden||o()};document.addEventListener("visibilitychange",I),m.push(()=>document.removeEventListener("visibilitychange",I));let O=()=>o();window.addEventListener("focus",O),m.push(()=>window.removeEventListener("focus",O))}}catch{}pi&&(async()=>{try{let Z=await Promise.resolve().then(()=>(c3(),l3));if(g=Z.Network||Z,g&&g.getStatus){F=(await g.getStatus()).connected;let O=g.addListener("networkStatusChange",Y=>{F=Y.connected,Y.connected&&o()});m.push(()=>O.remove())}}catch(Z){r(Z,"offline.capacitorNetwork")}try{let Z=await Promise.resolve().then(()=>(Wh(),zh));if(C=Z.App||Z,C&&C.addListener){let I=C.addListener("appStateChange",O=>{O.isActive&&o()});m.push(()=>I.remove());try{let O=C.addListener("pause",async()=>{try{await o()}catch{await o()}});m.push(()=>O.remove());let Y=C.addListener("resume",async()=>{await o()});m.push(()=>Y.remove())}catch{}}}catch(Z){r(Z,"offline.capacitorApp")}})(),(async()=>{try{if(typeof window<"u"&&(window.__TAURI__||window.__TAURI_INTERNALS__))try{let Z=window.__TAURI__?.event;if(Z&&Z.listen){let I=await Z.listen("tauri://update",()=>o()).catch(()=>null),O=await Z.listen("tauri://resume",()=>o()).catch(()=>null);I&&m.push(()=>I.then(Y=>Y()).catch(()=>{})),O&&m.push(()=>O.then(Y=>Y()).catch(()=>{}))}}catch(Z){r(Z,"offline.tauri")}}catch{}})(),l||(l=setInterval(()=>o(),j))};if(typeof window<"u"&&document&&document.readyState!=="complete"){let Z=()=>{try{N()}catch{}};window.addEventListener("load",Z,{once:!0}),m.push(()=>window.removeEventListener("load",Z))}else try{N()}catch{}}function fe(){for(let j of m.splice(0))try{j()}catch{}l&&(clearInterval(l),l=null)}function Ae(j,N){try{if(!A.has(j))return;for(let Z of A.get(j))try{Z(N)}catch(I){zr(t,"listener error",I)}}catch{}}return{store:e,isOnline:s,queueOperation:a,syncOnce:o,syncPendingActions:k,startAutoSync:re,stopAutoSync:fe,getQueue:n,on:(j,N)=>(A.has(j)||A.set(j,new Set),A.get(j).add(N),()=>A.get(j).delete(N)),off:(j,N)=>{A.has(j)&&A.get(j).delete(N)},getPendingUploads:async()=>{let j=await e.get("pending_uploads");return Object.values(j.val()||{})},listConflicts:async()=>(await e.get("conflicts")).val()||{},resolveConflict:async(j,N="useServer")=>{let Z=String(j).split("/"),I=Z.shift(),O=Z.join("/"),Y=(await e.get(`conflicts/${j}`)).val();if(!Y)return null;if(N==="useServer"){await e.set(`entities/${I}/${O}`,Y.server),await e.remove(`conflicts/${j}`);let ee=await n();return await i(ee.filter(ce=>!(ce.entity===I&&String(ce.recordId)===String(O)))),{applied:"server"}}return N==="useLocal"?(await a(I,"update",O,Y.local),await e.remove(`conflicts/${j}`),{requeued:!0}):null}}}var rj=3e4,wm=null;async function nj(){return wm||(wm=await Promise.resolve().then(()=>(no(),ty))),wm}var vm=null;async function ij(){return vm||(vm=await Promise.resolve().then(()=>(rw(),Ly))),vm}var Os=class extends Error{constructor(e,A={}){super(e),this.name="TevrocError",this.status=A.status,this.code=A.code,this.details=A.details,this.response=A.response}};function aj(t,e=""){if(!t)return"";let A=String(e||"tevrocdev"),r=String(t),n="";for(let i=0;i<r.length;i+=1){let s=r.charCodeAt(i),a=A.charCodeAt(i%A.length);n+=(s^a+i+1).toString(16).padStart(2,"0")}return`chat:${n}`}function sj(t={}){return new nh(t)}function oj(t={}){if(!t.apiKey)throw new Os("apiKey is required to create a chatbot client");let e=new nh({...t,appId:void 0,token:null,headers:{...t.headers||{},"x-api-key":t.apiKey}}),A=(r,n={})=>e.request(r,{...n,auth:!1});return{resolveSrc:async r=>{if(!r)return r;try{let n=r;try{let o=new URL(String(r)).pathname.split("/").filter(Boolean);o.length>=2&&(o[o.length-2]==="files"||o[o.length-2]==="private-files")&&(n=o[o.length-1])}catch{n=r}let i=ot&&e.offline?await e.offline.isOnline():!0;if(ot&&!i){let a=await mm(e,n);if(a)return a}return r}catch{return r}},getConfig:()=>A("/chatbot/config"),createConversation:(r={})=>A("/chatbot/conversations",{method:"POST",body:r}),sendMessage:(r,n)=>A(`/chatbot/conversations/${encodeURIComponent(r)}/messages`,{method:"POST",body:n})}}var nh=class{constructor(e={}){let A=e.baseUrl??e.url,r=e.serviceUrl??e.url;if(!A)throw new TypeError("createClient requires a baseUrl");if(this.baseUrl=g3(A),this.serviceUrl=g3(r),this.appId=e.appId,this.appName=e.appName,this.payAccount=e.payAccount??"default",this.fetch=(e.fetch??globalThis.fetch).bind(globalThis),typeof this.fetch!="function")throw new TypeError("No fetch implementation available");this.timeoutMs=e.timeoutMs??rj,this.defaultHeaders=Lj(e.headers),this.token=e.token??null,this.debug=e.debug??!1,_0(this.debug),this.auth=dj(this),this.entities=gj(this),this.functions=vj(this),this.integrations=mj(this),this.agents=yj(this),this.logs=bj(this),this.connectors=Cj(this),this.customIntegrations=Ej(this),this.sso=Fj(this),this.files=Sj(this),this.native={store:$c(this.appId),files:dm(this.appId),googleDrive:r3(this.appId),projects:n3(this.appId)},this.offline=d3(this);try{this.offline&&typeof this.offline.startAutoSync=="function"&&this.offline.startAutoSync()}catch(n){try{if(typeof window<"u"&&(window.__TEVROC_SDK_ERRORS__=window.__TEVROC_SDK_ERRORS__||[],window.__TEVROC_SDK_ERRORS__.push({source:"client.offline.startAutoSync",message:String(n?.message||n),stack:n?.stack}),typeof window.__TEVROC_SDK_ON_ERROR=="function"))try{window.__TEVROC_SDK_ON_ERROR({source:"client.offline.startAutoSync",error:n})}catch{}}catch{}}this.payments=hj(this),this.commerce=uj(this),this.realtime=cj(this),this.notifications=MS(),this.agentNotifications=HS(this),this.shiplogic=lj(this),this.platform=fj(this),this.pdf=DS(this)}setToken(e){return this.token=e||null,this.token?Mg()?.setItem("tevroc_access_token",this.token):Mg()?.removeItem("tevroc_access_token"),this}clearToken(){return this.token=null,Mg()?.removeItem("tevroc_access_token"),this}setDebug(e){return this.debug=!!e,_0(this.debug),this}async request(e,A={}){let r=(A.method??"GET").toUpperCase(),n=new Headers(this.defaultHeaders),i=A.query?Ij(A.query):"",s=`${this.baseUrl}${e.startsWith("/")?e:`/${e}`}${i}`,a=new AbortController,o=A.timeoutMs||this.timeoutMs||2500,l=null,h=this.token||Tj();Ye(this,h,A),h&&A.auth!==!1&&n.set("authorization",`Bearer ${h}`),this.appId&&n.set("x-app-id",this.appId);let v=A.body;if(v!=null&&Oj(v)&&(n.set("content-type","application/json"),v=JSON.stringify(v)),A.headers)for(let[m,g]of Object.entries(A.headers))g!=null&&n.set(m,String(g));Ye(this,"[tevrocsdk] request start",{url:s,method:r,query:A.query,auth:A.auth,isNative:ot,skipSync:A.skipSync});try{let m=await this.offline?.isOnline();if(ot&&!A.skipSync&&m){Ye(this,"[tevrocsdk] request triggering pending sync");try{typeof this.offline.syncPendingActions=="function"?await this.offline.syncPendingActions():typeof this.offline.syncOnce=="function"?(Xc(this,"[tevrocsdk] offline manager missing syncPendingActions, using syncOnce fallback"),await this.offline.syncOnce()):Xc(this,"[tevrocsdk] offline manager has no syncPendingActions or syncOnce"),Ye(this,"[tevrocsdk] pending sync completed")}catch(x){Xc(this,"[tevrocsdk] pending sync failed",x)}}let g;g=this.fetch(s,{method:r,headers:n,body:v,signal:A.signal??a.signal});let C=new Promise((x,H)=>{l=setTimeout(()=>{try{a.abort()}catch{}H(new Os("Request timed out",{code:"timeout"}))},o)}),F=await Promise.race([g,C]),_=await Qj(F,A.parseAs);return Ye(this,"Response from request:",_),_}catch(m){throw Xc(this,"[tevrocsdk] request failed",{url:s,method:r,error:m}),m?.name==="AbortError"?new Os("Request timed out",{code:"timeout"}):m instanceof Os?m:new Os(m?.message??"Network request failed",{code:"network_error",details:m})}finally{clearTimeout(l)}}};function lj(t){return{getRates:(e={})=>t.request("/shiplogic/rates",{method:"POST",body:e}),createShipment:(e={})=>t.request("/shiplogic/shipments",{method:"POST",body:e}),cancelShipment:e=>t.request(`/shiplogic/shipments/${encodeURIComponent(e)}`,{method:"DELETE"}),trackShipment:e=>t.request(`/shiplogic/track/${encodeURIComponent(e)}`),printLabel:e=>t.request(`/shiplogic/labels/${encodeURIComponent(e)}`,{parseAs:"response"}),validateAddress:(e={})=>t.request("/shiplogic/address/validate",{method:"POST",body:e}),getBranches:(e={})=>t.request("/shiplogic/branches",{query:e}),getCollectionSlots:(e={})=>t.request("/shiplogic/collections/slots",{method:"POST",body:e}),bookCollection:(e={})=>t.request("/shiplogic/collections",{method:"POST",body:e})}}function cj(t){let e=n=>n.replace(/^http:/,"ws:").replace(/^https:/,"wss:"),A=n=>aj(n,t.appId),r=(n,i={},s={})=>{let a=A(n||s.room||"default"),o=encodeURIComponent(a||"default"),l=a||"default",h=`${e(t.baseUrl)}/realtime/${o}`,v=`${e(t.baseUrl)}/realtime/${l}`,m=s.reconnectMs??3e3,g=s.maxReconnects??5;Hg(t,"[tevrocsdk] realtime connect requested",{room:n,roomName:a,url:h,appId:t.appId,reconnectMs:m,maxReconnects:g});let C=null,F=null,_=0,x=!1,H=[],D=Ae=>C?.readyState!==WebSocket.OPEN?!1:(C.send(typeof Ae=="string"?Ae:JSON.stringify(Ae)),!0),k=()=>{F&&(clearTimeout(F),F=null)},re=!1,fe=()=>{k(),!x&&(Hg(t,"[tevrocsdk] opening realtime socket",{room:n,roomName:a,url:h,appId:t.appId}),C=new WebSocket(h),C.addEventListener("open",Ae=>{for(_=0,Hg(t,"[tevrocsdk] realtime socket open",{room:n,roomName:a,readyState:C.readyState,url:h}),i.open?.(Ae);H.length&&D(H[0]);)H.shift()}),C.addEventListener("message",Ae=>{let j=Ae.data;try{j=JSON.parse(Ae.data)}catch{}Hg(t,"[tevrocsdk] realtime socket message",{room:n,roomName:a,data:j}),i.message?.(j,Ae)}),C.addEventListener("close",Ae=>{if(Ye(t,"[tevrocsdk] realtime socket close",{room:n,roomName:a,code:Ae.code,reason:Ae.reason,wasClean:Ae.wasClean,url:h}),i.close?.(Ae),(Ae?.code===1006||C?.readyState!==WebSocket.OPEN)&&!re&&v&&v!==h){re=!0,Xc(t,"[tevrocsdk] realtime fallback to raw URL after failed encoded handshake",{encodedUrl:h,rawUrl:v}),h=v,F=setTimeout(()=>fe(),500);return}x||_>=g||(F=setTimeout(()=>{_+=1,Ye(t,"[tevrocsdk] realtime retry",{room:n,roomName:a,attempt:_,delayMs:m,url:h}),fe()},m))}),C.addEventListener("error",Ae=>{Ye(t,"[tevrocsdk] realtime socket error",{room:n,roomName:a,event:Ae}),i.error?.(Ae)}))};return fe(),{socket:()=>C,send:Ae=>(D(Ae)||(H.push(Ae),Ye(t,"[tevrocsdk] realtime message queued until the socket opens",{room:n,roomName:a,queued:H.length})),!0),close:()=>{x=!0,k(),H.length=0,Ye(t,"[tevrocsdk] realtime socket close requested",{room:n,roomName:a}),C?.close()},reconnect:()=>{x=!1,fe()}}};return{encryptRoomName:A,roomName:A,connect:r,room:(n,i={},s={})=>{let a=r(n,i,s);return Ye(t,"[tevrocsdk] realtime room created",{room:n,options:s}),{...a,publish:o=>(Ye(t,"[tevrocsdk] realtime publish requested",{room:n,payload:o}),a.send(o))}},iceServers:(n={})=>{let i=[],s=String(n.stun_urls||n.stunUrls||"stun:stun.l.google.com:19302").split(",").map(a=>a.trim()).filter(Boolean);return s.length&&i.push({urls:s}),(n.turn_url||n.turnUrl)&&i.push({urls:n.turn_url||n.turnUrl,username:n.turn_username||n.turnUsername,credential:n.turn_credential||n.turnCredential}),i}}}function uj(t){let e=A=>({list:(r={})=>t.request(`/commerce/${encodeURIComponent(A)}`,{query:r}),query:(r={})=>t.request(`/commerce/${encodeURIComponent(A)}/query`,{method:"POST",body:r}),create:(r={})=>t.request(`/commerce/${encodeURIComponent(A)}`,{method:"POST",body:r}),update:(r,n={})=>t.request(`/commerce/${encodeURIComponent(A)}/${encodeURIComponent(r)}`,{method:"PATCH",body:n})});return{orders:e("CustomerOrder"),deliveries:e("Delivery"),deliveryMessages:e("DeliveryMessage"),availability:e("AvailabilitySlot"),bookings:e("Booking"),appointmentMessages:e("AppointmentMessage"),appointmentSignals:e("AppointmentSignal")}}function fj(t){return(async function(){let{isNative:e,isCapacitor:A,isTauri:r,platform:n}=await nj();return{platform:n,isCapacitor:A,isTauri:r,isNative:e}})()}function hj(t){return{create:async({amountZAR:e,appId:A="tevrocsoft",mode:r="web",account:n="default",externalCallback:i=void 0}={})=>await Dy(e,{appId:A,serviceUrl:t.serviceUrl,mode:r,payAccount:n,externalCallback:i}),createCheckout:async(e={})=>await t.request("/create-checkout",{method:"POST",body:e,auth:!1}),onstatus:e=>{if(typeof e!="function")throw new Error("onstatus requires a function");return ky(e)}}}function dj(t){return{async register(e){let A=Ns(e,t),r=await t.request("/auth/register",{method:"POST",body:A,auth:!1});return r.token&&t.setToken(r.token),r},loginWithProvider:async(e,A,r=async()=>{})=>{if(e==="google"){let{createGoogleLogin:n,subscribeGoogleLogin:i}=await ij();if(Ye(t,{serviceUrl:t.serviceUrl,appId:t.appId,appName:t.appName}),n({serviceUrl:t.serviceUrl,appId:t.appId,appName:t.appName}),A){let s=i(async(a,o)=>{if(Ye(t,"Google callback:",a,o),s(),!a)return;let l=await t.request("/auth/google",{method:"POST",body:Ns({accessToken:a.accessToken},t),auth:!1});Ye(t,l),await r(l.token,l.user),Ye(t,"Redirecting to:",A),window.location.href=A})}}},googleLogin:e=>Aw(e),onGoogleLogin:e=>tw(e),async login(e){let A=Ns(e,t),r=await t.request("/auth/login",{method:"POST",body:A,auth:!1});return r.token&&t.setToken(r.token),r},async logout(){let e=await t.request("/auth/logout",{method:"POST",body:Ns({},t)});return t.clearToken(),e},inviteUser:e=>t.request("/users/invite",{method:"POST",body:Ns(e,t)}),acceptInvite:e=>t.request("/auth/accept-invite",{method:"POST",body:Ns(e,t),auth:!1}),me:async()=>{let e=ot&&t.offline?await t.offline.isOnline():!0,A=ot&&!e;if(Ye(t,"[tevrocsdk][auth] me",{online:e,offline:A}),A){let n=(await t.native.store.get("auth/me")).val();if(Ye(t,"[tevrocsdk][auth] me offline result",{exists:n!=null}),n)return n}let r=await t.request("/auth/me",{headers:pj(t)});return Ye(t,"[tevrocsdk][auth] me online result",r),ot&&t.native?.store&&r&&typeof r=="object"&&await t.native.store.set("auth/me",r),r},verifyOtp:e=>t.request("/auth/verify-otp",{method:"POST",body:Ns(e,t),auth:!1}),changePassword:e=>t.request("/auth/change-password",{method:"POST",body:Ns(e,t)}),resetPassword:e=>t.request("/auth/reset-password",{method:"POST",body:Ns(e,t),auth:!1}),loginUrl:e=>t.request("/auth/login-url",{query:e?{redirectTo:e,appId:t.appId||void 0}:{appId:t.appId||void 0},auth:!1})}}function Ns(t={},e){let A={...t||{}};return e?.appId&&A.appId==null&&(A.appId=e.appId),A}function pj(t){return t?.appId?{"x-app-id":t.appId}:{}}function gj(t){return new Proxy({},{get(e,A){if(typeof A=="string")return wj(t,A)}})}function wj(t,e){let A=`/entities/${encodeURIComponent(e)}`;async function r(l){!t.native?.store||!ot||!l||typeof l!="object"||!l.id||await t.native.store.set(`entities/${e}/${l.id}`,l)}async function n(l){!t.native?.store||!ot||!Array.isArray(l)||await Promise.all(l.filter(h=>h&&typeof h=="object"&&h.id).map(h=>t.native.store.set(`entities/${e}/${h.id}`,h)))}function i(l,h={}){return Object.entries(h).every(([v,m])=>m&&typeof m=="object"?"$eq"in m?l?.[v]===m.$eq:!0:l?.[v]===m)}async function s(){if(!t.native?.store||!ot)return{data:[]};let l=await t.native.store.get(`entities/${e}`);return{data:Object.values(l.val()||{}),limit:0,offset:0}}async function a(l){return!t.native?.store||!ot?{data:null}:{data:(await t.native.store.get(`${e}/${l}`)).val()}}async function o(l={}){if(!t.native?.store||!ot)return{data:[]};let h=await t.native.store.get(`entities/${e}`);return{data:Object.values(h.val()||{}).filter(m=>i(m,l.filter||l.where||l.filters||{})).slice(0,l.limit||200),limit:l.limit}}return{list:async l=>{let h=await t.offline?.isOnline(),v=ot&&!h;if(Ye(t,`[tevrocsdk][entities:${e}] list`,{online:h,offline:v,options:l}),v){let g=await t.native.store.get(`entities/${e}`),C=Object.values(g.val()||{});return Ye(t,`[tevrocsdk][entities:${e}] list offline result`,{count:C.length}),{data:C,limit:l?.limit,offset:l?.offset||0}}let m=await t.request(A,{query:l});return Ye(t,`[tevrocsdk][entities:${e}] list online result`,m),ot&&(await n(m?.data||[]),Ye(t,`[tevrocsdk][entities:${e}] list cached ${m?.data?.length||0} records for offline use`)),m},get:async l=>{let h=await t.offline?.isOnline(),v=ot&&!h;if(Ye(t,`[tevrocsdk][entities:${e}] get`,{id:l,online:h,offline:v}),v){let g=(await t.native.store.get(`${e}/${l}`)).val();return Ye(t,`[tevrocsdk][entities:${e}] get offline result`,{id:l,exists:g!=null}),{data:g}}let m=await t.request(`${A}/${encodeURIComponent(l)}`);return Ye(t,`[tevrocsdk][entities:${e}] get online result`,{id:l,result:m}),ot&&(await r(m?.data),Ye(t,`[tevrocsdk][entities:${e}] get cached record ${m?.data?.id||"unknown"} for offline use`)),m},create:async l=>{let h=await t.offline?.isOnline(),v=ot&&!h;if(Ye(t,`[tevrocsdk][entities:${e}] create`,{online:h,offline:v,id:l?.id}),v){let g=await t.offline.queueOperation(e,"create",l?.id,l);return Ye(t,`[tevrocsdk][entities:${e}] create queued`,g),g}let m=await t.request(A,{method:"POST",body:l});if(Ye(t,`[tevrocsdk][entities:${e}] create online result`,m),ot){let g=m?.data??m;if(g&&typeof g=="object"){let C=g.id??l?.id;C&&await t.native.store.set(`entities/${e}/${C}`,g)}}return m},update:async(l,h)=>{let v=await t.offline?.isOnline(),m=ot&&!v;if(Ye(t,`[tevrocsdk][entities:${e}] update`,{online:v,offline:m,id:l,patch:h}),m){let C=await t.offline.queueOperation(e,"update",l,h);return Ye(t,`[tevrocsdk][entities:${e}] update queued`,C),C}let g=await t.request(`${A}/${encodeURIComponent(l)}`,{method:"PATCH",body:h});if(Ye(t,`[tevrocsdk][entities:${e}] update online result`,{id:l,result:g}),ot){let C=g?.data??g;if(C&&typeof C=="object"){let F=C.id??l;F&&await t.native.store.set(`entities/${e}/${F}`,C)}}return g},delete:async l=>{let h=await t.offline?.isOnline(),v=ot&&!h;if(Ye(t,`[tevrocsdk][entities:${e}] delete`,{online:h,offline:v,id:l}),v){let g=await t.offline.queueOperation(e,"delete",l);return Ye(t,`[tevrocsdk][entities:${e}] delete queued`,g),g}let m=await t.request(`${A}/${encodeURIComponent(l)}`,{method:"DELETE"});return Ye(t,`[tevrocsdk][entities:${e}] delete online result`,{id:l,result:m}),ot&&await t.native.store.remove(`entities/${e}/${l}`),m},query:async(l={})=>{let h=await t.offline?.isOnline(),v=ot&&!h;if(Ye(t,`[tevrocsdk][entities:${e}] query`,{online:h,offline:v,input:l}),v){let g=await t.native.store.get(`entities/${e}`),C=Object.values(g.val()||{}).filter(F=>i(F,l.filter||l.where||l.filters||{}));return Ye(t,`[tevrocsdk][entities:${e}] query offline result`,{count:C.length}),{data:C.slice(0,l.limit||200),limit:l.limit}}let m=await t.request(`${A}/query`,{method:"POST",body:l});return Ye(t,`[tevrocsdk][entities:${e}] query online result`,m),ot&&(await n(m?.data||[]),Ye(t,`[tevrocsdk][entities:${e}] query online cached`)),m},filter:async(l={},h,v)=>{let m=await t.offline?.isOnline(),g=ot&&!m,C=Nj(l,h,v);if(Ye(t,`[tevrocsdk][entities:${e}] filter`,{online:m,offline:g,filter:C,sortOrOptions:h,limit:v}),g){let _=await t.native.store.get(`entities/${e}`),x=Object.values(_.val()||{}).filter(H=>i(H,C.filter||C.where||C.filters||{}));return C.sort&&typeof C.sort=="string"&&x.sort((H,D)=>{let k=H?.[C.sort],re=D?.[C.sort];return k==null&&re==null?0:k==null?1:re==null||k<re?-1:k>re?1:0}),{data:x.slice(0,C.limit||200),limit:C.limit,offset:0}}let F=await t.request(`${A}/query`,{method:"POST",body:C});return Ye(t,`[tevrocsdk][entities:${e}] filter online result`,F),ot&&await n(F?.data||[]),F},bulkCreate:async(l=[])=>{let h=await t.offline?.isOnline();if(Ye(t,`[tevrocsdk][entities:${e}] bulkCreate`,{online:h,count:l?.length}),!h){let m=0;for(let g of l)await t.offline.queueOperation(e,"create",g?.id,g),m+=1;return Ye(t,`[tevrocsdk][entities:${e}] bulkCreate queued`,{inserted:m}),{inserted:m}}let v=await t.request(`${A}/bulk`,{method:"POST",body:{records:l}});return Ye(t,`[tevrocsdk][entities:${e}] bulkCreate online result`,v),ot&&await n(v?.data||[]),v},bulkUpdate:async(l=[])=>{let h=await t.offline?.isOnline();if(Ye(t,`[tevrocsdk][entities:${e}] bulkUpdate`,{online:h,count:l?.length}),!h){let m=0;for(let g of l)g?.id&&(await t.offline.queueOperation(e,"update",g.id,g),m+=1);return Ye(t,`[tevrocsdk][entities:${e}] bulkUpdate queued`,{updated:m}),{updated:m}}let v=await t.request(`${A}/bulk`,{method:"PATCH",body:{records:l}});return Ye(t,`[tevrocsdk][entities:${e}] bulkUpdate online result`,v),ot&&await n(v?.data||[]),v},bulkDelete:async(l=[])=>{let h=await t.offline?.isOnline();if(Ye(t,`[tevrocsdk][entities:${e}] bulkDelete`,{online:h,ids:l}),!h){for(let m of l)await t.offline.queueOperation(e,"delete",m);return Ye(t,`[tevrocsdk][entities:${e}] bulkDelete queued`,{count:l.length}),{deleted:l.length}}let v=await t.request(`${A}/bulk`,{method:"DELETE",body:{ids:l}});if(Ye(t,`[tevrocsdk][entities:${e}] bulkDelete online result`,v),ot)for(let m of l)await t.native.store.remove(`entities/${e}/${m}`);return v},import:async(l=[])=>{let h=await t.offline?.isOnline();if(Ye(t,`[tevrocsdk][entities:${e}] import`,{online:h,count:l?.length}),!h){let m=0;for(let g of l)await t.offline.queueOperation(e,"create",g?.id,g),m+=1;return Ye(t,`[tevrocsdk][entities:${e}] import queued`,{imported:m}),{imported:m}}let v=await t.request(`${A}/import`,{method:"POST",body:{records:l}});return Ye(t,`[tevrocsdk][entities:${e}] import online result`,v),ot&&await n(v?.data||[]),v}}}function vj(t){return new Proxy({invoke:(e,A)=>t.request(`/functions/${encodeURIComponent(e)}`,{method:"POST",body:A})},{get(e,A){if(A in e)return e[A];if(typeof A=="string")return r=>e.invoke(A,r)}})}function mj(t){return{Core:{InvokeLLM:e=>t.request("/integrations/core/invoke-llm",{method:"POST",body:e}),GenerateImage:e=>t.request("/integrations/core/generate-image",{method:"POST",body:e}),UploadFile:(e,A={})=>qg(t,"/integrations/core/upload-file",e,A),UploadPrivateFile:(e,A={})=>qg(t,"/integrations/core/upload-private-file",e,A),CreateFileSignedUrl:e=>t.request("/integrations/core/create-file-signed-url",{method:"POST",body:e}),SendEmail:e=>t.request("/integrations/core/send-email",{method:"POST",body:e}),ExtractDataFromUploadedFile:e=>t.request("/integrations/core/extract-data-from-uploaded-file",{method:"POST",body:e})}}}function yj(t){return new Proxy({},{get(e,A){if(typeof A=="string")return Bj(t,A)}})}function Bj(t,e){let A=`/agents/${encodeURIComponent(e)}/conversations`,r=`agents/${encodeURIComponent(e)}`;async function n(s){!t.native?.store||!ot||!s||typeof s!="object"||!s.id||await t.native.store.set(`${r}/conversations/${s.id}`,s)}async function i(s,a=[]){!t.native?.store||!ot||!s||await Promise.all((Array.isArray(a)?a:[]).filter(o=>o&&typeof o=="object"&&o.id).map(o=>t.native.store.set(`${r}/conversations/${s}/messages/${o.id}`,o)))}return{createConversation:async(s={})=>{let a=await t.offline?.isOnline(),o=ot&&!a;if(Ye(t,`[tevrocsdk][agents:${e}] createConversation`,{online:a,offline:o,input:s}),o){let h=await t.offline.queueOperation(`agents/${e}`,"create",s?.id,{type:"conversation",...s});return Ye(t,`[tevrocsdk][agents:${e}] createConversation queued`,h),h}let l=await t.request(A,{method:"POST",body:s});if(Ye(t,`[tevrocsdk][agents:${e}] createConversation online result`,l),ot){let h=l?.data??l;h&&typeof h=="object"&&await n(h)}return l},listConversations:async()=>{let s=await t.offline?.isOnline(),a=ot&&!s;if(Ye(t,`[tevrocsdk][agents:${e}] listConversations`,{online:s,offline:a}),a){let l=await t.native.store.get(`${r}/conversations`),h=Object.values(l.val()||{});return Ye(t,`[tevrocsdk][agents:${e}] listConversations offline result`,{count:h.length}),{data:h}}let o=await t.request(A);return Ye(t,`[tevrocsdk][agents:${e}] listConversations online result`,o),ot&&Array.isArray(o?.data)&&await Promise.all(o.data.map(l=>n(l))),o},getConversation:async s=>{let a=await t.offline?.isOnline(),o=ot&&!a;if(Ye(t,`[tevrocsdk][agents:${e}] getConversation`,{conversationId:s,online:a,offline:o}),o){let h=(await t.native.store.get(`${r}/conversations/${s}`)).val();return Ye(t,`[tevrocsdk][agents:${e}] getConversation offline result`,{conversationId:s,exists:h!=null}),{data:h}}let l=await t.request(`${A}/${encodeURIComponent(s)}`);return Ye(t,`[tevrocsdk][agents:${e}] getConversation online result`,{conversationId:s,result:l}),ot&&await n(l?.data??l),l},deleteConversation:async s=>{let a=await t.offline?.isOnline(),o=ot&&!a;if(Ye(t,`[tevrocsdk][agents:${e}] deleteConversation`,{conversationId:s,online:a,offline:o}),o){let h=await t.offline.queueOperation(`agents/${e}`,"delete",s,{type:"conversation"});return Ye(t,`[tevrocsdk][agents:${e}] deleteConversation queued`,h),h}let l=await t.request(`${A}/${encodeURIComponent(s)}`,{method:"DELETE"});return Ye(t,`[tevrocsdk][agents:${e}] deleteConversation online result`,{conversationId:s,result:l}),ot&&await t.native.store.remove(`${r}/conversations/${s}`),l},addMessage:async(s,a)=>{let o=await t.offline?.isOnline(),l=ot&&!o;if(Ye(t,`[tevrocsdk][agents:${e}] addMessage`,{conversationId:s,online:o,offline:l,input:a}),l){let v=a?.id||`msg_${Date.now()}`,m=await t.offline.queueOperation(`agents/${e}`,"create",v,{type:"message",conversationId:s,...a,id:v});return Ye(t,`[tevrocsdk][agents:${e}] addMessage queued`,m),m}let h=await t.request(`${A}/${encodeURIComponent(s)}/messages`,{method:"POST",body:a});if(Ye(t,`[tevrocsdk][agents:${e}] addMessage online result`,{conversationId:s,result:h}),ot){let v=h?.data??h;v&&typeof v=="object"&&await t.native.store.set(`${r}/conversations/${s}/messages/${v.id||messageId||"unknown"}`,v)}return h},listMessages:async s=>{let a=await t.offline?.isOnline(),o=ot&&!a;if(Ye(t,`[tevrocsdk][agents:${e}] listMessages`,{conversationId:s,online:a,offline:o}),o){let h=await t.native.store.get(`${r}/conversations/${s}/messages`),v=Object.values(h.val()||{});return Ye(t,`[tevrocsdk][agents:${e}] listMessages offline result`,{conversationId:s,count:v.length}),{data:v}}let l=await t.request(`${A}/${encodeURIComponent(s)}/messages`);return Ye(t,`[tevrocsdk][agents:${e}] listMessages online result`,{conversationId:s,result:l}),ot&&Array.isArray(l?.data)&&await i(s,l.data),l}}}function bj(t){return{list:e=>t.request("/app-logs",{query:e}),create:e=>t.request("/app-logs",{method:"POST",body:e}),get:e=>t.request(`/app-logs/${encodeURIComponent(e)}`)}}function Cj(t){return{list:()=>t.request("/connectors"),get:e=>t.request(`/connectors/${encodeURIComponent(e)}`),connect:(e,A={})=>t.request(`/connectors/${encodeURIComponent(e)}/connect`,{method:"POST",body:A}),disconnect:e=>t.request(`/connectors/${encodeURIComponent(e)}/disconnect`,{method:"POST"}),status:e=>t.request(`/connectors/${encodeURIComponent(e)}/status`),user:{list:()=>t.request("/user-connectors"),get:e=>t.request(`/user-connectors/${encodeURIComponent(e)}`),refresh:e=>t.request(`/user-connectors/${encodeURIComponent(e)}/refresh`,{method:"POST"}),delete:e=>t.request(`/user-connectors/${encodeURIComponent(e)}`,{method:"DELETE"})}}}function Ej(t){return new Proxy({invoke:(e,A,r)=>t.request(`/custom-integrations/${encodeURIComponent(e)}/${encodeURIComponent(A)}`,{method:"POST",body:r})},{get(e,A){if(A in e)return e[A];if(typeof A=="string")return new Proxy({},{get(r,n){if(typeof n=="string")return i=>e.invoke(A,n,i)}})}})}function Fj(t){return{accessToken:e=>t.request("/sso/access-token",{method:"POST",body:e,auth:!1}),callback:e=>t.request("/sso/callback",{query:e,auth:!1})}}async function w3(t){return new Promise((e,A)=>{if(typeof FileReader>"u")return A(new Error("FileReader unavailable"));let r=new FileReader;r.onloadend=()=>{let n=r.result;if(typeof n!="string")return e("");let i=n.split(",")[1]||"";e(i)},r.onerror=A,r.readAsDataURL(t)})}async function p3(t,e){if(!t.native?.store||!ot)return null;let A=(await t.native.store.get(`downloaded_files/${e}`)).val();if(console.debug("[tevrocsdk][files] readCachedFileResponse",{key:e,hasCached:!!A?.data}),!A?.data)return null;let r=Uj(A.data,A.contentType||"application/octet-stream");return console.debug("[tevrocsdk][files] readCachedFileResponse built blob",{key:e,size:r&&r.size}),new Response(r,{headers:{"content-type":A.contentType||"application/octet-stream"}})}async function Dg(t,e,A,r="application/octet-stream"){if(!(!t.native?.store||!ot||!e))try{console.debug("[tevrocsdk][files] storeCachedFileResponse",{key:e});let n=A instanceof Response?A.clone():null,i=n?await n.blob():null,s=n&&n.headers.get("content-type")||r,a=i?await w3(i):"";if(console.debug("[tevrocsdk][files] storeCachedFileResponse data length",{key:e,length:a?a.length:0,contentType:s}),!a){console.warn("[tevrocsdk][files] storeCachedFileResponse no data to store",{key:e});return}await t.native.store.set(`downloaded_files/${e}`,{data:a,contentType:s,key:e,updatedAt:new Date().toISOString()}),console.debug("[tevrocsdk][files] storeCachedFileResponse stored",{key:e})}catch(n){Xc(t,"Failed to cache downloaded file",n),console.warn("[tevrocsdk][files] storeCachedFileResponse error",n)}}async function mm(t,e){if(!t.native?.store||!ot||!e)return null;let A=(await t.native.store.get(`downloaded_files/${e}`)).val();return console.debug("[tevrocsdk][files] readCachedFileDataUrl",{key:e,hasCached:!!A?.data}),A?.data?(console.debug("[tevrocsdk][files] readCachedFileDataUrl returning data url",{key:e,length:A.data.length}),`data:${A.contentType||"application/octet-stream"};base64,${A.data}`):null}function Uj(t,e="application/octet-stream"){if(typeof atob>"u"||typeof Blob>"u")return t;let A=atob(t),r=new Uint8Array(A.length);for(let n=0;n<A.length;n+=1)r[n]=A.charCodeAt(n);return new Blob([r],{type:e})}function xj(t){let e="",A=new Uint8Array(t),r=32768;for(let n=0;n<A.length;n+=r){let i=A.subarray(n,n+r);e+=String.fromCharCode.apply(null,i)}return btoa(e)}async function _j(t){if(typeof Blob<"u"&&t instanceof Blob)return{data:await w3(t),contentType:t.type||"application/octet-stream",bodyIsBase64:!0};if(t&&typeof t.arrayBuffer=="function"){let e=await t.arrayBuffer();return{data:xj(e),contentType:"application/octet-stream",bodyIsBase64:!0}}return typeof t=="string"?{data:t,contentType:"text/plain",bodyIsBase64:!1}:{data:JSON.stringify(t),contentType:"application/json",bodyIsBase64:!1}}function Sj(t){return{url:async e=>{let A=ot&&t.offline?await t.offline.isOnline():!0,r=ot&&!A,n=String(e??"");try{let s,a=0;do{s=n;try{n=decodeURIComponent(n)}catch{break}a+=1}while(n!==s&&n.includes("%25")&&a<5);a>0&&console.debug("[tevrocsdk][files] iterative decode performed",{original:e,rawKey:n,rounds:a})}catch{}if(Ye(t,"[tevrocsdk][files:url]",{key:e,rawKey:n,online:A,offline:r,isNative:ot}),r){let s=await mm(t,n);if(s)return s}let i=await t.request(`/files/${encodeURIComponent(n)}`,{parseAs:"response",auth:!1,skipSync:!0}).catch(()=>null);return i&&ot&&t.native?.store&&await Dg(t,n,i,i.headers.get("content-type")||"application/octet-stream"),`${t.baseUrl}/files/${encodeURIComponent(n)}`},privateUrl:async e=>{let A=ot&&t.offline?await t.offline.isOnline():!0,r=ot&&!A,n=String(e??"");try{let s,a=0;do{s=n;try{n=decodeURIComponent(n)}catch{break}a+=1}while(n!==s&&n.includes("%25")&&a<5);a>0&&console.debug("[tevrocsdk][files] iterative decode performed (privateUrl)",{original:e,rawKey:n,rounds:a})}catch{}if(Ye(t,"[tevrocsdk][files:privateUrl]",{key:e,rawKey:n,online:A,offline:r,isNative:ot}),r){let s=await mm(t,n);if(s)return s}let i=await t.request(`/private-files/${encodeURIComponent(n)}`,{parseAs:"response",skipSync:!0}).catch(()=>null);return i&&ot&&t.native?.store&&await Dg(t,n,i,i.headers.get("content-type")||"application/octet-stream"),`${t.baseUrl}/private-files/${encodeURIComponent(n)}`},upload:async(e,A={})=>qg(t,"/integrations/core/upload-file",e,A),uploadPrivate:async(e,A={})=>qg(t,"/integrations/core/upload-private-file",e,A),syncPendingUploads:async()=>!t.offline||typeof t.offline.syncPendingActions!="function"?{ok:!1,reason:"offline_unavailable"}:t.offline.syncPendingActions(),listPendingUploads:async()=>!t.offline||typeof t.offline.getPendingUploads!="function"?[]:t.offline.getPendingUploads(),get:async e=>{let A=ot&&t.offline?await t.offline.isOnline():!0,r=ot&&!A,n=String(e??"");try{let s,a=0;do{s=n;try{n=decodeURIComponent(n)}catch{break}a+=1}while(n!==s&&n.includes("%25")&&a<5);a>0&&console.debug("[tevrocsdk][files] iterative decode performed (get)",{original:e,rawKey:n,rounds:a})}catch{}if(Ye(t,"[tevrocsdk][files] get",{key:e,rawKey:n,isNative:ot,online:A,offline:r}),r){let s=await p3(t,n);if(Ye(t,"[tevrocsdk][files] get offline cached",{rawKey:n,cached:!!s}),s)return s}let i=await t.request(`/files/${encodeURIComponent(n)}`,{parseAs:"response",auth:!1,skipSync:!0});return Ye(t,"[tevrocsdk][files] get online response",{rawKey:n,status:i.status}),await Dg(t,n,i,i.headers.get("content-type")||"application/octet-stream"),i},getPrivate:async e=>{let A=ot&&t.offline?await t.offline.isOnline():!0,r=ot&&!A,n=String(e??"");try{let s,a=0;do{s=n;try{n=decodeURIComponent(n)}catch{break}a+=1}while(n!==s&&n.includes("%25")&&a<5);a>0&&console.debug("[tevrocsdk][files] iterative decode performed (getPrivate)",{original:e,rawKey:n,rounds:a})}catch{}if(Ye(t,"[tevrocsdk][files] getPrivate",{key:e,rawKey:n,isNative:ot,online:A,offline:r}),r){let s=await p3(t,n);if(Ye(t,"[tevrocsdk][files] getPrivate offline cached",{rawKey:n,cached:!!s}),s)return s}let i=await t.request(`/private-files/${encodeURIComponent(n)}`,{parseAs:"response",skipSync:!0});return Ye(t,"[tevrocsdk][files] getPrivate online response",{rawKey:n,status:i.status}),await Dg(t,n,i,i.headers.get("content-type")||"application/octet-stream"),i}}}async function qg(t,e,A,r={}){let n={};if(r.filename&&(n["x-filename"]=r.filename),r.contentType&&(n["content-type"]=r.contentType),ot&&t.offline&&!await t.offline.isOnline()){let a=r.filename||`file_${Date.now()}`,o=await _j(A),l={path:e,method:"POST",headers:n,body:o.data,contentType:o.contentType,bodyIsBase64:o.bodyIsBase64,filename:r.filename,createdAt:new Date().toISOString()},h=await t.offline.queueOperation("files","upload",a,l);return Ye(t,"[tevrocsdk][files] upload queued offline",{path:e,id:a,queued:h}),h}return ot&&t.offline&&typeof t.offline.syncPendingActions=="function"&&await t.offline.syncPendingActions(),await t.request(e,{method:"POST",body:A,headers:n,skipSync:!0})}async function Qj(t,e){if(e==="response")return t;let r=(t.headers.get("content-type")??"").includes("application/json"),n=r?await t.json():await t.text();if(!t.ok){let i=r&&n?.error?n.error:{};throw new Os(i.message??t.statusText,{status:t.status,code:i.code??"api_error",details:i.details??n,response:t})}return n}function Ij(t){let e=new URLSearchParams;for(let[r,n]of Object.entries(t))if(n!=null)if(Array.isArray(n))for(let i of n)e.append(r,String(i));else e.set(r,String(n));let A=e.toString();return A?`?${A}`:""}function g3(t){return String(t).replace(/\/+$/,"")}function Lj(t={}){return Object.fromEntries(new Headers(t).entries())}function Ye(t,...e){t?.debug&&console.log(...e)}function Xc(t,...e){t?.debug&&console.warn(...e)}function Hg(t,...e){t?.debug&&console.error(...e)}function Mg(){return typeof globalThis<"u"?globalThis.localStorage:void 0}function Tj(){return Mg()?.getItem("tevroc_access_token")??null}function Nj(t={},e,A){let r={filter:t};return typeof e=="string"?r.sort=e:e&&typeof e=="object"&&Object.assign(r,e),A!==void 0&&(r.limit=A),r}function Oj(t){let e=typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer,A=typeof Blob<"u"&&t instanceof Blob,r=typeof FormData<"u"&&t instanceof FormData;return typeof t=="object"&&!e&&!A&&!r}return OQ(Pj);})();
|
|
89
89
|
/*! Bundled license information:
|
|
90
90
|
|
|
91
91
|
@capacitor/core/dist/index.js:
|