const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index.es-9zlfCGBl.js","static/vendor-ui-DZJzNhfO.js","static/vendor-react-RA0MeLRT.js","static/vendor-data-DipQAKt7.js","static/index-CX44Czc2.js","static/vendor-monaco-kUzn8ZZg.js","static/vendor-monaco-Cdw5dZYH.css","static/vendor-utils-DxBcq7o1.js","static/index-yBwjqwoX.css","static/button-BamSYHGn.js","static/button-CP00zwgT.css","static/webviewDetection-BGkn8C8u.js","static/progress-fp-nWkMh.js","static/index-ZHXqJ0xM.js","static/AppLogsAPI-DB6wC6Bb.js","static/domainValidation-C2COoIZ_.js"])))=>i.map(i=>d[i]);
var Vj=Object.defineProperty;var Gj=(n,e,t)=>e in n?Vj(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Mr=(n,e,t)=>Gj(n,typeof e!="symbol"?e+"":e,t);import{r as te,j as R,cl as _f,i as Ge,bx as og,cY as Kj,cT as UF,d as OF,a3 as qj,A as wp,cN as Eu,cZ as HF,c_ as WF,c$ as QF,d0 as $F,u as cg,d1 as jF,d2 as zF,P as Gs,k as Pr,d3 as oS,d4 as VF,d5 as GF,d6 as KF,d7 as qF,d8 as XF,d9 as YF,da as JF,db as ZF,dc as eN,q as cS,dd as tN,y as lS,bE as nN,at as rN,de as Km,n as iN,df as Xj,l as xf,dg as Yj,dh as aN,m as uS,cS as _E,cM as Tw,di as Jj,s as Zj,dj as e6,cR as d2,dk as t6,cz as xE,dl as n6,a as r6,dm as i6,dn as a6,dp as s6,dq as o6,dr as c6,ds as l6,dt as u6,f as Gl,X as d6,ak as Jv,J as bp,a$ as A6,O as h6,al as f6,a4 as sN}from"./vendor-ui-DZJzNhfO.js";import{e as m6,c as oN,u as kw,b as Iw,B as p6,R as g6,d as em}from"./vendor-react-RA0MeLRT.js";import{g as v6,R as y6,a as w6,Q as b6}from"./vendor-data-DipQAKt7.js";import{a6 as ME,k as dS,a7 as lh,e as cN,a8 as _6,b as lN,l as Fm,a9 as uN,aa as dN,w as On,x as AN,ab as x6,ac as M6,S as S6,U as C6,V as P6,T as E6,_ as B6,ad as T6,ae as k6,af as I6,ag as SE,ah as L6,ai as d0,aj as F6,ak as N6,al as D6,am as R6,an as U6,ao as O6,ap as H6,C as hN,aq as W6,Z as fN,d as Q6,i as $6,s as j6,ar as CE}from"./index-CX44Czc2.js";import{bm as mN,bn as z6,bo as V6,bp as G6,bq as K6,bg as q6,br as X6,bs as Y6,bt as J6,bu as Ta,bv as Z6,aj as Ka,bw as ez,an as Kr,ao as qi,bx as Yu,ak as pN,by as AS,aq as Zh,ar as Ti,as as Lw,av as lg,ax as mA,aw as ha,bz as tz,at as Tu,bA as Zv,bB as ey,bC as A2,bD as nz,bE as rz,al as Fw,G as Nw,bF as iz,bG as PE,bH as az,bI as gN,am as vN,bJ as sz,ap as yN,ay as wN,az as EE,bK as bN,bL as oz,bM as _N,bN as hS,bO as xN,bP as cz,bQ as lz,bR as uz,bS as MN,bT as dz,bU as SN,bV as Az,bW as hz,bX as fz,bY as mz,bZ as fS,b_ as CN,b$ as PN,c0 as EN,c1 as pz,c2 as gz,c3 as vz,c4 as yz,c5 as wz,c6 as bz,c7 as BN,c8 as _z,c9 as xz,ca as Mz,cb as Sz,cc as Cz,cd as Pz,ce as Ez,cf as Bz,cg as mS,ch as Fu,H as Dl,ci as Nm,cj as TN,ck as Dw,cl as kN,cm as IN,cn as Tz,co as kz,cp as Iz,cq as Lz,aA as ug,cr as pS,cs as gS,ct as LN,X as vS,Y as yS,aB as FN,O as NN,L as DN,cu as Fz,cv as RN,cw as UN,cx as Nz,cy as Dz,cz as Rz,N as Uz,J as Oz,cA as Hz,cB as Wz,K as Qz,cC as $z,cD as jz,cE as zz,cF as Vz,aN as Gz,F as Kz,P as qz,cG as Xz,cH as Yz,be as Jz,R as Zz,cI as e8,aO as t8,cJ as Gr,cK as n8,cL as r8,cM as ON,cN as i8,cO as a8,cP as HN,aC as s8,cQ as o8,h as Kl,cR as c8,c as Mf,cS as l8,af as Ol,aY as u8,aV as d8,aW as A8,b6 as h8,b7 as f8,cT as m8,a3 as Hl,aM as BE,ai as p8,S as WN,cU as g8,cV as v8,M as y8,cW as w8,cX as b8,cY as _8,cZ as x8,c_ as M8,c$ as S8,d0 as C8,d1 as P8,d2 as E8,d3 as B8,d4 as T8,d5 as k8,d6 as I8,d7 as L8,d8 as F8,d9 as N8,da as D8,db as R8,dc as U8,dd as O8,de as H8,df as W8,dg as Q8,dh as $8,di as j8,dj as z8,dk as V8,dl as G8,dm as K8,dn as q8,dp as X8,dq as Y8,dr as J8,ds as Z8,dt as eV,du as tV,dv as nV,dw as rV,dx as iV,dy as aV,dz as Ao,aP as sV,A as pA,q as gA,C as oV,dA as cV,j as Fv,n as Nv,dB as lV,dC as uV,dD as dV,U as Rw,T as QN,b as $N,i as AV,Z as hV,B as fV,dE as mV,a as pV}from"./button-BamSYHGn.js";import{o as h2}from"./webviewDetection-BGkn8C8u.js";import{c as _o,b as we,a as K,d as X,g as Nt,h as id,i as vi,m as LA,l as FA,j as NA,k as Sf,n as gV,t as jN,o as vV}from"./vendor-utils-DxBcq7o1.js";import{a as zN,L as yV,b as wV}from"./progress-fp-nWkMh.js";import{_ as A0}from"./vendor-monaco-kUzn8ZZg.js";import{R as VN,T as bV,a as _V,b as xV}from"./index-ZHXqJ0xM.js";import{A as MV}from"./AppLogsAPI-DB6wC6Bb.js";import{s as h0}from"./domainValidation-C2COoIZ_.js";function wS(n,e){for(var t=0;t<e.length;t++){const r=e[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in n)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}const GN=te.createContext();class SV extends cN{getBaseURL(){return"/apps"}getCurrentUser(e){return this.axios.get(`/${e}/entities/User/me`)}}const CV=new SV,PV=({children:n,appId:e})=>{const[t,r]=te.useState(null),[i,a]=te.useState(!1),[s,o]=te.useState(!0),[c,l]=te.useState(null),[u,A]=te.useState(null);te.useEffect(()=>{const C=ME(!0);if(C)dS(C),A("platform"),y();else{const F=lh.getSSOTokens();F&&F.access_token&&(l(F),A("sso"),lh.setSSOTokens({sso_access_token:F.access_token,sso_token_type:F.token_type,sso_expires_at:F.expires_at,sso_scope:F.scope,sso_provider:F.provider,sso_id_token:F.id_token})),o(!1)}const M=lh.addListener((F,D)=>{if(F==="sso_tokens_updated"){const U=D.tokens;l(U),!ME(!1)&&U&&U.access_token&&A("sso")}else F==="sso_tokens_cleared"&&(l(null),u==="sso"&&(A(null),a(!1),r(null)))});return()=>{M()}},[]);const f=C=>{r(C)},h=()=>{_6(),r(null),a(!1),o(!1),l(null),A(null),lh.clearSSOTokens()},g=(C=!0)=>{if(h(),a(!1),r(null),C){const M=encodeURIComponent(window.location.href);window.location.href="/login?from_url="+M}},y=async()=>{try{o(!0);const C=await CV.getCurrentUser(e);return window.FS&&window.FS("setIdentity",{uid:C.id,properties:{displayName:C.full_name||C.email,email:C.email}}),r(C),a(!0),o(!1),C}catch{o(!1),h()}},w=(C=!0)=>{const M=window.location.href,F=`/api/apps/${e}/auth/sso/login?from_url=${encodeURIComponent(M)}&include_external_tokens=${C}`;window.location.href=F},v=()=>c||lh.getSSOTokens(),S=()=>{lh.clearSSOTokens(),l(null)};return R.jsx(GN.Provider,{value:{user:t,isAuthenticated:i,logout:g,isLoadingAuth:s,updateUser:f,ssoTokens:c,authMethod:u,loginWithSSO:w,getSSOTokens:v,clearSSOTokens:S},children:n})},bS=()=>te.useContext(GN);function EV(n,e,t){const r={};return e.endpoints.forEach(i=>{r[i.name]=async a=>{var s,o;if(i.name==="create_checkout_session"&&window.parent!==window&&alert("Note - you're creating a stripe checkout session, but stripe does not allow this to be done inside an iframe. Please use the publish button to test the checkout flow."),typeof a=="string")throw new Error(`Integration ${i.name} must receive an object with named parameters, received: ${a}`);try{let c,l;a instanceof FormData||a&&Object.values(a).some(g=>g instanceof File)?(c=new FormData,Object.keys(a).forEach(g=>{a[g]instanceof File?c.append(g,a[g],a[g].name):typeof a[g]=="object"&&a[g]!==null?c.append(g,JSON.stringify(a[g])):c.append(g,a[g])}),l="multipart/form-data"):(c=a,l="application/json");const A=e.package_name==="Core"?`/Core/${i.name}`:`/${e.package_name}/${i.name}`;return await n.post(A,c||a,{headers:{"Content-Type":l}})}catch(c){throw t(`Error calling integration ${i.name}: ${((o=(s=c.response)==null?void 0:s.data)==null?void 0:o.detail)||c.message}`,`When using the app, the following integration call failed:
input parameters:
${JSON.stringify(a,null,2)}`,null,c),c}}}),r}async function BV(n,e){const t=lN(mN()+`/apps/${n}/integration-endpoints`,{"X-App-Id":n},!0,!0),r=await t.get("/schema");let i={};return(r.installed_packages||r).forEach(s=>{i[s.package_name]=EV(t,s,e)}),i.getMissingPackages=()=>r.missing_packages||[],i}function _S(n,e,t){class r extends cN{getBaseURL(){return`/apps/${n}`}inviteUser(a,s){return this.axios.post("/users/invite-user",{user_email:a,role:s})}getMyUserInfo(){return this.axios.get("/entities/User/me")}updateMyUserData(a){return this.axios.put("/entities/User/me",a)}logout(){t.logout(!1),window.location.reload()}async login(){const a=window.location.href,s=`${Fm()}/apps/auth/login?from_url=${a}&app_id=${n}`;h2(s)}async loginWithRedirect(a){const s=window.location.href.substring(0,window.location.href.lastIndexOf("/")+1);window.location.href=`${s}login?from_url=${encodeURIComponent(a)}`}isUserAuthenticated(){return t.isUserAuthenticated()}register(a){return this.axios.post("/auth/register",a)}verifyOtp(a,s){return this.axios.post("/auth/verify-otp",{email:a,otp_code:s})}resendOtp(a){return this.axios.post("/auth/resend-otp",{email:a})}verifyAccessRequestOtp(a,s){return this.axios.post("/access-requests/verify-otp",{email:a,otp_code:s})}resendAccessRequestOtp(a){return this.axios.post("/access-requests/resend-otp",{email:a})}loginViaUsernamePassword(a,s){return this.axios.post("/auth/login",{email:a,password:s})}resetPasswordRequest(a){return this.axios.post("/auth/reset-password-request",{email:a},{headers:{"X-Origin-Host":window.location.hostname}})}resetPassword(a,s){return this.axios.post("/auth/reset-password",{reset_token:a,new_password:s})}changePassword(a,s,o){return this.axios.post("/auth/change-password",{user_id:a,current_password:s,new_password:o})}}return new r(e)}function TV(n){let e=window.location.pathname;e.endsWith("/")&&(e=e.slice(0,-1));let t=e.split("/").pop();return t.includes("?")&&(t=t.split("?")[0]),Object.keys(n.pages).map(r=>r.toLowerCase()).includes(t.toLowerCase())?{name:t,code:n.pages[t]}:t===n.slug||t===n.id||t==="preview"||t===""?{name:n.main_page,code:n.pages[n.main_page]}:null}const kV=(n,e,t)=>{const r=["localhost","base44.com","base44.app","app.base44.com","base44.onrender.com","apper-test.onrender.com","beta-base44.onrender.com","base44.io","ba11.me","ba22.me","ba33.me"],i=window.location.hostname;return!r.includes(i)||i.startsWith("app--")||i.startsWith("preview--")?t&&typeof t=="object"?`/${e}?${Object.keys(t).map(s=>`${s}=${t[s]}`).join("&")}`:t&&typeof t=="string"?t.startsWith("?")?`/${e}${t}`:`/${e}?${t}`:`/${e}`:t&&typeof t=="object"?`/apps-show/${n.slug}/${e}?${Object.keys(t).map(s=>`${s}=${t[s]}`).join("&")}`:t&&typeof t=="string"?t.startsWith("?")?`/apps-show/${n.slug}/${e}${t}`:`/apps-show/${n.slug}/${e}?${t}`:`/apps-show/${n.slug}/${e}`};async function IV(n){const e=lN(mN()+"/apps/public",{"X-App-Id":n.id,"X-App-Slug":n.slug});if(!n.id&&!n.slug)throw new Error("Either id or slug must be provided");let t;n.slug?t=await e.get(`/prod/by-slug/${n.slug}`):t=await e.get(`/prod/by-id/${n.id}`);const r=z6(),i={};i["api/base44Client.js"]=`import { createClient } from '@base44/sdk';

export const base44 = createClient({
  appId: "${t.id}",
  serverUrl: "${V6()}",
  functionsVersion: "${r}"
});
`;const a=(A,f,h,g)=>{let y=h;if(f&&typeof f=="string"){const w=f.match(/at\s+(\w+)\s+/);if(w&&w[1]){const v=w[1];if(t.components&&t.components[v])y=v;else if(t.pages&&t.pages[v])y=v;else{for(const S in t.components||{})if(t.components[S].includes(`function ${v}`)){y=S;break}for(const S in t.pages||{})if(t.pages[S].includes(`function ${v}`)){y=S;break}}}}n.onError(A,f,y,g)},s=_S(t.id,a,n.authProps),o=G6(t,a,s),c=await BV(t.id,a),l=K6(t,a),u=q6(t.id,void 0,a,{trackRuntimeAnalytics:!0});return{appId:t.id,files:{...t,coreFiles:i},entities:o,integrations:c,functions:l,users:s,agents:u,getCurrentPage:()=>TV(t),createPageUrl:(A,f)=>kV(t,A,f),options:{...n,onError:a}}}var Ce;(function(n){n[n.NONE=0]="NONE";const t=1;n[n._abstract=t]="_abstract";const r=t+1;n[n._accessor=r]="_accessor";const i=r+1;n[n._as=i]="_as";const a=i+1;n[n._assert=a]="_assert";const s=a+1;n[n._asserts=s]="_asserts";const o=s+1;n[n._async=o]="_async";const c=o+1;n[n._await=c]="_await";const l=c+1;n[n._checks=l]="_checks";const u=l+1;n[n._constructor=u]="_constructor";const A=u+1;n[n._declare=A]="_declare";const f=A+1;n[n._enum=f]="_enum";const h=f+1;n[n._exports=h]="_exports";const g=h+1;n[n._from=g]="_from";const y=g+1;n[n._get=y]="_get";const w=y+1;n[n._global=w]="_global";const v=w+1;n[n._implements=v]="_implements";const S=v+1;n[n._infer=S]="_infer";const C=S+1;n[n._interface=C]="_interface";const M=C+1;n[n._is=M]="_is";const F=M+1;n[n._keyof=F]="_keyof";const D=F+1;n[n._mixins=D]="_mixins";const U=D+1;n[n._module=U]="_module";const O=U+1;n[n._namespace=O]="_namespace";const T=O+1;n[n._of=T]="_of";const P=T+1;n[n._opaque=P]="_opaque";const k=P+1;n[n._out=k]="_out";const H=k+1;n[n._override=H]="_override";const j=H+1;n[n._private=j]="_private";const $=j+1;n[n._protected=$]="_protected";const ce=$+1;n[n._proto=ce]="_proto";const de=ce+1;n[n._public=de]="_public";const fe=de+1;n[n._readonly=fe]="_readonly";const ee=fe+1;n[n._require=ee]="_require";const Se=ee+1;n[n._satisfies=Se]="_satisfies";const xe=Se+1;n[n._set=xe]="_set";const Pe=xe+1;n[n._static=Pe]="_static";const V=Pe+1;n[n._symbol=V]="_symbol";const ae=V+1;n[n._type=ae]="_type";const J=ae+1;n[n._unique=J]="_unique";const z=J+1;n[n._using=z]="_using"})(Ce||(Ce={}));var p;(function(n){n[n.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const t=16;n[n.IS_KEYWORD=t]="IS_KEYWORD";const r=32;n[n.IS_ASSIGN=r]="IS_ASSIGN";const i=64;n[n.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const a=128;n[n.IS_PREFIX=a]="IS_PREFIX";const s=256;n[n.IS_POSTFIX=s]="IS_POSTFIX";const o=512;n[n.IS_EXPRESSION_START=o]="IS_EXPRESSION_START";const c=512;n[n.num=c]="num";const l=1536;n[n.bigint=l]="bigint";const u=2560;n[n.decimal=u]="decimal";const A=3584;n[n.regexp=A]="regexp";const f=4608;n[n.string=f]="string";const h=5632;n[n.name=h]="name";const g=6144;n[n.eof=g]="eof";const y=7680;n[n.bracketL=y]="bracketL";const w=8192;n[n.bracketR=w]="bracketR";const v=9728;n[n.braceL=v]="braceL";const S=10752;n[n.braceBarL=S]="braceBarL";const C=11264;n[n.braceR=C]="braceR";const M=12288;n[n.braceBarR=M]="braceBarR";const F=13824;n[n.parenL=F]="parenL";const D=14336;n[n.parenR=D]="parenR";const U=15360;n[n.comma=U]="comma";const O=16384;n[n.semi=O]="semi";const T=17408;n[n.colon=T]="colon";const P=18432;n[n.doubleColon=P]="doubleColon";const k=19456;n[n.dot=k]="dot";const H=20480;n[n.question=H]="question";const j=21504;n[n.questionDot=j]="questionDot";const $=22528;n[n.arrow=$]="arrow";const ce=23552;n[n.template=ce]="template";const de=24576;n[n.ellipsis=de]="ellipsis";const fe=25600;n[n.backQuote=fe]="backQuote";const ee=27136;n[n.dollarBraceL=ee]="dollarBraceL";const Se=27648;n[n.at=Se]="at";const xe=29184;n[n.hash=xe]="hash";const Pe=29728;n[n.eq=Pe]="eq";const V=30752;n[n.assign=V]="assign";const ae=32640;n[n.preIncDec=ae]="preIncDec";const J=33664;n[n.postIncDec=J]="postIncDec";const z=34432;n[n.bang=z]="bang";const Z=35456;n[n.tilde=Z]="tilde";const le=35841;n[n.pipeline=le]="pipeline";const ge=36866;n[n.nullishCoalescing=ge]="nullishCoalescing";const Me=37890;n[n.logicalOR=Me]="logicalOR";const Te=38915;n[n.logicalAND=Te]="logicalAND";const We=39940;n[n.bitwiseOR=We]="bitwiseOR";const Ee=40965;n[n.bitwiseXOR=Ee]="bitwiseXOR";const Ne=41990;n[n.bitwiseAND=Ne]="bitwiseAND";const ue=43015;n[n.equality=ue]="equality";const ne=44040;n[n.lessThan=ne]="lessThan";const De=45064;n[n.greaterThan=De]="greaterThan";const je=46088;n[n.relationalOrEqual=je]="relationalOrEqual";const ze=47113;n[n.bitShiftL=ze]="bitShiftL";const Qe=48137;n[n.bitShiftR=Qe]="bitShiftR";const ot=49802;n[n.plus=ot]="plus";const se=50826;n[n.minus=se]="minus";const G=51723;n[n.modulo=G]="modulo";const Be=52235;n[n.star=Be]="star";const Ke=53259;n[n.slash=Ke]="slash";const it=54348;n[n.exponent=it]="exponent";const Ve=55296;n[n.jsxName=Ve]="jsxName";const bt=56320;n[n.jsxText=bt]="jsxText";const lt=57344;n[n.jsxEmptyText=lt]="jsxEmptyText";const ct=58880;n[n.jsxTagStart=ct]="jsxTagStart";const kt=59392;n[n.jsxTagEnd=kt]="jsxTagEnd";const Je=60928;n[n.typeParameterStart=Je]="typeParameterStart";const Tt=61440;n[n.nonNullAssertion=Tt]="nonNullAssertion";const Pt=62480;n[n._break=Pt]="_break";const Ct=63504;n[n._case=Ct]="_case";const yt=64528;n[n._catch=yt]="_catch";const Kt=65552;n[n._continue=Kt]="_continue";const _t=66576;n[n._debugger=_t]="_debugger";const sn=67600;n[n._default=sn]="_default";const Le=68624;n[n._do=Le]="_do";const pt=69648;n[n._else=pt]="_else";const Ze=70672;n[n._finally=Ze]="_finally";const nt=71696;n[n._for=nt]="_for";const At=73232;n[n._function=At]="_function";const Mt=73744;n[n._if=Mt]="_if";const fn=74768;n[n._return=fn]="_return";const Sn=75792;n[n._switch=Sn]="_switch";const or=77456;n[n._throw=or]="_throw";const _n=77840;n[n._try=_n]="_try";const Vt=78864;n[n._var=Vt]="_var";const zr=79888;n[n._let=zr]="_let";const ea=80912;n[n._const=ea]="_const";const wi=81936;n[n._while=wi]="_while";const Hr=82960;n[n._with=Hr]="_with";const Wn=84496;n[n._new=Wn]="_new";const Dt=85520;n[n._this=Dt]="_this";const Fr=86544;n[n._super=Fr]="_super";const Hi=87568;n[n._class=Hi]="_class";const ta=88080;n[n._extends=ta]="_extends";const si=89104;n[n._export=si]="_export";const bi=90640;n[n._import=bi]="_import";const _i=91664;n[n._yield=_i]="_yield";const Xr=92688;n[n._null=Xr]="_null";const xi=93712;n[n._true=xi]="_true";const es=94736;n[n._false=es]="_false";const na=95256;n[n._in=na]="_in";const ts=96280;n[n._instanceof=ts]="_instanceof";const Ae=97936;n[n._typeof=Ae]="_typeof";const Ue=98960;n[n._void=Ue]="_void";const tt=99984;n[n._delete=tt]="_delete";const rt=100880;n[n._async=rt]="_async";const $e=101904;n[n._get=$e]="_get";const Et=102928;n[n._set=Et]="_set";const Ut=103952;n[n._declare=Ut]="_declare";const Rt=104976;n[n._readonly=Rt]="_readonly";const zt=106e3;n[n._abstract=zt]="_abstract";const hn=107024;n[n._static=hn]="_static";const ln=107536;n[n._public=ln]="_public";const en=108560;n[n._private=en]="_private";const In=109584;n[n._protected=In]="_protected";const Ln=110608;n[n._override=Ln]="_override";const qt=112144;n[n._as=qt]="_as";const mn=113168;n[n._enum=mn]="_enum";const Fn=114192;n[n._type=Fn]="_type";const Ot=115216;n[n._implements=Ot]="_implements"})(p||(p={}));function LV(n){switch(n){case p.num:return"num";case p.bigint:return"bigint";case p.decimal:return"decimal";case p.regexp:return"regexp";case p.string:return"string";case p.name:return"name";case p.eof:return"eof";case p.bracketL:return"[";case p.bracketR:return"]";case p.braceL:return"{";case p.braceBarL:return"{|";case p.braceR:return"}";case p.braceBarR:return"|}";case p.parenL:return"(";case p.parenR:return")";case p.comma:return",";case p.semi:return";";case p.colon:return":";case p.doubleColon:return"::";case p.dot:return".";case p.question:return"?";case p.questionDot:return"?.";case p.arrow:return"=>";case p.template:return"template";case p.ellipsis:return"...";case p.backQuote:return"`";case p.dollarBraceL:return"${";case p.at:return"@";case p.hash:return"#";case p.eq:return"=";case p.assign:return"_=";case p.preIncDec:return"++/--";case p.postIncDec:return"++/--";case p.bang:return"!";case p.tilde:return"~";case p.pipeline:return"|>";case p.nullishCoalescing:return"??";case p.logicalOR:return"||";case p.logicalAND:return"&&";case p.bitwiseOR:return"|";case p.bitwiseXOR:return"^";case p.bitwiseAND:return"&";case p.equality:return"==/!=";case p.lessThan:return"<";case p.greaterThan:return">";case p.relationalOrEqual:return"<=/>=";case p.bitShiftL:return"<<";case p.bitShiftR:return">>/>>>";case p.plus:return"+";case p.minus:return"-";case p.modulo:return"%";case p.star:return"*";case p.slash:return"/";case p.exponent:return"**";case p.jsxName:return"jsxName";case p.jsxText:return"jsxText";case p.jsxEmptyText:return"jsxEmptyText";case p.jsxTagStart:return"jsxTagStart";case p.jsxTagEnd:return"jsxTagEnd";case p.typeParameterStart:return"typeParameterStart";case p.nonNullAssertion:return"nonNullAssertion";case p._break:return"break";case p._case:return"case";case p._catch:return"catch";case p._continue:return"continue";case p._debugger:return"debugger";case p._default:return"default";case p._do:return"do";case p._else:return"else";case p._finally:return"finally";case p._for:return"for";case p._function:return"function";case p._if:return"if";case p._return:return"return";case p._switch:return"switch";case p._throw:return"throw";case p._try:return"try";case p._var:return"var";case p._let:return"let";case p._const:return"const";case p._while:return"while";case p._with:return"with";case p._new:return"new";case p._this:return"this";case p._super:return"super";case p._class:return"class";case p._extends:return"extends";case p._export:return"export";case p._import:return"import";case p._yield:return"yield";case p._null:return"null";case p._true:return"true";case p._false:return"false";case p._in:return"in";case p._instanceof:return"instanceof";case p._typeof:return"typeof";case p._void:return"void";case p._delete:return"delete";case p._async:return"async";case p._get:return"get";case p._set:return"set";case p._declare:return"declare";case p._readonly:return"readonly";case p._abstract:return"abstract";case p._static:return"static";case p._public:return"public";case p._private:return"private";case p._protected:return"protected";case p._override:return"override";case p._as:return"as";case p._enum:return"enum";case p._type:return"type";case p._implements:return"implements";default:return""}}class tl{constructor(e,t,r){this.startTokenIndex=e,this.endTokenIndex=t,this.isFunctionScope=r}}class FV{constructor(e,t,r,i,a,s,o,c,l,u,A,f,h){this.potentialArrowAt=e,this.noAnonFunctionType=t,this.inDisallowConditionalTypesContext=r,this.tokensLength=i,this.scopesLength=a,this.pos=s,this.type=o,this.contextualKeyword=c,this.start=l,this.end=u,this.isType=A,this.scopeDepth=f,this.error=h}}class vs{constructor(){vs.prototype.__init.call(this),vs.prototype.__init2.call(this),vs.prototype.__init3.call(this),vs.prototype.__init4.call(this),vs.prototype.__init5.call(this),vs.prototype.__init6.call(this),vs.prototype.__init7.call(this),vs.prototype.__init8.call(this),vs.prototype.__init9.call(this),vs.prototype.__init10.call(this),vs.prototype.__init11.call(this),vs.prototype.__init12.call(this),vs.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=p.eof}__init8(){this.contextualKeyword=Ce.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new FV(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(e){this.potentialArrowAt=e.potentialArrowAt,this.noAnonFunctionType=e.noAnonFunctionType,this.inDisallowConditionalTypesContext=e.inDisallowConditionalTypesContext,this.tokens.length=e.tokensLength,this.scopes.length=e.scopesLength,this.pos=e.pos,this.type=e.type,this.contextualKeyword=e.contextualKeyword,this.start=e.start,this.end=e.end,this.isType=e.isType,this.scopeDepth=e.scopeDepth,this.error=e.error}}var Re;(function(n){n[n.backSpace=8]="backSpace";const t=10;n[n.lineFeed=t]="lineFeed";const r=9;n[n.tab=r]="tab";const i=13;n[n.carriageReturn=i]="carriageReturn";const a=14;n[n.shiftOut=a]="shiftOut";const s=32;n[n.space=s]="space";const o=33;n[n.exclamationMark=o]="exclamationMark";const c=34;n[n.quotationMark=c]="quotationMark";const l=35;n[n.numberSign=l]="numberSign";const u=36;n[n.dollarSign=u]="dollarSign";const A=37;n[n.percentSign=A]="percentSign";const f=38;n[n.ampersand=f]="ampersand";const h=39;n[n.apostrophe=h]="apostrophe";const g=40;n[n.leftParenthesis=g]="leftParenthesis";const y=41;n[n.rightParenthesis=y]="rightParenthesis";const w=42;n[n.asterisk=w]="asterisk";const v=43;n[n.plusSign=v]="plusSign";const S=44;n[n.comma=S]="comma";const C=45;n[n.dash=C]="dash";const M=46;n[n.dot=M]="dot";const F=47;n[n.slash=F]="slash";const D=48;n[n.digit0=D]="digit0";const U=49;n[n.digit1=U]="digit1";const O=50;n[n.digit2=O]="digit2";const T=51;n[n.digit3=T]="digit3";const P=52;n[n.digit4=P]="digit4";const k=53;n[n.digit5=k]="digit5";const H=54;n[n.digit6=H]="digit6";const j=55;n[n.digit7=j]="digit7";const $=56;n[n.digit8=$]="digit8";const ce=57;n[n.digit9=ce]="digit9";const de=58;n[n.colon=de]="colon";const fe=59;n[n.semicolon=fe]="semicolon";const ee=60;n[n.lessThan=ee]="lessThan";const Se=61;n[n.equalsTo=Se]="equalsTo";const xe=62;n[n.greaterThan=xe]="greaterThan";const Pe=63;n[n.questionMark=Pe]="questionMark";const V=64;n[n.atSign=V]="atSign";const ae=65;n[n.uppercaseA=ae]="uppercaseA";const J=66;n[n.uppercaseB=J]="uppercaseB";const z=67;n[n.uppercaseC=z]="uppercaseC";const Z=68;n[n.uppercaseD=Z]="uppercaseD";const le=69;n[n.uppercaseE=le]="uppercaseE";const ge=70;n[n.uppercaseF=ge]="uppercaseF";const Me=71;n[n.uppercaseG=Me]="uppercaseG";const Te=72;n[n.uppercaseH=Te]="uppercaseH";const We=73;n[n.uppercaseI=We]="uppercaseI";const Ee=74;n[n.uppercaseJ=Ee]="uppercaseJ";const Ne=75;n[n.uppercaseK=Ne]="uppercaseK";const ue=76;n[n.uppercaseL=ue]="uppercaseL";const ne=77;n[n.uppercaseM=ne]="uppercaseM";const De=78;n[n.uppercaseN=De]="uppercaseN";const je=79;n[n.uppercaseO=je]="uppercaseO";const ze=80;n[n.uppercaseP=ze]="uppercaseP";const Qe=81;n[n.uppercaseQ=Qe]="uppercaseQ";const ot=82;n[n.uppercaseR=ot]="uppercaseR";const se=83;n[n.uppercaseS=se]="uppercaseS";const G=84;n[n.uppercaseT=G]="uppercaseT";const Be=85;n[n.uppercaseU=Be]="uppercaseU";const Ke=86;n[n.uppercaseV=Ke]="uppercaseV";const it=87;n[n.uppercaseW=it]="uppercaseW";const Ve=88;n[n.uppercaseX=Ve]="uppercaseX";const bt=89;n[n.uppercaseY=bt]="uppercaseY";const lt=90;n[n.uppercaseZ=lt]="uppercaseZ";const ct=91;n[n.leftSquareBracket=ct]="leftSquareBracket";const kt=92;n[n.backslash=kt]="backslash";const Je=93;n[n.rightSquareBracket=Je]="rightSquareBracket";const Tt=94;n[n.caret=Tt]="caret";const Pt=95;n[n.underscore=Pt]="underscore";const Ct=96;n[n.graveAccent=Ct]="graveAccent";const yt=97;n[n.lowercaseA=yt]="lowercaseA";const Kt=98;n[n.lowercaseB=Kt]="lowercaseB";const _t=99;n[n.lowercaseC=_t]="lowercaseC";const sn=100;n[n.lowercaseD=sn]="lowercaseD";const Le=101;n[n.lowercaseE=Le]="lowercaseE";const pt=102;n[n.lowercaseF=pt]="lowercaseF";const Ze=103;n[n.lowercaseG=Ze]="lowercaseG";const nt=104;n[n.lowercaseH=nt]="lowercaseH";const At=105;n[n.lowercaseI=At]="lowercaseI";const Mt=106;n[n.lowercaseJ=Mt]="lowercaseJ";const fn=107;n[n.lowercaseK=fn]="lowercaseK";const Sn=108;n[n.lowercaseL=Sn]="lowercaseL";const or=109;n[n.lowercaseM=or]="lowercaseM";const _n=110;n[n.lowercaseN=_n]="lowercaseN";const Vt=111;n[n.lowercaseO=Vt]="lowercaseO";const zr=112;n[n.lowercaseP=zr]="lowercaseP";const ea=113;n[n.lowercaseQ=ea]="lowercaseQ";const wi=114;n[n.lowercaseR=wi]="lowercaseR";const Hr=115;n[n.lowercaseS=Hr]="lowercaseS";const Wn=116;n[n.lowercaseT=Wn]="lowercaseT";const Dt=117;n[n.lowercaseU=Dt]="lowercaseU";const Fr=118;n[n.lowercaseV=Fr]="lowercaseV";const Hi=119;n[n.lowercaseW=Hi]="lowercaseW";const ta=120;n[n.lowercaseX=ta]="lowercaseX";const si=121;n[n.lowercaseY=si]="lowercaseY";const bi=122;n[n.lowercaseZ=bi]="lowercaseZ";const _i=123;n[n.leftCurlyBrace=_i]="leftCurlyBrace";const Xr=124;n[n.verticalBar=Xr]="verticalBar";const xi=125;n[n.rightCurlyBrace=xi]="rightCurlyBrace";const es=126;n[n.tilde=es]="tilde";const na=160;n[n.nonBreakingSpace=na]="nonBreakingSpace";const ts=5760;n[n.oghamSpaceMark=ts]="oghamSpaceMark";const Ae=8232;n[n.lineSeparator=Ae]="lineSeparator";const Ue=8233;n[n.paragraphSeparator=Ue]="paragraphSeparator"})(Re||(Re={}));let Uw,Kn,sr,I,Lt,KN;function _p(){return KN++}function NV(n){if("pos"in n){const e=RV(n.pos);n.message+=` (${e.line}:${e.column})`,n.loc=e}return n}class DV{constructor(e,t){this.line=e,this.column=t}}function RV(n){let e=1,t=1;for(let r=0;r<n;r++)Lt.charCodeAt(r)===Re.lineFeed?(e++,t=1):t++;return new DV(e,t)}function UV(n,e,t,r){Lt=n,I=new vs,KN=1,Uw=e,Kn=t,sr=r}function tn(n){return I.contextualKeyword===n}function xS(n){const e=Ag();return e.type===p.name&&e.contextualKeyword===n}function Oi(n){return I.contextualKeyword===n&&st(p.name)}function gi(n){Oi(n)||Mn()}function fo(){return me(p.eof)||me(p.braceR)||Cs()}function Cs(){const n=I.tokens[I.tokens.length-1],e=n?n.end:0;for(let t=e;t<I.start;t++){const r=Lt.charCodeAt(t);if(r===Re.lineFeed||r===Re.carriageReturn||r===8232||r===8233)return!0}return!1}function qN(){const n=MS();for(let e=I.end;e<n;e++){const t=Lt.charCodeAt(e);if(t===Re.lineFeed||t===Re.carriageReturn||t===8232||t===8233)return!0}return!1}function qc(){return st(p.semi)||fo()}function jr(){qc()||Mn('Unexpected token, expected ";"')}function ht(n){st(n)||Mn(`Unexpected token, expected "${LV(n)}"`)}function Mn(n="Unexpected token",e=I.start){if(I.error)return;const t=new SyntaxError(n);t.pos=e,I.error=t,I.pos=Lt.length,xn(p.eof)}const XN=[9,11,12,Re.space,Re.nonBreakingSpace,Re.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],TE=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,YN=new Uint8Array(65536);for(const n of XN)YN[n]=1;function OV(n){if(n<48)return n===36;if(n<58)return!0;if(n<65)return!1;if(n<91)return!0;if(n<97)return n===95;if(n<123)return!0;if(n<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const vc=new Uint8Array(65536);for(let n=0;n<128;n++)vc[n]=OV(n)?1:0;for(let n=128;n<65536;n++)vc[n]=1;for(const n of XN)vc[n]=0;vc[8232]=0;vc[8233]=0;const dg=vc.slice();for(let n=Re.digit0;n<=Re.digit9;n++)dg[n]=0;const kE=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,Ce._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,Ce._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,Ce._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,Ce._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,Ce._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._break<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._case<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._catch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,Ce._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,(p._class<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,(p._const<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,Ce._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._continue<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,(p._debugger<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,(p._default<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._delete<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._do<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._else<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,(p._export<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,Ce._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,(p._extends<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._false<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,(p._finally<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,(p._for<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._function<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,Ce._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,(p._if<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,Ce._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,(p._import<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._in<<1)+1,-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,Ce._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._instanceof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,(p._let<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,Ce._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,(p._new<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._null<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,Ce._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,Ce._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,Ce._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._return<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,Ce._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,Ce._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,(p._super<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._switch<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,(p._this<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,(p._throw<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._true<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._try<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._typeof<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,Ce._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,(p._var<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._void<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._while<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._with<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(p._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function HV(){let n=0,e=0,t=I.pos;for(;t<Lt.length&&(e=Lt.charCodeAt(t),!(e<Re.lowercaseA||e>Re.lowercaseZ));){const i=kE[n+(e-Re.lowercaseA)+1];if(i===-1)break;n=i,t++}const r=kE[n];if(r>-1&&!vc[e]){I.pos=t,r&1?xn(r>>>1):xn(p.name,r>>>1);return}for(;t<Lt.length;){const i=Lt.charCodeAt(t);if(vc[i])t++;else if(i===Re.backslash){if(t+=2,Lt.charCodeAt(t)===Re.leftCurlyBrace){for(;t<Lt.length&&Lt.charCodeAt(t)!==Re.rightCurlyBrace;)t++;t++}}else if(i===Re.atSign&&Lt.charCodeAt(t+1)===Re.atSign)t+=2;else break}I.pos=t,xn(p.name)}var An;(function(n){n[n.Access=0]="Access";const t=1;n[n.ExportAccess=t]="ExportAccess";const r=t+1;n[n.TopLevelDeclaration=r]="TopLevelDeclaration";const i=r+1;n[n.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const a=i+1;n[n.BlockScopedDeclaration=a]="BlockScopedDeclaration";const s=a+1;n[n.ObjectShorthandTopLevelDeclaration=s]="ObjectShorthandTopLevelDeclaration";const o=s+1;n[n.ObjectShorthandFunctionScopedDeclaration=o]="ObjectShorthandFunctionScopedDeclaration";const c=o+1;n[n.ObjectShorthandBlockScopedDeclaration=c]="ObjectShorthandBlockScopedDeclaration";const l=c+1;n[n.ObjectShorthand=l]="ObjectShorthand";const u=l+1;n[n.ImportDeclaration=u]="ImportDeclaration";const A=u+1;n[n.ObjectKey=A]="ObjectKey";const f=A+1;n[n.ImportAccess=f]="ImportAccess"})(An||(An={}));var pc;(function(n){n[n.NoChildren=0]="NoChildren";const t=1;n[n.OneChild=t]="OneChild";const r=t+1;n[n.StaticChildren=r]="StaticChildren";const i=r+1;n[n.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(pc||(pc={}));function JN(n){const e=n.identifierRole;return e===An.TopLevelDeclaration||e===An.FunctionScopedDeclaration||e===An.BlockScopedDeclaration||e===An.ObjectShorthandTopLevelDeclaration||e===An.ObjectShorthandFunctionScopedDeclaration||e===An.ObjectShorthandBlockScopedDeclaration}function WV(n){const e=n.identifierRole;return e===An.FunctionScopedDeclaration||e===An.BlockScopedDeclaration||e===An.ObjectShorthandFunctionScopedDeclaration||e===An.ObjectShorthandBlockScopedDeclaration}function ZN(n){const e=n.identifierRole;return e===An.TopLevelDeclaration||e===An.ObjectShorthandTopLevelDeclaration||e===An.ImportDeclaration}function QV(n){const e=n.identifierRole;return e===An.TopLevelDeclaration||e===An.BlockScopedDeclaration||e===An.ObjectShorthandTopLevelDeclaration||e===An.ObjectShorthandBlockScopedDeclaration}function $V(n){const e=n.identifierRole;return e===An.FunctionScopedDeclaration||e===An.ObjectShorthandFunctionScopedDeclaration}function jV(n){return n.identifierRole===An.ObjectShorthandTopLevelDeclaration||n.identifierRole===An.ObjectShorthandBlockScopedDeclaration||n.identifierRole===An.ObjectShorthandFunctionScopedDeclaration}class Ow{constructor(){this.type=I.type,this.contextualKeyword=I.contextualKeyword,this.start=I.start,this.end=I.end,this.scopeDepth=I.scopeDepth,this.isType=I.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function ft(){I.tokens.push(new Ow),r3()}function Nu(){I.tokens.push(new Ow),I.start=I.pos,o7()}function zV(){I.type===p.assign&&--I.pos,i7()}function kn(n){for(let t=I.tokens.length-n;t<I.tokens.length;t++)I.tokens[t].isType=!0;const e=I.isType;return I.isType=!0,e}function En(n){I.isType=n}function st(n){return me(n)?(ft(),!0):!1}function e3(n){const e=I.isType;I.isType=!0,st(n),I.isType=e}function me(n){return I.type===n}function ni(){const n=I.snapshot();ft();const e=I.type;return I.restoreFromSnapshot(n),e}class VV{constructor(e,t){this.type=e,this.contextualKeyword=t}}function Ag(){const n=I.snapshot();ft();const e=I.type,t=I.contextualKeyword;return I.restoreFromSnapshot(n),new VV(e,t)}function MS(){return t3(I.pos)}function t3(n){TE.lastIndex=n;const e=TE.exec(Lt);return n+e[0].length}function n3(){return Lt.charCodeAt(MS())}function r3(){if(a3(),I.start=I.pos,I.pos>=Lt.length){const n=I.tokens;n.length>=2&&n[n.length-1].start>=Lt.length&&n[n.length-2].start>=Lt.length&&Mn("Unexpectedly reached the end of input."),xn(p.eof);return}GV(Lt.charCodeAt(I.pos))}function GV(n){dg[n]||n===Re.backslash||n===Re.atSign&&Lt.charCodeAt(I.pos+1)===Re.atSign?HV():c3(n)}function KV(){for(;Lt.charCodeAt(I.pos)!==Re.asterisk||Lt.charCodeAt(I.pos+1)!==Re.slash;)if(I.pos++,I.pos>Lt.length){Mn("Unterminated comment",I.pos-2);return}I.pos+=2}function i3(n){let e=Lt.charCodeAt(I.pos+=n);if(I.pos<Lt.length)for(;e!==Re.lineFeed&&e!==Re.carriageReturn&&e!==Re.lineSeparator&&e!==Re.paragraphSeparator&&++I.pos<Lt.length;)e=Lt.charCodeAt(I.pos)}function a3(){for(;I.pos<Lt.length;){const n=Lt.charCodeAt(I.pos);switch(n){case Re.carriageReturn:Lt.charCodeAt(I.pos+1)===Re.lineFeed&&++I.pos;case Re.lineFeed:case Re.lineSeparator:case Re.paragraphSeparator:++I.pos;break;case Re.slash:switch(Lt.charCodeAt(I.pos+1)){case Re.asterisk:I.pos+=2,KV();break;case Re.slash:i3(2);break;default:return}break;default:if(YN[n])++I.pos;else return}}}function xn(n,e=Ce.NONE){I.end=I.pos,I.type=n,I.contextualKeyword=e}function qV(){const n=Lt.charCodeAt(I.pos+1);if(n>=Re.digit0&&n<=Re.digit9){l3(!0);return}n===Re.dot&&Lt.charCodeAt(I.pos+2)===Re.dot?(I.pos+=3,xn(p.ellipsis)):(++I.pos,xn(p.dot))}function XV(){Lt.charCodeAt(I.pos+1)===Re.equalsTo?lr(p.assign,2):lr(p.slash,1)}function YV(n){let e=n===Re.asterisk?p.star:p.modulo,t=1,r=Lt.charCodeAt(I.pos+1);n===Re.asterisk&&r===Re.asterisk&&(t++,r=Lt.charCodeAt(I.pos+2),e=p.exponent),r===Re.equalsTo&&Lt.charCodeAt(I.pos+2)!==Re.greaterThan&&(t++,e=p.assign),lr(e,t)}function JV(n){const e=Lt.charCodeAt(I.pos+1);if(e===n){Lt.charCodeAt(I.pos+2)===Re.equalsTo?lr(p.assign,3):lr(n===Re.verticalBar?p.logicalOR:p.logicalAND,2);return}if(n===Re.verticalBar){if(e===Re.greaterThan){lr(p.pipeline,2);return}else if(e===Re.rightCurlyBrace&&sr){lr(p.braceBarR,2);return}}if(e===Re.equalsTo){lr(p.assign,2);return}lr(n===Re.verticalBar?p.bitwiseOR:p.bitwiseAND,1)}function ZV(){Lt.charCodeAt(I.pos+1)===Re.equalsTo?lr(p.assign,2):lr(p.bitwiseXOR,1)}function e7(n){const e=Lt.charCodeAt(I.pos+1);if(e===n){lr(p.preIncDec,2);return}e===Re.equalsTo?lr(p.assign,2):n===Re.plusSign?lr(p.plus,1):lr(p.minus,1)}function t7(){const n=Lt.charCodeAt(I.pos+1);if(n===Re.lessThan){if(Lt.charCodeAt(I.pos+2)===Re.equalsTo){lr(p.assign,3);return}I.isType?lr(p.lessThan,1):lr(p.bitShiftL,2);return}n===Re.equalsTo?lr(p.relationalOrEqual,2):lr(p.lessThan,1)}function s3(){if(I.isType){lr(p.greaterThan,1);return}const n=Lt.charCodeAt(I.pos+1);if(n===Re.greaterThan){const e=Lt.charCodeAt(I.pos+2)===Re.greaterThan?3:2;if(Lt.charCodeAt(I.pos+e)===Re.equalsTo){lr(p.assign,e+1);return}lr(p.bitShiftR,e);return}n===Re.equalsTo?lr(p.relationalOrEqual,2):lr(p.greaterThan,1)}function o3(){I.type===p.greaterThan&&(I.pos-=1,s3())}function n7(n){const e=Lt.charCodeAt(I.pos+1);if(e===Re.equalsTo){lr(p.equality,Lt.charCodeAt(I.pos+2)===Re.equalsTo?3:2);return}if(n===Re.equalsTo&&e===Re.greaterThan){I.pos+=2,xn(p.arrow);return}lr(n===Re.equalsTo?p.eq:p.bang,1)}function r7(){const n=Lt.charCodeAt(I.pos+1),e=Lt.charCodeAt(I.pos+2);n===Re.questionMark&&!(sr&&I.isType)?e===Re.equalsTo?lr(p.assign,3):lr(p.nullishCoalescing,2):n===Re.dot&&!(e>=Re.digit0&&e<=Re.digit9)?(I.pos+=2,xn(p.questionDot)):(++I.pos,xn(p.question))}function c3(n){switch(n){case Re.numberSign:++I.pos,xn(p.hash);return;case Re.dot:qV();return;case Re.leftParenthesis:++I.pos,xn(p.parenL);return;case Re.rightParenthesis:++I.pos,xn(p.parenR);return;case Re.semicolon:++I.pos,xn(p.semi);return;case Re.comma:++I.pos,xn(p.comma);return;case Re.leftSquareBracket:++I.pos,xn(p.bracketL);return;case Re.rightSquareBracket:++I.pos,xn(p.bracketR);return;case Re.leftCurlyBrace:sr&&Lt.charCodeAt(I.pos+1)===Re.verticalBar?lr(p.braceBarL,2):(++I.pos,xn(p.braceL));return;case Re.rightCurlyBrace:++I.pos,xn(p.braceR);return;case Re.colon:Lt.charCodeAt(I.pos+1)===Re.colon?lr(p.doubleColon,2):(++I.pos,xn(p.colon));return;case Re.questionMark:r7();return;case Re.atSign:++I.pos,xn(p.at);return;case Re.graveAccent:++I.pos,xn(p.backQuote);return;case Re.digit0:{const e=Lt.charCodeAt(I.pos+1);if(e===Re.lowercaseX||e===Re.uppercaseX||e===Re.lowercaseO||e===Re.uppercaseO||e===Re.lowercaseB||e===Re.uppercaseB){a7();return}}case Re.digit1:case Re.digit2:case Re.digit3:case Re.digit4:case Re.digit5:case Re.digit6:case Re.digit7:case Re.digit8:case Re.digit9:l3(!1);return;case Re.quotationMark:case Re.apostrophe:s7(n);return;case Re.slash:XV();return;case Re.percentSign:case Re.asterisk:YV(n);return;case Re.verticalBar:case Re.ampersand:JV(n);return;case Re.caret:ZV();return;case Re.plusSign:case Re.dash:e7(n);return;case Re.lessThan:t7();return;case Re.greaterThan:s3();return;case Re.equalsTo:case Re.exclamationMark:n7(n);return;case Re.tilde:lr(p.tilde,1);return}Mn(`Unexpected character '${String.fromCharCode(n)}'`,I.pos)}function lr(n,e){I.pos+=e,xn(n)}function i7(){const n=I.pos;let e=!1,t=!1;for(;;){if(I.pos>=Lt.length){Mn("Unterminated regular expression",n);return}const r=Lt.charCodeAt(I.pos);if(e)e=!1;else{if(r===Re.leftSquareBracket)t=!0;else if(r===Re.rightSquareBracket&&t)t=!1;else if(r===Re.slash&&!t)break;e=r===Re.backslash}++I.pos}++I.pos,c7(),xn(p.regexp)}function f0(){for(;;){const n=Lt.charCodeAt(I.pos);if(n>=Re.digit0&&n<=Re.digit9||n===Re.underscore)I.pos++;else break}}function a7(){for(I.pos+=2;;){const e=Lt.charCodeAt(I.pos);if(e>=Re.digit0&&e<=Re.digit9||e>=Re.lowercaseA&&e<=Re.lowercaseF||e>=Re.uppercaseA&&e<=Re.uppercaseF||e===Re.underscore)I.pos++;else break}Lt.charCodeAt(I.pos)===Re.lowercaseN?(++I.pos,xn(p.bigint)):xn(p.num)}function l3(n){let e=!1,t=!1;n||f0();let r=Lt.charCodeAt(I.pos);if(r===Re.dot&&(++I.pos,f0(),r=Lt.charCodeAt(I.pos)),(r===Re.uppercaseE||r===Re.lowercaseE)&&(r=Lt.charCodeAt(++I.pos),(r===Re.plusSign||r===Re.dash)&&++I.pos,f0(),r=Lt.charCodeAt(I.pos)),r===Re.lowercaseN?(++I.pos,e=!0):r===Re.lowercaseM&&(++I.pos,t=!0),e){xn(p.bigint);return}if(t){xn(p.decimal);return}xn(p.num)}function s7(n){for(I.pos++;;){if(I.pos>=Lt.length){Mn("Unterminated string constant");return}const e=Lt.charCodeAt(I.pos);if(e===Re.backslash)I.pos++;else if(e===n)break;I.pos++}I.pos++,xn(p.string)}function o7(){for(;;){if(I.pos>=Lt.length){Mn("Unterminated template");return}const n=Lt.charCodeAt(I.pos);if(n===Re.graveAccent||n===Re.dollarSign&&Lt.charCodeAt(I.pos+1)===Re.leftCurlyBrace){if(I.pos===I.start&&me(p.template))if(n===Re.dollarSign){I.pos+=2,xn(p.dollarBraceL);return}else{++I.pos,xn(p.backQuote);return}xn(p.template);return}n===Re.backslash&&I.pos++,I.pos++}}function c7(){for(;I.pos<Lt.length;){const n=Lt.charCodeAt(I.pos);if(vc[n])I.pos++;else if(n===Re.backslash){if(I.pos+=2,Lt.charCodeAt(I.pos)===Re.leftCurlyBrace){for(;I.pos<Lt.length&&Lt.charCodeAt(I.pos)!==Re.rightCurlyBrace;)I.pos++;I.pos++}}else break}}function xp(n,e=n.currentIndex()){let t=e+1;if(r1(n,t)){const r=n.identifierNameAtIndex(e);return{isType:!1,leftName:r,rightName:r,endIndex:t}}if(t++,r1(n,t))return{isType:!0,leftName:null,rightName:null,endIndex:t};if(t++,r1(n,t))return{isType:!1,leftName:n.identifierNameAtIndex(e),rightName:n.identifierNameAtIndex(e+2),endIndex:t};if(t++,r1(n,t))return{isType:!0,leftName:null,rightName:null,endIndex:t};throw new Error(`Unexpected import/export specifier at ${e}`)}function r1(n,e){const t=n.tokens[e];return t.type===p.braceR||t.type===p.comma}const l7=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy","­"],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["OElig","Œ"],["oelig","œ"],["Scaron","Š"],["scaron","š"],["Yuml","Ÿ"],["fnof","ƒ"],["circ","ˆ"],["tilde","˜"],["Alpha","Α"],["Beta","Β"],["Gamma","Γ"],["Delta","Δ"],["Epsilon","Ε"],["Zeta","Ζ"],["Eta","Η"],["Theta","Θ"],["Iota","Ι"],["Kappa","Κ"],["Lambda","Λ"],["Mu","Μ"],["Nu","Ν"],["Xi","Ξ"],["Omicron","Ο"],["Pi","Π"],["Rho","Ρ"],["Sigma","Σ"],["Tau","Τ"],["Upsilon","Υ"],["Phi","Φ"],["Chi","Χ"],["Psi","Ψ"],["Omega","Ω"],["alpha","α"],["beta","β"],["gamma","γ"],["delta","δ"],["epsilon","ε"],["zeta","ζ"],["eta","η"],["theta","θ"],["iota","ι"],["kappa","κ"],["lambda","λ"],["mu","μ"],["nu","ν"],["xi","ξ"],["omicron","ο"],["pi","π"],["rho","ρ"],["sigmaf","ς"],["sigma","σ"],["tau","τ"],["upsilon","υ"],["phi","φ"],["chi","χ"],["psi","ψ"],["omega","ω"],["thetasym","ϑ"],["upsih","ϒ"],["piv","ϖ"],["ensp"," "],["emsp"," "],["thinsp"," "],["zwnj","‌"],["zwj","‍"],["lrm","‎"],["rlm","‏"],["ndash","–"],["mdash","—"],["lsquo","‘"],["rsquo","’"],["sbquo","‚"],["ldquo","“"],["rdquo","”"],["bdquo","„"],["dagger","†"],["Dagger","‡"],["bull","•"],["hellip","…"],["permil","‰"],["prime","′"],["Prime","″"],["lsaquo","‹"],["rsaquo","›"],["oline","‾"],["frasl","⁄"],["euro","€"],["image","ℑ"],["weierp","℘"],["real","ℜ"],["trade","™"],["alefsym","ℵ"],["larr","←"],["uarr","↑"],["rarr","→"],["darr","↓"],["harr","↔"],["crarr","↵"],["lArr","⇐"],["uArr","⇑"],["rArr","⇒"],["dArr","⇓"],["hArr","⇔"],["forall","∀"],["part","∂"],["exist","∃"],["empty","∅"],["nabla","∇"],["isin","∈"],["notin","∉"],["ni","∋"],["prod","∏"],["sum","∑"],["minus","−"],["lowast","∗"],["radic","√"],["prop","∝"],["infin","∞"],["ang","∠"],["and","∧"],["or","∨"],["cap","∩"],["cup","∪"],["int","∫"],["there4","∴"],["sim","∼"],["cong","≅"],["asymp","≈"],["ne","≠"],["equiv","≡"],["le","≤"],["ge","≥"],["sub","⊂"],["sup","⊃"],["nsub","⊄"],["sube","⊆"],["supe","⊇"],["oplus","⊕"],["otimes","⊗"],["perp","⊥"],["sdot","⋅"],["lceil","⌈"],["rceil","⌉"],["lfloor","⌊"],["rfloor","⌋"],["lang","〈"],["rang","〉"],["loz","◊"],["spades","♠"],["clubs","♣"],["hearts","♥"],["diams","♦"]]);function u3(n){const[e,t]=IE(n.jsxPragma||"React.createElement"),[r,i]=IE(n.jsxFragmentPragma||"React.Fragment");return{base:e,suffix:t,fragmentBase:r,fragmentSuffix:i}}function IE(n){let e=n.indexOf(".");return e===-1&&(e=n.length),[n.slice(0,e),n.slice(e)]}class xc{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class jd extends xc{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(e,t,r,i,a){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=r,this.nameManager=i,this.options=a,jd.prototype.__init.call(this),jd.prototype.__init2.call(this),jd.prototype.__init3.call(this),jd.prototype.__init4.call(this),jd.prototype.__init5.call(this),this.jsxPragmaInfo=u3(a),this.isAutomaticRuntime=a.jsxRuntime==="automatic",this.jsxImportSource=a.jsxImportSource||"react"}process(){return this.tokens.matches1(p.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let e="";if(this.filenameVarName&&(e+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[t,r]of Object.entries(this.cjsAutomaticModuleNameResolutions))e+=`var ${r} = require("${t}");`;else{const{createElement:t,...r}=this.esmAutomaticImportNameResolutions;t&&(e+=`import {createElement as ${t}} from "${this.jsxImportSource}";`);const i=Object.entries(r).map(([a,s])=>`${a} as ${s}`).join(", ");if(i){const a=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");e+=`import {${i}} from "${a}";`}}return e}processJSXTag(){const{jsxRole:e,start:t}=this.tokens.currentToken(),r=this.options.production?null:this.getElementLocationCode(t);this.isAutomaticRuntime&&e!==pc.KeyAfterPropSpread?this.transformTagToJSXFunc(r,e):this.transformTagToCreateElement(r)}getElementLocationCode(e){return`lineNumber: ${this.getLineNumberForIndex(e)}`}getLineNumberForIndex(e){const t=this.tokens.code;for(;this.lastIndex<e&&this.lastIndex<t.length;)t[this.lastIndex]===`
`&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(e,t){const r=t===pc.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(r));let i=null;if(this.tokens.matches1(p.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(t);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),i=this.processProps(!0),this.tokens.matches2(p.slash,p.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(p.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(t);else throw new Error("Expected either /> or > at the end of the tag.");i&&this.tokens.appendCode(`, ${i}`)}for(this.options.production||(i===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${r}, ${this.getDevSource(e)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(p.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(e){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(p.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(e),!this.tokens.matches2(p.slash,p.jsxTagEnd))if(this.tokens.matches1(p.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(p.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(e){return this.options.production?e?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:e}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.base)||e.base}${e.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:e}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(e.fragmentBase)||e.fragmentBase)+e.fragmentSuffix}}claimAutoImportedFuncInvocation(e,t){const r=this.claimAutoImportedName(e,t);return this.importProcessor?`${r}.call(void 0, `:`${r}(`}claimAutoImportedName(e,t){if(this.importProcessor){const r=this.jsxImportSource+t;return this.cjsAutomaticModuleNameResolutions[r]||(this.cjsAutomaticModuleNameResolutions[r]=this.importProcessor.getFreeIdentifierForPath(r)),`${this.cjsAutomaticModuleNameResolutions[r]}.${e}`}else return this.esmAutomaticImportNameResolutions[e]||(this.esmAutomaticImportNameResolutions[e]=this.nameManager.claimFreeName(`_${e}`)),this.esmAutomaticImportNameResolutions[e]}processTagIntro(){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType||!this.tokens.matches2AtIndex(e-1,p.jsxName,p.jsxName)&&!this.tokens.matches2AtIndex(e-1,p.greaterThan,p.jsxName)&&!this.tokens.matches1AtIndex(e,p.braceL)&&!this.tokens.matches1AtIndex(e,p.jsxTagEnd)&&!this.tokens.matches2AtIndex(e,p.slash,p.jsxTagEnd);)e++;if(e===this.tokens.currentIndex()+1){const t=this.tokens.identifierName();d3(t)&&this.tokens.replaceToken(`'${t}'`)}for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(e){const t=this.options.production?"":`__self: this, __source: ${this.getDevSource(e)}`;if(!this.tokens.matches1(p.jsxName)&&!this.tokens.matches1(p.braceL)){t?this.tokens.appendCode(`, {${t}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),t?this.tokens.appendCode(` ${t}}`):this.tokens.appendCode("}")}processProps(e){let t=null;for(;;){if(this.tokens.matches2(p.jsxName,p.eq)){const r=this.tokens.identifierName();if(e&&r==="key"){t!==null&&this.tokens.appendCode(t.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const i=this.tokens.snapshot();this.processPropValue(),t=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(i);continue}else this.processPropName(r),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(p.jsxName)){const r=this.tokens.identifierName();this.processPropName(r),this.tokens.appendCode(": true")}else if(this.tokens.matches1(p.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return t}processPropName(e){e.includes("-")?this.tokens.replaceToken(`'${e}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(p.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(p.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const e=this.tokens.currentToken(),t=this.tokens.code.slice(e.start+1,e.end-1),r=LE(t),i=d7(t);this.tokens.replaceToken(i+r)}processAutomaticChildrenAndEndProps(e){e===pc.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(e===pc.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(e){let t=e;for(;;){if(this.tokens.matches2(p.jsxTagStart,p.slash))return;let r=!1;if(this.tokens.matches1(p.braceL))this.tokens.matches2(p.braceL,p.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(t?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),r=!0);else if(this.tokens.matches1(p.jsxTagStart))this.tokens.appendCode(t?", ":""),this.processJSXTag(),r=!0;else if(this.tokens.matches1(p.jsxText)||this.tokens.matches1(p.jsxEmptyText))r=this.processChildTextElement(t);else throw new Error("Unexpected token when processing JSX children.");r&&(t=!0)}}processChildTextElement(e){const t=this.tokens.currentToken(),r=this.tokens.code.slice(t.start,t.end),i=LE(r),a=u7(r);return a==='""'?(this.tokens.replaceToken(i),!1):(this.tokens.replaceToken(`${e?", ":""}${a}${i}`),!0)}getDevSource(e){return`{fileName: ${this.getFilenameVarName()}, ${e}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function d3(n){const e=n.charCodeAt(0);return e>=Re.lowercaseA&&e<=Re.lowercaseZ}function u7(n){let e="",t="",r=!1,i=!1;for(let a=0;a<n.length;a++){const s=n[a];if(s===" "||s==="	"||s==="\r")r||(t+=s);else if(s===`
`)t="",r=!0;else{if(i&&r&&(e+=" "),e+=t,t="",s==="&"){const{entity:o,newI:c}=A3(n,a+1);a=c-1,e+=o}else e+=s;i=!0,r=!1}}return r||(e+=t),JSON.stringify(e)}function LE(n){let e=0,t=0;for(const r of n)r===`
`?(e++,t=0):r===" "&&t++;return`
`.repeat(e)+" ".repeat(t)}function d7(n){let e="";for(let t=0;t<n.length;t++){const r=n[t];if(r===`
`)if(/\s/.test(n[t+1]))for(e+=" ";t<n.length&&/\s/.test(n[t+1]);)t++;else e+=`
`;else if(r==="&"){const{entity:i,newI:a}=A3(n,t+1);e+=i,t=a-1}else e+=r}return JSON.stringify(e)}function A3(n,e){let t="",r=0,i,a=e;if(n[a]==="#"){let s=10;a++;let o;if(n[a]==="x")for(s=16,a++,o=a;a<n.length&&h7(n.charCodeAt(a));)a++;else for(o=a;a<n.length&&A7(n.charCodeAt(a));)a++;if(n[a]===";"){const c=n.slice(o,a);c&&(a++,i=String.fromCodePoint(parseInt(c,s)))}}else for(;a<n.length&&r++<10;){const s=n[a];if(a++,s===";"){i=l7.get(t);break}t+=s}return i?{entity:i,newI:a}:{entity:"&",newI:e}}function A7(n){return n>=Re.digit0&&n<=Re.digit9}function h7(n){return n>=Re.digit0&&n<=Re.digit9||n>=Re.lowercaseA&&n<=Re.lowercaseF||n>=Re.uppercaseA&&n<=Re.uppercaseF}function h3(n,e){const t=u3(e),r=new Set;for(let i=0;i<n.tokens.length;i++){const a=n.tokens[i];if(a.type===p.name&&!a.isType&&(a.identifierRole===An.Access||a.identifierRole===An.ObjectShorthand||a.identifierRole===An.ExportAccess)&&!a.shadowsGlobal&&r.add(n.identifierNameForToken(a)),a.type===p.jsxTagStart&&r.add(t.base),a.type===p.jsxTagStart&&i+1<n.tokens.length&&n.tokens[i+1].type===p.jsxTagEnd&&(r.add(t.base),r.add(t.fragmentBase)),a.type===p.jsxName&&a.identifierRole===An.Access){const s=n.identifierNameForToken(a);(!d3(s)||n.tokens[i+1].type===p.dot)&&r.add(n.identifierNameForToken(a))}}return r}class zd{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(e,t,r,i,a,s,o){this.nameManager=e,this.tokens=t,this.enableLegacyTypeScriptModuleInterop=r,this.options=i,this.isTypeScriptTransformEnabled=a,this.keepUnusedImports=s,this.helperManager=o,zd.prototype.__init.call(this),zd.prototype.__init2.call(this),zd.prototype.__init3.call(this),zd.prototype.__init4.call(this),zd.prototype.__init5.call(this)}preprocessTokens(){for(let e=0;e<this.tokens.tokens.length;e++)this.tokens.matches1AtIndex(e,p._import)&&!this.tokens.matches3AtIndex(e,p._import,p.name,p.eq)&&this.preprocessImportAtIndex(e),this.tokens.matches1AtIndex(e,p._export)&&!this.tokens.matches2AtIndex(e,p._export,p.eq)&&this.preprocessExportAtIndex(e);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=h3(this.tokens,this.options);for(const[e,t]of this.importInfoByPath.entries()){if(t.hasBareImport||t.hasStarExport||t.exportStarNames.length>0||t.namedExports.length>0)continue;[...t.defaultNames,...t.wildcardNames,...t.namedImports.map(({localName:i})=>i)].every(i=>this.shouldAutomaticallyElideImportedName(i))&&this.importsToReplace.set(e,"")}}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}generateImportReplacements(){for(const[e,t]of this.importInfoByPath.entries()){const{defaultNames:r,wildcardNames:i,namedImports:a,namedExports:s,exportStarNames:o,hasStarExport:c}=t;if(r.length===0&&i.length===0&&a.length===0&&s.length===0&&o.length===0&&!c){this.importsToReplace.set(e,`require('${e}');`);continue}const l=this.getFreeIdentifierForPath(e);let u;this.enableLegacyTypeScriptModuleInterop?u=l:u=i.length>0?i[0]:this.getFreeIdentifierForPath(e);let A=`var ${l} = require('${e}');`;if(i.length>0)for(const f of i){const h=this.enableLegacyTypeScriptModuleInterop?l:`${this.helperManager.getHelperName("interopRequireWildcard")}(${l})`;A+=` var ${f} = ${h};`}else o.length>0&&u!==l?A+=` var ${u} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${l});`:r.length>0&&u!==l&&(A+=` var ${u} = ${this.helperManager.getHelperName("interopRequireDefault")}(${l});`);for(const{importedName:f,localName:h}of s)A+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${l}, '${h}', '${f}');`;for(const f of o)A+=` exports.${f} = ${u};`;c&&(A+=` ${this.helperManager.getHelperName("createStarExport")}(${l});`),this.importsToReplace.set(e,A);for(const f of r)this.identifierReplacements.set(f,`${u}.default`);for(const{importedName:f,localName:h}of a)this.identifierReplacements.set(h,`${l}.${f}`)}}getFreeIdentifierForPath(e){const t=e.split("/"),i=t[t.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${i}`)}preprocessImportAtIndex(e){const t=[],r=[],i=[];if(e++,(this.tokens.matchesContextualAtIndex(e,Ce._type)||this.tokens.matches1AtIndex(e,p._typeof))&&!this.tokens.matches1AtIndex(e+1,p.comma)&&!this.tokens.matchesContextualAtIndex(e+1,Ce._from)||this.tokens.matches1AtIndex(e,p.parenL))return;if(this.tokens.matches1AtIndex(e,p.name)&&(t.push(this.tokens.identifierNameAtIndex(e)),e++,this.tokens.matches1AtIndex(e,p.comma)&&e++),this.tokens.matches1AtIndex(e,p.star)&&(e+=2,r.push(this.tokens.identifierNameAtIndex(e)),e++),this.tokens.matches1AtIndex(e,p.braceL)){const o=this.getNamedImports(e+1);e=o.newIndex;for(const c of o.namedImports)c.importedName==="default"?t.push(c.localName):i.push(c)}if(this.tokens.matchesContextualAtIndex(e,Ce._from)&&e++,!this.tokens.matches1AtIndex(e,p.string))throw new Error("Expected string token at the end of import statement.");const a=this.tokens.stringValueAtIndex(e),s=this.getImportInfo(a);s.defaultNames.push(...t),s.wildcardNames.push(...r),s.namedImports.push(...i),t.length===0&&r.length===0&&i.length===0&&(s.hasBareImport=!0)}preprocessExportAtIndex(e){if(this.tokens.matches2AtIndex(e,p._export,p._var)||this.tokens.matches2AtIndex(e,p._export,p._let)||this.tokens.matches2AtIndex(e,p._export,p._const))this.preprocessVarExportAtIndex(e);else if(this.tokens.matches2AtIndex(e,p._export,p._function)||this.tokens.matches2AtIndex(e,p._export,p._class)){const t=this.tokens.identifierNameAtIndex(e+2);this.addExportBinding(t,t)}else if(this.tokens.matches3AtIndex(e,p._export,p.name,p._function)){const t=this.tokens.identifierNameAtIndex(e+3);this.addExportBinding(t,t)}else this.tokens.matches2AtIndex(e,p._export,p.braceL)?this.preprocessNamedExportAtIndex(e):this.tokens.matches2AtIndex(e,p._export,p.star)&&this.preprocessExportStarAtIndex(e)}preprocessVarExportAtIndex(e){let t=0;for(let r=e+2;;r++)if(this.tokens.matches1AtIndex(r,p.braceL)||this.tokens.matches1AtIndex(r,p.dollarBraceL)||this.tokens.matches1AtIndex(r,p.bracketL))t++;else if(this.tokens.matches1AtIndex(r,p.braceR)||this.tokens.matches1AtIndex(r,p.bracketR))t--;else{if(t===0&&!this.tokens.matches1AtIndex(r,p.name))break;if(this.tokens.matches1AtIndex(1,p.eq)){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected = token with an end index.");r=i-1}else{const i=this.tokens.tokens[r];if(JN(i)){const a=this.tokens.identifierNameAtIndex(r);this.identifierReplacements.set(a,`exports.${a}`)}}}}preprocessNamedExportAtIndex(e){e+=2;const{newIndex:t,namedImports:r}=this.getNamedImports(e);if(e=t,this.tokens.matchesContextualAtIndex(e,Ce._from))e++;else{for(const{importedName:s,localName:o}of r)this.addExportBinding(s,o);return}if(!this.tokens.matches1AtIndex(e,p.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(e);this.getImportInfo(i).namedExports.push(...r)}preprocessExportStarAtIndex(e){let t=null;if(this.tokens.matches3AtIndex(e,p._export,p.star,p._as)?(e+=3,t=this.tokens.identifierNameAtIndex(e),e+=2):e+=3,!this.tokens.matches1AtIndex(e,p.string))throw new Error("Expected string token at the end of star export statement.");const r=this.tokens.stringValueAtIndex(e),i=this.getImportInfo(r);t!==null?i.exportStarNames.push(t):i.hasStarExport=!0}getNamedImports(e){const t=[];for(;;){if(this.tokens.matches1AtIndex(e,p.braceR)){e++;break}const r=xp(this.tokens,e);if(e=r.endIndex,r.isType||t.push({importedName:r.leftName,localName:r.rightName}),this.tokens.matches2AtIndex(e,p.comma,p.braceR)){e+=2;break}else if(this.tokens.matches1AtIndex(e,p.braceR)){e++;break}else if(this.tokens.matches1AtIndex(e,p.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[e])}`)}return{newIndex:e,namedImports:t}}getImportInfo(e){const t=this.importInfoByPath.get(e);if(t)return t;const r={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(e,r),r}addExportBinding(e,t){this.exportBindingsByLocalName.has(e)||this.exportBindingsByLocalName.set(e,[]),this.exportBindingsByLocalName.get(e).push(t)}claimImportCode(e){const t=this.importsToReplace.get(e);return this.importsToReplace.set(e,""),t||""}getIdentifierReplacement(e){return this.identifierReplacements.get(e)||null}resolveExportBinding(e){const t=this.exportBindingsByLocalName.get(e);return!t||t.length===0?null:t.map(r=>`exports.${r}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var f7=44,m7=59,FE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f3=new Uint8Array(64),p7=new Uint8Array(128);for(let n=0;n<FE.length;n++){const e=FE.charCodeAt(n);f3[n]=e,p7[e]=n}function tm(n,e,t){let r=e-t;r=r<0?-r<<1|1:r<<1;do{let i=r&31;r>>>=5,r>0&&(i|=32),n.write(f3[i])}while(r>0);return e}var NE=1024*16,DE=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(n){return Buffer.from(n.buffer,n.byteOffset,n.byteLength).toString()}}:{decode(n){let e="";for(let t=0;t<n.length;t++)e+=String.fromCharCode(n[t]);return e}},g7=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(NE)}write(n){const{buffer:e}=this;e[this.pos++]=n,this.pos===NE&&(this.out+=DE.decode(e),this.pos=0)}flush(){const{buffer:n,out:e,pos:t}=this;return t>0?e+DE.decode(n.subarray(0,t)):e}};function v7(n){const e=new g7;let t=0,r=0,i=0,a=0;for(let s=0;s<n.length;s++){const o=n[s];if(s>0&&e.write(m7),o.length===0)continue;let c=0;for(let l=0;l<o.length;l++){const u=o[l];l>0&&e.write(f7),c=tm(e,u[0],c),u.length!==1&&(t=tm(e,u[1],t),r=tm(e,u[2],r),i=tm(e,u[3],i),u.length!==4&&(a=tm(e,u[4],a)))}}return e.flush()}X6();var m0=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function y7(n,e){return n._indexes[e]}function w7(n,e){const t=y7(n,e);if(t!==void 0)return t;const{array:r,_indexes:i}=n,a=r.push(e);return i[e]=a-1}var b7=0,_7=1,x7=2,M7=3,S7=4,m3=-1,C7=class{constructor({file:n,sourceRoot:e}={}){this._names=new m0,this._sources=new m0,this._sourcesContent=[],this._mappings=[],this.file=n,this.sourceRoot=e,this._ignoreList=new m0}};var p0=(n,e,t,r,i,a,s,o)=>B7(!0,n,e,t,r,i,a);function P7(n){const{_mappings:e,_sources:t,_sourcesContent:r,_names:i,_ignoreList:a}=n;return I7(e),{version:3,file:n.file||void 0,names:i.array,sourceRoot:n.sourceRoot||void 0,sources:t.array,sourcesContent:r,mappings:e,ignoreList:a.array}}function E7(n){const e=P7(n);return Object.assign({},e,{mappings:v7(e.mappings)})}function B7(n,e,t,r,i,a,s,o,c){const{_mappings:l,_sources:u,_sourcesContent:A,_names:f}=e,h=T7(l,t),g=k7(h,r);if(!i)return L7(h,g)?void 0:RE(h,g,[r]);const y=w7(u,i),w=m3;if(y===A.length&&(A[y]=null),!F7(h,g,y,a,s,w))return RE(h,g,[r,y,a,s])}function T7(n,e){for(let t=n.length;t<=e;t++)n[t]=[];return n[e]}function k7(n,e){let t=n.length;for(let r=t-1;r>=0;t=r--){const i=n[r];if(e>=i[b7])break}return t}function RE(n,e,t){for(let r=n.length;r>e;r--)n[r]=n[r-1];n[e]=t}function I7(n){const{length:e}=n;let t=e;for(let r=t-1;r>=0&&!(n[r].length>0);t=r,r--);t<e&&(n.length=t)}function L7(n,e){return e===0?!0:n[e-1].length===1}function F7(n,e,t,r,i,a){if(e===0)return!1;const s=n[e-1];return s.length===1?!1:t===s[_7]&&r===s[x7]&&i===s[M7]&&a===(s.length===5?s[S7]:m3)}function N7({code:n,mappings:e},t,r,i,a){const s=D7(i,a),o=new C7({file:r.compiledFilename});let c=0,l=e[0];for(;l===void 0&&c<e.length-1;)c++,l=e[c];let u=0,A=0;l!==A&&p0(o,u,0,t,u,0);for(let y=0;y<n.length;y++){if(y===l){const w=l-A,v=s[c];for(p0(o,u,w,t,u,v);(l===y||l===void 0)&&c<e.length-1;)c++,l=e[c]}n.charCodeAt(y)===Re.lineFeed&&(u++,A=y+1,l!==A&&p0(o,u,0,t,u,0))}const{sourceRoot:f,sourcesContent:h,...g}=E7(o);return g}function D7(n,e){const t=new Array(e.length);let r=0,i=e[r].start,a=0;for(let s=0;s<n.length;s++)s===i&&(t[r]=i-a,r++,i=e[r].start),n.charCodeAt(s)===Re.lineFeed&&(a=s+1);return t}const R7={require:`
    import {createRequire as CREATE_REQUIRE_NAME} from "module";
    const require = CREATE_REQUIRE_NAME(import.meta.url);
  `,interopRequireWildcard:`
    function interopRequireWildcard(obj) {
      if (obj && obj.__esModule) {
        return obj;
      } else {
        var newObj = {};
        if (obj != null) {
          for (var key in obj) {
            if (Object.prototype.hasOwnProperty.call(obj, key)) {
              newObj[key] = obj[key];
            }
          }
        }
        newObj.default = obj;
        return newObj;
      }
    }
  `,interopRequireDefault:`
    function interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { default: obj };
    }
  `,createNamedExportFrom:`
    function createNamedExportFrom(obj, localName, importedName) {
      Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
    }
  `,createStarExport:`
    function createStarExport(obj) {
      Object.keys(obj)
        .filter((key) => key !== "default" && key !== "__esModule")
        .forEach((key) => {
          if (exports.hasOwnProperty(key)) {
            return;
          }
          Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
        });
    }
  `,nullishCoalesce:`
    function nullishCoalesce(lhs, rhsFn) {
      if (lhs != null) {
        return lhs;
      } else {
        return rhsFn();
      }
    }
  `,asyncNullishCoalesce:`
    async function asyncNullishCoalesce(lhs, rhsFn) {
      if (lhs != null) {
        return lhs;
      } else {
        return await rhsFn();
      }
    }
  `,optionalChain:`
    function optionalChain(ops) {
      let lastAccessLHS = undefined;
      let value = ops[0];
      let i = 1;
      while (i < ops.length) {
        const op = ops[i];
        const fn = ops[i + 1];
        i += 2;
        if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
          return undefined;
        }
        if (op === 'access' || op === 'optionalAccess') {
          lastAccessLHS = value;
          value = fn(value);
        } else if (op === 'call' || op === 'optionalCall') {
          value = fn((...args) => value.call(lastAccessLHS, ...args));
          lastAccessLHS = undefined;
        }
      }
      return value;
    }
  `,asyncOptionalChain:`
    async function asyncOptionalChain(ops) {
      let lastAccessLHS = undefined;
      let value = ops[0];
      let i = 1;
      while (i < ops.length) {
        const op = ops[i];
        const fn = ops[i + 1];
        i += 2;
        if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
          return undefined;
        }
        if (op === 'access' || op === 'optionalAccess') {
          lastAccessLHS = value;
          value = await fn(value);
        } else if (op === 'call' || op === 'optionalCall') {
          value = await fn((...args) => value.call(lastAccessLHS, ...args));
          lastAccessLHS = undefined;
        }
      }
      return value;
    }
  `,optionalChainDelete:`
    function optionalChainDelete(ops) {
      const result = OPTIONAL_CHAIN_NAME(ops);
      return result == null ? true : result;
    }
  `,asyncOptionalChainDelete:`
    async function asyncOptionalChainDelete(ops) {
      const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
      return result == null ? true : result;
    }
  `};class ty{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(e){this.nameManager=e,ty.prototype.__init.call(this),ty.prototype.__init2.call(this)}getHelperName(e){let t=this.helperNames[e];return t||(t=this.nameManager.claimFreeName(`_${e}`),this.helperNames[e]=t,t)}emitHelpers(){let e="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[t,r]of Object.entries(R7)){const i=this.helperNames[t];let a=r;t==="optionalChainDelete"?a=a.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):t==="asyncOptionalChainDelete"?a=a.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):t==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),a=a.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),i&&(e+=" ",e+=a.replace(t,i).replace(/\s+/g," ").trim())}return e}}function UE(n,e,t){U7(n,t)&&O7(n,e,t)}function U7(n,e){for(const t of n.tokens)if(t.type===p.name&&!t.isType&&WV(t)&&e.has(n.identifierNameForToken(t)))return!0;return!1}function O7(n,e,t){const r=[];let i=e.length-1;for(let a=n.tokens.length-1;;a--){for(;r.length>0&&r[r.length-1].startTokenIndex===a+1;)r.pop();for(;i>=0&&e[i].endTokenIndex===a+1;)r.push(e[i]),i--;if(a<0)break;const s=n.tokens[a],o=n.identifierNameForToken(s);if(r.length>1&&!s.isType&&s.type===p.name&&t.has(o)){if(QV(s))OE(r[r.length-1],n,o);else if($V(s)){let c=r.length-1;for(;c>0&&!r[c].isFunctionScope;)c--;if(c<0)throw new Error("Did not find parent function scope.");OE(r[c],n,o)}}}if(r.length>0)throw new Error("Expected empty scope stack after processing file.")}function OE(n,e,t){for(let r=n.startTokenIndex;r<n.endTokenIndex;r++){const i=e.tokens[r];(i.type===p.name||i.type===p.jsxName)&&e.identifierNameForToken(i)===t&&(i.shadowsGlobal=!0)}}function H7(n,e){const t=[];for(const r of e)r.type===p.name&&t.push(n.slice(r.start,r.end));return t}class SS{__init(){this.usedNames=new Set}constructor(e,t){SS.prototype.__init.call(this),this.usedNames=new Set(H7(e,t))}claimFreeName(e){const t=this.findFreeName(e);return this.usedNames.add(t),t}findFreeName(e){if(!this.usedNames.has(e))return e;let t=2;for(;this.usedNames.has(e+String(t));)t++;return e+String(t)}}var nm={},rm={},cc={},HE;function f2(){if(HE)return cc;HE=1;var n=cc&&cc.__extends||(function(){var a=function(s,o){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,l){c.__proto__=l}||function(c,l){for(var u in l)l.hasOwnProperty(u)&&(c[u]=l[u])},a(s,o)};return function(s,o){a(s,o);function c(){this.constructor=s}s.prototype=o===null?Object.create(o):(c.prototype=o.prototype,new c)}})();Object.defineProperty(cc,"__esModule",{value:!0}),cc.DetailContext=cc.NoopContext=cc.VError=void 0;var e=(function(a){n(s,a);function s(o,c){var l=a.call(this,c)||this;return l.path=o,Object.setPrototypeOf(l,s.prototype),l}return s})(Error);cc.VError=e;var t=(function(){function a(){}return a.prototype.fail=function(s,o,c){return!1},a.prototype.unionResolver=function(){return this},a.prototype.createContext=function(){return this},a.prototype.resolveUnion=function(s){},a})();cc.NoopContext=t;var r=(function(){function a(){this._propNames=[""],this._messages=[null],this._score=0}return a.prototype.fail=function(s,o,c){return this._propNames.push(s),this._messages.push(o),this._score+=c,!1},a.prototype.unionResolver=function(){return new i},a.prototype.resolveUnion=function(s){for(var o,c,l=s,u=null,A=0,f=l.contexts;A<f.length;A++){var h=f[A];(!u||h._score>=u._score)&&(u=h)}u&&u._score>0&&((o=this._propNames).push.apply(o,u._propNames),(c=this._messages).push.apply(c,u._messages))},a.prototype.getError=function(s){for(var o=[],c=this._propNames.length-1;c>=0;c--){var l=this._propNames[c];s+=typeof l=="number"?"["+l+"]":l?"."+l:"";var u=this._messages[c];u&&o.push(s+" "+u)}return new e(s,o.join("; "))},a.prototype.getErrorDetail=function(s){for(var o=[],c=this._propNames.length-1;c>=0;c--){var l=this._propNames[c];s+=typeof l=="number"?"["+l+"]":l?"."+l:"";var u=this._messages[c];u&&o.push({path:s,message:u})}for(var A=null,c=o.length-1;c>=0;c--)A&&(o[c].nested=[A]),A=o[c];return A},a})();cc.DetailContext=r;var i=(function(){function a(){this.contexts=[]}return a.prototype.createContext=function(){var s=new r;return this.contexts.push(s),s},a})();return cc}var WE;function QE(){return WE||(WE=1,(function(n){var e=rm&&rm.__extends||(function(){var z=function(Z,le){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ge,Me){ge.__proto__=Me}||function(ge,Me){for(var Te in Me)Me.hasOwnProperty(Te)&&(ge[Te]=Me[Te])},z(Z,le)};return function(Z,le){z(Z,le);function ge(){this.constructor=Z}Z.prototype=le===null?Object.create(le):(ge.prototype=le.prototype,new ge)}})();Object.defineProperty(n,"__esModule",{value:!0}),n.basicTypes=n.BasicType=n.TParamList=n.TParam=n.param=n.TFunc=n.func=n.TProp=n.TOptional=n.opt=n.TIface=n.iface=n.TEnumLiteral=n.enumlit=n.TEnumType=n.enumtype=n.TIntersection=n.intersection=n.TUnion=n.union=n.TTuple=n.tuple=n.TArray=n.array=n.TLiteral=n.lit=n.TName=n.name=n.TType=void 0;var t=f2(),r=(function(){function z(){}return z})();n.TType=r;function i(z){return typeof z=="string"?s(z):z}function a(z,Z){var le=z[Z];if(!le)throw new Error("Unknown type "+Z);return le}function s(z){return new o(z)}n.name=s;var o=(function(z){e(Z,z);function Z(le){var ge=z.call(this)||this;return ge.name=le,ge._failMsg="is not a "+le,ge}return Z.prototype.getChecker=function(le,ge,Me){var Te=this,We=a(le,this.name),Ee=We.getChecker(le,ge,Me);return We instanceof ee||We instanceof Z?Ee:function(Ne,ue){return Ee(Ne,ue)?!0:ue.fail(null,Te._failMsg,0)}},Z})(r);n.TName=o;function c(z){return new l(z)}n.lit=c;var l=(function(z){e(Z,z);function Z(le){var ge=z.call(this)||this;return ge.value=le,ge.name=JSON.stringify(le),ge._failMsg="is not "+ge.name,ge}return Z.prototype.getChecker=function(le,ge){var Me=this;return function(Te,We){return Te===Me.value?!0:We.fail(null,Me._failMsg,-1)}},Z})(r);n.TLiteral=l;function u(z){return new A(i(z))}n.array=u;var A=(function(z){e(Z,z);function Z(le){var ge=z.call(this)||this;return ge.ttype=le,ge}return Z.prototype.getChecker=function(le,ge){var Me=this.ttype.getChecker(le,ge);return function(Te,We){if(!Array.isArray(Te))return We.fail(null,"is not an array",0);for(var Ee=0;Ee<Te.length;Ee++){var Ne=Me(Te[Ee],We);if(!Ne)return We.fail(Ee,null,1)}return!0}},Z})(r);n.TArray=A;function f(){for(var z=[],Z=0;Z<arguments.length;Z++)z[Z]=arguments[Z];return new h(z.map(function(le){return i(le)}))}n.tuple=f;var h=(function(z){e(Z,z);function Z(le){var ge=z.call(this)||this;return ge.ttypes=le,ge}return Z.prototype.getChecker=function(le,ge){var Me=this.ttypes.map(function(We){return We.getChecker(le,ge)}),Te=function(We,Ee){if(!Array.isArray(We))return Ee.fail(null,"is not an array",0);for(var Ne=0;Ne<Me.length;Ne++){var ue=Me[Ne](We[Ne],Ee);if(!ue)return Ee.fail(Ne,null,1)}return!0};return ge?function(We,Ee){return Te(We,Ee)?We.length<=Me.length?!0:Ee.fail(Me.length,"is extraneous",2):!1}:Te},Z})(r);n.TTuple=h;function g(){for(var z=[],Z=0;Z<arguments.length;Z++)z[Z]=arguments[Z];return new y(z.map(function(le){return i(le)}))}n.union=g;var y=(function(z){e(Z,z);function Z(le){var ge=z.call(this)||this;ge.ttypes=le;var Me=le.map(function(We){return We instanceof o||We instanceof l?We.name:null}).filter(function(We){return We}),Te=le.length-Me.length;return Me.length?(Te>0&&Me.push(Te+" more"),ge._failMsg="is none of "+Me.join(", ")):ge._failMsg="is none of "+Te+" types",ge}return Z.prototype.getChecker=function(le,ge){var Me=this,Te=this.ttypes.map(function(We){return We.getChecker(le,ge)});return function(We,Ee){for(var Ne=Ee.unionResolver(),ue=0;ue<Te.length;ue++){var ne=Te[ue](We,Ne.createContext());if(ne)return!0}return Ee.resolveUnion(Ne),Ee.fail(null,Me._failMsg,0)}},Z})(r);n.TUnion=y;function w(){for(var z=[],Z=0;Z<arguments.length;Z++)z[Z]=arguments[Z];return new v(z.map(function(le){return i(le)}))}n.intersection=w;var v=(function(z){e(Z,z);function Z(le){var ge=z.call(this)||this;return ge.ttypes=le,ge}return Z.prototype.getChecker=function(le,ge){var Me=new Set,Te=this.ttypes.map(function(We){return We.getChecker(le,ge,Me)});return function(We,Ee){var Ne=Te.every(function(ue){return ue(We,Ee)});return Ne?!0:Ee.fail(null,null,0)}},Z})(r);n.TIntersection=v;function S(z){return new C(z)}n.enumtype=S;var C=(function(z){e(Z,z);function Z(le){var ge=z.call(this)||this;return ge.members=le,ge.validValues=new Set,ge._failMsg="is not a valid enum value",ge.validValues=new Set(Object.keys(le).map(function(Me){return le[Me]})),ge}return Z.prototype.getChecker=function(le,ge){var Me=this;return function(Te,We){return Me.validValues.has(Te)?!0:We.fail(null,Me._failMsg,0)}},Z})(r);n.TEnumType=C;function M(z,Z){return new F(z,Z)}n.enumlit=M;var F=(function(z){e(Z,z);function Z(le,ge){var Me=z.call(this)||this;return Me.enumName=le,Me.prop=ge,Me._failMsg="is not "+le+"."+ge,Me}return Z.prototype.getChecker=function(le,ge){var Me=this,Te=a(le,this.enumName);if(!(Te instanceof C))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var We=Te.members[this.prop];if(!Te.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(Ee,Ne){return Ee===We?!0:Ne.fail(null,Me._failMsg,-1)}},Z})(r);n.TEnumLiteral=F;function D(z){return Object.keys(z).map(function(Z){return U(Z,z[Z])})}function U(z,Z){return Z instanceof k?new H(z,Z.ttype,!0):new H(z,i(Z),!1)}function O(z,Z){return new T(z,D(Z))}n.iface=O;var T=(function(z){e(Z,z);function Z(le,ge){var Me=z.call(this)||this;return Me.bases=le,Me.props=ge,Me.propSet=new Set(ge.map(function(Te){return Te.name})),Me}return Z.prototype.getChecker=function(le,ge,Me){var Te=this,We=this.bases.map(function(je){return a(le,je).getChecker(le,ge)}),Ee=this.props.map(function(je){return je.ttype.getChecker(le,ge)}),Ne=new t.NoopContext,ue=this.props.map(function(je,ze){return!je.isOpt&&!Ee[ze](void 0,Ne)}),ne=function(je,ze){if(typeof je!="object"||je===null)return ze.fail(null,"is not an object",0);for(var Qe=0;Qe<We.length;Qe++)if(!We[Qe](je,ze))return!1;for(var Qe=0;Qe<Ee.length;Qe++){var ot=Te.props[Qe].name,se=je[ot];if(se===void 0){if(ue[Qe])return ze.fail(ot,"is missing",1)}else{var G=Ee[Qe](se,ze);if(!G)return ze.fail(ot,null,1)}}return!0};if(!ge)return ne;var De=this.propSet;return Me&&(this.propSet.forEach(function(je){return Me.add(je)}),De=Me),function(je,ze){if(!ne(je,ze))return!1;for(var Qe in je)if(!De.has(Qe))return ze.fail(Qe,"is extraneous",2);return!0}},Z})(r);n.TIface=T;function P(z){return new k(i(z))}n.opt=P;var k=(function(z){e(Z,z);function Z(le){var ge=z.call(this)||this;return ge.ttype=le,ge}return Z.prototype.getChecker=function(le,ge){var Me=this.ttype.getChecker(le,ge);return function(Te,We){return Te===void 0||Me(Te,We)}},Z})(r);n.TOptional=k;var H=(function(){function z(Z,le,ge){this.name=Z,this.ttype=le,this.isOpt=ge}return z})();n.TProp=H;function j(z){for(var Z=[],le=1;le<arguments.length;le++)Z[le-1]=arguments[le];return new $(new fe(Z),i(z))}n.func=j;var $=(function(z){e(Z,z);function Z(le,ge){var Me=z.call(this)||this;return Me.paramList=le,Me.result=ge,Me}return Z.prototype.getChecker=function(le,ge){return function(Me,Te){return typeof Me=="function"?!0:Te.fail(null,"is not a function",0)}},Z})(r);n.TFunc=$;function ce(z,Z,le){return new de(z,i(Z),!!le)}n.param=ce;var de=(function(){function z(Z,le,ge){this.name=Z,this.ttype=le,this.isOpt=ge}return z})();n.TParam=de;var fe=(function(z){e(Z,z);function Z(le){var ge=z.call(this)||this;return ge.params=le,ge}return Z.prototype.getChecker=function(le,ge){var Me=this,Te=this.params.map(function(ue){return ue.ttype.getChecker(le,ge)}),We=new t.NoopContext,Ee=this.params.map(function(ue,ne){return!ue.isOpt&&!Te[ne](void 0,We)}),Ne=function(ue,ne){if(!Array.isArray(ue))return ne.fail(null,"is not an array",0);for(var De=0;De<Te.length;De++){var je=Me.params[De];if(ue[De]===void 0){if(Ee[De])return ne.fail(je.name,"is missing",1)}else{var ze=Te[De](ue[De],ne);if(!ze)return ne.fail(je.name,null,1)}}return!0};return ge?function(ue,ne){return Ne(ue,ne)?ue.length<=Te.length?!0:ne.fail(Te.length,"is extraneous",2):!1}:Ne},Z})(r);n.TParamList=fe;var ee=(function(z){e(Z,z);function Z(le,ge){var Me=z.call(this)||this;return Me.validator=le,Me.message=ge,Me}return Z.prototype.getChecker=function(le,ge){var Me=this;return function(Te,We){return Me.validator(Te)?!0:We.fail(null,Me.message,0)}},Z})(r);n.BasicType=ee,n.basicTypes={any:new ee(function(z){return!0},"is invalid"),number:new ee(function(z){return typeof z=="number"},"is not a number"),object:new ee(function(z){return typeof z=="object"&&z},"is not an object"),boolean:new ee(function(z){return typeof z=="boolean"},"is not a boolean"),string:new ee(function(z){return typeof z=="string"},"is not a string"),symbol:new ee(function(z){return typeof z=="symbol"},"is not a symbol"),void:new ee(function(z){return z==null},"is not void"),undefined:new ee(function(z){return z===void 0},"is not undefined"),null:new ee(function(z){return z===null},"is not null"),never:new ee(function(z){return!1},"is unexpected"),Date:new ee(xe("[object Date]"),"is not a Date"),RegExp:new ee(xe("[object RegExp]"),"is not a RegExp")};var Se=Object.prototype.toString;function xe(z){return function(Z){return typeof Z=="object"&&Z&&Se.call(Z)===z}}typeof Buffer<"u"&&(n.basicTypes.Buffer=new ee(function(z){return Buffer.isBuffer(z)},"is not a Buffer"));for(var Pe=function(z){n.basicTypes[z.name]=new ee(function(Z){return Z instanceof z},"is not a "+z.name)},V=0,ae=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];V<ae.length;V++){var J=ae[V];Pe(J)}})(rm)),rm}var $E;function W7(){return $E||($E=1,(function(n){var e=nm&&nm.__spreadArrays||function(){for(var c=0,l=0,u=arguments.length;l<u;l++)c+=arguments[l].length;for(var A=Array(c),f=0,l=0;l<u;l++)for(var h=arguments[l],g=0,y=h.length;g<y;g++,f++)A[f]=h[g];return A};Object.defineProperty(n,"__esModule",{value:!0}),n.Checker=n.createCheckers=void 0;var t=QE(),r=f2(),i=QE();Object.defineProperty(n,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(n,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(n,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(n,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(n,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(n,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(n,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(n,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(n,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(n,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(n,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(n,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(n,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(n,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(n,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(n,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(n,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(n,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(n,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(n,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(n,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(n,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(n,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(n,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(n,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(n,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(n,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(n,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var a=f2();Object.defineProperty(n,"VError",{enumerable:!0,get:function(){return a.VError}});function s(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];for(var u=Object.assign.apply(Object,e([{},t.basicTypes],c)),A={},f=0,h=c;f<h.length;f++)for(var g=h[f],y=0,w=Object.keys(g);y<w.length;y++){var v=w[y];A[v]=new o(u,g[v])}return A}n.createCheckers=s;var o=(function(){function c(l,u,A){if(A===void 0&&(A="value"),this.suite=l,this.ttype=u,this._path=A,this.props=new Map,u instanceof t.TIface)for(var f=0,h=u.props;f<h.length;f++){var g=h[f];this.props.set(g.name,g.ttype)}this.checkerPlain=this.ttype.getChecker(l,!1),this.checkerStrict=this.ttype.getChecker(l,!0)}return c.prototype.setReportedPath=function(l){this._path=l},c.prototype.check=function(l){return this._doCheck(this.checkerPlain,l)},c.prototype.test=function(l){return this.checkerPlain(l,new r.NoopContext)},c.prototype.validate=function(l){return this._doValidate(this.checkerPlain,l)},c.prototype.strictCheck=function(l){return this._doCheck(this.checkerStrict,l)},c.prototype.strictTest=function(l){return this.checkerStrict(l,new r.NoopContext)},c.prototype.strictValidate=function(l){return this._doValidate(this.checkerStrict,l)},c.prototype.getProp=function(l){var u=this.props.get(l);if(!u)throw new Error("Type has no property "+l);return new c(this.suite,u,this._path+"."+l)},c.prototype.methodArgs=function(l){var u=this._getMethod(l);return new c(this.suite,u.paramList)},c.prototype.methodResult=function(l){var u=this._getMethod(l);return new c(this.suite,u.result)},c.prototype.getArgs=function(){if(!(this.ttype instanceof t.TFunc))throw new Error("getArgs() applied to non-function");return new c(this.suite,this.ttype.paramList)},c.prototype.getResult=function(){if(!(this.ttype instanceof t.TFunc))throw new Error("getResult() applied to non-function");return new c(this.suite,this.ttype.result)},c.prototype.getType=function(){return this.ttype},c.prototype._doCheck=function(l,u){var A=new r.NoopContext;if(!l(u,A)){var f=new r.DetailContext;throw l(u,f),f.getError(this._path)}},c.prototype._doValidate=function(l,u){var A=new r.NoopContext;if(l(u,A))return null;var f=new r.DetailContext;return l(u,f),f.getErrorDetail(this._path)},c.prototype._getMethod=function(l){var u=this.props.get(l);if(!u)throw new Error("Type has no property "+l);if(!(u instanceof t.TFunc))throw new Error("Property "+l+" is not a method");return u},c})();n.Checker=o})(nm)),nm}var kr=W7();const Q7=kr.union(kr.lit("jsx"),kr.lit("typescript"),kr.lit("flow"),kr.lit("imports"),kr.lit("react-hot-loader"),kr.lit("jest")),$7=kr.iface([],{compiledFilename:"string"}),j7=kr.iface([],{transforms:kr.array("Transform"),disableESTransforms:kr.opt("boolean"),jsxRuntime:kr.opt(kr.union(kr.lit("classic"),kr.lit("automatic"),kr.lit("preserve"))),production:kr.opt("boolean"),jsxImportSource:kr.opt("string"),jsxPragma:kr.opt("string"),jsxFragmentPragma:kr.opt("string"),keepUnusedImports:kr.opt("boolean"),preserveDynamicImport:kr.opt("boolean"),injectCreateRequireForImportRequire:kr.opt("boolean"),enableLegacyTypeScriptModuleInterop:kr.opt("boolean"),enableLegacyBabel5ModuleInterop:kr.opt("boolean"),sourceMapOptions:kr.opt("SourceMapOptions"),filePath:kr.opt("string")}),z7={Transform:Q7,SourceMapOptions:$7,Options:j7},{Options:V7}=kr.createCheckers(z7);function G7(n){V7.strictCheck(n)}function p3(){ft(),ga(!1)}function g3(n){ft(),Hw(n)}function ad(n){gn(),CS(n)}function ny(){gn(),I.tokens[I.tokens.length-1].identifierRole=An.ImportDeclaration}function CS(n){let e;I.scopeDepth===0?e=An.TopLevelDeclaration:n?e=An.BlockScopedDeclaration:e=An.FunctionScopedDeclaration,I.tokens[I.tokens.length-1].identifierRole=e}function Hw(n){switch(I.type){case p._this:{const e=kn(0);ft(),En(e);return}case p._yield:case p.name:{I.type=p.name,ad(n);return}case p.bracketL:{ft(),PS(p.bracketR,n,!0);return}case p.braceL:US(!0,n);return;default:Mn()}}function PS(n,e,t=!1,r=!1,i=0){let a=!0,s=!1;const o=I.tokens.length;for(;!st(n)&&!I.error;)if(a?a=!1:(ht(p.comma),I.tokens[I.tokens.length-1].contextId=i,!s&&I.tokens[o].isType&&(I.tokens[I.tokens.length-1].isType=!0,s=!0)),!(t&&me(p.comma))){if(st(n))break;if(me(p.ellipsis)){g3(e),v3(),st(p.comma),ht(n);break}else K7(r,e)}}function K7(n,e){n&&ES([Ce._public,Ce._protected,Ce._private,Ce._readonly,Ce._override]),ry(e),v3(),ry(e,!0)}function v3(){sr?AK():Kn&&n9()}function ry(n,e=!1){if(e||Hw(n),!st(p.eq))return;const t=I.tokens.length-1;ga(),I.tokens[t].rhsEndIndex=I.tokens.length}function m2(){return me(p.name)}function q7(){return me(p.name)||!!(I.type&p.IS_KEYWORD)||me(p.string)||me(p.num)||me(p.bigint)||me(p.decimal)}function y3(){const n=I.snapshot();return ft(),(me(p.bracketL)||me(p.braceL)||me(p.star)||me(p.ellipsis)||me(p.hash)||q7())&&!Cs()?!0:(I.restoreFromSnapshot(n),!1)}function ES(n){for(;w3(n)!==null;);}function w3(n){if(!me(p.name))return null;const e=I.contextualKeyword;if(n.indexOf(e)!==-1&&y3()){switch(e){case Ce._readonly:I.tokens[I.tokens.length-1].type=p._readonly;break;case Ce._abstract:I.tokens[I.tokens.length-1].type=p._abstract;break;case Ce._static:I.tokens[I.tokens.length-1].type=p._static;break;case Ce._public:I.tokens[I.tokens.length-1].type=p._public;break;case Ce._private:I.tokens[I.tokens.length-1].type=p._private;break;case Ce._protected:I.tokens[I.tokens.length-1].type=p._protected;break;case Ce._override:I.tokens[I.tokens.length-1].type=p._override;break;case Ce._declare:I.tokens[I.tokens.length-1].type=p._declare;break}return e}return null}function hg(){for(gn();st(p.dot);)gn()}function X7(){hg(),!Cs()&&me(p.lessThan)&&Pf()}function Y7(){ft(),fg()}function J7(){ft()}function Z7(){ht(p._typeof),me(p._import)?b3():hg(),!Cs()&&me(p.lessThan)&&Pf()}function b3(){ht(p._import),ht(p.parenL),ht(p.string),ht(p.parenR),st(p.dot)&&hg(),me(p.lessThan)&&Pf()}function eG(){st(p._const);const n=st(p._in),e=Oi(Ce._out);st(p._const),(n||e)&&!me(p.name)?I.tokens[I.tokens.length-1].type=p.name:gn(),st(p._extends)&&ri(),st(p.eq)&&ri()}function DA(){me(p.lessThan)&&Ww()}function Ww(){const n=kn(0);for(me(p.lessThan)||me(p.typeParameterStart)?ft():Mn();!st(p.greaterThan)&&!I.error;)eG(),st(p.comma);En(n)}function BS(n){const e=n===p.arrow;DA(),ht(p.parenL),I.scopeDepth++,tG(!1),I.scopeDepth--,(e||me(n))&&Mp(n)}function tG(n){PS(p.parenR,n)}function iy(){st(p.comma)||jr()}function jE(){BS(p.colon),iy()}function nG(){const n=I.snapshot();ft();const e=st(p.name)&&me(p.colon);return I.restoreFromSnapshot(n),e}function _3(){if(!(me(p.bracketL)&&nG()))return!1;const n=kn(0);return ht(p.bracketL),gn(),fg(),ht(p.bracketR),Cf(),iy(),En(n),!0}function zE(n){st(p.question),!n&&(me(p.parenL)||me(p.lessThan))?(BS(p.colon),iy()):(Cf(),iy())}function rG(){if(me(p.parenL)||me(p.lessThan)){jE();return}if(me(p._new)){ft(),me(p.parenL)||me(p.lessThan)?jE():zE(!1);return}const n=!!w3([Ce._readonly]);_3()||((tn(Ce._get)||tn(Ce._set))&&y3(),Sp(-1),zE(n))}function iG(){x3()}function x3(){for(ht(p.braceL);!st(p.braceR)&&!I.error;)rG()}function aG(){const n=I.snapshot(),e=sG();return I.restoreFromSnapshot(n),e}function sG(){return ft(),st(p.plus)||st(p.minus)?tn(Ce._readonly):(tn(Ce._readonly)&&ft(),!me(p.bracketL)||(ft(),!m2())?!1:(ft(),me(p._in)))}function oG(){gn(),ht(p._in),ri()}function cG(){ht(p.braceL),me(p.plus)||me(p.minus)?(ft(),gi(Ce._readonly)):Oi(Ce._readonly),ht(p.bracketL),oG(),Oi(Ce._as)&&ri(),ht(p.bracketR),me(p.plus)||me(p.minus)?(ft(),ht(p.question)):st(p.question),_G(),jr(),ht(p.braceR)}function lG(){for(ht(p.bracketL);!st(p.bracketR)&&!I.error;)uG(),st(p.comma)}function uG(){st(p.ellipsis)?ri():(ri(),st(p.question)),st(p.colon)&&ri()}function dG(){ht(p.parenL),ri(),ht(p.parenR)}function AG(){for(Nu(),Nu();!me(p.backQuote)&&!I.error;)ht(p.dollarBraceL),ri(),Nu(),Nu();ft()}var Wu;(function(n){n[n.TSFunctionType=0]="TSFunctionType";const t=1;n[n.TSConstructorType=t]="TSConstructorType";const r=t+1;n[n.TSAbstractConstructorType=r]="TSAbstractConstructorType"})(Wu||(Wu={}));function g0(n){n===Wu.TSAbstractConstructorType&&gi(Ce._abstract),(n===Wu.TSConstructorType||n===Wu.TSAbstractConstructorType)&&ht(p._new);const e=I.inDisallowConditionalTypesContext;I.inDisallowConditionalTypesContext=!1,BS(p.arrow),I.inDisallowConditionalTypesContext=e}function hG(){switch(I.type){case p.name:X7();return;case p._void:case p._null:ft();return;case p.string:case p.num:case p.bigint:case p.decimal:case p._true:case p._false:ef();return;case p.minus:ft(),ef();return;case p._this:{J7(),tn(Ce._is)&&!Cs()&&Y7();return}case p._typeof:Z7();return;case p._import:b3();return;case p.braceL:aG()?cG():iG();return;case p.bracketL:lG();return;case p.parenL:dG();return;case p.backQuote:AG();return;default:if(I.type&p.IS_KEYWORD){ft(),I.tokens[I.tokens.length-1].type=p.name;return}break}Mn()}function fG(){for(hG();!Cs()&&st(p.bracketL);)st(p.bracketR)||(ri(),ht(p.bracketR))}function mG(){if(gi(Ce._infer),gn(),me(p._extends)){const n=I.snapshot();ht(p._extends);const e=I.inDisallowConditionalTypesContext;I.inDisallowConditionalTypesContext=!0,ri(),I.inDisallowConditionalTypesContext=e,(I.error||!I.inDisallowConditionalTypesContext&&me(p.question))&&I.restoreFromSnapshot(n)}}function p2(){if(tn(Ce._keyof)||tn(Ce._unique)||tn(Ce._readonly))ft(),p2();else if(tn(Ce._infer))mG();else{const n=I.inDisallowConditionalTypesContext;I.inDisallowConditionalTypesContext=!1,fG(),I.inDisallowConditionalTypesContext=n}}function VE(){if(st(p.bitwiseAND),p2(),me(p.bitwiseAND))for(;st(p.bitwiseAND);)p2()}function pG(){if(st(p.bitwiseOR),VE(),me(p.bitwiseOR))for(;st(p.bitwiseOR);)VE()}function gG(){return me(p.lessThan)?!0:me(p.parenL)&&yG()}function vG(){if(me(p.name)||me(p._this))return ft(),!0;if(me(p.braceL)||me(p.bracketL)){let n=1;for(ft();n>0&&!I.error;)me(p.braceL)||me(p.bracketL)?n++:(me(p.braceR)||me(p.bracketR))&&n--,ft();return!0}return!1}function yG(){const n=I.snapshot(),e=wG();return I.restoreFromSnapshot(n),e}function wG(){return ft(),!!(me(p.parenR)||me(p.ellipsis)||vG()&&(me(p.colon)||me(p.comma)||me(p.question)||me(p.eq)||me(p.parenR)&&(ft(),me(p.arrow))))}function Mp(n){const e=kn(0);ht(n),xG()||ri(),En(e)}function bG(){me(p.colon)&&Mp(p.colon)}function Cf(){me(p.colon)&&fg()}function _G(){st(p.colon)&&ri()}function xG(){const n=I.snapshot();return tn(Ce._asserts)?(ft(),Oi(Ce._is)?(ri(),!0):m2()||me(p._this)?(ft(),Oi(Ce._is)&&ri(),!0):(I.restoreFromSnapshot(n),!1)):m2()||me(p._this)?(ft(),tn(Ce._is)&&!Cs()?(ft(),ri(),!0):(I.restoreFromSnapshot(n),!1)):!1}function fg(){const n=kn(0);ht(p.colon),ri(),En(n)}function ri(){if(GE(),I.inDisallowConditionalTypesContext||Cs()||!st(p._extends))return;const n=I.inDisallowConditionalTypesContext;I.inDisallowConditionalTypesContext=!0,GE(),I.inDisallowConditionalTypesContext=n,ht(p.question),ri(),ht(p.colon),ri()}function MG(){return tn(Ce._abstract)&&ni()===p._new}function GE(){if(gG()){g0(Wu.TSFunctionType);return}if(me(p._new)){g0(Wu.TSConstructorType);return}else if(MG()){g0(Wu.TSAbstractConstructorType);return}pG()}function SG(){const n=kn(1);ri(),ht(p.greaterThan),En(n),mg()}function CG(){if(st(p.jsxTagStart)){I.tokens[I.tokens.length-1].type=p.typeParameterStart;const n=kn(1);for(;!me(p.greaterThan)&&!I.error;)ri(),st(p.comma);jo(),En(n)}}function M3(){for(;!me(p.braceL)&&!I.error;)PG(),st(p.comma)}function PG(){hg(),me(p.lessThan)&&Pf()}function EG(){ad(!1),DA(),st(p._extends)&&M3(),x3()}function BG(){ad(!1),DA(),ht(p.eq),ri(),jr()}function TG(){if(me(p.string)?ef():gn(),st(p.eq)){const n=I.tokens.length-1;ga(),I.tokens[n].rhsEndIndex=I.tokens.length}}function TS(){for(ad(!1),ht(p.braceL);!st(p.braceR)&&!I.error;)TG(),st(p.comma)}function kS(){ht(p.braceL),zw(p.braceR)}function g2(){ad(!1),st(p.dot)?g2():kS()}function S3(){tn(Ce._global)?gn():me(p.string)?ql():Mn(),me(p.braceL)?kS():jr()}function v2(){ny(),ht(p.eq),IG(),jr()}function kG(){return tn(Ce._require)&&ni()===p.parenL}function IG(){kG()?LG():hg()}function LG(){gi(Ce._require),ht(p.parenL),me(p.string)||Mn(),ef(),ht(p.parenR)}function FG(){if(qc())return!1;switch(I.type){case p._function:{const n=kn(1);ft();const e=I.start;return yA(e,!0),En(n),!0}case p._class:{const n=kn(1);return wA(!0,!1),En(n),!0}case p._const:if(me(p._const)&&xS(Ce._enum)){const n=kn(1);return ht(p._const),gi(Ce._enum),I.tokens[I.tokens.length-1].type=p._enum,TS(),En(n),!0}case p._var:case p._let:{const n=kn(1);return Uv(I.type!==p._var),En(n),!0}case p.name:{const n=kn(1),e=I.contextualKeyword;let t=!1;return e===Ce._global?(S3(),t=!0):t=Qw(e,!0),En(n),t}default:return!1}}function KE(){return Qw(I.contextualKeyword,!0)}function NG(n){switch(n){case Ce._declare:{const e=I.tokens.length-1;if(FG())return I.tokens[e].type=p._declare,!0;break}case Ce._global:if(me(p.braceL))return kS(),!0;break;default:return Qw(n,!1)}return!1}function Qw(n,e){switch(n){case Ce._abstract:if(uh(e)&&me(p._class))return I.tokens[I.tokens.length-1].type=p._abstract,wA(!0,!1),!0;break;case Ce._enum:if(uh(e)&&me(p.name))return I.tokens[I.tokens.length-1].type=p._enum,TS(),!0;break;case Ce._interface:if(uh(e)&&me(p.name)){const t=kn(e?2:1);return EG(),En(t),!0}break;case Ce._module:if(uh(e)){if(me(p.string)){const t=kn(e?2:1);return S3(),En(t),!0}else if(me(p.name)){const t=kn(e?2:1);return g2(),En(t),!0}}break;case Ce._namespace:if(uh(e)&&me(p.name)){const t=kn(e?2:1);return g2(),En(t),!0}break;case Ce._type:if(uh(e)&&me(p.name)){const t=kn(e?2:1);return BG(),En(t),!0}break}return!1}function uh(n){return n?(ft(),!0):!qc()}function DG(){const n=I.snapshot();return Ww(),Ef(),bG(),ht(p.arrow),I.error?(I.restoreFromSnapshot(n),!1):(pg(!0),!0)}function IS(){I.type===p.bitShiftL&&(I.pos-=1,xn(p.lessThan)),Pf()}function Pf(){const n=kn(0);for(ht(p.lessThan);!me(p.greaterThan)&&!I.error;)ri(),st(p.comma);n?(ht(p.greaterThan),En(n)):(En(n),o3(),ht(p.greaterThan),I.tokens[I.tokens.length-1].isType=!0)}function C3(){if(me(p.name))switch(I.contextualKeyword){case Ce._abstract:case Ce._declare:case Ce._enum:case Ce._interface:case Ce._module:case Ce._namespace:case Ce._type:return!0}return!1}function RG(n,e){if(me(p.colon)&&Mp(p.colon),!me(p.braceL)&&qc()){let t=I.tokens.length-1;for(;t>=0&&(I.tokens[t].start>=n||I.tokens[t].type===p._default||I.tokens[t].type===p._export);)I.tokens[t].isType=!0,t--;return}pg(!1,e)}function UG(n,e,t){if(!Cs()&&st(p.bang)){I.tokens[I.tokens.length-1].type=p.nonNullAssertion;return}if(me(p.lessThan)||me(p.bitShiftL)){const r=I.snapshot();if(!e&&F3()&&DG())return;if(IS(),!e&&st(p.parenL)?(I.tokens[I.tokens.length-1].subscriptStartIndex=n,Qu()):me(p.backQuote)?RS():(I.type===p.greaterThan||I.type!==p.parenL&&I.type&p.IS_EXPRESSION_START&&!Cs())&&Mn(),I.error)I.restoreFromSnapshot(r);else return}else!e&&me(p.questionDot)&&ni()===p.lessThan&&(ft(),I.tokens[n].isOptionalChainStart=!0,I.tokens[I.tokens.length-1].subscriptStartIndex=n,Pf(),ht(p.parenL),Qu());FS(n,e,t)}function OG(){if(st(p._import))return tn(Ce._type)&&ni()!==p.eq&&gi(Ce._type),v2(),!0;if(st(p.eq))return pa(),jr(),!0;if(Oi(Ce._as))return gi(Ce._namespace),gn(),jr(),!0;if(tn(Ce._type)){const n=ni();(n===p.braceL||n===p.star)&&ft()}return!1}function HG(){if(gn(),me(p.comma)||me(p.braceR)){I.tokens[I.tokens.length-1].identifierRole=An.ImportDeclaration;return}if(gn(),me(p.comma)||me(p.braceR)){I.tokens[I.tokens.length-1].identifierRole=An.ImportDeclaration,I.tokens[I.tokens.length-2].isType=!0,I.tokens[I.tokens.length-1].isType=!0;return}if(gn(),me(p.comma)||me(p.braceR)){I.tokens[I.tokens.length-3].identifierRole=An.ImportAccess,I.tokens[I.tokens.length-1].identifierRole=An.ImportDeclaration;return}gn(),I.tokens[I.tokens.length-3].identifierRole=An.ImportAccess,I.tokens[I.tokens.length-1].identifierRole=An.ImportDeclaration,I.tokens[I.tokens.length-4].isType=!0,I.tokens[I.tokens.length-3].isType=!0,I.tokens[I.tokens.length-2].isType=!0,I.tokens[I.tokens.length-1].isType=!0}function WG(){if(gn(),me(p.comma)||me(p.braceR)){I.tokens[I.tokens.length-1].identifierRole=An.ExportAccess;return}if(gn(),me(p.comma)||me(p.braceR)){I.tokens[I.tokens.length-1].identifierRole=An.ExportAccess,I.tokens[I.tokens.length-2].isType=!0,I.tokens[I.tokens.length-1].isType=!0;return}if(gn(),me(p.comma)||me(p.braceR)){I.tokens[I.tokens.length-3].identifierRole=An.ExportAccess;return}gn(),I.tokens[I.tokens.length-3].identifierRole=An.ExportAccess,I.tokens[I.tokens.length-4].isType=!0,I.tokens[I.tokens.length-3].isType=!0,I.tokens[I.tokens.length-2].isType=!0,I.tokens[I.tokens.length-1].isType=!0}function QG(){if(tn(Ce._abstract)&&ni()===p._class)return I.type=p._abstract,ft(),wA(!0,!0),!0;if(tn(Ce._interface)){const n=kn(2);return Qw(Ce._interface,!0),En(n),!0}return!1}function $G(){if(I.type===p._const){const n=Ag();if(n.type===p.name&&n.contextualKeyword===Ce._enum)return ht(p._const),gi(Ce._enum),I.tokens[I.tokens.length-1].type=p._enum,TS(),!0}return!1}function jG(n){const e=I.tokens.length;ES([Ce._abstract,Ce._readonly,Ce._declare,Ce._static,Ce._override]);const t=I.tokens.length;if(_3()){const i=n?e-1:e;for(let a=i;a<t;a++)I.tokens[a].isType=!0;return!0}return!1}function zG(n){NG(n)||jr()}function VG(){const n=Oi(Ce._declare);n&&(I.tokens[I.tokens.length-1].type=p._declare);let e=!1;if(me(p.name))if(n){const t=kn(2);e=KE(),En(t)}else e=KE();if(!e)if(n){const t=kn(2);xo(!0),En(t)}else xo(!0)}function GG(n){if(n&&(me(p.lessThan)||me(p.bitShiftL))&&IS(),Oi(Ce._implements)){I.tokens[I.tokens.length-1].type=p._implements;const e=kn(1);M3(),En(e)}}function KG(){DA()}function qG(){DA()}function XG(){const n=kn(0);Cs()||st(p.bang),Cf(),En(n)}function YG(){me(p.colon)&&fg()}function JG(n,e){return Uw?ZG(n,e):e9(n,e)}function ZG(n,e){if(!me(p.lessThan))return Jc(n,e);const t=I.snapshot();let r=Jc(n,e);if(I.error)I.restoreFromSnapshot(t);else return r;return I.type=p.typeParameterStart,Ww(),r=Jc(n,e),r||Mn(),r}function e9(n,e){if(!me(p.lessThan))return Jc(n,e);const t=I.snapshot();Ww();const r=Jc(n,e);if(r||Mn(),I.error)I.restoreFromSnapshot(t);else return r;return Jc(n,e)}function t9(){if(me(p.colon)){const n=I.snapshot();Mp(p.colon),fo()&&Mn(),me(p.arrow)||Mn(),I.error&&I.restoreFromSnapshot(n)}return st(p.arrow)}function n9(){const n=kn(0);st(p.question),Cf(),En(n)}function r9(){(me(p.lessThan)||me(p.bitShiftL))&&IS(),V3()}function i9(){let n=!1,e=!1;for(;;){if(I.pos>=Lt.length){Mn("Unterminated JSX contents");return}const t=Lt.charCodeAt(I.pos);if(t===Re.lessThan||t===Re.leftCurlyBrace){if(I.pos===I.start){if(t===Re.lessThan){I.pos++,xn(p.jsxTagStart);return}c3(t);return}xn(n&&!e?p.jsxEmptyText:p.jsxText);return}t===Re.lineFeed?n=!0:t!==Re.space&&t!==Re.carriageReturn&&t!==Re.tab&&(e=!0),I.pos++}}function a9(n){for(I.pos++;;){if(I.pos>=Lt.length){Mn("Unterminated string constant");return}if(Lt.charCodeAt(I.pos)===n){I.pos++;break}I.pos++}xn(p.string)}function s9(){let n;do{if(I.pos>Lt.length){Mn("Unexpectedly reached the end of input.");return}n=Lt.charCodeAt(++I.pos)}while(vc[n]||n===Re.dash);xn(p.jsxName)}function y2(){jo()}function P3(n){if(y2(),!st(p.colon)){I.tokens[I.tokens.length-1].identifierRole=n;return}y2()}function E3(){const n=I.tokens.length;P3(An.Access);let e=!1;for(;me(p.dot);)e=!0,jo(),y2();if(!e){const t=I.tokens[n],r=Lt.charCodeAt(t.start);r>=Re.lowercaseA&&r<=Re.lowercaseZ&&(t.identifierRole=null)}}function o9(){switch(I.type){case p.braceL:ft(),pa(),jo();return;case p.jsxTagStart:T3(),jo();return;case p.string:jo();return;default:Mn("JSX value should be either an expression or a quoted JSX text")}}function c9(){ht(p.ellipsis),pa()}function l9(n){if(me(p.jsxTagEnd))return!1;E3(),Kn&&CG();let e=!1;for(;!me(p.slash)&&!me(p.jsxTagEnd)&&!I.error;){if(st(p.braceL)){e=!0,ht(p.ellipsis),ga(),jo();continue}e&&I.end-I.start===3&&Lt.charCodeAt(I.start)===Re.lowercaseK&&Lt.charCodeAt(I.start+1)===Re.lowercaseE&&Lt.charCodeAt(I.start+2)===Re.lowercaseY&&(I.tokens[n].jsxRole=pc.KeyAfterPropSpread),P3(An.ObjectKey),me(p.eq)&&(jo(),o9())}const t=me(p.slash);return t&&jo(),t}function u9(){me(p.jsxTagEnd)||E3()}function B3(){const n=I.tokens.length-1;I.tokens[n].jsxRole=pc.NoChildren;let e=0;if(!l9(n))for(dh();;)switch(I.type){case p.jsxTagStart:if(jo(),me(p.slash)){jo(),u9(),I.tokens[n].jsxRole!==pc.KeyAfterPropSpread&&(e===1?I.tokens[n].jsxRole=pc.OneChild:e>1&&(I.tokens[n].jsxRole=pc.StaticChildren));return}e++,B3(),dh();break;case p.jsxText:e++,dh();break;case p.jsxEmptyText:dh();break;case p.braceL:ft(),me(p.ellipsis)?(c9(),dh(),e+=2):(me(p.braceR)||(e++,pa()),dh());break;default:Mn();return}}function T3(){jo(),B3()}function jo(){I.tokens.push(new Ow),a3(),I.start=I.pos;const n=Lt.charCodeAt(I.pos);if(dg[n])s9();else if(n===Re.quotationMark||n===Re.apostrophe)a9(n);else switch(++I.pos,n){case Re.greaterThan:xn(p.jsxTagEnd);break;case Re.lessThan:xn(p.jsxTagStart);break;case Re.slash:xn(p.slash);break;case Re.equalsTo:xn(p.eq);break;case Re.leftCurlyBrace:xn(p.braceL);break;case Re.dot:xn(p.dot);break;case Re.colon:xn(p.colon);break;default:Mn()}}function dh(){I.tokens.push(new Ow),I.start=I.pos,i9()}function d9(n){if(me(p.question)){const e=ni();if(e===p.colon||e===p.comma||e===p.parenR)return}k3(n)}function A9(){e3(p.question),me(p.colon)&&(Kn?fg():sr&&RA())}class h9{constructor(e){this.stop=e}}function pa(n=!1){if(ga(n),me(p.comma))for(;st(p.comma);)ga(n)}function ga(n=!1,e=!1){return Kn?JG(n,e):sr?vK(n,e):Jc(n,e)}function Jc(n,e){if(me(p._yield))return B9(),!1;(me(p.parenL)||me(p.name)||me(p._yield))&&(I.potentialArrowAt=I.start);const t=f9(n);return e&&DS(),I.type&p.IS_ASSIGN?(ft(),ga(n),!1):t}function f9(n){return p9(n)?!0:(m9(n),!1)}function m9(n){Kn||sr?d9(n):k3(n)}function k3(n){st(p.question)&&(ga(),ht(p.colon),ga(n))}function p9(n){const e=I.tokens.length;return mg()?!0:(Dv(e,-1,n),!1)}function Dv(n,e,t){if(Kn&&(p._in&p.PRECEDENCE_MASK)>e&&!Cs()&&(Oi(Ce._as)||Oi(Ce._satisfies))){const i=kn(1);ri(),En(i),o3(),Dv(n,e,t);return}const r=I.type&p.PRECEDENCE_MASK;if(r>0&&(!t||!me(p._in))&&r>e){const i=I.type;ft(),i===p.nullishCoalescing&&(I.tokens[I.tokens.length-1].nullishStartIndex=n);const a=I.tokens.length;mg(),Dv(a,i&p.IS_RIGHT_ASSOCIATIVE?r-1:r,t),i===p.nullishCoalescing&&(I.tokens[n].numNullishCoalesceStarts++,I.tokens[I.tokens.length-1].numNullishCoalesceEnds++),Dv(n,e,t)}}function mg(){if(Kn&&!Uw&&st(p.lessThan))return SG(),!1;if(tn(Ce._module)&&n3()===Re.leftCurlyBrace&&!qN())return T9(),!1;if(I.type&p.IS_PREFIX)return ft(),mg(),!1;if(I3())return!0;for(;I.type&p.IS_POSTFIX&&!fo();)I.type===p.preIncDec&&(I.type=p.postIncDec),ft();return!1}function I3(){const n=I.tokens.length;return ql()?!0:(LS(n),I.tokens.length>n&&I.tokens[n].isOptionalChainStart&&(I.tokens[I.tokens.length-1].isOptionalChainEnd=!0),!1)}function LS(n,e=!1){sr?wK(n,e):L3(n,e)}function L3(n,e=!1){const t=new h9(!1);do g9(n,e,t);while(!t.stop&&!I.error)}function g9(n,e,t){Kn?UG(n,e,t):sr?eK(n,e,t):FS(n,e,t)}function FS(n,e,t){if(!e&&st(p.doubleColon))NS(),t.stop=!0,LS(n,e);else if(me(p.questionDot)){if(I.tokens[n].isOptionalChainStart=!0,e&&ni()===p.parenL){t.stop=!0;return}ft(),I.tokens[I.tokens.length-1].subscriptStartIndex=n,st(p.bracketL)?(pa(),ht(p.bracketR)):st(p.parenL)?Qu():ay()}else if(st(p.dot))I.tokens[I.tokens.length-1].subscriptStartIndex=n,ay();else if(st(p.bracketL))I.tokens[I.tokens.length-1].subscriptStartIndex=n,pa(),ht(p.bracketR);else if(!e&&me(p.parenL))if(F3()){const r=I.snapshot(),i=I.tokens.length;ft(),I.tokens[I.tokens.length-1].subscriptStartIndex=n;const a=_p();I.tokens[I.tokens.length-1].contextId=a,Qu(),I.tokens[I.tokens.length-1].contextId=a,v9()&&(I.restoreFromSnapshot(r),t.stop=!0,I.scopeDepth++,Ef(),y9(i))}else{ft(),I.tokens[I.tokens.length-1].subscriptStartIndex=n;const r=_p();I.tokens[I.tokens.length-1].contextId=r,Qu(),I.tokens[I.tokens.length-1].contextId=r}else me(p.backQuote)?RS():t.stop=!0}function F3(){return I.tokens[I.tokens.length-1].contextualKeyword===Ce._async&&!fo()}function Qu(){let n=!0;for(;!st(p.parenR)&&!I.error;){if(n)n=!1;else if(ht(p.comma),st(p.parenR))break;U3(!1)}}function v9(){return me(p.colon)||me(p.arrow)}function y9(n){Kn?YG():sr&&gK(),ht(p.arrow),Cp(n)}function NS(){const n=I.tokens.length;ql(),LS(n,!0)}function ql(){if(st(p.modulo))return gn(),!1;if(me(p.jsxText)||me(p.jsxEmptyText))return ef(),!1;if(me(p.lessThan)&&Uw)return I.type=p.jsxTagStart,T3(),ft(),!1;const n=I.potentialArrowAt===I.start;switch(I.type){case p.slash:case p.assign:zV();case p._super:case p._this:case p.regexp:case p.num:case p.bigint:case p.decimal:case p.string:case p._null:case p._true:case p._false:return ft(),!1;case p._import:return ft(),me(p.dot)&&(I.tokens[I.tokens.length-1].type=p.name,ft(),gn()),!1;case p.name:{const e=I.tokens.length,t=I.start,r=I.contextualKeyword;return gn(),r===Ce._await?(E9(),!1):r===Ce._async&&me(p._function)&&!fo()?(ft(),yA(t,!1),!1):n&&r===Ce._async&&!fo()&&me(p.name)?(I.scopeDepth++,ad(!1),ht(p.arrow),Cp(e),!0):me(p._do)&&!fo()?(ft(),$u(),!1):n&&!fo()&&me(p.arrow)?(I.scopeDepth++,CS(!1),ht(p.arrow),Cp(e),!0):(I.tokens[I.tokens.length-1].identifierRole=An.Access,!1)}case p._do:return ft(),$u(),!1;case p.parenL:return N3(n);case p.bracketL:return ft(),R3(p.bracketR,!0),!1;case p.braceL:return US(!1,!1),!1;case p._function:return w9(),!1;case p.at:GS();case p._class:return wA(!1),!1;case p._new:return _9(),!1;case p.backQuote:return RS(),!1;case p.doubleColon:return ft(),NS(),!1;case p.hash:{const e=n3();return dg[e]||e===Re.backslash?ay():ft(),!1}default:return Mn(),!1}}function ay(){st(p.hash),gn()}function w9(){const n=I.start;gn(),st(p.dot)&&gn(),yA(n,!1)}function ef(){ft()}function $w(){ht(p.parenL),pa(),ht(p.parenR)}function N3(n){const e=I.snapshot(),t=I.tokens.length;ht(p.parenL);let r=!0;for(;!me(p.parenR)&&!I.error;){if(r)r=!1;else if(ht(p.comma),me(p.parenR))break;if(me(p.ellipsis)){g3(!1),DS();break}else ga(!1,!0)}return ht(p.parenR),n&&b9()&&w2()?(I.restoreFromSnapshot(e),I.scopeDepth++,Ef(),w2(),Cp(t),I.error?(I.restoreFromSnapshot(e),N3(!1),!1):!0):!1}function b9(){return me(p.colon)||!fo()}function w2(){return Kn?t9():sr?yK():st(p.arrow)}function DS(){(Kn||sr)&&A9()}function _9(){if(ht(p._new),st(p.dot)){gn();return}x9(),sr&&tK(),st(p.parenL)&&R3(p.parenR)}function x9(){NS(),st(p.questionDot)}function RS(){for(Nu(),Nu();!me(p.backQuote)&&!I.error;)ht(p.dollarBraceL),pa(),Nu(),Nu();ft()}function US(n,e){const t=_p();let r=!0;for(ft(),I.tokens[I.tokens.length-1].contextId=t;!st(p.braceR)&&!I.error;){if(r)r=!1;else if(ht(p.comma),st(p.braceR))break;let i=!1;if(me(p.ellipsis)){const a=I.tokens.length;if(p3(),n&&(I.tokens.length===a+2&&CS(e),st(p.braceR)))break;continue}n||(i=st(p.star)),!n&&tn(Ce._async)?(i&&Mn(),gn(),me(p.colon)||me(p.parenL)||me(p.braceR)||me(p.eq)||me(p.comma)||(me(p.star)&&(ft(),i=!0),Sp(t))):Sp(t),P9(n,e,t)}I.tokens[I.tokens.length-1].contextId=t}function M9(n){return!n&&(me(p.string)||me(p.num)||me(p.bracketL)||me(p.name)||!!(I.type&p.IS_KEYWORD))}function S9(n,e){const t=I.start;return me(p.parenL)?(n&&Mn(),b2(t,!1),!0):M9(n)?(Sp(e),b2(t,!1),!0):!1}function C9(n,e){if(st(p.colon)){n?ry(e):ga(!1);return}let t;n?I.scopeDepth===0?t=An.ObjectShorthandTopLevelDeclaration:e?t=An.ObjectShorthandBlockScopedDeclaration:t=An.ObjectShorthandFunctionScopedDeclaration:t=An.ObjectShorthand,I.tokens[I.tokens.length-1].identifierRole=t,ry(e,!0)}function P9(n,e,t){Kn?KG():sr&&dK(),S9(n,t)||C9(n,e)}function Sp(n){sr&&VS(),st(p.bracketL)?(I.tokens[I.tokens.length-1].contextId=n,ga(),ht(p.bracketR),I.tokens[I.tokens.length-1].contextId=n):(me(p.num)||me(p.string)||me(p.bigint)||me(p.decimal)?ql():ay(),I.tokens[I.tokens.length-1].identifierRole=An.ObjectKey,I.tokens[I.tokens.length-1].contextId=n)}function b2(n,e){const t=_p();I.scopeDepth++;const r=I.tokens.length;Ef(e,t),D3(n,t);const a=I.tokens.length;I.scopes.push(new tl(r,a,!0)),I.scopeDepth--}function Cp(n){pg(!0);const e=I.tokens.length;I.scopes.push(new tl(n,e,!0)),I.scopeDepth--}function D3(n,e=0){Kn?RG(n,e):sr?Z9(e):pg(!1,e)}function pg(n,e=0){n&&!me(p.braceL)?ga():$u(!0,e)}function R3(n,e=!1){let t=!0;for(;!st(n)&&!I.error;){if(t)t=!1;else if(ht(p.comma),st(n))break;U3(e)}}function U3(n){n&&me(p.comma)||(me(p.ellipsis)?(p3(),DS()):me(p.question)?ft():ga(!1,!0))}function gn(){ft(),I.tokens[I.tokens.length-1].type=p.name}function E9(){mg()}function B9(){ft(),!me(p.semi)&&!fo()&&(st(p.star),ga())}function T9(){gi(Ce._module),ht(p.braceL),zw(p.braceR)}function k9(n){return(n.type===p.name||!!(n.type&p.IS_KEYWORD))&&n.contextualKeyword!==Ce._from}function nl(n){const e=kn(0);ht(n||p.colon),Vs(),En(e)}function qE(){ht(p.modulo),gi(Ce._checks),st(p.parenL)&&(pa(),ht(p.parenR))}function OS(){const n=kn(0);ht(p.colon),me(p.modulo)?qE():(Vs(),me(p.modulo)&&qE()),En(n)}function I9(){ft(),HS(!0)}function L9(){ft(),gn(),me(p.lessThan)&&Mc(),ht(p.parenL),x2(),ht(p.parenR),OS(),jr()}function _2(){me(p._class)?I9():me(p._function)?L9():me(p._var)?F9():Oi(Ce._module)?st(p.dot)?R9():N9():tn(Ce._type)?U9():tn(Ce._opaque)?O9():tn(Ce._interface)?H9():me(p._export)?D9():Mn()}function F9(){ft(),Q3(),jr()}function N9(){for(me(p.string)?ql():gn(),ht(p.braceL);!me(p.braceR)&&!I.error;)me(p._import)?(ft(),J3()):Mn();ht(p.braceR)}function D9(){ht(p._export),st(p._default)?me(p._function)||me(p._class)?_2():(Vs(),jr()):me(p._var)||me(p._function)||me(p._class)||tn(Ce._opaque)?_2():me(p.star)||me(p.braceL)||tn(Ce._interface)||tn(Ce._type)||tn(Ce._opaque)?X3():Mn()}function R9(){gi(Ce._exports),RA(),jr()}function U9(){ft(),QS()}function O9(){ft(),$S(!0)}function H9(){ft(),HS()}function HS(n=!1){if(jw(),me(p.lessThan)&&Mc(),st(p._extends))do Rv();while(!n&&st(p.comma));if(tn(Ce._mixins)){ft();do Rv();while(st(p.comma))}if(tn(Ce._implements)){ft();do Rv();while(st(p.comma))}sy(n,!1,n)}function Rv(){O3(!1),me(p.lessThan)&&vA()}function WS(){HS()}function jw(){gn()}function QS(){jw(),me(p.lessThan)&&Mc(),nl(p.eq),jr()}function $S(n){gi(Ce._type),jw(),me(p.lessThan)&&Mc(),me(p.colon)&&nl(p.colon),n||nl(p.eq),jr()}function W9(){VS(),Q3(),st(p.eq)&&Vs()}function Mc(){const n=kn(0);me(p.lessThan)||me(p.typeParameterStart)?ft():Mn();do W9(),me(p.greaterThan)||ht(p.comma);while(!me(p.greaterThan)&&!I.error);ht(p.greaterThan),En(n)}function vA(){const n=kn(0);for(ht(p.lessThan);!me(p.greaterThan)&&!I.error;)Vs(),me(p.greaterThan)||ht(p.comma);ht(p.greaterThan),En(n)}function Q9(){if(gi(Ce._interface),st(p._extends))do Rv();while(st(p.comma));sy(!1,!1,!1)}function jS(){me(p.num)||me(p.string)?ql():gn()}function $9(){ni()===p.colon?(jS(),nl()):Vs(),ht(p.bracketR),nl()}function j9(){jS(),ht(p.bracketR),ht(p.bracketR),me(p.lessThan)||me(p.parenL)?zS():(st(p.question),nl())}function zS(){for(me(p.lessThan)&&Mc(),ht(p.parenL);!me(p.parenR)&&!me(p.ellipsis)&&!I.error;)oy(),me(p.parenR)||ht(p.comma);st(p.ellipsis)&&oy(),ht(p.parenR),nl()}function z9(){zS()}function sy(n,e,t){let r;for(e&&me(p.braceBarL)?(ht(p.braceBarL),r=p.braceBarR):(ht(p.braceL),r=p.braceR);!me(r)&&!I.error;){if(t&&tn(Ce._proto)){const i=ni();i!==p.colon&&i!==p.question&&(ft(),n=!1)}if(n&&tn(Ce._static)){const i=ni();i!==p.colon&&i!==p.question&&ft()}if(VS(),st(p.bracketL))st(p.bracketL)?j9():$9();else if(me(p.parenL)||me(p.lessThan))z9();else{if(tn(Ce._get)||tn(Ce._set)){const i=ni();(i===p.name||i===p.string||i===p.num)&&ft()}V9()}G9()}ht(r)}function V9(){if(me(p.ellipsis)){if(ht(p.ellipsis),st(p.comma)||st(p.semi),me(p.braceR))return;Vs()}else jS(),me(p.lessThan)||me(p.parenL)?zS():(st(p.question),nl())}function G9(){!st(p.semi)&&!st(p.comma)&&!me(p.braceR)&&!me(p.braceBarR)&&Mn()}function O3(n){for(n||gn();st(p.dot);)gn()}function K9(){O3(!0),me(p.lessThan)&&vA()}function q9(){ht(p._typeof),H3()}function X9(){for(ht(p.bracketL);I.pos<Lt.length&&!me(p.bracketR)&&(Vs(),!me(p.bracketR));)ht(p.comma);ht(p.bracketR)}function oy(){const n=ni();n===p.colon||n===p.question?(gn(),st(p.question),nl()):Vs()}function x2(){for(;!me(p.parenR)&&!me(p.ellipsis)&&!I.error;)oy(),me(p.parenR)||ht(p.comma);st(p.ellipsis)&&oy()}function H3(){let n=!1;const e=I.noAnonFunctionType;switch(I.type){case p.name:{if(tn(Ce._interface)){Q9();return}gn(),K9();return}case p.braceL:sy(!1,!1,!1);return;case p.braceBarL:sy(!1,!0,!1);return;case p.bracketL:X9();return;case p.lessThan:Mc(),ht(p.parenL),x2(),ht(p.parenR),ht(p.arrow),Vs();return;case p.parenL:if(ft(),!me(p.parenR)&&!me(p.ellipsis))if(me(p.name)){const t=ni();n=t!==p.question&&t!==p.colon}else n=!0;if(n)if(I.noAnonFunctionType=!1,Vs(),I.noAnonFunctionType=e,I.noAnonFunctionType||!(me(p.comma)||me(p.parenR)&&ni()===p.arrow)){ht(p.parenR);return}else st(p.comma);x2(),ht(p.parenR),ht(p.arrow),Vs();return;case p.minus:ft(),ef();return;case p.string:case p.num:case p._true:case p._false:case p._null:case p._this:case p._void:case p.star:ft();return;default:if(I.type===p._typeof){q9();return}else if(I.type&p.IS_KEYWORD){ft(),I.tokens[I.tokens.length-1].type=p.name;return}}Mn()}function Y9(){for(H3();!fo()&&(me(p.bracketL)||me(p.questionDot));)st(p.questionDot),ht(p.bracketL),st(p.bracketR)||(Vs(),ht(p.bracketR))}function W3(){st(p.question)?W3():Y9()}function XE(){W3(),!I.noAnonFunctionType&&st(p.arrow)&&Vs()}function YE(){for(st(p.bitwiseAND),XE();st(p.bitwiseAND);)XE()}function J9(){for(st(p.bitwiseOR),YE();st(p.bitwiseOR);)YE()}function Vs(){J9()}function RA(){nl()}function Q3(){gn(),me(p.colon)&&RA()}function VS(){(me(p.plus)||me(p.minus))&&(ft(),I.tokens[I.tokens.length-1].isType=!0)}function Z9(n){me(p.colon)&&OS(),pg(!1,n)}function eK(n,e,t){if(me(p.questionDot)&&ni()===p.lessThan){if(e){t.stop=!0;return}ft(),vA(),ht(p.parenL),Qu();return}else if(!e&&me(p.lessThan)){const r=I.snapshot();if(vA(),ht(p.parenL),Qu(),I.error)I.restoreFromSnapshot(r);else return}FS(n,e,t)}function tK(){if(me(p.lessThan)){const n=I.snapshot();vA(),I.error&&I.restoreFromSnapshot(n)}}function nK(){if(me(p.name)&&I.contextualKeyword===Ce._interface){const n=kn(0);return ft(),WS(),En(n),!0}else if(tn(Ce._enum))return $3(),!0;return!1}function rK(){return tn(Ce._enum)?($3(),!0):!1}function iK(n){if(n===Ce._declare){if(me(p._class)||me(p.name)||me(p._function)||me(p._var)||me(p._export)){const e=kn(1);_2(),En(e)}}else if(me(p.name)){if(n===Ce._interface){const e=kn(1);WS(),En(e)}else if(n===Ce._type){const e=kn(1);QS(),En(e)}else if(n===Ce._opaque){const e=kn(1);$S(!1),En(e)}}jr()}function aK(){return tn(Ce._type)||tn(Ce._interface)||tn(Ce._opaque)||tn(Ce._enum)}function sK(){return me(p.name)&&(I.contextualKeyword===Ce._type||I.contextualKeyword===Ce._interface||I.contextualKeyword===Ce._opaque||I.contextualKeyword===Ce._enum)}function oK(){if(tn(Ce._type)){const n=kn(1);ft(),me(p.braceL)?(KS(),Pp()):QS(),En(n)}else if(tn(Ce._opaque)){const n=kn(1);ft(),$S(!1),En(n)}else if(tn(Ce._interface)){const n=kn(1);ft(),WS(),En(n)}else xo(!0)}function cK(){return me(p.star)||tn(Ce._type)&&ni()===p.star}function lK(){if(Oi(Ce._type)){const n=kn(2);M2(),En(n)}else M2()}function uK(n){if(n&&me(p.lessThan)&&vA(),tn(Ce._implements)){const e=kn(0);ft(),I.tokens[I.tokens.length-1].type=p._implements;do jw(),me(p.lessThan)&&vA();while(st(p.comma));En(e)}}function dK(){me(p.lessThan)&&(Mc(),me(p.parenL)||Mn())}function AK(){const n=kn(0);st(p.question),me(p.colon)&&RA(),En(n)}function hK(){if(me(p._typeof)||tn(Ce._type)){const n=Ag();(k9(n)||n.type===p.braceL||n.type===p.star)&&ft()}}function fK(){const n=I.contextualKeyword===Ce._type||I.type===p._typeof;n?ft():gn(),tn(Ce._as)&&!xS(Ce._as)?(gn(),n&&!me(p.name)&&!(I.type&p.IS_KEYWORD)||gn()):(n&&(me(p.name)||I.type&p.IS_KEYWORD)&&gn(),Oi(Ce._as)&&gn())}function mK(){if(me(p.lessThan)){const n=kn(0);Mc(),En(n)}}function pK(){me(p.colon)&&RA()}function gK(){if(me(p.colon)){const n=I.noAnonFunctionType;I.noAnonFunctionType=!0,RA(),I.noAnonFunctionType=n}}function vK(n,e){if(me(p.lessThan)){const t=I.snapshot();let r=Jc(n,e);if(I.error)I.restoreFromSnapshot(t),I.type=p.typeParameterStart;else return r;const i=kn(0);if(Mc(),En(i),r=Jc(n,e),r)return!0;Mn()}return Jc(n,e)}function yK(){if(me(p.colon)){const n=kn(0),e=I.snapshot(),t=I.noAnonFunctionType;I.noAnonFunctionType=!0,OS(),I.noAnonFunctionType=t,fo()&&Mn(),me(p.arrow)||Mn(),I.error&&I.restoreFromSnapshot(e),En(n)}return st(p.arrow)}function wK(n,e=!1){if(I.tokens[I.tokens.length-1].contextualKeyword===Ce._async&&me(p.lessThan)){const t=I.snapshot();if(bK()&&!I.error)return;I.restoreFromSnapshot(t)}L3(n,e)}function bK(){I.scopeDepth++;const n=I.tokens.length;return Ef(),w2()?(Cp(n),!0):!1}function $3(){gi(Ce._enum),I.tokens[I.tokens.length-1].type=p._enum,gn(),_K()}function _K(){Oi(Ce._of)&&ft(),ht(p.braceL),xK(),ht(p.braceR)}function xK(){for(;!me(p.braceR)&&!I.error&&!st(p.ellipsis);)MK(),me(p.braceR)||ht(p.comma)}function MK(){gn(),st(p.eq)&&ft()}function SK(){if(zw(p.eof),I.scopes.push(new tl(0,I.tokens.length,!0)),I.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${I.scopeDepth}`);return new dq(I.tokens,I.scopes)}function xo(n){sr&&nK()||(me(p.at)&&GS(),CK(n))}function CK(n){if(Kn&&$G())return;const e=I.type;switch(e){case p._break:case p._continue:EK();return;case p._debugger:BK();return;case p._do:TK();return;case p._for:kK();return;case p._function:if(ni()===p.dot)break;n||Mn(),FK();return;case p._class:n||Mn(),wA(!0);return;case p._if:NK();return;case p._return:DK();return;case p._switch:RK();return;case p._throw:UK();return;case p._try:HK();return;case p._let:case p._const:n||Mn();case p._var:Uv(e!==p._var);return;case p._while:WK();return;case p.braceL:$u();return;case p.semi:QK();return;case p._export:case p._import:{const i=ni();if(i===p.parenL||i===p.dot)break;ft(),e===p._import?J3():X3();return}case p.name:if(I.contextualKeyword===Ce._async){const i=I.start,a=I.snapshot();if(ft(),me(p._function)&&!fo()){ht(p._function),yA(i,!0);return}else I.restoreFromSnapshot(a)}else if(I.contextualKeyword===Ce._using&&!qN()&&ni()===p.name){Uv(!0);return}else if(j3()){gi(Ce._await),Uv(!0);return}}const t=I.tokens.length;pa();let r=null;if(I.tokens.length===t+1){const i=I.tokens[I.tokens.length-1];i.type===p.name&&(r=i.contextualKeyword)}if(r==null){jr();return}st(p.colon)?$K():jK(r)}function j3(){if(!tn(Ce._await))return!1;const n=I.snapshot();return ft(),!tn(Ce._using)||Cs()||(ft(),!me(p.name)||Cs())?(I.restoreFromSnapshot(n),!1):(I.restoreFromSnapshot(n),!0)}function GS(){for(;me(p.at);)z3()}function z3(){if(ft(),st(p.parenL))pa(),ht(p.parenR);else{for(gn();st(p.dot);)gn();PK()}}function PK(){Kn?r9():V3()}function V3(){st(p.parenL)&&Qu()}function EK(){ft(),qc()||(gn(),jr())}function BK(){ft(),jr()}function TK(){ft(),xo(!1),ht(p._while),$w(),st(p.semi)}function kK(){I.scopeDepth++;const n=I.tokens.length;LK();const e=I.tokens.length;I.scopes.push(new tl(n,e,!1)),I.scopeDepth--}function IK(){return!(!tn(Ce._using)||xS(Ce._of))}function LK(){ft();let n=!1;if(tn(Ce._await)&&(n=!0,ft()),ht(p.parenL),me(p.semi)){n&&Mn(),v0();return}const e=j3();if(e||me(p._var)||me(p._let)||me(p._const)||IK()){if(e&&gi(Ce._await),ft(),G3(!0,I.type!==p._var),me(p._in)||tn(Ce._of)){JE(n);return}v0();return}if(pa(!0),me(p._in)||tn(Ce._of)){JE(n);return}n&&Mn(),v0()}function FK(){const n=I.start;ft(),yA(n,!0)}function NK(){ft(),$w(),xo(!1),st(p._else)&&xo(!1)}function DK(){ft(),qc()||(pa(),jr())}function RK(){ft(),$w(),I.scopeDepth++;const n=I.tokens.length;for(ht(p.braceL);!me(p.braceR)&&!I.error;)if(me(p._case)||me(p._default)){const t=me(p._case);ft(),t&&pa(),ht(p.colon)}else xo(!0);ft();const e=I.tokens.length;I.scopes.push(new tl(n,e,!1)),I.scopeDepth--}function UK(){ft(),pa(),jr()}function OK(){Hw(!0),Kn&&Cf()}function HK(){if(ft(),$u(),me(p._catch)){ft();let n=null;if(me(p.parenL)&&(I.scopeDepth++,n=I.tokens.length,ht(p.parenL),OK(),ht(p.parenR)),$u(),n!=null){const e=I.tokens.length;I.scopes.push(new tl(n,e,!1)),I.scopeDepth--}}st(p._finally)&&$u()}function Uv(n){ft(),G3(!1,n),jr()}function WK(){ft(),$w(),xo(!1)}function QK(){ft()}function $K(){xo(!0)}function jK(n){Kn?zG(n):sr?iK(n):jr()}function $u(n=!1,e=0){const t=I.tokens.length;I.scopeDepth++,ht(p.braceL),e&&(I.tokens[I.tokens.length-1].contextId=e),zw(p.braceR),e&&(I.tokens[I.tokens.length-1].contextId=e);const r=I.tokens.length;I.scopes.push(new tl(t,r,n)),I.scopeDepth--}function zw(n){for(;!st(n)&&!I.error;)xo(!0)}function v0(){ht(p.semi),me(p.semi)||pa(),ht(p.semi),me(p.parenR)||pa(),ht(p.parenR),xo(!1)}function JE(n){n?Oi(Ce._of):ft(),pa(),ht(p.parenR),xo(!1)}function G3(n,e){for(;;){if(zK(e),st(p.eq)){const t=I.tokens.length-1;ga(n),I.tokens[t].rhsEndIndex=I.tokens.length}if(!st(p.comma))break}}function zK(n){Hw(n),Kn?XG():sr&&pK()}function yA(n,e,t=!1){me(p.star)&&ft(),e&&!t&&!me(p.name)&&!me(p._yield)&&Mn();let r=null;me(p.name)&&(e||(r=I.tokens.length,I.scopeDepth++),ad(!1));const i=I.tokens.length;I.scopeDepth++,Ef(),D3(n);const a=I.tokens.length;I.scopes.push(new tl(i,a,!0)),I.scopeDepth--,r!==null&&(I.scopes.push(new tl(r,a,!0)),I.scopeDepth--)}function Ef(n=!1,e=0){Kn?qG():sr&&mK(),ht(p.parenL),e&&(I.tokens[I.tokens.length-1].contextId=e),PS(p.parenR,!1,!1,n,e),e&&(I.tokens[I.tokens.length-1].contextId=e)}function wA(n,e=!1){const t=_p();ft(),I.tokens[I.tokens.length-1].contextId=t,I.tokens[I.tokens.length-1].isExpression=!n;let r=null;n||(r=I.tokens.length,I.scopeDepth++),qK(n,e),XK();const i=I.tokens.length;if(VK(t),!I.error&&(I.tokens[i].contextId=t,I.tokens[I.tokens.length-1].contextId=t,r!==null)){const a=I.tokens.length;I.scopes.push(new tl(r,a,!1)),I.scopeDepth--}}function K3(){return me(p.eq)||me(p.semi)||me(p.braceR)||me(p.bang)||me(p.colon)}function q3(){return me(p.parenL)||me(p.lessThan)}function VK(n){for(ht(p.braceL);!st(p.braceR)&&!I.error;){if(st(p.semi))continue;if(me(p.at)){z3();continue}const e=I.start;GK(e,n)}}function GK(n,e){Kn&&ES([Ce._declare,Ce._public,Ce._protected,Ce._private,Ce._override]);let t=!1;if(me(p.name)&&I.contextualKeyword===Ce._static){if(gn(),q3()){Dm(n,!1);return}else if(K3()){Ov();return}if(I.tokens[I.tokens.length-1].type=p._static,t=!0,me(p.braceL)){I.tokens[I.tokens.length-1].contextId=e,$u();return}}KK(n,t,e)}function KK(n,e,t){if(Kn&&jG(e))return;if(st(p.star)){im(t),Dm(n,!1);return}im(t);let r=!1;const i=I.tokens[I.tokens.length-1];i.contextualKeyword===Ce._constructor&&(r=!0),ZE(),q3()?Dm(n,r):K3()?Ov():i.contextualKeyword===Ce._async&&!qc()?(I.tokens[I.tokens.length-1].type=p._async,me(p.star)&&ft(),im(t),ZE(),Dm(n,!1)):(i.contextualKeyword===Ce._get||i.contextualKeyword===Ce._set)&&!(qc()&&me(p.star))?(i.contextualKeyword===Ce._get?I.tokens[I.tokens.length-1].type=p._get:I.tokens[I.tokens.length-1].type=p._set,im(t),Dm(n,!1)):i.contextualKeyword===Ce._accessor&&!qc()?(im(t),Ov()):qc()?Ov():Mn()}function Dm(n,e){Kn?DA():sr&&me(p.lessThan)&&Mc(),b2(n,e)}function im(n){Sp(n)}function ZE(){if(Kn){const n=kn(0);st(p.question),En(n)}}function Ov(){if(Kn?(e3(p.bang),Cf()):sr&&me(p.colon)&&RA(),me(p.eq)){const n=I.tokens.length;ft(),ga(),I.tokens[n].rhsEndIndex=I.tokens.length}jr()}function qK(n,e=!1){Kn&&(!n||e)&&tn(Ce._implements)||(me(p.name)&&ad(!0),Kn?DA():sr&&me(p.lessThan)&&Mc())}function XK(){let n=!1;st(p._extends)?(I3(),n=!0):n=!1,Kn?GG(n):sr&&uK(n)}function X3(){const n=I.tokens.length-1;Kn&&OG()||(eq()?tq():ZK()?(gn(),me(p.comma)&&ni()===p.star?(ht(p.comma),ht(p.star),gi(Ce._as),gn()):Y3(),Pp()):st(p._default)?YK():rq()?JK():(KS(),Pp()),I.tokens[n].rhsEndIndex=I.tokens.length)}function YK(){if(Kn&&QG()||sr&&rK())return;const n=I.start;st(p._function)?yA(n,!0,!0):tn(Ce._async)&&ni()===p._function?(Oi(Ce._async),st(p._function),yA(n,!0,!0)):me(p._class)?wA(!0,!0):me(p.at)?(GS(),wA(!0,!0)):(ga(),jr())}function JK(){Kn?VG():sr?oK():xo(!0)}function ZK(){if(Kn&&C3())return!1;if(sr&&sK())return!1;if(me(p.name))return I.contextualKeyword!==Ce._async;if(!me(p._default))return!1;const n=MS(),e=Ag(),t=e.type===p.name&&e.contextualKeyword===Ce._from;if(e.type===p.comma)return!0;if(t){const r=Lt.charCodeAt(t3(n+4));return r===Re.quotationMark||r===Re.apostrophe}return!1}function Y3(){st(p.comma)&&KS()}function Pp(){Oi(Ce._from)&&(ql(),Z3()),jr()}function eq(){return sr?cK():me(p.star)}function tq(){sr?lK():M2()}function M2(){ht(p.star),tn(Ce._as)?nq():Pp()}function nq(){ft(),I.tokens[I.tokens.length-1].type=p._as,gn(),Y3(),Pp()}function rq(){return Kn&&C3()||sr&&aK()||I.type===p._var||I.type===p._const||I.type===p._let||I.type===p._function||I.type===p._class||tn(Ce._async)||me(p.at)}function KS(){let n=!0;for(ht(p.braceL);!st(p.braceR)&&!I.error;){if(n)n=!1;else if(ht(p.comma),st(p.braceR))break;iq()}}function iq(){if(Kn){WG();return}gn(),I.tokens[I.tokens.length-1].identifierRole=An.ExportAccess,Oi(Ce._as)&&gn()}function aq(){const n=I.snapshot();return gi(Ce._module),Oi(Ce._from)?tn(Ce._from)?(I.restoreFromSnapshot(n),!0):(I.restoreFromSnapshot(n),!1):me(p.comma)?(I.restoreFromSnapshot(n),!1):(I.restoreFromSnapshot(n),!0)}function sq(){tn(Ce._module)&&aq()&&ft()}function J3(){if(Kn&&me(p.name)&&ni()===p.eq){v2();return}if(Kn&&tn(Ce._type)){const n=Ag();if(n.type===p.name&&n.contextualKeyword!==Ce._from){if(gi(Ce._type),ni()===p.eq){v2();return}}else(n.type===p.star||n.type===p.braceL)&&gi(Ce._type)}me(p.string)||(sq(),cq(),gi(Ce._from)),ql(),Z3(),jr()}function oq(){return me(p.name)}function eB(){ny()}function cq(){sr&&hK();let n=!0;if(!(oq()&&(eB(),!st(p.comma)))){if(me(p.star)){ft(),gi(Ce._as),eB();return}for(ht(p.braceL);!st(p.braceR)&&!I.error;){if(n)n=!1;else if(st(p.colon)&&Mn("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),ht(p.comma),st(p.braceR))break;lq()}}}function lq(){if(Kn){HG();return}if(sr){fK();return}ny(),tn(Ce._as)&&(I.tokens[I.tokens.length-1].identifierRole=An.ImportAccess,ft(),ny())}function Z3(){(me(p._with)||tn(Ce._assert)&&!Cs())&&(ft(),US(!1,!1))}function uq(){return I.pos===0&&Lt.charCodeAt(0)===Re.numberSign&&Lt.charCodeAt(1)===Re.exclamationMark&&i3(2),r3(),SK()}let dq=class{constructor(e,t){this.tokens=e,this.scopes=t}};function Aq(n,e,t,r){if(r&&t)throw new Error("Cannot combine flow and typescript plugins.");UV(n,e,t,r);const i=uq();if(I.error)throw NV(I.error);return i}function hq(n){let e=n.currentIndex(),t=0;const r=n.currentToken();do{const i=n.tokens[e];if(i.isOptionalChainStart&&t++,i.isOptionalChainEnd&&t--,t+=i.numNullishCoalesceStarts,t-=i.numNullishCoalesceEnds,i.contextualKeyword===Ce._await&&i.identifierRole==null&&i.scopeDepth===r.scopeDepth)return!0;e+=1}while(t>0&&e<n.tokens.length);return!1}class qm{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(e,t,r,i,a){this.code=e,this.tokens=t,this.isFlowEnabled=r,this.disableESTransforms=i,this.helperManager=a,qm.prototype.__init.call(this),qm.prototype.__init2.call(this),qm.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(e){this.resultCode=e.resultCode,this.tokenIndex=e.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(e){const t=this.resultCode.slice(e.resultCode.length);return this.resultCode=e.resultCode,t}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(e,t){return this.matches1AtIndex(e,p.name)&&this.tokens[e].contextualKeyword===t}identifierNameAtIndex(e){return this.identifierNameForToken(this.tokens[e])}identifierNameAtRelativeIndex(e){return this.identifierNameForToken(this.tokenAtRelativeIndex(e))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(e){return this.code.slice(e.start,e.end)}rawCodeForToken(e){return this.code.slice(e.start,e.end)}stringValueAtIndex(e){return this.stringValueForToken(this.tokens[e])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(e){return this.code.slice(e.start+1,e.end-1)}matches1AtIndex(e,t){return this.tokens[e].type===t}matches2AtIndex(e,t,r){return this.tokens[e].type===t&&this.tokens[e+1].type===r}matches3AtIndex(e,t,r,i){return this.tokens[e].type===t&&this.tokens[e+1].type===r&&this.tokens[e+2].type===i}matches1(e){return this.tokens[this.tokenIndex].type===e}matches2(e,t){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t}matches3(e,t,r){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===r}matches4(e,t,r,i){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===r&&this.tokens[this.tokenIndex+3].type===i}matches5(e,t,r,i,a){return this.tokens[this.tokenIndex].type===e&&this.tokens[this.tokenIndex+1].type===t&&this.tokens[this.tokenIndex+2].type===r&&this.tokens[this.tokenIndex+3].type===i&&this.tokens[this.tokenIndex+4].type===a}matchesContextual(e){return this.matchesContextualAtIndex(this.tokenIndex,e)}matchesContextIdAndLabel(e,t){return this.matches1(e)&&this.currentToken().contextId===t}previousWhitespaceAndComments(){let e=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(e=e.replace(/@flow/g,"")),e}replaceToken(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(e){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=e,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let e=0;for(;!this.isAtEnd();){if(this.matches1(p.braceL))e++;else if(this.matches1(p.braceR)){if(e===0)return;e--}this.removeToken()}}copyExpectedToken(e){if(this.tokens[this.tokenIndex].type!==e)throw new Error(`Expected token ${e}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(e){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=e,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const e=this.currentToken();if((e.numNullishCoalesceStarts||e.isOptionalChainStart)&&(e.isAsyncOperation=hq(this)),!this.disableESTransforms){if(e.numNullishCoalesceStarts)for(let t=0;t<e.numNullishCoalesceStarts;t++)e.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";e.isOptionalChainStart&&(e.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===p._delete?e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):e.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const e=this.currentToken();if(e.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),e.numNullishCoalesceEnds&&!this.disableESTransforms)for(let t=0;t<e.numNullishCoalesceEnds;t++)this.resultCode+="))"}appendCode(e){this.resultCode+=e}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const e=this.currentToken();return this.code.slice(e.start,e.end)}tokenAtRelativeIndex(e){return this.tokens[this.tokenIndex+e]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function fq(n,e,t,r){const i=e.snapshot(),a=mq(e);let s=[];const o=[],c=[];let l=null;const u=[],A=[],f=e.currentToken().contextId;if(f==null)throw new Error("Expected non-null class context ID on class open-brace.");for(e.nextToken();!e.matchesContextIdAndLabel(p.braceR,f);)if(e.matchesContextual(Ce._constructor)&&!e.currentToken().isType)({constructorInitializerStatements:s,constructorInsertPos:l}=tB(e));else if(e.matches1(p.semi))r||A.push({start:e.currentIndex(),end:e.currentIndex()+1}),e.nextToken();else if(e.currentToken().isType)e.nextToken();else{const h=e.currentIndex();let g=!1,y=!1,w=!1;for(;cy(e.currentToken());)e.matches1(p._static)&&(g=!0),e.matches1(p.hash)&&(y=!0),(e.matches1(p._declare)||e.matches1(p._abstract))&&(w=!0),e.nextToken();if(g&&e.matches1(p.braceL)){y0(e,f);continue}if(y){y0(e,f);continue}if(e.matchesContextual(Ce._constructor)&&!e.currentToken().isType){({constructorInitializerStatements:s,constructorInsertPos:l}=tB(e));continue}const v=e.currentIndex();if(pq(e),e.matches1(p.lessThan)||e.matches1(p.parenL)){y0(e,f);continue}for(;e.currentToken().isType;)e.nextToken();if(e.matches1(p.eq)){const S=e.currentIndex(),C=e.currentToken().rhsEndIndex;if(C==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(e.nextToken();e.currentIndex()<C;)n.processToken();let M;g?(M=t.claimFreeName("__initStatic"),c.push(M)):(M=t.claimFreeName("__init"),o.push(M)),u.push({initializerName:M,equalsIndex:S,start:v,end:e.currentIndex()})}else(!r||w)&&A.push({start:h,end:e.currentIndex()})}return e.restoreToSnapshot(i),r?{headerInfo:a,constructorInitializerStatements:s,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:l,fields:[],rangesToRemove:A}:{headerInfo:a,constructorInitializerStatements:s,instanceInitializerNames:o,staticInitializerNames:c,constructorInsertPos:l,fields:u,rangesToRemove:A}}function y0(n,e){for(n.nextToken();n.currentToken().contextId!==e;)n.nextToken();for(;cy(n.tokenAtRelativeIndex(-1));)n.previousToken()}function mq(n){const e=n.currentToken(),t=e.contextId;if(t==null)throw new Error("Expected context ID on class token.");const r=e.isExpression;if(r==null)throw new Error("Expected isExpression on class token.");let i=null,a=!1;for(n.nextToken(),n.matches1(p.name)&&(i=n.identifierName());!n.matchesContextIdAndLabel(p.braceL,t);)n.matches1(p._extends)&&!n.currentToken().isType&&(a=!0),n.nextToken();return{isExpression:r,className:i,hasSuperclass:a}}function tB(n){const e=[];n.nextToken();const t=n.currentToken().contextId;if(t==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!n.matchesContextIdAndLabel(p.parenR,t);)if(n.currentToken().contextId===t){if(n.nextToken(),cy(n.currentToken())){for(n.nextToken();cy(n.currentToken());)n.nextToken();const a=n.currentToken();if(a.type!==p.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const s=n.identifierNameForToken(a);e.push(`this.${s} = ${s}`)}}else n.nextToken();for(n.nextToken();n.currentToken().isType;)n.nextToken();let r=n.currentIndex(),i=!1;for(;!n.matchesContextIdAndLabel(p.braceR,t);){if(!i&&n.matches2(p._super,p.parenL)){n.nextToken();const a=n.currentToken().contextId;if(a==null)throw new Error("Expected a context ID on the super call");for(;!n.matchesContextIdAndLabel(p.parenR,a);)n.nextToken();r=n.currentIndex(),i=!0}n.nextToken()}return n.nextToken(),{constructorInitializerStatements:e,constructorInsertPos:r}}function cy(n){return[p._async,p._get,p._set,p.plus,p.minus,p._readonly,p._static,p._public,p._private,p._protected,p._override,p._abstract,p.star,p._declare,p.hash].includes(n.type)}function pq(n){if(n.matches1(p.bracketL)){const t=n.currentToken().contextId;if(t==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!n.matchesContextIdAndLabel(p.bracketR,t);)n.nextToken();n.nextToken()}else n.nextToken()}function e4(n){if(n.removeInitialToken(),n.removeToken(),n.removeToken(),n.removeToken(),n.matches1(p.parenL))n.removeToken(),n.removeToken(),n.removeToken();else for(;n.matches1(p.dot);)n.removeToken(),n.removeToken()}const t4={typeDeclarations:new Set,valueDeclarations:new Set};function n4(n){const e=new Set,t=new Set;for(let r=0;r<n.tokens.length;r++){const i=n.tokens[r];i.type===p.name&&ZN(i)&&(i.isType?e.add(n.identifierNameForToken(i)):t.add(n.identifierNameForToken(i)))}return{typeDeclarations:e,valueDeclarations:t}}function r4(n){let e=n.currentIndex();for(;!n.matches1AtIndex(e,p.braceR);)e++;return n.matchesContextualAtIndex(e+1,Ce._from)&&n.matches1AtIndex(e+2,p.string)}function Kd(n){(n.matches2(p._with,p.braceL)||n.matches2(p.name,p.braceL)&&n.matchesContextual(Ce._assert))&&(n.removeToken(),n.removeToken(),n.removeBalancedCode(),n.removeToken())}function i4(n,e,t,r){if(!n||e)return!1;const i=t.currentToken();if(i.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const a=i.rhsEndIndex-t.currentIndex();if(a!==3&&!(a===4&&t.matches1AtIndex(i.rhsEndIndex-1,p.semi)))return!1;const s=t.tokenAtRelativeIndex(2);if(s.type!==p.name)return!1;const o=t.identifierNameForToken(s);return r.typeDeclarations.has(o)&&!r.valueDeclarations.has(o)}class Xm extends xc{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(e,t,r,i,a,s,o,c,l,u,A,f){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=r,this.nameManager=i,this.helperManager=a,this.reactHotLoaderTransformer=s,this.enableLegacyBabel5ModuleInterop=o,this.enableLegacyTypeScriptModuleInterop=c,this.isTypeScriptTransformEnabled=l,this.isFlowTransformEnabled=u,this.preserveDynamicImport=A,this.keepUnusedImports=f,Xm.prototype.__init.call(this),Xm.prototype.__init2.call(this),Xm.prototype.__init3.call(this),this.declarationInfo=l?n4(t):t4}getPrefixCode(){let e="";return this.hadExport&&(e+='Object.defineProperty(exports, "__esModule", {value: true});'),e}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
module.exports = exports.default;
`:""}process(){return this.tokens.matches3(p._import,p.name,p.eq)?this.processImportEquals():this.tokens.matches1(p._import)?(this.processImport(),!0):this.tokens.matches2(p._export,p.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(p._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(p.name,p.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(p.name)||this.tokens.matches1(p.jsxName)?this.processIdentifier():this.tokens.matches1(p.eq)?this.processAssignment():this.tokens.matches1(p.assign)?this.processComplexAssignment():this.tokens.matches1(p.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(e)?e4(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(p._import,p.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const t=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${t}require`);const r=this.tokens.currentToken().contextId;if(r==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(p.parenR,r);)this.rootTransformer.processToken();this.tokens.replaceToken(t?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),this.tokens.appendCode(this.importProcessor.claimImportCode(t))}Kd(this.tokens),this.tokens.matches1(p.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(Ce._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Ce._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(p.name)||this.tokens.matches1(p.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(p.string))return!1;let e=!1,t=!1;for(;!this.tokens.matches1(p.string);)(!e&&this.tokens.matches1(p.braceL)||this.tokens.matches1(p.comma))&&(this.tokens.removeToken(),this.tokens.matches1(p.braceR)||(t=!0),(this.tokens.matches2(p.name,p.comma)||this.tokens.matches2(p.name,p.braceR)||this.tokens.matches4(p.name,p.name,p.name,p.comma)||this.tokens.matches4(p.name,p.name,p.name,p.braceR))&&(e=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?t&&!e:!1}removeRemainingImport(){for(;!this.tokens.matches1(p.string);)this.tokens.removeToken()}processIdentifier(){const e=this.tokens.currentToken();if(e.shadowsGlobal)return!1;if(e.identifierRole===An.ObjectShorthand)return this.processObjectShorthand();if(e.identifierRole!==An.Access)return!1;const t=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(e));if(!t)return!1;let r=this.tokens.currentIndex()+1;for(;r<this.tokens.tokens.length&&this.tokens.tokens[r].type===p.parenR;)r++;return this.tokens.tokens[r].type===p.parenL?this.tokens.tokenAtRelativeIndex(1).type===p.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==p._new?(this.tokens.replaceToken(`${t}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR)):this.tokens.replaceToken(`(0, ${t})`):this.tokens.replaceToken(t),!0}processObjectShorthand(){const e=this.tokens.identifierName(),t=this.importProcessor.getIdentifierReplacement(e);return t?(this.tokens.replaceToken(`${e}: ${t}`),!0):!1}processExport(){if(this.tokens.matches2(p._export,p._enum)||this.tokens.matches3(p._export,p._const,p._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(p._export,p._default))return this.tokens.matches3(p._export,p._default,p._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(p._export,p.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(p._export,p.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Ce._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(p.braceL)){for(;!this.tokens.matches1(p.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(p._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(Ce._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Kd(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(p._export,p._var)||this.tokens.matches2(p._export,p._let)||this.tokens.matches2(p._export,p._const))return this.processExportVar(),!0;if(this.tokens.matches2(p._export,p._function)||this.tokens.matches3(p._export,p.name,p._function))return this.processExportFunction(),!0;if(this.tokens.matches2(p._export,p._class)||this.tokens.matches3(p._export,p._abstract,p._class)||this.tokens.matches2(p._export,p.at))return this.processExportClass(),!0;if(this.tokens.matches2(p._export,p.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.isType||t.type!==p.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,p.dot)||e>=2&&[p._var,p._let,p._const].includes(this.tokens.tokens[e-2].type))return!1;const r=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return r?(this.tokens.copyToken(),this.tokens.appendCode(` ${r} =`),!0):!1}processComplexAssignment(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e-1];if(t.type!==p.name||t.shadowsGlobal||e>=2&&this.tokens.matches1AtIndex(e-2,p.dot))return!1;const r=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(t));return r?(this.tokens.appendCode(` = ${r}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e+1];if(t.type!==p.name||t.shadowsGlobal||e+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(e+2,p.dot)||this.tokens.matches1AtIndex(e+2,p.bracketL)||this.tokens.matches1AtIndex(e+2,p.parenL)))return!1;const r=this.tokens.identifierNameForToken(t),i=this.importProcessor.resolveExportBinding(r);return i?(this.tokens.appendCode(`${i} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const e=this.tokens.currentIndex(),t=this.tokens.tokens[e],r=this.tokens.tokens[e+1];if(t.type!==p.name||t.shadowsGlobal||e>=1&&this.tokens.matches1AtIndex(e-1,p.dot))return!1;const i=this.tokens.identifierNameForToken(t),a=this.importProcessor.resolveExportBinding(i);if(!a)return!1;const s=this.tokens.rawCodeForToken(r),o=this.importProcessor.getIdentifierReplacement(i)||i;if(s==="++")this.tokens.replaceToken(`(${o} = ${a} = ${o} + 1, ${o} - 1)`);else if(s==="--")this.tokens.replaceToken(`(${o} = ${a} = ${o} - 1, ${o} + 1)`);else throw new Error(`Unexpected operator: ${s}`);return this.tokens.removeToken(),!0}processExportDefault(){let e=!0;if(this.tokens.matches4(p._export,p._default,p._function,p.name)||this.tokens.matches5(p._export,p._default,p.name,p._function,p.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Ce._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${t};`)}else if(this.tokens.matches4(p._export,p._default,p._class,p.name)||this.tokens.matches5(p._export,p._default,p._abstract,p._class,p.name)||this.tokens.matches3(p._export,p._default,p.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(p._abstract)&&this.tokens.removeToken();const t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${t};`)}else if(i4(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))e=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const t=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${t}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${t} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(t)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");e&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(p.at);)if(this.tokens.copyToken(),this.tokens.matches1(p.parenL))this.tokens.copyExpectedToken(p.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR);else{for(this.tokens.copyExpectedToken(p.name);this.tokens.matches1(p.dot);)this.tokens.copyExpectedToken(p.dot),this.tokens.copyExpectedToken(p.name);this.tokens.matches1(p.parenL)&&(this.tokens.copyExpectedToken(p.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let e=this.tokens.currentIndex();if(e++,e++,!this.tokens.matches1AtIndex(e,p.name))return!1;for(e++;e<this.tokens.tokens.length&&this.tokens.tokens[e].isType;)e++;return!!this.tokens.matches1AtIndex(e,p.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const e=this.tokens.identifierName();for(;!this.tokens.matches1(p.eq);)this.rootTransformer.processToken();const t=this.tokens.currentToken().rhsEndIndex;if(t==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${e} = ${e}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.matches1(p.braceL);e&&this.tokens.appendCode("(");let t=0;for(;;)if(this.tokens.matches1(p.braceL)||this.tokens.matches1(p.dollarBraceL)||this.tokens.matches1(p.bracketL))t++,this.tokens.copyToken();else if(this.tokens.matches1(p.braceR)||this.tokens.matches1(p.bracketR))t--,this.tokens.copyToken();else{if(t===0&&!this.tokens.matches1(p.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(p.eq)){const r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<r;)this.rootTransformer.processToken()}else{const r=this.tokens.currentToken();if(JN(r)){const i=this.tokens.identifierName();let a=this.importProcessor.getIdentifierReplacement(i);if(a===null)throw new Error(`Expected a replacement for ${i} in \`export var\` syntax.`);jV(r)&&(a=`${i}: ${a}`),this.tokens.replaceToken(a)}else this.rootTransformer.processToken()}}if(e){const r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const e=this.processNamedFunction();this.tokens.appendCode(` exports.${e} = ${e};`)}processNamedFunction(){if(this.tokens.matches1(p._function))this.tokens.copyToken();else if(this.tokens.matches2(p.name,p._function)){if(!this.tokens.matchesContextual(Ce._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(p.star)&&this.tokens.copyToken(),!this.tokens.matches1(p.name))throw new Error("Expected identifier for exported function name.");const e=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(p.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(p.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.braceR),e}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(p._abstract)&&this.tokens.removeToken();const e=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${e} = ${e};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=r4(this.tokens),t=[];for(;;){if(this.tokens.matches1(p.braceR)){this.tokens.removeToken();break}const r=xp(this.tokens);for(;this.tokens.currentIndex()<r.endIndex;)this.tokens.removeToken();if(!(r.isType||!e&&this.shouldElideExportedIdentifier(r.leftName))){const a=r.rightName;a==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const s=r.leftName,o=this.importProcessor.getIdentifierReplacement(s);t.push(`exports.${a} = ${o||s};`)}if(this.tokens.matches1(p.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(p.comma,p.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(p.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(Ce._from)){this.tokens.removeToken();const r=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(r)),Kd(this.tokens)}else this.tokens.appendCode(t.join(" "));this.tokens.matches1(p.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(p.string);)this.tokens.removeToken();const e=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(e)),Kd(this.tokens),this.tokens.matches1(p.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(e)}}class gq extends xc{constructor(e,t,r,i,a,s,o,c){super(),this.tokens=e,this.nameManager=t,this.helperManager=r,this.reactHotLoaderTransformer=i,this.isTypeScriptTransformEnabled=a,this.isFlowTransformEnabled=s,this.keepUnusedImports=o,this.nonTypeIdentifiers=a&&!o?h3(e,c):new Set,this.declarationInfo=a&&!o?n4(e):t4,this.injectCreateRequireForImportRequire=!!c.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(p._import,p.name,p.eq))return this.processImportEquals();if(this.tokens.matches4(p._import,p.name,p.name,p.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Ce._type)){this.tokens.removeInitialToken();for(let e=0;e<7;e++)this.tokens.removeToken();return!0}if(this.tokens.matches2(p._export,p.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(p._export,p._import,p.name,p.name,p.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Ce._type)){this.tokens.removeInitialToken();for(let e=0;e<8;e++)this.tokens.removeToken();return!0}if(this.tokens.matches1(p._import))return this.processImport();if(this.tokens.matches2(p._export,p._default))return this.processExportDefault();if(this.tokens.matches2(p._export,p.braceL))return this.processNamedExports();if(this.tokens.matches2(p._export,p.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Ce._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(p.braceL)){for(;!this.tokens.matches1(p.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(p._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(Ce._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Kd(this.tokens)),!0}return!1}processImportEquals(){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(e)?e4(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(p._import,p.parenL))return!1;const e=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(e);!this.tokens.matches1(p.string);)this.tokens.removeToken();this.tokens.removeToken(),Kd(this.tokens),this.tokens.matches1(p.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(p._import),this.tokens.matchesContextual(Ce._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,p.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Ce._from))return!0;if(this.tokens.matches1(p.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(Ce._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Ce._from)&&this.tokens.copyToken();let e=!1,t=!1,r=!1;if(this.tokens.matches1(p.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(p.comma)&&this.tokens.removeToken()):(e=!0,this.tokens.copyToken(),this.tokens.matches1(p.comma)&&(r=!0,this.tokens.removeToken()))),this.tokens.matches1(p.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(r&&this.tokens.appendCode(","),e=!0,this.tokens.copyExpectedToken(p.star),this.tokens.copyExpectedToken(p.name),this.tokens.copyExpectedToken(p.name));else if(this.tokens.matches1(p.braceL)){for(r&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(p.braceR);){t=!0;const i=xp(this.tokens);if(i.isType||this.shouldAutomaticallyElideImportedName(i.rightName)){for(;this.tokens.currentIndex()<i.endIndex;)this.tokens.removeToken();this.tokens.matches1(p.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<i.endIndex;)this.tokens.copyToken();this.tokens.matches1(p.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(p.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!e:this.isFlowTransformEnabled?t&&!e:!1}shouldAutomaticallyElideImportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(e)}processExportDefault(){if(i4(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(p._export,p._default,p._function,p.name)||this.tokens.matches5(p._export,p._default,p.name,p._function,p.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Ce._async)||this.tokens.matches4(p._export,p._default,p._class,p.name)||this.tokens.matches5(p._export,p._default,p._abstract,p._class,p.name))&&this.reactHotLoaderTransformer){const t=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${t}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${t} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(t),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(p._export),this.tokens.copyExpectedToken(p.braceL);const e=r4(this.tokens);let t=!1;for(;!this.tokens.matches1(p.braceR);){const r=xp(this.tokens);if(r.isType||!e&&this.shouldElideExportedName(r.leftName)){for(;this.tokens.currentIndex()<r.endIndex;)this.tokens.removeToken();this.tokens.matches1(p.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<r.endIndex;)this.tokens.copyToken();this.tokens.matches1(p.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(p.braceR),!this.keepUnusedImports&&e&&!t&&(this.tokens.removeToken(),this.tokens.removeToken(),Kd(this.tokens)),!0}shouldElideExportedName(e){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(e)&&!this.declarationInfo.valueDeclarations.has(e)}}class vq extends xc{constructor(e,t,r){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=r}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(p._enum)?(this.processEnum(),!0):this.tokens.matches2(p._export,p._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(p._export,p._default,p._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${e} = ${e};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const e=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${e};`):this.tokens.appendCode(` export default ${e};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(p.name);let e=!1;this.tokens.matchesContextual(Ce._of)&&(this.tokens.removeToken(),e=this.tokens.matchesContextual(Ce._symbol),this.tokens.removeToken());const t=this.tokens.matches3(p.braceL,p.name,p.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const r=!e&&!t;for(this.tokens.replaceTokenTrimmingLeftWhitespace(r?".Mirrored([":"({");!this.tokens.matches1(p.braceR);){if(this.tokens.matches1(p.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(e,t),this.tokens.matches1(p.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(r?"]);":"});")}processEnumElement(e,t){if(e){const r=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${r}")`)}else t?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function yq(n){let e,t=n[0],r=1;for(;r<n.length;){const i=n[r],a=n[r+1];if(r+=2,(i==="optionalAccess"||i==="optionalCall")&&t==null)return;i==="access"||i==="optionalAccess"?(e=t,t=a(t)):(i==="call"||i==="optionalCall")&&(t=a((...s)=>t.call(e,...s)),e=void 0)}return t}const i1="jest",wq=["mock","unmock","enableAutomock","disableAutomock"];class qS extends xc{__init(){this.hoistedFunctionNames=[]}constructor(e,t,r,i){super(),this.rootTransformer=e,this.tokens=t,this.nameManager=r,this.importProcessor=i,qS.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(p.name,p.dot,p.name,p.parenL)&&this.tokens.identifierName()===i1?yq([this,"access",e=>e.importProcessor,"optionalAccess",e=>e.getGlobalNames,"call",e=>e(),"optionalAccess",e=>e.has,"call",e=>e(i1)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(e=>`${e}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let e=!1;for(;this.tokens.matches3(p.dot,p.name,p.parenL);){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(wq.includes(t)){const i=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(i),this.tokens.replaceToken(`function ${i}(){${i1}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR),this.tokens.appendCode(";}"),e=!1}else e?this.tokens.copyToken():this.tokens.replaceToken(`${i1}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.parenR),e=!0}return!0}}class bq extends xc{constructor(e){super(),this.tokens=e}process(){if(this.tokens.matches1(p.num)){const e=this.tokens.currentTokenCode();if(e.includes("_"))return this.tokens.replaceToken(e.replace(/_/g,"")),!0}return!1}}class _q extends xc{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){return this.tokens.matches2(p._catch,p.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class xq extends xc{constructor(e,t){super(),this.tokens=e,this.nameManager=t}process(){if(this.tokens.matches1(p.nullishCoalescing)){const r=this.tokens.currentToken();return this.tokens.tokens[r.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(p._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const t=this.tokens.currentToken().subscriptStartIndex;if(t!=null&&this.tokens.tokens[t].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==p._super){const r=this.nameManager.claimFreeName("_");let i;if(t>0&&this.tokens.matches1AtIndex(t-1,p._delete)&&this.isLastSubscriptInChain()?i=`${r} => delete ${r}`:i=`${r} => ${r}`,this.tokens.tokens[t].isAsyncOperation&&(i=`async ${i}`),this.tokens.matches2(p.questionDot,p.parenL)||this.tokens.matches2(p.questionDot,p.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${i}`);else if(this.tokens.matches2(p.questionDot,p.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}`);else if(this.tokens.matches1(p.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}.`);else if(this.tokens.matches1(p.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}.`);else if(this.tokens.matches1(p.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}[`);else if(this.tokens.matches1(p.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${i}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let e=0;for(let t=this.tokens.currentIndex()+1;;t++){if(t>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e++:this.tokens.tokens[t].isOptionalChainEnd&&e--,e<0)return!0;if(e===0&&this.tokens.tokens[t].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let e=0,t=this.tokens.currentIndex()-1;for(;;){if(t<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[t].isOptionalChainStart?e--:this.tokens.tokens[t].isOptionalChainEnd&&e++,e<0)return!1;if(e===0&&this.tokens.tokens[t].subscriptStartIndex!=null)return this.tokens.tokens[t-1].type===p._super;t--}}}class Mq extends xc{constructor(e,t,r,i){super(),this.rootTransformer=e,this.tokens=t,this.importProcessor=r,this.options=i}process(){const e=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return t?this.tokens.replaceToken(`(0, ${t})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}if(this.tokens.matches3(p.name,p.dot,p.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const t=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return this.tokens.replaceToken(t),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(e),!0}return!1}tryProcessCreateClassCall(e){const t=this.findDisplayName(e);t&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(p.parenL),this.tokens.copyExpectedToken(p.braceL),this.tokens.appendCode(`displayName: '${t}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(p.braceR),this.tokens.copyExpectedToken(p.parenR))}findDisplayName(e){return e<2?null:this.tokens.matches2AtIndex(e-2,p.name,p.eq)?this.tokens.identifierNameAtIndex(e-2):e>=2&&this.tokens.tokens[e-2].identifierRole===An.ObjectKey?this.tokens.identifierNameAtIndex(e-2):this.tokens.matches2AtIndex(e-2,p._export,p._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const t=(this.options.filePath||"unknown").split("/"),r=t[t.length-1],i=r.lastIndexOf("."),a=i===-1?r:r.slice(0,i);return a==="index"&&t[t.length-2]?t[t.length-2]:a}classNeedsDisplayName(){let e=this.tokens.currentIndex();if(!this.tokens.matches2(p.parenL,p.braceL))return!1;const t=e+1,r=this.tokens.tokens[t].contextId;if(r==null)throw new Error("Expected non-null context ID on object open-brace.");for(;e<this.tokens.tokens.length;e++){const i=this.tokens.tokens[e];if(i.type===p.braceR&&i.contextId===r){e++;break}if(this.tokens.identifierNameAtIndex(e)==="displayName"&&this.tokens.tokens[e].identifierRole===An.ObjectKey&&i.contextId===r)return!1}if(e===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(e,p.parenR)||this.tokens.matches2AtIndex(e,p.comma,p.parenR)}}class XS extends xc{__init(){this.extractedDefaultExportName=null}constructor(e,t){super(),this.tokens=e,this.filePath=t,XS.prototype.__init.call(this)}setExtractedDefaultExportName(e){this.extractedDefaultExportName=e}getPrefixCode(){return`
      (function () {
        var enterModule = require('react-hot-loader').enterModule;
        enterModule && enterModule(module);
      })();`.replace(/\s+/g," ").trim()}getSuffixCode(){const e=new Set;for(const r of this.tokens.tokens)!r.isType&&ZN(r)&&r.identifierRole!==An.ImportDeclaration&&e.add(this.tokens.identifierNameForToken(r));const t=Array.from(e).map(r=>({variableName:r,uniqueLocalName:r}));return this.extractedDefaultExportName&&t.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
;(function () {
  var reactHotLoader = require('react-hot-loader').default;
  var leaveModule = require('react-hot-loader').leaveModule;
  if (!reactHotLoader) {
    return;
  }
${t.map(({variableName:r,uniqueLocalName:i})=>`  reactHotLoader.register(${r}, "${i}", ${JSON.stringify(this.filePath||"")});`).join(`
`)}
  leaveModule(module);
})();`}process(){return!1}}const Sq=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function nB(n){if(n.length===0||!dg[n.charCodeAt(0)])return!1;for(let e=1;e<n.length;e++)if(!vc[n.charCodeAt(e)])return!1;return!Sq.has(n)}class Cq extends xc{constructor(e,t,r){super(),this.rootTransformer=e,this.tokens=t,this.isImportsTransformEnabled=r}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(p._public)||this.tokens.matches1(p._protected)||this.tokens.matches1(p._private)||this.tokens.matches1(p._abstract)||this.tokens.matches1(p._readonly)||this.tokens.matches1(p._override)||this.tokens.matches1(p.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(p._enum)||this.tokens.matches2(p._const,p._enum)?(this.processEnum(),!0):this.tokens.matches2(p._export,p._enum)||this.tokens.matches3(p._export,p._const,p._enum)?(this.processEnum(!0),!0):!1}processEnum(e=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(p._const)||this.tokens.matches1(p._enum);)this.tokens.removeToken();const t=this.tokens.identifierName();this.tokens.removeToken(),e&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${t}; (function (${t})`),this.tokens.copyExpectedToken(p.braceL),this.processEnumBody(t),this.tokens.copyExpectedToken(p.braceR),e&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${t} || (exports.${t} = ${t} = {}));`):this.tokens.appendCode(`)(${t} || (${t} = {}));`)}processEnumBody(e){let t=null;for(;!this.tokens.matches1(p.braceR);){const{nameStringCode:r,variableName:i}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(p.eq,p.string,p.comma)||this.tokens.matches3(p.eq,p.string,p.braceR)?this.processStringLiteralEnumMember(e,r,i):this.tokens.matches1(p.eq)?this.processExplicitValueEnumMember(e,r,i):this.processImplicitValueEnumMember(e,r,i,t),this.tokens.matches1(p.comma)&&this.tokens.removeToken(),i!=null?t=i:t=`${e}[${r}]`}}extractEnumKeyInfo(e){if(e.type===p.name){const t=this.tokens.identifierNameForToken(e);return{nameStringCode:`"${t}"`,variableName:nB(t)?t:null}}else if(e.type===p.string){const t=this.tokens.stringValueForToken(e);return{nameStringCode:this.tokens.code.slice(e.start,e.end),variableName:nB(t)?t:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(e,t,r){r!=null?(this.tokens.appendCode(`const ${r}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${e}[${t}] = ${r};`)):(this.tokens.appendCode(`${e}[${t}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(e,t,r){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected rhsEndIndex on enum assign.");if(r!=null){for(this.tokens.appendCode(`const ${r}`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${e}[${e}[${t}] = ${r}] = ${t};`)}else{for(this.tokens.appendCode(`${e}[${e}[${t}]`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${t};`)}}processImplicitValueEnumMember(e,t,r,i){let a=i!=null?`${i} + 1`:"0";r!=null&&(this.tokens.appendCode(`const ${r} = ${a}; `),a=r),this.tokens.appendCode(`${e}[${e}[${t}] = ${a}] = ${t};`)}}class ly{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(e,t,r,i){ly.prototype.__init.call(this),ly.prototype.__init2.call(this),this.nameManager=e.nameManager,this.helperManager=e.helperManager;const{tokenProcessor:a,importProcessor:s}=e;this.tokens=a,this.isImportsTransformEnabled=t.includes("imports"),this.isReactHotLoaderTransformEnabled=t.includes("react-hot-loader"),this.disableESTransforms=!!i.disableESTransforms,i.disableESTransforms||(this.transformers.push(new xq(a,this.nameManager)),this.transformers.push(new bq(a)),this.transformers.push(new _q(a,this.nameManager))),t.includes("jsx")&&(i.jsxRuntime!=="preserve"&&this.transformers.push(new jd(this,a,s,this.nameManager,i)),this.transformers.push(new Mq(this,a,s,i)));let o=null;if(t.includes("react-hot-loader")){if(!i.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");o=new XS(a,i.filePath),this.transformers.push(o)}if(t.includes("imports")){if(s===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new Xm(this,a,s,this.nameManager,this.helperManager,o,r,!!i.enableLegacyTypeScriptModuleInterop,t.includes("typescript"),t.includes("flow"),!!i.preserveDynamicImport,!!i.keepUnusedImports))}else this.transformers.push(new gq(a,this.nameManager,this.helperManager,o,t.includes("typescript"),t.includes("flow"),!!i.keepUnusedImports,i));t.includes("flow")&&this.transformers.push(new vq(this,a,t.includes("imports"))),t.includes("typescript")&&this.transformers.push(new Cq(this,a,t.includes("imports"))),t.includes("jest")&&this.transformers.push(new qS(this,a,this.nameManager,s))}transform(){this.tokens.reset(),this.processBalancedCode();let t=this.isImportsTransformEnabled?'"use strict";':"";for(const s of this.transformers)t+=s.getPrefixCode();t+=this.helperManager.emitHelpers(),t+=this.generatedVariables.map(s=>` var ${s};`).join("");for(const s of this.transformers)t+=s.getHoistedCode();let r="";for(const s of this.transformers)r+=s.getSuffixCode();const i=this.tokens.finish();let{code:a}=i;if(a.startsWith("#!")){let s=a.indexOf(`
`);return s===-1&&(s=a.length,a+=`
`),{code:a.slice(0,s+1)+t+a.slice(s+1)+r,mappings:this.shiftMappings(i.mappings,t.length)}}else return{code:t+a+r,mappings:this.shiftMappings(i.mappings,t.length)}}processBalancedCode(){let e=0,t=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(p.braceL)||this.tokens.matches1(p.dollarBraceL))e++;else if(this.tokens.matches1(p.braceR)){if(e===0)return;e--}if(this.tokens.matches1(p.parenL))t++;else if(this.tokens.matches1(p.parenR)){if(t===0)return;t--}this.processToken()}}processToken(){if(this.tokens.matches1(p._class)){this.processClass();return}for(const e of this.transformers)if(e.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(p._class,p.name))throw new Error("Expected identifier for exported class name.");const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),e}processClass(){const e=fq(this,this.tokens,this.nameManager,this.disableESTransforms),t=(e.headerInfo.isExpression||!e.headerInfo.className)&&e.staticInitializerNames.length+e.instanceInitializerNames.length>0;let r=e.headerInfo.className;t&&(r=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(r),this.tokens.appendCode(` (${r} =`));const a=this.tokens.currentToken().contextId;if(a==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(p._class);!this.tokens.matchesContextIdAndLabel(p.braceL,a);)this.processToken();this.processClassBody(e,r);const s=e.staticInitializerNames.map(o=>`${r}.${o}()`);t?this.tokens.appendCode(`, ${s.map(o=>`${o}, `).join("")}${r})`):e.staticInitializerNames.length>0&&this.tokens.appendCode(` ${s.map(o=>`${o};`).join(" ")}`)}processClassBody(e,t){const{headerInfo:r,constructorInsertPos:i,constructorInitializerStatements:a,fields:s,instanceInitializerNames:o,rangesToRemove:c}=e;let l=0,u=0;const A=this.tokens.currentToken().contextId;if(A==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(p.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const f=a.length+o.length>0;if(i===null&&f){const h=this.makeConstructorInitCode(a,o,t);if(r.hasSuperclass){const g=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${g}) { super(...${g}); ${h}; }`)}else this.tokens.appendCode(`constructor() { ${h}; }`)}for(;!this.tokens.matchesContextIdAndLabel(p.braceR,A);)if(l<s.length&&this.tokens.currentIndex()===s[l].start){let h=!1;for(this.tokens.matches1(p.bracketL)?this.tokens.copyTokenWithPrefix(`${s[l].initializerName}() {this`):this.tokens.matches1(p.string)||this.tokens.matches1(p.num)?(this.tokens.copyTokenWithPrefix(`${s[l].initializerName}() {this[`),h=!0):this.tokens.copyTokenWithPrefix(`${s[l].initializerName}() {this.`);this.tokens.currentIndex()<s[l].end;)h&&this.tokens.currentIndex()===s[l].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),l++}else if(u<c.length&&this.tokens.currentIndex()>=c[u].start){for(this.tokens.currentIndex()<c[u].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<c[u].end;)this.tokens.removeToken();u++}else this.tokens.currentIndex()===i?(this.tokens.copyToken(),f&&this.tokens.appendCode(`;${this.makeConstructorInitCode(a,o,t)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(p.braceR)}makeConstructorInitCode(e,t,r){return[...e,...t.map(i=>`${r}.prototype.${i}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(p.parenR,p.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,p.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(Ce._async)&&!this.tokens.matches1(p._async))return!1;const e=this.tokens.tokenAtRelativeIndex(1);if(e.type!==p.lessThan||!e.isType)return!1;let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,p.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(e,t){for(let r=0;r<e.length;r++){const i=e[r];i!==void 0&&(e[r]=i+t)}return e}}var w0={},rB;function Pq(){return rB||(rB=1,(function(n){n.__esModule=!0,n.LinesAndColumns=void 0;var e=`
`,t="\r",r=(function(){function i(a){this.string=a;for(var s=[0],o=0;o<a.length;)switch(a[o]){case e:o+=e.length,s.push(o);break;case t:o+=t.length,a[o]===e&&(o+=e.length),s.push(o);break;default:o++;break}this.offsets=s}return i.prototype.locationForIndex=function(a){if(a<0||a>this.string.length)return null;for(var s=0,o=this.offsets;o[s+1]<=a;)s++;var c=a-o[s];return{line:s,column:c}},i.prototype.indexForLocation=function(a){var s=a.line,o=a.column;return s<0||s>=this.offsets.length||o<0||o>this.lengthOfLine(s)?null:this.offsets[s]+o},i.prototype.lengthOfLine=function(a){var s=this.offsets[a],o=a===this.offsets.length-1?this.string.length:this.offsets[a+1];return o-s},i})();n.LinesAndColumns=r,n.default=r})(w0)),w0}Pq();function Eq(n){const e=new Set;for(let t=0;t<n.tokens.length;t++)n.matches1AtIndex(t,p._import)&&!n.matches3AtIndex(t,p._import,p.name,p.eq)&&Bq(n,t,e);return e}function Bq(n,e,t){e++,!n.matches1AtIndex(e,p.parenL)&&(n.matches1AtIndex(e,p.name)&&(t.add(n.identifierNameAtIndex(e)),e++,n.matches1AtIndex(e,p.comma)&&e++),n.matches1AtIndex(e,p.star)&&(e+=2,t.add(n.identifierNameAtIndex(e)),e++),n.matches1AtIndex(e,p.braceL)&&(e++,Tq(n,e,t)))}function Tq(n,e,t){for(;;){if(n.matches1AtIndex(e,p.braceR))return;const r=xp(n,e);if(e=r.endIndex,r.isType||t.add(r.rightName),n.matches2AtIndex(e,p.comma,p.braceR))return;if(n.matches1AtIndex(e,p.braceR))return;if(n.matches1AtIndex(e,p.comma))e++;else throw new Error(`Unexpected token: ${JSON.stringify(n.tokens[e])}`)}}function kq(n,e){G7(e);try{const t=Iq(n,e),i=new ly(t,e.transforms,!!e.enableLegacyBabel5ModuleInterop,e).transform();let a={code:i.code};if(e.sourceMapOptions){if(!e.filePath)throw new Error("filePath must be specified when generating a source map.");a={...a,sourceMap:N7(i,e.filePath,e.sourceMapOptions,n,t.tokenProcessor.tokens)}}return a}catch(t){throw e.filePath&&(t.message=`Error transforming ${e.filePath}: ${t.message}`),t}}function Iq(n,e){const t=e.transforms.includes("jsx"),r=e.transforms.includes("typescript"),i=e.transforms.includes("flow"),a=e.disableESTransforms===!0,s=Aq(n,t,r,i),o=s.tokens,c=s.scopes,l=new SS(n,o),u=new ty(l),A=new qm(n,o,i,a,u),f=!!e.enableLegacyTypeScriptModuleInterop;let h=null;return e.transforms.includes("imports")?(h=new zd(l,A,f,e,e.transforms.includes("typescript"),!!e.keepUnusedImports,u),h.preprocessTokens(),UE(A,c,h.getGlobalNames()),e.transforms.includes("typescript")&&!e.keepUnusedImports&&h.pruneTypeOnlyImports()):e.transforms.includes("typescript")&&!e.keepUnusedImports&&UE(A,c,Eq(A)),{tokenProcessor:A,scopes:c,nameManager:l,importProcessor:h,helperManager:u}}function Lq(n){let e=!1;function t(i){if(Ta.isJSXExpressionContainer(i)){const a=i.expression;if(Ta.isJSXEmptyExpression(a))return!1;if(!Ta.isLiteral(a))return!0}return!!(Ta.isTemplateLiteral(i)&&i.expressions.length>0||Ta.isMemberExpression(i)||Ta.isCallExpression(i)||Ta.isConditionalExpression(i)||Ta.isIdentifier(i)&&["props","state","data","item","value","text","content"].some(s=>i.name.includes(s)))}function r(i){if(t(i)){e=!0;return}Object.keys(i).forEach(a=>{const s=i[a];Array.isArray(s)?s.forEach(o=>{o&&typeof o=="object"&&o.type&&r(o)}):s&&typeof s=="object"&&s.type&&r(s)})}return n.children.forEach(i=>{e||r(i)}),e}function Fq(n,e){n.includes(".")&&(n=n.split(".")[0]);try{const t=Y6(e);return J6(t,{JSXElement(i){var h;const a=i.node,s=a.openingElement;if(Ta.isJSXFragment(a)||s.attributes.some(g=>Ta.isJSXAttribute(g)&&Ta.isJSXIdentifier(g.name)&&g.name.name==="data-source-location"))return;const{line:c,column:l}=((h=s.loc)==null?void 0:h.start)||{line:1,column:0},u=Ta.jsxAttribute(Ta.jsxIdentifier("data-source-location"),Ta.stringLiteral(`${n}:${c}:${l}`)),A=Lq(a),f=Ta.jsxAttribute(Ta.jsxIdentifier("data-dynamic-content"),Ta.stringLiteral(A?"true":"false"));s.attributes.unshift(u,f)}}),{code:Z6(t,{retainLines:!0,compact:!1,concise:!1}).code,success:!0}}catch(t){return{code:e,success:!1,error:t instanceof Error?t.message:"Unknown error"}}}function Nq(n,e){return Fq(n,e).code}function Dq(){const n="preview_";return{getItem:e=>localStorage.getItem(n+e),setItem:(e,t)=>localStorage.setItem(n+e,t),removeItem:e=>localStorage.removeItem(n+e)}}function Rq(n,e){n.includes(".")&&(n=n.split(".")[0]);const r=Nq(n,e).split(`
`),i=/(<[A-Z][a-zA-Z]*|<[a-z][a-zA-Z0-9]*)(\s|>|\/>)/g;return r.map((s,o)=>{const c=o+1;return i.test(s)?(i.lastIndex=0,s.replace(i,(l,u,A)=>{const h=s.substring(0,s.indexOf(u)).includes('"')?"'":'"';return A.includes(">")?(A.indexOf(">"),`${u} data-filename=${h}${n}${h} data-linenumber=${h}${c}${h} data-visual-selector-id=${h}${n}${c}${h}${A}`):`${u}${A}data-filename=${h}${n}${h} data-linenumber=${h}${c}${h} data-visual-selector-id=${h}${n}${c}${h} `})):s}).join(`
`)}function S2(n){(n.startsWith("./")||n.startsWith("@/"))&&(n=n.substring(2));const e=n.split("/"),t=[];for(const a of e)a===".."?t.pop():a!=="."&&t.push(a);let r=t.join("/");return/\.\w+$/.test(r)||(r=r+".js"),r}function Uq(n){return n.split("/").pop().split(".")[0]}function a1(n,e,t=!1){const r={get(i,a){if(!i.hasOwnProperty(a)&&a!=="PropTypes"&&a!=="__esModule"&&a.charAt(0)===a.charAt(0).toUpperCase()){if(typeof i=="function"&&a.charAt(0)===a.charAt(0).toUpperCase())return i;if(!t&&a===Uq(n)&&i.default)return i.default;throw new Error(`'${a}' does not exist in module: ${n}`)}return i[a]}};return new Proxy(e,r)}function b0(n,e,t){try{const r=crypto.randomUUID?crypto.randomUUID():Date.now().toString();window.parent.postMessage({type:"console-log",logId:r,data:{message:typeof n=="object"?JSON.stringify(n):n,severity:e,component:t}},"*")}catch{}}function Oq(n,e){const t=`[${n}]`;return{log:(...r)=>{window.console.log(t,...r);const i=r.map(a=>typeof a=="object"?JSON.stringify(a):String(a)).join(" ");b0(i,"log",n)},error:(...r)=>{window.console.error(t,...r);const i=r.find(o=>o instanceof Error),a=r.map(o=>(o==null?void 0:o.message)||(o==null?void 0:o.toString())).join(" - "),s={title:a,details:a,originalError:i,componentName:n};e(s.title,s.details,s.componentName,s.originalError),b0(a,"error",n)},warn:(...r)=>{window.console.warn(t,...r);const i=r.map(a=>typeof a=="object"?JSON.stringify(a):String(a)).join(" ");b0(i,"warn",n)}}}function Hq(n,e,t){const r=S2(n);if(t[r])return r;if(n.startsWith("./")||n.startsWith("../")){const i=e.split("/").slice(0,-1).join("/"),a=n.split("/");let s=i?i.split("/"):[];for(const l of a)l!=="."&&(l===".."?s.length>0&&s.pop():l&&s.push(l));let o=s.join("/");if(o.startsWith("./")&&(o=o.substring(2)),o.startsWith("../")&&(o=o.substring(3)),o.startsWith("@/")&&(o=o.substring(2)),t[o])return o;if(t[o+".js"])return o+".js";const c=Object.keys(t).find(l=>l.endsWith(n));if(c)return c}return r}var C2={exports:{}},Wq=C2.exports,iB;function Qq(){return iB||(iB=1,(function(n,e){(function(t,r){r(typeof uN=="function"?dN():t.moment)})(Wq,(function(t){//! moment.js locale configuration
var r={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=function(u){return u===0?0:u===1?1:u===2?2:u%100>=3&&u%100<=10?3:u%100>=11?4:5},s={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(u){return function(A,f,h,g){var y=a(A),w=s[u][a(A)];return y===2&&(w=w[f?0:1]),w.replace(/%d/i,A)}},c=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],l=t.defineLocale("ar",{months:c,monthsShort:c,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(u){return u==="م"},meridiem:function(u,A,f){return u<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(u){return u.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(A){return i[A]}).replace(/،/g,",")},postformat:function(u){return u.replace(/\d/g,function(A){return r[A]}).replace(/,/g,"،")},week:{dow:6,doy:12}});return l}))})()),C2.exports}var a4=Qq();const $q=_f(a4),jq=wS({__proto__:null,default:$q},[a4]);var P2={exports:{}},zq=P2.exports,aB;function Vq(){return aB||(aB=1,(function(n,e){(function(t,r){r(typeof uN=="function"?dN():t.moment)})(zq,(function(t){//! moment.js locale configuration
var r=t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(i){return i===2?"שעתיים":i+" שעות"},d:"יום",dd:function(i){return i===2?"יומיים":i+" ימים"},M:"חודש",MM:function(i){return i===2?"חודשיים":i+" חודשים"},y:"שנה",yy:function(i){return i===2?"שנתיים":i%10===0&&i!==10?i+" שנה":i+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(i){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(i)},meridiem:function(i,a,s){return i<5?"לפנות בוקר":i<10?"בבוקר":i<12?s?'לפנה"צ':"לפני הצהריים":i<18?s?'אחה"צ':"אחרי הצהריים":"בערב"}});return r}))})()),P2.exports}var s4=Vq();const Gq=_f(s4),Kq=wS({__proto__:null,default:Gq},[s4]);var qq=["component"];function E2(n){"@babel/helpers - typeof";return E2=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},E2(n)}function Xq(n,e){if(n==null)return{};var t=Yq(n,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function Yq(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function o4(n){var e=n.component,t=Xq(n,qq),r;return te.isValidElement(e)?r=te.cloneElement(e,t):Ka(e)?r=te.createElement(e,t):ez(!1,"Customized's props `component` must be React.element or Function, but got %s.",E2(e)),Ge.createElement(Kr,{className:"recharts-customized-wrapper"},r)}o4.displayName="Customized";function uy(){return uy=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},uy.apply(null,arguments)}var Jq=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Ep(n){"@babel/helpers - typeof";return Ep=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},Ep(n)}function Zq(n,e){if(n==null)return{};var t=eX(n,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function eX(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function Xl(){return Xl=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Xl.apply(this,arguments)}function sB(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Bp(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?sB(Object(t),!0).forEach(function(r){tX(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):sB(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function tX(n,e,t){return e=nX(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function nX(n){var e=rX(n,"string");return Ep(e)=="symbol"?e:e+""}function rX(n,e){if(Ep(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var iX=function(e,t,r,i){var a="";return i.forEach(function(s,o){var c=Yu(t,r,e,s);o?a+="L ".concat(c.x,",").concat(c.y):a+="M ".concat(c.x,",").concat(c.y)}),a+="Z",a},aX=function(e){var t=e.cx,r=e.cy,i=e.innerRadius,a=e.outerRadius,s=e.polarAngles,o=e.radialLines;if(!s||!s.length||!o)return null;var c=Bp({stroke:"#ccc"},qi(e,!1));return Ge.createElement("g",{className:"recharts-polar-grid-angle"},s.map(function(l){var u=Yu(t,r,i,l),A=Yu(t,r,a,l);return Ge.createElement("line",Xl({},c,{key:"line-".concat(l),x1:u.x,y1:u.y,x2:A.x,y2:A.y}))}))},sX=function(e){var t=e.cx,r=e.cy,i=e.radius,a=e.index,s=Bp(Bp({stroke:"#ccc"},qi(e,!1)),{},{fill:"none"});return Ge.createElement("circle",Xl({},s,{className:_o("recharts-polar-grid-concentric-circle",e.className),key:"circle-".concat(a),cx:t,cy:r,r:i}))},oX=function(e){var t=e.radius,r=e.index,i=Bp(Bp({stroke:"#ccc"},qi(e,!1)),{},{fill:"none"});return Ge.createElement("path",Xl({},i,{className:_o("recharts-polar-grid-concentric-polygon",e.className),key:"path-".concat(r),d:iX(t,e.cx,e.cy,e.polarAngles)}))},cX=function(e){var t=e.polarRadius,r=e.gridType;return!t||!t.length?null:Ge.createElement("g",{className:"recharts-polar-grid-concentric"},t.map(function(i,a){var s=a;return r==="circle"?Ge.createElement(sX,Xl({key:s},e,{radius:i,index:a})):Ge.createElement(oX,Xl({key:s},e,{radius:i,index:a}))}))},c4=function(e){var t=e.cx,r=t===void 0?0:t,i=e.cy,a=i===void 0?0:i,s=e.innerRadius,o=s===void 0?0:s,c=e.outerRadius,l=c===void 0?0:c,u=e.gridType,A=u===void 0?"polygon":u,f=e.radialLines,h=f===void 0?!0:f,g=Zq(e,Jq);return l<=0?null:Ge.createElement("g",{className:"recharts-polar-grid"},Ge.createElement(aX,Xl({cx:r,cy:a,innerRadius:o,outerRadius:l,gridType:A,radialLines:h},g)),Ge.createElement(cX,Xl({cx:r,cy:a,innerRadius:o,outerRadius:l,gridType:A,radialLines:h},g)))};c4.displayName="PolarGrid";var _0,oB;function lX(){if(oB)return _0;oB=1;function n(e){return e&&e.length?e[0]:void 0}return _0=n,_0}var x0,cB;function uX(){return cB||(cB=1,x0=lX()),x0}var dX=uX();const AX=_f(dX);var hX=["key"];function tf(n){"@babel/helpers - typeof";return tf=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},tf(n)}function fX(n,e){if(n==null)return{};var t=mX(n,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function mX(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function dy(){return dy=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},dy.apply(this,arguments)}function lB(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function bs(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?lB(Object(t),!0).forEach(function(r){Ll(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):lB(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function pX(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function uB(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,u4(r.key),r)}}function gX(n,e,t){return e&&uB(n.prototype,e),t&&uB(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function vX(n,e,t){return e=Ay(e),yX(n,l4()?Reflect.construct(e,t||[],Ay(n).constructor):e.apply(n,t))}function yX(n,e){if(e&&(tf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wX(n)}function wX(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function l4(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l4=function(){return!!n})()}function Ay(n){return Ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ay(n)}function bX(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&B2(n,e)}function B2(n,e){return B2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},B2(n,e)}function Ll(n,e,t){return e=u4(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function u4(n){var e=_X(n,"string");return tf(e)=="symbol"?e:e+""}function _X(n,e){if(tf(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}var gg=(function(n){function e(){var t;pX(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=vX(this,e,[].concat(i)),Ll(t,"state",{isAnimationFinished:!1}),Ll(t,"handleAnimationEnd",function(){var s=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ka(s)&&s()}),Ll(t,"handleAnimationStart",function(){var s=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ka(s)&&s()}),Ll(t,"handleMouseEnter",function(s){var o=t.props.onMouseEnter;o&&o(t.props,s)}),Ll(t,"handleMouseLeave",function(s){var o=t.props.onMouseLeave;o&&o(t.props,s)}),t}return bX(e,n),gX(e,[{key:"renderDots",value:function(r){var i=this.props,a=i.dot,s=i.dataKey,o=qi(this.props,!1),c=qi(a,!0),l=r.map(function(u,A){var f=bs(bs(bs({key:"dot-".concat(A),r:3},o),c),{},{dataKey:s,cx:u.x,cy:u.y,index:A,payload:u});return e.renderDotItem(a,f)});return Ge.createElement(Kr,{className:"recharts-radar-dots"},l)}},{key:"renderPolygonStatically",value:function(r){var i=this.props,a=i.shape,s=i.dot,o=i.isRange,c=i.baseLinePoints,l=i.connectNulls,u;return Ge.isValidElement(a)?u=Ge.cloneElement(a,bs(bs({},this.props),{},{points:r})):Ka(a)?u=a(bs(bs({},this.props),{},{points:r})):u=Ge.createElement(AS,dy({},qi(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:r,baseLinePoints:o?c:null,connectNulls:l})),Ge.createElement(Kr,{className:"recharts-radar-polygon"},u,s?this.renderDots(r):null)}},{key:"renderPolygonWithAnimation",value:function(){var r=this,i=this.props,a=i.points,s=i.isAnimationActive,o=i.animationBegin,c=i.animationDuration,l=i.animationEasing,u=i.animationId,A=this.state.prevPoints;return Ge.createElement(Zh,{begin:o,duration:c,isActive:s,easing:l,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(f){var h=f.t,g=A&&A.length/a.length,y=a.map(function(w,v){var S=A&&A[Math.floor(v*g)];if(S){var C=Ti(S.x,w.x),M=Ti(S.y,w.y);return bs(bs({},w),{},{x:C(h),y:M(h)})}var F=Ti(w.cx,w.x),D=Ti(w.cy,w.y);return bs(bs({},w),{},{x:F(h),y:D(h)})});return r.renderPolygonStatically(y)})}},{key:"renderPolygon",value:function(){var r=this.props,i=r.points,a=r.isAnimationActive,s=r.isRange,o=this.state.prevPoints;return a&&i&&i.length&&!s&&(!o||!Lw(o,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.className,s=r.points,o=r.isAnimationActive;if(i||!s||!s.length)return null;var c=this.state.isAnimationFinished,l=_o("recharts-radar",a);return Ge.createElement(Kr,{className:l},this.renderPolygon(),(!o||c)&&lg.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"renderDotItem",value:function(r,i){var a;if(Ge.isValidElement(r))a=Ge.cloneElement(r,i);else if(Ka(r))a=r(i);else{var s=i.key,o=fX(i,hX);a=Ge.createElement(pN,dy({},o,{key:s,className:_o("recharts-radar-dot",typeof r!="boolean"?r.className:"")}))}return a}}])})(te.PureComponent);Ll(gg,"displayName","Radar");Ll(gg,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!mA.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ll(gg,"getComposedData",function(n){var e=n.radiusAxis,t=n.angleAxis,r=n.displayedData,i=n.dataKey,a=n.bandSize,s=t.cx,o=t.cy,c=!1,l=[],u=t.type!=="number"?a??0:0;r.forEach(function(f,h){var g=ha(f,t.dataKey,h),y=ha(f,i),w=t.scale(g)+u,v=Array.isArray(y)?tz(y):y,S=Tu(v)?void 0:e.scale(v);Array.isArray(y)&&y.length>=2&&(c=!0),l.push(bs(bs({},Yu(s,o,S,w)),{},{name:g,value:y,cx:s,cy:o,radius:S,angle:w,payload:f}))});var A=[];return c&&l.forEach(function(f){if(Array.isArray(f.value)){var h=AX(f.value),g=Tu(h)?void 0:e.scale(h);A.push(bs(bs({},f),{},{radius:g},Yu(s,o,g,f.angle)))}else A.push(f)}),{points:l,isRange:c,baseLinePoints:A}});function Tp(n){"@babel/helpers - typeof";return Tp=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},Tp(n)}function T2(){return T2=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},T2.apply(this,arguments)}function dB(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function M0(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?dB(Object(t),!0).forEach(function(r){xX(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):dB(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function xX(n,e,t){return e=MX(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function MX(n){var e=SX(n,"string");return Tp(e)=="symbol"?e:e+""}function SX(n,e){if(Tp(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Tp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function AB(n){return typeof n=="string"?parseInt(n,10):n}function CX(n,e){var t="".concat(e.cx||n.cx),r=Number(t),i="".concat(e.cy||n.cy),a=Number(i);return M0(M0(M0({},e),n),{},{cx:r,cy:a})}function hB(n){return Ge.createElement(Zv,T2({shapeType:"sector",propTransformer:CX},n))}var PX=["shape","activeShape","activeIndex","cornerRadius"],EX=["value","background"];function nf(n){"@babel/helpers - typeof";return nf=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},nf(n)}function hy(){return hy=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},hy.apply(this,arguments)}function fB(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function da(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fB(Object(t),!0).forEach(function(r){rA(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):fB(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function mB(n,e){if(n==null)return{};var t=BX(n,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function BX(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function TX(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function pB(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,A4(r.key),r)}}function kX(n,e,t){return e&&pB(n.prototype,e),t&&pB(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function IX(n,e,t){return e=fy(e),LX(n,d4()?Reflect.construct(e,t||[],fy(n).constructor):e.apply(n,t))}function LX(n,e){if(e&&(nf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FX(n)}function FX(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function d4(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d4=function(){return!!n})()}function fy(n){return fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fy(n)}function NX(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&k2(n,e)}function k2(n,e){return k2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},k2(n,e)}function rA(n,e,t){return e=A4(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function A4(n){var e=DX(n,"string");return nf(e)=="symbol"?e:e+""}function DX(n,e){if(nf(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(nf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}var vg=(function(n){function e(){var t;TX(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=IX(this,e,[].concat(i)),rA(t,"state",{isAnimationFinished:!1}),rA(t,"handleAnimationEnd",function(){var s=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ka(s)&&s()}),rA(t,"handleAnimationStart",function(){var s=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ka(s)&&s()}),t}return NX(e,n),kX(e,[{key:"getDeltaAngle",value:function(){var r=this.props,i=r.startAngle,a=r.endAngle,s=A2(a-i),o=Math.min(Math.abs(a-i),360);return s*o}},{key:"renderSectorsStatically",value:function(r){var i=this,a=this.props,s=a.shape,o=a.activeShape,c=a.activeIndex,l=a.cornerRadius,u=mB(a,PX),A=qi(u,!1);return r.map(function(f,h){var g=h===c,y=da(da(da(da({},A),{},{cornerRadius:AB(l)},f),ey(i.props,f,h)),{},{className:"recharts-radial-bar-sector ".concat(f.className),forceCornerRadius:u.forceCornerRadius,cornerIsExternal:u.cornerIsExternal,isActive:g,option:g?o:s});return Ge.createElement(hB,hy({},y,{key:"sector-".concat(h)}))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,a=i.data,s=i.isAnimationActive,o=i.animationBegin,c=i.animationDuration,l=i.animationEasing,u=i.animationId,A=this.state.prevData;return Ge.createElement(Zh,{begin:o,duration:c,isActive:s,easing:l,from:{t:0},to:{t:1},key:"radialBar-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(f){var h=f.t,g=a.map(function(y,w){var v=A&&A[w];if(v){var S=Ti(v.startAngle,y.startAngle),C=Ti(v.endAngle,y.endAngle);return da(da({},y),{},{startAngle:S(h),endAngle:C(h)})}var M=y.endAngle,F=y.startAngle,D=Ti(F,M);return da(da({},y),{},{endAngle:D(h)})});return Ge.createElement(Kr,null,r.renderSectorsStatically(g))})}},{key:"renderSectors",value:function(){var r=this.props,i=r.data,a=r.isAnimationActive,s=this.state.prevData;return a&&i&&i.length&&(!s||!Lw(s,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"renderBackground",value:function(r){var i=this,a=this.props.cornerRadius,s=qi(this.props.background,!1);return r.map(function(o,c){o.value;var l=o.background,u=mB(o,EX);if(!l)return null;var A=da(da(da(da(da({cornerRadius:AB(a)},u),{},{fill:"#eee"},l),s),ey(i.props,o,c)),{},{index:c,className:_o("recharts-radial-bar-background-sector",s==null?void 0:s.className),option:l,isActive:!1});return Ge.createElement(hB,hy({},A,{key:"sector-".concat(c)}))})}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.data,s=r.className,o=r.background,c=r.isAnimationActive;if(i||!a||!a.length)return null;var l=this.state.isAnimationFinished,u=_o("recharts-area",s);return Ge.createElement(Kr,{className:u},o&&Ge.createElement(Kr,{className:"recharts-radial-bar-background"},this.renderBackground(a)),Ge.createElement(Kr,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!c||l)&&lg.renderCallByParent(da({},this.props),a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(te.PureComponent);rA(vg,"displayName","RadialBar");rA(vg,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!mA.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1});rA(vg,"getComposedData",function(n){var e=n.item,t=n.props,r=n.radiusAxis,i=n.radiusAxisTicks,a=n.angleAxis,s=n.angleAxisTicks,o=n.displayedData,c=n.dataKey,l=n.stackedData,u=n.barPosition,A=n.bandSize,f=n.dataStartIndex,h=nz(u,e);if(!h)return null;var g=a.cx,y=a.cy,w=t.layout,v=e.props,S=v.children,C=v.minPointSize,M=w==="radial"?a:r,F=l?M.scale.domain():null,D=rz({numericAxis:M}),U=Fw(S,Nw),O=o.map(function(T,P){var k,H,j,$,ce,de;if(l?k=iz(l[f+P],F):(k=ha(T,c),Array.isArray(k)||(k=[D,k])),w==="radial"){H=PE({axis:r,ticks:i,bandSize:A,offset:h.offset,entry:T,index:P}),ce=a.scale(k[1]),$=a.scale(k[0]),j=H+h.size;var fe=ce-$;if(Math.abs(C)>0&&Math.abs(fe)<Math.abs(C)){var ee=A2(fe||C)*(Math.abs(C)-Math.abs(fe));ce+=ee}de={background:{cx:g,cy:y,innerRadius:H,outerRadius:j,startAngle:t.startAngle,endAngle:t.endAngle}}}else{H=r.scale(k[0]),j=r.scale(k[1]),$=PE({axis:a,ticks:s,bandSize:A,offset:h.offset,entry:T,index:P}),ce=$+h.size;var Se=j-H;if(Math.abs(C)>0&&Math.abs(Se)<Math.abs(C)){var xe=A2(Se||C)*(Math.abs(C)-Math.abs(Se));j+=xe}}return da(da(da(da({},T),de),{},{payload:T,value:l?k:k[1],cx:g,cy:y,innerRadius:H,outerRadius:j,startAngle:$,endAngle:ce},U&&U[P]&&U[P].props),{},{tooltipPayload:[az(e,T)],tooltipPosition:Yu(g,y,(H+j)/2,($+ce)/2)})});return{data:O,layout:w}});function rf(n){"@babel/helpers - typeof";return rf=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},rf(n)}function RX(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function UX(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,m4(r.key),r)}}function OX(n,e,t){return e&&UX(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function HX(n,e,t){return e=my(e),WX(n,h4()?Reflect.construct(e,t||[],my(n).constructor):e.apply(n,t))}function WX(n,e){if(e&&(rf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QX(n)}function QX(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function h4(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h4=function(){return!!n})()}function my(n){return my=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},my(n)}function $X(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&I2(n,e)}function I2(n,e){return I2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},I2(n,e)}function f4(n,e,t){return e=m4(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function m4(n){var e=jX(n,"string");return rf(e)=="symbol"?e:e+""}function jX(n,e){if(rf(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}var Bf=(function(n){function e(){return RX(this,e),HX(this,e,arguments)}return $X(e,n),OX(e,[{key:"render",value:function(){return null}}])})(te.Component);f4(Bf,"displayName","ZAxis");f4(Bf,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var zX=["option","isActive"];function Ym(){return Ym=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Ym.apply(this,arguments)}function VX(n,e){if(n==null)return{};var t=GX(n,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function GX(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function KX(n){var e=n.option,t=n.isActive,r=VX(n,zX);return typeof e=="string"?te.createElement(Zv,Ym({option:te.createElement(gN,Ym({type:e},r)),isActive:t,shapeType:"symbols"},r)):te.createElement(Zv,Ym({option:e,isActive:t,shapeType:"symbols"},r))}function af(n){"@babel/helpers - typeof";return af=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},af(n)}function Jm(){return Jm=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Jm.apply(this,arguments)}function gB(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Do(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?gB(Object(t),!0).forEach(function(r){Du(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):gB(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function qX(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function vB(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,g4(r.key),r)}}function XX(n,e,t){return e&&vB(n.prototype,e),t&&vB(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function YX(n,e,t){return e=py(e),JX(n,p4()?Reflect.construct(e,t||[],py(n).constructor):e.apply(n,t))}function JX(n,e){if(e&&(af(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZX(n)}function ZX(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function p4(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p4=function(){return!!n})()}function py(n){return py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},py(n)}function eY(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&L2(n,e)}function L2(n,e){return L2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},L2(n,e)}function Du(n,e,t){return e=g4(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function g4(n){var e=tY(n,"string");return af(e)=="symbol"?e:e+""}function tY(n,e){if(af(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(af(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}var Tf=(function(n){function e(){var t;qX(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=YX(this,e,[].concat(i)),Du(t,"state",{isAnimationFinished:!1}),Du(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0})}),Du(t,"handleAnimationStart",function(){t.setState({isAnimationFinished:!1})}),Du(t,"id",wN("recharts-scatter-")),t}return eY(e,n),XX(e,[{key:"renderSymbolsStatically",value:function(r){var i=this,a=this.props,s=a.shape,o=a.activeShape,c=a.activeIndex,l=qi(this.props,!1);return r.map(function(u,A){var f=c===A,h=f?o:s,g=Do(Do({},l),u);return Ge.createElement(Kr,Jm({className:"recharts-scatter-symbol",key:"symbol-".concat(u==null?void 0:u.cx,"-").concat(u==null?void 0:u.cy,"-").concat(u==null?void 0:u.size,"-").concat(A)},ey(i.props,u,A),{role:"img"}),Ge.createElement(KX,Jm({option:h,isActive:f,key:"symbol-".concat(A)},g)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,a=i.points,s=i.isAnimationActive,o=i.animationBegin,c=i.animationDuration,l=i.animationEasing,u=i.animationId,A=this.state.prevPoints;return Ge.createElement(Zh,{begin:o,duration:c,isActive:s,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(f){var h=f.t,g=a.map(function(y,w){var v=A&&A[w];if(v){var S=Ti(v.cx,y.cx),C=Ti(v.cy,y.cy),M=Ti(v.size,y.size);return Do(Do({},y),{},{cx:S(h),cy:C(h),size:M(h)})}var F=Ti(0,y.size);return Do(Do({},y),{},{size:F(h)})});return Ge.createElement(Kr,null,r.renderSymbolsStatically(g))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,a=r.isAnimationActive,s=this.state.prevPoints;return a&&i&&i.length&&(!s||!Lw(s,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,s=i.xAxis,o=i.yAxis,c=i.children,l=Fw(c,vN);return l?l.map(function(u,A){var f=u.props,h=f.direction,g=f.dataKey;return Ge.cloneElement(u,{key:"".concat(h,"-").concat(g,"-").concat(a[A]),data:a,xAxis:s,yAxis:o,layout:h==="x"?"vertical":"horizontal",dataPointFormatter:function(w,v){return{x:w.cx,y:w.cy,value:h==="x"?+w.node.x:+w.node.y,errorVal:ha(w,v)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,a=r.line,s=r.lineType,o=r.lineJointType,c=qi(this.props,!1),l=qi(a,!1),u,A;if(s==="joint")u=i.map(function(C){return{x:C.cx,y:C.cy}});else if(s==="fitting"){var f=sz(i),h=f.xmin,g=f.xmax,y=f.a,w=f.b,v=function(M){return y*M+w};u=[{x:h,y:v(h)},{x:g,y:v(g)}]}var S=Do(Do(Do({},c),{},{fill:"none",stroke:c&&c.fill},l),{},{points:u});return Ge.isValidElement(a)?A=Ge.cloneElement(a,S):Ka(a)?A=a(S):A=Ge.createElement(yN,Jm({},S,{type:o})),Ge.createElement(Kr,{className:"recharts-scatter-line",key:"recharts-scatter-line"},A)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.points,s=r.line,o=r.className,c=r.xAxis,l=r.yAxis,u=r.left,A=r.top,f=r.width,h=r.height,g=r.id,y=r.isAnimationActive;if(i||!a||!a.length)return null;var w=this.state.isAnimationFinished,v=_o("recharts-scatter",o),S=c&&c.allowDataOverflow,C=l&&l.allowDataOverflow,M=S||C,F=Tu(g)?this.id:g;return Ge.createElement(Kr,{className:v,clipPath:M?"url(#clipPath-".concat(F,")"):null},S||C?Ge.createElement("defs",null,Ge.createElement("clipPath",{id:"clipPath-".concat(F)},Ge.createElement("rect",{x:S?u:u-f/2,y:C?A:A-h/2,width:S?f:f*2,height:C?h:h*2}))):null,s&&this.renderLine(),this.renderErrorBar(),Ge.createElement(Kr,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!y||w)&&lg.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}}])})(te.PureComponent);Du(Tf,"displayName","Scatter");Du(Tf,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!mA.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Du(Tf,"getComposedData",function(n){var e=n.xAxis,t=n.yAxis,r=n.zAxis,i=n.item,a=n.displayedData,s=n.xAxisTicks,o=n.yAxisTicks,c=n.offset,l=i.props.tooltipType,u=Fw(i.props.children,Nw),A=Tu(e.dataKey)?i.props.dataKey:e.dataKey,f=Tu(t.dataKey)?i.props.dataKey:t.dataKey,h=r&&r.dataKey,g=r?r.range:Bf.defaultProps.range,y=g&&g[0],w=e.scale.bandwidth?e.scale.bandwidth():0,v=t.scale.bandwidth?t.scale.bandwidth():0,S=a.map(function(C,M){var F=ha(C,A),D=ha(C,f),U=!Tu(h)&&ha(C,h)||"-",O=[{name:Tu(e.dataKey)?i.props.name:e.name||e.dataKey,unit:e.unit||"",value:F,payload:C,dataKey:A,type:l},{name:Tu(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:D,payload:C,dataKey:f,type:l}];U!=="-"&&O.push({name:r.name||r.dataKey,unit:r.unit||"",value:U,payload:C,dataKey:h,type:l});var T=EE({axis:e,ticks:s,bandSize:w,entry:C,index:M,dataKey:A}),P=EE({axis:t,ticks:o,bandSize:v,entry:C,index:M,dataKey:f}),k=U!=="-"?r.scale(U):y,H=Math.sqrt(Math.max(k,0)/Math.PI);return Do(Do({},C),{},{cx:T,cy:P,x:T-H,y:P-H,xAxis:e,yAxis:t,zAxis:r,width:2*H,height:2*H,size:k,node:{x:F,y:D,z:U},tooltipPayload:O,tooltipPosition:{x:T,y:P},payload:C},u&&u[M]&&u[M].props)});return Do({points:S},c)});var S0,yB;function nY(){if(yB)return S0;yB=1;function n(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}return S0=n,S0}var C0,wB;function v4(){if(wB)return C0;wB=1;var n=bN(),e=oz(),t=Object.prototype,r=t.hasOwnProperty;function i(a,s,o){var c=a[s];(!(r.call(a,s)&&e(c,o))||o===void 0&&!(s in a))&&n(a,s,o)}return C0=i,C0}var P0,bB;function yg(){if(bB)return P0;bB=1;var n=v4(),e=bN();function t(r,i,a,s){var o=!a;a||(a={});for(var c=-1,l=i.length;++c<l;){var u=i[c],A=s?s(a[u],r[u],u,a,r):void 0;A===void 0&&(A=r[u]),o?e(a,u,A):n(a,u,A)}return a}return P0=t,P0}var E0,_B;function rY(){if(_B)return E0;_B=1;var n=yg(),e=_N();function t(r,i){return r&&n(i,e(i),r)}return E0=t,E0}var B0,xB;function iY(){if(xB)return B0;xB=1;function n(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}return B0=n,B0}var T0,MB;function aY(){if(MB)return T0;MB=1;var n=hS(),e=xN(),t=iY(),r=Object.prototype,i=r.hasOwnProperty;function a(s){if(!n(s))return t(s);var o=e(s),c=[];for(var l in s)l=="constructor"&&(o||!i.call(s,l))||c.push(l);return c}return T0=a,T0}var k0,SB;function YS(){if(SB)return k0;SB=1;var n=cz(),e=aY(),t=lz();function r(i){return t(i)?n(i,!0):e(i)}return k0=r,k0}var I0,CB;function sY(){if(CB)return I0;CB=1;var n=yg(),e=YS();function t(r,i){return r&&n(i,e(i),r)}return I0=t,I0}var Rm={exports:{}};Rm.exports;var PB;function oY(){return PB||(PB=1,(function(n,e){var t=uz(),r=e&&!e.nodeType&&e,i=r&&!0&&n&&!n.nodeType&&n,a=i&&i.exports===r,s=a?t.Buffer:void 0,o=s?s.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var A=l.length,f=o?o(A):new l.constructor(A);return l.copy(f),f}n.exports=c})(Rm,Rm.exports)),Rm.exports}var L0,EB;function cY(){if(EB)return L0;EB=1;function n(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}return L0=n,L0}var F0,BB;function lY(){if(BB)return F0;BB=1;var n=yg(),e=MN();function t(r,i){return n(r,e(r),i)}return F0=t,F0}var N0,TB;function y4(){if(TB)return N0;TB=1;var n=dz(),e=SN(),t=MN(),r=Az(),i=Object.getOwnPropertySymbols,a=i?function(s){for(var o=[];s;)n(o,t(s)),s=e(s);return o}:r;return N0=a,N0}var D0,kB;function uY(){if(kB)return D0;kB=1;var n=yg(),e=y4();function t(r,i){return n(r,e(r),i)}return D0=t,D0}var R0,IB;function w4(){if(IB)return R0;IB=1;var n=hz(),e=y4(),t=YS();function r(i){return n(i,t,e)}return R0=r,R0}var U0,LB;function dY(){if(LB)return U0;LB=1;var n=Object.prototype,e=n.hasOwnProperty;function t(r){var i=r.length,a=new r.constructor(i);return i&&typeof r[0]=="string"&&e.call(r,"index")&&(a.index=r.index,a.input=r.input),a}return U0=t,U0}var O0,FB;function JS(){if(FB)return O0;FB=1;var n=fz();function e(t){var r=new t.constructor(t.byteLength);return new n(r).set(new n(t)),r}return O0=e,O0}var H0,NB;function AY(){if(NB)return H0;NB=1;var n=JS();function e(t,r){var i=r?n(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}return H0=e,H0}var W0,DB;function hY(){if(DB)return W0;DB=1;var n=/\w*$/;function e(t){var r=new t.constructor(t.source,n.exec(t));return r.lastIndex=t.lastIndex,r}return W0=e,W0}var Q0,RB;function fY(){if(RB)return Q0;RB=1;var n=mz(),e=n?n.prototype:void 0,t=e?e.valueOf:void 0;function r(i){return t?Object(t.call(i)):{}}return Q0=r,Q0}var $0,UB;function mY(){if(UB)return $0;UB=1;var n=JS();function e(t,r){var i=r?n(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}return $0=e,$0}var j0,OB;function pY(){if(OB)return j0;OB=1;var n=JS(),e=AY(),t=hY(),r=fY(),i=mY(),a="[object Boolean]",s="[object Date]",o="[object Map]",c="[object Number]",l="[object RegExp]",u="[object Set]",A="[object String]",f="[object Symbol]",h="[object ArrayBuffer]",g="[object DataView]",y="[object Float32Array]",w="[object Float64Array]",v="[object Int8Array]",S="[object Int16Array]",C="[object Int32Array]",M="[object Uint8Array]",F="[object Uint8ClampedArray]",D="[object Uint16Array]",U="[object Uint32Array]";function O(T,P,k){var H=T.constructor;switch(P){case h:return n(T);case a:case s:return new H(+T);case g:return e(T,k);case y:case w:case v:case S:case C:case M:case F:case D:case U:return i(T,k);case o:return new H;case c:case A:return new H(T);case l:return t(T);case u:return new H;case f:return r(T)}}return j0=O,j0}var z0,HB;function gY(){if(HB)return z0;HB=1;var n=hS(),e=Object.create,t=(function(){function r(){}return function(i){if(!n(i))return{};if(e)return e(i);r.prototype=i;var a=new r;return r.prototype=void 0,a}})();return z0=t,z0}var V0,WB;function vY(){if(WB)return V0;WB=1;var n=gY(),e=SN(),t=xN();function r(i){return typeof i.constructor=="function"&&!t(i)?n(e(i)):{}}return V0=r,V0}var G0,QB;function yY(){if(QB)return G0;QB=1;var n=fS(),e=CN(),t="[object Map]";function r(i){return e(i)&&n(i)==t}return G0=r,G0}var K0,$B;function wY(){if($B)return K0;$B=1;var n=yY(),e=PN(),t=EN(),r=t&&t.isMap,i=r?e(r):n;return K0=i,K0}var q0,jB;function bY(){if(jB)return q0;jB=1;var n=fS(),e=CN(),t="[object Set]";function r(i){return e(i)&&n(i)==t}return q0=r,q0}var X0,zB;function _Y(){if(zB)return X0;zB=1;var n=bY(),e=PN(),t=EN(),r=t&&t.isSet,i=r?e(r):n;return X0=i,X0}var Y0,VB;function xY(){if(VB)return Y0;VB=1;var n=pz(),e=nY(),t=v4(),r=rY(),i=sY(),a=oY(),s=cY(),o=lY(),c=uY(),l=gz(),u=w4(),A=fS(),f=dY(),h=pY(),g=vY(),y=vz(),w=yz(),v=wY(),S=hS(),C=_Y(),M=_N(),F=YS(),D=1,U=2,O=4,T="[object Arguments]",P="[object Array]",k="[object Boolean]",H="[object Date]",j="[object Error]",$="[object Function]",ce="[object GeneratorFunction]",de="[object Map]",fe="[object Number]",ee="[object Object]",Se="[object RegExp]",xe="[object Set]",Pe="[object String]",V="[object Symbol]",ae="[object WeakMap]",J="[object ArrayBuffer]",z="[object DataView]",Z="[object Float32Array]",le="[object Float64Array]",ge="[object Int8Array]",Me="[object Int16Array]",Te="[object Int32Array]",We="[object Uint8Array]",Ee="[object Uint8ClampedArray]",Ne="[object Uint16Array]",ue="[object Uint32Array]",ne={};ne[T]=ne[P]=ne[J]=ne[z]=ne[k]=ne[H]=ne[Z]=ne[le]=ne[ge]=ne[Me]=ne[Te]=ne[de]=ne[fe]=ne[ee]=ne[Se]=ne[xe]=ne[Pe]=ne[V]=ne[We]=ne[Ee]=ne[Ne]=ne[ue]=!0,ne[j]=ne[$]=ne[ae]=!1;function De(je,ze,Qe,ot,se,G){var Be,Ke=ze&D,it=ze&U,Ve=ze&O;if(Qe&&(Be=se?Qe(je,ot,se,G):Qe(je)),Be!==void 0)return Be;if(!S(je))return je;var bt=y(je);if(bt){if(Be=f(je),!Ke)return s(je,Be)}else{var lt=A(je),ct=lt==$||lt==ce;if(w(je))return a(je,Ke);if(lt==ee||lt==T||ct&&!se){if(Be=it||ct?{}:g(je),!Ke)return it?c(je,i(Be,je)):o(je,r(Be,je))}else{if(!ne[lt])return se?je:{};Be=h(je,lt,Ke)}}G||(G=new n);var kt=G.get(je);if(kt)return kt;G.set(je,Be),C(je)?je.forEach(function(Pt){Be.add(De(Pt,ze,Qe,Pt,je,G))}):v(je)&&je.forEach(function(Pt,Ct){Be.set(Ct,De(Pt,ze,Qe,Ct,je,G))});var Je=Ve?it?u:l:it?F:M,Tt=bt?void 0:Je(je);return e(Tt||je,function(Pt,Ct){Tt&&(Ct=Pt,Pt=je[Ct]),t(Be,Ct,De(Pt,ze,Qe,Ct,je,G))}),Be}return Y0=De,Y0}var J0,GB;function MY(){if(GB)return J0;GB=1;var n=wz(),e=bz();function t(r,i){return i.length<2?r:n(r,e(i,0,-1))}return J0=t,J0}var Z0,KB;function SY(){if(KB)return Z0;KB=1;var n=BN(),e=_z(),t=MY(),r=xz(),i=Object.prototype,a=i.hasOwnProperty;function s(o,c){c=n(c,o);var l=-1,u=c.length;if(!u)return!0;for(var A=o==null||typeof o!="object"&&typeof o!="function";++l<u;){var f=c[l];if(typeof f=="string"){if(f==="__proto__"&&!a.call(o,"__proto__"))return!1;if(f==="constructor"&&l+1<u&&typeof c[l+1]=="string"&&c[l+1]==="prototype"){if(A&&l===0)continue;return!1}}}var h=t(o,c);return h==null||delete h[r(e(c))]}return Z0=s,Z0}var e_,qB;function CY(){if(qB)return e_;qB=1;var n=Mz();function e(t){return n(t)?void 0:t}return e_=e,e_}var t_,XB;function PY(){if(XB)return t_;XB=1;var n=Sz();function e(t){var r=t==null?0:t.length;return r?n(t,1):[]}return t_=e,t_}var n_,YB;function EY(){if(YB)return n_;YB=1;var n=PY(),e=Cz(),t=Pz();function r(i){return t(e(i,void 0,n),i+"")}return n_=r,n_}var r_,JB;function BY(){if(JB)return r_;JB=1;var n=Ez(),e=xY(),t=SY(),r=BN(),i=yg(),a=CY(),s=EY(),o=w4(),c=1,l=2,u=4,A=s(function(f,h){var g={};if(f==null)return g;var y=!1;h=n(h,function(v){return v=r(v,f),y||(y=v.length>1),v}),i(f,o(f),g),y&&(g=e(g,c|l|u,a));for(var w=h.length;w--;)t(g,h[w]);return g});return r_=A,r_}var TY=BY();const b4=_f(TY);var kY=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],IY=["width","height","className","style","children","type"];function sf(n){"@babel/helpers - typeof";return sf=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},sf(n)}function gy(){return gy=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},gy.apply(this,arguments)}function LY(n,e){if(n==null)return{};var t=FY(n,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function FY(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function NY(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ZB(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,x4(r.key),r)}}function DY(n,e,t){return e&&ZB(n.prototype,e),t&&ZB(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function RY(n,e,t){return e=vy(e),UY(n,_4()?Reflect.construct(e,t||[],vy(n).constructor):e.apply(n,t))}function UY(n,e){if(e&&(sf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OY(n)}function OY(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _4(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_4=function(){return!!n})()}function vy(n){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vy(n)}function HY(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&F2(n,e)}function F2(n,e){return F2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},F2(n,e)}function eT(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Qr(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?eT(Object(t),!0).forEach(function(r){Wl(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):eT(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Wl(n,e,t){return e=x4(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function x4(n){var e=WY(n,"string");return sf(e)=="symbol"?e:e+""}function WY(n,e){if(sf(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(sf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}var kp="value",i_=function n(e){var t=e.depth,r=e.node,i=e.index,a=e.valueKey,s=r.children,o=t+1,c=s&&s.length?s.map(function(u,A){return n({depth:o,node:u,index:A,valueKey:a})}):null,l;return s&&s.length?l=c.reduce(function(u,A){return u+A[kp]},0):l=IN(r[a])||r[a]<=0?0:r[a],Qr(Qr({},r),{},Wl(Wl(Wl({children:c},kp,l),"depth",t),"index",i))},QY=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}},$Y=function(e,t){var r=t<0?0:t;return e.map(function(i){var a=i[kp]*r;return Qr(Qr({},i),{},{area:IN(a)||a<=0?0:a})})},jY=function(e,t,r){var i=t*t,a=e.area*e.area,s=e.reduce(function(l,u){return{min:Math.min(l.min,u.area),max:Math.max(l.max,u.area)}},{min:1/0,max:0}),o=s.min,c=s.max;return a?Math.max(i*c*r/a,a/(i*o*r)):1/0},zY=function(e,t,r,i){var a=t?Math.round(e.area/t):0;(i||a>r.height)&&(a=r.height);for(var s=r.x,o,c=0,l=e.length;c<l;c++)o=e[c],o.x=s,o.y=r.y,o.height=a,o.width=Math.min(a?Math.round(o.area/a):0,r.x+r.width-s),s+=o.width;return o.width+=r.x+r.width-s,Qr(Qr({},r),{},{y:r.y+a,height:r.height-a})},VY=function(e,t,r,i){var a=t?Math.round(e.area/t):0;(i||a>r.width)&&(a=r.width);for(var s=r.y,o,c=0,l=e.length;c<l;c++)o=e[c],o.x=r.x,o.y=s,o.width=a,o.height=Math.min(a?Math.round(o.area/a):0,r.y+r.height-s),s+=o.height;return o&&(o.height+=r.y+r.height-s),Qr(Qr({},r),{},{x:r.x+a,width:r.width-a})},tT=function(e,t,r,i){return t===r.width?zY(e,t,r,i):VY(e,t,r,i)},a_=function n(e,t){var r=e.children;if(r&&r.length){var i=QY(e),a=[],s=1/0,o,c,l=Math.min(i.width,i.height),u=$Y(r,i.width*i.height/e[kp]),A=u.slice();for(a.area=0;A.length>0;)a.push(o=A[0]),a.area+=o.area,c=jY(a,l,t),c<=s?(A.shift(),s=c):(a.area-=a.pop().area,i=tT(a,l,i,!1),l=Math.min(i.width,i.height),a.length=a.area=0,s=1/0);return a.length&&(i=tT(a,l,i,!0),a.length=a.area=0),Qr(Qr({},e),{},{children:u.map(function(f){return n(f,t)})})}return e},GY={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},ZS=(function(n){function e(){var t;NY(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=RY(this,e,[].concat(i)),Wl(t,"state",Qr({},GY)),Wl(t,"handleAnimationEnd",function(){var s=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ka(s)&&s()}),Wl(t,"handleAnimationStart",function(){var s=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ka(s)&&s()}),t}return HY(e,n),DY(e,[{key:"handleMouseEnter",value:function(r,i){i.persist();var a=this.props,s=a.onMouseEnter,o=a.children,c=Fu(o,Dl);c?this.setState({isTooltipActive:!0,activeNode:r},function(){s&&s(r,i)}):s&&s(r,i)}},{key:"handleMouseLeave",value:function(r,i){i.persist();var a=this.props,s=a.onMouseLeave,o=a.children,c=Fu(o,Dl);c?this.setState({isTooltipActive:!1,activeNode:null},function(){s&&s(r,i)}):s&&s(r,i)}},{key:"handleClick",value:function(r){var i=this.props,a=i.onClick,s=i.type;if(s==="nest"&&r.children){var o=this.props,c=o.width,l=o.height,u=o.dataKey,A=o.aspectRatio,f=i_({depth:0,node:Qr(Qr({},r),{},{x:0,y:0,width:c,height:l}),index:0,valueKey:u}),h=a_(f,A),g=this.state.nestIndex;g.push(r),this.setState({formatRoot:h,currentRoot:f,nestIndex:g})}a&&a(r)}},{key:"handleNestIndex",value:function(r,i){var a=this.state.nestIndex,s=this.props,o=s.width,c=s.height,l=s.dataKey,u=s.aspectRatio,A=i_({depth:0,node:Qr(Qr({},r),{},{x:0,y:0,width:o,height:c}),index:0,valueKey:l}),f=a_(A,u);a=a.slice(0,i+1),this.setState({formatRoot:f,currentRoot:r,nestIndex:a})}},{key:"renderItem",value:function(r,i,a){var s=this,o=this.props,c=o.isAnimationActive,l=o.animationBegin,u=o.animationDuration,A=o.animationEasing,f=o.isUpdateAnimationActive,h=o.type,g=o.animationId,y=o.colorPanel,w=this.state.isAnimationFinished,v=i.width,S=i.height,C=i.x,M=i.y,F=i.depth,D=parseInt("".concat((Math.random()*2-1)*v),10),U={};return(a||h==="nest")&&(U={onMouseEnter:this.handleMouseEnter.bind(this,i),onMouseLeave:this.handleMouseLeave.bind(this,i),onClick:this.handleClick.bind(this,i)}),c?Ge.createElement(Zh,{begin:l,duration:u,isActive:c,easing:A,key:"treemap-".concat(g),from:{x:C,y:M,width:v,height:S},to:{x:C,y:M,width:v,height:S},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(O){var T=O.x,P=O.y,k=O.width,H=O.height;return Ge.createElement(Zh,{from:"translate(".concat(D,"px, ").concat(D,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:l,easing:A,isActive:c,duration:u},Ge.createElement(Kr,U,(function(){return F>2&&!w?null:s.constructor.renderContentItem(r,Qr(Qr({},i),{},{isAnimationActive:c,isUpdateAnimationActive:!f,width:k,height:H,x:T,y:P}),h,y)})()))}):Ge.createElement(Kr,U,this.constructor.renderContentItem(r,Qr(Qr({},i),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:v,height:S,x:C,y:M}),h,y))}},{key:"renderNode",value:function(r,i){var a=this,s=this.props,o=s.content,c=s.type,l=Qr(Qr(Qr({},qi(this.props,!1)),i),{},{root:r}),u=!i.children||!i.children.length,A=this.state.currentRoot,f=(A.children||[]).filter(function(h){return h.depth===i.depth&&h.name===i.name});return!f.length&&r.depth&&c==="nest"?null:Ge.createElement(Kr,{key:"recharts-treemap-node-".concat(l.x,"-").concat(l.y,"-").concat(l.name),className:"recharts-treemap-depth-".concat(i.depth)},this.renderItem(o,l,u),i.children&&i.children.length?i.children.map(function(h){return a.renderNode(i,h)}):null)}},{key:"renderAllNodes",value:function(){var r=this.state.formatRoot;return r?this.renderNode(r,r):null}},{key:"renderTooltip",value:function(){var r=this.props,i=r.children,a=r.nameKey,s=Fu(i,Dl);if(!s)return null;var o=this.props,c=o.width,l=o.height,u=this.state,A=u.isTooltipActive,f=u.activeNode,h={x:0,y:0,width:c,height:l},g=f?{x:f.x+f.width/2,y:f.y+f.height/2}:null,y=A&&f?[{payload:f,name:ha(f,a,""),value:ha(f,kp)}]:[];return Ge.cloneElement(s,{viewBox:h,active:A,coordinate:g,label:"",payload:y})}},{key:"renderNestIndex",value:function(){var r=this,i=this.props,a=i.nameKey,s=i.nestIndexContent,o=this.state.nestIndex;return Ge.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},o.map(function(c,l){var u=Nm(c,a,"root"),A=null;return Ge.isValidElement(s)&&(A=Ge.cloneElement(s,c,l)),Ka(s)?A=s(c,l):A=u,Ge.createElement("div",{onClick:r.handleNestIndex.bind(r,c,l),key:"nest-index-".concat(wN()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},A)}))}},{key:"render",value:function(){if(!TN(this))return null;var r=this.props,i=r.width,a=r.height,s=r.className,o=r.style,c=r.children,l=r.type,u=LY(r,IY),A=qi(u,!1);return Ge.createElement("div",{className:_o("recharts-wrapper",s),style:Qr(Qr({},o),{},{position:"relative",cursor:"default",width:i,height:a}),role:"region"},Ge.createElement(Dw,gy({},A,{width:i,height:l==="nest"?a-30:a}),this.renderAllNodes(),kN(c)),this.renderTooltip(),l==="nest"&&this.renderNestIndex())}}],[{key:"getDerivedStateFromProps",value:function(r,i){if(r.data!==i.prevData||r.type!==i.prevType||r.width!==i.prevWidth||r.height!==i.prevHeight||r.dataKey!==i.prevDataKey||r.aspectRatio!==i.prevAspectRatio){var a=i_({depth:0,node:{children:r.data,x:0,y:0,width:r.width,height:r.height},index:0,valueKey:r.dataKey}),s=a_(a,r.aspectRatio);return Qr(Qr({},i),{},{formatRoot:s,currentRoot:a,nestIndex:[a],prevAspectRatio:r.aspectRatio,prevData:r.data,prevWidth:r.width,prevHeight:r.height,prevDataKey:r.dataKey,prevType:r.type})}return null}},{key:"renderContentItem",value:function(r,i,a,s){if(Ge.isValidElement(r))return Ge.cloneElement(r,i);if(Ka(r))return r(i);var o=i.x,c=i.y,l=i.width,u=i.height,A=i.index,f=null;l>10&&u>10&&i.children&&a==="nest"&&(f=Ge.createElement(AS,{points:[{x:o+2,y:c+u/2},{x:o+6,y:c+u/2+3},{x:o+2,y:c+u/2+6}]}));var h=null,g=Bz(i.name);l>20&&u>20&&g.width<l&&g.height<u&&(h=Ge.createElement("text",{x:o+8,y:c+u/2+7,fontSize:14},i.name));var y=s||kY;return Ge.createElement("g",null,Ge.createElement(mS,gy({fill:i.depth<2?y[A%y.length]:"rgba(255,255,255,0)",stroke:"#fff"},b4(i,"children"),{role:"img"})),f,h)}}])})(te.PureComponent);Wl(ZS,"displayName","Treemap");Wl(ZS,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!mA.isSsr,isUpdateAnimationActive:!mA.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var s_,nT;function KY(){if(nT)return s_;nT=1;function n(e,t){for(var r,i=-1,a=e.length;++i<a;){var s=t(e[i]);s!==void 0&&(r=r===void 0?s:r+s)}return r}return s_=n,s_}var o_,rT;function qY(){if(rT)return o_;rT=1;var n=Tz(),e=KY();function t(r,i){return r&&r.length?e(r,n(i,2)):0}return o_=t,o_}var XY=qY();const YY=_f(XY);var JY=["width","height","className","style","children"],ZY=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function of(n){"@babel/helpers - typeof";return of=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},of(n)}function iT(n,e){if(n==null)return{};var t=eJ(n,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function eJ(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function Vd(){return Vd=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Vd.apply(this,arguments)}function tJ(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function aT(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,S4(r.key),r)}}function nJ(n,e,t){return e&&aT(n.prototype,e),t&&aT(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function rJ(n,e,t){return e=yy(e),iJ(n,M4()?Reflect.construct(e,t||[],yy(n).constructor):e.apply(n,t))}function iJ(n,e){if(e&&(of(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aJ(n)}function aJ(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function M4(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M4=function(){return!!n})()}function yy(n){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yy(n)}function sJ(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&N2(n,e)}function N2(n,e){return N2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},N2(n,e)}function sT(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function fi(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?sT(Object(t),!0).forEach(function(r){Vw(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):sT(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Vw(n,e,t){return e=S4(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function S4(n){var e=oJ(n,"string");return of(e)=="symbol"?e:e+""}function oJ(n,e){if(of(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(of(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}var cJ={x:0,y:0},lJ=function(e,t){var r=+e,i=t-r;return function(a){return r+i*a}},Gw=function(e){return e.y+e.dy/2},Ip=function(e){return e&&e.value||0},wy=function(e,t){return t.reduce(function(r,i){return r+Ip(e[i])},0)},uJ=function(e,t,r){return r.reduce(function(i,a){var s=t[a],o=e[s.source];return i+Gw(o)*Ip(t[a])},0)},dJ=function(e,t,r){return r.reduce(function(i,a){var s=t[a],o=e[s.target];return i+Gw(o)*Ip(t[a])},0)},AJ=function(e,t){return e.y-t.y},hJ=function(e,t){for(var r=[],i=[],a=[],s=[],o=0,c=e.length;o<c;o++){var l=e[o];l.source===t&&(a.push(l.target),s.push(o)),l.target===t&&(r.push(l.source),i.push(o))}return{sourceNodes:r,sourceLinks:i,targetLinks:s,targetNodes:a}},fJ=function n(e,t){for(var r=t.targetNodes,i=0,a=r.length;i<a;i++){var s=e[r[i]];s&&(s.depth=Math.max(t.depth+1,s.depth),n(e,s))}},mJ=function(e,t,r){for(var i=e.nodes,a=e.links,s=i.map(function(y,w){var v=hJ(a,w);return fi(fi(fi({},y),v),{},{value:Math.max(wy(a,v.sourceLinks),wy(a,v.targetLinks)),depth:0})}),o=0,c=s.length;o<c;o++){var l=s[o];l.sourceNodes.length||fJ(s,l)}var u=Iz(s,function(y){return y.depth}).depth;if(u>=1)for(var A=(t-r)/u,f=0,h=s.length;f<h;f++){var g=s[f];g.targetNodes.length||(g.depth=u),g.x=g.depth*A,g.dx=r}return{tree:s,maxDepth:u}},pJ=function(e){for(var t=[],r=0,i=e.length;r<i;r++){var a=e[r];t[a.depth]||(t[a.depth]=[]),t[a.depth].push(a)}return t},gJ=function(e,t,r,i){for(var a=Lz(e.map(function(A){return(t-(A.length-1)*r)/YY(A,Ip)})),s=0,o=e.length;s<o;s++)for(var c=0,l=e[s].length;c<l;c++){var u=e[s][c];u.y=c,u.dy=u.value*a}return i.map(function(A){return fi(fi({},A),{},{dy:Ip(A)*a})})},c_=function(e,t,r){for(var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=0,s=e.length;a<s;a++){var o=e[a],c=o.length;i&&o.sort(AJ);for(var l=0,u=0;u<c;u++){var A=o[u],f=l-A.y;f>0&&(A.y+=f),l=A.y+A.dy+r}l=t+r;for(var h=c-1;h>=0;h--){var g=o[h],y=g.y+g.dy+r-l;if(y>0)g.y-=y,l=g.y;else break}}},vJ=function(e,t,r,i){for(var a=0,s=t.length;a<s;a++)for(var o=t[a],c=0,l=o.length;c<l;c++){var u=o[c];if(u.sourceLinks.length){var A=wy(r,u.sourceLinks),f=uJ(e,r,u.sourceLinks),h=f/A;u.y+=(h-Gw(u))*i}}},yJ=function(e,t,r,i){for(var a=t.length-1;a>=0;a--)for(var s=t[a],o=0,c=s.length;o<c;o++){var l=s[o];if(l.targetLinks.length){var u=wy(r,l.targetLinks),A=dJ(e,r,l.targetLinks),f=A/u;l.y+=(f-Gw(l))*i}}},wJ=function(e,t){for(var r=0,i=e.length;r<i;r++){var a=e[r],s=0,o=0;a.targetLinks.sort(function(g,y){return e[t[g].target].y-e[t[y].target].y}),a.sourceLinks.sort(function(g,y){return e[t[g].source].y-e[t[y].source].y});for(var c=0,l=a.targetLinks.length;c<l;c++){var u=t[a.targetLinks[c]];u&&(u.sy=s,s+=u.dy)}for(var A=0,f=a.sourceLinks.length;A<f;A++){var h=t[a.sourceLinks[A]];h&&(h.ty=o,o+=h.dy)}}},bJ=function(e){var t=e.data,r=e.width,i=e.height,a=e.iterations,s=e.nodeWidth,o=e.nodePadding,c=e.sort,l=t.links,u=mJ(t,r,s),A=u.tree,f=pJ(A),h=gJ(f,i,o,l);c_(f,i,o,c);for(var g=1,y=1;y<=a;y++)yJ(A,f,h,g*=.99),c_(f,i,o,c),vJ(A,f,h,g),c_(f,i,o,c);return wJ(A,h),{nodes:A,links:h}},_J=function(e,t){return t==="node"?{x:e.x+e.width/2,y:e.y+e.height/2}:{x:(e.sourceX+e.targetX)/2,y:(e.sourceY+e.targetY)/2}},xJ=function(e,t,r){var i=e.payload;if(t==="node")return[{payload:e,name:ha(i,r,""),value:ha(i,"value")}];if(i.source&&i.target){var a=ha(i.source,r,""),s=ha(i.target,r,"");return[{payload:e,name:"".concat(a," - ").concat(s),value:ha(i,"value")}]}return[]},eC=(function(n){function e(){var t;tJ(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=rJ(this,e,[].concat(i)),Vw(t,"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),t}return sJ(e,n),nJ(e,[{key:"handleMouseEnter",value:function(r,i,a){var s=this.props,o=s.onMouseEnter,c=s.children,l=Fu(c,Dl);l?this.setState(function(u){return l.props.trigger==="hover"?fi(fi({},u),{},{activeElement:r,activeElementType:i,isTooltipActive:!0}):u},function(){o&&o(r,i,a)}):o&&o(r,i,a)}},{key:"handleMouseLeave",value:function(r,i,a){var s=this.props,o=s.onMouseLeave,c=s.children,l=Fu(c,Dl);l?this.setState(function(u){return l.props.trigger==="hover"?fi(fi({},u),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):u},function(){o&&o(r,i,a)}):o&&o(r,i,a)}},{key:"handleClick",value:function(r,i,a){var s=this.props,o=s.onClick,c=s.children,l=Fu(c,Dl);l&&l.props.trigger==="click"&&(this.state.isTooltipActive?this.setState(function(u){return fi(fi({},u),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})}):this.setState(function(u){return fi(fi({},u),{},{activeElement:r,activeElementType:i,isTooltipActive:!0})})),o&&o(r,i,a)}},{key:"renderLinks",value:function(r,i){var a=this,s=this.props,o=s.linkCurvature,c=s.link,l=s.margin,u=Nm(l,"top")||0,A=Nm(l,"left")||0;return Ge.createElement(Kr,{className:"recharts-sankey-links",key:"recharts-sankey-links"},r.map(function(f,h){var g=f.sy,y=f.ty,w=f.dy,v=i[f.source],S=i[f.target],C=v.x+v.dx+A,M=S.x+A,F=lJ(C,M),D=F(o),U=F(1-o),O=v.y+g+w/2+u,T=S.y+y+w/2+u,P=fi({sourceX:C,targetX:M,sourceY:O,targetY:T,sourceControlX:D,targetControlX:U,sourceRelativeY:g,targetRelativeY:y,linkWidth:w,index:h,payload:fi(fi({},f),{},{source:v,target:S})},qi(c,!1)),k={onMouseEnter:a.handleMouseEnter.bind(a,P,"link"),onMouseLeave:a.handleMouseLeave.bind(a,P,"link"),onClick:a.handleClick.bind(a,P,"link")};return Ge.createElement(Kr,Vd({key:"link-".concat(f.source,"-").concat(f.target,"-").concat(f.value)},k),a.constructor.renderLinkItem(c,P))}))}},{key:"renderNodes",value:function(r){var i=this,a=this.props,s=a.node,o=a.margin,c=Nm(o,"top")||0,l=Nm(o,"left")||0;return Ge.createElement(Kr,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},r.map(function(u,A){var f=u.x,h=u.y,g=u.dx,y=u.dy,w=fi(fi({},qi(s,!1)),{},{x:f+l,y:h+c,width:g,height:y,index:A,payload:u}),v={onMouseEnter:i.handleMouseEnter.bind(i,w,"node"),onMouseLeave:i.handleMouseLeave.bind(i,w,"node"),onClick:i.handleClick.bind(i,w,"node")};return Ge.createElement(Kr,Vd({key:"node-".concat(u.x,"-").concat(u.y,"-").concat(u.value)},v),i.constructor.renderNodeItem(s,w))}))}},{key:"renderTooltip",value:function(){var r=this.props,i=r.children,a=r.width,s=r.height,o=r.nameKey,c=Fu(i,Dl);if(!c)return null;var l=this.state,u=l.isTooltipActive,A=l.activeElement,f=l.activeElementType,h={x:0,y:0,width:a,height:s},g=A?_J(A,f):cJ,y=A?xJ(A,f,o):[];return Ge.cloneElement(c,{viewBox:h,active:u,coordinate:g,label:"",payload:y})}},{key:"render",value:function(){if(!TN(this))return null;var r=this.props,i=r.width,a=r.height,s=r.className,o=r.style,c=r.children,l=iT(r,JY),u=this.state,A=u.links,f=u.nodes,h=qi(l,!1);return Ge.createElement("div",{className:_o("recharts-wrapper",s),style:fi(fi({},o),{},{position:"relative",cursor:"default",width:i,height:a}),role:"region"},Ge.createElement(Dw,Vd({},h,{width:i,height:a}),kN(c),this.renderLinks(A,f),this.renderNodes(f)),this.renderTooltip())}}],[{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,s=r.width,o=r.height,c=r.margin,l=r.iterations,u=r.nodeWidth,A=r.nodePadding,f=r.sort;if(a!==i.prevData||s!==i.prevWidth||o!==i.prevHeight||!kz(c,i.prevMargin)||l!==i.prevIterations||u!==i.prevNodeWidth||A!==i.prevNodePadding||f!==i.sort){var h=s-(c&&c.left||0)-(c&&c.right||0),g=o-(c&&c.top||0)-(c&&c.bottom||0),y=bJ({data:a,width:h,height:g,iterations:l,nodeWidth:u,nodePadding:A,sort:f}),w=y.links,v=y.nodes;return fi(fi({},i),{},{nodes:v,links:w,prevData:a,prevWidth:l,prevHeight:o,prevMargin:c,prevNodePadding:A,prevNodeWidth:u,prevIterations:l,prevSort:f})}return null}},{key:"renderLinkItem",value:function(r,i){if(Ge.isValidElement(r))return Ge.cloneElement(r,i);if(Ka(r))return r(i);var a=i.sourceX,s=i.sourceY,o=i.sourceControlX,c=i.targetX,l=i.targetY,u=i.targetControlX,A=i.linkWidth,f=iT(i,ZY);return Ge.createElement("path",Vd({className:"recharts-sankey-link",d:`
          M`.concat(a,",").concat(s,`
          C`).concat(o,",").concat(s," ").concat(u,",").concat(l," ").concat(c,",").concat(l,`
        `),fill:"none",stroke:"#333",strokeWidth:A,strokeOpacity:"0.2"},qi(f,!1)))}},{key:"renderNodeItem",value:function(r,i){return Ge.isValidElement(r)?Ge.cloneElement(r,i):Ka(r)?r(i):Ge.createElement(mS,Vd({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},qi(i,!1),{role:"img"}))}}])})(te.PureComponent);Vw(eC,"displayName","Sankey");Vw(eC,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5},sort:!0});var MJ=ug({chartName:"RadarChart",GraphicalChild:gg,axisComponents:[{axisType:"angleAxis",AxisComp:pS},{axisType:"radiusAxis",AxisComp:gS}],formatAxisMap:LN,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),SJ=ug({chartName:"ScatterChart",GraphicalChild:Tf,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:vS},{axisType:"yAxis",AxisComp:yS},{axisType:"zAxis",AxisComp:Bf}],formatAxisMap:FN}),CJ=ug({chartName:"RadialBarChart",GraphicalChild:vg,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:pS},{axisType:"radiusAxis",AxisComp:gS}],formatAxisMap:LN,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),PJ=ug({chartName:"ComposedChart",GraphicalChild:[zN,NN,DN,Tf],axisComponents:[{axisType:"xAxis",AxisComp:vS},{axisType:"yAxis",AxisComp:yS},{axisType:"zAxis",AxisComp:Bf}],formatAxisMap:FN});function D2(){return D2=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},D2.apply(this,arguments)}function oT(n,e){return TJ(n)||BJ(n,e)||C4(n,e)||EJ()}function EJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BJ(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,a,s,o=[],c=!0,l=!1;try{if(a=(t=t.call(n)).next,e!==0)for(;!(c=(r=a.call(t)).done)&&(o.push(r.value),o.length!==e);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(l)throw i}}return o}}function TJ(n){if(Array.isArray(n))return n}function kJ(n){return FJ(n)||LJ(n)||C4(n)||IJ()}function IJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C4(n,e){if(n){if(typeof n=="string")return R2(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return R2(n,e)}}function LJ(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function FJ(n){if(Array.isArray(n))return R2(n)}function R2(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var NJ={fontWeight:"bold",paintOrder:"stroke fill",fontSize:".75rem",stroke:"#FFF",fill:"black",pointerEvents:"none"};function P4(n){if(!n.children||n.children.length===0)return 1;var e=n.children.map(function(t){return P4(t)});return 1+Math.max.apply(Math,kJ(e))}var DJ=function(e){var t=e.className,r=e.data,i=e.children,a=e.width,s=e.height,o=e.padding,c=o===void 0?2:o,l=e.dataKey,u=l===void 0?"value":l,A=e.ringPadding,f=A===void 0?2:A,h=e.innerRadius,g=h===void 0?50:h,y=e.fill,w=y===void 0?"#333":y,v=e.stroke,S=v===void 0?"#FFF":v,C=e.textOptions,M=C===void 0?NJ:C,F=e.outerRadius,D=F===void 0?Math.min(a,s)/2:F,U=e.cx,O=U===void 0?a/2:U,T=e.cy,P=T===void 0?s/2:T,k=e.startAngle,H=k===void 0?0:k,j=e.endAngle,$=j===void 0?360:j,ce=e.onClick,de=e.onMouseEnter,fe=e.onMouseLeave,ee=te.useState(!1),Se=oT(ee,2),xe=Se[0],Pe=Se[1],V=te.useState(null),ae=oT(V,2),J=ae[0],z=ae[1],Z=Fz([0,r[u]],[0,$]),le=P4(r),ge=(D-g)/le,Me=[],Te=new Map([]);function We(je,ze){de&&de(je,ze),z(je),Pe(!0)}function Ee(je,ze){fe&&fe(je,ze),z(null),Pe(!1)}function Ne(je){ce&&ce(je)}function ue(je,ze){var Qe=ze.radius,ot=ze.innerR,se=ze.initialAngle,G=ze.childColor,Be=se;je&&je.forEach(function(Ke){var it,Ve,bt=Z(Ke[u]),lt=Be,ct=(it=(Ve=Ke==null?void 0:Ke.fill)!==null&&Ve!==void 0?Ve:G)!==null&&it!==void 0?it:w,kt=Yu(0,0,ot+Qe/2,-(lt+bt-bt/2)),Je=kt.x,Tt=kt.y;Be+=bt,Me.push(Ge.createElement("g",{"aria-label":Ke.name,tabIndex:0},Ge.createElement(RN,{onClick:function(){return Ne(Ke)},onMouseEnter:function(_t){return We(Ke,_t)},onMouseLeave:function(_t){return Ee(Ke,_t)},fill:ct,stroke:S,strokeWidth:c,startAngle:lt,endAngle:lt+bt,innerRadius:ot,outerRadius:ot+Qe,cx:O,cy:P}),Ge.createElement(UN,D2({},M,{alignmentBaseline:"middle",textAnchor:"middle",x:Je+O,y:P-Tt}),Ke[u])));var Pt=Yu(O,P,ot+Qe/2,lt),Ct=Pt.x,yt=Pt.y;return Te.set(Ke.name,{x:Ct,y:yt}),ue(Ke.children,{radius:Qe,innerR:ot+Qe+f,initialAngle:lt,childColor:ct})})}ue(r.children,{radius:ge,innerR:g,initialAngle:H});var ne=_o("recharts-sunburst",t);function De(){var je=Fu([i],Dl);if(!je||!J)return null;var ze={x:0,y:0,width:a,height:s};return Ge.cloneElement(je,{viewBox:ze,coordinate:Te.get(J.name),payload:[J],active:xe})}return Ge.createElement("div",{className:_o("recharts-wrapper",t),style:{position:"relative",width:a,height:s},role:"region"},Ge.createElement(Dw,{width:a,height:s},i,Ge.createElement(Kr,{className:ne},Me)),De())};function Lp(n){"@babel/helpers - typeof";return Lp=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},Lp(n)}function U2(){return U2=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},U2.apply(this,arguments)}function cT(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function l_(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?cT(Object(t),!0).forEach(function(r){RJ(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):cT(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function RJ(n,e,t){return e=UJ(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function UJ(n){var e=OJ(n,"string");return Lp(e)=="symbol"?e:e+""}function OJ(n,e){if(Lp(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Lp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function HJ(n,e){var t="".concat(e.x||n.x),r=parseInt(t,10),i="".concat(e.y||n.y),a=parseInt(i,10),s="".concat((e==null?void 0:e.height)||(n==null?void 0:n.height)),o=parseInt(s,10);return l_(l_(l_({},e),Nz(n)),{},{height:o,x:r,y:a})}function WJ(n){return Ge.createElement(Zv,U2({shapeType:"trapezoid",propTransformer:HJ},n))}var O2;function lT(n,e){return zJ(n)||jJ(n,e)||$J(n,e)||QJ()}function QJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $J(n,e){if(n){if(typeof n=="string")return uT(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return uT(n,e)}}function uT(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function jJ(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,a,s,o=[],c=!0,l=!1;try{if(a=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=a.call(t)).done)&&(o.push(r.value),o.length!==e);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(l)throw i}}return o}}function zJ(n){if(Array.isArray(n))return n}function cf(n){"@babel/helpers - typeof";return cf=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},cf(n)}function by(){return by=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},by.apply(this,arguments)}function dT(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function zi(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?dT(Object(t),!0).forEach(function(r){Ql(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):dT(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function VJ(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function AT(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,B4(r.key),r)}}function GJ(n,e,t){return e&&AT(n.prototype,e),t&&AT(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function KJ(n,e,t){return e=_y(e),qJ(n,E4()?Reflect.construct(e,t||[],_y(n).constructor):e.apply(n,t))}function qJ(n,e){if(e&&(cf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XJ(n)}function XJ(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function E4(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E4=function(){return!!n})()}function _y(n){return _y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_y(n)}function YJ(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&H2(n,e)}function H2(n,e){return H2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},H2(n,e)}function Ql(n,e,t){return e=B4(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function B4(n){var e=JJ(n,"string");return cf(e)=="symbol"?e:e+""}function JJ(n,e){if(cf(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(cf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}var sd=(function(n){function e(){var t;VJ(this,e);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t=KJ(this,e,[].concat(i)),Ql(t,"state",{isAnimationFinished:!1}),Ql(t,"handleAnimationEnd",function(){var s=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Ka(s)&&s()}),Ql(t,"handleAnimationStart",function(){var s=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Ka(s)&&s()}),t}return YJ(e,n),GJ(e,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"renderTrapezoidsStatically",value:function(r){var i=this,a=this.props,s=a.shape,o=a.activeShape;return r.map(function(c,l){var u=i.isActiveIndex(l)?o:s,A=zi(zi({},c),{},{isActive:i.isActiveIndex(l),stroke:c.stroke});return Ge.createElement(Kr,by({className:"recharts-funnel-trapezoid"},ey(i.props,c,l),{key:"trapezoid-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.name,"-").concat(c==null?void 0:c.value),role:"img"}),Ge.createElement(WJ,by({option:u},A)))})}},{key:"renderTrapezoidsWithAnimation",value:function(){var r=this,i=this.props,a=i.trapezoids,s=i.isAnimationActive,o=i.animationBegin,c=i.animationDuration,l=i.animationEasing,u=i.animationId,A=this.state.prevTrapezoids;return Ge.createElement(Zh,{begin:o,duration:c,isActive:s,easing:l,from:{t:0},to:{t:1},key:"funnel-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(f){var h=f.t,g=a.map(function(y,w){var v=A&&A[w];if(v){var S=Ti(v.x,y.x),C=Ti(v.y,y.y),M=Ti(v.upperWidth,y.upperWidth),F=Ti(v.lowerWidth,y.lowerWidth),D=Ti(v.height,y.height);return zi(zi({},y),{},{x:S(h),y:C(h),upperWidth:M(h),lowerWidth:F(h),height:D(h)})}var U=Ti(y.x+y.upperWidth/2,y.x),O=Ti(y.y+y.height/2,y.y),T=Ti(0,y.upperWidth),P=Ti(0,y.lowerWidth),k=Ti(0,y.height);return zi(zi({},y),{},{x:U(h),y:O(h),upperWidth:T(h),lowerWidth:P(h),height:k(h)})});return Ge.createElement(Kr,null,r.renderTrapezoidsStatically(g))})}},{key:"renderTrapezoids",value:function(){var r=this.props,i=r.trapezoids,a=r.isAnimationActive,s=this.state.prevTrapezoids;return a&&i&&i.length&&(!s||!Lw(s,i))?this.renderTrapezoidsWithAnimation():this.renderTrapezoidsStatically(i)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.trapezoids,s=r.className,o=r.isAnimationActive,c=this.state.isAnimationFinished;if(i||!a||!a.length)return null;var l=_o("recharts-trapezoids",s);return Ge.createElement(Kr,{className:l},this.renderTrapezoids(),(!o||c)&&lg.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curTrapezoids:r.trapezoids,prevTrapezoids:i.curTrapezoids}:r.trapezoids!==i.curTrapezoids?{curTrapezoids:r.trapezoids}:null}}])})(te.PureComponent);O2=sd;Ql(sd,"displayName","Funnel");Ql(sd,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!mA.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"});Ql(sd,"getRealFunnelData",function(n){var e=n.props,t=e.data,r=e.children,i=qi(n.props,!1),a=Fw(r,Nw);return t&&t.length?t.map(function(s,o){return zi(zi(zi({payload:s},i),s),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(s){return zi(zi({},i),s.props)}):[]});Ql(sd,"getRealWidthHeight",function(n,e){var t=n.props.width,r=e.width,i=e.height,a=e.left,s=e.right,o=e.top,c=e.bottom,l=i,u=r;return Dz(t)?u=t:Rz(t)&&(u=u*parseFloat(t)/100),{realWidth:u-a-s-50,realHeight:l-c-o,offsetX:(r-u)/2,offsetY:(i-l)/2}});Ql(sd,"getComposedData",function(n){var e=n.item,t=n.offset,r=O2.getRealFunnelData(e),i=e.props,a=i.dataKey,s=i.nameKey,o=i.tooltipType,c=i.lastShapeType,l=i.reversed,u=t.left,A=t.top,f=O2.getRealWidthHeight(e,t),h=f.realHeight,g=f.realWidth,y=f.offsetX,w=f.offsetY,v=Math.max.apply(null,r.map(function(D){return ha(D,a,0)})),S=r.length,C=h/S,M={x:t.left,y:t.top,width:t.width,height:t.height},F=r.map(function(D,U){var O=ha(D,a,0),T=ha(D,s,U),P=O,k;if(U!==S-1){if(k=ha(r[U+1],a,0),k instanceof Array){var H=k,j=lT(H,1);k=j[0]}}else if(O instanceof Array&&O.length===2){var $=lT(O,2);P=$[0],k=$[1]}else c==="rectangle"?k=P:k=0;var ce=(v-P)*g/(2*v)+A+25+y,de=C*U+u+w,fe=P/v*g,ee=k/v*g,Se=[{name:T,value:P,payload:D,dataKey:a,type:o}],xe={x:ce+fe/2,y:de+C/2};return zi(zi({x:ce,y:de,width:Math.max(fe,ee),upperWidth:fe,lowerWidth:ee,height:C,name:T,val:P,tooltipPayload:Se,tooltipPosition:xe},b4(D,"width")),{},{payload:D,parentViewBox:M,labelViewBox:{x:ce+(fe-ee)/4,y:de,width:Math.abs(fe-ee)/2+Math.min(fe,ee),height:C}})});return l&&(F=F.map(function(D,U){var O=D.y-U*C+(S-1-U)*C;return zi(zi({},D),{},{upperWidth:D.lowerWidth,lowerWidth:D.upperWidth,x:D.x-(D.lowerWidth-D.upperWidth)/2,y:D.y-U*C+(S-1-U)*C,tooltipPosition:zi(zi({},D.tooltipPosition),{},{y:O+C/2}),labelViewBox:zi(zi({},D.labelViewBox),{},{y:O})})})),{trapezoids:F,data:r}});var ZJ=ug({chartName:"FunnelChart",GraphicalChild:sd,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const eZ=Object.freeze(Object.defineProperty({__proto__:null,Area:NN,AreaChart:Uz,Bar:DN,BarChart:Oz,Brush:Hz,CartesianAxis:Wz,CartesianGrid:Qz,Cell:Nw,ComposedChart:PJ,Cross:$z,Curve:yN,Customized:o4,DefaultLegendContent:jz,DefaultTooltipContent:zz,Dot:pN,ErrorBar:vN,Funnel:sd,FunnelChart:ZJ,Global:mA,Label:Vz,LabelList:lg,Layer:Kr,Legend:Gz,Line:zN,LineChart:yV,Pie:Kz,PieChart:qz,PolarAngleAxis:pS,PolarGrid:c4,PolarRadiusAxis:gS,Polygon:AS,Radar:gg,RadarChart:MJ,RadialBar:vg,RadialBarChart:CJ,Rectangle:mS,ReferenceArea:Xz,ReferenceDot:Yz,ReferenceLine:Jz,ResponsiveContainer:Zz,Sankey:eC,Scatter:Tf,ScatterChart:SJ,Sector:RN,SunburstChart:DJ,Surface:Dw,Symbols:gN,Text:UN,Tooltip:Dl,Trapezoid:e8,Treemap:ZS,XAxis:vS,YAxis:yS,ZAxis:Bf},Symbol.toStringTag,{value:"Module"}));function Cr(n){"@babel/helpers - typeof";return Cr=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},Cr(n)}var yc=Uint8Array,mo=Uint16Array,tC=Int32Array,nC=new yc([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]),rC=new yc([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]),hT=new yc([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),T4=function(n,e){for(var t=new mo(31),r=0;r<31;++r)t[r]=e+=1<<n[r-1];for(var i=new tC(t[30]),r=1;r<30;++r)for(var a=t[r];a<t[r+1];++a)i[a]=a-t[r]<<5|r;return{b:t,r:i}},k4=T4(nC,2),tZ=k4.b,W2=k4.r;tZ[28]=258,W2[258]=28;var nZ=T4(rC,0),fT=nZ.r,Q2=new mo(32768);for(var qr=0;qr<32768;++qr){var pu=(qr&43690)>>1|(qr&21845)<<1;pu=(pu&52428)>>2|(pu&13107)<<2,pu=(pu&61680)>>4|(pu&3855)<<4,Q2[qr]=((pu&65280)>>8|(pu&255)<<8)>>1}var Zm=(function(n,e,t){for(var r=n.length,i=0,a=new mo(e);i<r;++i)n[i]&&++a[n[i]-1];var s=new mo(e);for(i=1;i<e;++i)s[i]=s[i-1]+a[i-1]<<1;var o;if(t){o=new mo(1<<e);var c=15-e;for(i=0;i<r;++i)if(n[i])for(var l=i<<4|n[i],u=e-n[i],A=s[n[i]-1]++<<u,f=A|(1<<u)-1;A<=f;++A)o[Q2[A]>>c]=l}else for(o=new mo(r),i=0;i<r;++i)n[i]&&(o[i]=Q2[s[n[i]-1]++]>>15-n[i]);return o}),bA=new yc(288);for(var qr=0;qr<144;++qr)bA[qr]=8;for(var qr=144;qr<256;++qr)bA[qr]=9;for(var qr=256;qr<280;++qr)bA[qr]=7;for(var qr=280;qr<288;++qr)bA[qr]=8;var xy=new yc(32);for(var qr=0;qr<32;++qr)xy[qr]=5;var rZ=Zm(bA,9,0),iZ=Zm(xy,5,0),I4=function(n){return(n+7)/8|0},aZ=function(n,e,t){return(t==null||t>n.length)&&(t=n.length),new yc(n.subarray(e,t))},wl=function(n,e,t){t<<=e&7;var r=e/8|0;n[r]|=t,n[r+1]|=t>>8},am=function(n,e,t){t<<=e&7;var r=e/8|0;n[r]|=t,n[r+1]|=t>>8,n[r+2]|=t>>16},u_=function(n,e){for(var t=[],r=0;r<n.length;++r)n[r]&&t.push({s:r,f:n[r]});var i=t.length,a=t.slice();if(!i)return{t:F4,l:0};if(i==1){var s=new yc(t[0].s+1);return s[t[0].s]=1,{t:s,l:1}}t.sort(function(F,D){return F.f-D.f}),t.push({s:-1,f:25001});var o=t[0],c=t[1],l=0,u=1,A=2;for(t[0]={s:-1,f:o.f+c.f,l:o,r:c};u!=i-1;)o=t[t[l].f<t[A].f?l++:A++],c=t[l!=u&&t[l].f<t[A].f?l++:A++],t[u++]={s:-1,f:o.f+c.f,l:o,r:c};for(var f=a[0].s,r=1;r<i;++r)a[r].s>f&&(f=a[r].s);var h=new mo(f+1),g=$2(t[u-1],h,0);if(g>e){var r=0,y=0,w=g-e,v=1<<w;for(a.sort(function(D,U){return h[U.s]-h[D.s]||D.f-U.f});r<i;++r){var S=a[r].s;if(h[S]>e)y+=v-(1<<g-h[S]),h[S]=e;else break}for(y>>=w;y>0;){var C=a[r].s;h[C]<e?y-=1<<e-h[C]++-1:++r}for(;r>=0&&y;--r){var M=a[r].s;h[M]==e&&(--h[M],++y)}g=e}return{t:new yc(h),l:g}},$2=function(n,e,t){return n.s==-1?Math.max($2(n.l,e,t+1),$2(n.r,e,t+1)):e[n.s]=t},mT=function(n){for(var e=n.length;e&&!n[--e];);for(var t=new mo(++e),r=0,i=n[0],a=1,s=function(c){t[r++]=c},o=1;o<=e;++o)if(n[o]==i&&o!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=n[o]}return{c:t.subarray(0,r),n:e}},sm=function(n,e){for(var t=0,r=0;r<e.length;++r)t+=n[r]*e[r];return t},L4=function(n,e,t){var r=t.length,i=I4(e+2);n[i]=r&255,n[i+1]=r>>8,n[i+2]=n[i]^255,n[i+3]=n[i+1]^255;for(var a=0;a<r;++a)n[i+a+4]=t[a];return(i+4+r)*8},pT=function(n,e,t,r,i,a,s,o,c,l,u){wl(e,u++,t),++i[256];for(var A=u_(i,15),f=A.t,h=A.l,g=u_(a,15),y=g.t,w=g.l,v=mT(f),S=v.c,C=v.n,M=mT(y),F=M.c,D=M.n,U=new mo(19),O=0;O<S.length;++O)++U[S[O]&31];for(var O=0;O<F.length;++O)++U[F[O]&31];for(var T=u_(U,7),P=T.t,k=T.l,H=19;H>4&&!P[hT[H-1]];--H);var j=l+5<<3,$=sm(i,bA)+sm(a,xy)+s,ce=sm(i,f)+sm(a,y)+s+14+3*H+sm(U,P)+2*U[16]+3*U[17]+7*U[18];if(c>=0&&j<=$&&j<=ce)return L4(e,u,n.subarray(c,c+l));var de,fe,ee,Se;if(wl(e,u,1+(ce<$)),u+=2,ce<$){de=Zm(f,h,0),fe=f,ee=Zm(y,w,0),Se=y;var xe=Zm(P,k,0);wl(e,u,C-257),wl(e,u+5,D-1),wl(e,u+10,H-4),u+=14;for(var O=0;O<H;++O)wl(e,u+3*O,P[hT[O]]);u+=3*H;for(var Pe=[S,F],V=0;V<2;++V)for(var ae=Pe[V],O=0;O<ae.length;++O){var J=ae[O]&31;wl(e,u,xe[J]),u+=P[J],J>15&&(wl(e,u,ae[O]>>5&127),u+=ae[O]>>12)}}else de=rZ,fe=bA,ee=iZ,Se=xy;for(var O=0;O<o;++O){var z=r[O];if(z>255){var J=z>>18&31;am(e,u,de[J+257]),u+=fe[J+257],J>7&&(wl(e,u,z>>23&31),u+=nC[J]);var Z=z&31;am(e,u,ee[Z]),u+=Se[Z],Z>3&&(am(e,u,z>>5&8191),u+=rC[Z])}else am(e,u,de[z]),u+=fe[z]}return am(e,u,de[256]),u+fe[256]},sZ=new tC([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F4=new yc(0),oZ=function(n,e,t,r,i,a){var s=a.z||n.length,o=new yc(r+s+5*(1+Math.ceil(s/7e3))+i),c=o.subarray(r,o.length-i),l=a.l,u=(a.r||0)&7;if(e){u&&(c[0]=a.r>>3);for(var A=sZ[e-1],f=A>>13,h=A&8191,g=(1<<t)-1,y=a.p||new mo(32768),w=a.h||new mo(g+1),v=Math.ceil(t/3),S=2*v,C=function(ue){return(n[ue]^n[ue+1]<<v^n[ue+2]<<S)&g},M=new tC(25e3),F=new mo(288),D=new mo(32),U=0,O=0,T=a.i||0,P=0,k=a.w||0,H=0;T+2<s;++T){var j=C(T),$=T&32767,ce=w[j];if(y[$]=ce,w[j]=$,k<=T){var de=s-T;if((U>7e3||P>24576)&&(de>423||!l)){u=pT(n,c,0,M,F,D,O,P,H,T-H,u),P=U=O=0,H=T;for(var fe=0;fe<286;++fe)F[fe]=0;for(var fe=0;fe<30;++fe)D[fe]=0}var ee=2,Se=0,xe=h,Pe=$-ce&32767;if(de>2&&j==C(T-Pe))for(var V=Math.min(f,de)-1,ae=Math.min(32767,T),J=Math.min(258,de);Pe<=ae&&--xe&&$!=ce;){if(n[T+ee]==n[T+ee-Pe]){for(var z=0;z<J&&n[T+z]==n[T+z-Pe];++z);if(z>ee){if(ee=z,Se=Pe,z>V)break;for(var Z=Math.min(Pe,z-2),le=0,fe=0;fe<Z;++fe){var ge=T-Pe+fe&32767,Me=y[ge],Te=ge-Me&32767;Te>le&&(le=Te,ce=ge)}}}$=ce,ce=y[$],Pe+=$-ce&32767}if(Se){M[P++]=268435456|W2[ee]<<18|fT[Se];var We=W2[ee]&31,Ee=fT[Se]&31;O+=nC[We]+rC[Ee],++F[257+We],++D[Ee],k=T+ee,++U}else M[P++]=n[T],++F[n[T]]}}for(T=Math.max(T,k);T<s;++T)M[P++]=n[T],++F[n[T]];u=pT(n,c,l,M,F,D,O,P,H,T-H,u),l||(a.r=u&7|c[u/8|0]<<3,u-=7,a.h=w,a.p=y,a.i=T,a.w=k)}else{for(var T=a.w||0;T<s+l;T+=65535){var Ne=T+65535;Ne>=s&&(c[u/8|0]=l,Ne=s),u=L4(c,u+1,n.subarray(T,Ne))}a.i=s}return aZ(o,0,r+I4(u)+i)},N4=function(){var n=1,e=0;return{p:function(t){for(var r=n,i=e,a=t.length|0,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=r+=t[s];r=(r&65535)+15*(r>>16),i=(i&65535)+15*(i>>16)}n=r,e=i},d:function(){return n%=65521,e%=65521,(n&255)<<24|(n&65280)<<8|(e&255)<<8|e>>8}}},cZ=function(n,e,t,r,i){if(!i&&(i={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),s=new yc(a.length+n.length);s.set(a),s.set(n,a.length),n=s,i.w=a.length}return oZ(n,e.level==null?6:e.level,e.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+e.mem,t,r,i)},D4=function(n,e,t){for(;t;++e)n[e]=t,t>>>=8},lZ=function(n,e){var t=e.level,r=t==0?0:t<6?1:t==9?3:2;if(n[0]=120,n[1]=r<<6|(e.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,e.dictionary){var i=N4();i.p(e.dictionary),D4(n,2,i.d())}};function j2(n,e){e||(e={});var t=N4();t.p(n);var r=cZ(n,e,e.dictionary?6:2,4);return lZ(r,e),D4(r,r.length-4,t.d()),r}var uZ=typeof TextDecoder<"u"&&new TextDecoder,dZ=0;try{uZ.decode(F4,{stream:!0}),dZ=1}catch{}function AZ(n){if(Array.isArray(n))return n}function hZ(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,a,s,o=[],c=!0,l=!1;try{if(a=(t=t.call(n)).next,e!==0)for(;!(c=(r=a.call(t)).done)&&(o.push(r.value),o.length!==e);c=!0);}catch(u){l=!0,i=u}finally{try{if(!c&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(l)throw i}}return o}}function gT(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function fZ(n,e){if(n){if(typeof n=="string")return gT(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?gT(n,e):void 0}}function mZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vT(n,e){return AZ(n)||hZ(n,e)||fZ(n,e)||mZ()}function yT(n,e="utf8"){return new TextDecoder(e).decode(n)}const pZ=new TextEncoder;function gZ(n){return pZ.encode(n)}const vZ=1024*8,yZ=(()=>{const n=new Uint8Array(4),e=new Uint32Array(n.buffer);return!((e[0]=1)&n[0])})(),d_={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};class iC{constructor(e=vZ,t={}){Mr(this,"buffer");Mr(this,"byteLength");Mr(this,"byteOffset");Mr(this,"length");Mr(this,"offset");Mr(this,"lastWrittenByte");Mr(this,"littleEndian");Mr(this,"_data");Mr(this,"_mark");Mr(this,"_marks");let r=!1;typeof e=="number"?e=new ArrayBuffer(e):(r=!0,this.lastWrittenByte=e.byteLength);const i=t.offset?t.offset>>>0:0,a=e.byteLength-i;let s=i;(ArrayBuffer.isView(e)||e instanceof iC)&&(e.byteLength!==e.buffer.byteLength&&(s=e.byteOffset+i),e=e.buffer),r?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=e,this.length=a,this.byteLength=a,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,a),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(){const 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)){const r=(this.offset+e)*2,i=new Uint8Array(r);i.set(new Uint8Array(this.buffer)),this.buffer=i.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,t){const r=d_[t].BYTES_PER_ELEMENT*e,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+r);if(this.littleEndian===yZ&&t!=="uint8"&&t!=="int8"){const o=new Uint8Array(this.buffer.slice(i,i+r));o.reverse();const c=new d_[t](o.buffer);return this.offset+=r,c.reverse(),c}const s=new d_[t](a);return this.offset+=r,s}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let r=0;r<e;r++)t+=this.readChar();return t}readUtf8(e=1){return yT(this.readBytes(e))}decodeText(e=1,t="utf8"){return yT(this.readBytes(e),t)}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 t=0;t<e.length;t++)this._data.setUint8(this.offset++,e[t]);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 t=0;t<e.length;t++)this.writeUint8(e.charCodeAt(t));return this}writeUtf8(e){return this.writeBytes(gZ(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 kf(n){let e=n.length;for(;--e>=0;)n[e]=0}const wZ=3,bZ=258,R4=29,_Z=256,xZ=_Z+1+R4,U4=30,MZ=512,SZ=new Array((xZ+2)*2);kf(SZ);const CZ=new Array(U4*2);kf(CZ);const PZ=new Array(MZ);kf(PZ);const EZ=new Array(bZ-wZ+1);kf(EZ);const BZ=new Array(R4);kf(BZ);const TZ=new Array(U4);kf(TZ);const kZ=(n,e,t,r)=>{let i=n&65535|0,a=n>>>16&65535|0,s=0;for(;t!==0;){s=t>2e3?2e3:t,t-=s;do i=i+e[r++]|0,a=a+i|0;while(--s);i%=65521,a%=65521}return i|a<<16|0};var z2=kZ;const IZ=()=>{let n,e=[];for(var t=0;t<256;t++){n=t;for(var r=0;r<8;r++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return e},LZ=new Uint32Array(IZ()),FZ=(n,e,t,r)=>{const i=LZ,a=r+t;n^=-1;for(let s=r;s<a;s++)n=n>>>8^i[(n^e[s])&255];return n^-1};var zc=FZ,V2={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"},O4={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const NZ=(n,e)=>Object.prototype.hasOwnProperty.call(n,e);var DZ=function(n){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const t=e.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const r in t)NZ(t,r)&&(n[r]=t[r])}}return n},RZ=n=>{let e=0;for(let r=0,i=n.length;r<i;r++)e+=n[r].length;const t=new Uint8Array(e);for(let r=0,i=0,a=n.length;r<a;r++){let s=n[r];t.set(s,i),i+=s.length}return t},H4={assign:DZ,flattenChunks:RZ};let W4=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{W4=!1}const Fp=new Uint8Array(256);for(let n=0;n<256;n++)Fp[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Fp[254]=Fp[254]=1;var UZ=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let e,t,r,i,a,s=n.length,o=0;for(i=0;i<s;i++)t=n.charCodeAt(i),(t&64512)===55296&&i+1<s&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),o+=t<128?1:t<2048?2:t<65536?3:4;for(e=new Uint8Array(o),a=0,i=0;a<o;i++)t=n.charCodeAt(i),(t&64512)===55296&&i+1<s&&(r=n.charCodeAt(i+1),(r&64512)===56320&&(t=65536+(t-55296<<10)+(r-56320),i++)),t<128?e[a++]=t:t<2048?(e[a++]=192|t>>>6,e[a++]=128|t&63):t<65536?(e[a++]=224|t>>>12,e[a++]=128|t>>>6&63,e[a++]=128|t&63):(e[a++]=240|t>>>18,e[a++]=128|t>>>12&63,e[a++]=128|t>>>6&63,e[a++]=128|t&63);return e};const OZ=(n,e)=>{if(e<65534&&n.subarray&&W4)return String.fromCharCode.apply(null,n.length===e?n:n.subarray(0,e));let t="";for(let r=0;r<e;r++)t+=String.fromCharCode(n[r]);return t};var HZ=(n,e)=>{const t=e||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,e));let r,i;const a=new Array(t*2);for(i=0,r=0;r<t;){let s=n[r++];if(s<128){a[i++]=s;continue}let o=Fp[s];if(o>4){a[i++]=65533,r+=o-1;continue}for(s&=o===2?31:o===3?15:7;o>1&&r<t;)s=s<<6|n[r++]&63,o--;if(o>1){a[i++]=65533;continue}s<65536?a[i++]=s:(s-=65536,a[i++]=55296|s>>10&1023,a[i++]=56320|s&1023)}return OZ(a,i)},WZ=(n,e)=>{e=e||n.length,e>n.length&&(e=n.length);let t=e-1;for(;t>=0&&(n[t]&192)===128;)t--;return t<0||t===0?e:t+Fp[n[t]]>e?t:e},G2={string2buf:UZ,buf2string:HZ,utf8border:WZ};function QZ(){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 $Z=QZ;const s1=16209,jZ=16191;var zZ=function(e,t){let r,i,a,s,o,c,l,u,A,f,h,g,y,w,v,S,C,M,F,D,U,O,T,P;const k=e.state;r=e.next_in,T=e.input,i=r+(e.avail_in-5),a=e.next_out,P=e.output,s=a-(t-e.avail_out),o=a+(e.avail_out-257),c=k.dmax,l=k.wsize,u=k.whave,A=k.wnext,f=k.window,h=k.hold,g=k.bits,y=k.lencode,w=k.distcode,v=(1<<k.lenbits)-1,S=(1<<k.distbits)-1;e:do{g<15&&(h+=T[r++]<<g,g+=8,h+=T[r++]<<g,g+=8),C=y[h&v];t:for(;;){if(M=C>>>24,h>>>=M,g-=M,M=C>>>16&255,M===0)P[a++]=C&65535;else if(M&16){F=C&65535,M&=15,M&&(g<M&&(h+=T[r++]<<g,g+=8),F+=h&(1<<M)-1,h>>>=M,g-=M),g<15&&(h+=T[r++]<<g,g+=8,h+=T[r++]<<g,g+=8),C=w[h&S];n:for(;;){if(M=C>>>24,h>>>=M,g-=M,M=C>>>16&255,M&16){if(D=C&65535,M&=15,g<M&&(h+=T[r++]<<g,g+=8,g<M&&(h+=T[r++]<<g,g+=8)),D+=h&(1<<M)-1,D>c){e.msg="invalid distance too far back",k.mode=s1;break e}if(h>>>=M,g-=M,M=a-s,D>M){if(M=D-M,M>u&&k.sane){e.msg="invalid distance too far back",k.mode=s1;break e}if(U=0,O=f,A===0){if(U+=l-M,M<F){F-=M;do P[a++]=f[U++];while(--M);U=a-D,O=P}}else if(A<M){if(U+=l+A-M,M-=A,M<F){F-=M;do P[a++]=f[U++];while(--M);if(U=0,A<F){M=A,F-=M;do P[a++]=f[U++];while(--M);U=a-D,O=P}}}else if(U+=A-M,M<F){F-=M;do P[a++]=f[U++];while(--M);U=a-D,O=P}for(;F>2;)P[a++]=O[U++],P[a++]=O[U++],P[a++]=O[U++],F-=3;F&&(P[a++]=O[U++],F>1&&(P[a++]=O[U++]))}else{U=a-D;do P[a++]=P[U++],P[a++]=P[U++],P[a++]=P[U++],F-=3;while(F>2);F&&(P[a++]=P[U++],F>1&&(P[a++]=P[U++]))}}else if((M&64)===0){C=w[(C&65535)+(h&(1<<M)-1)];continue n}else{e.msg="invalid distance code",k.mode=s1;break e}break}}else if((M&64)===0){C=y[(C&65535)+(h&(1<<M)-1)];continue t}else if(M&32){k.mode=jZ;break e}else{e.msg="invalid literal/length code",k.mode=s1;break e}break}}while(r<i&&a<o);F=g>>3,r-=F,g-=F<<3,h&=(1<<g)-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?5+(i-r):5-(r-i),e.avail_out=a<o?257+(o-a):257-(a-o),k.hold=h,k.bits=g};const Ah=15,wT=852,bT=592,_T=0,A_=1,xT=2,VZ=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]),GZ=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,72,78]),KZ=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]),qZ=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]),XZ=(n,e,t,r,i,a,s,o)=>{const c=o.bits;let l=0,u=0,A=0,f=0,h=0,g=0,y=0,w=0,v=0,S=0,C,M,F,D,U,O=null,T;const P=new Uint16Array(Ah+1),k=new Uint16Array(Ah+1);let H=null,j,$,ce;for(l=0;l<=Ah;l++)P[l]=0;for(u=0;u<r;u++)P[e[t+u]]++;for(h=c,f=Ah;f>=1&&P[f]===0;f--);if(h>f&&(h=f),f===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,o.bits=1,0;for(A=1;A<f&&P[A]===0;A++);for(h<A&&(h=A),w=1,l=1;l<=Ah;l++)if(w<<=1,w-=P[l],w<0)return-1;if(w>0&&(n===_T||f!==1))return-1;for(k[1]=0,l=1;l<Ah;l++)k[l+1]=k[l]+P[l];for(u=0;u<r;u++)e[t+u]!==0&&(s[k[e[t+u]]++]=u);if(n===_T?(O=H=s,T=20):n===A_?(O=VZ,H=GZ,T=257):(O=KZ,H=qZ,T=0),S=0,u=0,l=A,U=a,g=h,y=0,F=-1,v=1<<h,D=v-1,n===A_&&v>wT||n===xT&&v>bT)return 1;for(;;){j=l-y,s[u]+1<T?($=0,ce=s[u]):s[u]>=T?($=H[s[u]-T],ce=O[s[u]-T]):($=96,ce=0),C=1<<l-y,M=1<<g,A=M;do M-=C,i[U+(S>>y)+M]=j<<24|$<<16|ce|0;while(M!==0);for(C=1<<l-1;S&C;)C>>=1;if(C!==0?(S&=C-1,S+=C):S=0,u++,--P[l]===0){if(l===f)break;l=e[t+s[u]]}if(l>h&&(S&D)!==F){for(y===0&&(y=h),U+=A,g=l-y,w=1<<g;g+y<f&&(w-=P[g+y],!(w<=0));)g++,w<<=1;if(v+=1<<g,n===A_&&v>wT||n===xT&&v>bT)return 1;F=S&D,i[F]=h<<24|g<<16|U-a|0}}return S!==0&&(i[U+S]=l-y<<24|64<<16|0),o.bits=h,0};var ep=XZ;const YZ=0,Q4=1,$4=2,{Z_FINISH:MT,Z_BLOCK:JZ,Z_TREES:o1,Z_OK:_A,Z_STREAM_END:ZZ,Z_NEED_DICT:eee,Z_STREAM_ERROR:Vo,Z_DATA_ERROR:j4,Z_MEM_ERROR:z4,Z_BUF_ERROR:tee,Z_DEFLATED:ST}=O4,Kw=16180,CT=16181,PT=16182,ET=16183,BT=16184,TT=16185,kT=16186,IT=16187,LT=16188,FT=16189,My=16190,bl=16191,h_=16192,NT=16193,f_=16194,DT=16195,RT=16196,UT=16197,OT=16198,c1=16199,l1=16200,HT=16201,WT=16202,QT=16203,$T=16204,jT=16205,m_=16206,zT=16207,VT=16208,ei=16209,V4=16210,G4=16211,nee=852,ree=592,iee=15,aee=iee,GT=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function see(){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}const UA=n=>{if(!n)return 1;const e=n.state;return!e||e.strm!==n||e.mode<Kw||e.mode>G4?1:0},K4=n=>{if(UA(n))return Vo;const e=n.state;return n.total_in=n.total_out=e.total=0,n.msg="",e.wrap&&(n.adler=e.wrap&1),e.mode=Kw,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(nee),e.distcode=e.distdyn=new Int32Array(ree),e.sane=1,e.back=-1,_A},q4=n=>{if(UA(n))return Vo;const e=n.state;return e.wsize=0,e.whave=0,e.wnext=0,K4(n)},X4=(n,e)=>{let t;if(UA(n))return Vo;const r=n.state;return e<0?(t=0,e=-e):(t=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15)?Vo:(r.window!==null&&r.wbits!==e&&(r.window=null),r.wrap=t,r.wbits=e,q4(n))},Y4=(n,e)=>{if(!n)return Vo;const t=new see;n.state=t,t.strm=n,t.window=null,t.mode=Kw;const r=X4(n,e);return r!==_A&&(n.state=null),r},oee=n=>Y4(n,aee);let KT=!0,p_,g_;const cee=n=>{if(KT){p_=new Int32Array(512),g_=new Int32Array(32);let e=0;for(;e<144;)n.lens[e++]=8;for(;e<256;)n.lens[e++]=9;for(;e<280;)n.lens[e++]=7;for(;e<288;)n.lens[e++]=8;for(ep(Q4,n.lens,0,288,p_,0,n.work,{bits:9}),e=0;e<32;)n.lens[e++]=5;ep($4,n.lens,0,32,g_,0,n.work,{bits:5}),KT=!1}n.lencode=p_,n.lenbits=9,n.distcode=g_,n.distbits=5},J4=(n,e,t,r)=>{let i;const a=n.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(e.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),a.window.set(e.subarray(t-r,t-r+i),a.wnext),r-=i,r?(a.window.set(e.subarray(t-r,t),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},lee=(n,e)=>{let t,r,i,a,s,o,c,l,u,A,f,h,g,y,w=0,v,S,C,M,F,D,U,O;const T=new Uint8Array(4);let P,k;const H=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(UA(n)||!n.output||!n.input&&n.avail_in!==0)return Vo;t=n.state,t.mode===bl&&(t.mode=h_),s=n.next_out,i=n.output,c=n.avail_out,a=n.next_in,r=n.input,o=n.avail_in,l=t.hold,u=t.bits,A=o,f=c,O=_A;e:for(;;)switch(t.mode){case Kw:if(t.wrap===0){t.mode=h_;break}for(;u<16;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(t.wrap&2&&l===35615){t.wbits===0&&(t.wbits=15),t.check=0,T[0]=l&255,T[1]=l>>>8&255,t.check=zc(t.check,T,2,0),l=0,u=0,t.mode=CT;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((l&255)<<8)+(l>>8))%31){n.msg="incorrect header check",t.mode=ei;break}if((l&15)!==ST){n.msg="unknown compression method",t.mode=ei;break}if(l>>>=4,u-=4,U=(l&15)+8,t.wbits===0&&(t.wbits=U),U>15||U>t.wbits){n.msg="invalid window size",t.mode=ei;break}t.dmax=1<<t.wbits,t.flags=0,n.adler=t.check=1,t.mode=l&512?FT:bl,l=0,u=0;break;case CT:for(;u<16;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(t.flags=l,(t.flags&255)!==ST){n.msg="unknown compression method",t.mode=ei;break}if(t.flags&57344){n.msg="unknown header flags set",t.mode=ei;break}t.head&&(t.head.text=l>>8&1),t.flags&512&&t.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,t.check=zc(t.check,T,2,0)),l=0,u=0,t.mode=PT;case PT:for(;u<32;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.head&&(t.head.time=l),t.flags&512&&t.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,T[2]=l>>>16&255,T[3]=l>>>24&255,t.check=zc(t.check,T,4,0)),l=0,u=0,t.mode=ET;case ET:for(;u<16;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.head&&(t.head.xflags=l&255,t.head.os=l>>8),t.flags&512&&t.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,t.check=zc(t.check,T,2,0)),l=0,u=0,t.mode=BT;case BT:if(t.flags&1024){for(;u<16;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.length=l,t.head&&(t.head.extra_len=l),t.flags&512&&t.wrap&4&&(T[0]=l&255,T[1]=l>>>8&255,t.check=zc(t.check,T,2,0)),l=0,u=0}else t.head&&(t.head.extra=null);t.mode=TT;case TT:if(t.flags&1024&&(h=t.length,h>o&&(h=o),h&&(t.head&&(U=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(r.subarray(a,a+h),U)),t.flags&512&&t.wrap&4&&(t.check=zc(t.check,r,h,a)),o-=h,a+=h,t.length-=h),t.length))break e;t.length=0,t.mode=kT;case kT:if(t.flags&2048){if(o===0)break e;h=0;do U=r[a+h++],t.head&&U&&t.length<65536&&(t.head.name+=String.fromCharCode(U));while(U&&h<o);if(t.flags&512&&t.wrap&4&&(t.check=zc(t.check,r,h,a)),o-=h,a+=h,U)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=IT;case IT:if(t.flags&4096){if(o===0)break e;h=0;do U=r[a+h++],t.head&&U&&t.length<65536&&(t.head.comment+=String.fromCharCode(U));while(U&&h<o);if(t.flags&512&&t.wrap&4&&(t.check=zc(t.check,r,h,a)),o-=h,a+=h,U)break e}else t.head&&(t.head.comment=null);t.mode=LT;case LT:if(t.flags&512){for(;u<16;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(t.wrap&4&&l!==(t.check&65535)){n.msg="header crc mismatch",t.mode=ei;break}l=0,u=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),n.adler=t.check=0,t.mode=bl;break;case FT:for(;u<32;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}n.adler=t.check=GT(l),l=0,u=0,t.mode=My;case My:if(t.havedict===0)return n.next_out=s,n.avail_out=c,n.next_in=a,n.avail_in=o,t.hold=l,t.bits=u,eee;n.adler=t.check=1,t.mode=bl;case bl:if(e===JZ||e===o1)break e;case h_:if(t.last){l>>>=u&7,u-=u&7,t.mode=m_;break}for(;u<3;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}switch(t.last=l&1,l>>>=1,u-=1,l&3){case 0:t.mode=NT;break;case 1:if(cee(t),t.mode=c1,e===o1){l>>>=2,u-=2;break e}break;case 2:t.mode=RT;break;case 3:n.msg="invalid block type",t.mode=ei}l>>>=2,u-=2;break;case NT:for(l>>>=u&7,u-=u&7;u<32;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if((l&65535)!==(l>>>16^65535)){n.msg="invalid stored block lengths",t.mode=ei;break}if(t.length=l&65535,l=0,u=0,t.mode=f_,e===o1)break e;case f_:t.mode=DT;case DT:if(h=t.length,h){if(h>o&&(h=o),h>c&&(h=c),h===0)break e;i.set(r.subarray(a,a+h),s),o-=h,a+=h,c-=h,s+=h,t.length-=h;break}t.mode=bl;break;case RT:for(;u<14;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(t.nlen=(l&31)+257,l>>>=5,u-=5,t.ndist=(l&31)+1,l>>>=5,u-=5,t.ncode=(l&15)+4,l>>>=4,u-=4,t.nlen>286||t.ndist>30){n.msg="too many length or distance symbols",t.mode=ei;break}t.have=0,t.mode=UT;case UT:for(;t.have<t.ncode;){for(;u<3;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.lens[H[t.have++]]=l&7,l>>>=3,u-=3}for(;t.have<19;)t.lens[H[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,P={bits:t.lenbits},O=ep(YZ,t.lens,0,19,t.lencode,0,t.work,P),t.lenbits=P.bits,O){n.msg="invalid code lengths set",t.mode=ei;break}t.have=0,t.mode=OT;case OT:for(;t.have<t.nlen+t.ndist;){for(;w=t.lencode[l&(1<<t.lenbits)-1],v=w>>>24,S=w>>>16&255,C=w&65535,!(v<=u);){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(C<16)l>>>=v,u-=v,t.lens[t.have++]=C;else{if(C===16){for(k=v+2;u<k;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(l>>>=v,u-=v,t.have===0){n.msg="invalid bit length repeat",t.mode=ei;break}U=t.lens[t.have-1],h=3+(l&3),l>>>=2,u-=2}else if(C===17){for(k=v+3;u<k;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}l>>>=v,u-=v,U=0,h=3+(l&7),l>>>=3,u-=3}else{for(k=v+7;u<k;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}l>>>=v,u-=v,U=0,h=11+(l&127),l>>>=7,u-=7}if(t.have+h>t.nlen+t.ndist){n.msg="invalid bit length repeat",t.mode=ei;break}for(;h--;)t.lens[t.have++]=U}}if(t.mode===ei)break;if(t.lens[256]===0){n.msg="invalid code -- missing end-of-block",t.mode=ei;break}if(t.lenbits=9,P={bits:t.lenbits},O=ep(Q4,t.lens,0,t.nlen,t.lencode,0,t.work,P),t.lenbits=P.bits,O){n.msg="invalid literal/lengths set",t.mode=ei;break}if(t.distbits=6,t.distcode=t.distdyn,P={bits:t.distbits},O=ep($4,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,P),t.distbits=P.bits,O){n.msg="invalid distances set",t.mode=ei;break}if(t.mode=c1,e===o1)break e;case c1:t.mode=l1;case l1:if(o>=6&&c>=258){n.next_out=s,n.avail_out=c,n.next_in=a,n.avail_in=o,t.hold=l,t.bits=u,zZ(n,f),s=n.next_out,i=n.output,c=n.avail_out,a=n.next_in,r=n.input,o=n.avail_in,l=t.hold,u=t.bits,t.mode===bl&&(t.back=-1);break}for(t.back=0;w=t.lencode[l&(1<<t.lenbits)-1],v=w>>>24,S=w>>>16&255,C=w&65535,!(v<=u);){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(S&&(S&240)===0){for(M=v,F=S,D=C;w=t.lencode[D+((l&(1<<M+F)-1)>>M)],v=w>>>24,S=w>>>16&255,C=w&65535,!(M+v<=u);){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}l>>>=M,u-=M,t.back+=M}if(l>>>=v,u-=v,t.back+=v,t.length=C,S===0){t.mode=jT;break}if(S&32){t.back=-1,t.mode=bl;break}if(S&64){n.msg="invalid literal/length code",t.mode=ei;break}t.extra=S&15,t.mode=HT;case HT:if(t.extra){for(k=t.extra;u<k;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.length+=l&(1<<t.extra)-1,l>>>=t.extra,u-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=WT;case WT:for(;w=t.distcode[l&(1<<t.distbits)-1],v=w>>>24,S=w>>>16&255,C=w&65535,!(v<=u);){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if((S&240)===0){for(M=v,F=S,D=C;w=t.distcode[D+((l&(1<<M+F)-1)>>M)],v=w>>>24,S=w>>>16&255,C=w&65535,!(M+v<=u);){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}l>>>=M,u-=M,t.back+=M}if(l>>>=v,u-=v,t.back+=v,S&64){n.msg="invalid distance code",t.mode=ei;break}t.offset=C,t.extra=S&15,t.mode=QT;case QT:if(t.extra){for(k=t.extra;u<k;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}t.offset+=l&(1<<t.extra)-1,l>>>=t.extra,u-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){n.msg="invalid distance too far back",t.mode=ei;break}t.mode=$T;case $T:if(c===0)break e;if(h=f-c,t.offset>h){if(h=t.offset-h,h>t.whave&&t.sane){n.msg="invalid distance too far back",t.mode=ei;break}h>t.wnext?(h-=t.wnext,g=t.wsize-h):g=t.wnext-h,h>t.length&&(h=t.length),y=t.window}else y=i,g=s-t.offset,h=t.length;h>c&&(h=c),c-=h,t.length-=h;do i[s++]=y[g++];while(--h);t.length===0&&(t.mode=l1);break;case jT:if(c===0)break e;i[s++]=t.length,c--,t.mode=l1;break;case m_:if(t.wrap){for(;u<32;){if(o===0)break e;o--,l|=r[a++]<<u,u+=8}if(f-=c,n.total_out+=f,t.total+=f,t.wrap&4&&f&&(n.adler=t.check=t.flags?zc(t.check,i,f,s-f):z2(t.check,i,f,s-f)),f=c,t.wrap&4&&(t.flags?l:GT(l))!==t.check){n.msg="incorrect data check",t.mode=ei;break}l=0,u=0}t.mode=zT;case zT:if(t.wrap&&t.flags){for(;u<32;){if(o===0)break e;o--,l+=r[a++]<<u,u+=8}if(t.wrap&4&&l!==(t.total&4294967295)){n.msg="incorrect length check",t.mode=ei;break}l=0,u=0}t.mode=VT;case VT:O=ZZ;break e;case ei:O=j4;break e;case V4:return z4;case G4:default:return Vo}return n.next_out=s,n.avail_out=c,n.next_in=a,n.avail_in=o,t.hold=l,t.bits=u,(t.wsize||f!==n.avail_out&&t.mode<ei&&(t.mode<m_||e!==MT))&&J4(n,n.output,n.next_out,f-n.avail_out),A-=n.avail_in,f-=n.avail_out,n.total_in+=A,n.total_out+=f,t.total+=f,t.wrap&4&&f&&(n.adler=t.check=t.flags?zc(t.check,i,f,n.next_out-f):z2(t.check,i,f,n.next_out-f)),n.data_type=t.bits+(t.last?64:0)+(t.mode===bl?128:0)+(t.mode===c1||t.mode===f_?256:0),(A===0&&f===0||e===MT)&&O===_A&&(O=tee),O},uee=n=>{if(UA(n))return Vo;let e=n.state;return e.window&&(e.window=null),n.state=null,_A},dee=(n,e)=>{if(UA(n))return Vo;const t=n.state;return(t.wrap&2)===0?Vo:(t.head=e,e.done=!1,_A)},Aee=(n,e)=>{const t=e.length;let r,i,a;return UA(n)||(r=n.state,r.wrap!==0&&r.mode!==My)?Vo:r.mode===My&&(i=1,i=z2(i,e,t,0),i!==r.check)?j4:(a=J4(n,e,t,t),a?(r.mode=V4,z4):(r.havedict=1,_A))};var hee=q4,fee=X4,mee=K4,pee=oee,gee=Y4,vee=lee,yee=uee,wee=dee,bee=Aee,_ee="pako inflate (from Nodeca project)",kl={inflateReset:hee,inflateReset2:fee,inflateResetKeep:mee,inflateInit:pee,inflateInit2:gee,inflate:vee,inflateEnd:yee,inflateGetHeader:wee,inflateSetDictionary:bee,inflateInfo:_ee};function xee(){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 Mee=xee;const Z4=Object.prototype.toString,{Z_NO_FLUSH:See,Z_FINISH:Cee,Z_OK:Np,Z_STREAM_END:v_,Z_NEED_DICT:y_,Z_STREAM_ERROR:Pee,Z_DATA_ERROR:qT,Z_MEM_ERROR:Eee}=O4;function wg(n){this.options=H4.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});const 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&&!(n&&n.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 $Z,this.strm.avail_out=0;let t=kl.inflateInit2(this.strm,e.windowBits);if(t!==Np)throw new Error(V2[t]);if(this.header=new Mee,kl.inflateGetHeader(this.strm,this.header),e.dictionary&&(typeof e.dictionary=="string"?e.dictionary=G2.string2buf(e.dictionary):Z4.call(e.dictionary)==="[object ArrayBuffer]"&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=kl.inflateSetDictionary(this.strm,e.dictionary),t!==Np)))throw new Error(V2[t])}wg.prototype.push=function(n,e){const t=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let a,s,o;if(this.ended)return!1;for(e===~~e?s=e:s=e===!0?Cee:See,Z4.call(n)==="[object ArrayBuffer]"?t.input=new Uint8Array(n):t.input=n,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(r),t.next_out=0,t.avail_out=r),a=kl.inflate(t,s),a===y_&&i&&(a=kl.inflateSetDictionary(t,i),a===Np?a=kl.inflate(t,s):a===qT&&(a=y_));t.avail_in>0&&a===v_&&t.state.wrap>0&&n[t.next_in]!==0;)kl.inflateReset(t),a=kl.inflate(t,s);switch(a){case Pee:case qT:case y_:case Eee:return this.onEnd(a),this.ended=!0,!1}if(o=t.avail_out,t.next_out&&(t.avail_out===0||a===v_))if(this.options.to==="string"){let c=G2.utf8border(t.output,t.next_out),l=t.next_out-c,u=G2.buf2string(t.output,c);t.next_out=l,t.avail_out=r-l,l&&t.output.set(t.output.subarray(c,c+l),0),this.onData(u)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Np&&o===0)){if(a===v_)return a=kl.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};wg.prototype.onData=function(n){this.chunks.push(n)};wg.prototype.onEnd=function(n){n===Np&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=H4.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function Bee(n,e){const t=new wg(e);if(t.push(n),t.err)throw t.msg||V2[t.err];return t.result}var Tee=wg,kee=Bee,Iee={Inflate:Tee,inflate:kee};const{Inflate:Lee,inflate:Fee}=Iee;var XT=Lee,Nee=Fee;const eD=[];for(let n=0;n<256;n++){let e=n;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;eD[n]=e}const YT=4294967295;function Dee(n,e,t){let r=n;for(let i=0;i<t;i++)r=eD[(r^e[i])&255]^r>>>8;return r}function Ree(n,e){return(Dee(YT,n,e)^YT)>>>0}function JT(n,e,t){const r=n.readUint32(),i=Ree(new Uint8Array(n.buffer,n.byteOffset+n.offset-e-4,e),e);if(i!==r)throw new Error(`CRC mismatch for chunk ${t}. Expected ${r}, found ${i}`)}function tD(n,e,t){for(let r=0;r<t;r++)e[r]=n[r]}function nD(n,e,t,r){let i=0;for(;i<r;i++)e[i]=n[i];for(;i<t;i++)e[i]=n[i]+e[i-r]&255}function rD(n,e,t,r){let i=0;if(t.length===0)for(;i<r;i++)e[i]=n[i];else for(;i<r;i++)e[i]=n[i]+t[i]&255}function iD(n,e,t,r,i){let a=0;if(t.length===0){for(;a<i;a++)e[a]=n[a];for(;a<r;a++)e[a]=n[a]+(e[a-i]>>1)&255}else{for(;a<i;a++)e[a]=n[a]+(t[a]>>1)&255;for(;a<r;a++)e[a]=n[a]+(e[a-i]+t[a]>>1)&255}}function aD(n,e,t,r,i){let a=0;if(t.length===0){for(;a<i;a++)e[a]=n[a];for(;a<r;a++)e[a]=n[a]+e[a-i]&255}else{for(;a<i;a++)e[a]=n[a]+t[a]&255;for(;a<r;a++)e[a]=n[a]+Uee(e[a-i],t[a],t[a-i])&255}}function Uee(n,e,t){const r=n+e-t,i=Math.abs(r-n),a=Math.abs(r-e),s=Math.abs(r-t);return i<=a&&i<=s?n:a<=s?e:t}function Oee(n,e,t,r,i,a){switch(n){case 0:tD(e,t,i);break;case 1:nD(e,t,i,a);break;case 2:rD(e,t,r,i);break;case 3:iD(e,t,r,i,a);break;case 4:aD(e,t,r,i,a);break;default:throw new Error(`Unsupported filter: ${n}`)}}const Hee=new Uint16Array([255]),Wee=new Uint8Array(Hee.buffer),Qee=Wee[0]===255;function $ee(n){const{data:e,width:t,height:r,channels:i,depth:a}=n,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}],o=Math.ceil(a/8)*i,c=new Uint8Array(r*t*o);let l=0;for(let u=0;u<7;u++){const A=s[u],f=Math.ceil((t-A.x)/A.xStep),h=Math.ceil((r-A.y)/A.yStep);if(f<=0||h<=0)continue;const g=f*o,y=new Uint8Array(g);for(let w=0;w<h;w++){const v=e[l++],S=e.subarray(l,l+g);l+=g;const C=new Uint8Array(g);Oee(v,S,C,y,g,o),y.set(C);for(let M=0;M<f;M++){const F=A.x+M*A.xStep,D=A.y+w*A.yStep;if(!(F>=t||D>=r))for(let U=0;U<o;U++)c[(D*t+F)*o+U]=C[M*o+U]}}}if(a===16){const u=new Uint16Array(c.buffer);if(Qee)for(let A=0;A<u.length;A++)u[A]=jee(u[A]);return u}else return c}function jee(n){return(n&255)<<8|n>>8&255}const zee=new Uint16Array([255]),Vee=new Uint8Array(zee.buffer),Gee=Vee[0]===255,Kee=new Uint8Array(0);function ZT(n){const{data:e,width:t,height:r,channels:i,depth:a}=n,s=Math.ceil(a/8)*i,o=Math.ceil(a/8*i*t),c=new Uint8Array(r*o);let l=Kee,u=0,A,f;for(let h=0;h<r;h++){switch(A=e.subarray(u+1,u+1+o),f=c.subarray(h*o,(h+1)*o),e[u]){case 0:tD(A,f,o);break;case 1:nD(A,f,o,s);break;case 2:rD(A,f,l,o);break;case 3:iD(A,f,l,o,s);break;case 4:aD(A,f,l,o,s);break;default:throw new Error(`Unsupported filter: ${e[u]}`)}l=f,u+=o+1}if(a===16){const h=new Uint16Array(c.buffer);if(Gee)for(let g=0;g<h.length;g++)h[g]=qee(h[g]);return h}else return c}function qee(n){return(n&255)<<8|n>>8&255}const Hv=Uint8Array.of(137,80,78,71,13,10,26,10);function ek(n){if(!Xee(n.readBytes(Hv.length)))throw new Error("wrong PNG signature")}function Xee(n){if(n.length<Hv.length)return!1;for(let e=0;e<Hv.length;e++)if(n[e]!==Hv[e])return!1;return!0}const Yee="tEXt",Jee=0,sD=new TextDecoder("latin1");function Zee(n){if(tte(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const ete=/^[\u0000-\u00FF]*$/;function tte(n){if(!ete.test(n))throw new Error("invalid latin1 text")}function nte(n,e,t){const r=oD(e);n[r]=rte(e,t-r.length-1)}function oD(n){for(n.mark();n.readByte()!==Jee;);const e=n.offset;n.reset();const t=sD.decode(n.readBytes(e-n.offset-1));return n.skip(1),Zee(t),t}function rte(n,e){return sD.decode(n.readBytes(e))}const co={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},w_={UNKNOWN:-1,DEFLATE:0},tk={UNKNOWN:-1,ADAPTIVE:0},b_={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},u1={NONE:0,BACKGROUND:1,PREVIOUS:2},__={SOURCE:0,OVER:1};class ite extends iC{constructor(t,r={}){super(t);Mr(this,"_checkCrc");Mr(this,"_inflator");Mr(this,"_png");Mr(this,"_apng");Mr(this,"_end");Mr(this,"_hasPalette");Mr(this,"_palette");Mr(this,"_hasTransparency");Mr(this,"_transparency");Mr(this,"_compressionMethod");Mr(this,"_filterMethod");Mr(this,"_interlaceMethod");Mr(this,"_colorType");Mr(this,"_isAnimated");Mr(this,"_numberOfFrames");Mr(this,"_numberOfPlays");Mr(this,"_frames");Mr(this,"_writingDataChunks");const{checkCrc:i=!1}=r;this._checkCrc=i,this._inflator=new XT,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=w_.UNKNOWN,this._filterMethod=tk.UNKNOWN,this._interlaceMethod=b_.UNKNOWN,this._colorType=co.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(ek(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeChunk(t,r)}return this.decodeImage(),this._png}decodeApng(){for(ek(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(t,r)}return this.decodeApngImage(),this._apng}decodeChunk(t,r){const i=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case Yee:nte(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?JT(this,t+4,r):this.skip(4)}decodeApngChunk(t,r){const i=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,r),this.offset=i+t;break}if(this.offset-i!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?JT(this,t+4,r):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=ate(this.readUint8());const r=this.readUint8();this._colorType=r;let i;switch(r){case co.GREYSCALE:i=1;break;case co.TRUECOLOUR:i=3;break;case co.INDEXED_COLOUR:i=1;break;case co.GREYSCALE_ALPHA:i=2;break;case co.TRUECOLOUR_ALPHA:i=4;break;case co.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==w_.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(){const t={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(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const r=t/3;this._hasPalette=!0;const i=[];this._palette=i;for(let a=0;a<r;a++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const r=t,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let r=t,i=this.offset+this.byteOffset;if(i+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,i,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case co.GREYSCALE:case co.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let r=0;r<t/2;r++)this._transparency[r]=this.readUint16();break}case co.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let r=0;for(;r<t;r++){const i=this.readByte();this._palette[r].push(i)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case co.UNKNOWN:case co.GREYSCALE_ALPHA:case co.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const r=oD(this),i=this.readUint8();if(i!==w_.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const a=this.readBytes(t-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:Nee(a)}}decodepHYs(){const t=this.readUint32(),r=this.readUint32(),i=this.readByte();this._png.resolution={x:t,y:r,unit:i}}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 t=0;t<this._numberOfFrames;t++){const r={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].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)},i=this._frames.at(t);if(i){if(i.data=ZT({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)r.data=i.data;else{const a=this._apng.frames.at(t-1);this.disposeFrame(i,a,r),this.addFrameDataToCanvas(r,i)}this._apng.frames.push(r)}}return this._apng}disposeFrame(t,r,i){switch(t.disposeOp){case u1.NONE:break;case u1.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let s=0;s<this._png.width;s++){const o=(a*t.width+s)*this._png.channels;for(let c=0;c<this._png.channels;c++)i.data[o+c]=0}break;case u1.PREVIOUS:i.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,r){const i=1<<this._png.depth,a=(s,o)=>{const c=((s+r.yOffset)*this._png.width+r.xOffset+o)*this._png.channels,l=(s*r.width+o)*this._png.channels;return{index:c,frameIndex:l}};switch(r.blendOp){case __.SOURCE:for(let s=0;s<r.height;s++)for(let o=0;o<r.width;o++){const{index:c,frameIndex:l}=a(s,o);for(let u=0;u<this._png.channels;u++)t.data[c+u]=r.data[l+u]}break;case __.OVER:for(let s=0;s<r.height;s++)for(let o=0;o<r.width;o++){const{index:c,frameIndex:l}=a(s,o);for(let u=0;u<this._png.channels;u++){const A=r.data[l+this._png.channels-1]/i,f=u%(this._png.channels-1)===0?1:r.data[l+u],h=Math.floor(A*f+(1-A)*t.data[c+u]);t.data[c+u]+=h}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==tk.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===b_.NO_INTERLACE)this._png.data=ZT({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===b_.ADAM7)this._png.data=$ee({data:t,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(){const t=this._inflator.result,r=this._frames.at(-1);r?r.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:u1.NONE,blendOp:__.SOURCE,data:t}),this._inflator=new XT,this._writingDataChunks=!1}}function ate(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}var nk;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(nk||(nk={}));function ste(n,e){return new ite(n,e).decode()}var bn=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function x_(){bn.console&&typeof bn.console.log=="function"&&bn.console.log.apply(bn.console,arguments)}var Rr={log:x_,warn:function(n){bn.console&&(typeof bn.console.warn=="function"?bn.console.warn.apply(bn.console,arguments):x_.call(null,arguments))},error:function(n){bn.console&&(typeof bn.console.error=="function"?bn.console.error.apply(bn.console,arguments):x_(n))}};function M_(n,e,t){var r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){Hd(r.response,e,t)},r.onerror=function(){Rr.error("could not download file")},r.send()}function rk(n){var e=new XMLHttpRequest;e.open("HEAD",n,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function d1(n){try{n.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),n.dispatchEvent(e)}}var Hd=bn.saveAs||((typeof window>"u"?"undefined":Cr(window))!=="object"||window!==bn?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,e,t){var r=bn.URL||bn.webkitURL,i=document.createElement("a");e=e||n.name||"download",i.download=e,i.rel="noopener",typeof n=="string"?(i.href=n,i.origin!==location.origin?rk(i.href)?M_(n,e,t):d1(i,i.target="_blank"):d1(i)):(i.href=r.createObjectURL(n),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){d1(i)},0))}:"msSaveOrOpenBlob"in navigator?function(n,e,t){if(e=e||n.name||"download",typeof n=="string")if(rk(n))M_(n,e,t);else{var r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){d1(r)})}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:Cr(a)!=="object"&&(Rr.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(n,t),e)}:function(n,e,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return M_(n,e,t);var i=n.type==="application/octet-stream",a=/constructor/i.test(bn.HTMLElement)||bn.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&a)&&(typeof FileReader>"u"?"undefined":Cr(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var u=o.result;u=s?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location=u,r=null},o.readAsDataURL(n)}else{var c=bn.URL||bn.webkitURL,l=c.createObjectURL(n);r?r.location=l:location.href=l,r=null,setTimeout(function(){c.revokeObjectURL(l)},4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function cD(n){var e;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={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"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var t=[{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:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{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<t.length;r++){var i=t[r].re,a=t[r].process,s=i.exec(n);s&&(e=a(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 o=this.r.toString(16),c=this.g.toString(16),l=this.b.toString(16);return o.length==1&&(o="0"+o),c.length==1&&(c="0"+c),l.length==1&&(l="0"+l),"#"+o+c+l}}var Wv=bn.atob.bind(bn),ik=bn.btoa.bind(bn);/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function S_(n,e){var t=n[0],r=n[1],i=n[2],a=n[3];t=Oa(t,r,i,a,e[0],7,-680876936),a=Oa(a,t,r,i,e[1],12,-389564586),i=Oa(i,a,t,r,e[2],17,606105819),r=Oa(r,i,a,t,e[3],22,-1044525330),t=Oa(t,r,i,a,e[4],7,-176418897),a=Oa(a,t,r,i,e[5],12,1200080426),i=Oa(i,a,t,r,e[6],17,-1473231341),r=Oa(r,i,a,t,e[7],22,-45705983),t=Oa(t,r,i,a,e[8],7,1770035416),a=Oa(a,t,r,i,e[9],12,-1958414417),i=Oa(i,a,t,r,e[10],17,-42063),r=Oa(r,i,a,t,e[11],22,-1990404162),t=Oa(t,r,i,a,e[12],7,1804603682),a=Oa(a,t,r,i,e[13],12,-40341101),i=Oa(i,a,t,r,e[14],17,-1502002290),t=Ha(t,r=Oa(r,i,a,t,e[15],22,1236535329),i,a,e[1],5,-165796510),a=Ha(a,t,r,i,e[6],9,-1069501632),i=Ha(i,a,t,r,e[11],14,643717713),r=Ha(r,i,a,t,e[0],20,-373897302),t=Ha(t,r,i,a,e[5],5,-701558691),a=Ha(a,t,r,i,e[10],9,38016083),i=Ha(i,a,t,r,e[15],14,-660478335),r=Ha(r,i,a,t,e[4],20,-405537848),t=Ha(t,r,i,a,e[9],5,568446438),a=Ha(a,t,r,i,e[14],9,-1019803690),i=Ha(i,a,t,r,e[3],14,-187363961),r=Ha(r,i,a,t,e[8],20,1163531501),t=Ha(t,r,i,a,e[13],5,-1444681467),a=Ha(a,t,r,i,e[2],9,-51403784),i=Ha(i,a,t,r,e[7],14,1735328473),t=Wa(t,r=Ha(r,i,a,t,e[12],20,-1926607734),i,a,e[5],4,-378558),a=Wa(a,t,r,i,e[8],11,-2022574463),i=Wa(i,a,t,r,e[11],16,1839030562),r=Wa(r,i,a,t,e[14],23,-35309556),t=Wa(t,r,i,a,e[1],4,-1530992060),a=Wa(a,t,r,i,e[4],11,1272893353),i=Wa(i,a,t,r,e[7],16,-155497632),r=Wa(r,i,a,t,e[10],23,-1094730640),t=Wa(t,r,i,a,e[13],4,681279174),a=Wa(a,t,r,i,e[0],11,-358537222),i=Wa(i,a,t,r,e[3],16,-722521979),r=Wa(r,i,a,t,e[6],23,76029189),t=Wa(t,r,i,a,e[9],4,-640364487),a=Wa(a,t,r,i,e[12],11,-421815835),i=Wa(i,a,t,r,e[15],16,530742520),t=Qa(t,r=Wa(r,i,a,t,e[2],23,-995338651),i,a,e[0],6,-198630844),a=Qa(a,t,r,i,e[7],10,1126891415),i=Qa(i,a,t,r,e[14],15,-1416354905),r=Qa(r,i,a,t,e[5],21,-57434055),t=Qa(t,r,i,a,e[12],6,1700485571),a=Qa(a,t,r,i,e[3],10,-1894986606),i=Qa(i,a,t,r,e[10],15,-1051523),r=Qa(r,i,a,t,e[1],21,-2054922799),t=Qa(t,r,i,a,e[8],6,1873313359),a=Qa(a,t,r,i,e[15],10,-30611744),i=Qa(i,a,t,r,e[6],15,-1560198380),r=Qa(r,i,a,t,e[13],21,1309151649),t=Qa(t,r,i,a,e[4],6,-145523070),a=Qa(a,t,r,i,e[11],10,-1120210379),i=Qa(i,a,t,r,e[2],15,718787259),r=Qa(r,i,a,t,e[9],21,-343485551),n[0]=Ru(t,n[0]),n[1]=Ru(r,n[1]),n[2]=Ru(i,n[2]),n[3]=Ru(a,n[3])}function qw(n,e,t,r,i,a){return e=Ru(Ru(e,n),Ru(r,a)),Ru(e<<i|e>>>32-i,t)}function Oa(n,e,t,r,i,a,s){return qw(e&t|~e&r,n,e,i,a,s)}function Ha(n,e,t,r,i,a,s){return qw(e&r|t&~r,n,e,i,a,s)}function Wa(n,e,t,r,i,a,s){return qw(e^t^r,n,e,i,a,s)}function Qa(n,e,t,r,i,a,s){return qw(t^(e|~r),n,e,i,a,s)}function lD(n){var e,t=n.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=n.length;e+=64)S_(r,ote(n.substring(e-64,e)));n=n.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<n.length;e++)i[e>>2]|=n.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(S_(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*t,S_(r,i),r}function ote(n){var e,t=[];for(e=0;e<64;e+=4)t[e>>2]=n.charCodeAt(e)+(n.charCodeAt(e+1)<<8)+(n.charCodeAt(e+2)<<16)+(n.charCodeAt(e+3)<<24);return t}var ak="0123456789abcdef".split("");function cte(n){for(var e="",t=0;t<4;t++)e+=ak[n>>8*t+4&15]+ak[n>>8*t&15];return e}function lte(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function K2(n){return lD(n).map(lte).join("")}var ute=(function(n){for(var e=0;e<n.length;e++)n[e]=cte(n[e]);return n.join("")})(lD("hello"))!="5d41402abc4b2a76b9719d911017c592";function Ru(n,e){if(ute){var t=(65535&n)+(65535&e);return(n>>16)+(e>>16)+(t>>16)<<16|65535&t}return n+e&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function q2(n,e){var t,r,i,a;if(n!==t){for(var s=(i=n,a=1+(256/n.length|0),new Array(a+1).join(i)),o=[],c=0;c<256;c++)o[c]=c;var l=0;for(c=0;c<256;c++){var u=o[c];l=(l+u+s.charCodeAt(c))%256,o[c]=o[l],o[l]=u}t=n,r=o}else o=r;var A=e.length,f=0,h=0,g="";for(c=0;c<A;c++)h=(h+(u=o[f=(f+1)%256]))%256,o[f]=o[h],o[h]=u,s=o[(o[f]+o[h])%256],g+=String.fromCharCode(e.charCodeAt(c)^s);return g}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var sk={print:4,modify:8,copy:16,"annot-forms":32};function Oh(n,e,t,r){this.v=1,this.r=2;var i=192;n.forEach(function(o){if(sk.perm!==void 0)throw new Error("Invalid permission: "+o);i+=sk[o]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(e+this.padding).substr(0,32),s=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,s),this.P=-(1+(255^i)),this.encryptionKey=K2(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=q2(this.encryptionKey,this.padding)}function Hh(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var e="",t=n.length,r=0;r<t;r++){var i=n.charCodeAt(r);e+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):n[r]}return e}function ok(n){if(Cr(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,i){if(i=i||!1,typeof t!="string"||typeof r!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var a=Math.random().toString(35);return e[t][a]=[r,!!i],a},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],Object.keys(e[r]).length===0&&delete e[r],!0;return!1},this.publish=function(t){if(e.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[t]){var s=e[t][a];try{s[0].apply(n,r)}catch(o){bn.console&&Rr.error("jsPDF PubSub Error",o.message,o)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function Dp(n){if(!(this instanceof Dp))return new Dp(n);var e="opacity,stroke-opacity".split(",");for(var t in n)n.hasOwnProperty(t)&&e.indexOf(t)>=0&&(this[t]=n[t]);this.id="",this.objectNumber=-1}function uD(n,e){this.gState=n,this.matrix=e,this.id="",this.objectNumber=-1}function ku(n,e,t,r,i){if(!(this instanceof ku))return new ku(n,e,t,r,i);this.type=n==="axial"?2:3,this.coords=e,this.colors=t,uD.call(this,r,i)}function qd(n,e,t,r,i){if(!(this instanceof qd))return new qd(n,e,t,r,i);this.boundingBox=n,this.xStep=e,this.yStep=t,this.stream="",this.cloneIndex=0,uD.call(this,r,i)}function cn(n){var e,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],i=arguments[2],a=arguments[3],s=[],o=1,c=16,l="S",u=null;Cr(n=n||{})==="object"&&(t=n.orientation,r=n.unit||r,i=n.format||i,a=n.compress||n.compressPdf||a,(u=n.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),o=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(e=n.precision),n.floatPrecision!==void 0&&(c=n.floatPrecision),l=n.defaultPathOperation||"S"),s=n.filters||(a===!0?["FlateEncode"]:s),r=r||"mm",t=(""+(t||"P")).toLowerCase();var A=n.putOnlyUsedFonts||!1,f={},h={internal:{},__private__:{}};h.__private__.PubSub=ok;var g="1.3",y=h.__private__.getPdfVersion=function(){return g};h.__private__.setPdfVersion=function(E){g=E};var w={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]};h.__private__.getPageFormats=function(){return w};var v=h.__private__.getPageFormat=function(E){return w[E]};i=i||"a4";var S="compat",C="advanced",M=S;function F(){this.saveGraphicsState(),ne(new Vt(kt,0,0,-kt,0,Jo()*kt).toString()+" cm"),this.setFontSize(this.getFontSize()/kt),l="n",M=C}function D(){this.restoreGraphicsState(),l="S",M=S}var U=h.__private__.combineFontStyleAndFontWeight=function(E,q){if(E=="bold"&&q=="normal"||E=="bold"&&q==400||E=="normal"&&q=="italic"||E=="bold"&&q=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return q&&(E=q==400||q==="normal"?E==="italic"?"italic":"normal":q!=700&&q!=="bold"||E!=="normal"?(q==700?"bold":q)+""+E:"bold"),E};h.advancedAPI=function(E){var q=M===S;return q&&F.call(this),typeof E!="function"||(E(this),q&&D.call(this)),this},h.compatAPI=function(E){var q=M===C;return q&&D.call(this),typeof E!="function"||(E(this),q&&F.call(this)),this},h.isAdvancedAPI=function(){return M===C};var O,T=function(E){if(M!==C)throw new Error(E+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},P=h.roundToPrecision=h.__private__.roundToPrecision=function(E,q){var ve=e||q;if(isNaN(E)||isNaN(ve))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return E.toFixed(ve).replace(/0+$/,"")};O=h.hpf=h.__private__.hpf=typeof c=="number"?function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return P(E,c)}:c==="smart"?function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return P(E,E>-1&&E<1?16:5)}:function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return P(E,16)};var k=h.f2=h.__private__.f2=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.f2");return P(E,2)},H=h.__private__.f3=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.f3");return P(E,3)},j=h.scale=h.__private__.scale=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.scale");return M===S?E*kt:M===C?E:void 0},$=function(E){return j((function(q){return M===S?Jo()-q:M===C?q:void 0})(E))};h.__private__.setPrecision=h.setPrecision=function(E){typeof parseInt(E,10)=="number"&&(e=parseInt(E,10))};var ce,de="00000000000000000000000000000000",fe=h.__private__.getFileId=function(){return de},ee=h.__private__.setFileId=function(E){return de=E!==void 0&&/^[a-fA-F0-9]{32}$/.test(E)?E.toUpperCase():de.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(cr=new Oh(u.userPermissions,u.userPassword,u.ownerPassword,de)),de};h.setFileId=function(E){return ee(E),this},h.getFileId=function(){return fe()};var Se=h.__private__.convertDateToPDFDate=function(E){var q=E.getTimezoneOffset(),ve=q<0?"+":"-",ke=Math.floor(Math.abs(q/60)),He=Math.abs(q%60),ut=[ve,J(ke),"'",J(He),"'"].join("");return["D:",E.getFullYear(),J(E.getMonth()+1),J(E.getDate()),J(E.getHours()),J(E.getMinutes()),J(E.getSeconds()),ut].join("")},xe=h.__private__.convertPDFDateToDate=function(E){var q=parseInt(E.substr(2,4),10),ve=parseInt(E.substr(6,2),10)-1,ke=parseInt(E.substr(8,2),10),He=parseInt(E.substr(10,2),10),ut=parseInt(E.substr(12,2),10),wt=parseInt(E.substr(14,2),10);return new Date(q,ve,ke,He,ut,wt,0)},Pe=h.__private__.setCreationDate=function(E){var q;if(E===void 0&&(E=new Date),E instanceof Date)q=Se(E);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(E))throw new Error("Invalid argument passed to jsPDF.setCreationDate");q=E}return ce=q},V=h.__private__.getCreationDate=function(E){var q=ce;return E==="jsDate"&&(q=xe(ce)),q};h.setCreationDate=function(E){return Pe(E),this},h.getCreationDate=function(E){return V(E)};var ae,J=h.__private__.padd2=function(E){return("0"+parseInt(E)).slice(-2)},z=h.__private__.padd2Hex=function(E){return("00"+(E=E.toString())).substr(E.length)},Z=0,le=[],ge=[],Me=0,Te=[],We=[],Ee=!1,Ne=ge;h.__private__.setCustomOutputDestination=function(E){Ee=!0,Ne=E};var ue=function(E){Ee||(Ne=E)};h.__private__.resetCustomOutputDestination=function(){Ee=!1,Ne=ge};var ne=h.__private__.out=function(E){return E=E.toString(),Me+=E.length+1,Ne.push(E),Ne},De=h.__private__.write=function(E){return ne(arguments.length===1?E.toString():Array.prototype.join.call(arguments," "))},je=h.__private__.getArrayBuffer=function(E){for(var q=E.length,ve=new ArrayBuffer(q),ke=new Uint8Array(ve);q--;)ke[q]=E.charCodeAt(q);return ve},ze=[["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]];h.__private__.getStandardFonts=function(){return ze};var Qe=n.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(E){return Qe=M===C?E/kt:E,this};var ot,se=h.__private__.getFontSize=h.getFontSize=function(){return M===S?Qe:Qe*kt},G=n.R2L||!1;h.__private__.setR2L=h.setR2L=function(E){return G=E,this},h.__private__.getR2L=h.getR2L=function(){return G};var Be,Ke=h.__private__.setZoomMode=function(E){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(E))ot=E;else if(isNaN(E)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(E)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+E+'" is not recognized.');ot=E}else ot=parseInt(E,10)};h.__private__.getZoomMode=function(){return ot};var it,Ve=h.__private__.setPageMode=function(E){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(E)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+E+'" is not recognized.');Be=E};h.__private__.getPageMode=function(){return Be};var bt=h.__private__.setLayoutMode=function(E){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(E)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+E+'" is not recognized.');it=E};h.__private__.getLayoutMode=function(){return it},h.__private__.setDisplayMode=h.setDisplayMode=function(E,q,ve){return Ke(E),bt(q),Ve(ve),this};var lt={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(E){if(Object.keys(lt).indexOf(E)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return lt[E]},h.__private__.getDocumentProperties=function(){return lt},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(E){for(var q in lt)lt.hasOwnProperty(q)&&E[q]&&(lt[q]=E[q]);return this},h.__private__.setDocumentProperty=function(E,q){if(Object.keys(lt).indexOf(E)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return lt[E]=q};var ct,kt,Je,Tt,Pt,Ct={},yt={},Kt=[],_t={},sn={},Le={},pt={},Ze=null,nt=0,At=[],Mt=new ok(h),fn=n.hotfixes||[],Sn={},or={},_n=[],Vt=function E(q,ve,ke,He,ut,wt){if(!(this instanceof E))return new E(q,ve,ke,He,ut,wt);isNaN(q)&&(q=1),isNaN(ve)&&(ve=0),isNaN(ke)&&(ke=0),isNaN(He)&&(He=1),isNaN(ut)&&(ut=0),isNaN(wt)&&(wt=0),this._matrix=[q,ve,ke,He,ut,wt]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Vt.prototype.join=function(E){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(O).join(E)},Vt.prototype.multiply=function(E){var q=E.sx*this.sx+E.shy*this.shx,ve=E.sx*this.shy+E.shy*this.sy,ke=E.shx*this.sx+E.sy*this.shx,He=E.shx*this.shy+E.sy*this.sy,ut=E.tx*this.sx+E.ty*this.shx+this.tx,wt=E.tx*this.shy+E.ty*this.sy+this.ty;return new Vt(q,ve,ke,He,ut,wt)},Vt.prototype.decompose=function(){var E=this.sx,q=this.shy,ve=this.shx,ke=this.sy,He=this.tx,ut=this.ty,wt=Math.sqrt(E*E+q*q),Zt=(E/=wt)*ve+(q/=wt)*ke;ve-=E*Zt,ke-=q*Zt;var Xt=Math.sqrt(ve*ve+ke*ke);return Zt/=Xt,E*(ke/=Xt)<q*(ve/=Xt)&&(E=-E,q=-q,Zt=-Zt,wt=-wt),{scale:new Vt(wt,0,0,Xt,0,0),translate:new Vt(1,0,0,1,He,ut),rotate:new Vt(E,q,-q,E,0,0),skew:new Vt(1,0,Zt,1,0,0)}},Vt.prototype.toString=function(E){return this.join(" ")},Vt.prototype.inversed=function(){var E=this.sx,q=this.shy,ve=this.shx,ke=this.sy,He=this.tx,ut=this.ty,wt=1/(E*ke-q*ve),Zt=ke*wt,Xt=-q*wt,yn=-ve*wt,Pn=E*wt;return new Vt(Zt,Xt,yn,Pn,-Zt*He-yn*ut,-Xt*He-Pn*ut)},Vt.prototype.applyToPoint=function(E){var q=E.x*this.sx+E.y*this.shx+this.tx,ve=E.x*this.shy+E.y*this.sy+this.ty;return new Rn(q,ve)},Vt.prototype.applyToRectangle=function(E){var q=this.applyToPoint(E),ve=this.applyToPoint(new Rn(E.x+E.w,E.y+E.h));return new pd(q.x,q.y,ve.x-q.x,ve.y-q.y)},Vt.prototype.clone=function(){var E=this.sx,q=this.shy,ve=this.shx,ke=this.sy,He=this.tx,ut=this.ty;return new Vt(E,q,ve,ke,He,ut)},h.Matrix=Vt;var zr=h.matrixMult=function(E,q){return q.multiply(E)},ea=new Vt(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=ea;var wi=function(E,q){if(!sn[E]){var ve=(q instanceof ku?"Sh":"P")+(Object.keys(_t).length+1).toString(10);q.id=ve,sn[E]=ve,_t[ve]=q,Mt.publish("addPattern",q)}};h.ShadingPattern=ku,h.TilingPattern=qd,h.addShadingPattern=function(E,q){return T("addShadingPattern()"),wi(E,q),this},h.beginTilingPattern=function(E){T("beginTilingPattern()"),Xo(E.boundingBox[0],E.boundingBox[1],E.boundingBox[2]-E.boundingBox[0],E.boundingBox[3]-E.boundingBox[1],E.matrix)},h.endTilingPattern=function(E,q){T("endTilingPattern()"),q.stream=We[ae].join(`
`),wi(E,q),Mt.publish("endTilingPattern",q),_n.pop().restore()};var Hr,Wn=h.__private__.newObject=function(){var E=Dt();return Fr(E,!0),E},Dt=h.__private__.newObjectDeferred=function(){return Z++,le[Z]=function(){return Me},Z},Fr=function(E,q){return q=typeof q=="boolean"&&q,le[E]=Me,q&&ne(E+" 0 obj"),E},Hi=h.__private__.newAdditionalObject=function(){var E={objId:Dt(),content:""};return Te.push(E),E},ta=Dt(),si=Dt(),bi=h.__private__.decodeColorString=function(E){var q=E.split(" ");if(q.length!==2||q[1]!=="g"&&q[1]!=="G")q.length!==5||q[4]!=="k"&&q[4]!=="K"||(q=[(1-q[0])*(1-q[3]),(1-q[1])*(1-q[3]),(1-q[2])*(1-q[3]),"r"]);else{var ve=parseFloat(q[0]);q=[ve,ve,ve,"r"]}for(var ke="#",He=0;He<3;He++)ke+=("0"+Math.floor(255*parseFloat(q[He])).toString(16)).slice(-2);return ke},_i=h.__private__.encodeColorString=function(E){var q;typeof E=="string"&&(E={ch1:E});var ve=E.ch1,ke=E.ch2,He=E.ch3,ut=E.ch4,wt=E.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ve=="string"&&ve.charAt(0)!=="#"){var Zt=new cD(ve);if(Zt.ok)ve=Zt.toHex();else if(!/^\d*\.?\d*$/.test(ve))throw new Error('Invalid color "'+ve+'" passed to jsPDF.encodeColorString.')}if(typeof ve=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ve)&&(ve="#"+ve[1]+ve[1]+ve[2]+ve[2]+ve[3]+ve[3]),typeof ve=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ve)){var Xt=parseInt(ve.substr(1),16);ve=Xt>>16&255,ke=Xt>>8&255,He=255&Xt}if(ke===void 0||ut===void 0&&ve===ke&&ke===He)q=typeof ve=="string"?ve+" "+wt[0]:E.precision===2?k(ve/255)+" "+wt[0]:H(ve/255)+" "+wt[0];else if(ut===void 0||Cr(ut)==="object"){if(ut&&!isNaN(ut.a)&&ut.a===0)return["1.","1.","1.",wt[1]].join(" ");q=typeof ve=="string"?[ve,ke,He,wt[1]].join(" "):E.precision===2?[k(ve/255),k(ke/255),k(He/255),wt[1]].join(" "):[H(ve/255),H(ke/255),H(He/255),wt[1]].join(" ")}else q=typeof ve=="string"?[ve,ke,He,ut,wt[2]].join(" "):E.precision===2?[k(ve),k(ke),k(He),k(ut),wt[2]].join(" "):[H(ve),H(ke),H(He),H(ut),wt[2]].join(" ");return q},Xr=h.__private__.getFilters=function(){return s},xi=h.__private__.putStream=function(E){var q=(E=E||{}).data||"",ve=E.filters||Xr(),ke=E.alreadyAppliedFilters||[],He=E.addLength1||!1,ut=q.length,wt=E.objectId,Zt=function(Er){return Er};if(u!==null&&wt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(Zt=cr.encryptor(wt,0));var Xt={};ve===!0&&(ve=["FlateEncode"]);var yn=E.additionalKeyValues||[],Pn=(Xt=cn.API.processDataByFilters!==void 0?cn.API.processDataByFilters(q,ve):{data:q,reverseChain:[]}).reverseChain+(Array.isArray(ke)?ke.join(" "):ke.toString());if(Xt.data.length!==0&&(yn.push({key:"Length",value:Xt.data.length}),He===!0&&yn.push({key:"Length1",value:ut})),Pn.length!=0)if(Pn.split("/").length-1==1)yn.push({key:"Filter",value:Pn});else{yn.push({key:"Filter",value:"["+Pn+"]"});for(var qn=0;qn<yn.length;qn+=1)if(yn[qn].key==="DecodeParms"){for(var Zr=[],yr=0;yr<Xt.reverseChain.split("/").length-1;yr+=1)Zr.push("null");Zr.push(yn[qn].value),yn[qn].value="["+Zr.join(" ")+"]"}}ne("<<");for(var dr=0;dr<yn.length;dr++)ne("/"+yn[dr].key+" "+yn[dr].value);ne(">>"),Xt.data.length!==0&&(ne("stream"),ne(Zt(Xt.data)),ne("endstream"))},es=h.__private__.putPage=function(E){var q=E.number,ve=E.data,ke=E.objId,He=E.contentsObjId;Fr(ke,!0),ne("<</Type /Page"),ne("/Parent "+E.rootDictionaryObjId+" 0 R"),ne("/Resources "+E.resourceDictionaryObjId+" 0 R"),ne("/MediaBox ["+parseFloat(O(E.mediaBox.bottomLeftX))+" "+parseFloat(O(E.mediaBox.bottomLeftY))+" "+O(E.mediaBox.topRightX)+" "+O(E.mediaBox.topRightY)+"]"),E.cropBox!==null&&ne("/CropBox ["+O(E.cropBox.bottomLeftX)+" "+O(E.cropBox.bottomLeftY)+" "+O(E.cropBox.topRightX)+" "+O(E.cropBox.topRightY)+"]"),E.bleedBox!==null&&ne("/BleedBox ["+O(E.bleedBox.bottomLeftX)+" "+O(E.bleedBox.bottomLeftY)+" "+O(E.bleedBox.topRightX)+" "+O(E.bleedBox.topRightY)+"]"),E.trimBox!==null&&ne("/TrimBox ["+O(E.trimBox.bottomLeftX)+" "+O(E.trimBox.bottomLeftY)+" "+O(E.trimBox.topRightX)+" "+O(E.trimBox.topRightY)+"]"),E.artBox!==null&&ne("/ArtBox ["+O(E.artBox.bottomLeftX)+" "+O(E.artBox.bottomLeftY)+" "+O(E.artBox.topRightX)+" "+O(E.artBox.topRightY)+"]"),typeof E.userUnit=="number"&&E.userUnit!==1&&ne("/UserUnit "+E.userUnit),Mt.publish("putPage",{objId:ke,pageContext:At[q],pageNumber:q,page:ve}),ne("/Contents "+He+" 0 R"),ne(">>"),ne("endobj");var ut=ve.join(`
`);return M===C&&(ut+=`
Q`),Fr(He,!0),xi({data:ut,filters:Xr(),objectId:He}),ne("endobj"),ke},na=h.__private__.putPages=function(){var E,q,ve=[];for(E=1;E<=nt;E++)At[E].objId=Dt(),At[E].contentsObjId=Dt();for(E=1;E<=nt;E++)ve.push(es({number:E,data:We[E],objId:At[E].objId,contentsObjId:At[E].contentsObjId,mediaBox:At[E].mediaBox,cropBox:At[E].cropBox,bleedBox:At[E].bleedBox,trimBox:At[E].trimBox,artBox:At[E].artBox,userUnit:At[E].userUnit,rootDictionaryObjId:ta,resourceDictionaryObjId:si}));Fr(ta,!0),ne("<</Type /Pages");var ke="/Kids [";for(q=0;q<nt;q++)ke+=ve[q]+" 0 R ";ne(ke+"]"),ne("/Count "+nt),ne(">>"),ne("endobj"),Mt.publish("postPutPages")},ts=function(E){Mt.publish("putFont",{font:E,out:ne,newObject:Wn,putStream:xi}),E.isAlreadyPutted!==!0&&(E.objectNumber=Wn(),ne("<<"),ne("/Type /Font"),ne("/BaseFont /"+Hh(E.postScriptName)),ne("/Subtype /Type1"),typeof E.encoding=="string"&&ne("/Encoding /"+E.encoding),ne("/FirstChar 32"),ne("/LastChar 255"),ne(">>"),ne("endobj"))},Ae=function(E){E.objectNumber=Wn();var q=[];q.push({key:"Type",value:"/XObject"}),q.push({key:"Subtype",value:"/Form"}),q.push({key:"BBox",value:"["+[O(E.x),O(E.y),O(E.x+E.width),O(E.y+E.height)].join(" ")+"]"}),q.push({key:"Matrix",value:"["+E.matrix.toString()+"]"});var ve=E.pages[1].join(`
`);xi({data:ve,additionalKeyValues:q,objectId:E.objectNumber}),ne("endobj")},Ue=function(E,q){q||(q=21);var ve=Wn(),ke=(function(wt,Zt){var Xt,yn=[],Pn=1/(Zt-1);for(Xt=0;Xt<1;Xt+=Pn)yn.push(Xt);if(yn.push(1),wt[0].offset!=0){var qn={offset:0,color:wt[0].color};wt.unshift(qn)}if(wt[wt.length-1].offset!=1){var Zr={offset:1,color:wt[wt.length-1].color};wt.push(Zr)}for(var yr="",dr=0,Er=0;Er<yn.length;Er++){for(Xt=yn[Er];Xt>wt[dr+1].offset;)dr++;var Br=wt[dr].offset,Ar=(Xt-Br)/(wt[dr+1].offset-Br),ia=wt[dr].color,rs=wt[dr+1].color;yr+=z(Math.round((1-Ar)*ia[0]+Ar*rs[0]).toString(16))+z(Math.round((1-Ar)*ia[1]+Ar*rs[1]).toString(16))+z(Math.round((1-Ar)*ia[2]+Ar*rs[2]).toString(16))}return yr.trim()})(E.colors,q),He=[];He.push({key:"FunctionType",value:"0"}),He.push({key:"Domain",value:"[0.0 1.0]"}),He.push({key:"Size",value:"["+q+"]"}),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]"}),xi({data:ke,additionalKeyValues:He,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ve}),ne("endobj"),E.objectNumber=Wn(),ne("<< /ShadingType "+E.type),ne("/ColorSpace /DeviceRGB");var ut="/Coords ["+O(parseFloat(E.coords[0]))+" "+O(parseFloat(E.coords[1]))+" ";E.type===2?ut+=O(parseFloat(E.coords[2]))+" "+O(parseFloat(E.coords[3])):ut+=O(parseFloat(E.coords[2]))+" "+O(parseFloat(E.coords[3]))+" "+O(parseFloat(E.coords[4]))+" "+O(parseFloat(E.coords[5])),ne(ut+="]"),E.matrix&&ne("/Matrix ["+E.matrix.toString()+"]"),ne("/Function "+ve+" 0 R"),ne("/Extend [true true]"),ne(">>"),ne("endobj")},tt=function(E,q){var ve=Dt(),ke=Wn();q.push({resourcesOid:ve,objectOid:ke}),E.objectNumber=ke;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:"["+E.boundingBox.map(O).join(" ")+"]"}),He.push({key:"XStep",value:O(E.xStep)}),He.push({key:"YStep",value:O(E.yStep)}),He.push({key:"Resources",value:ve+" 0 R"}),E.matrix&&He.push({key:"Matrix",value:"["+E.matrix.toString()+"]"}),xi({data:E.stream,additionalKeyValues:He,objectId:E.objectNumber}),ne("endobj")},rt=function(E){for(var q in E.objectNumber=Wn(),ne("<<"),E)switch(q){case"opacity":ne("/ca "+k(E[q]));break;case"stroke-opacity":ne("/CA "+k(E[q]))}ne(">>"),ne("endobj")},$e=function(E){Fr(E.resourcesOid,!0),ne("<<"),ne("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var q in ne("/Font <<"),Ct)Ct.hasOwnProperty(q)&&(A===!1||A===!0&&f.hasOwnProperty(q))&&ne("/"+q+" "+Ct[q].objectNumber+" 0 R");ne(">>")})(),(function(){if(Object.keys(_t).length>0){for(var q in ne("/Shading <<"),_t)_t.hasOwnProperty(q)&&_t[q]instanceof ku&&_t[q].objectNumber>=0&&ne("/"+q+" "+_t[q].objectNumber+" 0 R");Mt.publish("putShadingPatternDict"),ne(">>")}})(),(function(q){if(Object.keys(_t).length>0){for(var ve in ne("/Pattern <<"),_t)_t.hasOwnProperty(ve)&&_t[ve]instanceof h.TilingPattern&&_t[ve].objectNumber>=0&&_t[ve].objectNumber<q&&ne("/"+ve+" "+_t[ve].objectNumber+" 0 R");Mt.publish("putTilingPatternDict"),ne(">>")}})(E.objectOid),(function(){if(Object.keys(Le).length>0){var q;for(q in ne("/ExtGState <<"),Le)Le.hasOwnProperty(q)&&Le[q].objectNumber>=0&&ne("/"+q+" "+Le[q].objectNumber+" 0 R");Mt.publish("putGStateDict"),ne(">>")}})(),(function(){for(var q in ne("/XObject <<"),Sn)Sn.hasOwnProperty(q)&&Sn[q].objectNumber>=0&&ne("/"+q+" "+Sn[q].objectNumber+" 0 R");Mt.publish("putXobjectDict"),ne(">>")})(),ne(">>"),ne("endobj")},Et=function(E){yt[E.fontName]=yt[E.fontName]||{},yt[E.fontName][E.fontStyle]=E.id},Ut=function(E,q,ve,ke,He){var ut={id:"F"+(Object.keys(Ct).length+1).toString(10),postScriptName:E,fontName:q,fontStyle:ve,encoding:ke,isStandardFont:He||!1,metadata:{}};return Mt.publish("addFont",{font:ut,instance:this}),Ct[ut.id]=ut,Et(ut),ut.id},Rt=h.__private__.pdfEscape=h.pdfEscape=function(E,q){return(function(ve,ke){var He,ut,wt,Zt,Xt,yn,Pn,qn,Zr;if(wt=(ke=ke||{}).sourceEncoding||"Unicode",Xt=ke.outputEncoding,(ke.autoencode||Xt)&&Ct[ct].metadata&&Ct[ct].metadata[wt]&&Ct[ct].metadata[wt].encoding&&(Zt=Ct[ct].metadata[wt].encoding,!Xt&&Ct[ct].encoding&&(Xt=Ct[ct].encoding),!Xt&&Zt.codePages&&(Xt=Zt.codePages[0]),typeof Xt=="string"&&(Xt=Zt[Xt]),Xt)){for(Pn=!1,yn=[],He=0,ut=ve.length;He<ut;He++)(qn=Xt[ve.charCodeAt(He)])?yn.push(String.fromCharCode(qn)):yn.push(ve[He]),yn[He].charCodeAt(0)>>8&&(Pn=!0);ve=yn.join("")}for(He=ve.length;Pn===void 0&&He!==0;)ve.charCodeAt(He-1)>>8&&(Pn=!0),He--;if(!Pn)return ve;for(yn=ke.noBOM?[]:[254,255],He=0,ut=ve.length;He<ut;He++){if((Zr=(qn=ve.charCodeAt(He))>>8)>>8)throw new Error("Character at position "+He+" of string '"+ve+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");yn.push(Zr),yn.push(qn-(Zr<<8))}return String.fromCharCode.apply(void 0,yn)})(E,q).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},zt=h.__private__.beginPage=function(E){We[++nt]=[],At[nt]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(E[0]),topRightY:Number(E[1])}},en(nt),ue(We[ae])},hn=function(E,q){var ve,ke,He;switch(t=q||t,typeof E=="string"&&(ve=v(E.toLowerCase()),Array.isArray(ve)&&(ke=ve[0],He=ve[1])),Array.isArray(E)&&(ke=E[0]*kt,He=E[1]*kt),isNaN(ke)&&(ke=i[0],He=i[1]),(ke>14400||He>14400)&&(Rr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ke=Math.min(14400,ke),He=Math.min(14400,He)),i=[ke,He],t.substr(0,1)){case"l":He>ke&&(i=[He,ke]);break;case"p":ke>He&&(i=[He,ke])}zt(i),fr(It),ne(Jr),hl!==0&&ne(hl+" J"),Lc!==0&&ne(Lc+" j"),Mt.publish("addPage",{pageNumber:nt})},ln=function(E){E>0&&E<=nt&&(We.splice(E,1),At.splice(E,1),nt--,ae>nt&&(ae=nt),this.setPage(ae))},en=function(E){E>0&&E<=nt&&(ae=E)},In=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return We.length-1},Ln=function(E,q,ve){var ke,He=void 0;return ve=ve||{},E=E!==void 0?E:Ct[ct].fontName,q=q!==void 0?q:Ct[ct].fontStyle,ke=E.toLowerCase(),yt[ke]!==void 0&&yt[ke][q]!==void 0?He=yt[ke][q]:yt[E]!==void 0&&yt[E][q]!==void 0?He=yt[E][q]:ve.disableWarning===!1&&Rr.warn("Unable to look up font label for font '"+E+"', '"+q+"'. Refer to getFontList() for available fonts."),He||ve.noFallback||(He=yt.times[q])==null&&(He=yt.times.normal),He},qt=h.__private__.putInfo=function(){var E=Wn(),q=function(ke){return ke};for(var ve in u!==null&&(q=cr.encryptor(E,0)),ne("<<"),ne("/Producer ("+Rt(q("jsPDF "+cn.version))+")"),lt)lt.hasOwnProperty(ve)&&lt[ve]&&ne("/"+ve.substr(0,1).toUpperCase()+ve.substr(1)+" ("+Rt(q(lt[ve]))+")");ne("/CreationDate ("+Rt(q(ce))+")"),ne(">>"),ne("endobj")},mn=h.__private__.putCatalog=function(E){var q=(E=E||{}).rootDictionaryObjId||ta;switch(Wn(),ne("<<"),ne("/Type /Catalog"),ne("/Pages "+q+" 0 R"),ot||(ot="fullwidth"),ot){case"fullwidth":ne("/OpenAction [3 0 R /FitH null]");break;case"fullheight":ne("/OpenAction [3 0 R /FitV null]");break;case"fullpage":ne("/OpenAction [3 0 R /Fit]");break;case"original":ne("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ve=""+ot;ve.substr(ve.length-1)==="%"&&(ot=parseInt(ot)/100),typeof ot=="number"&&ne("/OpenAction [3 0 R /XYZ null null "+k(ot)+"]")}switch(it||(it="continuous"),it){case"continuous":ne("/PageLayout /OneColumn");break;case"single":ne("/PageLayout /SinglePage");break;case"two":case"twoleft":ne("/PageLayout /TwoColumnLeft");break;case"tworight":ne("/PageLayout /TwoColumnRight")}Be&&ne("/PageMode /"+Be),Mt.publish("putCatalog"),ne(">>"),ne("endobj")},Fn=h.__private__.putTrailer=function(){ne("trailer"),ne("<<"),ne("/Size "+(Z+1)),ne("/Root "+Z+" 0 R"),ne("/Info "+(Z-1)+" 0 R"),u!==null&&ne("/Encrypt "+cr.oid+" 0 R"),ne("/ID [ <"+de+"> <"+de+"> ]"),ne(">>")},Ot=h.__private__.putHeader=function(){ne("%PDF-"+g),ne("%ºß¬à")},vr=h.__private__.putXRef=function(){var E="0000000000";ne("xref"),ne("0 "+(Z+1)),ne("0000000000 65535 f ");for(var q=1;q<=Z;q++)typeof le[q]=="function"?ne((E+le[q]()).slice(-10)+" 00000 n "):le[q]!==void 0?ne((E+le[q]).slice(-10)+" 00000 n "):ne("0000000000 00000 n ")},Cn=h.__private__.buildDocument=function(){var E;Z=0,Me=0,ge=[],le=[],Te=[],ta=Dt(),si=Dt(),ue(ge),Mt.publish("buildDocument"),Ot(),na(),(function(){Mt.publish("putAdditionalObjects");for(var ve=0;ve<Te.length;ve++){var ke=Te[ve];Fr(ke.objId,!0),ne(ke.content),ne("endobj")}Mt.publish("postPutAdditionalObjects")})(),E=[],(function(){for(var ve in Ct)Ct.hasOwnProperty(ve)&&(A===!1||A===!0&&f.hasOwnProperty(ve))&&ts(Ct[ve])})(),(function(){var ve;for(ve in Le)Le.hasOwnProperty(ve)&&rt(Le[ve])})(),(function(){for(var ve in Sn)Sn.hasOwnProperty(ve)&&Ae(Sn[ve])})(),(function(ve){var ke;for(ke in _t)_t.hasOwnProperty(ke)&&(_t[ke]instanceof ku?Ue(_t[ke]):_t[ke]instanceof qd&&tt(_t[ke],ve))})(E),Mt.publish("putResources"),E.forEach($e),$e({resourcesOid:si,objectOid:Number.MAX_SAFE_INTEGER}),Mt.publish("postPutResources"),u!==null&&(cr.oid=Wn(),ne("<<"),ne("/Filter /Standard"),ne("/V "+cr.v),ne("/R "+cr.r),ne("/U <"+cr.toHexString(cr.U)+">"),ne("/O <"+cr.toHexString(cr.O)+">"),ne("/P "+cr.P),ne(">>"),ne("endobj")),qt(),mn();var q=Me;return vr(),Fn(),ne("startxref"),ne(""+q),ne("%%EOF"),ue(We[ae]),ge.join(`
`)},on=h.__private__.getBlob=function(E){return new Blob([je(E)],{type:"application/pdf"})},er=function(E){for(;E.firstChild;)E.removeChild(E.firstChild)},ur=function(E){var q,ve=E.document,ke=ve.documentElement,He=ve.head,ut=ve.body;return He||(He=ve.createElement("head"),ke.appendChild(He)),ut||(ut=ve.createElement("body"),ke.appendChild(ut)),er(He),er(ut),(q=ve.createElement("style")).appendChild(ve.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),He.appendChild(q),{document:ve,body:ut}},wa=h.output=h.__private__.output=(Hr=function(E,q){switch(typeof(q=q||{})=="string"?q={filename:q}:q.filename=q.filename||"generated.pdf",E){case void 0:return Cn();case"save":h.save(q.filename);break;case"arraybuffer":return je(Cn());case"blob":return on(Cn());case"bloburi":case"bloburl":if(bn.URL!==void 0&&typeof bn.URL.createObjectURL=="function")return bn.URL&&bn.URL.createObjectURL(on(Cn()))||void 0;Rr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ve="",ke=Cn();try{ve=ik(ke)}catch{ve=ik(unescape(encodeURIComponent(ke)))}return"data:application/pdf;filename="+encodeURIComponent(q.filename)+";base64,"+ve;case"pdfobjectnewwindow":if(Object.prototype.toString.call(bn)==="[object Window]"){var He="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ut=!q.pdfObjectUrl;ut||(He=q.pdfObjectUrl);var wt=bn.open();if(wt!==null){var Zt=ur(wt),Xt=Zt.document.createElement("script"),yn=this;Xt.src=He,ut&&(Xt.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Xt.crossOrigin="anonymous"),Xt.onload=function(){wt.PDFObject.embed(yn.output("dataurlstring"),q)},Zt.body.appendChild(Xt)}return wt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(bn)==="[object Window]"){var Pn=q.pdfJsUrl||"examples/PDF.js/web/viewer.html",qn=bn.open();if(qn!==null){var Zr=ur(qn),yr=Zr.document.createElement("iframe"),dr=Pn.indexOf("?")===-1?"?":"&";yn=this,yr.id="pdfViewer",yr.width="500px",yr.height="400px",yr.src=Pn+dr+"file=&downloadName="+encodeURIComponent(q.filename),yr.onload=function(){qn.document.title=q.filename,yr.contentWindow.PDFViewerApplication.open(yn.output("bloburl"))},Zr.body.appendChild(yr)}return qn}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(bn)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Er=bn.open();if(Er!==null){var Br=ur(Er),Ar=Br.document.createElement("iframe");Ar.src=this.output("datauristring",q),Br.body.appendChild(Ar),Er.document.title=q.filename}if(Er||typeof safari>"u")return Er;break;case"datauri":case"dataurl":return bn.document.location.href=this.output("datauristring",q);default:return null}},Hr.foo=function(){try{return Hr.apply(this,arguments)}catch(ve){var E=ve.stack||"";~E.indexOf(" at ")&&(E=E.split(" at ")[1]);var q="Error in function "+E.split(`
`)[0].split("<")[0]+": "+ve.message;if(!bn.console)throw new Error(q);bn.console.error(q,ve),bn.alert&&alert(q)}},Hr.foo.bar=Hr,Hr.foo),wn=function(E){return Array.isArray(fn)===!0&&fn.indexOf(E)>-1};switch(r){case"pt":kt=1;break;case"mm":kt=72/25.4;break;case"cm":kt=72/2.54;break;case"in":kt=72;break;case"px":kt=wn("px_scaling")==1?.75:96/72;break;case"pc":case"em":kt=12;break;case"ex":kt=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);kt=r}var cr=null;Pe(),ee();var li=h.__private__.getPageInfo=h.getPageInfo=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:At[E].objId,pageNumber:E,pageContext:At[E]}},Nr=h.__private__.getPageInfoByObjId=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var q in At)if(At[q].objId===E)break;return li(q)},Vn=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:At[ae].objId,pageNumber:ae,pageContext:At[ae]}};h.addPage=function(){return hn.apply(this,arguments),this},h.setPage=function(){return en.apply(this,arguments),ue.call(this,We[ae]),this},h.insertPage=function(E){return this.addPage(),this.movePage(ae,E),this},h.movePage=function(E,q){var ve,ke;if(E>q){ve=We[E],ke=At[E];for(var He=E;He>q;He--)We[He]=We[He-1],At[He]=At[He-1];We[q]=ve,At[q]=ke,this.setPage(q)}else if(E<q){ve=We[E],ke=At[E];for(var ut=E;ut<q;ut++)We[ut]=We[ut+1],At[ut]=At[ut+1];We[q]=ve,At[q]=ke,this.setPage(q)}return this},h.deletePage=function(){return ln.apply(this,arguments),this},h.__private__.text=h.text=function(E,q,ve,ke,He){var ut,wt,Zt,Xt,yn,Pn,qn,Zr,yr,dr=(ke=ke||{}).scope||this;if(typeof E=="number"&&typeof q=="number"&&(typeof ve=="string"||Array.isArray(ve))){var Er=ve;ve=q,q=E,E=Er}if(arguments[3]instanceof Vt==0?(Zt=arguments[4],Xt=arguments[5],Cr(qn=arguments[3])==="object"&&qn!==null||(typeof Zt=="string"&&(Xt=Zt,Zt=null),typeof qn=="string"&&(Xt=qn,qn=null),typeof qn=="number"&&(Zt=qn,qn=null),ke={flags:qn,angle:Zt,align:Xt})):(T("The transform parameter of text() with a Matrix value"),yr=He),isNaN(q)||isNaN(ve)||E==null)throw new Error("Invalid arguments passed to jsPDF.text");if(E.length===0)return dr;var Br,Ar="",ia=typeof ke.lineHeightFactor=="number"?ke.lineHeightFactor:dl,rs=dr.internal.scaleFactor;function aa(Tr){return Tr=Tr.split("	").join(Array(ke.TabLen||9).join(" ")),Rt(Tr,qn)}function Fc(Tr){for(var wr,oi=Tr.concat(),mr=[],Ns=oi.length;Ns--;)typeof(wr=oi.shift())=="string"?mr.push(wr):Array.isArray(Tr)&&(wr.length===1||wr[1]===void 0&&wr[2]===void 0)?mr.push(wr[0]):mr.push([wr[0],wr[1],wr[2]]);return mr}function Nc(Tr,wr){var oi;if(typeof Tr=="string")oi=wr(Tr)[0];else if(Array.isArray(Tr)){for(var mr,Ns,vd=Tr.concat(),ac=[],th=vd.length;th--;)typeof(mr=vd.shift())=="string"?ac.push(wr(mr)[0]):Array.isArray(mr)&&typeof mr[0]=="string"&&(Ns=wr(mr[0],mr[1],mr[2]),ac.push([Ns[0],Ns[1],Ns[2]]));oi=ac}return oi}var Dc=!1,Zo=!0;if(typeof E=="string")Dc=!0;else if(Array.isArray(E)){var Rc=E.concat();wt=[];for(var iu,sa=Rc.length;sa--;)(typeof(iu=Rc.shift())!="string"||Array.isArray(iu)&&typeof iu[0]!="string")&&(Zo=!1);Dc=Zo}if(Dc===!1)throw new Error('Type of text must be string or Array. "'+E+'" is not recognized.');typeof E=="string"&&(E=E.match(/[\r?\n]/)?E.split(/\r\n|\r|\n/g):[E]);var Uc=Qe/dr.internal.scaleFactor,ml=Uc*(ia-1);switch(ke.baseline){case"bottom":ve-=ml;break;case"top":ve+=Uc-ml;break;case"hanging":ve+=Uc-2*ml;break;case"middle":ve+=Uc/2-ml}if((Pn=ke.maxWidth||0)>0&&(typeof E=="string"?E=dr.splitTextToSize(E,Pn):Object.prototype.toString.call(E)==="[object Array]"&&(E=E.reduce(function(Tr,wr){return Tr.concat(dr.splitTextToSize(wr,Pn))},[]))),ut={text:E,x:q,y:ve,options:ke,mutex:{pdfEscape:Rt,activeFontKey:ct,fonts:Ct,activeFontSize:Qe}},Mt.publish("preProcessText",ut),E=ut.text,Zt=(ke=ut.options).angle,yr instanceof Vt==0&&Zt&&typeof Zt=="number"){Zt*=Math.PI/180,ke.rotationDirection===0&&(Zt=-Zt),M===C&&(Zt=-Zt);var _a=Math.cos(Zt),xa=Math.sin(Zt);yr=new Vt(_a,xa,-xa,_a,0,0)}else Zt&&Zt instanceof Vt&&(yr=Zt);M!==C||yr||(yr=ea),(yn=ke.charSpace||nu)!==void 0&&(Ar+=O(j(yn))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Zr=ke.horizontalScale)!==void 0&&(Ar+=O(100*Zr)+` Tz
`),ke.lang;var Ma=-1,Bs=ke.renderingMode!==void 0?ke.renderingMode:ke.stroke,au=dr.internal.getCurrentPageInfo().pageContext;switch(Bs){case 0:case!1:case"fill":Ma=0;break;case 1:case!0:case"stroke":Ma=1;break;case 2:case"fillThenStroke":Ma=2;break;case 3:case"invisible":Ma=3;break;case 4:case"fillAndAddForClipping":Ma=4;break;case 5:case"strokeAndAddPathForClipping":Ma=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ma=6;break;case 7:case"addToPathForClipping":Ma=7}var ec=au.usedRenderingMode!==void 0?au.usedRenderingMode:-1;Ma!==-1?Ar+=Ma+` Tr
`:ec!==-1&&(Ar+=`0 Tr
`),Ma!==-1&&(au.usedRenderingMode=Ma),Xt=ke.align||"left";var Ts,Zs=Qe*ia,su=dr.internal.pageSize.getWidth(),tc=Ct[ct];yn=ke.charSpace||nu,Pn=ke.maxWidth||0,qn=Object.assign({autoencode:!0,noBOM:!0},ke.flags);var pl=[],ks=function(Tr){return dr.getStringUnitWidth(Tr,{font:tc,charSpace:yn,fontSize:Qe,doKerning:!1})*Qe/rs};if(Object.prototype.toString.call(E)==="[object Array]"){var Di;wt=Fc(E),Xt!=="left"&&(Ts=wt.map(ks));var Na,Oc=0;if(Xt==="right"){q-=Ts[0],E=[],sa=wt.length;for(var Hc=0;Hc<sa;Hc++)Hc===0?(Na=qs(q),Di=ba(ve)):(Na=j(Oc-Ts[Hc]),Di=-Zs),E.push([wt[Hc],Na,Di]),Oc=Ts[Hc]}else if(Xt==="center"){q-=Ts[0]/2,E=[],sa=wt.length;for(var oa=0;oa<sa;oa++)oa===0?(Na=qs(q),Di=ba(ve)):(Na=j((Oc-Ts[oa])/2),Di=-Zs),E.push([wt[oa],Na,Di]),Oc=Ts[oa]}else if(Xt==="left"){E=[],sa=wt.length;for(var ou=0;ou<sa;ou++)E.push(wt[ou])}else if(Xt==="justify"&&tc.encoding==="Identity-H"){E=[],sa=wt.length,Pn=Pn!==0?Pn:su;for(var Is=0,ui=0;ui<sa;ui++)if(Di=ui===0?ba(ve):-Zs,Na=ui===0?qs(q):Is,ui<sa-1){var eo=j((Pn-Ts[ui])/(wt[ui].split(" ").length-1)),is=wt[ui].split(" ");E.push([is[0]+" ",Na,Di]),Is=0;for(var Ls=1;Ls<is.length;Ls++){var nc=(ks(is[Ls-1]+" "+is[Ls])-ks(is[Ls]))*rs+eo;Ls==is.length-1?E.push([is[Ls],nc,0]):E.push([is[Ls]+" ",nc,0]),Is-=nc}}else E.push([wt[ui],Na,Di]);E.push(["",Is,0])}else{if(Xt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(E=[],sa=wt.length,Pn=Pn!==0?Pn:su,ui=0;ui<sa;ui++){Di=ui===0?ba(ve):-Zs,Na=ui===0?qs(q):0;var Wc=wt[ui].split(" ").length-1,gl=Wc>0?(Pn-Ts[ui])/Wc:0;ui<sa-1?pl.push(O(j(gl))):pl.push(0),E.push([wt[ui],Na,Di])}}}(typeof ke.R2L=="boolean"?ke.R2L:G)===!0&&(E=Nc(E,function(Tr,wr,oi){return[Tr.split("").reverse().join(""),wr,oi]})),ut={text:E,x:q,y:ve,options:ke,mutex:{pdfEscape:Rt,activeFontKey:ct,fonts:Ct,activeFontSize:Qe}},Mt.publish("postProcessText",ut),E=ut.text,Br=ut.mutex.isHex||!1;var rc=Ct[ct].encoding;rc!=="WinAnsiEncoding"&&rc!=="StandardEncoding"||(E=Nc(E,function(Tr,wr,oi){return[aa(Tr),wr,oi]})),wt=Fc(E),E=[];for(var Fs,Eo,Bo,To=Array.isArray(wt[0])?1:0,Qc="",ic=function(Tr,wr,oi){var mr="";return oi instanceof Vt?(oi=typeof ke.angle=="number"?zr(oi,new Vt(1,0,0,1,Tr,wr)):zr(new Vt(1,0,0,1,Tr,wr),oi),M===C&&(oi=zr(new Vt(1,0,0,-1,0,0),oi)),mr=oi.join(" ")+` Tm
`):mr=O(Tr)+" "+O(wr)+` Td
`,mr},ca=0;ca<wt.length;ca++){switch(Qc="",To){case 1:Bo=(Br?"<":"(")+wt[ca][0]+(Br?">":")"),Fs=parseFloat(wt[ca][1]),Eo=parseFloat(wt[ca][2]);break;case 0:Bo=(Br?"<":"(")+wt[ca]+(Br?">":")"),Fs=qs(q),Eo=ba(ve)}pl!==void 0&&pl[ca]!==void 0&&(Qc=pl[ca]+` Tw
`),ca===0?E.push(Qc+ic(Fs,Eo,yr)+Bo):To===0?E.push(Qc+Bo):To===1&&E.push(Qc+ic(Fs,Eo,yr)+Bo)}E=To===0?E.join(` Tj
T* `):E.join(` Tj
`),E+=` Tj
`;var to=`BT
/`;return to+=ct+" "+Qe+` Tf
`,to+=O(Qe*ia)+` TL
`,to+=Ys+`
`,to+=Ar,to+=E,ne(to+="ET"),f[ct]=!0,dr};var ns=h.__private__.clip=h.clip=function(E){return ne(E==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return ns("evenodd")},h.__private__.discardPath=h.discardPath=function(){return ne("n"),this};var Yr=h.__private__.isValidStyle=function(E){var q=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(E)!==-1&&(q=!0),q};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(E){return Yr(E)&&(l=E),this};var kc=h.__private__.getStyle=h.getStyle=function(E){var q=l;switch(E){case"D":case"S":q="S";break;case"F":q="f";break;case"FD":case"DF":q="B";break;case"f":case"f*":case"B":case"B*":q=E}return q},Ic=h.close=function(){return ne("h"),this};h.stroke=function(){return ne("S"),this},h.fill=function(E){return Co("f",E),this},h.fillEvenOdd=function(E){return Co("f*",E),this},h.fillStroke=function(E){return Co("B",E),this},h.fillStrokeEvenOdd=function(E){return Co("B*",E),this};var Co=function(E,q){Cr(q)==="object"?tu(q,E):ne(E)},ll=function(E){E===null||M===C&&E===void 0||(E=kc(E),ne(E))};function ud(E,q,ve,ke,He){var ut=new qd(q||this.boundingBox,ve||this.xStep,ke||this.yStep,this.gState,He||this.matrix);ut.stream=this.stream;var wt=E+"$$"+this.cloneIndex+++"$$";return wi(wt,ut),ut}var tu=function(E,q){var ve=sn[E.key],ke=_t[ve];if(ke instanceof ku)ne("q"),ne(dd(q)),ke.gState&&h.setGState(ke.gState),ne(E.matrix.toString()+" cm"),ne("/"+ve+" sh"),ne("Q");else if(ke instanceof qd){var He=new Vt(1,0,0,-1,0,Jo());E.matrix&&(He=He.multiply(E.matrix||ea),ve=ud.call(ke,E.key,E.boundingBox,E.xStep,E.yStep,He).id),ne("q"),ne("/Pattern cs"),ne("/"+ve+" scn"),ke.gState&&h.setGState(ke.gState),ne(q),ne("Q")}},dd=function(E){switch(E){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"}},Po=h.moveTo=function(E,q){return ne(O(j(E))+" "+O($(q))+" m"),this},ul=h.lineTo=function(E,q){return ne(O(j(E))+" "+O($(q))+" l"),this},qo=h.curveTo=function(E,q,ve,ke,He,ut){return ne([O(j(E)),O($(q)),O(j(ve)),O($(ke)),O(j(He)),O($(ut)),"c"].join(" ")),this};h.__private__.line=h.line=function(E,q,ve,ke,He){if(isNaN(E)||isNaN(q)||isNaN(ve)||isNaN(ke)||!Yr(He))throw new Error("Invalid arguments passed to jsPDF.line");return M===S?this.lines([[ve-E,ke-q]],E,q,[1,1],He||"S"):this.lines([[ve-E,ke-q]],E,q,[1,1]).stroke()},h.__private__.lines=h.lines=function(E,q,ve,ke,He,ut){var wt,Zt,Xt,yn,Pn,qn,Zr,yr,dr,Er,Br,Ar;if(typeof E=="number"&&(Ar=ve,ve=q,q=E,E=Ar),ke=ke||[1,1],ut=ut||!1,isNaN(q)||isNaN(ve)||!Array.isArray(E)||!Array.isArray(ke)||!Yr(He)||typeof ut!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Po(q,ve),wt=ke[0],Zt=ke[1],yn=E.length,Er=q,Br=ve,Xt=0;Xt<yn;Xt++)(Pn=E[Xt]).length===2?(Er=Pn[0]*wt+Er,Br=Pn[1]*Zt+Br,ul(Er,Br)):(qn=Pn[0]*wt+Er,Zr=Pn[1]*Zt+Br,yr=Pn[2]*wt+Er,dr=Pn[3]*Zt+Br,Er=Pn[4]*wt+Er,Br=Pn[5]*Zt+Br,qo(qn,Zr,yr,dr,Er,Br));return ut&&Ic(),ll(He),this},h.path=function(E){for(var q=0;q<E.length;q++){var ve=E[q],ke=ve.c;switch(ve.op){case"m":Po(ke[0],ke[1]);break;case"l":ul(ke[0],ke[1]);break;case"c":qo.apply(this,ke);break;case"h":Ic()}}return this},h.__private__.rect=h.rect=function(E,q,ve,ke,He){if(isNaN(E)||isNaN(q)||isNaN(ve)||isNaN(ke)||!Yr(He))throw new Error("Invalid arguments passed to jsPDF.rect");return M===S&&(ke=-ke),ne([O(j(E)),O($(q)),O(j(ve)),O(j(ke)),"re"].join(" ")),ll(He),this},h.__private__.triangle=h.triangle=function(E,q,ve,ke,He,ut,wt){if(isNaN(E)||isNaN(q)||isNaN(ve)||isNaN(ke)||isNaN(He)||isNaN(ut)||!Yr(wt))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ve-E,ke-q],[He-ve,ut-ke],[E-He,q-ut]],E,q,[1,1],wt,!0),this},h.__private__.roundedRect=h.roundedRect=function(E,q,ve,ke,He,ut,wt){if(isNaN(E)||isNaN(q)||isNaN(ve)||isNaN(ke)||isNaN(He)||isNaN(ut)||!Yr(wt))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Zt=4/3*(Math.SQRT2-1);return He=Math.min(He,.5*ve),ut=Math.min(ut,.5*ke),this.lines([[ve-2*He,0],[He*Zt,0,He,ut-ut*Zt,He,ut],[0,ke-2*ut],[0,ut*Zt,-He*Zt,ut,-He,ut],[2*He-ve,0],[-He*Zt,0,-He,-ut*Zt,-He,-ut],[0,2*ut-ke],[0,-ut*Zt,He*Zt,-ut,He,-ut]],E+He,q,[1,1],wt,!0),this},h.__private__.ellipse=h.ellipse=function(E,q,ve,ke,He){if(isNaN(E)||isNaN(q)||isNaN(ve)||isNaN(ke)||!Yr(He))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ut=4/3*(Math.SQRT2-1)*ve,wt=4/3*(Math.SQRT2-1)*ke;return Po(E+ve,q),qo(E+ve,q-wt,E+ut,q-ke,E,q-ke),qo(E-ut,q-ke,E-ve,q-wt,E-ve,q),qo(E-ve,q+wt,E-ut,q+ke,E,q+ke),qo(E+ut,q+ke,E+ve,q+wt,E+ve,q),ll(He),this},h.__private__.circle=h.circle=function(E,q,ve,ke){if(isNaN(E)||isNaN(q)||isNaN(ve)||!Yr(ke))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(E,q,ve,ve,ke)},h.setFont=function(E,q,ve){return ve&&(q=U(q,ve)),ct=Ln(E,q,{disableWarning:!1}),this};var Ad=h.__private__.getFont=h.getFont=function(){return Ct[Ln.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var E,q,ve={};for(E in yt)if(yt.hasOwnProperty(E))for(q in ve[E]=[],yt[E])yt[E].hasOwnProperty(q)&&ve[E].push(q);return ve},h.addFont=function(E,q,ve,ke,He){var ut=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ut.indexOf(arguments[3])!==-1?He=arguments[3]:arguments[3]&&ut.indexOf(arguments[3])==-1&&(ve=U(ve,ke)),Ut.call(this,E,q,ve,He=He||"Identity-H")};var dl,It=n.lineWidth||.200025,Es=h.__private__.getLineWidth=h.getLineWidth=function(){return It},fr=h.__private__.setLineWidth=h.setLineWidth=function(E){return It=E,ne(O(j(E))+" w"),this};h.__private__.setLineDash=cn.API.setLineDash=cn.API.setLineDashPattern=function(E,q){if(E=E||[],q=q||0,isNaN(q)||!Array.isArray(E))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return E=E.map(function(ve){return O(j(ve))}).join(" "),q=O(j(q)),ne("["+E+"] "+q+" d"),this};var KA=h.__private__.getLineHeight=h.getLineHeight=function(){return Qe*dl};h.__private__.getLineHeight=h.getLineHeight=function(){return Qe*dl};var hd=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(E){return typeof(E=E||1.15)=="number"&&(dl=E),this},fd=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return dl};hd(n.lineHeight);var qs=h.__private__.getHorizontalCoordinate=function(E){return j(E)},ba=h.__private__.getVerticalCoordinate=function(E){return M===C?E:At[ae].mediaBox.topRightY-At[ae].mediaBox.bottomLeftY-j(E)},md=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(E){return O(qs(E))},Al=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(E){return O(ba(E))},Jr=n.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return bi(Jr)},h.__private__.setStrokeColor=h.setDrawColor=function(E,q,ve,ke){return Jr=_i({ch1:E,ch2:q,ch3:ve,ch4:ke,pdfColorType:"draw",precision:2}),ne(Jr),this};var Xs=n.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return bi(Xs)},h.__private__.setFillColor=h.setFillColor=function(E,q,ve,ke){return Xs=_i({ch1:E,ch2:q,ch3:ve,ch4:ke,pdfColorType:"fill",precision:2}),ne(Xs),this};var Ys=n.textColor||"0 g",qA=h.__private__.getTextColor=h.getTextColor=function(){return bi(Ys)};h.__private__.setTextColor=h.setTextColor=function(E,q,ve,ke){return Ys=_i({ch1:E,ch2:q,ch3:ve,ch4:ke,pdfColorType:"text",precision:3}),this};var nu=n.charSpace,XA=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(nu||0)};h.__private__.setCharSpace=h.setCharSpace=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return nu=E,this};var hl=0;h.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},h.__private__.setLineCap=h.setLineCap=function(E){var q=h.CapJoinStyles[E];if(q===void 0)throw new Error("Line cap style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return hl=q,ne(q+" J"),this};var Lc=0;h.__private__.setLineJoin=h.setLineJoin=function(E){var q=h.CapJoinStyles[E];if(q===void 0)throw new Error("Line join style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Lc=q,ne(q+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(E){if(E=E||0,isNaN(E))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return ne(O(j(E))+" M"),this},h.GState=Dp,h.setGState=function(E){(E=typeof E=="string"?Le[pt[E]]:ru(null,E)).equals(Ze)||(ne("/"+E.id+" gs"),Ze=E)};var ru=function(E,q){if(!E||!pt[E]){var ve=!1;for(var ke in Le)if(Le.hasOwnProperty(ke)&&Le[ke].equals(q)){ve=!0;break}if(ve)q=Le[ke];else{var He="GS"+(Object.keys(Le).length+1).toString(10);Le[He]=q,q.id=He}return E&&(pt[E]=q.id),Mt.publish("addGState",q),q}};h.addGState=function(E,q){return ru(E,q),this},h.saveGraphicsState=function(){return ne("q"),Kt.push({key:ct,size:Qe,color:Ys}),this},h.restoreGraphicsState=function(){ne("Q");var E=Kt.pop();return ct=E.key,Qe=E.size,Ys=E.color,Ze=null,this},h.setCurrentTransformationMatrix=function(E){return ne(E.toString()+" cm"),this},h.comment=function(E){return ne("#"+E),this};var Rn=function(E,q){var ve=E||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ve},set:function(ut){isNaN(ut)||(ve=parseFloat(ut))}});var ke=q||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ke},set:function(ut){isNaN(ut)||(ke=parseFloat(ut))}});var He="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return He},set:function(ut){He=ut.toString()}}),this},pd=function(E,q,ve,ke){Rn.call(this,E,q),this.type="rect";var He=ve||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return He},set:function(wt){isNaN(wt)||(He=parseFloat(wt))}});var ut=ke||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ut},set:function(wt){isNaN(wt)||(ut=parseFloat(wt))}}),this},ra=function(){this.page=nt,this.currentPage=ae,this.pages=We.slice(0),this.pagesContext=At.slice(0),this.x=Je,this.y=Tt,this.matrix=Pt,this.width=YA(ae),this.height=Yo(ae),this.outputDestination=Ne,this.id="",this.objectNumber=-1};ra.prototype.restore=function(){nt=this.page,ae=this.currentPage,At=this.pagesContext,We=this.pages,Je=this.x,Tt=this.y,Pt=this.matrix,Js(ae,this.width),gd(ae,this.height),Ne=this.outputDestination};var Xo=function(E,q,ve,ke,He){_n.push(new ra),nt=ae=0,We=[],Je=E,Tt=q,Pt=He,zt([ve,ke])};for(var fl in h.beginFormObject=function(E,q,ve,ke,He){return Xo(E,q,ve,ke,He),this},h.endFormObject=function(E){return(function(q){if(or[q])_n.pop().restore();else{var ve=new ra,ke="Xo"+(Object.keys(Sn).length+1).toString(10);ve.id=ke,or[q]=ke,Sn[ke]=ve,Mt.publish("addFormObject",ve),_n.pop().restore()}})(E),this},h.doFormObject=function(E,q){var ve=Sn[or[E]];return ne("q"),ne(q.toString()+" cm"),ne("/"+ve.id+" Do"),ne("Q"),this},h.getFormObject=function(E){var q=Sn[or[E]];return{x:q.x,y:q.y,width:q.width,height:q.height,matrix:q.matrix}},h.save=function(E,q){return E=E||"generated.pdf",(q=q||{}).returnPromise=q.returnPromise||!1,q.returnPromise===!1?(Hd(on(Cn()),E),typeof Hd.unload=="function"&&bn.setTimeout&&setTimeout(Hd.unload,911),this):new Promise(function(ve,ke){try{var He=Hd(on(Cn()),E);typeof Hd.unload=="function"&&bn.setTimeout&&setTimeout(Hd.unload,911),ve(He)}catch(ut){ke(ut.message)}})},cn.API)cn.API.hasOwnProperty(fl)&&(fl==="events"&&cn.API.events.length?(function(E,q){var ve,ke,He;for(He=q.length-1;He!==-1;He--)ve=q[He][0],ke=q[He][1],E.subscribe.apply(E,[ve].concat(typeof ke=="function"?[ke]:ke))})(Mt,cn.API.events):h[fl]=cn.API[fl]);function YA(E){return At[E].mediaBox.topRightX-At[E].mediaBox.bottomLeftX}function Js(E,q){At[E].mediaBox.topRightX=q+At[E].mediaBox.bottomLeftX}function Yo(E){return At[E].mediaBox.topRightY-At[E].mediaBox.bottomLeftY}function gd(E,q){At[E].mediaBox.topRightY=q+At[E].mediaBox.bottomLeftY}var JA=h.getPageWidth=function(E){return YA(E=E||ae)/kt},ZA=h.setPageWidth=function(E,q){Js(E,q*kt)},Jo=h.getPageHeight=function(E){return Yo(E=E||ae)/kt},eh=h.setPageHeight=function(E,q){gd(E,q*kt)};return h.internal={pdfEscape:Rt,getStyle:kc,getFont:Ad,getFontSize:se,getCharSpace:XA,getTextColor:qA,getLineHeight:KA,getLineHeightFactor:fd,getLineWidth:Es,write:De,getHorizontalCoordinate:qs,getVerticalCoordinate:ba,getCoordinateString:md,getVerticalCoordinateString:Al,collections:{},newObject:Wn,newAdditionalObject:Hi,newObjectDeferred:Dt,newObjectDeferredBegin:Fr,getFilters:Xr,putStream:xi,events:Mt,scaleFactor:kt,pageSize:{getWidth:function(){return JA(ae)},setWidth:function(E){ZA(ae,E)},getHeight:function(){return Jo(ae)},setHeight:function(E){eh(ae,E)}},encryptionOptions:u,encryption:cr,getEncryptor:function(E){return u!==null?cr.encryptor(E,0):function(q){return q}},output:wa,getNumberOfPages:In,get pages(){return We},out:ne,f2:k,f3:H,getPageInfo:li,getPageInfoByObjId:Nr,getCurrentPageInfo:Vn,getPDFVersion:y,Point:Rn,Rectangle:pd,Matrix:Vt,hasHotfix:wn},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return JA(ae)},set:function(E){ZA(ae,E)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Jo(ae)},set:function(E){eh(ae,E)},enumerable:!0,configurable:!0}),(function(E){for(var q=0,ve=ze.length;q<ve;q++){var ke=Ut.call(this,E[q][0],E[q][1],E[q][2],ze[q][3],!0);A===!1&&(f[ke]=!0);var He=E[q][0].split("-");Et({id:ke,fontName:He[0],fontStyle:He[1]||""})}Mt.publish("addFonts",{fonts:Ct,dictionary:yt})}).call(h,ze),ct="F1",hn(i,t),Mt.publish("initialized"),h}Oh.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},Oh.prototype.toHexString=function(n){return n.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Oh.prototype.hexToBytes=function(n){for(var e=[],t=0;t<n.length;t+=2)e.push(String.fromCharCode(parseInt(n.substr(t,2),16)));return e.join("")},Oh.prototype.processOwnerPassword=function(n,e){return q2(K2(e).substr(0,5),n)},Oh.prototype.encryptor=function(n,e){var t=K2(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&e,e>>8&255)).substr(0,10);return function(r){return q2(t,r)}},Dp.prototype.equals=function(n){var e,t="id,objectNumber,equals";if(!n||Cr(n)!==Cr(this))return!1;var r=0;for(e in this)if(!(t.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!n.hasOwnProperty(e)||this[e]!==n[e])return!1;r++}for(e in n)n.hasOwnProperty(e)&&t.indexOf(e)<0&&r--;return r===0},cn.API={events:[]},cn.version="4.2.1";var mi=cn.API,aC=1,OA=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},hh=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},xA=function(n){return n.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"#"+(t.length===1?"0"+t:t)})},Bn=function(n){return n.toFixed(2)},gu=function(n){return n.toFixed(5)};mi.__acroform__={};var Ks=function(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n},ck=function(n){return n*aC},Gc=function(n){var e=new AD,t=Jt.internal.getHeight(n)||0,r=Jt.internal.getWidth(n)||0;return e.BBox=[0,0,Number(Bn(r)),Number(Bn(t))],e},dte=mi.__acroform__.setBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|1<<e},Ate=mi.__acroform__.clearBit=function(n,e){if(n=n||0,e=e||0,isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&~(1<<e)},hte=mi.__acroform__.getBit=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<e?1:0},ki=mi.__acroform__.getBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return hte(n,e-1)},Ii=mi.__acroform__.setBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return dte(n,e-1)},Li=mi.__acroform__.clearBitForPdf=function(n,e){if(isNaN(n)||isNaN(e))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Ate(n,e-1)},fte=mi.__acroform__.calculateCoordinates=function(n,e){var t=e.internal.getHorizontalCoordinate,r=e.internal.getVerticalCoordinate,i=n[0],a=n[1],s=n[2],o=n[3],c={};return c.lowerLeft_X=t(i)||0,c.lowerLeft_Y=r(a+o)||0,c.upperRight_X=t(i+s)||0,c.upperRight_Y=r(a)||0,[Number(Bn(c.lowerLeft_X)),Number(Bn(c.lowerLeft_Y)),Number(Bn(c.upperRight_X)),Number(Bn(c.upperRight_Y))]},mte=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var e=[],t=n._V||n.DV,r=X2(n,t),i=n.scope.internal.getFont(n.fontName,n.fontStyle).id;e.push("/Tx BMC"),e.push("q"),e.push("BT"),e.push(n.scope.__private__.encodeColorString(n.color)),e.push("/"+i+" "+Bn(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 a=Gc(n);return a.scope=n.scope,a.stream=e.join(`
`),a}},X2=function(n,e){var t=n.fontSize===0?n.maxFontSize:n.fontSize,r={text:"",fontSize:""},i=(e=(e=e.substr(0,1)=="("?e.substr(1):e).substr(e.length-1)==")"?e.substr(0,e.length-1):e).split(" ");i=n.multiline?i.map(function(k){return k.split(`
`)}):i.map(function(k){return[k]});var a=t,s=Jt.internal.getHeight(n)||0;s=s<0?-s:s;var o=Jt.internal.getWidth(n)||0;o=o<0?-o:o;var c=function(k,H,j){if(k+1<i.length){var $=H+" "+i[k+1][0];return A1($,n,j).width<=o-4}return!1};a++;e:for(;a>0;){e="",a--;var l,u,A=A1("3",n,a).height,f=n.multiline?s-a:(s-A)/2,h=f+=2,g=0,y=0,w=0;if(a<=0){e=`(...) Tj
`,e+="% Width of Text: "+A1(e,n,a=12).width+", FieldWidth:"+o+`
`;break}for(var v="",S=0,C=0;C<i.length;C++)if(i.hasOwnProperty(C)){var M=!1;if(i[C].length!==1&&w!==i[C].length-1){if((A+2)*(S+2)+2>s)continue e;v+=i[C][w],M=!0,y=C,C--}else{v=(v+=i[C][w]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var F=parseInt(C),D=c(F,v,a),U=C>=i.length-1;if(D&&!U){v+=" ",w=0;continue}if(D||U){if(U)y=F;else if(n.multiline&&(A+2)*(S+2)+2>s)continue e}else{if(!n.multiline||(A+2)*(S+2)+2>s)continue e;y=F}}for(var O="",T=g;T<=y;T++){var P=i[T];if(n.multiline){if(T===y){O+=P[w]+" ",w=(w+1)%P.length;continue}if(T===g){O+=P[P.length-1]+" ";continue}}O+=P[0]+" "}switch(O=O.substr(O.length-1)==" "?O.substr(0,O.length-1):O,u=A1(O,n,a).width,n.textAlign){case"right":l=o-u-2;break;case"center":l=(o-u)/2;break;default:l=2}e+=Bn(l)+" "+Bn(h)+` Td
`,e+="("+OA(O)+`) Tj
`,e+=-Bn(l)+` 0 Td
`,h=-(a+2),u=0,g=M?y:y+1,S++,v=""}break}return r.text=e,r.fontSize=a,r},A1=function(n,e,t){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(n,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:i}},pte={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},gte=function(n,e){var t={type:"reference",object:n};e.internal.getPageInfo(n.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&e.internal.getPageInfo(n.page).pageContext.annotations.push(t)},vte=function(n,e){if(e.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(Sc.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(pte)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");aC=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new hD,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];a.objId=void 0,a.hasAnnotation&&gte(a,t)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(t){(function(r,i){var a=!r;for(var s in r||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(s)){var o=r[s],c=[],l=o.Rect;if(o.Rect&&(o.Rect=fte(o.Rect,i)),i.internal.newObjectDeferredBegin(o.objId,!0),o.DA=Jt.createDefaultAppearanceStream(o),Cr(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(c=o.getKeyValueListForStream()),o.Rect=l,o.hasAppearanceStream&&!o.appearanceStreamContent){var u=mte(o);c.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}if(o.appearanceStreamContent){var A="";for(var f in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(f)){var h=o.appearanceStreamContent[f];if(A+="/"+f+" ",A+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var s in h)if(h.hasOwnProperty(s)){var g=h[s];typeof g=="function"&&(g=g.call(i,o)),A+="/"+s+" "+g+" ",i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g)}}else typeof(g=h)=="function"&&(g=g.call(i,o)),A+="/"+s+" "+g,i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g);A+=">>"}c.push({key:"AP",value:`<<
`+A+">>"})}i.internal.putStream({additionalKeyValues:c,objectId:o.objId}),i.internal.out("endobj")}a&&(function(y,w){for(var v in y)if(y.hasOwnProperty(v)){var S=v,C=y[v];w.internal.newObjectDeferredBegin(C.objId,!0),Cr(C)==="object"&&typeof C.putStream=="function"&&C.putStream(),delete y[S]}})(i.internal.acroformPlugin.xForms,i)})(t,n)}),n.internal.acroformPlugin.isInitialized=!0}},dD=mi.__acroform__.arrayToPdfArray=function(n,e,t){var r=function(s){return s};if(Array.isArray(n)){for(var i="[",a=0;a<n.length;a++)switch(a!==0&&(i+=" "),Cr(n[a])){case"boolean":case"number":case"object":i+=n[a].toString();break;case"string":n[a].substr(0,1)==="/"?i+="/"+xA(n[a].substr(1)):(e!==void 0&&t&&(r=t.internal.getEncryptor(e)),i+="("+OA(r(n[a].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},C_=function(n,e,t){var r=function(i){return i};return e!==void 0&&t&&(r=t.internal.getEncryptor(e)),(n=n||"").toString(),"("+OA(r(n))+")"},Xc=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(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Xc.prototype.toString=function(){return this.objId+" 0 R"},Xc.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},Xc.prototype.getKeyValueListForStream=function(){var n=[],e=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var t in e)if(Object.getOwnPropertyDescriptor(this,e[t]).configurable===!1){var r=e[t],i=this[r];i&&(Array.isArray(i)?n.push({key:r,value:dD(i,this.objId,this.scope)}):i instanceof Xc?(i.scope=this.scope,n.push({key:r,value:i.objId+" 0 R"})):typeof i!="function"&&n.push({key:r,value:i}))}return n};var AD=function(){Xc.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 n,e=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){n=t.trim()},get:function(){return n||null}})};Ks(AD,Xc);var hD=function(){Xc.call(this);var n,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(n){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+OA(t(n))+")"}},set:function(t){n=t}})};Ks(hD,Xc);var Sc=function n(){Xc.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');e=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!ki(e,3)},set:function(v){v?this.F=Ii(e,3):this.F=Li(e,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');t=v}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(v){r=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(v){r[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(v){r[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(v){r[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(v){r[3]=v}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof Sy)return;a="FieldObject"+n.FieldNum++}var v=function(S){return S};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+OA(v(a))+")"},set:function(v){a=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(v){a=v}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(v){s=v}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(v){o=v}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(v){c=v}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return l===void 0?50/aC:l},set:function(v){l=v}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(v){u=v}});var A="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!A||this instanceof Sy||this instanceof ju))return C_(A,this.objId,this.scope)},set:function(v){v=v.toString(),A=v}});var f=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Vi==0?C_(f,this.objId,this.scope):f},set:function(v){v=v.toString(),f=this instanceof Vi==0?v.substr(0,1)==="("?hh(v.substr(1,v.length-2)):hh(v):v}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Vi==1?hh(f.substr(1,f.length-1)):f},set:function(v){v=v.toString(),f=this instanceof Vi==1?"/"+xA(v):v}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Vi==0?C_(h,this.objId,this.scope):h},set:function(v){v=v.toString(),h=this instanceof Vi==0?v.substr(0,1)==="("?hh(v.substr(1,v.length-2)):hh(v):v}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Vi==1?hh(h.substr(1,h.length-1)):h},set:function(v){v=v.toString(),h=this instanceof Vi==1?"/"+xA(v):v}}),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 g,y=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return y},set:function(v){v=!!v,y=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(g)return g},set:function(v){g=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,1)},set:function(v){v?this.Ff=Ii(this.Ff,1):this.Ff=Li(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,2)},set:function(v){v?this.Ff=Ii(this.Ff,2):this.Ff=Li(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,3)},set:function(v){v?this.Ff=Ii(this.Ff,3):this.Ff=Li(this.Ff,3)}});var w=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(w!==null)return w},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');w=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(w){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:w=2;break;case"center":case 1:w=1;break;default:w=0}}})};Ks(Sc,Xc);var iA=function(){Sc.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(t){n=t}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return dD(e,this.objId,this.scope)},set:function(t){var r,i;i=[],typeof(r=t)=="string"&&(i=(function(a,s,o){o||(o=1);for(var c,l=[];c=s.exec(a);)l.push(c[o]);return l})(r,/\((.*?)\)/g)),e=i}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();e.indexOf(t)!==-1&&(e.splice(e.indexOf(t),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,18)},set:function(t){t?this.Ff=Ii(this.Ff,18):this.Ff=Li(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=Ii(this.Ff,19):this.Ff=Li(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,20)},set:function(t){t?(this.Ff=Ii(this.Ff,20),e.sort()):this.Ff=Li(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,22)},set:function(t){t?this.Ff=Ii(this.Ff,22):this.Ff=Li(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,23)},set:function(t){t?this.Ff=Ii(this.Ff,23):this.Ff=Li(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,27)},set:function(t){t?this.Ff=Ii(this.Ff,27):this.Ff=Li(this.Ff,27)}}),this.hasAppearanceStream=!1};Ks(iA,Sc);var aA=function(){iA.call(this),this.fontName="helvetica",this.combo=!1};Ks(aA,iA);var sA=function(){aA.call(this),this.combo=!0};Ks(sA,aA);var tp=function(){sA.call(this),this.edit=!0};Ks(tp,sA);var Vi=function(){Sc.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,15)},set:function(t){t?this.Ff=Ii(this.Ff,15):this.Ff=Li(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,16)},set:function(t){t?this.Ff=Ii(this.Ff,16):this.Ff=Li(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,17)},set:function(t){t?this.Ff=Ii(this.Ff,17):this.Ff=Li(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,26)},set:function(t){t?this.Ff=Ii(this.Ff,26):this.Ff=Li(this.Ff,26)}});var n,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(a){return a};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(e).length!==0){var r,i=[];for(r in i.push("<<"),e)i.push("/"+r+" ("+OA(t(e[r]))+")");return i.push(">>"),i.join(`
`)}},set:function(t){Cr(t)==="object"&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){typeof t=="string"&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){var r=t==null?"":t.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),n="/"+xA(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+xA(t)}})};Ks(Vi,Sc);var np=function(){Vi.call(this),this.pushButton=!0};Ks(np,Vi);var oA=function(){Vi.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e!==void 0?e:[]}})};Ks(oA,Vi);var Sy=function(){var n,e;Sc.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(i){n=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(i){e=i}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(o){return o};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,s=[];for(a in s.push("<<"),r)s.push("/"+a+" ("+OA(i(r[a]))+")");return s.push(">>"),s.join(`
`)},set:function(i){Cr(i)==="object"&&(r=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(i){typeof i=="string"&&(r.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(i){var a=i==null?"":i.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),t="/"+xA(a)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(i){var a=i==null?"":i.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),t="/"+xA(a)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Jt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ks(Sy,Sc),oA.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var t=this.Kids[e];t.appearanceStreamContent=n.createAppearanceStream(t.optionName),t.caption=n.getCA()}},oA.prototype.createOption=function(n){var e=new Sy;return e.Parent=this,e.optionName=n,this.Kids.push(e),yte.call(this.scope,e),e};var rp=function(){Vi.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Jt.CheckBox.createAppearanceStream()};Ks(rp,Vi);var ju=function(){Sc.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,13)},set:function(e){e?this.Ff=Ii(this.Ff,13):this.Ff=Li(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,21)},set:function(e){e?this.Ff=Ii(this.Ff,21):this.Ff=Li(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,23)},set:function(e){e?this.Ff=Ii(this.Ff,23):this.Ff=Li(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,24)},set:function(e){e?this.Ff=Ii(this.Ff,24):this.Ff=Li(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,25)},set:function(e){e?this.Ff=Ii(this.Ff,25):this.Ff=Li(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,26)},set:function(e){e?this.Ff=Ii(this.Ff,26):this.Ff=Li(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){Number.isInteger(e)&&(n=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ks(ju,Sc);var ip=function(){ju.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!ki(this.Ff,14)},set:function(n){n?this.Ff=Ii(this.Ff,14):this.Ff=Li(this.Ff,14)}}),this.password=!0};Ks(ip,ju);var Jt={CheckBox:{createAppearanceStream:function(){return{N:{On:Jt.CheckBox.YesNormal},D:{On:Jt.CheckBox.YesPushDown,Off:Jt.CheckBox.OffPushDown}}},YesPushDown:function(n){var e=Gc(n);e.scope=n.scope;var t=[],r=n.scope.internal.getFont(n.fontName,n.fontStyle).id,i=n.scope.__private__.encodeColorString(n.color),a=X2(n,n.caption);return t.push("0.749023 g"),t.push("0 0 "+Bn(Jt.internal.getWidth(n))+" "+Bn(Jt.internal.getHeight(n))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+Bn(a.fontSize)+" Tf "+i),t.push("BT"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC"),e.stream=t.join(`
`),e},YesNormal:function(n){var e=Gc(n);e.scope=n.scope;var t=n.scope.internal.getFont(n.fontName,n.fontStyle).id,r=n.scope.__private__.encodeColorString(n.color),i=[],a=Jt.internal.getHeight(n),s=Jt.internal.getWidth(n),o=X2(n,n.caption);return i.push("1 g"),i.push("0 0 "+Bn(s)+" "+Bn(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+Bn(s-1)+" "+Bn(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+t+" "+Bn(o.fontSize)+" Tf "+r),i.push(o.text),i.push("ET"),i.push("Q"),e.stream=i.join(`
`),e},OffPushDown:function(n){var e=Gc(n);e.scope=n.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Bn(Jt.internal.getWidth(n))+" "+Bn(Jt.internal.getHeight(n))+" re"),t.push("f"),e.stream=t.join(`
`),e}},RadioButton:{Circle:{createAppearanceStream:function(n){var e={D:{Off:Jt.RadioButton.Circle.OffPushDown},N:{}};return e.N[n]=Jt.RadioButton.Circle.YesNormal,e.D[n]=Jt.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(n){var e=Gc(n);e.scope=n.scope;var t=[],r=Jt.internal.getWidth(n)<=Jt.internal.getHeight(n)?Jt.internal.getWidth(n)/4:Jt.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var i=Jt.internal.Bezier_C,a=Number((r*i).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+gu(Jt.internal.getWidth(n)/2)+" "+gu(Jt.internal.getHeight(n)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),t.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),t.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),t.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
`),e},YesPushDown:function(n){var e=Gc(n);e.scope=n.scope;var t=[],r=Jt.internal.getWidth(n)<=Jt.internal.getHeight(n)?Jt.internal.getWidth(n)/4:Jt.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*Jt.internal.Bezier_C).toFixed(5)),s=Number((r*Jt.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+gu(Jt.internal.getWidth(n)/2)+" "+gu(Jt.internal.getHeight(n)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),t.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),t.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),t.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+gu(Jt.internal.getWidth(n)/2)+" "+gu(Jt.internal.getHeight(n)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),t.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),t.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),t.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
`),e},OffPushDown:function(n){var e=Gc(n);e.scope=n.scope;var t=[],r=Jt.internal.getWidth(n)<=Jt.internal.getHeight(n)?Jt.internal.getWidth(n)/4:Jt.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var i=Number((2*r).toFixed(5)),a=Number((i*Jt.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+gu(Jt.internal.getWidth(n)/2)+" "+gu(Jt.internal.getHeight(n)/2)+" cm"),t.push(i+" 0 m"),t.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),t.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),t.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),t.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),t.push("f"),t.push("Q"),e.stream=t.join(`
`),e}},Cross:{createAppearanceStream:function(n){var e={D:{Off:Jt.RadioButton.Cross.OffPushDown},N:{}};return e.N[n]=Jt.RadioButton.Cross.YesNormal,e.D[n]=Jt.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(n){var e=Gc(n);e.scope=n.scope;var t=[],r=Jt.internal.calculateCross(n);return t.push("q"),t.push("1 1 "+Bn(Jt.internal.getWidth(n)-2)+" "+Bn(Jt.internal.getHeight(n)-2)+" re"),t.push("W"),t.push("n"),t.push(Bn(r.x1.x)+" "+Bn(r.x1.y)+" m"),t.push(Bn(r.x2.x)+" "+Bn(r.x2.y)+" l"),t.push(Bn(r.x4.x)+" "+Bn(r.x4.y)+" m"),t.push(Bn(r.x3.x)+" "+Bn(r.x3.y)+" l"),t.push("s"),t.push("Q"),e.stream=t.join(`
`),e},YesPushDown:function(n){var e=Gc(n);e.scope=n.scope;var t=Jt.internal.calculateCross(n),r=[];return r.push("0.749023 g"),r.push("0 0 "+Bn(Jt.internal.getWidth(n))+" "+Bn(Jt.internal.getHeight(n))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Bn(Jt.internal.getWidth(n)-2)+" "+Bn(Jt.internal.getHeight(n)-2)+" re"),r.push("W"),r.push("n"),r.push(Bn(t.x1.x)+" "+Bn(t.x1.y)+" m"),r.push(Bn(t.x2.x)+" "+Bn(t.x2.y)+" l"),r.push(Bn(t.x4.x)+" "+Bn(t.x4.y)+" m"),r.push(Bn(t.x3.x)+" "+Bn(t.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join(`
`),e},OffPushDown:function(n){var e=Gc(n);e.scope=n.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+Bn(Jt.internal.getWidth(n))+" "+Bn(Jt.internal.getHeight(n))+" re"),t.push("f"),e.stream=t.join(`
`),e}}},createDefaultAppearanceStream:function(n){var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,t=n.scope.__private__.encodeColorString(n.color);return"/"+e+" "+n.fontSize+" Tf "+t}};Jt.internal={Bezier_C:.551915024494,calculateCross:function(n){var e=Jt.internal.getWidth(n),t=Jt.internal.getHeight(n),r=Math.min(e,t);return{x1:{x:(e-r)/2,y:(t-r)/2+r},x2:{x:(e-r)/2+r,y:(t-r)/2},x3:{x:(e-r)/2,y:(t-r)/2},x4:{x:(e-r)/2+r,y:(t-r)/2+r}}}},Jt.internal.getWidth=function(n){var e=0;return Cr(n)==="object"&&(e=ck(n.Rect[2])),e},Jt.internal.getHeight=function(n){var e=0;return Cr(n)==="object"&&(e=ck(n.Rect[3])),e};var yte=mi.addField=function(n){if(vte(this,n),!(n instanceof Sc))throw new Error("Invalid argument passed to jsPDF.addField.");var e;return(e=n).scope.internal.acroformPlugin.printedOut&&(e.scope.internal.acroformPlugin.printedOut=!1,e.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),e.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};mi.AcroFormChoiceField=iA,mi.AcroFormListBox=aA,mi.AcroFormComboBox=sA,mi.AcroFormEditBox=tp,mi.AcroFormButton=Vi,mi.AcroFormPushButton=np,mi.AcroFormRadioButton=oA,mi.AcroFormCheckBox=rp,mi.AcroFormTextField=ju,mi.AcroFormPasswordField=ip,mi.AcroFormAppearance=Jt,mi.AcroForm={ChoiceField:iA,ListBox:aA,ComboBox:sA,EditBox:tp,Button:Vi,PushButton:np,RadioButton:oA,CheckBox:rp,TextField:ju,PasswordField:ip,Appearance:Jt},cn.AcroForm={ChoiceField:iA,ListBox:aA,ComboBox:sA,EditBox:tp,Button:Vi,PushButton:np,RadioButton:oA,CheckBox:rp,TextField:ju,PasswordField:ip,Appearance:Jt};var wte=cn.AcroForm;function fD(n){return n.reduce(function(e,t,r){return e[t]=r,e},{})}(function(n){var e="addImage_";n.__addimage__={};var t="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]]},i=n.__addimage__.getImageFileTypeByImageData=function(k,H){var j,$,ce,de,fe,ee=t;if((H=H||t)==="RGBA"||k.data!==void 0&&k.data instanceof Uint8ClampedArray&&"height"in k&&"width"in k)return"RGBA";if(D(k))for(fe in r)for(ce=r[fe],j=0;j<ce.length;j+=1){for(de=!0,$=0;$<ce[j].length;$+=1)if(ce[j][$]!==void 0&&ce[j][$]!==k[$]){de=!1;break}if(de===!0){ee=fe;break}}else for(fe in r)for(ce=r[fe],j=0;j<ce.length;j+=1){for(de=!0,$=0;$<ce[j].length;$+=1)if(ce[j][$]!==void 0&&ce[j][$]!==k.charCodeAt($)){de=!1;break}if(de===!0){ee=fe;break}}return ee===t&&H!==t&&(ee=H),ee},a=function k(H){for(var j=this.internal.write,$=this.internal.putStream,ce=(0,this.internal.getFilters)();ce.indexOf("FlateEncode")!==-1;)ce.splice(ce.indexOf("FlateEncode"),1);H.objectId=this.internal.newObject();var de=[];if(de.push({key:"Type",value:"/XObject"}),de.push({key:"Subtype",value:"/Image"}),de.push({key:"Width",value:H.width}),de.push({key:"Height",value:H.height}),H.colorSpace===v.INDEXED?de.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(H.palette.length/3-1)+" "+("sMask"in H&&H.sMask!==void 0?H.objectId+2:H.objectId+1)+" 0 R]"}):(de.push({key:"ColorSpace",value:"/"+H.colorSpace}),H.colorSpace===v.DEVICE_CMYK&&de.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),de.push({key:"BitsPerComponent",value:H.bitsPerComponent}),"decodeParameters"in H&&H.decodeParameters!==void 0&&de.push({key:"DecodeParms",value:"<<"+H.decodeParameters+">>"}),"transparency"in H&&Array.isArray(H.transparency)&&H.transparency.length>0){for(var fe="",ee=0,Se=H.transparency.length;ee<Se;ee++)fe+=H.transparency[ee]+" "+H.transparency[ee]+" ";de.push({key:"Mask",value:"["+fe+"]"})}H.sMask!==void 0&&de.push({key:"SMask",value:H.objectId+1+" 0 R"});var xe=H.filter!==void 0?["/"+H.filter]:void 0;if($({data:H.data,additionalKeyValues:de,alreadyAppliedFilters:xe,objectId:H.objectId}),j("endobj"),"sMask"in H&&H.sMask!==void 0){var Pe,V=(Pe=H.sMaskBitsPerComponent)!==null&&Pe!==void 0?Pe:H.bitsPerComponent,ae={width:H.width,height:H.height,colorSpace:"DeviceGray",bitsPerComponent:V,data:H.sMask};"filter"in H&&(ae.decodeParameters="/Predictor ".concat(H.predictor," /Colors 1 /BitsPerComponent ").concat(V," /Columns ").concat(H.width),ae.filter=H.filter),k.call(this,ae)}if(H.colorSpace===v.INDEXED){var J=this.internal.newObject();$({data:O(new Uint8Array(H.palette)),objectId:J}),j("endobj")}},s=function(){var k=this.internal.collections[e+"images"];for(var H in k)a.call(this,k[H])},o=function(){var k,H=this.internal.collections[e+"images"],j=this.internal.write;for(var $ in H)j("/I"+(k=H[$]).index,k.objectId,"0","R")},c=function(){this.internal.collections[e+"images"]||(this.internal.collections[e+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",o))},l=function(){var k=this.internal.collections[e+"images"];return c.call(this),k},u=function(){return Object.keys(this.internal.collections[e+"images"]).length},A=function(k){return typeof n["process"+k.toUpperCase()]=="function"},f=function(k){return Cr(k)==="object"&&k.nodeType===1},h=function(k,H){if(k.nodeName==="IMG"&&k.hasAttribute("src")){var j=""+k.getAttribute("src");if(j.indexOf("data:image/")===0)return Wv(unescape(j).split("base64,").pop());var $=n.loadFile(j,!0);if($!==void 0)return $}if(k.nodeName==="CANVAS"){if(k.width===0||k.height===0)throw new Error("Given canvas must have data. Canvas width: "+k.width+", height: "+k.height);var ce;switch(H){case"PNG":ce="image/png";break;case"WEBP":ce="image/webp";break;default:ce="image/jpeg"}return Wv(k.toDataURL(ce,1).split("base64,").pop())}},g=function(k){var H=this.internal.collections[e+"images"];if(H){for(var j in H)if(k===H[j].alias)return H[j]}},y=function(k,H,j){return k||H||(k=-96,H=-96),k<0&&(k=-1*j.width*72/k/this.internal.scaleFactor),H<0&&(H=-1*j.height*72/H/this.internal.scaleFactor),k===0&&(k=H*j.width/j.height),H===0&&(H=k*j.height/j.width),[k,H]},w=function(k,H,j,$,ce,de){var fe=y.call(this,j,$,ce),ee=this.internal.getCoordinateString,Se=this.internal.getVerticalCoordinateString,xe=l.call(this);if(j=fe[0],$=fe[1],xe[ce.index]=ce,de){de*=Math.PI/180;var Pe=Math.cos(de),V=Math.sin(de),ae=function(z){return z.toFixed(4)},J=[ae(Pe),ae(V),ae(-1*V),ae(Pe),0,0,"cm"]}this.internal.write("q"),de?(this.internal.write([1,"0","0",1,ee(k),Se(H+$),"cm"].join(" ")),this.internal.write(J.join(" ")),this.internal.write([ee(j),"0","0",ee($),"0","0","cm"].join(" "))):this.internal.write([ee(j),"0","0",ee($),ee(k),Se(H+$),"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")},v=n.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"};n.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 S=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},C=n.__addimage__.sHashCode=function(k){var H,j,$=0;if(typeof k=="string")for(j=k.length,H=0;H<j;H++)$=($<<5)-$+k.charCodeAt(H),$|=0;else if(D(k))for(j=k.byteLength/2,H=0;H<j;H++)$=($<<5)-$+k[H],$|=0;return $},M=n.__addimage__.validateStringAsBase64=function(k){(k=k||"").toString().trim();var H=!0;return k.length===0&&(H=!1),k.length%4!=0&&(H=!1),/^[A-Za-z0-9+/]+$/.test(k.substr(0,k.length-2))===!1&&(H=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(k.substr(-2))===!1&&(H=!1),H},F=n.__addimage__.extractImageFromDataUrl=function(k){if(k==null||!(k=k.trim()).startsWith("data:"))return null;var H=k.indexOf(",");return H<0?null:k.substring(0,H).trim().endsWith("base64")?k.substring(H+1):null};n.__addimage__.isArrayBuffer=function(k){return k instanceof ArrayBuffer};var D=n.__addimage__.isArrayBufferView=function(k){return k instanceof Int8Array||k instanceof Uint8Array||k instanceof Uint8ClampedArray||k instanceof Int16Array||k instanceof Uint16Array||k instanceof Int32Array||k instanceof Uint32Array||k instanceof Float32Array||k instanceof Float64Array},U=n.__addimage__.binaryStringToUint8Array=function(k){for(var H=k.length,j=new Uint8Array(H),$=0;$<H;$++)j[$]=k.charCodeAt($);return j},O=n.__addimage__.arrayBufferToBinaryString=function(k){for(var H="",j=D(k)?k:new Uint8Array(k),$=0;$<j.length;$+=8192)H+=String.fromCharCode.apply(null,j.subarray($,$+8192));return H};n.addImage=function(){var k,H,j,$,ce,de,fe,ee,Se;if(typeof arguments[1]=="number"?(H=t,j=arguments[1],$=arguments[2],ce=arguments[3],de=arguments[4],fe=arguments[5],ee=arguments[6],Se=arguments[7]):(H=arguments[1],j=arguments[2],$=arguments[3],ce=arguments[4],de=arguments[5],fe=arguments[6],ee=arguments[7],Se=arguments[8]),Cr(k=arguments[0])==="object"&&!f(k)&&"imageData"in k){var xe=k;k=xe.imageData,H=xe.format||H||t,j=xe.x||j||0,$=xe.y||$||0,ce=xe.w||xe.width||ce,de=xe.h||xe.height||de,fe=xe.alias||fe,ee=xe.compression||ee,Se=xe.rotation||xe.angle||Se}var Pe=this.internal.getFilters();if(ee===void 0&&Pe.indexOf("FlateEncode")!==-1&&(ee="SLOW"),isNaN(j)||isNaN($))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var V=T.call(this,k,H,fe,ee);return w.call(this,j,$,ce,de,V,Se),this};var T=function(k,H,j,$){var ce,de,fe;if(typeof k=="string"&&i(k)===t){k=unescape(k);var ee=P(k,!1);(ee!==""||(ee=n.loadFile(k,!0))!==void 0)&&(k=ee)}if(f(k)&&(k=h(k,H)),H=i(k,H),!A(H))throw new Error("addImage does not support files of type '"+H+"', please ensure that a plugin for '"+H+"' support is added.");if(((fe=j)==null||fe.length===0)&&(j=(function(Se){return typeof Se=="string"||D(Se)?C(Se):D(Se.data)?C(Se.data):null})(k)),(ce=g.call(this,j))||(k instanceof Uint8Array||H==="RGBA"||(de=k,k=U(k)),ce=this["process"+H.toUpperCase()](k,u.call(this),j,(function(Se){return Se&&typeof Se=="string"&&(Se=Se.toUpperCase()),Se in n.image_compression?Se:S.NONE})($),de)),!ce)throw new Error("An unknown error occurred whilst processing the image.");return ce},P=n.__addimage__.convertBase64ToBinaryString=function(k,H){H=typeof H!="boolean"||H;var j,$="";if(typeof k=="string"){var ce;j=(ce=F(k))!==null&&ce!==void 0?ce:k;try{$=Wv(j)}catch(de){if(H)throw M(j)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+de.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return $};n.getImageProperties=function(k){var H,j,$="";if(f(k)&&(k=h(k)),typeof k=="string"&&i(k)===t&&(($=P(k,!1))===""&&($=n.loadFile(k)||""),k=$),j=i(k),!A(j))throw new Error("addImage does not support files of type '"+j+"', please ensure that a plugin for '"+j+"' support is added.");if(k instanceof Uint8Array||(k=U(k)),!(H=this["process"+j.toUpperCase()](k)))throw new Error("An unknown error occurred whilst processing the image");return H.fileType=j,H}})(cn.API),(function(n){var e=function(t){if(t!==void 0&&t!="")return!0};cn.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(t){for(var r,i,a,s=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(t.objId),l=t.pageContext.annotations,u=!1,A=0;A<l.length&&!u;A++)switch((r=l[A]).type){case"link":(e(r.options.url)||e(r.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var f=0;f<l.length;f++){r=l[f];var h=this.internal.pdfEscape,g=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var y=this.internal.newAdditionalObject(),w=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(y.objId),S=r.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+s(r.bounds.x)+" "+o(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y)+"] ")+"/Contents ("+h(v(r.contents))+")",a+=" /Popup "+w.objId+" 0 R",a+=" /P "+c.objId+" 0 R",a+=" /T ("+h(v(S))+") >>",y.content=a;var C=y.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+s(r.bounds.x+30)+" "+o(r.bounds.y+r.bounds.h)+" "+s(r.bounds.x+r.bounds.w+30)+" "+o(r.bounds.y)+"] ")+" /Parent "+C,r.open&&(a+=" /Open true"),a+=" >>",w.content=a,this.internal.write(y.objId,"0 R",w.objId,"0 R");break;case"freetext":i="/Rect ["+s(r.bounds.x)+" "+o(r.bounds.y)+" "+s(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y+r.bounds.h)+"] ";var M="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(g(r.contents))+")",a+=" /DS("+h(g(M))+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(r.options.name){var F=this.annotations._nameMap[r.options.name];r.options.pageNumber=F.page,r.options.top=F.y}else r.options.top||(r.options.top=0);if(i="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",a="",r.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+h(g(r.options.url))+") >>";else if(r.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/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":a+=" /Fit]";break;case"FitH":a+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,a+=" /FitV "+r.options.left+"]";break;default:var D=o(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),a+=" /XYZ "+r.options.left+" "+D+" "+r.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),n.createAnnotation=function(t){var r=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":r.pageContext.annotations.push(t)}},n.link=function(t,r,i,a,s){var o=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:c(t),y:l(r),w:c(t+i),h:l(r+a)},options:s,type:"link"})},n.textWithLink=function(t,r,i,a){var s,o,c=this.getTextWidth(t),l=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){o=a.maxWidth;var u=this.splitTextToSize(t,o).length;s=Math.ceil(l*u)}else o=c,s=l;return this.text(t,r,i,a),i+=.2*l,a.align==="center"&&(r-=c/2),a.align==="right"&&(r-=c),this.link(r,i-l,o,s,a),c},n.getTextWidth=function(t){var r=this.internal.getFontSize();return this.getStringUnitWidth(t)*r/this.internal.scaleFactor}})(cn.API),(function(n){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]},t={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},i=[1570,1571,1573,1575];n.__arabicParser__={};var a=n.__arabicParser__.isInArabicSubstitutionA=function(y){return e[y.charCodeAt(0)]!==void 0},s=n.__arabicParser__.isArabicLetter=function(y){return typeof y=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(y)},o=n.__arabicParser__.isArabicEndLetter=function(y){return s(y)&&a(y)&&e[y.charCodeAt(0)].length<=2},c=n.__arabicParser__.isArabicAlfLetter=function(y){return s(y)&&i.indexOf(y.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(y){return s(y)&&a(y)&&e[y.charCodeAt(0)].length>=1};var l=n.__arabicParser__.arabicLetterHasFinalForm=function(y){return s(y)&&a(y)&&e[y.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(y){return s(y)&&a(y)&&e[y.charCodeAt(0)].length>=3};var u=n.__arabicParser__.arabicLetterHasMedialForm=function(y){return s(y)&&a(y)&&e[y.charCodeAt(0)].length==4},A=n.__arabicParser__.resolveLigatures=function(y){var w=0,v=t,S="",C=0;for(w=0;w<y.length;w+=1)v[y.charCodeAt(w)]!==void 0?(C++,typeof(v=v[y.charCodeAt(w)])=="number"&&(S+=String.fromCharCode(v),v=t,C=0),w===y.length-1&&(v=t,S+=y.charAt(w-(C-1)),w-=C-1,C=0)):(v=t,S+=y.charAt(w-C),w-=C,C=0);return S};n.__arabicParser__.isArabicDiacritic=function(y){return y!==void 0&&r[y.charCodeAt(0)]!==void 0};var f=n.__arabicParser__.getCorrectForm=function(y,w,v){return s(y)?a(y)===!1?-1:!l(y)||!s(w)&&!s(v)||!s(v)&&o(w)||o(y)&&!s(w)||o(y)&&c(w)||o(y)&&o(w)?0:u(y)&&s(w)&&!o(w)&&s(v)&&l(v)?3:o(y)||!s(v)?1:2:-1},h=function(y){var w=0,v=0,S=0,C="",M="",F="",D=(y=y||"").split("\\s+"),U=[];for(w=0;w<D.length;w+=1){for(U.push(""),v=0;v<D[w].length;v+=1)C=D[w][v],M=D[w][v-1],F=D[w][v+1],s(C)?(S=f(C,M,F),U[w]+=S!==-1?String.fromCharCode(e[C.charCodeAt(0)][S]):C):U[w]+=C;U[w]=A(U[w])}return U.join(" ")},g=n.__arabicParser__.processArabic=n.processArabic=function(){var y,w=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(w)){var S=0;for(v=[],S=0;S<w.length;S+=1)Array.isArray(w[S])?v.push([h(w[S][0]),w[S][1],w[S][2]]):v.push([h(w[S])]);y=v}else y=h(w);return typeof arguments[0]=="string"?y:(arguments[0].text=y,arguments[0])};n.events.push(["preProcessText",g])})(cn.API),cn.API.autoPrint=function(n){var e;return(n=n||{}).variant=n.variant||"non-conform",n.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(n){var e=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(o){t=o}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(o){r=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(o){i=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(o){a=o}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(o){s=o}}),Object.defineProperty(this,"parentNode",{})};e.prototype.getContext=function(t,r){var i;if((t=t||"2d")!=="2d")return null;for(i in r)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=r[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},e.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new e,this.canvas.pdf=this}])})(cn.API),(function(n){var e={left:0,top:0,bottom:0,right:0},t=!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(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(y){c=y}});var l=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return l},set:function(y){l=y}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(y){u=y}});var A=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return A},set:function(y){A=y}});var f=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return f},set:function(y){f=y}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(y){h=y}});var g=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return g},set:function(y){g=y}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},n.getTextDimensions=function(c,l){r.call(this);var u=(l=l||{}).fontSize||this.getFontSize(),A=l.font||this.getFont(),f=l.scaleFactor||this.internal.scaleFactor,h=0,g=0,y=0,w=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var v=l.maxWidth;v>0?typeof c=="string"?c=this.splitTextToSize(c,v):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(C,M){return C.concat(w.splitTextToSize(M,v))},[])):c=Array.isArray(c)?c:[c];for(var S=0;S<c.length;S++)h<(y=this.getStringUnitWidth(c[S],{font:A})*u)&&(h=y);return h!==0&&(g=c.length),{w:h/=f,h:Math.max((g*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/f,0)}},n.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||e;return this.internal.__cell__.lastCell=new a(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=n.cell=function(){var c;c=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var l=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,A=this.internal.__cell__.margins||e,f=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return l.lineNumber!==void 0&&(l.lineNumber===c.lineNumber?(c.x=(l.x||0)+(l.width||0),c.y=l.y||0):l.y+l.height+c.height+A.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=A.top,h&&f&&(this.printHeaderRow(c.lineNumber,!0),c.y+=f[0].height)):c.y=l.y+l.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,t===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-u,c.y+u,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+u,{align:"center",baseline:"top",maxWidth:c.width-u-u}):this.text(c.text,c.x+u,c.y+u,{align:"left",baseline:"top",maxWidth:c.width-u-u})),this.internal.__cell__.lastCell=c,this};n.table=function(c,l,u,A,f){if(r.call(this),!u)throw new Error("No data for PDF table.");var h,g,y,w,v=[],S=[],C=[],M={},F={},D=[],U=[],O=(f=f||{}).autoSize||!1,T=f.printHeaders!==!1,P=f.css&&f.css["font-size"]!==void 0?16*f.css["font-size"]:f.fontSize||12,k=f.margins||Object.assign({width:this.getPageWidth()},e),H=typeof f.padding=="number"?f.padding:3,j=f.headerBackgroundColor||"#c8c8c8",$=f.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=T,this.internal.__cell__.margins=k,this.internal.__cell__.table_font_size=P,this.internal.__cell__.padding=H,this.internal.__cell__.headerBackgroundColor=j,this.internal.__cell__.headerTextColor=$,this.setFontSize(P),A==null)S=v=Object.keys(u[0]),C=v.map(function(){return"left"});else if(Array.isArray(A)&&Cr(A[0])==="object")for(v=A.map(function(xe){return xe.name}),S=A.map(function(xe){return xe.prompt||xe.name||""}),C=A.map(function(xe){return xe.align||"left"}),h=0;h<A.length;h+=1)F[A[h].name]=.7499990551181103*A[h].width;else Array.isArray(A)&&typeof A[0]=="string"&&(S=v=A,C=v.map(function(){return"left"}));if(O||Array.isArray(A)&&typeof A[0]=="string")for(h=0;h<v.length;h+=1){for(M[w=v[h]]=u.map(function(xe){return xe[w]}),this.setFont(void 0,"bold"),D.push(this.getTextDimensions(S[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),g=M[w],this.setFont(void 0,"normal"),y=0;y<g.length;y+=1)D.push(this.getTextDimensions(g[y],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);F[w]=Math.max.apply(null,D)+H+H,D=[]}if(T){var ce={};for(h=0;h<v.length;h+=1)ce[v[h]]={},ce[v[h]].text=S[h],ce[v[h]].align=C[h];var de=o.call(this,ce,F);U=v.map(function(xe){return new a(c,l,F[xe],de,ce[xe].text,void 0,ce[xe].align)}),this.setTableHeaderRow(U),this.printHeaderRow(1,!1)}var fe=A.reduce(function(xe,Pe){return xe[Pe.name]=Pe.align,xe},{});for(h=0;h<u.length;h+=1){"rowStart"in f&&f.rowStart instanceof Function&&f.rowStart({row:h,data:u[h]},this);var ee=o.call(this,u[h],F);for(y=0;y<v.length;y+=1){var Se=u[h][v[y]];"cellStart"in f&&f.cellStart instanceof Function&&f.cellStart({row:h,col:y,data:Se},this),s.call(this,new a(c,l,F[v[y]],ee,Se,h+2,fe[v[y]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=l,this};var o=function(c,l){var u=this.internal.__cell__.padding,A=this.internal.__cell__.table_font_size,f=this.internal.scaleFactor;return Object.keys(c).map(function(h){var g=c[h];return this.splitTextToSize(g.hasOwnProperty("text")?g.text:g,l[h]-u-u)},this).map(function(h){return this.getLineHeightFactor()*h.length*A/f+u+u},this).reduce(function(h,g){return Math.max(h,g)},0)};n.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},n.printHeaderRow=function(c,l){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var A=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(A[0],A[1],A[2],A[3],void 0,-1)}this.setFont(void 0,"bold");for(var f=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){u=this.internal.__cell__.tableHeaderRow[h].clone(),l&&(u.y=this.internal.__cell__.margins.top||0,f.push(u)),u.lineNumber=c;var g=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,u),this.setTextColor(g)}f.length>0&&this.setTableHeaderRow(f),this.setFont(void 0,"normal"),t=!1}})(cn.API);var mD={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},pD=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Y2=fD(pD),gD=[100,200,300,400,500,600,700,800,900],bte=fD(gD);function P_(n){var e=n.family.replace(/"|'/g,"").toLowerCase(),t=(function(a){return mD[a=a||"normal"]?a:"normal"})(n.style),r=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(n.weight),i=(function(a){return typeof Y2[a=a||"normal"]=="number"?a:"normal"})(n.stretch);return{family:e,style:t,weight:r,stretch:i,src:n.src||[],ref:n.ref||{name:e,style:[i,t,r].join(" ")}}}function lk(n,e,t,r){var i;for(i=t;i>=0&&i<e.length;i+=r)if(n[e[i]])return n[e[i]];for(i=t;i>=0&&i<e.length;i-=r)if(n[e[i]])return n[e[i]]}var _te={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},uk={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function dk(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function Ak(n){return n.trimLeft()}function xte(n,e){for(var t=0;t<n.length;){if(n.charAt(t)===e)return[n.substring(0,t),n.substring(t+1)];t+=1}return null}function Mte(n){var e=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return e===null?null:[e[0],n.substring(e[0].length)]}var fh,h1,hk,fk,mk,E_=["times"];function pk(n,e,t,r,i){var a=4,s=vk;switch(i){case cn.API.image_compression.FAST:a=1,s=gk;break;case cn.API.image_compression.MEDIUM:a=6,s=yk;break;case cn.API.image_compression.SLOW:a=9,s=wk}n=(function(c,l,u,A){for(var f,h=c.length/l,g=new Uint8Array(c.length+h),y=[Ste,gk,vk,yk,wk],w=0;w<h;w+=1){var v=w*l,S=c.subarray(v,v+l);if(A)g.set(A(S,u,f),v+w);else{for(var C=y.length,M=[],F=0;F<C;F+=1)M[F]=y[F](S,u,f);var D=Pte(M.concat());g.set(M[D],v+w)}f=S}return g})(n,e,Math.ceil(t*r/8),s);var o=j2(n,{level:a});return cn.API.__addimage__.arrayBufferToBinaryString(o)}function Ste(n){var e=Array.apply([],n);return e.unshift(0),e}function gk(n,e){var t=n.length,r=[];r[0]=1;for(var i=0;i<t;i+=1){var a=n[i-e]||0;r[i+1]=n[i]-a+256&255}return r}function vk(n,e,t){var r=n.length,i=[];i[0]=2;for(var a=0;a<r;a+=1){var s=t&&t[a]||0;i[a+1]=n[a]-s+256&255}return i}function yk(n,e,t){var r=n.length,i=[];i[0]=3;for(var a=0;a<r;a+=1){var s=n[a-e]||0,o=t&&t[a]||0;i[a+1]=n[a]+256-(s+o>>>1)&255}return i}function wk(n,e,t){var r=n.length,i=[];i[0]=4;for(var a=0;a<r;a+=1){var s=Cte(n[a-e]||0,t&&t[a]||0,t&&t[a-e]||0);i[a+1]=n[a]-s+256&255}return i}function Cte(n,e,t){if(n===e&&e===t)return n;var r=Math.abs(e-t),i=Math.abs(n-t),a=Math.abs(n+e-t-t);return r<=i&&r<=a?n:i<=a?e:t}function Pte(n){var e=n.map(function(t){return t.reduce(function(r,i){return r+Math.abs(i)},0)});return e.indexOf(Math.min.apply(null,e))}function B_(n,e,t){var r=e*t,i=Math.floor(r/8),a=16-(r-8*i+t),s=(1<<t)-1;return vD(n,i)>>a&s}function bk(n,e,t,r){var i=t*r,a=Math.floor(i/8),s=16-(i-8*a+r),o=(1<<r)-1,c=(e&o)<<s;(function(l,u,A){if(u+1<l.byteLength)l.setUint16(u,A,!1);else{var f=A>>8&255;l.setUint8(u,f)}})(n,a,vD(n,a)&~(o<<s)&65535|c)}function vD(n,e){return e+1<n.byteLength?n.getUint16(e,!1):n.getUint8(e)<<8}function Ete(n){var e=0;if(n[e++]!==71||n[e++]!==73||n[e++]!==70||n[e++]!==56||(n[e++]+1&253)!=56||n[e++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=n[e++]|n[e++]<<8,r=n[e++]|n[e++]<<8,i=n[e++],a=i>>7,s=1<<1+(7&i);n[e++],n[e++];var o=null,c=null;a&&(o=e,c=s,e+=3*s);var l=!0,u=[],A=0,f=null,h=0,g=null;for(this.width=t,this.height=r;l&&e<n.length;)switch(n[e++]){case 33:switch(n[e++]){case 255:if(n[e]!==11||n[e+1]==78&&n[e+2]==69&&n[e+3]==84&&n[e+4]==83&&n[e+5]==67&&n[e+6]==65&&n[e+7]==80&&n[e+8]==69&&n[e+9]==50&&n[e+10]==46&&n[e+11]==48&&n[e+12]==3&&n[e+13]==1&&n[e+16]==0)e+=14,g=n[e++]|n[e++]<<8,e++;else for(e+=12;;){if(!((k=n[e++])>=0))throw Error("Invalid block size");if(k===0)break;e+=k}break;case 249:if(n[e++]!==4||n[e+4]!==0)throw new Error("Invalid graphics extension block.");var y=n[e++];A=n[e++]|n[e++]<<8,f=n[e++],1&y||(f=null),h=y>>2&7,e++;break;case 254:for(;;){if(!((k=n[e++])>=0))throw Error("Invalid block size");if(k===0)break;e+=k}break;default:throw new Error("Unknown graphic control label: 0x"+n[e-1].toString(16))}break;case 44:var w=n[e++]|n[e++]<<8,v=n[e++]|n[e++]<<8,S=n[e++]|n[e++]<<8,C=n[e++]|n[e++]<<8,M=n[e++],F=M>>6&1,D=1<<1+(7&M),U=o,O=c,T=!1;M>>7&&(T=!0,U=e,O=D,e+=3*D);var P=e;for(e++;;){var k;if(!((k=n[e++])>=0))throw Error("Invalid block size");if(k===0)break;e+=k}u.push({x:w,y:v,width:S,height:C,has_local_palette:T,palette_offset:U,palette_size:O,data_offset:P,data_length:e-P,transparent_index:f,interlaced:!!F,delay:A,disposal:h});break;case 59:l=!1;break;default:throw new Error("Unknown gif block: 0x"+n[e-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return g},this.frameInfo=function(H){if(H<0||H>=u.length)throw new Error("Frame index out of range.");return u[H]},this.decodeAndBlitFrameBGRA=function(H,j){var $=this.frameInfo(H),ce=$.width*$.height;if(ce>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var de=new Uint8Array(ce);_k(n,$.data_offset,de,ce);var fe=$.palette_offset,ee=$.transparent_index;ee===null&&(ee=256);var Se=$.width,xe=t-Se,Pe=Se,V=4*($.y*t+$.x),ae=4*(($.y+$.height)*t+$.x),J=V,z=4*xe;$.interlaced===!0&&(z+=4*t*7);for(var Z=8,le=0,ge=de.length;le<ge;++le){var Me=de[le];if(Pe===0&&(Pe=Se,(J+=z)>=ae&&(z=4*xe+4*t*(Z-1),J=V+(Se+xe)*(Z<<1),Z>>=1)),Me===ee)J+=4;else{var Te=n[fe+3*Me],We=n[fe+3*Me+1],Ee=n[fe+3*Me+2];j[J++]=Ee,j[J++]=We,j[J++]=Te,j[J++]=255}--Pe}},this.decodeAndBlitFrameRGBA=function(H,j){var $=this.frameInfo(H),ce=$.width*$.height;if(ce>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var de=new Uint8Array(ce);_k(n,$.data_offset,de,ce);var fe=$.palette_offset,ee=$.transparent_index;ee===null&&(ee=256);var Se=$.width,xe=t-Se,Pe=Se,V=4*($.y*t+$.x),ae=4*(($.y+$.height)*t+$.x),J=V,z=4*xe;$.interlaced===!0&&(z+=4*t*7);for(var Z=8,le=0,ge=de.length;le<ge;++le){var Me=de[le];if(Pe===0&&(Pe=Se,(J+=z)>=ae&&(z=4*xe+4*t*(Z-1),J=V+(Se+xe)*(Z<<1),Z>>=1)),Me===ee)J+=4;else{var Te=n[fe+3*Me],We=n[fe+3*Me+1],Ee=n[fe+3*Me+2];j[J++]=Te,j[J++]=We,j[J++]=Ee,j[J++]=255}--Pe}}}function _k(n,e,t,r){for(var i=n[e++],a=1<<i,s=a+1,o=s+1,c=i+1,l=(1<<c)-1,u=0,A=0,f=0,h=n[e++],g=new Int32Array(4096),y=null;;){for(;u<16&&h!==0;)A|=n[e++]<<u,u+=8,h===1?h=n[e++]:--h;if(u<c)break;var w=A&l;if(A>>=c,u-=c,w!==a){if(w===s)break;for(var v=w<o?w:y,S=0,C=v;C>a;)C=g[C]>>8,++S;var M=C;if(f+S+(v!==w?1:0)>r)return void Rr.log("Warning, gif stream longer than expected.");t[f++]=M;var F=f+=S;for(v!==w&&(t[f++]=M),C=v;S--;)C=g[C],t[--F]=255&C,C>>=8;y!==null&&o<4096&&(g[o++]=y<<8|M,o>=l+1&&c<12&&(++c,l=l<<1|1)),y=w}else o=s+1,l=(1<<(c=i+1))-1,y=null}return f!==r&&Rr.log("Warning, gif stream shorter than expected."),t}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function T_(n){var e,t,r,i,a,s=Math.floor,o=new Array(64),c=new Array(64),l=new Array(64),u=new Array(64),A=new Array(65535),f=new Array(65535),h=new Array(64),g=new Array(64),y=[],w=0,v=7,S=new Array(64),C=new Array(64),M=new Array(64),F=new Array(256),D=new Array(2048),U=[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],O=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],T=[0,1,2,3,4,5,6,7,8,9,10,11],P=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],k=[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],H=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],j=[0,1,2,3,4,5,6,7,8,9,10,11],$=[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 de(V,ae){for(var J=0,z=0,Z=new Array,le=1;le<=16;le++){for(var ge=1;ge<=V[le];ge++)Z[ae[z]]=[],Z[ae[z]][0]=J,Z[ae[z]][1]=le,z++,J++;J*=2}return Z}function fe(V){for(var ae=V[0],J=V[1]-1;J>=0;)ae&1<<J&&(w|=1<<v),J--,--v<0&&(w==255?(ee(255),ee(0)):ee(w),v=7,w=0)}function ee(V){y.push(V)}function Se(V){ee(V>>8&255),ee(255&V)}function xe(V,ae,J,z,Z){for(var le,ge=Z[0],Me=Z[240],Te=(function(Qe,ot){var se,G,Be,Ke,it,Ve,bt,lt,ct,kt,Je=0;for(ct=0;ct<8;++ct){se=Qe[Je],G=Qe[Je+1],Be=Qe[Je+2],Ke=Qe[Je+3],it=Qe[Je+4],Ve=Qe[Je+5],bt=Qe[Je+6];var Tt=se+(lt=Qe[Je+7]),Pt=se-lt,Ct=G+bt,yt=G-bt,Kt=Be+Ve,_t=Be-Ve,sn=Ke+it,Le=Ke-it,pt=Tt+sn,Ze=Tt-sn,nt=Ct+Kt,At=Ct-Kt;Qe[Je]=pt+nt,Qe[Je+4]=pt-nt;var Mt=.707106781*(At+Ze);Qe[Je+2]=Ze+Mt,Qe[Je+6]=Ze-Mt;var fn=.382683433*((pt=Le+_t)-(At=yt+Pt)),Sn=.5411961*pt+fn,or=1.306562965*At+fn,_n=.707106781*(nt=_t+yt),Vt=Pt+_n,zr=Pt-_n;Qe[Je+5]=zr+Sn,Qe[Je+3]=zr-Sn,Qe[Je+1]=Vt+or,Qe[Je+7]=Vt-or,Je+=8}for(Je=0,ct=0;ct<8;++ct){se=Qe[Je],G=Qe[Je+8],Be=Qe[Je+16],Ke=Qe[Je+24],it=Qe[Je+32],Ve=Qe[Je+40],bt=Qe[Je+48];var ea=se+(lt=Qe[Je+56]),wi=se-lt,Hr=G+bt,Wn=G-bt,Dt=Be+Ve,Fr=Be-Ve,Hi=Ke+it,ta=Ke-it,si=ea+Hi,bi=ea-Hi,_i=Hr+Dt,Xr=Hr-Dt;Qe[Je]=si+_i,Qe[Je+32]=si-_i;var xi=.707106781*(Xr+bi);Qe[Je+16]=bi+xi,Qe[Je+48]=bi-xi;var es=.382683433*((si=ta+Fr)-(Xr=Wn+wi)),na=.5411961*si+es,ts=1.306562965*Xr+es,Ae=.707106781*(_i=Fr+Wn),Ue=wi+Ae,tt=wi-Ae;Qe[Je+40]=tt+na,Qe[Je+24]=tt-na,Qe[Je+8]=Ue+ts,Qe[Je+56]=Ue-ts,Je++}for(ct=0;ct<64;++ct)kt=Qe[ct]*ot[ct],h[ct]=kt>0?kt+.5|0:kt-.5|0;return h})(V,ae),We=0;We<64;++We)g[U[We]]=Te[We];var Ee=g[0]-J;J=g[0],Ee==0?fe(z[0]):(fe(z[f[le=32767+Ee]]),fe(A[le]));for(var Ne=63;Ne>0&&g[Ne]==0;)Ne--;if(Ne==0)return fe(ge),J;for(var ue,ne=1;ne<=Ne;){for(var De=ne;g[ne]==0&&ne<=Ne;)++ne;var je=ne-De;if(je>=16){ue=je>>4;for(var ze=1;ze<=ue;++ze)fe(Me);je&=15}le=32767+g[ne],fe(Z[(je<<4)+f[le]]),fe(A[le]),ne++}return Ne!=63&&fe(ge),J}function Pe(V){V=Math.min(Math.max(V,1),100),a!=V&&((function(ae){for(var J=[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],z=0;z<64;z++){var Z=s((J[z]*ae+50)/100);Z=Math.min(Math.max(Z,1),255),o[U[z]]=Z}for(var le=[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],ge=0;ge<64;ge++){var Me=s((le[ge]*ae+50)/100);Me=Math.min(Math.max(Me,1),255),c[U[ge]]=Me}for(var Te=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],We=0,Ee=0;Ee<8;Ee++)for(var Ne=0;Ne<8;Ne++)l[We]=1/(o[U[We]]*Te[Ee]*Te[Ne]*8),u[We]=1/(c[U[We]]*Te[Ee]*Te[Ne]*8),We++})(V<50?Math.floor(5e3/V):Math.floor(200-2*V)),a=V)}this.encode=function(V,ae){ae&&Pe(ae),y=new Array,w=0,v=7,Se(65496),Se(65504),Se(16),ee(74),ee(70),ee(73),ee(70),ee(0),ee(1),ee(1),ee(0),Se(1),Se(1),ee(0),ee(0),(function(){Se(65499),Se(132),ee(0);for(var G=0;G<64;G++)ee(o[G]);ee(1);for(var Be=0;Be<64;Be++)ee(c[Be])})(),(function(G,Be){Se(65472),Se(17),ee(8),Se(Be),Se(G),ee(3),ee(1),ee(17),ee(0),ee(2),ee(17),ee(1),ee(3),ee(17),ee(1)})(V.width,V.height),(function(){Se(65476),Se(418),ee(0);for(var G=0;G<16;G++)ee(O[G+1]);for(var Be=0;Be<=11;Be++)ee(T[Be]);ee(16);for(var Ke=0;Ke<16;Ke++)ee(P[Ke+1]);for(var it=0;it<=161;it++)ee(k[it]);ee(1);for(var Ve=0;Ve<16;Ve++)ee(H[Ve+1]);for(var bt=0;bt<=11;bt++)ee(j[bt]);ee(17);for(var lt=0;lt<16;lt++)ee($[lt+1]);for(var ct=0;ct<=161;ct++)ee(ce[ct])})(),Se(65498),Se(12),ee(3),ee(1),ee(0),ee(2),ee(17),ee(3),ee(17),ee(0),ee(63),ee(0);var J=0,z=0,Z=0;w=0,v=7,this.encode.displayName="_encode_";for(var le,ge,Me,Te,We,Ee,Ne,ue,ne,De=V.data,je=V.width,ze=V.height,Qe=4*je,ot=0;ot<ze;){for(le=0;le<Qe;){for(We=Qe*ot+le,Ne=-1,ue=0,ne=0;ne<64;ne++)Ee=We+(ue=ne>>3)*Qe+(Ne=4*(7&ne)),ot+ue>=ze&&(Ee-=Qe*(ot+1+ue-ze)),le+Ne>=Qe&&(Ee-=le+Ne-Qe+4),ge=De[Ee++],Me=De[Ee++],Te=De[Ee++],S[ne]=(D[ge]+D[Me+256|0]+D[Te+512|0]>>16)-128,C[ne]=(D[ge+768|0]+D[Me+1024|0]+D[Te+1280|0]>>16)-128,M[ne]=(D[ge+1280|0]+D[Me+1536|0]+D[Te+1792|0]>>16)-128;J=xe(S,l,J,e,r),z=xe(C,u,z,t,i),Z=xe(M,u,Z,t,i),le+=32}ot+=8}if(v>=0){var se=[];se[1]=v+1,se[0]=(1<<v+1)-1,fe(se)}return Se(65497),new Uint8Array(y)},n=n||50,(function(){for(var V=String.fromCharCode,ae=0;ae<256;ae++)F[ae]=V(ae)})(),e=de(O,T),t=de(H,j),r=de(P,k),i=de($,ce),(function(){for(var V=1,ae=2,J=1;J<=15;J++){for(var z=V;z<ae;z++)f[32767+z]=J,A[32767+z]=[],A[32767+z][1]=J,A[32767+z][0]=z;for(var Z=-(ae-1);Z<=-V;Z++)f[32767+Z]=J,A[32767+Z]=[],A[32767+Z][1]=J,A[32767+Z][0]=ae-1+Z;V<<=1,ae<<=1}})(),(function(){for(var V=0;V<256;V++)D[V]=19595*V,D[V+256|0]=38470*V,D[V+512|0]=7471*V+32768,D[V+768|0]=-11059*V,D[V+1024|0]=-21709*V,D[V+1280|0]=32768*V+8421375,D[V+1536|0]=-27439*V,D[V+1792|0]=-5329*V})(),Pe(n)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function lc(n,e){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.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 xk(n){function e(T){if(!T)throw Error("assert :P")}function t(T,P,k){for(var H=0;4>H;H++)if(T[P+H]!=k.charCodeAt(H))return!0;return!1}function r(T,P,k,H,j){for(var $=0;$<j;$++)T[P+$]=k[H+$]}function i(T,P,k,H){for(var j=0;j<H;j++)T[P+j]=k}function a(T){return new Int32Array(T)}function s(T,P){for(var k=[],H=0;H<T;H++)k.push(new P);return k}function o(T,P){var k=[];return(function H(j,$,ce){for(var de=ce[$],fe=0;fe<de&&(j.push(ce.length>$+1?[]:new P),!(ce.length<$+1));fe++)H(j[fe],$+1,ce)})(k,0,T),k}var c=function(){var T=this;function P(b,x){for(var N=1<<x-1>>>0;b&N;)N>>>=1;return N?(b&N-1)+N:b}function k(b,x,N,W,Y){e(!(W%N));do b[x+(W-=N)]=Y;while(0<W)}function H(b,x,N,W,Y){if(e(2328>=Y),512>=Y)var re=a(512);else if((re=a(Y))==null)return 0;return(function(oe,he,pe,be,Fe,et){var _e,Oe,qe=he,dt=1<<pe,Ye=a(16),mt=a(16);for(e(Fe!=0),e(be!=null),e(oe!=null),e(0<pe),Oe=0;Oe<Fe;++Oe){if(15<be[Oe])return 0;++Ye[be[Oe]]}if(Ye[0]==Fe)return 0;for(mt[1]=0,_e=1;15>_e;++_e){if(Ye[_e]>1<<_e)return 0;mt[_e+1]=mt[_e]+Ye[_e]}for(Oe=0;Oe<Fe;++Oe)_e=be[Oe],0<be[Oe]&&(et[mt[_e]++]=Oe);if(mt[15]==1)return(be=new j).g=0,be.value=et[0],k(oe,qe,1,dt,be),dt;var gt,Bt=-1,St=dt-1,un=0,Yt=1,Qn=1,nn=1<<pe;for(Oe=0,_e=1,Fe=2;_e<=pe;++_e,Fe<<=1){if(Yt+=Qn<<=1,0>(Qn-=Ye[_e]))return 0;for(;0<Ye[_e];--Ye[_e])(be=new j).g=_e,be.value=et[Oe++],k(oe,qe+un,Fe,nn,be),un=P(un,_e)}for(_e=pe+1,Fe=2;15>=_e;++_e,Fe<<=1){if(Yt+=Qn<<=1,0>(Qn-=Ye[_e]))return 0;for(;0<Ye[_e];--Ye[_e]){if(be=new j,(un&St)!=Bt){for(qe+=nn,gt=1<<(Bt=_e)-pe;15>Bt&&!(0>=(gt-=Ye[Bt]));)++Bt,gt<<=1;dt+=nn=1<<(gt=Bt-pe),oe[he+(Bt=un&St)].g=gt+pe,oe[he+Bt].value=qe-he-Bt}be.g=_e-pe,be.value=et[Oe++],k(oe,qe+(un>>pe),Fe,nn,be),un=P(un,_e)}}return Yt!=2*mt[15]-1?0:dt})(b,x,N,W,Y,re)}function j(){this.value=this.g=0}function $(){this.value=this.g=0}function ce(){this.G=s(5,j),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(tc,$)}function de(b,x,N,W){e(b!=null),e(x!=null),e(2147483648>W),b.Ca=254,b.I=0,b.b=-8,b.Ka=0,b.oa=x,b.pa=N,b.Jd=x,b.Yc=N+W,b.Zc=4<=W?N+W-4+1:N,ge(b)}function fe(b,x){for(var N=0;0<x--;)N|=Te(b,128)<<x;return N}function ee(b,x){var N=fe(b,x);return Me(b)?-N:N}function Se(b,x,N,W){var Y,re=0;for(e(b!=null),e(x!=null),e(4294967288>W),b.Sb=W,b.Ra=0,b.u=0,b.h=0,4<W&&(W=4),Y=0;Y<W;++Y)re+=x[N+Y]<<8*Y;b.Ra=re,b.bb=W,b.oa=x,b.pa=N}function xe(b){for(;8<=b.u&&b.bb<b.Sb;)b.Ra>>>=8,b.Ra+=b.oa[b.pa+b.bb]<<Di-8>>>0,++b.bb,b.u-=8;z(b)&&(b.h=1,b.u=0)}function Pe(b,x){if(e(0<=x),!b.h&&x<=ks){var N=J(b)&pl[x];return b.u+=x,xe(b),N}return b.h=1,b.u=0}function V(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function ae(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function J(b){return b.Ra>>>(b.u&Di-1)>>>0}function z(b){return e(b.bb<=b.Sb),b.h||b.bb==b.Sb&&b.u>Di}function Z(b,x){b.u=x,b.h=z(b)}function le(b){b.u>=Na&&(e(b.u>=Na),xe(b))}function ge(b){e(b!=null&&b.oa!=null),b.pa<b.Zc?(b.I=(b.oa[b.pa++]|b.I<<8)>>>0,b.b+=8):(e(b!=null&&b.oa!=null),b.pa<b.Yc?(b.b+=8,b.I=b.oa[b.pa++]|b.I<<8):b.Ka?b.b=0:(b.I<<=8,b.b+=8,b.Ka=1))}function Me(b){return fe(b,1)}function Te(b,x){var N=b.Ca;0>b.b&&ge(b);var W=b.b,Y=N*x>>>8,re=(b.I>>>W>Y)+0;for(re?(N-=Y,b.I-=Y+1<<W>>>0):N=Y+1,W=N,Y=0;256<=W;)Y+=8,W>>=8;return W=7^Y+Oc[W],b.b-=W,b.Ca=(N<<W)-1,re}function We(b,x,N){b[x+0]=N>>24&255,b[x+1]=N>>16&255,b[x+2]=N>>8&255,b[x+3]=255&N}function Ee(b,x){return b[x+0]|b[x+1]<<8}function Ne(b,x){return Ee(b,x)|b[x+2]<<16}function ue(b,x){return Ee(b,x)|Ee(b,x+2)<<16}function ne(b,x){var N=1<<x;return e(b!=null),e(0<x),b.X=a(N),b.X==null?0:(b.Mb=32-x,b.Xa=x,1)}function De(b,x){e(b!=null),e(x!=null),e(b.Xa==x.Xa),r(x.X,0,b.X,0,1<<x.Xa)}function je(){this.X=[],this.Xa=this.Mb=0}function ze(b,x,N,W){e(N!=null),e(W!=null);var Y=N[0],re=W[0];return Y==0&&(Y=(b*re+x/2)/x),re==0&&(re=(x*Y+b/2)/b),0>=Y||0>=re?0:(N[0]=Y,W[0]=re,1)}function Qe(b,x){return b+(1<<x)-1>>>x}function ot(b,x){return((4278255360&b)+(4278255360&x)>>>0&4278255360)+((16711935&b)+(16711935&x)>>>0&16711935)>>>0}function se(b,x){T[x]=function(N,W,Y,re,oe,he,pe){var be;for(be=0;be<oe;++be){var Fe=T[b](he[pe+be-1],Y,re+be);he[pe+be]=ot(N[W+be],Fe)}}}function G(){this.ud=this.hd=this.jd=0}function Be(b,x){return((4278124286&(b^x))>>>1)+(b&x)>>>0}function Ke(b){return 0<=b&&256>b?b:0>b?0:255<b?255:void 0}function it(b,x){return Ke(b+(b-x+.5>>1))}function Ve(b,x,N){return Math.abs(x-N)-Math.abs(b-N)}function bt(b,x,N,W,Y,re,oe){for(W=re[oe-1],N=0;N<Y;++N)re[oe+N]=W=ot(b[x+N],W)}function lt(b,x,N,W,Y){var re;for(re=0;re<N;++re){var oe=b[x+re],he=oe>>8&255,pe=16711935&(pe=(pe=16711935&oe)+((he<<16)+he));W[Y+re]=(4278255360&oe)+pe>>>0}}function ct(b,x){x.jd=255&b,x.hd=b>>8&255,x.ud=b>>16&255}function kt(b,x,N,W,Y,re){var oe;for(oe=0;oe<W;++oe){var he=x[N+oe],pe=he>>>8,be=he,Fe=255&(Fe=(Fe=he>>>16)+((b.jd<<24>>24)*(pe<<24>>24)>>>5));be=255&(be=(be+=(b.hd<<24>>24)*(pe<<24>>24)>>>5)+((b.ud<<24>>24)*(Fe<<24>>24)>>>5)),Y[re+oe]=(4278255360&he)+(Fe<<16)+be}}function Je(b,x,N,W,Y){T[x]=function(re,oe,he,pe,be,Fe,et,_e,Oe){for(pe=et;pe<_e;++pe)for(et=0;et<Oe;++et)be[Fe++]=Y(he[W(re[oe++])])},T[b]=function(re,oe,he,pe,be,Fe,et){var _e=8>>re.b,Oe=re.Ea,qe=re.K[0],dt=re.w;if(8>_e)for(re=(1<<re.b)-1,dt=(1<<_e)-1;oe<he;++oe){var Ye,mt=0;for(Ye=0;Ye<Oe;++Ye)Ye&re||(mt=W(pe[be++])),Fe[et++]=Y(qe[mt&dt]),mt>>=_e}else T["VP8LMapColor"+N](pe,be,qe,dt,Fe,et,oe,he,Oe)}}function Tt(b,x,N,W,Y){for(N=x+N;x<N;){var re=b[x++];W[Y++]=re>>16&255,W[Y++]=re>>8&255,W[Y++]=255&re}}function Pt(b,x,N,W,Y){for(N=x+N;x<N;){var re=b[x++];W[Y++]=re>>16&255,W[Y++]=re>>8&255,W[Y++]=255&re,W[Y++]=re>>24&255}}function Ct(b,x,N,W,Y){for(N=x+N;x<N;){var re=(oe=b[x++])>>16&240|oe>>12&15,oe=240&oe|oe>>28&15;W[Y++]=re,W[Y++]=oe}}function yt(b,x,N,W,Y){for(N=x+N;x<N;){var re=(oe=b[x++])>>16&248|oe>>13&7,oe=oe>>5&224|oe>>3&31;W[Y++]=re,W[Y++]=oe}}function Kt(b,x,N,W,Y){for(N=x+N;x<N;){var re=b[x++];W[Y++]=255&re,W[Y++]=re>>8&255,W[Y++]=re>>16&255}}function _t(b,x,N,W,Y,re){if(re==0)for(N=x+N;x<N;)We(W,((re=b[x++])[0]>>24|re[1]>>8&65280|re[2]<<8&16711680|re[3]<<24)>>>0),Y+=32;else r(W,Y,b,x,N)}function sn(b,x){T[x][0]=T[b+"0"],T[x][1]=T[b+"1"],T[x][2]=T[b+"2"],T[x][3]=T[b+"3"],T[x][4]=T[b+"4"],T[x][5]=T[b+"5"],T[x][6]=T[b+"6"],T[x][7]=T[b+"7"],T[x][8]=T[b+"8"],T[x][9]=T[b+"9"],T[x][10]=T[b+"10"],T[x][11]=T[b+"11"],T[x][12]=T[b+"12"],T[x][13]=T[b+"13"],T[x][14]=T[b+"0"],T[x][15]=T[b+"0"]}function Le(b){return b==ih||b==ah||b==sh||b==d}function pt(){this.eb=[],this.size=this.A=this.fb=0}function Ze(){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 nt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new pt,this.f.kb=new Ze,this.sd=null}function At(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Mt(){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 fn(b){return alert("todo:WebPSamplerProcessPlane"),b.T}function Sn(b,x){var N=b.T,W=x.ba.f.RGBA,Y=W.eb,re=W.fb+b.ka*W.A,oe=Ca[x.ba.S],he=b.y,pe=b.O,be=b.f,Fe=b.N,et=b.ea,_e=b.W,Oe=x.cc,qe=x.dc,dt=x.Mc,Ye=x.Nc,mt=b.ka,gt=b.ka+b.T,Bt=b.U,St=Bt+1>>1;for(mt==0?oe(he,pe,null,null,be,Fe,et,_e,be,Fe,et,_e,Y,re,null,null,Bt):(oe(x.ec,x.fc,he,pe,Oe,qe,dt,Ye,be,Fe,et,_e,Y,re-W.A,Y,re,Bt),++N);mt+2<gt;mt+=2)Oe=be,qe=Fe,dt=et,Ye=_e,Fe+=b.Rc,_e+=b.Rc,re+=2*W.A,oe(he,(pe+=2*b.fa)-b.fa,he,pe,Oe,qe,dt,Ye,be,Fe,et,_e,Y,re-W.A,Y,re,Bt);return pe+=b.fa,b.j+gt<b.o?(r(x.ec,x.fc,he,pe,Bt),r(x.cc,x.dc,be,Fe,St),r(x.Mc,x.Nc,et,_e,St),N--):1&gt||oe(he,pe,null,null,be,Fe,et,_e,be,Fe,et,_e,Y,re+W.A,null,null,Bt),N}function or(b,x,N){var W=b.F,Y=[b.J];if(W!=null){var re=b.U,oe=x.ba.S,he=oe==bd||oe==sh;x=x.ba.f.RGBA;var pe=[0],be=b.ka;pe[0]=b.T,b.Kb&&(be==0?--pe[0]:(--be,Y[0]-=b.width),b.j+b.ka+b.T==b.o&&(pe[0]=b.o-b.j-be));var Fe=x.eb;be=x.fb+be*x.A,b=jf(W,Y[0],b.width,re,pe,Fe,be+(he?0:3),x.A),e(N==pe),b&&Le(oe)&&ko(Fe,be,he,re,pe,x.A)}return 0}function _n(b){var x=b.ma,N=x.ba.S,W=11>N,Y=N==yd||N==wd||N==bd||N==rh||N==12||Le(N);if(x.memory=null,x.Ib=null,x.Jb=null,x.Nd=null,!Ts(x.Oa,b,Y?11:12))return 0;if(Y&&Le(N)&&rs(),b.da)alert("todo:use_scaling");else{if(W){if(x.Ib=fn,b.Kb){if(N=b.U+1>>1,x.memory=a(b.U+2*N),x.memory==null)return 0;x.ec=x.memory,x.fc=0,x.cc=x.ec,x.dc=x.fc+b.U,x.Mc=x.cc,x.Nc=x.dc+N,x.Ib=Sn,rs()}}else alert("todo:EmitYUV");Y&&(x.Jb=or,W&&Ar())}if(W&&!cE){for(b=0;256>b;++b)Pj[b]=89858*(b-128)+Kg>>Gg,Tj[b]=-22014*(b-128)+Kg,Bj[b]=-45773*(b-128),Ej[b]=113618*(b-128)+Kg>>Gg;for(b=Xf;b<n0;++b)x=76283*(b-16)+Kg>>Gg,kj[b-Xf]=qt(x,255),Ij[b-Xf]=qt(x+8>>4,15);cE=1}return 1}function Vt(b){var x=b.ma,N=b.U,W=b.T;return e(!(1&b.ka)),0>=N||0>=W?0:(N=x.Ib(b,x),x.Jb!=null&&x.Jb(b,x,N),x.Dc+=N,1)}function zr(b){b.ma.memory=null}function ea(b,x,N,W){return Pe(b,8)!=47?0:(x[0]=Pe(b,14)+1,N[0]=Pe(b,14)+1,W[0]=Pe(b,1),Pe(b,3)!=0?0:!b.h)}function wi(b,x){if(4>b)return b+1;var N=b-2>>1;return(2+(1&b)<<N)+Pe(x,N)+1}function Hr(b,x){return 120<x?x-120:1<=(N=((N=Ie[x-1])>>4)*b+(8-(15&N)))?N:1;var N}function Wn(b,x,N){var W=J(N),Y=b[x+=255&W].g-8;return 0<Y&&(Z(N,N.u+8),W=J(N),x+=b[x].value,x+=W&(1<<Y)-1),Z(N,N.u+b[x].g),b[x].value}function Dt(b,x,N){return N.g+=b.g,N.value+=b.value<<x>>>0,e(8>=N.g),b.g}function Fr(b,x,N){var W=b.xc;return e((x=W==0?0:b.vc[b.md*(N>>W)+(x>>W)])<b.Wb),b.Ya[x]}function Hi(b,x,N,W){var Y=b.ab,re=b.c*x,oe=b.C;x=oe+x;var he=N,pe=W;for(W=b.Ta,N=b.Ua;0<Y--;){var be=b.gc[Y],Fe=oe,et=x,_e=he,Oe=pe,qe=(pe=W,he=N,be.Ea);switch(e(Fe<et),e(et<=be.nc),be.hc){case 2:ou(_e,Oe,(et-Fe)*qe,pe,he);break;case 0:var dt=Fe,Ye=et,mt=pe,gt=he,Bt=(nn=be).Ea;dt==0&&(Hc(_e,Oe,null,null,1,mt,gt),bt(_e,Oe+1,0,0,Bt-1,mt,gt+1),Oe+=Bt,gt+=Bt,++dt);for(var St=1<<nn.b,un=St-1,Yt=Qe(Bt,nn.b),Qn=nn.K,nn=nn.w+(dt>>nn.b)*Yt;dt<Ye;){var Yn=Qn,Wi=nn,$n=1;for(oa(_e,Oe,mt,gt-Bt,1,mt,gt);$n<Bt;){var rn=($n&~un)+St;rn>Bt&&(rn=Bt),(0,Ls[Yn[Wi++]>>8&15])(_e,Oe+ +$n,mt,gt+$n-Bt,rn-$n,mt,gt+$n),$n=rn}Oe+=Bt,gt+=Bt,++dt&un||(nn+=Yt)}et!=be.nc&&r(pe,he-qe,pe,he+(et-Fe-1)*qe,qe);break;case 1:for(qe=_e,Ye=Oe,Bt=(_e=be.Ea)-(gt=_e&~(mt=(Oe=1<<be.b)-1)),dt=Qe(_e,be.b),St=be.K,be=be.w+(Fe>>be.b)*dt;Fe<et;){for(un=St,Yt=be,Qn=new G,nn=Ye+gt,Yn=Ye+_e;Ye<nn;)ct(un[Yt++],Qn),nc(Qn,qe,Ye,Oe,pe,he),Ye+=Oe,he+=Oe;Ye<Yn&&(ct(un[Yt++],Qn),nc(Qn,qe,Ye,Bt,pe,he),Ye+=Bt,he+=Bt),++Fe&mt||(be+=dt)}break;case 3:if(_e==pe&&Oe==he&&0<be.b){for(Ye=pe,_e=qe=he+(et-Fe)*qe-(gt=(et-Fe)*Qe(be.Ea,be.b)),Oe=pe,mt=he,dt=[],gt=(Bt=gt)-1;0<=gt;--gt)dt[gt]=Oe[mt+gt];for(gt=Bt-1;0<=gt;--gt)Ye[_e+gt]=dt[gt];Is(be,Fe,et,pe,qe,pe,he)}else Is(be,Fe,et,_e,Oe,pe,he)}he=W,pe=N}pe!=N&&r(W,N,he,pe,re)}function ta(b,x){var N=b.V,W=b.Ba+b.c*b.C,Y=x-b.C;if(e(x<=b.l.o),e(16>=Y),0<Y){var re=b.l,oe=b.Ta,he=b.Ua,pe=re.width;if(Hi(b,Y,N,W),Y=he=[he],e((N=b.C)<(W=x)),e(re.v<re.va),W>re.o&&(W=re.o),N<re.j){var be=re.j-N;N=re.j,Y[0]+=be*pe}if(N>=W?N=0:(Y[0]+=4*re.v,re.ka=N-re.j,re.U=re.va-re.v,re.T=W-N,N=1),N){if(he=he[0],11>(N=b.ca).S){var Fe=N.f.RGBA,et=(W=N.S,Y=re.U,re=re.T,be=Fe.eb,Fe.A),_e=re;for(Fe=Fe.fb+b.Ma*Fe.A;0<_e--;){var Oe=oe,qe=he,dt=Y,Ye=be,mt=Fe;switch(W){case nh:Wc(Oe,qe,dt,Ye,mt);break;case yd:gl(Oe,qe,dt,Ye,mt);break;case ih:gl(Oe,qe,dt,Ye,mt),ko(Ye,mt,0,dt,1,0);break;case Gf:Eo(Oe,qe,dt,Ye,mt);break;case wd:_t(Oe,qe,dt,Ye,mt,1);break;case ah:_t(Oe,qe,dt,Ye,mt,1),ko(Ye,mt,0,dt,1,0);break;case bd:_t(Oe,qe,dt,Ye,mt,0);break;case sh:_t(Oe,qe,dt,Ye,mt,0),ko(Ye,mt,1,dt,1,0);break;case rh:rc(Oe,qe,dt,Ye,mt);break;case d:rc(Oe,qe,dt,Ye,mt),$f(Ye,mt,dt,1,0);break;case jg:Fs(Oe,qe,dt,Ye,mt);break;default:e(0)}he+=pe,Fe+=et}b.Ma+=re}else alert("todo:EmitRescaledRowsYUVA");e(b.Ma<=N.height)}}b.C=x,e(b.C<=b.i)}function si(b){var x;if(0<b.ua)return 0;for(x=0;x<b.Wb;++x){var N=b.Ya[x].G,W=b.Ya[x].H;if(0<N[1][W[1]+0].g||0<N[2][W[2]+0].g||0<N[3][W[3]+0].g)return 0}return 1}function bi(b,x,N,W,Y,re){if(b.Z!=0){var oe=b.qd,he=b.rd;for(e(br[b.Z]!=null);x<N;++x)br[b.Z](oe,he,W,Y,W,Y,re),oe=W,he=Y,Y+=re;b.qd=oe,b.rd=he}}function _i(b,x){var N=b.l.ma,W=N.Z==0||N.Z==1?b.l.j:b.C;if(W=b.C<W?W:b.C,e(x<=b.l.o),x>W){var Y=b.l.width,re=N.ca,oe=N.tb+Y*W,he=b.V,pe=b.Ba+b.c*W,be=b.gc;e(b.ab==1),e(be[0].hc==3),eo(be[0],W,x,he,pe,re,oe),bi(N,W,x,re,oe,Y)}b.C=b.Ma=x}function Xr(b,x,N,W,Y,re,oe){var he=b.$/W,pe=b.$%W,be=b.m,Fe=b.s,et=N+b.$,_e=et;Y=N+W*Y;var Oe=N+W*re,qe=280+Fe.ua,dt=b.Pb?he:16777216,Ye=0<Fe.ua?Fe.Wa:null,mt=Fe.wc,gt=et<Oe?Fr(Fe,pe,he):null;e(b.C<re),e(Oe<=Y);var Bt=!1;e:for(;;){for(;Bt||et<Oe;){var St=0;if(he>=dt){var un=et-N;e((dt=b).Pb),dt.wd=dt.m,dt.xd=un,0<dt.s.ua&&De(dt.s.Wa,dt.s.vb),dt=he+at}if(pe&mt||(gt=Fr(Fe,pe,he)),e(gt!=null),gt.Qb&&(x[et]=gt.qb,Bt=!0),!Bt)if(le(be),gt.jc){St=be,un=x;var Yt=et,Qn=gt.pd[J(St)&tc-1];e(gt.jc),256>Qn.g?(Z(St,St.u+Qn.g),un[Yt]=Qn.value,St=0):(Z(St,St.u+Qn.g-256),e(256<=Qn.value),St=Qn.value),St==0&&(Bt=!0)}else St=Wn(gt.G[0],gt.H[0],be);if(be.h)break;if(Bt||256>St){if(!Bt)if(gt.nd)x[et]=(gt.qb|St<<8)>>>0;else{if(le(be),Bt=Wn(gt.G[1],gt.H[1],be),le(be),un=Wn(gt.G[2],gt.H[2],be),Yt=Wn(gt.G[3],gt.H[3],be),be.h)break;x[et]=(Yt<<24|Bt<<16|St<<8|un)>>>0}if(Bt=!1,++et,++pe>=W&&(pe=0,++he,oe!=null&&he<=re&&!(he%16)&&oe(b,he),Ye!=null))for(;_e<et;)St=x[_e++],Ye.X[(506832829*St&4294967295)>>>Ye.Mb]=St}else if(280>St){if(St=wi(St-256,be),un=Wn(gt.G[4],gt.H[4],be),le(be),un=Hr(W,un=wi(un,be)),be.h)break;if(et-N<un||Y-et<St)break e;for(Yt=0;Yt<St;++Yt)x[et+Yt]=x[et+Yt-un];for(et+=St,pe+=St;pe>=W;)pe-=W,++he,oe!=null&&he<=re&&!(he%16)&&oe(b,he);if(e(et<=Y),pe&mt&&(gt=Fr(Fe,pe,he)),Ye!=null)for(;_e<et;)St=x[_e++],Ye.X[(506832829*St&4294967295)>>>Ye.Mb]=St}else{if(!(St<qe))break e;for(Bt=St-280,e(Ye!=null);_e<et;)St=x[_e++],Ye.X[(506832829*St&4294967295)>>>Ye.Mb]=St;St=et,e(!(Bt>>>(un=Ye).Xa)),x[St]=un.X[Bt],Bt=!0}Bt||e(be.h==z(be))}if(b.Pb&&be.h&&et<Y)e(b.m.h),b.a=5,b.m=b.wd,b.$=b.xd,0<b.s.ua&&De(b.s.vb,b.s.Wa);else{if(be.h)break e;oe!=null&&oe(b,he>re?re:he),b.a=0,b.$=et-N}return 1}return b.a=3,0}function xi(b){e(b!=null),b.vc=null,b.yc=null,b.Ya=null;var x=b.Wa;x!=null&&(x.X=null),b.vb=null,e(b!=null)}function es(){var b=new Zt;return b==null?null:(b.a=0,b.xb=Kf,sn("Predictor","VP8LPredictors"),sn("Predictor","VP8LPredictors_C"),sn("PredictorAdd","VP8LPredictorsAdd"),sn("PredictorAdd","VP8LPredictorsAdd_C"),ou=lt,nc=kt,Wc=Tt,gl=Pt,rc=Ct,Fs=yt,Eo=Kt,T.VP8LMapColor32b=ui,T.VP8LMapColor8b=is,b)}function na(b,x,N,W,Y){var re=1,oe=[b],he=[x],pe=W.m,be=W.s,Fe=null,et=0;e:for(;;){if(N)for(;re&&Pe(pe,1);){var _e=oe,Oe=he,qe=W,dt=1,Ye=qe.m,mt=qe.gc[qe.ab],gt=Pe(Ye,2);if(qe.Oc&1<<gt)re=0;else{switch(qe.Oc|=1<<gt,mt.hc=gt,mt.Ea=_e[0],mt.nc=Oe[0],mt.K=[null],++qe.ab,e(4>=qe.ab),gt){case 0:case 1:mt.b=Pe(Ye,3)+2,dt=na(Qe(mt.Ea,mt.b),Qe(mt.nc,mt.b),0,qe,mt.K),mt.K=mt.K[0];break;case 3:var Bt,St=Pe(Ye,8)+1,un=16<St?0:4<St?1:2<St?2:3;if(_e[0]=Qe(mt.Ea,un),mt.b=un,Bt=dt=na(St,1,0,qe,mt.K)){var Yt,Qn=St,nn=mt,Yn=1<<(8>>nn.b),Wi=a(Yn);if(Wi==null)Bt=0;else{var $n=nn.K[0],rn=nn.w;for(Wi[0]=nn.K[0][0],Yt=1;Yt<1*Qn;++Yt)Wi[Yt]=ot($n[rn+Yt],Wi[Yt-1]);for(;Yt<4*Yn;++Yt)Wi[Yt]=0;nn.K[0]=null,nn.K[0]=Wi,Bt=1}}dt=Bt;break;case 2:break;default:e(0)}re=dt}}if(oe=oe[0],he=he[0],re&&Pe(pe,1)&&!(re=1<=(et=Pe(pe,4))&&11>=et)){W.a=3;break e}var Ht;if(Ht=re)t:{var Si,Nn,tr,Vr=W,Pa=oe,ss=he,di=et,Ua=N,os=Vr.m,Qi=Vr.s,rr=[null],_r=1,Ai=0,xr=Xe[di];n:for(;;){if(Ua&&Pe(os,1)){var Ea=Pe(os,3)+2,sc=Qe(Pa,Ea),Ci=Qe(ss,Ea),Rs=sc*Ci;if(!na(sc,Ci,0,Vr,rr))break n;for(rr=rr[0],Qi.xc=Ea,Si=0;Si<Rs;++Si){var Dr=rr[Si]>>8&65535;rr[Si]=Dr,Dr>=_r&&(_r=Dr+1)}}if(os.h)break n;for(Nn=0;5>Nn;++Nn){var $i=B[Nn];!Nn&&0<di&&($i+=1<<di),Ai<$i&&(Ai=$i)}var ro=s(_r*xr,j),cs=_r,io=s(cs,ce);if(io==null)var ao=null;else e(65536>=cs),ao=io;var Us=a(Ai);if(ao==null||Us==null||ro==null){Vr.a=1;break n}var so=ro;for(Si=tr=0;Si<_r;++Si){var Wr=ao[Si],oo=Wr.G,oc=Wr.H,_d=0,vl=1,Ba=0;for(Nn=0;5>Nn;++Nn){$i=B[Nn],oo[Nn]=so,oc[Nn]=tr,!Nn&&0<di&&($i+=1<<di);i:{var Xg,r0=$i,Yg=Vr,Yf=Us,Nj=so,Dj=tr,i0=0,Au=Yg.m,Rj=Pe(Au,1);if(i(Yf,0,0,r0),Rj){var Uj=Pe(Au,1)+1,Oj=Pe(Au,1),dE=Pe(Au,Oj==0?1:8);Yf[dE]=1,Uj==2&&(Yf[dE=Pe(Au,8)]=1);var Jg=1}else{var AE=a(19),hE=Pe(Au,4)+4;if(19<hE){Yg.a=3;var Zg=0;break i}for(Xg=0;Xg<hE;++Xg)AE[ie[Xg]]=Pe(Au,3);var a0=void 0,Jf=void 0,fE=Yg,Hj=AE,e1=r0,mE=Yf,s0=0,hu=fE.m,pE=8,gE=s(128,j);r:for(;H(gE,0,7,Hj,19);){if(Pe(hu,1)){var Wj=2+2*Pe(hu,3);if((a0=2+Pe(hu,Wj))>e1)break r}else a0=e1;for(Jf=0;Jf<e1&&a0--;){le(hu);var vE=gE[0+(127&J(hu))];Z(hu,hu.u+vE.g);var ch=vE.value;if(16>ch)mE[Jf++]=ch,ch!=0&&(pE=ch);else{var Qj=ch==16,yE=ch-16,$j=_[yE],wE=Pe(hu,m[yE])+$j;if(Jf+wE>e1)break r;for(var jj=Qj?pE:0;0<wE--;)mE[Jf++]=jj}}s0=1;break r}s0||(fE.a=3),Jg=s0}(Jg=Jg&&!Au.h)&&(i0=H(Nj,Dj,8,Yf,r0)),Jg&&i0!=0?Zg=i0:(Yg.a=3,Zg=0)}if(Zg==0)break n;if(vl&&Q[Nn]==1&&(vl=so[tr].g==0),_d+=so[tr].g,tr+=Zg,3>=Nn){var Zf,o0=Us[0];for(Zf=1;Zf<$i;++Zf)Us[Zf]>o0&&(o0=Us[Zf]);Ba+=o0}}if(Wr.nd=vl,Wr.Qb=0,vl&&(Wr.qb=(oo[3][oc[3]+0].value<<24|oo[1][oc[1]+0].value<<16|oo[2][oc[2]+0].value)>>>0,_d==0&&256>oo[0][oc[0]+0].value&&(Wr.Qb=1,Wr.qb+=oo[0][oc[0]+0].value<<8)),Wr.jc=!Wr.Qb&&6>Ba,Wr.jc){var t1,yl=Wr;for(t1=0;t1<tc;++t1){var fu=t1,mu=yl.pd[fu],n1=yl.G[0][yl.H[0]+fu];256<=n1.value?(mu.g=n1.g+256,mu.value=n1.value):(mu.g=0,mu.value=0,fu>>=Dt(n1,8,mu),fu>>=Dt(yl.G[1][yl.H[1]+fu],16,mu),fu>>=Dt(yl.G[2][yl.H[2]+fu],0,mu),Dt(yl.G[3][yl.H[3]+fu],24,mu))}}}Qi.vc=rr,Qi.Wb=_r,Qi.Ya=ao,Qi.yc=ro,Ht=1;break t}Ht=0}if(!(re=Ht)){W.a=3;break e}if(0<et){if(be.ua=1<<et,!ne(be.Wa,et)){W.a=1,re=0;break e}}else be.ua=0;var c0=W,bE=oe,zj=he,l0=c0.s,u0=l0.xc;if(c0.c=bE,c0.i=zj,l0.md=Qe(bE,u0),l0.wc=u0==0?-1:(1<<u0)-1,N){W.xb=Zb;break e}if((Fe=a(oe*he))==null){W.a=1,re=0;break e}re=(re=Xr(W,Fe,0,oe,he,he,null))&&!pe.h;break e}return re?(Y!=null?Y[0]=Fe:(e(Fe==null),e(N)),W.$=0,N||xi(be)):xi(be),re}function ts(b,x){var N=b.c*b.i,W=N+x+16*x;return e(b.c<=x),b.V=a(W),b.V==null?(b.Ta=null,b.Ua=0,b.a=1,0):(b.Ta=b.V,b.Ua=b.Ba+N+x,1)}function Ae(b,x){var N=b.C,W=x-N,Y=b.V,re=b.Ba+b.c*N;for(e(x<=b.l.o);0<W;){var oe=16<W?16:W,he=b.l.ma,pe=b.l.width,be=pe*oe,Fe=he.ca,et=he.tb+pe*N,_e=b.Ta,Oe=b.Ua;Hi(b,oe,Y,re),Qg(_e,Oe,Fe,et,be),bi(he,N,N+oe,Fe,et,pe),W-=oe,Y+=oe*b.c,N+=oe}e(N==x),b.C=b.Ma=x}function Ue(){this.ub=this.yd=this.td=this.Rb=0}function tt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function rt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function $e(){this.Yb=(function(){var b=[];return(function x(N,W,Y){for(var re=Y[W],oe=0;oe<re&&(N.push(Y.length>W+1?[]:0),!(Y.length<W+1));oe++)x(N[oe],W+1,Y)})(b,0,[3,11]),b})()}function Et(){this.jb=a(3),this.Wc=o([4,8],$e),this.Xc=o([4,17],$e)}function Ut(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Rt(){this.ld=this.La=this.dd=this.tc=0}function zt(){this.Na=this.la=0}function hn(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ln(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function en(){this.uc=this.M=this.Nb=0,this.wa=Array(new Rt),this.Y=0,this.ya=Array(new ln),this.aa=0,this.l=new mn}function In(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Ln(){this.cb=this.a=0,this.sc="",this.m=new V,this.Od=new Ue,this.Kc=new tt,this.ed=new Ut,this.Qa=new rt,this.Ic=this.$c=this.Aa=0,this.D=new en,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,V),this.ia=0,this.pb=s(4,hn),this.Pa=new Et,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new In),this.Hd=0,this.rb=Array(new zt),this.sb=0,this.wa=Array(new Rt),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 ln),this.L=this.aa=0,this.gd=o([4,2],Rt),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 qt(b,x){return 0>b?0:b>x?x:b}function mn(){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 Fn(){var b=new Ln;return b!=null&&(b.a=0,b.sc="OK",b.cb=0,b.Xb=0,pn||(pn=on)),b}function Ot(b,x,N){return b.a==0&&(b.a=x,b.sc=N,b.cb=0),0}function vr(b,x,N){return 3<=N&&b[x+0]==157&&b[x+1]==1&&b[x+2]==42}function Cn(b,x){if(b==null)return 0;if(b.a=0,b.sc="OK",x==null)return Ot(b,2,"null VP8Io passed to VP8GetHeaders()");var N=x.data,W=x.w,Y=x.ha;if(4>Y)return Ot(b,7,"Truncated header.");var re=N[W+0]|N[W+1]<<8|N[W+2]<<16,oe=b.Od;if(oe.Rb=!(1&re),oe.td=re>>1&7,oe.yd=re>>4&1,oe.ub=re>>5,3<oe.td)return Ot(b,3,"Incorrect keyframe parameters.");if(!oe.yd)return Ot(b,4,"Frame not displayable.");W+=3,Y-=3;var he=b.Kc;if(oe.Rb){if(7>Y)return Ot(b,7,"cannot parse picture header");if(!vr(N,W,Y))return Ot(b,3,"Bad code word");he.c=16383&(N[W+4]<<8|N[W+3]),he.Td=N[W+4]>>6,he.i=16383&(N[W+6]<<8|N[W+5]),he.Ud=N[W+6]>>6,W+=7,Y-=7,b.za=he.c+15>>4,b.Ub=he.i+15>>4,x.width=he.c,x.height=he.i,x.Da=0,x.j=0,x.v=0,x.va=x.width,x.o=x.height,x.da=0,x.ib=x.width,x.hb=x.height,x.U=x.width,x.T=x.height,i((re=b.Pa).jb,0,255,re.jb.length),e((re=b.Qa)!=null),re.Cb=0,re.Bb=0,re.Fb=1,i(re.Zb,0,0,re.Zb.length),i(re.Lb,0,0,re.Lb)}if(oe.ub>Y)return Ot(b,7,"bad partition length");de(re=b.m,N,W,oe.ub),W+=oe.ub,Y-=oe.ub,oe.Rb&&(he.Ld=Me(re),he.Kd=Me(re)),he=b.Qa;var pe,be=b.Pa;if(e(re!=null),e(he!=null),he.Cb=Me(re),he.Cb){if(he.Bb=Me(re),Me(re)){for(he.Fb=Me(re),pe=0;4>pe;++pe)he.Zb[pe]=Me(re)?ee(re,7):0;for(pe=0;4>pe;++pe)he.Lb[pe]=Me(re)?ee(re,6):0}if(he.Bb)for(pe=0;3>pe;++pe)be.jb[pe]=Me(re)?fe(re,8):255}else he.Bb=0;if(re.Ka)return Ot(b,3,"cannot parse segment header");if((he=b.ed).zd=Me(re),he.Tb=fe(re,6),he.wb=fe(re,3),he.Pc=Me(re),he.Pc&&Me(re)){for(be=0;4>be;++be)Me(re)&&(he.vd[be]=ee(re,6));for(be=0;4>be;++be)Me(re)&&(he.od[be]=ee(re,6))}if(b.L=he.Tb==0?0:he.zd?1:2,re.Ka)return Ot(b,3,"cannot parse filter header");var Fe=Y;if(Y=pe=W,W=pe+Fe,he=Fe,b.Xb=(1<<fe(b.m,2))-1,Fe<3*(be=b.Xb))N=7;else{for(pe+=3*be,he-=3*be,Fe=0;Fe<be;++Fe){var et=N[Y+0]|N[Y+1]<<8|N[Y+2]<<16;et>he&&(et=he),de(b.Jc[+Fe],N,pe,et),pe+=et,he-=et,Y+=3}de(b.Jc[+be],N,pe,he),N=pe<W?0:5}if(N!=0)return Ot(b,N,"cannot parse partitions");for(N=fe(pe=b.m,7),Y=Me(pe)?ee(pe,4):0,W=Me(pe)?ee(pe,4):0,he=Me(pe)?ee(pe,4):0,be=Me(pe)?ee(pe,4):0,pe=Me(pe)?ee(pe,4):0,Fe=b.Qa,et=0;4>et;++et){if(Fe.Cb){var _e=Fe.Zb[et];Fe.Fb||(_e+=N)}else{if(0<et){b.pb[et]=b.pb[0];continue}_e=N}var Oe=b.pb[et];Oe.Sc[0]=xt[qt(_e+Y,127)],Oe.Sc[1]=$t[qt(_e+0,127)],Oe.Eb[0]=2*xt[qt(_e+W,127)],Oe.Eb[1]=101581*$t[qt(_e+he,127)]>>16,8>Oe.Eb[1]&&(Oe.Eb[1]=8),Oe.Qc[0]=xt[qt(_e+be,117)],Oe.Qc[1]=$t[qt(_e+pe,127)],Oe.lc=_e+pe}if(!oe.Rb)return Ot(b,4,"Not a key frame.");for(Me(re),oe=b.Pa,N=0;4>N;++N){for(Y=0;8>Y;++Y)for(W=0;3>W;++W)for(he=0;11>he;++he)be=Te(re,du[N][Y][W][he])?fe(re,8):Ds[N][Y][W][he],oe.Wc[N][Y].Yb[W][he]=be;for(Y=0;17>Y;++Y)oe.Xc[N][Y]=oe.Wc[N][Jb[Y]]}return b.kc=Me(re),b.kc&&(b.Bd=fe(re,8)),b.cb=1}function on(b,x,N,W,Y,re,oe){var he=x[Y].Yb[N];for(N=0;16>Y;++Y){if(!Te(b,he[N+0]))return Y;for(;!Te(b,he[N+1]);)if(he=x[++Y].Yb[0],N=0,Y==16)return 16;var pe=x[Y+1].Yb;if(Te(b,he[N+2])){var be=b,Fe=0;if(Te(be,(_e=he)[(et=N)+3]))if(Te(be,_e[et+6])){for(he=0,et=2*(Fe=Te(be,_e[et+8]))+(_e=Te(be,_e[et+9+Fe])),Fe=0,_e=zn[et];_e[he];++he)Fe+=Fe+Te(be,_e[he]);Fe+=3+(8<<et)}else Te(be,_e[et+7])?(Fe=7+2*Te(be,165),Fe+=Te(be,145)):Fe=5+Te(be,159);else Fe=Te(be,_e[et+4])?3+Te(be,_e[et+5]):2;he=pe[2]}else Fe=1,he=pe[1];pe=oe+Sa[Y],0>(be=b).b&&ge(be);var et,_e=be.b,Oe=(et=be.Ca>>1)-(be.I>>_e)>>31;--be.b,be.Ca+=Oe,be.Ca|=1,be.I-=(et+1&Oe)<<_e,re[pe]=((Fe^Oe)-Oe)*W[(0<Y)+0]}return 16}function er(b){var x=b.rb[b.sb-1];x.la=0,x.Na=0,i(b.zc,0,0,b.zc.length),b.ja=0}function ur(b,x,N,W,Y){Y=b[x+N+32*W]+(Y>>3),b[x+N+32*W]=-256&Y?0>Y?0:255:Y}function wa(b,x,N,W,Y,re){ur(b,x,0,N,W+Y),ur(b,x,1,N,W+re),ur(b,x,2,N,W-re),ur(b,x,3,N,W-Y)}function wn(b){return(20091*b>>16)+b}function cr(b,x,N,W){var Y,re=0,oe=a(16);for(Y=0;4>Y;++Y){var he=b[x+0]+b[x+8],pe=b[x+0]-b[x+8],be=(35468*b[x+4]>>16)-wn(b[x+12]),Fe=wn(b[x+4])+(35468*b[x+12]>>16);oe[re+0]=he+Fe,oe[re+1]=pe+be,oe[re+2]=pe-be,oe[re+3]=he-Fe,re+=4,x++}for(Y=re=0;4>Y;++Y)he=(b=oe[re+0]+4)+oe[re+8],pe=b-oe[re+8],be=(35468*oe[re+4]>>16)-wn(oe[re+12]),ur(N,W,0,0,he+(Fe=wn(oe[re+4])+(35468*oe[re+12]>>16))),ur(N,W,1,0,pe+be),ur(N,W,2,0,pe-be),ur(N,W,3,0,he-Fe),re++,W+=32}function li(b,x,N,W){var Y=b[x+0]+4,re=35468*b[x+4]>>16,oe=wn(b[x+4]),he=35468*b[x+1]>>16;wa(N,W,0,Y+oe,b=wn(b[x+1]),he),wa(N,W,1,Y+re,b,he),wa(N,W,2,Y-re,b,he),wa(N,W,3,Y-oe,b,he)}function Nr(b,x,N,W,Y){cr(b,x,N,W),Y&&cr(b,x+16,N,W+4)}function Vn(b,x,N,W){To(b,x+0,N,W,1),To(b,x+32,N,W+128,1)}function ns(b,x,N,W){var Y;for(b=b[x+0]+4,Y=0;4>Y;++Y)for(x=0;4>x;++x)ur(N,W,x,Y,b)}function Yr(b,x,N,W){b[x+0]&&ca(b,x+0,N,W),b[x+16]&&ca(b,x+16,N,W+4),b[x+32]&&ca(b,x+32,N,W+128),b[x+48]&&ca(b,x+48,N,W+128+4)}function kc(b,x,N,W){var Y,re=a(16);for(Y=0;4>Y;++Y){var oe=b[x+0+Y]+b[x+12+Y],he=b[x+4+Y]+b[x+8+Y],pe=b[x+4+Y]-b[x+8+Y],be=b[x+0+Y]-b[x+12+Y];re[0+Y]=oe+he,re[8+Y]=oe-he,re[4+Y]=be+pe,re[12+Y]=be-pe}for(Y=0;4>Y;++Y)oe=(b=re[0+4*Y]+3)+re[3+4*Y],he=re[1+4*Y]+re[2+4*Y],pe=re[1+4*Y]-re[2+4*Y],be=b-re[3+4*Y],N[W+0]=oe+he>>3,N[W+16]=be+pe>>3,N[W+32]=oe-he>>3,N[W+48]=be-pe>>3,W+=64}function Ic(b,x,N){var W,Y=x-32,re=Da,oe=255-b[Y-1];for(W=0;W<N;++W){var he,pe=re,be=oe+b[x-1];for(he=0;he<N;++he)b[x+he]=pe[be+b[Y+he]];x+=32}}function Co(b,x){Ic(b,x,4)}function ll(b,x){Ic(b,x,8)}function ud(b,x){Ic(b,x,16)}function tu(b,x){var N;for(N=0;16>N;++N)r(b,x+32*N,b,x-32,16)}function dd(b,x){var N;for(N=16;0<N;--N)i(b,x,b[x-1],16),x+=32}function Po(b,x,N){var W;for(W=0;16>W;++W)i(x,N+32*W,b,16)}function ul(b,x){var N,W=16;for(N=0;16>N;++N)W+=b[x-1+32*N]+b[x+N-32];Po(W>>5,b,x)}function qo(b,x){var N,W=8;for(N=0;16>N;++N)W+=b[x-1+32*N];Po(W>>4,b,x)}function Ad(b,x){var N,W=8;for(N=0;16>N;++N)W+=b[x+N-32];Po(W>>4,b,x)}function dl(b,x){Po(128,b,x)}function It(b,x,N){return b+2*x+N+2>>2}function Es(b,x){var N,W=x-32;for(W=new Uint8Array([It(b[W-1],b[W+0],b[W+1]),It(b[W+0],b[W+1],b[W+2]),It(b[W+1],b[W+2],b[W+3]),It(b[W+2],b[W+3],b[W+4])]),N=0;4>N;++N)r(b,x+32*N,W,0,W.length)}function fr(b,x){var N=b[x-1],W=b[x-1+32],Y=b[x-1+64],re=b[x-1+96];We(b,x+0,16843009*It(b[x-1-32],N,W)),We(b,x+32,16843009*It(N,W,Y)),We(b,x+64,16843009*It(W,Y,re)),We(b,x+96,16843009*It(Y,re,re))}function KA(b,x){var N,W=4;for(N=0;4>N;++N)W+=b[x+N-32]+b[x-1+32*N];for(W>>=3,N=0;4>N;++N)i(b,x+32*N,W,4)}function hd(b,x){var N=b[x-1+0],W=b[x-1+32],Y=b[x-1+64],re=b[x-1-32],oe=b[x+0-32],he=b[x+1-32],pe=b[x+2-32],be=b[x+3-32];b[x+0+96]=It(W,Y,b[x-1+96]),b[x+1+96]=b[x+0+64]=It(N,W,Y),b[x+2+96]=b[x+1+64]=b[x+0+32]=It(re,N,W),b[x+3+96]=b[x+2+64]=b[x+1+32]=b[x+0+0]=It(oe,re,N),b[x+3+64]=b[x+2+32]=b[x+1+0]=It(he,oe,re),b[x+3+32]=b[x+2+0]=It(pe,he,oe),b[x+3+0]=It(be,pe,he)}function fd(b,x){var N=b[x+1-32],W=b[x+2-32],Y=b[x+3-32],re=b[x+4-32],oe=b[x+5-32],he=b[x+6-32],pe=b[x+7-32];b[x+0+0]=It(b[x+0-32],N,W),b[x+1+0]=b[x+0+32]=It(N,W,Y),b[x+2+0]=b[x+1+32]=b[x+0+64]=It(W,Y,re),b[x+3+0]=b[x+2+32]=b[x+1+64]=b[x+0+96]=It(Y,re,oe),b[x+3+32]=b[x+2+64]=b[x+1+96]=It(re,oe,he),b[x+3+64]=b[x+2+96]=It(oe,he,pe),b[x+3+96]=It(he,pe,pe)}function qs(b,x){var N=b[x-1+0],W=b[x-1+32],Y=b[x-1+64],re=b[x-1-32],oe=b[x+0-32],he=b[x+1-32],pe=b[x+2-32],be=b[x+3-32];b[x+0+0]=b[x+1+64]=re+oe+1>>1,b[x+1+0]=b[x+2+64]=oe+he+1>>1,b[x+2+0]=b[x+3+64]=he+pe+1>>1,b[x+3+0]=pe+be+1>>1,b[x+0+96]=It(Y,W,N),b[x+0+64]=It(W,N,re),b[x+0+32]=b[x+1+96]=It(N,re,oe),b[x+1+32]=b[x+2+96]=It(re,oe,he),b[x+2+32]=b[x+3+96]=It(oe,he,pe),b[x+3+32]=It(he,pe,be)}function ba(b,x){var N=b[x+0-32],W=b[x+1-32],Y=b[x+2-32],re=b[x+3-32],oe=b[x+4-32],he=b[x+5-32],pe=b[x+6-32],be=b[x+7-32];b[x+0+0]=N+W+1>>1,b[x+1+0]=b[x+0+64]=W+Y+1>>1,b[x+2+0]=b[x+1+64]=Y+re+1>>1,b[x+3+0]=b[x+2+64]=re+oe+1>>1,b[x+0+32]=It(N,W,Y),b[x+1+32]=b[x+0+96]=It(W,Y,re),b[x+2+32]=b[x+1+96]=It(Y,re,oe),b[x+3+32]=b[x+2+96]=It(re,oe,he),b[x+3+64]=It(oe,he,pe),b[x+3+96]=It(he,pe,be)}function md(b,x){var N=b[x-1+0],W=b[x-1+32],Y=b[x-1+64],re=b[x-1+96];b[x+0+0]=N+W+1>>1,b[x+2+0]=b[x+0+32]=W+Y+1>>1,b[x+2+32]=b[x+0+64]=Y+re+1>>1,b[x+1+0]=It(N,W,Y),b[x+3+0]=b[x+1+32]=It(W,Y,re),b[x+3+32]=b[x+1+64]=It(Y,re,re),b[x+3+64]=b[x+2+64]=b[x+0+96]=b[x+1+96]=b[x+2+96]=b[x+3+96]=re}function Al(b,x){var N=b[x-1+0],W=b[x-1+32],Y=b[x-1+64],re=b[x-1+96],oe=b[x-1-32],he=b[x+0-32],pe=b[x+1-32],be=b[x+2-32];b[x+0+0]=b[x+2+32]=N+oe+1>>1,b[x+0+32]=b[x+2+64]=W+N+1>>1,b[x+0+64]=b[x+2+96]=Y+W+1>>1,b[x+0+96]=re+Y+1>>1,b[x+3+0]=It(he,pe,be),b[x+2+0]=It(oe,he,pe),b[x+1+0]=b[x+3+32]=It(N,oe,he),b[x+1+32]=b[x+3+64]=It(W,N,oe),b[x+1+64]=b[x+3+96]=It(Y,W,N),b[x+1+96]=It(re,Y,W)}function Jr(b,x){var N;for(N=0;8>N;++N)r(b,x+32*N,b,x-32,8)}function Xs(b,x){var N;for(N=0;8>N;++N)i(b,x,b[x-1],8),x+=32}function Ys(b,x,N){var W;for(W=0;8>W;++W)i(x,N+32*W,b,8)}function qA(b,x){var N,W=8;for(N=0;8>N;++N)W+=b[x+N-32]+b[x-1+32*N];Ys(W>>4,b,x)}function nu(b,x){var N,W=4;for(N=0;8>N;++N)W+=b[x+N-32];Ys(W>>3,b,x)}function XA(b,x){var N,W=4;for(N=0;8>N;++N)W+=b[x-1+32*N];Ys(W>>3,b,x)}function hl(b,x){Ys(128,b,x)}function Lc(b,x,N){var W=b[x-N],Y=b[x+0],re=3*(Y-W)+uu[1020+b[x-2*N]-b[x+N]],oe=$c[112+(re+4>>3)];b[x-N]=Da[255+W+$c[112+(re+3>>3)]],b[x+0]=Da[255+Y-oe]}function ru(b,x,N,W){var Y=b[x+0],re=b[x+N];return as[255+b[x-2*N]-b[x-N]]>W||as[255+re-Y]>W}function Rn(b,x,N,W){return 4*as[255+b[x-N]-b[x+0]]+as[255+b[x-2*N]-b[x+N]]<=W}function pd(b,x,N,W,Y){var re=b[x-3*N],oe=b[x-2*N],he=b[x-N],pe=b[x+0],be=b[x+N],Fe=b[x+2*N],et=b[x+3*N];return 4*as[255+he-pe]+as[255+oe-be]>W?0:as[255+b[x-4*N]-re]<=Y&&as[255+re-oe]<=Y&&as[255+oe-he]<=Y&&as[255+et-Fe]<=Y&&as[255+Fe-be]<=Y&&as[255+be-pe]<=Y}function ra(b,x,N,W){var Y=2*W+1;for(W=0;16>W;++W)Rn(b,x+W,N,Y)&&Lc(b,x+W,N)}function Xo(b,x,N,W){var Y=2*W+1;for(W=0;16>W;++W)Rn(b,x+W*N,1,Y)&&Lc(b,x+W*N,1)}function fl(b,x,N,W){var Y;for(Y=3;0<Y;--Y)ra(b,x+=4*N,N,W)}function YA(b,x,N,W){var Y;for(Y=3;0<Y;--Y)Xo(b,x+=4,N,W)}function Js(b,x,N,W,Y,re,oe,he){for(re=2*re+1;0<Y--;){if(pd(b,x,N,re,oe))if(ru(b,x,N,he))Lc(b,x,N);else{var pe=b,be=x,Fe=N,et=pe[be-2*Fe],_e=pe[be-Fe],Oe=pe[be+0],qe=pe[be+Fe],dt=pe[be+2*Fe],Ye=27*(gt=uu[1020+3*(Oe-_e)+uu[1020+et-qe]])+63>>7,mt=18*gt+63>>7,gt=9*gt+63>>7;pe[be-3*Fe]=Da[255+pe[be-3*Fe]+gt],pe[be-2*Fe]=Da[255+et+mt],pe[be-Fe]=Da[255+_e+Ye],pe[be+0]=Da[255+Oe-Ye],pe[be+Fe]=Da[255+qe-mt],pe[be+2*Fe]=Da[255+dt-gt]}x+=W}}function Yo(b,x,N,W,Y,re,oe,he){for(re=2*re+1;0<Y--;){if(pd(b,x,N,re,oe))if(ru(b,x,N,he))Lc(b,x,N);else{var pe=b,be=x,Fe=N,et=pe[be-Fe],_e=pe[be+0],Oe=pe[be+Fe],qe=$c[112+(4+(dt=3*(_e-et))>>3)],dt=$c[112+(dt+3>>3)],Ye=qe+1>>1;pe[be-2*Fe]=Da[255+pe[be-2*Fe]+Ye],pe[be-Fe]=Da[255+et+dt],pe[be+0]=Da[255+_e-qe],pe[be+Fe]=Da[255+Oe-Ye]}x+=W}}function gd(b,x,N,W,Y,re){Js(b,x,N,1,16,W,Y,re)}function JA(b,x,N,W,Y,re){Js(b,x,1,N,16,W,Y,re)}function ZA(b,x,N,W,Y,re){var oe;for(oe=3;0<oe;--oe)Yo(b,x+=4*N,N,1,16,W,Y,re)}function Jo(b,x,N,W,Y,re){var oe;for(oe=3;0<oe;--oe)Yo(b,x+=4,1,N,16,W,Y,re)}function eh(b,x,N,W,Y,re,oe,he){Js(b,x,Y,1,8,re,oe,he),Js(N,W,Y,1,8,re,oe,he)}function E(b,x,N,W,Y,re,oe,he){Js(b,x,1,Y,8,re,oe,he),Js(N,W,1,Y,8,re,oe,he)}function q(b,x,N,W,Y,re,oe,he){Yo(b,x+4*Y,Y,1,8,re,oe,he),Yo(N,W+4*Y,Y,1,8,re,oe,he)}function ve(b,x,N,W,Y,re,oe,he){Yo(b,x+4,1,Y,8,re,oe,he),Yo(N,W+4,1,Y,8,re,oe,he)}function ke(){this.ba=new nt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Mt,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 ut(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function wt(){this.ua=0,this.Wa=new je,this.vb=new je,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ce,this.yc=new j}function Zt(){this.xb=this.a=0,this.l=new mn,this.ca=new nt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new ae,this.Pb=0,this.wd=new ae,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new wt,this.ab=0,this.gc=s(4,ut),this.Oc=0}function Xt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new mn,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function yn(b,x,N,W,Y,re,oe){for(b=b==null?0:b[x+0],x=0;x<oe;++x)Y[re+x]=b+N[W+x]&255,b=Y[re+x]}function Pn(b,x,N,W,Y,re,oe){var he;if(b==null)yn(null,null,N,W,Y,re,oe);else for(he=0;he<oe;++he)Y[re+he]=b[x+he]+N[W+he]&255}function qn(b,x,N,W,Y,re,oe){if(b==null)yn(null,null,N,W,Y,re,oe);else{var he,pe=b[x+0],be=pe,Fe=pe;for(he=0;he<oe;++he)be=Fe+(pe=b[x+he])-be,Fe=N[W+he]+(-256&be?0>be?0:255:be)&255,be=pe,Y[re+he]=Fe}}function Zr(b,x,N,W){var Y=x.width,re=x.o;if(e(b!=null&&x!=null),0>N||0>=W||N+W>re)return null;if(!b.Cc){if(b.ga==null){var oe;if(b.ga=new Xt,(oe=b.ga==null)||(oe=x.width*x.o,e(b.Gb.length==0),b.Gb=a(oe),b.Uc=0,b.Gb==null?oe=0:(b.mb=b.Gb,b.nb=b.Uc,b.rc=null,oe=1),oe=!oe),!oe){oe=b.ga;var he=b.Fa,pe=b.P,be=b.qc,Fe=b.mb,et=b.nb,_e=pe+1,Oe=be-1,qe=oe.l;if(e(he!=null&&Fe!=null&&x!=null),br[0]=null,br[1]=yn,br[2]=Pn,br[3]=qn,oe.ca=Fe,oe.tb=et,oe.c=x.width,oe.i=x.height,e(0<oe.c&&0<oe.i),1>=be)x=0;else if(oe.$a=3&he[pe+0],oe.Z=he[pe+0]>>2&3,oe.Lc=he[pe+0]>>4&3,pe=he[pe+0]>>6&3,0>oe.$a||1<oe.$a||4<=oe.Z||1<oe.Lc||pe)x=0;else if(qe.put=Vt,qe.ac=_n,qe.bc=zr,qe.ma=oe,qe.width=x.width,qe.height=x.height,qe.Da=x.Da,qe.v=x.v,qe.va=x.va,qe.j=x.j,qe.o=x.o,oe.$a)e:{e(oe.$a==1),x=es();t:for(;;){if(x==null){x=0;break e}if(e(oe!=null),oe.mc=x,x.c=oe.c,x.i=oe.i,x.l=oe.l,x.l.ma=oe,x.l.width=oe.c,x.l.height=oe.i,x.a=0,Se(x.m,he,_e,Oe),!na(oe.c,oe.i,1,x,null)||(x.ab==1&&x.gc[0].hc==3&&si(x.s)?(oe.ic=1,he=x.c*x.i,x.Ta=null,x.Ua=0,x.V=a(he),x.Ba=0,x.V==null?(x.a=1,x=0):x=1):(oe.ic=0,x=ts(x,oe.c)),!x))break t;x=1;break e}oe.mc=null,x=0}else x=Oe>=oe.c*oe.i;oe=!x}if(oe)return null;b.ga.Lc!=1?b.Ga=0:W=re-N}e(b.ga!=null),e(N+W<=re);e:{if(x=(he=b.ga).c,re=he.l.o,he.$a==0){if(_e=b.rc,Oe=b.Vc,qe=b.Fa,pe=b.P+1+N*x,be=b.mb,Fe=b.nb+N*x,e(pe<=b.P+b.qc),he.Z!=0)for(e(br[he.Z]!=null),oe=0;oe<W;++oe)br[he.Z](_e,Oe,qe,pe,be,Fe,x),_e=be,Oe=Fe,Fe+=x,pe+=x;else for(oe=0;oe<W;++oe)r(be,Fe,qe,pe,x),_e=be,Oe=Fe,Fe+=x,pe+=x;b.rc=_e,b.Vc=Oe}else{if(e(he.mc!=null),x=N+W,e((oe=he.mc)!=null),e(x<=oe.i),oe.C>=x)x=1;else if(he.ic||Ar(),he.ic){he=oe.V,_e=oe.Ba,Oe=oe.c;var dt=oe.i,Ye=(qe=1,pe=oe.$/Oe,be=oe.$%Oe,Fe=oe.m,et=oe.s,oe.$),mt=Oe*dt,gt=Oe*x,Bt=et.wc,St=Ye<gt?Fr(et,be,pe):null;e(Ye<=mt),e(x<=dt),e(si(et));t:for(;;){for(;!Fe.h&&Ye<gt;){if(be&Bt||(St=Fr(et,be,pe)),e(St!=null),le(Fe),256>(dt=Wn(St.G[0],St.H[0],Fe)))he[_e+Ye]=dt,++Ye,++be>=Oe&&(be=0,++pe<=x&&!(pe%16)&&_i(oe,pe));else{if(!(280>dt)){qe=0;break t}dt=wi(dt-256,Fe);var un,Yt=Wn(St.G[4],St.H[4],Fe);if(le(Fe),!(Ye>=(Yt=Hr(Oe,Yt=wi(Yt,Fe)))&&mt-Ye>=dt)){qe=0;break t}for(un=0;un<dt;++un)he[_e+Ye+un]=he[_e+Ye+un-Yt];for(Ye+=dt,be+=dt;be>=Oe;)be-=Oe,++pe<=x&&!(pe%16)&&_i(oe,pe);Ye<gt&&be&Bt&&(St=Fr(et,be,pe))}e(Fe.h==z(Fe))}_i(oe,pe>x?x:pe);break t}!qe||Fe.h&&Ye<mt?(qe=0,oe.a=Fe.h?5:3):oe.$=Ye,x=qe}else x=Xr(oe,oe.V,oe.Ba,oe.c,oe.i,x,Ae);if(!x){W=0;break e}}N+W>=re&&(b.Cc=1),W=1}if(!W)return null;if(b.Cc&&((W=b.ga)!=null&&(W.mc=null),b.ga=null,0<b.Ga))return alert("todo:WebPDequantizeLevels"),null}return b.nb+N*Y}function yr(b,x,N,W,Y,re){for(;0<Y--;){var oe,he=b,pe=x+(N?1:0),be=b,Fe=x+(N?0:3);for(oe=0;oe<W;++oe){var et=be[Fe+4*oe];et!=255&&(et*=32897,he[pe+4*oe+0]=he[pe+4*oe+0]*et>>23,he[pe+4*oe+1]=he[pe+4*oe+1]*et>>23,he[pe+4*oe+2]=he[pe+4*oe+2]*et>>23)}x+=re}}function dr(b,x,N,W,Y){for(;0<W--;){var re;for(re=0;re<N;++re){var oe=b[x+2*re+0],he=15&(be=b[x+2*re+1]),pe=4369*he,be=(240&be|be>>4)*pe>>16;b[x+2*re+0]=(240&oe|oe>>4)*pe>>16&240|(15&oe|oe<<4)*pe>>16>>4&15,b[x+2*re+1]=240&be|he}x+=Y}}function Er(b,x,N,W,Y,re,oe,he){var pe,be,Fe=255;for(be=0;be<Y;++be){for(pe=0;pe<W;++pe){var et=b[x+pe];re[oe+4*pe]=et,Fe&=et}x+=N,oe+=he}return Fe!=255}function Br(b,x,N,W,Y){var re;for(re=0;re<Y;++re)N[W+re]=b[x+re]>>8}function Ar(){ko=yr,$f=dr,jf=Er,Qg=Br}function ia(b,x,N){T[b]=function(W,Y,re,oe,he,pe,be,Fe,et,_e,Oe,qe,dt,Ye,mt,gt,Bt){var St,un=Bt-1>>1,Yt=he[pe+0]|be[Fe+0]<<16,Qn=et[_e+0]|Oe[qe+0]<<16;e(W!=null);var nn=3*Yt+Qn+131074>>2;for(x(W[Y+0],255&nn,nn>>16,dt,Ye),re!=null&&(nn=3*Qn+Yt+131074>>2,x(re[oe+0],255&nn,nn>>16,mt,gt)),St=1;St<=un;++St){var Yn=he[pe+St]|be[Fe+St]<<16,Wi=et[_e+St]|Oe[qe+St]<<16,$n=Yt+Yn+Qn+Wi+524296,rn=$n+2*(Yn+Qn)>>3;nn=rn+Yt>>1,Yt=($n=$n+2*(Yt+Wi)>>3)+Yn>>1,x(W[Y+2*St-1],255&nn,nn>>16,dt,Ye+(2*St-1)*N),x(W[Y+2*St-0],255&Yt,Yt>>16,dt,Ye+(2*St-0)*N),re!=null&&(nn=$n+Qn>>1,Yt=rn+Wi>>1,x(re[oe+2*St-1],255&nn,nn>>16,mt,gt+(2*St-1)*N),x(re[oe+2*St+0],255&Yt,Yt>>16,mt,gt+(2*St+0)*N)),Yt=Yn,Qn=Wi}1&Bt||(nn=3*Yt+Qn+131074>>2,x(W[Y+Bt-1],255&nn,nn>>16,dt,Ye+(Bt-1)*N),re!=null&&(nn=3*Qn+Yt+131074>>2,x(re[oe+Bt-1],255&nn,nn>>16,mt,gt+(Bt-1)*N)))}}function rs(){Ca[nh]=e0,Ca[yd]=zg,Ca[Gf]=t0,Ca[wd]=oh,Ca[bd]=qf,Ca[rh]=Vg,Ca[jg]=Sj,Ca[ih]=zg,Ca[ah]=oh,Ca[sh]=qf,Ca[d]=Vg}function aa(b){return b&-16384?0>b?0:255:b>>Cj}function Fc(b,x){return aa((19077*b>>8)+(26149*x>>8)-14234)}function Nc(b,x,N){return aa((19077*b>>8)-(6419*x>>8)-(13320*N>>8)+8708)}function Dc(b,x){return aa((19077*b>>8)+(33050*x>>8)-17685)}function Zo(b,x,N,W,Y){W[Y+0]=Fc(b,N),W[Y+1]=Nc(b,x,N),W[Y+2]=Dc(b,x)}function Rc(b,x,N,W,Y){W[Y+0]=Dc(b,x),W[Y+1]=Nc(b,x,N),W[Y+2]=Fc(b,N)}function iu(b,x,N,W,Y){var re=Nc(b,x,N);x=re<<3&224|Dc(b,x)>>3,W[Y+0]=248&Fc(b,N)|re>>5,W[Y+1]=x}function sa(b,x,N,W,Y){var re=240&Dc(b,x)|15;W[Y+0]=240&Fc(b,N)|Nc(b,x,N)>>4,W[Y+1]=re}function Uc(b,x,N,W,Y){W[Y+0]=255,Zo(b,x,N,W,Y+1)}function ml(b,x,N,W,Y){Rc(b,x,N,W,Y),W[Y+3]=255}function _a(b,x,N,W,Y){Zo(b,x,N,W,Y),W[Y+3]=255}function xa(b,x,N){T[b]=function(W,Y,re,oe,he,pe,be,Fe,et){for(var _e=Fe+(-2&et)*N;Fe!=_e;)x(W[Y+0],re[oe+0],he[pe+0],be,Fe),x(W[Y+1],re[oe+0],he[pe+0],be,Fe+N),Y+=2,++oe,++pe,Fe+=2*N;1&et&&x(W[Y+0],re[oe+0],he[pe+0],be,Fe)}}function Ma(b,x,N){return N==0?b==0?x==0?6:5:x==0?4:0:N}function Bs(b,x,N,W,Y){switch(b>>>30){case 3:To(x,N,W,Y,0);break;case 2:Qc(x,N,W,Y);break;case 1:ca(x,N,W,Y)}}function au(b,x){var N,W,Y=x.M,re=x.Nb,oe=b.oc,he=b.pc+40,pe=b.oc,be=b.pc+584,Fe=b.oc,et=b.pc+600;for(N=0;16>N;++N)oe[he+32*N-1]=129;for(N=0;8>N;++N)pe[be+32*N-1]=129,Fe[et+32*N-1]=129;for(0<Y?oe[he-1-32]=pe[be-1-32]=Fe[et-1-32]=129:(i(oe,he-32-1,127,21),i(pe,be-32-1,127,9),i(Fe,et-32-1,127,9)),W=0;W<b.za;++W){var _e=x.ya[x.aa+W];if(0<W){for(N=-1;16>N;++N)r(oe,he+32*N-4,oe,he+32*N+12,4);for(N=-1;8>N;++N)r(pe,be+32*N-4,pe,be+32*N+4,4),r(Fe,et+32*N-4,Fe,et+32*N+4,4)}var Oe=b.Gd,qe=b.Hd+W,dt=_e.ad,Ye=_e.Hc;if(0<Y&&(r(oe,he-32,Oe[qe].y,0,16),r(pe,be-32,Oe[qe].f,0,8),r(Fe,et-32,Oe[qe].ea,0,8)),_e.Za){var mt=oe,gt=he-32+16;for(0<Y&&(W>=b.za-1?i(mt,gt,Oe[qe].y[15],4):r(mt,gt,Oe[qe+1].y,0,4)),N=0;4>N;N++)mt[gt+128+N]=mt[gt+256+N]=mt[gt+384+N]=mt[gt+0+N];for(N=0;16>N;++N,Ye<<=2)mt=oe,gt=he+lE[N],no[_e.Ob[N]](mt,gt),Bs(Ye,dt,16*+N,mt,gt)}else if(mt=Ma(W,Y,_e.Ob[0]),jc[mt](oe,he),Ye!=0)for(N=0;16>N;++N,Ye<<=2)Bs(Ye,dt,16*+N,oe,he+lE[N]);for(N=_e.Gc,mt=Ma(W,Y,_e.Dd),Lo[mt](pe,be),Lo[mt](Fe,et),Ye=dt,mt=pe,gt=be,255&(_e=0|N)&&(170&_e?ic(Ye,256,mt,gt):to(Ye,256,mt,gt)),_e=Fe,Ye=et,255&(N>>=8)&&(170&N?ic(dt,320,_e,Ye):to(dt,320,_e,Ye)),Y<b.Ub-1&&(r(Oe[qe].y,0,oe,he+480,16),r(Oe[qe].f,0,pe,be+224,8),r(Oe[qe].ea,0,Fe,et+224,8)),N=8*re*b.B,Oe=b.sa,qe=b.ta+16*W+16*re*b.R,dt=b.qa,_e=b.ra+8*W+N,Ye=b.Ha,mt=b.Ia+8*W+N,N=0;16>N;++N)r(Oe,qe+N*b.R,oe,he+32*N,16);for(N=0;8>N;++N)r(dt,_e+N*b.B,pe,be+32*N,8),r(Ye,mt+N*b.B,Fe,et+32*N,8)}}function ec(b,x,N,W,Y,re,oe,he,pe){var be=[0],Fe=[0],et=0,_e=pe!=null?pe.kd:0,Oe=pe??new He;if(b==null||12>N)return 7;Oe.data=b,Oe.w=x,Oe.ha=N,x=[x],N=[N],Oe.gb=[Oe.gb];e:{var qe=x,dt=N,Ye=Oe.gb;if(e(b!=null),e(dt!=null),e(Ye!=null),Ye[0]=0,12<=dt[0]&&!t(b,qe[0],"RIFF")){if(t(b,qe[0]+8,"WEBP")){Ye=3;break e}var mt=ue(b,qe[0]+4);if(12>mt||4294967286<mt){Ye=3;break e}if(_e&&mt>dt[0]-8){Ye=7;break e}Ye[0]=mt,qe[0]+=12,dt[0]-=12}Ye=0}if(Ye!=0)return Ye;for(mt=0<Oe.gb[0],N=N[0];;){e:{var gt=b;dt=x,Ye=N;var Bt=be,St=Fe,un=qe=[0];if((nn=et=[et])[0]=0,8>Ye[0])Ye=7;else{if(!t(gt,dt[0],"VP8X")){if(ue(gt,dt[0]+4)!=10){Ye=3;break e}if(18>Ye[0]){Ye=7;break e}var Yt=ue(gt,dt[0]+8),Qn=1+Ne(gt,dt[0]+12);if(2147483648<=Qn*(gt=1+Ne(gt,dt[0]+15))){Ye=3;break e}un!=null&&(un[0]=Yt),Bt!=null&&(Bt[0]=Qn),St!=null&&(St[0]=gt),dt[0]+=18,Ye[0]-=18,nn[0]=1}Ye=0}}if(et=et[0],qe=qe[0],Ye!=0)return Ye;if(dt=!!(2&qe),!mt&&et)return 3;if(re!=null&&(re[0]=!!(16&qe)),oe!=null&&(oe[0]=dt),he!=null&&(he[0]=0),oe=be[0],qe=Fe[0],et&&dt&&pe==null){Ye=0;break}if(4>N){Ye=7;break}if(mt&&et||!mt&&!et&&!t(b,x[0],"ALPH")){N=[N],Oe.na=[Oe.na],Oe.P=[Oe.P],Oe.Sa=[Oe.Sa];e:{Yt=b,Ye=x,mt=N;var nn=Oe.gb;Bt=Oe.na,St=Oe.P,un=Oe.Sa,Qn=22,e(Yt!=null),e(mt!=null),gt=Ye[0];var Yn=mt[0];for(e(Bt!=null),e(un!=null),Bt[0]=null,St[0]=null,un[0]=0;;){if(Ye[0]=gt,mt[0]=Yn,8>Yn){Ye=7;break e}var Wi=ue(Yt,gt+4);if(4294967286<Wi){Ye=3;break e}var $n=8+Wi+1&-2;if(Qn+=$n,0<nn&&Qn>nn){Ye=3;break e}if(!t(Yt,gt,"VP8 ")||!t(Yt,gt,"VP8L")){Ye=0;break e}if(Yn[0]<$n){Ye=7;break e}t(Yt,gt,"ALPH")||(Bt[0]=Yt,St[0]=gt+8,un[0]=Wi),gt+=$n,Yn-=$n}}if(N=N[0],Oe.na=Oe.na[0],Oe.P=Oe.P[0],Oe.Sa=Oe.Sa[0],Ye!=0)break}N=[N],Oe.Ja=[Oe.Ja],Oe.xa=[Oe.xa];e:if(nn=b,Ye=x,mt=N,Bt=Oe.gb[0],St=Oe.Ja,un=Oe.xa,Yt=Ye[0],gt=!t(nn,Yt,"VP8 "),Qn=!t(nn,Yt,"VP8L"),e(nn!=null),e(mt!=null),e(St!=null),e(un!=null),8>mt[0])Ye=7;else{if(gt||Qn){if(nn=ue(nn,Yt+4),12<=Bt&&nn>Bt-12){Ye=3;break e}if(_e&&nn>mt[0]-8){Ye=7;break e}St[0]=nn,Ye[0]+=8,mt[0]-=8,un[0]=Qn}else un[0]=5<=mt[0]&&nn[Yt+0]==47&&!(nn[Yt+4]>>5),St[0]=mt[0];Ye=0}if(N=N[0],Oe.Ja=Oe.Ja[0],Oe.xa=Oe.xa[0],x=x[0],Ye!=0)break;if(4294967286<Oe.Ja)return 3;if(he==null||dt||(he[0]=Oe.xa?2:1),oe=[oe],qe=[qe],Oe.xa){if(5>N){Ye=7;break}he=oe,_e=qe,dt=re,b==null||5>N?b=0:5<=N&&b[x+0]==47&&!(b[x+4]>>5)?(mt=[0],nn=[0],Bt=[0],Se(St=new ae,b,x,N),ea(St,mt,nn,Bt)?(he!=null&&(he[0]=mt[0]),_e!=null&&(_e[0]=nn[0]),dt!=null&&(dt[0]=Bt[0]),b=1):b=0):b=0}else{if(10>N){Ye=7;break}he=qe,b==null||10>N||!vr(b,x+3,N-3)?b=0:(_e=b[x+0]|b[x+1]<<8|b[x+2]<<16,dt=16383&(b[x+7]<<8|b[x+6]),b=16383&(b[x+9]<<8|b[x+8]),1&_e||3<(_e>>1&7)||!(_e>>4&1)||_e>>5>=Oe.Ja||!dt||!b?b=0:(oe&&(oe[0]=dt),he&&(he[0]=b),b=1))}if(!b||(oe=oe[0],qe=qe[0],et&&(be[0]!=oe||Fe[0]!=qe)))return 3;pe!=null&&(pe[0]=Oe,pe.offset=x-pe.w,e(4294967286>x-pe.w),e(pe.offset==pe.ha-N));break}return Ye==0||Ye==7&&et&&pe==null?(re!=null&&(re[0]|=Oe.na!=null&&0<Oe.na.length),W!=null&&(W[0]=oe),Y!=null&&(Y[0]=qe),0):Ye}function Ts(b,x,N){var W=x.width,Y=x.height,re=0,oe=0,he=W,pe=Y;if(x.Da=b!=null&&0<b.Da,x.Da&&(he=b.cd,pe=b.bd,re=b.v,oe=b.j,11>N||(re&=-2,oe&=-2),0>re||0>oe||0>=he||0>=pe||re+he>W||oe+pe>Y))return 0;if(x.v=re,x.j=oe,x.va=re+he,x.o=oe+pe,x.U=he,x.T=pe,x.da=b!=null&&0<b.da,x.da){if(!ze(he,pe,N=[b.ib],re=[b.hb]))return 0;x.ib=N[0],x.hb=re[0]}return x.ob=b!=null&&b.ob,x.Kb=b==null||!b.Sd,x.da&&(x.ob=x.ib<3*W/4&&x.hb<3*Y/4,x.Kb=0),1}function Zs(b){if(b==null)return 2;if(11>b.S){var x=b.f.RGBA;x.fb+=(b.height-1)*x.A,x.A=-x.A}else x=b.f.kb,b=b.height,x.O+=(b-1)*x.fa,x.fa=-x.fa,x.N+=(b-1>>1)*x.Ab,x.Ab=-x.Ab,x.W+=(b-1>>1)*x.Db,x.Db=-x.Db,x.F!=null&&(x.J+=(b-1)*x.lb,x.lb=-x.lb);return 0}function su(b,x,N,W){if(W==null||0>=b||0>=x)return 2;if(N!=null){if(N.Da){var Y=N.cd,re=N.bd,oe=-2&N.v,he=-2&N.j;if(0>oe||0>he||0>=Y||0>=re||oe+Y>b||he+re>x)return 2;b=Y,x=re}if(N.da){if(!ze(b,x,Y=[N.ib],re=[N.hb]))return 2;b=Y[0],x=re[0]}}W.width=b,W.height=x;e:{var pe=W.width,be=W.height;if(b=W.S,0>=pe||0>=be||!(b>=nh&&13>b))b=2;else{if(0>=W.Rd&&W.sd==null){oe=re=Y=x=0;var Fe=(he=pe*uE[b])*be;if(11>b||(re=(be+1)/2*(x=(pe+1)/2),b==12&&(oe=(Y=pe)*be)),(be=a(Fe+2*re+oe))==null){b=1;break e}W.sd=be,11>b?((pe=W.f.RGBA).eb=be,pe.fb=0,pe.A=he,pe.size=Fe):((pe=W.f.kb).y=be,pe.O=0,pe.fa=he,pe.Fd=Fe,pe.f=be,pe.N=0+Fe,pe.Ab=x,pe.Cd=re,pe.ea=be,pe.W=0+Fe+re,pe.Db=x,pe.Ed=re,b==12&&(pe.F=be,pe.J=0+Fe+2*re),pe.Tc=oe,pe.lb=Y)}if(x=1,Y=W.S,re=W.width,oe=W.height,Y>=nh&&13>Y)if(11>Y)b=W.f.RGBA,x&=(he=Math.abs(b.A))*(oe-1)+re<=b.size,x&=he>=re*uE[Y],x&=b.eb!=null;else{b=W.f.kb,he=(re+1)/2,Fe=(oe+1)/2,pe=Math.abs(b.fa),be=Math.abs(b.Ab);var et=Math.abs(b.Db),_e=Math.abs(b.lb),Oe=_e*(oe-1)+re;x&=pe*(oe-1)+re<=b.Fd,x&=be*(Fe-1)+he<=b.Cd,x=(x&=et*(Fe-1)+he<=b.Ed)&pe>=re&be>=he&et>=he,x&=b.y!=null,x&=b.f!=null,x&=b.ea!=null,Y==12&&(x&=_e>=re,x&=Oe<=b.Tc,x&=b.F!=null)}else x=0;b=x?0:2}}return b!=0||N!=null&&N.fd&&(b=Zs(W)),b}var tc=64,pl=[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],ks=24,Di=32,Na=8,Oc=[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];se("Predictor0","PredictorAdd0"),T.Predictor0=function(){return 4278190080},T.Predictor1=function(b){return b},T.Predictor2=function(b,x,N){return x[N+0]},T.Predictor3=function(b,x,N){return x[N+1]},T.Predictor4=function(b,x,N){return x[N-1]},T.Predictor5=function(b,x,N){return Be(Be(b,x[N+1]),x[N+0])},T.Predictor6=function(b,x,N){return Be(b,x[N-1])},T.Predictor7=function(b,x,N){return Be(b,x[N+0])},T.Predictor8=function(b,x,N){return Be(x[N-1],x[N+0])},T.Predictor9=function(b,x,N){return Be(x[N+0],x[N+1])},T.Predictor10=function(b,x,N){return Be(Be(b,x[N-1]),Be(x[N+0],x[N+1]))},T.Predictor11=function(b,x,N){var W=x[N+0];return 0>=Ve(W>>24&255,b>>24&255,(x=x[N-1])>>24&255)+Ve(W>>16&255,b>>16&255,x>>16&255)+Ve(W>>8&255,b>>8&255,x>>8&255)+Ve(255&W,255&b,255&x)?W:b},T.Predictor12=function(b,x,N){var W=x[N+0];return(Ke((b>>24&255)+(W>>24&255)-((x=x[N-1])>>24&255))<<24|Ke((b>>16&255)+(W>>16&255)-(x>>16&255))<<16|Ke((b>>8&255)+(W>>8&255)-(x>>8&255))<<8|Ke((255&b)+(255&W)-(255&x)))>>>0},T.Predictor13=function(b,x,N){var W=x[N-1];return(it((b=Be(b,x[N+0]))>>24&255,W>>24&255)<<24|it(b>>16&255,W>>16&255)<<16|it(b>>8&255,W>>8&255)<<8|it(255&b,255&W))>>>0};var Hc=T.PredictorAdd0;T.PredictorAdd1=bt,se("Predictor2","PredictorAdd2"),se("Predictor3","PredictorAdd3"),se("Predictor4","PredictorAdd4"),se("Predictor5","PredictorAdd5"),se("Predictor6","PredictorAdd6"),se("Predictor7","PredictorAdd7"),se("Predictor8","PredictorAdd8"),se("Predictor9","PredictorAdd9"),se("Predictor10","PredictorAdd10"),se("Predictor11","PredictorAdd11"),se("Predictor12","PredictorAdd12"),se("Predictor13","PredictorAdd13");var oa=T.PredictorAdd2;Je("ColorIndexInverseTransform","MapARGB","32b",function(b){return b>>8&255},function(b){return b}),Je("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(b){return b},function(b){return b>>8&255});var ou,Is=T.ColorIndexInverseTransform,ui=T.MapARGB,eo=T.VP8LColorIndexInverseTransformAlpha,is=T.MapAlpha,Ls=T.VP8LPredictorsAdd=[];Ls.length=16,(T.VP8LPredictors=[]).length=16,(T.VP8LPredictorsAdd_C=[]).length=16,(T.VP8LPredictors_C=[]).length=16;var nc,Wc,gl,rc,Fs,Eo,Bo,To,Qc,ic,ca,to,Tr,wr,oi,mr,Ns,vd,ac,th,Qf,Hg,cu,Wg,ko,$f,jf,Qg,Io=a(511),zf=a(2041),Vf=a(225),lu=a(767),$g=0,uu=zf,$c=Vf,Da=lu,as=Io,nh=0,yd=1,Gf=2,wd=3,bd=4,rh=5,jg=6,ih=7,ah=8,sh=9,d=10,m=[2,3,7],_=[3,3,11],B=[280,256,256,256,40],Q=[0,1,1,1,0],ie=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Ie=[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],Xe=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],at=8,xt=[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],$t=[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],pn=null,zn=[[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]],Sa=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Mi=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Ds=[[[[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]]]],Ra=[[[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]]],du=[[[[255,255,255,255,255,255,255,255,255,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]]]],Jb=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],jc=[],no=[],Lo=[],Zb=1,Kf=2,br=[],Ca=[];ia("UpsampleRgbLinePair",Zo,3),ia("UpsampleBgrLinePair",Rc,3),ia("UpsampleRgbaLinePair",_a,4),ia("UpsampleBgraLinePair",ml,4),ia("UpsampleArgbLinePair",Uc,4),ia("UpsampleRgba4444LinePair",sa,2),ia("UpsampleRgb565LinePair",iu,2);var e0=T.UpsampleRgbLinePair,t0=T.UpsampleBgrLinePair,zg=T.UpsampleRgbaLinePair,oh=T.UpsampleBgraLinePair,qf=T.UpsampleArgbLinePair,Vg=T.UpsampleRgba4444LinePair,Sj=T.UpsampleRgb565LinePair,Gg=16,Kg=1<<Gg-1,Xf=-227,n0=482,Cj=6,cE=0,Pj=a(256),Ej=a(256),Bj=a(256),Tj=a(256),kj=a(n0-Xf),Ij=a(n0-Xf);xa("YuvToRgbRow",Zo,3),xa("YuvToBgrRow",Rc,3),xa("YuvToRgbaRow",_a,4),xa("YuvToBgraRow",ml,4),xa("YuvToArgbRow",Uc,4),xa("YuvToRgba4444Row",sa,2),xa("YuvToRgb565Row",iu,2);var lE=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],qg=[0,2,8],Lj=[8,7,6,4,4,2,2,2,1,1,1,1],Fj=1;this.WebPDecodeRGBA=function(b,x,N,W,Y){var re=yd,oe=new ke,he=new nt;oe.ba=he,he.S=re,he.width=[he.width],he.height=[he.height];var pe=he.width,be=he.height,Fe=new At;if(Fe==null||b==null)var et=2;else e(Fe!=null),et=ec(b,x,N,Fe.width,Fe.height,Fe.Pd,Fe.Qd,Fe.format,null);if(et!=0?pe=0:(pe!=null&&(pe[0]=Fe.width[0]),be!=null&&(be[0]=Fe.height[0]),pe=1),pe){he.width=he.width[0],he.height=he.height[0],W!=null&&(W[0]=he.width),Y!=null&&(Y[0]=he.height);e:{if(W=new mn,(Y=new He).data=b,Y.w=x,Y.ha=N,Y.kd=1,x=[0],e(Y!=null),((b=ec(Y.data,Y.w,Y.ha,null,null,null,x,null,Y))==0||b==7)&&x[0]&&(b=4),(x=b)==0){if(e(oe!=null),W.data=Y.data,W.w=Y.w+Y.offset,W.ha=Y.ha-Y.offset,W.put=Vt,W.ac=_n,W.bc=zr,W.ma=oe,Y.xa){if((b=es())==null){oe=1;break e}if((function(_e,Oe){var qe=[0],dt=[0],Ye=[0];t:for(;;){if(_e==null)return 0;if(Oe==null)return _e.a=2,0;if(_e.l=Oe,_e.a=0,Se(_e.m,Oe.data,Oe.w,Oe.ha),!ea(_e.m,qe,dt,Ye)){_e.a=3;break t}if(_e.xb=Kf,Oe.width=qe[0],Oe.height=dt[0],!na(qe[0],dt[0],1,_e,null))break t;return 1}return e(_e.a!=0),0})(b,W)){if(W=(x=su(W.width,W.height,oe.Oa,oe.ba))==0){t:{W=b;n:for(;;){if(W==null){W=0;break t}if(e(W.s.yc!=null),e(W.s.Ya!=null),e(0<W.s.Wb),e((N=W.l)!=null),e((Y=N.ma)!=null),W.xb!=0){if(W.ca=Y.ba,W.tb=Y.tb,e(W.ca!=null),!Ts(Y.Oa,N,wd)){W.a=2;break n}if(!ts(W,N.width)||N.da)break n;if((N.da||Le(W.ca.S))&&Ar(),11>W.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),W.ca.f.kb.F!=null&&Ar()),W.Pb&&0<W.s.ua&&W.s.vb.X==null&&!ne(W.s.vb,W.s.Wa.Xa)){W.a=1;break n}W.xb=0}if(!Xr(W,W.V,W.Ba,W.c,W.i,N.o,ta))break n;Y.Dc=W.Ma,W=1;break t}e(W.a!=0),W=0}W=!W}W&&(x=b.a)}else x=b.a}else{if((b=new Fn)==null){oe=1;break e}if(b.Fa=Y.na,b.P=Y.P,b.qc=Y.Sa,Cn(b,W)){if((x=su(W.width,W.height,oe.Oa,oe.ba))==0){if(b.Aa=0,N=oe.Oa,e((Y=b)!=null),N!=null){if(0<(pe=0>(pe=N.Md)?0:100<pe?255:255*pe/100)){for(be=Fe=0;4>be;++be)12>(et=Y.pb[be]).lc&&(et.ia=pe*Lj[0>et.lc?0:et.lc]>>3),Fe|=et.ia;Fe&&(alert("todo:VP8InitRandom"),Y.ia=1)}Y.Ga=N.Id,100<Y.Ga?Y.Ga=100:0>Y.Ga&&(Y.Ga=0)}(function(_e,Oe){if(_e==null)return 0;if(Oe==null)return Ot(_e,2,"NULL VP8Io parameter in VP8Decode().");if(!_e.cb&&!Cn(_e,Oe))return 0;if(e(_e.cb),Oe.ac==null||Oe.ac(Oe)){Oe.ob&&(_e.L=0);var qe=qg[_e.L];if(_e.L==2?(_e.yb=0,_e.zb=0):(_e.yb=Oe.v-qe>>4,_e.zb=Oe.j-qe>>4,0>_e.yb&&(_e.yb=0),0>_e.zb&&(_e.zb=0)),_e.Va=Oe.o+15+qe>>4,_e.Hb=Oe.va+15+qe>>4,_e.Hb>_e.za&&(_e.Hb=_e.za),_e.Va>_e.Ub&&(_e.Va=_e.Ub),0<_e.L){var dt=_e.ed;for(qe=0;4>qe;++qe){var Ye;if(_e.Qa.Cb){var mt=_e.Qa.Lb[qe];_e.Qa.Fb||(mt+=dt.Tb)}else mt=dt.Tb;for(Ye=0;1>=Ye;++Ye){var gt=_e.gd[qe][Ye],Bt=mt;if(dt.Pc&&(Bt+=dt.vd[0],Ye&&(Bt+=dt.od[0])),0<(Bt=0>Bt?0:63<Bt?63:Bt)){var St=Bt;0<dt.wb&&(St=4<dt.wb?St>>2:St>>1)>9-dt.wb&&(St=9-dt.wb),1>St&&(St=1),gt.dd=St,gt.tc=2*Bt+St,gt.ld=40<=Bt?2:15<=Bt?1:0}else gt.tc=0;gt.La=Ye}}}qe=0}else Ot(_e,6,"Frame setup failed"),qe=_e.a;if(qe=qe==0){if(qe){_e.$c=0,0<_e.Aa||(_e.Ic=Fj);t:{qe=_e.Ic,dt=4*(St=_e.za);var un=32*St,Yt=St+1,Qn=0<_e.L?St*(0<_e.Aa?2:1):0,nn=(_e.Aa==2?2:1)*St;if((gt=dt+832+(Ye=3*(16*qe+qg[_e.L])/2*un)+(mt=_e.Fa!=null&&0<_e.Fa.length?_e.Kc.c*_e.Kc.i:0))!=gt)qe=0;else{if(gt>_e.Vb){if(_e.Vb=0,_e.Ec=a(gt),_e.Fc=0,_e.Ec==null){qe=Ot(_e,1,"no memory during frame initialization.");break t}_e.Vb=gt}gt=_e.Ec,Bt=_e.Fc,_e.Ac=gt,_e.Bc=Bt,Bt+=dt,_e.Gd=s(un,In),_e.Hd=0,_e.rb=s(Yt+1,zt),_e.sb=1,_e.wa=Qn?s(Qn,Rt):null,_e.Y=0,_e.D.Nb=0,_e.D.wa=_e.wa,_e.D.Y=_e.Y,0<_e.Aa&&(_e.D.Y+=St),e(!0),_e.oc=gt,_e.pc=Bt,Bt+=832,_e.ya=s(nn,ln),_e.aa=0,_e.D.ya=_e.ya,_e.D.aa=_e.aa,_e.Aa==2&&(_e.D.aa+=St),_e.R=16*St,_e.B=8*St,St=(un=qg[_e.L])*_e.R,un=un/2*_e.B,_e.sa=gt,_e.ta=Bt+St,_e.qa=_e.sa,_e.ra=_e.ta+16*qe*_e.R+un,_e.Ha=_e.qa,_e.Ia=_e.ra+8*qe*_e.B+un,_e.$c=0,Bt+=Ye,_e.mb=mt?gt:null,_e.nb=mt?Bt:null,e(Bt+mt<=_e.Fc+_e.Vb),er(_e),i(_e.Ac,_e.Bc,0,dt),qe=1}}if(qe){if(Oe.ka=0,Oe.y=_e.sa,Oe.O=_e.ta,Oe.f=_e.qa,Oe.N=_e.ra,Oe.ea=_e.Ha,Oe.Vd=_e.Ia,Oe.fa=_e.R,Oe.Rc=_e.B,Oe.F=null,Oe.J=0,!$g){for(qe=-255;255>=qe;++qe)Io[255+qe]=0>qe?-qe:qe;for(qe=-1020;1020>=qe;++qe)zf[1020+qe]=-128>qe?-128:127<qe?127:qe;for(qe=-112;112>=qe;++qe)Vf[112+qe]=-16>qe?-16:15<qe?15:qe;for(qe=-255;510>=qe;++qe)lu[255+qe]=0>qe?0:255<qe?255:qe;$g=1}Bo=kc,To=Nr,ic=Vn,ca=ns,to=Yr,Qc=li,Tr=gd,wr=JA,oi=eh,mr=E,Ns=ZA,vd=Jo,ac=q,th=ve,Qf=ra,Hg=Xo,cu=fl,Wg=YA,no[0]=KA,no[1]=Co,no[2]=Es,no[3]=fr,no[4]=hd,no[5]=qs,no[6]=fd,no[7]=ba,no[8]=Al,no[9]=md,jc[0]=ul,jc[1]=ud,jc[2]=tu,jc[3]=dd,jc[4]=qo,jc[5]=Ad,jc[6]=dl,Lo[0]=qA,Lo[1]=ll,Lo[2]=Jr,Lo[3]=Xs,Lo[4]=XA,Lo[5]=nu,Lo[6]=hl,qe=1}else qe=0}qe&&(qe=(function(Yn,Wi){for(Yn.M=0;Yn.M<Yn.Va;++Yn.M){var $n,rn=Yn.Jc[Yn.M&Yn.Xb],Ht=Yn.m,Si=Yn;for($n=0;$n<Si.za;++$n){var Nn=Ht,tr=Si,Vr=tr.Ac,Pa=tr.Bc+4*$n,ss=tr.zc,di=tr.ya[tr.aa+$n];if(tr.Qa.Bb?di.$b=Te(Nn,tr.Pa.jb[0])?2+Te(Nn,tr.Pa.jb[2]):Te(Nn,tr.Pa.jb[1]):di.$b=0,tr.kc&&(di.Ad=Te(Nn,tr.Bd)),di.Za=!Te(Nn,145)+0,di.Za){var Ua=di.Ob,os=0;for(tr=0;4>tr;++tr){var Qi,rr=ss[0+tr];for(Qi=0;4>Qi;++Qi){rr=Ra[Vr[Pa+Qi]][rr];for(var _r=Mi[Te(Nn,rr[0])];0<_r;)_r=Mi[2*_r+Te(Nn,rr[_r])];rr=-_r,Vr[Pa+Qi]=rr}r(Ua,os,Vr,Pa,4),os+=4,ss[0+tr]=rr}}else rr=Te(Nn,156)?Te(Nn,128)?1:3:Te(Nn,163)?2:0,di.Ob[0]=rr,i(Vr,Pa,rr,4),i(ss,0,rr,4);di.Dd=Te(Nn,142)?Te(Nn,114)?Te(Nn,183)?1:3:2:0}if(Si.m.Ka)return Ot(Yn,7,"Premature end-of-partition0 encountered.");for(;Yn.ja<Yn.za;++Yn.ja){if(Si=rn,Nn=(Ht=Yn).rb[Ht.sb-1],Vr=Ht.rb[Ht.sb+Ht.ja],$n=Ht.ya[Ht.aa+Ht.ja],Pa=Ht.kc?$n.Ad:0)Nn.la=Vr.la=0,$n.Za||(Nn.Na=Vr.Na=0),$n.Hc=0,$n.Gc=0,$n.ia=0;else{var Ai,xr;if(Nn=Vr,Vr=Si,Pa=Ht.Pa.Xc,ss=Ht.ya[Ht.aa+Ht.ja],di=Ht.pb[ss.$b],tr=ss.ad,Ua=0,os=Ht.rb[Ht.sb-1],rr=Qi=0,i(tr,Ua,0,384),ss.Za)var Ea=0,sc=Pa[3];else{_r=a(16);var Ci=Nn.Na+os.Na;if(Ci=pn(Vr,Pa[1],Ci,di.Eb,0,_r,0),Nn.Na=os.Na=(0<Ci)+0,1<Ci)Bo(_r,0,tr,Ua);else{var Rs=_r[0]+3>>3;for(_r=0;256>_r;_r+=16)tr[Ua+_r]=Rs}Ea=1,sc=Pa[0]}var Dr=15&Nn.la,$i=15&os.la;for(_r=0;4>_r;++_r){var ro=1&$i;for(Rs=xr=0;4>Rs;++Rs)Dr=Dr>>1|(ro=(Ci=pn(Vr,sc,Ci=ro+(1&Dr),di.Sc,Ea,tr,Ua))>Ea)<<7,xr=xr<<2|(3<Ci?3:1<Ci?2:tr[Ua+0]!=0),Ua+=16;Dr>>=4,$i=$i>>1|ro<<7,Qi=(Qi<<8|xr)>>>0}for(sc=Dr,Ea=$i>>4,Ai=0;4>Ai;Ai+=2){for(xr=0,Dr=Nn.la>>4+Ai,$i=os.la>>4+Ai,_r=0;2>_r;++_r){for(ro=1&$i,Rs=0;2>Rs;++Rs)Ci=ro+(1&Dr),Dr=Dr>>1|(ro=0<(Ci=pn(Vr,Pa[2],Ci,di.Qc,0,tr,Ua)))<<3,xr=xr<<2|(3<Ci?3:1<Ci?2:tr[Ua+0]!=0),Ua+=16;Dr>>=2,$i=$i>>1|ro<<5}rr|=xr<<4*Ai,sc|=Dr<<4<<Ai,Ea|=(240&$i)<<Ai}Nn.la=sc,os.la=Ea,ss.Hc=Qi,ss.Gc=rr,ss.ia=43690&rr?0:di.ia,Pa=!(Qi|rr)}if(0<Ht.L&&(Ht.wa[Ht.Y+Ht.ja]=Ht.gd[$n.$b][$n.Za],Ht.wa[Ht.Y+Ht.ja].La|=!Pa),Si.Ka)return Ot(Yn,7,"Premature end-of-file encountered.")}if(er(Yn),Ht=Wi,Si=1,$n=(rn=Yn).D,Nn=0<rn.L&&rn.M>=rn.zb&&rn.M<=rn.Va,rn.Aa==0)t:{if($n.M=rn.M,$n.uc=Nn,au(rn,$n),Si=1,$n=(xr=rn.D).Nb,Nn=(rr=qg[rn.L])*rn.R,Vr=rr/2*rn.B,_r=16*$n*rn.R,Rs=8*$n*rn.B,Pa=rn.sa,ss=rn.ta-Nn+_r,di=rn.qa,tr=rn.ra-Vr+Rs,Ua=rn.Ha,os=rn.Ia-Vr+Rs,$i=(Dr=xr.M)==0,Qi=Dr>=rn.Va-1,rn.Aa==2&&au(rn,xr),xr.uc)for(ro=(Ci=rn).D.M,e(Ci.D.uc),xr=Ci.yb;xr<Ci.Hb;++xr){Ea=xr,sc=ro;var cs=(io=(Ba=Ci).D).Nb;Ai=Ba.R;var io=io.wa[io.Y+Ea],ao=Ba.sa,Us=Ba.ta+16*cs*Ai+16*Ea,so=io.dd,Wr=io.tc;if(Wr!=0)if(e(3<=Wr),Ba.L==1)0<Ea&&Hg(ao,Us,Ai,Wr+4),io.La&&Wg(ao,Us,Ai,Wr),0<sc&&Qf(ao,Us,Ai,Wr+4),io.La&&cu(ao,Us,Ai,Wr);else{var oo=Ba.B,oc=Ba.qa,_d=Ba.ra+8*cs*oo+8*Ea,vl=Ba.Ha,Ba=Ba.Ia+8*cs*oo+8*Ea;cs=io.ld,0<Ea&&(wr(ao,Us,Ai,Wr+4,so,cs),mr(oc,_d,vl,Ba,oo,Wr+4,so,cs)),io.La&&(vd(ao,Us,Ai,Wr,so,cs),th(oc,_d,vl,Ba,oo,Wr,so,cs)),0<sc&&(Tr(ao,Us,Ai,Wr+4,so,cs),oi(oc,_d,vl,Ba,oo,Wr+4,so,cs)),io.La&&(Ns(ao,Us,Ai,Wr,so,cs),ac(oc,_d,vl,Ba,oo,Wr,so,cs))}}if(rn.ia&&alert("todo:DitherRow"),Ht.put!=null){if(xr=16*Dr,Dr=16*(Dr+1),$i?(Ht.y=rn.sa,Ht.O=rn.ta+_r,Ht.f=rn.qa,Ht.N=rn.ra+Rs,Ht.ea=rn.Ha,Ht.W=rn.Ia+Rs):(xr-=rr,Ht.y=Pa,Ht.O=ss,Ht.f=di,Ht.N=tr,Ht.ea=Ua,Ht.W=os),Qi||(Dr-=rr),Dr>Ht.o&&(Dr=Ht.o),Ht.F=null,Ht.J=null,rn.Fa!=null&&0<rn.Fa.length&&xr<Dr&&(Ht.J=Zr(rn,Ht,xr,Dr-xr),Ht.F=rn.mb,Ht.F==null&&Ht.F.length==0)){Si=Ot(rn,3,"Could not decode alpha data.");break t}xr<Ht.j&&(rr=Ht.j-xr,xr=Ht.j,e(!(1&rr)),Ht.O+=rn.R*rr,Ht.N+=rn.B*(rr>>1),Ht.W+=rn.B*(rr>>1),Ht.F!=null&&(Ht.J+=Ht.width*rr)),xr<Dr&&(Ht.O+=Ht.v,Ht.N+=Ht.v>>1,Ht.W+=Ht.v>>1,Ht.F!=null&&(Ht.J+=Ht.v),Ht.ka=xr-Ht.j,Ht.U=Ht.va-Ht.v,Ht.T=Dr-xr,Si=Ht.put(Ht))}$n+1!=rn.Ic||Qi||(r(rn.sa,rn.ta-Nn,Pa,ss+16*rn.R,Nn),r(rn.qa,rn.ra-Vr,di,tr+8*rn.B,Vr),r(rn.Ha,rn.Ia-Vr,Ua,os+8*rn.B,Vr))}if(!Si)return Ot(Yn,6,"Output aborted.")}return 1})(_e,Oe)),Oe.bc!=null&&Oe.bc(Oe),qe&=1}return qe?(_e.cb=0,qe):0})(b,W)||(x=b.a)}}else x=b.a}x==0&&oe.Oa!=null&&oe.Oa.fd&&(x=Zs(oe.ba))}oe=x}re=oe!=0?null:11>re?he.f.RGBA.eb:he.f.kb.y}else re=null;return re};var uE=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(T,P){for(var k="",H=0;H<4;H++)k+=String.fromCharCode(T[P++]);return k}function u(T,P){return T[P+0]|T[P+1]<<8}function A(T,P){return(T[P+0]|T[P+1]<<8|T[P+2]<<16)>>>0}function f(T,P){return(T[P+0]|T[P+1]<<8|T[P+2]<<16|T[P+3]<<24)>>>0}new c;var h=[0],g=[0],y=[],w=new c,v=n,S=(function(T,P){var k={},H=0,j=!1,$=0,ce=0;if(k.frames=[],!(function(V,ae){for(var J=0;J<4;J++)if(V[ae+J]!="RIFF".charCodeAt(J))return!0;return!1})(T,P)){for(f(T,P+=4),P+=8;P<T.length;){var de=l(T,P),fe=f(T,P+=4);P+=4;var ee=fe+(1&fe);switch(de){case"VP8 ":case"VP8L":k.frames[H]===void 0&&(k.frames[H]={}),(Pe=k.frames[H]).src_off=j?ce:P-8,Pe.src_size=$+fe+8,H++,j&&(j=!1,$=0,ce=0);break;case"VP8X":(Pe=k.header={}).feature_flags=T[P];var Se=P+4;Pe.canvas_width=1+A(T,Se),Se+=3,Pe.canvas_height=1+A(T,Se),Se+=3;break;case"ALPH":j=!0,$=ee+8,ce=P-8;break;case"ANIM":(Pe=k.header).bgcolor=f(T,P),Se=P+4,Pe.loop_count=u(T,Se),Se+=2;break;case"ANMF":var xe,Pe;(Pe=k.frames[H]={}).offset_x=2*A(T,P),P+=3,Pe.offset_y=2*A(T,P),P+=3,Pe.width=1+A(T,P),P+=3,Pe.height=1+A(T,P),P+=3,Pe.duration=A(T,P),P+=3,xe=T[P++],Pe.dispose=1&xe,Pe.blend=xe>>1&1}de!="ANMF"&&(P+=ee)}return k}})(v,0);S.response=v,S.rgbaoutput=!0,S.dataurl=!1;var C=S.header?S.header:null,M=S.frames?S.frames:null;if(C){C.loop_counter=C.loop_count,h=[C.canvas_height],g=[C.canvas_width];for(var F=0;F<M.length&&M[F].blend!=0;F++);}var D=M[0],U=w.WebPDecodeRGBA(v,D.src_off,D.src_size,g,h);D.rgba=U,D.imgwidth=g[0],D.imgheight=h[0];for(var O=0;O<g[0]*h[0]*4;O++)y[O]=U[O];return this.width=g,this.height=h,this.data=y,this}/** ====================================================================
 * @license
 * jsPDF XMP metadata plugin
 * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 */function Bte(){var n,e=this.internal.__metadata__.metadata,t=unescape(encodeURIComponent(e));n=this.internal.__metadata__.rawXml?t:'<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>'+t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+n.length+" >>"),this.internal.write("stream"),this.internal.write(n),this.internal.write("endstream"),this.internal.write("endobj")}function Tte(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(n){var e,t,r,i,a,s,o,c,l,u=function(V){return V=V||{},this.isStrokeTransparent=V.isStrokeTransparent||!1,this.strokeOpacity=V.strokeOpacity||1,this.strokeStyle=V.strokeStyle||"#000000",this.fillStyle=V.fillStyle||"#000000",this.isFillTransparent=V.isFillTransparent||!1,this.fillOpacity=V.fillOpacity||1,this.font=V.font||"10px sans-serif",this.textBaseline=V.textBaseline||"alphabetic",this.textAlign=V.textAlign||"left",this.lineWidth=V.lineWidth||1,this.lineJoin=V.lineJoin||"miter",this.lineCap=V.lineCap||"butt",this.path=V.path||[],this.transform=V.transform!==void 0?V.transform.clone():new c,this.globalCompositeOperation=V.globalCompositeOperation||"normal",this.globalAlpha=V.globalAlpha||1,this.clip_path=V.clip_path||[],this.currentPoint=V.currentPoint||new s,this.miterLimit=V.miterLimit||10,this.lastPoint=V.lastPoint||new s,this.lineDashOffset=V.lineDashOffset||0,this.lineDash=V.lineDash||[],this.margin=V.margin||[0,0,0,0],this.prevPageLastElemOffset=V.prevPageLastElemOffset||0,this.ignoreClearRect=typeof V.ignoreClearRect!="boolean"||V.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new A(this),e=this.internal.f2,t=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,s=this.internal.Point,o=this.internal.Rectangle,c=this.internal.Matrix,l=new u}]);var A=function(V){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var ae=V;Object.defineProperty(this,"pdf",{get:function(){return ae}});var J=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return J},set:function(ne){J=!!ne}});var z=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return z},set:function(ne){z=!!ne}});var Z=0;Object.defineProperty(this,"posX",{get:function(){return Z},set:function(ne){isNaN(ne)||(Z=ne)}});var le=0;Object.defineProperty(this,"posY",{get:function(){return le},set:function(ne){isNaN(ne)||(le=ne)}}),Object.defineProperty(this,"margin",{get:function(){return l.margin},set:function(ne){var De;typeof ne=="number"?De=[ne,ne,ne,ne]:((De=new Array(4))[0]=ne[0],De[1]=ne.length>=2?ne[1]:De[0],De[2]=ne.length>=3?ne[2]:De[0],De[3]=ne.length>=4?ne[3]:De[1]),l.margin=De}});var ge=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ge},set:function(ne){ge=ne}});var Me=0;Object.defineProperty(this,"lastBreak",{get:function(){return Me},set:function(ne){Me=ne}});var Te=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Te},set:function(ne){Te=ne}}),Object.defineProperty(this,"ctx",{get:function(){return l},set:function(ne){ne instanceof u&&(l=ne)}}),Object.defineProperty(this,"path",{get:function(){return l.path},set:function(ne){l.path=ne}});var We=[];Object.defineProperty(this,"ctxStack",{get:function(){return We},set:function(ne){We=ne}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ne){var De;De=f(ne),this.ctx.fillStyle=De.style,this.ctx.isFillTransparent=De.a===0,this.ctx.fillOpacity=De.a,this.pdf.setFillColor(De.r,De.g,De.b,{a:De.a}),this.pdf.setTextColor(De.r,De.g,De.b,{a:De.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ne){var De=f(ne);this.ctx.strokeStyle=De.style,this.ctx.isStrokeTransparent=De.a===0,this.ctx.strokeOpacity=De.a,De.a===0?this.pdf.setDrawColor(255,255,255):(De.a,this.pdf.setDrawColor(De.r,De.g,De.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ne){["butt","round","square"].indexOf(ne)!==-1&&(this.ctx.lineCap=ne,this.pdf.setLineCap(ne))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ne){isNaN(ne)||(this.ctx.lineWidth=ne,this.pdf.setLineWidth(ne))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ne){["bevel","round","miter"].indexOf(ne)!==-1&&(this.ctx.lineJoin=ne,this.pdf.setLineJoin(ne))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ne){isNaN(ne)||(this.ctx.miterLimit=ne,this.pdf.setMiterLimit(ne))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ne){this.ctx.textBaseline=ne}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ne){["right","end","center","left","start"].indexOf(ne)!==-1&&(this.ctx.textAlign=ne)}});var Ee=null,Ne=null,ue=null;Object.defineProperty(this,"fontFaces",{get:function(){return ue},set:function(ne){Ee=null,Ne=null,ue=ne}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ne){var De;if(this.ctx.font=ne,(De=/^\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(ne))!==null){var je=De[1];De[2];var ze=De[3],Qe=De[4];De[5];var ot=De[6],se=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Qe)[2];Qe=Math.floor(se==="px"?parseFloat(Qe)*this.pdf.internal.scaleFactor:se==="em"?parseFloat(Qe)*this.pdf.getFontSize():parseFloat(Qe)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Qe);var G=(function(Je){var Tt,Pt,Ct=[],yt=Je.trim();if(yt==="")return E_;if(yt in uk)return[uk[yt]];for(;yt!=="";){switch(Pt=null,Tt=(yt=Ak(yt)).charAt(0)){case'"':case"'":Pt=xte(yt.substring(1),Tt);break;default:Pt=Mte(yt)}if(Pt===null||(Ct.push(Pt[0]),(yt=Ak(Pt[1]))!==""&&yt.charAt(0)!==","))return E_;yt=yt.replace(/^,/,"")}return Ct})(ot);if(this.fontFaces){var Be=(function(Je,Tt){var Pt=Je.getFontList(),Ct=JSON.stringify(Pt);if(Ee===null||Ne!==Ct){var yt=(function(Kt){var _t=[];return Object.keys(Kt).forEach(function(sn){Kt[sn].forEach(function(Le){var pt=null;switch(Le){case"bold":pt={family:sn,weight:"bold"};break;case"italic":pt={family:sn,style:"italic"};break;case"bolditalic":pt={family:sn,weight:"bold",style:"italic"};break;case"":case"normal":pt={family:sn}}pt!==null&&(pt.ref={name:sn,style:Le},_t.push(pt))})}),_t})(Pt);Ee=(function(Kt){for(var _t={},sn=0;sn<Kt.length;++sn){var Le=P_(Kt[sn]),pt=Le.family,Ze=Le.stretch,nt=Le.style,At=Le.weight;_t[pt]=_t[pt]||{},_t[pt][Ze]=_t[pt][Ze]||{},_t[pt][Ze][nt]=_t[pt][Ze][nt]||{},_t[pt][Ze][nt][At]=Le}return _t})(yt.concat(Tt)),Ne=Ct}return Ee})(this.pdf,this.fontFaces),Ke=G.map(function(Je){return{family:Je,stretch:"normal",weight:ze,style:je}}),it=(function(Je,Tt,Pt){for(var Ct=(Pt=Pt||{}).defaultFontFamily||"times",yt=Object.assign({},_te,Pt.genericFontFamilies||{}),Kt=null,_t=null,sn=0;sn<Tt.length;++sn)if(yt[(Kt=P_(Tt[sn])).family]&&(Kt.family=yt[Kt.family]),Je.hasOwnProperty(Kt.family)){_t=Je[Kt.family];break}if(!(_t=_t||Je[Ct]))throw new Error("Could not find a font-family for the rule '"+dk(Kt)+"' and default family '"+Ct+"'.");if(_t=(function(Le,pt){if(pt[Le])return pt[Le];var Ze=Y2[Le],nt=Ze<=Y2.normal?-1:1,At=lk(pt,pD,Ze,nt);if(!At)throw new Error("Could not find a matching font-stretch value for "+Le);return At})(Kt.stretch,_t),_t=(function(Le,pt){if(pt[Le])return pt[Le];for(var Ze=mD[Le],nt=0;nt<Ze.length;++nt)if(pt[Ze[nt]])return pt[Ze[nt]];throw new Error("Could not find a matching font-style for "+Le)})(Kt.style,_t),!(_t=(function(Le,pt){if(pt[Le])return pt[Le];if(Le===400&&pt[500])return pt[500];if(Le===500&&pt[400])return pt[400];var Ze=bte[Le],nt=lk(pt,gD,Ze,Le<400?-1:1);if(!nt)throw new Error("Could not find a matching font-weight for value "+Le);return nt})(Kt.weight,_t)))throw new Error("Failed to resolve a font for the rule '"+dk(Kt)+"'.");return _t})(Be,Ke);this.pdf.setFont(it.ref.name,it.ref.style)}else{var Ve="";(ze==="bold"||parseInt(ze,10)>=700||je==="bold")&&(Ve="bold"),je==="italic"&&(Ve+="italic"),Ve.length===0&&(Ve="normal");for(var bt="",lt={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"},ct=0;ct<G.length;ct++){if(this.pdf.internal.getFont(G[ct],Ve,{noFallback:!0,disableWarning:!0})!==void 0){bt=G[ct];break}if(Ve==="bolditalic"&&this.pdf.internal.getFont(G[ct],"bold",{noFallback:!0,disableWarning:!0})!==void 0)bt=G[ct],Ve="bold";else if(this.pdf.internal.getFont(G[ct],"normal",{noFallback:!0,disableWarning:!0})!==void 0){bt=G[ct],Ve="normal";break}}if(bt===""){for(var kt=0;kt<G.length;kt++)if(lt[G[kt]]){bt=lt[G[kt]];break}}bt=bt===""?"Times":bt,this.pdf.setFont(bt,Ve)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ne){this.ctx.globalCompositeOperation=ne}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ne){this.ctx.globalAlpha=ne}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ne){this.ctx.lineDashOffset=ne,Pe.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ne){this.ctx.lineDash=ne,Pe.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ne){this.ctx.ignoreClearRect=!!ne}})};A.prototype.setLineDash=function(V){this.lineDash=V},A.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},A.prototype.fill=function(){M.call(this,"fill",!1)},A.prototype.stroke=function(){M.call(this,"stroke",!1)},A.prototype.beginPath=function(){this.path=[{type:"begin"}]},A.prototype.moveTo=function(V,ae){if(isNaN(V)||isNaN(ae))throw Rr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var J=this.ctx.transform.applyToPoint(new s(V,ae));this.path.push({type:"mt",x:J.x,y:J.y}),this.ctx.lastPoint=new s(V,ae)},A.prototype.closePath=function(){var V=new s(0,0),ae=0;for(ae=this.path.length-1;ae!==-1;ae--)if(this.path[ae].type==="begin"&&Cr(this.path[ae+1])==="object"&&typeof this.path[ae+1].x=="number"){V=new s(this.path[ae+1].x,this.path[ae+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(V.x,V.y)},A.prototype.lineTo=function(V,ae){if(isNaN(V)||isNaN(ae))throw Rr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var J=this.ctx.transform.applyToPoint(new s(V,ae));this.path.push({type:"lt",x:J.x,y:J.y}),this.ctx.lastPoint=new s(J.x,J.y)},A.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),M.call(this,null,!0)},A.prototype.quadraticCurveTo=function(V,ae,J,z){if(isNaN(J)||isNaN(z)||isNaN(V)||isNaN(ae))throw Rr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Z=this.ctx.transform.applyToPoint(new s(J,z)),le=this.ctx.transform.applyToPoint(new s(V,ae));this.path.push({type:"qct",x1:le.x,y1:le.y,x:Z.x,y:Z.y}),this.ctx.lastPoint=new s(Z.x,Z.y)},A.prototype.bezierCurveTo=function(V,ae,J,z,Z,le){if(isNaN(Z)||isNaN(le)||isNaN(V)||isNaN(ae)||isNaN(J)||isNaN(z))throw Rr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ge=this.ctx.transform.applyToPoint(new s(Z,le)),Me=this.ctx.transform.applyToPoint(new s(V,ae)),Te=this.ctx.transform.applyToPoint(new s(J,z));this.path.push({type:"bct",x1:Me.x,y1:Me.y,x2:Te.x,y2:Te.y,x:ge.x,y:ge.y}),this.ctx.lastPoint=new s(ge.x,ge.y)},A.prototype.arc=function(V,ae,J,z,Z,le){if(isNaN(V)||isNaN(ae)||isNaN(J)||isNaN(z)||isNaN(Z))throw Rr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(le=!!le,!this.ctx.transform.isIdentity){var ge=this.ctx.transform.applyToPoint(new s(V,ae));V=ge.x,ae=ge.y;var Me=this.ctx.transform.applyToPoint(new s(0,J)),Te=this.ctx.transform.applyToPoint(new s(0,0));J=Math.sqrt(Math.pow(Me.x-Te.x,2)+Math.pow(Me.y-Te.y,2))}Math.abs(Z-z)>=2*Math.PI&&(z=0,Z=2*Math.PI),this.path.push({type:"arc",x:V,y:ae,radius:J,startAngle:z,endAngle:Z,counterclockwise:le})},A.prototype.arcTo=function(V,ae,J,z,Z){throw new Error("arcTo not implemented.")},A.prototype.rect=function(V,ae,J,z){if(isNaN(V)||isNaN(ae)||isNaN(J)||isNaN(z))throw Rr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(V,ae),this.lineTo(V+J,ae),this.lineTo(V+J,ae+z),this.lineTo(V,ae+z),this.lineTo(V,ae),this.lineTo(V+J,ae),this.lineTo(V,ae)},A.prototype.fillRect=function(V,ae,J,z){if(isNaN(V)||isNaN(ae)||isNaN(J)||isNaN(z))throw Rr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var Z={};this.lineCap!=="butt"&&(Z.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Z.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(V,ae,J,z),this.fill(),Z.hasOwnProperty("lineCap")&&(this.lineCap=Z.lineCap),Z.hasOwnProperty("lineJoin")&&(this.lineJoin=Z.lineJoin)}},A.prototype.strokeRect=function(V,ae,J,z){if(isNaN(V)||isNaN(ae)||isNaN(J)||isNaN(z))throw Rr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(V,ae,J,z),this.stroke())},A.prototype.clearRect=function(V,ae,J,z){if(isNaN(V)||isNaN(ae)||isNaN(J)||isNaN(z))throw Rr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(V,ae,J,z))},A.prototype.save=function(V){V=typeof V!="boolean"||V;for(var ae=this.pdf.internal.getCurrentPageInfo().pageNumber,J=0;J<this.pdf.internal.getNumberOfPages();J++)this.pdf.setPage(J+1),this.pdf.internal.out("q");if(this.pdf.setPage(ae),V){this.ctx.fontSize=this.pdf.internal.getFontSize();var z=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=z}},A.prototype.restore=function(V){V=typeof V!="boolean"||V;for(var ae=this.pdf.internal.getCurrentPageInfo().pageNumber,J=0;J<this.pdf.internal.getNumberOfPages();J++)this.pdf.setPage(J+1),this.pdf.internal.out("Q");this.pdf.setPage(ae),V&&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)},A.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var f=function(V){var ae,J,z,Z;if(V.isCanvasGradient===!0&&(V=V.getColor()),!V)return{r:0,g:0,b:0,a:0,style:V};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(V))ae=0,J=0,z=0,Z=0;else{var le=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(V);if(le!==null)ae=parseInt(le[1]),J=parseInt(le[2]),z=parseInt(le[3]),Z=1;else if((le=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(V))!==null)ae=parseInt(le[1]),J=parseInt(le[2]),z=parseInt(le[3]),Z=parseFloat(le[4]);else{if(Z=1,typeof V=="string"&&V.charAt(0)!=="#"){var ge=new cD(V);V=ge.ok?ge.toHex():"#000000"}V.length===4?(ae=V.substring(1,2),ae+=ae,J=V.substring(2,3),J+=J,z=V.substring(3,4),z+=z):(ae=V.substring(1,3),J=V.substring(3,5),z=V.substring(5,7)),ae=parseInt(ae,16),J=parseInt(J,16),z=parseInt(z,16)}}return{r:ae,g:J,b:z,a:Z,style:V}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},g=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};A.prototype.fillText=function(V,ae,J,z){if(isNaN(ae)||isNaN(J)||typeof V!="string")throw Rr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(z=isNaN(z)?void 0:z,!h.call(this)){var Z=ee(this.ctx.transform.rotation),le=this.ctx.transform.scaleX;H.call(this,{text:V,x:ae,y:J,scale:le,angle:Z,align:this.textAlign,maxWidth:z})}},A.prototype.strokeText=function(V,ae,J,z){if(isNaN(ae)||isNaN(J)||typeof V!="string")throw Rr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){z=isNaN(z)?void 0:z;var Z=ee(this.ctx.transform.rotation),le=this.ctx.transform.scaleX;H.call(this,{text:V,x:ae,y:J,scale:le,renderingMode:"stroke",angle:Z,align:this.textAlign,maxWidth:z})}},A.prototype.measureText=function(V){if(typeof V!="string")throw Rr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var ae=this.pdf,J=this.pdf.internal.scaleFactor,z=ae.internal.getFontSize(),Z=ae.getStringUnitWidth(V)*z/ae.internal.scaleFactor;return new function(le){var ge=(le=le||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ge}}),this}({width:Z*=Math.round(96*J/72*1e4)/1e4})},A.prototype.scale=function(V,ae){if(isNaN(V)||isNaN(ae))throw Rr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var J=new c(V,0,0,ae,0,0);this.ctx.transform=this.ctx.transform.multiply(J)},A.prototype.rotate=function(V){if(isNaN(V))throw Rr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var ae=new c(Math.cos(V),Math.sin(V),-Math.sin(V),Math.cos(V),0,0);this.ctx.transform=this.ctx.transform.multiply(ae)},A.prototype.translate=function(V,ae){if(isNaN(V)||isNaN(ae))throw Rr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var J=new c(1,0,0,1,V,ae);this.ctx.transform=this.ctx.transform.multiply(J)},A.prototype.transform=function(V,ae,J,z,Z,le){if(isNaN(V)||isNaN(ae)||isNaN(J)||isNaN(z)||isNaN(Z)||isNaN(le))throw Rr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ge=new c(V,ae,J,z,Z,le);this.ctx.transform=this.ctx.transform.multiply(ge)},A.prototype.setTransform=function(V,ae,J,z,Z,le){V=isNaN(V)?1:V,ae=isNaN(ae)?0:ae,J=isNaN(J)?0:J,z=isNaN(z)?1:z,Z=isNaN(Z)?0:Z,le=isNaN(le)?0:le,this.ctx.transform=new c(V,ae,J,z,Z,le)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};A.prototype.drawImage=function(V,ae,J,z,Z,le,ge,Me,Te){var We=this.pdf.getImageProperties(V),Ee=1,Ne=1,ue=1,ne=1;z!==void 0&&Me!==void 0&&(ue=Me/z,ne=Te/Z,Ee=We.width/z*Me/z,Ne=We.height/Z*Te/Z),le===void 0&&(le=ae,ge=J,ae=0,J=0),z!==void 0&&Me===void 0&&(Me=z,Te=Z),z===void 0&&Me===void 0&&(Me=We.width,Te=We.height);var De=this.ctx.transform.decompose(),je=ee(De.rotate.shx),ze=new c,Qe=(ze=(ze=(ze=ze.multiply(De.translate)).multiply(De.skew)).multiply(De.scale)).applyToRectangle(new o(le-ae*ue,ge-J*ne,z*Ee,Z*Ne));if(this.autoPaging){for(var ot,se=w.call(this,Qe),G=[],Be=0;Be<se.length;Be+=1)G.indexOf(se[Be])===-1&&G.push(se[Be]);C(G);for(var Ke=G[0],it=G[G.length-1],Ve=Ke;Ve<it+1;Ve++){this.pdf.setPage(Ve);var bt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],lt=Ve===1?this.posY+this.margin[0]:this.margin[0],ct=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],kt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Je=Ve===1?0:ct+(Ve-2)*kt;if(this.ctx.clip_path.length!==0){var Tt=this.path;ot=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(ot,this.posX+this.margin[3],-Je+lt+this.ctx.prevPageLastElemOffset),F.call(this,"fill",!0),this.path=Tt}var Pt=JSON.parse(JSON.stringify(Qe));Pt=S([Pt],this.posX+this.margin[3],-Je+lt+this.ctx.prevPageLastElemOffset)[0];var Ct=(Ve>Ke||Ve<it)&&y.call(this);Ct&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],bt,kt,null).clip().discardPath()),this.pdf.addImage(V,"JPEG",Pt.x,Pt.y,Pt.w,Pt.h,null,null,je),Ct&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(V,"JPEG",Qe.x,Qe.y,Qe.w,Qe.h,null,null,je)};var w=function(V,ae,J){var z=[];ae=ae||this.pdf.internal.pageSize.width,J=J||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Z=this.posY+this.ctx.prevPageLastElemOffset;switch(V.type){default:case"mt":case"lt":z.push(Math.floor((V.y+Z)/J)+1);break;case"arc":z.push(Math.floor((V.y+Z-V.radius)/J)+1),z.push(Math.floor((V.y+Z+V.radius)/J)+1);break;case"qct":var le=Se(this.ctx.lastPoint.x,this.ctx.lastPoint.y,V.x1,V.y1,V.x,V.y);z.push(Math.floor((le.y+Z)/J)+1),z.push(Math.floor((le.y+le.h+Z)/J)+1);break;case"bct":var ge=xe(this.ctx.lastPoint.x,this.ctx.lastPoint.y,V.x1,V.y1,V.x2,V.y2,V.x,V.y);z.push(Math.floor((ge.y+Z)/J)+1),z.push(Math.floor((ge.y+ge.h+Z)/J)+1);break;case"rect":z.push(Math.floor((V.y+Z)/J)+1),z.push(Math.floor((V.y+V.h+Z)/J)+1)}for(var Me=0;Me<z.length;Me+=1)for(;this.pdf.internal.getNumberOfPages()<z[Me];)v.call(this);return z},v=function(){var V=this.fillStyle,ae=this.strokeStyle,J=this.font,z=this.lineCap,Z=this.lineWidth,le=this.lineJoin;this.pdf.addPage(),this.fillStyle=V,this.strokeStyle=ae,this.font=J,this.lineCap=z,this.lineWidth=Z,this.lineJoin=le},S=function(V,ae,J){for(var z=0;z<V.length;z++)switch(V[z].type){case"bct":V[z].x2+=ae,V[z].y2+=J;case"qct":V[z].x1+=ae,V[z].y1+=J;default:V[z].x+=ae,V[z].y+=J}return V},C=function(V){return V.sort(function(ae,J){return ae-J})},M=function(V,ae){var J=this.fillStyle,z=this.strokeStyle,Z=this.lineCap,le=this.lineWidth,ge=Math.abs(le*this.ctx.transform.scaleX),Me=this.lineJoin;if(this.autoPaging){for(var Te,We,Ee=JSON.parse(JSON.stringify(this.path)),Ne=JSON.parse(JSON.stringify(this.path)),ue=[],ne=0;ne<Ne.length;ne++)if(Ne[ne].x!==void 0)for(var De=w.call(this,Ne[ne]),je=0;je<De.length;je+=1)ue.indexOf(De[je])===-1&&ue.push(De[je]);for(var ze=0;ze<ue.length;ze++)for(;this.pdf.internal.getNumberOfPages()<ue[ze];)v.call(this);C(ue);for(var Qe=ue[0],ot=ue[ue.length-1],se=Qe;se<ot+1;se++){this.pdf.setPage(se),this.fillStyle=J,this.strokeStyle=z,this.lineCap=Z,this.lineWidth=ge,this.lineJoin=Me;var G=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Be=se===1?this.posY+this.margin[0]:this.margin[0],Ke=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],it=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ve=se===1?0:Ke+(se-2)*it;if(this.ctx.clip_path.length!==0){var bt=this.path;Te=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(Te,this.posX+this.margin[3],-Ve+Be+this.ctx.prevPageLastElemOffset),F.call(this,V,!0),this.path=bt}if(We=JSON.parse(JSON.stringify(Ee)),this.path=S(We,this.posX+this.margin[3],-Ve+Be+this.ctx.prevPageLastElemOffset),ae===!1||se===0){var lt=(se>Qe||se<ot)&&y.call(this);lt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],G,it,null).clip().discardPath()),F.call(this,V,ae),lt&&this.pdf.restoreGraphicsState()}this.lineWidth=le}this.path=Ee}else this.lineWidth=ge,F.call(this,V,ae),this.lineWidth=le},F=function(V,ae){if((V!=="stroke"||ae||!g.call(this))&&(V==="stroke"||ae||!h.call(this))){for(var J,z,Z=[],le=this.path,ge=0;ge<le.length;ge++){var Me=le[ge];switch(Me.type){case"begin":Z.push({begin:!0});break;case"close":Z.push({close:!0});break;case"mt":Z.push({start:Me,deltas:[],abs:[]});break;case"lt":var Te=Z.length;if(le[ge-1]&&!isNaN(le[ge-1].x)&&(J=[Me.x-le[ge-1].x,Me.y-le[ge-1].y],Te>0)){for(;Te>=0;Te--)if(Z[Te-1].close!==!0&&Z[Te-1].begin!==!0){Z[Te-1].deltas.push(J),Z[Te-1].abs.push(Me);break}}break;case"bct":J=[Me.x1-le[ge-1].x,Me.y1-le[ge-1].y,Me.x2-le[ge-1].x,Me.y2-le[ge-1].y,Me.x-le[ge-1].x,Me.y-le[ge-1].y],Z[Z.length-1].deltas.push(J);break;case"qct":var We=le[ge-1].x+2/3*(Me.x1-le[ge-1].x),Ee=le[ge-1].y+2/3*(Me.y1-le[ge-1].y),Ne=Me.x+2/3*(Me.x1-Me.x),ue=Me.y+2/3*(Me.y1-Me.y),ne=Me.x,De=Me.y;J=[We-le[ge-1].x,Ee-le[ge-1].y,Ne-le[ge-1].x,ue-le[ge-1].y,ne-le[ge-1].x,De-le[ge-1].y],Z[Z.length-1].deltas.push(J);break;case"arc":Z.push({deltas:[],abs:[],arc:!0}),Array.isArray(Z[Z.length-1].abs)&&Z[Z.length-1].abs.push(Me)}}z=ae?null:V==="stroke"?"stroke":"fill";for(var je=!1,ze=0;ze<Z.length;ze++)if(Z[ze].arc)for(var Qe=Z[ze].abs,ot=0;ot<Qe.length;ot++){var se=Qe[ot];se.type==="arc"?O.call(this,se.x,se.y,se.radius,se.startAngle,se.endAngle,se.counterclockwise,void 0,ae,!je):j.call(this,se.x,se.y),je=!0}else if(Z[ze].close===!0)this.pdf.internal.out("h"),je=!1;else if(Z[ze].begin!==!0){var G=Z[ze].start.x,Be=Z[ze].start.y;$.call(this,Z[ze].deltas,G,Be),je=!0}z&&T.call(this,z),ae&&P.call(this)}},D=function(V){var ae=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,J=ae*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return V-J;case"top":return V+ae-J;case"hanging":return V+ae-2*J;case"middle":return V+ae/2-J;default:return V}},U=function(V){return V+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};A.prototype.createLinearGradient=function(){var V=function(){};return V.colorStops=[],V.addColorStop=function(ae,J){this.colorStops.push([ae,J])},V.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},V.isCanvasGradient=!0,V},A.prototype.createPattern=function(){return this.createLinearGradient()},A.prototype.createRadialGradient=function(){return this.createLinearGradient()};var O=function(V,ae,J,z,Z,le,ge,Me,Te){for(var We=de.call(this,J,z,Z,le),Ee=0;Ee<We.length;Ee++){var Ne=We[Ee];Ee===0&&(Te?k.call(this,Ne.x1+V,Ne.y1+ae):j.call(this,Ne.x1+V,Ne.y1+ae)),ce.call(this,V,ae,Ne.x2,Ne.y2,Ne.x3,Ne.y3,Ne.x4,Ne.y4)}Me?P.call(this):T.call(this,ge)},T=function(V){switch(V){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},P=function(){this.pdf.clip(),this.pdf.discardPath()},k=function(V,ae){this.pdf.internal.out(t(V)+" "+r(ae)+" m")},H=function(V){var ae;switch(V.align){case"right":case"end":ae="right";break;case"center":ae="center";break;default:ae="left"}var J,z,Z,le=this.pdf.getTextDimensions(V.text),ge=D.call(this,V.y),Me=U.call(this,ge)-le.h,Te=this.ctx.transform.applyToPoint(new s(V.x,ge));if(this.autoPaging){var We=this.ctx.transform.decompose(),Ee=new c;Ee=(Ee=(Ee=Ee.multiply(We.translate)).multiply(We.skew)).multiply(We.scale);for(var Ne=this.ctx.transform.applyToRectangle(new o(V.x,ge,le.w,le.h)),ue=Ee.applyToRectangle(new o(V.x,Me,le.w,le.h)),ne=w.call(this,ue),De=[],je=0;je<ne.length;je+=1)De.indexOf(ne[je])===-1&&De.push(ne[je]);C(De);for(var ze=De[0],Qe=De[De.length-1],ot=ze;ot<Qe+1;ot++){this.pdf.setPage(ot);var se=ot===1?this.posY+this.margin[0]:this.margin[0],G=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Be=this.pdf.internal.pageSize.height-this.margin[2],Ke=Be-this.margin[0],it=this.pdf.internal.pageSize.width-this.margin[1],Ve=it-this.margin[3],bt=ot===1?0:G+(ot-2)*Ke;if(this.ctx.clip_path.length!==0){var lt=this.path;J=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=S(J,this.posX+this.margin[3],-1*bt+se),F.call(this,"fill",!0),this.path=lt}var ct=S([JSON.parse(JSON.stringify(ue))],this.posX+this.margin[3],-bt+se+this.ctx.prevPageLastElemOffset)[0];V.scale>=.01&&(z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(z*V.scale),Z=this.lineWidth,this.lineWidth=Z*V.scale);var kt=this.autoPaging!=="text";if(kt||ct.y+ct.h<=Be){if(kt||ct.y>=se&&ct.x<=it){var Je=kt?V.text:this.pdf.splitTextToSize(V.text,V.maxWidth||it-ct.x)[0],Tt=S([JSON.parse(JSON.stringify(Ne))],this.posX+this.margin[3],-bt+se+this.ctx.prevPageLastElemOffset)[0],Pt=kt&&(ot>ze||ot<Qe)&&y.call(this);Pt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ve,Ke,null).clip().discardPath()),this.pdf.text(Je,Tt.x,Tt.y,{angle:V.angle,align:ae,renderingMode:V.renderingMode}),Pt&&this.pdf.restoreGraphicsState()}}else ct.y<Be&&(this.ctx.prevPageLastElemOffset+=Be-ct.y);V.scale>=.01&&(this.pdf.setFontSize(z),this.lineWidth=Z)}}else V.scale>=.01&&(z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(z*V.scale),Z=this.lineWidth,this.lineWidth=Z*V.scale),this.pdf.text(V.text,Te.x+this.posX,Te.y+this.posY,{angle:V.angle,align:ae,renderingMode:V.renderingMode,maxWidth:V.maxWidth}),V.scale>=.01&&(this.pdf.setFontSize(z),this.lineWidth=Z)},j=function(V,ae,J,z){J=J||0,z=z||0,this.pdf.internal.out(t(V+J)+" "+r(ae+z)+" l")},$=function(V,ae,J){return this.pdf.lines(V,ae,J,null,null)},ce=function(V,ae,J,z,Z,le,ge,Me){this.pdf.internal.out([e(i(J+V)),e(a(z+ae)),e(i(Z+V)),e(a(le+ae)),e(i(ge+V)),e(a(Me+ae)),"c"].join(" "))},de=function(V,ae,J,z){for(var Z=2*Math.PI,le=Math.PI/2;ae>J;)ae-=Z;var ge=Math.abs(J-ae);ge<Z&&z&&(ge=Z-ge);for(var Me=[],Te=z?-1:1,We=ae;ge>1e-5;){var Ee=We+Te*Math.min(ge,le);Me.push(fe.call(this,V,We,Ee)),ge-=Math.abs(Ee-We),We=Ee}return Me},fe=function(V,ae,J){var z=(J-ae)/2,Z=V*Math.cos(z),le=V*Math.sin(z),ge=Z,Me=-le,Te=ge*ge+Me*Me,We=Te+ge*Z+Me*le,Ee=4/3*(Math.sqrt(2*Te*We)-We)/(ge*le-Me*Z),Ne=ge-Ee*Me,ue=Me+Ee*ge,ne=Ne,De=-ue,je=z+ae,ze=Math.cos(je),Qe=Math.sin(je);return{x1:V*Math.cos(ae),y1:V*Math.sin(ae),x2:Ne*ze-ue*Qe,y2:Ne*Qe+ue*ze,x3:ne*ze-De*Qe,y3:ne*Qe+De*ze,x4:V*Math.cos(J),y4:V*Math.sin(J)}},ee=function(V){return 180*V/Math.PI},Se=function(V,ae,J,z,Z,le){var ge=V+.5*(J-V),Me=ae+.5*(z-ae),Te=Z+.5*(J-Z),We=le+.5*(z-le),Ee=Math.min(V,Z,ge,Te),Ne=Math.max(V,Z,ge,Te),ue=Math.min(ae,le,Me,We),ne=Math.max(ae,le,Me,We);return new o(Ee,ue,Ne-Ee,ne-ue)},xe=function(V,ae,J,z,Z,le,ge,Me){var Te,We,Ee,Ne,ue,ne,De,je,ze,Qe,ot,se,G,Be,Ke=J-V,it=z-ae,Ve=Z-J,bt=le-z,lt=ge-Z,ct=Me-le;for(We=0;We<41;We++)ze=(De=(Ee=V+(Te=We/40)*Ke)+Te*((ue=J+Te*Ve)-Ee))+Te*(ue+Te*(Z+Te*lt-ue)-De),Qe=(je=(Ne=ae+Te*it)+Te*((ne=z+Te*bt)-Ne))+Te*(ne+Te*(le+Te*ct-ne)-je),We==0?(ot=ze,se=Qe,G=ze,Be=Qe):(ot=Math.min(ot,ze),se=Math.min(se,Qe),G=Math.max(G,ze),Be=Math.max(Be,Qe));return new o(Math.round(ot),Math.round(se),Math.round(G-ot),Math.round(Be-se))},Pe=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var V,ae,J=(V=this.ctx.lineDash,ae=this.ctx.lineDashOffset,JSON.stringify({lineDash:V,lineDashOffset:ae}));this.prevLineDash!==J&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=J)}}})(cn.API),(function(n){var e=function(s){var o,c,l,u,A,f,h,g,y,w;for(c=[],l=0,u=(s+=o="\0\0\0\0".slice(s.length%4||4)).length;u>l;l+=4)(A=(s.charCodeAt(l)<<24)+(s.charCodeAt(l+1)<<16)+(s.charCodeAt(l+2)<<8)+s.charCodeAt(l+3))!==0?(f=(A=((A=((A=((A=(A-(w=A%85))/85)-(y=A%85))/85)-(g=A%85))/85)-(h=A%85))/85)%85,c.push(f+33,h+33,g+33,y+33,w+33)):c.push(122);return(function(v,S){for(var C=S;C>0;C--)v.pop()})(c,o.length),String.fromCharCode.apply(String,c)+"~>"},t=function(s){var o,c,l,u,A,f=String,h="length",g=255,y="charCodeAt",w="slice",v="replace";for(s[w](-2),s=s[w](0,-2)[v](/\s/g,"")[v]("z","!!!!!"),l=[],u=0,A=(s+=o="uuuuu"[w](s[h]%5||5))[h];A>u;u+=5)c=52200625*(s[y](u)-33)+614125*(s[y](u+1)-33)+7225*(s[y](u+2)-33)+85*(s[y](u+3)-33)+(s[y](u+4)-33),l.push(g&c>>24,g&c>>16,g&c>>8,g&c);return(function(S,C){for(var M=C;M>0;M--)S.pop()})(l,o[h]),f.fromCharCode.apply(f,l)},r=function(s){return s.split("").map(function(o){return("0"+o.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(s){var o=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"),o.test(s)===!1)return"";for(var c="",l=0;l<s.length;l+=2)c+=String.fromCharCode("0x"+(s[l]+s[l+1]));return c},a=function(s){for(var o=new Uint8Array(s.length),c=s.length;c--;)o[c]=s.charCodeAt(c);return(o=j2(o)).reduce(function(l,u){return l+String.fromCharCode(u)},"")};n.processDataByFilters=function(s,o){var c=0,l=s||"",u=[];for(typeof(o=o||[])=="string"&&(o=[o]),c=0;c<o.length;c+=1)switch(o[c]){case"ASCII85Decode":case"/ASCII85Decode":l=t(l),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=e(l),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=i(l),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=r(l),u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=a(l),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[c]+'" is not implemented')}return{data:l,reverseChain:u.reverse().join(" ")}}})(cn.API),(function(n){n.loadFile=function(e,t,r){return(function(i,a,s){a=a!==!1,s=typeof s=="function"?s:function(){};var o=void 0;try{o=(function(c,l,u){var A=new XMLHttpRequest,f=0,h=function(g){var y=g.length,w=[],v=String.fromCharCode;for(f=0;f<y;f+=1)w.push(v(255&g.charCodeAt(f)));return w.join("")};if(A.open("GET",c,!l),A.overrideMimeType("text/plain; charset=x-user-defined"),l===!1&&(A.onload=function(){A.status===200?u(h(this.responseText)):u(void 0)}),A.send(null),l&&A.status===200)return h(A.responseText)})(i,a,s)}catch{}return o})(e,t,r)},n.allowFsRead=void 0,n.loadImageFile=n.loadFile})(cn.API),(function(n){function e(){return(bn.html2canvas?Promise.resolve(bn.html2canvas):A0(()=>Promise.resolve().then(()=>fj),void 0)).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function t(){return(bn.DOMPurify?Promise.resolve(bn.DOMPurify):A0(()=>import("./purify.es-CxTuOytG.js"),[])).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var r=function(o){var c=Cr(o);return c==="undefined"?"undefined":c==="string"||o instanceof String?"string":c==="number"||o instanceof Number?"number":c==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":c==="object"?"object":"unknown"},i=function(o,c){var l=document.createElement(o);for(var u in c.className&&(l.className=c.className),c.innerHTML&&c.dompurify&&(l.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)l.style[u]=c.style[u];return l},a=function o(c,l){for(var u=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),A=c.firstChild;A;A=A.nextSibling)l!==!0&&A.nodeType===1&&A.nodeName==="SCRIPT"||u.appendChild(o(A,l));return c.nodeType===1&&(c.nodeName==="CANVAS"?(u.width=c.width,u.height=c.height,u.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(u.value=c.value),u.addEventListener("load",function(){u.scrollTop=c.scrollTop,u.scrollLeft=c.scrollLeft},!0)),u},s=function o(c){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),u=o.convert(Promise.resolve(),l);return(u=u.setProgress(1,o,1,[o])).set(c)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(o,c){return o.__proto__=c||s.prototype,o},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(o,c){return this.then(function(){switch(c=c||(function(l){switch(r(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(o),c){case"string":return this.then(t).then(function(l){return this.set({src:i("div",{innerHTML:o,dompurify:l})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},s.prototype.to=function(o){switch(o){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 o={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},c=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(i("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 o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(c){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,c(this.prop.container,l)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(e).then(function(c){var l=this.opt.jsPDF,u=this.opt.fontFaces,A=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,f=Object.assign({async:!0,allowTaint:!0,scale:A,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 f.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=u,u)for(var h=0;h<u.length;++h){var g=u[h],y=g.src.find(function(w){return w.format==="truetype"});y&&l.addFont(y.url,g.ref.name,g.ref.style)}return f.windowHeight=f.windowHeight||0,f.windowHeight=f.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):f.windowHeight,l.context2d.save(!0),c(this.prop.container,f)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o})},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(o,c,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(o,c):this.outputPdf(o,c)},s.prototype.outputPdf=function(o,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,c)})},s.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(o){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 "'+o+'" is not supported.'}})},s.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}: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(o){if(r(o)!=="object")return this;var c=Object.keys(o||{}).map(function(l){if(l in s.template.prop)return function(){this.prop[l]=o[l]};switch(l){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[l]=o[l]}}},this);return this.then(function(){return this.thenList(c)})},s.prototype.get=function(o,c){return this.then(function(){var l=o in s.template.prop?this.prop[o]:this.opt[o];return c?c(l):l})},s.prototype.setMargin=function(o){return this.then(function(){switch(r(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o}).then(this.setPageSize)},s.prototype.setPageSize=function(o){function c(l,u){return Math.floor(l*u/72*96)}return this.then(function(){(o=o||cn.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:c(o.inner.width,o.k),height:c(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},s.prototype.setProgress=function(o,c,l,u){return o!=null&&(this.progress.val=o),c!=null&&(this.progress.state=c),l!=null&&(this.progress.n=l),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(o,c,l,u){return this.setProgress(o?this.progress.val+o:null,c||null,l?this.progress.n+l:null,u?this.progress.stack.concat(u):null)},s.prototype.then=function(o,c){var l=this;return this.thenCore(o,c,function(u,A){return l.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,function(f){return l.updateProgress(null,u),f}).then(u,A).then(function(f){return l.updateProgress(1),f})})},s.prototype.thenCore=function(o,c,l){l=l||Promise.prototype.then;var u=this;o&&(o=o.bind(u)),c&&(c=c.bind(u));var A=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?u:s.convert(Object.assign({},u),Promise.prototype),f=l.call(A,o,c);return s.convert(f,u.__proto__)},s.prototype.thenExternal=function(o,c){return Promise.prototype.then.call(this,o,c)},s.prototype.thenList=function(o){var c=this;return o.forEach(function(l){c=c.thenCore(l)}),c},s.prototype.catch=function(o){o&&(o=o.bind(this));var c=Promise.prototype.catch.call(this,o);return s.convert(c,this)},s.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},s.prototype.error=function(o){return this.then(function(){throw new Error(o)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,cn.getPageSize=function(o,c,l){if(Cr(o)==="object"){var u=o;o=u.orientation,c=u.unit||c,l=u.format||l}c=c||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var A,f=(""+l).toLowerCase(),h={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(c){case"pt":A=1;break;case"mm":A=72/25.4;break;case"cm":A=72/2.54;break;case"in":A=72;break;case"px":A=.75;break;case"pc":case"em":A=12;break;case"ex":A=6;break;default:throw"Invalid unit: "+c}var g,y=0,w=0;if(h.hasOwnProperty(f))y=h[f][1]/A,w=h[f][0]/A;else try{y=l[1],w=l[0]}catch{throw new Error("Invalid format: "+l)}if(o==="p"||o==="portrait")o="p",w>y&&(g=w,w=y,y=g);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",y>w&&(g=w,w=y,y=g)}return{width:w,height:y,unit:c,k:A,orientation:o}},n.html=function(o,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(P_):null;var l=new s(c);return c.worker?l:l.from(o).doCallback()}})(cn.API),cn.API.addJS=function(n){var e,t,r=(function(i){for(var a="",s=0;s<i.length;s++){var o=i[s];if(o==="("||o===")"){for(var c=0,l=s-1;l>=0&&i[l]==="\\";l--)c++;a+=c%2==0?"\\"+o:o}else a+=o}return a})(n);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"),t=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&&t!==void 0&&this.internal.out("/Names <</JavaScript "+e+" 0 R>>")}),this},(function(n){var e;n.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=t.outline.render().split(/\r\n/),a=0;a<i.length;a++){var s=i[a],o=r.exec(s);if(o!=null){var c=o[1];t.internal.newObjectDeferredBegin(c,!1)}t.internal.write(s)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,u=[];for(a=0;a<l;a++){var A=t.internal.newObject();u.push(A);var f=t.internal.getPageInfo(a+1);t.internal.write("<< /D["+f.objId+" 0 R /XYZ null null null]>> endobj")}var h=t.internal.newObject();for(t.internal.write("<< /Names [ "),a=0;a<u.length;a++)t.internal.write("(page_"+(a+1)+")"+u[a]+" 0 R");t.internal.write(" ] >>","endobj"),e=t.internal.newObject(),t.internal.write("<< /Dests "+h+" 0 R"),t.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var t=this;t.outline.root.children.length>0&&(t.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&t.internal.write("/Names "+e+" 0 R"))}]),n.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(r,i,a){var s={title:i,options:a,children:[]};return r==null&&(r=this.root),r.children.push(s),s},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(r){r.id=t.internal.newObjectDeferred();for(var i=0;i<r.children.length;i++)this.genIds_r(r.children[i])},t.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()},t.outline.renderItems=function(r){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<r.children.length;a++){var s=r.children[a];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(r)),a>0&&this.line("/Prev "+this.makeRef(r.children[a-1])),a<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[a+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 o=this.count=this.count_r({count:0},s);if(o>0&&this.line("/Count "+o),s.options&&s.options.pageNumber){var c=t.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var l=0;l<r.children.length;l++)this.renderItems(r.children[l])},t.outline.line=function(r){this.ctx.val+=r+`\r
`},t.outline.makeRef=function(r){return r.id+" 0 R"},t.outline.makeString=function(r){return"("+t.internal.pdfEscape(r)+")"},t.outline.objStart=function(r){this.ctx.val+=`\r
`+r.id+` 0 obj\r
<<\r
`},t.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},t.outline.count_r=function(r,i){for(var a=0;a<i.children.length;a++)r.count++,this.count_r(r,i.children[a]);return r.count}}])})(cn.API),(function(n){var e=[192,193,194,195,196,197,198,199];n.processJPEG=function(t,r,i,a,s,o){var c,l=this.decode.DCT_DECODE,u=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=s||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,c=(function(A){for(var f,h=256*A.charCodeAt(4)+A.charCodeAt(5),g=A.length,y={width:0,height:0,numcomponents:1},w=4;w<g;w+=2){if(w+=h,e.indexOf(A.charCodeAt(w+1))!==-1){f=256*A.charCodeAt(w+5)+A.charCodeAt(w+6),y={width:256*A.charCodeAt(w+7)+A.charCodeAt(w+8),height:f,numcomponents:A.charCodeAt(w+9)};break}h=256*A.charCodeAt(w+2)+A.charCodeAt(w+3)}return y})(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t),c.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}u={data:t,width:c.width,height:c.height,colorSpace:o,bitsPerComponent:8,filter:l,index:r,alias:i}}return u}})(cn.API),cn.API.processPNG=function(n,e,t,r){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var i,a=ste(n,{checkCrc:!0}),s=a.width,o=a.height,c=a.channels,l=a.palette,u=a.depth;i=l&&c===1?(function(O){for(var T=O.width,P=O.height,k=O.data,H=O.palette,j=O.depth,$=!1,ce=[],de=[],fe=void 0,ee=!1,Se=0,xe=0;xe<H.length;xe++){var Pe=vT(H[xe],4),V=Pe[0],ae=Pe[1],J=Pe[2],z=Pe[3];ce.push(V,ae,J),z!=null&&(z===0?(Se++,de.length<1&&de.push(xe)):z<255&&(ee=!0))}if(ee||Se>1){$=!0,de=void 0;var Z=T*P;fe=new Uint8Array(Z);for(var le=new DataView(k.buffer),ge=0;ge<Z;ge++){var Me=B_(le,ge,j),Te=vT(H[Me],4)[3];fe[ge]=Te}}else Se===0&&(de=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:$?8:void 0,colorBytes:k,alphaBytes:fe,needSMask:$,palette:ce,mask:de}})(a):c===2||c===4?(function(O){for(var T=O.data,P=O.width,k=O.height,H=O.channels,j=O.depth,$=H===2?"DeviceGray":"DeviceRGB",ce=H-1,de=P*k,fe=ce,ee=de*fe,Se=1*de,xe=Math.ceil(ee*j/8),Pe=Math.ceil(Se*j/8),V=new Uint8Array(xe),ae=new Uint8Array(Pe),J=new DataView(T.buffer),z=new DataView(V.buffer),Z=new DataView(ae.buffer),le=!1,ge=0;ge<de;ge++){for(var Me=ge*H,Te=0;Te<fe;Te++)bk(z,B_(J,Me+Te,j),ge*fe+Te,j);var We=B_(J,Me+fe,j);We<(1<<j)-1&&(le=!0),bk(Z,We,1*ge,j)}return{colorSpace:$,colorsPerPixel:ce,sMaskBitsPerComponent:le?j:void 0,colorBytes:V,alphaBytes:ae,needSMask:le}})(a):(function(O){var T=O.data,P=O.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:P,colorsPerPixel:P==="DeviceGray"?1:3,colorBytes:T instanceof Uint16Array?(function(k){for(var H=k.length,j=new Uint8Array(2*H),$=new DataView(j.buffer,j.byteOffset,j.byteLength),ce=0;ce<H;ce++)$.setUint16(2*ce,k[ce],!1);return j})(T):T,needSMask:!1}})(a);var A,f,h,g=i,y=g.colorSpace,w=g.colorsPerPixel,v=g.sMaskBitsPerComponent,S=g.colorBytes,C=g.alphaBytes,M=g.needSMask,F=g.palette,D=g.mask,U=null;return r!==cn.API.image_compression.NONE&&typeof j2=="function"?(U=(function(O){var T;switch(O){case cn.API.image_compression.FAST:T=11;break;case cn.API.image_compression.MEDIUM:T=13;break;case cn.API.image_compression.SLOW:T=14;break;default:T=12}return T})(r),A=this.decode.FLATE_DECODE,f="/Predictor ".concat(U," /Colors ").concat(w," /BitsPerComponent ").concat(u," /Columns ").concat(s),n=pk(S,Math.ceil(s*w*u/8),w,u,r),M&&(h=pk(C,Math.ceil(s*v/8),1,v,r))):(A=void 0,f=void 0,n=S,M&&(h=C)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:t,data:n,index:e,filter:A,decodeParameters:f,transparency:D,palette:F,sMask:h,predictor:U,width:s,height:o,bitsPerComponent:u,sMaskBitsPerComponent:v,colorSpace:y}}},(function(n){n.processGIF89A=function(e,t,r,i){var a=new Ete(e),s=a.width,o=a.height,c=[];a.decodeAndBlitFrameRGBA(0,c);var l={data:c,width:s,height:o},u=new T_(100).encode(l,100);return n.processJPEG.call(this,u,t,r,i)},n.processGIF87A=n.processGIF89A})(cn.API),lc.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var e=0;e<n;e++){var t=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[e]={red:i,green:r,blue:t,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},lc.prototype.parseBGR=function(){this.pos=this.offset;var n="bit"+this.bitPP,e=this.width*this.height*4;if(e>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(e);try{this[n]()}catch(t){Rr.log("bit decode error:"+t)}},lc.prototype.bit1=function(){var n,e=Math.ceil(this.width/8),t=e%4;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i<e;i++)for(var a=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+8*i*4,o=0;o<8&&8*i+o<this.width;o++){var c=this.palette[a>>7-o&1];this.data[s+4*o]=c.blue,this.data[s+4*o+1]=c.green,this.data[s+4*o+2]=c.red,this.data[s+4*o+3]=255}t!==0&&(this.pos+=4-t)}},lc.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),e=n%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<n;i++){var a=this.datav.getUint8(this.pos++,!0),s=r*this.width*4+2*i*4,o=a>>4,c=15&a,l=this.palette[o];if(this.data[s]=l.blue,this.data[s+1]=l.green,this.data[s+2]=l.red,this.data[s+3]=255,2*i+1>=this.width)break;l=this.palette[c],this.data[s+4]=l.blue,this.data[s+4+1]=l.green,this.data[s+4+2]=l.red,this.data[s+4+3]=255}e!==0&&(this.pos+=4-e)}},lc.prototype.bit8=function(){for(var n=this.width%4,e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var i=this.datav.getUint8(this.pos++,!0),a=t*this.width*4+4*r;if(i<this.palette.length){var s=this.palette[i];this.data[a]=s.red,this.data[a+1]=s.green,this.data[a+2]=s.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}n!==0&&(this.pos+=4-n)}},lc.prototype.bit15=function(){for(var n=this.width%3,e=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&e)/e*255|0,o=(a>>5&e)/e*255|0,c=(a>>10&e)/e*255|0,l=a>>15?255:0,u=r*this.width*4+4*i;this.data[u]=c,this.data[u+1]=o,this.data[u+2]=s,this.data[u+3]=l}this.pos+=n}},lc.prototype.bit16=function(){for(var n=this.width%3,e=parseInt("11111",2),t=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&e)/e*255|0,c=(s>>5&t)/t*255|0,l=(s>>11)/e*255|0,u=i*this.width*4+4*a;this.data[u]=l,this.data[u+1]=c,this.data[u+2]=o,this.data[u+3]=255}this.pos+=n}},lc.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*t;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=r,this.data[s+3]=255}this.pos+=this.width%4}},lc.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var e=this.bottom_up?n:this.height-1-n,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=e*this.width*4+4*t;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=r,this.data[o+3]=s}},lc.prototype.getData=function(){return this.data},(function(n){n.processBMP=function(e,t,r,i){var a=new lc(e,!1),s=a.width,o=a.height,c={data:a.getData(),width:s,height:o},l=new T_(100).encode(c,100);return n.processJPEG.call(this,l,t,r,i)}})(cn.API),xk.prototype.getData=function(){return this.data},(function(n){n.processWEBP=function(e,t,r,i){var a=new xk(e),s=a.width,o=a.height,c={data:a.getData(),width:s,height:o},l=new T_(100).encode(c,100);return n.processJPEG.call(this,l,t,r,i)}})(cn.API),cn.API.processRGBA=function(n,e,t){for(var r=n.data,i=r.length,a=new Uint8Array(i/4*3),s=new Uint8Array(i/4),o=0,c=0,l=0;l<i;l+=4){var u=r[l],A=r[l+1],f=r[l+2],h=r[l+3];a[o++]=u,a[o++]=A,a[o++]=f,s[c++]=h}var g=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:g,index:e,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},cn.API.setLanguage=function(n){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},fh=cn.API,h1=fh.getCharWidthsArray=function(n,e){var t,r,i=(e=e||{}).font||this.internal.getFont(),a=e.fontSize||this.internal.getFontSize(),s=e.charSpace||this.internal.getCharSpace(),o=e.widths?e.widths:i.metadata.Unicode.widths,c=o.fof?o.fof:1,l=e.kerning?e.kerning:i.metadata.Unicode.kerning,u=l.fof?l.fof:1,A=e.doKerning!==!1,f=0,h=n.length,g=0,y=o[0]||c,w=[];for(t=0;t<h;t++)r=n.charCodeAt(t),typeof i.metadata.widthOfString=="function"?w.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(r))+s*(1e3/a)||0)/1e3):(f=A&&Cr(l[r])==="object"&&!isNaN(parseInt(l[r][g],10))?l[r][g]/u:0,w.push((o[r]||y)/c+f)),g=r;return w},hk=fh.getStringUnitWidth=function(n,e){var t=(e=e||{}).fontSize||this.internal.getFontSize(),r=e.font||this.internal.getFont(),i=e.charSpace||this.internal.getCharSpace();return fh.processArabic&&(n=fh.processArabic(n)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(n,t,i)/t:h1.apply(this,arguments).reduce(function(a,s){return a+s},0)},fk=function(n,e,t,r){for(var i=[],a=0,s=n.length,o=0;a!==s&&o+e[a]<t;)o+=e[a],a++;i.push(n.slice(0,a));var c=a;for(o=0;a!==s;)o+e[a]>r&&(i.push(n.slice(c,a)),o=0,c=a),o+=e[a],a++;return c!==a&&i.push(n.slice(c,a)),i},mk=function(n,e,t){t||(t={});var r,i,a,s,o,c,l,u=[],A=[u],f=t.textIndent||0,h=0,g=0,y=n.split(" "),w=h1.apply(this,[" ",t])[0];if(c=t.lineIndent===-1?y[0].length+2:t.lineIndent||0){var v=Array(c).join(" "),S=[];y.map(function(M){(M=M.split(/\s*\n/)).length>1?S=S.concat(M.map(function(F,D){return(D&&F.length?`
`:"")+F})):S.push(M[0])}),y=S,c=hk.apply(this,[v,t])}for(a=0,s=y.length;a<s;a++){var C=0;if(r=y[a],c&&r[0]==`
`&&(r=r.substr(1),C=1),f+h+(g=(i=h1.apply(this,[r,t])).reduce(function(M,F){return M+F},0))>e||C){if(g>e){for(o=fk.apply(this,[r,i,e-(f+h),e]),u.push(o.shift()),u=[o.pop()];o.length;)A.push([o.shift()]);g=i.slice(r.length-(u[0]?u[0].length:0)).reduce(function(M,F){return M+F},0)}else u=[r];A.push(u),f=g+c,h=w}else u.push(r),f+=h+g,h=w}return l=c?function(M,F){return(F?v:"")+M.join(" ")}:function(M){return M.join(" ")},A.map(l)},fh.splitTextToSize=function(n,e,t){var r,i=(t=t||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var A=this.internal.getFont(u.fontName,u.fontStyle),f="Unicode";return A.metadata[f]?{widths:A.metadata[f].widths||{0:1},kerning:A.metadata[f].kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);r=Array.isArray(n)?n:String(n).split(/\r?\n/);var s=1*this.internal.scaleFactor*e/i;a.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=t.lineIndent;var o,c,l=[];for(o=0,c=r.length;o<c;o++)l=l.concat(mk.apply(this,[r[o],s,a]));return l},(function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var e="0123456789abcdef",t="klmnopqrstuvwxyz",r={},i={},a=0;a<16;a++)r[t[a]]=e[a],i[e[a]]=t[a];var s=function(f){return"0x"+parseInt(f,10).toString(16)},o=n.__fontmetrics__.compress=function(f){var h,g,y,w,v=["{"];for(var S in f){if(h=f[S],isNaN(parseInt(S,10))?g="'"+S+"'":(S=parseInt(S,10),g=(g=s(S).slice(2)).slice(0,-1)+i[g.slice(-1)]),typeof h=="number")h<0?(y=s(h).slice(3),w="-"):(y=s(h).slice(2),w=""),y=w+y.slice(0,-1)+i[y.slice(-1)];else{if(Cr(h)!=="object")throw new Error("Don't know what to do with value type "+Cr(h)+".");y=o(h)}v.push(g+y)}return v.push("}"),v.join("")},c=n.__fontmetrics__.uncompress=function(f){if(typeof f!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,g,y,w,v={},S=1,C=v,M=[],F="",D="",U=f.length-1,O=1;O<U;O+=1)(w=f[O])=="'"?h?(y=h.join(""),h=void 0):h=[]:h?h.push(w):w=="{"?(M.push([C,y]),C={},y=void 0):w=="}"?((g=M.pop())[0][g[1]]=C,y=void 0,C=g[0]):w=="-"?S=-1:y===void 0?r.hasOwnProperty(w)?(F+=r[w],y=parseInt(F,16)*S,S=1,F=""):F+=w:r.hasOwnProperty(w)?(D+=r[w],C[y]=parseInt(D,16)*S,S=1,y=void 0,D=""):D+=w;return v},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},A={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":c("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":c("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":c("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};n.events.push(["addFont",function(f){var h=f.font,g=A.Unicode[h.postScriptName];g&&(h.metadata.Unicode={},h.metadata.Unicode.widths=g.widths,h.metadata.Unicode.kerning=g.kerning);var y=u.Unicode[h.postScriptName];y&&(h.metadata.Unicode.encoding=y,h.encoding=y.codePages[0])}])})(cn.API),(function(n){var e=function(t){for(var r=t.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=t.charCodeAt(a);return i};n.API.events.push(["addFont",function(t){var r=void 0,i=t.font,a=t.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(r=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(s,o){o=/^\x00\x01\x00\x00/.test(o)?e(o):e(Wv(o)),s.metadata=n.API.TTFFont.open(o),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(i,r)}}])})(cn),cn.API.addSvgAsImage=function(n,e,t,r,i,a,s,o){if(isNaN(e)||isNaN(t))throw Rr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(i))throw Rr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=i;var l=c.getContext("2d");l.fillStyle="#fff",l.fillRect(0,0,c.width,c.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},A=this;return(bn.canvg?Promise.resolve(bn.canvg):A0(()=>import("./index.es-9zlfCGBl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]))).catch(function(f){return Promise.reject(new Error("Could not load canvg: "+f))}).then(function(f){return f.default?f.default:f}).then(function(f){return f.fromString(l,n,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(f){return f.render(u)}).then(function(){A.addImage(c.toDataURL("image/jpeg",1),e,t,r,i,s,o)})},cn.API.putTotalPages=function(n){var e,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(e=new RegExp(n,"g"),t=this.internal.getNumberOfPages()):(e=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i<this.internal.pages[r].length;i++)this.internal.pages[r][i]=this.internal.pages[r][i].replace(e,t);return this},cn.API.viewerPreferences=function(n,e){var t;n=n||{},e=e||!1;var r,i,a,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(s),c=[],l=0,u=0,A=0;function f(g,y){var w,v=!1;for(w=0;w<g.length;w+=1)g[w]===y&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,n==="reset"||e===!0){var h=o.length;for(A=0;A<h;A+=1)t[o[A]].value=t[o[A]].defaultValue,t[o[A]].explicitSet=!1}if(Cr(n)==="object"){for(i in n)if(a=n[i],f(o,i)&&a!==void 0){if(t[i].type==="boolean"&&typeof a=="boolean")t[i].value=a;else if(t[i].type==="name"&&f(t[i].valueSet,a))t[i].value=a;else if(t[i].type==="integer"&&Number.isInteger(a))t[i].value=a;else if(t[i].type==="array"){for(l=0;l<a.length;l+=1)if(r=!0,a[l].length===1&&typeof a[l][0]=="number")c.push(String(a[l]-1));else if(a[l].length>1){for(u=0;u<a[l].length;u+=1)typeof a[l][u]!="number"&&(r=!1);r===!0&&c.push([a[l][0]-1,a[l][1]-1].join(" "))}t[i].value="["+c.join(" ")+"]"}else t[i].value=t[i].defaultValue;t[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var g,y=[];for(g in t)t[g].explicitSet===!0&&(t[g].type==="name"?y.push("/"+g+" /"+t[g].value):y.push("/"+g+" "+t[g].value));y.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+y.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},cn.API.addMetadata=function(n,e){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceUri:e??"http://jspdf.default.namespaceuri/",rawXml:typeof e=="boolean"&&e},this.internal.events.subscribe("putCatalog",Tte),this.internal.events.subscribe("postPutResources",Bte)),this},(function(n){var e=n.API,t=e.pdfEscape16=function(a,s){for(var o,c=s.metadata.Unicode.widths,l=["","0","00","000","0000"],u=[""],A=0,f=a.length;A<f;++A){if(o=s.metadata.characterToGlyph(a.charCodeAt(A)),s.metadata.glyIdsUsed.push(o),s.metadata.toUnicode[o]=a.charCodeAt(A),c.indexOf(o)==-1&&(c.push(o),c.push([parseInt(s.metadata.widthOfGlyph(o),10)])),o=="0")return u.join("");o=o.toString(16),u.push(l[4-o.length],o)}return u.join("")},r=function(a){var s,o,c,l,u,A,f;for(u=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,c=[],A=0,f=(o=Object.keys(a).sort(function(h,g){return h-g})).length;A<f;A++)s=o[A],c.length>=100&&(u+=`
`+c.length+` beginbfchar
`+c.join(`
`)+`
endbfchar`,c=[]),a[s]!==void 0&&a[s]!==null&&typeof a[s].toString=="function"&&(l=("0000"+a[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),c.push("<"+s+"><"+l+">"));return c.length&&(u+=`
`+c.length+` beginbfchar
`+c.join(`
`)+`
endbfchar
`),u+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};e.events.push(["putFont",function(a){(function(s){var o=s.font,c=s.out,l=s.newObject,u=s.putStream;if(o.metadata instanceof n.API.TTFFont&&o.encoding==="Identity-H"){for(var A=o.metadata.Unicode.widths,f=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),h="",g=0;g<f.length;g++)h+=String.fromCharCode(f[g]);var y=l();u({data:h,addLength1:!0,objectId:y}),c("endobj");var w=l();u({data:r(o.metadata.toUnicode),addLength1:!0,objectId:w}),c("endobj");var v=l();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+Hh(o.fontName)),c("/FontFile2 "+y+" 0 R"),c("/FontBBox "+n.API.PDFObject.convert(o.metadata.bbox)),c("/Flags "+o.metadata.flags),c("/StemV "+o.metadata.stemV),c("/ItalicAngle "+o.metadata.italicAngle),c("/Ascent "+o.metadata.ascender),c("/Descent "+o.metadata.decender),c("/CapHeight "+o.metadata.capHeight),c(">>"),c("endobj");var S=l();c("<<"),c("/Type /Font"),c("/BaseFont /"+Hh(o.fontName)),c("/FontDescriptor "+v+" 0 R"),c("/W "+n.API.PDFObject.convert(A)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+o.encoding+")"),c(">>"),c(">>"),c("endobj"),o.objectNumber=l(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+w+" 0 R"),c("/BaseFont /"+Hh(o.fontName)),c("/Encoding /"+o.encoding),c("/DescendantFonts ["+S+" 0 R]"),c(">>"),c("endobj"),o.isAlreadyPutted=!0}})(a)}]),e.events.push(["putFont",function(a){(function(s){var o=s.font,c=s.out,l=s.newObject,u=s.putStream;if(o.metadata instanceof n.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var A=o.metadata.rawData,f="",h=0;h<A.length;h++)f+=String.fromCharCode(A[h]);var g=l();u({data:f,addLength1:!0,objectId:g}),c("endobj");var y=l();u({data:r(o.metadata.toUnicode),addLength1:!0,objectId:y}),c("endobj");var w=l();c("<<"),c("/Descent "+o.metadata.decender),c("/CapHeight "+o.metadata.capHeight),c("/StemV "+o.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+g+" 0 R"),c("/Flags 96"),c("/FontBBox "+n.API.PDFObject.convert(o.metadata.bbox)),c("/FontName /"+Hh(o.fontName)),c("/ItalicAngle "+o.metadata.italicAngle),c("/Ascent "+o.metadata.ascender),c(">>"),c("endobj"),o.objectNumber=l();for(var v=0;v<o.metadata.hmtx.widths.length;v++)o.metadata.hmtx.widths[v]=parseInt(o.metadata.hmtx.widths[v]*(1e3/o.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+y+" 0 R/BaseFont/"+Hh(o.fontName)+"/FontDescriptor "+w+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),c("endobj"),o.isAlreadyPutted=!0}})(a)}]);var i=function(a){var s,o=a.text||"",c=a.x,l=a.y,u=a.options||{},A=a.mutex||{},f=A.pdfEscape,h=A.activeFontKey,g=A.fonts,y=h,w="",v=0,S="",C=g[y].encoding;if(g[y].encoding!=="Identity-H")return{text:o,x:c,y:l,options:u,mutex:A};for(S=o,y=h,Array.isArray(o)&&(S=o[0]),v=0;v<S.length;v+=1)g[y].metadata.hasOwnProperty("cmap")&&(s=g[y].metadata.cmap.unicode.codeMap[S[v].charCodeAt(0)]),s||S[v].charCodeAt(0)<256&&g[y].metadata.hasOwnProperty("Unicode")?w+=S[v]:w+="";var M="";return parseInt(y.slice(1))<14||C==="WinAnsiEncoding"?M=f(w,y).split("").map(function(F){return F.charCodeAt(0).toString(16)}).join(""):C==="Identity-H"&&(M=t(w,g[y])),A.isHex=!0,{text:M,x:c,y:l,options:u,mutex:A}};e.events.push(["postProcessText",function(a){var s=a.text||"",o=[],c={text:s,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(s)){var l=0;for(l=0;l<s.length;l+=1)Array.isArray(s[l])&&s[l].length===3?o.push([i(Object.assign({},c,{text:s[l][0]})).text,s[l][1],s[l][2]]):o.push(i(Object.assign({},c,{text:s[l]})).text);a.text=o}else a.text=i(Object.assign({},c,{text:s})).text}])})(cn),(function(n){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0},n.addFileToVFS=function(t,r){return e.call(this),this.internal.vFS[t]=r,this},n.getFileFromVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}})(cn.API),(function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(r){var i,a,s,o,c,l,u,A=e,f=[[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]],h=[[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]],g={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},y={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},w=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=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)$/),S=!1,C=0;this.__bidiEngine__={};var M=function(k){var H=k.charCodeAt(),j=H>>8,$=y[j];return $!==void 0?A[256*$+(255&H)]:j===252||j===253?"AL":v.test(j)?"L":j===8?"R":"N"},F=function(k){for(var H,j=0;j<k.length;j++){if((H=M(k.charAt(j)))==="L")return!1;if(H==="R")return!0}return!1},D=function(k,H,j,$){var ce,de,fe,ee,Se=H[$];switch(Se){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":S=!1;break;case"N":case"AN":break;case"EN":S&&(Se="AN");break;case"AL":S=!0,Se="R";break;case"WS":case"BN":Se="N";break;case"CS":$<1||$+1>=H.length||(ce=j[$-1])!=="EN"&&ce!=="AN"||(de=H[$+1])!=="EN"&&de!=="AN"?Se="N":S&&(de="AN"),Se=de===ce?de:"N";break;case"ES":Se=(ce=$>0?j[$-1]:"B")==="EN"&&$+1<H.length&&H[$+1]==="EN"?"EN":"N";break;case"ET":if($>0&&j[$-1]==="EN"){Se="EN";break}if(S){Se="N";break}for(fe=$+1,ee=H.length;fe<ee&&H[fe]==="ET";)fe++;Se=fe<ee&&H[fe]==="EN"?"EN":"N";break;case"NSM":if(s&&!o){for(ee=H.length,fe=$+1;fe<ee&&H[fe]==="NSM";)fe++;if(fe<ee){var xe=k[$],Pe=xe>=1425&&xe<=2303||xe===64286;if(ce=H[fe],Pe&&(ce==="R"||ce==="AL")){Se="R";break}}}Se=$<1||(ce=H[$-1])==="B"?"N":j[$-1];break;case"B":S=!1,i=!0,Se=C;break;case"S":a=!0,Se="N"}return Se},U=function(k,H,j){var $=k.split("");return j&&O($,j,{hiLevel:C}),$.reverse(),H&&H.reverse(),$.join("")},O=function(k,H,j){var $,ce,de,fe,ee,Se=-1,xe=k.length,Pe=0,V=[],ae=C?h:f,J=[];for(S=!1,i=!1,a=!1,ce=0;ce<xe;ce++)J[ce]=M(k[ce]);for(de=0;de<xe;de++){if(ee=Pe,V[de]=D(k,J,V,de),$=240&(Pe=ae[ee][g[V[de]]]),Pe&=15,H[de]=fe=ae[Pe][5],$>0)if($===16){for(ce=Se;ce<de;ce++)H[ce]=1;Se=-1}else Se=-1;if(ae[Pe][6])Se===-1&&(Se=de);else if(Se>-1){for(ce=Se;ce<de;ce++)H[ce]=fe;Se=-1}J[de]==="B"&&(H[de]=0),j.hiLevel|=fe}a&&(function(z,Z,le){for(var ge=0;ge<le;ge++)if(z[ge]==="S"){Z[ge]=C;for(var Me=ge-1;Me>=0&&z[Me]==="WS";Me--)Z[Me]=C}})(J,H,xe)},T=function(k,H,j,$,ce){if(!(ce.hiLevel<k)){if(k===1&&C===1&&!i)return H.reverse(),void(j&&j.reverse());for(var de,fe,ee,Se,xe=H.length,Pe=0;Pe<xe;){if($[Pe]>=k){for(ee=Pe+1;ee<xe&&$[ee]>=k;)ee++;for(Se=Pe,fe=ee-1;Se<fe;Se++,fe--)de=H[Se],H[Se]=H[fe],H[fe]=de,j&&(de=j[Se],j[Se]=j[fe],j[fe]=de);Pe=ee}Pe++}}},P=function(k,H,j){var $=k.split(""),ce={hiLevel:C};return j||(j=[]),O($,j,ce),(function(de,fe,ee){if(ee.hiLevel!==0&&u)for(var Se,xe=0;xe<de.length;xe++)fe[xe]===1&&(Se=w.indexOf(de[xe]))>=0&&(de[xe]=w[Se+1])})($,j,ce),T(2,$,H,j,ce),T(1,$,H,j,ce),$.join("")};return this.__bidiEngine__.doBidiReorder=function(k,H,j){if((function(ce,de){if(de)for(var fe=0;fe<ce.length;fe++)de[fe]=fe;o===void 0&&(o=F(ce)),l===void 0&&(l=F(ce))})(k,H),s||!c||l)if(s&&c&&o^l)C=o?1:0,k=U(k,H,j);else if(!s&&c&&l)C=o?1:0,k=P(k,H,j),k=U(k,H);else if(!s||o||c||l){if(s&&!c&&o^l)k=U(k,H),o?(C=0,k=P(k,H,j)):(C=1,k=P(k,H,j),k=U(k,H));else if(s&&o&&!c&&l)C=1,k=P(k,H,j),k=U(k,H);else if(!s&&!c&&o^l){var $=u;o?(C=1,k=P(k,H,j),C=0,u=!1,k=P(k,H,j),u=$):(C=0,k=P(k,H,j),k=U(k,H),C=1,u=!1,k=P(k,H,j),u=$,k=U(k,H))}}else C=0,k=P(k,H,j);else C=o?1:0,k=P(k,H,j);return k},this.__bidiEngine__.setOptions=function(k){k&&(s=k.isInputVisual,c=k.isOutputVisual,o=k.isInputRtl,l=k.isOutputRtl,u=k.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"],t=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(r){var i=r.text;r.x,r.y;var a=r.options||{};r.mutex,a.lang;var s=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,t.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var o=0;for(s=[],o=0;o<i.length;o+=1)Object.prototype.toString.call(i[o])==="[object Array]"?s.push([t.doBidiReorder(i[o][0]),i[o][1],i[o][2]]):s.push([t.doBidiReorder(i[o])]);r.text=s}else r.text=t.doBidiReorder(i);t.setOptions({isInputVisual:!0})}])})(cn),cn.API.TTFFont=(function(){function n(e){var t;if(this.rawData=e,t=this.contents=new Ju(e),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new zte(this),this.registerTTF()}return n.open=function(e){return new n(e)},n.prototype.parse=function(){return this.directory=new kte(this.contents),this.head=new Lte(this),this.name=new Ute(this),this.cmap=new yD(this),this.toUnicode={},this.hhea=new Fte(this),this.maxp=new Ote(this),this.hmtx=new Hte(this),this.post=new Dte(this),this.os2=new Nte(this),this.loca=new jte(this),this.glyf=new Wte(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]},n.prototype.registerTTF=function(){var e,t,r,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,o,c,l;for(l=[],s=0,o=(c=this.bbox).length;s<o;s++)e=c[s],l.push(Math.round(e*this.scaleFactor));return l}).call(this),this.stemV=0,this.post.exists?(r=255&(i=this.post.italic_angle),32768&(t=i>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+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=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===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")},n.prototype.characterToGlyph=function(e){var t;return((t=this.cmap.unicode)!=null?t.codeMap[e]:void 0)||0},n.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},n.prototype.widthOfString=function(e,t,r){var i,a,s,o;for(s=0,a=0,o=(e=""+e).length;0<=o?a<o:a>o;a=0<=o?++a:--a)i=e.charCodeAt(a),s+=this.widthOfGlyph(this.characterToGlyph(i))+r*(1e3/t)||0;return s*(t/1e3)},n.prototype.lineHeight=function(e,t){var r;return t==null&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*e},n})();var Cc,Ju=(function(){function n(e){this.data=e??[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(e){return this.data[this.pos++]=e},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},n.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},n.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},n.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},n.prototype.readString=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},n.prototype.writeString=function(e){var t,r,i;for(i=[],t=0,r=e.length;0<=r?t<r:t>r;t=0<=r?++t:--t)i.push(this.writeByte(e.charCodeAt(t)));return i},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(e){return this.writeInt16(e)},n.prototype.readLongLong=function(){var e,t,r,i,a,s,o,c;return e=this.readByte(),t=this.readByte(),r=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),c=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^i)+16777216*(255^a)+65536*(255^s)+256*(255^o)+(255^c)+1):72057594037927940*e+281474976710656*t+1099511627776*r+4294967296*i+16777216*a+65536*s+256*o+c},n.prototype.writeLongLong=function(e){var t,r;return t=Math.floor(e/4294967296),r=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(e){return this.writeInt32(e)},n.prototype.read=function(e){var t,r;for(t=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)t.push(this.readByte());return t},n.prototype.write=function(e){var t,r,i,a;for(a=[],r=0,i=e.length;r<i;r++)t=e[r],a.push(this.writeByte(t));return a},n})(),kte=(function(){var n;function e(t){var r,i,a;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)r={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[r.tag]=r}return e.prototype.encode=function(t){var r,i,a,s,o,c,l,u,A,f,h,g,y;for(y in h=Object.keys(t).length,c=Math.log(2),A=16*Math.floor(Math.log(h)/c),s=Math.floor(A/c),u=16*h-A,(i=new Ju).writeInt(this.scalarType),i.writeShort(h),i.writeShort(A),i.writeShort(s),i.writeShort(u),a=16*h,l=i.pos+a,o=null,g=[],t)for(f=t[y],i.writeString(y),i.writeInt(n(f)),i.writeInt(l),i.writeInt(f.length),g=g.concat(f),y==="head"&&(o=l),l+=f.length;l%4;)g.push(0),l++;return i.write(g),r=2981146554-n(i.data),i.pos=o+8,i.writeUInt32(r),i.data},n=function(t){var r,i,a,s;for(t=wD.call(t);t.length%4;)t.push(0);for(a=new Ju(t),i=0,r=0,s=t.length;r<s;r=r+=4)i+=a.readUInt32();return 4294967295&i},e})(),Ite={}.hasOwnProperty,al=function(n,e){for(var t in e)Ite.call(e,t)&&(n[t]=e[t]);function r(){this.constructor=n}return r.prototype=e.prototype,n.prototype=new r,n.__super__=e.prototype,n};Cc=(function(){function n(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n})();var Lte=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return al(n,Cc),n.prototype.tag="head",n.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()},n.prototype.encode=function(e){var t;return(t=new Ju).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},n})(),Mk=(function(){function n(e,t){var r,i,a,s,o,c,l,u,A,f,h,g,y,w,v,S,C;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),A=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(c=0;c<256;++c)this.codeMap[c]=e.readByte();break;case 4:for(h=e.readUInt16(),f=h/2,e.pos+=6,a=(function(){var M,F;for(F=[],c=M=0;0<=f?M<f:M>f;c=0<=f?++M:--M)F.push(e.readUInt16());return F})(),e.pos+=2,y=(function(){var M,F;for(F=[],c=M=0;0<=f?M<f:M>f;c=0<=f?++M:--M)F.push(e.readUInt16());return F})(),l=(function(){var M,F;for(F=[],c=M=0;0<=f?M<f:M>f;c=0<=f?++M:--M)F.push(e.readUInt16());return F})(),u=(function(){var M,F;for(F=[],c=M=0;0<=f?M<f:M>f;c=0<=f?++M:--M)F.push(e.readUInt16());return F})(),i=(this.length-e.pos+this.offset)/2,o=(function(){var M,F;for(F=[],c=M=0;0<=i?M<i:M>i;c=0<=i?++M:--M)F.push(e.readUInt16());return F})(),c=v=0,C=a.length;v<C;c=++v)for(w=a[c],r=S=g=y[c];g<=w?S<=w:S>=w;r=g<=w?++S:--S)u[c]===0?s=r+l[c]:(s=o[u[c]/2+(r-g)-(f-c)]||0)!==0&&(s+=l[c]),this.codeMap[r]=65535&s}e.pos=A}return n.encode=function(e,t){var r,i,a,s,o,c,l,u,A,f,h,g,y,w,v,S,C,M,F,D,U,O,T,P,k,H,j,$,ce,de,fe,ee,Se,xe,Pe,V,ae,J,z,Z,le,ge,Me,Te,We,Ee;switch($=new Ju,s=Object.keys(e).sort(function(Ne,ue){return Ne-ue}),t){case"macroman":for(y=0,w=(function(){var Ne=[];for(g=0;g<256;++g)Ne.push(0);return Ne})(),S={0:0},a={},ce=0,Se=s.length;ce<Se;ce++)S[Me=e[i=s[ce]]]==null&&(S[Me]=++y),a[i]={old:e[i],new:S[e[i]]},w[i]=S[e[i]];return $.writeUInt16(1),$.writeUInt16(0),$.writeUInt32(12),$.writeUInt16(0),$.writeUInt16(262),$.writeUInt16(0),$.write(w),{charMap:a,subtable:$.data,maxGlyphID:y+1};case"unicode":for(H=[],A=[],C=0,S={},r={},v=l=null,de=0,xe=s.length;de<xe;de++)S[F=e[i=s[de]]]==null&&(S[F]=++C),r[i]={old:F,new:S[F]},o=S[F]-i,v!=null&&o===l||(v&&A.push(v),H.push(i),l=o),v=i;for(v&&A.push(v),A.push(65535),H.push(65535),P=2*(T=H.length),O=2*Math.pow(Math.log(T)/Math.LN2,2),f=Math.log(O/2)/Math.LN2,U=2*T-O,c=[],D=[],h=[],g=fe=0,Pe=H.length;fe<Pe;g=++fe){if(k=H[g],u=A[g],k===65535){c.push(0),D.push(0);break}if(k-(j=r[k].new)>=32768)for(c.push(0),D.push(2*(h.length+T-g)),i=ee=k;k<=u?ee<=u:ee>=u;i=k<=u?++ee:--ee)h.push(r[i].new);else c.push(j-k),D.push(0)}for($.writeUInt16(3),$.writeUInt16(1),$.writeUInt32(12),$.writeUInt16(4),$.writeUInt16(16+8*T+2*h.length),$.writeUInt16(0),$.writeUInt16(P),$.writeUInt16(O),$.writeUInt16(f),$.writeUInt16(U),le=0,V=A.length;le<V;le++)i=A[le],$.writeUInt16(i);for($.writeUInt16(0),ge=0,ae=H.length;ge<ae;ge++)i=H[ge],$.writeUInt16(i);for(Te=0,J=c.length;Te<J;Te++)o=c[Te],$.writeUInt16(o);for(We=0,z=D.length;We<z;We++)M=D[We],$.writeUInt16(M);for(Ee=0,Z=h.length;Ee<Z;Ee++)y=h[Ee],$.writeUInt16(y);return{charMap:r,subtable:$.data,maxGlyphID:C+1}}},n})(),yD=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return al(n,Cc),n.prototype.tag="cmap",n.prototype.parse=function(e){var t,r,i;for(e.pos=this.offset,this.version=e.readUInt16(),i=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=i?r<i:r>i;r=0<=i?++r:--r)t=new Mk(e,this.offset),this.tables.push(t),t.isUnicode&&this.unicode==null&&(this.unicode=t);return!0},n.encode=function(e,t){var r,i;return t==null&&(t="macroman"),r=Mk.encode(e,t),(i=new Ju).writeUInt16(0),i.writeUInt16(1),r.table=i.data.concat(r.subtable),r},n})(),Fte=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return al(n,Cc),n.prototype.tag="hhea",n.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()},n})(),Nte=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return al(n,Cc),n.prototype.tag="OS/2",n.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 t,r;for(r=[],t=0;t<10;++t)r.push(e.readByte());return r})(),this.charRange=(function(){var t,r;for(r=[],t=0;t<4;++t)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 t,r;for(r=[],t=0;t<2;t=++t)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()},n})(),Dte=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return al(n,Cc),n.prototype.tag="post",n.prototype.parse=function(e){var t,r,i;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 a;for(r=e.readUInt16(),this.glyphNameIndex=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],i=[];e.pos<this.offset+this.length;)t=e.readByte(),i.push(this.names.push(e.readString(t)));return i;case 151552:return r=e.readUInt16(),this.offsets=e.read(r);case 262144:return this.map=(function(){var s,o,c;for(c=[],a=s=0,o=this.file.maxp.numGlyphs;0<=o?s<o:s>o;a=0<=o?++s:--s)c.push(e.readUInt32());return c}).call(this)}},n})(),Rte=function(n,e){this.raw=n,this.length=n.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Ute=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return al(n,Cc),n.prototype.tag="name",n.prototype.parse=function(e){var t,r,i,a,s,o,c,l,u,A,f;for(e.pos=this.offset,e.readShort(),t=e.readShort(),o=e.readShort(),r=[],a=0;0<=t?a<t:a>t;a=0<=t?++a:--a)r.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+o+e.readShort()});for(c={},a=u=0,A=r.length;u<A;a=++u)i=r[a],e.pos=i.offset,l=e.readString(i.length),s=new Rte(l,i),c[f=i.nameID]==null&&(c[f]=[]),c[i.nameID].push(s);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},n})(),Ote=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return al(n,Cc),n.prototype.tag="maxp",n.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()},n})(),Hte=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return al(n,Cc),n.prototype.tag="hmtx",n.prototype.parse=function(e){var t,r,i,a,s,o,c;for(e.pos=this.offset,this.metrics=[],t=0,o=this.file.hhea.numberOfMetrics;0<=o?t<o:t>o;t=0<=o?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var l,u;for(u=[],t=l=0;0<=i?l<i:l>i;t=0<=i?++l:--l)u.push(e.readInt16());return u})(),this.widths=(function(){var l,u,A,f;for(f=[],l=0,u=(A=this.metrics).length;l<u;l++)a=A[l],f.push(a.advance);return f}).call(this),r=this.widths[this.widths.length-1],c=[],t=s=0;0<=i?s<i:s>i;t=0<=i?++s:--s)c.push(this.widths.push(r));return c},n.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]}},n})(),wD=[].slice,Wte=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return al(n,Cc),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(e){var t,r,i,a,s,o,c,l,u,A;return e in this.cache?this.cache[e]:(a=this.file.loca,t=this.file.contents,r=a.indexOf(e),(i=a.lengthOf(e))===0?this.cache[e]=null:(t.pos=this.offset+r,s=(o=new Ju(t.read(i))).readShort(),l=o.readShort(),A=o.readShort(),c=o.readShort(),u=o.readShort(),this.cache[e]=s===-1?new $te(o,l,A,c,u):new Qte(o,s,l,A,c,u),this.cache[e]))},n.prototype.encode=function(e,t,r){var i,a,s,o,c;for(s=[],a=[],o=0,c=t.length;o<c;o++)i=e[t[o]],a.push(s.length),i&&(s=s.concat(i.encode(r)));return a.push(s.length),{table:s,offsets:a}},n})(),Qte=(function(){function n(e,t,r,i,a,s){this.raw=e,this.numberOfContours=t,this.xMin=r,this.yMin=i,this.xMax=a,this.yMax=s,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n})(),$te=(function(){function n(e,t,r,i,a){var s,o;for(this.raw=e,this.xMin=t,this.yMin=r,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;o=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&o;)s.pos+=1&o?4:2,128&o?s.pos+=8:64&o?s.pos+=4:8&o&&(s.pos+=2)}return n.prototype.encode=function(){var e,t,r;for(t=new Ju(wD.call(this.raw.data)),e=0,r=this.glyphIDs.length;e<r;++e)t.pos=this.glyphOffsets[e];return t.data},n})(),jte=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return al(n,Cc),n.prototype.tag="loca",n.prototype.parse=function(e){var t,r;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=t===0?(function(){var i,a;for(a=[],r=0,i=this.length;r<i;r+=2)a.push(2*e.readUInt16());return a}).call(this):(function(){var i,a;for(a=[],r=0,i=this.length;r<i;r+=4)a.push(e.readUInt32());return a}).call(this)},n.prototype.indexOf=function(e){return this.offsets[e]},n.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},n.prototype.encode=function(e,t){for(var r=new Uint32Array(this.offsets.length),i=0,a=0,s=0;s<r.length;++s)if(r[s]=i,a<t.length&&t[a]==s){++a,r[s]=i;var o=this.offsets[s],c=this.offsets[s+1]-o;c>0&&(i+=c)}for(var l=new Array(4*r.length),u=0;u<r.length;++u)l[4*u+3]=255&r[u],l[4*u+2]=(65280&r[u])>>8,l[4*u+1]=(16711680&r[u])>>16,l[4*u]=(4278190080&r[u])>>24;return l},n})(),zte=(function(){function n(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var e,t,r,i,a;for(t in i=this.font.cmap.tables[0].codeMap,e={},a=this.subset)r=a[t],e[t]=i[r];return e},n.prototype.glyphsFor=function(e){var t,r,i,a,s,o,c;for(i={},s=0,o=e.length;s<o;s++)i[a=e[s]]=this.font.glyf.glyphFor(a);for(a in t=[],i)(r=i[a])!=null&&r.compound&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(a in c=this.glyphsFor(t))r=c[a],i[a]=r;return i},n.prototype.encode=function(e,t){var r,i,a,s,o,c,l,u,A,f,h,g,y,w,v;for(i in r=yD.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(e),h={0:0},v=r.charMap)h[(c=v[i]).old]=c.new;for(g in f=r.maxGlyphID,s)g in h||(h[g]=f++);return u=(function(S){var C,M;for(C in M={},S)M[S[C]]=C;return M})(h),A=Object.keys(u).sort(function(S,C){return S-C}),y=(function(){var S,C,M;for(M=[],S=0,C=A.length;S<C;S++)o=A[S],M.push(u[o]);return M})(),a=this.font.glyf.encode(s,y,h),l=this.font.loca.encode(a.offsets,y),w={cmap:this.font.cmap.raw(),glyf:a.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(t)},this.font.os2.exists&&(w["OS/2"]=this.font.os2.raw()),this.font.directory.encode(w)},n})();cn.API.PDFObject=(function(){var n;function e(){}return n=function(t,r){return(Array(r+1).join("0")+t).slice(-r)},e.convert=function(t){var r,i,a,s;if(Array.isArray(t))return"["+(function(){var o,c,l;for(l=[],o=0,c=t.length;o<c;o++)r=t[o],l.push(e.convert(r));return l})().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t!=null&&t.isString)return"("+t+")";if(t instanceof Date)return"(D:"+n(t.getUTCFullYear(),4)+n(t.getUTCMonth(),2)+n(t.getUTCDate(),2)+n(t.getUTCHours(),2)+n(t.getUTCMinutes(),2)+n(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(i in a=["<<"],t)s=t[i],a.push("/"+i+" "+e.convert(s));return a.push(">>"),a.join(`
`)}return""+t},e})();const Vte=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:wte,AcroFormAppearance:Jt,AcroFormButton:Vi,AcroFormCheckBox:rp,AcroFormChoiceField:iA,AcroFormComboBox:sA,AcroFormEditBox:tp,AcroFormListBox:aA,AcroFormPasswordField:ip,AcroFormPushButton:np,AcroFormRadioButton:oA,AcroFormTextField:ju,GState:Dp,ShadingPattern:ku,TilingPattern:qd,default:cn,jsPDF:cn},Symbol.toStringTag,{value:"Module"}));var Um={exports:{}};/* @preserve
 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
 */var Gte=Um.exports,Sk;function Kte(){return Sk||(Sk=1,(function(n,e){(function(t,r){r(e)})(Gte,(function(t){var r="1.9.4";function i(d){var m,_,B,Q;for(_=1,B=arguments.length;_<B;_++){Q=arguments[_];for(m in Q)d[m]=Q[m]}return d}var a=Object.create||(function(){function d(){}return function(m){return d.prototype=m,new d}})();function s(d,m){var _=Array.prototype.slice;if(d.bind)return d.bind.apply(d,_.call(arguments,1));var B=_.call(arguments,2);return function(){return d.apply(m,B.length?B.concat(_.call(arguments)):arguments)}}var o=0;function c(d){return"_leaflet_id"in d||(d._leaflet_id=++o),d._leaflet_id}function l(d,m,_){var B,Q,ie,Ie;return Ie=function(){B=!1,Q&&(ie.apply(_,Q),Q=!1)},ie=function(){B?Q=arguments:(d.apply(_,arguments),setTimeout(Ie,m),B=!0)},ie}function u(d,m,_){var B=m[1],Q=m[0],ie=B-Q;return d===B&&_?d:((d-Q)%ie+ie)%ie+Q}function A(){return!1}function f(d,m){if(m===!1)return d;var _=Math.pow(10,m===void 0?6:m);return Math.round(d*_)/_}function h(d){return d.trim?d.trim():d.replace(/^\s+|\s+$/g,"")}function g(d){return h(d).split(/\s+/)}function y(d,m){Object.prototype.hasOwnProperty.call(d,"options")||(d.options=d.options?a(d.options):{});for(var _ in m)d.options[_]=m[_];return d.options}function w(d,m,_){var B=[];for(var Q in d)B.push(encodeURIComponent(_?Q.toUpperCase():Q)+"="+encodeURIComponent(d[Q]));return(!m||m.indexOf("?")===-1?"?":"&")+B.join("&")}var v=/\{ *([\w_ -]+) *\}/g;function S(d,m){return d.replace(v,function(_,B){var Q=m[B];if(Q===void 0)throw new Error("No value provided for variable "+_);return typeof Q=="function"&&(Q=Q(m)),Q})}var C=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"};function M(d,m){for(var _=0;_<d.length;_++)if(d[_]===m)return _;return-1}var F="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function D(d){return window["webkit"+d]||window["moz"+d]||window["ms"+d]}var U=0;function O(d){var m=+new Date,_=Math.max(0,16-(m-U));return U=m+_,window.setTimeout(d,_)}var T=window.requestAnimationFrame||D("RequestAnimationFrame")||O,P=window.cancelAnimationFrame||D("CancelAnimationFrame")||D("CancelRequestAnimationFrame")||function(d){window.clearTimeout(d)};function k(d,m,_){if(_&&T===O)d.call(m);else return T.call(window,s(d,m))}function H(d){d&&P.call(window,d)}var j={__proto__:null,extend:i,create:a,bind:s,get lastId(){return o},stamp:c,throttle:l,wrapNum:u,falseFn:A,formatNum:f,trim:h,splitWords:g,setOptions:y,getParamString:w,template:S,isArray:C,indexOf:M,emptyImageUrl:F,requestFn:T,cancelFn:P,requestAnimFrame:k,cancelAnimFrame:H};function $(){}$.extend=function(d){var m=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},_=m.__super__=this.prototype,B=a(_);B.constructor=m,m.prototype=B;for(var Q in this)Object.prototype.hasOwnProperty.call(this,Q)&&Q!=="prototype"&&Q!=="__super__"&&(m[Q]=this[Q]);return d.statics&&i(m,d.statics),d.includes&&(ce(d.includes),i.apply(null,[B].concat(d.includes))),i(B,d),delete B.statics,delete B.includes,B.options&&(B.options=_.options?a(_.options):{},i(B.options,d.options)),B._initHooks=[],B.callInitHooks=function(){if(!this._initHooksCalled){_.callInitHooks&&_.callInitHooks.call(this),this._initHooksCalled=!0;for(var ie=0,Ie=B._initHooks.length;ie<Ie;ie++)B._initHooks[ie].call(this)}},m},$.include=function(d){var m=this.prototype.options;return i(this.prototype,d),d.options&&(this.prototype.options=m,this.mergeOptions(d.options)),this},$.mergeOptions=function(d){return i(this.prototype.options,d),this},$.addInitHook=function(d){var m=Array.prototype.slice.call(arguments,1),_=typeof d=="function"?d:function(){this[d].apply(this,m)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(_),this};function ce(d){if(!(typeof L>"u"||!L||!L.Mixin)){d=C(d)?d:[d];for(var m=0;m<d.length;m++)d[m],L.Mixin.Events}}var de={on:function(d,m,_){if(typeof d=="object")for(var B in d)this._on(B,d[B],m);else{d=g(d);for(var Q=0,ie=d.length;Q<ie;Q++)this._on(d[Q],m,_)}return this},off:function(d,m,_){if(!arguments.length)delete this._events;else if(typeof d=="object")for(var B in d)this._off(B,d[B],m);else{d=g(d);for(var Q=arguments.length===1,ie=0,Ie=d.length;ie<Ie;ie++)Q?this._off(d[ie]):this._off(d[ie],m,_)}return this},_on:function(d,m,_,B){if(typeof m=="function"&&this._listens(d,m,_)===!1){_===this&&(_=void 0);var Q={fn:m,ctx:_};B&&(Q.once=!0),this._events=this._events||{},this._events[d]=this._events[d]||[],this._events[d].push(Q)}},_off:function(d,m,_){var B,Q,ie;if(this._events&&(B=this._events[d],!!B)){if(arguments.length===1){if(this._firingCount)for(Q=0,ie=B.length;Q<ie;Q++)B[Q].fn=A;delete this._events[d];return}if(typeof m=="function"){var Ie=this._listens(d,m,_);if(Ie!==!1){var Xe=B[Ie];this._firingCount&&(Xe.fn=A,this._events[d]=B=B.slice()),B.splice(Ie,1)}}}},fire:function(d,m,_){if(!this.listens(d,_))return this;var B=i({},m,{type:d,target:this,sourceTarget:m&&m.sourceTarget||this});if(this._events){var Q=this._events[d];if(Q){this._firingCount=this._firingCount+1||1;for(var ie=0,Ie=Q.length;ie<Ie;ie++){var Xe=Q[ie],at=Xe.fn;Xe.once&&this.off(d,at,Xe.ctx),at.call(Xe.ctx||this,B)}this._firingCount--}}return _&&this._propagateEvent(B),this},listens:function(d,m,_,B){var Q=m;typeof m!="function"&&(B=!!m,Q=void 0,_=void 0);var ie=this._events&&this._events[d];if(ie&&ie.length&&this._listens(d,Q,_)!==!1)return!0;if(B){for(var Ie in this._eventParents)if(this._eventParents[Ie].listens(d,m,_,B))return!0}return!1},_listens:function(d,m,_){if(!this._events)return!1;var B=this._events[d]||[];if(!m)return!!B.length;_===this&&(_=void 0);for(var Q=0,ie=B.length;Q<ie;Q++)if(B[Q].fn===m&&B[Q].ctx===_)return Q;return!1},once:function(d,m,_){if(typeof d=="object")for(var B in d)this._on(B,d[B],m,!0);else{d=g(d);for(var Q=0,ie=d.length;Q<ie;Q++)this._on(d[Q],m,_,!0)}return this},addEventParent:function(d){return this._eventParents=this._eventParents||{},this._eventParents[c(d)]=d,this},removeEventParent:function(d){return this._eventParents&&delete this._eventParents[c(d)],this},_propagateEvent:function(d){for(var m in this._eventParents)this._eventParents[m].fire(d.type,i({layer:d.target,propagatedFrom:d.target},d),!0)}};de.addEventListener=de.on,de.removeEventListener=de.clearAllEventListeners=de.off,de.addOneTimeEventListener=de.once,de.fireEvent=de.fire,de.hasEventListeners=de.listens;var fe=$.extend(de);function ee(d,m,_){this.x=_?Math.round(d):d,this.y=_?Math.round(m):m}var Se=Math.trunc||function(d){return d>0?Math.floor(d):Math.ceil(d)};ee.prototype={clone:function(){return new ee(this.x,this.y)},add:function(d){return this.clone()._add(xe(d))},_add:function(d){return this.x+=d.x,this.y+=d.y,this},subtract:function(d){return this.clone()._subtract(xe(d))},_subtract:function(d){return this.x-=d.x,this.y-=d.y,this},divideBy:function(d){return this.clone()._divideBy(d)},_divideBy:function(d){return this.x/=d,this.y/=d,this},multiplyBy:function(d){return this.clone()._multiplyBy(d)},_multiplyBy:function(d){return this.x*=d,this.y*=d,this},scaleBy:function(d){return new ee(this.x*d.x,this.y*d.y)},unscaleBy:function(d){return new ee(this.x/d.x,this.y/d.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Se(this.x),this.y=Se(this.y),this},distanceTo:function(d){d=xe(d);var m=d.x-this.x,_=d.y-this.y;return Math.sqrt(m*m+_*_)},equals:function(d){return d=xe(d),d.x===this.x&&d.y===this.y},contains:function(d){return d=xe(d),Math.abs(d.x)<=Math.abs(this.x)&&Math.abs(d.y)<=Math.abs(this.y)},toString:function(){return"Point("+f(this.x)+", "+f(this.y)+")"}};function xe(d,m,_){return d instanceof ee?d:C(d)?new ee(d[0],d[1]):d==null?d:typeof d=="object"&&"x"in d&&"y"in d?new ee(d.x,d.y):new ee(d,m,_)}function Pe(d,m){if(d)for(var _=m?[d,m]:d,B=0,Q=_.length;B<Q;B++)this.extend(_[B])}Pe.prototype={extend:function(d){var m,_;if(!d)return this;if(d instanceof ee||typeof d[0]=="number"||"x"in d)m=_=xe(d);else if(d=V(d),m=d.min,_=d.max,!m||!_)return this;return!this.min&&!this.max?(this.min=m.clone(),this.max=_.clone()):(this.min.x=Math.min(m.x,this.min.x),this.max.x=Math.max(_.x,this.max.x),this.min.y=Math.min(m.y,this.min.y),this.max.y=Math.max(_.y,this.max.y)),this},getCenter:function(d){return xe((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,d)},getBottomLeft:function(){return xe(this.min.x,this.max.y)},getTopRight:function(){return xe(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(d){var m,_;return typeof d[0]=="number"||d instanceof ee?d=xe(d):d=V(d),d instanceof Pe?(m=d.min,_=d.max):m=_=d,m.x>=this.min.x&&_.x<=this.max.x&&m.y>=this.min.y&&_.y<=this.max.y},intersects:function(d){d=V(d);var m=this.min,_=this.max,B=d.min,Q=d.max,ie=Q.x>=m.x&&B.x<=_.x,Ie=Q.y>=m.y&&B.y<=_.y;return ie&&Ie},overlaps:function(d){d=V(d);var m=this.min,_=this.max,B=d.min,Q=d.max,ie=Q.x>m.x&&B.x<_.x,Ie=Q.y>m.y&&B.y<_.y;return ie&&Ie},isValid:function(){return!!(this.min&&this.max)},pad:function(d){var m=this.min,_=this.max,B=Math.abs(m.x-_.x)*d,Q=Math.abs(m.y-_.y)*d;return V(xe(m.x-B,m.y-Q),xe(_.x+B,_.y+Q))},equals:function(d){return d?(d=V(d),this.min.equals(d.getTopLeft())&&this.max.equals(d.getBottomRight())):!1}};function V(d,m){return!d||d instanceof Pe?d:new Pe(d,m)}function ae(d,m){if(d)for(var _=m?[d,m]:d,B=0,Q=_.length;B<Q;B++)this.extend(_[B])}ae.prototype={extend:function(d){var m=this._southWest,_=this._northEast,B,Q;if(d instanceof z)B=d,Q=d;else if(d instanceof ae){if(B=d._southWest,Q=d._northEast,!B||!Q)return this}else return d?this.extend(Z(d)||J(d)):this;return!m&&!_?(this._southWest=new z(B.lat,B.lng),this._northEast=new z(Q.lat,Q.lng)):(m.lat=Math.min(B.lat,m.lat),m.lng=Math.min(B.lng,m.lng),_.lat=Math.max(Q.lat,_.lat),_.lng=Math.max(Q.lng,_.lng)),this},pad:function(d){var m=this._southWest,_=this._northEast,B=Math.abs(m.lat-_.lat)*d,Q=Math.abs(m.lng-_.lng)*d;return new ae(new z(m.lat-B,m.lng-Q),new z(_.lat+B,_.lng+Q))},getCenter:function(){return new z((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new z(this.getNorth(),this.getWest())},getSouthEast:function(){return new z(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(d){typeof d[0]=="number"||d instanceof z||"lat"in d?d=Z(d):d=J(d);var m=this._southWest,_=this._northEast,B,Q;return d instanceof ae?(B=d.getSouthWest(),Q=d.getNorthEast()):B=Q=d,B.lat>=m.lat&&Q.lat<=_.lat&&B.lng>=m.lng&&Q.lng<=_.lng},intersects:function(d){d=J(d);var m=this._southWest,_=this._northEast,B=d.getSouthWest(),Q=d.getNorthEast(),ie=Q.lat>=m.lat&&B.lat<=_.lat,Ie=Q.lng>=m.lng&&B.lng<=_.lng;return ie&&Ie},overlaps:function(d){d=J(d);var m=this._southWest,_=this._northEast,B=d.getSouthWest(),Q=d.getNorthEast(),ie=Q.lat>m.lat&&B.lat<_.lat,Ie=Q.lng>m.lng&&B.lng<_.lng;return ie&&Ie},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(d,m){return d?(d=J(d),this._southWest.equals(d.getSouthWest(),m)&&this._northEast.equals(d.getNorthEast(),m)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function J(d,m){return d instanceof ae?d:new ae(d,m)}function z(d,m,_){if(isNaN(d)||isNaN(m))throw new Error("Invalid LatLng object: ("+d+", "+m+")");this.lat=+d,this.lng=+m,_!==void 0&&(this.alt=+_)}z.prototype={equals:function(d,m){if(!d)return!1;d=Z(d);var _=Math.max(Math.abs(this.lat-d.lat),Math.abs(this.lng-d.lng));return _<=(m===void 0?1e-9:m)},toString:function(d){return"LatLng("+f(this.lat,d)+", "+f(this.lng,d)+")"},distanceTo:function(d){return ge.distance(this,Z(d))},wrap:function(){return ge.wrapLatLng(this)},toBounds:function(d){var m=180*d/40075017,_=m/Math.cos(Math.PI/180*this.lat);return J([this.lat-m,this.lng-_],[this.lat+m,this.lng+_])},clone:function(){return new z(this.lat,this.lng,this.alt)}};function Z(d,m,_){return d instanceof z?d:C(d)&&typeof d[0]!="object"?d.length===3?new z(d[0],d[1],d[2]):d.length===2?new z(d[0],d[1]):null:d==null?d:typeof d=="object"&&"lat"in d?new z(d.lat,"lng"in d?d.lng:d.lon,d.alt):m===void 0?null:new z(d,m,_)}var le={latLngToPoint:function(d,m){var _=this.projection.project(d),B=this.scale(m);return this.transformation._transform(_,B)},pointToLatLng:function(d,m){var _=this.scale(m),B=this.transformation.untransform(d,_);return this.projection.unproject(B)},project:function(d){return this.projection.project(d)},unproject:function(d){return this.projection.unproject(d)},scale:function(d){return 256*Math.pow(2,d)},zoom:function(d){return Math.log(d/256)/Math.LN2},getProjectedBounds:function(d){if(this.infinite)return null;var m=this.projection.bounds,_=this.scale(d),B=this.transformation.transform(m.min,_),Q=this.transformation.transform(m.max,_);return new Pe(B,Q)},infinite:!1,wrapLatLng:function(d){var m=this.wrapLng?u(d.lng,this.wrapLng,!0):d.lng,_=this.wrapLat?u(d.lat,this.wrapLat,!0):d.lat,B=d.alt;return new z(_,m,B)},wrapLatLngBounds:function(d){var m=d.getCenter(),_=this.wrapLatLng(m),B=m.lat-_.lat,Q=m.lng-_.lng;if(B===0&&Q===0)return d;var ie=d.getSouthWest(),Ie=d.getNorthEast(),Xe=new z(ie.lat-B,ie.lng-Q),at=new z(Ie.lat-B,Ie.lng-Q);return new ae(Xe,at)}},ge=i({},le,{wrapLng:[-180,180],R:6371e3,distance:function(d,m){var _=Math.PI/180,B=d.lat*_,Q=m.lat*_,ie=Math.sin((m.lat-d.lat)*_/2),Ie=Math.sin((m.lng-d.lng)*_/2),Xe=ie*ie+Math.cos(B)*Math.cos(Q)*Ie*Ie,at=2*Math.atan2(Math.sqrt(Xe),Math.sqrt(1-Xe));return this.R*at}}),Me=6378137,Te={R:Me,MAX_LATITUDE:85.0511287798,project:function(d){var m=Math.PI/180,_=this.MAX_LATITUDE,B=Math.max(Math.min(_,d.lat),-_),Q=Math.sin(B*m);return new ee(this.R*d.lng*m,this.R*Math.log((1+Q)/(1-Q))/2)},unproject:function(d){var m=180/Math.PI;return new z((2*Math.atan(Math.exp(d.y/this.R))-Math.PI/2)*m,d.x*m/this.R)},bounds:(function(){var d=Me*Math.PI;return new Pe([-d,-d],[d,d])})()};function We(d,m,_,B){if(C(d)){this._a=d[0],this._b=d[1],this._c=d[2],this._d=d[3];return}this._a=d,this._b=m,this._c=_,this._d=B}We.prototype={transform:function(d,m){return this._transform(d.clone(),m)},_transform:function(d,m){return m=m||1,d.x=m*(this._a*d.x+this._b),d.y=m*(this._c*d.y+this._d),d},untransform:function(d,m){return m=m||1,new ee((d.x/m-this._b)/this._a,(d.y/m-this._d)/this._c)}};function Ee(d,m,_,B){return new We(d,m,_,B)}var Ne=i({},ge,{code:"EPSG:3857",projection:Te,transformation:(function(){var d=.5/(Math.PI*Te.R);return Ee(d,.5,-d,.5)})()}),ue=i({},Ne,{code:"EPSG:900913"});function ne(d){return document.createElementNS("http://www.w3.org/2000/svg",d)}function De(d,m){var _="",B,Q,ie,Ie,Xe,at;for(B=0,ie=d.length;B<ie;B++){for(Xe=d[B],Q=0,Ie=Xe.length;Q<Ie;Q++)at=Xe[Q],_+=(Q?"L":"M")+at.x+" "+at.y;_+=m?Dt.svg?"z":"x":""}return _||"M0 0"}var je=document.documentElement.style,ze="ActiveXObject"in window,Qe=ze&&!document.addEventListener,ot="msLaunchUri"in navigator&&!("documentMode"in document),se=Wn("webkit"),G=Wn("android"),Be=Wn("android 2")||Wn("android 3"),Ke=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),it=G&&Wn("Google")&&Ke<537&&!("AudioNode"in window),Ve=!!window.opera,bt=!ot&&Wn("chrome"),lt=Wn("gecko")&&!se&&!Ve&&!ze,ct=!bt&&Wn("safari"),kt=Wn("phantom"),Je="OTransition"in je,Tt=navigator.platform.indexOf("Win")===0,Pt=ze&&"transition"in je,Ct="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Be,yt="MozPerspective"in je,Kt=!window.L_DISABLE_3D&&(Pt||Ct||yt)&&!Je&&!kt,_t=typeof orientation<"u"||Wn("mobile"),sn=_t&&se,Le=_t&&Ct,pt=!window.PointerEvent&&window.MSPointerEvent,Ze=!!(window.PointerEvent||pt),nt="ontouchstart"in window||!!window.TouchEvent,At=!window.L_NO_TOUCH&&(nt||Ze),Mt=_t&&Ve,fn=_t&&lt,Sn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,or=(function(){var d=!1;try{var m=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("testPassiveEventSupport",A,m),window.removeEventListener("testPassiveEventSupport",A,m)}catch{}return d})(),_n=(function(){return!!document.createElement("canvas").getContext})(),Vt=!!(document.createElementNS&&ne("svg").createSVGRect),zr=!!Vt&&(function(){var d=document.createElement("div");return d.innerHTML="<svg/>",(d.firstChild&&d.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),ea=!Vt&&(function(){try{var d=document.createElement("div");d.innerHTML='<v:shape adj="1"/>';var m=d.firstChild;return m.style.behavior="url(#default#VML)",m&&typeof m.adj=="object"}catch{return!1}})(),wi=navigator.platform.indexOf("Mac")===0,Hr=navigator.platform.indexOf("Linux")===0;function Wn(d){return navigator.userAgent.toLowerCase().indexOf(d)>=0}var Dt={ie:ze,ielt9:Qe,edge:ot,webkit:se,android:G,android23:Be,androidStock:it,opera:Ve,chrome:bt,gecko:lt,safari:ct,phantom:kt,opera12:Je,win:Tt,ie3d:Pt,webkit3d:Ct,gecko3d:yt,any3d:Kt,mobile:_t,mobileWebkit:sn,mobileWebkit3d:Le,msPointer:pt,pointer:Ze,touch:At,touchNative:nt,mobileOpera:Mt,mobileGecko:fn,retina:Sn,passiveEvents:or,canvas:_n,svg:Vt,vml:ea,inlineSvg:zr,mac:wi,linux:Hr},Fr=Dt.msPointer?"MSPointerDown":"pointerdown",Hi=Dt.msPointer?"MSPointerMove":"pointermove",ta=Dt.msPointer?"MSPointerUp":"pointerup",si=Dt.msPointer?"MSPointerCancel":"pointercancel",bi={touchstart:Fr,touchmove:Hi,touchend:ta,touchcancel:si},_i={touchstart:$e,touchmove:rt,touchend:rt,touchcancel:rt},Xr={},xi=!1;function es(d,m,_){return m==="touchstart"&&tt(),_i[m]?(_=_i[m].bind(this,_),d.addEventListener(bi[m],_,!1),_):A}function na(d,m,_){bi[m]&&d.removeEventListener(bi[m],_,!1)}function ts(d){Xr[d.pointerId]=d}function Ae(d){Xr[d.pointerId]&&(Xr[d.pointerId]=d)}function Ue(d){delete Xr[d.pointerId]}function tt(){xi||(document.addEventListener(Fr,ts,!0),document.addEventListener(Hi,Ae,!0),document.addEventListener(ta,Ue,!0),document.addEventListener(si,Ue,!0),xi=!0)}function rt(d,m){if(m.pointerType!==(m.MSPOINTER_TYPE_MOUSE||"mouse")){m.touches=[];for(var _ in Xr)m.touches.push(Xr[_]);m.changedTouches=[m],d(m)}}function $e(d,m){m.MSPOINTER_TYPE_TOUCH&&m.pointerType===m.MSPOINTER_TYPE_TOUCH&&Jr(m),rt(d,m)}function Et(d){var m={},_,B;for(B in d)_=d[B],m[B]=_&&_.bind?_.bind(d):_;return d=m,m.type="dblclick",m.detail=2,m.isTrusted=!1,m._simulated=!0,m}var Ut=200;function Rt(d,m){d.addEventListener("dblclick",m);var _=0,B;function Q(ie){if(ie.detail!==1){B=ie.detail;return}if(!(ie.pointerType==="mouse"||ie.sourceCapabilities&&!ie.sourceCapabilities.firesTouchEvents)){var Ie=Ys(ie);if(!(Ie.some(function(at){return at instanceof HTMLLabelElement&&at.attributes.for})&&!Ie.some(function(at){return at instanceof HTMLInputElement||at instanceof HTMLSelectElement}))){var Xe=Date.now();Xe-_<=Ut?(B++,B===2&&m(Et(ie))):B=1,_=Xe}}}return d.addEventListener("click",Q),{dblclick:m,simDblclick:Q}}function zt(d,m){d.removeEventListener("dblclick",m.dblclick),d.removeEventListener("click",m.simDblclick)}var hn=li(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ln=li(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),en=ln==="webkitTransition"||ln==="OTransition"?ln+"End":"transitionend";function In(d){return typeof d=="string"?document.getElementById(d):d}function Ln(d,m){var _=d.style[m]||d.currentStyle&&d.currentStyle[m];if((!_||_==="auto")&&document.defaultView){var B=document.defaultView.getComputedStyle(d,null);_=B?B[m]:null}return _==="auto"?null:_}function qt(d,m,_){var B=document.createElement(d);return B.className=m||"",_&&_.appendChild(B),B}function mn(d){var m=d.parentNode;m&&m.removeChild(d)}function Fn(d){for(;d.firstChild;)d.removeChild(d.firstChild)}function Ot(d){var m=d.parentNode;m&&m.lastChild!==d&&m.appendChild(d)}function vr(d){var m=d.parentNode;m&&m.firstChild!==d&&m.insertBefore(d,m.firstChild)}function Cn(d,m){if(d.classList!==void 0)return d.classList.contains(m);var _=wa(d);return _.length>0&&new RegExp("(^|\\s)"+m+"(\\s|$)").test(_)}function on(d,m){if(d.classList!==void 0)for(var _=g(m),B=0,Q=_.length;B<Q;B++)d.classList.add(_[B]);else if(!Cn(d,m)){var ie=wa(d);ur(d,(ie?ie+" ":"")+m)}}function er(d,m){d.classList!==void 0?d.classList.remove(m):ur(d,h((" "+wa(d)+" ").replace(" "+m+" "," ")))}function ur(d,m){d.className.baseVal===void 0?d.className=m:d.className.baseVal=m}function wa(d){return d.correspondingElement&&(d=d.correspondingElement),d.className.baseVal===void 0?d.className:d.className.baseVal}function wn(d,m){"opacity"in d.style?d.style.opacity=m:"filter"in d.style&&cr(d,m)}function cr(d,m){var _=!1,B="DXImageTransform.Microsoft.Alpha";try{_=d.filters.item(B)}catch{if(m===1)return}m=Math.round(m*100),_?(_.Enabled=m!==100,_.Opacity=m):d.style.filter+=" progid:"+B+"(opacity="+m+")"}function li(d){for(var m=document.documentElement.style,_=0;_<d.length;_++)if(d[_]in m)return d[_];return!1}function Nr(d,m,_){var B=m||new ee(0,0);d.style[hn]=(Dt.ie3d?"translate("+B.x+"px,"+B.y+"px)":"translate3d("+B.x+"px,"+B.y+"px,0)")+(_?" scale("+_+")":"")}function Vn(d,m){d._leaflet_pos=m,Dt.any3d?Nr(d,m):(d.style.left=m.x+"px",d.style.top=m.y+"px")}function ns(d){return d._leaflet_pos||new ee(0,0)}var Yr,kc,Ic;if("onselectstart"in document)Yr=function(){It(window,"selectstart",Jr)},kc=function(){fr(window,"selectstart",Jr)};else{var Co=li(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Yr=function(){if(Co){var d=document.documentElement.style;Ic=d[Co],d[Co]="none"}},kc=function(){Co&&(document.documentElement.style[Co]=Ic,Ic=void 0)}}function ll(){It(window,"dragstart",Jr)}function ud(){fr(window,"dragstart",Jr)}var tu,dd;function Po(d){for(;d.tabIndex===-1;)d=d.parentNode;d.style&&(ul(),tu=d,dd=d.style.outlineStyle,d.style.outlineStyle="none",It(window,"keydown",ul))}function ul(){tu&&(tu.style.outlineStyle=dd,tu=void 0,dd=void 0,fr(window,"keydown",ul))}function qo(d){do d=d.parentNode;while((!d.offsetWidth||!d.offsetHeight)&&d!==document.body);return d}function Ad(d){var m=d.getBoundingClientRect();return{x:m.width/d.offsetWidth||1,y:m.height/d.offsetHeight||1,boundingClientRect:m}}var dl={__proto__:null,TRANSFORM:hn,TRANSITION:ln,TRANSITION_END:en,get:In,getStyle:Ln,create:qt,remove:mn,empty:Fn,toFront:Ot,toBack:vr,hasClass:Cn,addClass:on,removeClass:er,setClass:ur,getClass:wa,setOpacity:wn,testProp:li,setTransform:Nr,setPosition:Vn,getPosition:ns,get disableTextSelection(){return Yr},get enableTextSelection(){return kc},disableImageDrag:ll,enableImageDrag:ud,preventOutline:Po,restoreOutline:ul,getSizedParentNode:qo,getScale:Ad};function It(d,m,_,B){if(m&&typeof m=="object")for(var Q in m)fd(d,Q,m[Q],_);else{m=g(m);for(var ie=0,Ie=m.length;ie<Ie;ie++)fd(d,m[ie],_,B)}return this}var Es="_leaflet_events";function fr(d,m,_,B){if(arguments.length===1)KA(d),delete d[Es];else if(m&&typeof m=="object")for(var Q in m)qs(d,Q,m[Q],_);else if(m=g(m),arguments.length===2)KA(d,function(Xe){return M(m,Xe)!==-1});else for(var ie=0,Ie=m.length;ie<Ie;ie++)qs(d,m[ie],_,B);return this}function KA(d,m){for(var _ in d[Es]){var B=_.split(/\d/)[0];(!m||m(B))&&qs(d,B,null,null,_)}}var hd={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function fd(d,m,_,B){var Q=m+c(_)+(B?"_"+c(B):"");if(d[Es]&&d[Es][Q])return this;var ie=function(Xe){return _.call(B||d,Xe||window.event)},Ie=ie;!Dt.touchNative&&Dt.pointer&&m.indexOf("touch")===0?ie=es(d,m,ie):Dt.touch&&m==="dblclick"?ie=Rt(d,ie):"addEventListener"in d?m==="touchstart"||m==="touchmove"||m==="wheel"||m==="mousewheel"?d.addEventListener(hd[m]||m,ie,Dt.passiveEvents?{passive:!1}:!1):m==="mouseenter"||m==="mouseleave"?(ie=function(Xe){Xe=Xe||window.event,hl(d,Xe)&&Ie(Xe)},d.addEventListener(hd[m],ie,!1)):d.addEventListener(m,Ie,!1):d.attachEvent("on"+m,ie),d[Es]=d[Es]||{},d[Es][Q]=ie}function qs(d,m,_,B,Q){Q=Q||m+c(_)+(B?"_"+c(B):"");var ie=d[Es]&&d[Es][Q];if(!ie)return this;!Dt.touchNative&&Dt.pointer&&m.indexOf("touch")===0?na(d,m,ie):Dt.touch&&m==="dblclick"?zt(d,ie):"removeEventListener"in d?d.removeEventListener(hd[m]||m,ie,!1):d.detachEvent("on"+m,ie),d[Es][Q]=null}function ba(d){return d.stopPropagation?d.stopPropagation():d.originalEvent?d.originalEvent._stopped=!0:d.cancelBubble=!0,this}function md(d){return fd(d,"wheel",ba),this}function Al(d){return It(d,"mousedown touchstart dblclick contextmenu",ba),d._leaflet_disable_click=!0,this}function Jr(d){return d.preventDefault?d.preventDefault():d.returnValue=!1,this}function Xs(d){return Jr(d),ba(d),this}function Ys(d){if(d.composedPath)return d.composedPath();for(var m=[],_=d.target;_;)m.push(_),_=_.parentNode;return m}function qA(d,m){if(!m)return new ee(d.clientX,d.clientY);var _=Ad(m),B=_.boundingClientRect;return new ee((d.clientX-B.left)/_.x-m.clientLeft,(d.clientY-B.top)/_.y-m.clientTop)}var nu=Dt.linux&&Dt.chrome?window.devicePixelRatio:Dt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function XA(d){return Dt.edge?d.wheelDeltaY/2:d.deltaY&&d.deltaMode===0?-d.deltaY/nu:d.deltaY&&d.deltaMode===1?-d.deltaY*20:d.deltaY&&d.deltaMode===2?-d.deltaY*60:d.deltaX||d.deltaZ?0:d.wheelDelta?(d.wheelDeltaY||d.wheelDelta)/2:d.detail&&Math.abs(d.detail)<32765?-d.detail*20:d.detail?d.detail/-32765*60:0}function hl(d,m){var _=m.relatedTarget;if(!_)return!0;try{for(;_&&_!==d;)_=_.parentNode}catch{return!1}return _!==d}var Lc={__proto__:null,on:It,off:fr,stopPropagation:ba,disableScrollPropagation:md,disableClickPropagation:Al,preventDefault:Jr,stop:Xs,getPropagationPath:Ys,getMousePosition:qA,getWheelDelta:XA,isExternalTarget:hl,addListener:It,removeListener:fr},ru=fe.extend({run:function(d,m,_,B){this.stop(),this._el=d,this._inProgress=!0,this._duration=_||.25,this._easeOutPower=1/Math.max(B||.5,.2),this._startPos=ns(d),this._offset=m.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=k(this._animate,this),this._step()},_step:function(d){var m=+new Date-this._startTime,_=this._duration*1e3;m<_?this._runFrame(this._easeOut(m/_),d):(this._runFrame(1),this._complete())},_runFrame:function(d,m){var _=this._startPos.add(this._offset.multiplyBy(d));m&&_._round(),Vn(this._el,_),this.fire("step")},_complete:function(){H(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(d){return 1-Math.pow(1-d,this._easeOutPower)}}),Rn=fe.extend({options:{crs:Ne,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(d,m){m=y(this,m),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(d),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),m.maxBounds&&this.setMaxBounds(m.maxBounds),m.zoom!==void 0&&(this._zoom=this._limitZoom(m.zoom)),m.center&&m.zoom!==void 0&&this.setView(Z(m.center),m.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ln&&Dt.any3d&&!Dt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),It(this._proxy,en,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(d,m,_){if(m=m===void 0?this._zoom:this._limitZoom(m),d=this._limitCenter(Z(d),m,this.options.maxBounds),_=_||{},this._stop(),this._loaded&&!_.reset&&_!==!0){_.animate!==void 0&&(_.zoom=i({animate:_.animate},_.zoom),_.pan=i({animate:_.animate,duration:_.duration},_.pan));var B=this._zoom!==m?this._tryAnimatedZoom&&this._tryAnimatedZoom(d,m,_.zoom):this._tryAnimatedPan(d,_.pan);if(B)return clearTimeout(this._sizeTimer),this}return this._resetView(d,m,_.pan&&_.pan.noMoveStart),this},setZoom:function(d,m){return this._loaded?this.setView(this.getCenter(),d,{zoom:m}):(this._zoom=d,this)},zoomIn:function(d,m){return d=d||(Dt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+d,m)},zoomOut:function(d,m){return d=d||(Dt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-d,m)},setZoomAround:function(d,m,_){var B=this.getZoomScale(m),Q=this.getSize().divideBy(2),ie=d instanceof ee?d:this.latLngToContainerPoint(d),Ie=ie.subtract(Q).multiplyBy(1-1/B),Xe=this.containerPointToLatLng(Q.add(Ie));return this.setView(Xe,m,{zoom:_})},_getBoundsCenterZoom:function(d,m){m=m||{},d=d.getBounds?d.getBounds():J(d);var _=xe(m.paddingTopLeft||m.padding||[0,0]),B=xe(m.paddingBottomRight||m.padding||[0,0]),Q=this.getBoundsZoom(d,!1,_.add(B));if(Q=typeof m.maxZoom=="number"?Math.min(m.maxZoom,Q):Q,Q===1/0)return{center:d.getCenter(),zoom:Q};var ie=B.subtract(_).divideBy(2),Ie=this.project(d.getSouthWest(),Q),Xe=this.project(d.getNorthEast(),Q),at=this.unproject(Ie.add(Xe).divideBy(2).add(ie),Q);return{center:at,zoom:Q}},fitBounds:function(d,m){if(d=J(d),!d.isValid())throw new Error("Bounds are not valid.");var _=this._getBoundsCenterZoom(d,m);return this.setView(_.center,_.zoom,m)},fitWorld:function(d){return this.fitBounds([[-90,-180],[90,180]],d)},panTo:function(d,m){return this.setView(d,this._zoom,{pan:m})},panBy:function(d,m){if(d=xe(d).round(),m=m||{},!d.x&&!d.y)return this.fire("moveend");if(m.animate!==!0&&!this.getSize().contains(d))return this._resetView(this.unproject(this.project(this.getCenter()).add(d)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ru,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),m.noMoveStart||this.fire("movestart"),m.animate!==!1){on(this._mapPane,"leaflet-pan-anim");var _=this._getMapPanePos().subtract(d).round();this._panAnim.run(this._mapPane,_,m.duration||.25,m.easeLinearity)}else this._rawPanBy(d),this.fire("move").fire("moveend");return this},flyTo:function(d,m,_){if(_=_||{},_.animate===!1||!Dt.any3d)return this.setView(d,m,_);this._stop();var B=this.project(this.getCenter()),Q=this.project(d),ie=this.getSize(),Ie=this._zoom;d=Z(d),m=m===void 0?Ie:m;var Xe=Math.max(ie.x,ie.y),at=Xe*this.getZoomScale(Ie,m),xt=Q.distanceTo(B)||1,$t=1.42,pn=$t*$t;function zn(br){var Ca=br?-1:1,e0=br?at:Xe,t0=at*at-Xe*Xe+Ca*pn*pn*xt*xt,zg=2*e0*pn*xt,oh=t0/zg,qf=Math.sqrt(oh*oh+1)-oh,Vg=qf<1e-9?-18:Math.log(qf);return Vg}function Sa(br){return(Math.exp(br)-Math.exp(-br))/2}function Mi(br){return(Math.exp(br)+Math.exp(-br))/2}function Ds(br){return Sa(br)/Mi(br)}var Ra=zn(0);function du(br){return Xe*(Mi(Ra)/Mi(Ra+$t*br))}function Jb(br){return Xe*(Mi(Ra)*Ds(Ra+$t*br)-Sa(Ra))/pn}function jc(br){return 1-Math.pow(1-br,1.5)}var no=Date.now(),Lo=(zn(1)-Ra)/$t,Zb=_.duration?1e3*_.duration:1e3*Lo*.8;function Kf(){var br=(Date.now()-no)/Zb,Ca=jc(br)*Lo;br<=1?(this._flyToFrame=k(Kf,this),this._move(this.unproject(B.add(Q.subtract(B).multiplyBy(Jb(Ca)/xt)),Ie),this.getScaleZoom(Xe/du(Ca),Ie),{flyTo:!0})):this._move(d,m)._moveEnd(!0)}return this._moveStart(!0,_.noMoveStart),Kf.call(this),this},flyToBounds:function(d,m){var _=this._getBoundsCenterZoom(d,m);return this.flyTo(_.center,_.zoom,m)},setMaxBounds:function(d){return d=J(d),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),d.isValid()?(this.options.maxBounds=d,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(d){var m=this.options.minZoom;return this.options.minZoom=d,this._loaded&&m!==d&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(d):this},setMaxZoom:function(d){var m=this.options.maxZoom;return this.options.maxZoom=d,this._loaded&&m!==d&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(d):this},panInsideBounds:function(d,m){this._enforcingBounds=!0;var _=this.getCenter(),B=this._limitCenter(_,this._zoom,J(d));return _.equals(B)||this.panTo(B,m),this._enforcingBounds=!1,this},panInside:function(d,m){m=m||{};var _=xe(m.paddingTopLeft||m.padding||[0,0]),B=xe(m.paddingBottomRight||m.padding||[0,0]),Q=this.project(this.getCenter()),ie=this.project(d),Ie=this.getPixelBounds(),Xe=V([Ie.min.add(_),Ie.max.subtract(B)]),at=Xe.getSize();if(!Xe.contains(ie)){this._enforcingBounds=!0;var xt=ie.subtract(Xe.getCenter()),$t=Xe.extend(ie).getSize().subtract(at);Q.x+=xt.x<0?-$t.x:$t.x,Q.y+=xt.y<0?-$t.y:$t.y,this.panTo(this.unproject(Q),m),this._enforcingBounds=!1}return this},invalidateSize:function(d){if(!this._loaded)return this;d=i({animate:!1,pan:!0},d===!0?{animate:!0}:d);var m=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var _=this.getSize(),B=m.divideBy(2).round(),Q=_.divideBy(2).round(),ie=B.subtract(Q);return!ie.x&&!ie.y?this:(d.animate&&d.pan?this.panBy(ie):(d.pan&&this._rawPanBy(ie),this.fire("move"),d.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:m,newSize:_}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(d){if(d=this._locateOptions=i({timeout:1e4,watch:!1},d),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var m=s(this._handleGeolocationResponse,this),_=s(this._handleGeolocationError,this);return d.watch?this._locationWatchId=navigator.geolocation.watchPosition(m,_,d):navigator.geolocation.getCurrentPosition(m,_,d),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(d){if(this._container._leaflet_id){var m=d.code,_=d.message||(m===1?"permission denied":m===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:m,message:"Geolocation error: "+_+"."})}},_handleGeolocationResponse:function(d){if(this._container._leaflet_id){var m=d.coords.latitude,_=d.coords.longitude,B=new z(m,_),Q=B.toBounds(d.coords.accuracy*2),ie=this._locateOptions;if(ie.setView){var Ie=this.getBoundsZoom(Q);this.setView(B,ie.maxZoom?Math.min(Ie,ie.maxZoom):Ie)}var Xe={latlng:B,bounds:Q,timestamp:d.timestamp};for(var at in d.coords)typeof d.coords[at]=="number"&&(Xe[at]=d.coords[at]);this.fire("locationfound",Xe)}},addHandler:function(d,m){if(!m)return this;var _=this[d]=new m(this);return this._handlers.push(_),this.options[d]&&_.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),mn(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(H(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var d;for(d in this._layers)this._layers[d].remove();for(d in this._panes)mn(this._panes[d]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(d,m){var _="leaflet-pane"+(d?" leaflet-"+d.replace("Pane","")+"-pane":""),B=qt("div",_,m||this._mapPane);return d&&(this._panes[d]=B),B},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var d=this.getPixelBounds(),m=this.unproject(d.getBottomLeft()),_=this.unproject(d.getTopRight());return new ae(m,_)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(d,m,_){d=J(d),_=xe(_||[0,0]);var B=this.getZoom()||0,Q=this.getMinZoom(),ie=this.getMaxZoom(),Ie=d.getNorthWest(),Xe=d.getSouthEast(),at=this.getSize().subtract(_),xt=V(this.project(Xe,B),this.project(Ie,B)).getSize(),$t=Dt.any3d?this.options.zoomSnap:1,pn=at.x/xt.x,zn=at.y/xt.y,Sa=m?Math.max(pn,zn):Math.min(pn,zn);return B=this.getScaleZoom(Sa,B),$t&&(B=Math.round(B/($t/100))*($t/100),B=m?Math.ceil(B/$t)*$t:Math.floor(B/$t)*$t),Math.max(Q,Math.min(ie,B))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new ee(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(d,m){var _=this._getTopLeftPoint(d,m);return new Pe(_,_.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(d){return this.options.crs.getProjectedBounds(d===void 0?this.getZoom():d)},getPane:function(d){return typeof d=="string"?this._panes[d]:d},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(d,m){var _=this.options.crs;return m=m===void 0?this._zoom:m,_.scale(d)/_.scale(m)},getScaleZoom:function(d,m){var _=this.options.crs;m=m===void 0?this._zoom:m;var B=_.zoom(d*_.scale(m));return isNaN(B)?1/0:B},project:function(d,m){return m=m===void 0?this._zoom:m,this.options.crs.latLngToPoint(Z(d),m)},unproject:function(d,m){return m=m===void 0?this._zoom:m,this.options.crs.pointToLatLng(xe(d),m)},layerPointToLatLng:function(d){var m=xe(d).add(this.getPixelOrigin());return this.unproject(m)},latLngToLayerPoint:function(d){var m=this.project(Z(d))._round();return m._subtract(this.getPixelOrigin())},wrapLatLng:function(d){return this.options.crs.wrapLatLng(Z(d))},wrapLatLngBounds:function(d){return this.options.crs.wrapLatLngBounds(J(d))},distance:function(d,m){return this.options.crs.distance(Z(d),Z(m))},containerPointToLayerPoint:function(d){return xe(d).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(d){return xe(d).add(this._getMapPanePos())},containerPointToLatLng:function(d){var m=this.containerPointToLayerPoint(xe(d));return this.layerPointToLatLng(m)},latLngToContainerPoint:function(d){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(d)))},mouseEventToContainerPoint:function(d){return qA(d,this._container)},mouseEventToLayerPoint:function(d){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(d))},mouseEventToLatLng:function(d){return this.layerPointToLatLng(this.mouseEventToLayerPoint(d))},_initContainer:function(d){var m=this._container=In(d);if(m){if(m._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");It(m,"scroll",this._onScroll,this),this._containerId=c(m)},_initLayout:function(){var d=this._container;this._fadeAnimated=this.options.fadeAnimation&&Dt.any3d,on(d,"leaflet-container"+(Dt.touch?" leaflet-touch":"")+(Dt.retina?" leaflet-retina":"")+(Dt.ielt9?" leaflet-oldie":"")+(Dt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var m=Ln(d,"position");m!=="absolute"&&m!=="relative"&&m!=="fixed"&&m!=="sticky"&&(d.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var d=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Vn(this._mapPane,new ee(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(on(d.markerPane,"leaflet-zoom-hide"),on(d.shadowPane,"leaflet-zoom-hide"))},_resetView:function(d,m,_){Vn(this._mapPane,new ee(0,0));var B=!this._loaded;this._loaded=!0,m=this._limitZoom(m),this.fire("viewprereset");var Q=this._zoom!==m;this._moveStart(Q,_)._move(d,m)._moveEnd(Q),this.fire("viewreset"),B&&this.fire("load")},_moveStart:function(d,m){return d&&this.fire("zoomstart"),m||this.fire("movestart"),this},_move:function(d,m,_,B){m===void 0&&(m=this._zoom);var Q=this._zoom!==m;return this._zoom=m,this._lastCenter=d,this._pixelOrigin=this._getNewPixelOrigin(d),B?_&&_.pinch&&this.fire("zoom",_):((Q||_&&_.pinch)&&this.fire("zoom",_),this.fire("move",_)),this},_moveEnd:function(d){return d&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return H(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(d){Vn(this._mapPane,this._getMapPanePos().subtract(d))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(d){this._targets={},this._targets[c(this._container)]=this;var m=d?fr:It;m(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&m(window,"resize",this._onResize,this),Dt.any3d&&this.options.transform3DLimit&&(d?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){H(this._resizeRequest),this._resizeRequest=k(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var d=this._getMapPanePos();Math.max(Math.abs(d.x),Math.abs(d.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(d,m){for(var _=[],B,Q=m==="mouseout"||m==="mouseover",ie=d.target||d.srcElement,Ie=!1;ie;){if(B=this._targets[c(ie)],B&&(m==="click"||m==="preclick")&&this._draggableMoved(B)){Ie=!0;break}if(B&&B.listens(m,!0)&&(Q&&!hl(ie,d)||(_.push(B),Q))||ie===this._container)break;ie=ie.parentNode}return!_.length&&!Ie&&!Q&&this.listens(m,!0)&&(_=[this]),_},_isClickDisabled:function(d){for(;d&&d!==this._container;){if(d._leaflet_disable_click)return!0;d=d.parentNode}},_handleDOMEvent:function(d){var m=d.target||d.srcElement;if(!(!this._loaded||m._leaflet_disable_events||d.type==="click"&&this._isClickDisabled(m))){var _=d.type;_==="mousedown"&&Po(m),this._fireDOMEvent(d,_)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(d,m,_){if(d.type==="click"){var B=i({},d);B.type="preclick",this._fireDOMEvent(B,B.type,_)}var Q=this._findEventTargets(d,m);if(_){for(var ie=[],Ie=0;Ie<_.length;Ie++)_[Ie].listens(m,!0)&&ie.push(_[Ie]);Q=ie.concat(Q)}if(Q.length){m==="contextmenu"&&Jr(d);var Xe=Q[0],at={originalEvent:d};if(d.type!=="keypress"&&d.type!=="keydown"&&d.type!=="keyup"){var xt=Xe.getLatLng&&(!Xe._radius||Xe._radius<=10);at.containerPoint=xt?this.latLngToContainerPoint(Xe.getLatLng()):this.mouseEventToContainerPoint(d),at.layerPoint=this.containerPointToLayerPoint(at.containerPoint),at.latlng=xt?Xe.getLatLng():this.layerPointToLatLng(at.layerPoint)}for(Ie=0;Ie<Q.length;Ie++)if(Q[Ie].fire(m,at,!0),at.originalEvent._stopped||Q[Ie].options.bubblingMouseEvents===!1&&M(this._mouseEvents,m)!==-1)return}},_draggableMoved:function(d){return d=d.dragging&&d.dragging.enabled()?d:this,d.dragging&&d.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var d=0,m=this._handlers.length;d<m;d++)this._handlers[d].disable()},whenReady:function(d,m){return this._loaded?d.call(m||this,{target:this}):this.on("load",d,m),this},_getMapPanePos:function(){return ns(this._mapPane)||new ee(0,0)},_moved:function(){var d=this._getMapPanePos();return d&&!d.equals([0,0])},_getTopLeftPoint:function(d,m){var _=d&&m!==void 0?this._getNewPixelOrigin(d,m):this.getPixelOrigin();return _.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(d,m){var _=this.getSize()._divideBy(2);return this.project(d,m)._subtract(_)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(d,m,_){var B=this._getNewPixelOrigin(_,m);return this.project(d,m)._subtract(B)},_latLngBoundsToNewLayerBounds:function(d,m,_){var B=this._getNewPixelOrigin(_,m);return V([this.project(d.getSouthWest(),m)._subtract(B),this.project(d.getNorthWest(),m)._subtract(B),this.project(d.getSouthEast(),m)._subtract(B),this.project(d.getNorthEast(),m)._subtract(B)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(d){return this.latLngToLayerPoint(d).subtract(this._getCenterLayerPoint())},_limitCenter:function(d,m,_){if(!_)return d;var B=this.project(d,m),Q=this.getSize().divideBy(2),ie=new Pe(B.subtract(Q),B.add(Q)),Ie=this._getBoundsOffset(ie,_,m);return Math.abs(Ie.x)<=1&&Math.abs(Ie.y)<=1?d:this.unproject(B.add(Ie),m)},_limitOffset:function(d,m){if(!m)return d;var _=this.getPixelBounds(),B=new Pe(_.min.add(d),_.max.add(d));return d.add(this._getBoundsOffset(B,m))},_getBoundsOffset:function(d,m,_){var B=V(this.project(m.getNorthEast(),_),this.project(m.getSouthWest(),_)),Q=B.min.subtract(d.min),ie=B.max.subtract(d.max),Ie=this._rebound(Q.x,-ie.x),Xe=this._rebound(Q.y,-ie.y);return new ee(Ie,Xe)},_rebound:function(d,m){return d+m>0?Math.round(d-m)/2:Math.max(0,Math.ceil(d))-Math.max(0,Math.floor(m))},_limitZoom:function(d){var m=this.getMinZoom(),_=this.getMaxZoom(),B=Dt.any3d?this.options.zoomSnap:1;return B&&(d=Math.round(d/B)*B),Math.max(m,Math.min(_,d))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){er(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(d,m){var _=this._getCenterOffset(d)._trunc();return(m&&m.animate)!==!0&&!this.getSize().contains(_)?!1:(this.panBy(_,m),!0)},_createAnimProxy:function(){var d=this._proxy=qt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(d),this.on("zoomanim",function(m){var _=hn,B=this._proxy.style[_];Nr(this._proxy,this.project(m.center,m.zoom),this.getZoomScale(m.zoom,1)),B===this._proxy.style[_]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){mn(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var d=this.getCenter(),m=this.getZoom();Nr(this._proxy,this.project(d,m),this.getZoomScale(m,1))},_catchTransitionEnd:function(d){this._animatingZoom&&d.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(d,m,_){if(this._animatingZoom)return!0;if(_=_||{},!this._zoomAnimated||_.animate===!1||this._nothingToAnimate()||Math.abs(m-this._zoom)>this.options.zoomAnimationThreshold)return!1;var B=this.getZoomScale(m),Q=this._getCenterOffset(d)._divideBy(1-1/B);return _.animate!==!0&&!this.getSize().contains(Q)?!1:(k(function(){this._moveStart(!0,_.noMoveStart||!1)._animateZoom(d,m,!0)},this),!0)},_animateZoom:function(d,m,_,B){this._mapPane&&(_&&(this._animatingZoom=!0,this._animateToCenter=d,this._animateToZoom=m,on(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:d,zoom:m,noUpdate:B}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&er(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function pd(d,m){return new Rn(d,m)}var ra=$.extend({options:{position:"topright"},initialize:function(d){y(this,d)},getPosition:function(){return this.options.position},setPosition:function(d){var m=this._map;return m&&m.removeControl(this),this.options.position=d,m&&m.addControl(this),this},getContainer:function(){return this._container},addTo:function(d){this.remove(),this._map=d;var m=this._container=this.onAdd(d),_=this.getPosition(),B=d._controlCorners[_];return on(m,"leaflet-control"),_.indexOf("bottom")!==-1?B.insertBefore(m,B.firstChild):B.appendChild(m),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(mn(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(d){this._map&&d&&d.screenX>0&&d.screenY>0&&this._map.getContainer().focus()}}),Xo=function(d){return new ra(d)};Rn.include({addControl:function(d){return d.addTo(this),this},removeControl:function(d){return d.remove(),this},_initControlPos:function(){var d=this._controlCorners={},m="leaflet-",_=this._controlContainer=qt("div",m+"control-container",this._container);function B(Q,ie){var Ie=m+Q+" "+m+ie;d[Q+ie]=qt("div",Ie,_)}B("top","left"),B("top","right"),B("bottom","left"),B("bottom","right")},_clearControlPos:function(){for(var d in this._controlCorners)mn(this._controlCorners[d]);mn(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var fl=ra.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(d,m,_,B){return _<B?-1:B<_?1:0}},initialize:function(d,m,_){y(this,_),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var B in d)this._addLayer(d[B],B);for(B in m)this._addLayer(m[B],B,!0)},onAdd:function(d){this._initLayout(),this._update(),this._map=d,d.on("zoomend",this._checkDisabledLayers,this);for(var m=0;m<this._layers.length;m++)this._layers[m].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(d){return ra.prototype.addTo.call(this,d),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(d,m){return this._addLayer(d,m),this._map?this._update():this},addOverlay:function(d,m){return this._addLayer(d,m,!0),this._map?this._update():this},removeLayer:function(d){d.off("add remove",this._onLayerChange,this);var m=this._getLayer(c(d));return m&&this._layers.splice(this._layers.indexOf(m),1),this._map?this._update():this},expand:function(){on(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var d=this._map.getSize().y-(this._container.offsetTop+50);return d<this._section.clientHeight?(on(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=d+"px"):er(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return er(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var d="leaflet-control-layers",m=this._container=qt("div",d),_=this.options.collapsed;m.setAttribute("aria-haspopup",!0),Al(m),md(m);var B=this._section=qt("section",d+"-list");_&&(this._map.on("click",this.collapse,this),It(m,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var Q=this._layersLink=qt("a",d+"-toggle",m);Q.href="#",Q.title="Layers",Q.setAttribute("role","button"),It(Q,{keydown:function(ie){ie.keyCode===13&&this._expandSafely()},click:function(ie){Jr(ie),this._expandSafely()}},this),_||this.expand(),this._baseLayersList=qt("div",d+"-base",B),this._separator=qt("div",d+"-separator",B),this._overlaysList=qt("div",d+"-overlays",B),m.appendChild(B)},_getLayer:function(d){for(var m=0;m<this._layers.length;m++)if(this._layers[m]&&c(this._layers[m].layer)===d)return this._layers[m]},_addLayer:function(d,m,_){this._map&&d.on("add remove",this._onLayerChange,this),this._layers.push({layer:d,name:m,overlay:_}),this.options.sortLayers&&this._layers.sort(s(function(B,Q){return this.options.sortFunction(B.layer,Q.layer,B.name,Q.name)},this)),this.options.autoZIndex&&d.setZIndex&&(this._lastZIndex++,d.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Fn(this._baseLayersList),Fn(this._overlaysList),this._layerControlInputs=[];var d,m,_,B,Q=0;for(_=0;_<this._layers.length;_++)B=this._layers[_],this._addItem(B),m=m||B.overlay,d=d||!B.overlay,Q+=B.overlay?0:1;return this.options.hideSingleBase&&(d=d&&Q>1,this._baseLayersList.style.display=d?"":"none"),this._separator.style.display=m&&d?"":"none",this},_onLayerChange:function(d){this._handlingClick||this._update();var m=this._getLayer(c(d.target)),_=m.overlay?d.type==="add"?"overlayadd":"overlayremove":d.type==="add"?"baselayerchange":null;_&&this._map.fire(_,m)},_createRadioElement:function(d,m){var _='<input type="radio" class="leaflet-control-layers-selector" name="'+d+'"'+(m?' checked="checked"':"")+"/>",B=document.createElement("div");return B.innerHTML=_,B.firstChild},_addItem:function(d){var m=document.createElement("label"),_=this._map.hasLayer(d.layer),B;d.overlay?(B=document.createElement("input"),B.type="checkbox",B.className="leaflet-control-layers-selector",B.defaultChecked=_):B=this._createRadioElement("leaflet-base-layers_"+c(this),_),this._layerControlInputs.push(B),B.layerId=c(d.layer),It(B,"click",this._onInputClick,this);var Q=document.createElement("span");Q.innerHTML=" "+d.name;var ie=document.createElement("span");m.appendChild(ie),ie.appendChild(B),ie.appendChild(Q);var Ie=d.overlay?this._overlaysList:this._baseLayersList;return Ie.appendChild(m),this._checkDisabledLayers(),m},_onInputClick:function(){if(!this._preventClick){var d=this._layerControlInputs,m,_,B=[],Q=[];this._handlingClick=!0;for(var ie=d.length-1;ie>=0;ie--)m=d[ie],_=this._getLayer(m.layerId).layer,m.checked?B.push(_):m.checked||Q.push(_);for(ie=0;ie<Q.length;ie++)this._map.hasLayer(Q[ie])&&this._map.removeLayer(Q[ie]);for(ie=0;ie<B.length;ie++)this._map.hasLayer(B[ie])||this._map.addLayer(B[ie]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var d=this._layerControlInputs,m,_,B=this._map.getZoom(),Q=d.length-1;Q>=0;Q--)m=d[Q],_=this._getLayer(m.layerId).layer,m.disabled=_.options.minZoom!==void 0&&B<_.options.minZoom||_.options.maxZoom!==void 0&&B>_.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var d=this._section;this._preventClick=!0,It(d,"click",Jr),this.expand();var m=this;setTimeout(function(){fr(d,"click",Jr),m._preventClick=!1})}}),YA=function(d,m,_){return new fl(d,m,_)},Js=ra.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(d){var m="leaflet-control-zoom",_=qt("div",m+" leaflet-bar"),B=this.options;return this._zoomInButton=this._createButton(B.zoomInText,B.zoomInTitle,m+"-in",_,this._zoomIn),this._zoomOutButton=this._createButton(B.zoomOutText,B.zoomOutTitle,m+"-out",_,this._zoomOut),this._updateDisabled(),d.on("zoomend zoomlevelschange",this._updateDisabled,this),_},onRemove:function(d){d.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(d){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(d.shiftKey?3:1))},_zoomOut:function(d){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(d.shiftKey?3:1))},_createButton:function(d,m,_,B,Q){var ie=qt("a",_,B);return ie.innerHTML=d,ie.href="#",ie.title=m,ie.setAttribute("role","button"),ie.setAttribute("aria-label",m),Al(ie),It(ie,"click",Xs),It(ie,"click",Q,this),It(ie,"click",this._refocusOnMap,this),ie},_updateDisabled:function(){var d=this._map,m="leaflet-disabled";er(this._zoomInButton,m),er(this._zoomOutButton,m),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||d._zoom===d.getMinZoom())&&(on(this._zoomOutButton,m),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||d._zoom===d.getMaxZoom())&&(on(this._zoomInButton,m),this._zoomInButton.setAttribute("aria-disabled","true"))}});Rn.mergeOptions({zoomControl:!0}),Rn.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Js,this.addControl(this.zoomControl))});var Yo=function(d){return new Js(d)},gd=ra.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(d){var m="leaflet-control-scale",_=qt("div",m),B=this.options;return this._addScales(B,m+"-line",_),d.on(B.updateWhenIdle?"moveend":"move",this._update,this),d.whenReady(this._update,this),_},onRemove:function(d){d.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(d,m,_){d.metric&&(this._mScale=qt("div",m,_)),d.imperial&&(this._iScale=qt("div",m,_))},_update:function(){var d=this._map,m=d.getSize().y/2,_=d.distance(d.containerPointToLatLng([0,m]),d.containerPointToLatLng([this.options.maxWidth,m]));this._updateScales(_)},_updateScales:function(d){this.options.metric&&d&&this._updateMetric(d),this.options.imperial&&d&&this._updateImperial(d)},_updateMetric:function(d){var m=this._getRoundNum(d),_=m<1e3?m+" m":m/1e3+" km";this._updateScale(this._mScale,_,m/d)},_updateImperial:function(d){var m=d*3.2808399,_,B,Q;m>5280?(_=m/5280,B=this._getRoundNum(_),this._updateScale(this._iScale,B+" mi",B/_)):(Q=this._getRoundNum(m),this._updateScale(this._iScale,Q+" ft",Q/m))},_updateScale:function(d,m,_){d.style.width=Math.round(this.options.maxWidth*_)+"px",d.innerHTML=m},_getRoundNum:function(d){var m=Math.pow(10,(Math.floor(d)+"").length-1),_=d/m;return _=_>=10?10:_>=5?5:_>=3?3:_>=2?2:1,m*_}}),JA=function(d){return new gd(d)},ZA='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Jo=ra.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Dt.inlineSvg?ZA+" ":"")+"Leaflet</a>"},initialize:function(d){y(this,d),this._attributions={}},onAdd:function(d){d.attributionControl=this,this._container=qt("div","leaflet-control-attribution"),Al(this._container);for(var m in d._layers)d._layers[m].getAttribution&&this.addAttribution(d._layers[m].getAttribution());return this._update(),d.on("layeradd",this._addAttribution,this),this._container},onRemove:function(d){d.off("layeradd",this._addAttribution,this)},_addAttribution:function(d){d.layer.getAttribution&&(this.addAttribution(d.layer.getAttribution()),d.layer.once("remove",function(){this.removeAttribution(d.layer.getAttribution())},this))},setPrefix:function(d){return this.options.prefix=d,this._update(),this},addAttribution:function(d){return d?(this._attributions[d]||(this._attributions[d]=0),this._attributions[d]++,this._update(),this):this},removeAttribution:function(d){return d?(this._attributions[d]&&(this._attributions[d]--,this._update()),this):this},_update:function(){if(this._map){var d=[];for(var m in this._attributions)this._attributions[m]&&d.push(m);var _=[];this.options.prefix&&_.push(this.options.prefix),d.length&&_.push(d.join(", ")),this._container.innerHTML=_.join(' <span aria-hidden="true">|</span> ')}}});Rn.mergeOptions({attributionControl:!0}),Rn.addInitHook(function(){this.options.attributionControl&&new Jo().addTo(this)});var eh=function(d){return new Jo(d)};ra.Layers=fl,ra.Zoom=Js,ra.Scale=gd,ra.Attribution=Jo,Xo.layers=YA,Xo.zoom=Yo,Xo.scale=JA,Xo.attribution=eh;var E=$.extend({initialize:function(d){this._map=d},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});E.addTo=function(d,m){return d.addHandler(m,this),this};var q={Events:de},ve=Dt.touch?"touchstart mousedown":"mousedown",ke=fe.extend({options:{clickTolerance:3},initialize:function(d,m,_,B){y(this,B),this._element=d,this._dragStartTarget=m||d,this._preventOutline=_},enable:function(){this._enabled||(It(this._dragStartTarget,ve,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ke._dragging===this&&this.finishDrag(!0),fr(this._dragStartTarget,ve,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(d){if(this._enabled&&(this._moved=!1,!Cn(this._element,"leaflet-zoom-anim"))){if(d.touches&&d.touches.length!==1){ke._dragging===this&&this.finishDrag();return}if(!(ke._dragging||d.shiftKey||d.which!==1&&d.button!==1&&!d.touches)&&(ke._dragging=this,this._preventOutline&&Po(this._element),ll(),Yr(),!this._moving)){this.fire("down");var m=d.touches?d.touches[0]:d,_=qo(this._element);this._startPoint=new ee(m.clientX,m.clientY),this._startPos=ns(this._element),this._parentScale=Ad(_);var B=d.type==="mousedown";It(document,B?"mousemove":"touchmove",this._onMove,this),It(document,B?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(d){if(this._enabled){if(d.touches&&d.touches.length>1){this._moved=!0;return}var m=d.touches&&d.touches.length===1?d.touches[0]:d,_=new ee(m.clientX,m.clientY)._subtract(this._startPoint);!_.x&&!_.y||Math.abs(_.x)+Math.abs(_.y)<this.options.clickTolerance||(_.x/=this._parentScale.x,_.y/=this._parentScale.y,Jr(d),this._moved||(this.fire("dragstart"),this._moved=!0,on(document.body,"leaflet-dragging"),this._lastTarget=d.target||d.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),on(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(_),this._moving=!0,this._lastEvent=d,this._updatePosition())}},_updatePosition:function(){var d={originalEvent:this._lastEvent};this.fire("predrag",d),Vn(this._element,this._newPos),this.fire("drag",d)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(d){er(document.body,"leaflet-dragging"),this._lastTarget&&(er(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),fr(document,"mousemove touchmove",this._onMove,this),fr(document,"mouseup touchend touchcancel",this._onUp,this),ud(),kc();var m=this._moved&&this._moving;this._moving=!1,ke._dragging=!1,m&&this.fire("dragend",{noInertia:d,distance:this._newPos.distanceTo(this._startPos)})}});function He(d,m,_){var B,Q=[1,4,2,8],ie,Ie,Xe,at,xt,$t,pn,zn;for(ie=0,$t=d.length;ie<$t;ie++)d[ie]._code=Ar(d[ie],m);for(Xe=0;Xe<4;Xe++){for(pn=Q[Xe],B=[],ie=0,$t=d.length,Ie=$t-1;ie<$t;Ie=ie++)at=d[ie],xt=d[Ie],at._code&pn?xt._code&pn||(zn=Br(xt,at,pn,m,_),zn._code=Ar(zn,m),B.push(zn)):(xt._code&pn&&(zn=Br(xt,at,pn,m,_),zn._code=Ar(zn,m),B.push(zn)),B.push(at));d=B}return d}function ut(d,m){var _,B,Q,ie,Ie,Xe,at,xt,$t;if(!d||d.length===0)throw new Error("latlngs not passed");aa(d)||(d=d[0]);var pn=Z([0,0]),zn=J(d),Sa=zn.getNorthWest().distanceTo(zn.getSouthWest())*zn.getNorthEast().distanceTo(zn.getNorthWest());Sa<1700&&(pn=wt(d));var Mi=d.length,Ds=[];for(_=0;_<Mi;_++){var Ra=Z(d[_]);Ds.push(m.project(Z([Ra.lat-pn.lat,Ra.lng-pn.lng])))}for(Xe=at=xt=0,_=0,B=Mi-1;_<Mi;B=_++)Q=Ds[_],ie=Ds[B],Ie=Q.y*ie.x-ie.y*Q.x,at+=(Q.x+ie.x)*Ie,xt+=(Q.y+ie.y)*Ie,Xe+=Ie*3;Xe===0?$t=Ds[0]:$t=[at/Xe,xt/Xe];var du=m.unproject(xe($t));return Z([du.lat+pn.lat,du.lng+pn.lng])}function wt(d){for(var m=0,_=0,B=0,Q=0;Q<d.length;Q++){var ie=Z(d[Q]);m+=ie.lat,_+=ie.lng,B++}return Z([m/B,_/B])}var Zt={__proto__:null,clipPolygon:He,polygonCenter:ut,centroid:wt};function Xt(d,m){if(!m||!d.length)return d.slice();var _=m*m;return d=yr(d,_),d=qn(d,_),d}function yn(d,m,_){return Math.sqrt(rs(d,m,_,!0))}function Pn(d,m,_){return rs(d,m,_)}function qn(d,m){var _=d.length,B=typeof Uint8Array<"u"?Uint8Array:Array,Q=new B(_);Q[0]=Q[_-1]=1,Zr(d,Q,m,0,_-1);var ie,Ie=[];for(ie=0;ie<_;ie++)Q[ie]&&Ie.push(d[ie]);return Ie}function Zr(d,m,_,B,Q){var ie=0,Ie,Xe,at;for(Xe=B+1;Xe<=Q-1;Xe++)at=rs(d[Xe],d[B],d[Q],!0),at>ie&&(Ie=Xe,ie=at);ie>_&&(m[Ie]=1,Zr(d,m,_,B,Ie),Zr(d,m,_,Ie,Q))}function yr(d,m){for(var _=[d[0]],B=1,Q=0,ie=d.length;B<ie;B++)ia(d[B],d[Q])>m&&(_.push(d[B]),Q=B);return Q<ie-1&&_.push(d[ie-1]),_}var dr;function Er(d,m,_,B,Q){var ie=B?dr:Ar(d,_),Ie=Ar(m,_),Xe,at,xt;for(dr=Ie;;){if(!(ie|Ie))return[d,m];if(ie&Ie)return!1;Xe=ie||Ie,at=Br(d,m,Xe,_,Q),xt=Ar(at,_),Xe===ie?(d=at,ie=xt):(m=at,Ie=xt)}}function Br(d,m,_,B,Q){var ie=m.x-d.x,Ie=m.y-d.y,Xe=B.min,at=B.max,xt,$t;return _&8?(xt=d.x+ie*(at.y-d.y)/Ie,$t=at.y):_&4?(xt=d.x+ie*(Xe.y-d.y)/Ie,$t=Xe.y):_&2?(xt=at.x,$t=d.y+Ie*(at.x-d.x)/ie):_&1&&(xt=Xe.x,$t=d.y+Ie*(Xe.x-d.x)/ie),new ee(xt,$t,Q)}function Ar(d,m){var _=0;return d.x<m.min.x?_|=1:d.x>m.max.x&&(_|=2),d.y<m.min.y?_|=4:d.y>m.max.y&&(_|=8),_}function ia(d,m){var _=m.x-d.x,B=m.y-d.y;return _*_+B*B}function rs(d,m,_,B){var Q=m.x,ie=m.y,Ie=_.x-Q,Xe=_.y-ie,at=Ie*Ie+Xe*Xe,xt;return at>0&&(xt=((d.x-Q)*Ie+(d.y-ie)*Xe)/at,xt>1?(Q=_.x,ie=_.y):xt>0&&(Q+=Ie*xt,ie+=Xe*xt)),Ie=d.x-Q,Xe=d.y-ie,B?Ie*Ie+Xe*Xe:new ee(Q,ie)}function aa(d){return!C(d[0])||typeof d[0][0]!="object"&&typeof d[0][0]<"u"}function Fc(d){return aa(d)}function Nc(d,m){var _,B,Q,ie,Ie,Xe,at,xt;if(!d||d.length===0)throw new Error("latlngs not passed");aa(d)||(d=d[0]);var $t=Z([0,0]),pn=J(d),zn=pn.getNorthWest().distanceTo(pn.getSouthWest())*pn.getNorthEast().distanceTo(pn.getNorthWest());zn<1700&&($t=wt(d));var Sa=d.length,Mi=[];for(_=0;_<Sa;_++){var Ds=Z(d[_]);Mi.push(m.project(Z([Ds.lat-$t.lat,Ds.lng-$t.lng])))}for(_=0,B=0;_<Sa-1;_++)B+=Mi[_].distanceTo(Mi[_+1])/2;if(B===0)xt=Mi[0];else for(_=0,ie=0;_<Sa-1;_++)if(Ie=Mi[_],Xe=Mi[_+1],Q=Ie.distanceTo(Xe),ie+=Q,ie>B){at=(ie-B)/Q,xt=[Xe.x-at*(Xe.x-Ie.x),Xe.y-at*(Xe.y-Ie.y)];break}var Ra=m.unproject(xe(xt));return Z([Ra.lat+$t.lat,Ra.lng+$t.lng])}var Dc={__proto__:null,simplify:Xt,pointToSegmentDistance:yn,closestPointOnSegment:Pn,clipSegment:Er,_getEdgeIntersection:Br,_getBitCode:Ar,_sqClosestPointOnSegment:rs,isFlat:aa,_flat:Fc,polylineCenter:Nc},Zo={project:function(d){return new ee(d.lng,d.lat)},unproject:function(d){return new z(d.y,d.x)},bounds:new Pe([-180,-90],[180,90])},Rc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Pe([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(d){var m=Math.PI/180,_=this.R,B=d.lat*m,Q=this.R_MINOR/_,ie=Math.sqrt(1-Q*Q),Ie=ie*Math.sin(B),Xe=Math.tan(Math.PI/4-B/2)/Math.pow((1-Ie)/(1+Ie),ie/2);return B=-_*Math.log(Math.max(Xe,1e-10)),new ee(d.lng*m*_,B)},unproject:function(d){for(var m=180/Math.PI,_=this.R,B=this.R_MINOR/_,Q=Math.sqrt(1-B*B),ie=Math.exp(-d.y/_),Ie=Math.PI/2-2*Math.atan(ie),Xe=0,at=.1,xt;Xe<15&&Math.abs(at)>1e-7;Xe++)xt=Q*Math.sin(Ie),xt=Math.pow((1-xt)/(1+xt),Q/2),at=Math.PI/2-2*Math.atan(ie*xt)-Ie,Ie+=at;return new z(Ie*m,d.x*m/_)}},iu={__proto__:null,LonLat:Zo,Mercator:Rc,SphericalMercator:Te},sa=i({},ge,{code:"EPSG:3395",projection:Rc,transformation:(function(){var d=.5/(Math.PI*Rc.R);return Ee(d,.5,-d,.5)})()}),Uc=i({},ge,{code:"EPSG:4326",projection:Zo,transformation:Ee(1/180,1,-1/180,.5)}),ml=i({},le,{projection:Zo,transformation:Ee(1,0,-1,0),scale:function(d){return Math.pow(2,d)},zoom:function(d){return Math.log(d)/Math.LN2},distance:function(d,m){var _=m.lng-d.lng,B=m.lat-d.lat;return Math.sqrt(_*_+B*B)},infinite:!0});le.Earth=ge,le.EPSG3395=sa,le.EPSG3857=Ne,le.EPSG900913=ue,le.EPSG4326=Uc,le.Simple=ml;var _a=fe.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(d){return d.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(d){return d&&d.removeLayer(this),this},getPane:function(d){return this._map.getPane(d?this.options[d]||d:this.options.pane)},addInteractiveTarget:function(d){return this._map._targets[c(d)]=this,this},removeInteractiveTarget:function(d){return delete this._map._targets[c(d)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(d){var m=d.target;if(m.hasLayer(this)){if(this._map=m,this._zoomAnimated=m._zoomAnimated,this.getEvents){var _=this.getEvents();m.on(_,this),this.once("remove",function(){m.off(_,this)},this)}this.onAdd(m),this.fire("add"),m.fire("layeradd",{layer:this})}}});Rn.include({addLayer:function(d){if(!d._layerAdd)throw new Error("The provided object is not a Layer.");var m=c(d);return this._layers[m]?this:(this._layers[m]=d,d._mapToAdd=this,d.beforeAdd&&d.beforeAdd(this),this.whenReady(d._layerAdd,d),this)},removeLayer:function(d){var m=c(d);return this._layers[m]?(this._loaded&&d.onRemove(this),delete this._layers[m],this._loaded&&(this.fire("layerremove",{layer:d}),d.fire("remove")),d._map=d._mapToAdd=null,this):this},hasLayer:function(d){return c(d)in this._layers},eachLayer:function(d,m){for(var _ in this._layers)d.call(m,this._layers[_]);return this},_addLayers:function(d){d=d?C(d)?d:[d]:[];for(var m=0,_=d.length;m<_;m++)this.addLayer(d[m])},_addZoomLimit:function(d){(!isNaN(d.options.maxZoom)||!isNaN(d.options.minZoom))&&(this._zoomBoundLayers[c(d)]=d,this._updateZoomLevels())},_removeZoomLimit:function(d){var m=c(d);this._zoomBoundLayers[m]&&(delete this._zoomBoundLayers[m],this._updateZoomLevels())},_updateZoomLevels:function(){var d=1/0,m=-1/0,_=this._getZoomSpan();for(var B in this._zoomBoundLayers){var Q=this._zoomBoundLayers[B].options;d=Q.minZoom===void 0?d:Math.min(d,Q.minZoom),m=Q.maxZoom===void 0?m:Math.max(m,Q.maxZoom)}this._layersMaxZoom=m===-1/0?void 0:m,this._layersMinZoom=d===1/0?void 0:d,_!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var xa=_a.extend({initialize:function(d,m){y(this,m),this._layers={};var _,B;if(d)for(_=0,B=d.length;_<B;_++)this.addLayer(d[_])},addLayer:function(d){var m=this.getLayerId(d);return this._layers[m]=d,this._map&&this._map.addLayer(d),this},removeLayer:function(d){var m=d in this._layers?d:this.getLayerId(d);return this._map&&this._layers[m]&&this._map.removeLayer(this._layers[m]),delete this._layers[m],this},hasLayer:function(d){var m=typeof d=="number"?d:this.getLayerId(d);return m in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(d){var m=Array.prototype.slice.call(arguments,1),_,B;for(_ in this._layers)B=this._layers[_],B[d]&&B[d].apply(B,m);return this},onAdd:function(d){this.eachLayer(d.addLayer,d)},onRemove:function(d){this.eachLayer(d.removeLayer,d)},eachLayer:function(d,m){for(var _ in this._layers)d.call(m,this._layers[_]);return this},getLayer:function(d){return this._layers[d]},getLayers:function(){var d=[];return this.eachLayer(d.push,d),d},setZIndex:function(d){return this.invoke("setZIndex",d)},getLayerId:function(d){return c(d)}}),Ma=function(d,m){return new xa(d,m)},Bs=xa.extend({addLayer:function(d){return this.hasLayer(d)?this:(d.addEventParent(this),xa.prototype.addLayer.call(this,d),this.fire("layeradd",{layer:d}))},removeLayer:function(d){return this.hasLayer(d)?(d in this._layers&&(d=this._layers[d]),d.removeEventParent(this),xa.prototype.removeLayer.call(this,d),this.fire("layerremove",{layer:d})):this},setStyle:function(d){return this.invoke("setStyle",d)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var d=new ae;for(var m in this._layers){var _=this._layers[m];d.extend(_.getBounds?_.getBounds():_.getLatLng())}return d}}),au=function(d,m){return new Bs(d,m)},ec=$.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(d){y(this,d)},createIcon:function(d){return this._createIcon("icon",d)},createShadow:function(d){return this._createIcon("shadow",d)},_createIcon:function(d,m){var _=this._getIconUrl(d);if(!_){if(d==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var B=this._createImg(_,m&&m.tagName==="IMG"?m:null);return this._setIconStyles(B,d),(this.options.crossOrigin||this.options.crossOrigin==="")&&(B.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),B},_setIconStyles:function(d,m){var _=this.options,B=_[m+"Size"];typeof B=="number"&&(B=[B,B]);var Q=xe(B),ie=xe(m==="shadow"&&_.shadowAnchor||_.iconAnchor||Q&&Q.divideBy(2,!0));d.className="leaflet-marker-"+m+" "+(_.className||""),ie&&(d.style.marginLeft=-ie.x+"px",d.style.marginTop=-ie.y+"px"),Q&&(d.style.width=Q.x+"px",d.style.height=Q.y+"px")},_createImg:function(d,m){return m=m||document.createElement("img"),m.src=d,m},_getIconUrl:function(d){return Dt.retina&&this.options[d+"RetinaUrl"]||this.options[d+"Url"]}});function Ts(d){return new ec(d)}var Zs=ec.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(d){return typeof Zs.imagePath!="string"&&(Zs.imagePath=this._detectIconPath()),(this.options.imagePath||Zs.imagePath)+ec.prototype._getIconUrl.call(this,d)},_stripUrl:function(d){var m=function(_,B,Q){var ie=B.exec(_);return ie&&ie[Q]};return d=m(d,/^url\((['"])?(.+)\1\)$/,2),d&&m(d,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var d=qt("div","leaflet-default-icon-path",document.body),m=Ln(d,"background-image")||Ln(d,"backgroundImage");if(document.body.removeChild(d),m=this._stripUrl(m),m)return m;var _=document.querySelector('link[href$="leaflet.css"]');return _?_.href.substring(0,_.href.length-11-1):""}}),su=E.extend({initialize:function(d){this._marker=d},addHooks:function(){var d=this._marker._icon;this._draggable||(this._draggable=new ke(d,d,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),on(d,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&er(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(d){var m=this._marker,_=m._map,B=this._marker.options.autoPanSpeed,Q=this._marker.options.autoPanPadding,ie=ns(m._icon),Ie=_.getPixelBounds(),Xe=_.getPixelOrigin(),at=V(Ie.min._subtract(Xe).add(Q),Ie.max._subtract(Xe).subtract(Q));if(!at.contains(ie)){var xt=xe((Math.max(at.max.x,ie.x)-at.max.x)/(Ie.max.x-at.max.x)-(Math.min(at.min.x,ie.x)-at.min.x)/(Ie.min.x-at.min.x),(Math.max(at.max.y,ie.y)-at.max.y)/(Ie.max.y-at.max.y)-(Math.min(at.min.y,ie.y)-at.min.y)/(Ie.min.y-at.min.y)).multiplyBy(B);_.panBy(xt,{animate:!1}),this._draggable._newPos._add(xt),this._draggable._startPos._add(xt),Vn(m._icon,this._draggable._newPos),this._onDrag(d),this._panRequest=k(this._adjustPan.bind(this,d))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(d){this._marker.options.autoPan&&(H(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,d)))},_onDrag:function(d){var m=this._marker,_=m._shadow,B=ns(m._icon),Q=m._map.layerPointToLatLng(B);_&&Vn(_,B),m._latlng=Q,d.latlng=Q,d.oldLatLng=this._oldLatLng,m.fire("move",d).fire("drag",d)},_onDragEnd:function(d){H(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",d)}}),tc=_a.extend({options:{icon:new Zs,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(d,m){y(this,m),this._latlng=Z(d)},onAdd:function(d){this._zoomAnimated=this._zoomAnimated&&d.options.markerZoomAnimation,this._zoomAnimated&&d.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(d){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&d.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(d){var m=this._latlng;return this._latlng=Z(d),this.update(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},setZIndexOffset:function(d){return this.options.zIndexOffset=d,this.update()},getIcon:function(){return this.options.icon},setIcon:function(d){return this.options.icon=d,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var d=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(d)}return this},_initIcon:function(){var d=this.options,m="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),_=d.icon.createIcon(this._icon),B=!1;_!==this._icon&&(this._icon&&this._removeIcon(),B=!0,d.title&&(_.title=d.title),_.tagName==="IMG"&&(_.alt=d.alt||"")),on(_,m),d.keyboard&&(_.tabIndex="0",_.setAttribute("role","button")),this._icon=_,d.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&It(_,"focus",this._panOnFocus,this);var Q=d.icon.createShadow(this._shadow),ie=!1;Q!==this._shadow&&(this._removeShadow(),ie=!0),Q&&(on(Q,m),Q.alt=""),this._shadow=Q,d.opacity<1&&this._updateOpacity(),B&&this.getPane().appendChild(this._icon),this._initInteraction(),Q&&ie&&this.getPane(d.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&fr(this._icon,"focus",this._panOnFocus,this),mn(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&mn(this._shadow),this._shadow=null},_setPos:function(d){this._icon&&Vn(this._icon,d),this._shadow&&Vn(this._shadow,d),this._zIndex=d.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(d){this._icon&&(this._icon.style.zIndex=this._zIndex+d)},_animateZoom:function(d){var m=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center).round();this._setPos(m)},_initInteraction:function(){if(this.options.interactive&&(on(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),su)){var d=this.options.draggable;this.dragging&&(d=this.dragging.enabled(),this.dragging.disable()),this.dragging=new su(this),d&&this.dragging.enable()}},setOpacity:function(d){return this.options.opacity=d,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var d=this.options.opacity;this._icon&&wn(this._icon,d),this._shadow&&wn(this._shadow,d)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var d=this._map;if(d){var m=this.options.icon.options,_=m.iconSize?xe(m.iconSize):xe(0,0),B=m.iconAnchor?xe(m.iconAnchor):xe(0,0);d.panInside(this._latlng,{paddingTopLeft:B,paddingBottomRight:_.subtract(B)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function pl(d,m){return new tc(d,m)}var ks=_a.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(d){this._renderer=d.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(d){return y(this,d),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&d&&Object.prototype.hasOwnProperty.call(d,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Di=ks.extend({options:{fill:!0,radius:10},initialize:function(d,m){y(this,m),this._latlng=Z(d),this._radius=this.options.radius},setLatLng:function(d){var m=this._latlng;return this._latlng=Z(d),this.redraw(),this.fire("move",{oldLatLng:m,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(d){return this.options.radius=this._radius=d,this.redraw()},getRadius:function(){return this._radius},setStyle:function(d){var m=d&&d.radius||this._radius;return ks.prototype.setStyle.call(this,d),this.setRadius(m),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var d=this._radius,m=this._radiusY||d,_=this._clickTolerance(),B=[d+_,m+_];this._pxBounds=new Pe(this._point.subtract(B),this._point.add(B))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(d){return d.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Na(d,m){return new Di(d,m)}var Oc=Di.extend({initialize:function(d,m,_){if(typeof m=="number"&&(m=i({},_,{radius:m})),y(this,m),this._latlng=Z(d),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(d){return this._mRadius=d,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var d=[this._radius,this._radiusY||this._radius];return new ae(this._map.layerPointToLatLng(this._point.subtract(d)),this._map.layerPointToLatLng(this._point.add(d)))},setStyle:ks.prototype.setStyle,_project:function(){var d=this._latlng.lng,m=this._latlng.lat,_=this._map,B=_.options.crs;if(B.distance===ge.distance){var Q=Math.PI/180,ie=this._mRadius/ge.R/Q,Ie=_.project([m+ie,d]),Xe=_.project([m-ie,d]),at=Ie.add(Xe).divideBy(2),xt=_.unproject(at).lat,$t=Math.acos((Math.cos(ie*Q)-Math.sin(m*Q)*Math.sin(xt*Q))/(Math.cos(m*Q)*Math.cos(xt*Q)))/Q;(isNaN($t)||$t===0)&&($t=ie/Math.cos(Math.PI/180*m)),this._point=at.subtract(_.getPixelOrigin()),this._radius=isNaN($t)?0:at.x-_.project([xt,d-$t]).x,this._radiusY=at.y-Ie.y}else{var pn=B.unproject(B.project(this._latlng).subtract([this._mRadius,0]));this._point=_.latLngToLayerPoint(this._latlng),this._radius=this._point.x-_.latLngToLayerPoint(pn).x}this._updateBounds()}});function Hc(d,m,_){return new Oc(d,m,_)}var oa=ks.extend({options:{smoothFactor:1,noClip:!1},initialize:function(d,m){y(this,m),this._setLatLngs(d)},getLatLngs:function(){return this._latlngs},setLatLngs:function(d){return this._setLatLngs(d),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(d){for(var m=1/0,_=null,B=rs,Q,ie,Ie=0,Xe=this._parts.length;Ie<Xe;Ie++)for(var at=this._parts[Ie],xt=1,$t=at.length;xt<$t;xt++){Q=at[xt-1],ie=at[xt];var pn=B(d,Q,ie,!0);pn<m&&(m=pn,_=B(d,Q,ie))}return _&&(_.distance=Math.sqrt(m)),_},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Nc(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(d,m){return m=m||this._defaultShape(),d=Z(d),m.push(d),this._bounds.extend(d),this.redraw()},_setLatLngs:function(d){this._bounds=new ae,this._latlngs=this._convertLatLngs(d)},_defaultShape:function(){return aa(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(d){for(var m=[],_=aa(d),B=0,Q=d.length;B<Q;B++)_?(m[B]=Z(d[B]),this._bounds.extend(m[B])):m[B]=this._convertLatLngs(d[B]);return m},_project:function(){var d=new Pe;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,d),this._bounds.isValid()&&d.isValid()&&(this._rawPxBounds=d,this._updateBounds())},_updateBounds:function(){var d=this._clickTolerance(),m=new ee(d,d);this._rawPxBounds&&(this._pxBounds=new Pe([this._rawPxBounds.min.subtract(m),this._rawPxBounds.max.add(m)]))},_projectLatlngs:function(d,m,_){var B=d[0]instanceof z,Q=d.length,ie,Ie;if(B){for(Ie=[],ie=0;ie<Q;ie++)Ie[ie]=this._map.latLngToLayerPoint(d[ie]),_.extend(Ie[ie]);m.push(Ie)}else for(ie=0;ie<Q;ie++)this._projectLatlngs(d[ie],m,_)},_clipPoints:function(){var d=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(d))){if(this.options.noClip){this._parts=this._rings;return}var m=this._parts,_,B,Q,ie,Ie,Xe,at;for(_=0,Q=0,ie=this._rings.length;_<ie;_++)for(at=this._rings[_],B=0,Ie=at.length;B<Ie-1;B++)Xe=Er(at[B],at[B+1],d,B,!0),Xe&&(m[Q]=m[Q]||[],m[Q].push(Xe[0]),(Xe[1]!==at[B+1]||B===Ie-2)&&(m[Q].push(Xe[1]),Q++))}},_simplifyPoints:function(){for(var d=this._parts,m=this.options.smoothFactor,_=0,B=d.length;_<B;_++)d[_]=Xt(d[_],m)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(d,m){var _,B,Q,ie,Ie,Xe,at=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(d))return!1;for(_=0,ie=this._parts.length;_<ie;_++)for(Xe=this._parts[_],B=0,Ie=Xe.length,Q=Ie-1;B<Ie;Q=B++)if(!(!m&&B===0)&&yn(d,Xe[Q],Xe[B])<=at)return!0;return!1}});function ou(d,m){return new oa(d,m)}oa._flat=Fc;var Is=oa.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ut(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(d){var m=oa.prototype._convertLatLngs.call(this,d),_=m.length;return _>=2&&m[0]instanceof z&&m[0].equals(m[_-1])&&m.pop(),m},_setLatLngs:function(d){oa.prototype._setLatLngs.call(this,d),aa(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return aa(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var d=this._renderer._bounds,m=this.options.weight,_=new ee(m,m);if(d=new Pe(d.min.subtract(_),d.max.add(_)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(d))){if(this.options.noClip){this._parts=this._rings;return}for(var B=0,Q=this._rings.length,ie;B<Q;B++)ie=He(this._rings[B],d,!0),ie.length&&this._parts.push(ie)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(d){var m=!1,_,B,Q,ie,Ie,Xe,at,xt;if(!this._pxBounds||!this._pxBounds.contains(d))return!1;for(ie=0,at=this._parts.length;ie<at;ie++)for(_=this._parts[ie],Ie=0,xt=_.length,Xe=xt-1;Ie<xt;Xe=Ie++)B=_[Ie],Q=_[Xe],B.y>d.y!=Q.y>d.y&&d.x<(Q.x-B.x)*(d.y-B.y)/(Q.y-B.y)+B.x&&(m=!m);return m||oa.prototype._containsPoint.call(this,d,!0)}});function ui(d,m){return new Is(d,m)}var eo=Bs.extend({initialize:function(d,m){y(this,m),this._layers={},d&&this.addData(d)},addData:function(d){var m=C(d)?d:d.features,_,B,Q;if(m){for(_=0,B=m.length;_<B;_++)Q=m[_],(Q.geometries||Q.geometry||Q.features||Q.coordinates)&&this.addData(Q);return this}var ie=this.options;if(ie.filter&&!ie.filter(d))return this;var Ie=is(d,ie);return Ie?(Ie.feature=Eo(d),Ie.defaultOptions=Ie.options,this.resetStyle(Ie),ie.onEachFeature&&ie.onEachFeature(d,Ie),this.addLayer(Ie)):this},resetStyle:function(d){return d===void 0?this.eachLayer(this.resetStyle,this):(d.options=i({},d.defaultOptions),this._setLayerStyle(d,this.options.style),this)},setStyle:function(d){return this.eachLayer(function(m){this._setLayerStyle(m,d)},this)},_setLayerStyle:function(d,m){d.setStyle&&(typeof m=="function"&&(m=m(d.feature)),d.setStyle(m))}});function is(d,m){var _=d.type==="Feature"?d.geometry:d,B=_?_.coordinates:null,Q=[],ie=m&&m.pointToLayer,Ie=m&&m.coordsToLatLng||nc,Xe,at,xt,$t;if(!B&&!_)return null;switch(_.type){case"Point":return Xe=Ie(B),Ls(ie,d,Xe,m);case"MultiPoint":for(xt=0,$t=B.length;xt<$t;xt++)Xe=Ie(B[xt]),Q.push(Ls(ie,d,Xe,m));return new Bs(Q);case"LineString":case"MultiLineString":return at=Wc(B,_.type==="LineString"?0:1,Ie),new oa(at,m);case"Polygon":case"MultiPolygon":return at=Wc(B,_.type==="Polygon"?1:2,Ie),new Is(at,m);case"GeometryCollection":for(xt=0,$t=_.geometries.length;xt<$t;xt++){var pn=is({geometry:_.geometries[xt],type:"Feature",properties:d.properties},m);pn&&Q.push(pn)}return new Bs(Q);case"FeatureCollection":for(xt=0,$t=_.features.length;xt<$t;xt++){var zn=is(_.features[xt],m);zn&&Q.push(zn)}return new Bs(Q);default:throw new Error("Invalid GeoJSON object.")}}function Ls(d,m,_,B){return d?d(m,_):new tc(_,B&&B.markersInheritOptions&&B)}function nc(d){return new z(d[1],d[0],d[2])}function Wc(d,m,_){for(var B=[],Q=0,ie=d.length,Ie;Q<ie;Q++)Ie=m?Wc(d[Q],m-1,_):(_||nc)(d[Q]),B.push(Ie);return B}function gl(d,m){return d=Z(d),d.alt!==void 0?[f(d.lng,m),f(d.lat,m),f(d.alt,m)]:[f(d.lng,m),f(d.lat,m)]}function rc(d,m,_,B){for(var Q=[],ie=0,Ie=d.length;ie<Ie;ie++)Q.push(m?rc(d[ie],aa(d[ie])?0:m-1,_,B):gl(d[ie],B));return!m&&_&&Q.length>0&&Q.push(Q[0].slice()),Q}function Fs(d,m){return d.feature?i({},d.feature,{geometry:m}):Eo(m)}function Eo(d){return d.type==="Feature"||d.type==="FeatureCollection"?d:{type:"Feature",properties:{},geometry:d}}var Bo={toGeoJSON:function(d){return Fs(this,{type:"Point",coordinates:gl(this.getLatLng(),d)})}};tc.include(Bo),Oc.include(Bo),Di.include(Bo),oa.include({toGeoJSON:function(d){var m=!aa(this._latlngs),_=rc(this._latlngs,m?1:0,!1,d);return Fs(this,{type:(m?"Multi":"")+"LineString",coordinates:_})}}),Is.include({toGeoJSON:function(d){var m=!aa(this._latlngs),_=m&&!aa(this._latlngs[0]),B=rc(this._latlngs,_?2:m?1:0,!0,d);return m||(B=[B]),Fs(this,{type:(_?"Multi":"")+"Polygon",coordinates:B})}}),xa.include({toMultiPoint:function(d){var m=[];return this.eachLayer(function(_){m.push(_.toGeoJSON(d).geometry.coordinates)}),Fs(this,{type:"MultiPoint",coordinates:m})},toGeoJSON:function(d){var m=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(m==="MultiPoint")return this.toMultiPoint(d);var _=m==="GeometryCollection",B=[];return this.eachLayer(function(Q){if(Q.toGeoJSON){var ie=Q.toGeoJSON(d);if(_)B.push(ie.geometry);else{var Ie=Eo(ie);Ie.type==="FeatureCollection"?B.push.apply(B,Ie.features):B.push(Ie)}}}),_?Fs(this,{geometries:B,type:"GeometryCollection"}):{type:"FeatureCollection",features:B}}});function To(d,m){return new eo(d,m)}var Qc=To,ic=_a.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(d,m,_){this._url=d,this._bounds=J(m),y(this,_)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(on(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){mn(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(d){return this.options.opacity=d,this._image&&this._updateOpacity(),this},setStyle:function(d){return d.opacity&&this.setOpacity(d.opacity),this},bringToFront:function(){return this._map&&Ot(this._image),this},bringToBack:function(){return this._map&&vr(this._image),this},setUrl:function(d){return this._url=d,this._image&&(this._image.src=d),this},setBounds:function(d){return this._bounds=J(d),this._map&&this._reset(),this},getEvents:function(){var d={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},setZIndex:function(d){return this.options.zIndex=d,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var d=this._url.tagName==="IMG",m=this._image=d?this._url:qt("img");if(on(m,"leaflet-image-layer"),this._zoomAnimated&&on(m,"leaflet-zoom-animated"),this.options.className&&on(m,this.options.className),m.onselectstart=A,m.onmousemove=A,m.onload=s(this.fire,this,"load"),m.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),d){this._url=m.src;return}m.src=this._url,m.alt=this.options.alt},_animateZoom:function(d){var m=this._map.getZoomScale(d.zoom),_=this._map._latLngBoundsToNewLayerBounds(this._bounds,d.zoom,d.center).min;Nr(this._image,_,m)},_reset:function(){var d=this._image,m=new Pe(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),_=m.getSize();Vn(d,m.min),d.style.width=_.x+"px",d.style.height=_.y+"px"},_updateOpacity:function(){wn(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var d=this.options.errorOverlayUrl;d&&this._url!==d&&(this._url=d,this._image.src=d)},getCenter:function(){return this._bounds.getCenter()}}),ca=function(d,m,_){return new ic(d,m,_)},to=ic.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var d=this._url.tagName==="VIDEO",m=this._image=d?this._url:qt("video");if(on(m,"leaflet-image-layer"),this._zoomAnimated&&on(m,"leaflet-zoom-animated"),this.options.className&&on(m,this.options.className),m.onselectstart=A,m.onmousemove=A,m.onloadeddata=s(this.fire,this,"load"),d){for(var _=m.getElementsByTagName("source"),B=[],Q=0;Q<_.length;Q++)B.push(_[Q].src);this._url=_.length>0?B:[m.src];return}C(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(m.style,"objectFit")&&(m.style.objectFit="fill"),m.autoplay=!!this.options.autoplay,m.loop=!!this.options.loop,m.muted=!!this.options.muted,m.playsInline=!!this.options.playsInline;for(var ie=0;ie<this._url.length;ie++){var Ie=qt("source");Ie.src=this._url[ie],m.appendChild(Ie)}}});function Tr(d,m,_){return new to(d,m,_)}var wr=ic.extend({_initImage:function(){var d=this._image=this._url;on(d,"leaflet-image-layer"),this._zoomAnimated&&on(d,"leaflet-zoom-animated"),this.options.className&&on(d,this.options.className),d.onselectstart=A,d.onmousemove=A}});function oi(d,m,_){return new wr(d,m,_)}var mr=_a.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(d,m){d&&(d instanceof z||C(d))?(this._latlng=Z(d),y(this,m)):(y(this,d),this._source=m),this.options.content&&(this._content=this.options.content)},openOn:function(d){return d=arguments.length?d:this._source._map,d.hasLayer(this)||d.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(d){return this._map?this.close():(arguments.length?this._source=d:d=this._source,this._prepareOpen(),this.openOn(d._map)),this},onAdd:function(d){this._zoomAnimated=d._zoomAnimated,this._container||this._initLayout(),d._fadeAnimated&&wn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),d._fadeAnimated&&wn(this._container,1),this.bringToFront(),this.options.interactive&&(on(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(d){d._fadeAnimated?(wn(this._container,0),this._removeTimeout=setTimeout(s(mn,void 0,this._container),200)):mn(this._container),this.options.interactive&&(er(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(d){return this._latlng=Z(d),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(d){return this._content=d,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var d={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Ot(this._container),this},bringToBack:function(){return this._map&&vr(this._container),this},_prepareOpen:function(d){var m=this._source;if(!m._map)return!1;if(m instanceof Bs){m=null;var _=this._source._layers;for(var B in _)if(_[B]._map){m=_[B];break}if(!m)return!1;this._source=m}if(!d)if(m.getCenter)d=m.getCenter();else if(m.getLatLng)d=m.getLatLng();else if(m.getBounds)d=m.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(d),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var d=this._contentNode,m=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof m=="string")d.innerHTML=m;else{for(;d.hasChildNodes();)d.removeChild(d.firstChild);d.appendChild(m)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var d=this._map.latLngToLayerPoint(this._latlng),m=xe(this.options.offset),_=this._getAnchor();this._zoomAnimated?Vn(this._container,d.add(_)):m=m.add(d).add(_);var B=this._containerBottom=-m.y,Q=this._containerLeft=-Math.round(this._containerWidth/2)+m.x;this._container.style.bottom=B+"px",this._container.style.left=Q+"px"}},_getAnchor:function(){return[0,0]}});Rn.include({_initOverlay:function(d,m,_,B){var Q=m;return Q instanceof d||(Q=new d(B).setContent(m)),_&&Q.setLatLng(_),Q}}),_a.include({_initOverlay:function(d,m,_,B){var Q=_;return Q instanceof d?(y(Q,B),Q._source=this):(Q=m&&!B?m:new d(B,this),Q.setContent(_)),Q}});var Ns=mr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(d){return d=arguments.length?d:this._source._map,!d.hasLayer(this)&&d._popup&&d._popup.options.autoClose&&d.removeLayer(d._popup),d._popup=this,mr.prototype.openOn.call(this,d)},onAdd:function(d){mr.prototype.onAdd.call(this,d),d.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ks||this._source.on("preclick",ba))},onRemove:function(d){mr.prototype.onRemove.call(this,d),d.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ks||this._source.off("preclick",ba))},getEvents:function(){var d=mr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(d.preclick=this.close),this.options.keepInView&&(d.moveend=this._adjustPan),d},_initLayout:function(){var d="leaflet-popup",m=this._container=qt("div",d+" "+(this.options.className||"")+" leaflet-zoom-animated"),_=this._wrapper=qt("div",d+"-content-wrapper",m);if(this._contentNode=qt("div",d+"-content",_),Al(m),md(this._contentNode),It(m,"contextmenu",ba),this._tipContainer=qt("div",d+"-tip-container",m),this._tip=qt("div",d+"-tip",this._tipContainer),this.options.closeButton){var B=this._closeButton=qt("a",d+"-close-button",m);B.setAttribute("role","button"),B.setAttribute("aria-label","Close popup"),B.href="#close",B.innerHTML='<span aria-hidden="true">&#215;</span>',It(B,"click",function(Q){Jr(Q),this.close()},this)}},_updateLayout:function(){var d=this._contentNode,m=d.style;m.width="",m.whiteSpace="nowrap";var _=d.offsetWidth;_=Math.min(_,this.options.maxWidth),_=Math.max(_,this.options.minWidth),m.width=_+1+"px",m.whiteSpace="",m.height="";var B=d.offsetHeight,Q=this.options.maxHeight,ie="leaflet-popup-scrolled";Q&&B>Q?(m.height=Q+"px",on(d,ie)):er(d,ie),this._containerWidth=this._container.offsetWidth},_animateZoom:function(d){var m=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center),_=this._getAnchor();Vn(this._container,m.add(_))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var d=this._map,m=parseInt(Ln(this._container,"marginBottom"),10)||0,_=this._container.offsetHeight+m,B=this._containerWidth,Q=new ee(this._containerLeft,-_-this._containerBottom);Q._add(ns(this._container));var ie=d.layerPointToContainerPoint(Q),Ie=xe(this.options.autoPanPadding),Xe=xe(this.options.autoPanPaddingTopLeft||Ie),at=xe(this.options.autoPanPaddingBottomRight||Ie),xt=d.getSize(),$t=0,pn=0;ie.x+B+at.x>xt.x&&($t=ie.x+B-xt.x+at.x),ie.x-$t-Xe.x<0&&($t=ie.x-Xe.x),ie.y+_+at.y>xt.y&&(pn=ie.y+_-xt.y+at.y),ie.y-pn-Xe.y<0&&(pn=ie.y-Xe.y),($t||pn)&&(this.options.keepInView&&(this._autopanning=!0),d.fire("autopanstart").panBy([$t,pn]))}},_getAnchor:function(){return xe(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),vd=function(d,m){return new Ns(d,m)};Rn.mergeOptions({closePopupOnClick:!0}),Rn.include({openPopup:function(d,m,_){return this._initOverlay(Ns,d,m,_).openOn(this),this},closePopup:function(d){return d=arguments.length?d:this._popup,d&&d.close(),this}}),_a.include({bindPopup:function(d,m){return this._popup=this._initOverlay(Ns,this._popup,d,m),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(d){return this._popup&&(this instanceof Bs||(this._popup._source=this),this._popup._prepareOpen(d||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(d){return this._popup&&this._popup.setContent(d),this},getPopup:function(){return this._popup},_openPopup:function(d){if(!(!this._popup||!this._map)){Xs(d);var m=d.layer||d.target;if(this._popup._source===m&&!(m instanceof ks)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(d.latlng);return}this._popup._source=m,this.openPopup(d.latlng)}},_movePopup:function(d){this._popup.setLatLng(d.latlng)},_onKeyPress:function(d){d.originalEvent.keyCode===13&&this._openPopup(d)}});var ac=mr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(d){mr.prototype.onAdd.call(this,d),this.setOpacity(this.options.opacity),d.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(d){mr.prototype.onRemove.call(this,d),d.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var d=mr.prototype.getEvents.call(this);return this.options.permanent||(d.preclick=this.close),d},_initLayout:function(){var d="leaflet-tooltip",m=d+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=qt("div",m),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(d){var m,_,B=this._map,Q=this._container,ie=B.latLngToContainerPoint(B.getCenter()),Ie=B.layerPointToContainerPoint(d),Xe=this.options.direction,at=Q.offsetWidth,xt=Q.offsetHeight,$t=xe(this.options.offset),pn=this._getAnchor();Xe==="top"?(m=at/2,_=xt):Xe==="bottom"?(m=at/2,_=0):Xe==="center"?(m=at/2,_=xt/2):Xe==="right"?(m=0,_=xt/2):Xe==="left"?(m=at,_=xt/2):Ie.x<ie.x?(Xe="right",m=0,_=xt/2):(Xe="left",m=at+($t.x+pn.x)*2,_=xt/2),d=d.subtract(xe(m,_,!0)).add($t).add(pn),er(Q,"leaflet-tooltip-right"),er(Q,"leaflet-tooltip-left"),er(Q,"leaflet-tooltip-top"),er(Q,"leaflet-tooltip-bottom"),on(Q,"leaflet-tooltip-"+Xe),Vn(Q,d)},_updatePosition:function(){var d=this._map.latLngToLayerPoint(this._latlng);this._setPosition(d)},setOpacity:function(d){this.options.opacity=d,this._container&&wn(this._container,d)},_animateZoom:function(d){var m=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center);this._setPosition(m)},_getAnchor:function(){return xe(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),th=function(d,m){return new ac(d,m)};Rn.include({openTooltip:function(d,m,_){return this._initOverlay(ac,d,m,_).openOn(this),this},closeTooltip:function(d){return d.close(),this}}),_a.include({bindTooltip:function(d,m){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ac,this._tooltip,d,m),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(d){if(!(!d&&this._tooltipHandlersAdded)){var m=d?"off":"on",_={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?_.add=this._openTooltip:(_.mouseover=this._openTooltip,_.mouseout=this.closeTooltip,_.click=this._openTooltip,this._map?this._addFocusListeners():_.add=this._addFocusListeners),this._tooltip.options.sticky&&(_.mousemove=this._moveTooltip),this[m](_),this._tooltipHandlersAdded=!d}},openTooltip:function(d){return this._tooltip&&(this instanceof Bs||(this._tooltip._source=this),this._tooltip._prepareOpen(d)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(d){return this._tooltip&&this._tooltip.setContent(d),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(d){var m=typeof d.getElement=="function"&&d.getElement();m&&(It(m,"focus",function(){this._tooltip._source=d,this.openTooltip()},this),It(m,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(d){var m=typeof d.getElement=="function"&&d.getElement();m&&m.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(d){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var m=this;this._map.once("moveend",function(){m._openOnceFlag=!1,m._openTooltip(d)});return}this._tooltip._source=d.layer||d.target,this.openTooltip(this._tooltip.options.sticky?d.latlng:void 0)}},_moveTooltip:function(d){var m=d.latlng,_,B;this._tooltip.options.sticky&&d.originalEvent&&(_=this._map.mouseEventToContainerPoint(d.originalEvent),B=this._map.containerPointToLayerPoint(_),m=this._map.layerPointToLatLng(B)),this._tooltip.setLatLng(m)}});var Qf=ec.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(d){var m=d&&d.tagName==="DIV"?d:document.createElement("div"),_=this.options;if(_.html instanceof Element?(Fn(m),m.appendChild(_.html)):m.innerHTML=_.html!==!1?_.html:"",_.bgPos){var B=xe(_.bgPos);m.style.backgroundPosition=-B.x+"px "+-B.y+"px"}return this._setIconStyles(m,"icon"),m},createShadow:function(){return null}});function Hg(d){return new Qf(d)}ec.Default=Zs;var cu=_a.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Dt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(d){y(this,d)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(d){d._addZoomLimit(this)},onRemove:function(d){this._removeAllTiles(),mn(this._container),d._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ot(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(vr(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(d){return this.options.opacity=d,this._updateOpacity(),this},setZIndex:function(d){return this.options.zIndex=d,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var d=this._clampZoom(this._map.getZoom());d!==this._tileZoom&&(this._tileZoom=d,this._updateLevels()),this._update()}return this},getEvents:function(){var d={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=l(this._onMoveEnd,this.options.updateInterval,this)),d.move=this._onMove),this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},createTile:function(){return document.createElement("div")},getTileSize:function(){var d=this.options.tileSize;return d instanceof ee?d:new ee(d,d)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(d){for(var m=this.getPane().children,_=-d(-1/0,1/0),B=0,Q=m.length,ie;B<Q;B++)ie=m[B].style.zIndex,m[B]!==this._container&&ie&&(_=d(_,+ie));isFinite(_)&&(this.options.zIndex=_+d(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Dt.ielt9){wn(this._container,this.options.opacity);var d=+new Date,m=!1,_=!1;for(var B in this._tiles){var Q=this._tiles[B];if(!(!Q.current||!Q.loaded)){var ie=Math.min(1,(d-Q.loaded)/200);wn(Q.el,ie),ie<1?m=!0:(Q.active?_=!0:this._onOpaqueTile(Q),Q.active=!0)}}_&&!this._noPrune&&this._pruneTiles(),m&&(H(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:A,_initContainer:function(){this._container||(this._container=qt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var d=this._tileZoom,m=this.options.maxZoom;if(d!==void 0){for(var _ in this._levels)_=Number(_),this._levels[_].el.children.length||_===d?(this._levels[_].el.style.zIndex=m-Math.abs(d-_),this._onUpdateLevel(_)):(mn(this._levels[_].el),this._removeTilesAtZoom(_),this._onRemoveLevel(_),delete this._levels[_]);var B=this._levels[d],Q=this._map;return B||(B=this._levels[d]={},B.el=qt("div","leaflet-tile-container leaflet-zoom-animated",this._container),B.el.style.zIndex=m,B.origin=Q.project(Q.unproject(Q.getPixelOrigin()),d).round(),B.zoom=d,this._setZoomTransform(B,Q.getCenter(),Q.getZoom()),A(B.el.offsetWidth),this._onCreateLevel(B)),this._level=B,B}},_onUpdateLevel:A,_onRemoveLevel:A,_onCreateLevel:A,_pruneTiles:function(){if(this._map){var d,m,_=this._map.getZoom();if(_>this.options.maxZoom||_<this.options.minZoom){this._removeAllTiles();return}for(d in this._tiles)m=this._tiles[d],m.retain=m.current;for(d in this._tiles)if(m=this._tiles[d],m.current&&!m.active){var B=m.coords;this._retainParent(B.x,B.y,B.z,B.z-5)||this._retainChildren(B.x,B.y,B.z,B.z+2)}for(d in this._tiles)this._tiles[d].retain||this._removeTile(d)}},_removeTilesAtZoom:function(d){for(var m in this._tiles)this._tiles[m].coords.z===d&&this._removeTile(m)},_removeAllTiles:function(){for(var d in this._tiles)this._removeTile(d)},_invalidateAll:function(){for(var d in this._levels)mn(this._levels[d].el),this._onRemoveLevel(Number(d)),delete this._levels[d];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(d,m,_,B){var Q=Math.floor(d/2),ie=Math.floor(m/2),Ie=_-1,Xe=new ee(+Q,+ie);Xe.z=+Ie;var at=this._tileCoordsToKey(Xe),xt=this._tiles[at];return xt&&xt.active?(xt.retain=!0,!0):(xt&&xt.loaded&&(xt.retain=!0),Ie>B?this._retainParent(Q,ie,Ie,B):!1)},_retainChildren:function(d,m,_,B){for(var Q=2*d;Q<2*d+2;Q++)for(var ie=2*m;ie<2*m+2;ie++){var Ie=new ee(Q,ie);Ie.z=_+1;var Xe=this._tileCoordsToKey(Ie),at=this._tiles[Xe];if(at&&at.active){at.retain=!0;continue}else at&&at.loaded&&(at.retain=!0);_+1<B&&this._retainChildren(Q,ie,_+1,B)}},_resetView:function(d){var m=d&&(d.pinch||d.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),m,m)},_animateZoom:function(d){this._setView(d.center,d.zoom,!0,d.noUpdate)},_clampZoom:function(d){var m=this.options;return m.minNativeZoom!==void 0&&d<m.minNativeZoom?m.minNativeZoom:m.maxNativeZoom!==void 0&&m.maxNativeZoom<d?m.maxNativeZoom:d},_setView:function(d,m,_,B){var Q=Math.round(m);this.options.maxZoom!==void 0&&Q>this.options.maxZoom||this.options.minZoom!==void 0&&Q<this.options.minZoom?Q=void 0:Q=this._clampZoom(Q);var ie=this.options.updateWhenZooming&&Q!==this._tileZoom;(!B||ie)&&(this._tileZoom=Q,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),Q!==void 0&&this._update(d),_||this._pruneTiles(),this._noPrune=!!_),this._setZoomTransforms(d,m)},_setZoomTransforms:function(d,m){for(var _ in this._levels)this._setZoomTransform(this._levels[_],d,m)},_setZoomTransform:function(d,m,_){var B=this._map.getZoomScale(_,d.zoom),Q=d.origin.multiplyBy(B).subtract(this._map._getNewPixelOrigin(m,_)).round();Dt.any3d?Nr(d.el,Q,B):Vn(d.el,Q)},_resetGrid:function(){var d=this._map,m=d.options.crs,_=this._tileSize=this.getTileSize(),B=this._tileZoom,Q=this._map.getPixelWorldBounds(this._tileZoom);Q&&(this._globalTileRange=this._pxBoundsToTileRange(Q)),this._wrapX=m.wrapLng&&!this.options.noWrap&&[Math.floor(d.project([0,m.wrapLng[0]],B).x/_.x),Math.ceil(d.project([0,m.wrapLng[1]],B).x/_.y)],this._wrapY=m.wrapLat&&!this.options.noWrap&&[Math.floor(d.project([m.wrapLat[0],0],B).y/_.x),Math.ceil(d.project([m.wrapLat[1],0],B).y/_.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(d){var m=this._map,_=m._animatingZoom?Math.max(m._animateToZoom,m.getZoom()):m.getZoom(),B=m.getZoomScale(_,this._tileZoom),Q=m.project(d,this._tileZoom).floor(),ie=m.getSize().divideBy(B*2);return new Pe(Q.subtract(ie),Q.add(ie))},_update:function(d){var m=this._map;if(m){var _=this._clampZoom(m.getZoom());if(d===void 0&&(d=m.getCenter()),this._tileZoom!==void 0){var B=this._getTiledPixelBounds(d),Q=this._pxBoundsToTileRange(B),ie=Q.getCenter(),Ie=[],Xe=this.options.keepBuffer,at=new Pe(Q.getBottomLeft().subtract([Xe,-Xe]),Q.getTopRight().add([Xe,-Xe]));if(!(isFinite(Q.min.x)&&isFinite(Q.min.y)&&isFinite(Q.max.x)&&isFinite(Q.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var xt in this._tiles){var $t=this._tiles[xt].coords;($t.z!==this._tileZoom||!at.contains(new ee($t.x,$t.y)))&&(this._tiles[xt].current=!1)}if(Math.abs(_-this._tileZoom)>1){this._setView(d,_);return}for(var pn=Q.min.y;pn<=Q.max.y;pn++)for(var zn=Q.min.x;zn<=Q.max.x;zn++){var Sa=new ee(zn,pn);if(Sa.z=this._tileZoom,!!this._isValidTile(Sa)){var Mi=this._tiles[this._tileCoordsToKey(Sa)];Mi?Mi.current=!0:Ie.push(Sa)}}if(Ie.sort(function(Ra,du){return Ra.distanceTo(ie)-du.distanceTo(ie)}),Ie.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ds=document.createDocumentFragment();for(zn=0;zn<Ie.length;zn++)this._addTile(Ie[zn],Ds);this._level.el.appendChild(Ds)}}}},_isValidTile:function(d){var m=this._map.options.crs;if(!m.infinite){var _=this._globalTileRange;if(!m.wrapLng&&(d.x<_.min.x||d.x>_.max.x)||!m.wrapLat&&(d.y<_.min.y||d.y>_.max.y))return!1}if(!this.options.bounds)return!0;var B=this._tileCoordsToBounds(d);return J(this.options.bounds).overlaps(B)},_keyToBounds:function(d){return this._tileCoordsToBounds(this._keyToTileCoords(d))},_tileCoordsToNwSe:function(d){var m=this._map,_=this.getTileSize(),B=d.scaleBy(_),Q=B.add(_),ie=m.unproject(B,d.z),Ie=m.unproject(Q,d.z);return[ie,Ie]},_tileCoordsToBounds:function(d){var m=this._tileCoordsToNwSe(d),_=new ae(m[0],m[1]);return this.options.noWrap||(_=this._map.wrapLatLngBounds(_)),_},_tileCoordsToKey:function(d){return d.x+":"+d.y+":"+d.z},_keyToTileCoords:function(d){var m=d.split(":"),_=new ee(+m[0],+m[1]);return _.z=+m[2],_},_removeTile:function(d){var m=this._tiles[d];m&&(mn(m.el),delete this._tiles[d],this.fire("tileunload",{tile:m.el,coords:this._keyToTileCoords(d)}))},_initTile:function(d){on(d,"leaflet-tile");var m=this.getTileSize();d.style.width=m.x+"px",d.style.height=m.y+"px",d.onselectstart=A,d.onmousemove=A,Dt.ielt9&&this.options.opacity<1&&wn(d,this.options.opacity)},_addTile:function(d,m){var _=this._getTilePos(d),B=this._tileCoordsToKey(d),Q=this.createTile(this._wrapCoords(d),s(this._tileReady,this,d));this._initTile(Q),this.createTile.length<2&&k(s(this._tileReady,this,d,null,Q)),Vn(Q,_),this._tiles[B]={el:Q,coords:d,current:!0},m.appendChild(Q),this.fire("tileloadstart",{tile:Q,coords:d})},_tileReady:function(d,m,_){m&&this.fire("tileerror",{error:m,tile:_,coords:d});var B=this._tileCoordsToKey(d);_=this._tiles[B],_&&(_.loaded=+new Date,this._map._fadeAnimated?(wn(_.el,0),H(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(_.active=!0,this._pruneTiles()),m||(on(_.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:_.el,coords:d})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Dt.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(d){return d.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(d){var m=new ee(this._wrapX?u(d.x,this._wrapX):d.x,this._wrapY?u(d.y,this._wrapY):d.y);return m.z=d.z,m},_pxBoundsToTileRange:function(d){var m=this.getTileSize();return new Pe(d.min.unscaleBy(m).floor(),d.max.unscaleBy(m).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var d in this._tiles)if(!this._tiles[d].loaded)return!1;return!0}});function Wg(d){return new cu(d)}var ko=cu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(d,m){this._url=d,m=y(this,m),m.detectRetina&&Dt.retina&&m.maxZoom>0?(m.tileSize=Math.floor(m.tileSize/2),m.zoomReverse?(m.zoomOffset--,m.minZoom=Math.min(m.maxZoom,m.minZoom+1)):(m.zoomOffset++,m.maxZoom=Math.max(m.minZoom,m.maxZoom-1)),m.minZoom=Math.max(0,m.minZoom)):m.zoomReverse?m.minZoom=Math.min(m.maxZoom,m.minZoom):m.maxZoom=Math.max(m.minZoom,m.maxZoom),typeof m.subdomains=="string"&&(m.subdomains=m.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(d,m){return this._url===d&&m===void 0&&(m=!0),this._url=d,m||this.redraw(),this},createTile:function(d,m){var _=document.createElement("img");return It(_,"load",s(this._tileOnLoad,this,m,_)),It(_,"error",s(this._tileOnError,this,m,_)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(_.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(_.referrerPolicy=this.options.referrerPolicy),_.alt="",_.src=this.getTileUrl(d),_},getTileUrl:function(d){var m={r:Dt.retina?"@2x":"",s:this._getSubdomain(d),x:d.x,y:d.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var _=this._globalTileRange.max.y-d.y;this.options.tms&&(m.y=_),m["-y"]=_}return S(this._url,i(m,this.options))},_tileOnLoad:function(d,m){Dt.ielt9?setTimeout(s(d,this,null,m),0):d(null,m)},_tileOnError:function(d,m,_){var B=this.options.errorTileUrl;B&&m.getAttribute("src")!==B&&(m.src=B),d(_,m)},_onTileRemove:function(d){d.tile.onload=null},_getZoomForUrl:function(){var d=this._tileZoom,m=this.options.maxZoom,_=this.options.zoomReverse,B=this.options.zoomOffset;return _&&(d=m-d),d+B},_getSubdomain:function(d){var m=Math.abs(d.x+d.y)%this.options.subdomains.length;return this.options.subdomains[m]},_abortLoading:function(){var d,m;for(d in this._tiles)if(this._tiles[d].coords.z!==this._tileZoom&&(m=this._tiles[d].el,m.onload=A,m.onerror=A,!m.complete)){m.src=F;var _=this._tiles[d].coords;mn(m),delete this._tiles[d],this.fire("tileabort",{tile:m,coords:_})}},_removeTile:function(d){var m=this._tiles[d];if(m)return m.el.setAttribute("src",F),cu.prototype._removeTile.call(this,d)},_tileReady:function(d,m,_){if(!(!this._map||_&&_.getAttribute("src")===F))return cu.prototype._tileReady.call(this,d,m,_)}});function $f(d,m){return new ko(d,m)}var jf=ko.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(d,m){this._url=d;var _=i({},this.defaultWmsParams);for(var B in m)B in this.options||(_[B]=m[B]);m=y(this,m);var Q=m.detectRetina&&Dt.retina?2:1,ie=this.getTileSize();_.width=ie.x*Q,_.height=ie.y*Q,this.wmsParams=_},onAdd:function(d){this._crs=this.options.crs||d.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var m=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[m]=this._crs.code,ko.prototype.onAdd.call(this,d)},getTileUrl:function(d){var m=this._tileCoordsToNwSe(d),_=this._crs,B=V(_.project(m[0]),_.project(m[1])),Q=B.min,ie=B.max,Ie=(this._wmsVersion>=1.3&&this._crs===Uc?[Q.y,Q.x,ie.y,ie.x]:[Q.x,Q.y,ie.x,ie.y]).join(","),Xe=ko.prototype.getTileUrl.call(this,d);return Xe+w(this.wmsParams,Xe,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Ie},setParams:function(d,m){return i(this.wmsParams,d),m||this.redraw(),this}});function Qg(d,m){return new jf(d,m)}ko.WMS=jf,$f.wms=Qg;var Io=_a.extend({options:{padding:.1},initialize:function(d){y(this,d),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),on(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var d={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(d.zoomanim=this._onAnimZoom),d},_onAnimZoom:function(d){this._updateTransform(d.center,d.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(d,m){var _=this._map.getZoomScale(m,this._zoom),B=this._map.getSize().multiplyBy(.5+this.options.padding),Q=this._map.project(this._center,m),ie=B.multiplyBy(-_).add(Q).subtract(this._map._getNewPixelOrigin(d,m));Dt.any3d?Nr(this._container,ie,_):Vn(this._container,ie)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var d in this._layers)this._layers[d]._reset()},_onZoomEnd:function(){for(var d in this._layers)this._layers[d]._project()},_updatePaths:function(){for(var d in this._layers)this._layers[d]._update()},_update:function(){var d=this.options.padding,m=this._map.getSize(),_=this._map.containerPointToLayerPoint(m.multiplyBy(-d)).round();this._bounds=new Pe(_,_.add(m.multiplyBy(1+d*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),zf=Io.extend({options:{tolerance:0},getEvents:function(){var d=Io.prototype.getEvents.call(this);return d.viewprereset=this._onViewPreReset,d},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Io.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var d=this._container=document.createElement("canvas");It(d,"mousemove",this._onMouseMove,this),It(d,"click dblclick mousedown mouseup contextmenu",this._onClick,this),It(d,"mouseout",this._handleMouseOut,this),d._leaflet_disable_events=!0,this._ctx=d.getContext("2d")},_destroyContainer:function(){H(this._redrawRequest),delete this._ctx,mn(this._container),fr(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var d;this._redrawBounds=null;for(var m in this._layers)d=this._layers[m],d._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Io.prototype._update.call(this);var d=this._bounds,m=this._container,_=d.getSize(),B=Dt.retina?2:1;Vn(m,d.min),m.width=B*_.x,m.height=B*_.y,m.style.width=_.x+"px",m.style.height=_.y+"px",Dt.retina&&this._ctx.scale(2,2),this._ctx.translate(-d.min.x,-d.min.y),this.fire("update")}},_reset:function(){Io.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(d){this._updateDashArray(d),this._layers[c(d)]=d;var m=d._order={layer:d,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=m),this._drawLast=m,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(d){this._requestRedraw(d)},_removePath:function(d){var m=d._order,_=m.next,B=m.prev;_?_.prev=B:this._drawLast=B,B?B.next=_:this._drawFirst=_,delete d._order,delete this._layers[c(d)],this._requestRedraw(d)},_updatePath:function(d){this._extendRedrawBounds(d),d._project(),d._update(),this._requestRedraw(d)},_updateStyle:function(d){this._updateDashArray(d),this._requestRedraw(d)},_updateDashArray:function(d){if(typeof d.options.dashArray=="string"){var m=d.options.dashArray.split(/[, ]+/),_=[],B,Q;for(Q=0;Q<m.length;Q++){if(B=Number(m[Q]),isNaN(B))return;_.push(B)}d.options._dashArray=_}else d.options._dashArray=d.options.dashArray},_requestRedraw:function(d){this._map&&(this._extendRedrawBounds(d),this._redrawRequest=this._redrawRequest||k(this._redraw,this))},_extendRedrawBounds:function(d){if(d._pxBounds){var m=(d.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Pe,this._redrawBounds.extend(d._pxBounds.min.subtract([m,m])),this._redrawBounds.extend(d._pxBounds.max.add([m,m]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var d=this._redrawBounds;if(d){var m=d.getSize();this._ctx.clearRect(d.min.x,d.min.y,m.x,m.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var d,m=this._redrawBounds;if(this._ctx.save(),m){var _=m.getSize();this._ctx.beginPath(),this._ctx.rect(m.min.x,m.min.y,_.x,_.y),this._ctx.clip()}this._drawing=!0;for(var B=this._drawFirst;B;B=B.next)d=B.layer,(!m||d._pxBounds&&d._pxBounds.intersects(m))&&d._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(d,m){if(this._drawing){var _,B,Q,ie,Ie=d._parts,Xe=Ie.length,at=this._ctx;if(Xe){for(at.beginPath(),_=0;_<Xe;_++){for(B=0,Q=Ie[_].length;B<Q;B++)ie=Ie[_][B],at[B?"lineTo":"moveTo"](ie.x,ie.y);m&&at.closePath()}this._fillStroke(at,d)}}},_updateCircle:function(d){if(!(!this._drawing||d._empty())){var m=d._point,_=this._ctx,B=Math.max(Math.round(d._radius),1),Q=(Math.max(Math.round(d._radiusY),1)||B)/B;Q!==1&&(_.save(),_.scale(1,Q)),_.beginPath(),_.arc(m.x,m.y/Q,B,0,Math.PI*2,!1),Q!==1&&_.restore(),this._fillStroke(_,d)}},_fillStroke:function(d,m){var _=m.options;_.fill&&(d.globalAlpha=_.fillOpacity,d.fillStyle=_.fillColor||_.color,d.fill(_.fillRule||"evenodd")),_.stroke&&_.weight!==0&&(d.setLineDash&&d.setLineDash(m.options&&m.options._dashArray||[]),d.globalAlpha=_.opacity,d.lineWidth=_.weight,d.strokeStyle=_.color,d.lineCap=_.lineCap,d.lineJoin=_.lineJoin,d.stroke())},_onClick:function(d){for(var m=this._map.mouseEventToLayerPoint(d),_,B,Q=this._drawFirst;Q;Q=Q.next)_=Q.layer,_.options.interactive&&_._containsPoint(m)&&(!(d.type==="click"||d.type==="preclick")||!this._map._draggableMoved(_))&&(B=_);this._fireEvent(B?[B]:!1,d)},_onMouseMove:function(d){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var m=this._map.mouseEventToLayerPoint(d);this._handleMouseHover(d,m)}},_handleMouseOut:function(d){var m=this._hoveredLayer;m&&(er(this._container,"leaflet-interactive"),this._fireEvent([m],d,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(d,m){if(!this._mouseHoverThrottled){for(var _,B,Q=this._drawFirst;Q;Q=Q.next)_=Q.layer,_.options.interactive&&_._containsPoint(m)&&(B=_);B!==this._hoveredLayer&&(this._handleMouseOut(d),B&&(on(this._container,"leaflet-interactive"),this._fireEvent([B],d,"mouseover"),this._hoveredLayer=B)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,d),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(d,m,_){this._map._fireDOMEvent(m,_||m.type,d)},_bringToFront:function(d){var m=d._order;if(m){var _=m.next,B=m.prev;if(_)_.prev=B;else return;B?B.next=_:_&&(this._drawFirst=_),m.prev=this._drawLast,this._drawLast.next=m,m.next=null,this._drawLast=m,this._requestRedraw(d)}},_bringToBack:function(d){var m=d._order;if(m){var _=m.next,B=m.prev;if(B)B.next=_;else return;_?_.prev=B:B&&(this._drawLast=B),m.prev=null,m.next=this._drawFirst,this._drawFirst.prev=m,this._drawFirst=m,this._requestRedraw(d)}}});function Vf(d){return Dt.canvas?new zf(d):null}var lu=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(d){return document.createElement("<lvml:"+d+' class="lvml">')}}catch{}return function(d){return document.createElement("<"+d+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),$g={_initContainer:function(){this._container=qt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Io.prototype._update.call(this),this.fire("update"))},_initPath:function(d){var m=d._container=lu("shape");on(m,"leaflet-vml-shape "+(this.options.className||"")),m.coordsize="1 1",d._path=lu("path"),m.appendChild(d._path),this._updateStyle(d),this._layers[c(d)]=d},_addPath:function(d){var m=d._container;this._container.appendChild(m),d.options.interactive&&d.addInteractiveTarget(m)},_removePath:function(d){var m=d._container;mn(m),d.removeInteractiveTarget(m),delete this._layers[c(d)]},_updateStyle:function(d){var m=d._stroke,_=d._fill,B=d.options,Q=d._container;Q.stroked=!!B.stroke,Q.filled=!!B.fill,B.stroke?(m||(m=d._stroke=lu("stroke")),Q.appendChild(m),m.weight=B.weight+"px",m.color=B.color,m.opacity=B.opacity,B.dashArray?m.dashStyle=C(B.dashArray)?B.dashArray.join(" "):B.dashArray.replace(/( *, *)/g," "):m.dashStyle="",m.endcap=B.lineCap.replace("butt","flat"),m.joinstyle=B.lineJoin):m&&(Q.removeChild(m),d._stroke=null),B.fill?(_||(_=d._fill=lu("fill")),Q.appendChild(_),_.color=B.fillColor||B.color,_.opacity=B.fillOpacity):_&&(Q.removeChild(_),d._fill=null)},_updateCircle:function(d){var m=d._point.round(),_=Math.round(d._radius),B=Math.round(d._radiusY||_);this._setPath(d,d._empty()?"M0 0":"AL "+m.x+","+m.y+" "+_+","+B+" 0,"+65535*360)},_setPath:function(d,m){d._path.v=m},_bringToFront:function(d){Ot(d._container)},_bringToBack:function(d){vr(d._container)}},uu=Dt.vml?lu:ne,$c=Io.extend({_initContainer:function(){this._container=uu("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=uu("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){mn(this._container),fr(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Io.prototype._update.call(this);var d=this._bounds,m=d.getSize(),_=this._container;(!this._svgSize||!this._svgSize.equals(m))&&(this._svgSize=m,_.setAttribute("width",m.x),_.setAttribute("height",m.y)),Vn(_,d.min),_.setAttribute("viewBox",[d.min.x,d.min.y,m.x,m.y].join(" ")),this.fire("update")}},_initPath:function(d){var m=d._path=uu("path");d.options.className&&on(m,d.options.className),d.options.interactive&&on(m,"leaflet-interactive"),this._updateStyle(d),this._layers[c(d)]=d},_addPath:function(d){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(d._path),d.addInteractiveTarget(d._path)},_removePath:function(d){mn(d._path),d.removeInteractiveTarget(d._path),delete this._layers[c(d)]},_updatePath:function(d){d._project(),d._update()},_updateStyle:function(d){var m=d._path,_=d.options;m&&(_.stroke?(m.setAttribute("stroke",_.color),m.setAttribute("stroke-opacity",_.opacity),m.setAttribute("stroke-width",_.weight),m.setAttribute("stroke-linecap",_.lineCap),m.setAttribute("stroke-linejoin",_.lineJoin),_.dashArray?m.setAttribute("stroke-dasharray",_.dashArray):m.removeAttribute("stroke-dasharray"),_.dashOffset?m.setAttribute("stroke-dashoffset",_.dashOffset):m.removeAttribute("stroke-dashoffset")):m.setAttribute("stroke","none"),_.fill?(m.setAttribute("fill",_.fillColor||_.color),m.setAttribute("fill-opacity",_.fillOpacity),m.setAttribute("fill-rule",_.fillRule||"evenodd")):m.setAttribute("fill","none"))},_updatePoly:function(d,m){this._setPath(d,De(d._parts,m))},_updateCircle:function(d){var m=d._point,_=Math.max(Math.round(d._radius),1),B=Math.max(Math.round(d._radiusY),1)||_,Q="a"+_+","+B+" 0 1,0 ",ie=d._empty()?"M0 0":"M"+(m.x-_)+","+m.y+Q+_*2+",0 "+Q+-_*2+",0 ";this._setPath(d,ie)},_setPath:function(d,m){d._path.setAttribute("d",m)},_bringToFront:function(d){Ot(d._path)},_bringToBack:function(d){vr(d._path)}});Dt.vml&&$c.include($g);function Da(d){return Dt.svg||Dt.vml?new $c(d):null}Rn.include({getRenderer:function(d){var m=d.options.renderer||this._getPaneRenderer(d.options.pane)||this.options.renderer||this._renderer;return m||(m=this._renderer=this._createRenderer()),this.hasLayer(m)||this.addLayer(m),m},_getPaneRenderer:function(d){if(d==="overlayPane"||d===void 0)return!1;var m=this._paneRenderers[d];return m===void 0&&(m=this._createRenderer({pane:d}),this._paneRenderers[d]=m),m},_createRenderer:function(d){return this.options.preferCanvas&&Vf(d)||Da(d)}});var as=Is.extend({initialize:function(d,m){Is.prototype.initialize.call(this,this._boundsToLatLngs(d),m)},setBounds:function(d){return this.setLatLngs(this._boundsToLatLngs(d))},_boundsToLatLngs:function(d){return d=J(d),[d.getSouthWest(),d.getNorthWest(),d.getNorthEast(),d.getSouthEast()]}});function nh(d,m){return new as(d,m)}$c.create=uu,$c.pointsToPath=De,eo.geometryToLayer=is,eo.coordsToLatLng=nc,eo.coordsToLatLngs=Wc,eo.latLngToCoords=gl,eo.latLngsToCoords=rc,eo.getFeature=Fs,eo.asFeature=Eo,Rn.mergeOptions({boxZoom:!0});var yd=E.extend({initialize:function(d){this._map=d,this._container=d._container,this._pane=d._panes.overlayPane,this._resetStateTimeout=0,d.on("unload",this._destroy,this)},addHooks:function(){It(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){fr(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){mn(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(d){if(!d.shiftKey||d.which!==1&&d.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Yr(),ll(),this._startPoint=this._map.mouseEventToContainerPoint(d),It(document,{contextmenu:Xs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(d){this._moved||(this._moved=!0,this._box=qt("div","leaflet-zoom-box",this._container),on(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(d);var m=new Pe(this._point,this._startPoint),_=m.getSize();Vn(this._box,m.min),this._box.style.width=_.x+"px",this._box.style.height=_.y+"px"},_finish:function(){this._moved&&(mn(this._box),er(this._container,"leaflet-crosshair")),kc(),ud(),fr(document,{contextmenu:Xs,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(d){if(!(d.which!==1&&d.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var m=new ae(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(m).fire("boxzoomend",{boxZoomBounds:m})}},_onKeyDown:function(d){d.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Rn.addInitHook("addHandler","boxZoom",yd),Rn.mergeOptions({doubleClickZoom:!0});var Gf=E.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(d){var m=this._map,_=m.getZoom(),B=m.options.zoomDelta,Q=d.originalEvent.shiftKey?_-B:_+B;m.options.doubleClickZoom==="center"?m.setZoom(Q):m.setZoomAround(d.containerPoint,Q)}});Rn.addInitHook("addHandler","doubleClickZoom",Gf),Rn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var wd=E.extend({addHooks:function(){if(!this._draggable){var d=this._map;this._draggable=new ke(d._mapPane,d._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),d.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),d.on("zoomend",this._onZoomEnd,this),d.whenReady(this._onZoomEnd,this))}on(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){er(this._map._container,"leaflet-grab"),er(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var d=this._map;if(d._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var m=J(this._map.options.maxBounds);this._offsetLimit=V(this._map.latLngToContainerPoint(m.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(m.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;d.fire("movestart").fire("dragstart"),d.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(d){if(this._map.options.inertia){var m=this._lastTime=+new Date,_=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(_),this._times.push(m),this._prunePositions(m)}this._map.fire("move",d).fire("drag",d)},_prunePositions:function(d){for(;this._positions.length>1&&d-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var d=this._map.getSize().divideBy(2),m=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=m.subtract(d).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(d,m){return d-(d-m)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var d=this._draggable._newPos.subtract(this._draggable._startPos),m=this._offsetLimit;d.x<m.min.x&&(d.x=this._viscousLimit(d.x,m.min.x)),d.y<m.min.y&&(d.y=this._viscousLimit(d.y,m.min.y)),d.x>m.max.x&&(d.x=this._viscousLimit(d.x,m.max.x)),d.y>m.max.y&&(d.y=this._viscousLimit(d.y,m.max.y)),this._draggable._newPos=this._draggable._startPos.add(d)}},_onPreDragWrap:function(){var d=this._worldWidth,m=Math.round(d/2),_=this._initialWorldOffset,B=this._draggable._newPos.x,Q=(B-m+_)%d+m-_,ie=(B+m+_)%d-m-_,Ie=Math.abs(Q+_)<Math.abs(ie+_)?Q:ie;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Ie},_onDragEnd:function(d){var m=this._map,_=m.options,B=!_.inertia||d.noInertia||this._times.length<2;if(m.fire("dragend",d),B)m.fire("moveend");else{this._prunePositions(+new Date);var Q=this._lastPos.subtract(this._positions[0]),ie=(this._lastTime-this._times[0])/1e3,Ie=_.easeLinearity,Xe=Q.multiplyBy(Ie/ie),at=Xe.distanceTo([0,0]),xt=Math.min(_.inertiaMaxSpeed,at),$t=Xe.multiplyBy(xt/at),pn=xt/(_.inertiaDeceleration*Ie),zn=$t.multiplyBy(-pn/2).round();!zn.x&&!zn.y?m.fire("moveend"):(zn=m._limitOffset(zn,m.options.maxBounds),k(function(){m.panBy(zn,{duration:pn,easeLinearity:Ie,noMoveStart:!0,animate:!0})}))}}});Rn.addInitHook("addHandler","dragging",wd),Rn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var bd=E.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(d){this._map=d,this._setPanDelta(d.options.keyboardPanDelta),this._setZoomDelta(d.options.zoomDelta)},addHooks:function(){var d=this._map._container;d.tabIndex<=0&&(d.tabIndex="0"),It(d,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),fr(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var d=document.body,m=document.documentElement,_=d.scrollTop||m.scrollTop,B=d.scrollLeft||m.scrollLeft;this._map._container.focus(),window.scrollTo(B,_)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(d){var m=this._panKeys={},_=this.keyCodes,B,Q;for(B=0,Q=_.left.length;B<Q;B++)m[_.left[B]]=[-1*d,0];for(B=0,Q=_.right.length;B<Q;B++)m[_.right[B]]=[d,0];for(B=0,Q=_.down.length;B<Q;B++)m[_.down[B]]=[0,d];for(B=0,Q=_.up.length;B<Q;B++)m[_.up[B]]=[0,-1*d]},_setZoomDelta:function(d){var m=this._zoomKeys={},_=this.keyCodes,B,Q;for(B=0,Q=_.zoomIn.length;B<Q;B++)m[_.zoomIn[B]]=d;for(B=0,Q=_.zoomOut.length;B<Q;B++)m[_.zoomOut[B]]=-d},_addHooks:function(){It(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){fr(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(d){if(!(d.altKey||d.ctrlKey||d.metaKey)){var m=d.keyCode,_=this._map,B;if(m in this._panKeys){if(!_._panAnim||!_._panAnim._inProgress)if(B=this._panKeys[m],d.shiftKey&&(B=xe(B).multiplyBy(3)),_.options.maxBounds&&(B=_._limitOffset(xe(B),_.options.maxBounds)),_.options.worldCopyJump){var Q=_.wrapLatLng(_.unproject(_.project(_.getCenter()).add(B)));_.panTo(Q)}else _.panBy(B)}else if(m in this._zoomKeys)_.setZoom(_.getZoom()+(d.shiftKey?3:1)*this._zoomKeys[m]);else if(m===27&&_._popup&&_._popup.options.closeOnEscapeKey)_.closePopup();else return;Xs(d)}}});Rn.addInitHook("addHandler","keyboard",bd),Rn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var rh=E.extend({addHooks:function(){It(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){fr(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(d){var m=XA(d),_=this._map.options.wheelDebounceTime;this._delta+=m,this._lastMousePos=this._map.mouseEventToContainerPoint(d),this._startTime||(this._startTime=+new Date);var B=Math.max(_-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),B),Xs(d)},_performZoom:function(){var d=this._map,m=d.getZoom(),_=this._map.options.zoomSnap||0;d._stop();var B=this._delta/(this._map.options.wheelPxPerZoomLevel*4),Q=4*Math.log(2/(1+Math.exp(-Math.abs(B))))/Math.LN2,ie=_?Math.ceil(Q/_)*_:Q,Ie=d._limitZoom(m+(this._delta>0?ie:-ie))-m;this._delta=0,this._startTime=null,Ie&&(d.options.scrollWheelZoom==="center"?d.setZoom(m+Ie):d.setZoomAround(this._lastMousePos,m+Ie))}});Rn.addInitHook("addHandler","scrollWheelZoom",rh);var jg=600;Rn.mergeOptions({tapHold:Dt.touchNative&&Dt.safari&&Dt.mobile,tapTolerance:15});var ih=E.extend({addHooks:function(){It(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){fr(this._map._container,"touchstart",this._onDown,this)},_onDown:function(d){if(clearTimeout(this._holdTimeout),d.touches.length===1){var m=d.touches[0];this._startPos=this._newPos=new ee(m.clientX,m.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(It(document,"touchend",Jr),It(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",m))},this),jg),It(document,"touchend touchcancel contextmenu",this._cancel,this),It(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function d(){fr(document,"touchend",Jr),fr(document,"touchend touchcancel",d)},_cancel:function(){clearTimeout(this._holdTimeout),fr(document,"touchend touchcancel contextmenu",this._cancel,this),fr(document,"touchmove",this._onMove,this)},_onMove:function(d){var m=d.touches[0];this._newPos=new ee(m.clientX,m.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(d,m){var _=new MouseEvent(d,{bubbles:!0,cancelable:!0,view:window,screenX:m.screenX,screenY:m.screenY,clientX:m.clientX,clientY:m.clientY});_._simulated=!0,m.target.dispatchEvent(_)}});Rn.addInitHook("addHandler","tapHold",ih),Rn.mergeOptions({touchZoom:Dt.touch,bounceAtZoomLimits:!0});var ah=E.extend({addHooks:function(){on(this._map._container,"leaflet-touch-zoom"),It(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){er(this._map._container,"leaflet-touch-zoom"),fr(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(d){var m=this._map;if(!(!d.touches||d.touches.length!==2||m._animatingZoom||this._zooming)){var _=m.mouseEventToContainerPoint(d.touches[0]),B=m.mouseEventToContainerPoint(d.touches[1]);this._centerPoint=m.getSize()._divideBy(2),this._startLatLng=m.containerPointToLatLng(this._centerPoint),m.options.touchZoom!=="center"&&(this._pinchStartLatLng=m.containerPointToLatLng(_.add(B)._divideBy(2))),this._startDist=_.distanceTo(B),this._startZoom=m.getZoom(),this._moved=!1,this._zooming=!0,m._stop(),It(document,"touchmove",this._onTouchMove,this),It(document,"touchend touchcancel",this._onTouchEnd,this),Jr(d)}},_onTouchMove:function(d){if(!(!d.touches||d.touches.length!==2||!this._zooming)){var m=this._map,_=m.mouseEventToContainerPoint(d.touches[0]),B=m.mouseEventToContainerPoint(d.touches[1]),Q=_.distanceTo(B)/this._startDist;if(this._zoom=m.getScaleZoom(Q,this._startZoom),!m.options.bounceAtZoomLimits&&(this._zoom<m.getMinZoom()&&Q<1||this._zoom>m.getMaxZoom()&&Q>1)&&(this._zoom=m._limitZoom(this._zoom)),m.options.touchZoom==="center"){if(this._center=this._startLatLng,Q===1)return}else{var ie=_._add(B)._divideBy(2)._subtract(this._centerPoint);if(Q===1&&ie.x===0&&ie.y===0)return;this._center=m.unproject(m.project(this._pinchStartLatLng,this._zoom).subtract(ie),this._zoom)}this._moved||(m._moveStart(!0,!1),this._moved=!0),H(this._animRequest);var Ie=s(m._move,m,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(Ie,this,!0),Jr(d)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,H(this._animRequest),fr(document,"touchmove",this._onTouchMove,this),fr(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Rn.addInitHook("addHandler","touchZoom",ah),Rn.BoxZoom=yd,Rn.DoubleClickZoom=Gf,Rn.Drag=wd,Rn.Keyboard=bd,Rn.ScrollWheelZoom=rh,Rn.TapHold=ih,Rn.TouchZoom=ah,t.Bounds=Pe,t.Browser=Dt,t.CRS=le,t.Canvas=zf,t.Circle=Oc,t.CircleMarker=Di,t.Class=$,t.Control=ra,t.DivIcon=Qf,t.DivOverlay=mr,t.DomEvent=Lc,t.DomUtil=dl,t.Draggable=ke,t.Evented=fe,t.FeatureGroup=Bs,t.GeoJSON=eo,t.GridLayer=cu,t.Handler=E,t.Icon=ec,t.ImageOverlay=ic,t.LatLng=z,t.LatLngBounds=ae,t.Layer=_a,t.LayerGroup=xa,t.LineUtil=Dc,t.Map=Rn,t.Marker=tc,t.Mixin=q,t.Path=ks,t.Point=ee,t.PolyUtil=Zt,t.Polygon=Is,t.Polyline=oa,t.Popup=Ns,t.PosAnimation=ru,t.Projection=iu,t.Rectangle=as,t.Renderer=Io,t.SVG=$c,t.SVGOverlay=wr,t.TileLayer=ko,t.Tooltip=ac,t.Transformation=We,t.Util=j,t.VideoOverlay=to,t.bind=s,t.bounds=V,t.canvas=Vf,t.circle=Hc,t.circleMarker=Na,t.control=Xo,t.divIcon=Hg,t.extend=i,t.featureGroup=au,t.geoJSON=To,t.geoJson=Qc,t.gridLayer=Wg,t.icon=Ts,t.imageOverlay=ca,t.latLng=Z,t.latLngBounds=J,t.layerGroup=Ma,t.map=pd,t.marker=pl,t.point=xe,t.polygon=ui,t.polyline=ou,t.popup=vd,t.rectangle=nh,t.setOptions=y,t.stamp=c,t.svg=Da,t.svgOverlay=oi,t.tileLayer=$f,t.tooltip=th,t.transformation=Ee,t.version=r,t.videoOverlay=Tr;var sh=window.L;t.noConflict=function(){return window.L=sh,this},window.L=t}))})(Um,Um.exports)),Um.exports}var Or=Kte();const qte=_f(Or),Xte=wS({__proto__:null,default:qte},[Or]);function bD(n,e){const t=te.useRef(e);te.useEffect(function(){e!==t.current&&n.attributionControl!=null&&(t.current!=null&&n.attributionControl.removeAttribution(t.current),e!=null&&n.attributionControl.addAttribution(e)),t.current=e},[n,e])}function _D(n,e,t){e.center!==t.center&&n.setLatLng(e.center),e.radius!=null&&e.radius!==t.radius&&n.setRadius(e.radius)}const Yte=1;function Jte(n){return Object.freeze({__version:Yte,map:n})}function So(n,e){return Object.freeze({...n,...e})}const xD=te.createContext(null),Xw=xD.Provider;function HA(){const n=te.useContext(xD);if(n==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return n}function sC(n){function e(t,r){const{instance:i,context:a}=n(t).current;return te.useImperativeHandle(r,()=>i),t.children==null?null:Ge.createElement(Xw,{value:a},t.children)}return te.forwardRef(e)}function Zte(n){function e(t,r){const[i,a]=te.useState(!1),{instance:s}=n(t,a).current;te.useImperativeHandle(r,()=>s),te.useEffect(function(){i&&s.update()},[s,i,t.children]);const o=s._contentNode;return o?og.createPortal(t.children,o):null}return te.forwardRef(e)}function MD(n){function e(t,r){const{instance:i}=n(t).current;return te.useImperativeHandle(r,()=>i),null}return te.forwardRef(e)}function SD(n){return function(t){const r=HA(),i=n(t,r),{instance:a}=i.current,s=te.useRef(t.position),{position:o}=t;return te.useEffect(function(){return a.addTo(r.map),function(){a.remove()}},[r.map,a]),te.useEffect(function(){o!=null&&o!==s.current&&(a.setPosition(o),s.current=o)},[a,o]),i}}function oC(n,e){const t=te.useRef();te.useEffect(function(){return e!=null&&n.instance.on(e),t.current=e,function(){t.current!=null&&n.instance.off(t.current),t.current=null}},[n,e])}function bg(n,e){const t=n.pane??e.pane;return t?{...n,pane:t}:n}function ene(n,e){return function(r,i){const a=HA(),s=n(bg(r,a),a);return bD(a.map,r.attribution),oC(s.current,r.eventHandlers),e(s.current,a,r,i),s}}function tne(n){return n.split(" ").filter(Boolean)}function nne(n,e){tne(e).forEach(t=>{Or.DomUtil.addClass(n,t)})}function ya(n,e,t){return Object.freeze({instance:n,context:e,container:t})}function WA(n,e){return e==null?function(r,i){const a=te.useRef();return a.current||(a.current=n(r,i)),a}:function(r,i){const a=te.useRef();a.current||(a.current=n(r,i));const s=te.useRef(r),{instance:o}=a.current;return te.useEffect(function(){s.current!==r&&(e(o,r,s.current),s.current=r)},[o,r,i]),a}}function CD(n,e){te.useEffect(function(){return(e.layerContainer??e.map).addLayer(n.instance),function(){var a;(a=e.layerContainer)==null||a.removeLayer(n.instance),e.map.removeLayer(n.instance)}},[e,n])}function cC(n){return function(t){const r=HA(),i=n(bg(t,r),r);return bD(r.map,t.attribution),oC(i.current,t.eventHandlers),CD(i.current,r),i}}function rne(n,e){const t=te.useRef();te.useEffect(function(){if(e.pathOptions!==t.current){const i=e.pathOptions??{};n.instance.setStyle(i),t.current=i}},[n,e])}function ine(n){return function(t){const r=HA(),i=n(bg(t,r),r);return oC(i.current,t.eventHandlers),CD(i.current,r),rne(i.current,t),i}}function lC(n){function e(i,a){return ya(n(i),a)}const t=WA(e),r=SD(t);return MD(r)}function Yw(n,e){const t=WA(n,e),r=cC(t);return sC(r)}function PD(n,e){const t=WA(n),r=ene(t,e);return Zte(r)}function QA(n,e){const t=WA(n,e),r=ine(t);return sC(r)}function ED(n,e){const t=WA(n,e),r=cC(t);return MD(r)}function BD(n,e,t){const{opacity:r,zIndex:i}=e;r!=null&&r!==t.opacity&&n.setOpacity(r),i!=null&&i!==t.zIndex&&n.setZIndex(i)}function uC(n,e,t){e.bounds instanceof Or.LatLngBounds&&e.bounds!==t.bounds&&n.setBounds(e.bounds),e.opacity!=null&&e.opacity!==t.opacity&&n.setOpacity(e.opacity),e.zIndex!=null&&e.zIndex!==t.zIndex&&n.setZIndex(e.zIndex)}function dC(){return HA().map}function ane(n,e){const t=dC();return te.useEffect(function(){return t.on(n,e),function(){t.off(n,e)}},[t,n,e]),t}function sne(n){const e=dC();return te.useEffect(function(){return e.on(n),function(){e.off(n)}},[e,n]),e}const one=lC(function(e){return new Or.Control.Attribution(e)}),cne=QA(function({center:e,children:t,...r},i){const a=new Or.Circle(e,r);return ya(a,So(i,{overlayContainer:a}))},_D),lne=QA(function({center:e,children:t,...r},i){const a=new Or.CircleMarker(e,r);return ya(a,So(i,{overlayContainer:a}))},_D),une=QA(function({children:e,...t},r){const i=new Or.FeatureGroup([],t);return ya(i,So(r,{layerContainer:i,overlayContainer:i}))}),dne=QA(function({data:e,...t},r){const i=new Or.GeoJSON(e,t);return ya(i,So(r,{overlayContainer:i}))},function(e,t,r){t.style!==r.style&&(t.style==null?e.resetStyle():e.setStyle(t.style))}),Ane=Yw(function({bounds:e,url:t,...r},i){const a=new Or.ImageOverlay(t,e,r);return ya(a,So(i,{overlayContainer:a}))},function(e,t,r){if(uC(e,t,r),t.bounds!==r.bounds){const i=t.bounds instanceof Or.LatLngBounds?t.bounds:new Or.LatLngBounds(t.bounds);e.setBounds(i)}t.url!==r.url&&e.setUrl(t.url)}),hne=Yw(function({children:e,...t},r){const i=new Or.LayerGroup([],t);return ya(i,So(r,{layerContainer:i}))}),fne=WA(function({children:e,...t},r){const i=new Or.Control.Layers(void 0,void 0,t);return ya(i,So(r,{layersControl:i}))},function(e,t,r){t.collapsed!==r.collapsed&&(t.collapsed===!0?e.collapse():e.expand())}),mne=SD(fne),AC=sC(mne);function TD(n){return function(t){const r=HA(),i=te.useRef(t),[a,s]=te.useState(null),{layersControl:o,map:c}=r,l=te.useCallback(f=>{o!=null&&(i.current.checked&&c.addLayer(f),n(o,f,i.current.name),s(f))},[o,c]),u=te.useCallback(f=>{o==null||o.removeLayer(f),s(null)},[o]),A=te.useMemo(()=>So(r,{layerContainer:{addLayer:l,removeLayer:u}}),[r,l,u]);return te.useEffect(()=>{a!==null&&i.current!==t&&(t.checked===!0&&(i.current.checked==null||i.current.checked===!1)?c.addLayer(a):i.current.checked===!0&&(t.checked==null||t.checked===!1)&&c.removeLayer(a),i.current=t)}),t.children?Ge.createElement(Xw,{value:A},t.children):null}}AC.BaseLayer=TD(function(e,t,r){e.addBaseLayer(t,r)});AC.Overlay=TD(function(e,t,r){e.addOverlay(t,r)});function J2(){return J2=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},J2.apply(this,arguments)}function pne({bounds:n,boundsOptions:e,center:t,children:r,className:i,id:a,placeholder:s,style:o,whenReady:c,zoom:l,...u},A){const[f]=te.useState({className:i,id:a,style:o}),[h,g]=te.useState(null);te.useImperativeHandle(A,()=>(h==null?void 0:h.map)??null,[h]);const y=te.useCallback(v=>{if(v!==null&&h===null){const S=new Or.Map(v,u);t!=null&&l!=null?S.setView(t,l):n!=null&&S.fitBounds(n,e),c!=null&&S.whenReady(c),g(Jte(S))}},[]);te.useEffect(()=>()=>{h==null||h.map.remove()},[h]);const w=h?Ge.createElement(Xw,{value:h},r):s??null;return Ge.createElement("div",J2({},f,{ref:y}),w)}const gne=te.forwardRef(pne),vne=Yw(function({position:e,...t},r){const i=new Or.Marker(e,t);return ya(i,So(r,{overlayContainer:i}))},function(e,t,r){t.position!==r.position&&e.setLatLng(t.position),t.icon!=null&&t.icon!==r.icon&&e.setIcon(t.icon),t.zIndexOffset!=null&&t.zIndexOffset!==r.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),t.opacity!=null&&t.opacity!==r.opacity&&e.setOpacity(t.opacity),e.dragging!=null&&t.draggable!==r.draggable&&(t.draggable===!0?e.dragging.enable():e.dragging.disable())}),yne=["mapPane","markerPane","overlayPane","popupPane","shadowPane","tilePane","tooltipPane"];function Ck(n,e){const{[e]:t,...r}=n;return r}function wne(n,e,t){if(yne.indexOf(n)!==-1)throw new Error(`You must use a unique name for a pane that is not a default Leaflet pane: ${n}`);if(t.map.getPane(n)!=null)throw new Error(`A pane with this name already exists: ${n}`);const r=e.pane??t.pane,i=r?t.map.getPane(r):void 0,a=t.map.createPane(n,i);return e.className!=null&&nne(a,e.className),e.style!=null&&Object.keys(e.style).forEach(s=>{a.style[s]=e.style[s]}),a}function bne(n,e){const[t]=te.useState(n.name),[r,i]=te.useState(null);te.useImperativeHandle(e,()=>r,[r]);const a=HA(),s=te.useMemo(()=>({...a,pane:t}),[a]);return te.useEffect(()=>(i(wne(t,n,a)),function(){var l;const c=a.map.getPane(t);(l=c==null?void 0:c.remove)==null||l.call(c),a.map._panes!=null&&(a.map._panes=Ck(a.map._panes,t),a.map._paneRenderers=Ck(a.map._paneRenderers,t))}),[]),n.children!=null&&r!=null?og.createPortal(Ge.createElement(Xw,{value:s},n.children),r):null}const _ne=te.forwardRef(bne),xne=QA(function({positions:e,...t},r){const i=new Or.Polygon(e,t);return ya(i,So(r,{overlayContainer:i}))},function(e,t,r){t.positions!==r.positions&&e.setLatLngs(t.positions)}),Mne=QA(function({positions:e,...t},r){const i=new Or.Polyline(e,t);return ya(i,So(r,{overlayContainer:i}))},function(e,t,r){t.positions!==r.positions&&e.setLatLngs(t.positions)}),Sne=PD(function(e,t){const r=new Or.Popup(e,t.overlayContainer);return ya(r,t)},function(e,t,{position:r},i){te.useEffect(function(){const{instance:s}=e;function o(l){l.popup===s&&(s.update(),i(!0))}function c(l){l.popup===s&&i(!1)}return t.map.on({popupopen:o,popupclose:c}),t.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(t.map)):t.overlayContainer.bindPopup(s),function(){var u;t.map.off({popupopen:o,popupclose:c}),(u=t.overlayContainer)==null||u.unbindPopup(),t.map.removeLayer(s)}},[e,t,i,r])}),Cne=QA(function({bounds:e,...t},r){const i=new Or.Rectangle(e,t);return ya(i,So(r,{overlayContainer:i}))},function(e,t,r){t.bounds!==r.bounds&&e.setBounds(t.bounds)}),Pne=lC(function(e){return new Or.Control.Scale(e)}),Ene=WA(function(e,t){const{attributes:r,bounds:i,...a}=e,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("xmlns","http://www.w3.org/2000/svg"),r!=null&&Object.keys(r).forEach(c=>{s.setAttribute(c,r[c])});const o=new Or.SVGOverlay(s,i,a);return ya(o,t,s)},uC),Bne=cC(Ene);function Tne({children:n,...e},t){const{instance:r,container:i}=Bne(e).current;return te.useImperativeHandle(t,()=>r),i==null||n==null?null:og.createPortal(n,i)}const kne=te.forwardRef(Tne),Ine=ED(function({url:e,...t},r){const i=new Or.TileLayer(e,bg(t,r));return ya(i,r)},function(e,t,r){BD(e,t,r);const{url:i}=t;i!=null&&i!==r.url&&e.setUrl(i)}),Lne=PD(function(e,t){const r=new Or.Tooltip(e,t.overlayContainer);return ya(r,t)},function(e,t,{position:r},i){te.useEffect(function(){const s=t.overlayContainer;if(s==null)return;const{instance:o}=e,c=u=>{u.tooltip===o&&(r!=null&&o.setLatLng(r),o.update(),i(!0))},l=u=>{u.tooltip===o&&i(!1)};return s.on({tooltipopen:c,tooltipclose:l}),s.bindTooltip(o),function(){s.off({tooltipopen:c,tooltipclose:l}),s._map!=null&&s.unbindTooltip()}},[e,t,i,r])}),Fne=Yw(function({bounds:e,url:t,...r},i){var s;const a=new Or.VideoOverlay(t,e,r);return r.play===!0&&((s=a.getElement())==null||s.play()),ya(a,So(i,{overlayContainer:a}))},function(e,t,r){uC(e,t,r),typeof t.url=="string"&&t.url!==r.url&&e.setUrl(t.url);const i=e.getElement();i!=null&&(t.play===!0&&!r.play?i.play():!t.play&&r.play===!0&&i.pause())}),Nne=ED(function({eventHandlers:e,params:t={},url:r,...i},a){const s=new Or.TileLayer.WMS(r,{...t,...bg(i,a)});return ya(s,a)},function(e,t,r){BD(e,t,r),t.params!=null&&t.params!==r.params&&e.setParams(t.params)}),Dne=lC(function(e){return new Or.Control.Zoom(e)}),Rne=Object.freeze(Object.defineProperty({__proto__:null,AttributionControl:one,Circle:cne,CircleMarker:lne,FeatureGroup:une,GeoJSON:dne,ImageOverlay:Ane,LayerGroup:hne,LayersControl:AC,MapContainer:gne,Marker:vne,Pane:_ne,Polygon:xne,Polyline:Mne,Popup:Sne,Rectangle:Cne,SVGOverlay:kne,ScaleControl:Pne,TileLayer:Ine,Tooltip:Lne,VideoOverlay:Fne,WMSTileLayer:Nne,ZoomControl:Dne,useMap:dC,useMapEvent:ane,useMapEvents:sne},Symbol.toStringTag,{value:"Module"})),Une=Object.freeze(Object.defineProperty({__proto__:null,loadStripe:t8},Symbol.toStringTag,{value:"Module"}));function Pk(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Ek(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Pk(Object(t),!0).forEach(function(r){kD(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Pk(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Qv(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qv=function(e){return typeof e}:Qv=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qv(n)}function kD(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function One(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}function ID(n,e){if(n==null)return{};var t=One(n,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function Rp(n,e){return Hne(n)||Wne(n,e)||Qne(n,e)||$ne()}function Hne(n){if(Array.isArray(n))return n}function Wne(n,e){var t=n&&(typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"]);if(t!=null){var r=[],i=!0,a=!1,s,o;try{for(t=t.call(n);!(i=(s=t.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(c){a=!0,o=c}finally{try{!i&&t.return!=null&&t.return()}finally{if(a)throw o}}return r}}function Qne(n,e){if(n){if(typeof n=="string")return Bk(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Bk(n,e)}}function Bk(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function $ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ls=function(e,t,r){var i=!!r,a=Ge.useRef(r);Ge.useEffect(function(){a.current=r},[r]),Ge.useEffect(function(){if(!i||!e)return function(){};var s=function(){a.current&&a.current.apply(a,arguments)};return e.on(t,s),function(){e.off(t,s)}},[i,t,e,a])},zu=function(e){var t=Ge.useRef(e);return Ge.useEffect(function(){t.current=e},[e]),t.current},lf=function(e){return e!==null&&Qv(e)==="object"},jne=function(e){return lf(e)&&typeof e.then=="function"},zne=function(e){return lf(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},Tk="[object Object]",Z2=function n(e,t){if(!lf(e)||!lf(t))return e===t;var r=Array.isArray(e),i=Array.isArray(t);if(r!==i)return!1;var a=Object.prototype.toString.call(e)===Tk,s=Object.prototype.toString.call(t)===Tk;if(a!==s)return!1;if(!a&&!r)return e===t;var o=Object.keys(e),c=Object.keys(t);if(o.length!==c.length)return!1;for(var l={},u=0;u<o.length;u+=1)l[o[u]]=!0;for(var A=0;A<c.length;A+=1)l[c[A]]=!0;var f=Object.keys(l);if(f.length!==o.length)return!1;var h=e,g=t,y=function(v){return n(h[v],g[v])};return f.every(y)},LD=function(e,t,r){return lf(e)?Object.keys(e).reduce(function(i,a){var s=!lf(t)||!Z2(e[a],t[a]);return r.includes(a)||!s?i:Ek(Ek({},i||{}),{},kD({},a,e[a]))},null):null},FD="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",kk=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:FD;if(e===null||zne(e))return e;throw new Error(t)},hC=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:FD;if(jne(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(i){return kk(i,t)})};var r=kk(e,t);return r===null?{tag:"empty"}:{tag:"sync",stripe:r}},fC=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"3.10.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.10.0",url:"https://stripe.com/docs/stripe-js/react"}))},Jw=Ge.createContext(null);Jw.displayName="ElementsContext";var ND=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},DD=function(e){var t=e.stripe,r=e.options,i=e.children,a=Ge.useMemo(function(){return hC(t)},[t]),s=Ge.useState(function(){return{stripe:a.tag==="sync"?a.stripe:null,elements:a.tag==="sync"?a.stripe.elements(r):null}}),o=Rp(s,2),c=o[0],l=o[1];Ge.useEffect(function(){var f=!0,h=function(y){l(function(w){return w.stripe?w:{stripe:y,elements:y.elements(r)}})};return a.tag==="async"&&!c.stripe?a.stripePromise.then(function(g){g&&f&&h(g)}):a.tag==="sync"&&!c.stripe&&h(a.stripe),function(){f=!1}},[a,c,r]);var u=zu(t);Ge.useEffect(function(){},[u,t]);var A=zu(r);return Ge.useEffect(function(){if(c.elements){var f=LD(r,A,["clientSecret","fonts"]);f&&c.elements.update(f)}},[r,A,c.elements]),Ge.useEffect(function(){fC(c.stripe)},[c.stripe]),Ge.createElement(Jw.Provider,{value:c},i)};DD.propTypes={stripe:Gr.any,options:Gr.object};var RD=function(e){var t=Ge.useContext(Jw);return ND(t,e)},Vne=function(){var e=RD("calls useElements()"),t=e.elements;return t},UD=function(e){var t=e.children,r=RD("mounts <ElementsConsumer>");return t(r)};UD.propTypes={children:Gr.func.isRequired};var Gne=["on","session"],Zw=Ge.createContext(null);Zw.displayName="CheckoutSdkContext";var OD=function(e,t){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CheckoutProvider> provider."));return e},mC=Ge.createContext(null);mC.displayName="CheckoutContext";var Kne=function(e,t){if(!e)return null;e.on,e.session;var r=ID(e,Gne);return Object.assign(t||e.session(),r)},qne="Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",HD=function(e){var t=e.stripe,r=e.options,i=e.children,a=Ge.useMemo(function(){return hC(t,qne)},[t]),s=Ge.useState(null),o=Rp(s,2),c=o[0],l=o[1],u=Ge.useState(function(){return{stripe:a.tag==="sync"?a.stripe:null,checkoutSdk:null}}),A=Rp(u,2),f=A[0],h=A[1],g=function(F,D){h(function(U){return U.stripe&&U.checkoutSdk?U:{stripe:F,checkoutSdk:D}})},y=Ge.useRef(!1);Ge.useEffect(function(){var M=!0;return a.tag==="async"&&!f.stripe?a.stripePromise.then(function(F){F&&M&&!y.current&&(y.current=!0,F.initCheckout(r).then(function(D){D&&(g(F,D),D.on("change",l))}))}):a.tag==="sync"&&a.stripe&&!y.current&&(y.current=!0,a.stripe.initCheckout(r).then(function(F){F&&(g(a.stripe,F),F.on("change",l))})),function(){M=!1}},[a,f,r,l]);var w=zu(t);Ge.useEffect(function(){},[w,t]);var v=zu(r),S=zu(f.checkoutSdk);Ge.useEffect(function(){var M,F,D,U;if(f.checkoutSdk){var O=!!(!S&&f.checkoutSdk),T=v==null||(M=v.elementsOptions)===null||M===void 0?void 0:M.appearance,P=r==null||(F=r.elementsOptions)===null||F===void 0?void 0:F.appearance,k=!Z2(P,T);P&&(k||O)&&f.checkoutSdk.changeAppearance(P);var H=v==null||(D=v.elementsOptions)===null||D===void 0?void 0:D.fonts,j=r==null||(U=r.elementsOptions)===null||U===void 0?void 0:U.fonts,$=!Z2(H,j);j&&($||O)&&f.checkoutSdk.loadFonts(j)}},[r,v,f.checkoutSdk,S]),Ge.useEffect(function(){fC(f.stripe)},[f.stripe]);var C=Ge.useMemo(function(){return Kne(f.checkoutSdk,c)},[f.checkoutSdk,c]);return f.checkoutSdk?Ge.createElement(Zw.Provider,{value:f},Ge.createElement(mC.Provider,{value:C},i)):null};HD.propTypes={stripe:Gr.any,options:Gr.shape({fetchClientSecret:Gr.func.isRequired,elementsOptions:Gr.object}).isRequired};var Xne=function(e){var t=Ge.useContext(Zw);return OD(t,e)},eM=function(e){var t=Ge.useContext(Zw),r=Ge.useContext(Jw);if(t&&r)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return t?OD(t,e):ND(r,e)},Yne=function(){Xne("calls useCheckout()");var e=Ge.useContext(mC);if(!e)throw new Error("Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an <CheckoutProvider> provider.");return e},Jne=["mode"],Zne=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},Ni=function(e,t){var r="".concat(Zne(e),"Element"),i=function(c){var l=c.id,u=c.className,A=c.options,f=A===void 0?{}:A,h=c.onBlur,g=c.onFocus,y=c.onReady,w=c.onChange,v=c.onEscape,S=c.onClick,C=c.onLoadError,M=c.onLoaderStart,F=c.onNetworksChange,D=c.onConfirm,U=c.onCancel,O=c.onShippingAddressChange,T=c.onShippingRateChange,P=c.onSavedPaymentMethodRemove,k=c.onSavedPaymentMethodUpdate,H=eM("mounts <".concat(r,">")),j="elements"in H?H.elements:null,$="checkoutSdk"in H?H.checkoutSdk:null,ce=Ge.useState(null),de=Rp(ce,2),fe=de[0],ee=de[1],Se=Ge.useRef(null),xe=Ge.useRef(null);ls(fe,"blur",h),ls(fe,"focus",g),ls(fe,"escape",v),ls(fe,"click",S),ls(fe,"loaderror",C),ls(fe,"loaderstart",M),ls(fe,"networkschange",F),ls(fe,"confirm",D),ls(fe,"cancel",U),ls(fe,"shippingaddresschange",O),ls(fe,"shippingratechange",T),ls(fe,"savedpaymentmethodremove",P),ls(fe,"savedpaymentmethodupdate",k),ls(fe,"change",w);var Pe;y&&(e==="expressCheckout"?Pe=y:Pe=function(){y(fe)}),ls(fe,"ready",Pe),Ge.useLayoutEffect(function(){if(Se.current===null&&xe.current!==null&&(j||$)){var ae=null;if($)switch(e){case"payment":ae=$.createPaymentElement(f);break;case"address":if("mode"in f){var J=f.mode,z=ID(f,Jne);if(J==="shipping")ae=$.createShippingAddressElement(z);else if(J==="billing")ae=$.createBillingAddressElement(z);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":ae=$.createExpressCheckoutElement(f);break;case"currencySelector":ae=$.createCurrencySelectorElement();break;case"taxId":ae=$.createTaxIdElement(f);break;default:throw new Error("Invalid Element type ".concat(r,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else j&&(ae=j.create(e,f));Se.current=ae,ee(ae),ae&&ae.mount(xe.current)}},[j,$,f]);var V=zu(f);return Ge.useEffect(function(){if(Se.current){var ae=LD(f,V,["paymentRequest"]);ae&&"update"in Se.current&&Se.current.update(ae)}},[f,V]),Ge.useLayoutEffect(function(){return function(){if(Se.current&&typeof Se.current.destroy=="function")try{Se.current.destroy(),Se.current=null}catch{}}},[]),Ge.createElement("div",{id:l,className:u,ref:xe})},a=function(c){eM("mounts <".concat(r,">"));var l=c.id,u=c.className;return Ge.createElement("div",{id:l,className:u})},s=t?a:i;return s.propTypes={id:Gr.string,className:Gr.string,onChange:Gr.func,onBlur:Gr.func,onFocus:Gr.func,onReady:Gr.func,onEscape:Gr.func,onClick:Gr.func,onLoadError:Gr.func,onLoaderStart:Gr.func,onNetworksChange:Gr.func,onConfirm:Gr.func,onCancel:Gr.func,onShippingAddressChange:Gr.func,onShippingRateChange:Gr.func,onSavedPaymentMethodRemove:Gr.func,onSavedPaymentMethodUpdate:Gr.func,options:Gr.object},s.displayName=r,s.__elementType=e,s},yi=typeof window>"u",pC=Ge.createContext(null);pC.displayName="EmbeddedCheckoutProviderContext";var WD=function(){var e=Ge.useContext(pC);if(!e)throw new Error("<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>");return e},ere="Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",tre=function(e){var t=e.stripe,r=e.options,i=e.children,a=Ge.useMemo(function(){return hC(t,ere)},[t]),s=Ge.useRef(null),o=Ge.useRef(null),c=Ge.useState({embeddedCheckout:null}),l=Rp(c,2),u=l[0],A=l[1];Ge.useEffect(function(){if(!(o.current||s.current)){var g=function(w){o.current||s.current||(o.current=w,s.current=o.current.initEmbeddedCheckout(r).then(function(v){A({embeddedCheckout:v})}))};a.tag==="async"&&!o.current&&(r.clientSecret||r.fetchClientSecret)?a.stripePromise.then(function(y){y&&g(y)}):a.tag==="sync"&&!o.current&&(r.clientSecret||r.fetchClientSecret)&&g(a.stripe)}},[a,r,u,o]),Ge.useEffect(function(){return function(){u.embeddedCheckout?(s.current=null,u.embeddedCheckout.destroy()):s.current&&s.current.then(function(){s.current=null,u.embeddedCheckout&&u.embeddedCheckout.destroy()})}},[u.embeddedCheckout]),Ge.useEffect(function(){fC(o)},[o]);var f=zu(t);Ge.useEffect(function(){},[f,t]);var h=zu(r);return Ge.useEffect(function(){h!=null&&r!=null&&(r.clientSecret===void 0&&r.fetchClientSecret,h.clientSecret!=null&&(r.clientSecret,h.clientSecret),h.fetchClientSecret!=null&&(r.fetchClientSecret,h.fetchClientSecret),h.onComplete!=null&&(r.onComplete,h.onComplete),h.onShippingDetailsChange!=null&&(r.onShippingDetailsChange,h.onShippingDetailsChange),h.onLineItemsChange!=null&&(r.onLineItemsChange,h.onLineItemsChange))},[h,r]),Ge.createElement(pC.Provider,{value:u},i)},nre=function(e){var t=e.id,r=e.className,i=WD(),a=i.embeddedCheckout,s=Ge.useRef(!1),o=Ge.useRef(null);return Ge.useLayoutEffect(function(){return!s.current&&a&&o.current!==null&&(a.mount(o.current),s.current=!0),function(){if(s.current&&a)try{a.unmount(),s.current=!1}catch{}}},[a]),Ge.createElement("div",{ref:o,id:t,className:r})},rre=function(e){var t=e.id,r=e.className;return WD(),Ge.createElement("div",{id:t,className:r})},ire=yi?rre:nre,are=function(){var e=eM("calls useStripe()"),t=e.stripe;return t},sre=Ni("auBankAccount",yi),ore=Ni("card",yi),cre=Ni("cardNumber",yi),lre=Ni("cardExpiry",yi),ure=Ni("cardCvc",yi),dre=Ni("fpxBank",yi),Are=Ni("iban",yi),hre=Ni("idealBank",yi),fre=Ni("p24Bank",yi),mre=Ni("epsBank",yi),pre=Ni("payment",yi),gre=Ni("expressCheckout",yi),vre=Ni("currencySelector",yi),yre=Ni("paymentRequestButton",yi),wre=Ni("linkAuthentication",yi),bre=Ni("address",yi),_re=Ni("shippingAddress",yi),xre=Ni("paymentMethodMessaging",yi),Mre=Ni("affirmMessage",yi),Sre=Ni("afterpayClearpayMessage",yi),Cre=Ni("taxId",yi);const Pre=Object.freeze(Object.defineProperty({__proto__:null,AddressElement:bre,AffirmMessageElement:Mre,AfterpayClearpayMessageElement:Sre,AuBankAccountElement:sre,CardCvcElement:ure,CardElement:ore,CardExpiryElement:lre,CardNumberElement:cre,CheckoutProvider:HD,CurrencySelectorElement:vre,Elements:DD,ElementsConsumer:UD,EmbeddedCheckout:ire,EmbeddedCheckoutProvider:tre,EpsBankElement:mre,ExpressCheckoutElement:gre,FpxBankElement:dre,IbanElement:Are,IdealBankElement:hre,LinkAuthenticationElement:wre,P24BankElement:fre,PaymentElement:pre,PaymentMethodMessagingElement:xre,PaymentRequestButtonElement:yre,ShippingAddressElement:_re,TaxIdElement:Cre,useCheckout:Yne,useElements:Vne,useStripe:are},Symbol.toStringTag,{value:"Module"}));function ys(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var Ere=typeof Symbol=="function"&&Symbol.observable||"@@observable",Ik=Ere,Lk=()=>Math.random().toString(36).substring(7).split("").join("."),Bre={INIT:`@@redux/INIT${Lk()}`,REPLACE:`@@redux/REPLACE${Lk()}`},Fk=Bre;function Tre(n){if(typeof n!="object"||n===null)return!1;let e=n;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(n)===e||Object.getPrototypeOf(n)===null}function QD(n,e,t){if(typeof n!="function")throw new Error(ys(2));if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(ys(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(ys(1));return t(QD)(n,e)}let r=n,i=e,a=new Map,s=a,o=0,c=!1;function l(){s===a&&(s=new Map,a.forEach((w,v)=>{s.set(v,w)}))}function u(){if(c)throw new Error(ys(3));return i}function A(w){if(typeof w!="function")throw new Error(ys(4));if(c)throw new Error(ys(5));let v=!0;l();const S=o++;return s.set(S,w),function(){if(v){if(c)throw new Error(ys(6));v=!1,l(),s.delete(S),a=null}}}function f(w){if(!Tre(w))throw new Error(ys(7));if(typeof w.type>"u")throw new Error(ys(8));if(typeof w.type!="string")throw new Error(ys(17));if(c)throw new Error(ys(9));try{c=!0,i=r(i,w)}finally{c=!1}return(a=s).forEach(S=>{S()}),w}function h(w){if(typeof w!="function")throw new Error(ys(10));r=w,f({type:Fk.REPLACE})}function g(){const w=A;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(ys(11));function S(){const M=v;M.next&&M.next(u())}return S(),{unsubscribe:w(S)}},[Ik](){return this}}}return f({type:Fk.INIT}),{dispatch:f,subscribe:A,getState:u,replaceReducer:h,[Ik]:g}}function Nk(n,e){return function(...t){return e(n.apply(this,t))}}function Dk(n,e){if(typeof n=="function")return Nk(n,e);if(typeof n!="object"||n===null)throw new Error(ys(16));const t={};for(const r in n){const i=n[r];typeof i=="function"&&(t[r]=Nk(i,e))}return t}function $D(...n){return n.length===0?e=>e:n.length===1?n[0]:n.reduce((e,t)=>(...r)=>e(t(...r)))}function kre(...n){return e=>(t,r)=>{const i=e(t,r);let a=()=>{throw new Error(ys(15))};const s={getState:i.getState,dispatch:(c,...l)=>a(c,...l)},o=n.map(c=>c(s));return a=$D(...o)(i.dispatch),{...i,dispatch:a}}}var k_={exports:{}},I_={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Rk;function Ire(){if(Rk)return I_;Rk=1;var n=Kj();function e(c,l){return c===l&&(c!==0||1/c===1/l)||c!==c&&l!==l}var t=typeof Object.is=="function"?Object.is:e,r=n.useSyncExternalStore,i=n.useRef,a=n.useEffect,s=n.useMemo,o=n.useDebugValue;return I_.useSyncExternalStoreWithSelector=function(c,l,u,A,f){var h=i(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=s(function(){function w(F){if(!v){if(v=!0,S=F,F=A(F),f!==void 0&&g.hasValue){var D=g.value;if(f(D,F))return C=D}return C=F}if(D=C,t(S,F))return D;var U=A(F);return f!==void 0&&f(D,U)?(S=F,D):(S=F,C=U)}var v=!1,S,C,M=u===void 0?null:u;return[function(){return w(l())},M===null?void 0:function(){return w(M())}]},[l,u,A,f]);var y=r(c,h[0],h[1]);return a(function(){g.hasValue=!0,g.value=y},[y]),o(y),y},I_}var Uk;function Lre(){return Uk||(Uk=1,k_.exports=Ire()),k_.exports}Lre();var Fre=te.version.startsWith("19"),Nre=Symbol.for(Fre?"react.transitional.element":"react.element"),Dre=Symbol.for("react.portal"),Rre=Symbol.for("react.fragment"),Ure=Symbol.for("react.strict_mode"),Ore=Symbol.for("react.profiler"),Hre=Symbol.for("react.consumer"),Wre=Symbol.for("react.context"),jD=Symbol.for("react.forward_ref"),Qre=Symbol.for("react.suspense"),$re=Symbol.for("react.suspense_list"),gC=Symbol.for("react.memo"),jre=Symbol.for("react.lazy"),zre=jD,Vre=gC;function Gre(n){if(typeof n=="object"&&n!==null){const{$$typeof:e}=n;switch(e){case Nre:switch(n=n.type,n){case Rre:case Ore:case Ure:case Qre:case $re:return n;default:switch(n=n&&n.$$typeof,n){case Wre:case jD:case jre:case gC:return n;case Hre:return n;default:return e}}case Dre:return e}}}function Kre(n){return Gre(n)===gC}function qre(n,e,t,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:s}){let o=!1,c,l,u,A,f;function h(S,C){return c=S,l=C,u=n(c,l),A=e(r,l),f=t(u,A,l),o=!0,f}function g(){return u=n(c,l),e.dependsOnOwnProps&&(A=e(r,l)),f=t(u,A,l),f}function y(){return n.dependsOnOwnProps&&(u=n(c,l)),e.dependsOnOwnProps&&(A=e(r,l)),f=t(u,A,l),f}function w(){const S=n(c,l),C=!s(S,u);return u=S,C&&(f=t(u,A,l)),f}function v(S,C){const M=!a(C,l),F=!i(S,c,C,l);return c=S,l=C,M&&F?g():M?y():F?w():f}return function(C,M){return o?v(C,M):h(C,M)}}function Xre(n,{initMapStateToProps:e,initMapDispatchToProps:t,initMergeProps:r,...i}){const a=e(n,i),s=t(n,i),o=r(n,i);return qre(a,s,o,n,i)}function Yre(n,e){const t={};for(const r in n){const i=n[r];typeof i=="function"&&(t[r]=(...a)=>e(i(...a)))}return t}function tM(n){return function(t){const r=n(t);function i(){return r}return i.dependsOnOwnProps=!1,i}}function Ok(n){return n.dependsOnOwnProps?!!n.dependsOnOwnProps:n.length!==1}function zD(n,e){return function(r,{displayName:i}){const a=function(o,c){return a.dependsOnOwnProps?a.mapToProps(o,c):a.mapToProps(o,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(o,c){a.mapToProps=n,a.dependsOnOwnProps=Ok(n);let l=a(o,c);return typeof l=="function"&&(a.mapToProps=l,a.dependsOnOwnProps=Ok(l),l=a(o,c)),l},a}}function vC(n,e){return(t,r)=>{throw new Error(`Invalid value of type ${typeof n} for ${e} argument when connecting component ${r.wrappedComponentName}.`)}}function Jre(n){return n&&typeof n=="object"?tM(e=>Yre(n,e)):n?typeof n=="function"?zD(n):vC(n,"mapDispatchToProps"):tM(e=>({dispatch:e}))}function Zre(n){return n?typeof n=="function"?zD(n):vC(n,"mapStateToProps"):tM(()=>({}))}function eie(n,e,t){return{...t,...n,...e}}function tie(n){return function(t,{displayName:r,areMergedPropsEqual:i}){let a=!1,s;return function(c,l,u){const A=n(c,l,u);return a?i(A,s)||(s=A):(a=!0,s=A),s}}}function nie(n){return n?typeof n=="function"?tie(n):vC(n,"mergeProps"):()=>eie}function rie(n){n()}function iie(){let n=null,e=null;return{clear(){n=null,e=null},notify(){rie(()=>{let t=n;for(;t;)t.callback(),t=t.next})},get(){const t=[];let r=n;for(;r;)t.push(r),r=r.next;return t},subscribe(t){let r=!0;const i=e={callback:t,next:null,prev:e};return i.prev?i.prev.next=i:n=i,function(){!r||n===null||(r=!1,i.next?i.next.prev=i.prev:e=i.prev,i.prev?i.prev.next=i.next:n=i.next)}}}}var Hk={notify(){},get:()=>[]};function VD(n,e){let t,r=Hk,i=0,a=!1;function s(y){u();const w=r.subscribe(y);let v=!1;return()=>{v||(v=!0,w(),A())}}function o(){r.notify()}function c(){g.onStateChange&&g.onStateChange()}function l(){return a}function u(){i++,t||(t=e?e.addNestedSub(c):n.subscribe(c),r=iie())}function A(){i--,t&&i===0&&(t(),t=void 0,r.clear(),r=Hk)}function f(){a||(a=!0,u())}function h(){a&&(a=!1,A())}const g={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:h,getListeners:()=>r};return g}var aie=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sie=aie(),oie=()=>typeof navigator<"u"&&navigator.product==="ReactNative",cie=oie(),lie=()=>sie||cie?te.useLayoutEffect:te.useEffect,Cy=lie();function Wk(n,e){return n===e?n!==0||e!==0||1/n===1/e:n!==n&&e!==e}function L_(n,e){if(Wk(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n),r=Object.keys(e);if(t.length!==r.length)return!1;for(let i=0;i<t.length;i++)if(!Object.prototype.hasOwnProperty.call(e,t[i])||!Wk(n[t[i]],e[t[i]]))return!1;return!0}var uie={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},die={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Aie={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},GD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hie={[zre]:Aie,[Vre]:GD};function Qk(n){return Kre(n)?GD:hie[n.$$typeof]||uie}var fie=Object.defineProperty,mie=Object.getOwnPropertyNames,$k=Object.getOwnPropertySymbols,pie=Object.getOwnPropertyDescriptor,gie=Object.getPrototypeOf,jk=Object.prototype;function nM(n,e){if(typeof e!="string"){if(jk){const a=gie(e);a&&a!==jk&&nM(n,a)}let t=mie(e);$k&&(t=t.concat($k(e)));const r=Qk(n),i=Qk(e);for(let a=0;a<t.length;++a){const s=t[a];if(!die[s]&&!(i&&i[s])&&!(r&&r[s])){const o=pie(e,s);try{fie(n,s,o)}catch{}}}}return n}var F_=Symbol.for("react-redux-context"),N_=typeof globalThis<"u"?globalThis:{};function vie(){if(!te.createContext)return{};const n=N_[F_]??(N_[F_]=new Map);let e=n.get(te.createContext);return e||(e=te.createContext(null),n.set(te.createContext,e)),e}var KD=vie(),yie=[null,null];function wie(n,e,t){Cy(()=>n(...e),t)}function bie(n,e,t,r,i,a){n.current=r,t.current=!1,i.current&&(i.current=null,a())}function _ie(n,e,t,r,i,a,s,o,c,l,u){if(!n)return()=>{};let A=!1,f=null;const h=()=>{if(A||!o.current)return;const y=e.getState();let w,v;try{w=r(y,i.current)}catch(S){v=S,f=S}v||(f=null),w===a.current?s.current||l():(a.current=w,c.current=w,s.current=!0,u())};return t.onStateChange=h,t.trySubscribe(),h(),()=>{if(A=!0,t.tryUnsubscribe(),t.onStateChange=null,f)throw f}}function xie(n,e){return n===e}function Mie(n,e,t,{pure:r,areStatesEqual:i=xie,areOwnPropsEqual:a=L_,areStatePropsEqual:s=L_,areMergedPropsEqual:o=L_,forwardRef:c=!1,context:l=KD}={}){const u=l,A=Zre(n),f=Jre(e),h=nie(t),g=!!n;return w=>{const v=w.displayName||w.name||"Component",S=`Connect(${v})`,C={shouldHandleStateChanges:g,displayName:S,wrappedComponentName:v,WrappedComponent:w,initMapStateToProps:A,initMapDispatchToProps:f,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:o};function M(U){const[O,T,P]=te.useMemo(()=>{const{reactReduxForwardedRef:Ee,...Ne}=U;return[U.context,Ee,Ne]},[U]),k=te.useMemo(()=>{let Ee=u;return O!=null&&O.Consumer,Ee},[O,u]),H=te.useContext(k),j=!!U.store&&!!U.store.getState&&!!U.store.dispatch,$=!!H&&!!H.store,ce=j?U.store:H.store,de=$?H.getServerState:ce.getState,fe=te.useMemo(()=>Xre(ce.dispatch,C),[ce]),[ee,Se]=te.useMemo(()=>{if(!g)return yie;const Ee=VD(ce,j?void 0:H.subscription),Ne=Ee.notifyNestedSubs.bind(Ee);return[Ee,Ne]},[ce,j,H]),xe=te.useMemo(()=>j?H:{...H,subscription:ee},[j,H,ee]),Pe=te.useRef(void 0),V=te.useRef(P),ae=te.useRef(void 0),J=te.useRef(!1),z=te.useRef(!1),Z=te.useRef(void 0);Cy(()=>(z.current=!0,()=>{z.current=!1}),[]);const le=te.useMemo(()=>()=>ae.current&&P===V.current?ae.current:fe(ce.getState(),P),[ce,P]),ge=te.useMemo(()=>Ne=>ee?_ie(g,ce,ee,fe,V,Pe,J,z,ae,Se,Ne):()=>{},[ee]);wie(bie,[V,Pe,J,P,ae,Se]);let Me;try{Me=te.useSyncExternalStore(ge,le,de?()=>fe(de(),P):le)}catch(Ee){throw Z.current&&(Ee.message+=`
The error may be correlated with this previous error:
${Z.current.stack}

`),Ee}Cy(()=>{Z.current=void 0,ae.current=void 0,Pe.current=Me});const Te=te.useMemo(()=>te.createElement(w,{...Me,ref:T}),[T,w,Me]);return te.useMemo(()=>g?te.createElement(k.Provider,{value:xe},Te):Te,[k,Te,xe])}const D=te.memo(M);if(D.WrappedComponent=w,D.displayName=M.displayName=S,c){const O=te.forwardRef(function(P,k){return te.createElement(D,{...P,reactReduxForwardedRef:k})});return O.displayName=S,O.WrappedComponent=w,nM(O,w)}return nM(D,w)}}var qD=Mie;function Sie(n){const{children:e,context:t,serverState:r,store:i}=n,a=te.useMemo(()=>{const c=VD(i);return{store:i,subscription:c,getServerState:r?()=>r:void 0}},[i,r]),s=te.useMemo(()=>i.getState(),[i]);Cy(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const o=t||KD;return te.createElement(o.Provider,{value:a},e)}var Cie=Sie;function Pie(n,e){if(n.length!==e.length)return!1;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function XD(n,e){var t=te.useState(function(){return{inputs:e,result:n()}})[0],r=te.useRef(!0),i=te.useRef(t),a=r.current||!!(e&&i.current.inputs&&Pie(e,i.current.inputs)),s=a?i.current:{inputs:e,result:n()};return te.useEffect(function(){r.current=!1,i.current=s},[s]),s.result}function Eie(n,e){return XD(function(){return n},e)}var ir=XD,dn=Eie,gc=function(e){var t=e.top,r=e.right,i=e.bottom,a=e.left,s=r-a,o=i-t,c={top:t,right:r,bottom:i,left:a,width:s,height:o,x:a,y:t,center:{x:(r+a)/2,y:(i+t)/2}};return c},yC=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},zk=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},Bie=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},D_={top:0,right:0,bottom:0,left:0},wC=function(e){var t=e.borderBox,r=e.margin,i=r===void 0?D_:r,a=e.border,s=a===void 0?D_:a,o=e.padding,c=o===void 0?D_:o,l=gc(yC(t,i)),u=gc(zk(t,s)),A=gc(zk(u,c));return{marginBox:l,borderBox:gc(t),paddingBox:u,contentBox:A,margin:i,border:s,padding:c}},Fo=function(e){var t=e.slice(0,-2),r=e.slice(-2);if(r!=="px")return 0;var i=Number(t);return isNaN(i)&&n8(),i},Tie=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Py=function(e,t){var r=e.borderBox,i=e.border,a=e.margin,s=e.padding,o=Bie(r,t);return wC({borderBox:o,border:i,margin:a,padding:s})},Ey=function(e,t){return t===void 0&&(t=Tie()),Py(e,t)},YD=function(e,t){var r={top:Fo(t.marginTop),right:Fo(t.marginRight),bottom:Fo(t.marginBottom),left:Fo(t.marginLeft)},i={top:Fo(t.paddingTop),right:Fo(t.paddingRight),bottom:Fo(t.paddingBottom),left:Fo(t.paddingLeft)},a={top:Fo(t.borderTopWidth),right:Fo(t.borderRightWidth),bottom:Fo(t.borderBottomWidth),left:Fo(t.borderLeftWidth)};return wC({borderBox:e,margin:r,padding:i,border:a})},JD=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return YD(t,r)},Vk=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function kie(n,e){return!!(n===e||Vk(n)&&Vk(e))}function Iie(n,e){if(n.length!==e.length)return!1;for(var t=0;t<n.length;t++)if(!kie(n[t],e[t]))return!1;return!0}function fa(n,e){e===void 0&&(e=Iie);var t=null;function r(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(t&&t.lastThis===this&&e(i,t.lastArgs))return t.lastResult;var s=n.apply(this,i);return t={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){t=null},r}var Up=function(e){var t=[],r=null,i=function(){for(var s=arguments.length,o=new Array(s),c=0;c<s;c++)o[c]=arguments[c];t=o,!r&&(r=requestAnimationFrame(function(){r=null,e.apply(void 0,t)}))};return i.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},i};function ZD(n,e){}ZD.bind(null,"warn");ZD.bind(null,"error");function Vu(){}function Lie(n,e){return{...n,...e}}function Ho(n,e,t){const r=e.map(i=>{const a=Lie(t,i.options);return n.addEventListener(i.eventName,i.fn,a),function(){n.removeEventListener(i.eventName,i.fn,a)}});return function(){r.forEach(a=>{a()})}}const Fie="Invariant failed";class By extends Error{}By.prototype.toString=function(){return this.message};function Ft(n,e){throw new By(Fie)}class Nie extends Ge.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=Vu,this.onWindowError=t=>{const r=this.getCallbacks();r.isDragging()&&r.tryAbort(),t.error instanceof By&&t.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=t=>{this.callbacks=t}}componentDidMount(){this.unbind=Ho(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(e instanceof By){this.setState({});return}throw e}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Die=`
  Press space bar to start a drag.
  When dragging you can use the arrow keys to move the item around and escape to cancel.
  Some screen readers may require you to be in focus mode or to use your pass through key
`,Ty=n=>n+1,Rie=n=>`
  You have lifted an item in position ${Ty(n.source.index)}
`,eR=(n,e)=>{const t=n.droppableId===e.droppableId,r=Ty(n.index),i=Ty(e.index);return t?`
      You have moved the item from position ${r}
      to position ${i}
    `:`
    You have moved the item from position ${r}
    in list ${n.droppableId}
    to list ${e.droppableId}
    in position ${i}
  `},tR=(n,e,t)=>e.droppableId===t.droppableId?`
      The item ${n}
      has been combined with ${t.draggableId}`:`
      The item ${n}
      in list ${e.droppableId}
      has been combined with ${t.draggableId}
      in list ${t.droppableId}
    `,Uie=n=>{const e=n.destination;if(e)return eR(n.source,e);const t=n.combine;return t?tR(n.draggableId,n.source,t):"You are over an area that cannot be dropped on"},Gk=n=>`
  The item has returned to its starting position
  of ${Ty(n.index)}
`,Oie=n=>{if(n.reason==="CANCEL")return`
      Movement cancelled.
      ${Gk(n.source)}
    `;const e=n.destination,t=n.combine;return e?`
      You have dropped the item.
      ${eR(n.source,e)}
    `:t?`
      You have dropped the item.
      ${tR(n.draggableId,n.source,t)}
    `:`
    The item has been dropped while not over a drop area.
    ${Gk(n.source)}
  `},$v={dragHandleUsageInstructions:Die,onDragStart:Rie,onDragUpdate:Uie,onDragEnd:Oie},va={x:0,y:0},Ia=(n,e)=>({x:n.x+e.x,y:n.y+e.y}),po=(n,e)=>({x:n.x-e.x,y:n.y-e.y}),Gu=(n,e)=>n.x===e.x&&n.y===e.y,If=n=>({x:n.x!==0?-n.x:0,y:n.y!==0?-n.y:0}),MA=(n,e,t=0)=>n==="x"?{x:e,y:t}:{x:t,y:e},Op=(n,e)=>Math.sqrt((e.x-n.x)**2+(e.y-n.y)**2),Kk=(n,e)=>Math.min(...e.map(t=>Op(n,t))),nR=n=>e=>({x:n(e.x),y:n(e.y)});var Hie=(n,e)=>{const t=gc({top:Math.max(e.top,n.top),right:Math.min(e.right,n.right),bottom:Math.min(e.bottom,n.bottom),left:Math.max(e.left,n.left)});return t.width<=0||t.height<=0?null:t};const _g=(n,e)=>({top:n.top+e.y,left:n.left+e.x,bottom:n.bottom+e.y,right:n.right+e.x}),qk=n=>[{x:n.left,y:n.top},{x:n.right,y:n.top},{x:n.left,y:n.bottom},{x:n.right,y:n.bottom}],Wie={top:0,right:0,bottom:0,left:0},Qie=(n,e)=>e?_g(n,e.scroll.diff.displacement):n,$ie=(n,e,t)=>t&&t.increasedBy?{...n,[e.end]:n[e.end]+t.increasedBy[e.line]}:n,jie=(n,e)=>e&&e.shouldClipSubject?Hie(e.pageMarginBox,n):gc(n);var uf=({page:n,withPlaceholder:e,axis:t,frame:r})=>{const i=Qie(n.marginBox,r),a=$ie(i,t,e),s=jie(a,r);return{page:n,withPlaceholder:e,active:s}},bC=(n,e)=>{n.frame||Ft();const t=n.frame,r=po(e,t.scroll.initial),i=If(r),a={...t,scroll:{initial:t.scroll.initial,current:e,diff:{value:r,displacement:i},max:t.scroll.max}},s=uf({page:n.subject.page,withPlaceholder:n.subject.withPlaceholder,axis:n.axis,frame:a});return{...n,frame:a,subject:s}};const rR=fa(n=>n.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),iR=fa(n=>n.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),eb=fa(n=>Object.values(n)),zie=fa(n=>Object.values(n));var Lf=fa((n,e)=>zie(e).filter(r=>n===r.descriptor.droppableId).sort((r,i)=>r.descriptor.index-i.descriptor.index));function _C(n){return n.at&&n.at.type==="REORDER"?n.at.destination:null}function tb(n){return n.at&&n.at.type==="COMBINE"?n.at.combine:null}var nb=fa((n,e)=>e.filter(t=>t.descriptor.id!==n.descriptor.id)),Vie=({isMovingForward:n,draggable:e,destination:t,insideDestination:r,previousImpact:i})=>{if(!t.isCombineEnabled||!_C(i))return null;function s(h){const g={type:"COMBINE",combine:{draggableId:h,droppableId:t.descriptor.id}};return{...i,at:g}}const o=i.displaced.all,c=o.length?o[0]:null;if(n)return c?s(c):null;const l=nb(e,r);if(!c){if(!l.length)return null;const h=l[l.length-1];return s(h.descriptor.id)}const u=l.findIndex(h=>h.descriptor.id===c);u===-1&&Ft();const A=u-1;if(A<0)return null;const f=l[A];return s(f.descriptor.id)},Ff=(n,e)=>n.descriptor.droppableId===e.descriptor.id;const aR={point:va,value:0},Hp={invisible:{},visible:{},all:[]},Gie={displaced:Hp,displacedBy:aR,at:null};var zo=(n,e)=>t=>n<=t&&t<=e,sR=n=>{const e=zo(n.top,n.bottom),t=zo(n.left,n.right);return r=>{if(e(r.top)&&e(r.bottom)&&t(r.left)&&t(r.right))return!0;const a=e(r.top)||e(r.bottom),s=t(r.left)||t(r.right);if(a&&s)return!0;const c=r.top<n.top&&r.bottom>n.bottom,l=r.left<n.left&&r.right>n.right;return c&&l?!0:c&&s||l&&a}},Kie=n=>{const e=zo(n.top,n.bottom),t=zo(n.left,n.right);return r=>e(r.top)&&e(r.bottom)&&t(r.left)&&t(r.right)};const xC={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},oR={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var qie=n=>e=>{const t=zo(e.top,e.bottom),r=zo(e.left,e.right);return i=>n===xC?t(i.top)&&t(i.bottom):r(i.left)&&r(i.right)};const Xie=(n,e)=>{const t=e.frame?e.frame.scroll.diff.displacement:va;return _g(n,t)},Yie=(n,e,t)=>e.subject.active?t(e.subject.active)(n):!1,Jie=(n,e,t)=>t(e)(n),MC=({target:n,destination:e,viewport:t,withDroppableDisplacement:r,isVisibleThroughFrameFn:i})=>{const a=r?Xie(n,e):n;return Yie(a,e,i)&&Jie(a,t,i)},Zie=n=>MC({...n,isVisibleThroughFrameFn:sR}),cR=n=>MC({...n,isVisibleThroughFrameFn:Kie}),eae=n=>MC({...n,isVisibleThroughFrameFn:qie(n.destination.axis)}),tae=(n,e,t)=>{if(typeof t=="boolean")return t;if(!e)return!0;const{invisible:r,visible:i}=e;if(r[n])return!1;const a=i[n];return a?a.shouldAnimate:!0};function nae(n,e){const t=n.page.marginBox,r={top:e.point.y,right:0,bottom:0,left:e.point.x};return gc(yC(t,r))}function Wp({afterDragging:n,destination:e,displacedBy:t,viewport:r,forceShouldAnimate:i,last:a}){return n.reduce(function(o,c){const l=nae(c,t),u=c.descriptor.id;if(o.all.push(u),!Zie({target:l,destination:e,viewport:r,withDroppableDisplacement:!0}))return o.invisible[c.descriptor.id]=!0,o;const f=tae(u,a,i),h={draggableId:u,shouldAnimate:f};return o.visible[u]=h,o},{all:[],visible:{},invisible:{}})}function rae(n,e){if(!n.length)return 0;const t=n[n.length-1].descriptor.index;return e.inHomeList?t:t+1}function Xk({insideDestination:n,inHomeList:e,displacedBy:t,destination:r}){const i=rae(n,{inHomeList:e});return{displaced:Hp,displacedBy:t,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:i}}}}function ky({draggable:n,insideDestination:e,destination:t,viewport:r,displacedBy:i,last:a,index:s,forceShouldAnimate:o}){const c=Ff(n,t);if(s==null)return Xk({insideDestination:e,inHomeList:c,displacedBy:i,destination:t});const l=e.find(g=>g.descriptor.index===s);if(!l)return Xk({insideDestination:e,inHomeList:c,displacedBy:i,destination:t});const u=nb(n,e),A=e.indexOf(l),f=u.slice(A);return{displaced:Wp({afterDragging:f,destination:t,displacedBy:i,last:a,viewport:r.frame,forceShouldAnimate:o}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:t.descriptor.id,index:s}}}}function Zu(n,e){return!!e.effected[n]}var iae=({isMovingForward:n,destination:e,draggables:t,combine:r,afterCritical:i})=>{if(!e.isCombineEnabled)return null;const a=r.draggableId,o=t[a].descriptor.index;return Zu(a,i)?n?o:o-1:n?o+1:o},aae=({isMovingForward:n,isInHomeList:e,insideDestination:t,location:r})=>{if(!t.length)return null;const i=r.index,a=n?i+1:i-1,s=t[0].descriptor.index,o=t[t.length-1].descriptor.index,c=e?o:o+1;return a<s||a>c?null:a},sae=({isMovingForward:n,isInHomeList:e,draggable:t,draggables:r,destination:i,insideDestination:a,previousImpact:s,viewport:o,afterCritical:c})=>{const l=s.at;if(l||Ft(),l.type==="REORDER"){const A=aae({isMovingForward:n,isInHomeList:e,location:l.destination,insideDestination:a});return A==null?null:ky({draggable:t,insideDestination:a,destination:i,viewport:o,last:s.displaced,displacedBy:s.displacedBy,index:A})}const u=iae({isMovingForward:n,destination:i,displaced:s.displaced,draggables:r,combine:l.combine,afterCritical:c});return u==null?null:ky({draggable:t,insideDestination:a,destination:i,viewport:o,last:s.displaced,displacedBy:s.displacedBy,index:u})},oae=({displaced:n,afterCritical:e,combineWith:t,displacedBy:r})=>{const i=!!(n.visible[t]||n.invisible[t]);return Zu(t,e)?i?va:If(r.point):i?r.point:va},cae=({afterCritical:n,impact:e,draggables:t})=>{const r=tb(e);r||Ft();const i=r.draggableId,a=t[i].page.borderBox.center,s=oae({displaced:e.displaced,afterCritical:n,combineWith:i,displacedBy:e.displacedBy});return Ia(a,s)};const lR=(n,e)=>e.margin[n.start]+e.borderBox[n.size]/2,lae=(n,e)=>e.margin[n.end]+e.borderBox[n.size]/2,SC=(n,e,t)=>e[n.crossAxisStart]+t.margin[n.crossAxisStart]+t.borderBox[n.crossAxisSize]/2,Yk=({axis:n,moveRelativeTo:e,isMoving:t})=>MA(n.line,e.marginBox[n.end]+lR(n,t),SC(n,e.marginBox,t)),Jk=({axis:n,moveRelativeTo:e,isMoving:t})=>MA(n.line,e.marginBox[n.start]-lae(n,t),SC(n,e.marginBox,t)),uae=({axis:n,moveInto:e,isMoving:t})=>MA(n.line,e.contentBox[n.start]+lR(n,t),SC(n,e.contentBox,t));var dae=({impact:n,draggable:e,draggables:t,droppable:r,afterCritical:i})=>{const a=Lf(r.descriptor.id,t),s=e.page,o=r.axis;if(!a.length)return uae({axis:o,moveInto:r.page,isMoving:s});const{displaced:c,displacedBy:l}=n,u=c.all[0];if(u){const f=t[u];if(Zu(u,i))return Jk({axis:o,moveRelativeTo:f.page,isMoving:s});const h=Py(f.page,l.point);return Jk({axis:o,moveRelativeTo:h,isMoving:s})}const A=a[a.length-1];if(A.descriptor.id===e.descriptor.id)return s.borderBox.center;if(Zu(A.descriptor.id,i)){const f=Py(A.page,If(i.displacedBy.point));return Yk({axis:o,moveRelativeTo:f,isMoving:s})}return Yk({axis:o,moveRelativeTo:A.page,isMoving:s})},rM=(n,e)=>{const t=n.frame;return t?Ia(e,t.scroll.diff.displacement):e};const Aae=({impact:n,draggable:e,droppable:t,draggables:r,afterCritical:i})=>{const a=e.page.borderBox.center,s=n.at;return!t||!s?a:s.type==="REORDER"?dae({impact:n,draggable:e,draggables:r,droppable:t,afterCritical:i}):cae({impact:n,draggables:r,afterCritical:i})};var rb=n=>{const e=Aae(n),t=n.droppable;return t?rM(t,e):e},uR=(n,e)=>{const t=po(e,n.scroll.initial),r=If(t);return{frame:gc({top:e.y,bottom:e.y+n.frame.height,left:e.x,right:e.x+n.frame.width}),scroll:{initial:n.scroll.initial,max:n.scroll.max,current:e,diff:{value:t,displacement:r}}}};function Zk(n,e){return n.map(t=>e[t])}function hae(n,e){for(let t=0;t<e.length;t++){const r=e[t].visible[n];if(r)return r}return null}var fae=({impact:n,viewport:e,destination:t,draggables:r,maxScrollChange:i})=>{const a=uR(e,Ia(e.scroll.current,i)),s=t.frame?bC(t,Ia(t.frame.scroll.current,i)):t,o=n.displaced,c=Wp({afterDragging:Zk(o.all,r),destination:t,displacedBy:n.displacedBy,viewport:a.frame,last:o,forceShouldAnimate:!1}),l=Wp({afterDragging:Zk(o.all,r),destination:s,displacedBy:n.displacedBy,viewport:e.frame,last:o,forceShouldAnimate:!1}),u={},A={},f=[o,c,l];return o.all.forEach(g=>{const y=hae(g,f);if(y){A[g]=y;return}u[g]=!0}),{...n,displaced:{all:o.all,invisible:u,visible:A}}},mae=(n,e)=>Ia(n.scroll.diff.displacement,e),CC=({pageBorderBoxCenter:n,draggable:e,viewport:t})=>{const r=mae(t,n),i=po(r,e.page.borderBox.center);return Ia(e.client.borderBox.center,i)},dR=({draggable:n,destination:e,newPageBorderBoxCenter:t,viewport:r,withDroppableDisplacement:i,onlyOnMainAxis:a=!1})=>{const s=po(t,n.page.borderBox.center),c={target:_g(n.page.borderBox,s),destination:e,withDroppableDisplacement:i,viewport:r};return a?eae(c):cR(c)},pae=({isMovingForward:n,draggable:e,destination:t,draggables:r,previousImpact:i,viewport:a,previousPageBorderBoxCenter:s,previousClientSelection:o,afterCritical:c})=>{if(!t.isEnabled)return null;const l=Lf(t.descriptor.id,r),u=Ff(e,t),A=Vie({isMovingForward:n,draggable:e,destination:t,insideDestination:l,previousImpact:i})||sae({isMovingForward:n,isInHomeList:u,draggable:e,draggables:r,destination:t,insideDestination:l,previousImpact:i,viewport:a,afterCritical:c});if(!A)return null;const f=rb({impact:A,draggable:e,droppable:t,draggables:r,afterCritical:c});if(dR({draggable:e,destination:t,newPageBorderBoxCenter:f,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:CC({pageBorderBoxCenter:f,draggable:e,viewport:a}),impact:A,scrollJumpRequest:null};const g=po(f,s),y=fae({impact:A,viewport:a,destination:t,draggables:r,maxScrollChange:g});return{clientSelection:o,impact:y,scrollJumpRequest:g}};const us=n=>{const e=n.subject.active;return e||Ft(),e};var gae=({isMovingForward:n,pageBorderBoxCenter:e,source:t,droppables:r,viewport:i})=>{const a=t.subject.active;if(!a)return null;const s=t.axis,o=zo(a[s.start],a[s.end]),c=eb(r).filter(u=>u!==t).filter(u=>u.isEnabled).filter(u=>!!u.subject.active).filter(u=>sR(i.frame)(us(u))).filter(u=>{const A=us(u);return n?a[s.crossAxisEnd]<A[s.crossAxisEnd]:A[s.crossAxisStart]<a[s.crossAxisStart]}).filter(u=>{const A=us(u),f=zo(A[s.start],A[s.end]);return o(A[s.start])||o(A[s.end])||f(a[s.start])||f(a[s.end])}).sort((u,A)=>{const f=us(u)[s.crossAxisStart],h=us(A)[s.crossAxisStart];return n?f-h:h-f}).filter((u,A,f)=>us(u)[s.crossAxisStart]===us(f[0])[s.crossAxisStart]);if(!c.length)return null;if(c.length===1)return c[0];const l=c.filter(u=>zo(us(u)[s.start],us(u)[s.end])(e[s.line]));return l.length===1?l[0]:l.length>1?l.sort((u,A)=>us(u)[s.start]-us(A)[s.start])[0]:c.sort((u,A)=>{const f=Kk(e,qk(us(u))),h=Kk(e,qk(us(A)));return f!==h?f-h:us(u)[s.start]-us(A)[s.start]})[0]};const eI=(n,e)=>{const t=n.page.borderBox.center;return Zu(n.descriptor.id,e)?po(t,e.displacedBy.point):t},vae=(n,e)=>{const t=n.page.borderBox;return Zu(n.descriptor.id,e)?_g(t,If(e.displacedBy.point)):t};var yae=({pageBorderBoxCenter:n,viewport:e,destination:t,insideDestination:r,afterCritical:i})=>r.filter(s=>cR({target:vae(s,i),destination:t,viewport:e.frame,withDroppableDisplacement:!0})).sort((s,o)=>{const c=Op(n,rM(t,eI(s,i))),l=Op(n,rM(t,eI(o,i)));return c<l?-1:l<c?1:s.descriptor.index-o.descriptor.index})[0]||null,xg=fa(function(e,t){const r=t[e.line];return{value:r,point:MA(e.line,r)}});const wae=(n,e,t)=>{const r=n.axis;if(n.descriptor.mode==="virtual")return MA(r.line,e[r.line]);const i=n.subject.page.contentBox[r.size],c=Lf(n.descriptor.id,t).reduce((l,u)=>l+u.client.marginBox[r.size],0)+e[r.line]-i;return c<=0?null:MA(r.line,c)},AR=(n,e)=>({...n,scroll:{...n.scroll,max:e}}),hR=(n,e,t)=>{const r=n.frame;Ff(e,n)&&Ft(),n.subject.withPlaceholder&&Ft();const i=xg(n.axis,e.displaceBy).point,a=wae(n,i,t),s={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:n.frame?n.frame.scroll.max:null};if(!r){const u=uf({page:n.subject.page,withPlaceholder:s,axis:n.axis,frame:n.frame});return{...n,subject:u}}const o=a?Ia(r.scroll.max,a):r.scroll.max,c=AR(r,o),l=uf({page:n.subject.page,withPlaceholder:s,axis:n.axis,frame:c});return{...n,subject:l,frame:c}},bae=n=>{const e=n.subject.withPlaceholder;e||Ft();const t=n.frame;if(!t){const s=uf({page:n.subject.page,axis:n.axis,frame:null,withPlaceholder:null});return{...n,subject:s}}const r=e.oldFrameMaxScroll;r||Ft();const i=AR(t,r),a=uf({page:n.subject.page,axis:n.axis,frame:i,withPlaceholder:null});return{...n,subject:a,frame:i}};var _ae=({previousPageBorderBoxCenter:n,moveRelativeTo:e,insideDestination:t,draggable:r,draggables:i,destination:a,viewport:s,afterCritical:o})=>{if(!e){if(t.length)return null;const A={displaced:Hp,displacedBy:aR,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},f=rb({impact:A,draggable:r,droppable:a,draggables:i,afterCritical:o}),h=Ff(r,a)?a:hR(a,r,i);return dR({draggable:r,destination:h,newPageBorderBoxCenter:f,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?A:null}const c=n[a.axis.line]<=e.page.borderBox.center[a.axis.line],l=(()=>{const A=e.descriptor.index;return e.descriptor.id===r.descriptor.id||c?A:A+1})(),u=xg(a.axis,r.displaceBy);return ky({draggable:r,insideDestination:t,destination:a,viewport:s,displacedBy:u,last:Hp,index:l})},xae=({isMovingForward:n,previousPageBorderBoxCenter:e,draggable:t,isOver:r,draggables:i,droppables:a,viewport:s,afterCritical:o})=>{const c=gae({isMovingForward:n,pageBorderBoxCenter:e,source:r,droppables:a,viewport:s});if(!c)return null;const l=Lf(c.descriptor.id,i),u=yae({pageBorderBoxCenter:e,viewport:s,destination:c,insideDestination:l,afterCritical:o}),A=_ae({previousPageBorderBoxCenter:e,destination:c,draggable:t,draggables:i,moveRelativeTo:u,insideDestination:l,viewport:s,afterCritical:o});if(!A)return null;const f=rb({impact:A,draggable:t,droppable:c,draggables:i,afterCritical:o});return{clientSelection:CC({pageBorderBoxCenter:f,draggable:t,viewport:s}),impact:A,scrollJumpRequest:null}},yo=n=>{const e=n.at;return e?e.type==="REORDER"?e.destination.droppableId:e.combine.droppableId:null};const Mae=(n,e)=>{const t=yo(n);return t?e[t]:null};var Sae=({state:n,type:e})=>{const t=Mae(n.impact,n.dimensions.droppables),r=!!t,i=n.dimensions.droppables[n.critical.droppable.id],a=t||i,s=a.axis.direction,o=s==="vertical"&&(e==="MOVE_UP"||e==="MOVE_DOWN")||s==="horizontal"&&(e==="MOVE_LEFT"||e==="MOVE_RIGHT");if(o&&!r)return null;const c=e==="MOVE_DOWN"||e==="MOVE_RIGHT",l=n.dimensions.draggables[n.critical.draggable.id],u=n.current.page.borderBoxCenter,{draggables:A,droppables:f}=n.dimensions;return o?pae({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:l,destination:a,draggables:A,viewport:n.viewport,previousClientSelection:n.current.client.selection,previousImpact:n.impact,afterCritical:n.afterCritical}):xae({isMovingForward:c,previousPageBorderBoxCenter:u,draggable:l,isOver:a,draggables:A,droppables:f,viewport:n.viewport,afterCritical:n.afterCritical})};function Wd(n){return n.phase==="DRAGGING"||n.phase==="COLLECTING"}function fR(n){const e=zo(n.top,n.bottom),t=zo(n.left,n.right);return function(i){return e(i.y)&&t(i.x)}}function Cae(n,e){return n.left<e.right&&n.right>e.left&&n.top<e.bottom&&n.bottom>e.top}function Pae({pageBorderBox:n,draggable:e,candidates:t}){const r=e.page.borderBox.center,i=t.map(a=>{const s=a.axis,o=MA(a.axis.line,n.center[s.line],a.page.borderBox.center[s.crossAxisLine]);return{id:a.descriptor.id,distance:Op(r,o)}}).sort((a,s)=>s.distance-a.distance);return i[0]?i[0].id:null}function Eae({pageBorderBox:n,draggable:e,droppables:t}){const r=eb(t).filter(i=>{if(!i.isEnabled)return!1;const a=i.subject.active;if(!a||!Cae(n,a))return!1;if(fR(a)(n.center))return!0;const s=i.axis,o=a.center[s.crossAxisLine],c=n[s.crossAxisStart],l=n[s.crossAxisEnd],u=zo(a[s.crossAxisStart],a[s.crossAxisEnd]),A=u(c),f=u(l);return!A&&!f?!0:A?c<o:l>o});return r.length?r.length===1?r[0].descriptor.id:Pae({pageBorderBox:n,draggable:e,candidates:r}):null}const mR=(n,e)=>gc(_g(n,e));var Bae=(n,e)=>{const t=n.frame;return t?mR(e,t.scroll.diff.value):e};function pR({displaced:n,id:e}){return!!(n.visible[e]||n.invisible[e])}function Tae({draggable:n,closest:e,inHomeList:t}){return e?t&&e.descriptor.index>n.descriptor.index?e.descriptor.index-1:e.descriptor.index:null}var kae=({pageBorderBoxWithDroppableScroll:n,draggable:e,destination:t,insideDestination:r,last:i,viewport:a,afterCritical:s})=>{const o=t.axis,c=xg(t.axis,e.displaceBy),l=c.value,u=n[o.start],A=n[o.end],h=nb(e,r).find(y=>{const w=y.descriptor.id,v=y.page.borderBox.center[o.line],S=Zu(w,s),C=pR({displaced:i,id:w});return S?C?A<=v:u<v-l:C?A<=v+l:u<v})||null,g=Tae({draggable:e,closest:h,inHomeList:Ff(e,t)});return ky({draggable:e,insideDestination:r,destination:t,viewport:a,last:i,displacedBy:c,index:g})};const Iae=4;var Lae=({draggable:n,pageBorderBoxWithDroppableScroll:e,previousImpact:t,destination:r,insideDestination:i,afterCritical:a})=>{if(!r.isCombineEnabled)return null;const s=r.axis,o=xg(r.axis,n.displaceBy),c=o.value,l=e[s.start],u=e[s.end],f=nb(n,i).find(g=>{const y=g.descriptor.id,w=g.page.borderBox,S=w[s.size]/Iae,C=Zu(y,a),M=pR({displaced:t.displaced,id:y});return C?M?u>w[s.start]+S&&u<w[s.end]-S:l>w[s.start]-c+S&&l<w[s.end]-c-S:M?u>w[s.start]+c+S&&u<w[s.end]+c-S:l>w[s.start]+S&&l<w[s.end]-S});return f?{displacedBy:o,displaced:t.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:r.descriptor.id}}}:null},gR=({pageOffset:n,draggable:e,draggables:t,droppables:r,previousImpact:i,viewport:a,afterCritical:s})=>{const o=mR(e.page.borderBox,n),c=Eae({pageBorderBox:o,draggable:e,droppables:r});if(!c)return Gie;const l=r[c],u=Lf(l.descriptor.id,t),A=Bae(l,o);return Lae({pageBorderBoxWithDroppableScroll:A,draggable:e,previousImpact:i,destination:l,insideDestination:u,afterCritical:s})||kae({pageBorderBoxWithDroppableScroll:A,draggable:e,destination:l,insideDestination:u,last:i.displaced,viewport:a,afterCritical:s})},PC=(n,e)=>({...n,[e.descriptor.id]:e});const Fae=({previousImpact:n,impact:e,droppables:t})=>{const r=yo(n),i=yo(e);if(!r||r===i)return t;const a=t[r];if(!a.subject.withPlaceholder)return t;const s=bae(a);return PC(t,s)};var Nae=({draggable:n,draggables:e,droppables:t,previousImpact:r,impact:i})=>{const a=Fae({previousImpact:r,impact:i,droppables:t}),s=yo(i);if(!s)return a;const o=t[s];if(Ff(n,o)||o.subject.withPlaceholder)return a;const c=hR(o,n,e);return PC(a,c)},ap=({state:n,clientSelection:e,dimensions:t,viewport:r,impact:i,scrollJumpRequest:a})=>{const s=r||n.viewport,o=t||n.dimensions,c=e||n.current.client.selection,l=po(c,n.initial.client.selection),u={offset:l,selection:c,borderBoxCenter:Ia(n.initial.client.borderBoxCenter,l)},A={selection:Ia(u.selection,s.scroll.current),borderBoxCenter:Ia(u.borderBoxCenter,s.scroll.current),offset:Ia(u.offset,s.scroll.diff.value)},f={client:u,page:A};if(n.phase==="COLLECTING")return{...n,dimensions:o,viewport:s,current:f};const h=o.draggables[n.critical.draggable.id],g=i||gR({pageOffset:A.offset,draggable:h,draggables:o.draggables,droppables:o.droppables,previousImpact:n.impact,viewport:s,afterCritical:n.afterCritical}),y=Nae({draggable:h,impact:g,previousImpact:n.impact,draggables:o.draggables,droppables:o.droppables});return{...n,current:f,dimensions:{draggables:o.draggables,droppables:y},impact:g,viewport:s,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function Dae(n,e){return n.map(t=>e[t])}var vR=({impact:n,viewport:e,draggables:t,destination:r,forceShouldAnimate:i})=>{const a=n.displaced,s=Dae(a.all,t),o=Wp({afterDragging:s,destination:r,displacedBy:n.displacedBy,viewport:e.frame,forceShouldAnimate:i,last:a});return{...n,displaced:o}},yR=({impact:n,draggable:e,droppable:t,draggables:r,viewport:i,afterCritical:a})=>{const s=rb({impact:n,draggable:e,draggables:r,droppable:t,afterCritical:a});return CC({pageBorderBoxCenter:s,draggable:e,viewport:i})},wR=({state:n,dimensions:e,viewport:t})=>{n.movementMode!=="SNAP"&&Ft();const r=n.impact,i=t||n.viewport,a=e||n.dimensions,{draggables:s,droppables:o}=a,c=s[n.critical.draggable.id],l=yo(r);l||Ft();const u=o[l],A=vR({impact:r,viewport:i,destination:u,draggables:s}),f=yR({impact:A,draggable:c,droppable:u,draggables:s,viewport:i,afterCritical:n.afterCritical});return ap({impact:A,clientSelection:f,state:n,dimensions:a,viewport:i})},Rae=n=>({index:n.index,droppableId:n.droppableId}),bR=({draggable:n,home:e,draggables:t,viewport:r})=>{const i=xg(e.axis,n.displaceBy),a=Lf(e.descriptor.id,t),s=a.indexOf(n);s===-1&&Ft();const o=a.slice(s+1),c=o.reduce((f,h)=>(f[h.descriptor.id]=!0,f),{}),l={inVirtualList:e.descriptor.mode==="virtual",displacedBy:i,effected:c};return{impact:{displaced:Wp({afterDragging:o,destination:e,displacedBy:i,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:Rae(n.descriptor)}},afterCritical:l}},Uae=(n,e)=>({draggables:n.draggables,droppables:PC(n.droppables,e)}),Oae=({draggable:n,offset:e,initialWindowScroll:t})=>{const r=Py(n.client,e),i=Ey(r,t);return{...n,placeholder:{...n.placeholder,client:r},client:r,page:i}},Hae=n=>{const e=n.frame;return e||Ft(),e},Wae=({additions:n,updatedDroppables:e,viewport:t})=>{const r=t.scroll.diff.value;return n.map(i=>{const a=i.descriptor.droppableId,s=e[a],c=Hae(s).scroll.diff.value,l=Ia(r,c);return Oae({draggable:i,offset:l,initialWindowScroll:t.scroll.initial})})},Qae=({state:n,published:e})=>{const t=e.modified.map(v=>{const S=n.dimensions.droppables[v.droppableId];return bC(S,v.scroll)}),r={...n.dimensions.droppables,...rR(t)},i=iR(Wae({additions:e.additions,updatedDroppables:r,viewport:n.viewport})),a={...n.dimensions.draggables,...i};e.removals.forEach(v=>{delete a[v]});const s={droppables:r,draggables:a},o=yo(n.impact),c=o?s.droppables[o]:null,l=s.draggables[n.critical.draggable.id],u=s.droppables[n.critical.droppable.id],{impact:A,afterCritical:f}=bR({draggable:l,home:u,draggables:a,viewport:n.viewport}),h=c&&c.isCombineEnabled?n.impact:A,g=gR({pageOffset:n.current.page.offset,draggable:s.draggables[n.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:h,viewport:n.viewport,afterCritical:f}),y={...n,phase:"DRAGGING",impact:g,onLiftImpact:A,dimensions:s,afterCritical:f,forceShouldAnimate:!1};return n.phase==="COLLECTING"?y:{...y,phase:"DROP_PENDING",reason:n.reason,isWaiting:!1}};const iM=n=>n.movementMode==="SNAP",R_=(n,e,t)=>{const r=Uae(n.dimensions,e);return!iM(n)||t?ap({state:n,dimensions:r}):wR({state:n,dimensions:r})};function U_(n){return n.isDragging&&n.movementMode==="SNAP"?{...n,scrollJumpRequest:null}:n}const tI={phase:"IDLE",completed:null,shouldFlush:!1};var $ae=(n=tI,e)=>{if(e.type==="FLUSH")return{...tI,shouldFlush:!0};if(e.type==="INITIAL_PUBLISH"){n.phase!=="IDLE"&&Ft();const{critical:t,clientSelection:r,viewport:i,dimensions:a,movementMode:s}=e.payload,o=a.draggables[t.draggable.id],c=a.droppables[t.droppable.id],l={selection:r,borderBoxCenter:o.client.borderBox.center,offset:va},u={client:l,page:{selection:Ia(l.selection,i.scroll.initial),borderBoxCenter:Ia(l.selection,i.scroll.initial),offset:Ia(l.selection,i.scroll.diff.value)}},A=eb(a.droppables).every(y=>!y.isFixedOnPage),{impact:f,afterCritical:h}=bR({draggable:o,home:c,draggables:a.draggables,viewport:i});return{phase:"DRAGGING",isDragging:!0,critical:t,movementMode:s,dimensions:a,initial:u,current:u,isWindowScrollAllowed:A,impact:f,afterCritical:h,onLiftImpact:f,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if(e.type==="COLLECTION_STARTING")return n.phase==="COLLECTING"||n.phase==="DROP_PENDING"?n:(n.phase!=="DRAGGING"&&Ft(),{...n,phase:"COLLECTING"});if(e.type==="PUBLISH_WHILE_DRAGGING")return n.phase==="COLLECTING"||n.phase==="DROP_PENDING"||Ft(),Qae({state:n,published:e.payload});if(e.type==="MOVE"){if(n.phase==="DROP_PENDING")return n;Wd(n)||Ft();const{client:t}=e.payload;return Gu(t,n.current.client.selection)?n:ap({state:n,clientSelection:t,impact:iM(n)?n.impact:null})}if(e.type==="UPDATE_DROPPABLE_SCROLL"){if(n.phase==="DROP_PENDING"||n.phase==="COLLECTING")return U_(n);Wd(n)||Ft();const{id:t,newScroll:r}=e.payload,i=n.dimensions.droppables[t];if(!i)return n;const a=bC(i,r);return R_(n,a,!1)}if(e.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(n.phase==="DROP_PENDING")return n;Wd(n)||Ft();const{id:t,isEnabled:r}=e.payload,i=n.dimensions.droppables[t];i||Ft(),i.isEnabled===r&&Ft();const a={...i,isEnabled:r};return R_(n,a,!0)}if(e.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(n.phase==="DROP_PENDING")return n;Wd(n)||Ft();const{id:t,isCombineEnabled:r}=e.payload,i=n.dimensions.droppables[t];i||Ft(),i.isCombineEnabled===r&&Ft();const a={...i,isCombineEnabled:r};return R_(n,a,!0)}if(e.type==="MOVE_BY_WINDOW_SCROLL"){if(n.phase==="DROP_PENDING"||n.phase==="DROP_ANIMATING")return n;Wd(n)||Ft(),n.isWindowScrollAllowed||Ft();const t=e.payload.newScroll;if(Gu(n.viewport.scroll.current,t))return U_(n);const r=uR(n.viewport,t);return iM(n)?wR({state:n,viewport:r}):ap({state:n,viewport:r})}if(e.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Wd(n))return n;const t=e.payload.maxScroll;if(Gu(t,n.viewport.scroll.max))return n;const r={...n.viewport,scroll:{...n.viewport.scroll,max:t}};return{...n,viewport:r}}if(e.type==="MOVE_UP"||e.type==="MOVE_DOWN"||e.type==="MOVE_LEFT"||e.type==="MOVE_RIGHT"){if(n.phase==="COLLECTING"||n.phase==="DROP_PENDING")return n;n.phase!=="DRAGGING"&&Ft();const t=Sae({state:n,type:e.type});return t?ap({state:n,impact:t.impact,clientSelection:t.clientSelection,scrollJumpRequest:t.scrollJumpRequest}):n}if(e.type==="DROP_PENDING"){const t=e.payload.reason;return n.phase!=="COLLECTING"&&Ft(),{...n,phase:"DROP_PENDING",isWaiting:!0,reason:t}}if(e.type==="DROP_ANIMATE"){const{completed:t,dropDuration:r,newHomeClientOffset:i}=e.payload;return n.phase==="DRAGGING"||n.phase==="DROP_PENDING"||Ft(),{phase:"DROP_ANIMATING",completed:t,dropDuration:r,newHomeClientOffset:i,dimensions:n.dimensions}}if(e.type==="DROP_COMPLETE"){const{completed:t}=e.payload;return{phase:"IDLE",completed:t,shouldFlush:!1}}return n};function gr(n,e){return n instanceof Object&&"type"in n&&n.type===e}const jae=n=>({type:"BEFORE_INITIAL_CAPTURE",payload:n}),zae=n=>({type:"LIFT",payload:n}),Vae=n=>({type:"INITIAL_PUBLISH",payload:n}),Gae=n=>({type:"PUBLISH_WHILE_DRAGGING",payload:n}),Kae=()=>({type:"COLLECTION_STARTING",payload:null}),qae=n=>({type:"UPDATE_DROPPABLE_SCROLL",payload:n}),Xae=n=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:n}),Yae=n=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:n}),_R=n=>({type:"MOVE",payload:n}),Jae=n=>({type:"MOVE_BY_WINDOW_SCROLL",payload:n}),Zae=n=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:n}),ese=()=>({type:"MOVE_UP",payload:null}),tse=()=>({type:"MOVE_DOWN",payload:null}),nse=()=>({type:"MOVE_RIGHT",payload:null}),rse=()=>({type:"MOVE_LEFT",payload:null}),EC=()=>({type:"FLUSH",payload:null}),ise=n=>({type:"DROP_ANIMATE",payload:n}),BC=n=>({type:"DROP_COMPLETE",payload:n}),xR=n=>({type:"DROP",payload:n}),ase=n=>({type:"DROP_PENDING",payload:n}),MR=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var sse=n=>({getState:e,dispatch:t})=>r=>i=>{if(!gr(i,"LIFT")){r(i);return}const{id:a,clientSelection:s,movementMode:o}=i.payload,c=e();c.phase==="DROP_ANIMATING"&&t(BC({completed:c.completed})),e().phase!=="IDLE"&&Ft(),t(EC()),t(jae({draggableId:a,movementMode:o}));const u={draggableId:a,scrollOptions:{shouldPublishImmediately:o==="SNAP"}},{critical:A,dimensions:f,viewport:h}=n.startPublishing(u);t(Vae({critical:A,dimensions:f,clientSelection:s,movementMode:o,viewport:h}))},ose=n=>()=>e=>t=>{gr(t,"INITIAL_PUBLISH")&&n.dragging(),gr(t,"DROP_ANIMATE")&&n.dropping(t.payload.completed.result.reason),(gr(t,"FLUSH")||gr(t,"DROP_COMPLETE"))&&n.resting(),e(t)};const TC={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Qp={opacity:{drop:0,combining:.7},scale:{drop:.75}},SR={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},xd=`${SR.outOfTheWay}s ${TC.outOfTheWay}`,sp={fluid:`opacity ${xd}`,snap:`transform ${xd}, opacity ${xd}`,drop:n=>{const e=`${n}s ${TC.drop}`;return`transform ${e}, opacity ${e}`},outOfTheWay:`transform ${xd}`,placeholder:`height ${xd}, width ${xd}, margin ${xd}`},nI=n=>Gu(n,va)?void 0:`translate(${n.x}px, ${n.y}px)`,aM={moveTo:nI,drop:(n,e)=>{const t=nI(n);if(t)return e?`${t} scale(${Qp.scale.drop})`:t}},{minDropTime:sM,maxDropTime:CR}=SR,cse=CR-sM,rI=1500,lse=.6;var use=({current:n,destination:e,reason:t})=>{const r=Op(n,e);if(r<=0)return sM;if(r>=rI)return CR;const i=r/rI,a=sM+cse*i,s=t==="CANCEL"?a*lse:a;return Number(s.toFixed(2))},dse=({impact:n,draggable:e,dimensions:t,viewport:r,afterCritical:i})=>{const{draggables:a,droppables:s}=t,o=yo(n),c=o?s[o]:null,l=s[e.descriptor.droppableId],u=yR({impact:n,draggable:e,draggables:a,afterCritical:i,droppable:c||l,viewport:r});return po(u,e.client.borderBox.center)},Ase=({draggables:n,reason:e,lastImpact:t,home:r,viewport:i,onLiftImpact:a})=>!t.at||e!=="DROP"?{impact:vR({draggables:n,impact:a,destination:r,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:t.at.type==="REORDER"?{impact:t,didDropInsideDroppable:!0}:{impact:{...t,displaced:Hp},didDropInsideDroppable:!0};const hse=({getState:n,dispatch:e})=>t=>r=>{if(!gr(r,"DROP")){t(r);return}const i=n(),a=r.payload.reason;if(i.phase==="COLLECTING"){e(ase({reason:a}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&Ft(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||Ft();const o=i.critical,c=i.dimensions,l=c.draggables[i.critical.draggable.id],{impact:u,didDropInsideDroppable:A}=Ase({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),f=A?_C(u):null,h=A?tb(u):null,g={index:o.draggable.index,droppableId:o.droppable.id},y={draggableId:l.descriptor.id,type:l.descriptor.type,source:g,reason:a,mode:i.movementMode,destination:f,combine:h},w=dse({impact:u,draggable:l,dimensions:c,viewport:i.viewport,afterCritical:i.afterCritical}),v={critical:i.critical,afterCritical:i.afterCritical,result:y,impact:u};if(!(!Gu(i.current.client.offset,w)||!!y.combine)){e(BC({completed:v}));return}const C=use({current:i.current.client.offset,destination:w,reason:a});e(ise({newHomeClientOffset:w,dropDuration:C,completed:v}))};var PR=()=>({x:window.pageXOffset,y:window.pageYOffset});function fse(n){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:e=>{e.target!==window&&e.target!==window.document||n()}}}function mse({onWindowScroll:n}){function e(){n(PR())}const t=Up(e),r=fse(t);let i=Vu;function a(){return i!==Vu}function s(){a()&&Ft(),i=Ho(window,[r])}function o(){a()||Ft(),t.cancel(),i(),i=Vu}return{start:s,stop:o,isActive:a}}const pse=n=>gr(n,"DROP_COMPLETE")||gr(n,"DROP_ANIMATE")||gr(n,"FLUSH"),gse=n=>{const e=mse({onWindowScroll:t=>{n.dispatch(Jae({newScroll:t}))}});return t=>r=>{!e.isActive()&&gr(r,"INITIAL_PUBLISH")&&e.start(),e.isActive()&&pse(r)&&e.stop(),t(r)}};var vse=n=>{let e=!1,t=!1;const r=setTimeout(()=>{t=!0}),i=a=>{e||t||(e=!0,n(a),clearTimeout(r))};return i.wasCalled=()=>e,i},yse=()=>{const n=[],e=i=>{const a=n.findIndex(o=>o.timerId===i);a===-1&&Ft();const[s]=n.splice(a,1);s.callback()};return{add:i=>{const a=setTimeout(()=>e(a)),s={timerId:a,callback:i};n.push(s)},flush:()=>{if(!n.length)return;const i=[...n];n.length=0,i.forEach(a=>{clearTimeout(a.timerId),a.callback()})}}};const wse=(n,e)=>n==null&&e==null?!0:n==null||e==null?!1:n.droppableId===e.droppableId&&n.index===e.index,bse=(n,e)=>n==null&&e==null?!0:n==null||e==null?!1:n.draggableId===e.draggableId&&n.droppableId===e.droppableId,_se=(n,e)=>{if(n===e)return!0;const t=n.draggable.id===e.draggable.id&&n.draggable.droppableId===e.draggable.droppableId&&n.draggable.type===e.draggable.type&&n.draggable.index===e.draggable.index,r=n.droppable.id===e.droppable.id&&n.droppable.type===e.droppable.type;return t&&r},om=(n,e)=>{e()},f1=(n,e)=>({draggableId:n.draggable.id,type:n.droppable.type,source:{droppableId:n.droppable.id,index:n.draggable.index},mode:e});function O_(n,e,t,r){if(!n){t(r(e));return}const i=vse(t);n(e,{announce:i}),i.wasCalled()||t(r(e))}var xse=(n,e)=>{const t=yse();let r=null;const i=(A,f)=>{r&&Ft(),om("onBeforeCapture",()=>{const h=n().onBeforeCapture;h&&h({draggableId:A,mode:f})})},a=(A,f)=>{r&&Ft(),om("onBeforeDragStart",()=>{const h=n().onBeforeDragStart;h&&h(f1(A,f))})},s=(A,f)=>{r&&Ft();const h=f1(A,f);r={mode:f,lastCritical:A,lastLocation:h.source,lastCombine:null},t.add(()=>{om("onDragStart",()=>O_(n().onDragStart,h,e,$v.onDragStart))})},o=(A,f)=>{const h=_C(f),g=tb(f);r||Ft();const y=!_se(A,r.lastCritical);y&&(r.lastCritical=A);const w=!wse(r.lastLocation,h);w&&(r.lastLocation=h);const v=!bse(r.lastCombine,g);if(v&&(r.lastCombine=g),!y&&!w&&!v)return;const S={...f1(A,r.mode),combine:g,destination:h};t.add(()=>{om("onDragUpdate",()=>O_(n().onDragUpdate,S,e,$v.onDragUpdate))})},c=()=>{r||Ft(),t.flush()},l=A=>{r||Ft(),r=null,om("onDragEnd",()=>O_(n().onDragEnd,A,e,$v.onDragEnd))};return{beforeCapture:i,beforeStart:a,start:s,update:o,flush:c,drop:l,abort:()=>{if(!r)return;const A={...f1(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};l(A)}}},Mse=(n,e)=>{const t=xse(n,e);return r=>i=>a=>{if(gr(a,"BEFORE_INITIAL_CAPTURE")){t.beforeCapture(a.payload.draggableId,a.payload.movementMode);return}if(gr(a,"INITIAL_PUBLISH")){const o=a.payload.critical;t.beforeStart(o,a.payload.movementMode),i(a),t.start(o,a.payload.movementMode);return}if(gr(a,"DROP_COMPLETE")){const o=a.payload.completed.result;t.flush(),i(a),t.drop(o);return}if(i(a),gr(a,"FLUSH")){t.abort();return}const s=r.getState();s.phase==="DRAGGING"&&t.update(s.critical,s.impact)}};const Sse=n=>e=>t=>{if(!gr(t,"DROP_ANIMATION_FINISHED")){e(t);return}const r=n.getState();r.phase!=="DROP_ANIMATING"&&Ft(),n.dispatch(BC({completed:r.completed}))},Cse=n=>{let e=null,t=null;function r(){t&&(cancelAnimationFrame(t),t=null),e&&(e(),e=null)}return i=>a=>{if((gr(a,"FLUSH")||gr(a,"DROP_COMPLETE")||gr(a,"DROP_ANIMATION_FINISHED"))&&r(),i(a),!gr(a,"DROP_ANIMATE"))return;const s={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){n.getState().phase==="DROP_ANIMATING"&&n.dispatch(MR())}};t=requestAnimationFrame(()=>{t=null,e=Ho(window,[s])})}};var Pse=n=>()=>e=>t=>{(gr(t,"DROP_COMPLETE")||gr(t,"FLUSH")||gr(t,"DROP_ANIMATE"))&&n.stopPublishing(),e(t)},Ese=n=>{let e=!1;return()=>t=>r=>{if(gr(r,"INITIAL_PUBLISH")){e=!0,n.tryRecordFocus(r.payload.critical.draggable.id),t(r),n.tryRestoreFocusRecorded();return}if(t(r),!!e){if(gr(r,"FLUSH")){e=!1,n.tryRestoreFocusRecorded();return}if(gr(r,"DROP_COMPLETE")){e=!1;const i=r.payload.completed.result;i.combine&&n.tryShiftRecord(i.draggableId,i.combine.draggableId),n.tryRestoreFocusRecorded()}}}};const Bse=n=>gr(n,"DROP_COMPLETE")||gr(n,"DROP_ANIMATE")||gr(n,"FLUSH");var Tse=n=>e=>t=>r=>{if(Bse(r)){n.stop(),t(r);return}if(gr(r,"INITIAL_PUBLISH")){t(r);const i=e.getState();i.phase!=="DRAGGING"&&Ft(),n.start(i);return}t(r),n.scroll(e.getState())};const kse=n=>e=>t=>{if(e(t),!gr(t,"PUBLISH_WHILE_DRAGGING"))return;const r=n.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||n.dispatch(xR({reason:r.reason})))},Ise=$D;var Lse=({dimensionMarshal:n,focusMarshal:e,styleMarshal:t,getResponders:r,announce:i,autoScroller:a})=>QD($ae,Ise(kre(ose(t),Pse(n),sse(n),hse,Sse,Cse,kse,Tse(a),gse,Ese(e),Mse(r,i))));const H_=()=>({additions:{},removals:{},modified:{}});function Fse({registry:n,callbacks:e}){let t=H_(),r=null;const i=()=>{r||(e.collectionStarting(),r=requestAnimationFrame(()=>{r=null;const{additions:c,removals:l,modified:u}=t,A=Object.keys(c).map(g=>n.draggable.getById(g).getDimension(va)).sort((g,y)=>g.descriptor.index-y.descriptor.index),f=Object.keys(u).map(g=>{const w=n.droppable.getById(g).callbacks.getScrollWhileDragging();return{droppableId:g,scroll:w}}),h={additions:A,removals:Object.keys(l),modified:f};t=H_(),e.publish(h)}))};return{add:c=>{const l=c.descriptor.id;t.additions[l]=c,t.modified[c.descriptor.droppableId]=!0,t.removals[l]&&delete t.removals[l],i()},remove:c=>{const l=c.descriptor;t.removals[l.id]=!0,t.modified[l.droppableId]=!0,t.additions[l.id]&&delete t.additions[l.id],i()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,t=H_())}}}var ER=({scrollHeight:n,scrollWidth:e,height:t,width:r})=>{const i=po({x:e,y:n},{x:r,y:t});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},BR=()=>{const n=document.documentElement;return n||Ft(),n},TR=()=>{const n=BR();return ER({scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,width:n.clientWidth,height:n.clientHeight})},Nse=()=>{const n=PR(),e=TR(),t=n.y,r=n.x,i=BR(),a=i.clientWidth,s=i.clientHeight,o=r+a,c=t+s;return{frame:gc({top:t,left:r,right:o,bottom:c}),scroll:{initial:n,current:n,max:e,diff:{value:va,displacement:va}}}},Dse=({critical:n,scrollOptions:e,registry:t})=>{const r=Nse(),i=r.scroll.current,a=n.droppable,s=t.droppable.getAllByType(a.type).map(u=>u.callbacks.getDimensionAndWatchScroll(i,e)),o=t.draggable.getAllByType(n.draggable.type).map(u=>u.getDimension(i));return{dimensions:{draggables:iR(o),droppables:rR(s)},critical:n,viewport:r}};function iI(n,e,t){return!(t.descriptor.id===e.id||t.descriptor.type!==e.type||n.droppable.getById(t.descriptor.droppableId).descriptor.mode!=="virtual")}var Rse=(n,e)=>{let t=null;const r=Fse({callbacks:{publish:e.publishWhileDragging,collectionStarting:e.collectionStarting},registry:n}),i=(f,h)=>{n.droppable.exists(f)||Ft(),t&&e.updateDroppableIsEnabled({id:f,isEnabled:h})},a=(f,h)=>{t&&(n.droppable.exists(f)||Ft(),e.updateDroppableIsCombineEnabled({id:f,isCombineEnabled:h}))},s=(f,h)=>{t&&(n.droppable.exists(f)||Ft(),e.updateDroppableScroll({id:f,newScroll:h}))},o=(f,h)=>{t&&n.droppable.getById(f).callbacks.scroll(h)},c=()=>{if(!t)return;r.stop();const f=t.critical.droppable;n.droppable.getAllByType(f.type).forEach(h=>h.callbacks.dragStopped()),t.unsubscribe(),t=null},l=f=>{t||Ft();const h=t.critical.draggable;f.type==="ADDITION"&&iI(n,h,f.value)&&r.add(f.value),f.type==="REMOVAL"&&iI(n,h,f.value)&&r.remove(f.value)};return{updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:a,scrollDroppable:o,updateDroppableScroll:s,startPublishing:f=>{t&&Ft();const h=n.draggable.getById(f.draggableId),g=n.droppable.getById(h.descriptor.droppableId),y={draggable:h.descriptor,droppable:g.descriptor},w=n.subscribe(l);return t={critical:y,unsubscribe:w},Dse({critical:y,registry:n,scrollOptions:f.scrollOptions})},stopPublishing:c}},kR=(n,e)=>n.phase==="IDLE"?!0:n.phase!=="DROP_ANIMATING"||n.completed.result.draggableId===e?!1:n.completed.result.reason==="DROP",Use=n=>{window.scrollBy(n.x,n.y)};const Ose=fa(n=>eb(n).filter(e=>!(!e.isEnabled||!e.frame))),Hse=(n,e)=>Ose(e).find(r=>(r.frame||Ft(),fR(r.frame.pageMarginBox)(n)))||null;var Wse=({center:n,destination:e,droppables:t})=>{if(e){const i=t[e];return i.frame?i:null}return Hse(n,t)};const $p={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:n=>n**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Qse=(n,e,t=()=>$p)=>{const r=t(),i=n[e.size]*r.startFromPercentage,a=n[e.size]*r.maxScrollAtPercentage;return{startScrollingFrom:i,maxScrollValueAt:a}},IR=({startOfRange:n,endOfRange:e,current:t})=>{const r=e-n;return r===0?0:(t-n)/r},kC=1,$se=(n,e,t=()=>$p)=>{const r=t();if(n>e.startScrollingFrom)return 0;if(n<=e.maxScrollValueAt)return r.maxPixelScroll;if(n===e.startScrollingFrom)return kC;const a=1-IR({startOfRange:e.maxScrollValueAt,endOfRange:e.startScrollingFrom,current:n}),s=r.maxPixelScroll*r.ease(a);return Math.ceil(s)},jse=(n,e,t)=>{const r=t(),i=r.durationDampening.accelerateAt,a=r.durationDampening.stopDampeningAt,s=e,o=a,l=Date.now()-s;if(l>=a)return n;if(l<i)return kC;const u=IR({startOfRange:i,endOfRange:o,current:l}),A=n*r.ease(u);return Math.ceil(A)},aI=({distanceToEdge:n,thresholds:e,dragStartTime:t,shouldUseTimeDampening:r,getAutoScrollerOptions:i})=>{const a=$se(n,e,i);return a===0?0:r?Math.max(jse(a,t,i),kC):a},sI=({container:n,distanceToEdges:e,dragStartTime:t,axis:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const s=Qse(n,r,a);return e[r.end]<e[r.start]?aI({distanceToEdge:e[r.end],thresholds:s,dragStartTime:t,shouldUseTimeDampening:i,getAutoScrollerOptions:a}):-1*aI({distanceToEdge:e[r.start],thresholds:s,dragStartTime:t,shouldUseTimeDampening:i,getAutoScrollerOptions:a})},zse=({container:n,subject:e,proposedScroll:t})=>{const r=e.height>n.height,i=e.width>n.width;return!i&&!r?t:i&&r?null:{x:i?0:t.x,y:r?0:t.y}};const Vse=nR(n=>n===0?0:n);var LR=({dragStartTime:n,container:e,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const s={top:r.y-e.top,right:e.right-r.x,bottom:e.bottom-r.y,left:r.x-e.left},o=sI({container:e,distanceToEdges:s,dragStartTime:n,axis:xC,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),c=sI({container:e,distanceToEdges:s,dragStartTime:n,axis:oR,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),l=Vse({x:c,y:o});if(Gu(l,va))return null;const u=zse({container:e,subject:t,proposedScroll:l});return u?Gu(u,va)?null:u:null};const Gse=nR(n=>n===0?0:n>0?1:-1),IC=(()=>{const n=(e,t)=>e<0?e:e>t?e-t:0;return({current:e,max:t,change:r})=>{const i=Ia(e,r),a={x:n(i.x,t.x),y:n(i.y,t.y)};return Gu(a,va)?null:a}})(),FR=({max:n,current:e,change:t})=>{const r={x:Math.max(e.x,n.x),y:Math.max(e.y,n.y)},i=Gse(t),a=IC({max:r,current:e,change:i});return!a||i.x!==0&&a.x===0||i.y!==0&&a.y===0},LC=(n,e)=>FR({current:n.scroll.current,max:n.scroll.max,change:e}),Kse=(n,e)=>{if(!LC(n,e))return null;const t=n.scroll.max,r=n.scroll.current;return IC({current:r,max:t,change:e})},FC=(n,e)=>{const t=n.frame;return t?FR({current:t.scroll.current,max:t.scroll.max,change:e}):!1},qse=(n,e)=>{const t=n.frame;return!t||!FC(n,e)?null:IC({current:t.scroll.current,max:t.scroll.max,change:e})};var Xse=({viewport:n,subject:e,center:t,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const s=LR({dragStartTime:r,container:n.frame,subject:e,center:t,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return s&&LC(n,s)?s:null},Yse=({droppable:n,subject:e,center:t,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const s=n.frame;if(!s)return null;const o=LR({dragStartTime:r,container:s.pageMarginBox,subject:e,center:t,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return o&&FC(n,o)?o:null},oI=({state:n,dragStartTime:e,shouldUseTimeDampening:t,scrollWindow:r,scrollDroppable:i,getAutoScrollerOptions:a})=>{const s=n.current.page.borderBoxCenter,c=n.dimensions.draggables[n.critical.draggable.id].page.marginBox;if(n.isWindowScrollAllowed){const A=n.viewport,f=Xse({dragStartTime:e,viewport:A,subject:c,center:s,shouldUseTimeDampening:t,getAutoScrollerOptions:a});if(f){r(f);return}}const l=Wse({center:s,destination:yo(n.impact),droppables:n.dimensions.droppables});if(!l)return;const u=Yse({dragStartTime:e,droppable:l,subject:c,center:s,shouldUseTimeDampening:t,getAutoScrollerOptions:a});u&&i(l.descriptor.id,u)},Jse=({scrollWindow:n,scrollDroppable:e,getAutoScrollerOptions:t=()=>$p})=>{const r=Up(n),i=Up(e);let a=null;const s=l=>{a||Ft();const{shouldUseTimeDampening:u,dragStartTime:A}=a;oI({state:l,scrollWindow:r,scrollDroppable:i,dragStartTime:A,shouldUseTimeDampening:u,getAutoScrollerOptions:t})};return{start:l=>{a&&Ft();const u=Date.now();let A=!1;const f=()=>{A=!0};oI({state:l,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:f,scrollDroppable:f,getAutoScrollerOptions:t}),a={dragStartTime:u,shouldUseTimeDampening:A},A&&s(l)},stop:()=>{a&&(r.cancel(),i.cancel(),a=null)},scroll:s}},Zse=({move:n,scrollDroppable:e,scrollWindow:t})=>{const r=(o,c)=>{const l=Ia(o.current.client.selection,c);n({client:l})},i=(o,c)=>{if(!FC(o,c))return c;const l=qse(o,c);if(!l)return e(o.descriptor.id,c),null;const u=po(c,l);return e(o.descriptor.id,u),po(c,u)},a=(o,c,l)=>{if(!o||!LC(c,l))return l;const u=Kse(c,l);if(!u)return t(l),null;const A=po(l,u);return t(A),po(l,A)};return o=>{const c=o.scrollJumpRequest;if(!c)return;const l=yo(o.impact);l||Ft();const u=i(o.dimensions.droppables[l],c);if(!u)return;const A=o.viewport,f=a(o.isWindowScrollAllowed,A,u);f&&r(o,f)}},eoe=({scrollDroppable:n,scrollWindow:e,move:t,getAutoScrollerOptions:r})=>{const i=Jse({scrollWindow:e,scrollDroppable:n,getAutoScrollerOptions:r}),a=Zse({move:t,scrollWindow:e,scrollDroppable:n});return{scroll:c=>{if(!(r().disabled||c.phase!=="DRAGGING")){if(c.movementMode==="FLUID"){i.scroll(c);return}c.scrollJumpRequest&&a(c)}},start:i.start,stop:i.stop}};const df="data-rfd",Af=(()=>{const n=`${df}-drag-handle`;return{base:n,draggableId:`${n}-draggable-id`,contextId:`${n}-context-id`}})(),oM=(()=>{const n=`${df}-draggable`;return{base:n,contextId:`${n}-context-id`,id:`${n}-id`}})(),toe=(()=>{const n=`${df}-droppable`;return{base:n,contextId:`${n}-context-id`,id:`${n}-id`}})(),cI={contextId:`${df}-scroll-container-context-id`},noe=n=>e=>`[${e}="${n}"]`,cm=(n,e)=>n.map(t=>{const r=t.styles[e];return r?`${t.selector} { ${r} }`:""}).join(" "),roe="pointer-events: none;";var ioe=n=>{const e=noe(n),t=(()=>{const o=`
      cursor: -webkit-grab;
      cursor: grab;
    `;return{selector:e(Af.contextId),styles:{always:`
          -webkit-touch-callout: none;
          -webkit-tap-highlight-color: rgba(0,0,0,0);
          touch-action: manipulation;
        `,resting:o,dragging:roe,dropAnimating:o}}})(),r=(()=>{const o=`
      transition: ${sp.outOfTheWay};
    `;return{selector:e(oM.contextId),styles:{dragging:o,dropAnimating:o,userCancel:o}}})(),i={selector:e(toe.contextId),styles:{always:"overflow-anchor: none;"}},s=[r,t,i,{selector:"body",styles:{dragging:`
        cursor: grabbing;
        cursor: -webkit-grabbing;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        overflow-anchor: none;
      `}}];return{always:cm(s,"always"),resting:cm(s,"resting"),dragging:cm(s,"dragging"),dropAnimating:cm(s,"dropAnimating"),userCancel:cm(s,"userCancel")}};const wo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?te.useLayoutEffect:te.useEffect,W_=()=>{const n=document.querySelector("head");return n||Ft(),n},lI=n=>{const e=document.createElement("style");return n&&e.setAttribute("nonce",n),e.type="text/css",e};function aoe(n,e){const t=ir(()=>ioe(n),[n]),r=te.useRef(null),i=te.useRef(null),a=dn(fa(A=>{const f=i.current;f||Ft(),f.textContent=A}),[]),s=dn(A=>{const f=r.current;f||Ft(),f.textContent=A},[]);wo(()=>{!r.current&&!i.current||Ft();const A=lI(e),f=lI(e);return r.current=A,i.current=f,A.setAttribute(`${df}-always`,n),f.setAttribute(`${df}-dynamic`,n),W_().appendChild(A),W_().appendChild(f),s(t.always),a(t.resting),()=>{const h=g=>{const y=g.current;y||Ft(),W_().removeChild(y),g.current=null};h(r),h(i)}},[e,s,a,t.always,t.resting,n]);const o=dn(()=>a(t.dragging),[a,t.dragging]),c=dn(A=>{if(A==="DROP"){a(t.dropAnimating);return}a(t.userCancel)},[a,t.dropAnimating,t.userCancel]),l=dn(()=>{i.current&&a(t.resting)},[a,t.resting]);return ir(()=>({dragging:o,dropping:c,resting:l}),[o,c,l])}function NR(n,e){return Array.from(n.querySelectorAll(e))}var DR=n=>n&&n.ownerDocument&&n.ownerDocument.defaultView?n.ownerDocument.defaultView:window;function ib(n){return n instanceof DR(n).HTMLElement}function soe(n,e){const t=`[${Af.contextId}="${n}"]`,r=NR(document,t);if(!r.length)return null;const i=r.find(a=>a.getAttribute(Af.draggableId)===e);return!i||!ib(i)?null:i}function ooe(n){const e=te.useRef({}),t=te.useRef(null),r=te.useRef(null),i=te.useRef(!1),a=dn(function(f,h){const g={id:f,focus:h};return e.current[f]=g,function(){const w=e.current;w[f]!==g&&delete w[f]}},[]),s=dn(function(f){const h=soe(n,f);h&&h!==document.activeElement&&h.focus()},[n]),o=dn(function(f,h){t.current===f&&(t.current=h)},[]),c=dn(function(){r.current||i.current&&(r.current=requestAnimationFrame(()=>{r.current=null;const f=t.current;f&&s(f)}))},[s]),l=dn(function(f){t.current=null;const h=document.activeElement;h&&h.getAttribute(Af.draggableId)===f&&(t.current=f)},[]);return wo(()=>(i.current=!0,function(){i.current=!1;const f=r.current;f&&cancelAnimationFrame(f)}),[]),ir(()=>({register:a,tryRecordFocus:l,tryRestoreFocusRecorded:c,tryShiftRecord:o}),[a,l,c,o])}function coe(){const n={draggables:{},droppables:{}},e=[];function t(A){return e.push(A),function(){const h=e.indexOf(A);h!==-1&&e.splice(h,1)}}function r(A){e.length&&e.forEach(f=>f(A))}function i(A){return n.draggables[A]||null}function a(A){const f=i(A);return f||Ft(),f}const s={register:A=>{n.draggables[A.descriptor.id]=A,r({type:"ADDITION",value:A})},update:(A,f)=>{const h=n.draggables[f.descriptor.id];h&&h.uniqueId===A.uniqueId&&(delete n.draggables[f.descriptor.id],n.draggables[A.descriptor.id]=A)},unregister:A=>{const f=A.descriptor.id,h=i(f);h&&A.uniqueId===h.uniqueId&&(delete n.draggables[f],n.droppables[A.descriptor.droppableId]&&r({type:"REMOVAL",value:A}))},getById:a,findById:i,exists:A=>!!i(A),getAllByType:A=>Object.values(n.draggables).filter(f=>f.descriptor.type===A)};function o(A){return n.droppables[A]||null}function c(A){const f=o(A);return f||Ft(),f}const l={register:A=>{n.droppables[A.descriptor.id]=A},unregister:A=>{const f=o(A.descriptor.id);f&&A.uniqueId===f.uniqueId&&delete n.droppables[A.descriptor.id]},getById:c,findById:o,exists:A=>!!o(A),getAllByType:A=>Object.values(n.droppables).filter(f=>f.descriptor.type===A)};function u(){n.draggables={},n.droppables={},e.length=0}return{draggable:s,droppable:l,subscribe:t,clean:u}}function loe(){const n=ir(coe,[]);return te.useEffect(()=>function(){n.clean()},[n]),n}var NC=Ge.createContext(null),Iy=()=>{const n=document.body;return n||Ft(),n};const uoe={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},doe=n=>`rfd-announcement-${n}`;function Aoe(n){const e=ir(()=>doe(n),[n]),t=te.useRef(null);return te.useEffect(function(){const a=document.createElement("div");return t.current=a,a.id=e,a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),uy(a.style,uoe),Iy().appendChild(a),function(){setTimeout(function(){const c=Iy();c.contains(a)&&c.removeChild(a),a===t.current&&(t.current=null)})}},[e]),dn(i=>{const a=t.current;if(a){a.textContent=i;return}},[])}const hoe={separator:"::"};function DC(n,e=hoe){const t=Ge.useId();return ir(()=>`${n}${e.separator}${t}`,[e.separator,n,t])}function foe({contextId:n,uniqueId:e}){return`rfd-hidden-text-${n}-${e}`}function moe({contextId:n,text:e}){const t=DC("hidden-text",{separator:"-"}),r=ir(()=>foe({contextId:n,uniqueId:t}),[t,n]);return te.useEffect(function(){const a=document.createElement("div");return a.id=r,a.textContent=e,a.style.display="none",Iy().appendChild(a),function(){const o=Iy();o.contains(a)&&o.removeChild(a)}},[r,e]),r}var ab=Ge.createContext(null);function RR(n){const e=te.useRef(n);return te.useEffect(()=>{e.current=n}),e}function poe(){let n=null;function e(){return!!n}function t(s){return s===n}function r(s){n&&Ft();const o={abandon:s};return n=o,o}function i(){n||Ft(),n=null}function a(){n&&(n.abandon(),i())}return{isClaimed:e,isActive:t,claim:r,release:i,tryAbandon:a}}function jp(n){return n.phase==="IDLE"||n.phase==="DROP_ANIMATING"?!1:n.isDragging}const goe=9,voe=13,RC=27,UR=32,yoe=33,woe=34,boe=35,_oe=36,xoe=37,Moe=38,Soe=39,Coe=40,Poe={[voe]:!0,[goe]:!0};var OR=n=>{Poe[n.keyCode]&&n.preventDefault()};const sb=(()=>{const n="visibilitychange";return typeof document>"u"?n:[n,`ms${n}`,`webkit${n}`,`moz${n}`,`o${n}`].find(r=>`on${r}`in document)||n})(),HR=0,uI=5;function Eoe(n,e){return Math.abs(e.x-n.x)>=uI||Math.abs(e.y-n.y)>=uI}const dI={type:"IDLE"};function Boe({cancel:n,completed:e,getPhase:t,setPhase:r}){return[{eventName:"mousemove",fn:i=>{const{button:a,clientX:s,clientY:o}=i;if(a!==HR)return;const c={x:s,y:o},l=t();if(l.type==="DRAGGING"){i.preventDefault(),l.actions.move(c);return}l.type!=="PENDING"&&Ft();const u=l.point;if(!Eoe(u,c))return;i.preventDefault();const A=l.actions.fluidLift(c);r({type:"DRAGGING",actions:A})}},{eventName:"mouseup",fn:i=>{const a=t();if(a.type!=="DRAGGING"){n();return}i.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),e()}},{eventName:"mousedown",fn:i=>{t().type==="DRAGGING"&&i.preventDefault(),n()}},{eventName:"keydown",fn:i=>{if(t().type==="PENDING"){n();return}if(i.keyCode===RC){i.preventDefault(),n();return}OR(i)}},{eventName:"resize",fn:n},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{t().type==="PENDING"&&n()}},{eventName:"webkitmouseforcedown",fn:i=>{const a=t();if(a.type==="IDLE"&&Ft(),a.actions.shouldRespectForcePress()){n();return}i.preventDefault()}},{eventName:sb,fn:n}]}function WR(n){const e=te.useRef(dI),t=te.useRef(Vu),r=ir(()=>({eventName:"mousedown",fn:function(A){if(A.defaultPrevented||A.button!==HR||A.ctrlKey||A.metaKey||A.shiftKey||A.altKey)return;const f=n.findClosestDraggableId(A);if(!f)return;const h=n.tryGetLock(f,s,{sourceEvent:A});if(!h)return;A.preventDefault();const g={x:A.clientX,y:A.clientY};t.current(),l(h,g)}}),[n]),i=ir(()=>({eventName:"webkitmouseforcewillbegin",fn:u=>{if(u.defaultPrevented)return;const A=n.findClosestDraggableId(u);if(!A)return;const f=n.findOptionsForDraggable(A);f&&(f.shouldRespectForcePress||n.canGetLock(A)&&u.preventDefault())}}),[n]),a=dn(function(){const A={passive:!1,capture:!0};t.current=Ho(window,[i,r],A)},[i,r]),s=dn(()=>{e.current.type!=="IDLE"&&(e.current=dI,t.current(),a())},[a]),o=dn(()=>{const u=e.current;s(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[s]),c=dn(function(){const A={capture:!0,passive:!1},f=Boe({cancel:o,completed:s,getPhase:()=>e.current,setPhase:h=>{e.current=h}});t.current=Ho(window,f,A)},[o,s]),l=dn(function(A,f){e.current.type!=="IDLE"&&Ft(),e.current={type:"PENDING",point:f,actions:A},c()},[c]);wo(function(){return a(),function(){t.current()}},[a])}function Toe(){}const koe={[woe]:!0,[yoe]:!0,[_oe]:!0,[boe]:!0};function Ioe(n,e){function t(){e(),n.cancel()}function r(){e(),n.drop()}return[{eventName:"keydown",fn:i=>{if(i.keyCode===RC){i.preventDefault(),t();return}if(i.keyCode===UR){i.preventDefault(),r();return}if(i.keyCode===Coe){i.preventDefault(),n.moveDown();return}if(i.keyCode===Moe){i.preventDefault(),n.moveUp();return}if(i.keyCode===Soe){i.preventDefault(),n.moveRight();return}if(i.keyCode===xoe){i.preventDefault(),n.moveLeft();return}if(koe[i.keyCode]){i.preventDefault();return}OR(i)}},{eventName:"mousedown",fn:t},{eventName:"mouseup",fn:t},{eventName:"click",fn:t},{eventName:"touchstart",fn:t},{eventName:"resize",fn:t},{eventName:"wheel",fn:t,options:{passive:!0}},{eventName:sb,fn:t}]}function QR(n){const e=te.useRef(Toe),t=ir(()=>({eventName:"keydown",fn:function(a){if(a.defaultPrevented||a.keyCode!==UR)return;const s=n.findClosestDraggableId(a);if(!s)return;const o=n.tryGetLock(s,u,{sourceEvent:a});if(!o)return;a.preventDefault();let c=!0;const l=o.snapLift();e.current();function u(){c||Ft(),c=!1,e.current(),r()}e.current=Ho(window,Ioe(l,u),{capture:!0,passive:!1})}}),[n]),r=dn(function(){const a={passive:!1,capture:!0};e.current=Ho(window,[t],a)},[t]);wo(function(){return r(),function(){e.current()}},[r])}const Q_={type:"IDLE"},Loe=120,Foe=.15;function Noe({cancel:n,getPhase:e}){return[{eventName:"orientationchange",fn:n},{eventName:"resize",fn:n},{eventName:"contextmenu",fn:t=>{t.preventDefault()}},{eventName:"keydown",fn:t=>{if(e().type!=="DRAGGING"){n();return}t.keyCode===RC&&t.preventDefault(),n()}},{eventName:sb,fn:n}]}function Doe({cancel:n,completed:e,getPhase:t}){return[{eventName:"touchmove",options:{capture:!1},fn:r=>{const i=t();if(i.type!=="DRAGGING"){n();return}i.hasMoved=!0;const{clientX:a,clientY:s}=r.touches[0],o={x:a,y:s};r.preventDefault(),i.actions.move(o)}},{eventName:"touchend",fn:r=>{const i=t();if(i.type!=="DRAGGING"){n();return}r.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),e()}},{eventName:"touchcancel",fn:r=>{if(t().type!=="DRAGGING"){n();return}r.preventDefault(),n()}},{eventName:"touchforcechange",fn:r=>{const i=t();i.type==="IDLE"&&Ft();const a=r.touches[0];if(!a||!(a.force>=Foe))return;const o=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){o&&n();return}if(o){if(i.hasMoved){r.preventDefault();return}n();return}r.preventDefault()}},{eventName:sb,fn:n}]}function $R(n){const e=te.useRef(Q_),t=te.useRef(Vu),r=dn(function(){return e.current},[]),i=dn(function(h){e.current=h},[]),a=ir(()=>({eventName:"touchstart",fn:function(h){if(h.defaultPrevented)return;const g=n.findClosestDraggableId(h);if(!g)return;const y=n.tryGetLock(g,o,{sourceEvent:h});if(!y)return;const w=h.touches[0],{clientX:v,clientY:S}=w,C={x:v,y:S};t.current(),A(y,C)}}),[n]),s=dn(function(){const h={capture:!0,passive:!1};t.current=Ho(window,[a],h)},[a]),o=dn(()=>{const f=e.current;f.type!=="IDLE"&&(f.type==="PENDING"&&clearTimeout(f.longPressTimerId),i(Q_),t.current(),s())},[s,i]),c=dn(()=>{const f=e.current;o(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[o]),l=dn(function(){const h={capture:!0,passive:!1},g={cancel:c,completed:o,getPhase:r},y=Ho(window,Doe(g),h),w=Ho(window,Noe(g),h);t.current=function(){y(),w()}},[c,r,o]),u=dn(function(){const h=r();h.type!=="PENDING"&&Ft();const g=h.actions.fluidLift(h.point);i({type:"DRAGGING",actions:g,hasMoved:!1})},[r,i]),A=dn(function(h,g){r().type!=="IDLE"&&Ft();const y=setTimeout(u,Loe);i({type:"PENDING",point:g,actions:h,longPressTimerId:y}),l()},[l,r,i,u]);wo(function(){return s(),function(){t.current();const g=r();g.type==="PENDING"&&(clearTimeout(g.longPressTimerId),i(Q_))}},[r,s,i]),wo(function(){return Ho(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const Roe=["input","button","textarea","select","option","optgroup","video","audio"];function jR(n,e){if(e==null)return!1;if(Roe.includes(e.tagName.toLowerCase()))return!0;const r=e.getAttribute("contenteditable");return r==="true"||r===""?!0:e===n?!1:jR(n,e.parentElement)}function Uoe(n,e){const t=e.target;return ib(t)?jR(n,t):!1}var Ooe=n=>gc(n.getBoundingClientRect()).center;function Hoe(n){return n instanceof DR(n).Element}const Woe=(()=>{const n="matches";return typeof document>"u"?n:[n,"msMatchesSelector","webkitMatchesSelector"].find(r=>r in Element.prototype)||n})();function zR(n,e){return n==null?null:n[Woe](e)?n:zR(n.parentElement,e)}function Qoe(n,e){return n.closest?n.closest(e):zR(n,e)}function $oe(n){return`[${Af.contextId}="${n}"]`}function joe(n,e){const t=e.target;if(!Hoe(t))return null;const r=$oe(n),i=Qoe(t,r);return!i||!ib(i)?null:i}function zoe(n,e){const t=joe(n,e);return t?t.getAttribute(Af.draggableId):null}function Voe(n,e){const t=`[${oM.contextId}="${n}"]`,i=NR(document,t).find(a=>a.getAttribute(oM.id)===e);return!i||!ib(i)?null:i}function Goe(n){n.preventDefault()}function m1({expected:n,phase:e,isLockActive:t,shouldWarn:r}){return!(!t()||n!==e)}function VR({lockAPI:n,store:e,registry:t,draggableId:r}){if(n.isClaimed())return!1;const i=t.draggable.findById(r);return!(!i||!i.options.isEnabled||!kR(e.getState(),r))}function Koe({lockAPI:n,contextId:e,store:t,registry:r,draggableId:i,forceSensorStop:a,sourceEvent:s}){if(!VR({lockAPI:n,store:t,registry:r,draggableId:i}))return null;const c=r.draggable.getById(i),l=Voe(e,c.descriptor.id);if(!l||s&&!c.options.canDragInteractiveElements&&Uoe(l,s))return null;const u=n.claim(a||Vu);let A="PRE_DRAG";function f(){return c.options.shouldRespectForcePress}function h(){return n.isActive(u)}function g(F,D){m1({expected:F,phase:A,isLockActive:h,shouldWarn:!0})&&t.dispatch(D())}const y=g.bind(null,"DRAGGING");function w(F){function D(){n.release(),A="COMPLETED"}A!=="PRE_DRAG"&&(D(),Ft()),t.dispatch(zae(F.liftActionArgs)),A="DRAGGING";function U(O,T={shouldBlockNextClick:!1}){if(F.cleanup(),T.shouldBlockNextClick){const P=Ho(window,[{eventName:"click",fn:Goe,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(P)}D(),t.dispatch(xR({reason:O}))}return{isActive:()=>m1({expected:"DRAGGING",phase:A,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:f,drop:O=>U("DROP",O),cancel:O=>U("CANCEL",O),...F.actions}}function v(F){const D=Up(O=>{y(()=>_R({client:O}))});return{...w({liftActionArgs:{id:i,clientSelection:F,movementMode:"FLUID"},cleanup:()=>D.cancel(),actions:{move:D}}),move:D}}function S(){const F={moveUp:()=>y(ese),moveRight:()=>y(nse),moveDown:()=>y(tse),moveLeft:()=>y(rse)};return w({liftActionArgs:{id:i,clientSelection:Ooe(l),movementMode:"SNAP"},cleanup:Vu,actions:F})}function C(){m1({expected:"PRE_DRAG",phase:A,isLockActive:h,shouldWarn:!0})&&n.release()}return{isActive:()=>m1({expected:"PRE_DRAG",phase:A,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:f,fluidLift:v,snapLift:S,abort:C}}const qoe=[WR,QR,$R];function Xoe({contextId:n,store:e,registry:t,customSensors:r,enableDefaultSensors:i}){const a=[...i?qoe:[],...r||[]],s=te.useState(()=>poe())[0],o=dn(function(w,v){jp(w)&&!jp(v)&&s.tryAbandon()},[s]);wo(function(){let w=e.getState();return e.subscribe(()=>{const S=e.getState();o(w,S),w=S})},[s,e,o]),wo(()=>s.tryAbandon,[s.tryAbandon]);const c=dn(y=>VR({lockAPI:s,registry:t,store:e,draggableId:y}),[s,t,e]),l=dn((y,w,v)=>Koe({lockAPI:s,registry:t,contextId:n,store:e,draggableId:y,forceSensorStop:w||null,sourceEvent:v&&v.sourceEvent?v.sourceEvent:null}),[n,s,t,e]),u=dn(y=>zoe(n,y),[n]),A=dn(y=>{const w=t.draggable.findById(y);return w?w.options:null},[t.draggable]),f=dn(function(){s.isClaimed()&&(s.tryAbandon(),e.getState().phase!=="IDLE"&&e.dispatch(EC()))},[s,e]),h=dn(()=>s.isClaimed(),[s]),g=ir(()=>({canGetLock:c,tryGetLock:l,findClosestDraggableId:u,findOptionsForDraggable:A,tryReleaseLock:f,isLockClaimed:h}),[c,l,u,A,f,h]);for(let y=0;y<a.length;y++)a[y](g)}const Yoe=n=>({onBeforeCapture:e=>{const t=()=>{n.onBeforeCapture&&n.onBeforeCapture(e)};og.flushSync(t)},onBeforeDragStart:n.onBeforeDragStart,onDragStart:n.onDragStart,onDragEnd:n.onDragEnd,onDragUpdate:n.onDragUpdate}),Joe=n=>({...$p,...n.autoScrollerOptions,durationDampening:{...$p.durationDampening,...n.autoScrollerOptions}});function lm(n){return n.current||Ft(),n.current}function Zoe(n){const{contextId:e,setCallbacks:t,sensors:r,nonce:i,dragHandleUsageInstructions:a}=n,s=te.useRef(null),o=RR(n),c=dn(()=>Yoe(o.current),[o]),l=dn(()=>Joe(o.current),[o]),u=Aoe(e),A=moe({contextId:e,text:a}),f=aoe(e,i),h=dn(P=>{lm(s).dispatch(P)},[]),g=ir(()=>Dk({publishWhileDragging:Gae,updateDroppableScroll:qae,updateDroppableIsEnabled:Xae,updateDroppableIsCombineEnabled:Yae,collectionStarting:Kae},h),[h]),y=loe(),w=ir(()=>Rse(y,g),[y,g]),v=ir(()=>eoe({scrollWindow:Use,scrollDroppable:w.scrollDroppable,getAutoScrollerOptions:l,...Dk({move:_R},h)}),[w.scrollDroppable,h,l]),S=ooe(e),C=ir(()=>Lse({announce:u,autoScroller:v,dimensionMarshal:w,focusMarshal:S,getResponders:c,styleMarshal:f}),[u,v,w,S,c,f]);s.current=C;const M=dn(()=>{const P=lm(s);P.getState().phase!=="IDLE"&&P.dispatch(EC())},[]),F=dn(()=>{const P=lm(s).getState();return P.phase==="DROP_ANIMATING"?!0:P.phase==="IDLE"?!1:P.isDragging},[]),D=ir(()=>({isDragging:F,tryAbort:M}),[F,M]);t(D);const U=dn(P=>kR(lm(s).getState(),P),[]),O=dn(()=>Wd(lm(s).getState()),[]),T=ir(()=>({marshal:w,focus:S,contextId:e,canLift:U,isMovementAllowed:O,dragHandleUsageInstructionsId:A,registry:y}),[e,w,A,S,U,O,y]);return Xoe({contextId:e,store:C,registry:y,customSensors:r||null,enableDefaultSensors:n.enableDefaultSensors!==!1}),te.useEffect(()=>M,[M]),Ge.createElement(ab.Provider,{value:T},Ge.createElement(Cie,{context:NC,store:C},n.children))}function ece(){return Ge.useId()}function tce(n){const e=ece(),t=n.dragHandleUsageInstructions||$v.dragHandleUsageInstructions;return Ge.createElement(Nie,null,r=>Ge.createElement(Zoe,{nonce:n.nonce,contextId:e,setCallbacks:r,dragHandleUsageInstructions:t,enableDefaultSensors:n.enableDefaultSensors,sensors:n.sensors,onBeforeCapture:n.onBeforeCapture,onBeforeDragStart:n.onBeforeDragStart,onDragStart:n.onDragStart,onDragUpdate:n.onDragUpdate,onDragEnd:n.onDragEnd,autoScrollerOptions:n.autoScrollerOptions},n.children))}const AI={dragging:5e3,dropAnimating:4500},nce=(n,e)=>e?sp.drop(e.duration):n?sp.snap:sp.fluid,rce=(n,e)=>{if(n)return e?Qp.opacity.drop:Qp.opacity.combining},ice=n=>n.forceShouldAnimate!=null?n.forceShouldAnimate:n.mode==="SNAP";function ace(n){const t=n.dimension.client,{offset:r,combineWith:i,dropping:a}=n,s=!!i,o=ice(n),c=!!a,l=c?aM.drop(r,s):aM.moveTo(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:nce(o,a),transform:l,opacity:rce(s,c),zIndex:c?AI.dropAnimating:AI.dragging,pointerEvents:"none"}}function sce(n){return{transform:aM.moveTo(n.offset),transition:n.shouldAnimateDisplacement?void 0:"none"}}function oce(n){return n.type==="DRAGGING"?ace(n):sce(n)}function cce(n,e,t=va){const r=window.getComputedStyle(e),i=e.getBoundingClientRect(),a=YD(i,r),s=Ey(a,t),o={client:a,tagName:e.tagName.toLowerCase(),display:r.display},c={x:a.marginBox.width,y:a.marginBox.height};return{descriptor:n,placeholder:o,displaceBy:c,client:a,page:s}}function lce(n){const e=DC("draggable"),{descriptor:t,registry:r,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:o}=n,c=ir(()=>({canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:o}),[a,o,s]),l=dn(h=>{const g=i();return g||Ft(),cce(t,g,h)},[t,i]),u=ir(()=>({uniqueId:e,descriptor:t,options:c,getDimension:l}),[t,l,c,e]),A=te.useRef(u),f=te.useRef(!0);wo(()=>(r.draggable.register(A.current),()=>r.draggable.unregister(A.current)),[r.draggable]),wo(()=>{if(f.current){f.current=!1;return}const h=A.current;A.current=u,r.draggable.update(u,h)},[u,r.draggable])}var UC=Ge.createContext(null);function Ly(n){const e=te.useContext(n);return e||Ft(),e}function uce(n){n.preventDefault()}const dce=n=>{const e=te.useRef(null),t=dn((D=null)=>{e.current=D},[]),r=dn(()=>e.current,[]),{contextId:i,dragHandleUsageInstructionsId:a,registry:s}=Ly(ab),{type:o,droppableId:c}=Ly(UC),l=ir(()=>({id:n.draggableId,index:n.index,type:o,droppableId:c}),[n.draggableId,n.index,o,c]),{children:u,draggableId:A,isEnabled:f,shouldRespectForcePress:h,canDragInteractiveElements:g,isClone:y,mapped:w,dropAnimationFinished:v}=n;if(!y){const D=ir(()=>({descriptor:l,registry:s,getDraggableRef:r,canDragInteractiveElements:g,shouldRespectForcePress:h,isEnabled:f}),[l,s,r,g,h,f]);lce(D)}const S=ir(()=>f?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":A,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:uce}:null,[i,a,A,f]),C=dn(D=>{w.type==="DRAGGING"&&w.dropping&&D.propertyName==="transform"&&og.flushSync(v)},[v,w]),M=ir(()=>{const D=oce(w),U=w.type==="DRAGGING"&&w.dropping?C:void 0;return{innerRef:t,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":A,style:D,onTransitionEnd:U},dragHandleProps:S}},[i,S,A,w,C,t]),F=ir(()=>({draggableId:l.id,type:l.type,source:{index:l.index,droppableId:l.droppableId}}),[l.droppableId,l.id,l.index,l.type]);return Ge.createElement(Ge.Fragment,null,u(M,w.snapshot,F))};var GR=(n,e)=>n===e,KR=n=>{const{combine:e,destination:t}=n;return t?t.droppableId:e?e.droppableId:null};const Ace=n=>n.combine?n.combine.draggableId:null,hce=n=>n.at&&n.at.type==="COMBINE"?n.at.combine.draggableId:null;function fce(){const n=fa((i,a)=>({x:i,y:a})),e=fa((i,a,s=null,o=null,c=null)=>({isDragging:!0,isClone:a,isDropAnimating:!!c,dropAnimation:c,mode:i,draggingOver:s,combineWith:o,combineTargetFor:null})),t=fa((i,a,s,o,c=null,l=null,u=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:c,combineWith:l,mode:a,offset:i,dimension:s,forceShouldAnimate:u,snapshot:e(a,o,c,l,null)}}));return(i,a)=>{if(jp(i)){if(i.critical.draggable.id!==a.draggableId)return null;const s=i.current.client.offset,o=i.dimensions.draggables[a.draggableId],c=yo(i.impact),l=hce(i.impact),u=i.forceShouldAnimate;return t(n(s.x,s.y),i.movementMode,o,a.isClone,c,l,u)}if(i.phase==="DROP_ANIMATING"){const s=i.completed;if(s.result.draggableId!==a.draggableId)return null;const o=a.isClone,c=i.dimensions.draggables[a.draggableId],l=s.result,u=l.mode,A=KR(l),f=Ace(l),g={duration:i.dropDuration,curve:TC.drop,moveTo:i.newHomeClientOffset,opacity:f?Qp.opacity.drop:null,scale:f?Qp.scale.drop:null};return{mapped:{type:"DRAGGING",offset:i.newHomeClientOffset,dimension:c,dropping:g,draggingOver:A,combineWith:f,mode:u,forceShouldAnimate:null,snapshot:e(u,o,A,f,g)}}}return null}}function qR(n=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:n,combineWith:null}}const mce={mapped:{type:"SECONDARY",offset:va,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:qR(null)}};function pce(){const n=fa((s,o)=>({x:s,y:o})),e=fa(qR),t=fa((s,o=null,c)=>({mapped:{type:"SECONDARY",offset:s,combineTargetFor:o,shouldAnimateDisplacement:c,snapshot:e(o)}})),r=s=>s?t(va,s,!0):null,i=(s,o,c,l)=>{const u=c.displaced.visible[s],A=!!(l.inVirtualList&&l.effected[s]),f=tb(c),h=f&&f.draggableId===s?o:null;if(!u){if(!A)return r(h);if(c.displaced.invisible[s])return null;const w=If(l.displacedBy.point),v=n(w.x,w.y);return t(v,h,!0)}if(A)return r(h);const g=c.displacedBy.point,y=n(g.x,g.y);return t(y,h,u.shouldAnimate)};return(s,o)=>{if(jp(s))return s.critical.draggable.id===o.draggableId?null:i(o.draggableId,s.critical.draggable.id,s.impact,s.afterCritical);if(s.phase==="DROP_ANIMATING"){const c=s.completed;return c.result.draggableId===o.draggableId?null:i(o.draggableId,c.result.draggableId,c.impact,c.afterCritical)}return null}}const gce=()=>{const n=fce(),e=pce();return(r,i)=>n(r,i)||e(r,i)||mce},vce={dropAnimationFinished:MR},yce=qD(gce,vce,null,{context:NC,areStatePropsEqual:GR})(dce);function XR(n){return Ly(UC).isUsingCloneFor===n.draggableId&&!n.isClone?null:Ge.createElement(yce,n)}function wce(n){const e=typeof n.isDragDisabled=="boolean"?!n.isDragDisabled:!0,t=!!n.disableInteractiveElementBlocking,r=!!n.shouldRespectForcePress;return Ge.createElement(XR,uy({},n,{isClone:!1,isEnabled:e,canDragInteractiveElements:t,shouldRespectForcePress:r}))}const YR=n=>e=>n===e,bce=YR("scroll"),_ce=YR("auto"),hI=(n,e)=>e(n.overflowX)||e(n.overflowY),xce=n=>{const e=window.getComputedStyle(n),t={overflowX:e.overflowX,overflowY:e.overflowY};return hI(t,bce)||hI(t,_ce)},Mce=()=>!1,JR=n=>n==null?null:n===document.body?Mce()?n:null:n===document.documentElement?null:xce(n)?n:JR(n.parentElement);var cM=n=>({x:n.scrollLeft,y:n.scrollTop});const ZR=n=>n?window.getComputedStyle(n).position==="fixed"?!0:ZR(n.parentElement):!1;var Sce=n=>{const e=JR(n),t=ZR(n);return{closestScrollable:e,isFixedOnPage:t}},Cce=({descriptor:n,isEnabled:e,isCombineEnabled:t,isFixedOnPage:r,direction:i,client:a,page:s,closest:o})=>{const c=(()=>{if(!o)return null;const{scrollSize:f,client:h}=o,g=ER({scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:o.page.marginBox,frameClient:h,scrollSize:f,shouldClipSubject:o.shouldClipSubject,scroll:{initial:o.scroll,current:o.scroll,max:g,diff:{value:va,displacement:va}}}})(),l=i==="vertical"?xC:oR,u=uf({page:s,withPlaceholder:null,axis:l,frame:c});return{descriptor:n,isCombineEnabled:t,isFixedOnPage:r,axis:l,isEnabled:e,client:a,page:s,frame:c,subject:u}};const Pce=(n,e)=>{const t=JD(n);if(!e||n!==e)return t;const r=t.paddingBox.top-e.scrollTop,i=t.paddingBox.left-e.scrollLeft,a=r+e.scrollHeight,s=i+e.scrollWidth,c=yC({top:r,right:s,bottom:a,left:i},t.border);return wC({borderBox:c,margin:t.margin,border:t.border,padding:t.padding})};var Ece=({ref:n,descriptor:e,env:t,windowScroll:r,direction:i,isDropDisabled:a,isCombineEnabled:s,shouldClipSubject:o})=>{const c=t.closestScrollable,l=Pce(n,c),u=Ey(l,r),A=(()=>{if(!c)return null;const h=JD(c),g={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:h,page:Ey(h,r),scroll:cM(c),scrollSize:g,shouldClipSubject:o}})();return Cce({descriptor:e,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:t.isFixedOnPage,direction:i,client:l,page:u,closest:A})};const Bce={passive:!1},Tce={passive:!0};var fI=n=>n.shouldPublishImmediately?Bce:Tce;const p1=n=>n&&n.env.closestScrollable||null;function kce(n){const e=te.useRef(null),t=Ly(ab),r=DC("droppable"),{registry:i,marshal:a}=t,s=RR(n),o=ir(()=>({id:n.droppableId,type:n.type,mode:n.mode}),[n.droppableId,n.mode,n.type]),c=te.useRef(o),l=ir(()=>fa((M,F)=>{e.current||Ft();const D={x:M,y:F};a.updateDroppableScroll(o.id,D)}),[o.id,a]),u=dn(()=>{const M=e.current;return!M||!M.env.closestScrollable?va:cM(M.env.closestScrollable)},[]),A=dn(()=>{const M=u();l(M.x,M.y)},[u,l]),f=ir(()=>Up(A),[A]),h=dn(()=>{const M=e.current,F=p1(M);if(M&&F||Ft(),M.scrollOptions.shouldPublishImmediately){A();return}f()},[f,A]),g=dn((M,F)=>{e.current&&Ft();const D=s.current,U=D.getDroppableRef();U||Ft();const O=Sce(U),T={ref:U,descriptor:o,env:O,scrollOptions:F};e.current=T;const P=Ece({ref:U,descriptor:o,env:O,windowScroll:M,direction:D.direction,isDropDisabled:D.isDropDisabled,isCombineEnabled:D.isCombineEnabled,shouldClipSubject:!D.ignoreContainerClipping}),k=O.closestScrollable;return k&&(k.setAttribute(cI.contextId,t.contextId),k.addEventListener("scroll",h,fI(T.scrollOptions))),P},[t.contextId,o,h,s]),y=dn(()=>{const M=e.current,F=p1(M);return M&&F||Ft(),cM(F)},[]),w=dn(()=>{const M=e.current;M||Ft();const F=p1(M);e.current=null,F&&(f.cancel(),F.removeAttribute(cI.contextId),F.removeEventListener("scroll",h,fI(M.scrollOptions)))},[h,f]),v=dn(M=>{const F=e.current;F||Ft();const D=p1(F);D||Ft(),D.scrollTop+=M.y,D.scrollLeft+=M.x},[]),S=ir(()=>({getDimensionAndWatchScroll:g,getScrollWhileDragging:y,dragStopped:w,scroll:v}),[w,g,y,v]),C=ir(()=>({uniqueId:r,descriptor:o,callbacks:S}),[S,o,r]);wo(()=>(c.current=C.descriptor,i.droppable.register(C),()=>{e.current&&w(),i.droppable.unregister(C)}),[S,o,w,C,a,i.droppable]),wo(()=>{e.current&&a.updateDroppableIsEnabled(c.current.id,!n.isDropDisabled)},[n.isDropDisabled,a]),wo(()=>{e.current&&a.updateDroppableIsCombineEnabled(c.current.id,n.isCombineEnabled)},[n.isCombineEnabled,a])}function $_(){}const mI={width:0,height:0,margin:Wie},Ice=({isAnimatingOpenOnMount:n,placeholder:e,animate:t})=>n||t==="close"?mI:{height:e.client.borderBox.height,width:e.client.borderBox.width,margin:e.client.margin},Lce=({isAnimatingOpenOnMount:n,placeholder:e,animate:t})=>{const r=Ice({isAnimatingOpenOnMount:n,placeholder:e,animate:t});return{display:e.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:t!=="none"?sp.placeholder:null}},Fce=n=>{const e=te.useRef(null),t=dn(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),{animate:r,onTransitionEnd:i,onClose:a,contextId:s}=n,[o,c]=te.useState(n.animate==="open");te.useEffect(()=>o?r!=="open"?(t(),c(!1),$_):e.current?$_:(e.current=setTimeout(()=>{e.current=null,c(!1)}),t):$_,[r,o,t]);const l=dn(A=>{A.propertyName==="height"&&(i(),r==="close"&&a())},[r,a,i]),u=Lce({isAnimatingOpenOnMount:o,animate:n.animate,placeholder:n.placeholder});return Ge.createElement(n.placeholder.tagName,{style:u,"data-rfd-placeholder-context-id":s,onTransitionEnd:l,ref:n.innerRef})};var Nce=Ge.memo(Fce);class Dce extends Ge.PureComponent{constructor(...e){super(...e),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!e.on,data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}}const Rce=n=>{const e=te.useContext(ab);e||Ft();const{contextId:t,isMovementAllowed:r}=e,i=te.useRef(null),a=te.useRef(null),{children:s,droppableId:o,type:c,mode:l,direction:u,ignoreContainerClipping:A,isDropDisabled:f,isCombineEnabled:h,snapshot:g,useClone:y,updateViewportMaxScroll:w,getContainerForClone:v}=n,S=dn(()=>i.current,[]),C=dn((k=null)=>{i.current=k},[]);dn(()=>a.current,[]);const M=dn((k=null)=>{a.current=k},[]),F=dn(()=>{r()&&w({maxScroll:TR()})},[r,w]);kce({droppableId:o,type:c,mode:l,direction:u,isDropDisabled:f,isCombineEnabled:h,ignoreContainerClipping:A,getDroppableRef:S});const D=ir(()=>Ge.createElement(Dce,{on:n.placeholder,shouldAnimate:n.shouldAnimatePlaceholder},({onClose:k,data:H,animate:j})=>Ge.createElement(Nce,{placeholder:H,onClose:k,innerRef:M,animate:j,contextId:t,onTransitionEnd:F})),[t,F,n.placeholder,n.shouldAnimatePlaceholder,M]),U=ir(()=>({innerRef:C,placeholder:D,droppableProps:{"data-rfd-droppable-id":o,"data-rfd-droppable-context-id":t}}),[t,o,D,C]),O=y?y.dragging.draggableId:null,T=ir(()=>({droppableId:o,type:c,isUsingCloneFor:O}),[o,O,c]);function P(){if(!y)return null;const{dragging:k,render:H}=y,j=Ge.createElement(XR,{draggableId:k.draggableId,index:k.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},($,ce)=>H($,ce,k));return UF.createPortal(j,v())}return Ge.createElement(UC.Provider,{value:T},s(U,g),P())};function Uce(){return document.body||Ft(),document.body}const pI={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Uce},eU=n=>{let e={...n},t;for(t in pI)n[t]===void 0&&(e={...e,[t]:pI[t]});return e},j_=(n,e)=>n===e.droppable.type,gI=(n,e)=>e.draggables[n.draggable.id],Oce=()=>{const n={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},e={...n,shouldAnimatePlaceholder:!1},t=fa(a=>({draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}})),r=fa((a,s,o,c,l,u)=>{const A=l.descriptor.id;if(l.descriptor.droppableId===a){const g=u?{render:u,dragging:t(l.descriptor)}:null,y={isDraggingOver:o,draggingOverWith:o?A:null,draggingFromThisWith:A,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:y,useClone:g}}if(!s)return e;if(!c)return n;const h={isDraggingOver:o,draggingOverWith:A,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}});return(a,s)=>{const o=eU(s),c=o.droppableId,l=o.type,u=!o.isDropDisabled,A=o.renderClone;if(jp(a)){const f=a.critical;if(!j_(l,f))return e;const h=gI(f,a.dimensions),g=yo(a.impact)===c;return r(c,u,g,g,h,A)}if(a.phase==="DROP_ANIMATING"){const f=a.completed;if(!j_(l,f.critical))return e;const h=gI(f.critical,a.dimensions);return r(c,u,KR(f.result)===c,yo(f.impact)===c,h,A)}if(a.phase==="IDLE"&&a.completed&&!a.shouldFlush){const f=a.completed;if(!j_(l,f.critical))return e;const h=yo(f.impact)===c,g=!!(f.impact.at&&f.impact.at.type==="COMBINE"),y=f.critical.droppable.id===c;return h?g?n:e:y?n:e}return e}},Hce={updateViewportMaxScroll:Zae},Wce=qD(Oce,Hce,(n,e,t)=>({...eU(t),...n,...e}),{context:NC,areStatePropsEqual:GR})(Rce);var Qce=Wce;const $ce=Object.freeze(Object.defineProperty({__proto__:null,DragDropContext:tce,Draggable:wce,Droppable:Qce,useKeyboardSensor:QR,useMouseSensor:WR,useTouchSensor:$R},Symbol.toStringTag,{value:"Module"})),jce=r8,tU=te.forwardRef(({className:n,...e},t)=>R.jsx(i8,{ref:t,className:On("border-b",n),...e}));tU.displayName="AccordionItem";const nU=te.forwardRef(({className:n,children:e,...t},r)=>R.jsx(a8,{className:"flex",children:R.jsxs(HN,{ref:r,className:On("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",n),...t,children:[e,R.jsx(OF,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));nU.displayName=HN.displayName;const rU=te.forwardRef(({className:n,children:e,...t},r)=>R.jsx(ON,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...t,children:R.jsx("div",{className:On("pb-4 pt-0",n),children:e})}));rU.displayName=ON.displayName;const zce=Object.freeze(Object.defineProperty({__proto__:null,Accordion:jce,AccordionContent:rU,AccordionItem:tU,AccordionTrigger:nU},Symbol.toStringTag,{value:"Module"}));var Vce="AspectRatio",iU=te.forwardRef((n,e)=>{const{ratio:t=1/1,style:r,...i}=n;return R.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/t}%`},"data-radix-aspect-ratio-wrapper":"",children:R.jsx(s8.div,{...i,ref:e,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})})});iU.displayName=Vce;var Gce=iU;const Kce=Gce,qce=Object.freeze(Object.defineProperty({__proto__:null,AspectRatio:Kce},Symbol.toStringTag,{value:"Module"})),Xce={lessThanXSeconds:{one:"minder as 'n sekonde",other:"minder as {{count}} sekondes"},xSeconds:{one:"1 sekonde",other:"{{count}} sekondes"},halfAMinute:"'n halwe minuut",lessThanXMinutes:{one:"minder as 'n minuut",other:"minder as {{count}} minute"},xMinutes:{one:"'n minuut",other:"{{count}} minute"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} ure"},xHours:{one:"1 uur",other:"{{count}} ure"},xDays:{one:"1 dag",other:"{{count}} dae"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weke"},xWeeks:{one:"1 week",other:"{{count}} weke"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maande"},xMonths:{one:"1 maand",other:"{{count}} maande"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer as 1 jaar",other:"meer as {{count}} jaar"},almostXYears:{one:"byna 1 jaar",other:"byna {{count}} jaar"}},Yce=(n,e,t)=>{let r;const i=Xce[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"oor "+r:r+" gelede":r},Jce={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"yyyy/MM/dd"},Zce={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ele={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tle={date:we({formats:Jce,defaultWidth:"full"}),time:we({formats:Zce,defaultWidth:"full"}),dateTime:we({formats:ele,defaultWidth:"full"})},nle={lastWeek:"'verlede' eeee 'om' p",yesterday:"'gister om' p",today:"'vandag om' p",tomorrow:"'môre om' p",nextWeek:"eeee 'om' p",other:"P"},rle=(n,e,t,r)=>nle[n],ile={narrow:["vC","nC"],abbreviated:["vC","nC"],wide:["voor Christus","na Christus"]},ale={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ste kwartaal","2de kwartaal","3de kwartaal","4de kwartaal"]},sle={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des"],wide:["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember"]},ole={narrow:["S","M","D","W","D","V","S"],short:["So","Ma","Di","Wo","Do","Vr","Sa"],abbreviated:["Son","Maa","Din","Woe","Don","Vry","Sat"],wide:["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"]},cle={narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"middaguur",morning:"oggend",afternoon:"middag",evening:"laat middag",night:"aand"}},lle={narrow:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},abbreviated:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"},wide:{am:"vm",pm:"nm",midnight:"middernag",noon:"uur die middag",morning:"uur die oggend",afternoon:"uur die middag",evening:"uur die aand",night:"uur die aand"}},ule=n=>{const e=Number(n),t=e%100;if(t<20)switch(t){case 1:case 8:return e+"ste";default:return e+"de"}return e+"ste"},dle={ordinalNumber:ule,era:K({values:ile,defaultWidth:"wide"}),quarter:K({values:ale,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:sle,defaultWidth:"wide"}),day:K({values:ole,defaultWidth:"wide"}),dayPeriod:K({values:cle,defaultWidth:"wide",formattingValues:lle,defaultFormattingWidth:"wide"})},Ale=/^(\d+)(ste|de)?/i,hle=/\d+/i,fle={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?C\.?)/,wide:/^((voor|na) Christus)/},mle={any:[/^v/,/^n/]},ple={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](st|d)e kwartaal/i},gle={any:[/1/i,/2/i,/3/i,/4/i]},vle={narrow:/^[jfmasond]/i,abbreviated:/^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,wide:/^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i},yle={narrow:[/^J/i,/^F/i,/^M/i,/^A/i,/^M/i,/^J/i,/^J/i,/^A/i,/^S/i,/^O/i,/^N/i,/^D/i],any:[/^Jan/i,/^Feb/i,/^Mrt/i,/^Apr/i,/^Mei/i,/^Jun/i,/^Jul/i,/^Aug/i,/^Sep/i,/^Okt/i,/^Nov/i,/^Dec/i]},wle={narrow:/^[smdwv]/i,short:/^(So|Ma|Di|Wo|Do|Vr|Sa)/i,abbreviated:/^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,wide:/^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i},ble={narrow:[/^S/i,/^M/i,/^D/i,/^W/i,/^D/i,/^V/i,/^S/i],any:[/^So/i,/^Ma/i,/^Di/i,/^Wo/i,/^Do/i,/^Vr/i,/^Sa/i]},_le={any:/^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i},xle={any:{am:/^vm/i,pm:/^nm/i,midnight:/^middernag/i,noon:/^middaguur/i,morning:/oggend/i,afternoon:/middag/i,evening:/laat middag/i,night:/aand/i}},Mle={ordinalNumber:Nt({matchPattern:Ale,parsePattern:hle,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:fle,defaultMatchWidth:"wide",parsePatterns:mle,defaultParseWidth:"any"}),quarter:X({matchPatterns:ple,defaultMatchWidth:"wide",parsePatterns:gle,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:vle,defaultMatchWidth:"wide",parsePatterns:yle,defaultParseWidth:"any"}),day:X({matchPatterns:wle,defaultMatchWidth:"wide",parsePatterns:ble,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:_le,defaultMatchWidth:"any",parsePatterns:xle,defaultParseWidth:"any"})},Sle={code:"af",formatDistance:Yce,formatLong:tle,formatRelative:rle,localize:dle,match:Mle,options:{weekStartsOn:0,firstWeekContainsDate:1}},Cle={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من ثانيتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانيتان",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتان",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريبا",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتان",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومان",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريبا",two:"أسبوعين تقريبا",threeToTen:"{{count}} أسابيع تقريبا",other:"{{count}} أسبوعا تقريبا"},xWeeks:{one:"أسبوع واحد",two:"أسبوعان",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوعا"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريبا",threeToTen:"{{count}} أشهر تقريبا",other:"{{count}} شهرا تقريباً"},xMonths:{one:"شهر واحد",two:"شهران",threeToTen:"{{count}} أشهر",other:"{{count}} شهرا"},aboutXYears:{one:"سنة واحدة تقريباً",two:"سنتين تقريبا",threeToTen:"{{count}} سنوات تقريباً",other:"{{count}} سنة تقريباً"},xYears:{one:"سنة واحد",two:"سنتان",threeToTen:"{{count}} سنوات",other:"{{count}} سنة"},overXYears:{one:"أكثر من سنة",two:"أكثر من سنتين",threeToTen:"أكثر من {{count}} سنوات",other:"أكثر من {{count}} سنة"},almostXYears:{one:"ما يقارب سنة واحدة",two:"ما يقارب سنتين",threeToTen:"ما يقارب {{count}} سنوات",other:"ما يقارب {{count}} سنة"}},Ple=(n,e,t)=>{const r=Cle[n];let i;return typeof r=="string"?i=r:e===1?i=r.one:e===2?i=r.two:e<=10?i=r.threeToTen.replace("{{count}}",String(e)):i=r.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"خلال "+i:"منذ "+i:i},Ele={full:"EEEE، do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},Ble={full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},Tle={full:"{{date}} 'عند الساعة' {{time}}",long:"{{date}} 'عند الساعة' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kle={date:we({formats:Ele,defaultWidth:"full"}),time:we({formats:Ble,defaultWidth:"full"}),dateTime:we({formats:Tle,defaultWidth:"full"})},Ile={lastWeek:"eeee 'الماضي عند الساعة' p",yesterday:"'الأمس عند الساعة' p",today:"'اليوم عند الساعة' p",tomorrow:"'غدا عند الساعة' p",nextWeek:"eeee 'القادم عند الساعة' p",other:"P"},Lle=n=>Ile[n],Fle={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},Nle={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},Dle={narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},Rle={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},Ule={narrow:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"},abbreviated:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"},wide:{am:"ص",pm:"م",morning:"الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"المساء",night:"الليل",midnight:"منتصف الليل"}},Ole={narrow:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"},abbreviated:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"},wide:{am:"ص",pm:"م",morning:"في الصباح",noon:"الظهر",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل",midnight:"منتصف الليل"}},Hle=n=>String(n),Wle={ordinalNumber:Hle,era:K({values:Fle,defaultWidth:"wide"}),quarter:K({values:Nle,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Dle,defaultWidth:"wide"}),day:K({values:Rle,defaultWidth:"wide"}),dayPeriod:K({values:Ule,defaultWidth:"wide",formattingValues:Ole,defaultFormattingWidth:"wide"})},Qle=/^(\d+)(th|st|nd|rd)?/i,$le=/\d+/i,jle={narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},zle={any:[/قبل/,/بعد/]},Vle={narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},Gle={any:[/1/i,/2/i,/3/i,/4/i]},Kle={narrow:/^[أيفمسند]/,abbreviated:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},qle={narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^يناير/i,/^فبراير/i,/^مارس/i,/^أبريل/i,/^مايو/i,/^يونيو/i,/^يوليو/i,/^أغسطس/i,/^سبتمبر/i,/^أكتوبر/i,/^نوفمبر/i,/^ديسمبر/i]},Xle={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},Yle={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},Jle={narrow:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/,any:/^(ص|م|منتصف الليل|الظهر|بعد الظهر|في الصباح|في المساء|في الليل)/},Zle={any:{am:/^ص/,pm:/^م/,midnight:/منتصف الليل/,noon:/الظهر/,afternoon:/بعد الظهر/,morning:/في الصباح/,evening:/في المساء/,night:/في الليل/}},eue={ordinalNumber:Nt({matchPattern:Qle,parsePattern:$le,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:jle,defaultMatchWidth:"wide",parsePatterns:zle,defaultParseWidth:"any"}),quarter:X({matchPatterns:Vle,defaultMatchWidth:"wide",parsePatterns:Gle,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Kle,defaultMatchWidth:"wide",parsePatterns:qle,defaultParseWidth:"any"}),day:X({matchPatterns:Xle,defaultMatchWidth:"wide",parsePatterns:Yle,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Jle,defaultMatchWidth:"any",parsePatterns:Zle,defaultParseWidth:"any"})},tue={code:"ar",formatDistance:Ple,formatLong:kle,formatRelative:Lle,localize:Wle,match:eue,options:{weekStartsOn:6,firstWeekContainsDate:1}},nue={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},rue=(n,e,t)=>{t=t||{};const r=nue[n];let i;return typeof r=="string"?i=r:e===1?i=r.one:e===2?i=r.two:e<=10?i=r.threeToTen.replace("{{count}}",String(e)):i=r.other.replace("{{count}}",String(e)),t.addSuffix?t.comparison&&t.comparison>0?"في خلال "+i:"منذ "+i:i},iue={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},aue={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},sue={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oue={date:we({formats:iue,defaultWidth:"full"}),time:we({formats:aue,defaultWidth:"full"}),dateTime:we({formats:sue,defaultWidth:"full"})},cue={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},lue=(n,e,t,r)=>cue[n],uue={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},due={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},Aue={narrow:["ج","ف","م","أ","م","ج","ج","أ","س","أ","ن","د"],abbreviated:["جانـ","فيفـ","مارس","أفريل","مايـ","جوانـ","جويـ","أوت","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},hue={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},fue={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},mue={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},pue=n=>String(n),gue={ordinalNumber:pue,era:K({values:uue,defaultWidth:"wide"}),quarter:K({values:due,defaultWidth:"wide",argumentCallback:n=>Number(n)-1}),month:K({values:Aue,defaultWidth:"wide"}),day:K({values:hue,defaultWidth:"wide"}),dayPeriod:K({values:fue,defaultWidth:"wide",formattingValues:mue,defaultFormattingWidth:"wide"})},vue=/^(\d+)(th|st|nd|rd)?/i,yue=/\d+/i,wue={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},bue={any:[/^قبل/i,/^بعد/i]},_ue={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},xue={any:[/1/i,/2/i,/3/i,/4/i]},Mue={narrow:/^[جفمأسند]/i,abbreviated:/^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i},Sue={narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جان/i,/^فيف/i,/^مار/i,/^أفر/i,/^ماي/i,/^جوا/i,/^جوي/i,/^أوت/i,/^سبت/i,/^أكت/i,/^نوف/i,/^ديس/i]},Cue={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},Pue={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},Eue={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Bue={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Tue={ordinalNumber:Nt({matchPattern:vue,parsePattern:yue,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:wue,defaultMatchWidth:"wide",parsePatterns:bue,defaultParseWidth:"any"}),quarter:X({matchPatterns:_ue,defaultMatchWidth:"wide",parsePatterns:xue,defaultParseWidth:"any",valueCallback:n=>Number(n)+1}),month:X({matchPatterns:Mue,defaultMatchWidth:"wide",parsePatterns:Sue,defaultParseWidth:"any"}),day:X({matchPatterns:Cue,defaultMatchWidth:"wide",parsePatterns:Pue,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Eue,defaultMatchWidth:"any",parsePatterns:Bue,defaultParseWidth:"any"})},kue={code:"ar-DZ",formatDistance:rue,formatLong:oue,formatRelative:lue,localize:gue,match:Tue,options:{weekStartsOn:0,firstWeekContainsDate:1}},Iue={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من ثانيتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية",two:"ثانيتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نص دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقايق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة",two:"دقيقتين",threeToTen:"{{count}} دقايق",other:"{{count}} دقيقة"},aboutXHours:{one:"حوالي ساعة",two:"حوالي ساعتين",threeToTen:"حوالي {{count}} ساعات",other:"حوالي {{count}} ساعة"},xHours:{one:"ساعة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"حوالي أسبوع",two:"حوالي أسبوعين",threeToTen:"حوالي {{count}} أسابيع",other:"حوالي {{count}} أسبوع"},xWeeks:{one:"أسبوع",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"حوالي شهر",two:"حوالي شهرين",threeToTen:"حوالي {{count}} أشهر",other:"حوالي {{count}} شهر"},xMonths:{one:"شهر",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"حوالي سنة",two:"حوالي سنتين",threeToTen:"حوالي {{count}} سنين",other:"حوالي {{count}} سنة"},xYears:{one:"عام",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من سنة",two:"أكثر من سنتين",threeToTen:"أكثر من {{count}} سنين",other:"أكثر من {{count}} سنة"},almostXYears:{one:"عام تقريبًا",two:"عامين تقريبًا",threeToTen:"{{count}} أعوام تقريبًا",other:"{{count}} عام تقريبًا"}},Lue=(n,e,t)=>{let r;const i=Iue[n];return typeof i=="string"?r=i:e===1?r=i.one:e===2?r=i.two:e<=10?r=i.threeToTen.replace("{{count}}",String(e)):r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?`في خلال ${r}`:`منذ ${r}`:r},Fue={full:"EEEE، do MMMM y",long:"do MMMM y",medium:"dd/MMM/y",short:"d/MM/y"},Nue={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Due={full:"{{date}} 'الساعة' {{time}}",long:"{{date}} 'الساعة' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rue={date:we({formats:Fue,defaultWidth:"full"}),time:we({formats:Nue,defaultWidth:"full"}),dateTime:we({formats:Due,defaultWidth:"full"})},Uue={lastWeek:"eeee 'اللي جاي الساعة' p",yesterday:"'إمبارح الساعة' p",today:"'النهاردة الساعة' p",tomorrow:"'بكرة الساعة' p",nextWeek:"eeee 'الساعة' p",other:"P"},Oue=(n,e,t,r)=>Uue[n],Hue={narrow:["ق","ب"],abbreviated:["ق.م","ب.م"],wide:["قبل الميلاد","بعد الميلاد"]},Wue={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},Que={narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},$ue={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},jue={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءً",night:"ليلاً"}},zue={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهراً",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",morning:"في الصباح",noon:"ظهراً",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"}},Vue=(n,e)=>String(n),Gue={ordinalNumber:Vue,era:K({values:Hue,defaultWidth:"wide"}),quarter:K({values:Wue,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Que,defaultWidth:"wide"}),day:K({values:$ue,defaultWidth:"wide"}),dayPeriod:K({values:jue,defaultWidth:"wide",formattingValues:zue,defaultFormattingWidth:"wide"})},Kue=/^(\d+)/,que=/\d+/i,Xue={narrow:/^(ق|ب)/g,abbreviated:/^(ق.م|ب.م)/g,wide:/^(قبل الميلاد|بعد الميلاد)/g},Yue={any:[/^ق/g,/^ب/g]},Jue={narrow:/^[1234]/,abbreviated:/^ر[1234]/,wide:/^الربع (الأول|الثاني|الثالث|الرابع)/},Zue={wide:[/الربع الأول/,/الربع الثاني/,/الربع الثالث/,/الربع الرابع/],any:[/1/,/2/,/3/,/4/]},ede={narrow:/^(ي|ف|م|أ|س|ن|د)/,abbreviated:/^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/,wide:/^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},tde={narrow:[/^ي/,/^ف/,/^م/,/^أ/,/^م/,/^ي/,/^ي/,/^أ/,/^س/,/^أ/,/^ن/,/^د/],any:[/^ينا/,/^فبر/,/^مارس/,/^أبريل/,/^مايو/,/^يون/,/^يول/,/^أغس/,/^سبت/,/^أكت/,/^نوف/,/^ديس/]},nde={narrow:/^(ح|ن|ث|ر|خ|ج|س)/,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/},rde={narrow:[/^ح/,/^ن/,/^ث/,/^ر/,/^خ/,/^ج/,/^س/],any:[/أحد/,/اثنين/,/ثلاثاء/,/أربعاء/,/خميس/,/جمعة/,/سبت/]},ide={narrow:/^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/,abbreviated:/^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/,wide:/^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/,any:/^(ص|م|صباح|ظهر|مساء|ليل)/},ade={any:{am:/^ص/,pm:/^م/,midnight:/^ن/,noon:/^ظ/,morning:/^ص/,afternoon:/^بعد/,evening:/^م/,night:/^ل/}},sde={ordinalNumber:Nt({matchPattern:Kue,parsePattern:que,valueCallback:function(n){return parseInt(n,10)}}),era:X({matchPatterns:Xue,defaultMatchWidth:"wide",parsePatterns:Yue,defaultParseWidth:"any"}),quarter:X({matchPatterns:Jue,defaultMatchWidth:"wide",parsePatterns:Zue,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:ede,defaultMatchWidth:"wide",parsePatterns:tde,defaultParseWidth:"any"}),day:X({matchPatterns:nde,defaultMatchWidth:"wide",parsePatterns:rde,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:ide,defaultMatchWidth:"any",parsePatterns:ade,defaultParseWidth:"any"})},ode={code:"ar-EG",formatDistance:Lue,formatLong:Rue,formatRelative:Oue,localize:Gue,match:sde,options:{weekStartsOn:0,firstWeekContainsDate:1}},cde={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},lde=(n,e,t)=>{t=t||{};const r=cde[n];let i;return typeof r=="string"?i=r:e===1?i=r.one:e===2?i=r.two:e<=10?i=r.threeToTen.replace("{{count}}",String(e)):i=r.other.replace("{{count}}",String(e)),t.addSuffix?t.comparison&&t.comparison>0?"في خلال "+i:"منذ "+i:i},ude={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dde={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ade={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hde={date:we({formats:ude,defaultWidth:"full"}),time:we({formats:dde,defaultWidth:"full"}),dateTime:we({formats:Ade,defaultWidth:"full"})},fde={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},mde=(n,e,t,r)=>fde[n],pde={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},gde={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},vde={narrow:["ي","ف","م","أ","م","ي","ي","غ","ش","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","ماي","يونـ","يولـ","غشت","شتنـ","أكتـ","نونـ","دجنـ"],wide:["يناير","فبراير","مارس","أبريل","ماي","يونيو","يوليوز","غشت","شتنبر","أكتوبر","نونبر","دجنبر"]},yde={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},wde={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},bde={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},_de=n=>String(n),xde={ordinalNumber:_de,era:K({values:pde,defaultWidth:"wide"}),quarter:K({values:gde,defaultWidth:"wide",argumentCallback:n=>Number(n)-1}),month:K({values:vde,defaultWidth:"wide"}),day:K({values:yde,defaultWidth:"wide"}),dayPeriod:K({values:wde,defaultWidth:"wide",formattingValues:bde,defaultFormattingWidth:"wide"})},Mde=/^(\d+)(th|st|nd|rd)?/i,Sde=/\d+/i,Cde={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},Pde={any:[/^قبل/i,/^بعد/i]},Ede={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},Bde={any:[/1/i,/2/i,/3/i,/4/i]},Tde={narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i},kde={narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^غ/i,/^ش/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^فب/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^غشت/i,/^ش/i,/^أك/i,/^ن/i,/^د/i]},Ide={narrow:/^[حنثرخجس]/i,short:/^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},Lde={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الإثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^إث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},Fde={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Nde={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Dde={ordinalNumber:Nt({matchPattern:Mde,parsePattern:Sde,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:Cde,defaultMatchWidth:"wide",parsePatterns:Pde,defaultParseWidth:"any"}),quarter:X({matchPatterns:Ede,defaultMatchWidth:"wide",parsePatterns:Bde,defaultParseWidth:"any",valueCallback:n=>Number(n)+1}),month:X({matchPatterns:Tde,defaultMatchWidth:"wide",parsePatterns:kde,defaultParseWidth:"any"}),day:X({matchPatterns:Ide,defaultMatchWidth:"wide",parsePatterns:Lde,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Fde,defaultMatchWidth:"any",parsePatterns:Nde,defaultParseWidth:"any"})},Rde={code:"ar-MA",formatDistance:lde,formatLong:hde,formatRelative:mde,localize:xde,match:Dde,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ude={lessThanXSeconds:{one:"أقل من ثانية واحدة",two:"أقل من ثانتين",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية واحدة",two:"ثانتين",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نصف دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقائق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة واحدة",two:"دقيقتين",threeToTen:"{{count}} دقائق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة واحدة تقريباً",two:"ساعتين تقريباً",threeToTen:"{{count}} ساعات تقريباً",other:"{{count}} ساعة تقريباً"},xHours:{one:"ساعة واحدة",two:"ساعتين",threeToTen:"{{count}} ساعات",other:"{{count}} ساعة"},xDays:{one:"يوم واحد",two:"يومين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"أسبوع واحد تقريباً",two:"أسبوعين تقريباً",threeToTen:"{{count}} أسابيع تقريباً",other:"{{count}} أسبوع تقريباً"},xWeeks:{one:"أسبوع واحد",two:"أسبوعين",threeToTen:"{{count}} أسابيع",other:"{{count}} أسبوع"},aboutXMonths:{one:"شهر واحد تقريباً",two:"شهرين تقريباً",threeToTen:"{{count}} أشهر تقريباً",other:"{{count}} شهر تقريباً"},xMonths:{one:"شهر واحد",two:"شهرين",threeToTen:"{{count}} أشهر",other:"{{count}} شهر"},aboutXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"},xYears:{one:"عام واحد",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام واحد تقريباً",two:"عامين تقريباً",threeToTen:"{{count}} أعوام تقريباً",other:"{{count}} عام تقريباً"}},Ode=(n,e,t)=>{let r;const i=Ude[n];return typeof i=="string"?r=i:e===1?r=i.one:e===2?r=i.two:e<=10?r=i.threeToTen.replace("{{count}}",String(e)):r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"في خلال "+r:"منذ "+r:r},Hde={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Wde={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qde={full:"{{date}} 'عند' {{time}}",long:"{{date}} 'عند' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$de={date:we({formats:Hde,defaultWidth:"full"}),time:we({formats:Wde,defaultWidth:"full"}),dateTime:we({formats:Qde,defaultWidth:"full"})},jde={lastWeek:"'أخر' eeee 'عند' p",yesterday:"'أمس عند' p",today:"'اليوم عند' p",tomorrow:"'غداً عند' p",nextWeek:"eeee 'عند' p",other:"P"},zde=(n,e,t,r)=>jde[n],Vde={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},Gde={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},Kde={narrow:["ي","ف","م","أ","م","ي","ي","أ","س","أ","ن","د"],abbreviated:["ينا","فبر","مارس","أبريل","مايو","يونـ","يولـ","أغسـ","سبتـ","أكتـ","نوفـ","ديسـ"],wide:["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},qde={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنـ","ثلا","أربـ","خميـ","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},Xde={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظهر",evening:"مساءاً",night:"ليلاً"}},Yde={narrow:{am:"ص",pm:"م",midnight:"ن",noon:"ظ",morning:"في الصباح",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"},abbreviated:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"في الصباح",afternoon:"بعد الظهر",evening:"في المساء",night:"في الليل"},wide:{am:"ص",pm:"م",midnight:"نصف الليل",noon:"ظهر",morning:"صباحاً",afternoon:"بعد الظـهر",evening:"في المساء",night:"في الليل"}},Jde=n=>String(n),Zde={ordinalNumber:Jde,era:K({values:Vde,defaultWidth:"wide"}),quarter:K({values:Gde,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Kde,defaultWidth:"wide"}),day:K({values:qde,defaultWidth:"wide"}),dayPeriod:K({values:Xde,defaultWidth:"wide",formattingValues:Yde,defaultFormattingWidth:"wide"})},eAe=/^(\d+)(th|st|nd|rd)?/i,tAe=/\d+/i,nAe={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i},rAe={any:[/^قبل/i,/^بعد/i]},iAe={narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^الربع [1234]/i},aAe={any:[/1/i,/2/i,/3/i,/4/i]},sAe={narrow:/^[يفمأمسند]/i,abbreviated:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,wide:/^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i},oAe={narrow:[/^ي/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ي/i,/^ي/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^ين/i,/^ف/i,/^مار/i,/^أب/i,/^ماي/i,/^يون/i,/^يول/i,/^أغ/i,/^س/i,/^أك/i,/^ن/i,/^د/i]},cAe={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},lAe={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},uAe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},dAe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},AAe={ordinalNumber:Nt({matchPattern:eAe,parsePattern:tAe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:nAe,defaultMatchWidth:"wide",parsePatterns:rAe,defaultParseWidth:"any"}),quarter:X({matchPatterns:iAe,defaultMatchWidth:"wide",parsePatterns:aAe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:sAe,defaultMatchWidth:"wide",parsePatterns:oAe,defaultParseWidth:"any"}),day:X({matchPatterns:cAe,defaultMatchWidth:"wide",parsePatterns:lAe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:uAe,defaultMatchWidth:"any",parsePatterns:dAe,defaultParseWidth:"any"})},hAe={code:"ar-SA",formatDistance:Ode,formatLong:$de,formatRelative:zde,localize:Zde,match:AAe,options:{weekStartsOn:0,firstWeekContainsDate:1}},fAe={lessThanXSeconds:{one:"أقل من ثانية",two:"أقل من زوز ثواني",threeToTen:"أقل من {{count}} ثواني",other:"أقل من {{count}} ثانية"},xSeconds:{one:"ثانية",two:"زوز ثواني",threeToTen:"{{count}} ثواني",other:"{{count}} ثانية"},halfAMinute:"نص دقيقة",lessThanXMinutes:{one:"أقل من دقيقة",two:"أقل من دقيقتين",threeToTen:"أقل من {{count}} دقايق",other:"أقل من {{count}} دقيقة"},xMinutes:{one:"دقيقة",two:"دقيقتين",threeToTen:"{{count}} دقايق",other:"{{count}} دقيقة"},aboutXHours:{one:"ساعة تقريب",two:"ساعتين تقريب",threeToTen:"{{count}} سوايع تقريب",other:"{{count}} ساعة تقريب"},xHours:{one:"ساعة",two:"ساعتين",threeToTen:"{{count}} سوايع",other:"{{count}} ساعة"},xDays:{one:"نهار",two:"نهارين",threeToTen:"{{count}} أيام",other:"{{count}} يوم"},aboutXWeeks:{one:"جمعة تقريب",two:"جمعتين تقريب",threeToTen:"{{count}} جماع تقريب",other:"{{count}} جمعة تقريب"},xWeeks:{one:"جمعة",two:"جمعتين",threeToTen:"{{count}} جماع",other:"{{count}} جمعة"},aboutXMonths:{one:"شهر تقريب",two:"شهرين تقريب",threeToTen:"{{count}} أشهرة تقريب",other:"{{count}} شهر تقريب"},xMonths:{one:"شهر",two:"شهرين",threeToTen:"{{count}} أشهرة",other:"{{count}} شهر"},aboutXYears:{one:"عام تقريب",two:"عامين تقريب",threeToTen:"{{count}} أعوام تقريب",other:"{{count}} عام تقريب"},xYears:{one:"عام",two:"عامين",threeToTen:"{{count}} أعوام",other:"{{count}} عام"},overXYears:{one:"أكثر من عام",two:"أكثر من عامين",threeToTen:"أكثر من {{count}} أعوام",other:"أكثر من {{count}} عام"},almostXYears:{one:"عام تقريب",two:"عامين تقريب",threeToTen:"{{count}} أعوام تقريب",other:"{{count}} عام تقريب"}},mAe=(n,e,t)=>{const r=fAe[n];let i;return typeof r=="string"?i=r:e===1?i=r.one:e===2?i=r.two:e<=10?i=r.threeToTen.replace("{{count}}",String(e)):i=r.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"في "+i:"عندو "+i:i},pAe={full:"EEEE، do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},gAe={full:"HH:mm:ss",long:"HH:mm:ss",medium:"HH:mm:ss",short:"HH:mm"},vAe={full:"{{date}} 'مع' {{time}}",long:"{{date}} 'مع' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},yAe={date:we({formats:pAe,defaultWidth:"full"}),time:we({formats:gAe,defaultWidth:"full"}),dateTime:we({formats:vAe,defaultWidth:"full"})},wAe={lastWeek:"eeee 'إلي فات مع' p",yesterday:"'البارح مع' p",today:"'اليوم مع' p",tomorrow:"'غدوة مع' p",nextWeek:"eeee 'الجمعة الجاية مع' p 'نهار'",other:"P"},bAe=n=>wAe[n],_Ae={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل الميلاد","بعد الميلاد"]},xAe={narrow:["1","2","3","4"],abbreviated:["ر1","ر2","ر3","ر4"],wide:["الربع الأول","الربع الثاني","الربع الثالث","الربع الرابع"]},MAe={narrow:["د","ن","أ","س","أ","ج","ج","م","أ","م","ف","ج"],abbreviated:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],wide:["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"]},SAe={narrow:["ح","ن","ث","ر","خ","ج","س"],short:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],abbreviated:["أحد","اثنين","ثلاثاء","أربعاء","خميس","جمعة","سبت"],wide:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"]},CAe={narrow:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"},abbreviated:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"},wide:{am:"ص",pm:"ع",morning:"الصباح",noon:"القايلة",afternoon:"بعد القايلة",evening:"العشية",night:"الليل",midnight:"نص الليل"}},PAe={narrow:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"},abbreviated:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"},wide:{am:"ص",pm:"ع",morning:"في الصباح",noon:"في القايلة",afternoon:"بعد القايلة",evening:"في العشية",night:"في الليل",midnight:"نص الليل"}},EAe=n=>String(n),BAe={ordinalNumber:EAe,era:K({values:_Ae,defaultWidth:"wide"}),quarter:K({values:xAe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:MAe,defaultWidth:"wide"}),day:K({values:SAe,defaultWidth:"wide"}),dayPeriod:K({values:CAe,defaultWidth:"wide",formattingValues:PAe,defaultFormattingWidth:"wide"})},TAe=/^(\d+)(th|st|nd|rd)?/i,kAe=/\d+/i,IAe={narrow:/[قب]/,abbreviated:/[قب]\.م\./,wide:/(قبل|بعد) الميلاد/},LAe={any:[/قبل/,/بعد/]},FAe={narrow:/^[1234]/i,abbreviated:/ر[1234]/,wide:/الربع (الأول|الثاني|الثالث|الرابع)/},NAe={any:[/1/i,/2/i,/3/i,/4/i]},DAe={narrow:/^[جفمأسند]/,abbreviated:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/,wide:/^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/},RAe={narrow:[/^ج/i,/^ف/i,/^م/i,/^أ/i,/^م/i,/^ج/i,/^ج/i,/^أ/i,/^س/i,/^أ/i,/^ن/i,/^د/i],any:[/^جانفي/i,/^فيفري/i,/^مارس/i,/^أفريل/i,/^ماي/i,/^جوان/i,/^جويلية/i,/^أوت/i,/^سبتمبر/i,/^أكتوبر/i,/^نوفمبر/i,/^ديسمبر/i]},UAe={narrow:/^[حنثرخجس]/i,short:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,abbreviated:/^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,wide:/^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i},OAe={narrow:[/^ح/i,/^ن/i,/^ث/i,/^ر/i,/^خ/i,/^ج/i,/^س/i],wide:[/^الأحد/i,/^الاثنين/i,/^الثلاثاء/i,/^الأربعاء/i,/^الخميس/i,/^الجمعة/i,/^السبت/i],any:[/^أح/i,/^اث/i,/^ث/i,/^أر/i,/^خ/i,/^ج/i,/^س/i]},HAe={narrow:/^(ص|ع|ن ل|ل|(في|مع) (صباح|قايلة|عشية|ليل))/,any:/^([صع]|نص الليل|قايلة|(في|مع) (صباح|قايلة|عشية|ليل))/},WAe={any:{am:/^ص/,pm:/^ع/,midnight:/نص الليل/,noon:/قايلة/,afternoon:/بعد القايلة/,morning:/صباح/,evening:/عشية/,night:/ليل/}},QAe={ordinalNumber:Nt({matchPattern:TAe,parsePattern:kAe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:IAe,defaultMatchWidth:"wide",parsePatterns:LAe,defaultParseWidth:"any"}),quarter:X({matchPatterns:FAe,defaultMatchWidth:"wide",parsePatterns:NAe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:DAe,defaultMatchWidth:"wide",parsePatterns:RAe,defaultParseWidth:"any"}),day:X({matchPatterns:UAe,defaultMatchWidth:"wide",parsePatterns:OAe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:HAe,defaultMatchWidth:"any",parsePatterns:WAe,defaultParseWidth:"any"})},$Ae={code:"ar-TN",formatDistance:mAe,formatLong:yAe,formatRelative:bAe,localize:BAe,match:QAe,options:{weekStartsOn:1,firstWeekContainsDate:1}},jAe={lessThanXSeconds:{one:"bir saniyədən az",other:"{{count}} bir saniyədən az"},xSeconds:{one:"1 saniyə",other:"{{count}} saniyə"},halfAMinute:"yarım dəqiqə",lessThanXMinutes:{one:"bir dəqiqədən az",other:"{{count}} bir dəqiqədən az"},xMinutes:{one:"bir dəqiqə",other:"{{count}} dəqiqə"},aboutXHours:{one:"təxminən 1 saat",other:"təxminən {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"təxminən 1 həftə",other:"təxminən {{count}} həftə"},xWeeks:{one:"1 həftə",other:"{{count}} həftə"},aboutXMonths:{one:"təxminən 1 ay",other:"təxminən {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"təxminən 1 il",other:"təxminən {{count}} il"},xYears:{one:"1 il",other:"{{count}} il"},overXYears:{one:"1 ildən çox",other:"{{count}} ildən çox"},almostXYears:{one:"demək olar ki 1 il",other:"demək olar ki {{count}} il"}},zAe=(n,e,t)=>{let r;const i=jAe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+" sonra":r+" əvvəl":r},VAe={full:"EEEE, do MMMM y 'il'",long:"do MMMM y 'il'",medium:"d MMM y 'il'",short:"dd.MM.yyyy"},GAe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},KAe={full:"{{date}} {{time}} - 'də'",long:"{{date}} {{time}} - 'də'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qAe={date:we({formats:VAe,defaultWidth:"full"}),time:we({formats:GAe,defaultWidth:"full"}),dateTime:we({formats:KAe,defaultWidth:"full"})},XAe={lastWeek:"'sonuncu' eeee p -'də'",yesterday:"'dünən' p -'də'",today:"'bugün' p -'də'",tomorrow:"'sabah' p -'də'",nextWeek:"eeee p -'də'",other:"P"},YAe=(n,e,t,r)=>XAe[n],JAe={narrow:["e.ə","b.e"],abbreviated:["e.ə","b.e"],wide:["eramızdan əvvəl","bizim era"]},ZAe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1ci kvartal","2ci kvartal","3cü kvartal","4cü kvartal"]},ehe={narrow:["Y","F","M","A","M","İ","İ","A","S","O","N","D"],abbreviated:["Yan","Fev","Mar","Apr","May","İyun","İyul","Avq","Sen","Okt","Noy","Dek"],wide:["Yanvar","Fevral","Mart","Aprel","May","İyun","İyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},the={narrow:["B.","B.e","Ç.a","Ç.","C.a","C.","Ş."],short:["B.","B.e","Ç.a","Ç.","C.a","C.","Ş."],abbreviated:["Baz","Baz.e","Çər.a","Çər","Cüm.a","Cüm","Şə"],wide:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},nhe={narrow:{am:"am",pm:"pm",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},abbreviated:{am:"AM",pm:"PM",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},wide:{am:"a.m.",pm:"p.m.",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"}},rhe={narrow:{am:"a",pm:"p",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},abbreviated:{am:"AM",pm:"PM",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"},wide:{am:"a.m.",pm:"p.m.",midnight:"gecəyarı",noon:"gün",morning:"səhər",afternoon:"gündüz",evening:"axşam",night:"gecə"}},um={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"},ihe=n=>{if(n===0)return n+"-ıncı";const e=n%10,t=n%100-e,r=n>=100?100:null;return um[e]?um[e]:um[t]?um[t]:r!==null?um[r]:""},ahe=(n,e)=>{const t=Number(n),r=ihe(t);return t+r},she={ordinalNumber:ahe,era:K({values:JAe,defaultWidth:"wide"}),quarter:K({values:ZAe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:ehe,defaultWidth:"wide"}),day:K({values:the,defaultWidth:"wide"}),dayPeriod:K({values:nhe,defaultWidth:"wide",formattingValues:rhe,defaultFormattingWidth:"wide"})},ohe=/^(\d+)(-?(ci|inci|nci|uncu|üncü|ncı))?/i,che=/\d+/i,lhe={narrow:/^(b|a)$/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)$/i,wide:/^(bizim eradan əvvəl|bizim era)$/i},uhe={any:[/^b$/i,/^(a|c)$/i]},dhe={narrow:/^[1234]$/i,abbreviated:/^K[1234]$/i,wide:/^[1234](ci)? kvartal$/i},Ahe={any:[/1/i,/2/i,/3/i,/4/i]},hhe={narrow:/^[(?-i)yfmaisond]$/i,abbreviated:/^(Yan|Fev|Mar|Apr|May|İyun|İyul|Avq|Sen|Okt|Noy|Dek)$/i,wide:/^(Yanvar|Fevral|Mart|Aprel|May|İyun|İyul|Avgust|Sentyabr|Oktyabr|Noyabr|Dekabr)$/i},fhe={narrow:[/^[(?-i)y]$/i,/^[(?-i)f]$/i,/^[(?-i)m]$/i,/^[(?-i)a]$/i,/^[(?-i)m]$/i,/^[(?-i)i]$/i,/^[(?-i)i]$/i,/^[(?-i)a]$/i,/^[(?-i)s]$/i,/^[(?-i)o]$/i,/^[(?-i)n]$/i,/^[(?-i)d]$/i],abbreviated:[/^Yan$/i,/^Fev$/i,/^Mar$/i,/^Apr$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avg$/i,/^Sen$/i,/^Okt$/i,/^Noy$/i,/^Dek$/i],wide:[/^Yanvar$/i,/^Fevral$/i,/^Mart$/i,/^Aprel$/i,/^May$/i,/^İyun$/i,/^İyul$/i,/^Avgust$/i,/^Sentyabr$/i,/^Oktyabr$/i,/^Noyabr$/i,/^Dekabr$/i]},mhe={narrow:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,short:/^(B\.|B\.e|Ç\.a|Ç\.|C\.a|C\.|Ş\.)$/i,abbreviated:/^(Baz\.e|Çər|Çər\.a|Cüm|Cüm\.a|Şə)$/i,wide:/^(Bazar|Bazar ertəsi|Çərşənbə axşamı|Çərşənbə|Cümə axşamı|Cümə|Şənbə)$/i},phe={narrow:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i],abbreviated:[/^Baz$/i,/^Baz\.e$/i,/^Çər\.a$/i,/^Çər$/i,/^Cüm\.a$/i,/^Cüm$/i,/^Şə$/i],wide:[/^Bazar$/i,/^Bazar ertəsi$/i,/^Çərşənbə axşamı$/i,/^Çərşənbə$/i,/^Cümə axşamı$/i,/^Cümə$/i,/^Şənbə$/i],any:[/^B\.$/i,/^B\.e$/i,/^Ç\.a$/i,/^Ç\.$/i,/^C\.a$/i,/^C\.$/i,/^Ş\.$/i]},ghe={narrow:/^(a|p|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i,any:/^(am|pm|a\.m\.|p\.m\.|AM|PM|gecəyarı|gün|səhər|gündüz|axşam|gecə)$/i},vhe={any:{am:/^a$/i,pm:/^p$/i,midnight:/^gecəyarı$/i,noon:/^gün$/i,morning:/səhər$/i,afternoon:/gündüz$/i,evening:/axşam$/i,night:/gecə$/i}},yhe={ordinalNumber:Nt({matchPattern:ohe,parsePattern:che,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:lhe,defaultMatchWidth:"wide",parsePatterns:uhe,defaultParseWidth:"any"}),quarter:X({matchPatterns:dhe,defaultMatchWidth:"wide",parsePatterns:Ahe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:hhe,defaultMatchWidth:"wide",parsePatterns:fhe,defaultParseWidth:"narrow"}),day:X({matchPatterns:mhe,defaultMatchWidth:"wide",parsePatterns:phe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:ghe,defaultMatchWidth:"any",parsePatterns:vhe,defaultParseWidth:"any"})},whe={code:"az",formatDistance:zAe,formatLong:qAe,formatRelative:YAe,localize:she,match:yhe,options:{weekStartsOn:1,firstWeekContainsDate:1}};function dm(n,e){if(n.one!==void 0&&e===1)return n.one;const t=e%10,r=e%100;return t===1&&r!==11?n.singularNominative.replace("{{count}}",String(e)):t>=2&&t<=4&&(r<10||r>20)?n.singularGenitive.replace("{{count}}",String(e)):n.pluralGenitive.replace("{{count}}",String(e))}function ds(n){return(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?n.future?dm(n.future,e):"праз "+dm(n.regular,e):n.past?dm(n.past,e):dm(n.regular,e)+" таму":dm(n.regular,e)}const bhe=(n,e)=>e&&e.addSuffix?e.comparison&&e.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны",_he={lessThanXSeconds:ds({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:ds({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:bhe,lessThanXMinutes:ds({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:ds({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:ds({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:ds({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:ds({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:ds({regular:{singularNominative:"каля {{count}} тыдні",singularGenitive:"каля {{count}} тыдняў",pluralGenitive:"каля {{count}} тыдняў"},future:{singularNominative:"прыблізна праз {{count}} тыдзень",singularGenitive:"прыблізна праз {{count}} тыдні",pluralGenitive:"прыблізна праз {{count}} тыдняў"}}),xWeeks:ds({regular:{singularNominative:"{{count}} тыдзень",singularGenitive:"{{count}} тыдні",pluralGenitive:"{{count}} тыдняў"}}),aboutXMonths:ds({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:ds({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:ds({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:ds({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:ds({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:ds({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},xhe=(n,e,t)=>(t=t||{},_he[n](e,t)),Mhe={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},She={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Che={any:"{{date}}, {{time}}"},Phe={date:we({formats:Mhe,defaultWidth:"full"}),time:we({formats:She,defaultWidth:"full"}),dateTime:we({formats:Che,defaultWidth:"any"})},OC=["нядзелю","панядзелак","аўторак","сераду","чацвер","пятніцу","суботу"];function Ehe(n){const e=OC[n];switch(n){case 0:case 3:case 5:case 6:return"'у мінулую "+e+" а' p";case 1:case 2:case 4:return"'у мінулы "+e+" а' p"}}function aU(n){return"'у "+OC[n]+" а' p"}function Bhe(n){const e=OC[n];switch(n){case 0:case 3:case 5:case 6:return"'у наступную "+e+" а' p";case 1:case 2:case 4:return"'у наступны "+e+" а' p"}}const The=(n,e,t)=>{const r=id(n),i=r.getDay();return vi(r,e,t)?aU(i):Ehe(i)},khe=(n,e,t)=>{const r=id(n),i=r.getDay();return vi(r,e,t)?aU(i):Bhe(i)},Ihe={lastWeek:The,yesterday:"'учора а' p",today:"'сёння а' p",tomorrow:"'заўтра а' p",nextWeek:khe,other:"P"},Lhe=(n,e,t,r)=>{const i=Ihe[n];return typeof i=="function"?i(e,t,r):i},Fhe={narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},Nhe={narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},Dhe={narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","май","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзень","люты","сакавік","красавік","май","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","снежань"]},Rhe={narrow:["С","Л","С","К","М","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","мая","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","снеж."],wide:["студзеня","лютага","сакавіка","красавіка","мая","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","снежня"]},Uhe={narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чац","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацвер","пятніца","субота"]},Ohe={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},Hhe={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},Whe=(n,e)=>{const t=String(e==null?void 0:e.unit),r=Number(n);let i;return t==="date"?i="-га":t==="hour"||t==="minute"||t==="second"?i="-я":i=(r%10===2||r%10===3)&&r%100!==12&&r%100!==13?"-і":"-ы",r+i},Qhe={ordinalNumber:Whe,era:K({values:Fhe,defaultWidth:"wide"}),quarter:K({values:Nhe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Dhe,defaultWidth:"wide",formattingValues:Rhe,defaultFormattingWidth:"wide"}),day:K({values:Uhe,defaultWidth:"wide"}),dayPeriod:K({values:Ohe,defaultWidth:"any",formattingValues:Hhe,defaultFormattingWidth:"wide"})},$he=/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,jhe=/\d+/i,zhe={narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},Vhe={any:[/^д/i,/^н/i]},Ghe={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},Khe={any:[/1/i,/2/i,/3/i,/4/i]},qhe={narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|ма[йя]|чэрв|ліп|жн|вер|кастр|ліст|снеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|ма[йя]|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|снеж(ань|ня))/i},Xhe={narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^м/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^ма/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},Yhe={narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцв|чац|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацв(ер|ярга)|пятніц[аы]|субот[аы])/i},Jhe={narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Zhe={narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},efe={any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},tfe={ordinalNumber:Nt({matchPattern:$he,parsePattern:jhe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:zhe,defaultMatchWidth:"wide",parsePatterns:Vhe,defaultParseWidth:"any"}),quarter:X({matchPatterns:Ghe,defaultMatchWidth:"wide",parsePatterns:Khe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:qhe,defaultMatchWidth:"wide",parsePatterns:Xhe,defaultParseWidth:"any"}),day:X({matchPatterns:Yhe,defaultMatchWidth:"wide",parsePatterns:Jhe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Zhe,defaultMatchWidth:"wide",parsePatterns:efe,defaultParseWidth:"any"})},nfe={code:"be",formatDistance:xhe,formatLong:Phe,formatRelative:Lhe,localize:Qhe,match:tfe,options:{weekStartsOn:1,firstWeekContainsDate:1}};function Am(n,e){if(n.one!==void 0&&e===1)return n.one;const t=e%10,r=e%100;return t===1&&r!==11?n.singularNominative.replace("{{count}}",String(e)):t>=2&&t<=4&&(r<10||r>20)?n.singularGenitive.replace("{{count}}",String(e)):n.pluralGenitive.replace("{{count}}",String(e))}function As(n){return(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?n.future?Am(n.future,e):"праз "+Am(n.regular,e):n.past?Am(n.past,e):Am(n.regular,e)+" таму":Am(n.regular,e)}const rfe=(n,e)=>e&&e.addSuffix?e.comparison&&e.comparison>0?"праз паўхвіліны":"паўхвіліны таму":"паўхвіліны",ife={lessThanXSeconds:As({regular:{one:"менш за секунду",singularNominative:"менш за {{count}} секунду",singularGenitive:"менш за {{count}} секунды",pluralGenitive:"менш за {{count}} секунд"},future:{one:"менш, чым праз секунду",singularNominative:"менш, чым праз {{count}} секунду",singularGenitive:"менш, чым праз {{count}} секунды",pluralGenitive:"менш, чым праз {{count}} секунд"}}),xSeconds:As({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду таму",singularGenitive:"{{count}} секунды таму",pluralGenitive:"{{count}} секунд таму"},future:{singularNominative:"праз {{count}} секунду",singularGenitive:"праз {{count}} секунды",pluralGenitive:"праз {{count}} секунд"}}),halfAMinute:rfe,lessThanXMinutes:As({regular:{one:"менш за хвіліну",singularNominative:"менш за {{count}} хвіліну",singularGenitive:"менш за {{count}} хвіліны",pluralGenitive:"менш за {{count}} хвілін"},future:{one:"менш, чым праз хвіліну",singularNominative:"менш, чым праз {{count}} хвіліну",singularGenitive:"менш, чым праз {{count}} хвіліны",pluralGenitive:"менш, чым праз {{count}} хвілін"}}),xMinutes:As({regular:{singularNominative:"{{count}} хвіліна",singularGenitive:"{{count}} хвіліны",pluralGenitive:"{{count}} хвілін"},past:{singularNominative:"{{count}} хвіліну таму",singularGenitive:"{{count}} хвіліны таму",pluralGenitive:"{{count}} хвілін таму"},future:{singularNominative:"праз {{count}} хвіліну",singularGenitive:"праз {{count}} хвіліны",pluralGenitive:"праз {{count}} хвілін"}}),aboutXHours:As({regular:{singularNominative:"каля {{count}} гадзіны",singularGenitive:"каля {{count}} гадзін",pluralGenitive:"каля {{count}} гадзін"},future:{singularNominative:"прыблізна праз {{count}} гадзіну",singularGenitive:"прыблізна праз {{count}} гадзіны",pluralGenitive:"прыблізна праз {{count}} гадзін"}}),xHours:As({regular:{singularNominative:"{{count}} гадзіна",singularGenitive:"{{count}} гадзіны",pluralGenitive:"{{count}} гадзін"},past:{singularNominative:"{{count}} гадзіну таму",singularGenitive:"{{count}} гадзіны таму",pluralGenitive:"{{count}} гадзін таму"},future:{singularNominative:"праз {{count}} гадзіну",singularGenitive:"праз {{count}} гадзіны",pluralGenitive:"праз {{count}} гадзін"}}),xDays:As({regular:{singularNominative:"{{count}} дзень",singularGenitive:"{{count}} дні",pluralGenitive:"{{count}} дзён"}}),aboutXWeeks:As({regular:{singularNominative:"каля {{count}} тыдні",singularGenitive:"каля {{count}} тыдняў",pluralGenitive:"каля {{count}} тыдняў"},future:{singularNominative:"прыблізна праз {{count}} тыдзень",singularGenitive:"прыблізна праз {{count}} тыдні",pluralGenitive:"прыблізна праз {{count}} тыдняў"}}),xWeeks:As({regular:{singularNominative:"{{count}} тыдзень",singularGenitive:"{{count}} тыдні",pluralGenitive:"{{count}} тыдняў"}}),aboutXMonths:As({regular:{singularNominative:"каля {{count}} месяца",singularGenitive:"каля {{count}} месяцаў",pluralGenitive:"каля {{count}} месяцаў"},future:{singularNominative:"прыблізна праз {{count}} месяц",singularGenitive:"прыблізна праз {{count}} месяцы",pluralGenitive:"прыблізна праз {{count}} месяцаў"}}),xMonths:As({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяцы",pluralGenitive:"{{count}} месяцаў"}}),aboutXYears:As({regular:{singularNominative:"каля {{count}} года",singularGenitive:"каля {{count}} гадоў",pluralGenitive:"каля {{count}} гадоў"},future:{singularNominative:"прыблізна праз {{count}} год",singularGenitive:"прыблізна праз {{count}} гады",pluralGenitive:"прыблізна праз {{count}} гадоў"}}),xYears:As({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} гады",pluralGenitive:"{{count}} гадоў"}}),overXYears:As({regular:{singularNominative:"больш за {{count}} год",singularGenitive:"больш за {{count}} гады",pluralGenitive:"больш за {{count}} гадоў"},future:{singularNominative:"больш, чым праз {{count}} год",singularGenitive:"больш, чым праз {{count}} гады",pluralGenitive:"больш, чым праз {{count}} гадоў"}}),almostXYears:As({regular:{singularNominative:"амаль {{count}} год",singularGenitive:"амаль {{count}} гады",pluralGenitive:"амаль {{count}} гадоў"},future:{singularNominative:"амаль праз {{count}} год",singularGenitive:"амаль праз {{count}} гады",pluralGenitive:"амаль праз {{count}} гадоў"}})},afe=(n,e,t)=>(t=t||{},ife[n](e,t)),sfe={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},ofe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},cfe={any:"{{date}}, {{time}}"},lfe={date:we({formats:sfe,defaultWidth:"full"}),time:we({formats:ofe,defaultWidth:"full"}),dateTime:we({formats:cfe,defaultWidth:"any"})},HC=["нядзелю","панядзелак","аўторак","сераду","чацьвер","пятніцу","суботу"];function ufe(n){const e=HC[n];switch(n){case 0:case 3:case 5:case 6:return"'у мінулую "+e+" а' p";case 1:case 2:case 4:return"'у мінулы "+e+" а' p"}}function sU(n){return"'у "+HC[n]+" а' p"}function dfe(n){const e=HC[n];switch(n){case 0:case 3:case 5:case 6:return"'у наступную "+e+" а' p";case 1:case 2:case 4:return"'у наступны "+e+" а' p"}}const Afe=(n,e,t)=>{const r=id(n),i=r.getDay();return vi(r,e,t)?sU(i):ufe(i)},hfe=(n,e,t)=>{const r=id(n),i=r.getDay();return vi(r,e,t)?sU(i):dfe(i)},ffe={lastWeek:Afe,yesterday:"'учора а' p",today:"'сёньня а' p",tomorrow:"'заўтра а' p",nextWeek:hfe,other:"P"},mfe=(n,e,t,r)=>{const i=ffe[n];return typeof i=="function"?i(e,t,r):i},pfe={narrow:["да н.э.","н.э."],abbreviated:["да н. э.","н. э."],wide:["да нашай эры","нашай эры"]},gfe={narrow:["1","2","3","4"],abbreviated:["1-ы кв.","2-і кв.","3-і кв.","4-ы кв."],wide:["1-ы квартал","2-і квартал","3-і квартал","4-ы квартал"]},vfe={narrow:["С","Л","С","К","Т","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","трав.","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","сьнеж."],wide:["студзень","люты","сакавік","красавік","травень","чэрвень","ліпень","жнівень","верасень","кастрычнік","лістапад","сьнежань"]},yfe={narrow:["С","Л","С","К","Т","Ч","Л","Ж","В","К","Л","С"],abbreviated:["студз.","лют.","сак.","крас.","трав.","чэрв.","ліп.","жн.","вер.","кастр.","ліст.","сьнеж."],wide:["студзеня","лютага","сакавіка","красавіка","траўня","чэрвеня","ліпеня","жніўня","верасня","кастрычніка","лістапада","сьнежня"]},wfe={narrow:["Н","П","А","С","Ч","П","С"],short:["нд","пн","аў","ср","чц","пт","сб"],abbreviated:["нядз","пан","аўт","сер","чаць","пят","суб"],wide:["нядзеля","панядзелак","аўторак","серада","чацьвер","пятніца","субота"]},bfe={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дзень",evening:"веч.",night:"ноч"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніца",afternoon:"дзень",evening:"вечар",night:"ноч"}},_fe={narrow:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},abbreviated:{am:"ДП",pm:"ПП",midnight:"поўн.",noon:"поўд.",morning:"ран.",afternoon:"дня",evening:"веч.",night:"ночы"},wide:{am:"ДП",pm:"ПП",midnight:"поўнач",noon:"поўдзень",morning:"раніцы",afternoon:"дня",evening:"вечара",night:"ночы"}},xfe=(n,e)=>{const t=String(e==null?void 0:e.unit),r=Number(n);let i;return t==="date"?i="-га":t==="hour"||t==="minute"||t==="second"?i="-я":i=(r%10===2||r%10===3)&&r%100!==12&&r%100!==13?"-і":"-ы",r+i},Mfe={ordinalNumber:xfe,era:K({values:pfe,defaultWidth:"wide"}),quarter:K({values:gfe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:vfe,defaultWidth:"wide",formattingValues:yfe,defaultFormattingWidth:"wide"}),day:K({values:wfe,defaultWidth:"wide"}),dayPeriod:K({values:bfe,defaultWidth:"any",formattingValues:_fe,defaultFormattingWidth:"wide"})},Sfe=/^(\d+)(-?(е|я|га|і|ы|ае|ая|яя|шы|гі|ці|ты|мы))?/i,Cfe=/\d+/i,Pfe={narrow:/^((да )?н\.?\s?э\.?)/i,abbreviated:/^((да )?н\.?\s?э\.?)/i,wide:/^(да нашай эры|нашай эры|наша эра)/i},Efe={any:[/^д/i,/^н/i]},Bfe={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыі]?)? кв.?/i,wide:/^[1234](-?[ыі]?)? квартал/i},Tfe={any:[/1/i,/2/i,/3/i,/4/i]},kfe={narrow:/^[слкмчжв]/i,abbreviated:/^(студз|лют|сак|крас|тр(ав)?|чэрв|ліп|жн|вер|кастр|ліст|сьнеж)\.?/i,wide:/^(студзен[ья]|лют(ы|ага)|сакавіка?|красавіка?|тра(вень|ўня)|чэрвен[ья]|ліпен[ья]|жні(вень|ўня)|верас(ень|ня)|кастрычніка?|лістапада?|сьнеж(ань|ня))/i},Ife={narrow:[/^с/i,/^л/i,/^с/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^ж/i,/^в/i,/^к/i,/^л/i,/^с/i],any:[/^ст/i,/^лю/i,/^са/i,/^кр/i,/^тр/i,/^ч/i,/^ліп/i,/^ж/i,/^в/i,/^ка/i,/^ліс/i,/^сн/i]},Lfe={narrow:/^[нпасч]/i,short:/^(нд|ня|пн|па|аў|ат|ср|се|чц|ча|пт|пя|сб|су)\.?/i,abbreviated:/^(нядз?|ндз|пнд|пан|аўт|срд|сер|чцьв|чаць|птн|пят|суб).?/i,wide:/^(нядзел[яі]|панядзел(ак|ка)|аўтор(ак|ка)|серад[аы]|чацьв(ер|ярга)|пятніц[аы]|субот[аы])/i},Ffe={narrow:[/^н/i,/^п/i,/^а/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[ан]/i,/^а/i,/^с[ер]/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},Nfe={narrow:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,abbreviated:/^([дп]п|поўн\.?|поўд\.?|ран\.?|дзень|дня|веч\.?|ночы?)/i,wide:/^([дп]п|поўнач|поўдзень|раніц[аы]|дзень|дня|вечара?|ночы?)/i},Dfe={any:{am:/^дп/i,pm:/^пп/i,midnight:/^поўн/i,noon:/^поўд/i,morning:/^р/i,afternoon:/^д[зн]/i,evening:/^в/i,night:/^н/i}},Rfe={ordinalNumber:Nt({matchPattern:Sfe,parsePattern:Cfe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:Pfe,defaultMatchWidth:"wide",parsePatterns:Efe,defaultParseWidth:"any"}),quarter:X({matchPatterns:Bfe,defaultMatchWidth:"wide",parsePatterns:Tfe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:kfe,defaultMatchWidth:"wide",parsePatterns:Ife,defaultParseWidth:"any"}),day:X({matchPatterns:Lfe,defaultMatchWidth:"wide",parsePatterns:Ffe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Nfe,defaultMatchWidth:"wide",parsePatterns:Dfe,defaultParseWidth:"any"})},Ufe={code:"be-tarask",formatDistance:afe,formatLong:lfe,formatRelative:mfe,localize:Mfe,match:Rfe,options:{weekStartsOn:1,firstWeekContainsDate:1}},Ofe={lessThanXSeconds:{one:"по-малко от секунда",other:"по-малко от {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половин минута",lessThanXMinutes:{one:"по-малко от минута",other:"по-малко от {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"около час",other:"около {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дни"},aboutXWeeks:{one:"около седмица",other:"около {{count}} седмици"},xWeeks:{one:"1 седмица",other:"{{count}} седмици"},aboutXMonths:{one:"около месец",other:"около {{count}} месеца"},xMonths:{one:"1 месец",other:"{{count}} месеца"},aboutXYears:{one:"около година",other:"около {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"над година",other:"над {{count}} години"},almostXYears:{one:"почти година",other:"почти {{count}} години"}},Hfe=(n,e,t)=>{let r;const i=Ofe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"след "+r:"преди "+r:r},Wfe={full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},Qfe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},$fe={any:"{{date}} {{time}}"},jfe={date:we({formats:Wfe,defaultWidth:"full"}),time:we({formats:Qfe,defaultWidth:"full"}),dateTime:we({formats:$fe,defaultWidth:"any"})},WC=["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"];function zfe(n){const e=WC[n];switch(n){case 0:case 3:case 6:return"'миналата "+e+" в' p";case 1:case 2:case 4:case 5:return"'миналия "+e+" в' p"}}function oU(n){const e=WC[n];return n===2?"'във "+e+" в' p":"'в "+e+" в' p"}function Vfe(n){const e=WC[n];switch(n){case 0:case 3:case 6:return"'следващата "+e+" в' p";case 1:case 2:case 4:case 5:return"'следващия "+e+" в' p"}}const Gfe=(n,e,t)=>{const r=id(n),i=r.getDay();return vi(r,e,t)?oU(i):zfe(i)},Kfe=(n,e,t)=>{const r=id(n),i=r.getDay();return vi(r,e,t)?oU(i):Vfe(i)},qfe={lastWeek:Gfe,yesterday:"'вчера в' p",today:"'днес в' p",tomorrow:"'утре в' p",nextWeek:Kfe,other:"P"},Xfe=(n,e,t,r)=>{const i=qfe[n];return typeof i=="function"?i(e,t,r):i},Yfe={narrow:["пр.н.е.","н.е."],abbreviated:["преди н. е.","н. е."],wide:["преди новата ера","новата ера"]},Jfe={narrow:["1","2","3","4"],abbreviated:["1-во тримес.","2-ро тримес.","3-то тримес.","4-то тримес."],wide:["1-во тримесечие","2-ро тримесечие","3-то тримесечие","4-то тримесечие"]},Zfe={abbreviated:["яну","фев","мар","апр","май","юни","юли","авг","сеп","окт","ное","дек"],wide:["януари","февруари","март","април","май","юни","юли","август","септември","октомври","ноември","декември"]},eme={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вто","сря","чет","пет","съб"],wide:["неделя","понеделник","вторник","сряда","четвъртък","петък","събота"]},tme={wide:{am:"преди обяд",pm:"след обяд",midnight:"в полунощ",noon:"на обяд",morning:"сутринта",afternoon:"следобед",evening:"вечерта",night:"през нощта"}};function nme(n){return n==="year"||n==="week"||n==="minute"||n==="second"}function rme(n){return n==="quarter"}function Md(n,e,t,r,i){const a=rme(e)?i:nme(e)?r:t;return n+"-"+a}const ime=(n,e)=>{const t=Number(n),r=e==null?void 0:e.unit;if(t===0)return Md(0,r,"ев","ева","ево");if(t%1e3===0)return Md(t,r,"ен","на","но");if(t%100===0)return Md(t,r,"тен","тна","тно");const i=t%100;if(i>20||i<10)switch(i%10){case 1:return Md(t,r,"ви","ва","во");case 2:return Md(t,r,"ри","ра","ро");case 7:case 8:return Md(t,r,"ми","ма","мо")}return Md(t,r,"ти","та","то")},ame={ordinalNumber:ime,era:K({values:Yfe,defaultWidth:"wide"}),quarter:K({values:Jfe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Zfe,defaultWidth:"wide"}),day:K({values:eme,defaultWidth:"wide"}),dayPeriod:K({values:tme,defaultWidth:"wide"})},sme=/^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i,ome=/\d+/i,cme={narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(преди новата ера|новата ера|нова ера)/i},lme={any:[/^п/i,/^н/i]},ume={narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?o?)? тримес.?/i,wide:/^[1234](-?[врт]?о?)? тримесечие/i},dme={any:[/1/i,/2/i,/3/i,/4/i]},Ame={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)/i,abbreviated:/^(нед|пон|вто|сря|чет|пет|съб)/i,wide:/^(неделя|понеделник|вторник|сряда|четвъртък|петък|събота)/i},hme={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[ъб]/i]},fme={abbreviated:/^(яну|фев|мар|апр|май|юни|юли|авг|сеп|окт|ное|дек)/i,wide:/^(януари|февруари|март|април|май|юни|юли|август|септември|октомври|ноември|декември)/i},mme={any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^юн/i,/^юл/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},pme={any:/^(преди о|след о|в по|на о|през|веч|сут|следо)/i},gme={any:{am:/^преди о/i,pm:/^след о/i,midnight:/^в пол/i,noon:/^на об/i,morning:/^сут/i,afternoon:/^следо/i,evening:/^веч/i,night:/^през н/i}},vme={ordinalNumber:Nt({matchPattern:sme,parsePattern:ome,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:cme,defaultMatchWidth:"wide",parsePatterns:lme,defaultParseWidth:"any"}),quarter:X({matchPatterns:ume,defaultMatchWidth:"wide",parsePatterns:dme,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:fme,defaultMatchWidth:"wide",parsePatterns:mme,defaultParseWidth:"any"}),day:X({matchPatterns:Ame,defaultMatchWidth:"wide",parsePatterns:hme,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:pme,defaultMatchWidth:"any",parsePatterns:gme,defaultParseWidth:"any"})},yme={code:"bg",formatDistance:Hfe,formatLong:jfe,formatRelative:Xfe,localize:ame,match:vme,options:{weekStartsOn:1,firstWeekContainsDate:1}},wme={locale:{1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"}},bme={narrow:["খ্রিঃপূঃ","খ্রিঃ"],abbreviated:["খ্রিঃপূর্ব","খ্রিঃ"],wide:["খ্রিস্টপূর্ব","খ্রিস্টাব্দ"]},_me={narrow:["১","২","৩","৪"],abbreviated:["১ত্রৈ","২ত্রৈ","৩ত্রৈ","৪ত্রৈ"],wide:["১ম ত্রৈমাসিক","২য় ত্রৈমাসিক","৩য় ত্রৈমাসিক","৪র্থ ত্রৈমাসিক"]},xme={narrow:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],abbreviated:["জানু","ফেব্রু","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্ট","অক্টো","নভে","ডিসে"],wide:["জানুয়ারি","ফেব্রুয়ারি","মার্চ","এপ্রিল","মে","জুন","জুলাই","আগস্ট","সেপ্টেম্বর","অক্টোবর","নভেম্বর","ডিসেম্বর"]},Mme={narrow:["র","সো","ম","বু","বৃ","শু","শ"],short:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],abbreviated:["রবি","সোম","মঙ্গল","বুধ","বৃহ","শুক্র","শনি"],wide:["রবিবার","সোমবার","মঙ্গলবার","বুধবার","বৃহস্পতিবার ","শুক্রবার","শনিবার"]},Sme={narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}},Cme={narrow:{am:"পূ",pm:"অপ",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},abbreviated:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"},wide:{am:"পূর্বাহ্ন",pm:"অপরাহ্ন",midnight:"মধ্যরাত",noon:"মধ্যাহ্ন",morning:"সকাল",afternoon:"বিকাল",evening:"সন্ধ্যা",night:"রাত"}};function Pme(n,e){if(n>18&&n<=31)return e+"শে";switch(n){case 1:return e+"লা";case 2:case 3:return e+"রা";case 4:return e+"ঠা";default:return e+"ই"}}const Eme=(n,e)=>{const t=Number(n),r=cU(t);if((e==null?void 0:e.unit)==="date")return Pme(t,r);if(t>10||t===0)return r+"তম";switch(t%10){case 2:case 3:return r+"য়";case 4:return r+"র্থ";case 6:return r+"ষ্ঠ";default:return r+"ম"}};function cU(n){return n.toString().replace(/\d/g,function(e){return wme.locale[e]})}const Bme={ordinalNumber:Eme,era:K({values:bme,defaultWidth:"wide"}),quarter:K({values:_me,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:xme,defaultWidth:"wide"}),day:K({values:Mme,defaultWidth:"wide"}),dayPeriod:K({values:Sme,defaultWidth:"wide",formattingValues:Cme,defaultFormattingWidth:"wide"})},Tme={lessThanXSeconds:{one:"প্রায় ১ সেকেন্ড",other:"প্রায় {{count}} সেকেন্ড"},xSeconds:{one:"১ সেকেন্ড",other:"{{count}} সেকেন্ড"},halfAMinute:"আধ মিনিট",lessThanXMinutes:{one:"প্রায় ১ মিনিট",other:"প্রায় {{count}} মিনিট"},xMinutes:{one:"১ মিনিট",other:"{{count}} মিনিট"},aboutXHours:{one:"প্রায় ১ ঘন্টা",other:"প্রায় {{count}} ঘন্টা"},xHours:{one:"১ ঘন্টা",other:"{{count}} ঘন্টা"},xDays:{one:"১ দিন",other:"{{count}} দিন"},aboutXWeeks:{one:"প্রায় ১ সপ্তাহ",other:"প্রায় {{count}} সপ্তাহ"},xWeeks:{one:"১ সপ্তাহ",other:"{{count}} সপ্তাহ"},aboutXMonths:{one:"প্রায় ১ মাস",other:"প্রায় {{count}} মাস"},xMonths:{one:"১ মাস",other:"{{count}} মাস"},aboutXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"},xYears:{one:"১ বছর",other:"{{count}} বছর"},overXYears:{one:"১ বছরের বেশি",other:"{{count}} বছরের বেশি"},almostXYears:{one:"প্রায় ১ বছর",other:"প্রায় {{count}} বছর"}},kme=(n,e,t)=>{let r;const i=Tme[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",cU(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+" এর মধ্যে":r+" আগে":r},Ime={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lme={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fme={full:"{{date}} {{time}} 'সময়'",long:"{{date}} {{time}} 'সময়'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nme={date:we({formats:Ime,defaultWidth:"full"}),time:we({formats:Lme,defaultWidth:"full"}),dateTime:we({formats:Fme,defaultWidth:"full"})},Dme={lastWeek:"'গত' eeee 'সময়' p",yesterday:"'গতকাল' 'সময়' p",today:"'আজ' 'সময়' p",tomorrow:"'আগামীকাল' 'সময়' p",nextWeek:"eeee 'সময়' p",other:"P"},Rme=(n,e,t,r)=>Dme[n],Ume=/^(\d+)(ম|য়|র্থ|ষ্ঠ|শে|ই|তম)?/i,Ome=/\d+/i,Hme={narrow:/^(খ্রিঃপূঃ|খ্রিঃ)/i,abbreviated:/^(খ্রিঃপূর্ব|খ্রিঃ)/i,wide:/^(খ্রিস্টপূর্ব|খ্রিস্টাব্দ)/i},Wme={narrow:[/^খ্রিঃপূঃ/i,/^খ্রিঃ/i],abbreviated:[/^খ্রিঃপূর্ব/i,/^খ্রিঃ/i],wide:[/^খ্রিস্টপূর্ব/i,/^খ্রিস্টাব্দ/i]},Qme={narrow:/^[১২৩৪]/i,abbreviated:/^[১২৩৪]ত্রৈ/i,wide:/^[১২৩৪](ম|য়|র্থ)? ত্রৈমাসিক/i},$me={any:[/১/i,/২/i,/৩/i,/৪/i]},jme={narrow:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,abbreviated:/^(জানু|ফেব্রু|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্ট|অক্টো|নভে|ডিসে)/i,wide:/^(জানুয়ারি|ফেব্রুয়ারি|মার্চ|এপ্রিল|মে|জুন|জুলাই|আগস্ট|সেপ্টেম্বর|অক্টোবর|নভেম্বর|ডিসেম্বর)/i},zme={any:[/^জানু/i,/^ফেব্রু/i,/^মার্চ/i,/^এপ্রিল/i,/^মে/i,/^জুন/i,/^জুলাই/i,/^আগস্ট/i,/^সেপ্ট/i,/^অক্টো/i,/^নভে/i,/^ডিসে/i]},Vme={narrow:/^(র|সো|ম|বু|বৃ|শু|শ)+/i,short:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,abbreviated:/^(রবি|সোম|মঙ্গল|বুধ|বৃহ|শুক্র|শনি)+/i,wide:/^(রবিবার|সোমবার|মঙ্গলবার|বুধবার|বৃহস্পতিবার |শুক্রবার|শনিবার)+/i},Gme={narrow:[/^র/i,/^সো/i,/^ম/i,/^বু/i,/^বৃ/i,/^শু/i,/^শ/i],short:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],abbreviated:[/^রবি/i,/^সোম/i,/^মঙ্গল/i,/^বুধ/i,/^বৃহ/i,/^শুক্র/i,/^শনি/i],wide:[/^রবিবার/i,/^সোমবার/i,/^মঙ্গলবার/i,/^বুধবার/i,/^বৃহস্পতিবার /i,/^শুক্রবার/i,/^শনিবার/i]},Kme={narrow:/^(পূ|অপ|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,abbreviated:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i,wide:/^(পূর্বাহ্ন|অপরাহ্ন|মধ্যরাত|মধ্যাহ্ন|সকাল|বিকাল|সন্ধ্যা|রাত)/i},qme={any:{am:/^পূ/i,pm:/^অপ/i,midnight:/^মধ্যরাত/i,noon:/^মধ্যাহ্ন/i,morning:/সকাল/i,afternoon:/বিকাল/i,evening:/সন্ধ্যা/i,night:/রাত/i}},Xme={ordinalNumber:Nt({matchPattern:Ume,parsePattern:Ome,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:Hme,defaultMatchWidth:"wide",parsePatterns:Wme,defaultParseWidth:"wide"}),quarter:X({matchPatterns:Qme,defaultMatchWidth:"wide",parsePatterns:$me,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:jme,defaultMatchWidth:"wide",parsePatterns:zme,defaultParseWidth:"any"}),day:X({matchPatterns:Vme,defaultMatchWidth:"wide",parsePatterns:Gme,defaultParseWidth:"wide"}),dayPeriod:X({matchPatterns:Kme,defaultMatchWidth:"wide",parsePatterns:qme,defaultParseWidth:"any"})},Yme={code:"bn",formatDistance:kme,formatLong:Nme,formatRelative:Rme,localize:Bme,match:Xme,options:{weekStartsOn:0,firstWeekContainsDate:1}},Jme={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 sedmicu",withPrepositionAgo:"oko 1 sedmicu",withPrepositionIn:"oko 1 sedmicu"},dual:"oko {{count}} sedmice",other:"oko {{count}} sedmice"},xWeeks:{one:{standalone:"1 sedmicu",withPrepositionAgo:"1 sedmicu",withPrepositionIn:"1 sedmicu"},dual:"{{count}} sedmice",other:"{{count}} sedmice"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},Zme=(n,e,t)=>{let r;const i=Jme[n];return typeof i=="string"?r=i:e===1?t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r=i.one.withPrepositionIn:r=i.one.withPrepositionAgo:r=i.one.standalone:e%10>1&&e%10<5&&String(e).substr(-2,1)!=="1"?r=i.dual.replace("{{count}}",String(e)):r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"za "+r:"prije "+r:r},epe={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},tpe={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},npe={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},rpe={date:we({formats:epe,defaultWidth:"full"}),time:we({formats:tpe,defaultWidth:"full"}),dateTime:we({formats:npe,defaultWidth:"full"})},ipe={lastWeek:n=>{switch(n.getDay()){case 0:return"'prošle nedjelje u' p";case 3:return"'prošle srijede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:n=>{switch(n.getDay()){case 0:return"'sljedeće nedjelje u' p";case 3:return"'sljedeću srijedu u' p";case 6:return"'sljedeću subotu u' p";default:return"'sljedeći' EEEE 'u' p"}},other:"P"},ape=(n,e,t,r)=>{const i=ipe[n];return typeof i=="function"?i(e):i},spe={narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Prije Hrista","Poslije Hrista"]},ope={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},cpe={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"]},lpe={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","juni","juli","avgust","septembar","oktobar","novembar","decembar"]},upe={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},dpe={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"poslije podne",evening:"uveče",night:"noću"}},Ape={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"poslije podne",evening:"uveče",night:"noću"}},hpe=(n,e)=>{const t=Number(n);return String(t)+"."},fpe={ordinalNumber:hpe,era:K({values:spe,defaultWidth:"wide"}),quarter:K({values:ope,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:cpe,defaultWidth:"wide",formattingValues:lpe,defaultFormattingWidth:"wide"}),day:K({values:upe,defaultWidth:"wide"}),dayPeriod:K({values:dpe,defaultWidth:"wide",formattingValues:Ape,defaultFormattingWidth:"wide"})},mpe=/^(\d+)\./i,ppe=/\d+/i,gpe={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Prije Hrista|prije nove ere|Poslije Hrista|nova era)/i},vpe={any:[/^pr/i,/^(po|nova)/i]},ype={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},wpe={any:[/1/i,/2/i,/3/i,/4/i]},bpe={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(juni|juna)|(juli|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},_pe={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},xpe={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},Mpe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Spe={any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|poslije podne|ujutru)/i},Cpe={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},Ppe={ordinalNumber:Nt({matchPattern:mpe,parsePattern:ppe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:gpe,defaultMatchWidth:"wide",parsePatterns:vpe,defaultParseWidth:"any"}),quarter:X({matchPatterns:ype,defaultMatchWidth:"wide",parsePatterns:wpe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:bpe,defaultMatchWidth:"wide",parsePatterns:_pe,defaultParseWidth:"any"}),day:X({matchPatterns:xpe,defaultMatchWidth:"wide",parsePatterns:Mpe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Spe,defaultMatchWidth:"any",parsePatterns:Cpe,defaultParseWidth:"any"})},Epe={code:"bs",formatDistance:Zme,formatLong:rpe,formatRelative:ape,localize:fpe,match:Ppe,options:{weekStartsOn:1,firstWeekContainsDate:4}},Bpe={lessThanXSeconds:{one:"menys d'un segon",eleven:"menys d'onze segons",other:"menys de {{count}} segons"},xSeconds:{one:"1 segon",other:"{{count}} segons"},halfAMinute:"mig minut",lessThanXMinutes:{one:"menys d'un minut",eleven:"menys d'onze minuts",other:"menys de {{count}} minuts"},xMinutes:{one:"1 minut",other:"{{count}} minuts"},aboutXHours:{one:"aproximadament una hora",other:"aproximadament {{count}} hores"},xHours:{one:"1 hora",other:"{{count}} hores"},xDays:{one:"1 dia",other:"{{count}} dies"},aboutXWeeks:{one:"aproximadament una setmana",other:"aproximadament {{count}} setmanes"},xWeeks:{one:"1 setmana",other:"{{count}} setmanes"},aboutXMonths:{one:"aproximadament un mes",other:"aproximadament {{count}} mesos"},xMonths:{one:"1 mes",other:"{{count}} mesos"},aboutXYears:{one:"aproximadament un any",other:"aproximadament {{count}} anys"},xYears:{one:"1 any",other:"{{count}} anys"},overXYears:{one:"més d'un any",eleven:"més d'onze anys",other:"més de {{count}} anys"},almostXYears:{one:"gairebé un any",other:"gairebé {{count}} anys"}},Tpe=(n,e,t)=>{let r;const i=Bpe[n];return typeof i=="string"?r=i:e===1?r=i.one:e===11&&i.eleven?r=i.eleven:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"en "+r:"fa "+r:r},kpe={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},Ipe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Lpe={full:"{{date}} 'a les' {{time}}",long:"{{date}} 'a les' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fpe={date:we({formats:kpe,defaultWidth:"full"}),time:we({formats:Ipe,defaultWidth:"full"}),dateTime:we({formats:Lpe,defaultWidth:"full"})},Npe={lastWeek:"'el' eeee 'passat a la' LT",yesterday:"'ahir a la' p",today:"'avui a la' p",tomorrow:"'demà a la' p",nextWeek:"eeee 'a la' p",other:"P"},Dpe={lastWeek:"'el' eeee 'passat a les' p",yesterday:"'ahir a les' p",today:"'avui a les' p",tomorrow:"'demà a les' p",nextWeek:"eeee 'a les' p",other:"P"},Rpe=(n,e,t,r)=>e.getHours()!==1?Dpe[n]:Npe[n],Upe={narrow:["aC","dC"],abbreviated:["a. de C.","d. de C."],wide:["abans de Crist","després de Crist"]},Ope={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1r trimestre","2n trimestre","3r trimestre","4t trimestre"]},Hpe={narrow:["GN","FB","MÇ","AB","MG","JN","JL","AG","ST","OC","NV","DS"],abbreviated:["gen.","febr.","març","abr.","maig","juny","jul.","ag.","set.","oct.","nov.","des."],wide:["gener","febrer","març","abril","maig","juny","juliol","agost","setembre","octubre","novembre","desembre"]},Wpe={narrow:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],short:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dt.","dm.","dj.","dv.","ds."],wide:["diumenge","dilluns","dimarts","dimecres","dijous","divendres","dissabte"]},Qpe={narrow:{am:"am",pm:"pm",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mitjanit",noon:"migdia",morning:"matí",afternoon:"tarda",evening:"vespre",night:"nit"}},$pe={narrow:{am:"am",pm:"pm",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},abbreviated:{am:"AM",pm:"PM",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"de la mitjanit",noon:"del migdia",morning:"del matí",afternoon:"de la tarda",evening:"del vespre",night:"de la nit"}},jpe=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"r";case 2:return t+"n";case 3:return t+"r";case 4:return t+"t"}return t+"è"},zpe={ordinalNumber:jpe,era:K({values:Upe,defaultWidth:"wide"}),quarter:K({values:Ope,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Hpe,defaultWidth:"wide"}),day:K({values:Wpe,defaultWidth:"wide"}),dayPeriod:K({values:Qpe,defaultWidth:"wide",formattingValues:$pe,defaultFormattingWidth:"wide"})},Vpe=/^(\d+)(è|r|n|r|t)?/i,Gpe=/\d+/i,Kpe={narrow:/^(aC|dC)/i,abbreviated:/^(a. de C.|d. de C.)/i,wide:/^(abans de Crist|despr[eé]s de Crist)/i},qpe={narrow:[/^aC/i,/^dC/i],abbreviated:[/^(a. de C.)/i,/^(d. de C.)/i],wide:[/^(abans de Crist)/i,/^(despr[eé]s de Crist)/i]},Xpe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](è|r|n|r|t)? trimestre/i},Ype={any:[/1/i,/2/i,/3/i,/4/i]},Jpe={narrow:/^(GN|FB|MÇ|AB|MG|JN|JL|AG|ST|OC|NV|DS)/i,abbreviated:/^(gen.|febr.|març|abr.|maig|juny|jul.|ag.|set.|oct.|nov.|des.)/i,wide:/^(gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre)/i},Zpe={narrow:[/^GN/i,/^FB/i,/^MÇ/i,/^AB/i,/^MG/i,/^JN/i,/^JL/i,/^AG/i,/^ST/i,/^OC/i,/^NV/i,/^DS/i],abbreviated:[/^gen./i,/^febr./i,/^març/i,/^abr./i,/^maig/i,/^juny/i,/^jul./i,/^ag./i,/^set./i,/^oct./i,/^nov./i,/^des./i],wide:[/^gener/i,/^febrer/i,/^març/i,/^abril/i,/^maig/i,/^juny/i,/^juliol/i,/^agost/i,/^setembre/i,/^octubre/i,/^novembre/i,/^desembre/i]},ege={narrow:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,short:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,abbreviated:/^(dg\.|dl\.|dt\.|dm\.|dj\.|dv\.|ds\.)/i,wide:/^(diumenge|dilluns|dimarts|dimecres|dijous|divendres|dissabte)/i},tge={narrow:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],abbreviated:[/^dg./i,/^dl./i,/^dt./i,/^dm./i,/^dj./i,/^dv./i,/^ds./i],wide:[/^diumenge/i,/^dilluns/i,/^dimarts/i,/^dimecres/i,/^dijous/i,/^divendres/i,/^disssabte/i]},nge={narrow:/^(a|p|mn|md|(del|de la) (matí|tarda|vespre|nit))/i,abbreviated:/^([ap]\.?\s?m\.?|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i,wide:/^(ante meridiem|post meridiem|mitjanit|migdia|(del|de la) (matí|tarda|vespre|nit))/i},rge={any:{am:/^a/i,pm:/^p/i,midnight:/^mitjanit/i,noon:/^migdia/i,morning:/matí/i,afternoon:/tarda/i,evening:/vespre/i,night:/nit/i}},ige={ordinalNumber:Nt({matchPattern:Vpe,parsePattern:Gpe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:Kpe,defaultMatchWidth:"wide",parsePatterns:qpe,defaultParseWidth:"wide"}),quarter:X({matchPatterns:Xpe,defaultMatchWidth:"wide",parsePatterns:Ype,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Jpe,defaultMatchWidth:"wide",parsePatterns:Zpe,defaultParseWidth:"wide"}),day:X({matchPatterns:ege,defaultMatchWidth:"wide",parsePatterns:tge,defaultParseWidth:"wide"}),dayPeriod:X({matchPatterns:nge,defaultMatchWidth:"wide",parsePatterns:rge,defaultParseWidth:"any"})},age={code:"ca",formatDistance:Tpe,formatLong:Fpe,formatRelative:Rpe,localize:zpe,match:ige,options:{weekStartsOn:1,firstWeekContainsDate:4}},sge={lessThanXSeconds:{one:"کەمتر لە یەک چرکە",other:"کەمتر لە {{count}} چرکە"},xSeconds:{one:"1 چرکە",other:"{{count}} چرکە"},halfAMinute:"نیو کاتژمێر",lessThanXMinutes:{one:"کەمتر لە یەک خولەک",other:"کەمتر لە {{count}} خولەک"},xMinutes:{one:"1 خولەک",other:"{{count}} خولەک"},aboutXHours:{one:"دەوروبەری 1 کاتژمێر",other:"دەوروبەری {{count}} کاتژمێر"},xHours:{one:"1 کاتژمێر",other:"{{count}} کاتژمێر"},xDays:{one:"1 ڕۆژ",other:"{{count}} ژۆژ"},aboutXWeeks:{one:"دەوروبەری 1 هەفتە",other:"دوروبەری {{count}} هەفتە"},xWeeks:{one:"1 هەفتە",other:"{{count}} هەفتە"},aboutXMonths:{one:"داوروبەری 1 مانگ",other:"دەوروبەری {{count}} مانگ"},xMonths:{one:"1 مانگ",other:"{{count}} مانگ"},aboutXYears:{one:"دەوروبەری  1 ساڵ",other:"دەوروبەری {{count}} ساڵ"},xYears:{one:"1 ساڵ",other:"{{count}} ساڵ"},overXYears:{one:"زیاتر لە ساڵێک",other:"زیاتر لە {{count}} ساڵ"},almostXYears:{one:"بەنزیکەیی ساڵێک  ",other:"بەنزیکەیی {{count}} ساڵ"}},oge=(n,e,t)=>{let r;const i=sge[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"لە ماوەی "+r+"دا":r+"پێش ئێستا":r},cge={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lge={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uge={full:"{{date}} 'کاتژمێر' {{time}}",long:"{{date}} 'کاتژمێر' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dge={date:we({formats:cge,defaultWidth:"full"}),time:we({formats:lge,defaultWidth:"full"}),dateTime:we({formats:uge,defaultWidth:"full"})},Age={lastWeek:"'هەفتەی ڕابردوو' eeee 'کاتژمێر' p",yesterday:"'دوێنێ کاتژمێر' p",today:"'ئەمڕۆ کاتژمێر' p",tomorrow:"'بەیانی کاتژمێر' p",nextWeek:"eeee 'کاتژمێر' p",other:"P"},hge=(n,e,t,r)=>Age[n],fge={narrow:["پ","د"],abbreviated:["پ-ز","د-ز"],wide:["پێش زاین","دوای زاین"]},mge={narrow:["1","2","3","4"],abbreviated:["چ1م","چ2م","چ3م","چ4م"],wide:["چارەگی یەکەم","چارەگی دووەم","چارەگی سێیەم","چارەگی چوارەم"]},pge={narrow:["ک-د","ش","ئا","ن","م","ح","ت","ئا","ئە","تش-ی","تش-د","ک-ی"],abbreviated:["کان-دوو","شوب","ئاد","نیس","مایس","حوز","تەم","ئاب","ئەل","تش-یەک","تش-دوو","کان-یەک"],wide:["کانوونی دووەم","شوبات","ئادار","نیسان","مایس","حوزەیران","تەمموز","ئاب","ئەیلول","تشرینی یەکەم","تشرینی دووەم","کانوونی یەکەم"]},gge={narrow:["ی-ش","د-ش","س-ش","چ-ش","پ-ش","هە","ش"],short:["یە-شە","دوو-شە","سێ-شە","چو-شە","پێ-شە","هەی","شە"],abbreviated:["یەک-شەم","دوو-شەم","سێ-شەم","چوار-شەم","پێنج-شەم","هەینی","شەمە"],wide:["یەک شەمە","دوو شەمە","سێ شەمە","چوار شەمە","پێنج شەمە","هەینی","شەمە"]},vge={narrow:{am:"پ",pm:"د",midnight:"ن-ش",noon:"ن",morning:"بەیانی",afternoon:"دوای نیوەڕۆ",evening:"ئێوارە",night:"شەو"},abbreviated:{am:"پ-ن",pm:"د-ن",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"بەیانی",afternoon:"دوای نیوەڕۆ",evening:"ئێوارە",night:"شەو"},wide:{am:"پێش نیوەڕۆ",pm:"دوای نیوەڕۆ",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"بەیانی",afternoon:"دوای نیوەڕۆ",evening:"ئێوارە",night:"شەو"}},yge={narrow:{am:"پ",pm:"د",midnight:"ن-ش",noon:"ن",morning:"لە بەیانیدا",afternoon:"لە دوای نیوەڕۆدا",evening:"لە ئێوارەدا",night:"لە شەودا"},abbreviated:{am:"پ-ن",pm:"د-ن",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"لە بەیانیدا",afternoon:"لە دوای نیوەڕۆدا",evening:"لە ئێوارەدا",night:"لە شەودا"},wide:{am:"پێش نیوەڕۆ",pm:"دوای نیوەڕۆ",midnight:"نیوە شەو",noon:"نیوەڕۆ",morning:"لە بەیانیدا",afternoon:"لە دوای نیوەڕۆدا",evening:"لە ئێوارەدا",night:"لە شەودا"}},wge=(n,e)=>String(n),bge={ordinalNumber:wge,era:K({values:fge,defaultWidth:"wide"}),quarter:K({values:mge,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:pge,defaultWidth:"wide"}),day:K({values:gge,defaultWidth:"wide"}),dayPeriod:K({values:vge,defaultWidth:"wide",formattingValues:yge,defaultFormattingWidth:"wide"})},_ge=/^(\d+)(th|st|nd|rd)?/i,xge=/\d+/i,Mge={narrow:/^(پ|د)/i,abbreviated:/^(پ-ز|د.ز)/i,wide:/^(پێش زاین| دوای زاین)/i},Sge={any:[/^د/g,/^پ/g]},Cge={narrow:/^[1234]/i,abbreviated:/^م[1234]چ/i,wide:/^(یەکەم|دووەم|سێیەم| چوارەم) (چارەگی)? quarter/i},Pge={wide:[/چارەگی یەکەم/,/چارەگی دووەم/,/چارەگی سيیەم/,/چارەگی چوارەم/],any:[/1/i,/2/i,/3/i,/4/i]},Ege={narrow:/^(ک-د|ش|ئا|ن|م|ح|ت|ئە|تش-ی|تش-د|ک-ی)/i,abbreviated:/^(کان-دوو|شوب|ئاد|نیس|مایس|حوز|تەم|ئاب|ئەل|تش-یەک|تش-دوو|کان-یەک)/i,wide:/^(کانوونی دووەم|شوبات|ئادار|نیسان|مایس|حوزەیران|تەمموز|ئاب|ئەیلول|تشرینی یەکەم|تشرینی دووەم|کانوونی یەکەم)/i},Bge={narrow:[/^ک-د/i,/^ش/i,/^ئا/i,/^ن/i,/^م/i,/^ح/i,/^ت/i,/^ئا/i,/^ئە/i,/^تش-ی/i,/^تش-د/i,/^ک-ی/i],any:[/^کان-دوو/i,/^شوب/i,/^ئاد/i,/^نیس/i,/^مایس/i,/^حوز/i,/^تەم/i,/^ئاب/i,/^ئەل/i,/^تش-یەک/i,/^تش-دوو/i,/^|کان-یەک/i]},Tge={narrow:/^(ش|ی|د|س|چ|پ|هە)/i,short:/^(یە-شە|دوو-شە|سێ-شە|چو-شە|پێ-شە|هە|شە)/i,abbreviated:/^(یەک-شەم|دوو-شەم|سێ-شەم|چوار-شەم|پێنخ-شەم|هەینی|شەمە)/i,wide:/^(یەک شەمە|دوو شەمە|سێ شەمە|چوار شەمە|پێنج شەمە|هەینی|شەمە)/i},kge={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ige={narrow:/^(پ|د|ن-ش|ن| (بەیانی|دوای نیوەڕۆ|ئێوارە|شەو))/i,abbreviated:/^(پ-ن|د-ن|نیوە شەو|نیوەڕۆ|بەیانی|دوای نیوەڕۆ|ئێوارە|شەو)/,wide:/^(پێش نیوەڕۆ|دوای نیوەڕۆ|نیوەڕۆ|نیوە شەو|لەبەیانیدا|لەدواینیوەڕۆدا|لە ئێوارەدا|لە شەودا)/,any:/^(پ|د|بەیانی|نیوەڕۆ|ئێوارە|شەو)/},Lge={any:{am:/^د/i,pm:/^پ/i,midnight:/^ن-ش/i,noon:/^ن/i,morning:/بەیانی/i,afternoon:/دواینیوەڕۆ/i,evening:/ئێوارە/i,night:/شەو/i}},Fge={ordinalNumber:Nt({matchPattern:_ge,parsePattern:xge,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:Mge,defaultMatchWidth:"wide",parsePatterns:Sge,defaultParseWidth:"any"}),quarter:X({matchPatterns:Cge,defaultMatchWidth:"wide",parsePatterns:Pge,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Ege,defaultMatchWidth:"wide",parsePatterns:Bge,defaultParseWidth:"any"}),day:X({matchPatterns:Tge,defaultMatchWidth:"wide",parsePatterns:kge,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Ige,defaultMatchWidth:"any",parsePatterns:Lge,defaultParseWidth:"any"})},Nge={code:"ckb",formatDistance:oge,formatLong:dge,formatRelative:hge,localize:bge,match:Fge,options:{weekStartsOn:0,firstWeekContainsDate:1}},Dge={lessThanXSeconds:{one:{regular:"méně než 1 sekunda",past:"před méně než 1 sekundou",future:"za méně než 1 sekundu"},few:{regular:"méně než {{count}} sekundy",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekundy"},many:{regular:"méně než {{count}} sekund",past:"před méně než {{count}} sekundami",future:"za méně než {{count}} sekund"}},xSeconds:{one:{regular:"1 sekunda",past:"před 1 sekundou",future:"za 1 sekundu"},few:{regular:"{{count}} sekundy",past:"před {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"před {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"půl minuty",past:"před půl minutou",future:"za půl minuty"}},lessThanXMinutes:{one:{regular:"méně než 1 minuta",past:"před méně než 1 minutou",future:"za méně než 1 minutu"},few:{regular:"méně než {{count}} minuty",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minuty"},many:{regular:"méně než {{count}} minut",past:"před méně než {{count}} minutami",future:"za méně než {{count}} minut"}},xMinutes:{one:{regular:"1 minuta",past:"před 1 minutou",future:"za 1 minutu"},few:{regular:"{{count}} minuty",past:"před {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"před {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"přibližně 1 hodina",past:"přibližně před 1 hodinou",future:"přibližně za 1 hodinu"},few:{regular:"přibližně {{count}} hodiny",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodiny"},many:{regular:"přibližně {{count}} hodin",past:"přibližně před {{count}} hodinami",future:"přibližně za {{count}} hodin"}},xHours:{one:{regular:"1 hodina",past:"před 1 hodinou",future:"za 1 hodinu"},few:{regular:"{{count}} hodiny",past:"před {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"před {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"1 den",past:"před 1 dnem",future:"za 1 den"},few:{regular:"{{count}} dny",past:"před {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dní",past:"před {{count}} dny",future:"za {{count}} dní"}},aboutXWeeks:{one:{regular:"přibližně 1 týden",past:"přibližně před 1 týdnem",future:"přibližně za 1 týden"},few:{regular:"přibližně {{count}} týdny",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdny"},many:{regular:"přibližně {{count}} týdnů",past:"přibližně před {{count}} týdny",future:"přibližně za {{count}} týdnů"}},xWeeks:{one:{regular:"1 týden",past:"před 1 týdnem",future:"za 1 týden"},few:{regular:"{{count}} týdny",past:"před {{count}} týdny",future:"za {{count}} týdny"},many:{regular:"{{count}} týdnů",past:"před {{count}} týdny",future:"za {{count}} týdnů"}},aboutXMonths:{one:{regular:"přibližně 1 měsíc",past:"přibližně před 1 měsícem",future:"přibližně za 1 měsíc"},few:{regular:"přibližně {{count}} měsíce",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíce"},many:{regular:"přibližně {{count}} měsíců",past:"přibližně před {{count}} měsíci",future:"přibližně za {{count}} měsíců"}},xMonths:{one:{regular:"1 měsíc",past:"před 1 měsícem",future:"za 1 měsíc"},few:{regular:"{{count}} měsíce",past:"před {{count}} měsíci",future:"za {{count}} měsíce"},many:{regular:"{{count}} měsíců",past:"před {{count}} měsíci",future:"za {{count}} měsíců"}},aboutXYears:{one:{regular:"přibližně 1 rok",past:"přibližně před 1 rokem",future:"přibližně za 1 rok"},few:{regular:"přibližně {{count}} roky",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roky"},many:{regular:"přibližně {{count}} roků",past:"přibližně před {{count}} roky",future:"přibližně za {{count}} roků"}},xYears:{one:{regular:"1 rok",past:"před 1 rokem",future:"za 1 rok"},few:{regular:"{{count}} roky",past:"před {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} roků",past:"před {{count}} roky",future:"za {{count}} roků"}},overXYears:{one:{regular:"více než 1 rok",past:"před více než 1 rokem",future:"za více než 1 rok"},few:{regular:"více než {{count}} roky",past:"před více než {{count}} roky",future:"za více než {{count}} roky"},many:{regular:"více než {{count}} roků",past:"před více než {{count}} roky",future:"za více než {{count}} roků"}},almostXYears:{one:{regular:"skoro 1 rok",past:"skoro před 1 rokem",future:"skoro za 1 rok"},few:{regular:"skoro {{count}} roky",past:"skoro před {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} roků",past:"skoro před {{count}} roky",future:"skoro za {{count}} roků"}}},Rge=(n,e,t)=>{let r;const i=Dge[n];i.type==="other"?r=i.other:e===1?r=i.one:e>1&&e<5?r=i.few:r=i.many;const a=(t==null?void 0:t.addSuffix)===!0,s=t==null?void 0:t.comparison;let o;return a&&s===-1?o=r.past:a&&s===1?o=r.future:o=r.regular,o.replace("{{count}}",String(e))},Uge={full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},Oge={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},Hge={full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Wge={date:we({formats:Uge,defaultWidth:"full"}),time:we({formats:Oge,defaultWidth:"full"}),dateTime:we({formats:Hge,defaultWidth:"full"})},Qge=["neděli","pondělí","úterý","středu","čtvrtek","pátek","sobotu"],$ge={lastWeek:"'poslední' eeee 've' p",yesterday:"'včera v' p",today:"'dnes v' p",tomorrow:"'zítra v' p",nextWeek:n=>{const e=n.getDay();return"'v "+Qge[e]+" o' p"},other:"P"},jge=(n,e)=>{const t=$ge[n];return typeof t=="function"?t(e):t},zge={narrow:["př. n. l.","n. l."],abbreviated:["př. n. l.","n. l."],wide:["před naším letopočtem","našeho letopočtu"]},Vge={narrow:["1","2","3","4"],abbreviated:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"],wide:["1. čtvrtletí","2. čtvrtletí","3. čtvrtletí","4. čtvrtletí"]},Gge={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"]},Kge={narrow:["L","Ú","B","D","K","Č","Č","S","Z","Ř","L","P"],abbreviated:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],wide:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"]},qge={narrow:["ne","po","út","st","čt","pá","so"],short:["ne","po","út","st","čt","pá","so"],abbreviated:["ned","pon","úte","stř","čtv","pát","sob"],wide:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"]},Xge={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},Yge={narrow:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"půlnoc",noon:"poledne",morning:"ráno",afternoon:"odpoledne",evening:"večer",night:"noc"}},Jge=(n,e)=>Number(n)+".",Zge={ordinalNumber:Jge,era:K({values:zge,defaultWidth:"wide"}),quarter:K({values:Vge,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Gge,defaultWidth:"wide",formattingValues:Kge,defaultFormattingWidth:"wide"}),day:K({values:qge,defaultWidth:"wide"}),dayPeriod:K({values:Xge,defaultWidth:"wide",formattingValues:Yge,defaultFormattingWidth:"wide"})},e1e=/^(\d+)\.?/i,t1e=/\d+/i,n1e={narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},r1e={any:[/^p[řr]/i,/^(po|n)/i]},i1e={narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},a1e={any:[/1/i,/2/i,/3/i,/4/i]},s1e={narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},o1e={narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},c1e={narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i},l1e={narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},u1e={any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},d1e={any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},A1e={ordinalNumber:Nt({matchPattern:e1e,parsePattern:t1e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:n1e,defaultMatchWidth:"wide",parsePatterns:r1e,defaultParseWidth:"any"}),quarter:X({matchPatterns:i1e,defaultMatchWidth:"wide",parsePatterns:a1e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:s1e,defaultMatchWidth:"wide",parsePatterns:o1e,defaultParseWidth:"any"}),day:X({matchPatterns:c1e,defaultMatchWidth:"wide",parsePatterns:l1e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:u1e,defaultMatchWidth:"any",parsePatterns:d1e,defaultParseWidth:"any"})},h1e={code:"cs",formatDistance:Rge,formatLong:Wge,formatRelative:jge,localize:Zge,match:A1e,options:{weekStartsOn:1,firstWeekContainsDate:4}},f1e={lessThanXSeconds:{one:"llai na eiliad",other:"llai na {{count}} eiliad"},xSeconds:{one:"1 eiliad",other:"{{count}} eiliad"},halfAMinute:"hanner munud",lessThanXMinutes:{one:"llai na munud",two:"llai na 2 funud",other:"llai na {{count}} munud"},xMinutes:{one:"1 munud",two:"2 funud",other:"{{count}} munud"},aboutXHours:{one:"tua 1 awr",other:"tua {{count}} awr"},xHours:{one:"1 awr",other:"{{count}} awr"},xDays:{one:"1 diwrnod",two:"2 ddiwrnod",other:"{{count}} diwrnod"},aboutXWeeks:{one:"tua 1 wythnos",two:"tua pythefnos",other:"tua {{count}} wythnos"},xWeeks:{one:"1 wythnos",two:"pythefnos",other:"{{count}} wythnos"},aboutXMonths:{one:"tua 1 mis",two:"tua 2 fis",other:"tua {{count}} mis"},xMonths:{one:"1 mis",two:"2 fis",other:"{{count}} mis"},aboutXYears:{one:"tua 1 flwyddyn",two:"tua 2 flynedd",other:"tua {{count}} mlynedd"},xYears:{one:"1 flwyddyn",two:"2 flynedd",other:"{{count}} mlynedd"},overXYears:{one:"dros 1 flwyddyn",two:"dros 2 flynedd",other:"dros {{count}} mlynedd"},almostXYears:{one:"bron 1 flwyddyn",two:"bron 2 flynedd",other:"bron {{count}} mlynedd"}},m1e=(n,e,t)=>{let r;const i=f1e[n];return typeof i=="string"?r=i:e===1?r=i.one:e===2&&i.two?r=i.two:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"mewn "+r:r+" yn ôl":r},p1e={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},g1e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},v1e={full:"{{date}} 'am' {{time}}",long:"{{date}} 'am' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},y1e={date:we({formats:p1e,defaultWidth:"full"}),time:we({formats:g1e,defaultWidth:"full"}),dateTime:we({formats:v1e,defaultWidth:"full"})},w1e={lastWeek:"eeee 'diwethaf am' p",yesterday:"'ddoe am' p",today:"'heddiw am' p",tomorrow:"'yfory am' p",nextWeek:"eeee 'am' p",other:"P"},b1e=(n,e,t,r)=>w1e[n],_1e={narrow:["C","O"],abbreviated:["CC","OC"],wide:["Cyn Crist","Ar ôl Crist"]},x1e={narrow:["1","2","3","4"],abbreviated:["Ch1","Ch2","Ch3","Ch4"],wide:["Chwarter 1af","2ail chwarter","3ydd chwarter","4ydd chwarter"]},M1e={narrow:["I","Ch","Ma","E","Mi","Me","G","A","Md","H","T","Rh"],abbreviated:["Ion","Chwe","Maw","Ebr","Mai","Meh","Gor","Aws","Med","Hyd","Tach","Rhag"],wide:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},S1e={narrow:["S","Ll","M","M","I","G","S"],short:["Su","Ll","Ma","Me","Ia","Gw","Sa"],abbreviated:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],wide:["dydd Sul","dydd Llun","dydd Mawrth","dydd Mercher","dydd Iau","dydd Gwener","dydd Sadwrn"]},C1e={narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"bore",afternoon:"prynhawn",evening:"gyda'r nos",night:"nos"}},P1e={narrow:{am:"b",pm:"h",midnight:"hn",noon:"hd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},abbreviated:{am:"yb",pm:"yh",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"},wide:{am:"y.b.",pm:"y.h.",midnight:"hanner nos",noon:"hanner dydd",morning:"yn y bore",afternoon:"yn y prynhawn",evening:"gyda'r nos",night:"yn y nos"}},E1e=(n,e)=>{const t=Number(n);if(t<20)switch(t){case 0:return t+"fed";case 1:return t+"af";case 2:return t+"ail";case 3:case 4:return t+"ydd";case 5:case 6:return t+"ed";case 7:case 8:case 9:case 10:case 12:case 15:case 18:return t+"fed";case 11:case 13:case 14:case 16:case 17:case 19:return t+"eg"}else if(t>=50&&t<=60||t===80||t>=100)return t+"fed";return t+"ain"},B1e={ordinalNumber:E1e,era:K({values:_1e,defaultWidth:"wide"}),quarter:K({values:x1e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:M1e,defaultWidth:"wide"}),day:K({values:S1e,defaultWidth:"wide"}),dayPeriod:K({values:C1e,defaultWidth:"wide",formattingValues:P1e,defaultFormattingWidth:"wide"})},T1e=/^(\d+)(af|ail|ydd|ed|fed|eg|ain)?/i,k1e=/\d+/i,I1e={narrow:/^(c|o)/i,abbreviated:/^(c\.?\s?c\.?|o\.?\s?c\.?)/i,wide:/^(cyn christ|ar ôl crist|ar ol crist)/i},L1e={wide:[/^c/i,/^(ar ôl crist|ar ol crist)/i],any:[/^c/i,/^o/i]},F1e={narrow:/^[1234]/i,abbreviated:/^ch[1234]/i,wide:/^(chwarter 1af)|([234](ail|ydd)? chwarter)/i},N1e={any:[/1/i,/2/i,/3/i,/4/i]},D1e={narrow:/^(i|ch|m|e|g|a|h|t|rh)/i,abbreviated:/^(ion|chwe|maw|ebr|mai|meh|gor|aws|med|hyd|tach|rhag)/i,wide:/^(ionawr|chwefror|mawrth|ebrill|mai|mehefin|gorffennaf|awst|medi|hydref|tachwedd|rhagfyr)/i},R1e={narrow:[/^i/i,/^ch/i,/^m/i,/^e/i,/^m/i,/^m/i,/^g/i,/^a/i,/^m/i,/^h/i,/^t/i,/^rh/i],any:[/^io/i,/^ch/i,/^maw/i,/^e/i,/^mai/i,/^meh/i,/^g/i,/^a/i,/^med/i,/^h/i,/^t/i,/^rh/i]},U1e={narrow:/^(s|ll|m|i|g)/i,short:/^(su|ll|ma|me|ia|gw|sa)/i,abbreviated:/^(sul|llun|maw|mer|iau|gwe|sad)/i,wide:/^dydd (sul|llun|mawrth|mercher|iau|gwener|sadwrn)/i},O1e={narrow:[/^s/i,/^ll/i,/^m/i,/^m/i,/^i/i,/^g/i,/^s/i],wide:[/^dydd su/i,/^dydd ll/i,/^dydd ma/i,/^dydd me/i,/^dydd i/i,/^dydd g/i,/^dydd sa/i],any:[/^su/i,/^ll/i,/^ma/i,/^me/i,/^i/i,/^g/i,/^sa/i]},H1e={narrow:/^(b|h|hn|hd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i,any:/^(y\.?\s?[bh]\.?|hanner nos|hanner dydd|(yn y|y|yr|gyda'r) (bore|prynhawn|nos|hwyr))/i},W1e={any:{am:/^b|(y\.?\s?b\.?)/i,pm:/^h|(y\.?\s?h\.?)|(yr hwyr)/i,midnight:/^hn|hanner nos/i,noon:/^hd|hanner dydd/i,morning:/bore/i,afternoon:/prynhawn/i,evening:/^gyda'r nos$/i,night:/blah/i}},Q1e={ordinalNumber:Nt({matchPattern:T1e,parsePattern:k1e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:I1e,defaultMatchWidth:"wide",parsePatterns:L1e,defaultParseWidth:"any"}),quarter:X({matchPatterns:F1e,defaultMatchWidth:"wide",parsePatterns:N1e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:D1e,defaultMatchWidth:"wide",parsePatterns:R1e,defaultParseWidth:"any"}),day:X({matchPatterns:U1e,defaultMatchWidth:"wide",parsePatterns:O1e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:H1e,defaultMatchWidth:"any",parsePatterns:W1e,defaultParseWidth:"any"})},$1e={code:"cy",formatDistance:m1e,formatLong:y1e,formatRelative:b1e,localize:B1e,match:Q1e,options:{weekStartsOn:0,firstWeekContainsDate:1}},j1e={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},z1e=(n,e,t)=>{let r;const i=j1e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"om "+r:r+" siden":r},V1e={full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},G1e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},K1e={full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},q1e={date:we({formats:V1e,defaultWidth:"full"}),time:we({formats:G1e,defaultWidth:"full"}),dateTime:we({formats:K1e,defaultWidth:"full"})},X1e={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},Y1e=(n,e,t,r)=>X1e[n],J1e={narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},Z1e={narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},eve={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},tve={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},nve={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},rve={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},ive=(n,e)=>Number(n)+".",ave={ordinalNumber:ive,era:K({values:J1e,defaultWidth:"wide"}),quarter:K({values:Z1e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:eve,defaultWidth:"wide"}),day:K({values:tve,defaultWidth:"wide"}),dayPeriod:K({values:nve,defaultWidth:"wide",formattingValues:rve,defaultFormattingWidth:"wide"})},sve=/^(\d+)(\.)?/i,ove=/\d+/i,cve={narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},lve={any:[/^f/i,/^(v|e)/i]},uve={narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},dve={any:[/1/i,/2/i,/3/i,/4/i]},Ave={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},hve={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},fve={narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},mve={narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},pve={narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},gve={any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},vve={ordinalNumber:Nt({matchPattern:sve,parsePattern:ove,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:cve,defaultMatchWidth:"wide",parsePatterns:lve,defaultParseWidth:"any"}),quarter:X({matchPatterns:uve,defaultMatchWidth:"wide",parsePatterns:dve,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Ave,defaultMatchWidth:"wide",parsePatterns:hve,defaultParseWidth:"any"}),day:X({matchPatterns:fve,defaultMatchWidth:"wide",parsePatterns:mve,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:pve,defaultMatchWidth:"any",parsePatterns:gve,defaultParseWidth:"any"})},yve={code:"da",formatDistance:z1e,formatLong:q1e,formatRelative:Y1e,localize:ave,match:vve,options:{weekStartsOn:1,firstWeekContainsDate:4}},vI={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},lU=(n,e,t)=>{let r;const i=t!=null&&t.addSuffix?vI[n].withPreposition:vI[n].standalone;return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:"vor "+r:r},wve={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},bve={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},_ve={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},uU={date:we({formats:wve,defaultWidth:"full"}),time:we({formats:bve,defaultWidth:"full"}),dateTime:we({formats:_ve,defaultWidth:"full"})},xve={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},dU=(n,e,t,r)=>xve[n],Mve={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},Sve={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},lM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Cve={narrow:lM.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:lM.wide},Pve={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},Eve={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},Bve={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},Tve=n=>Number(n)+".",kve={ordinalNumber:Tve,era:K({values:Mve,defaultWidth:"wide"}),quarter:K({values:Sve,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:lM,formattingValues:Cve,defaultWidth:"wide"}),day:K({values:Pve,defaultWidth:"wide"}),dayPeriod:K({values:Eve,defaultWidth:"wide",formattingValues:Bve,defaultFormattingWidth:"wide"})},Ive=/^(\d+)(\.)?/i,Lve=/\d+/i,Fve={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},Nve={any:[/^v/i,/^n/i]},Dve={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},Rve={any:[/1/i,/2/i,/3/i,/4/i]},Uve={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},Ove={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Hve={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},Wve={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},Qve={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},$ve={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},AU={ordinalNumber:Nt({matchPattern:Ive,parsePattern:Lve,valueCallback:n=>parseInt(n)}),era:X({matchPatterns:Fve,defaultMatchWidth:"wide",parsePatterns:Nve,defaultParseWidth:"any"}),quarter:X({matchPatterns:Dve,defaultMatchWidth:"wide",parsePatterns:Rve,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Uve,defaultMatchWidth:"wide",parsePatterns:Ove,defaultParseWidth:"any"}),day:X({matchPatterns:Hve,defaultMatchWidth:"wide",parsePatterns:Wve,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Qve,defaultMatchWidth:"wide",parsePatterns:$ve,defaultParseWidth:"any"})},jve={code:"de",formatDistance:lU,formatLong:uU,formatRelative:dU,localize:kve,match:AU,options:{weekStartsOn:1,firstWeekContainsDate:4}},zve={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},Vve={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},uM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jän","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Jänner","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Gve={narrow:uM.narrow,abbreviated:["Jän.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:uM.wide},Kve={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},qve={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},Xve={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},Yve=n=>Number(n)+".",Jve={ordinalNumber:Yve,era:K({values:zve,defaultWidth:"wide"}),quarter:K({values:Vve,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:uM,formattingValues:Gve,defaultWidth:"wide"}),day:K({values:Kve,defaultWidth:"wide"}),dayPeriod:K({values:qve,defaultWidth:"wide",formattingValues:Xve,defaultFormattingWidth:"wide"})},Zve={code:"de-AT",formatDistance:lU,formatLong:uU,formatRelative:dU,localize:Jve,match:AU,options:{weekStartsOn:1,firstWeekContainsDate:4}},eye={lessThanXSeconds:{one:"λιγότερο από ένα δευτερόλεπτο",other:"λιγότερο από {{count}} δευτερόλεπτα"},xSeconds:{one:"1 δευτερόλεπτο",other:"{{count}} δευτερόλεπτα"},halfAMinute:"μισό λεπτό",lessThanXMinutes:{one:"λιγότερο από ένα λεπτό",other:"λιγότερο από {{count}} λεπτά"},xMinutes:{one:"1 λεπτό",other:"{{count}} λεπτά"},aboutXHours:{one:"περίπου 1 ώρα",other:"περίπου {{count}} ώρες"},xHours:{one:"1 ώρα",other:"{{count}} ώρες"},xDays:{one:"1 ημέρα",other:"{{count}} ημέρες"},aboutXWeeks:{one:"περίπου 1 εβδομάδα",other:"περίπου {{count}} εβδομάδες"},xWeeks:{one:"1 εβδομάδα",other:"{{count}} εβδομάδες"},aboutXMonths:{one:"περίπου 1 μήνας",other:"περίπου {{count}} μήνες"},xMonths:{one:"1 μήνας",other:"{{count}} μήνες"},aboutXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"},xYears:{one:"1 χρόνο",other:"{{count}} χρόνια"},overXYears:{one:"πάνω από 1 χρόνο",other:"πάνω από {{count}} χρόνια"},almostXYears:{one:"περίπου 1 χρόνο",other:"περίπου {{count}} χρόνια"}},tye=(n,e,t)=>{let r;const i=eye[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"σε "+r:r+" πριν":r},nye={full:"EEEE, d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"d/M/yy"},rye={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},iye={full:"{{date}} - {{time}}",long:"{{date}} - {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aye={date:we({formats:nye,defaultWidth:"full"}),time:we({formats:rye,defaultWidth:"full"}),dateTime:we({formats:iye,defaultWidth:"full"})},sye={lastWeek:n=>{switch(n.getDay()){case 6:return"'το προηγούμενο' eeee 'στις' p";default:return"'την προηγούμενη' eeee 'στις' p"}},yesterday:"'χθες στις' p",today:"'σήμερα στις' p",tomorrow:"'αύριο στις' p",nextWeek:"eeee 'στις' p",other:"P"},oye=(n,e)=>{const t=sye[n];return typeof t=="function"?t(e):t},cye={narrow:["πΧ","μΧ"],abbreviated:["π.Χ.","μ.Χ."],wide:["προ Χριστού","μετά Χριστόν"]},lye={narrow:["1","2","3","4"],abbreviated:["Τ1","Τ2","Τ3","Τ4"],wide:["1ο τρίμηνο","2ο τρίμηνο","3ο τρίμηνο","4ο τρίμηνο"]},uye={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μάρ","Απρ","Μάι","Ιούν","Ιούλ","Αύγ","Σεπ","Οκτ","Νοέ","Δεκ"],wide:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"]},dye={narrow:["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],abbreviated:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],wide:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"]},Aye={narrow:["Κ","Δ","T","Τ","Π","Π","Σ"],short:["Κυ","Δε","Τρ","Τε","Πέ","Πα","Σά"],abbreviated:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"],wide:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},hye={narrow:{am:"πμ",pm:"μμ",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},abbreviated:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"},wide:{am:"π.μ.",pm:"μ.μ.",midnight:"μεσάνυχτα",noon:"μεσημέρι",morning:"πρωί",afternoon:"απόγευμα",evening:"βράδυ",night:"νύχτα"}},fye=(n,e)=>{const t=Number(n),r=e==null?void 0:e.unit;let i;return r==="year"||r==="month"?i="ος":r==="week"||r==="dayOfYear"||r==="day"||r==="hour"||r==="date"?i="η":i="ο",t+i},mye={ordinalNumber:fye,era:K({values:cye,defaultWidth:"wide"}),quarter:K({values:lye,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:uye,defaultWidth:"wide",formattingValues:dye,defaultFormattingWidth:"wide"}),day:K({values:Aye,defaultWidth:"wide"}),dayPeriod:K({values:hye,defaultWidth:"wide"})},pye=/^(\d+)(ος|η|ο)?/i,gye=/\d+/i,vye={narrow:/^(πΧ|μΧ)/i,abbreviated:/^(π\.?\s?χ\.?|π\.?\s?κ\.?\s?χ\.?|μ\.?\s?χ\.?|κ\.?\s?χ\.?)/i,wide:/^(προ Χριστο(ύ|υ)|πριν απ(ό|ο) την Κοιν(ή|η) Χρονολογ(ί|ι)α|μετ(ά|α) Χριστ(ό|ο)ν|Κοιν(ή|η) Χρονολογ(ί|ι)α)/i},yye={any:[/^π/i,/^(μ|κ)/i]},wye={narrow:/^[1234]/i,abbreviated:/^τ[1234]/i,wide:/^[1234]ο? τρ(ί|ι)μηνο/i},bye={any:[/1/i,/2/i,/3/i,/4/i]},_ye={narrow:/^[ιφμαμιιασονδ]/i,abbreviated:/^(ιαν|φεβ|μ[άα]ρ|απρ|μ[άα][ιΐ]|ιο[ύυ]ν|ιο[ύυ]λ|α[ύυ]γ|σεπ|οκτ|νο[έε]|δεκ)/i,wide:/^(μ[άα][ιΐ]|α[ύυ]γο[υύ]στ)(ος|ου)|(ιανου[άα]ρ|φεβρου[άα]ρ|μ[άα]ρτ|απρ[ίι]λ|ιο[ύυ]ν|ιο[ύυ]λ|σεπτ[έε]μβρ|οκτ[ώω]βρ|νο[έε]μβρ|δεκ[έε]μβρ)(ιος|ίου)/i},xye={narrow:[/^ι/i,/^φ/i,/^μ/i,/^α/i,/^μ/i,/^ι/i,/^ι/i,/^α/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i],any:[/^ια/i,/^φ/i,/^μ[άα]ρ/i,/^απ/i,/^μ[άα][ιΐ]/i,/^ιο[ύυ]ν/i,/^ιο[ύυ]λ/i,/^α[ύυ]/i,/^σ/i,/^ο/i,/^ν/i,/^δ/i]},Mye={narrow:/^[κδτπσ]/i,short:/^(κυ|δε|τρ|τε|π[εέ]|π[αά]|σ[αά])/i,abbreviated:/^(κυρ|δευ|τρι|τετ|πεμ|παρ|σαβ)/i,wide:/^(κυριακ(ή|η)|δευτ(έ|ε)ρα|τρ(ί|ι)τη|τετ(ά|α)ρτη|π(έ|ε)μπτη|παρασκευ(ή|η)|σ(ά|α)ββατο)/i},Sye={narrow:[/^κ/i,/^δ/i,/^τ/i,/^τ/i,/^π/i,/^π/i,/^σ/i],any:[/^κ/i,/^δ/i,/^τρ/i,/^τε/i,/^π[εέ]/i,/^π[αά]/i,/^σ/i]},Cye={narrow:/^(πμ|μμ|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i,any:/^([πμ]\.?\s?μ\.?|μεσ(ά|α)νυχτα|μεσημ(έ|ε)ρι|πρω(ί|ι)|απ(ό|ο)γευμα|βρ(ά|α)δυ|ν(ύ|υ)χτα)/i},Pye={any:{am:/^πμ|π\.\s?μ\./i,pm:/^μμ|μ\.\s?μ\./i,midnight:/^μεσάν/i,noon:/^μεσημ(έ|ε)/i,morning:/πρω(ί|ι)/i,afternoon:/απ(ό|ο)γευμα/i,evening:/βρ(ά|α)δυ/i,night:/ν(ύ|υ)χτα/i}},Eye={ordinalNumber:Nt({matchPattern:pye,parsePattern:gye,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:vye,defaultMatchWidth:"wide",parsePatterns:yye,defaultParseWidth:"any"}),quarter:X({matchPatterns:wye,defaultMatchWidth:"wide",parsePatterns:bye,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:_ye,defaultMatchWidth:"wide",parsePatterns:xye,defaultParseWidth:"any"}),day:X({matchPatterns:Mye,defaultMatchWidth:"wide",parsePatterns:Sye,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Cye,defaultMatchWidth:"any",parsePatterns:Pye,defaultParseWidth:"any"})},Bye={code:"el",formatDistance:tye,formatLong:aye,formatRelative:oye,localize:mye,match:Eye,options:{weekStartsOn:1,firstWeekContainsDate:4}},Tye={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},kye={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Iye={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Lye={date:we({formats:Tye,defaultWidth:"full"}),time:we({formats:kye,defaultWidth:"full"}),dateTime:we({formats:Iye,defaultWidth:"full"})},Fye={code:"en-AU",formatDistance:Sf,formatLong:Lye,formatRelative:NA,localize:FA,match:LA,options:{weekStartsOn:1,firstWeekContainsDate:4}},Nye={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"a second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"a minute",other:"{{count}} minutes"},aboutXHours:{one:"about an hour",other:"about {{count}} hours"},xHours:{one:"an hour",other:"{{count}} hours"},xDays:{one:"a day",other:"{{count}} days"},aboutXWeeks:{one:"about a week",other:"about {{count}} weeks"},xWeeks:{one:"a week",other:"{{count}} weeks"},aboutXMonths:{one:"about a month",other:"about {{count}} months"},xMonths:{one:"a month",other:"{{count}} months"},aboutXYears:{one:"about a year",other:"about {{count}} years"},xYears:{one:"a year",other:"{{count}} years"},overXYears:{one:"over a year",other:"over {{count}} years"},almostXYears:{one:"almost a year",other:"almost {{count}} years"}},Dye=(n,e,t)=>{let r;const i=Nye[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r},Rye={full:"EEEE, MMMM do, yyyy",long:"MMMM do, yyyy",medium:"MMM d, yyyy",short:"yyyy-MM-dd"},Uye={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Oye={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hye={date:we({formats:Rye,defaultWidth:"full"}),time:we({formats:Uye,defaultWidth:"full"}),dateTime:we({formats:Oye,defaultWidth:"full"})},Wye={code:"en-CA",formatDistance:Dye,formatLong:Hye,formatRelative:NA,localize:FA,match:LA,options:{weekStartsOn:0,firstWeekContainsDate:1}},Qye={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},$ye={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},jye={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hU={date:we({formats:Qye,defaultWidth:"full"}),time:we({formats:$ye,defaultWidth:"full"}),dateTime:we({formats:jye,defaultWidth:"full"})},zye={code:"en-GB",formatDistance:Sf,formatLong:hU,formatRelative:NA,localize:FA,match:LA,options:{weekStartsOn:1,firstWeekContainsDate:4}},Vye={code:"en-IE",formatDistance:Sf,formatLong:hU,formatRelative:NA,localize:FA,match:LA,options:{weekStartsOn:1,firstWeekContainsDate:4}},Gye={full:"EEEE, d MMMM yyyy",long:"d MMMM, yyyy",medium:"d MMM, yyyy",short:"dd/MM/yyyy"},Kye={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},qye={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xye={date:we({formats:Gye,defaultWidth:"full"}),time:we({formats:Kye,defaultWidth:"full"}),dateTime:we({formats:qye,defaultWidth:"full"})},Yye={code:"en-IN",formatDistance:Sf,formatLong:Xye,formatRelative:NA,localize:FA,match:LA,options:{weekStartsOn:1,firstWeekContainsDate:4}},Jye={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},Zye={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ewe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},twe={date:we({formats:Jye,defaultWidth:"full"}),time:we({formats:Zye,defaultWidth:"full"}),dateTime:we({formats:ewe,defaultWidth:"full"})},nwe={code:"en-NZ",formatDistance:Sf,formatLong:twe,formatRelative:NA,localize:FA,match:LA,options:{weekStartsOn:1,firstWeekContainsDate:4}},rwe={full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"yyyy/MM/dd"},iwe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},awe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},swe={date:we({formats:rwe,defaultWidth:"full"}),time:we({formats:iwe,defaultWidth:"full"}),dateTime:we({formats:awe,defaultWidth:"full"})},owe={code:"en-ZA",formatDistance:Sf,formatLong:swe,formatRelative:NA,localize:FA,match:LA,options:{weekStartsOn:0,firstWeekContainsDate:1}},cwe={lessThanXSeconds:{one:"malpli ol sekundo",other:"malpli ol {{count}} sekundoj"},xSeconds:{one:"1 sekundo",other:"{{count}} sekundoj"},halfAMinute:"duonminuto",lessThanXMinutes:{one:"malpli ol minuto",other:"malpli ol {{count}} minutoj"},xMinutes:{one:"1 minuto",other:"{{count}} minutoj"},aboutXHours:{one:"proksimume 1 horo",other:"proksimume {{count}} horoj"},xHours:{one:"1 horo",other:"{{count}} horoj"},xDays:{one:"1 tago",other:"{{count}} tagoj"},aboutXMonths:{one:"proksimume 1 monato",other:"proksimume {{count}} monatoj"},xWeeks:{one:"1 semajno",other:"{{count}} semajnoj"},aboutXWeeks:{one:"proksimume 1 semajno",other:"proksimume {{count}} semajnoj"},xMonths:{one:"1 monato",other:"{{count}} monatoj"},aboutXYears:{one:"proksimume 1 jaro",other:"proksimume {{count}} jaroj"},xYears:{one:"1 jaro",other:"{{count}} jaroj"},overXYears:{one:"pli ol 1 jaro",other:"pli ol {{count}} jaroj"},almostXYears:{one:"preskaŭ 1 jaro",other:"preskaŭ {{count}} jaroj"}},lwe=(n,e,t)=>{let r;const i=cwe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t!=null&&t.comparison&&t.comparison>0?"post "+r:"antaŭ "+r:r},uwe={full:"EEEE, do 'de' MMMM y",long:"y-MMMM-dd",medium:"y-MMM-dd",short:"yyyy-MM-dd"},dwe={full:"Ho 'horo kaj' m:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Awe={any:"{{date}} {{time}}"},hwe={date:we({formats:uwe,defaultWidth:"full"}),time:we({formats:dwe,defaultWidth:"full"}),dateTime:we({formats:Awe,defaultWidth:"any"})},fwe={lastWeek:"'pasinta' eeee 'je' p",yesterday:"'hieraŭ je' p",today:"'hodiaŭ je' p",tomorrow:"'morgaŭ je' p",nextWeek:"eeee 'je' p",other:"P"},mwe=(n,e,t,r)=>fwe[n],pwe={narrow:["aK","pK"],abbreviated:["a.K.E.","p.K.E."],wide:["antaŭ Komuna Erao","Komuna Erao"]},gwe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1-a kvaronjaro","2-a kvaronjaro","3-a kvaronjaro","4-a kvaronjaro"]},vwe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan","feb","mar","apr","maj","jun","jul","aŭg","sep","okt","nov","dec"],wide:["januaro","februaro","marto","aprilo","majo","junio","julio","aŭgusto","septembro","oktobro","novembro","decembro"]},ywe={narrow:["D","L","M","M","Ĵ","V","S"],short:["di","lu","ma","me","ĵa","ve","sa"],abbreviated:["dim","lun","mar","mer","ĵaŭ","ven","sab"],wide:["dimanĉo","lundo","mardo","merkredo","ĵaŭdo","vendredo","sabato"]},wwe={narrow:{am:"a",pm:"p",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},abbreviated:{am:"a.t.m.",pm:"p.t.m.",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"},wide:{am:"antaŭtagmeze",pm:"posttagmeze",midnight:"noktomezo",noon:"tagmezo",morning:"matene",afternoon:"posttagmeze",evening:"vespere",night:"nokte"}},bwe=n=>Number(n)+"-a",_we={ordinalNumber:bwe,era:K({values:pwe,defaultWidth:"wide"}),quarter:K({values:gwe,defaultWidth:"wide",argumentCallback:function(n){return Number(n)-1}}),month:K({values:vwe,defaultWidth:"wide"}),day:K({values:ywe,defaultWidth:"wide"}),dayPeriod:K({values:wwe,defaultWidth:"wide"})},xwe=/^(\d+)(-?a)?/i,Mwe=/\d+/i,Swe={narrow:/^([ap]k)/i,abbreviated:/^([ap]\.?\s?k\.?\s?e\.?)/i,wide:/^((antaǔ |post )?komuna erao)/i},Cwe={any:[/^a/i,/^[kp]/i]},Pwe={narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](-?a)? kvaronjaro/i},Ewe={any:[/1/i,/2/i,/3/i,/4/i]},Bwe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|a(ŭ|ux|uh|u)g|sep|okt|nov|dec)/i,wide:/^(januaro|februaro|marto|aprilo|majo|junio|julio|a(ŭ|ux|uh|u)gusto|septembro|oktobro|novembro|decembro)/i},Twe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^a(u|ŭ)/i,/^s/i,/^o/i,/^n/i,/^d/i]},kwe={narrow:/^[dlmĵjvs]/i,short:/^(di|lu|ma|me|(ĵ|jx|jh|j)a|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)|ven|sab)/i,wide:/^(diman(ĉ|cx|ch|c)o|lundo|mardo|merkredo|(ĵ|jx|jh|j)a(ŭ|ux|uh|u)do|vendredo|sabato)/i},Iwe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^(j|ĵ)/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^(j|ĵ)/i,/^v/i,/^s/i]},Lwe={narrow:/^([ap]|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,abbreviated:/^([ap][.\s]?t[.\s]?m[.\s]?|(posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo])/i,wide:/^(anta(ŭ|ux)tagmez|posttagmez|noktomez|tagmez|maten|vesper|nokt)[eo]/i},Fwe={any:{am:/^a/i,pm:/^p/i,midnight:/^noktom/i,noon:/^t/i,morning:/^m/i,afternoon:/^posttagmeze/i,evening:/^v/i,night:/^n/i}},Nwe={ordinalNumber:Nt({matchPattern:xwe,parsePattern:Mwe,valueCallback:function(n){return parseInt(n,10)}}),era:X({matchPatterns:Swe,defaultMatchWidth:"wide",parsePatterns:Cwe,defaultParseWidth:"any"}),quarter:X({matchPatterns:Pwe,defaultMatchWidth:"wide",parsePatterns:Ewe,defaultParseWidth:"any",valueCallback:function(n){return n+1}}),month:X({matchPatterns:Bwe,defaultMatchWidth:"wide",parsePatterns:Twe,defaultParseWidth:"any"}),day:X({matchPatterns:kwe,defaultMatchWidth:"wide",parsePatterns:Iwe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Lwe,defaultMatchWidth:"wide",parsePatterns:Fwe,defaultParseWidth:"any"})},Dwe={code:"eo",formatDistance:lwe,formatLong:hwe,formatRelative:mwe,localize:_we,match:Nwe,options:{weekStartsOn:1,firstWeekContainsDate:4}},Rwe={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},Uwe=(n,e,t)=>{let r;const i=Rwe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"en "+r:"hace "+r:r},Owe={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},Hwe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Wwe={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qwe={date:we({formats:Owe,defaultWidth:"full"}),time:we({formats:Hwe,defaultWidth:"full"}),dateTime:we({formats:Wwe,defaultWidth:"full"})},$we={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},jwe={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},zwe=(n,e,t,r)=>e.getHours()!==1?jwe[n]:$we[n],Vwe={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},Gwe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Kwe={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},qwe={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},Xwe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},Ywe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},Jwe=(n,e)=>Number(n)+"º",Zwe={ordinalNumber:Jwe,era:K({values:Vwe,defaultWidth:"wide"}),quarter:K({values:Gwe,defaultWidth:"wide",argumentCallback:n=>Number(n)-1}),month:K({values:Kwe,defaultWidth:"wide"}),day:K({values:qwe,defaultWidth:"wide"}),dayPeriod:K({values:Xwe,defaultWidth:"wide",formattingValues:Ywe,defaultFormattingWidth:"wide"})},ebe=/^(\d+)(º)?/i,tbe=/\d+/i,nbe={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},rbe={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},ibe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},abe={any:[/1/i,/2/i,/3/i,/4/i]},sbe={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},obe={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},cbe={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},lbe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},ube={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},dbe={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},Abe={ordinalNumber:Nt({matchPattern:ebe,parsePattern:tbe,valueCallback:function(n){return parseInt(n,10)}}),era:X({matchPatterns:nbe,defaultMatchWidth:"wide",parsePatterns:rbe,defaultParseWidth:"any"}),quarter:X({matchPatterns:ibe,defaultMatchWidth:"wide",parsePatterns:abe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:sbe,defaultMatchWidth:"wide",parsePatterns:obe,defaultParseWidth:"any"}),day:X({matchPatterns:cbe,defaultMatchWidth:"wide",parsePatterns:lbe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:ube,defaultMatchWidth:"any",parsePatterns:dbe,defaultParseWidth:"any"})},hbe={code:"es",formatDistance:Uwe,formatLong:Qwe,formatRelative:zwe,localize:Zwe,match:Abe,options:{weekStartsOn:1,firstWeekContainsDate:1}},yI={lessThanXSeconds:{standalone:{one:"vähem kui üks sekund",other:"vähem kui {{count}} sekundit"},withPreposition:{one:"vähem kui ühe sekundi",other:"vähem kui {{count}} sekundi"}},xSeconds:{standalone:{one:"üks sekund",other:"{{count}} sekundit"},withPreposition:{one:"ühe sekundi",other:"{{count}} sekundi"}},halfAMinute:{standalone:"pool minutit",withPreposition:"poole minuti"},lessThanXMinutes:{standalone:{one:"vähem kui üks minut",other:"vähem kui {{count}} minutit"},withPreposition:{one:"vähem kui ühe minuti",other:"vähem kui {{count}} minuti"}},xMinutes:{standalone:{one:"üks minut",other:"{{count}} minutit"},withPreposition:{one:"ühe minuti",other:"{{count}} minuti"}},aboutXHours:{standalone:{one:"umbes üks tund",other:"umbes {{count}} tundi"},withPreposition:{one:"umbes ühe tunni",other:"umbes {{count}} tunni"}},xHours:{standalone:{one:"üks tund",other:"{{count}} tundi"},withPreposition:{one:"ühe tunni",other:"{{count}} tunni"}},xDays:{standalone:{one:"üks päev",other:"{{count}} päeva"},withPreposition:{one:"ühe päeva",other:"{{count}} päeva"}},aboutXWeeks:{standalone:{one:"umbes üks nädal",other:"umbes {{count}} nädalat"},withPreposition:{one:"umbes ühe nädala",other:"umbes {{count}} nädala"}},xWeeks:{standalone:{one:"üks nädal",other:"{{count}} nädalat"},withPreposition:{one:"ühe nädala",other:"{{count}} nädala"}},aboutXMonths:{standalone:{one:"umbes üks kuu",other:"umbes {{count}} kuud"},withPreposition:{one:"umbes ühe kuu",other:"umbes {{count}} kuu"}},xMonths:{standalone:{one:"üks kuu",other:"{{count}} kuud"},withPreposition:{one:"ühe kuu",other:"{{count}} kuu"}},aboutXYears:{standalone:{one:"umbes üks aasta",other:"umbes {{count}} aastat"},withPreposition:{one:"umbes ühe aasta",other:"umbes {{count}} aasta"}},xYears:{standalone:{one:"üks aasta",other:"{{count}} aastat"},withPreposition:{one:"ühe aasta",other:"{{count}} aasta"}},overXYears:{standalone:{one:"rohkem kui üks aasta",other:"rohkem kui {{count}} aastat"},withPreposition:{one:"rohkem kui ühe aasta",other:"rohkem kui {{count}} aasta"}},almostXYears:{standalone:{one:"peaaegu üks aasta",other:"peaaegu {{count}} aastat"},withPreposition:{one:"peaaegu ühe aasta",other:"peaaegu {{count}} aasta"}}},fbe=(n,e,t)=>{const r=t!=null&&t.addSuffix?yI[n].withPreposition:yI[n].standalone;let i;return typeof r=="string"?i=r:e===1?i=r.one:i=r.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?i+" pärast":i+" eest":i},mbe={full:"EEEE, d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},pbe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},gbe={full:"{{date}} 'kell' {{time}}",long:"{{date}} 'kell' {{time}}",medium:"{{date}}. {{time}}",short:"{{date}}. {{time}}"},vbe={date:we({formats:mbe,defaultWidth:"full"}),time:we({formats:pbe,defaultWidth:"full"}),dateTime:we({formats:gbe,defaultWidth:"full"})},ybe={lastWeek:"'eelmine' eeee 'kell' p",yesterday:"'eile kell' p",today:"'täna kell' p",tomorrow:"'homme kell' p",nextWeek:"'järgmine' eeee 'kell' p",other:"P"},wbe=(n,e,t,r)=>ybe[n],bbe={narrow:["e.m.a","m.a.j"],abbreviated:["e.m.a","m.a.j"],wide:["enne meie ajaarvamist","meie ajaarvamise järgi"]},_be={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},wI={narrow:["J","V","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jaan","veebr","märts","apr","mai","juuni","juuli","aug","sept","okt","nov","dets"],wide:["jaanuar","veebruar","märts","aprill","mai","juuni","juuli","august","september","oktoober","november","detsember"]},bI={narrow:["P","E","T","K","N","R","L"],short:["P","E","T","K","N","R","L"],abbreviated:["pühap.","esmasp.","teisip.","kolmap.","neljap.","reede.","laup."],wide:["pühapäev","esmaspäev","teisipäev","kolmapäev","neljapäev","reede","laupäev"]},xbe={narrow:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},abbreviated:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"},wide:{am:"AM",pm:"PM",midnight:"kesköö",noon:"keskpäev",morning:"hommik",afternoon:"pärastlõuna",evening:"õhtu",night:"öö"}},Mbe={narrow:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},abbreviated:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"},wide:{am:"AM",pm:"PM",midnight:"keskööl",noon:"keskpäeval",morning:"hommikul",afternoon:"pärastlõunal",evening:"õhtul",night:"öösel"}},Sbe=(n,e)=>Number(n)+".",Cbe={ordinalNumber:Sbe,era:K({values:bbe,defaultWidth:"wide"}),quarter:K({values:_be,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:wI,defaultWidth:"wide",formattingValues:wI,defaultFormattingWidth:"wide"}),day:K({values:bI,defaultWidth:"wide",formattingValues:bI,defaultFormattingWidth:"wide"}),dayPeriod:K({values:xbe,defaultWidth:"wide",formattingValues:Mbe,defaultFormattingWidth:"wide"})},Pbe=/^\d+\./i,Ebe=/\d+/i,Bbe={narrow:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,abbreviated:/^(e\.m\.a|m\.a\.j|eKr|pKr)/i,wide:/^(enne meie ajaarvamist|meie ajaarvamise järgi|enne Kristust|pärast Kristust)/i},Tbe={any:[/^e/i,/^(m|p)/i]},kbe={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234](\.)? kvartal/i},Ibe={any:[/1/i,/2/i,/3/i,/4/i]},Lbe={narrow:/^[jvmasond]/i,abbreviated:/^(jaan|veebr|märts|apr|mai|juuni|juuli|aug|sept|okt|nov|dets)/i,wide:/^(jaanuar|veebruar|märts|aprill|mai|juuni|juuli|august|september|oktoober|november|detsember)/i},Fbe={narrow:[/^j/i,/^v/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^v/i,/^mär/i,/^ap/i,/^mai/i,/^juun/i,/^juul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Nbe={narrow:/^[petknrl]/i,short:/^[petknrl]/i,abbreviated:/^(püh?|esm?|tei?|kolm?|nel?|ree?|laup?)\.?/i,wide:/^(pühapäev|esmaspäev|teisipäev|kolmapäev|neljapäev|reede|laupäev)/i},Dbe={any:[/^p/i,/^e/i,/^t/i,/^k/i,/^n/i,/^r/i,/^l/i]},Rbe={any:/^(am|pm|keskööl?|keskpäev(al)?|hommik(ul)?|pärastlõunal?|õhtul?|öö(sel)?)/i},Ube={any:{am:/^a/i,pm:/^p/i,midnight:/^keskö/i,noon:/^keskp/i,morning:/hommik/i,afternoon:/pärastlõuna/i,evening:/õhtu/i,night:/öö/i}},Obe={ordinalNumber:Nt({matchPattern:Pbe,parsePattern:Ebe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:Bbe,defaultMatchWidth:"wide",parsePatterns:Tbe,defaultParseWidth:"any"}),quarter:X({matchPatterns:kbe,defaultMatchWidth:"wide",parsePatterns:Ibe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Lbe,defaultMatchWidth:"wide",parsePatterns:Fbe,defaultParseWidth:"any"}),day:X({matchPatterns:Nbe,defaultMatchWidth:"wide",parsePatterns:Dbe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Rbe,defaultMatchWidth:"any",parsePatterns:Ube,defaultParseWidth:"any"})},Hbe={code:"et",formatDistance:fbe,formatLong:vbe,formatRelative:wbe,localize:Cbe,match:Obe,options:{weekStartsOn:1,firstWeekContainsDate:4}},Wbe={lessThanXSeconds:{one:"segundo bat baino gutxiago",other:"{{count}} segundo baino gutxiago"},xSeconds:{one:"1 segundo",other:"{{count}} segundo"},halfAMinute:"minutu erdi",lessThanXMinutes:{one:"minutu bat baino gutxiago",other:"{{count}} minutu baino gutxiago"},xMinutes:{one:"1 minutu",other:"{{count}} minutu"},aboutXHours:{one:"1 ordu gutxi gorabehera",other:"{{count}} ordu gutxi gorabehera"},xHours:{one:"1 ordu",other:"{{count}} ordu"},xDays:{one:"1 egun",other:"{{count}} egun"},aboutXWeeks:{one:"aste 1 inguru",other:"{{count}} aste inguru"},xWeeks:{one:"1 aste",other:"{{count}} astean"},aboutXMonths:{one:"1 hilabete gutxi gorabehera",other:"{{count}} hilabete gutxi gorabehera"},xMonths:{one:"1 hilabete",other:"{{count}} hilabete"},aboutXYears:{one:"1 urte gutxi gorabehera",other:"{{count}} urte gutxi gorabehera"},xYears:{one:"1 urte",other:"{{count}} urte"},overXYears:{one:"1 urte baino gehiago",other:"{{count}} urte baino gehiago"},almostXYears:{one:"ia 1 urte",other:"ia {{count}} urte"}},Qbe=(n,e,t)=>{let r;const i=Wbe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"en "+r:"duela "+r:r},$be={full:"EEEE, y'ko' MMMM'ren' d'a' y'ren'",long:"y'ko' MMMM'ren' d'a'",medium:"y MMM d",short:"yy/MM/dd"},jbe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},zbe={full:"{{date}} 'tan' {{time}}",long:"{{date}} 'tan' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vbe={date:we({formats:$be,defaultWidth:"full"}),time:we({formats:jbe,defaultWidth:"full"}),dateTime:we({formats:zbe,defaultWidth:"full"})},Gbe={lastWeek:"'joan den' eeee, LT",yesterday:"'atzo,' p",today:"'gaur,' p",tomorrow:"'bihar,' p",nextWeek:"eeee, p",other:"P"},Kbe={lastWeek:"'joan den' eeee, p",yesterday:"'atzo,' p",today:"'gaur,' p",tomorrow:"'bihar,' p",nextWeek:"eeee, p",other:"P"},qbe=(n,e)=>e.getHours()!==1?Kbe[n]:Gbe[n],Xbe={narrow:["k.a.","k.o."],abbreviated:["k.a.","k.o."],wide:["kristo aurretik","kristo ondoren"]},Ybe={narrow:["1","2","3","4"],abbreviated:["1H","2H","3H","4H"],wide:["1. hiruhilekoa","2. hiruhilekoa","3. hiruhilekoa","4. hiruhilekoa"]},Jbe={narrow:["u","o","m","a","m","e","u","a","i","u","a","a"],abbreviated:["urt","ots","mar","api","mai","eka","uzt","abu","ira","urr","aza","abe"],wide:["urtarrila","otsaila","martxoa","apirila","maiatza","ekaina","uztaila","abuztua","iraila","urria","azaroa","abendua"]},Zbe={narrow:["i","a","a","a","o","o","l"],short:["ig","al","as","az","og","or","lr"],abbreviated:["iga","ast","ast","ast","ost","ost","lar"],wide:["igandea","astelehena","asteartea","asteazkena","osteguna","ostirala","larunbata"]},e0e={narrow:{am:"a",pm:"p",midnight:"ge",noon:"eg",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"},abbreviated:{am:"AM",pm:"PM",midnight:"gauerdia",noon:"eguerdia",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"},wide:{am:"a.m.",pm:"p.m.",midnight:"gauerdia",noon:"eguerdia",morning:"goiza",afternoon:"arratsaldea",evening:"arratsaldea",night:"gaua"}},t0e={narrow:{am:"a",pm:"p",midnight:"ge",noon:"eg",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"},abbreviated:{am:"AM",pm:"PM",midnight:"gauerdia",noon:"eguerdia",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"},wide:{am:"a.m.",pm:"p.m.",midnight:"gauerdia",noon:"eguerdia",morning:"goizean",afternoon:"arratsaldean",evening:"arratsaldean",night:"gauean"}},n0e=(n,e)=>Number(n)+".",r0e={ordinalNumber:n0e,era:K({values:Xbe,defaultWidth:"wide"}),quarter:K({values:Ybe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Jbe,defaultWidth:"wide"}),day:K({values:Zbe,defaultWidth:"wide"}),dayPeriod:K({values:e0e,defaultWidth:"wide",formattingValues:t0e,defaultFormattingWidth:"wide"})},i0e=/^(\d+)(.)?/i,a0e=/\d+/i,s0e={narrow:/^(k.a.|k.o.)/i,abbreviated:/^(k.a.|k.o.)/i,wide:/^(kristo aurretik|kristo ondoren)/i},o0e={narrow:[/^k.a./i,/^k.o./i],abbreviated:[/^(k.a.)/i,/^(k.o.)/i],wide:[/^(kristo aurretik)/i,/^(kristo ondoren)/i]},c0e={narrow:/^[1234]/i,abbreviated:/^[1234]H/i,wide:/^[1234](.)? hiruhilekoa/i},l0e={any:[/1/i,/2/i,/3/i,/4/i]},u0e={narrow:/^[uomaei]/i,abbreviated:/^(urt|ots|mar|api|mai|eka|uzt|abu|ira|urr|aza|abe)/i,wide:/^(urtarrila|otsaila|martxoa|apirila|maiatza|ekaina|uztaila|abuztua|iraila|urria|azaroa|abendua)/i},d0e={narrow:[/^u/i,/^o/i,/^m/i,/^a/i,/^m/i,/^e/i,/^u/i,/^a/i,/^i/i,/^u/i,/^a/i,/^a/i],any:[/^urt/i,/^ots/i,/^mar/i,/^api/i,/^mai/i,/^eka/i,/^uzt/i,/^abu/i,/^ira/i,/^urr/i,/^aza/i,/^abe/i]},A0e={narrow:/^[iaol]/i,short:/^(ig|al|as|az|og|or|lr)/i,abbreviated:/^(iga|ast|ast|ast|ost|ost|lar)/i,wide:/^(igandea|astelehena|asteartea|asteazkena|osteguna|ostirala|larunbata)/i},h0e={narrow:[/^i/i,/^a/i,/^a/i,/^a/i,/^o/i,/^o/i,/^l/i],short:[/^ig/i,/^al/i,/^as/i,/^az/i,/^og/i,/^or/i,/^lr/i],abbreviated:[/^iga/i,/^ast/i,/^ast/i,/^ast/i,/^ost/i,/^ost/i,/^lar/i],wide:[/^igandea/i,/^astelehena/i,/^asteartea/i,/^asteazkena/i,/^osteguna/i,/^ostirala/i,/^larunbata/i]},f0e={narrow:/^(a|p|ge|eg|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i,any:/^([ap]\.?\s?m\.?|gauerdia|eguerdia|((goiza|goizean)|arratsaldea|(gaua|gauean)))/i},m0e={narrow:{am:/^a/i,pm:/^p/i,midnight:/^ge/i,noon:/^eg/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i},any:{am:/^a/i,pm:/^p/i,midnight:/^gauerdia/i,noon:/^eguerdia/i,morning:/goiz/i,afternoon:/arratsaldea/i,evening:/arratsaldea/i,night:/gau/i}},p0e={ordinalNumber:Nt({matchPattern:i0e,parsePattern:a0e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:s0e,defaultMatchWidth:"wide",parsePatterns:o0e,defaultParseWidth:"wide"}),quarter:X({matchPatterns:c0e,defaultMatchWidth:"wide",parsePatterns:l0e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:u0e,defaultMatchWidth:"wide",parsePatterns:d0e,defaultParseWidth:"any"}),day:X({matchPatterns:A0e,defaultMatchWidth:"wide",parsePatterns:h0e,defaultParseWidth:"wide"}),dayPeriod:X({matchPatterns:f0e,defaultMatchWidth:"any",parsePatterns:m0e,defaultParseWidth:"any"})},g0e={code:"eu",formatDistance:Qbe,formatLong:Vbe,formatRelative:qbe,localize:r0e,match:p0e,options:{weekStartsOn:1,firstWeekContainsDate:1}},v0e={lessThanXSeconds:{one:"کمتر از یک ثانیه",other:"کمتر از {{count}} ثانیه"},xSeconds:{one:"1 ثانیه",other:"{{count}} ثانیه"},halfAMinute:"نیم دقیقه",lessThanXMinutes:{one:"کمتر از یک دقیقه",other:"کمتر از {{count}} دقیقه"},xMinutes:{one:"1 دقیقه",other:"{{count}} دقیقه"},aboutXHours:{one:"حدود 1 ساعت",other:"حدود {{count}} ساعت"},xHours:{one:"1 ساعت",other:"{{count}} ساعت"},xDays:{one:"1 روز",other:"{{count}} روز"},aboutXWeeks:{one:"حدود 1 هفته",other:"حدود {{count}} هفته"},xWeeks:{one:"1 هفته",other:"{{count}} هفته"},aboutXMonths:{one:"حدود 1 ماه",other:"حدود {{count}} ماه"},xMonths:{one:"1 ماه",other:"{{count}} ماه"},aboutXYears:{one:"حدود 1 سال",other:"حدود {{count}} سال"},xYears:{one:"1 سال",other:"{{count}} سال"},overXYears:{one:"بیشتر از 1 سال",other:"بیشتر از {{count}} سال"},almostXYears:{one:"نزدیک 1 سال",other:"نزدیک {{count}} سال"}},y0e=(n,e,t)=>{let r;const i=v0e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"در "+r:r+" قبل":r},w0e={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"yyyy/MM/dd"},b0e={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_0e={full:"{{date}} 'در' {{time}}",long:"{{date}} 'در' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},x0e={date:we({formats:w0e,defaultWidth:"full"}),time:we({formats:b0e,defaultWidth:"full"}),dateTime:we({formats:_0e,defaultWidth:"full"})},M0e={lastWeek:"eeee 'گذشته در' p",yesterday:"'دیروز در' p",today:"'امروز در' p",tomorrow:"'فردا در' p",nextWeek:"eeee 'در' p",other:"P"},S0e=(n,e,t,r)=>M0e[n],C0e={narrow:["ق","ب"],abbreviated:["ق.م.","ب.م."],wide:["قبل از میلاد","بعد از میلاد"]},P0e={narrow:["1","2","3","4"],abbreviated:["س‌م1","س‌م2","س‌م3","س‌م4"],wide:["سه‌ماهه 1","سه‌ماهه 2","سه‌ماهه 3","سه‌ماهه 4"]},E0e={narrow:["ژ","ف","م","آ","م","ج","ج","آ","س","ا","ن","د"],abbreviated:["ژانـ","فور","مارس","آپر","می","جون","جولـ","آگو","سپتـ","اکتـ","نوامـ","دسامـ"],wide:["ژانویه","فوریه","مارس","آپریل","می","جون","جولای","آگوست","سپتامبر","اکتبر","نوامبر","دسامبر"]},B0e={narrow:["ی","د","س","چ","پ","ج","ش"],short:["1ش","2ش","3ش","4ش","5ش","ج","ش"],abbreviated:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],wide:["یکشنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},T0e={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},k0e={narrow:{am:"ق",pm:"ب",midnight:"ن",noon:"ظ",morning:"ص",afternoon:"ب.ظ.",evening:"ع",night:"ش"},abbreviated:{am:"ق.ظ.",pm:"ب.ظ.",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"},wide:{am:"قبل‌ازظهر",pm:"بعدازظهر",midnight:"نیمه‌شب",noon:"ظهر",morning:"صبح",afternoon:"بعدازظهر",evening:"عصر",night:"شب"}},I0e=(n,e)=>String(n),L0e={ordinalNumber:I0e,era:K({values:C0e,defaultWidth:"wide"}),quarter:K({values:P0e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:E0e,defaultWidth:"wide"}),day:K({values:B0e,defaultWidth:"wide"}),dayPeriod:K({values:T0e,defaultWidth:"wide",formattingValues:k0e,defaultFormattingWidth:"wide"})},F0e=/^(\d+)(th|st|nd|rd)?/i,N0e=/\d+/i,D0e={narrow:/^(ق|ب)/i,abbreviated:/^(ق\.?\s?م\.?|ق\.?\s?د\.?\s?م\.?|م\.?\s?|د\.?\s?م\.?)/i,wide:/^(قبل از میلاد|قبل از دوران مشترک|میلادی|دوران مشترک|بعد از میلاد)/i},R0e={any:[/^قبل/i,/^بعد/i]},U0e={narrow:/^[1234]/i,abbreviated:/^س‌م[1234]/i,wide:/^سه‌ماهه [1234]/i},O0e={any:[/1/i,/2/i,/3/i,/4/i]},H0e={narrow:/^[جژفمآاماسند]/i,abbreviated:/^(جنو|ژانـ|ژانویه|فوریه|فور|مارس|آوریل|آپر|مه|می|ژوئن|جون|جول|جولـ|ژوئیه|اوت|آگو|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نوامـ|دسامبر|دسامـ|دسم)/i,wide:/^(ژانویه|جنوری|فبروری|فوریه|مارچ|مارس|آپریل|اپریل|ایپریل|آوریل|مه|می|ژوئن|جون|جولای|ژوئیه|آگست|اگست|آگوست|اوت|سپتمبر|سپتامبر|اکتبر|اکتوبر|نوامبر|نومبر|دسامبر|دسمبر)/i},W0e={narrow:[/^(ژ|ج)/i,/^ف/i,/^م/i,/^(آ|ا)/i,/^م/i,/^(ژ|ج)/i,/^(ج|ژ)/i,/^(آ|ا)/i,/^س/i,/^ا/i,/^ن/i,/^د/i],any:[/^ژا/i,/^ف/i,/^ما/i,/^آپ/i,/^(می|مه)/i,/^(ژوئن|جون)/i,/^(ژوئی|جول)/i,/^(اوت|آگ)/i,/^س/i,/^(اوک|اک)/i,/^ن/i,/^د/i]},Q0e={narrow:/^[شیدسچپج]/i,short:/^(ش|ج|1ش|2ش|3ش|4ش|5ش)/i,abbreviated:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i,wide:/^(یکشنبه|دوشنبه|سه‌شنبه|چهارشنبه|پنج‌شنبه|جمعه|شنبه)/i},$0e={narrow:[/^ی/i,/^دو/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^(ی|1ش|یکشنبه)/i,/^(د|2ش|دوشنبه)/i,/^(س|3ش|سه‌شنبه)/i,/^(چ|4ش|چهارشنبه)/i,/^(پ|5ش|پنجشنبه)/i,/^(ج|جمعه)/i,/^(ش|شنبه)/i]},j0e={narrow:/^(ب|ق|ن|ظ|ص|ب.ظ.|ع|ش)/i,abbreviated:/^(ق.ظ.|ب.ظ.|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i,wide:/^(قبل‌ازظهر|نیمه‌شب|ظهر|صبح|بعدازظهر|عصر|شب)/i},z0e={any:{am:/^(ق|ق.ظ.|قبل‌ازظهر)/i,pm:/^(ب|ب.ظ.|بعدازظهر)/i,midnight:/^(‌نیمه‌شب|ن)/i,noon:/^(ظ|ظهر)/i,morning:/(ص|صبح)/i,afternoon:/(ب|ب.ظ.|بعدازظهر)/i,evening:/(ع|عصر)/i,night:/(ش|شب)/i}},V0e={ordinalNumber:Nt({matchPattern:F0e,parsePattern:N0e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:D0e,defaultMatchWidth:"wide",parsePatterns:R0e,defaultParseWidth:"any"}),quarter:X({matchPatterns:U0e,defaultMatchWidth:"wide",parsePatterns:O0e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:H0e,defaultMatchWidth:"wide",parsePatterns:W0e,defaultParseWidth:"any"}),day:X({matchPatterns:Q0e,defaultMatchWidth:"wide",parsePatterns:$0e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:j0e,defaultMatchWidth:"wide",parsePatterns:z0e,defaultParseWidth:"any"})},G0e={code:"fa-IR",formatDistance:y0e,formatLong:x0e,formatRelative:S0e,localize:L0e,match:V0e,options:{weekStartsOn:6,firstWeekContainsDate:1}};function _I(n){return n.replace(/sekuntia?/,"sekunnin")}function xI(n){return n.replace(/minuuttia?/,"minuutin")}function MI(n){return n.replace(/tuntia?/,"tunnin")}function K0e(n){return n.replace(/päivää?/,"päivän")}function SI(n){return n.replace(/(viikko|viikkoa)/,"viikon")}function CI(n){return n.replace(/(kuukausi|kuukautta)/,"kuukauden")}function g1(n){return n.replace(/(vuosi|vuotta)/,"vuoden")}const q0e={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:_I},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:_I},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:n=>"puolen minuutin"},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:xI},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:xI},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:MI},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:MI},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:K0e},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:SI},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:SI},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:CI},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:CI},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:g1},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:g1},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:g1},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:g1}},X0e=(n,e,t)=>{const r=q0e[n],i=e===1?r.one:r.other.replace("{{count}}",String(e));return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r.futureTense(i)+" kuluttua":i+" sitten":i},Y0e={full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},J0e={full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},Z0e={full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},e_e={date:we({formats:Y0e,defaultWidth:"full"}),time:we({formats:J0e,defaultWidth:"full"}),dateTime:we({formats:Z0e,defaultWidth:"full"})},t_e={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},n_e=(n,e,t,r)=>t_e[n],r_e={narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},i_e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},dM={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},a_e={narrow:dM.narrow,abbreviated:dM.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},jv={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},s_e={narrow:jv.narrow,short:jv.short,abbreviated:jv.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},o_e={narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},c_e=(n,e)=>Number(n)+".",l_e={ordinalNumber:c_e,era:K({values:r_e,defaultWidth:"wide"}),quarter:K({values:i_e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:dM,defaultWidth:"wide",formattingValues:a_e,defaultFormattingWidth:"wide"}),day:K({values:jv,defaultWidth:"wide",formattingValues:s_e,defaultFormattingWidth:"wide"}),dayPeriod:K({values:o_e,defaultWidth:"wide"})},u_e=/^(\d+)(\.)/i,d_e=/\d+/i,A_e={narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},h_e={any:[/^e/i,/^j/i]},f_e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},m_e={any:[/1/i,/2/i,/3/i,/4/i]},p_e={narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},g_e={narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},v_e={narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},y_e={narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},w_e={narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},b_e={any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},__e={ordinalNumber:Nt({matchPattern:u_e,parsePattern:d_e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:A_e,defaultMatchWidth:"wide",parsePatterns:h_e,defaultParseWidth:"any"}),quarter:X({matchPatterns:f_e,defaultMatchWidth:"wide",parsePatterns:m_e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:p_e,defaultMatchWidth:"wide",parsePatterns:g_e,defaultParseWidth:"any"}),day:X({matchPatterns:v_e,defaultMatchWidth:"wide",parsePatterns:y_e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:w_e,defaultMatchWidth:"any",parsePatterns:b_e,defaultParseWidth:"any"})},x_e={code:"fi",formatDistance:X0e,formatLong:e_e,formatRelative:n_e,localize:l_e,match:__e,options:{weekStartsOn:1,firstWeekContainsDate:4}},M_e={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},QC=(n,e,t)=>{let r;const i=M_e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"dans "+r:"il y a "+r:r},S_e={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},C_e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},P_e={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},E_e={date:we({formats:S_e,defaultWidth:"full"}),time:we({formats:C_e,defaultWidth:"full"}),dateTime:we({formats:P_e,defaultWidth:"full"})},B_e={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},fU=(n,e,t,r)=>B_e[n],T_e={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},k_e={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},I_e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},L_e={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},F_e={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},N_e=(n,e)=>{const t=Number(n),r=e==null?void 0:e.unit;if(t===0)return"0";const i=["year","week","hour","minute","second"];let a;return t===1?a=r&&i.includes(r)?"ère":"er":a="ème",t+a},D_e=["MMM","MMMM"],$C={preprocessor:(n,e)=>n.getDate()===1||!e.some(r=>r.isToken&&D_e.includes(r.value))?e:e.map(r=>r.isToken&&r.value==="do"?{isToken:!0,value:"d"}:r),ordinalNumber:N_e,era:K({values:T_e,defaultWidth:"wide"}),quarter:K({values:k_e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:I_e,defaultWidth:"wide"}),day:K({values:L_e,defaultWidth:"wide"}),dayPeriod:K({values:F_e,defaultWidth:"wide"})},R_e=/^(\d+)(ième|ère|ème|er|e)?/i,U_e=/\d+/i,O_e={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},H_e={any:[/^av/i,/^ap/i]},W_e={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},Q_e={any:[/1/i,/2/i,/3/i,/4/i]},$_e={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},j_e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},z_e={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},V_e={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},G_e={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},K_e={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},jC={ordinalNumber:Nt({matchPattern:R_e,parsePattern:U_e,valueCallback:n=>parseInt(n)}),era:X({matchPatterns:O_e,defaultMatchWidth:"wide",parsePatterns:H_e,defaultParseWidth:"any"}),quarter:X({matchPatterns:W_e,defaultMatchWidth:"wide",parsePatterns:Q_e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:$_e,defaultMatchWidth:"wide",parsePatterns:j_e,defaultParseWidth:"any"}),day:X({matchPatterns:z_e,defaultMatchWidth:"wide",parsePatterns:V_e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:G_e,defaultMatchWidth:"any",parsePatterns:K_e,defaultParseWidth:"any"})},q_e={code:"fr",formatDistance:QC,formatLong:E_e,formatRelative:fU,localize:$C,match:jC,options:{weekStartsOn:1,firstWeekContainsDate:4}},X_e={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},Y_e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},J_e={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Z_e={date:we({formats:X_e,defaultWidth:"full"}),time:we({formats:Y_e,defaultWidth:"full"}),dateTime:we({formats:J_e,defaultWidth:"full"})},exe={code:"fr-CA",formatDistance:QC,formatLong:Z_e,formatRelative:fU,localize:$C,match:jC,options:{weekStartsOn:0,firstWeekContainsDate:1}},txe={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},nxe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},rxe={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ixe={date:we({formats:txe,defaultWidth:"full"}),time:we({formats:nxe,defaultWidth:"full"}),dateTime:we({formats:rxe,defaultWidth:"full"})},axe={lastWeek:"eeee 'la semaine dernière à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'la semaine prochaine à' p",other:"P"},sxe=(n,e,t,r)=>axe[n],oxe={code:"fr-CH",formatDistance:QC,formatLong:ixe,formatRelative:sxe,localize:$C,match:jC,options:{weekStartsOn:1,firstWeekContainsDate:4}},cxe={lessThanXSeconds:{one:"minder as 1 sekonde",other:"minder as {{count}} sekonden"},xSeconds:{one:"1 sekonde",other:"{{count}} sekonden"},halfAMinute:"oardel minút",lessThanXMinutes:{one:"minder as 1 minút",other:"minder as {{count}} minuten"},xMinutes:{one:"1 minút",other:"{{count}} minuten"},aboutXHours:{one:"sawat 1 oere",other:"sawat {{count}} oere"},xHours:{one:"1 oere",other:"{{count}} oere"},xDays:{one:"1 dei",other:"{{count}} dagen"},aboutXWeeks:{one:"sawat 1 wike",other:"sawat {{count}} wiken"},xWeeks:{one:"1 wike",other:"{{count}} wiken"},aboutXMonths:{one:"sawat 1 moanne",other:"sawat {{count}} moannen"},xMonths:{one:"1 moanne",other:"{{count}} moannen"},aboutXYears:{one:"sawat 1 jier",other:"sawat {{count}} jier"},xYears:{one:"1 jier",other:"{{count}} jier"},overXYears:{one:"mear as 1 jier",other:"mear as {{count}}s jier"},almostXYears:{one:"hast 1 jier",other:"hast {{count}} jier"}},lxe=(n,e,t)=>{let r;const i=cxe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"oer "+r:r+" lyn":r},uxe={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},dxe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Axe={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hxe={date:we({formats:uxe,defaultWidth:"full"}),time:we({formats:dxe,defaultWidth:"full"}),dateTime:we({formats:Axe,defaultWidth:"full"})},fxe={lastWeek:"'ôfrûne' eeee 'om' p",yesterday:"'juster om' p",today:"'hjoed om' p",tomorrow:"'moarn om' p",nextWeek:"eeee 'om' p",other:"P"},mxe=(n,e,t,r)=>fxe[n],pxe={narrow:["f.K.","n.K."],abbreviated:["f.Kr.","n.Kr."],wide:["foar Kristus","nei Kristus"]},gxe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e fearnsjier","2e fearnsjier","3e fearnsjier","4e fearnsjier"]},vxe={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mrt.","apr.","mai.","jun.","jul.","aug.","sep.","okt.","nov.","des."],wide:["jannewaris","febrewaris","maart","april","maaie","juny","july","augustus","septimber","oktober","novimber","desimber"]},yxe={narrow:["s","m","t","w","t","f","s"],short:["si","mo","ti","wo","to","fr","so"],abbreviated:["snein","moa","tii","woa","ton","fre","sneon"],wide:["snein","moandei","tiisdei","woansdei","tongersdei","freed","sneon"]},wxe={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"jûns",night:"nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"jûns",night:"nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"middei",morning:"moarns",afternoon:"middeis",evening:"jûns",night:"nachts"}},bxe=(n,e)=>Number(n)+"e",_xe={ordinalNumber:bxe,era:K({values:pxe,defaultWidth:"wide"}),quarter:K({values:gxe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:vxe,defaultWidth:"wide"}),day:K({values:yxe,defaultWidth:"wide"}),dayPeriod:K({values:wxe,defaultWidth:"wide"})},xxe=/^(\d+)e?/i,Mxe=/\d+/i,Sxe={narrow:/^([fn]\.? ?K\.?)/,abbreviated:/^([fn]\. ?Kr\.?)/,wide:/^((foar|nei) Kristus)/},Cxe={any:[/^f/,/^n/]},Pxe={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e fearnsjier/i},Exe={any:[/1/i,/2/i,/3/i,/4/i]},Bxe={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mai.|jun.|jul.|aug.|sep.|okt.|nov.|des.)/i,wide:/^(jannewaris|febrewaris|maart|april|maaie|juny|july|augustus|septimber|oktober|novimber|desimber)/i},Txe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^des/i]},kxe={narrow:/^[smtwf]/i,short:/^(si|mo|ti|wo|to|fr|so)/i,abbreviated:/^(snein|moa|tii|woa|ton|fre|sneon)/i,wide:/^(snein|moandei|tiisdei|woansdei|tongersdei|freed|sneon)/i},Ixe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^sn/i,/^mo/i,/^ti/i,/^wo/i,/^to/i,/^fr/i,/^sn/i]},Lxe={any:/^(am|pm|middernacht|middeis|moarns|middei|jûns|nachts)/i},Fxe={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^middei/i,morning:/moarns/i,afternoon:/^middeis/i,evening:/jûns/i,night:/nachts/i}},Nxe={ordinalNumber:Nt({matchPattern:xxe,parsePattern:Mxe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:Sxe,defaultMatchWidth:"wide",parsePatterns:Cxe,defaultParseWidth:"any"}),quarter:X({matchPatterns:Pxe,defaultMatchWidth:"wide",parsePatterns:Exe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Bxe,defaultMatchWidth:"wide",parsePatterns:Txe,defaultParseWidth:"any"}),day:X({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Ixe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Lxe,defaultMatchWidth:"any",parsePatterns:Fxe,defaultParseWidth:"any"})},Dxe={code:"fy",formatDistance:lxe,formatLong:hxe,formatRelative:mxe,localize:_xe,match:Nxe,options:{weekStartsOn:1,firstWeekContainsDate:4}},Rxe={lessThanXSeconds:{one:"nas lugha na diog",other:"nas lugha na {{count}} diogan"},xSeconds:{one:"1 diog",two:"2 dhiog",twenty:"20 diog",other:"{{count}} diogan"},halfAMinute:"leth mhionaid",lessThanXMinutes:{one:"nas lugha na mionaid",other:"nas lugha na {{count}} mionaidean"},xMinutes:{one:"1 mionaid",two:"2 mhionaid",twenty:"20 mionaid",other:"{{count}} mionaidean"},aboutXHours:{one:"mu uair de thìde",other:"mu {{count}} uairean de thìde"},xHours:{one:"1 uair de thìde",two:"2 uair de thìde",twenty:"20 uair de thìde",other:"{{count}} uairean de thìde"},xDays:{one:"1 là",other:"{{count}} là"},aboutXWeeks:{one:"mu 1 seachdain",other:"mu {{count}} seachdainean"},xWeeks:{one:"1 seachdain",other:"{{count}} seachdainean"},aboutXMonths:{one:"mu mhìos",other:"mu {{count}} mìosan"},xMonths:{one:"1 mìos",other:"{{count}} mìosan"},aboutXYears:{one:"mu bhliadhna",other:"mu {{count}} bliadhnaichean"},xYears:{one:"1 bhliadhna",other:"{{count}} bliadhna"},overXYears:{one:"còrr is bliadhna",other:"còrr is {{count}} bliadhnaichean"},almostXYears:{one:"cha mhòr bliadhna",other:"cha mhòr {{count}} bliadhnaichean"}},Uxe=(n,e,t)=>{let r;const i=Rxe[n];return typeof i=="string"?r=i:e===1?r=i.one:e===2&&i.two?r=i.two:e===20&&i.twenty?r=i.twenty:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"ann an "+r:"o chionn "+r:r},Oxe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Hxe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wxe={full:"{{date}} 'aig' {{time}}",long:"{{date}} 'aig' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qxe={date:we({formats:Oxe,defaultWidth:"full"}),time:we({formats:Hxe,defaultWidth:"full"}),dateTime:we({formats:Wxe,defaultWidth:"full"})},$xe={lastWeek:"'mu dheireadh' eeee 'aig' p",yesterday:"'an-dè aig' p",today:"'an-diugh aig' p",tomorrow:"'a-màireach aig' p",nextWeek:"eeee 'aig' p",other:"P"},jxe=(n,e,t,r)=>$xe[n],zxe={narrow:["R","A"],abbreviated:["RC","AD"],wide:["ro Chrìosta","anno domini"]},Vxe={narrow:["1","2","3","4"],abbreviated:["C1","C2","C3","C4"],wide:["a' chiad chairteal","an dàrna cairteal","an treas cairteal","an ceathramh cairteal"]},Gxe={narrow:["F","G","M","G","C","Ò","I","L","S","D","S","D"],abbreviated:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],wide:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"]},Kxe={narrow:["D","L","M","C","A","H","S"],short:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],abbreviated:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],wide:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"]},qxe={narrow:{am:"m",pm:"f",midnight:"m.o.",noon:"m.l.",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"},abbreviated:{am:"M.",pm:"F.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"},wide:{am:"m.",pm:"f.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"madainn",afternoon:"feasgar",evening:"feasgar",night:"oidhche"}},Xxe={narrow:{am:"m",pm:"f",midnight:"m.o.",noon:"m.l.",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"},abbreviated:{am:"M.",pm:"F.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"},wide:{am:"m.",pm:"f.",midnight:"meadhan oidhche",noon:"meadhan là",morning:"sa mhadainn",afternoon:"feasgar",evening:"feasgar",night:"air an oidhche"}},Yxe=n=>{const e=Number(n),t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"d";case 2:return e+"na"}return t===12?e+"na":e+"mh"},Jxe={ordinalNumber:Yxe,era:K({values:zxe,defaultWidth:"wide"}),quarter:K({values:Vxe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Gxe,defaultWidth:"wide"}),day:K({values:Kxe,defaultWidth:"wide"}),dayPeriod:K({values:qxe,defaultWidth:"wide",formattingValues:Xxe,defaultFormattingWidth:"wide"})},Zxe=/^(\d+)(d|na|tr|mh)?/i,e2e=/\d+/i,t2e={narrow:/^(r|a)/i,abbreviated:/^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i,wide:/^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i},n2e={any:[/^b/i,/^(a|c)/i]},r2e={narrow:/^[1234]/i,abbreviated:/^c[1234]/i,wide:/^[1234](cd|na|tr|mh)? cairteal/i},i2e={any:[/1/i,/2/i,/3/i,/4/i]},a2e={narrow:/^[fgmcòilsd]/i,abbreviated:/^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i,wide:/^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i},s2e={narrow:[/^f/i,/^g/i,/^m/i,/^g/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^s/i,/^d/i,/^s/i,/^d/i],any:[/^fa/i,/^ge/i,/^mà/i,/^gi/i,/^c/i,/^ò/i,/^i/i,/^l/i,/^su/i,/^d/i,/^sa/i,/^d/i]},o2e={narrow:/^[dlmcahs]/i,short:/^(dò|lu|mà|ci|ar|ha|sa)/i,abbreviated:/^(did|dil|dim|dic|dia|dih|dis)/i,wide:/^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i},c2e={narrow:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i],any:[/^d/i,/^l/i,/^m/i,/^c/i,/^a/i,/^h/i,/^s/i]},l2e={narrow:/^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i,any:/^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i},u2e={any:{am:/^m/i,pm:/^f/i,midnight:/^meadhan oidhche/i,noon:/^meadhan là/i,morning:/sa mhadainn/i,afternoon:/feasgar/i,evening:/feasgar/i,night:/air an oidhche/i}},d2e={ordinalNumber:Nt({matchPattern:Zxe,parsePattern:e2e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:t2e,defaultMatchWidth:"wide",parsePatterns:n2e,defaultParseWidth:"any"}),quarter:X({matchPatterns:r2e,defaultMatchWidth:"wide",parsePatterns:i2e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:a2e,defaultMatchWidth:"wide",parsePatterns:s2e,defaultParseWidth:"any"}),day:X({matchPatterns:o2e,defaultMatchWidth:"wide",parsePatterns:c2e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:l2e,defaultMatchWidth:"any",parsePatterns:u2e,defaultParseWidth:"any"})},A2e={code:"gd",formatDistance:Uxe,formatLong:Qxe,formatRelative:jxe,localize:Jxe,match:d2e,options:{weekStartsOn:0,firstWeekContainsDate:1}},h2e={lessThanXSeconds:{one:"menos dun segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos dun minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"arredor dunha hora",other:"arredor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"arredor dunha semana",other:"arredor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"arredor de 1 mes",other:"arredor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"arredor dun ano",other:"arredor de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"máis dun ano",other:"máis de {{count}} anos"},almostXYears:{one:"case un ano",other:"case {{count}} anos"}},f2e=(n,e,t)=>{let r;const i=h2e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"en "+r:"hai "+r:r},m2e={full:"EEEE, d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},p2e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},g2e={full:"{{date}} 'ás' {{time}}",long:"{{date}} 'ás' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},v2e={date:we({formats:m2e,defaultWidth:"full"}),time:we({formats:p2e,defaultWidth:"full"}),dateTime:we({formats:g2e,defaultWidth:"full"})},y2e={lastWeek:"'o' eeee 'pasado á' LT",yesterday:"'onte á' p",today:"'hoxe á' p",tomorrow:"'mañá á' p",nextWeek:"eeee 'á' p",other:"P"},w2e={lastWeek:"'o' eeee 'pasado ás' p",yesterday:"'onte ás' p",today:"'hoxe ás' p",tomorrow:"'mañá ás' p",nextWeek:"eeee 'ás' p",other:"P"},b2e=(n,e,t,r)=>e.getHours()!==1?w2e[n]:y2e[n],_2e={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","despois de cristo"]},x2e={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},M2e={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["xan","feb","mar","abr","mai","xun","xul","ago","set","out","nov","dec"],wide:["xaneiro","febreiro","marzo","abril","maio","xuño","xullo","agosto","setembro","outubro","novembro","decembro"]},S2e={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","me","xo","ve","sa"],abbreviated:["dom","lun","mar","mer","xov","ven","sab"],wide:["domingo","luns","martes","mércores","xoves","venres","sábado"]},C2e={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañá",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"mañá",afternoon:"tarde",evening:"tardiña",night:"noite"}},P2e={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoite",noon:"mediodía",morning:"da mañá",afternoon:"da tarde",evening:"da tardiña",night:"da noite"}},E2e=(n,e)=>Number(n)+"º",B2e={ordinalNumber:E2e,era:K({values:_2e,defaultWidth:"wide"}),quarter:K({values:x2e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:M2e,defaultWidth:"wide"}),day:K({values:S2e,defaultWidth:"wide"}),dayPeriod:K({values:C2e,defaultWidth:"wide",formattingValues:P2e,defaultFormattingWidth:"wide"})},T2e=/^(\d+)(º)?/i,k2e=/\d+/i,I2e={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era com[uú]n|despois de cristo|era com[uú]n)/i},L2e={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era com[uú]n)/i,/^(despois de cristo|era com[uú]n)/i]},F2e={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},N2e={any:[/1/i,/2/i,/3/i,/4/i]},D2e={narrow:/^[xfmasond]/i,abbreviated:/^(xan|feb|mar|abr|mai|xun|xul|ago|set|out|nov|dec)/i,wide:/^(xaneiro|febreiro|marzo|abril|maio|xuño|xullo|agosto|setembro|outubro|novembro|decembro)/i},R2e={narrow:[/^x/i,/^f/i,/^m/i,/^a/i,/^m/i,/^x/i,/^x/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^xan/i,/^feb/i,/^mar/i,/^abr/i,/^mai/i,/^xun/i,/^xul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dec/i]},U2e={narrow:/^[dlmxvs]/i,short:/^(do|lu|ma|me|xo|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|xov|ven|sab)/i,wide:/^(domingo|luns|martes|m[eé]rcores|xoves|venres|s[áa]bado)/i},O2e={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^x/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^me/i,/^xo/i,/^ve/i,/^sa/i]},H2e={narrow:/^(a|p|mn|md|(da|[aá]s) (mañ[aá]|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|medianoite|mediod[ií]a|(da|[aá]s) (mañ[aá]|tarde|noite))/i},W2e={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañ[aá]/i,afternoon:/tarde/i,evening:/tardiña/i,night:/noite/i}},Q2e={ordinalNumber:Nt({matchPattern:T2e,parsePattern:k2e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:I2e,defaultMatchWidth:"wide",parsePatterns:L2e,defaultParseWidth:"any"}),quarter:X({matchPatterns:F2e,defaultMatchWidth:"wide",parsePatterns:N2e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:D2e,defaultMatchWidth:"wide",parsePatterns:R2e,defaultParseWidth:"any"}),day:X({matchPatterns:U2e,defaultMatchWidth:"wide",parsePatterns:O2e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:H2e,defaultMatchWidth:"any",parsePatterns:W2e,defaultParseWidth:"any"})},$2e={code:"gl",formatDistance:f2e,formatLong:v2e,formatRelative:b2e,localize:B2e,match:Q2e,options:{weekStartsOn:1,firstWeekContainsDate:1}},j2e={lessThanXSeconds:{one:"હમણાં",other:"​આશરે {{count}} સેકંડ"},xSeconds:{one:"1 સેકંડ",other:"{{count}} સેકંડ"},halfAMinute:"અડધી મિનિટ",lessThanXMinutes:{one:"આ મિનિટ",other:"​આશરે {{count}} મિનિટ"},xMinutes:{one:"1 મિનિટ",other:"{{count}} મિનિટ"},aboutXHours:{one:"​આશરે 1 કલાક",other:"​આશરે {{count}} કલાક"},xHours:{one:"1 કલાક",other:"{{count}} કલાક"},xDays:{one:"1 દિવસ",other:"{{count}} દિવસ"},aboutXWeeks:{one:"આશરે 1 અઠવાડિયું",other:"આશરે {{count}} અઠવાડિયા"},xWeeks:{one:"1 અઠવાડિયું",other:"{{count}} અઠવાડિયા"},aboutXMonths:{one:"આશરે 1 મહિનો",other:"આશરે {{count}} મહિના"},xMonths:{one:"1 મહિનો",other:"{{count}} મહિના"},aboutXYears:{one:"આશરે 1 વર્ષ",other:"આશરે {{count}} વર્ષ"},xYears:{one:"1 વર્ષ",other:"{{count}} વર્ષ"},overXYears:{one:"1 વર્ષથી વધુ",other:"{{count}} વર્ષથી વધુ"},almostXYears:{one:"લગભગ 1 વર્ષ",other:"લગભગ {{count}} વર્ષ"}},z2e=(n,e,t)=>{let r;const i=j2e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+"માં":r+" પહેલાં":r},V2e={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},G2e={full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},K2e={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},q2e={date:we({formats:V2e,defaultWidth:"full"}),time:we({formats:G2e,defaultWidth:"full"}),dateTime:we({formats:K2e,defaultWidth:"full"})},X2e={lastWeek:"'પાછલા' eeee p",yesterday:"'ગઈકાલે' p",today:"'આજે' p",tomorrow:"'આવતીકાલે' p",nextWeek:"eeee p",other:"P"},Y2e=(n,e,t,r)=>X2e[n],J2e={narrow:["ઈસપૂ","ઈસ"],abbreviated:["ઈ.સ.પૂર્વે","ઈ.સ."],wide:["ઈસવીસન પૂર્વે","ઈસવીસન"]},Z2e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1લો ત્રિમાસ","2જો ત્રિમાસ","3જો ત્રિમાસ","4થો ત્રિમાસ"]},eMe={narrow:["જા","ફે","મા","એ","મે","જૂ","જુ","ઓ","સ","ઓ","ન","ડિ"],abbreviated:["જાન્યુ","ફેબ્રુ","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઈ","ઑગસ્ટ","સપ્ટે","ઓક્ટો","નવે","ડિસે"],wide:["જાન્યુઆરી","ફેબ્રુઆરી","માર્ચ","એપ્રિલ","મે","જૂન","જુલાઇ","ઓગસ્ટ","સપ્ટેમ્બર","ઓક્ટોબર","નવેમ્બર","ડિસેમ્બર"]},tMe={narrow:["ર","સો","મં","બુ","ગુ","શુ","શ"],short:["ર","સો","મં","બુ","ગુ","શુ","શ"],abbreviated:["રવિ","સોમ","મંગળ","બુધ","ગુરુ","શુક્ર","શનિ"],wide:["રવિવાર","સોમવાર","મંગળવાર","બુધવાર","ગુરુવાર","શુક્રવાર","શનિવાર"]},nMe={narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બ.",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},rMe={narrow:{am:"AM",pm:"PM",midnight:"મ.રાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},abbreviated:{am:"AM",pm:"PM",midnight:"મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"},wide:{am:"AM",pm:"PM",midnight:"​મધ્યરાત્રિ",noon:"બપોરે",morning:"સવારે",afternoon:"બપોરે",evening:"સાંજે",night:"રાત્રે"}},iMe=(n,e)=>String(n),aMe={ordinalNumber:iMe,era:K({values:J2e,defaultWidth:"wide"}),quarter:K({values:Z2e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:eMe,defaultWidth:"wide"}),day:K({values:tMe,defaultWidth:"wide"}),dayPeriod:K({values:nMe,defaultWidth:"wide",formattingValues:rMe,defaultFormattingWidth:"wide"})},sMe=/^(\d+)(લ|જ|થ|ઠ્ઠ|મ)?/i,oMe=/\d+/i,cMe={narrow:/^(ઈસપૂ|ઈસ)/i,abbreviated:/^(ઈ\.સ\.પૂર્વે|ઈ\.સ\.)/i,wide:/^(ઈસવીસન\sપૂર્વે|ઈસવીસન)/i},lMe={any:[/^ઈસપૂ/i,/^ઈસ/i]},uMe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](લો|જો|થો)? ત્રિમાસ/i},dMe={any:[/1/i,/2/i,/3/i,/4/i]},AMe={narrow:/^[જાફેમાએમેજૂજુઓસઓનડિ]/i,abbreviated:/^(જાન્યુ|ફેબ્રુ|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઈ|ઑગસ્ટ|સપ્ટે|ઓક્ટો|નવે|ડિસે)/i,wide:/^(જાન્યુઆરી|ફેબ્રુઆરી|માર્ચ|એપ્રિલ|મે|જૂન|જુલાઇ|ઓગસ્ટ|સપ્ટેમ્બર|ઓક્ટોબર|નવેમ્બર|ડિસેમ્બર)/i},hMe={narrow:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i],any:[/^જા/i,/^ફે/i,/^મા/i,/^એ/i,/^મે/i,/^જૂ/i,/^જુ/i,/^ઑગ/i,/^સ/i,/^ઓક્ટો/i,/^ન/i,/^ડિ/i]},fMe={narrow:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,short:/^(ર|સો|મં|બુ|ગુ|શુ|શ)/i,abbreviated:/^(રવિ|સોમ|મંગળ|બુધ|ગુરુ|શુક્ર|શનિ)/i,wide:/^(રવિવાર|સોમવાર|મંગળવાર|બુધવાર|ગુરુવાર|શુક્રવાર|શનિવાર)/i},mMe={narrow:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i],any:[/^ર/i,/^સો/i,/^મં/i,/^બુ/i,/^ગુ/i,/^શુ/i,/^શ/i]},pMe={narrow:/^(a|p|મ\.?|સ|બ|સાં|રા)/i,any:/^(a|p|મ\.?|સ|બ|સાં|રા)/i},gMe={any:{am:/^a/i,pm:/^p/i,midnight:/^મ\.?/i,noon:/^બ/i,morning:/સ/i,afternoon:/બ/i,evening:/સાં/i,night:/રા/i}},vMe={ordinalNumber:Nt({matchPattern:sMe,parsePattern:oMe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:cMe,defaultMatchWidth:"wide",parsePatterns:lMe,defaultParseWidth:"any"}),quarter:X({matchPatterns:uMe,defaultMatchWidth:"wide",parsePatterns:dMe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:AMe,defaultMatchWidth:"wide",parsePatterns:hMe,defaultParseWidth:"any"}),day:X({matchPatterns:fMe,defaultMatchWidth:"wide",parsePatterns:mMe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:pMe,defaultMatchWidth:"any",parsePatterns:gMe,defaultParseWidth:"any"})},yMe={code:"gu",formatDistance:z2e,formatLong:q2e,formatRelative:Y2e,localize:aMe,match:vMe,options:{weekStartsOn:1,firstWeekContainsDate:4}},wMe={lessThanXSeconds:{one:"פחות משנייה",two:"פחות משתי שניות",other:"פחות מ־{{count}} שניות"},xSeconds:{one:"שנייה",two:"שתי שניות",other:"{{count}} שניות"},halfAMinute:"חצי דקה",lessThanXMinutes:{one:"פחות מדקה",two:"פחות משתי דקות",other:"פחות מ־{{count}} דקות"},xMinutes:{one:"דקה",two:"שתי דקות",other:"{{count}} דקות"},aboutXHours:{one:"כשעה",two:"כשעתיים",other:"כ־{{count}} שעות"},xHours:{one:"שעה",two:"שעתיים",other:"{{count}} שעות"},xDays:{one:"יום",two:"יומיים",other:"{{count}} ימים"},aboutXWeeks:{one:"כשבוע",two:"כשבועיים",other:"כ־{{count}} שבועות"},xWeeks:{one:"שבוע",two:"שבועיים",other:"{{count}} שבועות"},aboutXMonths:{one:"כחודש",two:"כחודשיים",other:"כ־{{count}} חודשים"},xMonths:{one:"חודש",two:"חודשיים",other:"{{count}} חודשים"},aboutXYears:{one:"כשנה",two:"כשנתיים",other:"כ־{{count}} שנים"},xYears:{one:"שנה",two:"שנתיים",other:"{{count}} שנים"},overXYears:{one:"יותר משנה",two:"יותר משנתיים",other:"יותר מ־{{count}} שנים"},almostXYears:{one:"כמעט שנה",two:"כמעט שנתיים",other:"כמעט {{count}} שנים"}},bMe=(n,e,t)=>{if(n==="xDays"&&(t!=null&&t.addSuffix)&&e<=2)return t.comparison&&t.comparison>0?e===1?"מחר":"מחרתיים":e===1?"אתמול":"שלשום";let r;const i=wMe[n];return typeof i=="string"?r=i:e===1?r=i.one:e===2?r=i.two:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"בעוד "+r:"לפני "+r:r},_Me={full:"EEEE, d בMMMM y",long:"d בMMMM y",medium:"d בMMM y",short:"d.M.y"},xMe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},MMe={full:"{{date}} 'בשעה' {{time}}",long:"{{date}} 'בשעה' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SMe={date:we({formats:_Me,defaultWidth:"full"}),time:we({formats:xMe,defaultWidth:"full"}),dateTime:we({formats:MMe,defaultWidth:"full"})},CMe={lastWeek:"eeee 'שעבר בשעה' p",yesterday:"'אתמול בשעה' p",today:"'היום בשעה' p",tomorrow:"'מחר בשעה' p",nextWeek:"eeee 'בשעה' p",other:"P"},PMe=(n,e,t,r)=>CMe[n],EMe={narrow:["לפנה״ס","לספירה"],abbreviated:["לפנה״ס","לספירה"],wide:["לפני הספירה","לספירה"]},BMe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["רבעון 1","רבעון 2","רבעון 3","רבעון 4"]},TMe={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],wide:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},kMe={narrow:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],short:["א׳","ב׳","ג׳","ד׳","ה׳","ו׳","ש׳"],abbreviated:["יום א׳","יום ב׳","יום ג׳","יום ד׳","יום ה׳","יום ו׳","שבת"],wide:["יום ראשון","יום שני","יום שלישי","יום רביעי","יום חמישי","יום שישי","יום שבת"]},IMe={narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בוקר",afternoon:"אחר הצהריים",evening:"ערב",night:"לילה"}},LMe={narrow:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"בצהריים",evening:"בערב",night:"בלילה"},abbreviated:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"},wide:{am:"לפנה״צ",pm:"אחה״צ",midnight:"חצות",noon:"צהריים",morning:"בבוקר",afternoon:"אחר הצהריים",evening:"בערב",night:"בלילה"}},FMe=(n,e)=>{const t=Number(n);if(t<=0||t>10)return String(t);const r=String(e==null?void 0:e.unit),i=["year","hour","minute","second"].indexOf(r)>=0,a=["ראשון","שני","שלישי","רביעי","חמישי","שישי","שביעי","שמיני","תשיעי","עשירי"],s=["ראשונה","שנייה","שלישית","רביעית","חמישית","שישית","שביעית","שמינית","תשיעית","עשירית"],o=t-1;return i?s[o]:a[o]},NMe={ordinalNumber:FMe,era:K({values:EMe,defaultWidth:"wide"}),quarter:K({values:BMe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:TMe,defaultWidth:"wide"}),day:K({values:kMe,defaultWidth:"wide"}),dayPeriod:K({values:IMe,defaultWidth:"wide",formattingValues:LMe,defaultFormattingWidth:"wide"})},DMe=/^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שביעי|שמיני|תשיעי|עשירי|ראשונה|שנייה|שלישית|רביעית|חמישית|שישית|שביעית|שמינית|תשיעית|עשירית))/i,RMe=/^(\d+|רא|שנ|של|רב|ח|שי|שב|שמ|ת|ע)/i,UMe={narrow:/^ל(ספירה|פנה״ס)/i,abbreviated:/^ל(ספירה|פנה״ס)/i,wide:/^ל(פני ה)?ספירה/i},OMe={any:[/^לפ/i,/^לס/i]},HMe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^רבעון [1234]/i},WMe={any:[/1/i,/2/i,/3/i,/4/i]},QMe={narrow:/^\d+/i,abbreviated:/^(ינו|פבר|מרץ|אפר|מאי|יוני|יולי|אוג|ספט|אוק|נוב|דצמ)׳?/i,wide:/^(ינואר|פברואר|מרץ|אפריל|מאי|יוני|יולי|אוגוסט|ספטמבר|אוקטובר|נובמבר|דצמבר)/i},$Me={narrow:[/^1$/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ינ/i,/^פ/i,/^מר/i,/^אפ/i,/^מא/i,/^יונ/i,/^יול/i,/^אוג/i,/^ס/i,/^אוק/i,/^נ/i,/^ד/i]},jMe={narrow:/^[אבגדהוש]׳/i,short:/^[אבגדהוש]׳/i,abbreviated:/^(שבת|יום (א|ב|ג|ד|ה|ו)׳)/i,wide:/^יום (ראשון|שני|שלישי|רביעי|חמישי|שישי|שבת)/i},zMe={abbreviated:[/א׳$/i,/ב׳$/i,/ג׳$/i,/ד׳$/i,/ה׳$/i,/ו׳$/i,/^ש/i],wide:[/ן$/i,/ני$/i,/לישי$/i,/עי$/i,/מישי$/i,/שישי$/i,/ת$/i],any:[/^א/i,/^ב/i,/^ג/i,/^ד/i,/^ה/i,/^ו/i,/^ש/i]},VMe={any:/^(אחר ה|ב)?(חצות|צהריים|בוקר|ערב|לילה|אחה״צ|לפנה״צ)/i},GMe={any:{am:/^לפ/i,pm:/^אחה/i,midnight:/^ח/i,noon:/^צ/i,morning:/בוקר/i,afternoon:/בצ|אחר/i,evening:/ערב/i,night:/לילה/i}},KMe=["רא","שנ","של","רב","ח","שי","שב","שמ","ת","ע"],qMe={ordinalNumber:Nt({matchPattern:DMe,parsePattern:RMe,valueCallback:n=>{const e=parseInt(n,10);return isNaN(e)?KMe.indexOf(n)+1:e}}),era:X({matchPatterns:UMe,defaultMatchWidth:"wide",parsePatterns:OMe,defaultParseWidth:"any"}),quarter:X({matchPatterns:HMe,defaultMatchWidth:"wide",parsePatterns:WMe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:QMe,defaultMatchWidth:"wide",parsePatterns:$Me,defaultParseWidth:"any"}),day:X({matchPatterns:jMe,defaultMatchWidth:"wide",parsePatterns:zMe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:VMe,defaultMatchWidth:"any",parsePatterns:GMe,defaultParseWidth:"any"})},XMe={code:"he",formatDistance:bMe,formatLong:SMe,formatRelative:PMe,localize:NMe,match:qMe,options:{weekStartsOn:0,firstWeekContainsDate:1}},mU={locale:{1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},number:{"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"}},YMe={narrow:["ईसा-पूर्व","ईस्वी"],abbreviated:["ईसा-पूर्व","ईस्वी"],wide:["ईसा-पूर्व","ईसवी सन"]},JMe={narrow:["1","2","3","4"],abbreviated:["ति1","ति2","ति3","ति4"],wide:["पहली तिमाही","दूसरी तिमाही","तीसरी तिमाही","चौथी तिमाही"]},ZMe={narrow:["ज","फ़","मा","अ","मई","जू","जु","अग","सि","अक्टू","न","दि"],abbreviated:["जन","फ़र","मार्च","अप्रैल","मई","जून","जुल","अग","सित","अक्टू","नव","दिस"],wide:["जनवरी","फ़रवरी","मार्च","अप्रैल","मई","जून","जुलाई","अगस्त","सितंबर","अक्टूबर","नवंबर","दिसंबर"]},eSe={narrow:["र","सो","मं","बु","गु","शु","श"],short:["र","सो","मं","बु","गु","शु","श"],abbreviated:["रवि","सोम","मंगल","बुध","गुरु","शुक्र","शनि"],wide:["रविवार","सोमवार","मंगलवार","बुधवार","गुरुवार","शुक्रवार","शनिवार"]},tSe={narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},nSe={narrow:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},abbreviated:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"},wide:{am:"पूर्वाह्न",pm:"अपराह्न",midnight:"मध्यरात्रि",noon:"दोपहर",morning:"सुबह",afternoon:"दोपहर",evening:"शाम",night:"रात"}},rSe=(n,e)=>{const t=Number(n);return pU(t)};function iSe(n){const e=n.toString().replace(/[१२३४५६७८९०]/g,function(t){return mU.number[t]});return Number(e)}function pU(n){return n.toString().replace(/\d/g,function(e){return mU.locale[e]})}const aSe={ordinalNumber:rSe,era:K({values:YMe,defaultWidth:"wide"}),quarter:K({values:JMe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:ZMe,defaultWidth:"wide"}),day:K({values:eSe,defaultWidth:"wide"}),dayPeriod:K({values:tSe,defaultWidth:"wide",formattingValues:nSe,defaultFormattingWidth:"wide"})},sSe={lessThanXSeconds:{one:"१ सेकंड से कम",other:"{{count}} सेकंड से कम"},xSeconds:{one:"१ सेकंड",other:"{{count}} सेकंड"},halfAMinute:"आधा मिनट",lessThanXMinutes:{one:"१ मिनट से कम",other:"{{count}} मिनट से कम"},xMinutes:{one:"१ मिनट",other:"{{count}} मिनट"},aboutXHours:{one:"लगभग १ घंटा",other:"लगभग {{count}} घंटे"},xHours:{one:"१ घंटा",other:"{{count}} घंटे"},xDays:{one:"१ दिन",other:"{{count}} दिन"},aboutXWeeks:{one:"लगभग १ सप्ताह",other:"लगभग {{count}} सप्ताह"},xWeeks:{one:"१ सप्ताह",other:"{{count}} सप्ताह"},aboutXMonths:{one:"लगभग १ महीना",other:"लगभग {{count}} महीने"},xMonths:{one:"१ महीना",other:"{{count}} महीने"},aboutXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"},xYears:{one:"१ वर्ष",other:"{{count}} वर्ष"},overXYears:{one:"१ वर्ष से अधिक",other:"{{count}} वर्ष से अधिक"},almostXYears:{one:"लगभग १ वर्ष",other:"लगभग {{count}} वर्ष"}},oSe=(n,e,t)=>{let r;const i=sSe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",pU(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+"मे ":r+" पहले":r},cSe={full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},lSe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uSe={full:"{{date}} 'को' {{time}}",long:"{{date}} 'को' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dSe={date:we({formats:cSe,defaultWidth:"full"}),time:we({formats:lSe,defaultWidth:"full"}),dateTime:we({formats:uSe,defaultWidth:"full"})},ASe={lastWeek:"'पिछले' eeee p",yesterday:"'कल' p",today:"'आज' p",tomorrow:"'कल' p",nextWeek:"eeee 'को' p",other:"P"},hSe=(n,e,t,r)=>ASe[n],fSe=/^[०१२३४५६७८९]+/i,mSe=/^[०१२३४५६७८९]+/i,pSe={narrow:/^(ईसा-पूर्व|ईस्वी)/i,abbreviated:/^(ईसा\.?\s?पूर्व\.?|ईसा\.?)/i,wide:/^(ईसा-पूर्व|ईसवी पूर्व|ईसवी सन|ईसवी)/i},gSe={any:[/^b/i,/^(a|c)/i]},vSe={narrow:/^[1234]/i,abbreviated:/^ति[1234]/i,wide:/^[1234](पहली|दूसरी|तीसरी|चौथी)? तिमाही/i},ySe={any:[/1/i,/2/i,/3/i,/4/i]},wSe={narrow:/^[जफ़माअप्मईजूनजुअगसिअक्तनदि]/i,abbreviated:/^(जन|फ़र|मार्च|अप्|मई|जून|जुल|अग|सित|अक्तू|नव|दिस)/i,wide:/^(जनवरी|फ़रवरी|मार्च|अप्रैल|मई|जून|जुलाई|अगस्त|सितंबर|अक्तूबर|नवंबर|दिसंबर)/i},bSe={narrow:[/^ज/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^न/i,/^दि/i],any:[/^जन/i,/^फ़/i,/^मा/i,/^अप्/i,/^मई/i,/^जू/i,/^जु/i,/^अग/i,/^सि/i,/^अक्तू/i,/^नव/i,/^दिस/i]},_Se={narrow:/^[रविसोममंगलबुधगुरुशुक्रशनि]/i,short:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,abbreviated:/^(रवि|सोम|मंगल|बुध|गुरु|शुक्र|शनि)/i,wide:/^(रविवार|सोमवार|मंगलवार|बुधवार|गुरुवार|शुक्रवार|शनिवार)/i},xSe={narrow:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i],any:[/^रवि/i,/^सोम/i,/^मंगल/i,/^बुध/i,/^गुरु/i,/^शुक्र/i,/^शनि/i]},MSe={narrow:/^(पू|अ|म|द.\?|सु|दो|शा|रा)/i,any:/^(पूर्वाह्न|अपराह्न|म|द.\?|सु|दो|शा|रा)/i},SSe={any:{am:/^पूर्वाह्न/i,pm:/^अपराह्न/i,midnight:/^मध्य/i,noon:/^दो/i,morning:/सु/i,afternoon:/दो/i,evening:/शा/i,night:/रा/i}},CSe={ordinalNumber:Nt({matchPattern:fSe,parsePattern:mSe,valueCallback:iSe}),era:X({matchPatterns:pSe,defaultMatchWidth:"wide",parsePatterns:gSe,defaultParseWidth:"any"}),quarter:X({matchPatterns:vSe,defaultMatchWidth:"wide",parsePatterns:ySe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:wSe,defaultMatchWidth:"wide",parsePatterns:bSe,defaultParseWidth:"any"}),day:X({matchPatterns:_Se,defaultMatchWidth:"wide",parsePatterns:xSe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:MSe,defaultMatchWidth:"any",parsePatterns:SSe,defaultParseWidth:"any"})},PSe={code:"hi",formatDistance:oSe,formatLong:dSe,formatRelative:hSe,localize:aSe,match:CSe,options:{weekStartsOn:0,firstWeekContainsDate:4}},ESe={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 tjedan",withPrepositionAgo:"oko 1 tjedan",withPrepositionIn:"oko 1 tjedan"},dual:"oko {{count}} tjedna",other:"oko {{count}} tjedana"},xWeeks:{one:{standalone:"1 tjedan",withPrepositionAgo:"1 tjedan",withPrepositionIn:"1 tjedan"},dual:"{{count}} tjedna",other:"{{count}} tjedana"},aboutXMonths:{one:{standalone:"oko 1 mjesec",withPrepositionAgo:"oko 1 mjesec",withPrepositionIn:"oko 1 mjesec"},dual:"oko {{count}} mjeseca",other:"oko {{count}} mjeseci"},xMonths:{one:{standalone:"1 mjesec",withPrepositionAgo:"1 mjesec",withPrepositionIn:"1 mjesec"},dual:"{{count}} mjeseca",other:"{{count}} mjeseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},BSe=(n,e,t)=>{let r;const i=ESe[n];return typeof i=="string"?r=i:e===1?t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r=i.one.withPrepositionIn:r=i.one.withPrepositionAgo:r=i.one.standalone:e%10>1&&e%10<5&&String(e).substr(-2,1)!=="1"?r=i.dual.replace("{{count}}",String(e)):r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"za "+r:"prije "+r:r},TSe={full:"EEEE, d. MMMM y.",long:"d. MMMM y.",medium:"d. MMM y.",short:"dd. MM. y."},kSe={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ISe={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},LSe={date:we({formats:TSe,defaultWidth:"full"}),time:we({formats:kSe,defaultWidth:"full"}),dateTime:we({formats:ISe,defaultWidth:"full"})},FSe={lastWeek:n=>{switch(n.getDay()){case 0:return"'prošlu nedjelju u' p";case 3:return"'prošlu srijedu u' p";case 6:return"'prošlu subotu u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'jučer u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:n=>{switch(n.getDay()){case 0:return"'iduću nedjelju u' p";case 3:return"'iduću srijedu u' p";case 6:return"'iduću subotu u' p";default:return"'prošli' EEEE 'u' p"}},other:"P"},NSe=(n,e,t,r)=>{const i=FSe[n];return typeof i=="function"?i(e):i},DSe={narrow:["pr.n.e.","AD"],abbreviated:["pr. Kr.","po. Kr."],wide:["Prije Krista","Poslije Krista"]},RSe={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},USe={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječanj","veljača","ožujak","travanj","svibanj","lipanj","srpanj","kolovoz","rujan","listopad","studeni","prosinac"]},OSe={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["sij","velj","ožu","tra","svi","lip","srp","kol","ruj","lis","stu","pro"],wide:["siječnja","veljače","ožujka","travnja","svibnja","lipnja","srpnja","kolovoza","rujna","listopada","studenog","prosinca"]},HSe={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sri","čet","pet","sub"],abbreviated:["ned","pon","uto","sri","čet","pet","sub"],wide:["nedjelja","ponedjeljak","utorak","srijeda","četvrtak","petak","subota"]},WSe={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},QSe={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"popodne",evening:"navečer",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutro",afternoon:"poslije podne",evening:"navečer",night:"noću"}},$Se=(n,e)=>Number(n)+".",jSe={ordinalNumber:$Se,era:K({values:DSe,defaultWidth:"wide"}),quarter:K({values:RSe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:USe,defaultWidth:"wide",formattingValues:OSe,defaultFormattingWidth:"wide"}),day:K({values:HSe,defaultWidth:"wide"}),dayPeriod:K({values:QSe,defaultWidth:"wide",formattingValues:WSe,defaultFormattingWidth:"wide"})},zSe=/^(\d+)\./i,VSe=/\d+/i,GSe={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Kr\.|po\.\s?Kr\.)/i,wide:/^(Prije Krista|prije nove ere|Poslije Krista|nova era)/i},KSe={any:[/^pr/i,/^(po|nova)/i]},qSe={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},XSe={any:[/1/i,/2/i,/3/i,/4/i]},YSe={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,wide:/^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/i},JSe={narrow:[/1/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i,/8/i,/9/i,/10/i,/11/i,/12/i],abbreviated:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i],wide:[/^sij/i,/^velj/i,/^(ožu|ozu)/i,/^tra/i,/^svi/i,/^lip/i,/^srp/i,/^kol/i,/^ruj/i,/^lis/i,/^stu/i,/^pro/i]},ZSe={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,wide:/^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i},eCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tCe={any:/^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i},nCe={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(poslije\s|po)+podne/i,evening:/(navece|naveče)/i,night:/(nocu|noću)/i}},rCe={ordinalNumber:Nt({matchPattern:zSe,parsePattern:VSe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:GSe,defaultMatchWidth:"wide",parsePatterns:KSe,defaultParseWidth:"any"}),quarter:X({matchPatterns:qSe,defaultMatchWidth:"wide",parsePatterns:XSe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:YSe,defaultMatchWidth:"wide",parsePatterns:JSe,defaultParseWidth:"wide"}),day:X({matchPatterns:ZSe,defaultMatchWidth:"wide",parsePatterns:eCe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:tCe,defaultMatchWidth:"any",parsePatterns:nCe,defaultParseWidth:"any"})},iCe={code:"hr",formatDistance:BSe,formatLong:LSe,formatRelative:NSe,localize:jSe,match:rCe,options:{weekStartsOn:1,firstWeekContainsDate:1}},aCe={lessThanXSeconds:{one:"mwens pase yon segond",other:"mwens pase {{count}} segond"},xSeconds:{one:"1 segond",other:"{{count}} segond"},halfAMinute:"30 segond",lessThanXMinutes:{one:"mwens pase yon minit",other:"mwens pase {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"anviwon inè",other:"anviwon {{count}} è"},xHours:{one:"1 lè",other:"{{count}} lè"},xDays:{one:"1 jou",other:"{{count}} jou"},aboutXWeeks:{one:"anviwon 1 semèn",other:"anviwon {{count}} semèn"},xWeeks:{one:"1 semèn",other:"{{count}} semèn"},aboutXMonths:{one:"anviwon 1 mwa",other:"anviwon {{count}} mwa"},xMonths:{one:"1 mwa",other:"{{count}} mwa"},aboutXYears:{one:"anviwon 1 an",other:"anviwon {{count}} an"},xYears:{one:"1 an",other:"{{count}} an"},overXYears:{one:"plis pase 1 an",other:"plis pase {{count}} an"},almostXYears:{one:"prèske 1 an",other:"prèske {{count}} an"}},sCe=(n,e,t)=>{let r;const i=aCe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"nan "+r:"sa fè "+r:r},oCe={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},cCe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lCe={full:"{{date}} 'nan lè' {{time}}",long:"{{date}} 'nan lè' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uCe={date:we({formats:oCe,defaultWidth:"full"}),time:we({formats:cCe,defaultWidth:"full"}),dateTime:we({formats:lCe,defaultWidth:"full"})},dCe={lastWeek:"eeee 'pase nan lè' p",yesterday:"'yè nan lè' p",today:"'jodi a' p",tomorrow:"'demen nan lè' p'",nextWeek:"eeee 'pwochen nan lè' p",other:"P"},ACe=(n,e,t,r)=>dCe[n],hCe={narrow:["av. J.-K","ap. J.-K"],abbreviated:["av. J.-K","ap. J.-K"],wide:["anvan Jezi Kris","apre Jezi Kris"]},fCe={narrow:["T1","T2","T3","T4"],abbreviated:["1ye trim.","2yèm trim.","3yèm trim.","4yèm trim."],wide:["1ye trimès","2yèm trimès","3yèm trimès","4yèm trimès"]},mCe={narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["janv.","fevr.","mas","avr.","me","jen","jiyè","out","sept.","okt.","nov.","des."],wide:["janvye","fevrye","mas","avril","me","jen","jiyè","out","septanm","oktòb","novanm","desanm"]},pCe={narrow:["D","L","M","M","J","V","S"],short:["di","le","ma","mè","je","va","sa"],abbreviated:["dim.","len.","mad.","mèk.","jed.","van.","sam."],wide:["dimanch","lendi","madi","mèkredi","jedi","vandredi","samdi"]},gCe={narrow:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"swa",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"maten",afternoon:"aprèmidi",evening:"swa",night:"maten"},wide:{am:"AM",pm:"PM",midnight:"minwit",noon:"midi",morning:"nan maten",afternoon:"nan aprèmidi",evening:"nan aswè",night:"nan maten"}},vCe=(n,e)=>{const t=Number(n);return t===0?String(t):t+(t===1?"ye":"yèm")},yCe={ordinalNumber:vCe,era:K({values:hCe,defaultWidth:"wide"}),quarter:K({values:fCe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:mCe,defaultWidth:"wide"}),day:K({values:pCe,defaultWidth:"wide"}),dayPeriod:K({values:gCe,defaultWidth:"wide"})},wCe=/^(\d+)(ye|yèm)?/i,bCe=/\d+/i,_Ce={narrow:/^(av\.J\.K|ap\.J\.K|ap\.J\.-K)/i,abbreviated:/^(av\.J\.-K|av\.J-K|apr\.J\.-K|apr\.J-K|ap\.J-K)/i,wide:/^(avan Jezi Kris|apre Jezi Kris)/i},xCe={any:[/^av/i,/^ap/i]},MCe={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](ye|yèm)? trimès/i},SCe={any:[/1/i,/2/i,/3/i,/4/i]},CCe={narrow:/^[jfmasond]/i,abbreviated:/^(janv|fevr|mas|avr|me|jen|jiyè|out|sept|okt|nov|des)\.?/i,wide:/^(janvye|fevrye|mas|avril|me|jen|jiyè|out|septanm|oktòb|novanm|desanm)/i},PCe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^av/i,/^me/i,/^je/i,/^ji/i,/^ou/i,/^s/i,/^ok/i,/^n/i,/^d/i]},ECe={narrow:/^[lmjvsd]/i,short:/^(di|le|ma|me|je|va|sa)/i,abbreviated:/^(dim|len|mad|mèk|jed|van|sam)\.?/i,wide:/^(dimanch|lendi|madi|mèkredi|jedi|vandredi|samdi)/i},BCe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^le/i,/^ma/i,/^mè/i,/^je/i,/^va/i,/^sa/i]},TCe={narrow:/^(a|p|minwit|midi|mat\.?|ap\.?m\.?|swa)/i,any:/^([ap]\.?\s?m\.?|nan maten|nan aprèmidi|nan aswè)/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/sw/i,night:/nwit/i}},ICe={ordinalNumber:Nt({matchPattern:wCe,parsePattern:bCe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:_Ce,defaultMatchWidth:"wide",parsePatterns:xCe,defaultParseWidth:"any"}),quarter:X({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:SCe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:CCe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any"}),day:X({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:BCe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:TCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})},LCe={code:"ht",formatDistance:sCe,formatLong:uCe,formatRelative:ACe,localize:yCe,match:ICe,options:{weekStartsOn:1,firstWeekContainsDate:4}},FCe={about:"körülbelül",over:"több mint",almost:"majdnem",lessthan:"kevesebb mint"},NCe={xseconds:" másodperc",halfaminute:"fél perc",xminutes:" perc",xhours:" óra",xdays:" nap",xweeks:" hét",xmonths:" hónap",xyears:" év"},DCe={xseconds:{"-1":" másodperccel ezelőtt",1:" másodperc múlva",0:" másodperce"},halfaminute:{"-1":"fél perccel ezelőtt",1:"fél perc múlva",0:"fél perce"},xminutes:{"-1":" perccel ezelőtt",1:" perc múlva",0:" perce"},xhours:{"-1":" órával ezelőtt",1:" óra múlva",0:" órája"},xdays:{"-1":" nappal ezelőtt",1:" nap múlva",0:" napja"},xweeks:{"-1":" héttel ezelőtt",1:" hét múlva",0:" hete"},xmonths:{"-1":" hónappal ezelőtt",1:" hónap múlva",0:" hónapja"},xyears:{"-1":" évvel ezelőtt",1:" év múlva",0:" éve"}},RCe=(n,e,t)=>{const r=n.match(/about|over|almost|lessthan/i),i=r?n.replace(r[0],""):n,a=(t==null?void 0:t.addSuffix)===!0,s=i.toLowerCase(),o=(t==null?void 0:t.comparison)||0,c=a?DCe[s][o]:NCe[s];let l=s==="halfaminute"?c:e+c;if(r){const u=r[0].toLowerCase();l=FCe[u]+" "+l}return l},UCe={full:"y. MMMM d., EEEE",long:"y. MMMM d.",medium:"y. MMM d.",short:"y. MM. dd."},OCe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},HCe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},WCe={date:we({formats:UCe,defaultWidth:"full"}),time:we({formats:OCe,defaultWidth:"full"}),dateTime:we({formats:HCe,defaultWidth:"full"})},QCe=["vasárnap","hétfőn","kedden","szerdán","csütörtökön","pénteken","szombaton"];function PI(n){return e=>{const t=QCe[e.getDay()];return`${n?"":"'múlt' "}'${t}' p'-kor'`}}const $Ce={lastWeek:PI(!1),yesterday:"'tegnap' p'-kor'",today:"'ma' p'-kor'",tomorrow:"'holnap' p'-kor'",nextWeek:PI(!0),other:"P"},jCe=(n,e)=>{const t=$Ce[n];return typeof t=="function"?t(e):t},zCe={narrow:["ie.","isz."],abbreviated:["i. e.","i. sz."],wide:["Krisztus előtt","időszámításunk szerint"]},VCe={narrow:["1.","2.","3.","4."],abbreviated:["1. n.év","2. n.év","3. n.év","4. n.év"],wide:["1. negyedév","2. negyedév","3. negyedév","4. negyedév"]},GCe={narrow:["I.","II.","III.","IV."],abbreviated:["I. n.év","II. n.év","III. n.év","IV. n.év"],wide:["I. negyedév","II. negyedév","III. negyedév","IV. negyedév"]},KCe={narrow:["J","F","M","Á","M","J","J","A","Sz","O","N","D"],abbreviated:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],wide:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"]},qCe={narrow:["V","H","K","Sz","Cs","P","Sz"],short:["V","H","K","Sze","Cs","P","Szo"],abbreviated:["V","H","K","Sze","Cs","P","Szo"],wide:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},XCe={narrow:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},abbreviated:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"du.",evening:"este",night:"éjjel"},wide:{am:"de.",pm:"du.",midnight:"éjfél",noon:"dél",morning:"reggel",afternoon:"délután",evening:"este",night:"éjjel"}},YCe=(n,e)=>Number(n)+".",JCe={ordinalNumber:YCe,era:K({values:zCe,defaultWidth:"wide"}),quarter:K({values:VCe,defaultWidth:"wide",argumentCallback:n=>n-1,formattingValues:GCe,defaultFormattingWidth:"wide"}),month:K({values:KCe,defaultWidth:"wide"}),day:K({values:qCe,defaultWidth:"wide"}),dayPeriod:K({values:XCe,defaultWidth:"wide"})},ZCe=/^(\d+)\.?/i,ePe=/\d+/i,tPe={narrow:/^(ie\.|isz\.)/i,abbreviated:/^(i\.\s?e\.?|b?\s?c\s?e|i\.\s?sz\.?)/i,wide:/^(Krisztus előtt|időszámításunk előtt|időszámításunk szerint|i\. sz\.)/i},nPe={narrow:[/ie/i,/isz/i],abbreviated:[/^(i\.?\s?e\.?|b\s?ce)/i,/^(i\.?\s?sz\.?|c\s?e)/i],any:[/előtt/i,/(szerint|i. sz.)/i]},rPe={narrow:/^[1234]\.?/i,abbreviated:/^[1234]?\.?\s?n\.év/i,wide:/^([1234]|I|II|III|IV)?\.?\s?negyedév/i},iPe={any:[/1|I$/i,/2|II$/i,/3|III/i,/4|IV/i]},aPe={narrow:/^[jfmaásond]|sz/i,abbreviated:/^(jan\.?|febr\.?|márc\.?|ápr\.?|máj\.?|jún\.?|júl\.?|aug\.?|szept\.?|okt\.?|nov\.?|dec\.?)/i,wide:/^(január|február|március|április|május|június|július|augusztus|szeptember|október|november|december)/i},sPe={narrow:[/^j/i,/^f/i,/^m/i,/^a|á/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s|sz/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^már/i,/^áp/i,/^máj/i,/^jún/i,/^júl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},oPe={narrow:/^([vhkpc]|sz|cs|sz)/i,short:/^([vhkp]|sze|cs|szo)/i,abbreviated:/^([vhkp]|sze|cs|szo)/i,wide:/^(vasárnap|hétfő|kedd|szerda|csütörtök|péntek|szombat)/i},cPe={narrow:[/^v/i,/^h/i,/^k/i,/^sz/i,/^c/i,/^p/i,/^sz/i],any:[/^v/i,/^h/i,/^k/i,/^sze/i,/^c/i,/^p/i,/^szo/i]},lPe={any:/^((de|du)\.?|éjfél|délután|dél|reggel|este|éjjel)/i},uPe={any:{am:/^de\.?/i,pm:/^du\.?/i,midnight:/^éjf/i,noon:/^dé/i,morning:/reg/i,afternoon:/^délu\.?/i,evening:/es/i,night:/éjj/i}},dPe={ordinalNumber:Nt({matchPattern:ZCe,parsePattern:ePe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:tPe,defaultMatchWidth:"wide",parsePatterns:nPe,defaultParseWidth:"any"}),quarter:X({matchPatterns:rPe,defaultMatchWidth:"wide",parsePatterns:iPe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:aPe,defaultMatchWidth:"wide",parsePatterns:sPe,defaultParseWidth:"any"}),day:X({matchPatterns:oPe,defaultMatchWidth:"wide",parsePatterns:cPe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:lPe,defaultMatchWidth:"any",parsePatterns:uPe,defaultParseWidth:"any"})},APe={code:"hu",formatDistance:RCe,formatLong:WCe,formatRelative:jCe,localize:JCe,match:dPe,options:{weekStartsOn:1,firstWeekContainsDate:4}},hPe={lessThanXSeconds:{one:"ավելի քիչ քան 1 վայրկյան",other:"ավելի քիչ քան {{count}} վայրկյան"},xSeconds:{one:"1 վայրկյան",other:"{{count}} վայրկյան"},halfAMinute:"կես րոպե",lessThanXMinutes:{one:"ավելի քիչ քան 1 րոպե",other:"ավելի քիչ քան {{count}} րոպե"},xMinutes:{one:"1 րոպե",other:"{{count}} րոպե"},aboutXHours:{one:"մոտ 1 ժամ",other:"մոտ {{count}} ժամ"},xHours:{one:"1 ժամ",other:"{{count}} ժամ"},xDays:{one:"1 օր",other:"{{count}} օր"},aboutXWeeks:{one:"մոտ 1 շաբաթ",other:"մոտ {{count}} շաբաթ"},xWeeks:{one:"1 շաբաթ",other:"{{count}} շաբաթ"},aboutXMonths:{one:"մոտ 1 ամիս",other:"մոտ {{count}} ամիս"},xMonths:{one:"1 ամիս",other:"{{count}} ամիս"},aboutXYears:{one:"մոտ 1 տարի",other:"մոտ {{count}} տարի"},xYears:{one:"1 տարի",other:"{{count}} տարի"},overXYears:{one:"ավելի քան 1 տարի",other:"ավելի քան {{count}} տարի"},almostXYears:{one:"համարյա 1 տարի",other:"համարյա {{count}} տարի"}},fPe=(n,e,t)=>{let r;const i=hPe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+" հետո":r+" առաջ":r},mPe={full:"d MMMM, y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd.MM.yyyy"},pPe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},gPe={full:"{{date}} 'ժ․'{{time}}",long:"{{date}} 'ժ․'{{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},vPe={date:we({formats:mPe,defaultWidth:"full"}),time:we({formats:pPe,defaultWidth:"full"}),dateTime:we({formats:gPe,defaultWidth:"full"})},yPe={lastWeek:"'նախորդ' eeee p'֊ին'",yesterday:"'երեկ' p'֊ին'",today:"'այսօր' p'֊ին'",tomorrow:"'վաղը' p'֊ին'",nextWeek:"'հաջորդ' eeee p'֊ին'",other:"P"},wPe=(n,e,t,r)=>yPe[n],bPe={narrow:["Ք","Մ"],abbreviated:["ՔԱ","ՄԹ"],wide:["Քրիստոսից առաջ","Մեր թվարկության"]},_Pe={narrow:["1","2","3","4"],abbreviated:["Ք1","Ք2","Ք3","Ք4"],wide:["1֊ին քառորդ","2֊րդ քառորդ","3֊րդ քառորդ","4֊րդ քառորդ"]},xPe={narrow:["Հ","Փ","Մ","Ա","Մ","Հ","Հ","Օ","Ս","Հ","Ն","Դ"],abbreviated:["հուն","փետ","մար","ապր","մայ","հուն","հուլ","օգս","սեպ","հոկ","նոյ","դեկ"],wide:["հունվար","փետրվար","մարտ","ապրիլ","մայիս","հունիս","հուլիս","օգոստոս","սեպտեմբեր","հոկտեմբեր","նոյեմբեր","դեկտեմբեր"]},MPe={narrow:["Կ","Ե","Ե","Չ","Հ","Ո","Շ"],short:["կր","եր","եք","չք","հգ","ուր","շբ"],abbreviated:["կիր","երկ","երք","չոր","հնգ","ուրբ","շաբ"],wide:["կիրակի","երկուշաբթի","երեքշաբթի","չորեքշաբթի","հինգշաբթի","ուրբաթ","շաբաթ"]},SPe={narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշեր",noon:"կեսօր",morning:"առավոտ",afternoon:"ցերեկ",evening:"երեկո",night:"գիշեր"}},CPe={narrow:{am:"a",pm:"p",midnight:"կեսգշ",noon:"կեսօր",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},abbreviated:{am:"AM",pm:"PM",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"},wide:{am:"a.m.",pm:"p.m.",midnight:"կեսգիշերին",noon:"կեսօրին",morning:"առավոտը",afternoon:"ցերեկը",evening:"երեկոյան",night:"գիշերը"}},PPe=(n,e)=>{const t=Number(n),r=t%100;return r<10&&r%10===1?t+"֊ին":t+"֊րդ"},EPe={ordinalNumber:PPe,era:K({values:bPe,defaultWidth:"wide"}),quarter:K({values:_Pe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:xPe,defaultWidth:"wide"}),day:K({values:MPe,defaultWidth:"wide"}),dayPeriod:K({values:SPe,defaultWidth:"wide",formattingValues:CPe,defaultFormattingWidth:"wide"})},BPe=/^(\d+)((-|֊)?(ին|րդ))?/i,TPe=/\d+/i,kPe={narrow:/^(Ք|Մ)/i,abbreviated:/^(Ք\.?\s?Ա\.?|Մ\.?\s?Թ\.?\s?Ա\.?|Մ\.?\s?Թ\.?|Ք\.?\s?Հ\.?)/i,wide:/^(քրիստոսից առաջ|մեր թվարկությունից առաջ|մեր թվարկության|քրիստոսից հետո)/i},IPe={any:[/^ք/i,/^մ/i]},LPe={narrow:/^[1234]/i,abbreviated:/^ք[1234]/i,wide:/^[1234]((-|֊)?(ին|րդ)) քառորդ/i},FPe={any:[/1/i,/2/i,/3/i,/4/i]},NPe={narrow:/^[հփմաօսնդ]/i,abbreviated:/^(հուն|փետ|մար|ապր|մայ|հուն|հուլ|օգս|սեպ|հոկ|նոյ|դեկ)/i,wide:/^(հունվար|փետրվար|մարտ|ապրիլ|մայիս|հունիս|հուլիս|օգոստոս|սեպտեմբեր|հոկտեմբեր|նոյեմբեր|դեկտեմբեր)/i},DPe={narrow:[/^հ/i,/^փ/i,/^մ/i,/^ա/i,/^մ/i,/^հ/i,/^հ/i,/^օ/i,/^ս/i,/^հ/i,/^ն/i,/^դ/i],any:[/^հու/i,/^փ/i,/^մար/i,/^ա/i,/^մայ/i,/^հուն/i,/^հուլ/i,/^օ/i,/^ս/i,/^հոկ/i,/^ն/i,/^դ/i]},RPe={narrow:/^[եչհոշկ]/i,short:/^(կր|եր|եք|չք|հգ|ուր|շբ)/i,abbreviated:/^(կիր|երկ|երք|չոր|հնգ|ուրբ|շաբ)/i,wide:/^(կիրակի|երկուշաբթի|երեքշաբթի|չորեքշաբթի|հինգշաբթի|ուրբաթ|շաբաթ)/i},UPe={narrow:[/^կ/i,/^ե/i,/^ե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],short:[/^կ/i,/^եր/i,/^եք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],abbreviated:[/^կ/i,/^երկ/i,/^երք/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i],wide:[/^կ/i,/^երկ/i,/^երե/i,/^չ/i,/^հ/i,/^(ո|Ո)/,/^շ/i]},OPe={narrow:/^([ap]|կեսգշ|կեսօր|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i,any:/^([ap]\.?\s?m\.?|կեսգիշեր(ին)?|կեսօր(ին)?|(առավոտը?|ցերեկը?|երեկո(յան)?|գիշերը?))/i},HPe={any:{am:/^a/i,pm:/^p/i,midnight:/կեսգիշեր/i,noon:/կեսօր/i,morning:/առավոտ/i,afternoon:/ցերեկ/i,evening:/երեկո/i,night:/գիշեր/i}},WPe={ordinalNumber:Nt({matchPattern:BPe,parsePattern:TPe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:kPe,defaultMatchWidth:"wide",parsePatterns:IPe,defaultParseWidth:"any"}),quarter:X({matchPatterns:LPe,defaultMatchWidth:"wide",parsePatterns:FPe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:NPe,defaultMatchWidth:"wide",parsePatterns:DPe,defaultParseWidth:"any"}),day:X({matchPatterns:RPe,defaultMatchWidth:"wide",parsePatterns:UPe,defaultParseWidth:"wide"}),dayPeriod:X({matchPatterns:OPe,defaultMatchWidth:"any",parsePatterns:HPe,defaultParseWidth:"any"})},QPe={code:"hy",formatDistance:fPe,formatLong:vPe,formatRelative:wPe,localize:EPe,match:WPe,options:{weekStartsOn:1,firstWeekContainsDate:1}},$Pe={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},jPe=(n,e,t)=>{let r;const i=$Pe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"dalam waktu "+r:r+" yang lalu":r},zPe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},VPe={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},GPe={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},KPe={date:we({formats:zPe,defaultWidth:"full"}),time:we({formats:VPe,defaultWidth:"full"}),dateTime:we({formats:GPe,defaultWidth:"full"})},qPe={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},XPe=(n,e,t,r)=>qPe[n],YPe={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},JPe={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},ZPe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},eEe={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},tEe={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},nEe={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},rEe=(n,e)=>"ke-"+Number(n),iEe={ordinalNumber:rEe,era:K({values:YPe,defaultWidth:"wide"}),quarter:K({values:JPe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:ZPe,defaultWidth:"wide"}),day:K({values:eEe,defaultWidth:"wide"}),dayPeriod:K({values:tEe,defaultWidth:"wide",formattingValues:nEe,defaultFormattingWidth:"wide"})},aEe=/^ke-(\d+)?/i,sEe=/\d+/i,oEe={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},cEe={any:[/^s/i,/^(m|e)/i]},lEe={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},uEe={any:[/1/i,/2/i,/3/i,/4/i]},dEe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},AEe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},hEe={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},fEe={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},mEe={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},pEe={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},gEe={ordinalNumber:Nt({matchPattern:aEe,parsePattern:sEe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:oEe,defaultMatchWidth:"wide",parsePatterns:cEe,defaultParseWidth:"any"}),quarter:X({matchPatterns:lEe,defaultMatchWidth:"wide",parsePatterns:uEe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:dEe,defaultMatchWidth:"wide",parsePatterns:AEe,defaultParseWidth:"any"}),day:X({matchPatterns:hEe,defaultMatchWidth:"wide",parsePatterns:fEe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:mEe,defaultMatchWidth:"any",parsePatterns:pEe,defaultParseWidth:"any"})},vEe={code:"id",formatDistance:jPe,formatLong:KPe,formatRelative:XPe,localize:iEe,match:gEe,options:{weekStartsOn:1,firstWeekContainsDate:1}},yEe={lessThanXSeconds:{one:"minna en 1 sekúnda",other:"minna en {{count}} sekúndur"},xSeconds:{one:"1 sekúnda",other:"{{count}} sekúndur"},halfAMinute:"hálf mínúta",lessThanXMinutes:{one:"minna en 1 mínúta",other:"minna en {{count}} mínútur"},xMinutes:{one:"1 mínúta",other:"{{count}} mínútur"},aboutXHours:{one:"u.þ.b. 1 klukkustund",other:"u.þ.b. {{count}} klukkustundir"},xHours:{one:"1 klukkustund",other:"{{count}} klukkustundir"},xDays:{one:"1 dagur",other:"{{count}} dagar"},aboutXWeeks:{one:"um viku",other:"um {{count}} vikur"},xWeeks:{one:"1 viku",other:"{{count}} vikur"},aboutXMonths:{one:"u.þ.b. 1 mánuður",other:"u.þ.b. {{count}} mánuðir"},xMonths:{one:"1 mánuður",other:"{{count}} mánuðir"},aboutXYears:{one:"u.þ.b. 1 ár",other:"u.þ.b. {{count}} ár"},xYears:{one:"1 ár",other:"{{count}} ár"},overXYears:{one:"meira en 1 ár",other:"meira en {{count}} ár"},almostXYears:{one:"næstum 1 ár",other:"næstum {{count}} ár"}},wEe=(n,e,t)=>{let r;const i=yEe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"í "+r:r+" síðan":r},bEe={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"d.MM.y"},_Ee={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},xEe={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},MEe={date:we({formats:bEe,defaultWidth:"full"}),time:we({formats:_Ee,defaultWidth:"full"}),dateTime:we({formats:xEe,defaultWidth:"full"})},SEe={lastWeek:"'síðasta' dddd 'kl.' p",yesterday:"'í gær kl.' p",today:"'í dag kl.' p",tomorrow:"'á morgun kl.' p",nextWeek:"dddd 'kl.' p",other:"P"},CEe=(n,e,t,r)=>SEe[n],PEe={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["fyrir Krist","eftir Krist"]},EEe={narrow:["1","2","3","4"],abbreviated:["1F","2F","3F","4F"],wide:["1. fjórðungur","2. fjórðungur","3. fjórðungur","4. fjórðungur"]},BEe={narrow:["J","F","M","A","M","J","J","Á","S","Ó","N","D"],abbreviated:["jan.","feb.","mars","apríl","maí","júní","júlí","ágúst","sept.","okt.","nóv.","des."],wide:["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"]},TEe={narrow:["S","M","Þ","M","F","F","L"],short:["Su","Má","Þr","Mi","Fi","Fö","La"],abbreviated:["sun.","mán.","þri.","mið.","fim.","fös.","lau."],wide:["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"]},kEe={narrow:{am:"f",pm:"e",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"miðnætti",noon:"hádegi",morning:"morgunn",afternoon:"síðdegi",evening:"kvöld",night:"nótt"}},IEe={narrow:{am:"f",pm:"e",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},abbreviated:{am:"f.h.",pm:"e.h.",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"},wide:{am:"fyrir hádegi",pm:"eftir hádegi",midnight:"á miðnætti",noon:"á hádegi",morning:"að morgni",afternoon:"síðdegis",evening:"um kvöld",night:"um nótt"}},LEe=(n,e)=>Number(n)+".",FEe={ordinalNumber:LEe,era:K({values:PEe,defaultWidth:"wide"}),quarter:K({values:EEe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:BEe,defaultWidth:"wide"}),day:K({values:TEe,defaultWidth:"wide"}),dayPeriod:K({values:kEe,defaultWidth:"wide",formattingValues:IEe,defaultFormattingWidth:"wide"})},NEe=/^(\d+)(\.)?/i,DEe=/\d+(\.)?/i,REe={narrow:/^(f\.Kr\.|e\.Kr\.)/i,abbreviated:/^(f\.Kr\.|e\.Kr\.)/i,wide:/^(fyrir Krist|eftir Krist)/i},UEe={any:[/^(f\.Kr\.)/i,/^(e\.Kr\.)/i]},OEe={narrow:/^[1234]\.?/i,abbreviated:/^q[1234]\.?/i,wide:/^[1234]\.? fjórðungur/i},HEe={any:[/1\.?/i,/2\.?/i,/3\.?/i,/4\.?/i]},WEe={narrow:/^[jfmásónd]/i,abbreviated:/^(jan\.|feb\.|mars\.|apríl\.|maí|júní|júlí|águst|sep\.|oct\.|nov\.|dec\.)/i,wide:/^(januar|febrúar|mars|apríl|maí|júní|júlí|águst|september|október|nóvember|desember)/i},QEe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^á/i,/^s/i,/^ó/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maí/i,/^jún/i,/^júl/i,/^áu/i,/^s/i,/^ó/i,/^n/i,/^d/i]},$Ee={narrow:/^[smtwf]/i,short:/^(su|má|þr|mi|fi|fö|la)/i,abbreviated:/^(sun|mán|þri|mið|fim|fös|lau)\.?/i,wide:/^(sunnudagur|mánudagur|þriðjudagur|miðvikudagur|fimmtudagur|föstudagur|laugardagur)/i},jEe={narrow:[/^s/i,/^m/i,/^þ/i,/^m/i,/^f/i,/^f/i,/^l/i],any:[/^su/i,/^má/i,/^þr/i,/^mi/i,/^fi/i,/^fö/i,/^la/i]},zEe={narrow:/^(f|e|síðdegis|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i,any:/^(fyrir hádegi|eftir hádegi|[ef]\.?h\.?|síðdegis|morgunn|(á|að|um) (morgni|kvöld|nótt|miðnætti))/i},VEe={any:{am:/^f/i,pm:/^e/i,midnight:/^mi/i,noon:/^há/i,morning:/morgunn/i,afternoon:/síðdegi/i,evening:/kvöld/i,night:/nótt/i}},GEe={ordinalNumber:Nt({matchPattern:NEe,parsePattern:DEe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:REe,defaultMatchWidth:"wide",parsePatterns:UEe,defaultParseWidth:"any"}),quarter:X({matchPatterns:OEe,defaultMatchWidth:"wide",parsePatterns:HEe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:WEe,defaultMatchWidth:"wide",parsePatterns:QEe,defaultParseWidth:"any"}),day:X({matchPatterns:$Ee,defaultMatchWidth:"wide",parsePatterns:jEe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:zEe,defaultMatchWidth:"any",parsePatterns:VEe,defaultParseWidth:"any"})},KEe={code:"is",formatDistance:wEe,formatLong:MEe,formatRelative:CEe,localize:FEe,match:GEe,options:{weekStartsOn:1,firstWeekContainsDate:4}},qEe={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},gU=(n,e,t)=>{let r;const i=qEe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"tra "+r:r+" fa":r},XEe={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},YEe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},JEe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ZEe={date:we({formats:XEe,defaultWidth:"full"}),time:we({formats:YEe,defaultWidth:"full"}),dateTime:we({formats:JEe,defaultWidth:"full"})},zC=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function eBe(n){switch(n){case 0:return"'domenica scorsa alle' p";default:return"'"+zC[n]+" scorso alle' p"}}function EI(n){return"'"+zC[n]+" alle' p"}function tBe(n){switch(n){case 0:return"'domenica prossima alle' p";default:return"'"+zC[n]+" prossimo alle' p"}}const nBe={lastWeek:(n,e,t)=>{const r=n.getDay();return vi(n,e,t)?EI(r):eBe(r)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(n,e,t)=>{const r=n.getDay();return vi(n,e,t)?EI(r):tBe(r)},other:"P"},vU=(n,e,t,r)=>{const i=nBe[n];return typeof i=="function"?i(e,t,r):i},rBe={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},iBe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},aBe={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},sBe={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},oBe={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},cBe={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},lBe=(n,e)=>{const t=Number(n);return String(t)},yU={ordinalNumber:lBe,era:K({values:rBe,defaultWidth:"wide"}),quarter:K({values:iBe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:aBe,defaultWidth:"wide"}),day:K({values:sBe,defaultWidth:"wide"}),dayPeriod:K({values:oBe,defaultWidth:"wide",formattingValues:cBe,defaultFormattingWidth:"wide"})},uBe=/^(\d+)(º)?/i,dBe=/\d+/i,ABe={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},hBe={any:[/^a/i,/^(d|e)/i]},fBe={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},mBe={any:[/1/i,/2/i,/3/i,/4/i]},pBe={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},gBe={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},vBe={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},yBe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},wBe={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},bBe={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},wU={ordinalNumber:Nt({matchPattern:uBe,parsePattern:dBe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:ABe,defaultMatchWidth:"wide",parsePatterns:hBe,defaultParseWidth:"any"}),quarter:X({matchPatterns:fBe,defaultMatchWidth:"wide",parsePatterns:mBe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:pBe,defaultMatchWidth:"wide",parsePatterns:gBe,defaultParseWidth:"any"}),day:X({matchPatterns:vBe,defaultMatchWidth:"wide",parsePatterns:yBe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:wBe,defaultMatchWidth:"any",parsePatterns:bBe,defaultParseWidth:"any"})},_Be={code:"it",formatDistance:gU,formatLong:ZEe,formatRelative:vU,localize:yU,match:wU,options:{weekStartsOn:1,firstWeekContainsDate:4}},xBe={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},MBe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},SBe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},CBe={date:we({formats:xBe,defaultWidth:"full"}),time:we({formats:MBe,defaultWidth:"full"}),dateTime:we({formats:SBe,defaultWidth:"full"})},PBe={code:"it-CH",formatDistance:gU,formatLong:CBe,formatRelative:vU,localize:yU,match:wU,options:{weekStartsOn:1,firstWeekContainsDate:4}},EBe={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},BBe=(n,e,t)=>{t=t||{};let r;const i=EBe[n];return typeof i=="string"?r=i:e===1?t.addSuffix&&i.oneWithSuffix?r=i.oneWithSuffix:r=i.one:t.addSuffix&&i.otherWithSuffix?r=i.otherWithSuffix.replace("{{count}}",String(e)):r=i.other.replace("{{count}}",String(e)),t.addSuffix?t.comparison&&t.comparison>0?r+"後":r+"前":r},TBe={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},kBe={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},IBe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},LBe={date:we({formats:TBe,defaultWidth:"full"}),time:we({formats:kBe,defaultWidth:"full"}),dateTime:we({formats:IBe,defaultWidth:"full"})},FBe={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},NBe=(n,e,t,r)=>FBe[n],DBe={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},RBe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},UBe={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},OBe={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},HBe={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},WBe={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},QBe=(n,e)=>{const t=Number(n);switch(String(e==null?void 0:e.unit)){case"year":return`${t}年`;case"quarter":return`第${t}四半期`;case"month":return`${t}月`;case"week":return`第${t}週`;case"date":return`${t}日`;case"hour":return`${t}時`;case"minute":return`${t}分`;case"second":return`${t}秒`;default:return`${t}`}},$Be={ordinalNumber:QBe,era:K({values:DBe,defaultWidth:"wide"}),quarter:K({values:RBe,defaultWidth:"wide",argumentCallback:n=>Number(n)-1}),month:K({values:UBe,defaultWidth:"wide"}),day:K({values:OBe,defaultWidth:"wide"}),dayPeriod:K({values:HBe,defaultWidth:"wide",formattingValues:WBe,defaultFormattingWidth:"wide"})},jBe=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,zBe=/\d+/i,VBe={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},GBe={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},KBe={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},qBe={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},XBe={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},YBe={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},JBe={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},ZBe={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},eTe={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},tTe={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},nTe={ordinalNumber:Nt({matchPattern:jBe,parsePattern:zBe,valueCallback:function(n){return parseInt(n,10)}}),era:X({matchPatterns:VBe,defaultMatchWidth:"wide",parsePatterns:GBe,defaultParseWidth:"any"}),quarter:X({matchPatterns:KBe,defaultMatchWidth:"wide",parsePatterns:qBe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:XBe,defaultMatchWidth:"wide",parsePatterns:YBe,defaultParseWidth:"any"}),day:X({matchPatterns:JBe,defaultMatchWidth:"wide",parsePatterns:ZBe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:eTe,defaultMatchWidth:"any",parsePatterns:tTe,defaultParseWidth:"any"})},rTe={code:"ja",formatDistance:BBe,formatLong:LBe,formatRelative:NBe,localize:$Be,match:nTe,options:{weekStartsOn:0,firstWeekContainsDate:1}},iTe={lessThanXSeconds:{one:"1びょうみまん",other:"{{count}}びょうみまん",oneWithSuffix:"やく1びょう",otherWithSuffix:"やく{{count}}びょう"},xSeconds:{one:"1びょう",other:"{{count}}びょう"},halfAMinute:"30びょう",lessThanXMinutes:{one:"1ぷんみまん",other:"{{count}}ふんみまん",oneWithSuffix:"やく1ぷん",otherWithSuffix:"やく{{count}}ふん"},xMinutes:{one:"1ぷん",other:"{{count}}ふん"},aboutXHours:{one:"やく1じかん",other:"やく{{count}}じかん"},xHours:{one:"1じかん",other:"{{count}}じかん"},xDays:{one:"1にち",other:"{{count}}にち"},aboutXWeeks:{one:"やく1しゅうかん",other:"やく{{count}}しゅうかん"},xWeeks:{one:"1しゅうかん",other:"{{count}}しゅうかん"},aboutXMonths:{one:"やく1かげつ",other:"やく{{count}}かげつ"},xMonths:{one:"1かげつ",other:"{{count}}かげつ"},aboutXYears:{one:"やく1ねん",other:"やく{{count}}ねん"},xYears:{one:"1ねん",other:"{{count}}ねん"},overXYears:{one:"1ねんいじょう",other:"{{count}}ねんいじょう"},almostXYears:{one:"1ねんちかく",other:"{{count}}ねんちかく"}},aTe=(n,e,t)=>{t=t||{};let r;const i=iTe[n];return typeof i=="string"?r=i:e===1?t.addSuffix&&i.oneWithSuffix?r=i.oneWithSuffix:r=i.one:t.addSuffix&&i.otherWithSuffix?r=i.otherWithSuffix.replace("{{count}}",String(e)):r=i.other.replace("{{count}}",String(e)),t.addSuffix?t.comparison&&t.comparison>0?r+"あと":r+"まえ":r},sTe={full:"yねんMがつdにちEEEE",long:"yねんMがつdにち",medium:"y/MM/dd",short:"y/MM/dd"},oTe={full:"Hじmmふんssびょう zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},cTe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},lTe={date:we({formats:sTe,defaultWidth:"full"}),time:we({formats:oTe,defaultWidth:"full"}),dateTime:we({formats:cTe,defaultWidth:"full"})},uTe={lastWeek:"せんしゅうのeeeeのp",yesterday:"きのうのp",today:"きょうのp",tomorrow:"あしたのp",nextWeek:"よくしゅうのeeeeのp",other:"P"},dTe=(n,e,t,r)=>uTe[n],ATe={narrow:["BC","AC"],abbreviated:["きげんぜん","せいれき"],wide:["きげんぜん","せいれき"]},hTe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["だい1しはんき","だい2しはんき","だい3しはんき","だい4しはんき"]},fTe={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1がつ","2がつ","3がつ","4がつ","5がつ","6がつ","7がつ","8がつ","9がつ","10がつ","11がつ","12がつ"],wide:["1がつ","2がつ","3がつ","4がつ","5がつ","6がつ","7がつ","8がつ","9がつ","10がつ","11がつ","12がつ"]},mTe={narrow:["にち","げつ","か","すい","もく","きん","ど"],short:["にち","げつ","か","すい","もく","きん","ど"],abbreviated:["にち","げつ","か","すい","もく","きん","ど"],wide:["にちようび","げつようび","かようび","すいようび","もくようび","きんようび","どようび"]},pTe={narrow:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},abbreviated:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},wide:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"}},gTe={narrow:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},abbreviated:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"},wide:{am:"ごぜん",pm:"ごご",midnight:"しんや",noon:"しょうご",morning:"あさ",afternoon:"ごご",evening:"よる",night:"しんや"}},vTe=(n,e)=>{const t=Number(n);switch(String(e==null?void 0:e.unit)){case"year":return`${t}ねん`;case"quarter":return`だい${t}しはんき`;case"month":return`${t}がつ`;case"week":return`だい${t}しゅう`;case"date":return`${t}にち`;case"hour":return`${t}じ`;case"minute":return`${t}ふん`;case"second":return`${t}びょう`;default:return`${t}`}},yTe={ordinalNumber:vTe,era:K({values:ATe,defaultWidth:"wide"}),quarter:K({values:hTe,defaultWidth:"wide",argumentCallback:n=>Number(n)-1}),month:K({values:fTe,defaultWidth:"wide"}),day:K({values:mTe,defaultWidth:"wide"}),dayPeriod:K({values:pTe,defaultWidth:"wide",formattingValues:gTe,defaultFormattingWidth:"wide"})},wTe=/^だ?い?\d+(ねん|しはんき|がつ|しゅう|にち|じ|ふん|びょう)?/i,bTe=/\d+/i,_Te={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(きげん[前後]|せいれき)/i,wide:/^(きげん[前後]|せいれき)/i},xTe={narrow:[/^B/i,/^A/i],any:[/^(きげんぜん)/i,/^(せいれき|きげんご)/i]},MTe={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^だい[1234一二三四1234]しはんき/i},STe={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},CTe={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])がつ/i,wide:/^([123456789]|1[012])がつ/i},PTe={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},ETe={narrow:/^(にち|げつ|か|すい|もく|きん|ど)/,short:/^(にち|げつ|か|すい|もく|きん|ど)/,abbreviated:/^(にち|げつ|か|すい|もく|きん|ど)/,wide:/^(にち|げつ|か|すい|もく|きん|ど)ようび/},BTe={any:[/^にち/,/^げつ/,/^か/,/^すい/,/^もく/,/^きん/,/^ど/]},TTe={any:/^(AM|PM|ごぜん|ごご|しょうご|しんや|まよなか|よる|あさ)/i},kTe={any:{am:/^(A|ごぜん)/i,pm:/^(P|ごご)/i,midnight:/^しんや|まよなか/i,noon:/^しょうご/i,morning:/^あさ/i,afternoon:/^ごご/i,evening:/^よる/i,night:/^しんや/i}},ITe={ordinalNumber:Nt({matchPattern:wTe,parsePattern:bTe,valueCallback:function(n){return parseInt(n,10)}}),era:X({matchPatterns:_Te,defaultMatchWidth:"wide",parsePatterns:xTe,defaultParseWidth:"any"}),quarter:X({matchPatterns:MTe,defaultMatchWidth:"wide",parsePatterns:STe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:CTe,defaultMatchWidth:"wide",parsePatterns:PTe,defaultParseWidth:"any"}),day:X({matchPatterns:ETe,defaultMatchWidth:"wide",parsePatterns:BTe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:TTe,defaultMatchWidth:"any",parsePatterns:kTe,defaultParseWidth:"any"})},LTe={code:"ja-Hira",formatDistance:aTe,formatLong:lTe,formatRelative:dTe,localize:yTe,match:ITe,options:{weekStartsOn:0,firstWeekContainsDate:1}},FTe={lessThanXSeconds:{past:"{{count}} წამზე ნაკლები ხნის წინ",present:"{{count}} წამზე ნაკლები",future:"{{count}} წამზე ნაკლებში"},xSeconds:{past:"{{count}} წამის წინ",present:"{{count}} წამი",future:"{{count}} წამში"},halfAMinute:{past:"ნახევარი წუთის წინ",present:"ნახევარი წუთი",future:"ნახევარი წუთში"},lessThanXMinutes:{past:"{{count}} წუთზე ნაკლები ხნის წინ",present:"{{count}} წუთზე ნაკლები",future:"{{count}} წუთზე ნაკლებში"},xMinutes:{past:"{{count}} წუთის წინ",present:"{{count}} წუთი",future:"{{count}} წუთში"},aboutXHours:{past:"დაახლოებით {{count}} საათის წინ",present:"დაახლოებით {{count}} საათი",future:"დაახლოებით {{count}} საათში"},xHours:{past:"{{count}} საათის წინ",present:"{{count}} საათი",future:"{{count}} საათში"},xDays:{past:"{{count}} დღის წინ",present:"{{count}} დღე",future:"{{count}} დღეში"},aboutXWeeks:{past:"დაახლოებით {{count}} კვირას წინ",present:"დაახლოებით {{count}} კვირა",future:"დაახლოებით {{count}} კვირაში"},xWeeks:{past:"{{count}} კვირას კვირა",present:"{{count}} კვირა",future:"{{count}} კვირაში"},aboutXMonths:{past:"დაახლოებით {{count}} თვის წინ",present:"დაახლოებით {{count}} თვე",future:"დაახლოებით {{count}} თვეში"},xMonths:{past:"{{count}} თვის წინ",present:"{{count}} თვე",future:"{{count}} თვეში"},aboutXYears:{past:"დაახლოებით {{count}} წლის წინ",present:"დაახლოებით {{count}} წელი",future:"დაახლოებით {{count}} წელში"},xYears:{past:"{{count}} წლის წინ",present:"{{count}} წელი",future:"{{count}} წელში"},overXYears:{past:"{{count}} წელზე მეტი ხნის წინ",present:"{{count}} წელზე მეტი",future:"{{count}} წელზე მეტი ხნის შემდეგ"},almostXYears:{past:"თითქმის {{count}} წლის წინ",present:"თითქმის {{count}} წელი",future:"თითქმის {{count}} წელში"}},NTe=(n,e,t)=>{let r;const i=FTe[n];return typeof i=="string"?r=i:t!=null&&t.addSuffix&&t.comparison&&t.comparison>0?r=i.future.replace("{{count}}",String(e)):t!=null&&t.addSuffix?r=i.past.replace("{{count}}",String(e)):r=i.present.replace("{{count}}",String(e)),r},DTe={full:"EEEE, do MMMM, y",long:"do, MMMM, y",medium:"d, MMM, y",short:"dd/MM/yyyy"},RTe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},UTe={full:"{{date}} {{time}}'-ზე'",long:"{{date}} {{time}}'-ზე'",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},OTe={date:we({formats:DTe,defaultWidth:"full"}),time:we({formats:RTe,defaultWidth:"full"}),dateTime:we({formats:UTe,defaultWidth:"full"})},HTe={lastWeek:"'წინა' eeee p'-ზე'",yesterday:"'გუშინ' p'-ზე'",today:"'დღეს' p'-ზე'",tomorrow:"'ხვალ' p'-ზე'",nextWeek:"'შემდეგი' eeee p'-ზე'",other:"P"},WTe=(n,e,t,r)=>HTe[n],QTe={narrow:["ჩ.წ-მდე","ჩ.წ"],abbreviated:["ჩვ.წ-მდე","ჩვ.წ"],wide:["ჩვენს წელთაღრიცხვამდე","ჩვენი წელთაღრიცხვით"]},$Te={narrow:["1","2","3","4"],abbreviated:["1-ლი კვ","2-ე კვ","3-ე კვ","4-ე კვ"],wide:["1-ლი კვარტალი","2-ე კვარტალი","3-ე კვარტალი","4-ე კვარტალი"]},jTe={narrow:["ია","თე","მა","აპ","მს","ვნ","ვლ","აგ","სე","ოქ","ნო","დე"],abbreviated:["იან","თებ","მარ","აპრ","მაი","ივნ","ივლ","აგვ","სექ","ოქტ","ნოე","დეკ"],wide:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"]},zTe={narrow:["კვ","ორ","სა","ოთ","ხუ","პა","შა"],short:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],abbreviated:["კვი","ორშ","სამ","ოთხ","ხუთ","პარ","შაბ"],wide:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},VTe={narrow:{am:"a",pm:"p",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამე",noon:"შუადღე",morning:"დილა",afternoon:"საღამო",evening:"საღამო",night:"ღამე"}},GTe={narrow:{am:"a",pm:"p",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},abbreviated:{am:"AM",pm:"PM",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"},wide:{am:"a.m.",pm:"p.m.",midnight:"შუაღამით",noon:"შუადღისას",morning:"დილით",afternoon:"ნაშუადღევს",evening:"საღამოს",night:"ღამით"}},KTe=n=>{const e=Number(n);return e===1?e+"-ლი":e+"-ე"},qTe={ordinalNumber:KTe,era:K({values:QTe,defaultWidth:"wide"}),quarter:K({values:$Te,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:jTe,defaultWidth:"wide"}),day:K({values:zTe,defaultWidth:"wide"}),dayPeriod:K({values:VTe,defaultWidth:"wide",formattingValues:GTe,defaultFormattingWidth:"wide"})},XTe=/^(\d+)(-ლი|-ე)?/i,YTe=/\d+/i,JTe={narrow:/^(ჩვ?\.წ)/i,abbreviated:/^(ჩვ?\.წ)/i,wide:/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე|ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i},ZTe={any:[/^(ჩვენს წელთაღრიცხვამდე|ქრისტეშობამდე)/i,/^(ჩვენი წელთაღრიცხვით|ქრისტეშობიდან)/i]},eke={narrow:/^[1234]/i,abbreviated:/^[1234]-(ლი|ე)? კვ/i,wide:/^[1234]-(ლი|ე)? კვარტალი/i},tke={any:[/1/i,/2/i,/3/i,/4/i]},nke={any:/^(ია|თე|მა|აპ|მს|ვნ|ვლ|აგ|სე|ოქ|ნო|დე)/i},rke={any:[/^ია/i,/^თ/i,/^მარ/i,/^აპ/i,/^მაი/i,/^ი?ვნ/i,/^ი?ვლ/i,/^აგ/i,/^ს/i,/^ო/i,/^ნ/i,/^დ/i]},ike={narrow:/^(კვ|ორ|სა|ოთ|ხუ|პა|შა)/i,short:/^(კვი|ორშ|სამ|ოთხ|ხუთ|პარ|შაბ)/i,wide:/^(კვირა|ორშაბათი|სამშაბათი|ოთხშაბათი|ხუთშაბათი|პარასკევი|შაბათი)/i},ake={any:[/^კვ/i,/^ორ/i,/^სა/i,/^ოთ/i,/^ხუ/i,/^პა/i,/^შა/i]},ske={any:/^([ap]\.?\s?m\.?|შუაღ|დილ)/i},oke={any:{am:/^a/i,pm:/^p/i,midnight:/^შუაღ/i,noon:/^შუადღ/i,morning:/^დილ/i,afternoon:/ნაშუადღევს/i,evening:/საღამო/i,night:/ღამ/i}},cke={ordinalNumber:Nt({matchPattern:XTe,parsePattern:YTe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:JTe,defaultMatchWidth:"wide",parsePatterns:ZTe,defaultParseWidth:"any"}),quarter:X({matchPatterns:eke,defaultMatchWidth:"wide",parsePatterns:tke,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:nke,defaultMatchWidth:"any",parsePatterns:rke,defaultParseWidth:"any"}),day:X({matchPatterns:ike,defaultMatchWidth:"wide",parsePatterns:ake,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:ske,defaultMatchWidth:"any",parsePatterns:oke,defaultParseWidth:"any"})},lke={code:"ka",formatDistance:NTe,formatLong:OTe,formatRelative:WTe,localize:qTe,match:cke,options:{weekStartsOn:1,firstWeekContainsDate:1}},uke={lessThanXSeconds:{regular:{one:"1 секундтан аз",singularNominative:"{{count}} секундтан аз",singularGenitive:"{{count}} секундтан аз",pluralGenitive:"{{count}} секундтан аз"},future:{one:"бір секундтан кейін",singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},xSeconds:{regular:{singularNominative:"{{count}} секунд",singularGenitive:"{{count}} секунд",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунд бұрын",singularGenitive:"{{count}} секунд бұрын",pluralGenitive:"{{count}} секунд бұрын"},future:{singularNominative:"{{count}} секундтан кейін",singularGenitive:"{{count}} секундтан кейін",pluralGenitive:"{{count}} секундтан кейін"}},halfAMinute:n=>n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"жарты минут ішінде":"жарты минут бұрын":"жарты минут",lessThanXMinutes:{regular:{one:"1 минуттан аз",singularNominative:"{{count}} минуттан аз",singularGenitive:"{{count}} минуттан аз",pluralGenitive:"{{count}} минуттан аз"},future:{one:"минуттан кем ",singularNominative:"{{count}} минуттан кем",singularGenitive:"{{count}} минуттан кем",pluralGenitive:"{{count}} минуттан кем"}},xMinutes:{regular:{singularNominative:"{{count}} минут",singularGenitive:"{{count}} минут",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минут бұрын",singularGenitive:"{{count}} минут бұрын",pluralGenitive:"{{count}} минут бұрын"},future:{singularNominative:"{{count}} минуттан кейін",singularGenitive:"{{count}} минуттан кейін",pluralGenitive:"{{count}} минуттан кейін"}},aboutXHours:{regular:{singularNominative:"шамамен {{count}} сағат",singularGenitive:"шамамен {{count}} сағат",pluralGenitive:"шамамен {{count}} сағат"},future:{singularNominative:"шамамен {{count}} сағаттан кейін",singularGenitive:"шамамен {{count}} сағаттан кейін",pluralGenitive:"шамамен {{count}} сағаттан кейін"}},xHours:{regular:{singularNominative:"{{count}} сағат",singularGenitive:"{{count}} сағат",pluralGenitive:"{{count}} сағат"}},xDays:{regular:{singularNominative:"{{count}} күн",singularGenitive:"{{count}} күн",pluralGenitive:"{{count}} күн"},future:{singularNominative:"{{count}} күннен кейін",singularGenitive:"{{count}} күннен кейін",pluralGenitive:"{{count}} күннен кейін"}},aboutXWeeks:{type:"weeks",one:"шамамен 1 апта",other:"шамамен {{count}} апта"},xWeeks:{type:"weeks",one:"1 апта",other:"{{count}} апта"},aboutXMonths:{regular:{singularNominative:"шамамен {{count}} ай",singularGenitive:"шамамен {{count}} ай",pluralGenitive:"шамамен {{count}} ай"},future:{singularNominative:"шамамен {{count}} айдан кейін",singularGenitive:"шамамен {{count}} айдан кейін",pluralGenitive:"шамамен {{count}} айдан кейін"}},xMonths:{regular:{singularNominative:"{{count}} ай",singularGenitive:"{{count}} ай",pluralGenitive:"{{count}} ай"}},aboutXYears:{regular:{singularNominative:"шамамен {{count}} жыл",singularGenitive:"шамамен {{count}} жыл",pluralGenitive:"шамамен {{count}} жыл"},future:{singularNominative:"шамамен {{count}} жылдан кейін",singularGenitive:"шамамен {{count}} жылдан кейін",pluralGenitive:"шамамен {{count}} жылдан кейін"}},xYears:{regular:{singularNominative:"{{count}} жыл",singularGenitive:"{{count}} жыл",pluralGenitive:"{{count}} жыл"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}},overXYears:{regular:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"},future:{singularNominative:"{{count}} жылдан астам",singularGenitive:"{{count}} жылдан астам",pluralGenitive:"{{count}} жылдан астам"}},almostXYears:{regular:{singularNominative:"{{count}} жылға жақын",singularGenitive:"{{count}} жылға жақын",pluralGenitive:"{{count}} жылға жақын"},future:{singularNominative:"{{count}} жылдан кейін",singularGenitive:"{{count}} жылдан кейін",pluralGenitive:"{{count}} жылдан кейін"}}};function hm(n,e){if(n.one&&e===1)return n.one;const t=e%10,r=e%100;return t===1&&r!==11?n.singularNominative.replace("{{count}}",String(e)):t>=2&&t<=4&&(r<10||r>20)?n.singularGenitive.replace("{{count}}",String(e)):n.pluralGenitive.replace("{{count}}",String(e))}const dke=(n,e,t)=>{const r=uke[n];return typeof r=="function"?r(t):r.type==="weeks"?e===1?r.one:r.other.replace("{{count}}",String(e)):t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r.future?hm(r.future,e):hm(r.regular,e)+" кейін":r.past?hm(r.past,e):hm(r.regular,e)+" бұрын":hm(r.regular,e)},Ake={full:"EEEE, do MMMM y 'ж.'",long:"do MMMM y 'ж.'",medium:"d MMM y 'ж.'",short:"dd.MM.yyyy"},hke={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},fke={any:"{{date}}, {{time}}"},mke={date:we({formats:Ake,defaultWidth:"full"}),time:we({formats:hke,defaultWidth:"full"}),dateTime:we({formats:fke,defaultWidth:"any"})},VC=["жексенбіде","дүйсенбіде","сейсенбіде","сәрсенбіде","бейсенбіде","жұмада","сенбіде"];function pke(n){return"'өткен "+VC[n]+" сағат' p'-де'"}function BI(n){return"'"+VC[n]+" сағат' p'-де'"}function gke(n){return"'келесі "+VC[n]+" сағат' p'-де'"}const vke={lastWeek:(n,e,t)=>{const r=n.getDay();return vi(n,e,t)?BI(r):pke(r)},yesterday:"'кеше сағат' p'-де'",today:"'бүгін сағат' p'-де'",tomorrow:"'ертең сағат' p'-де'",nextWeek:(n,e,t)=>{const r=n.getDay();return vi(n,e,t)?BI(r):gke(r)},other:"P"},yke=(n,e,t,r)=>{const i=vke[n];return typeof i=="function"?i(e,t,r):i},wke={narrow:["б.з.д.","б.з."],abbreviated:["б.з.д.","б.з."],wide:["біздің заманымызға дейін","біздің заманымыз"]},bke={narrow:["1","2","3","4"],abbreviated:["1-ші тоқ.","2-ші тоқ.","3-ші тоқ.","4-ші тоқ."],wide:["1-ші тоқсан","2-ші тоқсан","3-ші тоқсан","4-ші тоқсан"]},_ke={narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},xke={narrow:["Қ","А","Н","С","М","М","Ш","Т","Қ","Қ","Қ","Ж"],abbreviated:["қаң","ақп","нау","сәу","мам","мау","шіл","там","қыр","қаз","қар","жел"],wide:["қаңтар","ақпан","наурыз","сәуір","мамыр","маусым","шілде","тамыз","қыркүйек","қазан","қараша","желтоқсан"]},Mke={narrow:["Ж","Д","С","С","Б","Ж","С"],short:["жс","дс","сс","ср","бс","жм","сб"],abbreviated:["жс","дс","сс","ср","бс","жм","сб"],wide:["жексенбі","дүйсенбі","сейсенбі","сәрсенбі","бейсенбі","жұма","сенбі"]},Ske={narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасы",noon:"түс",morning:"таң",afternoon:"күндіз",evening:"кеш",night:"түн"}},Cke={narrow:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түс",morning:"таң",afternoon:"күн",evening:"кеш",night:"түн"},wide:{am:"ТД",pm:"ТК",midnight:"түн ортасында",noon:"түсте",morning:"таңертең",afternoon:"күндіз",evening:"кеште",night:"түнде"}},z_={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"},Pke=(n,e)=>{const t=Number(n),r=t%10,i=t>=100?100:null,a=z_[t]||z_[r]||i&&z_[i]||"";return t+a},Eke={ordinalNumber:Pke,era:K({values:wke,defaultWidth:"wide"}),quarter:K({values:bke,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:_ke,defaultWidth:"wide",formattingValues:xke,defaultFormattingWidth:"wide"}),day:K({values:Mke,defaultWidth:"wide"}),dayPeriod:K({values:Ske,defaultWidth:"any",formattingValues:Cke,defaultFormattingWidth:"wide"})},Bke=/^(\d+)(-?(ші|шы))?/i,Tke=/\d+/i,kke={narrow:/^((б )?з\.?\s?д\.?)/i,abbreviated:/^((б )?з\.?\s?д\.?)/i,wide:/^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i},Ike={any:[/^б/i,/^з/i]},Lke={narrow:/^[1234]/i,abbreviated:/^[1234](-?ші)? тоқ.?/i,wide:/^[1234](-?ші)? тоқсан/i},Fke={any:[/1/i,/2/i,/3/i,/4/i]},Nke={narrow:/^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,abbreviated:/^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,wide:/^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i},Dke={narrow:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i],abbreviated:[/^қаң/i,/^ақп/i,/^нау/i,/^сәу/i,/^мам/i,/^мау/i,/^шіл/i,/^там/i,/^қыр/i,/^қаз/i,/^қар/i,/^жел/i],any:[/^қ/i,/^а/i,/^н/i,/^с/i,/^м/i,/^м/i,/^ш/i,/^т/i,/^қ/i,/^қ/i,/^қ/i,/^ж/i]},Rke={narrow:/^(ж|д|с|с|б|ж|с)/i,short:/^(жс|дс|сс|ср|бс|жм|сб)/i,wide:/^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i},Uke={narrow:[/^ж/i,/^д/i,/^с/i,/^с/i,/^б/i,/^ж/i,/^с/i],short:[/^жс/i,/^дс/i,/^сс/i,/^ср/i,/^бс/i,/^жм/i,/^сб/i],any:[/^ж[ек]/i,/^д[үй]/i,/^сe[й]/i,/^сә[р]/i,/^б[ей]/i,/^ж[ұм]/i,/^се[н]/i]},Oke={narrow:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,wide:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,any:/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i},Hke={any:{am:/^ТД/i,pm:/^ТК/i,midnight:/^түн орта/i,noon:/^күндіз/i,morning:/таң/i,afternoon:/түс/i,evening:/кеш/i,night:/түн/i}},Wke={ordinalNumber:Nt({matchPattern:Bke,parsePattern:Tke,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:kke,defaultMatchWidth:"wide",parsePatterns:Ike,defaultParseWidth:"any"}),quarter:X({matchPatterns:Lke,defaultMatchWidth:"wide",parsePatterns:Fke,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Nke,defaultMatchWidth:"wide",parsePatterns:Dke,defaultParseWidth:"any"}),day:X({matchPatterns:Rke,defaultMatchWidth:"wide",parsePatterns:Uke,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Oke,defaultMatchWidth:"wide",parsePatterns:Hke,defaultParseWidth:"any"})},Qke={code:"kk",formatDistance:dke,formatLong:mke,formatRelative:yke,localize:Eke,match:Wke,options:{weekStartsOn:1,firstWeekContainsDate:1}},$ke={lessThanXSeconds:"តិចជាង {{count}} វិនាទី",xSeconds:"{{count}} វិនាទី",halfAMinute:"កន្លះនាទី",lessThanXMinutes:"តិចជាង {{count}} នាទី",xMinutes:"{{count}} នាទី",aboutXHours:"ប្រហែល {{count}} ម៉ោង",xHours:"{{count}} ម៉ោង",xDays:"{{count}} ថ្ងៃ",aboutXWeeks:"ប្រហែល {{count}} សប្តាហ៍",xWeeks:"{{count}} សប្តាហ៍",aboutXMonths:"ប្រហែល {{count}} ខែ",xMonths:"{{count}} ខែ",aboutXYears:"ប្រហែល {{count}} ឆ្នាំ",xYears:"{{count}} ឆ្នាំ",overXYears:"ជាង {{count}} ឆ្នាំ",almostXYears:"ជិត {{count}} ឆ្នាំ"},jke=(n,e,t)=>{let i=$ke[n];return typeof e=="number"&&(i=i.replace("{{count}}",e.toString())),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"ក្នុងរយៈពេល "+i:i+"មុន":i},zke={full:"EEEE do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},Vke={full:"h:mm:ss a",long:"h:mm:ss a",medium:"h:mm:ss a",short:"h:mm a"},Gke={full:"{{date}} 'ម៉ោង' {{time}}",long:"{{date}} 'ម៉ោង' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Kke={date:we({formats:zke,defaultWidth:"full"}),time:we({formats:Vke,defaultWidth:"full"}),dateTime:we({formats:Gke,defaultWidth:"full"})},qke={lastWeek:"'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​មុនម៉ោង' p",yesterday:"'ម្សិលមិញនៅម៉ោង' p",today:"'ថ្ងៃនេះម៉ោង' p",tomorrow:"'ថ្ងៃស្អែកម៉ោង' p",nextWeek:"'ថ្ងៃ'eeee'ស​ប្តា​ហ៍​ក្រោយម៉ោង' p",other:"P"},Xke=(n,e,t,r)=>qke[n],Yke={narrow:["ម.គស","គស"],abbreviated:["មុនគ.ស","គ.ស"],wide:["មុនគ្រិស្តសករាជ","នៃគ្រិស្តសករាជ"]},Jke={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ត្រីមាសទី 1","ត្រីមាសទី 2","ត្រីមាសទី 3","ត្រីមាសទី 4"]},Zke={narrow:["ម.ក","ក.ម","មិ","ម.ស","ឧ.ស","ម.ថ","ក.ដ","សី","កញ","តុ","វិ","ធ"],abbreviated:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"],wide:["មករា","កុម្ភៈ","មីនា","មេសា","ឧសភា","មិថុនា","កក្កដា","សីហា","កញ្ញា","តុលា","វិច្ឆិកា","ធ្នូ"]},eIe={narrow:["អា","ច","អ","ព","ព្រ","សុ","ស"],short:["អា","ច","អ","ព","ព្រ","សុ","ស"],abbreviated:["អា","ច","អ","ព","ព្រ","សុ","ស"],wide:["អាទិត្យ","ចន្ទ","អង្គារ","ពុធ","ព្រហស្បតិ៍","សុក្រ","សៅរ៍"]},tIe={narrow:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},abbreviated:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},wide:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"}},nIe={narrow:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},abbreviated:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"},wide:{am:"ព្រឹក",pm:"ល្ងាច",midnight:"​ពេលកណ្ដាលអធ្រាត្រ",noon:"ពេលថ្ងៃត្រង់",morning:"ពេលព្រឹក",afternoon:"ពេលរសៀល",evening:"ពេលល្ងាច",night:"ពេលយប់"}},rIe=(n,e)=>Number(n).toString(),iIe={ordinalNumber:rIe,era:K({values:Yke,defaultWidth:"wide"}),quarter:K({values:Jke,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Zke,defaultWidth:"wide"}),day:K({values:eIe,defaultWidth:"wide"}),dayPeriod:K({values:tIe,defaultWidth:"wide",formattingValues:nIe,defaultFormattingWidth:"wide"})},aIe=/^(\d+)(th|st|nd|rd)?/i,sIe=/\d+/i,oIe={narrow:/^(ម\.)?គស/i,abbreviated:/^(មុន)?គ\.ស/i,wide:/^(មុន|នៃ)គ្រិស្តសករាជ/i},cIe={any:[/^(ម|មុន)គ\.?ស/i,/^(នៃ)?គ\.?ស/i]},lIe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^(ត្រីមាស)(ទី)?\s?[1234]/i},uIe={any:[/1/i,/2/i,/3/i,/4/i]},dIe={narrow:/^(ម\.ក|ក\.ម|មិ|ម\.ស|ឧ\.ស|ម\.ថ|ក\.ដ|សី|កញ|តុ|វិ|ធ)/i,abbreviated:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i,wide:/^(មករា|កុម្ភៈ|មីនា|មេសា|ឧសភា|មិថុនា|កក្កដា|សីហា|កញ្ញា|តុលា|វិច្ឆិកា|ធ្នូ)/i},AIe={narrow:[/^ម\.ក/i,/^ក\.ម/i,/^មិ/i,/^ម\.ស/i,/^ឧ\.ស/i,/^ម\.ថ/i,/^ក\.ដ/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិ/i,/^ធ/i],any:[/^មក/i,/^កុ/i,/^មីន/i,/^មេ/i,/^ឧស/i,/^មិថ/i,/^កក/i,/^សី/i,/^កញ/i,/^តុ/i,/^វិច/i,/^ធ/i]},hIe={narrow:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,short:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,abbreviated:/^(អា|ច|អ|ព|ព្រ|សុ|ស)/i,wide:/^(អាទិត្យ|ចន្ទ|អង្គារ|ពុធ|ព្រហស្បតិ៍|សុក្រ|សៅរ៍)/i},fIe={narrow:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^ស/i],any:[/^អា/i,/^ច/i,/^អ/i,/^ព/i,/^ព្រ/i,/^សុ/i,/^សៅ/i]},mIe={narrow:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i,any:/^(ព្រឹក|ល្ងាច|ពេលព្រឹក|ពេលថ្ងៃត្រង់|ពេលល្ងាច|ពេលរសៀល|ពេលយប់|ពេលកណ្ដាលអធ្រាត្រ)/i},pIe={any:{am:/^ព្រឹក/i,pm:/^ល្ងាច/i,midnight:/^ពេលកណ្ដាលអធ្រាត្រ/i,noon:/^ពេលថ្ងៃត្រង់/i,morning:/ពេលព្រឹក/i,afternoon:/ពេលរសៀល/i,evening:/ពេលល្ងាច/i,night:/ពេលយប់/i}},gIe={ordinalNumber:Nt({matchPattern:aIe,parsePattern:sIe,valueCallback:function(n){return parseInt(n,10)}}),era:X({matchPatterns:oIe,defaultMatchWidth:"wide",parsePatterns:cIe,defaultParseWidth:"any"}),quarter:X({matchPatterns:lIe,defaultMatchWidth:"wide",parsePatterns:uIe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:dIe,defaultMatchWidth:"wide",parsePatterns:AIe,defaultParseWidth:"any"}),day:X({matchPatterns:hIe,defaultMatchWidth:"wide",parsePatterns:fIe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:mIe,defaultMatchWidth:"any",parsePatterns:pIe,defaultParseWidth:"any"})},vIe={code:"km",formatDistance:jke,formatLong:Kke,formatRelative:Xke,localize:iIe,match:gIe,options:{weekStartsOn:0,firstWeekContainsDate:1}},yIe={lessThanXSeconds:{one:{default:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",future:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",past:"1 ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ"},other:{default:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",future:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ",past:"{{count}} ಸೆಕೆಂಡ್‌ಗಿಂತ ಕಡಿಮೆ"}},xSeconds:{one:{default:"1 ಸೆಕೆಂಡ್",future:"1 ಸೆಕೆಂಡ್‌ನಲ್ಲಿ",past:"1 ಸೆಕೆಂಡ್ ಹಿಂದೆ"},other:{default:"{{count}} ಸೆಕೆಂಡುಗಳು",future:"{{count}} ಸೆಕೆಂಡ್‌ಗಳಲ್ಲಿ",past:"{{count}} ಸೆಕೆಂಡ್ ಹಿಂದೆ"}},halfAMinute:{other:{default:"ಅರ್ಧ ನಿಮಿಷ",future:"ಅರ್ಧ ನಿಮಿಷದಲ್ಲಿ",past:"ಅರ್ಧ ನಿಮಿಷದ ಹಿಂದೆ"}},lessThanXMinutes:{one:{default:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",future:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",past:"1 ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ"},other:{default:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",future:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ",past:"{{count}} ನಿಮಿಷಕ್ಕಿಂತ ಕಡಿಮೆ"}},xMinutes:{one:{default:"1 ನಿಮಿಷ",future:"1 ನಿಮಿಷದಲ್ಲಿ",past:"1 ನಿಮಿಷದ ಹಿಂದೆ"},other:{default:"{{count}} ನಿಮಿಷಗಳು",future:"{{count}} ನಿಮಿಷಗಳಲ್ಲಿ",past:"{{count}} ನಿಮಿಷಗಳ ಹಿಂದೆ"}},aboutXHours:{one:{default:"ಸುಮಾರು 1 ಗಂಟೆ",future:"ಸುಮಾರು 1 ಗಂಟೆಯಲ್ಲಿ",past:"ಸುಮಾರು 1 ಗಂಟೆ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳು",future:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ಗಂಟೆಗಳ ಹಿಂದೆ"}},xHours:{one:{default:"1 ಗಂಟೆ",future:"1 ಗಂಟೆಯಲ್ಲಿ",past:"1 ಗಂಟೆ ಹಿಂದೆ"},other:{default:"{{count}} ಗಂಟೆಗಳು",future:"{{count}} ಗಂಟೆಗಳಲ್ಲಿ",past:"{{count}} ಗಂಟೆಗಳ ಹಿಂದೆ"}},xDays:{one:{default:"1 ದಿನ",future:"1 ದಿನದಲ್ಲಿ",past:"1 ದಿನದ ಹಿಂದೆ"},other:{default:"{{count}} ದಿನಗಳು",future:"{{count}} ದಿನಗಳಲ್ಲಿ",past:"{{count}} ದಿನಗಳ ಹಿಂದೆ"}},aboutXMonths:{one:{default:"ಸುಮಾರು 1 ತಿಂಗಳು",future:"ಸುಮಾರು 1 ತಿಂಗಳಲ್ಲಿ",past:"ಸುಮಾರು 1 ತಿಂಗಳ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ತಿಂಗಳು",future:"ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ"}},xMonths:{one:{default:"1 ತಿಂಗಳು",future:"1 ತಿಂಗಳಲ್ಲಿ",past:"1 ತಿಂಗಳ ಹಿಂದೆ"},other:{default:"{{count}} ತಿಂಗಳು",future:"{{count}} ತಿಂಗಳುಗಳಲ್ಲಿ",past:"{{count}} ತಿಂಗಳುಗಳ ಹಿಂದೆ"}},aboutXYears:{one:{default:"ಸುಮಾರು 1 ವರ್ಷ",future:"ಸುಮಾರು 1 ವರ್ಷದಲ್ಲಿ",past:"ಸುಮಾರು 1 ವರ್ಷದ ಹಿಂದೆ"},other:{default:"ಸುಮಾರು {{count}} ವರ್ಷಗಳು",future:"ಸುಮಾರು {{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"ಸುಮಾರು {{count}} ವರ್ಷಗಳ ಹಿಂದೆ"}},xYears:{one:{default:"1 ವರ್ಷ",future:"1 ವರ್ಷದಲ್ಲಿ",past:"1 ವರ್ಷದ ಹಿಂದೆ"},other:{default:"{{count}} ವರ್ಷಗಳು",future:"{{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"{{count}} ವರ್ಷಗಳ ಹಿಂದೆ"}},overXYears:{one:{default:"1 ವರ್ಷದ ಮೇಲೆ",future:"1 ವರ್ಷದ ಮೇಲೆ",past:"1 ವರ್ಷದ ಮೇಲೆ"},other:{default:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ",future:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ",past:"{{count}} ವರ್ಷಗಳ ಮೇಲೆ"}},almostXYears:{one:{default:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ",future:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ",past:"ಬಹುತೇಕ 1 ವರ್ಷದಲ್ಲಿ"},other:{default:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ",future:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ",past:"ಬಹುತೇಕ {{count}} ವರ್ಷಗಳಲ್ಲಿ"}}};function TI(n,e){return e!=null&&e.addSuffix?e.comparison&&e.comparison>0?n.future:n.past:n.default}const wIe=(n,e,t)=>{let r;const i=yIe[n];return i.one&&e===1?r=TI(i.one,t):r=TI(i.other,t),r.replace("{{count}}",String(e))},bIe={full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"d/M/yy"},_Ie={full:"hh:mm:ss a zzzz",long:"hh:mm:ss a z",medium:"hh:mm:ss a",short:"hh:mm a"},xIe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},MIe={date:we({formats:bIe,defaultWidth:"full"}),time:we({formats:_Ie,defaultWidth:"full"}),dateTime:we({formats:xIe,defaultWidth:"full"})},SIe={lastWeek:"'ಕಳೆದ' eeee p 'ಕ್ಕೆ'",yesterday:"'ನಿನ್ನೆ' p 'ಕ್ಕೆ'",today:"'ಇಂದು' p 'ಕ್ಕೆ'",tomorrow:"'ನಾಳೆ' p 'ಕ್ಕೆ'",nextWeek:"eeee p 'ಕ್ಕೆ'",other:"P"},CIe=(n,e,t,r)=>SIe[n],PIe={narrow:["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"],abbreviated:["ಕ್ರಿ.ಪೂ","ಕ್ರಿ.ಶ"],wide:["ಕ್ರಿಸ್ತ ಪೂರ್ವ","ಕ್ರಿಸ್ತ ಶಕ"]},EIe={narrow:["1","2","3","4"],abbreviated:["ತ್ರೈ 1","ತ್ರೈ 2","ತ್ರೈ 3","ತ್ರೈ 4"],wide:["1ನೇ ತ್ರೈಮಾಸಿಕ","2ನೇ ತ್ರೈಮಾಸಿಕ","3ನೇ ತ್ರೈಮಾಸಿಕ","4ನೇ ತ್ರೈಮಾಸಿಕ"]},BIe={narrow:["ಜ","ಫೆ","ಮಾ","ಏ","ಮೇ","ಜೂ","ಜು","ಆ","ಸೆ","ಅ","ನ","ಡಿ"],abbreviated:["ಜನ","ಫೆಬ್ರ","ಮಾರ್ಚ್","ಏಪ್ರಿ","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗ","ಸೆಪ್ಟೆಂ","ಅಕ್ಟೋ","ನವೆಂ","ಡಿಸೆಂ"],wide:["ಜನವರಿ","ಫೆಬ್ರವರಿ","ಮಾರ್ಚ್","ಏಪ್ರಿಲ್","ಮೇ","ಜೂನ್","ಜುಲೈ","ಆಗಸ್ಟ್","ಸೆಪ್ಟೆಂಬರ್","ಅಕ್ಟೋಬರ್","ನವೆಂಬರ್","ಡಿಸೆಂಬರ್"]},TIe={narrow:["ಭಾ","ಸೋ","ಮಂ","ಬು","ಗು","ಶು","ಶ"],short:["ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ"],abbreviated:["ಭಾನು","ಸೋಮ","ಮಂಗಳ","ಬುಧ","ಗುರು","ಶುಕ್ರ","ಶನಿ"],wide:["ಭಾನುವಾರ","ಸೋಮವಾರ","ಮಂಗಳವಾರ","ಬುಧವಾರ","ಗುರುವಾರ","ಶುಕ್ರವಾರ","ಶನಿವಾರ"]},kIe={narrow:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾಹ್ನ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾಹ್ನ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},abbreviated:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},wide:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"}},IIe={narrow:{am:"ಪೂ",pm:"ಅ",midnight:"ಮಧ್ಯರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},abbreviated:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯ ರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"},wide:{am:"ಪೂರ್ವಾಹ್ನ",pm:"ಅಪರಾಹ್ನ",midnight:"ಮಧ್ಯ ರಾತ್ರಿ",noon:"ಮಧ್ಯಾನ್ಹ",morning:"ಬೆಳಗ್ಗೆ",afternoon:"ಮಧ್ಯಾನ್ಹ",evening:"ಸಂಜೆ",night:"ರಾತ್ರಿ"}},LIe=(n,e)=>Number(n)+"ನೇ",FIe={ordinalNumber:LIe,era:K({values:PIe,defaultWidth:"wide"}),quarter:K({values:EIe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:BIe,defaultWidth:"wide"}),day:K({values:TIe,defaultWidth:"wide"}),dayPeriod:K({values:kIe,defaultWidth:"wide",formattingValues:IIe,defaultFormattingWidth:"wide"})},NIe=/^(\d+)(ನೇ|ನೆ)?/i,DIe=/\d+/i,RIe={narrow:/^(ಕ್ರಿ.ಪೂ|ಕ್ರಿ.ಶ)/i,abbreviated:/^(ಕ್ರಿ\.?\s?ಪೂ\.?|ಕ್ರಿ\.?\s?ಶ\.?|ಪ್ರ\.?\s?ಶ\.?)/i,wide:/^(ಕ್ರಿಸ್ತ ಪೂರ್ವ|ಕ್ರಿಸ್ತ ಶಕ|ಪ್ರಸಕ್ತ ಶಕ)/i},UIe={any:[/^ಪೂ/i,/^(ಶ|ಪ್ರ)/i]},OIe={narrow:/^[1234]/i,abbreviated:/^ತ್ರೈ[1234]|ತ್ರೈ [1234]| [1234]ತ್ರೈ/i,wide:/^[1234](ನೇ)? ತ್ರೈಮಾಸಿಕ/i},HIe={any:[/1/i,/2/i,/3/i,/4/i]},WIe={narrow:/^(ಜೂ|ಜು|ಜ|ಫೆ|ಮಾ|ಏ|ಮೇ|ಆ|ಸೆ|ಅ|ನ|ಡಿ)/i,abbreviated:/^(ಜನ|ಫೆಬ್ರ|ಮಾರ್ಚ್|ಏಪ್ರಿ|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗ|ಸೆಪ್ಟೆಂ|ಅಕ್ಟೋ|ನವೆಂ|ಡಿಸೆಂ)/i,wide:/^(ಜನವರಿ|ಫೆಬ್ರವರಿ|ಮಾರ್ಚ್|ಏಪ್ರಿಲ್|ಮೇ|ಜೂನ್|ಜುಲೈ|ಆಗಸ್ಟ್|ಸೆಪ್ಟೆಂಬರ್|ಅಕ್ಟೋಬರ್|ನವೆಂಬರ್|ಡಿಸೆಂಬರ್)/i},QIe={narrow:[/^ಜ$/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂ/i,/^ಜು$/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i],any:[/^ಜನ/i,/^ಫೆ/i,/^ಮಾ/i,/^ಏ/i,/^ಮೇ/i,/^ಜೂನ್/i,/^ಜುಲೈ/i,/^ಆ/i,/^ಸೆ/i,/^ಅ/i,/^ನ/i,/^ಡಿ/i]},$Ie={narrow:/^(ಭಾ|ಸೋ|ಮ|ಬು|ಗು|ಶು|ಶ)/i,short:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,abbreviated:/^(ಭಾನು|ಸೋಮ|ಮಂಗಳ|ಬುಧ|ಗುರು|ಶುಕ್ರ|ಶನಿ)/i,wide:/^(ಭಾನುವಾರ|ಸೋಮವಾರ|ಮಂಗಳವಾರ|ಬುಧವಾರ|ಗುರುವಾರ|ಶುಕ್ರವಾರ|ಶನಿವಾರ)/i},jIe={narrow:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i],any:[/^ಭಾ/i,/^ಸೋ/i,/^ಮ/i,/^ಬು/i,/^ಗು/i,/^ಶು/i,/^ಶ/i]},zIe={narrow:/^(ಪೂ|ಅ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i,any:/^(ಪೂರ್ವಾಹ್ನ|ಅಪರಾಹ್ನ|ಮಧ್ಯರಾತ್ರಿ|ಮಧ್ಯಾನ್ಹ|ಬೆಳಗ್ಗೆ|ಸಂಜೆ|ರಾತ್ರಿ)/i},VIe={any:{am:/^ಪೂ/i,pm:/^ಅ/i,midnight:/ಮಧ್ಯರಾತ್ರಿ/i,noon:/ಮಧ್ಯಾನ್ಹ/i,morning:/ಬೆಳಗ್ಗೆ/i,afternoon:/ಮಧ್ಯಾನ್ಹ/i,evening:/ಸಂಜೆ/i,night:/ರಾತ್ರಿ/i}},GIe={ordinalNumber:Nt({matchPattern:NIe,parsePattern:DIe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:RIe,defaultMatchWidth:"wide",parsePatterns:UIe,defaultParseWidth:"any"}),quarter:X({matchPatterns:OIe,defaultMatchWidth:"wide",parsePatterns:HIe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:WIe,defaultMatchWidth:"wide",parsePatterns:QIe,defaultParseWidth:"any"}),day:X({matchPatterns:$Ie,defaultMatchWidth:"wide",parsePatterns:jIe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:zIe,defaultMatchWidth:"any",parsePatterns:VIe,defaultParseWidth:"any"})},KIe={code:"kn",formatDistance:wIe,formatLong:MIe,formatRelative:CIe,localize:FIe,match:GIe,options:{weekStartsOn:1,firstWeekContainsDate:1}},qIe={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},XIe=(n,e,t)=>{let r;const i=qIe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+" 후":r+" 전":r},YIe={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},JIe={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ZIe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},e5e={date:we({formats:YIe,defaultWidth:"full"}),time:we({formats:JIe,defaultWidth:"full"}),dateTime:we({formats:ZIe,defaultWidth:"full"})},t5e={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},n5e=(n,e,t,r)=>t5e[n],r5e={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},i5e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},a5e={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},s5e={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},o5e={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},c5e={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},l5e=(n,e)=>{const t=Number(n);switch(String(e==null?void 0:e.unit)){case"minute":case"second":return String(t);case"date":return t+"일";default:return t+"번째"}},u5e={ordinalNumber:l5e,era:K({values:r5e,defaultWidth:"wide"}),quarter:K({values:i5e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:a5e,defaultWidth:"wide"}),day:K({values:s5e,defaultWidth:"wide"}),dayPeriod:K({values:o5e,defaultWidth:"wide",formattingValues:c5e,defaultFormattingWidth:"wide"})},d5e=/^(\d+)(일|번째)?/i,A5e=/\d+/i,h5e={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},f5e={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},m5e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},p5e={any:[/1/i,/2/i,/3/i,/4/i]},g5e={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},v5e={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},y5e={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},w5e={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},b5e={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},_5e={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},x5e={ordinalNumber:Nt({matchPattern:d5e,parsePattern:A5e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:h5e,defaultMatchWidth:"wide",parsePatterns:f5e,defaultParseWidth:"any"}),quarter:X({matchPatterns:m5e,defaultMatchWidth:"wide",parsePatterns:p5e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:g5e,defaultMatchWidth:"wide",parsePatterns:v5e,defaultParseWidth:"any"}),day:X({matchPatterns:y5e,defaultMatchWidth:"wide",parsePatterns:w5e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:b5e,defaultMatchWidth:"any",parsePatterns:_5e,defaultParseWidth:"any"})},M5e={code:"ko",formatDistance:XIe,formatLong:e5e,formatRelative:n5e,localize:u5e,match:x5e,options:{weekStartsOn:0,firstWeekContainsDate:1}},S5e={lessThanXSeconds:{standalone:{one:"manner wéi eng Sekonn",other:"manner wéi {{count}} Sekonnen"},withPreposition:{one:"manner wéi enger Sekonn",other:"manner wéi {{count}} Sekonnen"}},xSeconds:{standalone:{one:"eng Sekonn",other:"{{count}} Sekonnen"},withPreposition:{one:"enger Sekonn",other:"{{count}} Sekonnen"}},halfAMinute:{standalone:"eng hallef Minutt",withPreposition:"enger hallwer Minutt"},lessThanXMinutes:{standalone:{one:"manner wéi eng Minutt",other:"manner wéi {{count}} Minutten"},withPreposition:{one:"manner wéi enger Minutt",other:"manner wéi {{count}} Minutten"}},xMinutes:{standalone:{one:"eng Minutt",other:"{{count}} Minutten"},withPreposition:{one:"enger Minutt",other:"{{count}} Minutten"}},aboutXHours:{standalone:{one:"ongeféier eng Stonn",other:"ongeféier {{count}} Stonnen"},withPreposition:{one:"ongeféier enger Stonn",other:"ongeféier {{count}} Stonnen"}},xHours:{standalone:{one:"eng Stonn",other:"{{count}} Stonnen"},withPreposition:{one:"enger Stonn",other:"{{count}} Stonnen"}},xDays:{standalone:{one:"een Dag",other:"{{count}} Deeg"},withPreposition:{one:"engem Dag",other:"{{count}} Deeg"}},aboutXWeeks:{standalone:{one:"ongeféier eng Woch",other:"ongeféier {{count}} Wochen"},withPreposition:{one:"ongeféier enger Woche",other:"ongeféier {{count}} Wochen"}},xWeeks:{standalone:{one:"eng Woch",other:"{{count}} Wochen"},withPreposition:{one:"enger Woch",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"ongeféier ee Mount",other:"ongeféier {{count}} Méint"},withPreposition:{one:"ongeféier engem Mount",other:"ongeféier {{count}} Méint"}},xMonths:{standalone:{one:"ee Mount",other:"{{count}} Méint"},withPreposition:{one:"engem Mount",other:"{{count}} Méint"}},aboutXYears:{standalone:{one:"ongeféier ee Joer",other:"ongeféier {{count}} Joer"},withPreposition:{one:"ongeféier engem Joer",other:"ongeféier {{count}} Joer"}},xYears:{standalone:{one:"ee Joer",other:"{{count}} Joer"},withPreposition:{one:"engem Joer",other:"{{count}} Joer"}},overXYears:{standalone:{one:"méi wéi ee Joer",other:"méi wéi {{count}} Joer"},withPreposition:{one:"méi wéi engem Joer",other:"méi wéi {{count}} Joer"}},almostXYears:{standalone:{one:"bal ee Joer",other:"bal {{count}} Joer"},withPreposition:{one:"bal engem Joer",other:"bal {{count}} Joer"}}},C5e=["d","h","n","t","z"],P5e=["a,","e","i","o","u"],E5e=[0,1,2,3,8,9],B5e=[40,50,60,70];function kI(n){const e=n.charAt(0).toLowerCase();if(P5e.indexOf(e)!=-1||C5e.indexOf(e)!=-1)return!0;const t=n.split(" ")[0],r=parseInt(t);return!isNaN(r)&&E5e.indexOf(r%10)!=-1&&B5e.indexOf(parseInt(t.substring(0,2)))==-1}const T5e=(n,e,t)=>{let r;const i=S5e[n],a=t!=null&&t.addSuffix?i.withPreposition:i.standalone;return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"a"+(kI(r)?"n":"")+" "+r:"viru"+(kI(r)?"n":"")+" "+r:r},k5e={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.yy"},I5e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},L5e={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},F5e={date:we({formats:k5e,defaultWidth:"full"}),time:we({formats:I5e,defaultWidth:"full"}),dateTime:we({formats:L5e,defaultWidth:"full"})},N5e={lastWeek:n=>{const e=n.getDay();let t="'läschte";return(e===2||e===4)&&(t+="n"),t+="' eeee 'um' p",t},yesterday:"'gëschter um' p",today:"'haut um' p",tomorrow:"'moien um' p",nextWeek:"eeee 'um' p",other:"P"},D5e=(n,e,t,r)=>{const i=N5e[n];return typeof i=="function"?i(e):i},R5e={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["viru Christus","no Christus"]},U5e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},O5e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mäe","Abr","Mee","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","Mäerz","Abrëll","Mee","Juni","Juli","August","September","Oktober","November","Dezember"]},H5e={narrow:["S","M","D","M","D","F","S"],short:["So","Mé","Dë","Më","Do","Fr","Sa"],abbreviated:["So.","Mé.","Dë.","Më.","Do.","Fr.","Sa."],wide:["Sonndeg","Méindeg","Dënschdeg","Mëttwoch","Donneschdeg","Freideg","Samschdeg"]},W5e={narrow:{am:"mo.",pm:"nomë.",midnight:"Mëtternuecht",noon:"Mëtteg",morning:"Moien",afternoon:"Nomëtteg",evening:"Owend",night:"Nuecht"},abbreviated:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"Mëtteg",morning:"Moien",afternoon:"Nomëtteg",evening:"Owend",night:"Nuecht"},wide:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"Mëtteg",morning:"Moien",afternoon:"Nomëtteg",evening:"Owend",night:"Nuecht"}},Q5e={narrow:{am:"mo.",pm:"nom.",midnight:"Mëtternuecht",noon:"mëttes",morning:"moies",afternoon:"nomëttes",evening:"owes",night:"nuets"},abbreviated:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"mëttes",morning:"moies",afternoon:"nomëttes",evening:"owes",night:"nuets"},wide:{am:"moies",pm:"nomëttes",midnight:"Mëtternuecht",noon:"mëttes",morning:"moies",afternoon:"nomëttes",evening:"owes",night:"nuets"}},$5e=(n,e)=>Number(n)+".",j5e={ordinalNumber:$5e,era:K({values:R5e,defaultWidth:"wide"}),quarter:K({values:U5e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:O5e,defaultWidth:"wide"}),day:K({values:H5e,defaultWidth:"wide"}),dayPeriod:K({values:W5e,defaultWidth:"wide",formattingValues:Q5e,defaultFormattingWidth:"wide"})},z5e=/^(\d+)(\.)?/i,V5e=/\d+/i,G5e={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(viru Christus|virun eiser Zäitrechnung|no Christus|eiser Zäitrechnung)/i},K5e={any:[/^v/i,/^n/i]},q5e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},X5e={any:[/1/i,/2/i,/3/i,/4/i]},Y5e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mäe|abr|mee|jun|jul|aug|sep|okt|nov|dez)/i,wide:/^(januar|februar|mäerz|abrëll|mee|juni|juli|august|september|oktober|november|dezember)/i},J5e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mä/i,/^ab/i,/^me/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Z5e={narrow:/^[smdf]/i,short:/^(so|mé|dë|më|do|fr|sa)/i,abbreviated:/^(son?|méi?|dën?|mët?|don?|fre?|sam?)\.?/i,wide:/^(sonndeg|méindeg|dënschdeg|mëttwoch|donneschdeg|freideg|samschdeg)/i},eLe={any:[/^so/i,/^mé/i,/^dë/i,/^më/i,/^do/i,/^f/i,/^sa/i]},tLe={narrow:/^(mo\.?|nomë\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,abbreviated:/^(moi\.?|nomët\.?|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i,wide:/^(moies|nomëttes|Mëtternuecht|mëttes|moies|nomëttes|owes|nuets)/i},nLe={any:{am:/^m/i,pm:/^n/i,midnight:/^Mëtter/i,noon:/^mëttes/i,morning:/moies/i,afternoon:/nomëttes/i,evening:/owes/i,night:/nuets/i}},rLe={ordinalNumber:Nt({matchPattern:z5e,parsePattern:V5e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:G5e,defaultMatchWidth:"wide",parsePatterns:K5e,defaultParseWidth:"any"}),quarter:X({matchPatterns:q5e,defaultMatchWidth:"wide",parsePatterns:X5e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Y5e,defaultMatchWidth:"wide",parsePatterns:J5e,defaultParseWidth:"any"}),day:X({matchPatterns:Z5e,defaultMatchWidth:"wide",parsePatterns:eLe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:tLe,defaultMatchWidth:"wide",parsePatterns:nLe,defaultParseWidth:"any"})},iLe={code:"lb",formatDistance:T5e,formatLong:F5e,formatRelative:D5e,localize:j5e,match:rLe,options:{weekStartsOn:1,firstWeekContainsDate:4}},bU={xseconds_other:"sekundė_sekundžių_sekundes",xminutes_one:"minutė_minutės_minutę",xminutes_other:"minutės_minučių_minutes",xhours_one:"valanda_valandos_valandą",xhours_other:"valandos_valandų_valandas",xdays_one:"diena_dienos_dieną",xdays_other:"dienos_dienų_dienas",xweeks_one:"savaitė_savaitės_savaitę",xweeks_other:"savaitės_savaičių_savaites",xmonths_one:"mėnuo_mėnesio_mėnesį",xmonths_other:"mėnesiai_mėnesių_mėnesius",xyears_one:"metai_metų_metus",xyears_other:"metai_metų_metus",about:"apie",over:"daugiau nei",almost:"beveik",lessthan:"mažiau nei"},II=(n,e,t,r)=>e?r?"kelių sekundžių":"kelias sekundes":"kelios sekundės",Ws=(n,e,t,r)=>e?r?Iu(t)[1]:Iu(t)[2]:Iu(t)[0],hs=(n,e,t,r)=>{const i=n+" ";return n===1?i+Ws(n,e,t,r):e?r?i+Iu(t)[1]:i+(LI(n)?Iu(t)[1]:Iu(t)[2]):i+(LI(n)?Iu(t)[1]:Iu(t)[0])};function LI(n){return n%10===0||n>10&&n<20}function Iu(n){return bU[n].split("_")}const aLe={lessThanXSeconds:{one:II,other:hs},xSeconds:{one:II,other:hs},halfAMinute:"pusė minutės",lessThanXMinutes:{one:Ws,other:hs},xMinutes:{one:Ws,other:hs},aboutXHours:{one:Ws,other:hs},xHours:{one:Ws,other:hs},xDays:{one:Ws,other:hs},aboutXWeeks:{one:Ws,other:hs},xWeeks:{one:Ws,other:hs},aboutXMonths:{one:Ws,other:hs},xMonths:{one:Ws,other:hs},aboutXYears:{one:Ws,other:hs},xYears:{one:Ws,other:hs},overXYears:{one:Ws,other:hs},almostXYears:{one:Ws,other:hs}},sLe=(n,e,t)=>{const r=n.match(/about|over|almost|lessthan/i),i=r?n.replace(r[0],""):n,a=(t==null?void 0:t.comparison)!==void 0&&t.comparison>0;let s;const o=aLe[n];if(typeof o=="string"?s=o:e===1?s=o.one(e,(t==null?void 0:t.addSuffix)===!0,i.toLowerCase()+"_one",a):s=o.other(e,(t==null?void 0:t.addSuffix)===!0,i.toLowerCase()+"_other",a),r){const c=r[0].toLowerCase();s=bU[c]+" "+s}return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"po "+s:"prieš "+s:s},oLe={full:"y 'm'. MMMM d 'd'., EEEE",long:"y 'm'. MMMM d 'd'.",medium:"y-MM-dd",short:"y-MM-dd"},cLe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lLe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},uLe={date:we({formats:oLe,defaultWidth:"full"}),time:we({formats:cLe,defaultWidth:"full"}),dateTime:we({formats:lLe,defaultWidth:"full"})},dLe={lastWeek:"'Praėjusį' eeee p",yesterday:"'Vakar' p",today:"'Šiandien' p",tomorrow:"'Rytoj' p",nextWeek:"eeee p",other:"P"},ALe=(n,e,t,r)=>dLe[n],hLe={narrow:["pr. Kr.","po Kr."],abbreviated:["pr. Kr.","po Kr."],wide:["prieš Kristų","po Kristaus"]},fLe={narrow:["1","2","3","4"],abbreviated:["I ketv.","II ketv.","III ketv.","IV ketv."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},mLe={narrow:["1","2","3","4"],abbreviated:["I k.","II k.","III k.","IV k."],wide:["I ketvirtis","II ketvirtis","III ketvirtis","IV ketvirtis"]},pLe={narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausis","vasaris","kovas","balandis","gegužė","birželis","liepa","rugpjūtis","rugsėjis","spalis","lapkritis","gruodis"]},gLe={narrow:["S","V","K","B","G","B","L","R","R","S","L","G"],abbreviated:["saus.","vas.","kov.","bal.","geg.","birž.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],wide:["sausio","vasario","kovo","balandžio","gegužės","birželio","liepos","rugpjūčio","rugsėjo","spalio","lapkričio","gruodžio"]},vLe={narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienis","pirmadienis","antradienis","trečiadienis","ketvirtadienis","penktadienis","šeštadienis"]},yLe={narrow:["S","P","A","T","K","P","Š"],short:["Sk","Pr","An","Tr","Kt","Pn","Št"],abbreviated:["sk","pr","an","tr","kt","pn","št"],wide:["sekmadienį","pirmadienį","antradienį","trečiadienį","ketvirtadienį","penktadienį","šeštadienį"]},wLe={narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"vidurdienis",morning:"rytas",afternoon:"diena",evening:"vakaras",night:"naktis"}},bLe={narrow:{am:"pr. p.",pm:"pop.",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},abbreviated:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"},wide:{am:"priešpiet",pm:"popiet",midnight:"vidurnaktis",noon:"perpiet",morning:"rytas",afternoon:"popietė",evening:"vakaras",night:"naktis"}},_Le=(n,e)=>Number(n)+"-oji",xLe={ordinalNumber:_Le,era:K({values:hLe,defaultWidth:"wide"}),quarter:K({values:fLe,defaultWidth:"wide",formattingValues:mLe,defaultFormattingWidth:"wide",argumentCallback:n=>n-1}),month:K({values:pLe,defaultWidth:"wide",formattingValues:gLe,defaultFormattingWidth:"wide"}),day:K({values:vLe,defaultWidth:"wide",formattingValues:yLe,defaultFormattingWidth:"wide"}),dayPeriod:K({values:wLe,defaultWidth:"wide",formattingValues:bLe,defaultFormattingWidth:"wide"})},MLe=/^(\d+)(-oji)?/i,SLe=/\d+/i,CLe={narrow:/^p(r|o)\.?\s?(kr\.?|me)/i,abbreviated:/^(pr\.\s?(kr\.|m\.\s?e\.)|po\s?kr\.|mūsų eroje)/i,wide:/^(prieš Kristų|prieš mūsų erą|po Kristaus|mūsų eroje)/i},PLe={wide:[/prieš/i,/(po|mūsų)/i],any:[/^pr/i,/^(po|m)/i]},ELe={narrow:/^([1234])/i,abbreviated:/^(I|II|III|IV)\s?ketv?\.?/i,wide:/^(I|II|III|IV)\s?ketvirtis/i},BLe={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/I$/i,/II$/i,/III/i,/IV/i]},TLe={narrow:/^[svkbglr]/i,abbreviated:/^(saus\.|vas\.|kov\.|bal\.|geg\.|birž\.|liep\.|rugp\.|rugs\.|spal\.|lapkr\.|gruod\.)/i,wide:/^(sausi(s|o)|vasari(s|o)|kov(a|o)s|balandž?i(s|o)|gegužės?|birželi(s|o)|liep(a|os)|rugpjū(t|č)i(s|o)|rugsėj(is|o)|spali(s|o)|lapkri(t|č)i(s|o)|gruodž?i(s|o))/i},kLe={narrow:[/^s/i,/^v/i,/^k/i,/^b/i,/^g/i,/^b/i,/^l/i,/^r/i,/^r/i,/^s/i,/^l/i,/^g/i],any:[/^saus/i,/^vas/i,/^kov/i,/^bal/i,/^geg/i,/^birž/i,/^liep/i,/^rugp/i,/^rugs/i,/^spal/i,/^lapkr/i,/^gruod/i]},ILe={narrow:/^[spatkš]/i,short:/^(sk|pr|an|tr|kt|pn|št)/i,abbreviated:/^(sk|pr|an|tr|kt|pn|št)/i,wide:/^(sekmadien(is|į)|pirmadien(is|į)|antradien(is|į)|trečiadien(is|į)|ketvirtadien(is|į)|penktadien(is|į)|šeštadien(is|į))/i},LLe={narrow:[/^s/i,/^p/i,/^a/i,/^t/i,/^k/i,/^p/i,/^š/i],wide:[/^se/i,/^pi/i,/^an/i,/^tr/i,/^ke/i,/^pe/i,/^še/i],any:[/^sk/i,/^pr/i,/^an/i,/^tr/i,/^kt/i,/^pn/i,/^št/i]},FLe={narrow:/^(pr.\s?p.|pop.|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i,any:/^(priešpiet|popiet$|vidurnaktis|(vidurdienis|perpiet)|rytas|(diena|popietė)|vakaras|naktis)/i},NLe={narrow:{am:/^pr/i,pm:/^pop./i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i},any:{am:/^pr/i,pm:/^popiet$/i,midnight:/^vidurnaktis/i,noon:/^(vidurdienis|perp)/i,morning:/rytas/i,afternoon:/(die|popietė)/i,evening:/vakaras/i,night:/naktis/i}},DLe={ordinalNumber:Nt({matchPattern:MLe,parsePattern:SLe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:CLe,defaultMatchWidth:"wide",parsePatterns:PLe,defaultParseWidth:"any"}),quarter:X({matchPatterns:ELe,defaultMatchWidth:"wide",parsePatterns:BLe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:TLe,defaultMatchWidth:"wide",parsePatterns:kLe,defaultParseWidth:"any"}),day:X({matchPatterns:ILe,defaultMatchWidth:"wide",parsePatterns:LLe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:FLe,defaultMatchWidth:"any",parsePatterns:NLe,defaultParseWidth:"any"})},RLe={code:"lt",formatDistance:sLe,formatLong:uLe,formatRelative:ALe,localize:xLe,match:DLe,options:{weekStartsOn:1,firstWeekContainsDate:4}};function fs(n){return(e,t)=>{if(e===1)return t!=null&&t.addSuffix?n.one[0].replace("{{time}}",n.one[2]):n.one[0].replace("{{time}}",n.one[1]);{const r=e%10===1&&e%100!==11;return t!=null&&t.addSuffix?n.other[0].replace("{{time}}",r?n.other[3]:n.other[4]).replace("{{count}}",String(e)):n.other[0].replace("{{time}}",r?n.other[1]:n.other[2]).replace("{{count}}",String(e))}}}const ULe={lessThanXSeconds:fs({one:["mazāk par {{time}}","sekundi","sekundi"],other:["mazāk nekā {{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),xSeconds:fs({one:["1 {{time}}","sekunde","sekundes"],other:["{{count}} {{time}}","sekunde","sekundes","sekundes","sekundēm"]}),halfAMinute:(n,e)=>e!=null&&e.addSuffix?"pusminūtes":"pusminūte",lessThanXMinutes:fs({one:["mazāk par {{time}}","minūti","minūti"],other:["mazāk nekā {{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),xMinutes:fs({one:["1 {{time}}","minūte","minūtes"],other:["{{count}} {{time}}","minūte","minūtes","minūtes","minūtēm"]}),aboutXHours:fs({one:["apmēram 1 {{time}}","stunda","stundas"],other:["apmēram {{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xHours:fs({one:["1 {{time}}","stunda","stundas"],other:["{{count}} {{time}}","stunda","stundas","stundas","stundām"]}),xDays:fs({one:["1 {{time}}","diena","dienas"],other:["{{count}} {{time}}","diena","dienas","dienas","dienām"]}),aboutXWeeks:fs({one:["apmēram 1 {{time}}","nedēļa","nedēļas"],other:["apmēram {{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),xWeeks:fs({one:["1 {{time}}","nedēļa","nedēļas"],other:["{{count}} {{time}}","nedēļa","nedēļu","nedēļas","nedēļām"]}),aboutXMonths:fs({one:["apmēram 1 {{time}}","mēnesis","mēneša"],other:["apmēram {{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),xMonths:fs({one:["1 {{time}}","mēnesis","mēneša"],other:["{{count}} {{time}}","mēnesis","mēneši","mēneša","mēnešiem"]}),aboutXYears:fs({one:["apmēram 1 {{time}}","gads","gada"],other:["apmēram {{count}} {{time}}","gads","gadi","gada","gadiem"]}),xYears:fs({one:["1 {{time}}","gads","gada"],other:["{{count}} {{time}}","gads","gadi","gada","gadiem"]}),overXYears:fs({one:["ilgāk par 1 {{time}}","gadu","gadu"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]}),almostXYears:fs({one:["gandrīz 1 {{time}}","gads","gada"],other:["vairāk nekā {{count}} {{time}}","gads","gadi","gada","gadiem"]})},OLe=(n,e,t)=>{const r=ULe[n](e,t);return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"pēc "+r:"pirms "+r:r},HLe={full:"EEEE, y. 'gada' d. MMMM",long:"y. 'gada' d. MMMM",medium:"dd.MM.y.",short:"dd.MM.y."},WLe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},QLe={full:"{{date}} 'plkst.' {{time}}",long:"{{date}} 'plkst.' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},$Le={date:we({formats:HLe,defaultWidth:"full"}),time:we({formats:WLe,defaultWidth:"full"}),dateTime:we({formats:QLe,defaultWidth:"full"})},FI=["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"],jLe={lastWeek:(n,e,t)=>vi(n,e,t)?"eeee 'plkst.' p":"'Pagājušā "+FI[n.getDay()]+" plkst.' p",yesterday:"'Vakar plkst.' p",today:"'Šodien plkst.' p",tomorrow:"'Rīt plkst.' p",nextWeek:(n,e,t)=>vi(n,e,t)?"eeee 'plkst.' p":"'Nākamajā "+FI[n.getDay()]+" plkst.' p",other:"P"},zLe=(n,e,t,r)=>{const i=jLe[n];return typeof i=="function"?i(e,t,r):i},VLe={narrow:["p.m.ē","m.ē"],abbreviated:["p. m. ē.","m. ē."],wide:["pirms mūsu ēras","mūsu ērā"]},GLe={narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmais ceturksnis","otrais ceturksnis","trešais ceturksnis","ceturtais ceturksnis"]},KLe={narrow:["1","2","3","4"],abbreviated:["1. cet.","2. cet.","3. cet.","4. cet."],wide:["pirmajā ceturksnī","otrajā ceturksnī","trešajā ceturksnī","ceturtajā ceturksnī"]},qLe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","marts","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvāris","februāris","marts","aprīlis","maijs","jūnijs","jūlijs","augusts","septembris","oktobris","novembris","decembris"]},XLe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","febr.","martā","apr.","maijs","jūn.","jūl.","aug.","sept.","okt.","nov.","dec."],wide:["janvārī","februārī","martā","aprīlī","maijā","jūnijā","jūlijā","augustā","septembrī","oktobrī","novembrī","decembrī"]},YLe={narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdiena","pirmdiena","otrdiena","trešdiena","ceturtdiena","piektdiena","sestdiena"]},JLe={narrow:["S","P","O","T","C","P","S"],short:["Sv","P","O","T","C","Pk","S"],abbreviated:["svētd.","pirmd.","otrd.","trešd.","ceturtd.","piektd.","sestd."],wide:["svētdienā","pirmdienā","otrdienā","trešdienā","ceturtdienā","piektdienā","sestdienā"]},ZLe={narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"diena",evening:"vakars",night:"nakts"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rīts",afternoon:"pēcpusd.",evening:"vakars",night:"nakts"},wide:{am:"am",pm:"pm",midnight:"pusnakts",noon:"pusdienlaiks",morning:"rīts",afternoon:"pēcpusdiena",evening:"vakars",night:"nakts"}},eFe={narrow:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"dienā",evening:"vakarā",night:"naktī"},abbreviated:{am:"am",pm:"pm",midnight:"pusn.",noon:"pusd.",morning:"rītā",afternoon:"pēcpusd.",evening:"vakarā",night:"naktī"},wide:{am:"am",pm:"pm",midnight:"pusnaktī",noon:"pusdienlaikā",morning:"rītā",afternoon:"pēcpusdienā",evening:"vakarā",night:"naktī"}},tFe=(n,e)=>Number(n)+".",nFe={ordinalNumber:tFe,era:K({values:VLe,defaultWidth:"wide"}),quarter:K({values:GLe,defaultWidth:"wide",formattingValues:KLe,defaultFormattingWidth:"wide",argumentCallback:n=>n-1}),month:K({values:qLe,defaultWidth:"wide",formattingValues:XLe,defaultFormattingWidth:"wide"}),day:K({values:YLe,defaultWidth:"wide",formattingValues:JLe,defaultFormattingWidth:"wide"}),dayPeriod:K({values:ZLe,defaultWidth:"wide",formattingValues:eFe,defaultFormattingWidth:"wide"})},rFe=/^(\d+)\./i,iFe=/\d+/i,aFe={narrow:/^(p\.m\.ē|m\.ē)/i,abbreviated:/^(p\. m\. ē\.|m\. ē\.)/i,wide:/^(pirms mūsu ēras|mūsu ērā)/i},sFe={any:[/^p/i,/^m/i]},oFe={narrow:/^[1234]/i,abbreviated:/^[1234](\. cet\.)/i,wide:/^(pirma(is|jā)|otra(is|jā)|treša(is|jā)|ceturta(is|jā)) ceturksn(is|ī)/i},cFe={narrow:[/^1/i,/^2/i,/^3/i,/^4/i],abbreviated:[/^1/i,/^2/i,/^3/i,/^4/i],wide:[/^p/i,/^o/i,/^t/i,/^c/i]},lFe={narrow:/^[jfmasond]/i,abbreviated:/^(janv\.|febr\.|marts|apr\.|maijs|jūn\.|jūl\.|aug\.|sept\.|okt\.|nov\.|dec\.)/i,wide:/^(janvār(is|ī)|februār(is|ī)|mart[sā]|aprīl(is|ī)|maij[sā]|jūnij[sā]|jūlij[sā]|august[sā]|septembr(is|ī)|oktobr(is|ī)|novembr(is|ī)|decembr(is|ī))/i},uFe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jūn/i,/^jūl/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},dFe={narrow:/^[spotc]/i,short:/^(sv|pi|o|t|c|pk|s)/i,abbreviated:/^(svētd\.|pirmd\.|otrd.\|trešd\.|ceturtd\.|piektd\.|sestd\.)/i,wide:/^(svētdien(a|ā)|pirmdien(a|ā)|otrdien(a|ā)|trešdien(a|ā)|ceturtdien(a|ā)|piektdien(a|ā)|sestdien(a|ā))/i},AFe={narrow:[/^s/i,/^p/i,/^o/i,/^t/i,/^c/i,/^p/i,/^s/i],any:[/^sv/i,/^pi/i,/^o/i,/^t/i,/^c/i,/^p/i,/^se/i]},hFe={narrow:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|dien(a|ā)|vakar(s|ā)|nakt(s|ī))/,abbreviated:/^(am|pm|pusn\.|pusd\.|rīt(s|ā)|pēcpusd\.|vakar(s|ā)|nakt(s|ī))/,wide:/^(am|pm|pusnakt(s|ī)|pusdienlaik(s|ā)|rīt(s|ā)|pēcpusdien(a|ā)|vakar(s|ā)|nakt(s|ī))/i},fFe={any:{am:/^am/i,pm:/^pm/i,midnight:/^pusn/i,noon:/^pusd/i,morning:/^r/i,afternoon:/^(d|pēc)/i,evening:/^v/i,night:/^n/i}},mFe={ordinalNumber:Nt({matchPattern:rFe,parsePattern:iFe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:aFe,defaultMatchWidth:"wide",parsePatterns:sFe,defaultParseWidth:"any"}),quarter:X({matchPatterns:oFe,defaultMatchWidth:"wide",parsePatterns:cFe,defaultParseWidth:"wide",valueCallback:n=>n+1}),month:X({matchPatterns:lFe,defaultMatchWidth:"wide",parsePatterns:uFe,defaultParseWidth:"any"}),day:X({matchPatterns:dFe,defaultMatchWidth:"wide",parsePatterns:AFe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:hFe,defaultMatchWidth:"wide",parsePatterns:fFe,defaultParseWidth:"any"})},pFe={code:"lv",formatDistance:OLe,formatLong:$Le,formatRelative:zLe,localize:nFe,match:mFe,options:{weekStartsOn:1,firstWeekContainsDate:4}},gFe={lessThanXSeconds:{one:"помалку од секунда",other:"помалку од {{count}} секунди"},xSeconds:{one:"1 секунда",other:"{{count}} секунди"},halfAMinute:"половина минута",lessThanXMinutes:{one:"помалку од минута",other:"помалку од {{count}} минути"},xMinutes:{one:"1 минута",other:"{{count}} минути"},aboutXHours:{one:"околу 1 час",other:"околу {{count}} часа"},xHours:{one:"1 час",other:"{{count}} часа"},xDays:{one:"1 ден",other:"{{count}} дена"},aboutXWeeks:{one:"околу 1 недела",other:"околу {{count}} месеци"},xWeeks:{one:"1 недела",other:"{{count}} недели"},aboutXMonths:{one:"околу 1 месец",other:"околу {{count}} недели"},xMonths:{one:"1 месец",other:"{{count}} месеци"},aboutXYears:{one:"околу 1 година",other:"околу {{count}} години"},xYears:{one:"1 година",other:"{{count}} години"},overXYears:{one:"повеќе од 1 година",other:"повеќе од {{count}} години"},almostXYears:{one:"безмалку 1 година",other:"безмалку {{count}} години"}},vFe=(n,e,t)=>{let r;const i=gFe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"за "+r:"пред "+r:r},yFe={full:"EEEE, dd MMMM yyyy",long:"dd MMMM yyyy",medium:"dd MMM yyyy",short:"dd/MM/yyyy"},wFe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"H:mm"},bFe={any:"{{date}} {{time}}"},_Fe={date:we({formats:yFe,defaultWidth:"full"}),time:we({formats:wFe,defaultWidth:"full"}),dateTime:we({formats:bFe,defaultWidth:"any"})},GC=["недела","понеделник","вторник","среда","четврток","петок","сабота"];function xFe(n){const e=GC[n];switch(n){case 0:case 3:case 6:return"'минатата "+e+" во' p";case 1:case 2:case 4:case 5:return"'минатиот "+e+" во' p"}}function NI(n){const e=GC[n];switch(n){case 0:case 3:case 6:return"'ова "+e+" вo' p";case 1:case 2:case 4:case 5:return"'овој "+e+" вo' p"}}function MFe(n){const e=GC[n];switch(n){case 0:case 3:case 6:return"'следната "+e+" вo' p";case 1:case 2:case 4:case 5:return"'следниот "+e+" вo' p"}}const SFe={lastWeek:(n,e,t)=>{const r=n.getDay();return vi(n,e,t)?NI(r):xFe(r)},yesterday:"'вчера во' p",today:"'денес во' p",tomorrow:"'утре во' p",nextWeek:(n,e,t)=>{const r=n.getDay();return vi(n,e,t)?NI(r):MFe(r)},other:"P"},CFe=(n,e,t,r)=>{const i=SFe[n];return typeof i=="function"?i(e,t,r):i},PFe={narrow:["пр.н.е.","н.е."],abbreviated:["пред н. е.","н. е."],wide:["пред нашата ера","нашата ера"]},EFe={narrow:["1","2","3","4"],abbreviated:["1-ви кв.","2-ри кв.","3-ти кв.","4-ти кв."],wide:["1-ви квартал","2-ри квартал","3-ти квартал","4-ти квартал"]},BFe={abbreviated:["јан","фев","мар","апр","мај","јун","јул","авг","септ","окт","ноем","дек"],wide:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"]},TFe={narrow:["Н","П","В","С","Ч","П","С"],short:["не","по","вт","ср","че","пе","са"],abbreviated:["нед","пон","вто","сре","чет","пет","саб"],wide:["недела","понеделник","вторник","среда","четврток","петок","сабота"]},kFe={wide:{am:"претпладне",pm:"попладне",midnight:"полноќ",noon:"напладне",morning:"наутро",afternoon:"попладне",evening:"навечер",night:"ноќе"}},IFe=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"-ви";case 2:return t+"-ри";case 7:case 8:return t+"-ми"}return t+"-ти"},LFe={ordinalNumber:IFe,era:K({values:PFe,defaultWidth:"wide"}),quarter:K({values:EFe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:BFe,defaultWidth:"wide"}),day:K({values:TFe,defaultWidth:"wide"}),dayPeriod:K({values:kFe,defaultWidth:"wide"})},FFe=/^(\d+)(-?[врмт][и])?/i,NFe=/\d+/i,DFe={narrow:/^((пр)?н\.?\s?е\.?)/i,abbreviated:/^((пр)?н\.?\s?е\.?)/i,wide:/^(пред нашата ера|нашата ера)/i},RFe={any:[/^п/i,/^н/i]},UFe={narrow:/^[1234]/i,abbreviated:/^[1234](-?[врт]?и?)? кв.?/i,wide:/^[1234](-?[врт]?и?)? квартал/i},OFe={any:[/1/i,/2/i,/3/i,/4/i]},HFe={narrow:/^[нпвсч]/i,short:/^(не|по|вт|ср|че|пе|са)/i,abbreviated:/^(нед|пон|вто|сре|чет|пет|саб)/i,wide:/^(недела|понеделник|вторник|среда|четврток|петок|сабота)/i},WFe={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н[ед]/i,/^п[он]/i,/^вт/i,/^ср/i,/^ч[ет]/i,/^п[ет]/i,/^с[аб]/i]},QFe={abbreviated:/^(јан|фев|мар|апр|мај|јун|јул|авг|сеп|окт|ноем|дек)/i,wide:/^(јануари|февруари|март|април|мај|јуни|јули|август|септември|октомври|ноември|декември)/i},$Fe={any:[/^ја/i,/^Ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^ав/i,/^се/i,/^окт/i,/^но/i,/^де/i]},jFe={any:/^(претп|попл|полноќ|утро|пладне|вечер|ноќ)/i},zFe={any:{am:/претпладне/i,pm:/попладне/i,midnight:/полноќ/i,noon:/напладне/i,morning:/наутро/i,afternoon:/попладне/i,evening:/навечер/i,night:/ноќе/i}},VFe={ordinalNumber:Nt({matchPattern:FFe,parsePattern:NFe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:DFe,defaultMatchWidth:"wide",parsePatterns:RFe,defaultParseWidth:"any"}),quarter:X({matchPatterns:UFe,defaultMatchWidth:"wide",parsePatterns:OFe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:QFe,defaultMatchWidth:"wide",parsePatterns:$Fe,defaultParseWidth:"any"}),day:X({matchPatterns:HFe,defaultMatchWidth:"wide",parsePatterns:WFe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:jFe,defaultMatchWidth:"any",parsePatterns:zFe,defaultParseWidth:"any"})},GFe={code:"mk",formatDistance:vFe,formatLong:_Fe,formatRelative:CFe,localize:LFe,match:VFe,options:{weekStartsOn:1,firstWeekContainsDate:4}},KFe={lessThanXSeconds:{one:"секунд хүрэхгүй",other:"{{count}} секунд хүрэхгүй"},xSeconds:{one:"1 секунд",other:"{{count}} секунд"},halfAMinute:"хагас минут",lessThanXMinutes:{one:"минут хүрэхгүй",other:"{{count}} минут хүрэхгүй"},xMinutes:{one:"1 минут",other:"{{count}} минут"},aboutXHours:{one:"ойролцоогоор 1 цаг",other:"ойролцоогоор {{count}} цаг"},xHours:{one:"1 цаг",other:"{{count}} цаг"},xDays:{one:"1 өдөр",other:"{{count}} өдөр"},aboutXWeeks:{one:"ойролцоогоор 1 долоо хоног",other:"ойролцоогоор {{count}} долоо хоног"},xWeeks:{one:"1 долоо хоног",other:"{{count}} долоо хоног"},aboutXMonths:{one:"ойролцоогоор 1 сар",other:"ойролцоогоор {{count}} сар"},xMonths:{one:"1 сар",other:"{{count}} сар"},aboutXYears:{one:"ойролцоогоор 1 жил",other:"ойролцоогоор {{count}} жил"},xYears:{one:"1 жил",other:"{{count}} жил"},overXYears:{one:"1 жил гаран",other:"{{count}} жил гаран"},almostXYears:{one:"бараг 1 жил",other:"бараг {{count}} жил"}},qFe=(n,e,t)=>{let r;const i=KFe[n];if(typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix){const a=r.split(" "),s=a.pop();switch(r=a.join(" "),s){case"секунд":r+=" секундийн";break;case"минут":r+=" минутын";break;case"цаг":r+=" цагийн";break;case"өдөр":r+=" өдрийн";break;case"сар":r+=" сарын";break;case"жил":r+=" жилийн";break;case"хоног":r+=" хоногийн";break;case"гаран":r+=" гараны";break;case"хүрэхгүй":r+=" хүрэхгүй хугацааны";break;default:r+=s+"-н"}return t.comparison&&t.comparison>0?r+" дараа":r+" өмнө"}return r},XFe={full:"y 'оны' MMMM'ын' d, EEEE 'гараг'",long:"y 'оны' MMMM'ын' d",medium:"y 'оны' MMM'ын' d",short:"y.MM.dd"},YFe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},JFe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ZFe={date:we({formats:XFe,defaultWidth:"full"}),time:we({formats:YFe,defaultWidth:"full"}),dateTime:we({formats:JFe,defaultWidth:"full"})},eNe={lastWeek:"'өнгөрсөн' eeee 'гарагийн' p 'цагт'",yesterday:"'өчигдөр' p 'цагт'",today:"'өнөөдөр' p 'цагт'",tomorrow:"'маргааш' p 'цагт'",nextWeek:"'ирэх' eeee 'гарагийн' p 'цагт'",other:"P"},tNe=(n,e,t,r)=>eNe[n],nNe={narrow:["НТӨ","НТ"],abbreviated:["НТӨ","НТ"],wide:["нийтийн тооллын өмнөх","нийтийн тооллын"]},rNe={narrow:["I","II","III","IV"],abbreviated:["I улирал","II улирал","III улирал","IV улирал"],wide:["1-р улирал","2-р улирал","3-р улирал","4-р улирал"]},iNe={narrow:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],abbreviated:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],wide:["Нэгдүгээр сар","Хоёрдугаар сар","Гуравдугаар сар","Дөрөвдүгээр сар","Тавдугаар сар","Зургаадугаар сар","Долоодугаар сар","Наймдугаар сар","Есдүгээр сар","Аравдугаар сар","Арваннэгдүгээр сар","Арван хоёрдугаар сар"]},aNe={narrow:["I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],abbreviated:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],wide:["нэгдүгээр сар","хоёрдугаар сар","гуравдугаар сар","дөрөвдүгээр сар","тавдугаар сар","зургаадугаар сар","долоодугаар сар","наймдугаар сар","есдүгээр сар","аравдугаар сар","арваннэгдүгээр сар","арван хоёрдугаар сар"]},sNe={narrow:["Н","Д","М","Л","П","Б","Б"],short:["Ня","Да","Мя","Лх","Пү","Ба","Бя"],abbreviated:["Ням","Дав","Мяг","Лха","Пүр","Баа","Бям"],wide:["Ням","Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба"]},oNe={narrow:["Н","Д","М","Л","П","Б","Б"],short:["Ня","Да","Мя","Лх","Пү","Ба","Бя"],abbreviated:["Ням","Дав","Мяг","Лха","Пүр","Баа","Бям"],wide:["ням","даваа","мягмар","лхагва","пүрэв","баасан","бямба"]},cNe={narrow:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"},abbreviated:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"},wide:{am:"ү.ө.",pm:"ү.х.",midnight:"шөнө дунд",noon:"үд дунд",morning:"өглөө",afternoon:"өдөр",evening:"орой",night:"шөнө"}},lNe=(n,e)=>String(n),uNe={ordinalNumber:lNe,era:K({values:nNe,defaultWidth:"wide"}),quarter:K({values:rNe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:iNe,defaultWidth:"wide",formattingValues:aNe,defaultFormattingWidth:"wide"}),day:K({values:sNe,defaultWidth:"wide",formattingValues:oNe,defaultFormattingWidth:"wide"}),dayPeriod:K({values:cNe,defaultWidth:"wide"})},dNe=/\d+/i,ANe=/\d+/i,hNe={narrow:/^(нтө|нт)/i,abbreviated:/^(нтө|нт)/i,wide:/^(нийтийн тооллын өмнө|нийтийн тооллын)/i},fNe={any:[/^(нтө|нийтийн тооллын өмнө)/i,/^(нт|нийтийн тооллын)/i]},mNe={narrow:/^(iv|iii|ii|i)/i,abbreviated:/^(iv|iii|ii|i) улирал/i,wide:/^[1-4]-р улирал/i},pNe={any:[/^(i(\s|$)|1)/i,/^(ii(\s|$)|2)/i,/^(iii(\s|$)|3)/i,/^(iv(\s|$)|4)/i]},gNe={narrow:/^(xii|xi|x|ix|viii|vii|vi|v|iv|iii|ii|i)/i,abbreviated:/^(1-р сар|2-р сар|3-р сар|4-р сар|5-р сар|6-р сар|7-р сар|8-р сар|9-р сар|10-р сар|11-р сар|12-р сар)/i,wide:/^(нэгдүгээр сар|хоёрдугаар сар|гуравдугаар сар|дөрөвдүгээр сар|тавдугаар сар|зургаадугаар сар|долоодугаар сар|наймдугаар сар|есдүгээр сар|аравдугаар сар|арван нэгдүгээр сар|арван хоёрдугаар сар)/i},vNe={narrow:[/^i$/i,/^ii$/i,/^iii$/i,/^iv$/i,/^v$/i,/^vi$/i,/^vii$/i,/^viii$/i,/^ix$/i,/^x$/i,/^xi$/i,/^xii$/i],any:[/^(1|нэгдүгээр)/i,/^(2|хоёрдугаар)/i,/^(3|гуравдугаар)/i,/^(4|дөрөвдүгээр)/i,/^(5|тавдугаар)/i,/^(6|зургаадугаар)/i,/^(7|долоодугаар)/i,/^(8|наймдугаар)/i,/^(9|есдүгээр)/i,/^(10|аравдугаар)/i,/^(11|арван нэгдүгээр)/i,/^(12|арван хоёрдугаар)/i]},yNe={narrow:/^[ндмлпбб]/i,short:/^(ня|да|мя|лх|пү|ба|бя)/i,abbreviated:/^(ням|дав|мяг|лха|пүр|баа|бям)/i,wide:/^(ням|даваа|мягмар|лхагва|пүрэв|баасан|бямба)/i},wNe={narrow:[/^н/i,/^д/i,/^м/i,/^л/i,/^п/i,/^б/i,/^б/i],any:[/^ня/i,/^да/i,/^мя/i,/^лх/i,/^пү/i,/^ба/i,/^бя/i]},bNe={narrow:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i,any:/^(ү\.ө\.|ү\.х\.|шөнө дунд|үд дунд|өглөө|өдөр|орой|шөнө)/i},_Ne={any:{am:/^ү\.ө\./i,pm:/^ү\.х\./i,midnight:/^шөнө дунд/i,noon:/^үд дунд/i,morning:/өглөө/i,afternoon:/өдөр/i,evening:/орой/i,night:/шөнө/i}},xNe={ordinalNumber:Nt({matchPattern:dNe,parsePattern:ANe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:hNe,defaultMatchWidth:"wide",parsePatterns:fNe,defaultParseWidth:"any"}),quarter:X({matchPatterns:mNe,defaultMatchWidth:"wide",parsePatterns:pNe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:gNe,defaultMatchWidth:"wide",parsePatterns:vNe,defaultParseWidth:"any"}),day:X({matchPatterns:yNe,defaultMatchWidth:"wide",parsePatterns:wNe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:bNe,defaultMatchWidth:"any",parsePatterns:_Ne,defaultParseWidth:"any"})},MNe={code:"mn",formatDistance:qFe,formatLong:ZFe,formatRelative:tNe,localize:uNe,match:xNe,options:{weekStartsOn:1,firstWeekContainsDate:1}},SNe={lessThanXSeconds:{one:"kurang dari 1 saat",other:"kurang dari {{count}} saat"},xSeconds:{one:"1 saat",other:"{{count}} saat"},halfAMinute:"setengah minit",lessThanXMinutes:{one:"kurang dari 1 minit",other:"kurang dari {{count}} minit"},xMinutes:{one:"1 minit",other:"{{count}} minit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},CNe=(n,e,t)=>{let r;const i=SNe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"dalam masa "+r:r+" yang lalu":r},PNe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},ENe={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},BNe={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},TNe={date:we({formats:PNe,defaultWidth:"full"}),time:we({formats:ENe,defaultWidth:"full"}),dateTime:we({formats:BNe,defaultWidth:"full"})},kNe={lastWeek:"eeee 'lepas pada jam' p",yesterday:"'Semalam pada jam' p",today:"'Hari ini pada jam' p",tomorrow:"'Esok pada jam' p",nextWeek:"eeee 'pada jam' p",other:"P"},INe=(n,e,t,r)=>kNe[n],LNe={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masihi","Masihi"]},FNe={narrow:["1","2","3","4"],abbreviated:["S1","S2","S3","S4"],wide:["Suku pertama","Suku kedua","Suku ketiga","Suku keempat"]},NNe={narrow:["J","F","M","A","M","J","J","O","S","O","N","D"],abbreviated:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],wide:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},DNe={narrow:["A","I","S","R","K","J","S"],short:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],abbreviated:["Ahd","Isn","Sel","Rab","Kha","Jum","Sab"],wide:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},RNe={narrow:{am:"am",pm:"pm",midnight:"tgh malam",noon:"tgh hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},UNe={narrow:{am:"am",pm:"pm",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"},wide:{am:"a.m.",pm:"p.m.",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"tengah hari",evening:"petang",night:"malam"}},ONe=(n,e)=>"ke-"+Number(n),HNe={ordinalNumber:ONe,era:K({values:LNe,defaultWidth:"wide"}),quarter:K({values:FNe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:NNe,defaultWidth:"wide"}),day:K({values:DNe,defaultWidth:"wide"}),dayPeriod:K({values:RNe,defaultWidth:"wide",formattingValues:UNe,defaultFormattingWidth:"wide"})},WNe=/^ke-(\d+)?/i,QNe=/petama|\d+/i,$Ne={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|m\.?)/i,wide:/^(sebelum masihi|masihi)/i},jNe={any:[/^s/i,/^(m)/i]},zNe={narrow:/^[1234]/i,abbreviated:/^S[1234]/i,wide:/Suku (pertama|kedua|ketiga|keempat)/i},VNe={any:[/pertama|1/i,/kedua|2/i,/ketiga|3/i,/keempat|4/i]},GNe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mac|apr|mei|jun|jul|ogo|sep|okt|nov|dis)/i,wide:/^(januari|februari|mac|april|mei|jun|julai|ogos|september|oktober|november|disember)/i},KNe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^o/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^og/i,/^s/i,/^ok/i,/^n/i,/^d/i]},qNe={narrow:/^[aisrkj]/i,short:/^(ahd|isn|sel|rab|kha|jum|sab)/i,abbreviated:/^(ahd|isn|sel|rab|kha|jum|sab)/i,wide:/^(ahad|isnin|selasa|rabu|khamis|jumaat|sabtu)/i},XNe={narrow:[/^a/i,/^i/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^a/i,/^i/i,/^se/i,/^r/i,/^k/i,/^j/i,/^sa/i]},YNe={narrow:/^(am|pm|tengah malam|tengah hari|pagi|petang|malam)/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|pagi|petang|malam)/i},JNe={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pa/i,afternoon:/tengah h/i,evening:/pe/i,night:/m/i}},ZNe={ordinalNumber:Nt({matchPattern:WNe,parsePattern:QNe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:$Ne,defaultMatchWidth:"wide",parsePatterns:jNe,defaultParseWidth:"any"}),quarter:X({matchPatterns:zNe,defaultMatchWidth:"wide",parsePatterns:VNe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:GNe,defaultMatchWidth:"wide",parsePatterns:KNe,defaultParseWidth:"any"}),day:X({matchPatterns:qNe,defaultMatchWidth:"wide",parsePatterns:XNe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:YNe,defaultMatchWidth:"any",parsePatterns:JNe,defaultParseWidth:"any"})},e3e={code:"ms",formatDistance:CNe,formatLong:TNe,formatRelative:INe,localize:HNe,match:ZNe,options:{weekStartsOn:1,firstWeekContainsDate:1}},t3e={lessThanXSeconds:{one:"inqas minn sekonda",other:"inqas minn {{count}} sekondi"},xSeconds:{one:"sekonda",other:"{{count}} sekondi"},halfAMinute:"nofs minuta",lessThanXMinutes:{one:"inqas minn minuta",other:"inqas minn {{count}} minuti"},xMinutes:{one:"minuta",other:"{{count}} minuti"},aboutXHours:{one:"madwar siegħa",other:"madwar {{count}} siegħat"},xHours:{one:"siegħa",other:"{{count}} siegħat"},xDays:{one:"ġurnata",other:"{{count}} ġranet"},aboutXWeeks:{one:"madwar ġimgħa",other:"madwar {{count}} ġimgħat"},xWeeks:{one:"ġimgħa",other:"{{count}} ġimgħat"},aboutXMonths:{one:"madwar xahar",other:"madwar {{count}} xhur"},xMonths:{one:"xahar",other:"{{count}} xhur"},aboutXYears:{one:"madwar sena",two:"madwar sentejn",other:"madwar {{count}} snin"},xYears:{one:"sena",two:"sentejn",other:"{{count}} snin"},overXYears:{one:"aktar minn sena",two:"aktar minn sentejn",other:"aktar minn {{count}} snin"},almostXYears:{one:"kważi sena",two:"kważi sentejn",other:"kważi {{count}} snin"}},n3e=(n,e,t)=>{let r;const i=t3e[n];return typeof i=="string"?r=i:e===1?r=i.one:e===2&&i.two?r=i.two:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"f'"+r:r+" ilu":r},r3e={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},i3e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},a3e={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},s3e={date:we({formats:r3e,defaultWidth:"full"}),time:we({formats:i3e,defaultWidth:"full"}),dateTime:we({formats:a3e,defaultWidth:"full"})},o3e={lastWeek:"eeee 'li għadda' 'fil-'p",yesterday:"'Il-bieraħ fil-'p",today:"'Illum fil-'p",tomorrow:"'Għada fil-'p",nextWeek:"eeee 'fil-'p",other:"P"},c3e=(n,e,t,r)=>o3e[n],l3e={narrow:["Q","W"],abbreviated:["QK","WK"],wide:["qabel Kristu","wara Kristu"]},u3e={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1. kwart","2. kwart","3. kwart","4. kwart"]},d3e={narrow:["J","F","M","A","M","Ġ","L","A","S","O","N","D"],abbreviated:["Jan","Fra","Mar","Apr","Mej","Ġun","Lul","Aww","Set","Ott","Nov","Diċ"],wide:["Jannar","Frar","Marzu","April","Mejju","Ġunju","Lulju","Awwissu","Settembru","Ottubru","Novembru","Diċembru"]},A3e={narrow:["Ħ","T","T","E","Ħ","Ġ","S"],short:["Ħa","Tn","Tl","Er","Ħa","Ġi","Si"],abbreviated:["Ħad","Tne","Tli","Erb","Ħam","Ġim","Sib"],wide:["Il-Ħadd","It-Tnejn","It-Tlieta","L-Erbgħa","Il-Ħamis","Il-Ġimgħa","Is-Sibt"]},h3e={narrow:{am:"a",pm:"p",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"},abbreviated:{am:"AM",pm:"PM",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"},wide:{am:"a.m.",pm:"p.m.",midnight:"nofsillejl",noon:"nofsinhar",morning:"għodwa",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"lejl"}},f3e={narrow:{am:"a",pm:"p",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"},abbreviated:{am:"AM",pm:"PM",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"},wide:{am:"a.m.",pm:"p.m.",midnight:"f'nofsillejl",noon:"f'nofsinhar",morning:"filgħodu",afternoon:"wara nofsinhar",evening:"filgħaxija",night:"billejl"}},m3e=(n,e)=>Number(n)+"º",p3e={ordinalNumber:m3e,era:K({values:l3e,defaultWidth:"wide"}),quarter:K({values:u3e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:d3e,defaultWidth:"wide"}),day:K({values:A3e,defaultWidth:"wide"}),dayPeriod:K({values:h3e,defaultWidth:"wide",formattingValues:f3e,defaultFormattingWidth:"wide"})},g3e=/^(\d+)(º)?/i,v3e=/\d+/i,y3e={narrow:/^(q|w)/i,abbreviated:/^(q\.?\s?k\.?|b\.?\s?c\.?\s?e\.?|w\.?\s?k\.?)/i,wide:/^(qabel kristu|before common era|wara kristu|common era)/i},w3e={any:[/^(q|b)/i,/^(w|c)/i]},b3e={narrow:/^[1234]/i,abbreviated:/^k[1234]/i,wide:/^[1234](\.)? kwart/i},_3e={any:[/1/i,/2/i,/3/i,/4/i]},x3e={narrow:/^[jfmaglsond]/i,abbreviated:/^(jan|fra|mar|apr|mej|ġun|lul|aww|set|ott|nov|diċ)/i,wide:/^(jannar|frar|marzu|april|mejju|ġunju|lulju|awwissu|settembru|ottubru|novembru|diċembru)/i},M3e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^ġ/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mej/i,/^ġ/i,/^l/i,/^aw/i,/^s/i,/^o/i,/^n/i,/^d/i]},S3e={narrow:/^[ħteġs]/i,short:/^(ħa|tn|tl|er|ħa|ġi|si)/i,abbreviated:/^(ħad|tne|tli|erb|ħam|ġim|sib)/i,wide:/^(il-ħadd|it-tnejn|it-tlieta|l-erbgħa|il-ħamis|il-ġimgħa|is-sibt)/i},C3e={narrow:[/^ħ/i,/^t/i,/^t/i,/^e/i,/^ħ/i,/^ġ/i,/^s/i],any:[/^(il-)?ħad/i,/^(it-)?tn/i,/^(it-)?tl/i,/^(l-)?er/i,/^(il-)?ham/i,/^(il-)?ġi/i,/^(is-)?si/i]},P3e={narrow:/^(a|p|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i,any:/^([ap]\.?\s?m\.?|f'nofsillejl|f'nofsinhar|(ta') (għodwa|wara nofsinhar|filgħaxija|lejl))/i},E3e={any:{am:/^a/i,pm:/^p/i,midnight:/^f'nofsillejl/i,noon:/^f'nofsinhar/i,morning:/għodwa/i,afternoon:/wara(\s.*)nofsinhar/i,evening:/filgħaxija/i,night:/lejl/i}},B3e={ordinalNumber:Nt({matchPattern:g3e,parsePattern:v3e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:y3e,defaultMatchWidth:"wide",parsePatterns:w3e,defaultParseWidth:"any"}),quarter:X({matchPatterns:b3e,defaultMatchWidth:"wide",parsePatterns:_3e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:x3e,defaultMatchWidth:"wide",parsePatterns:M3e,defaultParseWidth:"any"}),day:X({matchPatterns:S3e,defaultMatchWidth:"wide",parsePatterns:C3e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:P3e,defaultMatchWidth:"any",parsePatterns:E3e,defaultParseWidth:"any"})},T3e={code:"mt",formatDistance:n3e,formatLong:s3e,formatRelative:c3e,localize:p3e,match:B3e,options:{weekStartsOn:1,firstWeekContainsDate:4}},k3e={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},I3e=(n,e,t)=>{let r;const i=k3e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"om "+r:r+" siden":r},L3e={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},F3e={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},N3e={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},D3e={date:we({formats:L3e,defaultWidth:"full"}),time:we({formats:F3e,defaultWidth:"full"}),dateTime:we({formats:N3e,defaultWidth:"full"})},R3e={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},U3e=(n,e,t,r)=>R3e[n],O3e={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},H3e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},W3e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},Q3e={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},$3e={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},j3e=(n,e)=>Number(n)+".",z3e={ordinalNumber:j3e,era:K({values:O3e,defaultWidth:"wide"}),quarter:K({values:H3e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:W3e,defaultWidth:"wide"}),day:K({values:Q3e,defaultWidth:"wide"}),dayPeriod:K({values:$3e,defaultWidth:"wide"})},V3e=/^(\d+)\.?/i,G3e=/\d+/i,K3e={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},q3e={any:[/^f/i,/^e/i]},X3e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},Y3e={any:[/1/i,/2/i,/3/i,/4/i]},J3e={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},Z3e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},e4e={narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},t4e={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},n4e={narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},r4e={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},i4e={ordinalNumber:Nt({matchPattern:V3e,parsePattern:G3e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:K3e,defaultMatchWidth:"wide",parsePatterns:q3e,defaultParseWidth:"any"}),quarter:X({matchPatterns:X3e,defaultMatchWidth:"wide",parsePatterns:Y3e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:J3e,defaultMatchWidth:"wide",parsePatterns:Z3e,defaultParseWidth:"any"}),day:X({matchPatterns:e4e,defaultMatchWidth:"wide",parsePatterns:t4e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:n4e,defaultMatchWidth:"any",parsePatterns:r4e,defaultParseWidth:"any"})},a4e={code:"nb",formatDistance:I3e,formatLong:D3e,formatRelative:U3e,localize:z3e,match:i4e,options:{weekStartsOn:1,firstWeekContainsDate:4}},s4e={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},o4e=(n,e,t)=>{let r;const i=s4e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"over "+r:r+" geleden":r},c4e={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},l4e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},u4e={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},d4e={date:we({formats:c4e,defaultWidth:"full"}),time:we({formats:l4e,defaultWidth:"full"}),dateTime:we({formats:u4e,defaultWidth:"full"})},A4e={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},h4e=(n,e,t,r)=>A4e[n],f4e={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},m4e={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},p4e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},g4e={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},v4e={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},y4e=(n,e)=>Number(n)+"e",w4e={ordinalNumber:y4e,era:K({values:f4e,defaultWidth:"wide"}),quarter:K({values:m4e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:p4e,defaultWidth:"wide"}),day:K({values:g4e,defaultWidth:"wide"}),dayPeriod:K({values:v4e,defaultWidth:"wide"})},b4e=/^(\d+)e?/i,_4e=/\d+/i,x4e={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},M4e={any:[/^v/,/^n/]},S4e={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},C4e={any:[/1/i,/2/i,/3/i,/4/i]},P4e={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},E4e={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},B4e={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},T4e={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},k4e={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},I4e={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},L4e={ordinalNumber:Nt({matchPattern:b4e,parsePattern:_4e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:x4e,defaultMatchWidth:"wide",parsePatterns:M4e,defaultParseWidth:"any"}),quarter:X({matchPatterns:S4e,defaultMatchWidth:"wide",parsePatterns:C4e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:P4e,defaultMatchWidth:"wide",parsePatterns:E4e,defaultParseWidth:"any"}),day:X({matchPatterns:B4e,defaultMatchWidth:"wide",parsePatterns:T4e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:k4e,defaultMatchWidth:"any",parsePatterns:I4e,defaultParseWidth:"any"})},F4e={code:"nl",formatDistance:o4e,formatLong:d4e,formatRelative:h4e,localize:w4e,match:L4e,options:{weekStartsOn:1,firstWeekContainsDate:4}},N4e={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},D4e=(n,e,t)=>{let r;const i=N4e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"over "+r:r+" geleden":r},R4e={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.y"},U4e={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},O4e={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},H4e={date:we({formats:R4e,defaultWidth:"full"}),time:we({formats:U4e,defaultWidth:"full"}),dateTime:we({formats:O4e,defaultWidth:"full"})},W4e={lastWeek:"'vorige' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},Q4e=(n,e,t,r)=>W4e[n],$4e={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},j4e={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},z4e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},V4e={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},G4e={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middag",morning:"'s ochtends",afternoon:"'s namiddags",evening:"'s avonds",night:"'s nachts"}},K4e=(n,e)=>Number(n)+"e",q4e={ordinalNumber:K4e,era:K({values:$4e,defaultWidth:"wide"}),quarter:K({values:j4e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:z4e,defaultWidth:"wide"}),day:K({values:V4e,defaultWidth:"wide"}),dayPeriod:K({values:G4e,defaultWidth:"wide"})},X4e=/^(\d+)e?/i,Y4e=/\d+/i,J4e={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},Z4e={any:[/^v/,/^n/]},eDe={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},tDe={any:[/1/i,/2/i,/3/i,/4/i]},nDe={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},rDe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},iDe={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},aDe={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},sDe={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},oDe={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},cDe={ordinalNumber:Nt({matchPattern:X4e,parsePattern:Y4e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:J4e,defaultMatchWidth:"wide",parsePatterns:Z4e,defaultParseWidth:"any"}),quarter:X({matchPatterns:eDe,defaultMatchWidth:"wide",parsePatterns:tDe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:nDe,defaultMatchWidth:"wide",parsePatterns:rDe,defaultParseWidth:"any"}),day:X({matchPatterns:iDe,defaultMatchWidth:"wide",parsePatterns:aDe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:sDe,defaultMatchWidth:"any",parsePatterns:oDe,defaultParseWidth:"any"})},lDe={code:"nl-BE",formatDistance:D4e,formatLong:H4e,formatRelative:Q4e,localize:q4e,match:cDe,options:{weekStartsOn:1,firstWeekContainsDate:4}},uDe={lessThanXSeconds:{one:"mindre enn eitt sekund",other:"mindre enn {{count}} sekund"},xSeconds:{one:"eitt sekund",other:"{{count}} sekund"},halfAMinute:"eit halvt minutt",lessThanXMinutes:{one:"mindre enn eitt minutt",other:"mindre enn {{count}} minutt"},xMinutes:{one:"eitt minutt",other:"{{count}} minutt"},aboutXHours:{one:"omtrent ein time",other:"omtrent {{count}} timar"},xHours:{one:"ein time",other:"{{count}} timar"},xDays:{one:"ein dag",other:"{{count}} dagar"},aboutXWeeks:{one:"omtrent ei veke",other:"omtrent {{count}} veker"},xWeeks:{one:"ei veke",other:"{{count}} veker"},aboutXMonths:{one:"omtrent ein månad",other:"omtrent {{count}} månader"},xMonths:{one:"ein månad",other:"{{count}} månader"},aboutXYears:{one:"omtrent eitt år",other:"omtrent {{count}} år"},xYears:{one:"eitt år",other:"{{count}} år"},overXYears:{one:"over eitt år",other:"over {{count}} år"},almostXYears:{one:"nesten eitt år",other:"nesten {{count}} år"}},dDe=["null","ein","to","tre","fire","fem","seks","sju","åtte","ni","ti","elleve","tolv"],ADe=(n,e,t)=>{let r;const i=uDe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e<13?dDe[e]:String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"om "+r:r+" sidan":r},hDe={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},fDe={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},mDe={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},pDe={date:we({formats:hDe,defaultWidth:"full"}),time:we({formats:fDe,defaultWidth:"full"}),dateTime:we({formats:mDe,defaultWidth:"full"})},gDe={lastWeek:"'førre' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},vDe=(n,e,t,r)=>gDe[n],yDe={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},wDe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},bDe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},_De={narrow:["S","M","T","O","T","F","L"],short:["su","må","ty","on","to","fr","lau"],abbreviated:["sun","mån","tys","ons","tor","fre","laur"],wide:["sundag","måndag","tysdag","onsdag","torsdag","fredag","laurdag"]},xDe={narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natta"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natta"}},MDe=(n,e)=>Number(n)+".",SDe={ordinalNumber:MDe,era:K({values:yDe,defaultWidth:"wide"}),quarter:K({values:wDe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:bDe,defaultWidth:"wide"}),day:K({values:_De,defaultWidth:"wide"}),dayPeriod:K({values:xDe,defaultWidth:"wide"})},CDe=/^(\d+)\.?/i,PDe=/\d+/i,EDe={narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},BDe={any:[/^f/i,/^e/i]},TDe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},kDe={any:[/1/i,/2/i,/3/i,/4/i]},IDe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},LDe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},FDe={narrow:/^[smtofl]/i,short:/^(su|må|ty|on|to|fr|la)/i,abbreviated:/^(sun|mån|tys|ons|tor|fre|laur)/i,wide:/^(sundag|måndag|tysdag|onsdag|torsdag|fredag|laurdag)/i},NDe={any:[/^s/i,/^m/i,/^ty/i,/^o/i,/^to/i,/^f/i,/^l/i]},DDe={narrow:/^(midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgonen|ettermiddagen|kvelden|natta))/i},RDe={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},UDe={ordinalNumber:Nt({matchPattern:CDe,parsePattern:PDe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:EDe,defaultMatchWidth:"wide",parsePatterns:BDe,defaultParseWidth:"any"}),quarter:X({matchPatterns:TDe,defaultMatchWidth:"wide",parsePatterns:kDe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:IDe,defaultMatchWidth:"wide",parsePatterns:LDe,defaultParseWidth:"any"}),day:X({matchPatterns:FDe,defaultMatchWidth:"wide",parsePatterns:NDe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:DDe,defaultMatchWidth:"any",parsePatterns:RDe,defaultParseWidth:"any"})},ODe={code:"nn",formatDistance:ADe,formatLong:pDe,formatRelative:vDe,localize:SDe,match:UDe,options:{weekStartsOn:1,firstWeekContainsDate:4}},HDe={lessThanXSeconds:{one:"mens d’una segonda",other:"mens de {{count}} segondas"},xSeconds:{one:"1 segonda",other:"{{count}} segondas"},halfAMinute:"30 segondas",lessThanXMinutes:{one:"mens d’una minuta",other:"mens de {{count}} minutas"},xMinutes:{one:"1 minuta",other:"{{count}} minutas"},aboutXHours:{one:"environ 1 ora",other:"environ {{count}} oras"},xHours:{one:"1 ora",other:"{{count}} oras"},xDays:{one:"1 jorn",other:"{{count}} jorns"},aboutXWeeks:{one:"environ 1 setmana",other:"environ {{count}} setmanas"},xWeeks:{one:"1 setmana",other:"{{count}} setmanas"},aboutXMonths:{one:"environ 1 mes",other:"environ {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"mai d’un an",other:"mai de {{count}} ans"},almostXYears:{one:"gaireben un an",other:"gaireben {{count}} ans"}},WDe=(n,e,t)=>{let r;const i=HDe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"d’aquí "+r:"fa "+r:r},QDe={full:"EEEE d 'de' MMMM y",long:"d 'de' MMMM y",medium:"d MMM y",short:"dd/MM/y"},$De={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},jDe={full:"{{date}} 'a' {{time}}",long:"{{date}} 'a' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zDe={date:we({formats:QDe,defaultWidth:"full"}),time:we({formats:$De,defaultWidth:"full"}),dateTime:we({formats:jDe,defaultWidth:"full"})},VDe={lastWeek:"eeee 'passat a' p",yesterday:"'ièr a' p",today:"'uèi a' p",tomorrow:"'deman a' p",nextWeek:"eeee 'a' p",other:"P"},GDe=(n,e,t,r)=>VDe[n],KDe={narrow:["ab. J.C.","apr. J.C."],abbreviated:["ab. J.C.","apr. J.C."],wide:["abans Jèsus-Crist","après Jèsus-Crist"]},qDe={narrow:["T1","T2","T3","T4"],abbreviated:["1èr trim.","2nd trim.","3en trim.","4en trim."],wide:["1èr trimèstre","2nd trimèstre","3en trimèstre","4en trimèstre"]},XDe={narrow:["GN","FB","MÇ","AB","MA","JN","JL","AG","ST","OC","NV","DC"],abbreviated:["gen.","febr.","març","abr.","mai","junh","jul.","ag.","set.","oct.","nov.","dec."],wide:["genièr","febrièr","març","abril","mai","junh","julhet","agost","setembre","octòbre","novembre","decembre"]},YDe={narrow:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],short:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],abbreviated:["dg.","dl.","dm.","dc.","dj.","dv.","ds."],wide:["dimenge","diluns","dimars","dimècres","dijòus","divendres","dissabte"]},JDe={narrow:{am:"am",pm:"pm",midnight:"mièjanuèch",noon:"miègjorn",morning:"matin",afternoon:"aprèp-miègjorn",evening:"vèspre",night:"nuèch"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"mièjanuèch",noon:"miègjorn",morning:"matin",afternoon:"aprèp-miègjorn",evening:"vèspre",night:"nuèch"},wide:{am:"a.m.",pm:"p.m.",midnight:"mièjanuèch",noon:"miègjorn",morning:"matin",afternoon:"aprèp-miègjorn",evening:"vèspre",night:"nuèch"}},ZDe={narrow:{am:"am",pm:"pm",midnight:"mièjanuèch",noon:"miègjorn",morning:"del matin",afternoon:"de l’aprèp-miègjorn",evening:"del ser",night:"de la nuèch"},abbreviated:{am:"AM",pm:"PM",midnight:"mièjanuèch",noon:"miègjorn",morning:"del matin",afternoon:"de l’aprèp-miègjorn",evening:"del ser",night:"de la nuèch"},wide:{am:"ante meridiem",pm:"post meridiem",midnight:"mièjanuèch",noon:"miègjorn",morning:"del matin",afternoon:"de l’aprèp-miègjorn",evening:"del ser",night:"de la nuèch"}},eRe=(n,e)=>{const t=Number(n),r=e==null?void 0:e.unit;let i;switch(t){case 1:i="èr";break;case 2:i="nd";break;default:i="en"}return(r==="year"||r==="week"||r==="hour"||r==="minute"||r==="second")&&(i+="a"),t+i},tRe={ordinalNumber:eRe,era:K({values:KDe,defaultWidth:"wide"}),quarter:K({values:qDe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:XDe,defaultWidth:"wide"}),day:K({values:YDe,defaultWidth:"wide"}),dayPeriod:K({values:JDe,defaultWidth:"wide",formattingValues:ZDe,defaultFormattingWidth:"wide"})},nRe=/^(\d+)(èr|nd|en)?[a]?/i,rRe=/\d+/i,iRe={narrow:/^(ab\.J\.C|apr\.J\.C|apr\.J\.-C)/i,abbreviated:/^(ab\.J\.-C|ab\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(abans Jèsus-Crist|après Jèsus-Crist)/i},aRe={any:[/^ab/i,/^ap/i]},sRe={narrow:/^T[1234]/i,abbreviated:/^[1234](èr|nd|en)? trim\.?/i,wide:/^[1234](èr|nd|en)? trimèstre/i},oRe={any:[/1/i,/2/i,/3/i,/4/i]},cRe={narrow:/^(GN|FB|MÇ|AB|MA|JN|JL|AG|ST|OC|NV|DC)/i,abbreviated:/^(gen|febr|març|abr|mai|junh|jul|ag|set|oct|nov|dec)\.?/i,wide:/^(genièr|febrièr|març|abril|mai|junh|julhet|agost|setembre|octòbre|novembre|decembre)/i},lRe={any:[/^g/i,/^f/i,/^ma[r?]|MÇ/i,/^ab/i,/^ma[i?]/i,/^ju[n?]|JN/i,/^ju[l?]|JL/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},uRe={narrow:/^d[glmcjvs]\.?/i,short:/^d[glmcjvs]\.?/i,abbreviated:/^d[glmcjvs]\.?/i,wide:/^(dimenge|diluns|dimars|dimècres|dijòus|divendres|dissabte)/i},dRe={narrow:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],short:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],abbreviated:[/^dg/i,/^dl/i,/^dm/i,/^dc/i,/^dj/i,/^dv/i,/^ds/i],any:[/^dg|dime/i,/^dl|dil/i,/^dm|dima/i,/^dc|dimè/i,/^dj|dij/i,/^dv|div/i,/^ds|dis/i]},ARe={any:/(^(a\.?m|p\.?m))|(ante meridiem|post meridiem)|((del |de la |de l’)(matin|aprèp-miègjorn|vèspre|ser|nuèch))/i},hRe={any:{am:/(^a)|ante meridiem/i,pm:/(^p)|post meridiem/i,midnight:/^mièj/i,noon:/^mièg/i,morning:/matin/i,afternoon:/aprèp-miègjorn/i,evening:/vèspre|ser/i,night:/nuèch/i}},fRe={ordinalNumber:Nt({matchPattern:nRe,parsePattern:rRe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:iRe,defaultMatchWidth:"wide",parsePatterns:aRe,defaultParseWidth:"any"}),quarter:X({matchPatterns:sRe,defaultMatchWidth:"wide",parsePatterns:oRe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:cRe,defaultMatchWidth:"wide",parsePatterns:lRe,defaultParseWidth:"any"}),day:X({matchPatterns:uRe,defaultMatchWidth:"wide",parsePatterns:dRe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:ARe,defaultMatchWidth:"any",parsePatterns:hRe,defaultParseWidth:"any"})},mRe={code:"oc",formatDistance:WDe,formatLong:zDe,formatRelative:GDe,localize:tRe,match:fRe,options:{weekStartsOn:1,firstWeekContainsDate:4}},pRe={lessThanXSeconds:{one:{regular:"mniej niż sekunda",past:"mniej niż sekundę",future:"mniej niż sekundę"},twoFour:"mniej niż {{count}} sekundy",other:"mniej niż {{count}} sekund"},xSeconds:{one:{regular:"sekunda",past:"sekundę",future:"sekundę"},twoFour:"{{count}} sekundy",other:"{{count}} sekund"},halfAMinute:{one:"pół minuty",twoFour:"pół minuty",other:"pół minuty"},lessThanXMinutes:{one:{regular:"mniej niż minuta",past:"mniej niż minutę",future:"mniej niż minutę"},twoFour:"mniej niż {{count}} minuty",other:"mniej niż {{count}} minut"},xMinutes:{one:{regular:"minuta",past:"minutę",future:"minutę"},twoFour:"{{count}} minuty",other:"{{count}} minut"},aboutXHours:{one:{regular:"około godziny",past:"około godziny",future:"około godzinę"},twoFour:"około {{count}} godziny",other:"około {{count}} godzin"},xHours:{one:{regular:"godzina",past:"godzinę",future:"godzinę"},twoFour:"{{count}} godziny",other:"{{count}} godzin"},xDays:{one:{regular:"dzień",past:"dzień",future:"1 dzień"},twoFour:"{{count}} dni",other:"{{count}} dni"},aboutXWeeks:{one:"około tygodnia",twoFour:"około {{count}} tygodni",other:"około {{count}} tygodni"},xWeeks:{one:"tydzień",twoFour:"{{count}} tygodnie",other:"{{count}} tygodni"},aboutXMonths:{one:"około miesiąc",twoFour:"około {{count}} miesiące",other:"około {{count}} miesięcy"},xMonths:{one:"miesiąc",twoFour:"{{count}} miesiące",other:"{{count}} miesięcy"},aboutXYears:{one:"około rok",twoFour:"około {{count}} lata",other:"około {{count}} lat"},xYears:{one:"rok",twoFour:"{{count}} lata",other:"{{count}} lat"},overXYears:{one:"ponad rok",twoFour:"ponad {{count}} lata",other:"ponad {{count}} lat"},almostXYears:{one:"prawie rok",twoFour:"prawie {{count}} lata",other:"prawie {{count}} lat"}};function gRe(n,e){if(e===1)return n.one;const t=e%100;if(t<=20&&t>10)return n.other;const r=t%10;return r>=2&&r<=4?n.twoFour:n.other}function V_(n,e,t){const r=gRe(n,e);return(typeof r=="string"?r:r[t]).replace("{{count}}",String(e))}const vRe=(n,e,t)=>{const r=pRe[n];return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"za "+V_(r,e,"future"):V_(r,e,"past")+" temu":V_(r,e,"regular")},yRe={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},wRe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},bRe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_Re={date:we({formats:yRe,defaultWidth:"full"}),time:we({formats:wRe,defaultWidth:"full"}),dateTime:we({formats:bRe,defaultWidth:"full"})},xRe={masculine:"ostatni",feminine:"ostatnia"},MRe={masculine:"ten",feminine:"ta"},SRe={masculine:"następny",feminine:"następna"},CRe={0:"feminine",1:"masculine",2:"masculine",3:"feminine",4:"masculine",5:"masculine",6:"feminine"};function DI(n,e,t,r){let i;if(vi(e,t,r))i=MRe;else if(n==="lastWeek")i=xRe;else if(n==="nextWeek")i=SRe;else throw new Error(`Cannot determine adjectives for token ${n}`);const a=e.getDay(),s=CRe[a];return`'${i[s]}' eeee 'o' p`}const PRe={lastWeek:DI,yesterday:"'wczoraj o' p",today:"'dzisiaj o' p",tomorrow:"'jutro o' p",nextWeek:DI,other:"P"},ERe=(n,e,t,r)=>{const i=PRe[n];return typeof i=="function"?i(n,e,t,r):i},BRe={narrow:["p.n.e.","n.e."],abbreviated:["p.n.e.","n.e."],wide:["przed naszą erą","naszej ery"]},TRe={narrow:["1","2","3","4"],abbreviated:["I kw.","II kw.","III kw.","IV kw."],wide:["I kwartał","II kwartał","III kwartał","IV kwartał"]},kRe={narrow:["S","L","M","K","M","C","L","S","W","P","L","G"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"]},IRe={narrow:["s","l","m","k","m","c","l","s","w","p","l","g"],abbreviated:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],wide:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"]},LRe={narrow:["N","P","W","Ś","C","P","S"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},FRe={narrow:["n","p","w","ś","c","p","s"],short:["nie","pon","wto","śro","czw","pią","sob"],abbreviated:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."],wide:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},NRe={narrow:{am:"a",pm:"p",midnight:"półn.",noon:"poł",morning:"rano",afternoon:"popoł.",evening:"wiecz.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"północ",noon:"południe",morning:"rano",afternoon:"popołudnie",evening:"wieczór",night:"noc"}},DRe={narrow:{am:"a",pm:"p",midnight:"o półn.",noon:"w poł.",morning:"rano",afternoon:"po poł.",evening:"wiecz.",night:"w nocy"},abbreviated:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"},wide:{am:"AM",pm:"PM",midnight:"o północy",noon:"w południe",morning:"rano",afternoon:"po południu",evening:"wieczorem",night:"w nocy"}},RRe=(n,e)=>String(n),URe={ordinalNumber:RRe,era:K({values:BRe,defaultWidth:"wide"}),quarter:K({values:TRe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:kRe,defaultWidth:"wide",formattingValues:IRe,defaultFormattingWidth:"wide"}),day:K({values:LRe,defaultWidth:"wide",formattingValues:FRe,defaultFormattingWidth:"wide"}),dayPeriod:K({values:NRe,defaultWidth:"wide",formattingValues:DRe,defaultFormattingWidth:"wide"})},ORe=/^(\d+)?/i,HRe=/\d+/i,WRe={narrow:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,abbreviated:/^(p\.?\s*n\.?\s*e\.?\s*|n\.?\s*e\.?\s*)/i,wide:/^(przed\s*nasz(ą|a)\s*er(ą|a)|naszej\s*ery)/i},QRe={any:[/^p/i,/^n/i]},$Re={narrow:/^[1234]/i,abbreviated:/^(I|II|III|IV)\s*kw\.?/i,wide:/^(I|II|III|IV)\s*kwarta(ł|l)/i},jRe={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/^I kw/i,/^II kw/i,/^III kw/i,/^IV kw/i]},zRe={narrow:/^[slmkcwpg]/i,abbreviated:/^(sty|lut|mar|kwi|maj|cze|lip|sie|wrz|pa(ź|z)|lis|gru)/i,wide:/^(stycznia|stycze(ń|n)|lutego|luty|marca|marzec|kwietnia|kwiecie(ń|n)|maja|maj|czerwca|czerwiec|lipca|lipiec|sierpnia|sierpie(ń|n)|wrze(ś|s)nia|wrzesie(ń|n)|pa(ź|z)dziernika|pa(ź|z)dziernik|listopada|listopad|grudnia|grudzie(ń|n))/i},VRe={narrow:[/^s/i,/^l/i,/^m/i,/^k/i,/^m/i,/^c/i,/^l/i,/^s/i,/^w/i,/^p/i,/^l/i,/^g/i],any:[/^st/i,/^lu/i,/^mar/i,/^k/i,/^maj/i,/^c/i,/^lip/i,/^si/i,/^w/i,/^p/i,/^lis/i,/^g/i]},GRe={narrow:/^[npwścs]/i,short:/^(nie|pon|wto|(ś|s)ro|czw|pi(ą|a)|sob)/i,abbreviated:/^(niedz|pon|wt|(ś|s)r|czw|pt|sob)\.?/i,wide:/^(niedziela|poniedzia(ł|l)ek|wtorek|(ś|s)roda|czwartek|pi(ą|a)tek|sobota)/i},KRe={narrow:[/^n/i,/^p/i,/^w/i,/^ś/i,/^c/i,/^p/i,/^s/i],abbreviated:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pt/i,/^so/i],any:[/^n/i,/^po/i,/^w/i,/^(ś|s)r/i,/^c/i,/^pi/i,/^so/i]},qRe={narrow:/^(^a$|^p$|pó(ł|l)n\.?|o\s*pó(ł|l)n\.?|po(ł|l)\.?|w\s*po(ł|l)\.?|po\s*po(ł|l)\.?|rano|wiecz\.?|noc|w\s*nocy)/i,any:/^(am|pm|pó(ł|l)noc|o\s*pó(ł|l)nocy|po(ł|l)udnie|w\s*po(ł|l)udnie|popo(ł|l)udnie|po\s*po(ł|l)udniu|rano|wieczór|wieczorem|noc|w\s*nocy)/i},XRe={narrow:{am:/^a$/i,pm:/^p$/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i},any:{am:/^am/i,pm:/^pm/i,midnight:/pó(ł|l)n/i,noon:/po(ł|l)/i,morning:/rano/i,afternoon:/po\s*po(ł|l)/i,evening:/wiecz/i,night:/noc/i}},YRe={ordinalNumber:Nt({matchPattern:ORe,parsePattern:HRe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:WRe,defaultMatchWidth:"wide",parsePatterns:QRe,defaultParseWidth:"any"}),quarter:X({matchPatterns:$Re,defaultMatchWidth:"wide",parsePatterns:jRe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:zRe,defaultMatchWidth:"wide",parsePatterns:VRe,defaultParseWidth:"any"}),day:X({matchPatterns:GRe,defaultMatchWidth:"wide",parsePatterns:KRe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:qRe,defaultMatchWidth:"any",parsePatterns:XRe,defaultParseWidth:"any"})},JRe={code:"pl",formatDistance:vRe,formatLong:_Re,formatRelative:ERe,localize:URe,match:YRe,options:{weekStartsOn:1,firstWeekContainsDate:4}},ZRe={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},eUe=(n,e,t)=>{let r;const i=ZRe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"daqui a "+r:"há "+r:r},tUe={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},nUe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},rUe={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iUe={date:we({formats:tUe,defaultWidth:"full"}),time:we({formats:nUe,defaultWidth:"full"}),dateTime:we({formats:rUe,defaultWidth:"full"})},aUe={lastWeek:n=>{const e=n.getDay();return"'"+(e===0||e===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},sUe=(n,e,t,r)=>{const i=aUe[n];return typeof i=="function"?i(e):i},oUe={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},cUe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},lUe={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},uUe={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},dUe={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},AUe={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},hUe=(n,e)=>Number(n)+"º",fUe={ordinalNumber:hUe,era:K({values:oUe,defaultWidth:"wide"}),quarter:K({values:cUe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:lUe,defaultWidth:"wide"}),day:K({values:uUe,defaultWidth:"wide"}),dayPeriod:K({values:dUe,defaultWidth:"wide",formattingValues:AUe,defaultFormattingWidth:"wide"})},mUe=/^(\d+)(º|ª)?/i,pUe=/\d+/i,gUe={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},vUe={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},yUe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},wUe={any:[/1/i,/2/i,/3/i,/4/i]},bUe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},_Ue={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},xUe={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},MUe={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},SUe={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},CUe={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},PUe={ordinalNumber:Nt({matchPattern:mUe,parsePattern:pUe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:gUe,defaultMatchWidth:"wide",parsePatterns:vUe,defaultParseWidth:"any"}),quarter:X({matchPatterns:yUe,defaultMatchWidth:"wide",parsePatterns:wUe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:bUe,defaultMatchWidth:"wide",parsePatterns:_Ue,defaultParseWidth:"any"}),day:X({matchPatterns:xUe,defaultMatchWidth:"wide",parsePatterns:MUe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:SUe,defaultMatchWidth:"any",parsePatterns:CUe,defaultParseWidth:"any"})},EUe={code:"pt",formatDistance:eUe,formatLong:iUe,formatRelative:sUe,localize:fUe,match:PUe,options:{weekStartsOn:1,firstWeekContainsDate:4}},BUe={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 mês",other:"cerca de {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},TUe=(n,e,t)=>{let r;const i=BUe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"em "+r:"há "+r:r},kUe={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},IUe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},LUe={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},FUe={date:we({formats:kUe,defaultWidth:"full"}),time:we({formats:IUe,defaultWidth:"full"}),dateTime:we({formats:LUe,defaultWidth:"full"})},NUe={lastWeek:n=>{const e=n.getDay();return"'"+(e===0||e===6?"último":"última")+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},DUe=(n,e,t,r)=>{const i=NUe[n];return typeof i=="function"?i(e):i},RUe={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},UUe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},OUe={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},HUe={narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},WUe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"tarde",night:"noite"}},QUe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},$Ue=(n,e)=>{const t=Number(n);return(e==null?void 0:e.unit)==="week"?t+"ª":t+"º"},jUe={ordinalNumber:$Ue,era:K({values:RUe,defaultWidth:"wide"}),quarter:K({values:UUe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:OUe,defaultWidth:"wide"}),day:K({values:HUe,defaultWidth:"wide"}),dayPeriod:K({values:WUe,defaultWidth:"wide",formattingValues:QUe,defaultFormattingWidth:"wide"})},zUe=/^(\d+)[ºªo]?/i,VUe=/\d+/i,GUe={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},KUe={any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},qUe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},XUe={any:[/1/i,/2/i,/3/i,/4/i]},YUe={narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},JUe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},ZUe={narrow:/^(dom|[23456]ª?|s[aá]b)/i,short:/^(dom|[23456]ª?|s[aá]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,wide:/^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i},eOe={short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[aá]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[aá]b/i]},tOe={narrow:/^(a|p|mn|md|(da) (manhã|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i},nOe={any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manhã/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},rOe={ordinalNumber:Nt({matchPattern:zUe,parsePattern:VUe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:GUe,defaultMatchWidth:"wide",parsePatterns:KUe,defaultParseWidth:"any"}),quarter:X({matchPatterns:qUe,defaultMatchWidth:"wide",parsePatterns:XUe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:YUe,defaultMatchWidth:"wide",parsePatterns:JUe,defaultParseWidth:"any"}),day:X({matchPatterns:ZUe,defaultMatchWidth:"wide",parsePatterns:eOe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:tOe,defaultMatchWidth:"any",parsePatterns:nOe,defaultParseWidth:"any"})},iOe={code:"pt-BR",formatDistance:TUe,formatLong:FUe,formatRelative:DUe,localize:jUe,match:rOe,options:{weekStartsOn:0,firstWeekContainsDate:1}},aOe={lessThanXSeconds:{one:"mai puțin de o secundă",other:"mai puțin de {{count}} secunde"},xSeconds:{one:"1 secundă",other:"{{count}} secunde"},halfAMinute:"jumătate de minut",lessThanXMinutes:{one:"mai puțin de un minut",other:"mai puțin de {{count}} minute"},xMinutes:{one:"1 minut",other:"{{count}} minute"},aboutXHours:{one:"circa 1 oră",other:"circa {{count}} ore"},xHours:{one:"1 oră",other:"{{count}} ore"},xDays:{one:"1 zi",other:"{{count}} zile"},aboutXWeeks:{one:"circa o săptămână",other:"circa {{count}} săptămâni"},xWeeks:{one:"1 săptămână",other:"{{count}} săptămâni"},aboutXMonths:{one:"circa 1 lună",other:"circa {{count}} luni"},xMonths:{one:"1 lună",other:"{{count}} luni"},aboutXYears:{one:"circa 1 an",other:"circa {{count}} ani"},xYears:{one:"1 an",other:"{{count}} ani"},overXYears:{one:"peste 1 an",other:"peste {{count}} ani"},almostXYears:{one:"aproape 1 an",other:"aproape {{count}} ani"}},sOe=(n,e,t)=>{let r;const i=aOe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"în "+r:r+" în urmă":r},oOe={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd.MM.yyyy"},cOe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},lOe={full:"{{date}} 'la' {{time}}",long:"{{date}} 'la' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},uOe={date:we({formats:oOe,defaultWidth:"full"}),time:we({formats:cOe,defaultWidth:"full"}),dateTime:we({formats:lOe,defaultWidth:"full"})},dOe={lastWeek:"eeee 'trecută la' p",yesterday:"'ieri la' p",today:"'astăzi la' p",tomorrow:"'mâine la' p",nextWeek:"eeee 'viitoare la' p",other:"P"},AOe=(n,e,t,r)=>dOe[n],hOe={narrow:["Î","D"],abbreviated:["Î.d.C.","D.C."],wide:["Înainte de Cristos","După Cristos"]},fOe={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["primul trimestru","al doilea trimestru","al treilea trimestru","al patrulea trimestru"]},mOe={narrow:["I","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["ian","feb","mar","apr","mai","iun","iul","aug","sep","oct","noi","dec"],wide:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"]},pOe={narrow:["d","l","m","m","j","v","s"],short:["du","lu","ma","mi","jo","vi","sâ"],abbreviated:["dum","lun","mar","mie","joi","vin","sâm"],wide:["duminică","luni","marți","miercuri","joi","vineri","sâmbătă"]},gOe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"ami",morning:"dim",afternoon:"da",evening:"s",night:"n"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},vOe={narrow:{am:"a",pm:"p",midnight:"mn",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},abbreviated:{am:"AM",pm:"PM",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"},wide:{am:"a.m.",pm:"p.m.",midnight:"miezul nopții",noon:"amiază",morning:"dimineață",afternoon:"după-amiază",evening:"seară",night:"noapte"}},yOe=(n,e)=>String(n),wOe={ordinalNumber:yOe,era:K({values:hOe,defaultWidth:"wide"}),quarter:K({values:fOe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:mOe,defaultWidth:"wide"}),day:K({values:pOe,defaultWidth:"wide"}),dayPeriod:K({values:gOe,defaultWidth:"wide",formattingValues:vOe,defaultFormattingWidth:"wide"})},bOe=/^(\d+)?/i,_Oe=/\d+/i,xOe={narrow:/^(Î|D)/i,abbreviated:/^(Î\.?\s?d\.?\s?C\.?|Î\.?\s?e\.?\s?n\.?|D\.?\s?C\.?|e\.?\s?n\.?)/i,wide:/^(Înainte de Cristos|Înaintea erei noastre|După Cristos|Era noastră)/i},MOe={any:[/^ÎC/i,/^DC/i],wide:[/^(Înainte de Cristos|Înaintea erei noastre)/i,/^(După Cristos|Era noastră)/i]},SOe={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^trimestrul [1234]/i},COe={any:[/1/i,/2/i,/3/i,/4/i]},POe={narrow:/^[ifmaasond]/i,abbreviated:/^(ian|feb|mar|apr|mai|iun|iul|aug|sep|oct|noi|dec)/i,wide:/^(ianuarie|februarie|martie|aprilie|mai|iunie|iulie|august|septembrie|octombrie|noiembrie|decembrie)/i},EOe={narrow:[/^i/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ia/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^iun/i,/^iul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},BOe={narrow:/^[dlmjvs]/i,short:/^(d|l|ma|mi|j|v|s)/i,abbreviated:/^(dum|lun|mar|mie|jo|vi|sâ)/i,wide:/^(duminica|luni|marţi|miercuri|joi|vineri|sâmbătă)/i},TOe={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^mi/i,/^j/i,/^v/i,/^s/i]},kOe={narrow:/^(a|p|mn|a|(dimineaţa|după-amiaza|seara|noaptea))/i,any:/^([ap]\.?\s?m\.?|miezul nopții|amiaza|(dimineaţa|după-amiaza|seara|noaptea))/i},IOe={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/amiaza/i,morning:/dimineaţa/i,afternoon:/după-amiaza/i,evening:/seara/i,night:/noaptea/i}},LOe={ordinalNumber:Nt({matchPattern:bOe,parsePattern:_Oe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:xOe,defaultMatchWidth:"wide",parsePatterns:MOe,defaultParseWidth:"any"}),quarter:X({matchPatterns:SOe,defaultMatchWidth:"wide",parsePatterns:COe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:POe,defaultMatchWidth:"wide",parsePatterns:EOe,defaultParseWidth:"any"}),day:X({matchPatterns:BOe,defaultMatchWidth:"wide",parsePatterns:TOe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:kOe,defaultMatchWidth:"any",parsePatterns:IOe,defaultParseWidth:"any"})},FOe={code:"ro",formatDistance:sOe,formatLong:uOe,formatRelative:AOe,localize:wOe,match:LOe,options:{weekStartsOn:1,firstWeekContainsDate:1}};function fm(n,e){if(n.one!==void 0&&e===1)return n.one;const t=e%10,r=e%100;return t===1&&r!==11?n.singularNominative.replace("{{count}}",String(e)):t>=2&&t<=4&&(r<10||r>20)?n.singularGenitive.replace("{{count}}",String(e)):n.pluralGenitive.replace("{{count}}",String(e))}function ms(n){return(e,t)=>t!=null&&t.addSuffix?t.comparison&&t.comparison>0?n.future?fm(n.future,e):"через "+fm(n.regular,e):n.past?fm(n.past,e):fm(n.regular,e)+" назад":fm(n.regular,e)}const NOe={lessThanXSeconds:ms({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:ms({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:(n,e)=>e!=null&&e.addSuffix?e.comparison&&e.comparison>0?"через полминуты":"полминуты назад":"полминуты",lessThanXMinutes:ms({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:ms({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:ms({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:ms({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:ms({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:ms({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:ms({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:ms({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:ms({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:ms({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:ms({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:ms({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:ms({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},DOe=(n,e,t)=>NOe[n](e,t),ROe={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},UOe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},OOe={any:"{{date}}, {{time}}"},HOe={date:we({formats:ROe,defaultWidth:"full"}),time:we({formats:UOe,defaultWidth:"full"}),dateTime:we({formats:OOe,defaultWidth:"any"})},KC=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function WOe(n){const e=KC[n];switch(n){case 0:return"'в прошлое "+e+" в' p";case 1:case 2:case 4:return"'в прошлый "+e+" в' p";case 3:case 5:case 6:return"'в прошлую "+e+" в' p"}}function RI(n){const e=KC[n];return n===2?"'во "+e+" в' p":"'в "+e+" в' p"}function QOe(n){const e=KC[n];switch(n){case 0:return"'в следующее "+e+" в' p";case 1:case 2:case 4:return"'в следующий "+e+" в' p";case 3:case 5:case 6:return"'в следующую "+e+" в' p"}}const $Oe={lastWeek:(n,e,t)=>{const r=n.getDay();return vi(n,e,t)?RI(r):WOe(r)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:(n,e,t)=>{const r=n.getDay();return vi(n,e,t)?RI(r):QOe(r)},other:"P"},jOe=(n,e,t,r)=>{const i=$Oe[n];return typeof i=="function"?i(e,t,r):i},zOe={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},VOe={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},GOe={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},KOe={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},qOe={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},XOe={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},YOe={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},JOe=(n,e)=>{const t=Number(n),r=e==null?void 0:e.unit;let i;return r==="date"?i="-е":r==="week"||r==="minute"||r==="second"?i="-я":i="-й",t+i},ZOe={ordinalNumber:JOe,era:K({values:zOe,defaultWidth:"wide"}),quarter:K({values:VOe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:GOe,defaultWidth:"wide",formattingValues:KOe,defaultFormattingWidth:"wide"}),day:K({values:qOe,defaultWidth:"wide"}),dayPeriod:K({values:XOe,defaultWidth:"any",formattingValues:YOe,defaultFormattingWidth:"wide"})},eHe=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,tHe=/\d+/i,nHe={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},rHe={any:[/^д/i,/^н/i]},iHe={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},aHe={any:[/1/i,/2/i,/3/i,/4/i]},sHe={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},oHe={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},cHe={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},lHe={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},uHe={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},dHe={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},AHe={ordinalNumber:Nt({matchPattern:eHe,parsePattern:tHe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:nHe,defaultMatchWidth:"wide",parsePatterns:rHe,defaultParseWidth:"any"}),quarter:X({matchPatterns:iHe,defaultMatchWidth:"wide",parsePatterns:aHe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:sHe,defaultMatchWidth:"wide",parsePatterns:oHe,defaultParseWidth:"any"}),day:X({matchPatterns:cHe,defaultMatchWidth:"wide",parsePatterns:lHe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:uHe,defaultMatchWidth:"wide",parsePatterns:dHe,defaultParseWidth:"any"})},hHe={code:"ru",formatDistance:DOe,formatLong:HOe,formatRelative:jOe,localize:ZOe,match:AHe,options:{weekStartsOn:1,firstWeekContainsDate:1}},fHe={lessThanXSeconds:{one:"unnit go ovtta sekundda",other:"unnit go {{count}} sekundda"},xSeconds:{one:"sekundda",other:"{{count}} sekundda"},halfAMinute:"bealle minuhta",lessThanXMinutes:{one:"unnit go bealle minuhta",other:"unnit go {{count}} minuhta"},xMinutes:{one:"minuhta",other:"{{count}} minuhta"},aboutXHours:{one:"sullii ovtta diimmu",other:"sullii {{count}} diimmu"},xHours:{one:"diimmu",other:"{{count}} diimmu"},xDays:{one:"beaivvi",other:"{{count}} beaivvi"},aboutXWeeks:{one:"sullii ovtta vahku",other:"sullii {{count}} vahku"},xWeeks:{one:"vahku",other:"{{count}} vahku"},aboutXMonths:{one:"sullii ovtta mánu",other:"sullii {{count}} mánu"},xMonths:{one:"mánu",other:"{{count}} mánu"},aboutXYears:{one:"sullii ovtta jagi",other:"sullii {{count}} jagi"},xYears:{one:"jagi",other:"{{count}} jagi"},overXYears:{one:"guhkit go jagi",other:"guhkit go {{count}} jagi"},almostXYears:{one:"measta jagi",other:"measta {{count}} jagi"}},mHe=(n,e,t)=>{let r;const i=fHe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"geahčen "+r:r+" áigi":r},pHe={full:"EEEE MMMM d. 'b.' y",long:"MMMM d. 'b.' y",medium:"MMM d. 'b.' y",short:"dd.MM.y"},gHe={full:"'dii.' HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},vHe={full:"{{date}} 'dii.' {{time}}",long:"{{date}} 'dii.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},yHe={date:we({formats:pHe,defaultWidth:"full"}),time:we({formats:gHe,defaultWidth:"full"}),dateTime:we({formats:vHe,defaultWidth:"full"})},wHe={lastWeek:"'ovddit' eeee 'dii.' p",yesterday:"'ikte dii.' p",today:"'odne dii.' p",tomorrow:"'ihtin dii.' p",nextWeek:"EEEE 'dii.' p",other:"P"},bHe=(n,e,t,r)=>wHe[n],_He={narrow:["o.Kr.","m.Kr."],abbreviated:["o.Kr.","m.Kr."],wide:["ovdal Kristusa","maŋŋel Kristusa"]},xHe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartála","2. kvartála","3. kvartála","4. kvartála"]},MHe={narrow:["O","G","N","C","M","G","S","B","Č","G","S","J"],abbreviated:["ođđa","guov","njuk","cuo","mies","geas","suoi","borg","čakč","golg","skáb","juov"],wide:["ođđajagemánnu","guovvamánnu","njukčamánnu","cuoŋománnu","miessemánnu","geassemánnu","suoidnemánnu","borgemánnu","čakčamánnu","golggotmánnu","skábmamánnu","juovlamánnu"]},SHe={narrow:["S","V","M","G","D","B","L"],short:["sotn","vuos","maŋ","gask","duor","bear","láv"],abbreviated:["sotn","vuos","maŋ","gask","duor","bear","láv"],wide:["sotnabeaivi","vuossárga","maŋŋebárga","gaskavahkku","duorastat","bearjadat","lávvardat"]},CHe={narrow:{am:"a",pm:"p",midnight:"gaskaidja",noon:"gaskabeaivi",morning:"iđđes",afternoon:"maŋŋel gaska.",evening:"eahkes",night:"ihkku"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"gaskaidja",noon:"gaskabeaivvi",morning:"iđđes",afternoon:"maŋŋel gaskabea.",evening:"eahkes",night:"ihkku"},wide:{am:"a.m.",pm:"p.m.",midnight:"gaskaidja",noon:"gaskabeavvi",morning:"iđđes",afternoon:"maŋŋel gaskabeaivvi",evening:"eahkes",night:"ihkku"}},PHe=(n,e)=>Number(n)+".",EHe={ordinalNumber:PHe,era:K({values:_He,defaultWidth:"wide"}),quarter:K({values:xHe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:MHe,defaultWidth:"wide"}),day:K({values:SHe,defaultWidth:"wide"}),dayPeriod:K({values:CHe,defaultWidth:"wide"})},BHe=/^(\d+)\.?/i,THe=/\d+/i,kHe={narrow:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,abbreviated:/^(o\.? ?Kr\.?|m\.? ?Kr\.?)/i,wide:/^(ovdal Kristusa|ovdal min áiggi|maŋŋel Kristusa|min áigi)/i},IHe={any:[/^o/i,/^m/i]},LHe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartála/i},FHe={any:[/1/i,/2/i,/3/i,/4/i]},NHe={narrow:/^[ogncmsbčj]/i,abbreviated:/^(ođđa|guov|njuk|cuo|mies|geas|suoi|borg|čakč|golg|skáb|juov)\.?/i,wide:/^(ođđajagemánnu|guovvamánnu|njukčamánnu|cuoŋománnu|miessemánnu|geassemánnu|suoidnemánnu|borgemánnu|čakčamánnu|golggotmánnu|skábmamánnu|juovlamánnu)/i},DHe={narrow:[/^o/i,/^g/i,/^n/i,/^c/i,/^m/i,/^g/i,/^s/i,/^b/i,/^č/i,/^g/i,/^s/i,/^j/i],any:[/^o/i,/^gu/i,/^n/i,/^c/i,/^m/i,/^ge/i,/^su/i,/^b/i,/^č/i,/^go/i,/^sk/i,/^j/i]},RHe={narrow:/^[svmgdbl]/i,short:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,abbreviated:/^(sotn|vuos|maŋ|gask|duor|bear|láv)/i,wide:/^(sotnabeaivi|vuossárga|maŋŋebárga|gaskavahkku|duorastat|bearjadat|lávvardat)/i},UHe={any:[/^s/i,/^v/i,/^m/i,/^g/i,/^d/i,/^b/i,/^l/i]},OHe={narrow:/^(gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku)|[ap])/i,any:/^([ap]\.?\s?m\.?|gaskaidja|gaskabeaivvi|(på) (iđđes|maŋŋel gaskabeaivvi|eahkes|ihkku))/i},HHe={any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^gaskai/i,noon:/^gaskab/i,morning:/iđđes/i,afternoon:/maŋŋel gaskabeaivvi/i,evening:/eahkes/i,night:/ihkku/i}},WHe={ordinalNumber:Nt({matchPattern:BHe,parsePattern:THe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:kHe,defaultMatchWidth:"wide",parsePatterns:IHe,defaultParseWidth:"any"}),quarter:X({matchPatterns:LHe,defaultMatchWidth:"wide",parsePatterns:FHe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:NHe,defaultMatchWidth:"wide",parsePatterns:DHe,defaultParseWidth:"any"}),day:X({matchPatterns:RHe,defaultMatchWidth:"wide",parsePatterns:UHe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:OHe,defaultMatchWidth:"any",parsePatterns:HHe,defaultParseWidth:"any"})},QHe={code:"se",formatDistance:mHe,formatLong:yHe,formatRelative:bHe,localize:EHe,match:WHe,options:{weekStartsOn:1,firstWeekContainsDate:4}};function $He(n,e){return e===1&&n.one?n.one:e>=2&&e<=4&&n.twoFour?n.twoFour:n.other}function G_(n,e,t){return $He(n,e)[t].replace("{{count}}",String(e))}function jHe(n){return["lessThan","about","over","almost"].filter(function(t){return!!n.match(new RegExp("^"+t))})[0]}function K_(n){let e="";return n==="almost"&&(e="takmer"),n==="about"&&(e="približne"),e.length>0?e+" ":""}function q_(n){let e="";return n==="lessThan"&&(e="menej než"),n==="over"&&(e="viac než"),e.length>0?e+" ":""}function zHe(n){return n.charAt(0).toLowerCase()+n.slice(1)}const VHe={xSeconds:{one:{present:"sekunda",past:"sekundou",future:"sekundu"},twoFour:{present:"{{count}} sekundy",past:"{{count}} sekundami",future:"{{count}} sekundy"},other:{present:"{{count}} sekúnd",past:"{{count}} sekundami",future:"{{count}} sekúnd"}},halfAMinute:{other:{present:"pol minúty",past:"pol minútou",future:"pol minúty"}},xMinutes:{one:{present:"minúta",past:"minútou",future:"minútu"},twoFour:{present:"{{count}} minúty",past:"{{count}} minútami",future:"{{count}} minúty"},other:{present:"{{count}} minút",past:"{{count}} minútami",future:"{{count}} minút"}},xHours:{one:{present:"hodina",past:"hodinou",future:"hodinu"},twoFour:{present:"{{count}} hodiny",past:"{{count}} hodinami",future:"{{count}} hodiny"},other:{present:"{{count}} hodín",past:"{{count}} hodinami",future:"{{count}} hodín"}},xDays:{one:{present:"deň",past:"dňom",future:"deň"},twoFour:{present:"{{count}} dni",past:"{{count}} dňami",future:"{{count}} dni"},other:{present:"{{count}} dní",past:"{{count}} dňami",future:"{{count}} dní"}},xWeeks:{one:{present:"týždeň",past:"týždňom",future:"týždeň"},twoFour:{present:"{{count}} týždne",past:"{{count}} týždňami",future:"{{count}} týždne"},other:{present:"{{count}} týždňov",past:"{{count}} týždňami",future:"{{count}} týždňov"}},xMonths:{one:{present:"mesiac",past:"mesiacom",future:"mesiac"},twoFour:{present:"{{count}} mesiace",past:"{{count}} mesiacmi",future:"{{count}} mesiace"},other:{present:"{{count}} mesiacov",past:"{{count}} mesiacmi",future:"{{count}} mesiacov"}},xYears:{one:{present:"rok",past:"rokom",future:"rok"},twoFour:{present:"{{count}} roky",past:"{{count}} rokmi",future:"{{count}} roky"},other:{present:"{{count}} rokov",past:"{{count}} rokmi",future:"{{count}} rokov"}}},GHe=(n,e,t)=>{const r=jHe(n)||"",i=zHe(n.substring(r.length)),a=VHe[i];return t!=null&&t.addSuffix?t.comparison&&t.comparison>0?K_(r)+"o "+q_(r)+G_(a,e,"future"):K_(r)+"pred "+q_(r)+G_(a,e,"past"):K_(r)+q_(r)+G_(a,e,"present")},KHe={full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. M. y",short:"d. M. y"},qHe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},XHe={full:"{{date}}, {{time}}",long:"{{date}}, {{time}}",medium:"{{date}}, {{time}}",short:"{{date}} {{time}}"},YHe={date:we({formats:KHe,defaultWidth:"full"}),time:we({formats:qHe,defaultWidth:"full"}),dateTime:we({formats:XHe,defaultWidth:"full"})},qC=["nedeľu","pondelok","utorok","stredu","štvrtok","piatok","sobotu"];function JHe(n){const e=qC[n];switch(n){case 0:case 3:case 6:return"'minulú "+e+" o' p";default:return"'minulý' eeee 'o' p"}}function UI(n){const e=qC[n];return n===4?"'vo' eeee 'o' p":"'v "+e+" o' p"}function ZHe(n){const e=qC[n];switch(n){case 0:case 4:case 6:return"'budúcu "+e+" o' p";default:return"'budúci' eeee 'o' p"}}const eWe={lastWeek:(n,e,t)=>{const r=n.getDay();return vi(n,e,t)?UI(r):JHe(r)},yesterday:"'včera o' p",today:"'dnes o' p",tomorrow:"'zajtra o' p",nextWeek:(n,e,t)=>{const r=n.getDay();return vi(n,e,t)?UI(r):ZHe(r)},other:"P"},tWe=(n,e,t,r)=>{const i=eWe[n];return typeof i=="function"?i(e,t,r):i},nWe={narrow:["pred Kr.","po Kr."],abbreviated:["pred Kr.","po Kr."],wide:["pred Kristom","po Kristovi"]},rWe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. štvrťrok","2. štvrťrok","3. štvrťrok","4. štvrťrok"]},iWe={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["január","február","marec","apríl","máj","jún","júl","august","september","október","november","december"]},aWe={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],wide:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"]},sWe={narrow:["n","p","u","s","š","p","s"],short:["ne","po","ut","st","št","pi","so"],abbreviated:["ne","po","ut","st","št","pi","so"],wide:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"]},oWe={narrow:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"noc"},abbreviated:{am:"AM",pm:"PM",midnight:"poln.",noon:"pol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"noc"},wide:{am:"AM",pm:"PM",midnight:"polnoc",noon:"poludnie",morning:"ráno",afternoon:"popoludnie",evening:"večer",night:"noc"}},cWe={narrow:{am:"AM",pm:"PM",midnight:"o poln.",noon:"nap.",morning:"ráno",afternoon:"pop.",evening:"več.",night:"v n."},abbreviated:{am:"AM",pm:"PM",midnight:"o poln.",noon:"napol.",morning:"ráno",afternoon:"popol.",evening:"večer",night:"v noci"},wide:{am:"AM",pm:"PM",midnight:"o polnoci",noon:"napoludnie",morning:"ráno",afternoon:"popoludní",evening:"večer",night:"v noci"}},lWe=(n,e)=>Number(n)+".",uWe={ordinalNumber:lWe,era:K({values:nWe,defaultWidth:"wide"}),quarter:K({values:rWe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:iWe,defaultWidth:"wide",formattingValues:aWe,defaultFormattingWidth:"wide"}),day:K({values:sWe,defaultWidth:"wide"}),dayPeriod:K({values:oWe,defaultWidth:"wide",formattingValues:cWe,defaultFormattingWidth:"wide"})},dWe=/^(\d+)\.?/i,AWe=/\d+/i,hWe={narrow:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(pred Kr\.|pred n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(pred Kristom|pred na[šs][íi]m letopo[čc]tom|po Kristovi|n[áa][šs]ho letopo[čc]tu)/i},fWe={any:[/^pr/i,/^(po|n)/i]},mWe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\. [šs]tvr[ťt]rok/i},pWe={any:[/1/i,/2/i,/3/i,/4/i]},gWe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|m[áa]j|j[úu]n|j[úu]l|aug|sep|okt|nov|dec)/i,wide:/^(janu[áa]ra?|febru[áa]ra?|(marec|marca)|apr[íi]la?|m[áa]ja?|j[úu]na?|j[úu]la?|augusta?|(september|septembra)|(okt[óo]ber|okt[óo]bra)|(november|novembra)|(december|decembra))/i},vWe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^m[áa]j/i,/^j[úu]n/i,/^j[úu]l/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},yWe={narrow:/^[npusšp]/i,short:/^(ne|po|ut|st|št|pi|so)/i,abbreviated:/^(ne|po|ut|st|št|pi|so)/i,wide:/^(nede[ľl]a|pondelok|utorok|streda|[šs]tvrtok|piatok|sobota])/i},wWe={narrow:[/^n/i,/^p/i,/^u/i,/^s/i,/^š/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^u/i,/^st/i,/^(št|stv)/i,/^pi/i,/^so/i]},bWe={narrow:/^(am|pm|(o )?poln\.?|(nap\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]\.?|(v n\.?|noc))/i,abbreviated:/^(am|pm|(o )?poln\.?|(napol\.?|pol\.?)|r[áa]no|pop\.?|ve[čc]er|(v )?noci?)/i,any:/^(am|pm|(o )?polnoci?|(na)?poludnie|r[áa]no|popoludn(ie|í|i)|ve[čc]er|(v )?noci?)/i},_We={any:{am:/^am/i,pm:/^pm/i,midnight:/poln/i,noon:/^(nap|(na)?pol(\.|u))/i,morning:/^r[áa]no/i,afternoon:/^pop/i,evening:/^ve[čc]/i,night:/^(noc|v n\.)/i}},xWe={ordinalNumber:Nt({matchPattern:dWe,parsePattern:AWe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:hWe,defaultMatchWidth:"wide",parsePatterns:fWe,defaultParseWidth:"any"}),quarter:X({matchPatterns:mWe,defaultMatchWidth:"wide",parsePatterns:pWe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:gWe,defaultMatchWidth:"wide",parsePatterns:vWe,defaultParseWidth:"any"}),day:X({matchPatterns:yWe,defaultMatchWidth:"wide",parsePatterns:wWe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:bWe,defaultMatchWidth:"any",parsePatterns:_We,defaultParseWidth:"any"})},MWe={code:"sk",formatDistance:GHe,formatLong:YHe,formatRelative:tWe,localize:uWe,match:xWe,options:{weekStartsOn:1,firstWeekContainsDate:4}};function SWe(n){return n.one!==void 0}const CWe={lessThanXSeconds:{present:{one:"manj kot {{count}} sekunda",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"},past:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundama",few:"manj kot {{count}} sekundami",other:"manj kot {{count}} sekundami"},future:{one:"manj kot {{count}} sekundo",two:"manj kot {{count}} sekundi",few:"manj kot {{count}} sekunde",other:"manj kot {{count}} sekund"}},xSeconds:{present:{one:"{{count}} sekunda",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"},past:{one:"{{count}} sekundo",two:"{{count}} sekundama",few:"{{count}} sekundami",other:"{{count}} sekundami"},future:{one:"{{count}} sekundo",two:"{{count}} sekundi",few:"{{count}} sekunde",other:"{{count}} sekund"}},halfAMinute:"pol minute",lessThanXMinutes:{present:{one:"manj kot {{count}} minuta",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"},past:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minutama",few:"manj kot {{count}} minutami",other:"manj kot {{count}} minutami"},future:{one:"manj kot {{count}} minuto",two:"manj kot {{count}} minuti",few:"manj kot {{count}} minute",other:"manj kot {{count}} minut"}},xMinutes:{present:{one:"{{count}} minuta",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"},past:{one:"{{count}} minuto",two:"{{count}} minutama",few:"{{count}} minutami",other:"{{count}} minutami"},future:{one:"{{count}} minuto",two:"{{count}} minuti",few:"{{count}} minute",other:"{{count}} minut"}},aboutXHours:{present:{one:"približno {{count}} ura",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"},past:{one:"približno {{count}} uro",two:"približno {{count}} urama",few:"približno {{count}} urami",other:"približno {{count}} urami"},future:{one:"približno {{count}} uro",two:"približno {{count}} uri",few:"približno {{count}} ure",other:"približno {{count}} ur"}},xHours:{present:{one:"{{count}} ura",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"},past:{one:"{{count}} uro",two:"{{count}} urama",few:"{{count}} urami",other:"{{count}} urami"},future:{one:"{{count}} uro",two:"{{count}} uri",few:"{{count}} ure",other:"{{count}} ur"}},xDays:{present:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"},past:{one:"{{count}} dnem",two:"{{count}} dnevoma",few:"{{count}} dnevi",other:"{{count}} dnevi"},future:{one:"{{count}} dan",two:"{{count}} dni",few:"{{count}} dni",other:"{{count}} dni"}},aboutXWeeks:{one:"približno {{count}} teden",two:"približno {{count}} tedna",few:"približno {{count}} tedne",other:"približno {{count}} tednov"},xWeeks:{one:"{{count}} teden",two:"{{count}} tedna",few:"{{count}} tedne",other:"{{count}} tednov"},aboutXMonths:{present:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"},past:{one:"približno {{count}} mesecem",two:"približno {{count}} mesecema",few:"približno {{count}} meseci",other:"približno {{count}} meseci"},future:{one:"približno {{count}} mesec",two:"približno {{count}} meseca",few:"približno {{count}} mesece",other:"približno {{count}} mesecev"}},xMonths:{present:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} meseci",other:"{{count}} mesecev"},past:{one:"{{count}} mesecem",two:"{{count}} mesecema",few:"{{count}} meseci",other:"{{count}} meseci"},future:{one:"{{count}} mesec",two:"{{count}} meseca",few:"{{count}} mesece",other:"{{count}} mesecev"}},aboutXYears:{present:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"},past:{one:"približno {{count}} letom",two:"približno {{count}} letoma",few:"približno {{count}} leti",other:"približno {{count}} leti"},future:{one:"približno {{count}} leto",two:"približno {{count}} leti",few:"približno {{count}} leta",other:"približno {{count}} let"}},xYears:{present:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"},past:{one:"{{count}} letom",two:"{{count}} letoma",few:"{{count}} leti",other:"{{count}} leti"},future:{one:"{{count}} leto",two:"{{count}} leti",few:"{{count}} leta",other:"{{count}} let"}},overXYears:{present:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"},past:{one:"več kot {{count}} letom",two:"več kot {{count}} letoma",few:"več kot {{count}} leti",other:"več kot {{count}} leti"},future:{one:"več kot {{count}} leto",two:"več kot {{count}} leti",few:"več kot {{count}} leta",other:"več kot {{count}} let"}},almostXYears:{present:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"},past:{one:"skoraj {{count}} letom",two:"skoraj {{count}} letoma",few:"skoraj {{count}} leti",other:"skoraj {{count}} leti"},future:{one:"skoraj {{count}} leto",two:"skoraj {{count}} leti",few:"skoraj {{count}} leta",other:"skoraj {{count}} let"}}};function PWe(n){switch(n%100){case 1:return"one";case 2:return"two";case 3:case 4:return"few";default:return"other"}}const EWe=(n,e,t)=>{let r="",i="present";t!=null&&t.addSuffix&&(t.comparison&&t.comparison>0?(i="future",r="čez "):(i="past",r="pred "));const a=CWe[n];if(typeof a=="string")r+=a;else{const s=PWe(e);SWe(a)?r+=a[s].replace("{{count}}",String(e)):r+=a[i][s].replace("{{count}}",String(e))}return r},BWe={full:"EEEE, dd. MMMM y",long:"dd. MMMM y",medium:"d. MMM y",short:"d. MM. yy"},TWe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},kWe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},IWe={date:we({formats:BWe,defaultWidth:"full"}),time:we({formats:TWe,defaultWidth:"full"}),dateTime:we({formats:kWe,defaultWidth:"full"})},LWe={lastWeek:n=>{switch(n.getDay()){case 0:return"'prejšnjo nedeljo ob' p";case 3:return"'prejšnjo sredo ob' p";case 6:return"'prejšnjo soboto ob' p";default:return"'prejšnji' EEEE 'ob' p"}},yesterday:"'včeraj ob' p",today:"'danes ob' p",tomorrow:"'jutri ob' p",nextWeek:n=>{switch(n.getDay()){case 0:return"'naslednjo nedeljo ob' p";case 3:return"'naslednjo sredo ob' p";case 6:return"'naslednjo soboto ob' p";default:return"'naslednji' EEEE 'ob' p"}},other:"P"},FWe=(n,e,t,r)=>{const i=LWe[n];return typeof i=="function"?i(e):i},NWe={narrow:["pr. n. št.","po n. št."],abbreviated:["pr. n. št.","po n. št."],wide:["pred našim štetjem","po našem štetju"]},DWe={narrow:["1","2","3","4"],abbreviated:["1. čet.","2. čet.","3. čet.","4. čet."],wide:["1. četrtletje","2. četrtletje","3. četrtletje","4. četrtletje"]},RWe={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","avg.","sep.","okt.","nov.","dec."],wide:["januar","februar","marec","april","maj","junij","julij","avgust","september","oktober","november","december"]},UWe={narrow:["n","p","t","s","č","p","s"],short:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],abbreviated:["ned.","pon.","tor.","sre.","čet.","pet.","sob."],wide:["nedelja","ponedeljek","torek","sreda","četrtek","petek","sobota"]},OWe={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"j",afternoon:"p",evening:"v",night:"n"},abbreviated:{am:"dop.",pm:"pop.",midnight:"poln.",noon:"pold.",morning:"jut.",afternoon:"pop.",evening:"več.",night:"noč"},wide:{am:"dop.",pm:"pop.",midnight:"polnoč",noon:"poldne",morning:"jutro",afternoon:"popoldne",evening:"večer",night:"noč"}},HWe={narrow:{am:"d",pm:"p",midnight:"24.00",noon:"12.00",morning:"zj",afternoon:"p",evening:"zv",night:"po"},abbreviated:{am:"dop.",pm:"pop.",midnight:"opoln.",noon:"opold.",morning:"zjut.",afternoon:"pop.",evening:"zveč.",night:"ponoči"},wide:{am:"dop.",pm:"pop.",midnight:"opolnoči",noon:"opoldne",morning:"zjutraj",afternoon:"popoldan",evening:"zvečer",night:"ponoči"}},WWe=(n,e)=>Number(n)+".",QWe={ordinalNumber:WWe,era:K({values:NWe,defaultWidth:"wide"}),quarter:K({values:DWe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:RWe,defaultWidth:"wide"}),day:K({values:UWe,defaultWidth:"wide"}),dayPeriod:K({values:OWe,defaultWidth:"wide",formattingValues:HWe,defaultFormattingWidth:"wide"})},$We=/^(\d+)\./i,jWe=/\d+/i,zWe={abbreviated:/^(pr\. n\. št\.|po n\. št\.)/i,wide:/^(pred Kristusom|pred na[sš]im [sš]tetjem|po Kristusu|po na[sš]em [sš]tetju|na[sš]ega [sš]tetja)/i},VWe={any:[/^pr/i,/^(po|na[sš]em)/i]},GWe={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?[čc]et\.?/i,wide:/^[1234]\. [čc]etrtletje/i},KWe={any:[/1/i,/2/i,/3/i,/4/i]},qWe={narrow:/^[jfmasond]/i,abbreviated:/^(jan\.|feb\.|mar\.|apr\.|maj|jun\.|jul\.|avg\.|sep\.|okt\.|nov\.|dec\.)/i,wide:/^(januar|februar|marec|april|maj|junij|julij|avgust|september|oktober|november|december)/i},XWe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],abbreviated:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i],wide:[/^ja/i,/^fe/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},YWe={narrow:/^[nptsčc]/i,short:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,abbreviated:/^(ned\.|pon\.|tor\.|sre\.|[cč]et\.|pet\.|sob\.)/i,wide:/^(nedelja|ponedeljek|torek|sreda|[cč]etrtek|petek|sobota)/i},JWe={narrow:[/^n/i,/^p/i,/^t/i,/^s/i,/^[cč]/i,/^p/i,/^s/i],any:[/^n/i,/^po/i,/^t/i,/^sr/i,/^[cč]/i,/^pe/i,/^so/i]},ZWe={narrow:/^(d|po?|z?v|n|z?j|24\.00|12\.00)/i,any:/^(dop\.|pop\.|o?poln(\.|o[cč]i?)|o?pold(\.|ne)|z?ve[cč](\.|er)|(po)?no[cč]i?|popold(ne|an)|jut(\.|ro)|zjut(\.|raj))/i},eQe={narrow:{am:/^d/i,pm:/^p/i,midnight:/^24/i,noon:/^12/i,morning:/^(z?j)/i,afternoon:/^p/i,evening:/^(z?v)/i,night:/^(n|po)/i},any:{am:/^dop\./i,pm:/^pop\./i,midnight:/^o?poln/i,noon:/^o?pold/i,morning:/j/i,afternoon:/^pop\./i,evening:/^z?ve/i,night:/(po)?no/i}},tQe={ordinalNumber:Nt({matchPattern:$We,parsePattern:jWe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:zWe,defaultMatchWidth:"wide",parsePatterns:VWe,defaultParseWidth:"any"}),quarter:X({matchPatterns:GWe,defaultMatchWidth:"wide",parsePatterns:KWe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:qWe,defaultMatchWidth:"wide",parsePatterns:XWe,defaultParseWidth:"wide"}),day:X({matchPatterns:YWe,defaultMatchWidth:"wide",parsePatterns:JWe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:ZWe,defaultMatchWidth:"any",parsePatterns:eQe,defaultParseWidth:"any"})},nQe={code:"sl",formatDistance:EWe,formatLong:IWe,formatRelative:FWe,localize:QWe,match:tQe,options:{weekStartsOn:1,firstWeekContainsDate:1}},rQe={lessThanXSeconds:{one:"më pak se një sekondë",other:"më pak se {{count}} sekonda"},xSeconds:{one:"1 sekondë",other:"{{count}} sekonda"},halfAMinute:"gjysëm minuti",lessThanXMinutes:{one:"më pak se një minute",other:"më pak se {{count}} minuta"},xMinutes:{one:"1 minutë",other:"{{count}} minuta"},aboutXHours:{one:"rreth 1 orë",other:"rreth {{count}} orë"},xHours:{one:"1 orë",other:"{{count}} orë"},xDays:{one:"1 ditë",other:"{{count}} ditë"},aboutXWeeks:{one:"rreth 1 javë",other:"rreth {{count}} javë"},xWeeks:{one:"1 javë",other:"{{count}} javë"},aboutXMonths:{one:"rreth 1 muaj",other:"rreth {{count}} muaj"},xMonths:{one:"1 muaj",other:"{{count}} muaj"},aboutXYears:{one:"rreth 1 vit",other:"rreth {{count}} vite"},xYears:{one:"1 vit",other:"{{count}} vite"},overXYears:{one:"mbi 1 vit",other:"mbi {{count}} vite"},almostXYears:{one:"pothuajse 1 vit",other:"pothuajse {{count}} vite"}},iQe=(n,e,t)=>{let r;const i=rQe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"në "+r:r+" më parë":r},aQe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sQe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},oQe={full:"{{date}} 'në' {{time}}",long:"{{date}} 'në' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cQe={date:we({formats:aQe,defaultWidth:"full"}),time:we({formats:sQe,defaultWidth:"full"}),dateTime:we({formats:oQe,defaultWidth:"full"})},lQe={lastWeek:"'të' eeee 'e shkuar në' p",yesterday:"'dje në' p",today:"'sot në' p",tomorrow:"'nesër në' p",nextWeek:"eeee 'at' p",other:"P"},uQe=(n,e,t,r)=>lQe[n],dQe={narrow:["P","M"],abbreviated:["PK","MK"],wide:["Para Krishtit","Mbas Krishtit"]},AQe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["4-mujori I","4-mujori II","4-mujori III","4-mujori IV"]},hQe={narrow:["J","S","M","P","M","Q","K","G","S","T","N","D"],abbreviated:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","Nën","Dhj"],wide:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"]},fQe={narrow:["D","H","M","M","E","P","S"],short:["Di","Hë","Ma","Më","En","Pr","Sh"],abbreviated:["Die","Hën","Mar","Mër","Enj","Pre","Sht"],wide:["Dielë","Hënë","Martë","Mërkurë","Enjte","Premte","Shtunë"]},mQe={narrow:{am:"p",pm:"m",midnight:"m",noon:"d",morning:"mëngjes",afternoon:"dite",evening:"mbrëmje",night:"natë"},abbreviated:{am:"PD",pm:"MD",midnight:"mesnëtë",noon:"drek",morning:"mëngjes",afternoon:"mbasdite",evening:"mbrëmje",night:"natë"},wide:{am:"p.d.",pm:"m.d.",midnight:"mesnëtë",noon:"drek",morning:"mëngjes",afternoon:"mbasdite",evening:"mbrëmje",night:"natë"}},pQe={narrow:{am:"p",pm:"m",midnight:"m",noon:"d",morning:"në mëngjes",afternoon:"në mbasdite",evening:"në mbrëmje",night:"në mesnatë"},abbreviated:{am:"PD",pm:"MD",midnight:"mesnatë",noon:"drek",morning:"në mëngjes",afternoon:"në mbasdite",evening:"në mbrëmje",night:"në mesnatë"},wide:{am:"p.d.",pm:"m.d.",midnight:"mesnatë",noon:"drek",morning:"në mëngjes",afternoon:"në mbasdite",evening:"në mbrëmje",night:"në mesnatë"}},gQe=(n,e)=>{const t=Number(n);return(e==null?void 0:e.unit)==="hour"?String(t):t===1?t+"-rë":t===4?t+"t":t+"-të"},vQe={ordinalNumber:gQe,era:K({values:dQe,defaultWidth:"wide"}),quarter:K({values:AQe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:hQe,defaultWidth:"wide"}),day:K({values:fQe,defaultWidth:"wide"}),dayPeriod:K({values:mQe,defaultWidth:"wide",formattingValues:pQe,defaultFormattingWidth:"wide"})},yQe=/^(\d+)(-rë|-të|t|)?/i,wQe=/\d+/i,bQe={narrow:/^(p|m)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(para krishtit|mbas krishtit)/i},_Qe={any:[/^b/i,/^(p|m)/i]},xQe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]-mujori (i{1,3}|iv)/i},MQe={any:[/1/i,/2/i,/3/i,/4/i]},SQe={narrow:/^[jsmpqkftnd]/i,abbreviated:/^(jan|shk|mar|pri|maj|qer|kor|gus|sht|tet|nën|dhj)/i,wide:/^(janar|shkurt|mars|prill|maj|qershor|korrik|gusht|shtator|tetor|nëntor|dhjetor)/i},CQe={narrow:[/^j/i,/^s/i,/^m/i,/^p/i,/^m/i,/^q/i,/^k/i,/^g/i,/^s/i,/^t/i,/^n/i,/^d/i],any:[/^ja/i,/^shk/i,/^mar/i,/^pri/i,/^maj/i,/^qer/i,/^kor/i,/^gu/i,/^sht/i,/^tet/i,/^n/i,/^d/i]},PQe={narrow:/^[dhmeps]/i,short:/^(di|hë|ma|më|en|pr|sh)/i,abbreviated:/^(die|hën|mar|mër|enj|pre|sht)/i,wide:/^(dielë|hënë|martë|mërkurë|enjte|premte|shtunë)/i},EQe={narrow:[/^d/i,/^h/i,/^m/i,/^m/i,/^e/i,/^p/i,/^s/i],any:[/^d/i,/^h/i,/^ma/i,/^më/i,/^e/i,/^p/i,/^s/i]},BQe={narrow:/^(p|m|me|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i,any:/^([pm]\.?\s?d\.?|drek|në (mëngjes|mbasdite|mbrëmje|mesnatë))/i},TQe={any:{am:/^p/i,pm:/^m/i,midnight:/^me/i,noon:/^dr/i,morning:/mëngjes/i,afternoon:/mbasdite/i,evening:/mbrëmje/i,night:/natë/i}},kQe={ordinalNumber:Nt({matchPattern:yQe,parsePattern:wQe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:bQe,defaultMatchWidth:"wide",parsePatterns:_Qe,defaultParseWidth:"any"}),quarter:X({matchPatterns:xQe,defaultMatchWidth:"wide",parsePatterns:MQe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:SQe,defaultMatchWidth:"wide",parsePatterns:CQe,defaultParseWidth:"any"}),day:X({matchPatterns:PQe,defaultMatchWidth:"wide",parsePatterns:EQe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:BQe,defaultMatchWidth:"any",parsePatterns:TQe,defaultParseWidth:"any"})},IQe={code:"sq",formatDistance:iQe,formatLong:cQe,formatRelative:uQe,localize:vQe,match:kQe,options:{weekStartsOn:1,firstWeekContainsDate:1}},LQe={lessThanXSeconds:{one:{standalone:"мање од 1 секунде",withPrepositionAgo:"мање од 1 секунде",withPrepositionIn:"мање од 1 секунду"},dual:"мање од {{count}} секунде",other:"мање од {{count}} секунди"},xSeconds:{one:{standalone:"1 секунда",withPrepositionAgo:"1 секунде",withPrepositionIn:"1 секунду"},dual:"{{count}} секунде",other:"{{count}} секунди"},halfAMinute:"пола минуте",lessThanXMinutes:{one:{standalone:"мање од 1 минуте",withPrepositionAgo:"мање од 1 минуте",withPrepositionIn:"мање од 1 минуту"},dual:"мање од {{count}} минуте",other:"мање од {{count}} минута"},xMinutes:{one:{standalone:"1 минута",withPrepositionAgo:"1 минуте",withPrepositionIn:"1 минуту"},dual:"{{count}} минуте",other:"{{count}} минута"},aboutXHours:{one:{standalone:"око 1 сат",withPrepositionAgo:"око 1 сат",withPrepositionIn:"око 1 сат"},dual:"око {{count}} сата",other:"око {{count}} сати"},xHours:{one:{standalone:"1 сат",withPrepositionAgo:"1 сат",withPrepositionIn:"1 сат"},dual:"{{count}} сата",other:"{{count}} сати"},xDays:{one:{standalone:"1 дан",withPrepositionAgo:"1 дан",withPrepositionIn:"1 дан"},dual:"{{count}} дана",other:"{{count}} дана"},aboutXWeeks:{one:{standalone:"око 1 недељу",withPrepositionAgo:"око 1 недељу",withPrepositionIn:"око 1 недељу"},dual:"око {{count}} недеље",other:"око {{count}} недеље"},xWeeks:{one:{standalone:"1 недељу",withPrepositionAgo:"1 недељу",withPrepositionIn:"1 недељу"},dual:"{{count}} недеље",other:"{{count}} недеље"},aboutXMonths:{one:{standalone:"око 1 месец",withPrepositionAgo:"око 1 месец",withPrepositionIn:"око 1 месец"},dual:"око {{count}} месеца",other:"око {{count}} месеци"},xMonths:{one:{standalone:"1 месец",withPrepositionAgo:"1 месец",withPrepositionIn:"1 месец"},dual:"{{count}} месеца",other:"{{count}} месеци"},aboutXYears:{one:{standalone:"око 1 годину",withPrepositionAgo:"око 1 годину",withPrepositionIn:"око 1 годину"},dual:"око {{count}} године",other:"око {{count}} година"},xYears:{one:{standalone:"1 година",withPrepositionAgo:"1 године",withPrepositionIn:"1 годину"},dual:"{{count}} године",other:"{{count}} година"},overXYears:{one:{standalone:"преко 1 годину",withPrepositionAgo:"преко 1 годину",withPrepositionIn:"преко 1 годину"},dual:"преко {{count}} године",other:"преко {{count}} година"},almostXYears:{one:{standalone:"готово 1 годину",withPrepositionAgo:"готово 1 годину",withPrepositionIn:"готово 1 годину"},dual:"готово {{count}} године",other:"готово {{count}} година"}},FQe=(n,e,t)=>{let r;const i=LQe[n];return typeof i=="string"?r=i:e===1?t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r=i.one.withPrepositionIn:r=i.one.withPrepositionAgo:r=i.one.standalone:e%10>1&&e%10<5&&String(e).substr(-2,1)!=="1"?r=i.dual.replace("{{count}}",String(e)):r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"за "+r:"пре "+r:r},NQe={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},DQe={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},RQe={full:"{{date}} 'у' {{time}}",long:"{{date}} 'у' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},UQe={date:we({formats:NQe,defaultWidth:"full"}),time:we({formats:DQe,defaultWidth:"full"}),dateTime:we({formats:RQe,defaultWidth:"full"})},OQe={lastWeek:n=>{switch(n.getDay()){case 0:return"'прошле недеље у' p";case 3:return"'прошле среде у' p";case 6:return"'прошле суботе у' p";default:return"'прошли' EEEE 'у' p"}},yesterday:"'јуче у' p",today:"'данас у' p",tomorrow:"'сутра у' p",nextWeek:n=>{switch(n.getDay()){case 0:return"'следеће недеље у' p";case 3:return"'следећу среду у' p";case 6:return"'следећу суботу у' p";default:return"'следећи' EEEE 'у' p"}},other:"P"},HQe=(n,e,t,r)=>{const i=OQe[n];return typeof i=="function"?i(e):i},WQe={narrow:["пр.н.е.","АД"],abbreviated:["пр. Хр.","по. Хр."],wide:["Пре Христа","После Христа"]},QQe={narrow:["1.","2.","3.","4."],abbreviated:["1. кв.","2. кв.","3. кв.","4. кв."],wide:["1. квартал","2. квартал","3. квартал","4. квартал"]},$Qe={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},jQe={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["јан","феб","мар","апр","мај","јун","јул","авг","сеп","окт","нов","дец"],wide:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"]},zQe={narrow:["Н","П","У","С","Ч","П","С"],short:["нед","пон","уто","сре","чет","пет","суб"],abbreviated:["нед","пон","уто","сре","чет","пет","суб"],wide:["недеља","понедељак","уторак","среда","четвртак","петак","субота"]},VQe={narrow:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"АМ",pm:"ПМ",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},GQe={narrow:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},abbreviated:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"поподне",evening:"увече",night:"ноћу"},wide:{am:"AM",pm:"PM",midnight:"поноћ",noon:"подне",morning:"ујутру",afternoon:"после подне",evening:"увече",night:"ноћу"}},KQe=(n,e)=>Number(n)+".",qQe={ordinalNumber:KQe,era:K({values:WQe,defaultWidth:"wide"}),quarter:K({values:QQe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:$Qe,defaultWidth:"wide",formattingValues:jQe,defaultFormattingWidth:"wide"}),day:K({values:zQe,defaultWidth:"wide"}),dayPeriod:K({values:GQe,defaultWidth:"wide",formattingValues:VQe,defaultFormattingWidth:"wide"})},XQe=/^(\d+)\./i,YQe=/\d+/i,JQe={narrow:/^(пр\.н\.е\.|АД)/i,abbreviated:/^(пр\.\s?Хр\.|по\.\s?Хр\.)/i,wide:/^(Пре Христа|пре нове ере|После Христа|нова ера)/i},ZQe={any:[/^пр/i,/^(по|нова)/i]},e$e={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?кв\.?/i,wide:/^[1234]\. квартал/i},t$e={any:[/1/i,/2/i,/3/i,/4/i]},n$e={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(јан|феб|мар|апр|мај|јун|јул|авг|сеп|окт|нов|дец)/i,wide:/^((јануар|јануара)|(фебруар|фебруара)|(март|марта)|(април|априла)|(мја|маја)|(јун|јуна)|(јул|јула)|(август|августа)|(септембар|септембра)|(октобар|октобра)|(новембар|новембра)|(децембар|децембра))/i},r$e={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ја/i,/^ф/i,/^мар/i,/^ап/i,/^мај/i,/^јун/i,/^јул/i,/^авг/i,/^с/i,/^о/i,/^н/i,/^д/i]},i$e={narrow:/^[пусчн]/i,short:/^(нед|пон|уто|сре|чет|пет|суб)/i,abbreviated:/^(нед|пон|уто|сре|чет|пет|суб)/i,wide:/^(недеља|понедељак|уторак|среда|четвртак|петак|субота)/i},a$e={narrow:[/^п/i,/^у/i,/^с/i,/^ч/i,/^п/i,/^с/i,/^н/i],any:[/^нед/i,/^пон/i,/^уто/i,/^сре/i,/^чет/i,/^пет/i,/^суб/i]},s$e={any:/^(ам|пм|поноћ|(по)?подне|увече|ноћу|после подне|ујутру)/i},o$e={any:{am:/^a/i,pm:/^p/i,midnight:/^поно/i,noon:/^под/i,morning:/ујутру/i,afternoon:/(после\s|по)+подне/i,evening:/(увече)/i,night:/(ноћу)/i}},c$e={ordinalNumber:Nt({matchPattern:XQe,parsePattern:YQe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:JQe,defaultMatchWidth:"wide",parsePatterns:ZQe,defaultParseWidth:"any"}),quarter:X({matchPatterns:e$e,defaultMatchWidth:"wide",parsePatterns:t$e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:n$e,defaultMatchWidth:"wide",parsePatterns:r$e,defaultParseWidth:"any"}),day:X({matchPatterns:i$e,defaultMatchWidth:"wide",parsePatterns:a$e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:s$e,defaultMatchWidth:"any",parsePatterns:o$e,defaultParseWidth:"any"})},l$e={code:"sr",formatDistance:FQe,formatLong:UQe,formatRelative:HQe,localize:qQe,match:c$e,options:{weekStartsOn:1,firstWeekContainsDate:1}},u$e={lessThanXSeconds:{one:{standalone:"manje od 1 sekunde",withPrepositionAgo:"manje od 1 sekunde",withPrepositionIn:"manje od 1 sekundu"},dual:"manje od {{count}} sekunde",other:"manje od {{count}} sekundi"},xSeconds:{one:{standalone:"1 sekunda",withPrepositionAgo:"1 sekunde",withPrepositionIn:"1 sekundu"},dual:"{{count}} sekunde",other:"{{count}} sekundi"},halfAMinute:"pola minute",lessThanXMinutes:{one:{standalone:"manje od 1 minute",withPrepositionAgo:"manje od 1 minute",withPrepositionIn:"manje od 1 minutu"},dual:"manje od {{count}} minute",other:"manje od {{count}} minuta"},xMinutes:{one:{standalone:"1 minuta",withPrepositionAgo:"1 minute",withPrepositionIn:"1 minutu"},dual:"{{count}} minute",other:"{{count}} minuta"},aboutXHours:{one:{standalone:"oko 1 sat",withPrepositionAgo:"oko 1 sat",withPrepositionIn:"oko 1 sat"},dual:"oko {{count}} sata",other:"oko {{count}} sati"},xHours:{one:{standalone:"1 sat",withPrepositionAgo:"1 sat",withPrepositionIn:"1 sat"},dual:"{{count}} sata",other:"{{count}} sati"},xDays:{one:{standalone:"1 dan",withPrepositionAgo:"1 dan",withPrepositionIn:"1 dan"},dual:"{{count}} dana",other:"{{count}} dana"},aboutXWeeks:{one:{standalone:"oko 1 nedelju",withPrepositionAgo:"oko 1 nedelju",withPrepositionIn:"oko 1 nedelju"},dual:"oko {{count}} nedelje",other:"oko {{count}} nedelje"},xWeeks:{one:{standalone:"1 nedelju",withPrepositionAgo:"1 nedelju",withPrepositionIn:"1 nedelju"},dual:"{{count}} nedelje",other:"{{count}} nedelje"},aboutXMonths:{one:{standalone:"oko 1 mesec",withPrepositionAgo:"oko 1 mesec",withPrepositionIn:"oko 1 mesec"},dual:"oko {{count}} meseca",other:"oko {{count}} meseci"},xMonths:{one:{standalone:"1 mesec",withPrepositionAgo:"1 mesec",withPrepositionIn:"1 mesec"},dual:"{{count}} meseca",other:"{{count}} meseci"},aboutXYears:{one:{standalone:"oko 1 godinu",withPrepositionAgo:"oko 1 godinu",withPrepositionIn:"oko 1 godinu"},dual:"oko {{count}} godine",other:"oko {{count}} godina"},xYears:{one:{standalone:"1 godina",withPrepositionAgo:"1 godine",withPrepositionIn:"1 godinu"},dual:"{{count}} godine",other:"{{count}} godina"},overXYears:{one:{standalone:"preko 1 godinu",withPrepositionAgo:"preko 1 godinu",withPrepositionIn:"preko 1 godinu"},dual:"preko {{count}} godine",other:"preko {{count}} godina"},almostXYears:{one:{standalone:"gotovo 1 godinu",withPrepositionAgo:"gotovo 1 godinu",withPrepositionIn:"gotovo 1 godinu"},dual:"gotovo {{count}} godine",other:"gotovo {{count}} godina"}},d$e=(n,e,t)=>{let r;const i=u$e[n];return typeof i=="string"?r=i:e===1?t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r=i.one.withPrepositionIn:r=i.one.withPrepositionAgo:r=i.one.standalone:e%10>1&&e%10<5&&String(e).substr(-2,1)!=="1"?r=i.dual.replace("{{count}}",String(e)):r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"za "+r:"pre "+r:r},A$e={full:"EEEE, d. MMMM yyyy.",long:"d. MMMM yyyy.",medium:"d. MMM yy.",short:"dd. MM. yy."},h$e={full:"HH:mm:ss (zzzz)",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},f$e={full:"{{date}} 'u' {{time}}",long:"{{date}} 'u' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},m$e={date:we({formats:A$e,defaultWidth:"full"}),time:we({formats:h$e,defaultWidth:"full"}),dateTime:we({formats:f$e,defaultWidth:"full"})},p$e={lastWeek:n=>{switch(n.getDay()){case 0:return"'prošle nedelje u' p";case 3:return"'prošle srede u' p";case 6:return"'prošle subote u' p";default:return"'prošli' EEEE 'u' p"}},yesterday:"'juče u' p",today:"'danas u' p",tomorrow:"'sutra u' p",nextWeek:n=>{switch(n.getDay()){case 0:return"'sledeće nedelje u' p";case 3:return"'sledeću sredu u' p";case 6:return"'sledeću subotu u' p";default:return"'sledeći' EEEE 'u' p"}},other:"P"},g$e=(n,e,t,r)=>{const i=p$e[n];return typeof i=="function"?i(e):i},v$e={narrow:["pr.n.e.","AD"],abbreviated:["pr. Hr.","po. Hr."],wide:["Pre Hrista","Posle Hrista"]},y$e={narrow:["1.","2.","3.","4."],abbreviated:["1. kv.","2. kv.","3. kv.","4. kv."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},w$e={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},b$e={narrow:["1.","2.","3.","4.","5.","6.","7.","8.","9.","10.","11.","12."],abbreviated:["jan","feb","mar","apr","maj","jun","jul","avg","sep","okt","nov","dec"],wide:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"]},_$e={narrow:["N","P","U","S","Č","P","S"],short:["ned","pon","uto","sre","čet","pet","sub"],abbreviated:["ned","pon","uto","sre","čet","pet","sub"],wide:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"]},x$e={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},M$e={narrow:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},abbreviated:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"popodne",evening:"uveče",night:"noću"},wide:{am:"AM",pm:"PM",midnight:"ponoć",noon:"podne",morning:"ujutru",afternoon:"posle podne",evening:"uveče",night:"noću"}},S$e=(n,e)=>Number(n)+".",C$e={ordinalNumber:S$e,era:K({values:v$e,defaultWidth:"wide"}),quarter:K({values:y$e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:w$e,defaultWidth:"wide",formattingValues:b$e,defaultFormattingWidth:"wide"}),day:K({values:_$e,defaultWidth:"wide"}),dayPeriod:K({values:M$e,defaultWidth:"wide",formattingValues:x$e,defaultFormattingWidth:"wide"})},P$e=/^(\d+)\./i,E$e=/\d+/i,B$e={narrow:/^(pr\.n\.e\.|AD)/i,abbreviated:/^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,wide:/^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i},T$e={any:[/^pr/i,/^(po|nova)/i]},k$e={narrow:/^[1234]/i,abbreviated:/^[1234]\.\s?kv\.?/i,wide:/^[1234]\. kvartal/i},I$e={any:[/1/i,/2/i,/3/i,/4/i]},L$e={narrow:/^(10|11|12|[123456789])\./i,abbreviated:/^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,wide:/^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i},F$e={narrow:[/^1/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^7/i,/^8/i,/^9/i,/^10/i,/^11/i,/^12/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^avg/i,/^s/i,/^o/i,/^n/i,/^d/i]},N$e={narrow:/^[npusčc]/i,short:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,abbreviated:/^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,wide:/^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i},D$e={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},R$e={any:/^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i},U$e={any:{am:/^a/i,pm:/^p/i,midnight:/^pono/i,noon:/^pod/i,morning:/jutro/i,afternoon:/(posle\s|po)+podne/i,evening:/(uvece|uveče)/i,night:/(nocu|noću)/i}},O$e={ordinalNumber:Nt({matchPattern:P$e,parsePattern:E$e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:B$e,defaultMatchWidth:"wide",parsePatterns:T$e,defaultParseWidth:"any"}),quarter:X({matchPatterns:k$e,defaultMatchWidth:"wide",parsePatterns:I$e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:L$e,defaultMatchWidth:"wide",parsePatterns:F$e,defaultParseWidth:"any"}),day:X({matchPatterns:N$e,defaultMatchWidth:"wide",parsePatterns:D$e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:R$e,defaultMatchWidth:"any",parsePatterns:U$e,defaultParseWidth:"any"})},H$e={code:"sr-Latn",formatDistance:d$e,formatLong:m$e,formatRelative:g$e,localize:C$e,match:O$e,options:{weekStartsOn:1,firstWeekContainsDate:1}},W$e={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},Q$e=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],$$e=(n,e,t)=>{let r;const i=W$e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e<13?Q$e[e]:String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"om "+r:r+" sedan":r},j$e={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},z$e={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},V$e={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},G$e={date:we({formats:j$e,defaultWidth:"full"}),time:we({formats:z$e,defaultWidth:"full"}),dateTime:we({formats:V$e,defaultWidth:"full"})},K$e={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},q$e=(n,e,t,r)=>K$e[n],X$e={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},Y$e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},J$e={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},Z$e={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},eje={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},tje={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},nje=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:case 2:return t+":a"}return t+":e"},rje={ordinalNumber:nje,era:K({values:X$e,defaultWidth:"wide"}),quarter:K({values:Y$e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:J$e,defaultWidth:"wide"}),day:K({values:Z$e,defaultWidth:"wide"}),dayPeriod:K({values:eje,defaultWidth:"wide",formattingValues:tje,defaultFormattingWidth:"wide"})},ije=/^(\d+)(:a|:e)?/i,aje=/\d+/i,sje={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},oje={any:[/^f/i,/^[ev]/i]},cje={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},lje={any:[/1/i,/2/i,/3/i,/4/i]},uje={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},dje={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Aje={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},hje={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},fje={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},mje={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},pje={ordinalNumber:Nt({matchPattern:ije,parsePattern:aje,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:sje,defaultMatchWidth:"wide",parsePatterns:oje,defaultParseWidth:"any"}),quarter:X({matchPatterns:cje,defaultMatchWidth:"wide",parsePatterns:lje,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:uje,defaultMatchWidth:"wide",parsePatterns:dje,defaultParseWidth:"any"}),day:X({matchPatterns:Aje,defaultMatchWidth:"wide",parsePatterns:hje,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:fje,defaultMatchWidth:"any",parsePatterns:mje,defaultParseWidth:"any"})},gje={code:"sv",formatDistance:$$e,formatLong:G$e,formatRelative:q$e,localize:rje,match:pje,options:{weekStartsOn:1,firstWeekContainsDate:4}};function vje(n){return n.one!==void 0}const yje={lessThanXSeconds:{one:{default:"ஒரு வினாடிக்கு குறைவாக",in:"ஒரு வினாடிக்குள்",ago:"ஒரு வினாடிக்கு முன்பு"},other:{default:"{{count}} வினாடிகளுக்கு குறைவாக",in:"{{count}} வினாடிகளுக்குள்",ago:"{{count}} வினாடிகளுக்கு முன்பு"}},xSeconds:{one:{default:"1 வினாடி",in:"1 வினாடியில்",ago:"1 வினாடி முன்பு"},other:{default:"{{count}} விநாடிகள்",in:"{{count}} வினாடிகளில்",ago:"{{count}} விநாடிகளுக்கு முன்பு"}},halfAMinute:{default:"அரை நிமிடம்",in:"அரை நிமிடத்தில்",ago:"அரை நிமிடம் முன்பு"},lessThanXMinutes:{one:{default:"ஒரு நிமிடத்திற்கும் குறைவாக",in:"ஒரு நிமிடத்திற்குள்",ago:"ஒரு நிமிடத்திற்கு முன்பு"},other:{default:"{{count}} நிமிடங்களுக்கும் குறைவாக",in:"{{count}} நிமிடங்களுக்குள்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},xMinutes:{one:{default:"1 நிமிடம்",in:"1 நிமிடத்தில்",ago:"1 நிமிடம் முன்பு"},other:{default:"{{count}} நிமிடங்கள்",in:"{{count}} நிமிடங்களில்",ago:"{{count}} நிமிடங்களுக்கு முன்பு"}},aboutXHours:{one:{default:"சுமார் 1 மணி நேரம்",in:"சுமார் 1 மணி நேரத்தில்",ago:"சுமார் 1 மணி நேரத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மணி நேரம்",in:"சுமார் {{count}} மணி நேரத்திற்கு முன்பு",ago:"சுமார் {{count}} மணி நேரத்தில்"}},xHours:{one:{default:"1 மணி நேரம்",in:"1 மணி நேரத்தில்",ago:"1 மணி நேரத்திற்கு முன்பு"},other:{default:"{{count}} மணி நேரம்",in:"{{count}} மணி நேரத்தில்",ago:"{{count}} மணி நேரத்திற்கு முன்பு"}},xDays:{one:{default:"1 நாள்",in:"1 நாளில்",ago:"1 நாள் முன்பு"},other:{default:"{{count}} நாட்கள்",in:"{{count}} நாட்களில்",ago:"{{count}} நாட்களுக்கு முன்பு"}},aboutXWeeks:{one:{default:"சுமார் 1 வாரம்",in:"சுமார் 1 வாரத்தில்",ago:"சுமார் 1 வாரம் முன்பு"},other:{default:"சுமார் {{count}} வாரங்கள்",in:"சுமார் {{count}} வாரங்களில்",ago:"சுமார் {{count}} வாரங்களுக்கு முன்பு"}},xWeeks:{one:{default:"1 வாரம்",in:"1 வாரத்தில்",ago:"1 வாரம் முன்பு"},other:{default:"{{count}} வாரங்கள்",in:"{{count}} வாரங்களில்",ago:"{{count}} வாரங்களுக்கு முன்பு"}},aboutXMonths:{one:{default:"சுமார் 1 மாதம்",in:"சுமார் 1 மாதத்தில்",ago:"சுமார் 1 மாதத்திற்கு முன்பு"},other:{default:"சுமார் {{count}} மாதங்கள்",in:"சுமார் {{count}} மாதங்களில்",ago:"சுமார் {{count}} மாதங்களுக்கு முன்பு"}},xMonths:{one:{default:"1 மாதம்",in:"1 மாதத்தில்",ago:"1 மாதம் முன்பு"},other:{default:"{{count}} மாதங்கள்",in:"{{count}} மாதங்களில்",ago:"{{count}} மாதங்களுக்கு முன்பு"}},aboutXYears:{one:{default:"சுமார் 1 வருடம்",in:"சுமார் 1 ஆண்டில்",ago:"சுமார் 1 வருடம் முன்பு"},other:{default:"சுமார் {{count}} ஆண்டுகள்",in:"சுமார் {{count}} ஆண்டுகளில்",ago:"சுமார் {{count}} ஆண்டுகளுக்கு முன்பு"}},xYears:{one:{default:"1 வருடம்",in:"1 ஆண்டில்",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகள்",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},overXYears:{one:{default:"1 வருடத்திற்கு மேல்",in:"1 வருடத்திற்கும் மேலாக",ago:"1 வருடம் முன்பு"},other:{default:"{{count}} ஆண்டுகளுக்கும் மேலாக",in:"{{count}} ஆண்டுகளில்",ago:"{{count}} ஆண்டுகளுக்கு முன்பு"}},almostXYears:{one:{default:"கிட்டத்தட்ட 1 வருடம்",in:"கிட்டத்தட்ட 1 ஆண்டில்",ago:"கிட்டத்தட்ட 1 வருடம் முன்பு"},other:{default:"கிட்டத்தட்ட {{count}} ஆண்டுகள்",in:"கிட்டத்தட்ட {{count}} ஆண்டுகளில்",ago:"கிட்டத்தட்ட {{count}} ஆண்டுகளுக்கு முன்பு"}}},wje=(n,e,t)=>{const r=t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in":"ago":"default",i=yje[n];return vje(i)?e===1?i.one[r]:i.other[r].replace("{{count}}",String(e)):i[r]},bje={full:"EEEE, d MMMM, y",long:"d MMMM, y",medium:"d MMM, y",short:"d/M/yy"},_je={full:"a h:mm:ss zzzz",long:"a h:mm:ss z",medium:"a h:mm:ss",short:"a h:mm"},xje={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Mje={date:we({formats:bje,defaultWidth:"full"}),time:we({formats:_je,defaultWidth:"full"}),dateTime:we({formats:xje,defaultWidth:"full"})},Sje={lastWeek:"'கடந்த' eeee p 'மணிக்கு'",yesterday:"'நேற்று ' p 'மணிக்கு'",today:"'இன்று ' p 'மணிக்கு'",tomorrow:"'நாளை ' p 'மணிக்கு'",nextWeek:"eeee p 'மணிக்கு'",other:"P"},Cje=(n,e,t,r)=>Sje[n],Pje={narrow:["கி.மு.","கி.பி."],abbreviated:["கி.மு.","கி.பி."],wide:["கிறிஸ்துவுக்கு முன்","அன்னோ டோமினி"]},Eje={narrow:["1","2","3","4"],abbreviated:["காலா.1","காலா.2","காலா.3","காலா.4"],wide:["ஒன்றாம் காலாண்டு","இரண்டாம் காலாண்டு","மூன்றாம் காலாண்டு","நான்காம் காலாண்டு"]},Bje={narrow:["ஜ","பி","மா","ஏ","மே","ஜூ","ஜூ","ஆ","செ","அ","ந","டி"],abbreviated:["ஜன.","பிப்.","மார்.","ஏப்.","மே","ஜூன்","ஜூலை","ஆக.","செப்.","அக்.","நவ.","டிச."],wide:["ஜனவரி","பிப்ரவரி","மார்ச்","ஏப்ரல்","மே","ஜூன்","ஜூலை","ஆகஸ்ட்","செப்டம்பர்","அக்டோபர்","நவம்பர்","டிசம்பர்"]},Tje={narrow:["ஞா","தி","செ","பு","வி","வெ","ச"],short:["ஞா","தி","செ","பு","வி","வெ","ச"],abbreviated:["ஞாயி.","திங்.","செவ்.","புத.","வியா.","வெள்.","சனி"],wide:["ஞாயிறு","திங்கள்","செவ்வாய்","புதன்","வியாழன்","வெள்ளி","சனி"]},kje={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},Ije={narrow:{am:"மு.ப",pm:"பி.ப",midnight:"நள்.",noon:"நண்.",morning:"கா.",afternoon:"மதி.",evening:"மா.",night:"இர."},abbreviated:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"},wide:{am:"முற்பகல்",pm:"பிற்பகல்",midnight:"நள்ளிரவு",noon:"நண்பகல்",morning:"காலை",afternoon:"மதியம்",evening:"மாலை",night:"இரவு"}},Lje=(n,e)=>String(n),Fje={ordinalNumber:Lje,era:K({values:Pje,defaultWidth:"wide"}),quarter:K({values:Eje,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Bje,defaultWidth:"wide"}),day:K({values:Tje,defaultWidth:"wide"}),dayPeriod:K({values:kje,defaultWidth:"wide",formattingValues:Ije,defaultFormattingWidth:"wide"})},Nje=/^(\d+)(வது)?/i,Dje=/\d+/i,Rje={narrow:/^(கி.மு.|கி.பி.)/i,abbreviated:/^(கி\.?\s?மு\.?|கி\.?\s?பி\.?)/,wide:/^(கிறிஸ்துவுக்கு\sமுன்|அன்னோ\sடோமினி)/i},Uje={any:[/கி\.?\s?மு\.?/,/கி\.?\s?பி\.?/]},Oje={narrow:/^[1234]/i,abbreviated:/^காலா.[1234]/i,wide:/^(ஒன்றாம்|இரண்டாம்|மூன்றாம்|நான்காம்) காலாண்டு/i},Hje={narrow:[/1/i,/2/i,/3/i,/4/i],any:[/(1|காலா.1|ஒன்றாம்)/i,/(2|காலா.2|இரண்டாம்)/i,/(3|காலா.3|மூன்றாம்)/i,/(4|காலா.4|நான்காம்)/i]},Wje={narrow:/^(ஜ|பி|மா|ஏ|மே|ஜூ|ஆ|செ|அ|ந|டி)$/i,abbreviated:/^(ஜன.|பிப்.|மார்.|ஏப்.|மே|ஜூன்|ஜூலை|ஆக.|செப்.|அக்.|நவ.|டிச.)/i,wide:/^(ஜனவரி|பிப்ரவரி|மார்ச்|ஏப்ரல்|மே|ஜூன்|ஜூலை|ஆகஸ்ட்|செப்டம்பர்|அக்டோபர்|நவம்பர்|டிசம்பர்)/i},Qje={narrow:[/^ஜ$/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூ/i,/^ஜூ/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i],any:[/^ஜன/i,/^பி/i,/^மா/i,/^ஏ/i,/^மே/i,/^ஜூன்/i,/^ஜூலை/i,/^ஆ/i,/^செ/i,/^அ/i,/^ந/i,/^டி/i]},$je={narrow:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,short:/^(ஞா|தி|செ|பு|வி|வெ|ச)/i,abbreviated:/^(ஞாயி.|திங்.|செவ்.|புத.|வியா.|வெள்.|சனி)/i,wide:/^(ஞாயிறு|திங்கள்|செவ்வாய்|புதன்|வியாழன்|வெள்ளி|சனி)/i},jje={narrow:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i],any:[/^ஞா/i,/^தி/i,/^செ/i,/^பு/i,/^வி/i,/^வெ/i,/^ச/i]},zje={narrow:/^(மு.ப|பி.ப|நள்|நண்|காலை|மதியம்|மாலை|இரவு)/i,any:/^(மு.ப|பி.ப|முற்பகல்|பிற்பகல்|நள்ளிரவு|நண்பகல்|காலை|மதியம்|மாலை|இரவு)/i},Vje={any:{am:/^மு/i,pm:/^பி/i,midnight:/^நள்/i,noon:/^நண்/i,morning:/காலை/i,afternoon:/மதியம்/i,evening:/மாலை/i,night:/இரவு/i}},Gje={ordinalNumber:Nt({matchPattern:Nje,parsePattern:Dje,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:Rje,defaultMatchWidth:"wide",parsePatterns:Uje,defaultParseWidth:"any"}),quarter:X({matchPatterns:Oje,defaultMatchWidth:"wide",parsePatterns:Hje,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Wje,defaultMatchWidth:"wide",parsePatterns:Qje,defaultParseWidth:"any"}),day:X({matchPatterns:$je,defaultMatchWidth:"wide",parsePatterns:jje,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:zje,defaultMatchWidth:"any",parsePatterns:Vje,defaultParseWidth:"any"})},Kje={code:"ta",formatDistance:wje,formatLong:Mje,formatRelative:Cje,localize:Fje,match:Gje,options:{weekStartsOn:1,firstWeekContainsDate:4}},OI={lessThanXSeconds:{standalone:{one:"సెకను కన్నా తక్కువ",other:"{{count}} సెకన్ల కన్నా తక్కువ"},withPreposition:{one:"సెకను",other:"{{count}} సెకన్ల"}},xSeconds:{standalone:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"},withPreposition:{one:"ఒక సెకను",other:"{{count}} సెకన్ల"}},halfAMinute:{standalone:"అర నిమిషం",withPreposition:"అర నిమిషం"},lessThanXMinutes:{standalone:{one:"ఒక నిమిషం కన్నా తక్కువ",other:"{{count}} నిమిషాల కన్నా తక్కువ"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},xMinutes:{standalone:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాలు"},withPreposition:{one:"ఒక నిమిషం",other:"{{count}} నిమిషాల"}},aboutXHours:{standalone:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటలు"},withPreposition:{one:"సుమారు ఒక గంట",other:"సుమారు {{count}} గంటల"}},xHours:{standalone:{one:"ఒక గంట",other:"{{count}} గంటలు"},withPreposition:{one:"ఒక గంట",other:"{{count}} గంటల"}},xDays:{standalone:{one:"ఒక రోజు",other:"{{count}} రోజులు"},withPreposition:{one:"ఒక రోజు",other:"{{count}} రోజుల"}},aboutXWeeks:{standalone:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలు"},withPreposition:{one:"సుమారు ఒక వారం",other:"సుమారు {{count}} వారాలల"}},xWeeks:{standalone:{one:"ఒక వారం",other:"{{count}} వారాలు"},withPreposition:{one:"ఒక వారం",other:"{{count}} వారాలల"}},aboutXMonths:{standalone:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలలు"},withPreposition:{one:"సుమారు ఒక నెల",other:"సుమారు {{count}} నెలల"}},xMonths:{standalone:{one:"ఒక నెల",other:"{{count}} నెలలు"},withPreposition:{one:"ఒక నెల",other:"{{count}} నెలల"}},aboutXYears:{standalone:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాలు"},withPreposition:{one:"సుమారు ఒక సంవత్సరం",other:"సుమారు {{count}} సంవత్సరాల"}},xYears:{standalone:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాలు"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},overXYears:{standalone:{one:"ఒక సంవత్సరం పైగా",other:"{{count}} సంవత్సరాలకు పైగా"},withPreposition:{one:"ఒక సంవత్సరం",other:"{{count}} సంవత్సరాల"}},almostXYears:{standalone:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాలు"},withPreposition:{one:"దాదాపు ఒక సంవత్సరం",other:"దాదాపు {{count}} సంవత్సరాల"}}},qje=(n,e,t)=>{let r;const i=t!=null&&t.addSuffix?OI[n].withPreposition:OI[n].standalone;return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+"లో":r+" క్రితం":r},Xje={full:"d, MMMM y, EEEE",long:"d MMMM, y",medium:"d MMM, y",short:"dd-MM-yy"},Yje={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jje={full:"{{date}} {{time}}'కి'",long:"{{date}} {{time}}'కి'",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Zje={date:we({formats:Xje,defaultWidth:"full"}),time:we({formats:Yje,defaultWidth:"full"}),dateTime:we({formats:Jje,defaultWidth:"full"})},e6e={lastWeek:"'గత' eeee p",yesterday:"'నిన్న' p",today:"'ఈ రోజు' p",tomorrow:"'రేపు' p",nextWeek:"'తదుపరి' eeee p",other:"P"},t6e=(n,e,t,r)=>e6e[n],n6e={narrow:["క్రీ.పూ.","క్రీ.శ."],abbreviated:["క్రీ.పూ.","క్రీ.శ."],wide:["క్రీస్తు పూర్వం","క్రీస్తుశకం"]},r6e={narrow:["1","2","3","4"],abbreviated:["త్రై1","త్రై2","త్రై3","త్రై4"],wide:["1వ త్రైమాసికం","2వ త్రైమాసికం","3వ త్రైమాసికం","4వ త్రైమాసికం"]},i6e={narrow:["జ","ఫి","మా","ఏ","మే","జూ","జు","ఆ","సె","అ","న","డి"],abbreviated:["జన","ఫిబ్ర","మార్చి","ఏప్రి","మే","జూన్","జులై","ఆగ","సెప్టెం","అక్టో","నవం","డిసెం"],wide:["జనవరి","ఫిబ్రవరి","మార్చి","ఏప్రిల్","మే","జూన్","జులై","ఆగస్టు","సెప్టెంబర్","అక్టోబర్","నవంబర్","డిసెంబర్"]},a6e={narrow:["ఆ","సో","మ","బు","గు","శు","శ"],short:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],abbreviated:["ఆది","సోమ","మంగళ","బుధ","గురు","శుక్ర","శని"],wide:["ఆదివారం","సోమవారం","మంగళవారం","బుధవారం","గురువారం","శుక్రవారం","శనివారం"]},s6e={narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},o6e={narrow:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},abbreviated:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"},wide:{am:"పూర్వాహ్నం",pm:"అపరాహ్నం",midnight:"అర్ధరాత్రి",noon:"మిట్టమధ్యాహ్నం",morning:"ఉదయం",afternoon:"మధ్యాహ్నం",evening:"సాయంత్రం",night:"రాత్రి"}},c6e=(n,e)=>Number(n)+"వ",l6e={ordinalNumber:c6e,era:K({values:n6e,defaultWidth:"wide"}),quarter:K({values:r6e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:i6e,defaultWidth:"wide"}),day:K({values:a6e,defaultWidth:"wide"}),dayPeriod:K({values:s6e,defaultWidth:"wide",formattingValues:o6e,defaultFormattingWidth:"wide"})},u6e=/^(\d+)(వ)?/i,d6e=/\d+/i,A6e={narrow:/^(క్రీ\.పూ\.|క్రీ\.శ\.)/i,abbreviated:/^(క్రీ\.?\s?పూ\.?|ప్ర\.?\s?శ\.?\s?పూ\.?|క్రీ\.?\s?శ\.?|సా\.?\s?శ\.?)/i,wide:/^(క్రీస్తు పూర్వం|ప్రస్తుత శకానికి పూర్వం|క్రీస్తు శకం|ప్రస్తుత శకం)/i},h6e={any:[/^(పూ|శ)/i,/^సా/i]},f6e={narrow:/^[1234]/i,abbreviated:/^త్రై[1234]/i,wide:/^[1234](వ)? త్రైమాసికం/i},m6e={any:[/1/i,/2/i,/3/i,/4/i]},p6e={narrow:/^(జూ|జు|జ|ఫి|మా|ఏ|మే|ఆ|సె|అ|న|డి)/i,abbreviated:/^(జన|ఫిబ్ర|మార్చి|ఏప్రి|మే|జూన్|జులై|ఆగ|సెప్|అక్టో|నవ|డిసె)/i,wide:/^(జనవరి|ఫిబ్రవరి|మార్చి|ఏప్రిల్|మే|జూన్|జులై|ఆగస్టు|సెప్టెంబర్|అక్టోబర్|నవంబర్|డిసెంబర్)/i},g6e={narrow:[/^జ/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూ/i,/^జు/i,/^ఆ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i],any:[/^జన/i,/^ఫి/i,/^మా/i,/^ఏ/i,/^మే/i,/^జూన్/i,/^జులై/i,/^ఆగ/i,/^సె/i,/^అ/i,/^న/i,/^డి/i]},v6e={narrow:/^(ఆ|సో|మ|బు|గు|శు|శ)/i,short:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,abbreviated:/^(ఆది|సోమ|మం|బుధ|గురు|శుక్ర|శని)/i,wide:/^(ఆదివారం|సోమవారం|మంగళవారం|బుధవారం|గురువారం|శుక్రవారం|శనివారం)/i},y6e={narrow:[/^ఆ/i,/^సో/i,/^మ/i,/^బు/i,/^గు/i,/^శు/i,/^శ/i],any:[/^ఆది/i,/^సోమ/i,/^మం/i,/^బుధ/i,/^గురు/i,/^శుక్ర/i,/^శని/i]},w6e={narrow:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i,any:/^(పూర్వాహ్నం|అపరాహ్నం|అర్ధరాత్రి|మిట్టమధ్యాహ్నం|ఉదయం|మధ్యాహ్నం|సాయంత్రం|రాత్రి)/i},b6e={any:{am:/^పూర్వాహ్నం/i,pm:/^అపరాహ్నం/i,midnight:/^అర్ధ/i,noon:/^మిట్ట/i,morning:/ఉదయం/i,afternoon:/మధ్యాహ్నం/i,evening:/సాయంత్రం/i,night:/రాత్రి/i}},_6e={ordinalNumber:Nt({matchPattern:u6e,parsePattern:d6e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:A6e,defaultMatchWidth:"wide",parsePatterns:h6e,defaultParseWidth:"any"}),quarter:X({matchPatterns:f6e,defaultMatchWidth:"wide",parsePatterns:m6e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:p6e,defaultMatchWidth:"wide",parsePatterns:g6e,defaultParseWidth:"any"}),day:X({matchPatterns:v6e,defaultMatchWidth:"wide",parsePatterns:y6e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:w6e,defaultMatchWidth:"any",parsePatterns:b6e,defaultParseWidth:"any"})},x6e={code:"te",formatDistance:qje,formatLong:Zje,formatRelative:t6e,localize:l6e,match:_6e,options:{weekStartsOn:0,firstWeekContainsDate:1}},M6e={lessThanXSeconds:{one:"น้อยกว่า 1 วินาที",other:"น้อยกว่า {{count}} วินาที"},xSeconds:{one:"1 วินาที",other:"{{count}} วินาที"},halfAMinute:"ครึ่งนาที",lessThanXMinutes:{one:"น้อยกว่า 1 นาที",other:"น้อยกว่า {{count}} นาที"},xMinutes:{one:"1 นาที",other:"{{count}} นาที"},aboutXHours:{one:"ประมาณ 1 ชั่วโมง",other:"ประมาณ {{count}} ชั่วโมง"},xHours:{one:"1 ชั่วโมง",other:"{{count}} ชั่วโมง"},xDays:{one:"1 วัน",other:"{{count}} วัน"},aboutXWeeks:{one:"ประมาณ 1 สัปดาห์",other:"ประมาณ {{count}} สัปดาห์"},xWeeks:{one:"1 สัปดาห์",other:"{{count}} สัปดาห์"},aboutXMonths:{one:"ประมาณ 1 เดือน",other:"ประมาณ {{count}} เดือน"},xMonths:{one:"1 เดือน",other:"{{count}} เดือน"},aboutXYears:{one:"ประมาณ 1 ปี",other:"ประมาณ {{count}} ปี"},xYears:{one:"1 ปี",other:"{{count}} ปี"},overXYears:{one:"มากกว่า 1 ปี",other:"มากกว่า {{count}} ปี"},almostXYears:{one:"เกือบ 1 ปี",other:"เกือบ {{count}} ปี"}},S6e=(n,e,t)=>{let r;const i=M6e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?n==="halfAMinute"?"ใน"+r:"ใน "+r:r+"ที่ผ่านมา":r},C6e={full:"วันEEEEที่ do MMMM y",long:"do MMMM y",medium:"d MMM y",short:"dd/MM/yyyy"},P6e={full:"H:mm:ss น. zzzz",long:"H:mm:ss น. z",medium:"H:mm:ss น.",short:"H:mm น."},E6e={full:"{{date}} 'เวลา' {{time}}",long:"{{date}} 'เวลา' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},B6e={date:we({formats:C6e,defaultWidth:"full"}),time:we({formats:P6e,defaultWidth:"medium"}),dateTime:we({formats:E6e,defaultWidth:"full"})},T6e={lastWeek:"eeee'ที่แล้วเวลา' p",yesterday:"'เมื่อวานนี้เวลา' p",today:"'วันนี้เวลา' p",tomorrow:"'พรุ่งนี้เวลา' p",nextWeek:"eeee 'เวลา' p",other:"P"},k6e=(n,e,t,r)=>T6e[n],I6e={narrow:["B","คศ"],abbreviated:["BC","ค.ศ."],wide:["ปีก่อนคริสตกาล","คริสต์ศักราช"]},L6e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["ไตรมาสแรก","ไตรมาสที่สอง","ไตรมาสที่สาม","ไตรมาสที่สี่"]},F6e={narrow:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],short:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],abbreviated:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],wide:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"]},N6e={narrow:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],abbreviated:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],wide:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"]},D6e={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"เช้า",afternoon:"บ่าย",evening:"เย็น",night:"กลางคืน"}},R6e={narrow:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},abbreviated:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"},wide:{am:"ก่อนเที่ยง",pm:"หลังเที่ยง",midnight:"เที่ยงคืน",noon:"เที่ยง",morning:"ตอนเช้า",afternoon:"ตอนกลางวัน",evening:"ตอนเย็น",night:"ตอนกลางคืน"}},U6e=(n,e)=>String(n),O6e={ordinalNumber:U6e,era:K({values:I6e,defaultWidth:"wide"}),quarter:K({values:L6e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:N6e,defaultWidth:"wide"}),day:K({values:F6e,defaultWidth:"wide"}),dayPeriod:K({values:D6e,defaultWidth:"wide",formattingValues:R6e,defaultFormattingWidth:"wide"})},H6e=/^\d+/i,W6e=/\d+/i,Q6e={narrow:/^([bB]|[aA]|คศ)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|ค\.?ศ\.?)/i,wide:/^(ก่อนคริสตกาล|คริสต์ศักราช|คริสตกาล)/i},$6e={any:[/^[bB]/i,/^(^[aA]|ค\.?ศ\.?|คริสตกาล|คริสต์ศักราช|)/i]},j6e={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^ไตรมาส(ที่)? ?[1234]/i},z6e={any:[/(1|แรก|หนึ่ง)/i,/(2|สอง)/i,/(3|สาม)/i,/(4|สี่)/i]},V6e={narrow:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?)/i,abbreviated:/^(ม\.?ค\.?|ก\.?พ\.?|มี\.?ค\.?|เม\.?ย\.?|พ\.?ค\.?|มิ\.?ย\.?|ก\.?ค\.?|ส\.?ค\.?|ก\.?ย\.?|ต\.?ค\.?|พ\.?ย\.?|ธ\.?ค\.?')/i,wide:/^(มกราคม|กุมภาพันธ์|มีนาคม|เมษายน|พฤษภาคม|มิถุนายน|กรกฎาคม|สิงหาคม|กันยายน|ตุลาคม|พฤศจิกายน|ธันวาคม)/i},G6e={wide:[/^มก/i,/^กุม/i,/^มี/i,/^เม/i,/^พฤษ/i,/^มิ/i,/^กรก/i,/^ส/i,/^กัน/i,/^ต/i,/^พฤศ/i,/^ธ/i],any:[/^ม\.?ค\.?/i,/^ก\.?พ\.?/i,/^มี\.?ค\.?/i,/^เม\.?ย\.?/i,/^พ\.?ค\.?/i,/^มิ\.?ย\.?/i,/^ก\.?ค\.?/i,/^ส\.?ค\.?/i,/^ก\.?ย\.?/i,/^ต\.?ค\.?/i,/^พ\.?ย\.?/i,/^ธ\.?ค\.?/i]},K6e={narrow:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,short:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,abbreviated:/^(อา\.?|จ\.?|อ\.?|พฤ\.?|พ\.?|ศ\.?|ส\.?)/i,wide:/^(อาทิตย์|จันทร์|อังคาร|พุธ|พฤหัสบดี|ศุกร์|เสาร์)/i},q6e={wide:[/^อา/i,/^จั/i,/^อั/i,/^พุธ/i,/^พฤ/i,/^ศ/i,/^เส/i],any:[/^อา/i,/^จ/i,/^อ/i,/^พ(?!ฤ)/i,/^พฤ/i,/^ศ/i,/^ส/i]},X6e={any:/^(ก่อนเที่ยง|หลังเที่ยง|เที่ยงคืน|เที่ยง|(ตอน.*?)?.*(เที่ยง|เช้า|บ่าย|เย็น|กลางคืน))/i},Y6e={any:{am:/^ก่อนเที่ยง/i,pm:/^หลังเที่ยง/i,midnight:/^เที่ยงคืน/i,noon:/^เที่ยง/i,morning:/เช้า/i,afternoon:/บ่าย/i,evening:/เย็น/i,night:/กลางคืน/i}},J6e={ordinalNumber:Nt({matchPattern:H6e,parsePattern:W6e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:Q6e,defaultMatchWidth:"wide",parsePatterns:$6e,defaultParseWidth:"any"}),quarter:X({matchPatterns:j6e,defaultMatchWidth:"wide",parsePatterns:z6e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:V6e,defaultMatchWidth:"wide",parsePatterns:G6e,defaultParseWidth:"any"}),day:X({matchPatterns:K6e,defaultMatchWidth:"wide",parsePatterns:q6e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:X6e,defaultMatchWidth:"any",parsePatterns:Y6e,defaultParseWidth:"any"})},Z6e={code:"th",formatDistance:S6e,formatLong:B6e,formatRelative:k6e,localize:O6e,match:J6e,options:{weekStartsOn:0,firstWeekContainsDate:1}},eze={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},tze=(n,e,t)=>{let r;const i=eze[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+" sonra":r+" önce":r},nze={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},rze={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ize={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},aze={date:we({formats:nze,defaultWidth:"full"}),time:we({formats:rze,defaultWidth:"full"}),dateTime:we({formats:ize,defaultWidth:"full"})},sze={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},oze=(n,e,t,r)=>sze[n],cze={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},lze={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},uze={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},dze={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},Aze={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},hze={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},fze=(n,e)=>Number(n)+".",mze={ordinalNumber:fze,era:K({values:cze,defaultWidth:"wide"}),quarter:K({values:lze,defaultWidth:"wide",argumentCallback:n=>Number(n)-1}),month:K({values:uze,defaultWidth:"wide"}),day:K({values:dze,defaultWidth:"wide"}),dayPeriod:K({values:Aze,defaultWidth:"wide",formattingValues:hze,defaultFormattingWidth:"wide"})},pze=/^(\d+)(\.)?/i,gze=/\d+/i,vze={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},yze={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},wze={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},bze={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},_ze={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},xze={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},Mze={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},Sze={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},Cze={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},Pze={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},Eze={ordinalNumber:Nt({matchPattern:pze,parsePattern:gze,valueCallback:function(n){return parseInt(n,10)}}),era:X({matchPatterns:vze,defaultMatchWidth:"wide",parsePatterns:yze,defaultParseWidth:"any"}),quarter:X({matchPatterns:wze,defaultMatchWidth:"wide",parsePatterns:bze,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:_ze,defaultMatchWidth:"wide",parsePatterns:xze,defaultParseWidth:"any"}),day:X({matchPatterns:Mze,defaultMatchWidth:"wide",parsePatterns:Sze,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:Cze,defaultMatchWidth:"any",parsePatterns:Pze,defaultParseWidth:"any"})},Bze={code:"tr",formatDistance:tze,formatLong:aze,formatRelative:oze,localize:mze,match:Eze,options:{weekStartsOn:1,firstWeekContainsDate:1}},Tze={lessThanXSeconds:{one:"بىر سىكۇنت ئىچىدە",other:"سىكۇنت ئىچىدە {{count}}"},xSeconds:{one:"بىر سىكۇنت",other:"سىكۇنت {{count}}"},halfAMinute:"يىرىم مىنۇت",lessThanXMinutes:{one:"بىر مىنۇت ئىچىدە",other:"مىنۇت ئىچىدە {{count}}"},xMinutes:{one:"بىر مىنۇت",other:"مىنۇت {{count}}"},aboutXHours:{one:"تەخمىنەن بىر سائەت",other:"سائەت {{count}} تەخمىنەن"},xHours:{one:"بىر سائەت",other:"سائەت {{count}}"},xDays:{one:"بىر كۈن",other:"كۈن {{count}}"},aboutXWeeks:{one:"تەخمىنەن بىرھەپتە",other:"ھەپتە {{count}} تەخمىنەن"},xWeeks:{one:"بىرھەپتە",other:"ھەپتە {{count}}"},aboutXMonths:{one:"تەخمىنەن بىر ئاي",other:"ئاي {{count}} تەخمىنەن"},xMonths:{one:"بىر ئاي",other:"ئاي {{count}}"},aboutXYears:{one:"تەخمىنەن بىر يىل",other:"يىل {{count}} تەخمىنەن"},xYears:{one:"بىر يىل",other:"يىل {{count}}"},overXYears:{one:"بىر يىلدىن ئارتۇق",other:"يىلدىن ئارتۇق {{count}}"},almostXYears:{one:"ئاساسەن بىر يىل",other:"يىل {{count}} ئاساسەن"}},kze=(n,e,t)=>{let r;const i=Tze[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r:r+" بولدى":r},Ize={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Lze={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fze={full:"{{date}} 'دە' {{time}}",long:"{{date}} 'دە' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Nze={date:we({formats:Ize,defaultWidth:"full"}),time:we({formats:Lze,defaultWidth:"full"}),dateTime:we({formats:Fze,defaultWidth:"full"})},Dze={lastWeek:"'ئ‍ۆتكەن' eeee 'دە' p",yesterday:"'تۈنۈگۈن دە' p",today:"'بۈگۈن دە' p",tomorrow:"'ئەتە دە' p",nextWeek:"eeee 'دە' p",other:"P"},Rze=(n,e,t,r)=>Dze[n],Uze={narrow:["ب","ك"],abbreviated:["ب","ك"],wide:["مىيلادىدىن بۇرۇن","مىيلادىدىن كىيىن"]},Oze={narrow:["1","2","3","4"],abbreviated:["1","2","3","4"],wide:["بىرىنجى چارەك","ئىككىنجى چارەك","ئۈچىنجى چارەك","تۆتىنجى چارەك"]},Hze={narrow:["ي","ف","م","ا","م","ى","ى","ا","س","ۆ","ن","د"],abbreviated:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"],wide:["يانۋار","فېۋىرال","مارت","ئاپرىل","ماي","ئىيۇن","ئىيول","ئاۋغۇست","سىنتەبىر","ئۆكتەبىر","نويابىر","دىكابىر"]},Wze={narrow:["ي","د","س","چ","پ","ج","ش"],short:["ي","د","س","چ","پ","ج","ش"],abbreviated:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"],wide:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},Qze={narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەن",afternoon:"چۈشتىن كىيىن",evening:"ئاخشىم",night:"كىچە"}},$ze={narrow:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},abbreviated:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"},wide:{am:"ئە",pm:"چ",midnight:"ك",noon:"چ",morning:"ئەتىگەندە",afternoon:"چۈشتىن كىيىن",evening:"ئاخشامدا",night:"كىچىدە"}},jze=(n,e)=>String(n),zze={ordinalNumber:jze,era:K({values:Uze,defaultWidth:"wide"}),quarter:K({values:Oze,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:Hze,defaultWidth:"wide"}),day:K({values:Wze,defaultWidth:"wide"}),dayPeriod:K({values:Qze,defaultWidth:"wide",formattingValues:$ze,defaultFormattingWidth:"wide"})},Vze=/^(\d+)(th|st|nd|rd)?/i,Gze=/\d+/i,Kze={narrow:/^(ب|ك)/i,wide:/^(مىيلادىدىن بۇرۇن|مىيلادىدىن كىيىن)/i},qze={any:[/^بۇرۇن/i,/^كىيىن/i]},Xze={narrow:/^[1234]/i,abbreviated:/^چ[1234]/i,wide:/^چارەك [1234]/i},Yze={any:[/1/i,/2/i,/3/i,/4/i]},Jze={narrow:/^[يفمئامئ‍ئاسۆند]/i,abbreviated:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i,wide:/^(يانۋار|فېۋىرال|مارت|ئاپرىل|ماي|ئىيۇن|ئىيول|ئاۋغۇست|سىنتەبىر|ئۆكتەبىر|نويابىر|دىكابىر)/i},Zze={narrow:[/^ي/i,/^ف/i,/^م/i,/^ا/i,/^م/i,/^ى‍/i,/^ى‍/i,/^ا‍/i,/^س/i,/^ۆ/i,/^ن/i,/^د/i],any:[/^يان/i,/^فېۋ/i,/^مار/i,/^ئاپ/i,/^ماي/i,/^ئىيۇن/i,/^ئىيول/i,/^ئاۋ/i,/^سىن/i,/^ئۆك/i,/^نوي/i,/^دىك/i]},e8e={narrow:/^[دسچپجشي]/i,short:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,abbreviated:/^(يە|دۈ|سە|چا|پە|جۈ|شە)/i,wide:/^(يەكشەنبە|دۈشەنبە|سەيشەنبە|چارشەنبە|پەيشەنبە|جۈمە|شەنبە)/i},t8e={narrow:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i],any:[/^ي/i,/^د/i,/^س/i,/^چ/i,/^پ/i,/^ج/i,/^ش/i]},n8e={narrow:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i,any:/^(ئە|چ|ك|چ|(دە|ئەتىگەن) ( ئە‍|چۈشتىن كىيىن|ئاخشىم|كىچە))/i},r8e={any:{am:/^ئە/i,pm:/^چ/i,midnight:/^ك/i,noon:/^چ/i,morning:/ئەتىگەن/i,afternoon:/چۈشتىن كىيىن/i,evening:/ئاخشىم/i,night:/كىچە/i}},i8e={ordinalNumber:Nt({matchPattern:Vze,parsePattern:Gze,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:Kze,defaultMatchWidth:"wide",parsePatterns:qze,defaultParseWidth:"any"}),quarter:X({matchPatterns:Xze,defaultMatchWidth:"wide",parsePatterns:Yze,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:Jze,defaultMatchWidth:"wide",parsePatterns:Zze,defaultParseWidth:"any"}),day:X({matchPatterns:e8e,defaultMatchWidth:"wide",parsePatterns:t8e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:n8e,defaultMatchWidth:"any",parsePatterns:r8e,defaultParseWidth:"any"})},a8e={code:"ug",formatDistance:kze,formatLong:Nze,formatRelative:Rze,localize:zze,match:i8e,options:{weekStartsOn:0,firstWeekContainsDate:1}};function mm(n,e){if(n.one!==void 0&&e===1)return n.one;const t=e%10,r=e%100;return t===1&&r!==11?n.singularNominative.replace("{{count}}",String(e)):t>=2&&t<=4&&(r<10||r>20)?n.singularGenitive.replace("{{count}}",String(e)):n.pluralGenitive.replace("{{count}}",String(e))}function ps(n){return(e,t)=>t&&t.addSuffix?t.comparison&&t.comparison>0?n.future?mm(n.future,e):"за "+mm(n.regular,e):n.past?mm(n.past,e):mm(n.regular,e)+" тому":mm(n.regular,e)}const s8e=(n,e)=>e&&e.addSuffix?e.comparison&&e.comparison>0?"за півхвилини":"півхвилини тому":"півхвилини",o8e={lessThanXSeconds:ps({regular:{one:"менше секунди",singularNominative:"менше {{count}} секунди",singularGenitive:"менше {{count}} секунд",pluralGenitive:"менше {{count}} секунд"},future:{one:"менше, ніж за секунду",singularNominative:"менше, ніж за {{count}} секунду",singularGenitive:"менше, ніж за {{count}} секунди",pluralGenitive:"менше, ніж за {{count}} секунд"}}),xSeconds:ps({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунди",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду тому",singularGenitive:"{{count}} секунди тому",pluralGenitive:"{{count}} секунд тому"},future:{singularNominative:"за {{count}} секунду",singularGenitive:"за {{count}} секунди",pluralGenitive:"за {{count}} секунд"}}),halfAMinute:s8e,lessThanXMinutes:ps({regular:{one:"менше хвилини",singularNominative:"менше {{count}} хвилини",singularGenitive:"менше {{count}} хвилин",pluralGenitive:"менше {{count}} хвилин"},future:{one:"менше, ніж за хвилину",singularNominative:"менше, ніж за {{count}} хвилину",singularGenitive:"менше, ніж за {{count}} хвилини",pluralGenitive:"менше, ніж за {{count}} хвилин"}}),xMinutes:ps({regular:{singularNominative:"{{count}} хвилина",singularGenitive:"{{count}} хвилини",pluralGenitive:"{{count}} хвилин"},past:{singularNominative:"{{count}} хвилину тому",singularGenitive:"{{count}} хвилини тому",pluralGenitive:"{{count}} хвилин тому"},future:{singularNominative:"за {{count}} хвилину",singularGenitive:"за {{count}} хвилини",pluralGenitive:"за {{count}} хвилин"}}),aboutXHours:ps({regular:{singularNominative:"близько {{count}} години",singularGenitive:"близько {{count}} годин",pluralGenitive:"близько {{count}} годин"},future:{singularNominative:"приблизно за {{count}} годину",singularGenitive:"приблизно за {{count}} години",pluralGenitive:"приблизно за {{count}} годин"}}),xHours:ps({regular:{singularNominative:"{{count}} годину",singularGenitive:"{{count}} години",pluralGenitive:"{{count}} годин"}}),xDays:ps({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} днi",pluralGenitive:"{{count}} днів"}}),aboutXWeeks:ps({regular:{singularNominative:"близько {{count}} тижня",singularGenitive:"близько {{count}} тижнів",pluralGenitive:"близько {{count}} тижнів"},future:{singularNominative:"приблизно за {{count}} тиждень",singularGenitive:"приблизно за {{count}} тижні",pluralGenitive:"приблизно за {{count}} тижнів"}}),xWeeks:ps({regular:{singularNominative:"{{count}} тиждень",singularGenitive:"{{count}} тижні",pluralGenitive:"{{count}} тижнів"}}),aboutXMonths:ps({regular:{singularNominative:"близько {{count}} місяця",singularGenitive:"близько {{count}} місяців",pluralGenitive:"близько {{count}} місяців"},future:{singularNominative:"приблизно за {{count}} місяць",singularGenitive:"приблизно за {{count}} місяці",pluralGenitive:"приблизно за {{count}} місяців"}}),xMonths:ps({regular:{singularNominative:"{{count}} місяць",singularGenitive:"{{count}} місяці",pluralGenitive:"{{count}} місяців"}}),aboutXYears:ps({regular:{singularNominative:"близько {{count}} року",singularGenitive:"близько {{count}} років",pluralGenitive:"близько {{count}} років"},future:{singularNominative:"приблизно за {{count}} рік",singularGenitive:"приблизно за {{count}} роки",pluralGenitive:"приблизно за {{count}} років"}}),xYears:ps({regular:{singularNominative:"{{count}} рік",singularGenitive:"{{count}} роки",pluralGenitive:"{{count}} років"}}),overXYears:ps({regular:{singularNominative:"більше {{count}} року",singularGenitive:"більше {{count}} років",pluralGenitive:"більше {{count}} років"},future:{singularNominative:"більше, ніж за {{count}} рік",singularGenitive:"більше, ніж за {{count}} роки",pluralGenitive:"більше, ніж за {{count}} років"}}),almostXYears:ps({regular:{singularNominative:"майже {{count}} рік",singularGenitive:"майже {{count}} роки",pluralGenitive:"майже {{count}} років"},future:{singularNominative:"майже за {{count}} рік",singularGenitive:"майже за {{count}} роки",pluralGenitive:"майже за {{count}} років"}})},c8e=(n,e,t)=>(t=t||{},o8e[n](e,t)),l8e={full:"EEEE, do MMMM y 'р.'",long:"do MMMM y 'р.'",medium:"d MMM y 'р.'",short:"dd.MM.y"},u8e={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},d8e={full:"{{date}} 'о' {{time}}",long:"{{date}} 'о' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},A8e={date:we({formats:l8e,defaultWidth:"full"}),time:we({formats:u8e,defaultWidth:"full"}),dateTime:we({formats:d8e,defaultWidth:"full"})},XC=["неділю","понеділок","вівторок","середу","четвер","п’ятницю","суботу"];function h8e(n){const e=XC[n];switch(n){case 0:case 3:case 5:case 6:return"'у минулу "+e+" о' p";case 1:case 2:case 4:return"'у минулий "+e+" о' p"}}function _U(n){return"'у "+XC[n]+" о' p"}function f8e(n){const e=XC[n];switch(n){case 0:case 3:case 5:case 6:return"'у наступну "+e+" о' p";case 1:case 2:case 4:return"'у наступний "+e+" о' p"}}const m8e=(n,e,t)=>{const r=id(n),i=r.getDay();return vi(r,e,t)?_U(i):h8e(i)},p8e=(n,e,t)=>{const r=id(n),i=r.getDay();return vi(r,e,t)?_U(i):f8e(i)},g8e={lastWeek:m8e,yesterday:"'вчора о' p",today:"'сьогодні о' p",tomorrow:"'завтра о' p",nextWeek:p8e,other:"P"},v8e=(n,e,t,r)=>{const i=g8e[n];return typeof i=="function"?i(e,t,r):i},y8e={narrow:["до н.е.","н.е."],abbreviated:["до н. е.","н. е."],wide:["до нашої ери","нашої ери"]},w8e={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},b8e={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січень","лютий","березень","квітень","травень","червень","липень","серпень","вересень","жовтень","листопад","грудень"]},_8e={narrow:["С","Л","Б","К","Т","Ч","Л","С","В","Ж","Л","Г"],abbreviated:["січ.","лют.","берез.","квіт.","трав.","черв.","лип.","серп.","верес.","жовт.","листоп.","груд."],wide:["січня","лютого","березня","квітня","травня","червня","липня","серпня","вересня","жовтня","листопада","грудня"]},x8e={narrow:["Н","П","В","С","Ч","П","С"],short:["нд","пн","вт","ср","чт","пт","сб"],abbreviated:["нед","пон","вів","сер","чтв","птн","суб"],wide:["неділя","понеділок","вівторок","середа","четвер","п’ятниця","субота"]},M8e={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранок",afternoon:"день",evening:"веч.",night:"ніч"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранок",afternoon:"день",evening:"вечір",night:"ніч"}},S8e={narrow:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},abbreviated:{am:"ДП",pm:"ПП",midnight:"півн.",noon:"пол.",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"},wide:{am:"ДП",pm:"ПП",midnight:"північ",noon:"полудень",morning:"ранку",afternoon:"дня",evening:"веч.",night:"ночі"}},C8e=(n,e)=>{const t=String(e==null?void 0:e.unit),r=Number(n);let i;return t==="date"?r===3||r===23?i="-є":i="-е":t==="minute"||t==="second"||t==="hour"?i="-а":i="-й",r+i},P8e={ordinalNumber:C8e,era:K({values:y8e,defaultWidth:"wide"}),quarter:K({values:w8e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:b8e,defaultWidth:"wide",formattingValues:_8e,defaultFormattingWidth:"wide"}),day:K({values:x8e,defaultWidth:"wide"}),dayPeriod:K({values:M8e,defaultWidth:"any",formattingValues:S8e,defaultFormattingWidth:"wide"})},E8e=/^(\d+)(-?(е|й|є|а|я))?/i,B8e=/\d+/i,T8e={narrow:/^((до )?н\.?\s?е\.?)/i,abbreviated:/^((до )?н\.?\s?е\.?)/i,wide:/^(до нашої ери|нашої ери|наша ера)/i},k8e={any:[/^д/i,/^н/i]},I8e={narrow:/^[1234]/i,abbreviated:/^[1234](-?[иі]?й?)? кв.?/i,wide:/^[1234](-?[иі]?й?)? квартал/i},L8e={any:[/1/i,/2/i,/3/i,/4/i]},F8e={narrow:/^[слбктчвжг]/i,abbreviated:/^(січ|лют|бер(ез)?|квіт|трав|черв|лип|серп|вер(ес)?|жовт|лис(топ)?|груд)\.?/i,wide:/^(січень|січня|лютий|лютого|березень|березня|квітень|квітня|травень|травня|червня|червень|липень|липня|серпень|серпня|вересень|вересня|жовтень|жовтня|листопад[а]?|грудень|грудня)/i},N8e={narrow:[/^с/i,/^л/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^л/i,/^с/i,/^в/i,/^ж/i,/^л/i,/^г/i],any:[/^сі/i,/^лю/i,/^б/i,/^к/i,/^т/i,/^ч/i,/^лип/i,/^се/i,/^в/i,/^ж/i,/^лис/i,/^г/i]},D8e={narrow:/^[нпвсч]/i,short:/^(нд|пн|вт|ср|чт|пт|сб)\.?/i,abbreviated:/^(нед|пон|вів|сер|че?тв|птн?|суб)\.?/i,wide:/^(неділ[яі]|понеділ[ок][ка]|вівтор[ок][ка]|серед[аи]|четвер(га)?|п\W*?ятниц[яі]|субот[аи])/i},R8e={narrow:[/^н/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^н/i,/^п[он]/i,/^в/i,/^с[ер]/i,/^ч/i,/^п\W*?[ят]/i,/^с[уб]/i]},U8e={narrow:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,abbreviated:/^([дп]п|півн\.?|пол\.?|ранок|ранку|день|дня|веч\.?|ніч|ночі)/i,wide:/^([дп]п|північ|полудень|ранок|ранку|день|дня|вечір|вечора|ніч|ночі)/i},O8e={any:{am:/^дп/i,pm:/^пп/i,midnight:/^півн/i,noon:/^пол/i,morning:/^р/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},H8e={ordinalNumber:Nt({matchPattern:E8e,parsePattern:B8e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:T8e,defaultMatchWidth:"wide",parsePatterns:k8e,defaultParseWidth:"any"}),quarter:X({matchPatterns:I8e,defaultMatchWidth:"wide",parsePatterns:L8e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:F8e,defaultMatchWidth:"wide",parsePatterns:N8e,defaultParseWidth:"any"}),day:X({matchPatterns:D8e,defaultMatchWidth:"wide",parsePatterns:R8e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:U8e,defaultMatchWidth:"wide",parsePatterns:O8e,defaultParseWidth:"any"})},W8e={code:"uk",formatDistance:c8e,formatLong:A8e,formatRelative:v8e,localize:P8e,match:H8e,options:{weekStartsOn:1,firstWeekContainsDate:1}},Q8e={lessThanXSeconds:{one:"sekunddan kam",other:"{{count}} sekunddan kam"},xSeconds:{one:"1 sekund",other:"{{count}} sekund"},halfAMinute:"yarim minut",lessThanXMinutes:{one:"bir minutdan kam",other:"{{count}} minutdan kam"},xMinutes:{one:"1 minut",other:"{{count}} minut"},aboutXHours:{one:"tahminan 1 soat",other:"tahminan {{count}} soat"},xHours:{one:"1 soat",other:"{{count}} soat"},xDays:{one:"1 kun",other:"{{count}} kun"},aboutXWeeks:{one:"tahminan 1 hafta",other:"tahminan {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"tahminan 1 oy",other:"tahminan {{count}} oy"},xMonths:{one:"1 oy",other:"{{count}} oy"},aboutXYears:{one:"tahminan 1 yil",other:"tahminan {{count}} yil"},xYears:{one:"1 yil",other:"{{count}} yil"},overXYears:{one:"1 yildan ko'p",other:"{{count}} yildan ko'p"},almostXYears:{one:"deyarli 1 yil",other:"deyarli {{count}} yil"}},$8e=(n,e,t)=>{let r;const i=Q8e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+" dan keyin":r+" oldin":r},j8e={full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},z8e={full:"h:mm:ss zzzz",long:"h:mm:ss z",medium:"h:mm:ss",short:"h:mm"},V8e={any:"{{date}}, {{time}}"},G8e={date:we({formats:j8e,defaultWidth:"full"}),time:we({formats:z8e,defaultWidth:"full"}),dateTime:we({formats:V8e,defaultWidth:"any"})},K8e={lastWeek:"'oldingi' eeee p 'da'",yesterday:"'kecha' p 'da'",today:"'bugun' p 'da'",tomorrow:"'ertaga' p 'da'",nextWeek:"eeee p 'da'",other:"P"},q8e=(n,e,t,r)=>K8e[n],X8e={narrow:["M.A","M."],abbreviated:["M.A","M."],wide:["Miloddan Avvalgi","Milodiy"]},Y8e={narrow:["1","2","3","4"],abbreviated:["CH.1","CH.2","CH.3","CH.4"],wide:["1-chi chorak","2-chi chorak","3-chi chorak","4-chi chorak"]},J8e={narrow:["Y","F","M","A","M","I","I","A","S","O","N","D"],abbreviated:["Yan","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noy","Dek"],wide:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]},Z8e={narrow:["Y","D","S","CH","P","J","SH"],short:["Ya","Du","Se","Cho","Pa","Ju","Sha"],abbreviated:["Yak","Dush","Sesh","Chor","Pay","Jum","Shan"],wide:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"]},eVe={narrow:{am:"a",pm:"p",midnight:"y.t",noon:"p.",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},abbreviated:{am:"AM",pm:"PM",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},wide:{am:"a.m.",pm:"p.m.",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"}},tVe={narrow:{am:"a",pm:"p",midnight:"y.t",noon:"p.",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},abbreviated:{am:"AM",pm:"PM",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"},wide:{am:"a.m.",pm:"p.m.",midnight:"yarim tun",noon:"peshin",morning:"ertalab",afternoon:"tushdan keyin",evening:"kechqurun",night:"tun"}},nVe=(n,e)=>String(n),rVe={ordinalNumber:nVe,era:K({values:X8e,defaultWidth:"wide"}),quarter:K({values:Y8e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:J8e,defaultWidth:"wide"}),day:K({values:Z8e,defaultWidth:"wide"}),dayPeriod:K({values:eVe,defaultWidth:"wide",formattingValues:tVe,defaultFormattingWidth:"wide"})},iVe=/^(\d+)(chi)?/i,aVe=/\d+/i,sVe={narrow:/^(m\.a|m\.)/i,abbreviated:/^(m\.a\.?\s?m\.?)/i,wide:/^(miloddan avval|miloddan keyin)/i},oVe={any:[/^b/i,/^(a|c)/i]},cVe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](chi)? chorak/i},lVe={any:[/1/i,/2/i,/3/i,/4/i]},uVe={narrow:/^[yfmasond]/i,abbreviated:/^(yan|fev|mar|apr|may|iyun|iyul|avg|sen|okt|noy|dek)/i,wide:/^(yanvar|fevral|mart|aprel|may|iyun|iyul|avgust|sentabr|oktabr|noyabr|dekabr)/i},dVe={narrow:[/^y/i,/^f/i,/^m/i,/^a/i,/^m/i,/^i/i,/^i/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ya/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^iyun/i,/^iyul/i,/^av/i,/^s/i,/^o/i,/^n/i,/^d/i]},AVe={narrow:/^[ydschj]/i,short:/^(ya|du|se|cho|pa|ju|sha)/i,abbreviated:/^(yak|dush|sesh|chor|pay|jum|shan)/i,wide:/^(yakshanba|dushanba|seshanba|chorshanba|payshanba|juma|shanba)/i},hVe={narrow:[/^y/i,/^d/i,/^s/i,/^ch/i,/^p/i,/^j/i,/^sh/i],any:[/^ya/i,/^d/i,/^se/i,/^ch/i,/^p/i,/^j/i,/^sh/i]},fVe={narrow:/^(a|p|y\.t|p| (ertalab|tushdan keyin|kechqurun|tun))/i,any:/^([ap]\.?\s?m\.?|yarim tun|peshin| (ertalab|tushdan keyin|kechqurun|tun))/i},mVe={any:{am:/^a/i,pm:/^p/i,midnight:/^y\.t/i,noon:/^pe/i,morning:/ertalab/i,afternoon:/tushdan keyin/i,evening:/kechqurun/i,night:/tun/i}},pVe={ordinalNumber:Nt({matchPattern:iVe,parsePattern:aVe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:sVe,defaultMatchWidth:"wide",parsePatterns:oVe,defaultParseWidth:"any"}),quarter:X({matchPatterns:cVe,defaultMatchWidth:"wide",parsePatterns:lVe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:uVe,defaultMatchWidth:"wide",parsePatterns:dVe,defaultParseWidth:"any"}),day:X({matchPatterns:AVe,defaultMatchWidth:"wide",parsePatterns:hVe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:fVe,defaultMatchWidth:"any",parsePatterns:mVe,defaultParseWidth:"any"})},gVe={code:"uz",formatDistance:$8e,formatLong:G8e,formatRelative:q8e,localize:rVe,match:pVe,options:{weekStartsOn:1,firstWeekContainsDate:1}},vVe={lessThanXSeconds:{one:"1 сониядан кам",other:"{{count}} сониядан кам"},xSeconds:{one:"1 сония",other:"{{count}} сония"},halfAMinute:"ярим дақиқа",lessThanXMinutes:{one:"1 дақиқадан кам",other:"{{count}} дақиқадан кам"},xMinutes:{one:"1 дақиқа",other:"{{count}} дақиқа"},aboutXHours:{one:"тахминан 1 соат",other:"тахминан {{count}} соат"},xHours:{one:"1 соат",other:"{{count}} соат"},xDays:{one:"1 кун",other:"{{count}} кун"},aboutXWeeks:{one:"тахминан 1 хафта",other:"тахминан {{count}} хафта"},xWeeks:{one:"1 хафта",other:"{{count}} хафта"},aboutXMonths:{one:"тахминан 1 ой",other:"тахминан {{count}} ой"},xMonths:{one:"1 ой",other:"{{count}} ой"},aboutXYears:{one:"тахминан 1 йил",other:"тахминан {{count}} йил"},xYears:{one:"1 йил",other:"{{count}} йил"},overXYears:{one:"1 йилдан кўп",other:"{{count}} йилдан кўп"},almostXYears:{one:"деярли 1 йил",other:"деярли {{count}} йил"}},yVe=(n,e,t)=>{let r;const i=vVe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+"дан кейин":r+" олдин":r},wVe={full:"EEEE, do MMMM, y",long:"do MMMM, y",medium:"d MMM, y",short:"dd/MM/yyyy"},bVe={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},_Ve={any:"{{date}}, {{time}}"},xVe={date:we({formats:wVe,defaultWidth:"full"}),time:we({formats:bVe,defaultWidth:"full"}),dateTime:we({formats:_Ve,defaultWidth:"any"})},MVe={lastWeek:"'ўтган' eeee p 'да'",yesterday:"'кеча' p 'да'",today:"'бугун' p 'да'",tomorrow:"'эртага' p 'да'",nextWeek:"eeee p 'да'",other:"P"},SVe=(n,e,t,r)=>MVe[n],CVe={narrow:["М.А","М"],abbreviated:["М.А","М"],wide:["Милоддан Аввалги","Милодий"]},PVe={narrow:["1","2","3","4"],abbreviated:["1-чор.","2-чор.","3-чор.","4-чор."],wide:["1-чорак","2-чорак","3-чорак","4-чорак"]},EVe={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],wide:["январ","феврал","март","апрел","май","июн","июл","август","сентабр","октабр","ноябр","декабр"]},BVe={narrow:["Я","Д","С","Ч","П","Ж","Ш"],short:["як","ду","се","чо","па","жу","ша"],abbreviated:["якш","душ","сеш","чор","пай","жум","шан"],wide:["якшанба","душанба","сешанба","чоршанба","пайшанба","жума","шанба"]},TVe={any:{am:"П.О.",pm:"П.К.",midnight:"ярим тун",noon:"пешин",morning:"эрталаб",afternoon:"пешиндан кейин",evening:"кечаси",night:"тун"}},kVe={any:{am:"П.О.",pm:"П.К.",midnight:"ярим тун",noon:"пешин",morning:"эрталаб",afternoon:"пешиндан кейин",evening:"кечаси",night:"тун"}},IVe=(n,e)=>String(n),LVe={ordinalNumber:IVe,era:K({values:CVe,defaultWidth:"wide"}),quarter:K({values:PVe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:EVe,defaultWidth:"wide"}),day:K({values:BVe,defaultWidth:"wide"}),dayPeriod:K({values:TVe,defaultWidth:"any",formattingValues:kVe,defaultFormattingWidth:"any"})},FVe=/^(\d+)(чи)?/i,NVe=/\d+/i,DVe={narrow:/^(м\.а|м\.)/i,abbreviated:/^(м\.а|м\.)/i,wide:/^(милоддан аввал|милоддан кейин)/i},RVe={any:[/^м/i,/^а/i]},UVe={narrow:/^[1234]/i,abbreviated:/^[1234]-чор./i,wide:/^[1234]-чорак/i},OVe={any:[/1/i,/2/i,/3/i,/4/i]},HVe={narrow:/^[яфмамииасонд]/i,abbreviated:/^(янв|фев|мар|апр|май|июн|июл|авг|сен|окт|ноя|дек)/i,wide:/^(январ|феврал|март|апрел|май|июн|июл|август|сентабр|октабр|ноябр|декабр)/i},WVe={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^д/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^май/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},QVe={narrow:/^[ядсчпжш]/i,short:/^(як|ду|се|чо|па|жу|ша)/i,abbreviated:/^(якш|душ|сеш|чор|пай|жум|шан)/i,wide:/^(якшанба|душанба|сешанба|чоршанба|пайшанба|жума|шанба)/i},$Ve={narrow:[/^я/i,/^д/i,/^с/i,/^ч/i,/^п/i,/^ж/i,/^ш/i],any:[/^як/i,/^ду/i,/^се/i,/^чор/i,/^пай/i,/^жу/i,/^шан/i]},jVe={any:/^(п\.о\.|п\.к\.|ярим тун|пешиндан кейин|(эрталаб|пешиндан кейин|кечаси|тун))/i},zVe={any:{am:/^п\.о\./i,pm:/^п\.к\./i,midnight:/^ярим тун/i,noon:/^пешиндан кейин/i,morning:/эрталаб/i,afternoon:/пешиндан кейин/i,evening:/кечаси/i,night:/тун/i}},VVe={ordinalNumber:Nt({matchPattern:FVe,parsePattern:NVe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:DVe,defaultMatchWidth:"wide",parsePatterns:RVe,defaultParseWidth:"any"}),quarter:X({matchPatterns:UVe,defaultMatchWidth:"wide",parsePatterns:OVe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:HVe,defaultMatchWidth:"wide",parsePatterns:WVe,defaultParseWidth:"any"}),day:X({matchPatterns:QVe,defaultMatchWidth:"wide",parsePatterns:$Ve,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:jVe,defaultMatchWidth:"any",parsePatterns:zVe,defaultParseWidth:"any"})},GVe={code:"uz-Cyrl",formatDistance:yVe,formatLong:xVe,formatRelative:SVe,localize:LVe,match:VVe,options:{weekStartsOn:1,firstWeekContainsDate:1}},KVe={lessThanXSeconds:{one:"dưới 1 giây",other:"dưới {{count}} giây"},xSeconds:{one:"1 giây",other:"{{count}} giây"},halfAMinute:"nửa phút",lessThanXMinutes:{one:"dưới 1 phút",other:"dưới {{count}} phút"},xMinutes:{one:"1 phút",other:"{{count}} phút"},aboutXHours:{one:"khoảng 1 giờ",other:"khoảng {{count}} giờ"},xHours:{one:"1 giờ",other:"{{count}} giờ"},xDays:{one:"1 ngày",other:"{{count}} ngày"},aboutXWeeks:{one:"khoảng 1 tuần",other:"khoảng {{count}} tuần"},xWeeks:{one:"1 tuần",other:"{{count}} tuần"},aboutXMonths:{one:"khoảng 1 tháng",other:"khoảng {{count}} tháng"},xMonths:{one:"1 tháng",other:"{{count}} tháng"},aboutXYears:{one:"khoảng 1 năm",other:"khoảng {{count}} năm"},xYears:{one:"1 năm",other:"{{count}} năm"},overXYears:{one:"hơn 1 năm",other:"hơn {{count}} năm"},almostXYears:{one:"gần 1 năm",other:"gần {{count}} năm"}},qVe=(n,e,t)=>{let r;const i=KVe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+" nữa":r+" trước":r},XVe={full:"EEEE, 'ngày' d MMMM 'năm' y",long:"'ngày' d MMMM 'năm' y",medium:"d MMM 'năm' y",short:"dd/MM/y"},YVe={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},JVe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},ZVe={date:we({formats:XVe,defaultWidth:"full"}),time:we({formats:YVe,defaultWidth:"full"}),dateTime:we({formats:JVe,defaultWidth:"full"})},e7e={lastWeek:"eeee 'tuần trước vào lúc' p",yesterday:"'hôm qua vào lúc' p",today:"'hôm nay vào lúc' p",tomorrow:"'ngày mai vào lúc' p",nextWeek:"eeee 'tới vào lúc' p",other:"P"},t7e=(n,e,t,r)=>e7e[n],n7e={narrow:["TCN","SCN"],abbreviated:["trước CN","sau CN"],wide:["trước Công Nguyên","sau Công Nguyên"]},r7e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["Quý 1","Quý 2","Quý 3","Quý 4"]},i7e={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["quý I","quý II","quý III","quý IV"]},a7e={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["Thg 1","Thg 2","Thg 3","Thg 4","Thg 5","Thg 6","Thg 7","Thg 8","Thg 9","Thg 10","Thg 11","Thg 12"],wide:["Tháng Một","Tháng Hai","Tháng Ba","Tháng Tư","Tháng Năm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng Chín","Tháng Mười","Tháng Mười Một","Tháng Mười Hai"]},s7e={narrow:["01","02","03","04","05","06","07","08","09","10","11","12"],abbreviated:["thg 1","thg 2","thg 3","thg 4","thg 5","thg 6","thg 7","thg 8","thg 9","thg 10","thg 11","thg 12"],wide:["tháng 01","tháng 02","tháng 03","tháng 04","tháng 05","tháng 06","tháng 07","tháng 08","tháng 09","tháng 10","tháng 11","tháng 12"]},o7e={narrow:["CN","T2","T3","T4","T5","T6","T7"],short:["CN","Th 2","Th 3","Th 4","Th 5","Th 6","Th 7"],abbreviated:["CN","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"],wide:["Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"]},c7e={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"}},l7e={narrow:{am:"am",pm:"pm",midnight:"nửa đêm",noon:"tr",morning:"sg",afternoon:"ch",evening:"tối",night:"đêm"},abbreviated:{am:"AM",pm:"PM",midnight:"nửa đêm",noon:"trưa",morning:"sáng",afternoon:"chiều",evening:"tối",night:"đêm"},wide:{am:"SA",pm:"CH",midnight:"nửa đêm",noon:"giữa trưa",morning:"vào buổi sáng",afternoon:"vào buổi chiều",evening:"vào buổi tối",night:"vào ban đêm"}},u7e=(n,e)=>{const t=Number(n),r=e==null?void 0:e.unit;if(r==="quarter")switch(t){case 1:return"I";case 2:return"II";case 3:return"III";case 4:return"IV"}else if(r==="day")switch(t){case 1:return"thứ 2";case 2:return"thứ 3";case 3:return"thứ 4";case 4:return"thứ 5";case 5:return"thứ 6";case 6:return"thứ 7";case 7:return"chủ nhật"}else{if(r==="week")return t===1?"thứ nhất":"thứ "+t;if(r==="dayOfYear")return t===1?"đầu tiên":"thứ "+t}return String(t)},d7e={ordinalNumber:u7e,era:K({values:n7e,defaultWidth:"wide"}),quarter:K({values:r7e,defaultWidth:"wide",formattingValues:i7e,defaultFormattingWidth:"wide",argumentCallback:n=>n-1}),month:K({values:a7e,defaultWidth:"wide",formattingValues:s7e,defaultFormattingWidth:"wide"}),day:K({values:o7e,defaultWidth:"wide"}),dayPeriod:K({values:c7e,defaultWidth:"wide",formattingValues:l7e,defaultFormattingWidth:"wide"})},A7e=/^(\d+)/i,h7e=/\d+/i,f7e={narrow:/^(tcn|scn)/i,abbreviated:/^(trước CN|sau CN)/i,wide:/^(trước Công Nguyên|sau Công Nguyên)/i},m7e={any:[/^t/i,/^s/i]},p7e={narrow:/^([1234]|i{1,3}v?)/i,abbreviated:/^q([1234]|i{1,3}v?)/i,wide:/^quý ([1234]|i{1,3}v?)/i},g7e={any:[/(1|i)$/i,/(2|ii)$/i,/(3|iii)$/i,/(4|iv)$/i]},v7e={narrow:/^(0?[2-9]|10|11|12|0?1)/i,abbreviated:/^thg[ _]?(0?[1-9](?!\d)|10|11|12)/i,wide:/^tháng ?(Một|Hai|Ba|Tư|Năm|Sáu|Bảy|Tám|Chín|Mười|Mười ?Một|Mười ?Hai|0?[1-9](?!\d)|10|11|12)/i},y7e={narrow:[/0?1$/i,/0?2/i,/3/,/4/,/5/,/6/,/7/,/8/,/9/,/10/,/11/,/12/],abbreviated:[/^thg[ _]?0?1(?!\d)/i,/^thg[ _]?0?2/i,/^thg[ _]?0?3/i,/^thg[ _]?0?4/i,/^thg[ _]?0?5/i,/^thg[ _]?0?6/i,/^thg[ _]?0?7/i,/^thg[ _]?0?8/i,/^thg[ _]?0?9/i,/^thg[ _]?10/i,/^thg[ _]?11/i,/^thg[ _]?12/i],wide:[/^tháng ?(Một|0?1(?!\d))/i,/^tháng ?(Hai|0?2)/i,/^tháng ?(Ba|0?3)/i,/^tháng ?(Tư|0?4)/i,/^tháng ?(Năm|0?5)/i,/^tháng ?(Sáu|0?6)/i,/^tháng ?(Bảy|0?7)/i,/^tháng ?(Tám|0?8)/i,/^tháng ?(Chín|0?9)/i,/^tháng ?(Mười|10)/i,/^tháng ?(Mười ?Một|11)/i,/^tháng ?(Mười ?Hai|12)/i]},w7e={narrow:/^(CN|T2|T3|T4|T5|T6|T7)/i,short:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,abbreviated:/^(CN|Th ?2|Th ?3|Th ?4|Th ?5|Th ?6|Th ?7)/i,wide:/^(Chủ ?Nhật|Chúa ?Nhật|thứ ?Hai|thứ ?Ba|thứ ?Tư|thứ ?Năm|thứ ?Sáu|thứ ?Bảy)/i},b7e={narrow:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],short:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],abbreviated:[/CN/i,/2/i,/3/i,/4/i,/5/i,/6/i,/7/i],wide:[/(Chủ|Chúa) ?Nhật/i,/Hai/i,/Ba/i,/Tư/i,/Năm/i,/Sáu/i,/Bảy/i]},_7e={narrow:/^(a|p|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,abbreviated:/^(am|pm|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i,wide:/^(ch[^i]*|sa|nửa đêm|trưa|(giờ) (sáng|chiều|tối|đêm))/i},x7e={any:{am:/^(a|sa)/i,pm:/^(p|ch[^i]*)/i,midnight:/nửa đêm/i,noon:/trưa/i,morning:/sáng/i,afternoon:/chiều/i,evening:/tối/i,night:/^đêm/i}},M7e={ordinalNumber:Nt({matchPattern:A7e,parsePattern:h7e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:f7e,defaultMatchWidth:"wide",parsePatterns:m7e,defaultParseWidth:"any"}),quarter:X({matchPatterns:p7e,defaultMatchWidth:"wide",parsePatterns:g7e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:v7e,defaultMatchWidth:"wide",parsePatterns:y7e,defaultParseWidth:"wide"}),day:X({matchPatterns:w7e,defaultMatchWidth:"wide",parsePatterns:b7e,defaultParseWidth:"wide"}),dayPeriod:X({matchPatterns:_7e,defaultMatchWidth:"wide",parsePatterns:x7e,defaultParseWidth:"any"})},S7e={code:"vi",formatDistance:qVe,formatLong:ZVe,formatRelative:t7e,localize:d7e,match:M7e,options:{weekStartsOn:1,firstWeekContainsDate:1}},C7e={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},P7e=(n,e,t)=>{let r;const i=C7e[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+"内":r+"前":r},E7e={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},B7e={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},T7e={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},k7e={date:we({formats:E7e,defaultWidth:"full"}),time:we({formats:B7e,defaultWidth:"full"}),dateTime:we({formats:T7e,defaultWidth:"full"})};function HI(n,e,t){const r="eeee p";return vi(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}const I7e={lastWeek:HI,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:HI,other:"PP p"},L7e=(n,e,t,r)=>{const i=I7e[n];return typeof i=="function"?i(e,t,r):i},F7e={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},N7e={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},D7e={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},R7e={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},U7e={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},O7e={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},H7e=(n,e)=>{const t=Number(n);switch(e==null?void 0:e.unit){case"date":return t.toString()+"日";case"hour":return t.toString()+"时";case"minute":return t.toString()+"分";case"second":return t.toString()+"秒";default:return"第 "+t.toString()}},W7e={ordinalNumber:H7e,era:K({values:F7e,defaultWidth:"wide"}),quarter:K({values:N7e,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:D7e,defaultWidth:"wide"}),day:K({values:R7e,defaultWidth:"wide"}),dayPeriod:K({values:U7e,defaultWidth:"wide",formattingValues:O7e,defaultFormattingWidth:"wide"})},Q7e=/^(第\s*)?\d+(日|时|分|秒)?/i,$7e=/\d+/i,j7e={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},z7e={any:[/^(前)/i,/^(公元)/i]},V7e={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},G7e={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},K7e={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},q7e={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},X7e={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Y7e={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},J7e={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Z7e={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},eGe={ordinalNumber:Nt({matchPattern:Q7e,parsePattern:$7e,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:j7e,defaultMatchWidth:"wide",parsePatterns:z7e,defaultParseWidth:"any"}),quarter:X({matchPatterns:V7e,defaultMatchWidth:"wide",parsePatterns:G7e,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:K7e,defaultMatchWidth:"wide",parsePatterns:q7e,defaultParseWidth:"any"}),day:X({matchPatterns:X7e,defaultMatchWidth:"wide",parsePatterns:Y7e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:J7e,defaultMatchWidth:"any",parsePatterns:Z7e,defaultParseWidth:"any"})},tGe={code:"zh-CN",formatDistance:P7e,formatLong:k7e,formatRelative:L7e,localize:W7e,match:eGe,options:{weekStartsOn:1,firstWeekContainsDate:4}},nGe={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},rGe=(n,e,t)=>{let r;const i=nGe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+"內":r+"前":r},iGe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},aGe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},sGe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},oGe={date:we({formats:iGe,defaultWidth:"full"}),time:we({formats:aGe,defaultWidth:"full"}),dateTime:we({formats:sGe,defaultWidth:"full"})},cGe={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},lGe=(n,e,t,r)=>cGe[n],uGe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},dGe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},AGe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},hGe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},fGe={narrow:{am:"上",pm:"下",midnight:"午夜",noon:"晌",morning:"早",afternoon:"午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"},wide:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"}},mGe={narrow:{am:"上",pm:"下",midnight:"午夜",noon:"晌",morning:"早",afternoon:"午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"},wide:{am:"上午",pm:"下午",midnight:"午夜",noon:"中午",morning:"上午",afternoon:"下午",evening:"晚上",night:"夜晚"}},pGe=(n,e)=>{const t=Number(n);switch(e==null?void 0:e.unit){case"date":return t+"日";case"hour":return t+"時";case"minute":return t+"分";case"second":return t+"秒";default:return"第 "+t}},gGe={ordinalNumber:pGe,era:K({values:uGe,defaultWidth:"wide"}),quarter:K({values:dGe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:AGe,defaultWidth:"wide"}),day:K({values:hGe,defaultWidth:"wide"}),dayPeriod:K({values:fGe,defaultWidth:"wide",formattingValues:mGe,defaultFormattingWidth:"wide"})},vGe=/^(第\s*)?\d+(日|時|分|秒)?/i,yGe=/\d+/i,wGe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},bGe={any:[/^(前)/i,/^(公元)/i]},_Ge={narrow:/^[1234]/i,abbreviated:/^第[一二三四]季/i,wide:/^第[一二三四]季度/i},xGe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},MGe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},SGe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},CGe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},PGe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},EGe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},BGe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},TGe={ordinalNumber:Nt({matchPattern:vGe,parsePattern:yGe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:wGe,defaultMatchWidth:"wide",parsePatterns:bGe,defaultParseWidth:"any"}),quarter:X({matchPatterns:_Ge,defaultMatchWidth:"wide",parsePatterns:xGe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:MGe,defaultMatchWidth:"wide",parsePatterns:SGe,defaultParseWidth:"any"}),day:X({matchPatterns:CGe,defaultMatchWidth:"wide",parsePatterns:PGe,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:EGe,defaultMatchWidth:"any",parsePatterns:BGe,defaultParseWidth:"any"})},kGe={code:"zh-HK",formatDistance:rGe,formatLong:oGe,formatRelative:lGe,localize:gGe,match:TGe,options:{weekStartsOn:0,firstWeekContainsDate:1}},IGe={lessThanXSeconds:{one:"少於 1 秒",other:"少於 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分鐘",lessThanXMinutes:{one:"少於 1 分鐘",other:"少於 {{count}} 分鐘"},xMinutes:{one:"1 分鐘",other:"{{count}} 分鐘"},xHours:{one:"1 小時",other:"{{count}} 小時"},aboutXHours:{one:"大約 1 小時",other:"大約 {{count}} 小時"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大約 1 個星期",other:"大約 {{count}} 個星期"},xWeeks:{one:"1 個星期",other:"{{count}} 個星期"},aboutXMonths:{one:"大約 1 個月",other:"大約 {{count}} 個月"},xMonths:{one:"1 個月",other:"{{count}} 個月"},aboutXYears:{one:"大約 1 年",other:"大約 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超過 1 年",other:"超過 {{count}} 年"},almostXYears:{one:"將近 1 年",other:"將近 {{count}} 年"}},LGe=(n,e,t)=>{let r;const i=IGe[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?r+"內":r+"前":r},FGe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},NGe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},DGe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},RGe={date:we({formats:FGe,defaultWidth:"full"}),time:we({formats:NGe,defaultWidth:"full"}),dateTime:we({formats:DGe,defaultWidth:"full"})},UGe={lastWeek:"'上個'eeee p",yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:"'下個'eeee p",other:"P"},OGe=(n,e,t,r)=>UGe[n],HGe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},WGe={narrow:["1","2","3","4"],abbreviated:["第一刻","第二刻","第三刻","第四刻"],wide:["第一刻鐘","第二刻鐘","第三刻鐘","第四刻鐘"]},QGe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},$Ge={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["週日","週一","週二","週三","週四","週五","週六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},jGe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},zGe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜間"}},VGe=(n,e)=>{const t=Number(n);switch(e==null?void 0:e.unit){case"date":return t+"日";case"hour":return t+"時";case"minute":return t+"分";case"second":return t+"秒";default:return"第 "+t}},GGe={ordinalNumber:VGe,era:K({values:HGe,defaultWidth:"wide"}),quarter:K({values:WGe,defaultWidth:"wide",argumentCallback:n=>n-1}),month:K({values:QGe,defaultWidth:"wide"}),day:K({values:$Ge,defaultWidth:"wide"}),dayPeriod:K({values:jGe,defaultWidth:"wide",formattingValues:zGe,defaultFormattingWidth:"wide"})},KGe=/^(第\s*)?\d+(日|時|分|秒)?/i,qGe=/\d+/i,XGe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},YGe={any:[/^(前)/i,/^(公元)/i]},JGe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻鐘/i},ZGe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},e9e={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},t9e={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},n9e={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^週[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},r9e={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},i9e={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨)/i},a9e={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},s9e={ordinalNumber:Nt({matchPattern:KGe,parsePattern:qGe,valueCallback:n=>parseInt(n,10)}),era:X({matchPatterns:XGe,defaultMatchWidth:"wide",parsePatterns:YGe,defaultParseWidth:"any"}),quarter:X({matchPatterns:JGe,defaultMatchWidth:"wide",parsePatterns:ZGe,defaultParseWidth:"any",valueCallback:n=>n+1}),month:X({matchPatterns:e9e,defaultMatchWidth:"wide",parsePatterns:t9e,defaultParseWidth:"any"}),day:X({matchPatterns:n9e,defaultMatchWidth:"wide",parsePatterns:r9e,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:i9e,defaultMatchWidth:"any",parsePatterns:a9e,defaultParseWidth:"any"})},o9e={code:"zh-TW",formatDistance:LGe,formatLong:RGe,formatRelative:OGe,localize:GGe,match:s9e,options:{weekStartsOn:1,firstWeekContainsDate:4}},c9e=Object.freeze(Object.defineProperty({__proto__:null,af:Sle,ar:tue,arDZ:kue,arEG:ode,arMA:Rde,arSA:hAe,arTN:$Ae,az:whe,be:nfe,beTarask:Ufe,bg:yme,bn:Yme,bs:Epe,ca:age,ckb:Nge,cs:h1e,cy:$1e,da:yve,de:jve,deAT:Zve,el:Bye,enAU:Fye,enCA:Wye,enGB:zye,enIE:Vye,enIN:Yye,enNZ:nwe,enUS:gV,enZA:owe,eo:Dwe,es:hbe,et:Hbe,eu:g0e,faIR:G0e,fi:x_e,fr:q_e,frCA:exe,frCH:oxe,fy:Dxe,gd:A2e,gl:$2e,gu:yMe,he:XMe,hi:PSe,hr:iCe,ht:LCe,hu:APe,hy:QPe,id:vEe,is:KEe,it:_Be,itCH:PBe,ja:rTe,jaHira:LTe,ka:lke,kk:Qke,km:vIe,kn:KIe,ko:M5e,lb:iLe,lt:RLe,lv:pFe,mk:GFe,mn:MNe,ms:e3e,mt:T3e,nb:a4e,nl:F4e,nlBE:lDe,nn:ODe,oc:mRe,pl:JRe,pt:EUe,ptBR:iOe,ro:FOe,ru:hHe,se:QHe,sk:MWe,sl:nQe,sq:IQe,sr:l$e,srLatn:H$e,sv:gje,ta:Kje,te:x6e,th:Z6e,tr:Bze,ug:a8e,uk:W8e,uz:gVe,uzCyrl:GVe,vi:S7e,zhCN:tGe,zhHK:kGe,zhTW:o9e},Symbol.toStringTag,{value:"Module"})),xU=te.createContext(null);function ob(){const n=te.useContext(xU);if(!n)throw new Error("useCarousel must be used within a <Carousel />");return n}const MU=te.forwardRef(({orientation:n="horizontal",opts:e,setApi:t,plugins:r,className:i,children:a,...s},o)=>{const[c,l]=o8({...e,axis:n==="horizontal"?"x":"y"},r),[u,A]=te.useState(!1),[f,h]=te.useState(!1),g=te.useCallback(S=>{S&&(A(S.canScrollPrev()),h(S.canScrollNext()))},[]),y=te.useCallback(()=>{l==null||l.scrollPrev()},[l]),w=te.useCallback(()=>{l==null||l.scrollNext()},[l]),v=te.useCallback(S=>{S.key==="ArrowLeft"?(S.preventDefault(),y()):S.key==="ArrowRight"&&(S.preventDefault(),w())},[y,w]);return te.useEffect(()=>{!l||!t||t(l)},[l,t]),te.useEffect(()=>{if(l)return g(l),l.on("reInit",g),l.on("select",g),()=>{l==null||l.off("select",g)}},[l,g]),R.jsx(xU.Provider,{value:{carouselRef:c,api:l,opts:e,orientation:n||((e==null?void 0:e.axis)==="y"?"vertical":"horizontal"),scrollPrev:y,scrollNext:w,canScrollPrev:u,canScrollNext:f},children:R.jsx("div",{ref:o,onKeyDownCapture:v,className:On("relative",i),role:"region","aria-roledescription":"carousel",...s,children:a})})});MU.displayName="Carousel";const SU=te.forwardRef(({className:n,...e},t)=>{const{carouselRef:r,orientation:i}=ob();return R.jsx("div",{ref:r,className:"overflow-hidden",children:R.jsx("div",{ref:t,className:On("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",n),...e})})});SU.displayName="CarouselContent";const CU=te.forwardRef(({className:n,...e},t)=>{const{orientation:r}=ob();return R.jsx("div",{ref:t,role:"group","aria-roledescription":"slide",className:On("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",n),...e})});CU.displayName="CarouselItem";const PU=te.forwardRef(({className:n,variant:e="outline",size:t="icon",...r},i)=>{const{orientation:a,scrollPrev:s,canScrollPrev:o}=ob();return R.jsxs(Kl,{ref:i,variant:e,size:t,className:On("absolute  h-8 w-8 rounded-full",a==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!o,onClick:s,...r,children:[R.jsx(wp,{className:"h-4 w-4"}),R.jsx("span",{className:"sr-only",children:"Previous slide"})]})});PU.displayName="CarouselPrevious";const EU=te.forwardRef(({className:n,variant:e="outline",size:t="icon",...r},i)=>{const{orientation:a,scrollNext:s,canScrollNext:o}=ob();return R.jsxs(Kl,{ref:i,variant:e,size:t,className:On("absolute h-8 w-8 rounded-full",a==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!o,onClick:s,...r,children:[R.jsx(qj,{className:"h-4 w-4"}),R.jsx("span",{className:"sr-only",children:"Next slide"})]})});EU.displayName="CarouselNext";const l9e=Object.freeze(Object.defineProperty({__proto__:null,Carousel:MU,CarouselContent:SU,CarouselItem:CU,CarouselNext:EU,CarouselPrevious:PU},Symbol.toStringTag,{value:"Module"}));var YC="ContextMenu",[u9e]=cS(YC,[oS]),Ya=oS(),[d9e,BU]=u9e(YC),TU=n=>{const{__scopeContextMenu:e,children:t,onOpenChange:r,dir:i,modal:a=!0}=n,[s,o]=te.useState(!1),c=Ya(e),l=Eu(r),u=te.useCallback(A=>{o(A),l(A)},[l]);return R.jsx(d9e,{scope:e,open:s,onOpenChange:u,modal:a,children:R.jsx(HF,{...c,dir:i,open:s,onOpenChange:u,modal:a,children:t})})};TU.displayName=YC;var kU="ContextMenuTrigger",IU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,disabled:r=!1,...i}=n,a=BU(kU,t),s=Ya(t),o=te.useRef({x:0,y:0}),c=te.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...o.current})}),l=te.useRef(0),u=te.useCallback(()=>window.clearTimeout(l.current),[]),A=f=>{o.current={x:f.clientX,y:f.clientY},a.onOpenChange(!0)};return te.useEffect(()=>u,[u]),te.useEffect(()=>void(r&&u()),[r,u]),R.jsxs(R.Fragment,{children:[R.jsx(zF,{...s,virtualRef:c}),R.jsx(Gs.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...i,ref:e,style:{WebkitTouchCallout:"none",...n.style},onContextMenu:r?n.onContextMenu:Pr(n.onContextMenu,f=>{u(),A(f),f.preventDefault()}),onPointerDown:r?n.onPointerDown:Pr(n.onPointerDown,v1(f=>{u(),l.current=window.setTimeout(()=>A(f),700)})),onPointerMove:r?n.onPointerMove:Pr(n.onPointerMove,v1(u)),onPointerCancel:r?n.onPointerCancel:Pr(n.onPointerCancel,v1(u)),onPointerUp:r?n.onPointerUp:Pr(n.onPointerUp,v1(u))})]})});IU.displayName=kU;var A9e="ContextMenuPortal",LU=n=>{const{__scopeContextMenu:e,...t}=n,r=Ya(e);return R.jsx(QF,{...r,...t})};LU.displayName=A9e;var FU="ContextMenuContent",NU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=BU(FU,t),a=Ya(t),s=te.useRef(!1);return R.jsx(KF,{...a,...r,ref:e,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:o=>{var c;(c=n.onCloseAutoFocus)==null||c.call(n,o),!o.defaultPrevented&&s.current&&o.preventDefault(),s.current=!1},onInteractOutside:o=>{var c;(c=n.onInteractOutside)==null||c.call(n,o),!o.defaultPrevented&&!i.modal&&(s.current=!0)},style:{...n.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});NU.displayName=FU;var h9e="ContextMenuGroup",DU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx(WF,{...i,...r,ref:e})});DU.displayName=h9e;var f9e="ContextMenuLabel",RU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx(XF,{...i,...r,ref:e})});RU.displayName=f9e;var m9e="ContextMenuItem",UU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx(qF,{...i,...r,ref:e})});UU.displayName=m9e;var p9e="ContextMenuCheckboxItem",OU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx(VF,{...i,...r,ref:e})});OU.displayName=p9e;var g9e="ContextMenuRadioGroup",HU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx($F,{...i,...r,ref:e})});HU.displayName=g9e;var v9e="ContextMenuRadioItem",WU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx(YF,{...i,...r,ref:e})});WU.displayName=v9e;var y9e="ContextMenuItemIndicator",QU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx(GF,{...i,...r,ref:e})});QU.displayName=y9e;var w9e="ContextMenuSeparator",$U=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx(JF,{...i,...r,ref:e})});$U.displayName=w9e;var b9e="ContextMenuArrow",_9e=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx(tN,{...i,...r,ref:e})});_9e.displayName=b9e;var jU="ContextMenuSub",zU=n=>{const{__scopeContextMenu:e,children:t,onOpenChange:r,open:i,defaultOpen:a}=n,s=Ya(e),[o,c]=cg({prop:i,defaultProp:a??!1,onChange:r,caller:jU});return R.jsx(jF,{...s,open:o,onOpenChange:c,children:t})};zU.displayName=jU;var x9e="ContextMenuSubTrigger",VU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx(eN,{...i,...r,ref:e})});VU.displayName=x9e;var M9e="ContextMenuSubContent",GU=te.forwardRef((n,e)=>{const{__scopeContextMenu:t,...r}=n,i=Ya(t);return R.jsx(ZF,{...i,...r,ref:e,style:{...n.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});GU.displayName=M9e;function v1(n){return e=>e.pointerType!=="mouse"?n(e):void 0}var S9e=TU,C9e=IU,KU=LU,qU=NU,P9e=DU,XU=RU,YU=UU,JU=OU,E9e=HU,ZU=WU,eO=QU,tO=$U,B9e=zU,nO=VU,rO=GU;const T9e=S9e,k9e=C9e,I9e=P9e,L9e=KU,F9e=B9e,N9e=E9e,iO=te.forwardRef(({className:n,inset:e,children:t,...r},i)=>R.jsxs(nO,{ref:i,className:On("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e&&"pl-8",n),...r,children:[t,R.jsx(rN,{className:"ml-auto h-4 w-4"})]}));iO.displayName=nO.displayName;const aO=te.forwardRef(({className:n,...e},t)=>R.jsx(rO,{ref:t,className:On("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...e}));aO.displayName=rO.displayName;const sO=te.forwardRef(({className:n,...e},t)=>R.jsx(KU,{children:R.jsx(qU,{ref:t,className:On("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...e})}));sO.displayName=qU.displayName;const oO=te.forwardRef(({className:n,inset:e,...t},r)=>R.jsx(YU,{ref:r,className:On("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",n),...t}));oO.displayName=YU.displayName;const cO=te.forwardRef(({className:n,children:e,checked:t,...r},i)=>R.jsxs(JU,{ref:i,className:On("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:t,...r,children:[R.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:R.jsx(eO,{children:R.jsx(lS,{className:"h-4 w-4"})})}),e]}));cO.displayName=JU.displayName;const lO=te.forwardRef(({className:n,children:e,...t},r)=>R.jsxs(ZU,{ref:r,className:On("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...t,children:[R.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:R.jsx(eO,{children:R.jsx(nN,{className:"h-2 w-2 fill-current"})})}),e]}));lO.displayName=ZU.displayName;const uO=te.forwardRef(({className:n,inset:e,...t},r)=>R.jsx(XU,{ref:r,className:On("px-2 py-1.5 text-sm font-semibold text-foreground",e&&"pl-8",n),...t}));uO.displayName=XU.displayName;const dO=te.forwardRef(({className:n,...e},t)=>R.jsx(tO,{ref:t,className:On("-mx-1 my-1 h-px bg-border",n),...e}));dO.displayName=tO.displayName;const AO=({className:n,...e})=>R.jsx("span",{className:On("ml-auto text-xs tracking-widest text-muted-foreground",n),...e});AO.displayName="ContextMenuShortcut";const D9e=Object.freeze(Object.defineProperty({__proto__:null,ContextMenu:T9e,ContextMenuCheckboxItem:cO,ContextMenuContent:sO,ContextMenuGroup:I9e,ContextMenuItem:oO,ContextMenuLabel:uO,ContextMenuPortal:L9e,ContextMenuRadioGroup:N9e,ContextMenuRadioItem:lO,ContextMenuSeparator:dO,ContextMenuShortcut:AO,ContextMenuSub:F9e,ContextMenuSubContent:aO,ContextMenuSubTrigger:iO,ContextMenuTrigger:k9e},Symbol.toStringTag,{value:"Module"})),R9e=c8,hO=te.createContext({}),U9e=({...n})=>R.jsx(hO.Provider,{value:{name:n.name},children:R.jsx(l8,{...n})}),Mg=()=>{const n=te.useContext(hO),e=te.useContext(fO),{getFieldState:t,formState:r}=u8(),i=t(n.name,r);if(!n)throw new Error("useFormField should be used within <FormField>");const{id:a}=e;return{id:a,name:n.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...i}},fO=te.createContext({}),mO=te.forwardRef(({className:n,...e},t)=>{const r=te.useId();return R.jsx(fO.Provider,{value:{id:r},children:R.jsx("div",{ref:t,className:On("space-y-2",n),...e})})});mO.displayName="FormItem";const pO=te.forwardRef(({className:n,...e},t)=>{const{error:r,formItemId:i}=Mg();return R.jsx(Ol,{ref:t,className:On(r&&"text-destructive",n),htmlFor:i,...e})});pO.displayName="FormLabel";const gO=te.forwardRef(({...n},e)=>{const{error:t,formItemId:r,formDescriptionId:i,formMessageId:a}=Mg();return R.jsx(Mf,{ref:e,id:r,"aria-describedby":t?`${i} ${a}`:`${i}`,"aria-invalid":!!t,...n})});gO.displayName="FormControl";const vO=te.forwardRef(({className:n,...e},t)=>{const{formDescriptionId:r}=Mg();return R.jsx("p",{ref:t,id:r,className:On("text-sm text-muted-foreground",n),...e})});vO.displayName="FormDescription";const yO=te.forwardRef(({className:n,children:e,...t},r)=>{const{error:i,formMessageId:a}=Mg(),s=i?String(i==null?void 0:i.message):e;return s?R.jsx("p",{ref:r,id:a,className:On("text-sm font-medium text-destructive",n),...t,children:s}):null});yO.displayName="FormMessage";const O9e=Object.freeze(Object.defineProperty({__proto__:null,Form:R9e,FormControl:gO,FormDescription:vO,FormField:U9e,FormItem:mO,FormLabel:pO,FormMessage:yO,useFormField:Mg},Symbol.toStringTag,{value:"Module"}));var Sg="Menubar",[AM,H9e,W9e]=uS(Sg),[wO]=cS(Sg,[W9e,aN]),Ja=oS(),bO=aN(),[Q9e,JC]=wO(Sg),_O=te.forwardRef((n,e)=>{const{__scopeMenubar:t,value:r,onValueChange:i,defaultValue:a,loop:s=!0,dir:o,...c}=n,l=iN(o),u=bO(t),[A,f]=cg({prop:r,onChange:i,defaultProp:a??"",caller:Sg}),[h,g]=te.useState(null);return R.jsx(Q9e,{scope:t,value:A,onMenuOpen:te.useCallback(y=>{f(y),g(y)},[f]),onMenuClose:te.useCallback(()=>f(""),[f]),onMenuToggle:te.useCallback(y=>{f(w=>w?"":y),g(y)},[f]),dir:l,loop:s,children:R.jsx(AM.Provider,{scope:t,children:R.jsx(AM.Slot,{scope:t,children:R.jsx(Xj,{asChild:!0,...u,orientation:"horizontal",loop:s,dir:l,currentTabStopId:h,onCurrentTabStopIdChange:g,children:R.jsx(Gs.div,{role:"menubar",...c,ref:e})})})})})});_O.displayName=Sg;var ZC="MenubarMenu",[$9e,xO]=wO(ZC),MO=n=>{const{__scopeMenubar:e,value:t,...r}=n,i=Km(),a=t||i||"LEGACY_REACT_AUTO_VALUE",s=JC(ZC,e),o=Ja(e),c=te.useRef(null),l=te.useRef(!1),u=s.value===a;return te.useEffect(()=>{u||(l.current=!1)},[u]),R.jsx($9e,{scope:e,value:a,triggerId:Km(),triggerRef:c,contentId:Km(),wasKeyboardTriggerOpenRef:l,children:R.jsx(HF,{...o,open:u,onOpenChange:A=>{A||s.onMenuClose()},modal:!1,dir:s.dir,...r})})};MO.displayName=ZC;var hM="MenubarTrigger",SO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,disabled:r=!1,...i}=n,a=bO(t),s=Ja(t),o=JC(hM,t),c=xO(hM,t),l=te.useRef(null),u=xf(e,l,c.triggerRef),[A,f]=te.useState(!1),h=o.value===c.value;return R.jsx(AM.ItemSlot,{scope:t,value:c.value,disabled:r,children:R.jsx(Yj,{asChild:!0,...a,focusable:!r,tabStopId:c.value,children:R.jsx(zF,{asChild:!0,...s,children:R.jsx(Gs.button,{type:"button",role:"menuitem",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":h,"aria-controls":h?c.contentId:void 0,"data-highlighted":A?"":void 0,"data-state":h?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:u,onPointerDown:Pr(n.onPointerDown,g=>{!r&&g.button===0&&g.ctrlKey===!1&&(o.onMenuOpen(c.value),h||g.preventDefault())}),onPointerEnter:Pr(n.onPointerEnter,()=>{var y;!!o.value&&!h&&(o.onMenuOpen(c.value),(y=l.current)==null||y.focus())}),onKeyDown:Pr(n.onKeyDown,g=>{r||(["Enter"," "].includes(g.key)&&o.onMenuToggle(c.value),g.key==="ArrowDown"&&o.onMenuOpen(c.value),["Enter"," ","ArrowDown"].includes(g.key)&&(c.wasKeyboardTriggerOpenRef.current=!0,g.preventDefault()))}),onFocus:Pr(n.onFocus,()=>f(!0)),onBlur:Pr(n.onBlur,()=>f(!1))})})})})});SO.displayName=hM;var j9e="MenubarPortal",CO=n=>{const{__scopeMenubar:e,...t}=n,r=Ja(e);return R.jsx(QF,{...r,...t})};CO.displayName=j9e;var fM="MenubarContent",PO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,align:r="start",...i}=n,a=Ja(t),s=JC(fM,t),o=xO(fM,t),c=H9e(t),l=te.useRef(!1);return R.jsx(KF,{id:o.contentId,"aria-labelledby":o.triggerId,"data-radix-menubar-content":"",...a,...i,ref:e,align:r,onCloseAutoFocus:Pr(n.onCloseAutoFocus,u=>{var f;!!!s.value&&!l.current&&((f=o.triggerRef.current)==null||f.focus()),l.current=!1,u.preventDefault()}),onFocusOutside:Pr(n.onFocusOutside,u=>{const A=u.target;c().some(h=>{var g;return(g=h.ref.current)==null?void 0:g.contains(A)})&&u.preventDefault()}),onInteractOutside:Pr(n.onInteractOutside,()=>{l.current=!0}),onEntryFocus:u=>{o.wasKeyboardTriggerOpenRef.current||u.preventDefault()},onKeyDown:Pr(n.onKeyDown,u=>{if(["ArrowRight","ArrowLeft"].includes(u.key)){const A=u.target,f=A.hasAttribute("data-radix-menubar-subtrigger"),h=A.closest("[data-radix-menubar-content]")!==u.currentTarget,y=(s.dir==="rtl"?"ArrowRight":"ArrowLeft")===u.key;if(!y&&f||h&&y)return;let S=c().filter(F=>!F.disabled).map(F=>F.value);y&&S.reverse();const C=S.indexOf(o.value);S=s.loop?rKe(S,C+1):S.slice(C+1);const[M]=S;M&&s.onMenuOpen(M)}},{checkForDefaultPrevented:!1}),style:{...n.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});PO.displayName=fM;var z9e="MenubarGroup",EO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx(WF,{...i,...r,ref:e})});EO.displayName=z9e;var V9e="MenubarLabel",BO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx(XF,{...i,...r,ref:e})});BO.displayName=V9e;var G9e="MenubarItem",TO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx(qF,{...i,...r,ref:e})});TO.displayName=G9e;var K9e="MenubarCheckboxItem",kO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx(VF,{...i,...r,ref:e})});kO.displayName=K9e;var q9e="MenubarRadioGroup",IO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx($F,{...i,...r,ref:e})});IO.displayName=q9e;var X9e="MenubarRadioItem",LO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx(YF,{...i,...r,ref:e})});LO.displayName=X9e;var Y9e="MenubarItemIndicator",FO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx(GF,{...i,...r,ref:e})});FO.displayName=Y9e;var J9e="MenubarSeparator",NO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx(JF,{...i,...r,ref:e})});NO.displayName=J9e;var Z9e="MenubarArrow",eKe=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx(tN,{...i,...r,ref:e})});eKe.displayName=Z9e;var DO="MenubarSub",RO=n=>{const{__scopeMenubar:e,children:t,open:r,onOpenChange:i,defaultOpen:a}=n,s=Ja(e),[o,c]=cg({prop:r,defaultProp:a??!1,onChange:i,caller:DO});return R.jsx(jF,{...s,open:o,onOpenChange:c,children:t})};RO.displayName=DO;var tKe="MenubarSubTrigger",UO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx(eN,{"data-radix-menubar-subtrigger":"",...i,...r,ref:e})});UO.displayName=tKe;var nKe="MenubarSubContent",OO=te.forwardRef((n,e)=>{const{__scopeMenubar:t,...r}=n,i=Ja(t);return R.jsx(ZF,{...i,"data-radix-menubar-content":"",...r,ref:e,style:{...n.style,"--radix-menubar-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-menubar-content-available-width":"var(--radix-popper-available-width)","--radix-menubar-content-available-height":"var(--radix-popper-available-height)","--radix-menubar-trigger-width":"var(--radix-popper-anchor-width)","--radix-menubar-trigger-height":"var(--radix-popper-anchor-height)"}})});OO.displayName=nKe;function rKe(n,e){return n.map((t,r)=>n[(e+r)%n.length])}var HO=_O,iKe=MO,WO=SO,QO=CO,$O=PO,aKe=EO,jO=BO,zO=TO,VO=kO,sKe=IO,GO=LO,KO=FO,qO=NO,oKe=RO,XO=UO,YO=OO;const cKe=iKe,lKe=aKe,uKe=QO,dKe=oKe,AKe=sKe,JO=te.forwardRef(({className:n,...e},t)=>R.jsx(HO,{ref:t,className:On("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",n),...e}));JO.displayName=HO.displayName;const ZO=te.forwardRef(({className:n,...e},t)=>R.jsx(WO,{ref:t,className:On("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",n),...e}));ZO.displayName=WO.displayName;const eH=te.forwardRef(({className:n,inset:e,children:t,...r},i)=>R.jsxs(XO,{ref:i,className:On("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",e&&"pl-8",n),...r,children:[t,R.jsx(rN,{className:"ml-auto h-4 w-4"})]}));eH.displayName=XO.displayName;const tH=te.forwardRef(({className:n,...e},t)=>R.jsx(YO,{ref:t,className:On("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...e}));tH.displayName=YO.displayName;const nH=te.forwardRef(({className:n,align:e="start",alignOffset:t=-4,sideOffset:r=8,...i},a)=>R.jsx(QO,{children:R.jsx($O,{ref:a,align:e,alignOffset:t,sideOffset:r,className:On("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...i})}));nH.displayName=$O.displayName;const rH=te.forwardRef(({className:n,inset:e,...t},r)=>R.jsx(zO,{ref:r,className:On("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",n),...t}));rH.displayName=zO.displayName;const iH=te.forwardRef(({className:n,children:e,checked:t,...r},i)=>R.jsxs(VO,{ref:i,className:On("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:t,...r,children:[R.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:R.jsx(KO,{children:R.jsx(lS,{className:"h-4 w-4"})})}),e]}));iH.displayName=VO.displayName;const aH=te.forwardRef(({className:n,children:e,...t},r)=>R.jsxs(GO,{ref:r,className:On("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...t,children:[R.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:R.jsx(KO,{children:R.jsx(nN,{className:"h-2 w-2 fill-current"})})}),e]}));aH.displayName=GO.displayName;const sH=te.forwardRef(({className:n,inset:e,...t},r)=>R.jsx(jO,{ref:r,className:On("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",n),...t}));sH.displayName=jO.displayName;const oH=te.forwardRef(({className:n,...e},t)=>R.jsx(qO,{ref:t,className:On("-mx-1 my-1 h-px bg-muted",n),...e}));oH.displayName=qO.displayName;const cH=({className:n,...e})=>R.jsx("span",{className:On("ml-auto text-xs tracking-widest text-muted-foreground",n),...e});cH.displayname="MenubarShortcut";const hKe=Object.freeze(Object.defineProperty({__proto__:null,Menubar:JO,MenubarCheckboxItem:iH,MenubarContent:nH,MenubarGroup:lKe,MenubarItem:rH,MenubarLabel:sH,MenubarMenu:cKe,MenubarPortal:uKe,MenubarRadioGroup:AKe,MenubarRadioItem:aH,MenubarSeparator:oH,MenubarShortcut:cH,MenubarSub:dKe,MenubarSubContent:tH,MenubarSubTrigger:eH,MenubarTrigger:ZO},Symbol.toStringTag,{value:"Module"}));var $A="NavigationMenu",[eP,lH,fKe]=uS($A),[mM,mKe,pKe]=uS($A),[tP]=cS($A,[fKe,pKe]),[gKe,Go]=tP($A),[vKe,yKe]=tP($A),uH=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,value:r,onValueChange:i,defaultValue:a,delayDuration:s=200,skipDelayDuration:o=300,orientation:c="horizontal",dir:l,...u}=n,[A,f]=te.useState(null),h=xf(e,T=>f(T)),g=iN(l),y=te.useRef(0),w=te.useRef(0),v=te.useRef(0),[S,C]=te.useState(!0),[M,F]=cg({prop:r,onChange:T=>{const P=T!=="",k=o>0;P?(window.clearTimeout(v.current),k&&C(!1)):(window.clearTimeout(v.current),v.current=window.setTimeout(()=>C(!0),o)),i==null||i(T)},defaultProp:a??"",caller:$A}),D=te.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>F(""),150)},[F]),U=te.useCallback(T=>{window.clearTimeout(w.current),F(T)},[F]),O=te.useCallback(T=>{M===T?window.clearTimeout(w.current):y.current=window.setTimeout(()=>{window.clearTimeout(w.current),F(T)},s)},[M,F,s]);return te.useEffect(()=>()=>{window.clearTimeout(y.current),window.clearTimeout(w.current),window.clearTimeout(v.current)},[]),R.jsx(dH,{scope:t,isRootMenu:!0,value:M,dir:g,orientation:c,rootNavigationMenu:A,onTriggerEnter:T=>{window.clearTimeout(y.current),S?O(T):U(T)},onTriggerLeave:()=>{window.clearTimeout(y.current),D()},onContentEnter:()=>window.clearTimeout(w.current),onContentLeave:D,onItemSelect:T=>{F(P=>P===T?"":T)},onItemDismiss:()=>F(""),children:R.jsx(Gs.nav,{"aria-label":"Main","data-orientation":c,dir:g,...u,ref:h})})});uH.displayName=$A;var pM="NavigationMenuSub",wKe=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,value:r,onValueChange:i,defaultValue:a,orientation:s="horizontal",...o}=n,c=Go(pM,t),[l,u]=cg({prop:r,onChange:i,defaultProp:a??"",caller:pM});return R.jsx(dH,{scope:t,isRootMenu:!1,value:l,dir:c.dir,orientation:s,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:A=>u(A),onItemSelect:A=>u(A),onItemDismiss:()=>u(""),children:R.jsx(Gs.div,{"data-orientation":s,...o,ref:e})})});wKe.displayName=pM;var dH=n=>{const{scope:e,isRootMenu:t,rootNavigationMenu:r,dir:i,orientation:a,children:s,value:o,onItemSelect:c,onItemDismiss:l,onTriggerEnter:u,onTriggerLeave:A,onContentEnter:f,onContentLeave:h}=n,[g,y]=te.useState(null),[w,v]=te.useState(new Map),[S,C]=te.useState(null);return R.jsx(gKe,{scope:e,isRootMenu:t,rootNavigationMenu:r,value:o,previousValue:Zj(o),baseId:Km(),dir:i,orientation:a,viewport:g,onViewportChange:y,indicatorTrack:S,onIndicatorTrackChange:C,onTriggerEnter:Eu(u),onTriggerLeave:Eu(A),onContentEnter:Eu(f),onContentLeave:Eu(h),onItemSelect:Eu(c),onItemDismiss:Eu(l),onViewportContentChange:te.useCallback((M,F)=>{v(D=>(D.set(M,F),new Map(D)))},[]),onViewportContentRemove:te.useCallback(M=>{v(F=>F.has(M)?(F.delete(M),new Map(F)):F)},[]),children:R.jsx(eP.Provider,{scope:e,children:R.jsx(vKe,{scope:e,items:w,children:s})})})},AH="NavigationMenuList",hH=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,...r}=n,i=Go(AH,t),a=R.jsx(Gs.ul,{"data-orientation":i.orientation,...r,ref:e});return R.jsx(Gs.div,{style:{position:"relative"},ref:i.onIndicatorTrackChange,children:R.jsx(eP.Slot,{scope:t,children:i.isRootMenu?R.jsx(xH,{asChild:!0,children:a}):a})})});hH.displayName=AH;var fH="NavigationMenuItem",[bKe,mH]=tP(fH),pH=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,value:r,...i}=n,a=Km(),s=r||a||"LEGACY_REACT_AUTO_VALUE",o=te.useRef(null),c=te.useRef(null),l=te.useRef(null),u=te.useRef(()=>{}),A=te.useRef(!1),f=te.useCallback((g="start")=>{if(o.current){u.current();const y=vM(o.current);y.length&&iP(g==="start"?y:y.reverse())}},[]),h=te.useCallback(()=>{if(o.current){const g=vM(o.current);g.length&&(u.current=EKe(g))}},[]);return R.jsx(bKe,{scope:t,value:s,triggerRef:c,contentRef:o,focusProxyRef:l,wasEscapeCloseRef:A,onEntryKeyDown:f,onFocusProxyEnter:f,onRootContentClose:h,onContentFocusOutside:h,children:R.jsx(Gs.li,{...i,ref:e})})});pH.displayName=fH;var gM="NavigationMenuTrigger",gH=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,disabled:r,...i}=n,a=Go(gM,n.__scopeNavigationMenu),s=mH(gM,n.__scopeNavigationMenu),o=te.useRef(null),c=xf(o,s.triggerRef,e),l=SH(a.baseId,s.value),u=CH(a.baseId,s.value),A=te.useRef(!1),f=te.useRef(!1),h=s.value===a.value;return R.jsxs(R.Fragment,{children:[R.jsx(eP.ItemSlot,{scope:t,value:s.value,children:R.jsx(MH,{asChild:!0,children:R.jsx(Gs.button,{id:l,disabled:r,"data-disabled":r?"":void 0,"data-state":aP(h),"aria-expanded":h,"aria-controls":u,...i,ref:c,onPointerEnter:Pr(n.onPointerEnter,()=>{f.current=!1,s.wasEscapeCloseRef.current=!1}),onPointerMove:Pr(n.onPointerMove,Fy(()=>{r||f.current||s.wasEscapeCloseRef.current||A.current||(a.onTriggerEnter(s.value),A.current=!0)})),onPointerLeave:Pr(n.onPointerLeave,Fy(()=>{r||(a.onTriggerLeave(),A.current=!1)})),onClick:Pr(n.onClick,()=>{a.onItemSelect(s.value),f.current=h}),onKeyDown:Pr(n.onKeyDown,g=>{const w={horizontal:"ArrowDown",vertical:a.dir==="rtl"?"ArrowLeft":"ArrowRight"}[a.orientation];h&&g.key===w&&(s.onEntryKeyDown(),g.preventDefault())})})})}),h&&R.jsxs(R.Fragment,{children:[R.jsx(Jj,{"aria-hidden":!0,tabIndex:0,ref:s.focusProxyRef,onFocus:g=>{const y=s.contentRef.current,w=g.relatedTarget,v=w===o.current,S=y==null?void 0:y.contains(w);(v||!S)&&s.onFocusProxyEnter(v?"start":"end")}}),a.viewport&&R.jsx("span",{"aria-owns":u})]})]})});gH.displayName=gM;var _Ke="NavigationMenuLink",WI="navigationMenu.linkSelect",vH=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,active:r,onSelect:i,...a}=n;return R.jsx(MH,{asChild:!0,children:R.jsx(Gs.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:e,onClick:Pr(n.onClick,s=>{const o=s.target,c=new CustomEvent(WI,{bubbles:!0,cancelable:!0});if(o.addEventListener(WI,l=>i==null?void 0:i(l),{once:!0}),_E(o,c),!c.defaultPrevented&&!s.metaKey){const l=new CustomEvent(zv,{bubbles:!0,cancelable:!0});_E(o,l)}},{checkForDefaultPrevented:!1})})})});vH.displayName=_Ke;var nP="NavigationMenuIndicator",yH=te.forwardRef((n,e)=>{const{forceMount:t,...r}=n,i=Go(nP,n.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?UF.createPortal(R.jsx(Tw,{present:t||a,children:R.jsx(xKe,{...r,ref:e})}),i.indicatorTrack):null});yH.displayName=nP;var xKe=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,...r}=n,i=Go(nP,t),a=lH(t),[s,o]=te.useState(null),[c,l]=te.useState(null),u=i.orientation==="horizontal",A=!!i.value;te.useEffect(()=>{var y;const g=(y=a().find(w=>w.value===i.value))==null?void 0:y.ref.current;g&&o(g)},[a,i.value]);const f=()=>{s&&l({size:u?s.offsetWidth:s.offsetHeight,offset:u?s.offsetLeft:s.offsetTop})};return yM(s,f),yM(i.indicatorTrack,f),c?R.jsx(Gs.div,{"aria-hidden":!0,"data-state":A?"visible":"hidden","data-orientation":i.orientation,...r,ref:e,style:{position:"absolute",...u?{left:0,width:c.size+"px",transform:`translateX(${c.offset}px)`}:{top:0,height:c.size+"px",transform:`translateY(${c.offset}px)`},...r.style}}):null}),hf="NavigationMenuContent",wH=te.forwardRef((n,e)=>{const{forceMount:t,...r}=n,i=Go(hf,n.__scopeNavigationMenu),a=mH(hf,n.__scopeNavigationMenu),s=xf(a.contentRef,e),o=a.value===i.value,c={value:a.value,triggerRef:a.triggerRef,focusProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return i.viewport?R.jsx(MKe,{forceMount:t,...c,ref:s}):R.jsx(Tw,{present:t||o,children:R.jsx(bH,{"data-state":aP(o),...c,ref:s,onPointerEnter:Pr(n.onPointerEnter,i.onContentEnter),onPointerLeave:Pr(n.onPointerLeave,Fy(i.onContentLeave)),style:{pointerEvents:!o&&i.isRootMenu?"none":void 0,...c.style}})})});wH.displayName=hf;var MKe=te.forwardRef((n,e)=>{const t=Go(hf,n.__scopeNavigationMenu),{onViewportContentChange:r,onViewportContentRemove:i}=t;return d2(()=>{r(n.value,{ref:e,...n})},[n,e,r]),d2(()=>()=>i(n.value),[n.value,i]),null}),zv="navigationMenu.rootContentDismiss",bH=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,value:r,triggerRef:i,focusProxyRef:a,wasEscapeCloseRef:s,onRootContentClose:o,onContentFocusOutside:c,...l}=n,u=Go(hf,t),A=te.useRef(null),f=xf(A,e),h=SH(u.baseId,r),g=CH(u.baseId,r),y=lH(t),w=te.useRef(null),{onItemDismiss:v}=u;te.useEffect(()=>{const C=A.current;if(u.isRootMenu&&C){const M=()=>{var F;v(),o(),C.contains(document.activeElement)&&((F=i.current)==null||F.focus())};return C.addEventListener(zv,M),()=>C.removeEventListener(zv,M)}},[u.isRootMenu,n.value,i,v,o]);const S=te.useMemo(()=>{const M=y().map(P=>P.value);u.dir==="rtl"&&M.reverse();const F=M.indexOf(u.value),D=M.indexOf(u.previousValue),U=r===u.value,O=D===M.indexOf(r);if(!U&&!O)return w.current;const T=(()=>{if(F!==D){if(U&&D!==-1)return F>D?"from-end":"from-start";if(O&&F!==-1)return F>D?"to-start":"to-end"}return null})();return w.current=T,T},[u.previousValue,u.value,u.dir,y,r]);return R.jsx(xH,{asChild:!0,children:R.jsx(e6,{id:g,"aria-labelledby":h,"data-motion":S,"data-orientation":u.orientation,...l,ref:f,disableOutsidePointerEvents:!1,onDismiss:()=>{var M;const C=new Event(zv,{bubbles:!0,cancelable:!0});(M=A.current)==null||M.dispatchEvent(C)},onFocusOutside:Pr(n.onFocusOutside,C=>{var F;c();const M=C.target;(F=u.rootNavigationMenu)!=null&&F.contains(M)&&C.preventDefault()}),onPointerDownOutside:Pr(n.onPointerDownOutside,C=>{var U;const M=C.target,F=y().some(O=>{var T;return(T=O.ref.current)==null?void 0:T.contains(M)}),D=u.isRootMenu&&((U=u.viewport)==null?void 0:U.contains(M));(F||D||!u.isRootMenu)&&C.preventDefault()}),onKeyDown:Pr(n.onKeyDown,C=>{var D;const M=C.altKey||C.ctrlKey||C.metaKey;if(C.key==="Tab"&&!M){const U=vM(C.currentTarget),O=document.activeElement,T=U.findIndex(H=>H===O),k=C.shiftKey?U.slice(0,T).reverse():U.slice(T+1,U.length);iP(k)?C.preventDefault():(D=a.current)==null||D.focus()}}),onEscapeKeyDown:Pr(n.onEscapeKeyDown,C=>{s.current=!0})})})}),rP="NavigationMenuViewport",_H=te.forwardRef((n,e)=>{const{forceMount:t,...r}=n,a=!!Go(rP,n.__scopeNavigationMenu).value;return R.jsx(Tw,{present:t||a,children:R.jsx(SKe,{...r,ref:e})})});_H.displayName=rP;var SKe=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,children:r,...i}=n,a=Go(rP,t),s=xf(e,a.onViewportChange),o=yKe(hf,n.__scopeNavigationMenu),[c,l]=te.useState(null),[u,A]=te.useState(null),f=c?(c==null?void 0:c.width)+"px":void 0,h=c?(c==null?void 0:c.height)+"px":void 0,g=!!a.value,y=g?a.value:a.previousValue;return yM(u,()=>{u&&l({width:u.offsetWidth,height:u.offsetHeight})}),R.jsx(Gs.div,{"data-state":aP(g),"data-orientation":a.orientation,...i,ref:s,style:{pointerEvents:!g&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":f,"--radix-navigation-menu-viewport-height":h,...i.style},onPointerEnter:Pr(n.onPointerEnter,a.onContentEnter),onPointerLeave:Pr(n.onPointerLeave,Fy(a.onContentLeave)),children:Array.from(o.items).map(([v,{ref:S,forceMount:C,...M}])=>{const F=y===v;return R.jsx(Tw,{present:C||F,children:R.jsx(bH,{...M,ref:t6(S,D=>{F&&D&&A(D)})})},v)})})}),CKe="FocusGroup",xH=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,...r}=n,i=Go(CKe,t);return R.jsx(mM.Provider,{scope:t,children:R.jsx(mM.Slot,{scope:t,children:R.jsx(Gs.div,{dir:i.dir,...r,ref:e})})})}),QI=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],PKe="FocusGroupItem",MH=te.forwardRef((n,e)=>{const{__scopeNavigationMenu:t,...r}=n,i=mKe(t),a=Go(PKe,t);return R.jsx(mM.ItemSlot,{scope:t,children:R.jsx(Gs.button,{...r,ref:e,onKeyDown:Pr(n.onKeyDown,s=>{if(["Home","End",...QI].includes(s.key)){let c=i().map(A=>A.ref.current);if([a.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(s.key)&&c.reverse(),QI.includes(s.key)){const A=c.indexOf(s.currentTarget);c=c.slice(A+1)}setTimeout(()=>iP(c)),s.preventDefault()}})})})});function vM(n){const e=[],t=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function iP(n){const e=document.activeElement;return n.some(t=>t===e?!0:(t.focus(),document.activeElement!==e))}function EKe(n){return n.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{n.forEach(e=>{const t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}function yM(n,e){const t=Eu(e);d2(()=>{let r=0;if(n){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return i.observe(n),()=>{window.cancelAnimationFrame(r),i.unobserve(n)}}},[n,t])}function aP(n){return n?"open":"closed"}function SH(n,e){return`${n}-trigger-${e}`}function CH(n,e){return`${n}-content-${e}`}function Fy(n){return e=>e.pointerType==="mouse"?n(e):void 0}var PH=uH,EH=hH,BKe=pH,BH=gH,TKe=vH,TH=yH,kH=wH,IH=_H;const LH=te.forwardRef(({className:n,children:e,...t},r)=>R.jsxs(PH,{ref:r,className:On("relative z-10 flex max-w-max flex-1 items-center justify-center",n),...t,children:[e,R.jsx(sP,{})]}));LH.displayName=PH.displayName;const FH=te.forwardRef(({className:n,...e},t)=>R.jsx(EH,{ref:t,className:On("group flex flex-1 list-none items-center justify-center space-x-1",n),...e}));FH.displayName=EH.displayName;const kKe=BKe,NH=AN("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),DH=te.forwardRef(({className:n,children:e,...t},r)=>R.jsxs(BH,{ref:r,className:On(NH(),"group",n),...t,children:[e," ",R.jsx(OF,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));DH.displayName=BH.displayName;const RH=te.forwardRef(({className:n,...e},t)=>R.jsx(kH,{ref:t,className:On("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",n),...e}));RH.displayName=kH.displayName;const IKe=TKe,sP=te.forwardRef(({className:n,...e},t)=>R.jsx("div",{className:On("absolute left-0 top-full flex justify-center"),children:R.jsx(IH,{className:On("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",n),ref:t,...e})}));sP.displayName=IH.displayName;const UH=te.forwardRef(({className:n,...e},t)=>R.jsx(TH,{ref:t,className:On("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",n),...e,children:R.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));UH.displayName=TH.displayName;const LKe=Object.freeze(Object.defineProperty({__proto__:null,NavigationMenu:LH,NavigationMenuContent:RH,NavigationMenuIndicator:UH,NavigationMenuItem:kKe,NavigationMenuLink:IKe,NavigationMenuList:FH,NavigationMenuTrigger:DH,NavigationMenuViewport:sP,navigationMenuTriggerStyle:NH},Symbol.toStringTag,{value:"Module"})),OH=te.forwardRef(({className:n,...e},t)=>R.jsxs(VN,{ref:t,className:On("relative flex w-full touch-none select-none items-center",n),...e,children:[R.jsx(bV,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:R.jsx(_V,{className:"absolute h-full bg-primary"})}),R.jsx(xV,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));OH.displayName=VN.displayName;const FKe=Object.freeze(Object.defineProperty({__proto__:null,Slider:OH},Symbol.toStringTag,{value:"Module"})),HH=({...n})=>{const{theme:e="system"}=x6();return R.jsx(M6,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast font-base44 group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",success:"[&_[data-icon]]:text-green-500"}},...n})},NKe=Object.freeze(Object.defineProperty({__proto__:null,Toaster:HH},Symbol.toStringTag,{value:"Module"}));function ii(...n){return jN(_o(n))}const DKe="sidebar_state",RKe=3600*24*7,UKe="16rem",OKe="18rem",HKe="3rem",WKe="b",WH=te.createContext(null);function Cg(){const n=te.useContext(WH);if(!n)throw new Error("useSidebar must be used within a SidebarProvider.");return n}const QH=te.forwardRef(({defaultOpen:n=!0,open:e,onOpenChange:t,className:r,style:i,children:a,...s},o)=>{const c=p8(),[l,u]=te.useState(!1),[A,f]=te.useState(n),h=e??A,g=te.useCallback(S=>{const C=typeof S=="function"?S(h):S;t?t(C):f(C),document.cookie=`${DKe}=${C}; path=/; max-age=${RKe}`},[t,h]),y=te.useCallback(()=>c?u(S=>!S):g(S=>!S),[c,g,u]);te.useEffect(()=>{const S=C=>{C.key===WKe&&(C.metaKey||C.ctrlKey)&&(C.preventDefault(),y())};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[y]);const w=h?"expanded":"collapsed",v=te.useMemo(()=>({state:w,open:h,setOpen:g,isMobile:c,openMobile:l,setOpenMobile:u,toggleSidebar:y}),[w,h,g,c,l,u,y]);return R.jsx(WH.Provider,{value:v,children:R.jsx(E6,{delayDuration:0,children:R.jsx("div",{style:{"--sidebar-width":UKe,"--sidebar-width-icon":HKe,...i},className:ii("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:o,...s,children:a})})})});QH.displayName="SidebarProvider";const $H=te.forwardRef(({side:n="left",variant:e="sidebar",collapsible:t="offcanvas",className:r,children:i,...a},s)=>{const{isMobile:o,state:c,openMobile:l,setOpenMobile:u}=Cg();return t==="none"?R.jsx("div",{className:ii("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:s,...a,children:i}):o?R.jsx(d8,{open:l,onOpenChange:u,...a,children:R.jsxs(A8,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":OKe},side:n,children:[R.jsxs(h8,{className:"sr-only",children:[R.jsx(f8,{children:"Sidebar"}),R.jsx(m8,{children:"Displays the mobile sidebar."})]}),R.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):R.jsxs("div",{ref:s,className:"group peer hidden text-sidebar-foreground md:block","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":n,children:[R.jsx("div",{className:ii("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),R.jsx("div",{className:ii("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",n==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...a,children:R.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:i})})]})});$H.displayName="Sidebar";const jH=te.forwardRef(({className:n,onClick:e,asChild:t=!1,...r},i)=>{const{toggleSidebar:a}=Cg();return R.jsx(Kl,{ref:i,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:ii("h-7 w-7",n),onClick:s=>{e==null||e(s),a()},asChild:t,...r,children:t?R.jsx(xE,{}):R.jsxs(R.Fragment,{children:[R.jsx(xE,{}),R.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})})});jH.displayName="SidebarTrigger";const zH=te.forwardRef(({className:n,...e},t)=>{const{toggleSidebar:r}=Cg();return R.jsx("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:ii("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",n),...e})});zH.displayName="SidebarRail";const VH=te.forwardRef(({className:n,...e},t)=>R.jsx("main",{ref:t,className:ii("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",n),...e}));VH.displayName="SidebarInset";const GH=te.forwardRef(({className:n,...e},t)=>R.jsx(Hl,{ref:t,"data-sidebar":"input",className:ii("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",n),...e}));GH.displayName="SidebarInput";const KH=te.forwardRef(({className:n,...e},t)=>R.jsx("div",{ref:t,"data-sidebar":"header",className:ii("flex flex-col gap-2 p-2",n),...e}));KH.displayName="SidebarHeader";const qH=te.forwardRef(({className:n,...e},t)=>R.jsx("div",{ref:t,"data-sidebar":"footer",className:ii("flex flex-col gap-2 p-2",n),...e}));qH.displayName="SidebarFooter";const XH=te.forwardRef(({className:n,...e},t)=>R.jsx(WN,{ref:t,"data-sidebar":"separator",className:ii("mx-2 w-auto bg-sidebar-border",n),...e}));XH.displayName="SidebarSeparator";const YH=te.forwardRef(({className:n,...e},t)=>R.jsx("div",{ref:t,"data-sidebar":"content",className:ii("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n),...e}));YH.displayName="SidebarContent";const JH=te.forwardRef(({className:n,...e},t)=>R.jsx("div",{ref:t,"data-sidebar":"group",className:ii("relative flex w-full min-w-0 flex-col p-2",n),...e}));JH.displayName="SidebarGroup";const ZH=te.forwardRef(({className:n,asChild:e=!1,...t},r)=>{const i=e?Mf:"div";return R.jsx(i,{ref:r,"data-sidebar":"group-label",className:ii("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",n),...t})});ZH.displayName="SidebarGroupLabel";const eW=te.forwardRef(({className:n,asChild:e=!1,...t},r)=>{const i=e?Mf:"button";return R.jsx(i,{ref:r,"data-sidebar":"group-action",className:ii("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",n),...t})});eW.displayName="SidebarGroupAction";const tW=te.forwardRef(({className:n,...e},t)=>R.jsx("div",{ref:t,"data-sidebar":"group-content",className:ii("w-full text-sm",n),...e}));tW.displayName="SidebarGroupContent";const nW=te.forwardRef(({className:n,...e},t)=>R.jsx("ul",{ref:t,"data-sidebar":"menu",className:ii("flex w-full min-w-0 flex-col gap-1",n),...e}));nW.displayName="SidebarMenu";const rW=te.forwardRef(({className:n,...e},t)=>R.jsx("li",{ref:t,"data-sidebar":"menu-item",className:ii("group/menu-item relative",n),...e}));rW.displayName="SidebarMenuItem";const QKe=AN("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),iW=te.forwardRef(({asChild:n=!1,isActive:e=!1,variant:t="default",size:r="default",tooltip:i,className:a,...s},o)=>{const c=n?Mf:"button",{isMobile:l,state:u}=Cg(),A=R.jsx(c,{ref:o,"data-sidebar":"menu-button","data-size":r,"data-active":e,className:ii(QKe({variant:t,size:r}),a),...s});return i?(typeof i=="string"&&(i={children:i}),R.jsxs(S6,{children:[R.jsx(C6,{asChild:!0,children:A}),R.jsx(P6,{side:"right",align:"center",hidden:u!=="collapsed"||l,...i})]})):A});iW.displayName="SidebarMenuButton";const aW=te.forwardRef(({className:n,asChild:e=!1,showOnHover:t=!1,...r},i)=>{const a=e?Mf:"button";return R.jsx(a,{ref:i,"data-sidebar":"menu-action",className:ii("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",n),...r})});aW.displayName="SidebarMenuAction";const sW=te.forwardRef(({className:n,...e},t)=>R.jsx("div",{ref:t,"data-sidebar":"menu-badge",className:ii("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n),...e}));sW.displayName="SidebarMenuBadge";const oW=te.forwardRef(({className:n,showIcon:e=!1,...t},r)=>{const i=te.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return R.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:ii("flex h-8 items-center gap-2 rounded-md px-2",n),...t,children:[e&&R.jsx(BE,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),R.jsx(BE,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});oW.displayName="SidebarMenuSkeleton";const cW=te.forwardRef(({className:n,...e},t)=>R.jsx("ul",{ref:t,"data-sidebar":"menu-sub",className:ii("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",n),...e}));cW.displayName="SidebarMenuSub";const lW=te.forwardRef(({...n},e)=>R.jsx("li",{ref:e,...n}));lW.displayName="SidebarMenuSubItem";const uW=te.forwardRef(({asChild:n=!1,size:e="md",isActive:t,className:r,...i},a)=>{const s=n?Mf:"a";return R.jsx(s,{ref:a,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:ii("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),...i})});uW.displayName="SidebarMenuSubButton";const $Ke=Object.freeze(Object.defineProperty({__proto__:null,Sidebar:$H,SidebarContent:YH,SidebarFooter:qH,SidebarGroup:JH,SidebarGroupAction:eW,SidebarGroupContent:tW,SidebarGroupLabel:ZH,SidebarHeader:KH,SidebarInput:GH,SidebarInset:VH,SidebarMenu:nW,SidebarMenuAction:aW,SidebarMenuBadge:sW,SidebarMenuButton:iW,SidebarMenuItem:rW,SidebarMenuSkeleton:oW,SidebarMenuSub:cW,SidebarMenuSubButton:uW,SidebarMenuSubItem:lW,SidebarProvider:QH,SidebarRail:zH,SidebarSeparator:XH,SidebarTrigger:jH,useSidebar:Cg},Symbol.toStringTag,{value:"Module"})),jKe=Object.freeze(Object.defineProperty({__proto__:null,MarkdownAsync:g8,MarkdownHooks:v8,default:y8,defaultUrlTransform:w8},Symbol.toStringTag,{value:"Module"}));/**
 * @license
 * Copyright 2010-2024 Three.js Authors
 * SPDX-License-Identifier: MIT
 */const cb="171",cA={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2},Xd={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},dW=0,wM=1,AW=2,zKe=3,VKe=0,oP=1,hW=2,Kc=3,rl=0,Ss=1,mc=2,$l=0,lA=1,bM=2,_M=3,xM=4,fW=5,Lu=100,mW=101,pW=102,gW=103,vW=104,yW=200,wW=201,bW=202,_W=203,Ny=204,Dy=205,xW=206,MW=207,SW=208,CW=209,PW=210,EW=211,BW=212,TW=213,kW=214,Ry=0,Uy=1,Oy=2,SA=3,Hy=4,Wy=5,Qy=6,$y=7,Pg=0,IW=1,LW=2,jl=0,FW=1,NW=2,DW=3,RW=4,UW=5,OW=6,HW=7,MM="attached",WW="detached",lb=300,Yl=301,ed=302,zp=303,Vp=304,Nf=306,td=1e3,go=1001,ff=1002,Xi=1003,ub=1004,GKe=1004,Yd=1005,KKe=1005,pi=1006,qh=1007,qKe=1007,Wo=1008,XKe=1008,il=1009,cP=1010,lP=1011,mf=1012,db=1013,Jl=1014,zs=1015,Df=1016,Ab=1017,hb=1018,CA=1020,uP=35902,dP=1021,AP=1022,Ms=1023,hP=1024,fP=1025,uA=1026,PA=1027,fb=1028,Eg=1029,mP=1030,mb=1031,YKe=1032,pb=1033,op=33776,cp=33777,lp=33778,up=33779,jy=35840,zy=35841,Vy=35842,Gy=35843,Ky=36196,qy=37492,Xy=37496,Yy=37808,Jy=37809,Zy=37810,ew=37811,tw=37812,nw=37813,rw=37814,iw=37815,aw=37816,sw=37817,ow=37818,cw=37819,lw=37820,uw=37821,dp=36492,dw=36494,Aw=36495,pP=36283,hw=36284,fw=36285,mw=36286,QW=2200,$W=2201,jW=2202,pf=2300,gf=2301,Vv=2302,Jd=2400,Zd=2401,Gp=2402,gb=2500,gP=2501,zW=0,vP=1,pw=2,VW=3200,GW=3201,JKe=3202,ZKe=3203,od=0,KW=1,Fl="",Gi="srgb",Xa="srgb-linear",Kp="linear",Sr="srgb",eqe=0,Qd=7680,tqe=7681,nqe=7682,rqe=7683,iqe=34055,aqe=34056,sqe=5386,oqe=512,cqe=513,lqe=514,uqe=515,dqe=516,Aqe=517,hqe=518,SM=519,qW=512,XW=513,YW=514,yP=515,JW=516,ZW=517,eQ=518,tQ=519,qp=35044,fqe=35048,mqe=35040,pqe=35045,gqe=35049,vqe=35041,yqe=35046,wqe=35050,bqe=35042,_qe="100",CM="300 es",Yc=2e3,Xp=2001;class sl{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const r=this._listeners;r[e]===void 0&&(r[e]=[]),r[e].indexOf(t)===-1&&r[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const r=this._listeners;return r[e]!==void 0&&r[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const i=this._listeners[e];if(i!==void 0){const a=i.indexOf(t);a!==-1&&i.splice(a,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const r=this._listeners[e.type];if(r!==void 0){e.target=this;const i=r.slice(0);for(let a=0,s=i.length;a<s;a++)i[a].call(this,e);e.target=null}}}const $a=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];let $I=1234567;const dA=Math.PI/180,vf=180/Math.PI;function bo(){const n=Math.random()*4294967295|0,e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return($a[n&255]+$a[n>>8&255]+$a[n>>16&255]+$a[n>>24&255]+"-"+$a[e&255]+$a[e>>8&255]+"-"+$a[e>>16&15|64]+$a[e>>24&255]+"-"+$a[t&63|128]+$a[t>>8&255]+"-"+$a[t>>16&255]+$a[t>>24&255]+$a[r&255]+$a[r>>8&255]+$a[r>>16&255]+$a[r>>24&255]).toLowerCase()}function Tn(n,e,t){return Math.max(e,Math.min(t,n))}function wP(n,e){return(n%e+e)%e}function xqe(n,e,t,r,i){return r+(n-e)*(i-r)/(t-e)}function Mqe(n,e,t){return n!==e?(t-n)/(e-n):0}function Ap(n,e,t){return(1-t)*n+t*e}function Sqe(n,e,t,r){return Ap(n,e,1-Math.exp(-t*r))}function Cqe(n,e=1){return e-Math.abs(wP(n,e*2)-e)}function Pqe(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*(3-2*n))}function Eqe(n,e,t){return n<=e?0:n>=t?1:(n=(n-e)/(t-e),n*n*n*(n*(n*6-15)+10))}function Bqe(n,e){return n+Math.floor(Math.random()*(e-n+1))}function Tqe(n,e){return n+Math.random()*(e-n)}function kqe(n){return n*(.5-Math.random())}function Iqe(n){n!==void 0&&($I=n);let e=$I+=1831565813;return e=Math.imul(e^e>>>15,e|1),e^=e+Math.imul(e^e>>>7,e|61),((e^e>>>14)>>>0)/4294967296}function Lqe(n){return n*dA}function Fqe(n){return n*vf}function Nqe(n){return(n&n-1)===0&&n!==0}function Dqe(n){return Math.pow(2,Math.ceil(Math.log(n)/Math.LN2))}function Rqe(n){return Math.pow(2,Math.floor(Math.log(n)/Math.LN2))}function Uqe(n,e,t,r,i){const a=Math.cos,s=Math.sin,o=a(t/2),c=s(t/2),l=a((e+r)/2),u=s((e+r)/2),A=a((e-r)/2),f=s((e-r)/2),h=a((r-e)/2),g=s((r-e)/2);switch(i){case"XYX":n.set(o*u,c*A,c*f,o*l);break;case"YZY":n.set(c*f,o*u,c*A,o*l);break;case"ZXZ":n.set(c*A,c*f,o*u,o*l);break;case"XZX":n.set(o*u,c*g,c*h,o*l);break;case"YXY":n.set(c*h,o*u,c*g,o*l);break;case"ZYZ":n.set(c*g,c*h,o*u,o*l);break;default:}}function xs(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return n/4294967295;case Uint16Array:return n/65535;case Uint8Array:return n/255;case Int32Array:return Math.max(n/2147483647,-1);case Int16Array:return Math.max(n/32767,-1);case Int8Array:return Math.max(n/127,-1);default:throw new Error("Invalid component type.")}}function Un(n,e){switch(e.constructor){case Float32Array:return n;case Uint32Array:return Math.round(n*4294967295);case Uint16Array:return Math.round(n*65535);case Uint8Array:return Math.round(n*255);case Int32Array:return Math.round(n*2147483647);case Int16Array:return Math.round(n*32767);case Int8Array:return Math.round(n*127);default:throw new Error("Invalid component type.")}}const bP={DEG2RAD:dA,RAD2DEG:vf,generateUUID:bo,clamp:Tn,euclideanModulo:wP,mapLinear:xqe,inverseLerp:Mqe,lerp:Ap,damp:Sqe,pingpong:Cqe,smoothstep:Pqe,smootherstep:Eqe,randInt:Bqe,randFloat:Tqe,randFloatSpread:kqe,seededRandom:Iqe,degToRad:Lqe,radToDeg:Fqe,isPowerOfTwo:Nqe,ceilPowerOfTwo:Dqe,floorPowerOfTwo:Rqe,setQuaternionFromProperEuler:Uqe,normalize:Un,denormalize:xs};class vt{constructor(e=0,t=0){vt.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,r=this.y,i=e.elements;return this.x=i[0]*t+i[3]*r+i[6],this.y=i[1]*t+i[4]*r+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Tn(this.x,e.x,t.x),this.y=Tn(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=Tn(this.x,e,t),this.y=Tn(this.y,e,t),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Tn(r,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(Tn(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y;return t*t+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const r=Math.cos(t),i=Math.sin(t),a=this.x-e.x,s=this.y-e.y;return this.x=a*r-s*i+e.x,this.y=a*i+s*r+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Dn{constructor(e,t,r,i,a,s,o,c,l){Dn.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,r,i,a,s,o,c,l)}set(e,t,r,i,a,s,o,c,l){const u=this.elements;return u[0]=e,u[1]=i,u[2]=o,u[3]=t,u[4]=a,u[5]=c,u[6]=r,u[7]=s,u[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],this}extractBasis(e,t,r){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),r.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,a=this.elements,s=r[0],o=r[3],c=r[6],l=r[1],u=r[4],A=r[7],f=r[2],h=r[5],g=r[8],y=i[0],w=i[3],v=i[6],S=i[1],C=i[4],M=i[7],F=i[2],D=i[5],U=i[8];return a[0]=s*y+o*S+c*F,a[3]=s*w+o*C+c*D,a[6]=s*v+o*M+c*U,a[1]=l*y+u*S+A*F,a[4]=l*w+u*C+A*D,a[7]=l*v+u*M+A*U,a[2]=f*y+h*S+g*F,a[5]=f*w+h*C+g*D,a[8]=f*v+h*M+g*U,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],o=e[5],c=e[6],l=e[7],u=e[8];return t*s*u-t*o*l-r*a*u+r*o*c+i*a*l-i*s*c}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],o=e[5],c=e[6],l=e[7],u=e[8],A=u*s-o*l,f=o*c-u*a,h=l*a-s*c,g=t*A+r*f+i*h;if(g===0)return this.set(0,0,0,0,0,0,0,0,0);const y=1/g;return e[0]=A*y,e[1]=(i*l-u*r)*y,e[2]=(o*r-i*s)*y,e[3]=f*y,e[4]=(u*t-i*c)*y,e[5]=(i*a-o*t)*y,e[6]=h*y,e[7]=(r*c-l*t)*y,e[8]=(s*t-r*a)*y,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,r,i,a,s,o){const c=Math.cos(a),l=Math.sin(a);return this.set(r*c,r*l,-r*(c*s+l*o)+s+e,-i*l,i*c,-i*(-l*s+c*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(X_.makeScale(e,t)),this}rotate(e){return this.premultiply(X_.makeRotation(-e)),this}translate(e,t){return this.premultiply(X_.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,r,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<9;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<9;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const X_=new Dn;function nQ(n){for(let e=n.length-1;e>=0;--e)if(n[e]>=65535)return!0;return!1}const Oqe={Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array};function jh(n,e){return new Oqe[n](e)}function Yp(n){return document.createElementNS("http://www.w3.org/1999/xhtml",n)}function rQ(){const n=Yp("canvas");return n.style.display="block",n}const jI={};function Wh(n){n in jI||(jI[n]=!0)}function Hqe(n,e,t){return new Promise(function(r,i){function a(){switch(n.clientWaitSync(e,n.SYNC_FLUSH_COMMANDS_BIT,0)){case n.WAIT_FAILED:i();break;case n.TIMEOUT_EXPIRED:setTimeout(a,t);break;default:r()}}setTimeout(a,t)})}function Wqe(n){const e=n.elements;e[2]=.5*e[2]+.5*e[3],e[6]=.5*e[6]+.5*e[7],e[10]=.5*e[10]+.5*e[11],e[14]=.5*e[14]+.5*e[15]}function Qqe(n){const e=n.elements;e[11]===-1?(e[10]=-e[10]-1,e[14]=-e[14]):(e[10]=-e[10],e[14]=-e[14]+1)}const zI=new Dn().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),VI=new Dn().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function $qe(){const n={enabled:!0,workingColorSpace:Xa,spaces:{},convert:function(i,a,s){return this.enabled===!1||a===s||!a||!s||(this.spaces[a].transfer===Sr&&(i.r=zl(i.r),i.g=zl(i.g),i.b=zl(i.b)),this.spaces[a].primaries!==this.spaces[s].primaries&&(i.applyMatrix3(this.spaces[a].toXYZ),i.applyMatrix3(this.spaces[s].fromXYZ)),this.spaces[s].transfer===Sr&&(i.r=Xh(i.r),i.g=Xh(i.g),i.b=Xh(i.b))),i},fromWorkingColorSpace:function(i,a){return this.convert(i,this.workingColorSpace,a)},toWorkingColorSpace:function(i,a){return this.convert(i,a,this.workingColorSpace)},getPrimaries:function(i){return this.spaces[i].primaries},getTransfer:function(i){return i===Fl?Kp:this.spaces[i].transfer},getLuminanceCoefficients:function(i,a=this.workingColorSpace){return i.fromArray(this.spaces[a].luminanceCoefficients)},define:function(i){Object.assign(this.spaces,i)},_getMatrix:function(i,a,s){return i.copy(this.spaces[a].toXYZ).multiply(this.spaces[s].fromXYZ)},_getDrawingBufferColorSpace:function(i){return this.spaces[i].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(i=this.workingColorSpace){return this.spaces[i].workingColorSpaceConfig.unpackColorSpace}},e=[.64,.33,.3,.6,.15,.06],t=[.2126,.7152,.0722],r=[.3127,.329];return n.define({[Xa]:{primaries:e,whitePoint:r,transfer:Kp,toXYZ:zI,fromXYZ:VI,luminanceCoefficients:t,workingColorSpaceConfig:{unpackColorSpace:Gi},outputColorSpaceConfig:{drawingBufferColorSpace:Gi}},[Gi]:{primaries:e,whitePoint:r,transfer:Sr,toXYZ:zI,fromXYZ:VI,luminanceCoefficients:t,outputColorSpaceConfig:{drawingBufferColorSpace:Gi}}}),n}const Jn=$qe();function zl(n){return n<.04045?n*.0773993808:Math.pow(n*.9478672986+.0521327014,2.4)}function Xh(n){return n<.0031308?n*12.92:1.055*Math.pow(n,.41666)-.055}let mh;class iQ{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{mh===void 0&&(mh=Yp("canvas")),mh.width=e.width,mh.height=e.height;const r=mh.getContext("2d");e instanceof ImageData?r.putImageData(e,0,0):r.drawImage(e,0,0,e.width,e.height),t=mh}return t.width>2048||t.height>2048?t.toDataURL("image/jpeg",.6):t.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const t=Yp("canvas");t.width=e.width,t.height=e.height;const r=t.getContext("2d");r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height),a=i.data;for(let s=0;s<a.length;s++)a[s]=zl(a[s]/255)*255;return r.putImageData(i,0,0),t}else if(e.data){const t=e.data.slice(0);for(let r=0;r<t.length;r++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[r]=Math.floor(zl(t[r]/255)*255):t[r]=zl(t[r]);return{data:t,width:e.width,height:e.height}}else return e}}let jqe=0;class eA{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:jqe++}),this.uuid=bo(),this.data=e,this.dataReady=!0,this.version=0}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const r={uuid:this.uuid,url:""},i=this.data;if(i!==null){let a;if(Array.isArray(i)){a=[];for(let s=0,o=i.length;s<o;s++)i[s].isDataTexture?a.push(Y_(i[s].image)):a.push(Y_(i[s]))}else a=Y_(i);r.url=a}return t||(e.images[this.uuid]=r),r}}function Y_(n){return typeof HTMLImageElement<"u"&&n instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&n instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&n instanceof ImageBitmap?iQ.getDataURL(n):n.data?{data:Array.from(n.data),width:n.width,height:n.height,type:n.data.constructor.name}:{}}let zqe=0;class ai extends sl{constructor(e=ai.DEFAULT_IMAGE,t=ai.DEFAULT_MAPPING,r=go,i=go,a=pi,s=Wo,o=Ms,c=il,l=ai.DEFAULT_ANISOTROPY,u=Fl){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:zqe++}),this.uuid=bo(),this.name="",this.source=new eA(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=r,this.wrapT=i,this.magFilter=a,this.minFilter=s,this.anisotropy=l,this.format=o,this.internalFormat=null,this.type=c,this.offset=new vt(0,0),this.repeat=new vt(1,1),this.center=new vt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Dn,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=u,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=e===void 0||typeof e=="string";if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const r={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(r.userData=this.userData),t||(e.textures[this.uuid]=r),r}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==lb)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case td:e.x=e.x-Math.floor(e.x);break;case go:e.x=e.x<0?0:1;break;case ff:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case td:e.y=e.y-Math.floor(e.y);break;case go:e.y=e.y<0?0:1;break;case ff:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}ai.DEFAULT_IMAGE=null;ai.DEFAULT_MAPPING=lb;ai.DEFAULT_ANISOTROPY=1;class ar{constructor(e=0,t=0,r=0,i=1){ar.prototype.isVector4=!0,this.x=e,this.y=t,this.z=r,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,r,i){return this.x=e,this.y=t,this.z=r,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,a=this.w,s=e.elements;return this.x=s[0]*t+s[4]*r+s[8]*i+s[12]*a,this.y=s[1]*t+s[5]*r+s[9]*i+s[13]*a,this.z=s[2]*t+s[6]*r+s[10]*i+s[14]*a,this.w=s[3]*t+s[7]*r+s[11]*i+s[15]*a,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,r,i,a;const c=e.elements,l=c[0],u=c[4],A=c[8],f=c[1],h=c[5],g=c[9],y=c[2],w=c[6],v=c[10];if(Math.abs(u-f)<.01&&Math.abs(A-y)<.01&&Math.abs(g-w)<.01){if(Math.abs(u+f)<.1&&Math.abs(A+y)<.1&&Math.abs(g+w)<.1&&Math.abs(l+h+v-3)<.1)return this.set(1,0,0,0),this;t=Math.PI;const C=(l+1)/2,M=(h+1)/2,F=(v+1)/2,D=(u+f)/4,U=(A+y)/4,O=(g+w)/4;return C>M&&C>F?C<.01?(r=0,i=.707106781,a=.707106781):(r=Math.sqrt(C),i=D/r,a=U/r):M>F?M<.01?(r=.707106781,i=0,a=.707106781):(i=Math.sqrt(M),r=D/i,a=O/i):F<.01?(r=.707106781,i=.707106781,a=0):(a=Math.sqrt(F),r=U/a,i=O/a),this.set(r,i,a,t),this}let S=Math.sqrt((w-g)*(w-g)+(A-y)*(A-y)+(f-u)*(f-u));return Math.abs(S)<.001&&(S=1),this.x=(w-g)/S,this.y=(A-y)/S,this.z=(f-u)/S,this.w=Math.acos((l+h+v-1)/2),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Tn(this.x,e.x,t.x),this.y=Tn(this.y,e.y,t.y),this.z=Tn(this.z,e.z,t.z),this.w=Tn(this.w,e.w,t.w),this}clampScalar(e,t){return this.x=Tn(this.x,e,t),this.y=Tn(this.y,e,t),this.z=Tn(this.z,e,t),this.w=Tn(this.w,e,t),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Tn(r,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this.w=e.w+(t.w-e.w)*r,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class aQ extends sl{constructor(e=1,t=1,r={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new ar(0,0,e,t),this.scissorTest=!1,this.viewport=new ar(0,0,e,t);const i={width:e,height:t,depth:1};r=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:pi,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},r);const a=new ai(i,r.mapping,r.wrapS,r.wrapT,r.magFilter,r.minFilter,r.format,r.type,r.anisotropy,r.colorSpace);a.flipY=!1,a.generateMipmaps=r.generateMipmaps,a.internalFormat=r.internalFormat,this.textures=[];const s=r.count;for(let o=0;o<s;o++)this.textures[o]=a.clone(),this.textures[o].isRenderTargetTexture=!0;this.depthBuffer=r.depthBuffer,this.stencilBuffer=r.stencilBuffer,this.resolveDepthBuffer=r.resolveDepthBuffer,this.resolveStencilBuffer=r.resolveStencilBuffer,this.depthTexture=r.depthTexture,this.samples=r.samples}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}setSize(e,t,r=1){if(this.width!==e||this.height!==t||this.depth!==r){this.width=e,this.height=t,this.depth=r;for(let i=0,a=this.textures.length;i<a;i++)this.textures[i].image.width=e,this.textures[i].image.height=t,this.textures[i].image.depth=r;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let r=0,i=e.textures.length;r<i;r++)this.textures[r]=e.textures[r].clone(),this.textures[r].isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new eA(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.resolveDepthBuffer=e.resolveDepthBuffer,this.resolveStencilBuffer=e.resolveStencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class wc extends aQ{constructor(e=1,t=1,r={}){super(e,t,r),this.isWebGLRenderTarget=!0}}class vb extends ai{constructor(e=null,t=1,r=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=Xi,this.minFilter=Xi,this.wrapR=go,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class Vqe extends wc{constructor(e=1,t=1,r=1,i={}){super(e,t,i),this.isWebGLArrayRenderTarget=!0,this.depth=r,this.texture=new vb(null,e,t,r),this.texture.isRenderTargetTexture=!0}}class _P extends ai{constructor(e=null,t=1,r=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:r,depth:i},this.magFilter=Xi,this.minFilter=Xi,this.wrapR=go,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Gqe extends wc{constructor(e=1,t=1,r=1,i={}){super(e,t,i),this.isWebGL3DRenderTarget=!0,this.depth=r,this.texture=new _P(null,e,t,r),this.texture.isRenderTargetTexture=!0}}class ma{constructor(e=0,t=0,r=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=r,this._w=i}static slerpFlat(e,t,r,i,a,s,o){let c=r[i+0],l=r[i+1],u=r[i+2],A=r[i+3];const f=a[s+0],h=a[s+1],g=a[s+2],y=a[s+3];if(o===0){e[t+0]=c,e[t+1]=l,e[t+2]=u,e[t+3]=A;return}if(o===1){e[t+0]=f,e[t+1]=h,e[t+2]=g,e[t+3]=y;return}if(A!==y||c!==f||l!==h||u!==g){let w=1-o;const v=c*f+l*h+u*g+A*y,S=v>=0?1:-1,C=1-v*v;if(C>Number.EPSILON){const F=Math.sqrt(C),D=Math.atan2(F,v*S);w=Math.sin(w*D)/F,o=Math.sin(o*D)/F}const M=o*S;if(c=c*w+f*M,l=l*w+h*M,u=u*w+g*M,A=A*w+y*M,w===1-o){const F=1/Math.sqrt(c*c+l*l+u*u+A*A);c*=F,l*=F,u*=F,A*=F}}e[t]=c,e[t+1]=l,e[t+2]=u,e[t+3]=A}static multiplyQuaternionsFlat(e,t,r,i,a,s){const o=r[i],c=r[i+1],l=r[i+2],u=r[i+3],A=a[s],f=a[s+1],h=a[s+2],g=a[s+3];return e[t]=o*g+u*A+c*h-l*f,e[t+1]=c*g+u*f+l*A-o*h,e[t+2]=l*g+u*h+o*f-c*A,e[t+3]=u*g-o*A-c*f-l*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,r,i){return this._x=e,this._y=t,this._z=r,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const r=e._x,i=e._y,a=e._z,s=e._order,o=Math.cos,c=Math.sin,l=o(r/2),u=o(i/2),A=o(a/2),f=c(r/2),h=c(i/2),g=c(a/2);switch(s){case"XYZ":this._x=f*u*A+l*h*g,this._y=l*h*A-f*u*g,this._z=l*u*g+f*h*A,this._w=l*u*A-f*h*g;break;case"YXZ":this._x=f*u*A+l*h*g,this._y=l*h*A-f*u*g,this._z=l*u*g-f*h*A,this._w=l*u*A+f*h*g;break;case"ZXY":this._x=f*u*A-l*h*g,this._y=l*h*A+f*u*g,this._z=l*u*g+f*h*A,this._w=l*u*A-f*h*g;break;case"ZYX":this._x=f*u*A-l*h*g,this._y=l*h*A+f*u*g,this._z=l*u*g-f*h*A,this._w=l*u*A+f*h*g;break;case"YZX":this._x=f*u*A+l*h*g,this._y=l*h*A+f*u*g,this._z=l*u*g-f*h*A,this._w=l*u*A-f*h*g;break;case"XZY":this._x=f*u*A-l*h*g,this._y=l*h*A-f*u*g,this._z=l*u*g+f*h*A,this._w=l*u*A+f*h*g;break;default:}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const r=t/2,i=Math.sin(r);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(r),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,r=t[0],i=t[4],a=t[8],s=t[1],o=t[5],c=t[9],l=t[2],u=t[6],A=t[10],f=r+o+A;if(f>0){const h=.5/Math.sqrt(f+1);this._w=.25/h,this._x=(u-c)*h,this._y=(a-l)*h,this._z=(s-i)*h}else if(r>o&&r>A){const h=2*Math.sqrt(1+r-o-A);this._w=(u-c)/h,this._x=.25*h,this._y=(i+s)/h,this._z=(a+l)/h}else if(o>A){const h=2*Math.sqrt(1+o-r-A);this._w=(a-l)/h,this._x=(i+s)/h,this._y=.25*h,this._z=(c+u)/h}else{const h=2*Math.sqrt(1+A-r-o);this._w=(s-i)/h,this._x=(a+l)/h,this._y=(c+u)/h,this._z=.25*h}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let r=e.dot(t)+1;return r<Number.EPSILON?(r=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=r):(this._x=0,this._y=-e.z,this._z=e.y,this._w=r)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=r),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Tn(this.dot(e),-1,1)))}rotateTowards(e,t){const r=this.angleTo(e);if(r===0)return this;const i=Math.min(1,t/r);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const r=e._x,i=e._y,a=e._z,s=e._w,o=t._x,c=t._y,l=t._z,u=t._w;return this._x=r*u+s*o+i*l-a*c,this._y=i*u+s*c+a*o-r*l,this._z=a*u+s*l+r*c-i*o,this._w=s*u-r*o-i*c-a*l,this._onChangeCallback(),this}slerp(e,t){if(t===0)return this;if(t===1)return this.copy(e);const r=this._x,i=this._y,a=this._z,s=this._w;let o=s*e._w+r*e._x+i*e._y+a*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=s,this._x=r,this._y=i,this._z=a,this;const c=1-o*o;if(c<=Number.EPSILON){const h=1-t;return this._w=h*s+t*this._w,this._x=h*r+t*this._x,this._y=h*i+t*this._y,this._z=h*a+t*this._z,this.normalize(),this}const l=Math.sqrt(c),u=Math.atan2(l,o),A=Math.sin((1-t)*u)/l,f=Math.sin(t*u)/l;return this._w=s*A+this._w*f,this._x=r*A+this._x*f,this._y=i*A+this._y*f,this._z=a*A+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,t,r){return this.copy(e).slerp(t,r)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),r=Math.random(),i=Math.sqrt(1-r),a=Math.sqrt(r);return this.set(i*Math.sin(e),i*Math.cos(e),a*Math.sin(t),a*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class ye{constructor(e=0,t=0,r=0){ye.prototype.isVector3=!0,this.x=e,this.y=t,this.z=r}set(e,t,r){return r===void 0&&(r=this.z),this.x=e,this.y=t,this.z=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(GI.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(GI.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,r=this.y,i=this.z,a=e.elements;return this.x=a[0]*t+a[3]*r+a[6]*i,this.y=a[1]*t+a[4]*r+a[7]*i,this.z=a[2]*t+a[5]*r+a[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,r=this.y,i=this.z,a=e.elements,s=1/(a[3]*t+a[7]*r+a[11]*i+a[15]);return this.x=(a[0]*t+a[4]*r+a[8]*i+a[12])*s,this.y=(a[1]*t+a[5]*r+a[9]*i+a[13])*s,this.z=(a[2]*t+a[6]*r+a[10]*i+a[14])*s,this}applyQuaternion(e){const t=this.x,r=this.y,i=this.z,a=e.x,s=e.y,o=e.z,c=e.w,l=2*(s*i-o*r),u=2*(o*t-a*i),A=2*(a*r-s*t);return this.x=t+c*l+s*A-o*u,this.y=r+c*u+o*l-a*A,this.z=i+c*A+a*u-s*l,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,r=this.y,i=this.z,a=e.elements;return this.x=a[0]*t+a[4]*r+a[8]*i,this.y=a[1]*t+a[5]*r+a[9]*i,this.z=a[2]*t+a[6]*r+a[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Tn(this.x,e.x,t.x),this.y=Tn(this.y,e.y,t.y),this.z=Tn(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=Tn(this.x,e,t),this.y=Tn(this.y,e,t),this.z=Tn(this.z,e,t),this}clampLength(e,t){const r=this.length();return this.divideScalar(r||1).multiplyScalar(Tn(r,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,r){return this.x=e.x+(t.x-e.x)*r,this.y=e.y+(t.y-e.y)*r,this.z=e.z+(t.z-e.z)*r,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const r=e.x,i=e.y,a=e.z,s=t.x,o=t.y,c=t.z;return this.x=i*c-a*o,this.y=a*s-r*c,this.z=r*o-i*s,this}projectOnVector(e){const t=e.lengthSq();if(t===0)return this.set(0,0,0);const r=e.dot(this)/t;return this.copy(e).multiplyScalar(r)}projectOnPlane(e){return J_.copy(this).projectOnVector(e),this.sub(J_)}reflect(e){return this.sub(J_.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;const r=this.dot(e)/t;return Math.acos(Tn(r,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,r=this.y-e.y,i=this.z-e.z;return t*t+r*r+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,r){const i=Math.sin(t)*e;return this.x=i*Math.sin(r),this.y=Math.cos(t)*e,this.z=i*Math.cos(r),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,r){return this.x=e*Math.sin(t),this.y=r,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),r=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=r,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=Math.random()*2-1,r=Math.sqrt(1-t*t);return this.x=r*Math.cos(e),this.y=t,this.z=r*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const J_=new ye,GI=new ma;class qa{constructor(e=new ye(1/0,1/0,1/0),t=new ye(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,r=e.length;t<r;t+=3)this.expandByPoint(uc.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,r=e.count;t<r;t++)this.expandByPoint(uc.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,r=e.length;t<r;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const r=uc.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(r),this.max.copy(e).add(r),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);const r=e.geometry;if(r!==void 0){const a=r.getAttribute("position");if(t===!0&&a!==void 0&&e.isInstancedMesh!==!0)for(let s=0,o=a.count;s<o;s++)e.isMesh===!0?e.getVertexPosition(s,uc):uc.fromBufferAttribute(a,s),uc.applyMatrix4(e.matrixWorld),this.expandByPoint(uc);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),y1.copy(e.boundingBox)):(r.boundingBox===null&&r.computeBoundingBox(),y1.copy(r.boundingBox)),y1.applyMatrix4(e.matrixWorld),this.union(y1)}const i=e.children;for(let a=0,s=i.length;a<s;a++)this.expandByObject(i[a],t);return this}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,uc),uc.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,r;return e.normal.x>0?(t=e.normal.x*this.min.x,r=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,r=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,r+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,r+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,r+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,r+=e.normal.z*this.min.z),t<=-e.constant&&r>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(pm),w1.subVectors(this.max,pm),ph.subVectors(e.a,pm),gh.subVectors(e.b,pm),vh.subVectors(e.c,pm),vu.subVectors(gh,ph),yu.subVectors(vh,gh),Sd.subVectors(ph,vh);let t=[0,-vu.z,vu.y,0,-yu.z,yu.y,0,-Sd.z,Sd.y,vu.z,0,-vu.x,yu.z,0,-yu.x,Sd.z,0,-Sd.x,-vu.y,vu.x,0,-yu.y,yu.x,0,-Sd.y,Sd.x,0];return!Z_(t,ph,gh,vh,w1)||(t=[1,0,0,0,1,0,0,0,1],!Z_(t,ph,gh,vh,w1))?!1:(b1.crossVectors(vu,yu),t=[b1.x,b1.y,b1.z],Z_(t,ph,gh,vh,w1))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,uc).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(uc).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(_l[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),_l[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),_l[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),_l[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),_l[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),_l[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),_l[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),_l[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(_l),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const _l=[new ye,new ye,new ye,new ye,new ye,new ye,new ye,new ye],uc=new ye,y1=new qa,ph=new ye,gh=new ye,vh=new ye,vu=new ye,yu=new ye,Sd=new ye,pm=new ye,w1=new ye,b1=new ye,Cd=new ye;function Z_(n,e,t,r,i){for(let a=0,s=n.length-3;a<=s;a+=3){Cd.fromArray(n,a);const o=i.x*Math.abs(Cd.x)+i.y*Math.abs(Cd.y)+i.z*Math.abs(Cd.z),c=e.dot(Cd),l=t.dot(Cd),u=r.dot(Cd);if(Math.max(-Math.max(c,l,u),Math.min(c,l,u))>o)return!1}return!0}const Kqe=new qa,gm=new ye,ex=new ye;class Fa{constructor(e=new ye,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const r=this.center;t!==void 0?r.copy(t):Kqe.setFromPoints(e).getCenter(r);let i=0;for(let a=0,s=e.length;a<s;a++)i=Math.max(i,r.distanceToSquared(e[a]));return this.radius=Math.sqrt(i),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const r=this.center.distanceToSquared(e);return t.copy(e),r>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;gm.subVectors(e,this.center);const t=gm.lengthSq();if(t>this.radius*this.radius){const r=Math.sqrt(t),i=(r-this.radius)*.5;this.center.addScaledVector(gm,i/r),this.radius+=i}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(ex.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(gm.copy(e.center).add(ex)),this.expandByPoint(gm.copy(e.center).sub(ex))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const xl=new ye,tx=new ye,_1=new ye,wu=new ye,nx=new ye,x1=new ye,rx=new ye;class jA{constructor(e=new ye,t=new ye(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,xl)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const r=t.dot(this.direction);return r<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,r)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=xl.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(xl.copy(this.origin).addScaledVector(this.direction,t),xl.distanceToSquared(e))}distanceSqToSegment(e,t,r,i){tx.copy(e).add(t).multiplyScalar(.5),_1.copy(t).sub(e).normalize(),wu.copy(this.origin).sub(tx);const a=e.distanceTo(t)*.5,s=-this.direction.dot(_1),o=wu.dot(this.direction),c=-wu.dot(_1),l=wu.lengthSq(),u=Math.abs(1-s*s);let A,f,h,g;if(u>0)if(A=s*c-o,f=s*o-c,g=a*u,A>=0)if(f>=-g)if(f<=g){const y=1/u;A*=y,f*=y,h=A*(A+s*f+2*o)+f*(s*A+f+2*c)+l}else f=a,A=Math.max(0,-(s*f+o)),h=-A*A+f*(f+2*c)+l;else f=-a,A=Math.max(0,-(s*f+o)),h=-A*A+f*(f+2*c)+l;else f<=-g?(A=Math.max(0,-(-s*a+o)),f=A>0?-a:Math.min(Math.max(-a,-c),a),h=-A*A+f*(f+2*c)+l):f<=g?(A=0,f=Math.min(Math.max(-a,-c),a),h=f*(f+2*c)+l):(A=Math.max(0,-(s*a+o)),f=A>0?a:Math.min(Math.max(-a,-c),a),h=-A*A+f*(f+2*c)+l);else f=s>0?-a:a,A=Math.max(0,-(s*f+o)),h=-A*A+f*(f+2*c)+l;return r&&r.copy(this.origin).addScaledVector(this.direction,A),i&&i.copy(tx).addScaledVector(_1,f),h}intersectSphere(e,t){xl.subVectors(e.center,this.origin);const r=xl.dot(this.direction),i=xl.dot(xl)-r*r,a=e.radius*e.radius;if(i>a)return null;const s=Math.sqrt(a-i),o=r-s,c=r+s;return c<0?null:o<0?this.at(c,t):this.at(o,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;const r=-(this.origin.dot(e.normal)+e.constant)/t;return r>=0?r:null}intersectPlane(e,t){const r=this.distanceToPlane(e);return r===null?null:this.at(r,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let r,i,a,s,o,c;const l=1/this.direction.x,u=1/this.direction.y,A=1/this.direction.z,f=this.origin;return l>=0?(r=(e.min.x-f.x)*l,i=(e.max.x-f.x)*l):(r=(e.max.x-f.x)*l,i=(e.min.x-f.x)*l),u>=0?(a=(e.min.y-f.y)*u,s=(e.max.y-f.y)*u):(a=(e.max.y-f.y)*u,s=(e.min.y-f.y)*u),r>s||a>i||((a>r||isNaN(r))&&(r=a),(s<i||isNaN(i))&&(i=s),A>=0?(o=(e.min.z-f.z)*A,c=(e.max.z-f.z)*A):(o=(e.max.z-f.z)*A,c=(e.min.z-f.z)*A),r>c||o>i)||((o>r||r!==r)&&(r=o),(c<i||i!==i)&&(i=c),i<0)?null:this.at(r>=0?r:i,t)}intersectsBox(e){return this.intersectBox(e,xl)!==null}intersectTriangle(e,t,r,i,a){nx.subVectors(t,e),x1.subVectors(r,e),rx.crossVectors(nx,x1);let s=this.direction.dot(rx),o;if(s>0){if(i)return null;o=1}else if(s<0)o=-1,s=-s;else return null;wu.subVectors(this.origin,e);const c=o*this.direction.dot(x1.crossVectors(wu,x1));if(c<0)return null;const l=o*this.direction.dot(nx.cross(wu));if(l<0||c+l>s)return null;const u=-o*wu.dot(rx);return u<0?null:this.at(u/s,a)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class vn{constructor(e,t,r,i,a,s,o,c,l,u,A,f,h,g,y,w){vn.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,t,r,i,a,s,o,c,l,u,A,f,h,g,y,w)}set(e,t,r,i,a,s,o,c,l,u,A,f,h,g,y,w){const v=this.elements;return v[0]=e,v[4]=t,v[8]=r,v[12]=i,v[1]=a,v[5]=s,v[9]=o,v[13]=c,v[2]=l,v[6]=u,v[10]=A,v[14]=f,v[3]=h,v[7]=g,v[11]=y,v[15]=w,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new vn().fromArray(this.elements)}copy(e){const t=this.elements,r=e.elements;return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t[6]=r[6],t[7]=r[7],t[8]=r[8],t[9]=r[9],t[10]=r[10],t[11]=r[11],t[12]=r[12],t[13]=r[13],t[14]=r[14],t[15]=r[15],this}copyPosition(e){const t=this.elements,r=e.elements;return t[12]=r[12],t[13]=r[13],t[14]=r[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,r){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),r.setFromMatrixColumn(this,2),this}makeBasis(e,t,r){return this.set(e.x,t.x,r.x,0,e.y,t.y,r.y,0,e.z,t.z,r.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,r=e.elements,i=1/yh.setFromMatrixColumn(e,0).length(),a=1/yh.setFromMatrixColumn(e,1).length(),s=1/yh.setFromMatrixColumn(e,2).length();return t[0]=r[0]*i,t[1]=r[1]*i,t[2]=r[2]*i,t[3]=0,t[4]=r[4]*a,t[5]=r[5]*a,t[6]=r[6]*a,t[7]=0,t[8]=r[8]*s,t[9]=r[9]*s,t[10]=r[10]*s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,r=e.x,i=e.y,a=e.z,s=Math.cos(r),o=Math.sin(r),c=Math.cos(i),l=Math.sin(i),u=Math.cos(a),A=Math.sin(a);if(e.order==="XYZ"){const f=s*u,h=s*A,g=o*u,y=o*A;t[0]=c*u,t[4]=-c*A,t[8]=l,t[1]=h+g*l,t[5]=f-y*l,t[9]=-o*c,t[2]=y-f*l,t[6]=g+h*l,t[10]=s*c}else if(e.order==="YXZ"){const f=c*u,h=c*A,g=l*u,y=l*A;t[0]=f+y*o,t[4]=g*o-h,t[8]=s*l,t[1]=s*A,t[5]=s*u,t[9]=-o,t[2]=h*o-g,t[6]=y+f*o,t[10]=s*c}else if(e.order==="ZXY"){const f=c*u,h=c*A,g=l*u,y=l*A;t[0]=f-y*o,t[4]=-s*A,t[8]=g+h*o,t[1]=h+g*o,t[5]=s*u,t[9]=y-f*o,t[2]=-s*l,t[6]=o,t[10]=s*c}else if(e.order==="ZYX"){const f=s*u,h=s*A,g=o*u,y=o*A;t[0]=c*u,t[4]=g*l-h,t[8]=f*l+y,t[1]=c*A,t[5]=y*l+f,t[9]=h*l-g,t[2]=-l,t[6]=o*c,t[10]=s*c}else if(e.order==="YZX"){const f=s*c,h=s*l,g=o*c,y=o*l;t[0]=c*u,t[4]=y-f*A,t[8]=g*A+h,t[1]=A,t[5]=s*u,t[9]=-o*u,t[2]=-l*u,t[6]=h*A+g,t[10]=f-y*A}else if(e.order==="XZY"){const f=s*c,h=s*l,g=o*c,y=o*l;t[0]=c*u,t[4]=-A,t[8]=l*u,t[1]=f*A+y,t[5]=s*u,t[9]=h*A-g,t[2]=g*A-h,t[6]=o*u,t[10]=y*A+f}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose(qqe,e,Xqe)}lookAt(e,t,r){const i=this.elements;return lo.subVectors(e,t),lo.lengthSq()===0&&(lo.z=1),lo.normalize(),bu.crossVectors(r,lo),bu.lengthSq()===0&&(Math.abs(r.z)===1?lo.x+=1e-4:lo.z+=1e-4,lo.normalize(),bu.crossVectors(r,lo)),bu.normalize(),M1.crossVectors(lo,bu),i[0]=bu.x,i[4]=M1.x,i[8]=lo.x,i[1]=bu.y,i[5]=M1.y,i[9]=lo.y,i[2]=bu.z,i[6]=M1.z,i[10]=lo.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const r=e.elements,i=t.elements,a=this.elements,s=r[0],o=r[4],c=r[8],l=r[12],u=r[1],A=r[5],f=r[9],h=r[13],g=r[2],y=r[6],w=r[10],v=r[14],S=r[3],C=r[7],M=r[11],F=r[15],D=i[0],U=i[4],O=i[8],T=i[12],P=i[1],k=i[5],H=i[9],j=i[13],$=i[2],ce=i[6],de=i[10],fe=i[14],ee=i[3],Se=i[7],xe=i[11],Pe=i[15];return a[0]=s*D+o*P+c*$+l*ee,a[4]=s*U+o*k+c*ce+l*Se,a[8]=s*O+o*H+c*de+l*xe,a[12]=s*T+o*j+c*fe+l*Pe,a[1]=u*D+A*P+f*$+h*ee,a[5]=u*U+A*k+f*ce+h*Se,a[9]=u*O+A*H+f*de+h*xe,a[13]=u*T+A*j+f*fe+h*Pe,a[2]=g*D+y*P+w*$+v*ee,a[6]=g*U+y*k+w*ce+v*Se,a[10]=g*O+y*H+w*de+v*xe,a[14]=g*T+y*j+w*fe+v*Pe,a[3]=S*D+C*P+M*$+F*ee,a[7]=S*U+C*k+M*ce+F*Se,a[11]=S*O+C*H+M*de+F*xe,a[15]=S*T+C*j+M*fe+F*Pe,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],r=e[4],i=e[8],a=e[12],s=e[1],o=e[5],c=e[9],l=e[13],u=e[2],A=e[6],f=e[10],h=e[14],g=e[3],y=e[7],w=e[11],v=e[15];return g*(+a*c*A-i*l*A-a*o*f+r*l*f+i*o*h-r*c*h)+y*(+t*c*h-t*l*f+a*s*f-i*s*h+i*l*u-a*c*u)+w*(+t*l*A-t*o*h-a*s*A+r*s*h+a*o*u-r*l*u)+v*(-i*o*u-t*c*A+t*o*f+i*s*A-r*s*f+r*c*u)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,r){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=r),this}invert(){const e=this.elements,t=e[0],r=e[1],i=e[2],a=e[3],s=e[4],o=e[5],c=e[6],l=e[7],u=e[8],A=e[9],f=e[10],h=e[11],g=e[12],y=e[13],w=e[14],v=e[15],S=A*w*l-y*f*l+y*c*h-o*w*h-A*c*v+o*f*v,C=g*f*l-u*w*l-g*c*h+s*w*h+u*c*v-s*f*v,M=u*y*l-g*A*l+g*o*h-s*y*h-u*o*v+s*A*v,F=g*A*c-u*y*c-g*o*f+s*y*f+u*o*w-s*A*w,D=t*S+r*C+i*M+a*F;if(D===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const U=1/D;return e[0]=S*U,e[1]=(y*f*a-A*w*a-y*i*h+r*w*h+A*i*v-r*f*v)*U,e[2]=(o*w*a-y*c*a+y*i*l-r*w*l-o*i*v+r*c*v)*U,e[3]=(A*c*a-o*f*a-A*i*l+r*f*l+o*i*h-r*c*h)*U,e[4]=C*U,e[5]=(u*w*a-g*f*a+g*i*h-t*w*h-u*i*v+t*f*v)*U,e[6]=(g*c*a-s*w*a-g*i*l+t*w*l+s*i*v-t*c*v)*U,e[7]=(s*f*a-u*c*a+u*i*l-t*f*l-s*i*h+t*c*h)*U,e[8]=M*U,e[9]=(g*A*a-u*y*a-g*r*h+t*y*h+u*r*v-t*A*v)*U,e[10]=(s*y*a-g*o*a+g*r*l-t*y*l-s*r*v+t*o*v)*U,e[11]=(u*o*a-s*A*a-u*r*l+t*A*l+s*r*h-t*o*h)*U,e[12]=F*U,e[13]=(u*y*i-g*A*i+g*r*f-t*y*f-u*r*w+t*A*w)*U,e[14]=(g*o*i-s*y*i-g*r*c+t*y*c+s*r*w-t*o*w)*U,e[15]=(s*A*i-u*o*i+u*r*c-t*A*c-s*r*f+t*o*f)*U,this}scale(e){const t=this.elements,r=e.x,i=e.y,a=e.z;return t[0]*=r,t[4]*=i,t[8]*=a,t[1]*=r,t[5]*=i,t[9]*=a,t[2]*=r,t[6]*=i,t[10]*=a,t[3]*=r,t[7]*=i,t[11]*=a,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,r,i))}makeTranslation(e,t,r){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,r,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),r=Math.sin(e);return this.set(1,0,0,0,0,t,-r,0,0,r,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,0,r,0,0,1,0,0,-r,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),r=Math.sin(e);return this.set(t,-r,0,0,r,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const r=Math.cos(t),i=Math.sin(t),a=1-r,s=e.x,o=e.y,c=e.z,l=a*s,u=a*o;return this.set(l*s+r,l*o-i*c,l*c+i*o,0,l*o+i*c,u*o+r,u*c-i*s,0,l*c-i*o,u*c+i*s,a*c*c+r,0,0,0,0,1),this}makeScale(e,t,r){return this.set(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1),this}makeShear(e,t,r,i,a,s){return this.set(1,r,a,0,e,1,s,0,t,i,1,0,0,0,0,1),this}compose(e,t,r){const i=this.elements,a=t._x,s=t._y,o=t._z,c=t._w,l=a+a,u=s+s,A=o+o,f=a*l,h=a*u,g=a*A,y=s*u,w=s*A,v=o*A,S=c*l,C=c*u,M=c*A,F=r.x,D=r.y,U=r.z;return i[0]=(1-(y+v))*F,i[1]=(h+M)*F,i[2]=(g-C)*F,i[3]=0,i[4]=(h-M)*D,i[5]=(1-(f+v))*D,i[6]=(w+S)*D,i[7]=0,i[8]=(g+C)*U,i[9]=(w-S)*U,i[10]=(1-(f+y))*U,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,r){const i=this.elements;let a=yh.set(i[0],i[1],i[2]).length();const s=yh.set(i[4],i[5],i[6]).length(),o=yh.set(i[8],i[9],i[10]).length();this.determinant()<0&&(a=-a),e.x=i[12],e.y=i[13],e.z=i[14],dc.copy(this);const l=1/a,u=1/s,A=1/o;return dc.elements[0]*=l,dc.elements[1]*=l,dc.elements[2]*=l,dc.elements[4]*=u,dc.elements[5]*=u,dc.elements[6]*=u,dc.elements[8]*=A,dc.elements[9]*=A,dc.elements[10]*=A,t.setFromRotationMatrix(dc),r.x=a,r.y=s,r.z=o,this}makePerspective(e,t,r,i,a,s,o=Yc){const c=this.elements,l=2*a/(t-e),u=2*a/(r-i),A=(t+e)/(t-e),f=(r+i)/(r-i);let h,g;if(o===Yc)h=-(s+a)/(s-a),g=-2*s*a/(s-a);else if(o===Xp)h=-s/(s-a),g=-s*a/(s-a);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return c[0]=l,c[4]=0,c[8]=A,c[12]=0,c[1]=0,c[5]=u,c[9]=f,c[13]=0,c[2]=0,c[6]=0,c[10]=h,c[14]=g,c[3]=0,c[7]=0,c[11]=-1,c[15]=0,this}makeOrthographic(e,t,r,i,a,s,o=Yc){const c=this.elements,l=1/(t-e),u=1/(r-i),A=1/(s-a),f=(t+e)*l,h=(r+i)*u;let g,y;if(o===Yc)g=(s+a)*A,y=-2*A;else if(o===Xp)g=a*A,y=-1*A;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return c[0]=2*l,c[4]=0,c[8]=0,c[12]=-f,c[1]=0,c[5]=2*u,c[9]=0,c[13]=-h,c[2]=0,c[6]=0,c[10]=y,c[14]=-g,c[3]=0,c[7]=0,c[11]=0,c[15]=1,this}equals(e){const t=this.elements,r=e.elements;for(let i=0;i<16;i++)if(t[i]!==r[i])return!1;return!0}fromArray(e,t=0){for(let r=0;r<16;r++)this.elements[r]=e[r+t];return this}toArray(e=[],t=0){const r=this.elements;return e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=r[3],e[t+4]=r[4],e[t+5]=r[5],e[t+6]=r[6],e[t+7]=r[7],e[t+8]=r[8],e[t+9]=r[9],e[t+10]=r[10],e[t+11]=r[11],e[t+12]=r[12],e[t+13]=r[13],e[t+14]=r[14],e[t+15]=r[15],e}}const yh=new ye,dc=new vn,qqe=new ye(0,0,0),Xqe=new ye(1,1,1),bu=new ye,M1=new ye,lo=new ye,KI=new vn,qI=new ma;class Mo{constructor(e=0,t=0,r=0,i=Mo.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=r,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,r,i=this._order){return this._x=e,this._y=t,this._z=r,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,r=!0){const i=e.elements,a=i[0],s=i[4],o=i[8],c=i[1],l=i[5],u=i[9],A=i[2],f=i[6],h=i[10];switch(t){case"XYZ":this._y=Math.asin(Tn(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-u,h),this._z=Math.atan2(-s,a)):(this._x=Math.atan2(f,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Tn(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(o,h),this._z=Math.atan2(c,l)):(this._y=Math.atan2(-A,a),this._z=0);break;case"ZXY":this._x=Math.asin(Tn(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-A,h),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(c,a));break;case"ZYX":this._y=Math.asin(-Tn(A,-1,1)),Math.abs(A)<.9999999?(this._x=Math.atan2(f,h),this._z=Math.atan2(c,a)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(Tn(c,-1,1)),Math.abs(c)<.9999999?(this._x=Math.atan2(-u,l),this._y=Math.atan2(-A,a)):(this._x=0,this._y=Math.atan2(o,h));break;case"XZY":this._z=Math.asin(-Tn(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(f,l),this._y=Math.atan2(o,a)):(this._x=Math.atan2(-u,h),this._y=0);break;default:}return this._order=t,r===!0&&this._onChangeCallback(),this}setFromQuaternion(e,t,r){return KI.makeRotationFromQuaternion(e),this.setFromRotationMatrix(KI,t,r)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return qI.setFromEuler(this),this.setFromQuaternion(qI,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}Mo.DEFAULT_ORDER="XYZ";class yb{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let Yqe=0;const XI=new ye,wh=new ma,Ml=new vn,S1=new ye,vm=new ye,Jqe=new ye,Zqe=new ma,YI=new ye(1,0,0),JI=new ye(0,1,0),ZI=new ye(0,0,1),e5={type:"added"},eXe={type:"removed"},bh={type:"childadded",child:null},ix={type:"childremoved",child:null};class Zn extends sl{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:Yqe++}),this.uuid=bo(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Zn.DEFAULT_UP.clone();const e=new ye,t=new Mo,r=new ma,i=new ye(1,1,1);function a(){r.setFromEuler(t,!1)}function s(){t.setFromQuaternion(r,void 0,!1)}t._onChange(a),r._onChange(s),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:r},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new vn},normalMatrix:{value:new Dn}}),this.matrix=new vn,this.matrixWorld=new vn,this.matrixAutoUpdate=Zn.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=Zn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new yb,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return wh.setFromAxisAngle(e,t),this.quaternion.multiply(wh),this}rotateOnWorldAxis(e,t){return wh.setFromAxisAngle(e,t),this.quaternion.premultiply(wh),this}rotateX(e){return this.rotateOnAxis(YI,e)}rotateY(e){return this.rotateOnAxis(JI,e)}rotateZ(e){return this.rotateOnAxis(ZI,e)}translateOnAxis(e,t){return XI.copy(e).applyQuaternion(this.quaternion),this.position.add(XI.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(YI,e)}translateY(e){return this.translateOnAxis(JI,e)}translateZ(e){return this.translateOnAxis(ZI,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(Ml.copy(this.matrixWorld).invert())}lookAt(e,t,r){e.isVector3?S1.copy(e):S1.set(e,t,r);const i=this.parent;this.updateWorldMatrix(!0,!1),vm.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Ml.lookAt(vm,S1,this.up):Ml.lookAt(S1,vm,this.up),this.quaternion.setFromRotationMatrix(Ml),i&&(Ml.extractRotation(i.matrixWorld),wh.setFromRotationMatrix(Ml),this.quaternion.premultiply(wh.invert()))}add(e){if(arguments.length>1){for(let t=0;t<arguments.length;t++)this.add(arguments[t]);return this}return e===this?this:(e&&e.isObject3D&&(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(e5),bh.child=e,this.dispatchEvent(bh),bh.child=null),this)}remove(e){if(arguments.length>1){for(let r=0;r<arguments.length;r++)this.remove(arguments[r]);return this}const t=this.children.indexOf(e);return t!==-1&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(eXe),ix.child=e,this.dispatchEvent(ix),ix.child=null),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),Ml.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),Ml.multiply(e.parent.matrixWorld)),e.applyMatrix4(Ml),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(e5),bh.child=e,this.dispatchEvent(bh),bh.child=null,this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let r=0,i=this.children.length;r<i;r++){const s=this.children[r].getObjectByProperty(e,t);if(s!==void 0)return s}}getObjectsByProperty(e,t,r=[]){this[e]===t&&r.push(this);const i=this.children;for(let a=0,s=i.length;a<s;a++)i[a].getObjectsByProperty(e,t,r);return r}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(vm,e,Jqe),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(vm,Zqe,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let r=0,i=t.length;r<i;r++)t[r].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const t=this.children;for(let r=0,i=t.length;r<i;r++)t[r].traverseVisible(e)}traverseAncestors(e){const t=this.parent;t!==null&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let r=0,i=t.length;r<i;r++)t[r].updateMatrixWorld(e)}updateWorldMatrix(e,t){const r=this.parent;if(e===!0&&r!==null&&r.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),t===!0){const i=this.children;for(let a=0,s=i.length;a<s;a++)i[a].updateWorldMatrix(!1,!0)}}toJSON(e){const t=e===void 0||typeof e=="string",r={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},r.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const i={};i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.castShadow===!0&&(i.castShadow=!0),this.receiveShadow===!0&&(i.receiveShadow=!0),this.visible===!1&&(i.visible=!1),this.frustumCulled===!1&&(i.frustumCulled=!1),this.renderOrder!==0&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map(o=>({boxInitialized:o.boxInitialized,boxMin:o.box.min.toArray(),boxMax:o.box.max.toArray(),sphereInitialized:o.sphereInitialized,sphereRadius:o.sphere.radius,sphereCenter:o.sphere.center.toArray()})),i.maxInstanceCount=this._maxInstanceCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),this._colorsTexture!==null&&(i.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),this.boundingBox!==null&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()}));function a(o,c){return o[c.uuid]===void 0&&(o[c.uuid]=c.toJSON(e)),c.uuid}if(this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=a(e.geometries,this.geometry);const o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){const c=o.shapes;if(Array.isArray(c))for(let l=0,u=c.length;l<u;l++){const A=c[l];a(e.shapes,A)}else a(e.shapes,c)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(a(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const o=[];for(let c=0,l=this.material.length;c<l;c++)o.push(a(e.materials,this.material[c]));i.material=o}else i.material=a(e.materials,this.material);if(this.children.length>0){i.children=[];for(let o=0;o<this.children.length;o++)i.children.push(this.children[o].toJSON(e).object)}if(this.animations.length>0){i.animations=[];for(let o=0;o<this.animations.length;o++){const c=this.animations[o];i.animations.push(a(e.animations,c))}}if(t){const o=s(e.geometries),c=s(e.materials),l=s(e.textures),u=s(e.images),A=s(e.shapes),f=s(e.skeletons),h=s(e.animations),g=s(e.nodes);o.length>0&&(r.geometries=o),c.length>0&&(r.materials=c),l.length>0&&(r.textures=l),u.length>0&&(r.images=u),A.length>0&&(r.shapes=A),f.length>0&&(r.skeletons=f),h.length>0&&(r.animations=h),g.length>0&&(r.nodes=g)}return r.object=i,r;function s(o){const c=[];for(const l in o){const u=o[l];delete u.metadata,c.push(u)}return c}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let r=0;r<e.children.length;r++){const i=e.children[r];this.add(i.clone())}return this}}Zn.DEFAULT_UP=new ye(0,1,0);Zn.DEFAULT_MATRIX_AUTO_UPDATE=!0;Zn.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const Ac=new ye,Sl=new ye,ax=new ye,Cl=new ye,_h=new ye,xh=new ye,t5=new ye,sx=new ye,ox=new ye,cx=new ye,lx=new ar,ux=new ar,dx=new ar;class js{constructor(e=new ye,t=new ye,r=new ye){this.a=e,this.b=t,this.c=r}static getNormal(e,t,r,i){i.subVectors(r,t),Ac.subVectors(e,t),i.cross(Ac);const a=i.lengthSq();return a>0?i.multiplyScalar(1/Math.sqrt(a)):i.set(0,0,0)}static getBarycoord(e,t,r,i,a){Ac.subVectors(i,t),Sl.subVectors(r,t),ax.subVectors(e,t);const s=Ac.dot(Ac),o=Ac.dot(Sl),c=Ac.dot(ax),l=Sl.dot(Sl),u=Sl.dot(ax),A=s*l-o*o;if(A===0)return a.set(0,0,0),null;const f=1/A,h=(l*c-o*u)*f,g=(s*u-o*c)*f;return a.set(1-h-g,g,h)}static containsPoint(e,t,r,i){return this.getBarycoord(e,t,r,i,Cl)===null?!1:Cl.x>=0&&Cl.y>=0&&Cl.x+Cl.y<=1}static getInterpolation(e,t,r,i,a,s,o,c){return this.getBarycoord(e,t,r,i,Cl)===null?(c.x=0,c.y=0,"z"in c&&(c.z=0),"w"in c&&(c.w=0),null):(c.setScalar(0),c.addScaledVector(a,Cl.x),c.addScaledVector(s,Cl.y),c.addScaledVector(o,Cl.z),c)}static getInterpolatedAttribute(e,t,r,i,a,s){return lx.setScalar(0),ux.setScalar(0),dx.setScalar(0),lx.fromBufferAttribute(e,t),ux.fromBufferAttribute(e,r),dx.fromBufferAttribute(e,i),s.setScalar(0),s.addScaledVector(lx,a.x),s.addScaledVector(ux,a.y),s.addScaledVector(dx,a.z),s}static isFrontFacing(e,t,r,i){return Ac.subVectors(r,t),Sl.subVectors(e,t),Ac.cross(Sl).dot(i)<0}set(e,t,r){return this.a.copy(e),this.b.copy(t),this.c.copy(r),this}setFromPointsAndIndices(e,t,r,i){return this.a.copy(e[t]),this.b.copy(e[r]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,r,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,r),this.c.fromBufferAttribute(e,i),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Ac.subVectors(this.c,this.b),Sl.subVectors(this.a,this.b),Ac.cross(Sl).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return js.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return js.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,r,i,a){return js.getInterpolation(e,this.a,this.b,this.c,t,r,i,a)}containsPoint(e){return js.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return js.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const r=this.a,i=this.b,a=this.c;let s,o;_h.subVectors(i,r),xh.subVectors(a,r),sx.subVectors(e,r);const c=_h.dot(sx),l=xh.dot(sx);if(c<=0&&l<=0)return t.copy(r);ox.subVectors(e,i);const u=_h.dot(ox),A=xh.dot(ox);if(u>=0&&A<=u)return t.copy(i);const f=c*A-u*l;if(f<=0&&c>=0&&u<=0)return s=c/(c-u),t.copy(r).addScaledVector(_h,s);cx.subVectors(e,a);const h=_h.dot(cx),g=xh.dot(cx);if(g>=0&&h<=g)return t.copy(a);const y=h*l-c*g;if(y<=0&&l>=0&&g<=0)return o=l/(l-g),t.copy(r).addScaledVector(xh,o);const w=u*g-h*A;if(w<=0&&A-u>=0&&h-g>=0)return t5.subVectors(a,i),o=(A-u)/(A-u+(h-g)),t.copy(i).addScaledVector(t5,o);const v=1/(w+y+f);return s=y*v,o=f*v,t.copy(r).addScaledVector(_h,s).addScaledVector(xh,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const sQ={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},_u={h:0,s:0,l:0},C1={h:0,s:0,l:0};function Ax(n,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?n+(e-n)*6*t:t<1/2?e:t<2/3?n+(e-n)*6*(2/3-t):n}class Qt{constructor(e,t,r){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,r)}set(e,t,r){if(t===void 0&&r===void 0){const i=e;i&&i.isColor?this.copy(i):typeof i=="number"?this.setHex(i):typeof i=="string"&&this.setStyle(i)}else this.setRGB(e,t,r);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=Gi){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Jn.toWorkingColorSpace(this,t),this}setRGB(e,t,r,i=Jn.workingColorSpace){return this.r=e,this.g=t,this.b=r,Jn.toWorkingColorSpace(this,i),this}setHSL(e,t,r,i=Jn.workingColorSpace){if(e=wP(e,1),t=Tn(t,0,1),r=Tn(r,0,1),t===0)this.r=this.g=this.b=r;else{const a=r<=.5?r*(1+t):r+t-r*t,s=2*r-a;this.r=Ax(s,a,e+1/3),this.g=Ax(s,a,e),this.b=Ax(s,a,e-1/3)}return Jn.toWorkingColorSpace(this,i),this}setStyle(e,t=Gi){function r(a){a!==void 0&&parseFloat(a)<1}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let a;const s=i[1],o=i[2];switch(s){case"rgb":case"rgba":if(a=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return r(a[4]),this.setRGB(Math.min(255,parseInt(a[1],10))/255,Math.min(255,parseInt(a[2],10))/255,Math.min(255,parseInt(a[3],10))/255,t);if(a=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return r(a[4]),this.setRGB(Math.min(100,parseInt(a[1],10))/100,Math.min(100,parseInt(a[2],10))/100,Math.min(100,parseInt(a[3],10))/100,t);break;case"hsl":case"hsla":if(a=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return r(a[4]),this.setHSL(parseFloat(a[1])/360,parseFloat(a[2])/100,parseFloat(a[3])/100,t);break;default:}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const a=i[1],s=a.length;if(s===3)return this.setRGB(parseInt(a.charAt(0),16)/15,parseInt(a.charAt(1),16)/15,parseInt(a.charAt(2),16)/15,t);if(s===6)return this.setHex(parseInt(a,16),t)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=Gi){const r=sQ[e.toLowerCase()];return r!==void 0&&this.setHex(r,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=zl(e.r),this.g=zl(e.g),this.b=zl(e.b),this}copyLinearToSRGB(e){return this.r=Xh(e.r),this.g=Xh(e.g),this.b=Xh(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=Gi){return Jn.fromWorkingColorSpace(ja.copy(this),e),Math.round(Tn(ja.r*255,0,255))*65536+Math.round(Tn(ja.g*255,0,255))*256+Math.round(Tn(ja.b*255,0,255))}getHexString(e=Gi){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Jn.workingColorSpace){Jn.fromWorkingColorSpace(ja.copy(this),t);const r=ja.r,i=ja.g,a=ja.b,s=Math.max(r,i,a),o=Math.min(r,i,a);let c,l;const u=(o+s)/2;if(o===s)c=0,l=0;else{const A=s-o;switch(l=u<=.5?A/(s+o):A/(2-s-o),s){case r:c=(i-a)/A+(i<a?6:0);break;case i:c=(a-r)/A+2;break;case a:c=(r-i)/A+4;break}c/=6}return e.h=c,e.s=l,e.l=u,e}getRGB(e,t=Jn.workingColorSpace){return Jn.fromWorkingColorSpace(ja.copy(this),t),e.r=ja.r,e.g=ja.g,e.b=ja.b,e}getStyle(e=Gi){Jn.fromWorkingColorSpace(ja.copy(this),e);const t=ja.r,r=ja.g,i=ja.b;return e!==Gi?`color(${e} ${t.toFixed(3)} ${r.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(t*255)},${Math.round(r*255)},${Math.round(i*255)})`}offsetHSL(e,t,r){return this.getHSL(_u),this.setHSL(_u.h+e,_u.s+t,_u.l+r)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,r){return this.r=e.r+(t.r-e.r)*r,this.g=e.g+(t.g-e.g)*r,this.b=e.b+(t.b-e.b)*r,this}lerpHSL(e,t){this.getHSL(_u),e.getHSL(C1);const r=Ap(_u.h,C1.h,t),i=Ap(_u.s,C1.s,t),a=Ap(_u.l,C1.l,t);return this.setHSL(r,i,a),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,r=this.g,i=this.b,a=e.elements;return this.r=a[0]*t+a[3]*r+a[6]*i,this.g=a[1]*t+a[4]*r+a[7]*i,this.b=a[2]*t+a[5]*r+a[8]*i,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const ja=new Qt;Qt.NAMES=sQ;let tXe=0;class Yi extends sl{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:tXe++}),this.uuid=bo(),this.name="",this.type="Material",this.blending=lA,this.side=rl,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=Ny,this.blendDst=Dy,this.blendEquation=Lu,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Qt(0,0,0),this.blendAlpha=0,this.depthFunc=SA,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=SM,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Qd,this.stencilZFail=Qd,this.stencilZPass=Qd,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const t in e){const r=e[t];if(r===void 0)continue;const i=this[t];i!==void 0&&(i&&i.isColor?i.set(r):i&&i.isVector3&&r&&r.isVector3?i.copy(r):this[t]=r)}}toJSON(e){const t=e===void 0||typeof e=="string";t&&(e={textures:{},images:{}});const r={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),this.roughness!==void 0&&(r.roughness=this.roughness),this.metalness!==void 0&&(r.metalness=this.metalness),this.sheen!==void 0&&(r.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(r.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(r.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(r.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(r.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(r.shininess=this.shininess),this.clearcoat!==void 0&&(r.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(r.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(r.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(r.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(r.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,r.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.dispersion!==void 0&&(r.dispersion=this.dispersion),this.iridescence!==void 0&&(r.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(r.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(r.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(r.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(r.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(r.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(r.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(r.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(r.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(e).uuid,r.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(e).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(e).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(e).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(e).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(r.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(r.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(r.combine=this.combine)),this.envMapRotation!==void 0&&(r.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(r.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(r.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(r.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(r.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(r.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(r.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(r.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(r.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(r.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(r.size=this.size),this.shadowSide!==null&&(r.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==lA&&(r.blending=this.blending),this.side!==rl&&(r.side=this.side),this.vertexColors===!0&&(r.vertexColors=!0),this.opacity<1&&(r.opacity=this.opacity),this.transparent===!0&&(r.transparent=!0),this.blendSrc!==Ny&&(r.blendSrc=this.blendSrc),this.blendDst!==Dy&&(r.blendDst=this.blendDst),this.blendEquation!==Lu&&(r.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(r.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(r.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(r.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(r.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(r.blendAlpha=this.blendAlpha),this.depthFunc!==SA&&(r.depthFunc=this.depthFunc),this.depthTest===!1&&(r.depthTest=this.depthTest),this.depthWrite===!1&&(r.depthWrite=this.depthWrite),this.colorWrite===!1&&(r.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(r.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==SM&&(r.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(r.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(r.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==Qd&&(r.stencilFail=this.stencilFail),this.stencilZFail!==Qd&&(r.stencilZFail=this.stencilZFail),this.stencilZPass!==Qd&&(r.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(r.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(r.rotation=this.rotation),this.polygonOffset===!0&&(r.polygonOffset=!0),this.polygonOffsetFactor!==0&&(r.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(r.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(r.linewidth=this.linewidth),this.dashSize!==void 0&&(r.dashSize=this.dashSize),this.gapSize!==void 0&&(r.gapSize=this.gapSize),this.scale!==void 0&&(r.scale=this.scale),this.dithering===!0&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),this.alphaHash===!0&&(r.alphaHash=!0),this.alphaToCoverage===!0&&(r.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(r.premultipliedAlpha=!0),this.forceSinglePass===!0&&(r.forceSinglePass=!0),this.wireframe===!0&&(r.wireframe=!0),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(r.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(r.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(r.flatShading=!0),this.visible===!1&&(r.visible=!1),this.toneMapped===!1&&(r.toneMapped=!1),this.fog===!1&&(r.fog=!1),Object.keys(this.userData).length>0&&(r.userData=this.userData);function i(a){const s=[];for(const o in a){const c=a[o];delete c.metadata,s.push(c)}return s}if(t){const a=i(e.textures),s=i(e.images);a.length>0&&(r.textures=a),s.length>0&&(r.images=s)}return r}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let r=null;if(t!==null){const i=t.length;r=new Array(i);for(let a=0;a!==i;++a)r[a]=t[a].clone()}return this.clippingPlanes=r,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}onBuild(){}}class vo extends Yi{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Qt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Mo,this.combine=Pg,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Nl=nXe();function nXe(){const n=new ArrayBuffer(4),e=new Float32Array(n),t=new Uint32Array(n),r=new Uint32Array(512),i=new Uint32Array(512);for(let c=0;c<256;++c){const l=c-127;l<-27?(r[c]=0,r[c|256]=32768,i[c]=24,i[c|256]=24):l<-14?(r[c]=1024>>-l-14,r[c|256]=1024>>-l-14|32768,i[c]=-l-1,i[c|256]=-l-1):l<=15?(r[c]=l+15<<10,r[c|256]=l+15<<10|32768,i[c]=13,i[c|256]=13):l<128?(r[c]=31744,r[c|256]=64512,i[c]=24,i[c|256]=24):(r[c]=31744,r[c|256]=64512,i[c]=13,i[c|256]=13)}const a=new Uint32Array(2048),s=new Uint32Array(64),o=new Uint32Array(64);for(let c=1;c<1024;++c){let l=c<<13,u=0;for(;(l&8388608)===0;)l<<=1,u-=8388608;l&=-8388609,u+=947912704,a[c]=l|u}for(let c=1024;c<2048;++c)a[c]=939524096+(c-1024<<13);for(let c=1;c<31;++c)s[c]=c<<23;s[31]=1199570944,s[32]=2147483648;for(let c=33;c<63;++c)s[c]=2147483648+(c-32<<23);s[63]=3347054592;for(let c=1;c<64;++c)c!==32&&(o[c]=1024);return{floatView:e,uint32View:t,baseTable:r,shiftTable:i,mantissaTable:a,exponentTable:s,offsetTable:o}}function Qs(n){Math.abs(n)>65504,n=Tn(n,-65504,65504),Nl.floatView[0]=n;const e=Nl.uint32View[0],t=e>>23&511;return Nl.baseTable[t]+((e&8388607)>>Nl.shiftTable[t])}function Om(n){const e=n>>10;return Nl.uint32View[0]=Nl.mantissaTable[Nl.offsetTable[e]+(n&1023)]+Nl.exponentTable[e],Nl.floatView[0]}const rXe={toHalfFloat:Qs,fromHalfFloat:Om},Ri=new ye,P1=new vt;class hr{constructor(e,t,r=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=e!==void 0?e.length/t:0,this.normalized=r,this.usage=qp,this.updateRanges=[],this.gpuType=zs,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,r){e*=this.itemSize,r*=t.itemSize;for(let i=0,a=this.itemSize;i<a;i++)this.array[e+i]=t.array[r+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let t=0,r=this.count;t<r;t++)P1.fromBufferAttribute(this,t),P1.applyMatrix3(e),this.setXY(t,P1.x,P1.y);else if(this.itemSize===3)for(let t=0,r=this.count;t<r;t++)Ri.fromBufferAttribute(this,t),Ri.applyMatrix3(e),this.setXYZ(t,Ri.x,Ri.y,Ri.z);return this}applyMatrix4(e){for(let t=0,r=this.count;t<r;t++)Ri.fromBufferAttribute(this,t),Ri.applyMatrix4(e),this.setXYZ(t,Ri.x,Ri.y,Ri.z);return this}applyNormalMatrix(e){for(let t=0,r=this.count;t<r;t++)Ri.fromBufferAttribute(this,t),Ri.applyNormalMatrix(e),this.setXYZ(t,Ri.x,Ri.y,Ri.z);return this}transformDirection(e){for(let t=0,r=this.count;t<r;t++)Ri.fromBufferAttribute(this,t),Ri.transformDirection(e),this.setXYZ(t,Ri.x,Ri.y,Ri.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let r=this.array[e*this.itemSize+t];return this.normalized&&(r=xs(r,this.array)),r}setComponent(e,t,r){return this.normalized&&(r=Un(r,this.array)),this.array[e*this.itemSize+t]=r,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=xs(t,this.array)),t}setX(e,t){return this.normalized&&(t=Un(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=xs(t,this.array)),t}setY(e,t){return this.normalized&&(t=Un(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=xs(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Un(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=xs(t,this.array)),t}setW(e,t){return this.normalized&&(t=Un(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,r){return e*=this.itemSize,this.normalized&&(t=Un(t,this.array),r=Un(r,this.array)),this.array[e+0]=t,this.array[e+1]=r,this}setXYZ(e,t,r,i){return e*=this.itemSize,this.normalized&&(t=Un(t,this.array),r=Un(r,this.array),i=Un(i,this.array)),this.array[e+0]=t,this.array[e+1]=r,this.array[e+2]=i,this}setXYZW(e,t,r,i,a){return e*=this.itemSize,this.normalized&&(t=Un(t,this.array),r=Un(r,this.array),i=Un(i,this.array),a=Un(a,this.array)),this.array[e+0]=t,this.array[e+1]=r,this.array[e+2]=i,this.array[e+3]=a,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(e.name=this.name),this.usage!==qp&&(e.usage=this.usage),e}}class iXe extends hr{constructor(e,t,r){super(new Int8Array(e),t,r)}}class aXe extends hr{constructor(e,t,r){super(new Uint8Array(e),t,r)}}class sXe extends hr{constructor(e,t,r){super(new Uint8ClampedArray(e),t,r)}}class oXe extends hr{constructor(e,t,r){super(new Int16Array(e),t,r)}}class xP extends hr{constructor(e,t,r){super(new Uint16Array(e),t,r)}}class cXe extends hr{constructor(e,t,r){super(new Int32Array(e),t,r)}}class MP extends hr{constructor(e,t,r){super(new Uint32Array(e),t,r)}}class lXe extends hr{constructor(e,t,r){super(new Uint16Array(e),t,r),this.isFloat16BufferAttribute=!0}getX(e){let t=Om(this.array[e*this.itemSize]);return this.normalized&&(t=xs(t,this.array)),t}setX(e,t){return this.normalized&&(t=Un(t,this.array)),this.array[e*this.itemSize]=Qs(t),this}getY(e){let t=Om(this.array[e*this.itemSize+1]);return this.normalized&&(t=xs(t,this.array)),t}setY(e,t){return this.normalized&&(t=Un(t,this.array)),this.array[e*this.itemSize+1]=Qs(t),this}getZ(e){let t=Om(this.array[e*this.itemSize+2]);return this.normalized&&(t=xs(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Un(t,this.array)),this.array[e*this.itemSize+2]=Qs(t),this}getW(e){let t=Om(this.array[e*this.itemSize+3]);return this.normalized&&(t=xs(t,this.array)),t}setW(e,t){return this.normalized&&(t=Un(t,this.array)),this.array[e*this.itemSize+3]=Qs(t),this}setXY(e,t,r){return e*=this.itemSize,this.normalized&&(t=Un(t,this.array),r=Un(r,this.array)),this.array[e+0]=Qs(t),this.array[e+1]=Qs(r),this}setXYZ(e,t,r,i){return e*=this.itemSize,this.normalized&&(t=Un(t,this.array),r=Un(r,this.array),i=Un(i,this.array)),this.array[e+0]=Qs(t),this.array[e+1]=Qs(r),this.array[e+2]=Qs(i),this}setXYZW(e,t,r,i,a){return e*=this.itemSize,this.normalized&&(t=Un(t,this.array),r=Un(r,this.array),i=Un(i,this.array),a=Un(a,this.array)),this.array[e+0]=Qs(t),this.array[e+1]=Qs(r),this.array[e+2]=Qs(i),this.array[e+3]=Qs(a),this}}class an extends hr{constructor(e,t,r){super(new Float32Array(e),t,r)}}let uXe=0;const No=new vn,hx=new Zn,Mh=new ye,uo=new qa,ym=new qa,la=new ye;class Hn extends sl{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:uXe++}),this.uuid=bo(),this.name="",this.type="BufferGeometry",this.index=null,this.indirect=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(nQ(e)?MP:xP)(e,1):this.index=e,this}setIndirect(e){return this.indirect=e,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,r=0){this.groups.push({start:e,count:t,materialIndex:r})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);const r=this.attributes.normal;if(r!==void 0){const a=new Dn().getNormalMatrix(e);r.applyNormalMatrix(a),r.needsUpdate=!0}const i=this.attributes.tangent;return i!==void 0&&(i.transformDirection(e),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return No.makeRotationFromQuaternion(e),this.applyMatrix4(No),this}rotateX(e){return No.makeRotationX(e),this.applyMatrix4(No),this}rotateY(e){return No.makeRotationY(e),this.applyMatrix4(No),this}rotateZ(e){return No.makeRotationZ(e),this.applyMatrix4(No),this}translate(e,t,r){return No.makeTranslation(e,t,r),this.applyMatrix4(No),this}scale(e,t,r){return No.makeScale(e,t,r),this.applyMatrix4(No),this}lookAt(e){return hx.lookAt(e),hx.updateMatrix(),this.applyMatrix4(hx.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Mh).negate(),this.translate(Mh.x,Mh.y,Mh.z),this}setFromPoints(e){const t=this.getAttribute("position");if(t===void 0){const r=[];for(let i=0,a=e.length;i<a;i++){const s=e[i];r.push(s.x,s.y,s.z||0)}this.setAttribute("position",new an(r,3))}else{const r=Math.min(e.length,t.count);for(let i=0;i<r;i++){const a=e[i];t.setXYZ(i,a.x,a.y,a.z||0)}e.length>t.count,t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new qa);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){this.boundingBox.set(new ye(-1/0,-1/0,-1/0),new ye(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let r=0,i=t.length;r<i;r++){const a=t[r];uo.setFromBufferAttribute(a),this.morphTargetsRelative?(la.addVectors(this.boundingBox.min,uo.min),this.boundingBox.expandByPoint(la),la.addVectors(this.boundingBox.max,uo.max),this.boundingBox.expandByPoint(la)):(this.boundingBox.expandByPoint(uo.min),this.boundingBox.expandByPoint(uo.max))}}else this.boundingBox.makeEmpty();isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new Fa);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){this.boundingSphere.set(new ye,1/0);return}if(e){const r=this.boundingSphere.center;if(uo.setFromBufferAttribute(e),t)for(let a=0,s=t.length;a<s;a++){const o=t[a];ym.setFromBufferAttribute(o),this.morphTargetsRelative?(la.addVectors(uo.min,ym.min),uo.expandByPoint(la),la.addVectors(uo.max,ym.max),uo.expandByPoint(la)):(uo.expandByPoint(ym.min),uo.expandByPoint(ym.max))}uo.getCenter(r);let i=0;for(let a=0,s=e.count;a<s;a++)la.fromBufferAttribute(e,a),i=Math.max(i,r.distanceToSquared(la));if(t)for(let a=0,s=t.length;a<s;a++){const o=t[a],c=this.morphTargetsRelative;for(let l=0,u=o.count;l<u;l++)la.fromBufferAttribute(o,l),c&&(Mh.fromBufferAttribute(e,l),la.add(Mh)),i=Math.max(i,r.distanceToSquared(la))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)}}computeTangents(){const e=this.index,t=this.attributes;if(e===null||t.position===void 0||t.normal===void 0||t.uv===void 0)return;const r=t.position,i=t.normal,a=t.uv;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new hr(new Float32Array(4*r.count),4));const s=this.getAttribute("tangent"),o=[],c=[];for(let O=0;O<r.count;O++)o[O]=new ye,c[O]=new ye;const l=new ye,u=new ye,A=new ye,f=new vt,h=new vt,g=new vt,y=new ye,w=new ye;function v(O,T,P){l.fromBufferAttribute(r,O),u.fromBufferAttribute(r,T),A.fromBufferAttribute(r,P),f.fromBufferAttribute(a,O),h.fromBufferAttribute(a,T),g.fromBufferAttribute(a,P),u.sub(l),A.sub(l),h.sub(f),g.sub(f);const k=1/(h.x*g.y-g.x*h.y);isFinite(k)&&(y.copy(u).multiplyScalar(g.y).addScaledVector(A,-h.y).multiplyScalar(k),w.copy(A).multiplyScalar(h.x).addScaledVector(u,-g.x).multiplyScalar(k),o[O].add(y),o[T].add(y),o[P].add(y),c[O].add(w),c[T].add(w),c[P].add(w))}let S=this.groups;S.length===0&&(S=[{start:0,count:e.count}]);for(let O=0,T=S.length;O<T;++O){const P=S[O],k=P.start,H=P.count;for(let j=k,$=k+H;j<$;j+=3)v(e.getX(j+0),e.getX(j+1),e.getX(j+2))}const C=new ye,M=new ye,F=new ye,D=new ye;function U(O){F.fromBufferAttribute(i,O),D.copy(F);const T=o[O];C.copy(T),C.sub(F.multiplyScalar(F.dot(T))).normalize(),M.crossVectors(D,T);const k=M.dot(c[O])<0?-1:1;s.setXYZW(O,C.x,C.y,C.z,k)}for(let O=0,T=S.length;O<T;++O){const P=S[O],k=P.start,H=P.count;for(let j=k,$=k+H;j<$;j+=3)U(e.getX(j+0)),U(e.getX(j+1)),U(e.getX(j+2))}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(t!==void 0){let r=this.getAttribute("normal");if(r===void 0)r=new hr(new Float32Array(t.count*3),3),this.setAttribute("normal",r);else for(let f=0,h=r.count;f<h;f++)r.setXYZ(f,0,0,0);const i=new ye,a=new ye,s=new ye,o=new ye,c=new ye,l=new ye,u=new ye,A=new ye;if(e)for(let f=0,h=e.count;f<h;f+=3){const g=e.getX(f+0),y=e.getX(f+1),w=e.getX(f+2);i.fromBufferAttribute(t,g),a.fromBufferAttribute(t,y),s.fromBufferAttribute(t,w),u.subVectors(s,a),A.subVectors(i,a),u.cross(A),o.fromBufferAttribute(r,g),c.fromBufferAttribute(r,y),l.fromBufferAttribute(r,w),o.add(u),c.add(u),l.add(u),r.setXYZ(g,o.x,o.y,o.z),r.setXYZ(y,c.x,c.y,c.z),r.setXYZ(w,l.x,l.y,l.z)}else for(let f=0,h=t.count;f<h;f+=3)i.fromBufferAttribute(t,f+0),a.fromBufferAttribute(t,f+1),s.fromBufferAttribute(t,f+2),u.subVectors(s,a),A.subVectors(i,a),u.cross(A),r.setXYZ(f+0,u.x,u.y,u.z),r.setXYZ(f+1,u.x,u.y,u.z),r.setXYZ(f+2,u.x,u.y,u.z);this.normalizeNormals(),r.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,r=e.count;t<r;t++)la.fromBufferAttribute(e,t),la.normalize(),e.setXYZ(t,la.x,la.y,la.z)}toNonIndexed(){function e(o,c){const l=o.array,u=o.itemSize,A=o.normalized,f=new l.constructor(c.length*u);let h=0,g=0;for(let y=0,w=c.length;y<w;y++){o.isInterleavedBufferAttribute?h=c[y]*o.data.stride+o.offset:h=c[y]*u;for(let v=0;v<u;v++)f[g++]=l[h++]}return new hr(f,u,A)}if(this.index===null)return this;const t=new Hn,r=this.index.array,i=this.attributes;for(const o in i){const c=i[o],l=e(c,r);t.setAttribute(o,l)}const a=this.morphAttributes;for(const o in a){const c=[],l=a[o];for(let u=0,A=l.length;u<A;u++){const f=l[u],h=e(f,r);c.push(h)}t.morphAttributes[o]=c}t.morphTargetsRelative=this.morphTargetsRelative;const s=this.groups;for(let o=0,c=s.length;o<c;o++){const l=s[o];t.addGroup(l.start,l.count,l.materialIndex)}return t}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const c=this.parameters;for(const l in c)c[l]!==void 0&&(e[l]=c[l]);return e}e.data={attributes:{}};const t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const r=this.attributes;for(const c in r){const l=r[c];e.data.attributes[c]=l.toJSON(e.data)}const i={};let a=!1;for(const c in this.morphAttributes){const l=this.morphAttributes[c],u=[];for(let A=0,f=l.length;A<f;A++){const h=l[A];u.push(h.toJSON(e.data))}u.length>0&&(i[c]=u,a=!0)}a&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));const o=this.boundingSphere;return o!==null&&(e.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const r=e.index;r!==null&&this.setIndex(r.clone(t));const i=e.attributes;for(const l in i){const u=i[l];this.setAttribute(l,u.clone(t))}const a=e.morphAttributes;for(const l in a){const u=[],A=a[l];for(let f=0,h=A.length;f<h;f++)u.push(A[f].clone(t));this.morphAttributes[l]=u}this.morphTargetsRelative=e.morphTargetsRelative;const s=e.groups;for(let l=0,u=s.length;l<u;l++){const A=s[l];this.addGroup(A.start,A.count,A.materialIndex)}const o=e.boundingBox;o!==null&&(this.boundingBox=o.clone());const c=e.boundingSphere;return c!==null&&(this.boundingSphere=c.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const n5=new vn,Pd=new jA,E1=new Fa,r5=new ye,B1=new ye,T1=new ye,k1=new ye,fx=new ye,I1=new ye,i5=new ye,L1=new ye;class Fi extends Zn{constructor(e=new Hn,t=new vo){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const t=this.geometry.morphAttributes,r=Object.keys(t);if(r.length>0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,s=i.length;a<s;a++){const o=i[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=a}}}}getVertexPosition(e,t){const r=this.geometry,i=r.attributes.position,a=r.morphAttributes.position,s=r.morphTargetsRelative;t.fromBufferAttribute(i,e);const o=this.morphTargetInfluences;if(a&&o){I1.set(0,0,0);for(let c=0,l=a.length;c<l;c++){const u=o[c],A=a[c];u!==0&&(fx.fromBufferAttribute(A,e),s?I1.addScaledVector(fx,u):I1.addScaledVector(fx.sub(t),u))}t.add(I1)}return t}raycast(e,t){const r=this.geometry,i=this.material,a=this.matrixWorld;i!==void 0&&(r.boundingSphere===null&&r.computeBoundingSphere(),E1.copy(r.boundingSphere),E1.applyMatrix4(a),Pd.copy(e.ray).recast(e.near),!(E1.containsPoint(Pd.origin)===!1&&(Pd.intersectSphere(E1,r5)===null||Pd.origin.distanceToSquared(r5)>(e.far-e.near)**2))&&(n5.copy(a).invert(),Pd.copy(e.ray).applyMatrix4(n5),!(r.boundingBox!==null&&Pd.intersectsBox(r.boundingBox)===!1)&&this._computeIntersections(e,t,Pd)))}_computeIntersections(e,t,r){let i;const a=this.geometry,s=this.material,o=a.index,c=a.attributes.position,l=a.attributes.uv,u=a.attributes.uv1,A=a.attributes.normal,f=a.groups,h=a.drawRange;if(o!==null)if(Array.isArray(s))for(let g=0,y=f.length;g<y;g++){const w=f[g],v=s[w.materialIndex],S=Math.max(w.start,h.start),C=Math.min(o.count,Math.min(w.start+w.count,h.start+h.count));for(let M=S,F=C;M<F;M+=3){const D=o.getX(M),U=o.getX(M+1),O=o.getX(M+2);i=F1(this,v,e,r,l,u,A,D,U,O),i&&(i.faceIndex=Math.floor(M/3),i.face.materialIndex=w.materialIndex,t.push(i))}}else{const g=Math.max(0,h.start),y=Math.min(o.count,h.start+h.count);for(let w=g,v=y;w<v;w+=3){const S=o.getX(w),C=o.getX(w+1),M=o.getX(w+2);i=F1(this,s,e,r,l,u,A,S,C,M),i&&(i.faceIndex=Math.floor(w/3),t.push(i))}}else if(c!==void 0)if(Array.isArray(s))for(let g=0,y=f.length;g<y;g++){const w=f[g],v=s[w.materialIndex],S=Math.max(w.start,h.start),C=Math.min(c.count,Math.min(w.start+w.count,h.start+h.count));for(let M=S,F=C;M<F;M+=3){const D=M,U=M+1,O=M+2;i=F1(this,v,e,r,l,u,A,D,U,O),i&&(i.faceIndex=Math.floor(M/3),i.face.materialIndex=w.materialIndex,t.push(i))}}else{const g=Math.max(0,h.start),y=Math.min(c.count,h.start+h.count);for(let w=g,v=y;w<v;w+=3){const S=w,C=w+1,M=w+2;i=F1(this,s,e,r,l,u,A,S,C,M),i&&(i.faceIndex=Math.floor(w/3),t.push(i))}}}}function dXe(n,e,t,r,i,a,s,o){let c;if(e.side===Ss?c=r.intersectTriangle(s,a,i,!0,o):c=r.intersectTriangle(i,a,s,e.side===rl,o),c===null)return null;L1.copy(o),L1.applyMatrix4(n.matrixWorld);const l=t.ray.origin.distanceTo(L1);return l<t.near||l>t.far?null:{distance:l,point:L1.clone(),object:n}}function F1(n,e,t,r,i,a,s,o,c,l){n.getVertexPosition(o,B1),n.getVertexPosition(c,T1),n.getVertexPosition(l,k1);const u=dXe(n,e,t,r,B1,T1,k1,i5);if(u){const A=new ye;js.getBarycoord(i5,B1,T1,k1,A),i&&(u.uv=js.getInterpolatedAttribute(i,o,c,l,A,new vt)),a&&(u.uv1=js.getInterpolatedAttribute(a,o,c,l,A,new vt)),s&&(u.normal=js.getInterpolatedAttribute(s,o,c,l,A,new ye),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));const f={a:o,b:c,c:l,normal:new ye,materialIndex:0};js.getNormal(B1,T1,k1,f.normal),u.face=f,u.barycoord=A}return u}class zA extends Hn{constructor(e=1,t=1,r=1,i=1,a=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:r,widthSegments:i,heightSegments:a,depthSegments:s};const o=this;i=Math.floor(i),a=Math.floor(a),s=Math.floor(s);const c=[],l=[],u=[],A=[];let f=0,h=0;g("z","y","x",-1,-1,r,t,e,s,a,0),g("z","y","x",1,-1,r,t,-e,s,a,1),g("x","z","y",1,1,e,r,t,i,s,2),g("x","z","y",1,-1,e,r,-t,i,s,3),g("x","y","z",1,-1,e,t,r,i,a,4),g("x","y","z",-1,-1,e,t,-r,i,a,5),this.setIndex(c),this.setAttribute("position",new an(l,3)),this.setAttribute("normal",new an(u,3)),this.setAttribute("uv",new an(A,2));function g(y,w,v,S,C,M,F,D,U,O,T){const P=M/U,k=F/O,H=M/2,j=F/2,$=D/2,ce=U+1,de=O+1;let fe=0,ee=0;const Se=new ye;for(let xe=0;xe<de;xe++){const Pe=xe*k-j;for(let V=0;V<ce;V++){const ae=V*P-H;Se[y]=ae*S,Se[w]=Pe*C,Se[v]=$,l.push(Se.x,Se.y,Se.z),Se[y]=0,Se[w]=0,Se[v]=D>0?1:-1,u.push(Se.x,Se.y,Se.z),A.push(V/U),A.push(1-xe/O),fe+=1}}for(let xe=0;xe<O;xe++)for(let Pe=0;Pe<U;Pe++){const V=f+Pe+ce*xe,ae=f+Pe+ce*(xe+1),J=f+(Pe+1)+ce*(xe+1),z=f+(Pe+1)+ce*xe;c.push(V,ae,z),c.push(ae,J,z),ee+=6}o.addGroup(h,ee,T),h+=ee,f+=fe}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new zA(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function yf(n){const e={};for(const t in n){e[t]={};for(const r in n[t]){const i=n[t][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture||i.isQuaternion)?i.isRenderTargetTexture?e[t][r]=null:e[t][r]=i.clone():Array.isArray(i)?e[t][r]=i.slice():e[t][r]=i}}return e}function ws(n){const e={};for(let t=0;t<n.length;t++){const r=yf(n[t]);for(const i in r)e[i]=r[i]}return e}function AXe(n){const e=[];for(let t=0;t<n.length;t++)e.push(n[t].clone());return e}function oQ(n){const e=n.getRenderTarget();return e===null?n.outputColorSpace:e.isXRRenderTarget===!0?e.texture.colorSpace:Jn.workingColorSpace}const cQ={clone:yf,merge:ws};var hXe=`void main() {
	gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}`,fXe=`void main() {
	gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
}`;class bc extends Yi{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=hXe,this.fragmentShader=fXe,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=yf(e.uniforms),this.uniformsGroups=AXe(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const i in this.uniforms){const s=this.uniforms[i].value;s&&s.isTexture?t.uniforms[i]={type:"t",value:s.toJSON(e).uuid}:s&&s.isColor?t.uniforms[i]={type:"c",value:s.getHex()}:s&&s.isVector2?t.uniforms[i]={type:"v2",value:s.toArray()}:s&&s.isVector3?t.uniforms[i]={type:"v3",value:s.toArray()}:s&&s.isVector4?t.uniforms[i]={type:"v4",value:s.toArray()}:s&&s.isMatrix3?t.uniforms[i]={type:"m3",value:s.toArray()}:s&&s.isMatrix4?t.uniforms[i]={type:"m4",value:s.toArray()}:t.uniforms[i]={value:s}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const r={};for(const i in this.extensions)this.extensions[i]===!0&&(r[i]=!0);return Object.keys(r).length>0&&(t.extensions=r),t}}class wb extends Zn{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new vn,this.projectionMatrix=new vn,this.projectionMatrixInverse=new vn,this.coordinateSystem=Yc}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const xu=new ye,a5=new vt,s5=new vt;class Aa extends wb{constructor(e=50,t=1,r=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=r,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=vf*2*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(dA*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return vf*2*Math.atan(Math.tan(dA*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,r){xu.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(xu.x,xu.y).multiplyScalar(-e/xu.z),xu.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),r.set(xu.x,xu.y).multiplyScalar(-e/xu.z)}getViewSize(e,t){return this.getViewBounds(e,a5,s5),t.subVectors(s5,a5)}setViewOffset(e,t,r,i,a,s){this.aspect=e/t,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(dA*.5*this.fov)/this.zoom,r=2*t,i=this.aspect*r,a=-.5*i;const s=this.view;if(this.view!==null&&this.view.enabled){const c=s.fullWidth,l=s.fullHeight;a+=s.offsetX*i/c,t-=s.offsetY*r/l,i*=s.width/c,r*=s.height/l}const o=this.filmOffset;o!==0&&(a+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+i,t,t-r,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,this.view!==null&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Sh=-90,Ch=1;class lQ extends Zn{constructor(e,t,r){super(),this.type="CubeCamera",this.renderTarget=r,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new Aa(Sh,Ch,e,t);i.layers=this.layers,this.add(i);const a=new Aa(Sh,Ch,e,t);a.layers=this.layers,this.add(a);const s=new Aa(Sh,Ch,e,t);s.layers=this.layers,this.add(s);const o=new Aa(Sh,Ch,e,t);o.layers=this.layers,this.add(o);const c=new Aa(Sh,Ch,e,t);c.layers=this.layers,this.add(c);const l=new Aa(Sh,Ch,e,t);l.layers=this.layers,this.add(l)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[r,i,a,s,o,c]=t;for(const l of t)this.remove(l);if(e===Yc)r.up.set(0,1,0),r.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),s.up.set(0,0,1),s.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),c.up.set(0,1,0),c.lookAt(0,0,-1);else if(e===Xp)r.up.set(0,-1,0),r.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),s.up.set(0,0,-1),s.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),c.up.set(0,-1,0),c.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const l of t)this.add(l),l.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();const{renderTarget:r,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[a,s,o,c,l,u]=this.children,A=e.getRenderTarget(),f=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),g=e.xr.enabled;e.xr.enabled=!1;const y=r.texture.generateMipmaps;r.texture.generateMipmaps=!1,e.setRenderTarget(r,0,i),e.render(t,a),e.setRenderTarget(r,1,i),e.render(t,s),e.setRenderTarget(r,2,i),e.render(t,o),e.setRenderTarget(r,3,i),e.render(t,c),e.setRenderTarget(r,4,i),e.render(t,l),r.texture.generateMipmaps=y,e.setRenderTarget(r,5,i),e.render(t,u),e.setRenderTarget(A,f,h),e.xr.enabled=g,r.texture.needsPMREMUpdate=!0}}class Bg extends ai{constructor(e,t,r,i,a,s,o,c,l,u){e=e!==void 0?e:[],t=t!==void 0?t:Yl,super(e,t,r,i,a,s,o,c,l,u),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class uQ extends wc{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const r={width:e,height:e,depth:1},i=[r,r,r,r,r,r];this.texture=new Bg(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=t.generateMipmaps!==void 0?t.generateMipmaps:!1,this.texture.minFilter=t.minFilter!==void 0?t.minFilter:pi}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const r={uniforms:{tEquirect:{value:null}},vertexShader:`

				varying vec3 vWorldDirection;

				vec3 transformDirection( in vec3 dir, in mat4 matrix ) {

					return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );

				}

				void main() {

					vWorldDirection = transformDirection( position, modelMatrix );

					#include <begin_vertex>
					#include <project_vertex>

				}
			`,fragmentShader:`

				uniform sampler2D tEquirect;

				varying vec3 vWorldDirection;

				#include <common>

				void main() {

					vec3 direction = normalize( vWorldDirection );

					vec2 sampleUV = equirectUv( direction );

					gl_FragColor = texture2D( tEquirect, sampleUV );

				}
			`},i=new zA(5,5,5),a=new bc({name:"CubemapFromEquirect",uniforms:yf(r.uniforms),vertexShader:r.vertexShader,fragmentShader:r.fragmentShader,side:Ss,blending:$l});a.uniforms.tEquirect.value=t;const s=new Fi(i,a),o=t.minFilter;return t.minFilter===Wo&&(t.minFilter=pi),new lQ(1,10,this).update(e,s),t.minFilter=o,s.geometry.dispose(),s.material.dispose(),this}clear(e,t,r,i){const a=e.getRenderTarget();for(let s=0;s<6;s++)e.setRenderTarget(this,s),e.clear(t,r,i);e.setRenderTarget(a)}}class bb{constructor(e,t=25e-5){this.isFogExp2=!0,this.name="",this.color=new Qt(e),this.density=t}clone(){return new bb(this.color,this.density)}toJSON(){return{type:"FogExp2",name:this.name,color:this.color.getHex(),density:this.density}}}class _b{constructor(e,t=1,r=1e3){this.isFog=!0,this.name="",this.color=new Qt(e),this.near=t,this.far=r}clone(){return new _b(this.color,this.near,this.far)}toJSON(){return{type:"Fog",name:this.name,color:this.color.getHex(),near:this.near,far:this.far}}}class dQ extends Zn{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new Mo,this.environmentIntensity=1,this.environmentRotation=new Mo,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return this.fog!==null&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class Tg{constructor(e,t){this.isInterleavedBuffer=!0,this.array=e,this.stride=t,this.count=e!==void 0?e.length/t:0,this.usage=qp,this.updateRanges=[],this.version=0,this.uuid=bo()}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.array=new e.array.constructor(e.array),this.count=e.count,this.stride=e.stride,this.usage=e.usage,this}copyAt(e,t,r){e*=this.stride,r*=t.stride;for(let i=0,a=this.stride;i<a;i++)this.array[e+i]=t.array[r+i];return this}set(e,t=0){return this.array.set(e,t),this}clone(e){e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=bo()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);const t=new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]),r=new this.constructor(t,this.stride);return r.setUsage(this.usage),r}onUpload(e){return this.onUploadCallback=e,this}toJSON(e){return e.arrayBuffers===void 0&&(e.arrayBuffers={}),this.array.buffer._uuid===void 0&&(this.array.buffer._uuid=bo()),e.arrayBuffers[this.array.buffer._uuid]===void 0&&(e.arrayBuffers[this.array.buffer._uuid]=Array.from(new Uint32Array(this.array.buffer))),{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}}const gs=new ye;class nd{constructor(e,t,r,i=!1){this.isInterleavedBufferAttribute=!0,this.name="",this.data=e,this.itemSize=t,this.offset=r,this.normalized=i}get count(){return this.data.count}get array(){return this.data.array}set needsUpdate(e){this.data.needsUpdate=e}applyMatrix4(e){for(let t=0,r=this.data.count;t<r;t++)gs.fromBufferAttribute(this,t),gs.applyMatrix4(e),this.setXYZ(t,gs.x,gs.y,gs.z);return this}applyNormalMatrix(e){for(let t=0,r=this.count;t<r;t++)gs.fromBufferAttribute(this,t),gs.applyNormalMatrix(e),this.setXYZ(t,gs.x,gs.y,gs.z);return this}transformDirection(e){for(let t=0,r=this.count;t<r;t++)gs.fromBufferAttribute(this,t),gs.transformDirection(e),this.setXYZ(t,gs.x,gs.y,gs.z);return this}getComponent(e,t){let r=this.array[e*this.data.stride+this.offset+t];return this.normalized&&(r=xs(r,this.array)),r}setComponent(e,t,r){return this.normalized&&(r=Un(r,this.array)),this.data.array[e*this.data.stride+this.offset+t]=r,this}setX(e,t){return this.normalized&&(t=Un(t,this.array)),this.data.array[e*this.data.stride+this.offset]=t,this}setY(e,t){return this.normalized&&(t=Un(t,this.array)),this.data.array[e*this.data.stride+this.offset+1]=t,this}setZ(e,t){return this.normalized&&(t=Un(t,this.array)),this.data.array[e*this.data.stride+this.offset+2]=t,this}setW(e,t){return this.normalized&&(t=Un(t,this.array)),this.data.array[e*this.data.stride+this.offset+3]=t,this}getX(e){let t=this.data.array[e*this.data.stride+this.offset];return this.normalized&&(t=xs(t,this.array)),t}getY(e){let t=this.data.array[e*this.data.stride+this.offset+1];return this.normalized&&(t=xs(t,this.array)),t}getZ(e){let t=this.data.array[e*this.data.stride+this.offset+2];return this.normalized&&(t=xs(t,this.array)),t}getW(e){let t=this.data.array[e*this.data.stride+this.offset+3];return this.normalized&&(t=xs(t,this.array)),t}setXY(e,t,r){return e=e*this.data.stride+this.offset,this.normalized&&(t=Un(t,this.array),r=Un(r,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=r,this}setXYZ(e,t,r,i){return e=e*this.data.stride+this.offset,this.normalized&&(t=Un(t,this.array),r=Un(r,this.array),i=Un(i,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=r,this.data.array[e+2]=i,this}setXYZW(e,t,r,i,a){return e=e*this.data.stride+this.offset,this.normalized&&(t=Un(t,this.array),r=Un(r,this.array),i=Un(i,this.array),a=Un(a,this.array)),this.data.array[e+0]=t,this.data.array[e+1]=r,this.data.array[e+2]=i,this.data.array[e+3]=a,this}clone(e){if(e===void 0){const t=[];for(let r=0;r<this.count;r++){const i=r*this.data.stride+this.offset;for(let a=0;a<this.itemSize;a++)t.push(this.data.array[i+a])}return new hr(new this.array.constructor(t),this.itemSize,this.normalized)}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.clone(e)),new nd(e.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)}toJSON(e){if(e===void 0){const t=[];for(let r=0;r<this.count;r++){const i=r*this.data.stride+this.offset;for(let a=0;a<this.itemSize;a++)t.push(this.data.array[i+a])}return{itemSize:this.itemSize,type:this.array.constructor.name,array:t,normalized:this.normalized}}else return e.interleavedBuffers===void 0&&(e.interleavedBuffers={}),e.interleavedBuffers[this.data.uuid]===void 0&&(e.interleavedBuffers[this.data.uuid]=this.data.toJSON(e)),{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}}class SP extends Yi{constructor(e){super(),this.isSpriteMaterial=!0,this.type="SpriteMaterial",this.color=new Qt(16777215),this.map=null,this.alphaMap=null,this.rotation=0,this.sizeAttenuation=!0,this.transparent=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.rotation=e.rotation,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}let Ph;const wm=new ye,Eh=new ye,Bh=new ye,Th=new vt,bm=new vt,AQ=new vn,N1=new ye,_m=new ye,D1=new ye,o5=new vt,mx=new vt,c5=new vt;class hQ extends Zn{constructor(e=new SP){if(super(),this.isSprite=!0,this.type="Sprite",Ph===void 0){Ph=new Hn;const t=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),r=new Tg(t,5);Ph.setIndex([0,1,2,0,2,3]),Ph.setAttribute("position",new nd(r,3,0,!1)),Ph.setAttribute("uv",new nd(r,2,3,!1))}this.geometry=Ph,this.material=e,this.center=new vt(.5,.5)}raycast(e,t){e.camera,Eh.setFromMatrixScale(this.matrixWorld),AQ.copy(e.camera.matrixWorld),this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse,this.matrixWorld),Bh.setFromMatrixPosition(this.modelViewMatrix),e.camera.isPerspectiveCamera&&this.material.sizeAttenuation===!1&&Eh.multiplyScalar(-Bh.z);const r=this.material.rotation;let i,a;r!==0&&(a=Math.cos(r),i=Math.sin(r));const s=this.center;R1(N1.set(-.5,-.5,0),Bh,s,Eh,i,a),R1(_m.set(.5,-.5,0),Bh,s,Eh,i,a),R1(D1.set(.5,.5,0),Bh,s,Eh,i,a),o5.set(0,0),mx.set(1,0),c5.set(1,1);let o=e.ray.intersectTriangle(N1,_m,D1,!1,wm);if(o===null&&(R1(_m.set(-.5,.5,0),Bh,s,Eh,i,a),mx.set(0,1),o=e.ray.intersectTriangle(N1,D1,_m,!1,wm),o===null))return;const c=e.ray.origin.distanceTo(wm);c<e.near||c>e.far||t.push({distance:c,point:wm.clone(),uv:js.getInterpolation(wm,N1,_m,D1,o5,mx,c5,new vt),face:null,object:this})}copy(e,t){return super.copy(e,t),e.center!==void 0&&this.center.copy(e.center),this.material=e.material,this}}function R1(n,e,t,r,i,a){Th.subVectors(n,t).addScalar(.5).multiply(r),i!==void 0?(bm.x=a*Th.x-i*Th.y,bm.y=i*Th.x+a*Th.y):bm.copy(Th),n.copy(e),n.x+=bm.x,n.y+=bm.y,n.applyMatrix4(AQ)}const U1=new ye,l5=new ye;class fQ extends Zn{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(e){super.copy(e,!1);const t=e.levels;for(let r=0,i=t.length;r<i;r++){const a=t[r];this.addLevel(a.object.clone(),a.distance,a.hysteresis)}return this.autoUpdate=e.autoUpdate,this}addLevel(e,t=0,r=0){t=Math.abs(t);const i=this.levels;let a;for(a=0;a<i.length&&!(t<i[a].distance);a++);return i.splice(a,0,{distance:t,hysteresis:r,object:e}),this.add(e),this}removeLevel(e){const t=this.levels;for(let r=0;r<t.length;r++)if(t[r].distance===e){const i=t.splice(r,1);return this.remove(i[0].object),!0}return!1}getCurrentLevel(){return this._currentLevel}getObjectForDistance(e){const t=this.levels;if(t.length>0){let r,i;for(r=1,i=t.length;r<i;r++){let a=t[r].distance;if(t[r].object.visible&&(a-=a*t[r].hysteresis),e<a)break}return t[r-1].object}return null}raycast(e,t){if(this.levels.length>0){U1.setFromMatrixPosition(this.matrixWorld);const i=e.ray.origin.distanceTo(U1);this.getObjectForDistance(i).raycast(e,t)}}update(e){const t=this.levels;if(t.length>1){U1.setFromMatrixPosition(e.matrixWorld),l5.setFromMatrixPosition(this.matrixWorld);const r=U1.distanceTo(l5)/e.zoom;t[0].object.visible=!0;let i,a;for(i=1,a=t.length;i<a;i++){let s=t[i].distance;if(t[i].object.visible&&(s-=s*t[i].hysteresis),r>=s)t[i-1].object.visible=!1,t[i].object.visible=!0;else break}for(this._currentLevel=i-1;i<a;i++)t[i].object.visible=!1}}toJSON(e){const t=super.toJSON(e);this.autoUpdate===!1&&(t.object.autoUpdate=!1),t.object.levels=[];const r=this.levels;for(let i=0,a=r.length;i<a;i++){const s=r[i];t.object.levels.push({object:s.object.uuid,distance:s.distance,hysteresis:s.hysteresis})}return t}}const u5=new ye,d5=new ar,A5=new ar,mXe=new ye,h5=new vn,O1=new ye,px=new Fa,f5=new vn,gx=new jA;class CP extends Fi{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type="SkinnedMesh",this.bindMode=MM,this.bindMatrix=new vn,this.bindMatrixInverse=new vn,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){const e=this.geometry;this.boundingBox===null&&(this.boundingBox=new qa),this.boundingBox.makeEmpty();const t=e.getAttribute("position");for(let r=0;r<t.count;r++)this.getVertexPosition(r,O1),this.boundingBox.expandByPoint(O1)}computeBoundingSphere(){const e=this.geometry;this.boundingSphere===null&&(this.boundingSphere=new Fa),this.boundingSphere.makeEmpty();const t=e.getAttribute("position");for(let r=0;r<t.count;r++)this.getVertexPosition(r,O1),this.boundingSphere.expandByPoint(O1)}copy(e,t){return super.copy(e,t),this.bindMode=e.bindMode,this.bindMatrix.copy(e.bindMatrix),this.bindMatrixInverse.copy(e.bindMatrixInverse),this.skeleton=e.skeleton,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}raycast(e,t){const r=this.material,i=this.matrixWorld;r!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),px.copy(this.boundingSphere),px.applyMatrix4(i),e.ray.intersectsSphere(px)!==!1&&(f5.copy(i).invert(),gx.copy(e.ray).applyMatrix4(f5),!(this.boundingBox!==null&&gx.intersectsBox(this.boundingBox)===!1)&&this._computeIntersections(e,t,gx)))}getVertexPosition(e,t){return super.getVertexPosition(e,t),this.applyBoneTransform(e,t),t}bind(e,t){this.skeleton=e,t===void 0&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),t=this.matrixWorld),this.bindMatrix.copy(t),this.bindMatrixInverse.copy(t).invert()}pose(){this.skeleton.pose()}normalizeSkinWeights(){const e=new ar,t=this.geometry.attributes.skinWeight;for(let r=0,i=t.count;r<i;r++){e.fromBufferAttribute(t,r);const a=1/e.manhattanLength();a!==1/0?e.multiplyScalar(a):e.set(1,0,0,0),t.setXYZW(r,e.x,e.y,e.z,e.w)}}updateMatrixWorld(e){super.updateMatrixWorld(e),this.bindMode===MM?this.bindMatrixInverse.copy(this.matrixWorld).invert():this.bindMode===WW&&this.bindMatrixInverse.copy(this.bindMatrix).invert()}applyBoneTransform(e,t){const r=this.skeleton,i=this.geometry;d5.fromBufferAttribute(i.attributes.skinIndex,e),A5.fromBufferAttribute(i.attributes.skinWeight,e),u5.copy(t).applyMatrix4(this.bindMatrix),t.set(0,0,0);for(let a=0;a<4;a++){const s=A5.getComponent(a);if(s!==0){const o=d5.getComponent(a);h5.multiplyMatrices(r.bones[o].matrixWorld,r.boneInverses[o]),t.addScaledVector(mXe.copy(u5).applyMatrix4(h5),s)}}return t.applyMatrix4(this.bindMatrixInverse)}}class xb extends Zn{constructor(){super(),this.isBone=!0,this.type="Bone"}}class Zc extends ai{constructor(e=null,t=1,r=1,i,a,s,o,c,l=Xi,u=Xi,A,f){super(null,s,o,c,l,u,i,a,A,f),this.isDataTexture=!0,this.image={data:e,width:t,height:r},this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}const m5=new vn,pXe=new vn;class kg{constructor(e=[],t=[]){this.uuid=bo(),this.bones=e.slice(0),this.boneInverses=t,this.boneMatrices=null,this.boneTexture=null,this.init()}init(){const e=this.bones,t=this.boneInverses;if(this.boneMatrices=new Float32Array(e.length*16),t.length===0)this.calculateInverses();else if(e.length!==t.length){this.boneInverses=[];for(let r=0,i=this.bones.length;r<i;r++)this.boneInverses.push(new vn)}}calculateInverses(){this.boneInverses.length=0;for(let e=0,t=this.bones.length;e<t;e++){const r=new vn;this.bones[e]&&r.copy(this.bones[e].matrixWorld).invert(),this.boneInverses.push(r)}}pose(){for(let e=0,t=this.bones.length;e<t;e++){const r=this.bones[e];r&&r.matrixWorld.copy(this.boneInverses[e]).invert()}for(let e=0,t=this.bones.length;e<t;e++){const r=this.bones[e];r&&(r.parent&&r.parent.isBone?(r.matrix.copy(r.parent.matrixWorld).invert(),r.matrix.multiply(r.matrixWorld)):r.matrix.copy(r.matrixWorld),r.matrix.decompose(r.position,r.quaternion,r.scale))}}update(){const e=this.bones,t=this.boneInverses,r=this.boneMatrices,i=this.boneTexture;for(let a=0,s=e.length;a<s;a++){const o=e[a]?e[a].matrixWorld:pXe;m5.multiplyMatrices(o,t[a]),m5.toArray(r,a*16)}i!==null&&(i.needsUpdate=!0)}clone(){return new kg(this.bones,this.boneInverses)}computeBoneTexture(){let e=Math.sqrt(this.bones.length*4);e=Math.ceil(e/4)*4,e=Math.max(e,4);const t=new Float32Array(e*e*4);t.set(this.boneMatrices);const r=new Zc(t,e,e,Ms,zs);return r.needsUpdate=!0,this.boneMatrices=t,this.boneTexture=r,this}getBoneByName(e){for(let t=0,r=this.bones.length;t<r;t++){const i=this.bones[t];if(i.name===e)return i}}dispose(){this.boneTexture!==null&&(this.boneTexture.dispose(),this.boneTexture=null)}fromJSON(e,t){this.uuid=e.uuid;for(let r=0,i=e.bones.length;r<i;r++){const a=e.bones[r];let s=t[a];s===void 0&&(s=new xb),this.bones.push(s),this.boneInverses.push(new vn().fromArray(e.boneInverses[r]))}return this.init(),this}toJSON(){const e={metadata:{version:4.6,type:"Skeleton",generator:"Skeleton.toJSON"},bones:[],boneInverses:[]};e.uuid=this.uuid;const t=this.bones,r=this.boneInverses;for(let i=0,a=t.length;i<a;i++){const s=t[i];e.bones.push(s.uuid);const o=r[i];e.boneInverses.push(o.toArray())}return e}}class EA extends hr{constructor(e,t,r,i=1){super(e,t,r),this.isInstancedBufferAttribute=!0,this.meshPerAttribute=i}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}toJSON(){const e=super.toJSON();return e.meshPerAttribute=this.meshPerAttribute,e.isInstancedBufferAttribute=!0,e}}const kh=new vn,p5=new vn,H1=[],g5=new qa,gXe=new vn,xm=new Fi,Mm=new Fa;class PP extends Fi{constructor(e,t,r){super(e,t),this.isInstancedMesh=!0,this.instanceMatrix=new EA(new Float32Array(r*16),16),this.instanceColor=null,this.morphTexture=null,this.count=r,this.boundingBox=null,this.boundingSphere=null;for(let i=0;i<r;i++)this.setMatrixAt(i,gXe)}computeBoundingBox(){const e=this.geometry,t=this.count;this.boundingBox===null&&(this.boundingBox=new qa),e.boundingBox===null&&e.computeBoundingBox(),this.boundingBox.makeEmpty();for(let r=0;r<t;r++)this.getMatrixAt(r,kh),g5.copy(e.boundingBox).applyMatrix4(kh),this.boundingBox.union(g5)}computeBoundingSphere(){const e=this.geometry,t=this.count;this.boundingSphere===null&&(this.boundingSphere=new Fa),e.boundingSphere===null&&e.computeBoundingSphere(),this.boundingSphere.makeEmpty();for(let r=0;r<t;r++)this.getMatrixAt(r,kh),Mm.copy(e.boundingSphere).applyMatrix4(kh),this.boundingSphere.union(Mm)}copy(e,t){return super.copy(e,t),this.instanceMatrix.copy(e.instanceMatrix),e.morphTexture!==null&&(this.morphTexture=e.morphTexture.clone()),e.instanceColor!==null&&(this.instanceColor=e.instanceColor.clone()),this.count=e.count,e.boundingBox!==null&&(this.boundingBox=e.boundingBox.clone()),e.boundingSphere!==null&&(this.boundingSphere=e.boundingSphere.clone()),this}getColorAt(e,t){t.fromArray(this.instanceColor.array,e*3)}getMatrixAt(e,t){t.fromArray(this.instanceMatrix.array,e*16)}getMorphAt(e,t){const r=t.morphTargetInfluences,i=this.morphTexture.source.data.data,a=r.length+1,s=e*a+1;for(let o=0;o<r.length;o++)r[o]=i[s+o]}raycast(e,t){const r=this.matrixWorld,i=this.count;if(xm.geometry=this.geometry,xm.material=this.material,xm.material!==void 0&&(this.boundingSphere===null&&this.computeBoundingSphere(),Mm.copy(this.boundingSphere),Mm.applyMatrix4(r),e.ray.intersectsSphere(Mm)!==!1))for(let a=0;a<i;a++){this.getMatrixAt(a,kh),p5.multiplyMatrices(r,kh),xm.matrixWorld=p5,xm.raycast(e,H1);for(let s=0,o=H1.length;s<o;s++){const c=H1[s];c.instanceId=a,c.object=this,t.push(c)}H1.length=0}}setColorAt(e,t){this.instanceColor===null&&(this.instanceColor=new EA(new Float32Array(this.instanceMatrix.count*3).fill(1),3)),t.toArray(this.instanceColor.array,e*3)}setMatrixAt(e,t){t.toArray(this.instanceMatrix.array,e*16)}setMorphAt(e,t){const r=t.morphTargetInfluences,i=r.length+1;this.morphTexture===null&&(this.morphTexture=new Zc(new Float32Array(i*this.count),i,this.count,fb,zs));const a=this.morphTexture.source.data.data;let s=0;for(let l=0;l<r.length;l++)s+=r[l];const o=this.geometry.morphTargetsRelative?1:1-s,c=i*e;a[c]=o,a.set(r,c+1)}updateMorphTargets(){}dispose(){return this.dispatchEvent({type:"dispose"}),this.morphTexture!==null&&(this.morphTexture.dispose(),this.morphTexture=null),this}}const vx=new ye,vXe=new ye,yXe=new Dn;class Il{constructor(e=new ye(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,r,i){return this.normal.set(e,t,r),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,r){const i=vx.subVectors(r,t).cross(vXe.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const r=e.delta(vx),i=this.normal.dot(r);if(i===0)return this.distanceToPoint(e.start)===0?t.copy(e.start):null;const a=-(e.start.dot(this.normal)+this.constant)/i;return a<0||a>1?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){const t=this.distanceToPoint(e.start),r=this.distanceToPoint(e.end);return t<0&&r>0||r<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const r=t||yXe.getNormalMatrix(e),i=this.coplanarPoint(vx).applyMatrix4(e),a=this.normal.applyMatrix3(r).normalize();return this.constant=-i.dot(a),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Ed=new Fa,W1=new ye;class Ig{constructor(e=new Il,t=new Il,r=new Il,i=new Il,a=new Il,s=new Il){this.planes=[e,t,r,i,a,s]}set(e,t,r,i,a,s){const o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(r),o[3].copy(i),o[4].copy(a),o[5].copy(s),this}copy(e){const t=this.planes;for(let r=0;r<6;r++)t[r].copy(e.planes[r]);return this}setFromProjectionMatrix(e,t=Yc){const r=this.planes,i=e.elements,a=i[0],s=i[1],o=i[2],c=i[3],l=i[4],u=i[5],A=i[6],f=i[7],h=i[8],g=i[9],y=i[10],w=i[11],v=i[12],S=i[13],C=i[14],M=i[15];if(r[0].setComponents(c-a,f-l,w-h,M-v).normalize(),r[1].setComponents(c+a,f+l,w+h,M+v).normalize(),r[2].setComponents(c+s,f+u,w+g,M+S).normalize(),r[3].setComponents(c-s,f-u,w-g,M-S).normalize(),r[4].setComponents(c-o,f-A,w-y,M-C).normalize(),t===Yc)r[5].setComponents(c+o,f+A,w+y,M+C).normalize();else if(t===Xp)r[5].setComponents(o,A,y,C).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Ed.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;t.boundingSphere===null&&t.computeBoundingSphere(),Ed.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Ed)}intersectsSprite(e){return Ed.center.set(0,0,0),Ed.radius=.7071067811865476,Ed.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ed)}intersectsSphere(e){const t=this.planes,r=e.center,i=-e.radius;for(let a=0;a<6;a++)if(t[a].distanceToPoint(r)<i)return!1;return!0}intersectsBox(e){const t=this.planes;for(let r=0;r<6;r++){const i=t[r];if(W1.x=i.normal.x>0?e.max.x:e.min.x,W1.y=i.normal.y>0?e.max.y:e.min.y,W1.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(W1)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let r=0;r<6;r++)if(t[r].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function yx(n,e){return n-e}function wXe(n,e){return n.z-e.z}function bXe(n,e){return e.z-n.z}class _Xe{constructor(){this.index=0,this.pool=[],this.list=[]}push(e,t,r,i){const a=this.pool,s=this.list;this.index>=a.length&&a.push({start:-1,count:-1,z:-1,index:-1});const o=a[this.index];s.push(o),this.index++,o.start=e,o.count=t,o.z=r,o.index=i}reset(){this.list.length=0,this.index=0}}const Os=new vn,xXe=new Qt(1,1,1),wx=new Ig,Q1=new qa,Bd=new Fa,Sm=new ye,v5=new ye,MXe=new ye,bx=new _Xe,za=new Fi,$1=[];function SXe(n,e,t=0){const r=e.itemSize;if(n.isInterleavedBufferAttribute||n.array.constructor!==e.array.constructor){const i=n.count;for(let a=0;a<i;a++)for(let s=0;s<r;s++)e.setComponent(a+t,s,n.getComponent(a,s))}else e.array.set(n.array,t*r);e.needsUpdate=!0}function Td(n,e){if(n.constructor!==e.constructor){const t=Math.min(n.length,e.length);for(let r=0;r<t;r++)e[r]=n[r]}else{const t=Math.min(n.length,e.length);e.set(new n.constructor(n.buffer,0,t))}}class mQ extends Fi{get maxInstanceCount(){return this._maxInstanceCount}get instanceCount(){return this._instanceInfo.length-this._availableInstanceIds.length}get unusedVertexCount(){return this._maxVertexCount-this._nextVertexStart}get unusedIndexCount(){return this._maxIndexCount-this._nextIndexStart}constructor(e,t,r=t*2,i){super(new Hn,i),this.isBatchedMesh=!0,this.perObjectFrustumCulled=!0,this.sortObjects=!0,this.boundingBox=null,this.boundingSphere=null,this.customSort=null,this._instanceInfo=[],this._geometryInfo=[],this._availableInstanceIds=[],this._availableGeometryIds=[],this._nextIndexStart=0,this._nextVertexStart=0,this._geometryCount=0,this._visibilityChanged=!0,this._geometryInitialized=!1,this._maxInstanceCount=e,this._maxVertexCount=t,this._maxIndexCount=r,this._multiDrawCounts=new Int32Array(e),this._multiDrawStarts=new Int32Array(e),this._multiDrawCount=0,this._multiDrawInstances=null,this._matricesTexture=null,this._indirectTexture=null,this._colorsTexture=null,this._initMatricesTexture(),this._initIndirectTexture()}_initMatricesTexture(){let e=Math.sqrt(this._maxInstanceCount*4);e=Math.ceil(e/4)*4,e=Math.max(e,4);const t=new Float32Array(e*e*4),r=new Zc(t,e,e,Ms,zs);this._matricesTexture=r}_initIndirectTexture(){let e=Math.sqrt(this._maxInstanceCount);e=Math.ceil(e);const t=new Uint32Array(e*e),r=new Zc(t,e,e,Eg,Jl);this._indirectTexture=r}_initColorsTexture(){let e=Math.sqrt(this._maxInstanceCount);e=Math.ceil(e);const t=new Float32Array(e*e*4).fill(1),r=new Zc(t,e,e,Ms,zs);r.colorSpace=Jn.workingColorSpace,this._colorsTexture=r}_initializeGeometry(e){const t=this.geometry,r=this._maxVertexCount,i=this._maxIndexCount;if(this._geometryInitialized===!1){for(const a in e.attributes){const s=e.getAttribute(a),{array:o,itemSize:c,normalized:l}=s,u=new o.constructor(r*c),A=new hr(u,c,l);t.setAttribute(a,A)}if(e.getIndex()!==null){const a=r>65535?new Uint32Array(i):new Uint16Array(i);t.setIndex(new hr(a,1))}this._geometryInitialized=!0}}_validateGeometry(e){const t=this.geometry;if(!!e.getIndex()!=!!t.getIndex())throw new Error('THREE.BatchedMesh: All geometries must consistently have "index".');for(const r in t.attributes){if(!e.hasAttribute(r))throw new Error(`THREE.BatchedMesh: Added geometry missing "${r}". All geometries must have consistent attributes.`);const i=e.getAttribute(r),a=t.getAttribute(r);if(i.itemSize!==a.itemSize||i.normalized!==a.normalized)throw new Error("THREE.BatchedMesh: All attributes must have a consistent itemSize and normalized value.")}}validateInstanceId(e){const t=this._instanceInfo;if(e<0||e>=t.length||t[e].active===!1)throw new Error(`THREE.BatchedMesh: Invalid instanceId ${e}. Instance is either out of range or has been deleted.`)}validateGeometryId(e){const t=this._geometryInfo;if(e<0||e>=t.length||t[e].active===!1)throw new Error(`THREE.BatchedMesh: Invalid geometryId ${e}. Geometry is either out of range or has been deleted.`)}setCustomSort(e){return this.customSort=e,this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new qa);const e=this.boundingBox,t=this._instanceInfo;e.makeEmpty();for(let r=0,i=t.length;r<i;r++){if(t[r].active===!1)continue;const a=t[r].geometryIndex;this.getMatrixAt(r,Os),this.getBoundingBoxAt(a,Q1).applyMatrix4(Os),e.union(Q1)}}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new Fa);const e=this.boundingSphere,t=this._instanceInfo;e.makeEmpty();for(let r=0,i=t.length;r<i;r++){if(t[r].active===!1)continue;const a=t[r].geometryIndex;this.getMatrixAt(r,Os),this.getBoundingSphereAt(a,Bd).applyMatrix4(Os),e.union(Bd)}}addInstance(e){if(this._instanceInfo.length>=this.maxInstanceCount&&this._availableInstanceIds.length===0)throw new Error("THREE.BatchedMesh: Maximum item count reached.");const r={visible:!0,active:!0,geometryIndex:e};let i=null;this._availableInstanceIds.length>0?(this._availableInstanceIds.sort(yx),i=this._availableInstanceIds.shift(),this._instanceInfo[i]=r):(i=this._instanceInfo.length,this._instanceInfo.push(r));const a=this._matricesTexture;Os.identity().toArray(a.image.data,i*16),a.needsUpdate=!0;const s=this._colorsTexture;return s&&(xXe.toArray(s.image.data,i*4),s.needsUpdate=!0),this._visibilityChanged=!0,i}addGeometry(e,t=-1,r=-1){this._initializeGeometry(e),this._validateGeometry(e);const i={vertexStart:-1,vertexCount:-1,reservedVertexCount:-1,indexStart:-1,indexCount:-1,reservedIndexCount:-1,start:-1,count:-1,boundingBox:null,boundingSphere:null,active:!0},a=this._geometryInfo;i.vertexStart=this._nextVertexStart,i.reservedVertexCount=t===-1?e.getAttribute("position").count:t;const s=e.getIndex();if(s!==null&&(i.indexStart=this._nextIndexStart,i.reservedIndexCount=r===-1?s.count:r),i.indexStart!==-1&&i.indexStart+i.reservedIndexCount>this._maxIndexCount||i.vertexStart+i.reservedVertexCount>this._maxVertexCount)throw new Error("THREE.BatchedMesh: Reserved space request exceeds the maximum buffer size.");let c;return this._availableGeometryIds.length>0?(this._availableGeometryIds.sort(yx),c=this._availableGeometryIds.shift(),a[c]=i):(c=this._geometryCount,this._geometryCount++,a.push(i)),this.setGeometryAt(c,e),this._nextIndexStart=i.indexStart+i.reservedIndexCount,this._nextVertexStart=i.vertexStart+i.reservedVertexCount,c}setGeometryAt(e,t){if(e>=this._geometryCount)throw new Error("THREE.BatchedMesh: Maximum geometry count reached.");this._validateGeometry(t);const r=this.geometry,i=r.getIndex()!==null,a=r.getIndex(),s=t.getIndex(),o=this._geometryInfo[e];if(i&&s.count>o.reservedIndexCount||t.attributes.position.count>o.reservedVertexCount)throw new Error("THREE.BatchedMesh: Reserved space not large enough for provided geometry.");const c=o.vertexStart,l=o.reservedVertexCount;o.vertexCount=t.getAttribute("position").count;for(const u in r.attributes){const A=t.getAttribute(u),f=r.getAttribute(u);SXe(A,f,c);const h=A.itemSize;for(let g=A.count,y=l;g<y;g++){const w=c+g;for(let v=0;v<h;v++)f.setComponent(w,v,0)}f.needsUpdate=!0,f.addUpdateRange(c*h,l*h)}if(i){const u=o.indexStart,A=o.reservedIndexCount;o.indexCount=t.getIndex().count;for(let f=0;f<s.count;f++)a.setX(u+f,c+s.getX(f));for(let f=s.count,h=A;f<h;f++)a.setX(u+f,c);a.needsUpdate=!0,a.addUpdateRange(u,o.reservedIndexCount)}return o.start=i?o.indexStart:o.vertexStart,o.count=i?o.indexCount:o.vertexCount,o.boundingBox=null,t.boundingBox!==null&&(o.boundingBox=t.boundingBox.clone()),o.boundingSphere=null,t.boundingSphere!==null&&(o.boundingSphere=t.boundingSphere.clone()),this._visibilityChanged=!0,e}deleteGeometry(e){const t=this._geometryInfo;if(e>=t.length||t[e].active===!1)return this;const r=this._instanceInfo;for(let i=0,a=r.length;i<a;i++)r[i].geometryIndex===e&&this.deleteInstance(i);return t[e].active=!1,this._availableGeometryIds.push(e),this._visibilityChanged=!0,this}deleteInstance(e){return this.validateInstanceId(e),this._instanceInfo[e].active=!1,this._availableInstanceIds.push(e),this._visibilityChanged=!0,this}optimize(){let e=0,t=0;const r=this._geometryInfo,i=r.map((s,o)=>o).sort((s,o)=>r[s].vertexStart-r[o].vertexStart),a=this.geometry;for(let s=0,o=r.length;s<o;s++){const c=i[s],l=r[c];if(l.active!==!1){if(a.index!==null){if(l.indexStart!==t){const{indexStart:u,vertexStart:A,reservedIndexCount:f}=l,h=a.index,g=h.array,y=e-A;for(let w=u;w<u+f;w++)g[w]=g[w]+y;h.array.copyWithin(t,u,u+f),h.addUpdateRange(t,f),l.indexStart=t}t+=l.reservedIndexCount}if(l.vertexStart!==e){const{vertexStart:u,reservedVertexCount:A}=l,f=a.attributes;for(const h in f){const g=f[h],{array:y,itemSize:w}=g;y.copyWithin(e*w,u*w,(u+A)*w),g.addUpdateRange(e*w,A*w)}l.vertexStart=e}e+=l.reservedVertexCount,l.start=a.index?l.indexStart:l.vertexStart,this._nextIndexStart=a.index?l.indexStart+l.reservedIndexCount:0,this._nextVertexStart=l.vertexStart+l.reservedVertexCount}}return this}getBoundingBoxAt(e,t){if(e>=this._geometryCount)return null;const r=this.geometry,i=this._geometryInfo[e];if(i.boundingBox===null){const a=new qa,s=r.index,o=r.attributes.position;for(let c=i.start,l=i.start+i.count;c<l;c++){let u=c;s&&(u=s.getX(u)),a.expandByPoint(Sm.fromBufferAttribute(o,u))}i.boundingBox=a}return t.copy(i.boundingBox),t}getBoundingSphereAt(e,t){if(e>=this._geometryCount)return null;const r=this.geometry,i=this._geometryInfo[e];if(i.boundingSphere===null){const a=new Fa;this.getBoundingBoxAt(e,Q1),Q1.getCenter(a.center);const s=r.index,o=r.attributes.position;let c=0;for(let l=i.start,u=i.start+i.count;l<u;l++){let A=l;s&&(A=s.getX(A)),Sm.fromBufferAttribute(o,A),c=Math.max(c,a.center.distanceToSquared(Sm))}a.radius=Math.sqrt(c),i.boundingSphere=a}return t.copy(i.boundingSphere),t}setMatrixAt(e,t){this.validateInstanceId(e);const r=this._matricesTexture,i=this._matricesTexture.image.data;return t.toArray(i,e*16),r.needsUpdate=!0,this}getMatrixAt(e,t){return this.validateInstanceId(e),t.fromArray(this._matricesTexture.image.data,e*16)}setColorAt(e,t){return this.validateInstanceId(e),this._colorsTexture===null&&this._initColorsTexture(),t.toArray(this._colorsTexture.image.data,e*4),this._colorsTexture.needsUpdate=!0,this}getColorAt(e,t){return this.validateInstanceId(e),t.fromArray(this._colorsTexture.image.data,e*4)}setVisibleAt(e,t){return this.validateInstanceId(e),this._instanceInfo[e].visible===t?this:(this._instanceInfo[e].visible=t,this._visibilityChanged=!0,this)}getVisibleAt(e){return this.validateInstanceId(e),this._instanceInfo[e].visible}setGeometryIdAt(e,t){return this.validateInstanceId(e),this.validateGeometryId(t),this._instanceInfo[e].geometryIndex=t,this}getGeometryIdAt(e){return this.validateInstanceId(e),this._instanceInfo[e].geometryIndex}getGeometryRangeAt(e,t={}){this.validateGeometryId(e);const r=this._geometryInfo[e];return t.vertexStart=r.vertexStart,t.vertexCount=r.vertexCount,t.reservedVertexCount=r.reservedVertexCount,t.indexStart=r.indexStart,t.indexCount=r.indexCount,t.reservedIndexCount=r.reservedIndexCount,t.start=r.start,t.count=r.count,t}setInstanceCount(e){const t=this._availableInstanceIds,r=this._instanceInfo;for(t.sort(yx);t[t.length-1]===r.length;)r.pop(),t.pop();if(e<r.length)throw new Error(`BatchedMesh: Instance ids outside the range ${e} are being used. Cannot shrink instance count.`);const i=new Int32Array(e),a=new Int32Array(e);Td(this._multiDrawCounts,i),Td(this._multiDrawStarts,a),this._multiDrawCounts=i,this._multiDrawStarts=a,this._maxInstanceCount=e;const s=this._indirectTexture,o=this._matricesTexture,c=this._colorsTexture;s.dispose(),this._initIndirectTexture(),Td(s.image.data,this._indirectTexture.image.data),o.dispose(),this._initMatricesTexture(),Td(o.image.data,this._matricesTexture.image.data),c&&(c.dispose(),this._initColorsTexture(),Td(c.image.data,this._colorsTexture.image.data))}setGeometrySize(e,t){const r=[...this._geometryInfo].filter(o=>o.active);if(Math.max(...r.map(o=>o.vertexStart+o.reservedVertexCount))>e)throw new Error(`BatchedMesh: Geometry vertex values are being used outside the range ${t}. Cannot shrink further.`);if(this.geometry.index&&Math.max(...r.map(c=>c.indexStart+c.reservedIndexCount))>t)throw new Error(`BatchedMesh: Geometry index values are being used outside the range ${t}. Cannot shrink further.`);const a=this.geometry;a.dispose(),this._maxVertexCount=e,this._maxIndexCount=t,this._geometryInitialized&&(this._geometryInitialized=!1,this.geometry=new Hn,this._initializeGeometry(a));const s=this.geometry;a.index&&Td(a.index.array,s.index.array);for(const o in a.attributes)Td(a.attributes[o].array,s.attributes[o].array)}raycast(e,t){const r=this._instanceInfo,i=this._geometryInfo,a=this.matrixWorld,s=this.geometry;za.material=this.material,za.geometry.index=s.index,za.geometry.attributes=s.attributes,za.geometry.boundingBox===null&&(za.geometry.boundingBox=new qa),za.geometry.boundingSphere===null&&(za.geometry.boundingSphere=new Fa);for(let o=0,c=r.length;o<c;o++){if(!r[o].visible||!r[o].active)continue;const l=r[o].geometryIndex,u=i[l];za.geometry.setDrawRange(u.start,u.count),this.getMatrixAt(o,za.matrixWorld).premultiply(a),this.getBoundingBoxAt(l,za.geometry.boundingBox),this.getBoundingSphereAt(l,za.geometry.boundingSphere),za.raycast(e,$1);for(let A=0,f=$1.length;A<f;A++){const h=$1[A];h.object=this,h.batchId=o,t.push(h)}$1.length=0}za.material=null,za.geometry.index=null,za.geometry.attributes={},za.geometry.setDrawRange(0,1/0)}copy(e){return super.copy(e),this.geometry=e.geometry.clone(),this.perObjectFrustumCulled=e.perObjectFrustumCulled,this.sortObjects=e.sortObjects,this.boundingBox=e.boundingBox!==null?e.boundingBox.clone():null,this.boundingSphere=e.boundingSphere!==null?e.boundingSphere.clone():null,this._geometryInfo=e._geometryInfo.map(t=>({...t,boundingBox:t.boundingBox!==null?t.boundingBox.clone():null,boundingSphere:t.boundingSphere!==null?t.boundingSphere.clone():null})),this._instanceInfo=e._instanceInfo.map(t=>({...t})),this._maxInstanceCount=e._maxInstanceCount,this._maxVertexCount=e._maxVertexCount,this._maxIndexCount=e._maxIndexCount,this._geometryInitialized=e._geometryInitialized,this._geometryCount=e._geometryCount,this._multiDrawCounts=e._multiDrawCounts.slice(),this._multiDrawStarts=e._multiDrawStarts.slice(),this._matricesTexture=e._matricesTexture.clone(),this._matricesTexture.image.data=this._matricesTexture.image.data.slice(),this._colorsTexture!==null&&(this._colorsTexture=e._colorsTexture.clone(),this._colorsTexture.image.data=this._colorsTexture.image.data.slice()),this}dispose(){return this.geometry.dispose(),this._matricesTexture.dispose(),this._matricesTexture=null,this._indirectTexture.dispose(),this._indirectTexture=null,this._colorsTexture!==null&&(this._colorsTexture.dispose(),this._colorsTexture=null),this}onBeforeRender(e,t,r,i,a){if(!this._visibilityChanged&&!this.perObjectFrustumCulled&&!this.sortObjects)return;const s=i.getIndex(),o=s===null?1:s.array.BYTES_PER_ELEMENT,c=this._instanceInfo,l=this._multiDrawStarts,u=this._multiDrawCounts,A=this._geometryInfo,f=this.perObjectFrustumCulled,h=this._indirectTexture,g=h.image.data;f&&(Os.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse).multiply(this.matrixWorld),wx.setFromProjectionMatrix(Os,e.coordinateSystem));let y=0;if(this.sortObjects){Os.copy(this.matrixWorld).invert(),Sm.setFromMatrixPosition(r.matrixWorld).applyMatrix4(Os),v5.set(0,0,-1).transformDirection(r.matrixWorld).transformDirection(Os);for(let S=0,C=c.length;S<C;S++)if(c[S].visible&&c[S].active){const M=c[S].geometryIndex;this.getMatrixAt(S,Os),this.getBoundingSphereAt(M,Bd).applyMatrix4(Os);let F=!1;if(f&&(F=!wx.intersectsSphere(Bd)),!F){const D=A[M],U=MXe.subVectors(Bd.center,Sm).dot(v5);bx.push(D.start,D.count,U,S)}}const w=bx.list,v=this.customSort;v===null?w.sort(a.transparent?bXe:wXe):v.call(this,w,r);for(let S=0,C=w.length;S<C;S++){const M=w[S];l[y]=M.start*o,u[y]=M.count,g[y]=M.index,y++}bx.reset()}else for(let w=0,v=c.length;w<v;w++)if(c[w].visible&&c[w].active){const S=c[w].geometryIndex;let C=!1;if(f&&(this.getMatrixAt(w,Os),this.getBoundingSphereAt(S,Bd).applyMatrix4(Os),C=!wx.intersectsSphere(Bd)),!C){const M=A[S];l[y]=M.start*o,u[y]=M.count,g[y]=w,y++}}h.needsUpdate=!0,this._multiDrawCount=y,this._visibilityChanged=!1}onBeforeShadow(e,t,r,i,a,s){this.onBeforeRender(e,null,i,a,s)}}class Za extends Yi{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new Qt(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const gw=new ye,vw=new ye,y5=new vn,Cm=new jA,j1=new Fa,_x=new ye,w5=new ye;class Zl extends Zn{constructor(e=new Hn,t=new Za){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,r=[0];for(let i=1,a=t.count;i<a;i++)gw.fromBufferAttribute(t,i-1),vw.fromBufferAttribute(t,i),r[i]=r[i-1],r[i]+=gw.distanceTo(vw);e.setAttribute("lineDistance",new an(r,1))}return this}raycast(e,t){const r=this.geometry,i=this.matrixWorld,a=e.params.Line.threshold,s=r.drawRange;if(r.boundingSphere===null&&r.computeBoundingSphere(),j1.copy(r.boundingSphere),j1.applyMatrix4(i),j1.radius+=a,e.ray.intersectsSphere(j1)===!1)return;y5.copy(i).invert(),Cm.copy(e.ray).applyMatrix4(y5);const o=a/((this.scale.x+this.scale.y+this.scale.z)/3),c=o*o,l=this.isLineSegments?2:1,u=r.index,f=r.attributes.position;if(u!==null){const h=Math.max(0,s.start),g=Math.min(u.count,s.start+s.count);for(let y=h,w=g-1;y<w;y+=l){const v=u.getX(y),S=u.getX(y+1),C=z1(this,e,Cm,c,v,S);C&&t.push(C)}if(this.isLineLoop){const y=u.getX(g-1),w=u.getX(h),v=z1(this,e,Cm,c,y,w);v&&t.push(v)}}else{const h=Math.max(0,s.start),g=Math.min(f.count,s.start+s.count);for(let y=h,w=g-1;y<w;y+=l){const v=z1(this,e,Cm,c,y,y+1);v&&t.push(v)}if(this.isLineLoop){const y=z1(this,e,Cm,c,g-1,h);y&&t.push(y)}}}updateMorphTargets(){const t=this.geometry.morphAttributes,r=Object.keys(t);if(r.length>0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,s=i.length;a<s;a++){const o=i[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=a}}}}}function z1(n,e,t,r,i,a){const s=n.geometry.attributes.position;if(gw.fromBufferAttribute(s,i),vw.fromBufferAttribute(s,a),t.distanceSqToSegment(gw,vw,_x,w5)>r)return;_x.applyMatrix4(n.matrixWorld);const c=e.ray.origin.distanceTo(_x);if(!(c<e.near||c>e.far))return{distance:c,point:w5.clone().applyMatrix4(n.matrixWorld),index:i,face:null,faceIndex:null,barycoord:null,object:n}}const b5=new ye,_5=new ye;class Pc extends Zl{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const t=e.attributes.position,r=[];for(let i=0,a=t.count;i<a;i+=2)b5.fromBufferAttribute(t,i),_5.fromBufferAttribute(t,i+1),r[i]=i===0?0:r[i-1],r[i+1]=r[i]+b5.distanceTo(_5);e.setAttribute("lineDistance",new an(r,1))}return this}}class EP extends Zl{constructor(e,t){super(e,t),this.isLineLoop=!0,this.type="LineLoop"}}class Mb extends Yi{constructor(e){super(),this.isPointsMaterial=!0,this.type="PointsMaterial",this.color=new Qt(16777215),this.map=null,this.alphaMap=null,this.size=1,this.sizeAttenuation=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.alphaMap=e.alphaMap,this.size=e.size,this.sizeAttenuation=e.sizeAttenuation,this.fog=e.fog,this}}const x5=new vn,PM=new jA,V1=new Fa,G1=new ye;class BP extends Zn{constructor(e=new Hn,t=new Mb){super(),this.isPoints=!0,this.type="Points",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}raycast(e,t){const r=this.geometry,i=this.matrixWorld,a=e.params.Points.threshold,s=r.drawRange;if(r.boundingSphere===null&&r.computeBoundingSphere(),V1.copy(r.boundingSphere),V1.applyMatrix4(i),V1.radius+=a,e.ray.intersectsSphere(V1)===!1)return;x5.copy(i).invert(),PM.copy(e.ray).applyMatrix4(x5);const o=a/((this.scale.x+this.scale.y+this.scale.z)/3),c=o*o,l=r.index,A=r.attributes.position;if(l!==null){const f=Math.max(0,s.start),h=Math.min(l.count,s.start+s.count);for(let g=f,y=h;g<y;g++){const w=l.getX(g);G1.fromBufferAttribute(A,w),M5(G1,w,c,i,e,t,this)}}else{const f=Math.max(0,s.start),h=Math.min(A.count,s.start+s.count);for(let g=f,y=h;g<y;g++)G1.fromBufferAttribute(A,g),M5(G1,g,c,i,e,t,this)}}updateMorphTargets(){const t=this.geometry.morphAttributes,r=Object.keys(t);if(r.length>0){const i=t[r[0]];if(i!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,s=i.length;a<s;a++){const o=i[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=a}}}}}function M5(n,e,t,r,i,a,s){const o=PM.distanceSqToPoint(n);if(o<t){const c=new ye;PM.closestPointToPoint(n,c),c.applyMatrix4(r);const l=i.ray.origin.distanceTo(c);if(l<i.near||l>i.far)return;a.push({distance:l,distanceToRay:Math.sqrt(o),point:c,index:e,face:null,faceIndex:null,barycoord:null,object:s})}}class Rl extends Zn{constructor(){super(),this.isGroup=!0,this.type="Group"}}class CXe extends ai{constructor(e,t,r,i,a,s,o,c,l){super(e,t,r,i,a,s,o,c,l),this.isVideoTexture=!0,this.minFilter=s!==void 0?s:pi,this.magFilter=a!==void 0?a:pi,this.generateMipmaps=!1;const u=this;function A(){u.needsUpdate=!0,e.requestVideoFrameCallback(A)}"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(A)}clone(){return new this.constructor(this.image).copy(this)}update(){const e=this.image;"requestVideoFrameCallback"in e===!1&&e.readyState>=e.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}class PXe extends ai{constructor(e,t){super({width:e,height:t}),this.isFramebufferTexture=!0,this.magFilter=Xi,this.minFilter=Xi,this.generateMipmaps=!1,this.needsUpdate=!0}}class Sb extends ai{constructor(e,t,r,i,a,s,o,c,l,u,A,f){super(null,s,o,c,l,u,i,a,A,f),this.isCompressedTexture=!0,this.image={width:t,height:r},this.mipmaps=e,this.flipY=!1,this.generateMipmaps=!1}}class EXe extends Sb{constructor(e,t,r,i,a,s){super(e,t,r,a,s),this.isCompressedArrayTexture=!0,this.image.depth=i,this.wrapR=go,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class BXe extends Sb{constructor(e,t,r){super(void 0,e[0].width,e[0].height,t,r,Yl),this.isCompressedCubeTexture=!0,this.isCubeTexture=!0,this.image=e}}class TXe extends ai{constructor(e,t,r,i,a,s,o,c,l){super(e,t,r,i,a,s,o,c,l),this.isCanvasTexture=!0,this.needsUpdate=!0}}class TP extends ai{constructor(e,t,r,i,a,s,o,c,l,u=uA){if(u!==uA&&u!==PA)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");r===void 0&&u===uA&&(r=Jl),r===void 0&&u===PA&&(r=CA),super(null,i,a,s,o,c,u,r,l),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=o!==void 0?o:Xi,this.minFilter=c!==void 0?c:Xi,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return this.compareFunction!==null&&(t.compareFunction=this.compareFunction),t}}class Ec{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return null}getPointAt(e,t){const r=this.getUtoTmapping(e);return this.getPoint(r,t)}getPoints(e=5){const t=[];for(let r=0;r<=e;r++)t.push(this.getPoint(r/e));return t}getSpacedPoints(e=5){const t=[];for(let r=0;r<=e;r++)t.push(this.getPointAt(r/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let r,i=this.getPoint(0),a=0;t.push(0);for(let s=1;s<=e;s++)r=this.getPoint(s/e),a+=r.distanceTo(i),t.push(a),i=r;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const r=this.getLengths();let i=0;const a=r.length;let s;t?s=t:s=e*r[a-1];let o=0,c=a-1,l;for(;o<=c;)if(i=Math.floor(o+(c-o)/2),l=r[i]-s,l<0)o=i+1;else if(l>0)c=i-1;else{c=i;break}if(i=c,r[i]===s)return i/(a-1);const u=r[i],f=r[i+1]-u,h=(s-u)/f;return(i+h)/(a-1)}getTangent(e,t){let i=e-1e-4,a=e+1e-4;i<0&&(i=0),a>1&&(a=1);const s=this.getPoint(i),o=this.getPoint(a),c=t||(s.isVector2?new vt:new ye);return c.copy(o).sub(s).normalize(),c}getTangentAt(e,t){const r=this.getUtoTmapping(e);return this.getTangent(r,t)}computeFrenetFrames(e,t){const r=new ye,i=[],a=[],s=[],o=new ye,c=new vn;for(let h=0;h<=e;h++){const g=h/e;i[h]=this.getTangentAt(g,new ye)}a[0]=new ye,s[0]=new ye;let l=Number.MAX_VALUE;const u=Math.abs(i[0].x),A=Math.abs(i[0].y),f=Math.abs(i[0].z);u<=l&&(l=u,r.set(1,0,0)),A<=l&&(l=A,r.set(0,1,0)),f<=l&&r.set(0,0,1),o.crossVectors(i[0],r).normalize(),a[0].crossVectors(i[0],o),s[0].crossVectors(i[0],a[0]);for(let h=1;h<=e;h++){if(a[h]=a[h-1].clone(),s[h]=s[h-1].clone(),o.crossVectors(i[h-1],i[h]),o.length()>Number.EPSILON){o.normalize();const g=Math.acos(Tn(i[h-1].dot(i[h]),-1,1));a[h].applyMatrix4(c.makeRotationAxis(o,g))}s[h].crossVectors(i[h],a[h])}if(t===!0){let h=Math.acos(Tn(a[0].dot(a[e]),-1,1));h/=e,i[0].dot(o.crossVectors(a[0],a[e]))>0&&(h=-h);for(let g=1;g<=e;g++)a[g].applyMatrix4(c.makeRotationAxis(i[g],h*g)),s[g].crossVectors(i[g],a[g])}return{tangents:i,normals:a,binormals:s}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Cb extends Ec{constructor(e=0,t=0,r=1,i=1,a=0,s=Math.PI*2,o=!1,c=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=r,this.yRadius=i,this.aStartAngle=a,this.aEndAngle=s,this.aClockwise=o,this.aRotation=c}getPoint(e,t=new vt){const r=t,i=Math.PI*2;let a=this.aEndAngle-this.aStartAngle;const s=Math.abs(a)<Number.EPSILON;for(;a<0;)a+=i;for(;a>i;)a-=i;a<Number.EPSILON&&(s?a=0:a=i),this.aClockwise===!0&&!s&&(a===i?a=-i:a=a-i);const o=this.aStartAngle+e*a;let c=this.aX+this.xRadius*Math.cos(o),l=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){const u=Math.cos(this.aRotation),A=Math.sin(this.aRotation),f=c-this.aX,h=l-this.aY;c=f*u-h*A+this.aX,l=f*A+h*u+this.aY}return r.set(c,l)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){const e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}}class pQ extends Cb{constructor(e,t,r,i,a,s){super(e,t,r,r,i,a,s),this.isArcCurve=!0,this.type="ArcCurve"}}function kP(){let n=0,e=0,t=0,r=0;function i(a,s,o,c){n=a,e=o,t=-3*a+3*s-2*o-c,r=2*a-2*s+o+c}return{initCatmullRom:function(a,s,o,c,l){i(s,o,l*(o-a),l*(c-s))},initNonuniformCatmullRom:function(a,s,o,c,l,u,A){let f=(s-a)/l-(o-a)/(l+u)+(o-s)/u,h=(o-s)/u-(c-s)/(u+A)+(c-o)/A;f*=u,h*=u,i(s,o,f,h)},calc:function(a){const s=a*a,o=s*a;return n+e*a+t*s+r*o}}}const K1=new ye,xx=new kP,Mx=new kP,Sx=new kP;class gQ extends Ec{constructor(e=[],t=!1,r="centripetal",i=.5){super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=e,this.closed=t,this.curveType=r,this.tension=i}getPoint(e,t=new ye){const r=t,i=this.points,a=i.length,s=(a-(this.closed?0:1))*e;let o=Math.floor(s),c=s-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/a)+1)*a:c===0&&o===a-1&&(o=a-2,c=1);let l,u;this.closed||o>0?l=i[(o-1)%a]:(K1.subVectors(i[0],i[1]).add(i[0]),l=K1);const A=i[o%a],f=i[(o+1)%a];if(this.closed||o+2<a?u=i[(o+2)%a]:(K1.subVectors(i[a-1],i[a-2]).add(i[a-1]),u=K1),this.curveType==="centripetal"||this.curveType==="chordal"){const h=this.curveType==="chordal"?.5:.25;let g=Math.pow(l.distanceToSquared(A),h),y=Math.pow(A.distanceToSquared(f),h),w=Math.pow(f.distanceToSquared(u),h);y<1e-4&&(y=1),g<1e-4&&(g=y),w<1e-4&&(w=y),xx.initNonuniformCatmullRom(l.x,A.x,f.x,u.x,g,y,w),Mx.initNonuniformCatmullRom(l.y,A.y,f.y,u.y,g,y,w),Sx.initNonuniformCatmullRom(l.z,A.z,f.z,u.z,g,y,w)}else this.curveType==="catmullrom"&&(xx.initCatmullRom(l.x,A.x,f.x,u.x,this.tension),Mx.initCatmullRom(l.y,A.y,f.y,u.y,this.tension),Sx.initCatmullRom(l.z,A.z,f.z,u.z,this.tension));return r.set(xx.calc(c),Mx.calc(c),Sx.calc(c)),r}copy(e){super.copy(e),this.points=[];for(let t=0,r=e.points.length;t<r;t++){const i=e.points[t];this.points.push(i.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,r=this.points.length;t<r;t++){const i=this.points[t];e.points.push(i.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,r=e.points.length;t<r;t++){const i=e.points[t];this.points.push(new ye().fromArray(i))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}}function S5(n,e,t,r,i){const a=(r-e)*.5,s=(i-t)*.5,o=n*n,c=n*o;return(2*t-2*r+a+s)*c+(-3*t+3*r-2*a-s)*o+a*n+t}function kXe(n,e){const t=1-n;return t*t*e}function IXe(n,e){return 2*(1-n)*n*e}function LXe(n,e){return n*n*e}function hp(n,e,t,r){return kXe(n,e)+IXe(n,t)+LXe(n,r)}function FXe(n,e){const t=1-n;return t*t*t*e}function NXe(n,e){const t=1-n;return 3*t*t*n*e}function DXe(n,e){return 3*(1-n)*n*n*e}function RXe(n,e){return n*n*n*e}function fp(n,e,t,r,i){return FXe(n,e)+NXe(n,t)+DXe(n,r)+RXe(n,i)}class IP extends Ec{constructor(e=new vt,t=new vt,r=new vt,i=new vt){super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=e,this.v1=t,this.v2=r,this.v3=i}getPoint(e,t=new vt){const r=t,i=this.v0,a=this.v1,s=this.v2,o=this.v3;return r.set(fp(e,i.x,a.x,s.x,o.x),fp(e,i.y,a.y,s.y,o.y)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class vQ extends Ec{constructor(e=new ye,t=new ye,r=new ye,i=new ye){super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=e,this.v1=t,this.v2=r,this.v3=i}getPoint(e,t=new ye){const r=t,i=this.v0,a=this.v1,s=this.v2,o=this.v3;return r.set(fp(e,i.x,a.x,s.x,o.x),fp(e,i.y,a.y,s.y,o.y),fp(e,i.z,a.z,s.z,o.z)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class LP extends Ec{constructor(e=new vt,t=new vt){super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=e,this.v2=t}getPoint(e,t=new vt){const r=t;return e===1?r.copy(this.v2):(r.copy(this.v2).sub(this.v1),r.multiplyScalar(e).add(this.v1)),r}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new vt){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class yQ extends Ec{constructor(e=new ye,t=new ye){super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=e,this.v2=t}getPoint(e,t=new ye){const r=t;return e===1?r.copy(this.v2):(r.copy(this.v2).sub(this.v1),r.multiplyScalar(e).add(this.v1)),r}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new ye){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class FP extends Ec{constructor(e=new vt,t=new vt,r=new vt){super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=e,this.v1=t,this.v2=r}getPoint(e,t=new vt){const r=t,i=this.v0,a=this.v1,s=this.v2;return r.set(hp(e,i.x,a.x,s.x),hp(e,i.y,a.y,s.y)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class NP extends Ec{constructor(e=new ye,t=new ye,r=new ye){super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=e,this.v1=t,this.v2=r}getPoint(e,t=new ye){const r=t,i=this.v0,a=this.v1,s=this.v2;return r.set(hp(e,i.x,a.x,s.x),hp(e,i.y,a.y,s.y),hp(e,i.z,a.z,s.z)),r}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class DP extends Ec{constructor(e=[]){super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=e}getPoint(e,t=new vt){const r=t,i=this.points,a=(i.length-1)*e,s=Math.floor(a),o=a-s,c=i[s===0?s:s-1],l=i[s],u=i[s>i.length-2?i.length-1:s+1],A=i[s>i.length-3?i.length-1:s+2];return r.set(S5(o,c.x,l.x,u.x,A.x),S5(o,c.y,l.y,u.y,A.y)),r}copy(e){super.copy(e),this.points=[];for(let t=0,r=e.points.length;t<r;t++){const i=e.points[t];this.points.push(i.clone())}return this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,r=this.points.length;t<r;t++){const i=this.points[t];e.points.push(i.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,r=e.points.length;t<r;t++){const i=e.points[t];this.points.push(new vt().fromArray(i))}return this}}var yw=Object.freeze({__proto__:null,ArcCurve:pQ,CatmullRomCurve3:gQ,CubicBezierCurve:IP,CubicBezierCurve3:vQ,EllipseCurve:Cb,LineCurve:LP,LineCurve3:yQ,QuadraticBezierCurve:FP,QuadraticBezierCurve3:NP,SplineCurve:DP});class wQ extends Ec{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){const e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(t)){const r=e.isVector2===!0?"LineCurve":"LineCurve3";this.curves.push(new yw[r](t,e))}return this}getPoint(e,t){const r=e*this.getLength(),i=this.getCurveLengths();let a=0;for(;a<i.length;){if(i[a]>=r){const s=i[a]-r,o=this.curves[a],c=o.getLength(),l=c===0?0:1-s/c;return o.getPointAt(l,t)}a++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let r=0,i=this.curves.length;r<i;r++)t+=this.curves[r].getLength(),e.push(t);return this.cacheLengths=e,e}getSpacedPoints(e=40){const t=[];for(let r=0;r<=e;r++)t.push(this.getPoint(r/e));return this.autoClose&&t.push(t[0]),t}getPoints(e=12){const t=[];let r;for(let i=0,a=this.curves;i<a.length;i++){const s=a[i],o=s.isEllipseCurve?e*2:s.isLineCurve||s.isLineCurve3?1:s.isSplineCurve?e*s.points.length:e,c=s.getPoints(o);for(let l=0;l<c.length;l++){const u=c[l];r&&r.equals(u)||(t.push(u),r=u)}}return this.autoClose&&t.length>1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,r=e.curves.length;t<r;t++){const i=e.curves[t];this.curves.push(i.clone())}return this.autoClose=e.autoClose,this}toJSON(){const e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let t=0,r=this.curves.length;t<r;t++){const i=this.curves[t];e.curves.push(i.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let t=0,r=e.curves.length;t<r;t++){const i=e.curves[t];this.curves.push(new yw[i.type]().fromJSON(i))}return this}}class Jp extends wQ{constructor(e){super(),this.type="Path",this.currentPoint=new vt,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,r=e.length;t<r;t++)this.lineTo(e[t].x,e[t].y);return this}moveTo(e,t){return this.currentPoint.set(e,t),this}lineTo(e,t){const r=new LP(this.currentPoint.clone(),new vt(e,t));return this.curves.push(r),this.currentPoint.set(e,t),this}quadraticCurveTo(e,t,r,i){const a=new FP(this.currentPoint.clone(),new vt(e,t),new vt(r,i));return this.curves.push(a),this.currentPoint.set(r,i),this}bezierCurveTo(e,t,r,i,a,s){const o=new IP(this.currentPoint.clone(),new vt(e,t),new vt(r,i),new vt(a,s));return this.curves.push(o),this.currentPoint.set(a,s),this}splineThru(e){const t=[this.currentPoint.clone()].concat(e),r=new DP(t);return this.curves.push(r),this.currentPoint.copy(e[e.length-1]),this}arc(e,t,r,i,a,s){const o=this.currentPoint.x,c=this.currentPoint.y;return this.absarc(e+o,t+c,r,i,a,s),this}absarc(e,t,r,i,a,s){return this.absellipse(e,t,r,r,i,a,s),this}ellipse(e,t,r,i,a,s,o,c){const l=this.currentPoint.x,u=this.currentPoint.y;return this.absellipse(e+l,t+u,r,i,a,s,o,c),this}absellipse(e,t,r,i,a,s,o,c){const l=new Cb(e,t,r,i,a,s,o,c);if(this.curves.length>0){const A=l.getPoint(0);A.equals(this.currentPoint)||this.lineTo(A.x,A.y)}this.curves.push(l);const u=l.getPoint(1);return this.currentPoint.copy(u),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class Lg extends Hn{constructor(e=[new vt(0,-.5),new vt(.5,0),new vt(0,.5)],t=12,r=0,i=Math.PI*2){super(),this.type="LatheGeometry",this.parameters={points:e,segments:t,phiStart:r,phiLength:i},t=Math.floor(t),i=Tn(i,0,Math.PI*2);const a=[],s=[],o=[],c=[],l=[],u=1/t,A=new ye,f=new vt,h=new ye,g=new ye,y=new ye;let w=0,v=0;for(let S=0;S<=e.length-1;S++)switch(S){case 0:w=e[S+1].x-e[S].x,v=e[S+1].y-e[S].y,h.x=v*1,h.y=-w,h.z=v*0,y.copy(h),h.normalize(),c.push(h.x,h.y,h.z);break;case e.length-1:c.push(y.x,y.y,y.z);break;default:w=e[S+1].x-e[S].x,v=e[S+1].y-e[S].y,h.x=v*1,h.y=-w,h.z=v*0,g.copy(h),h.x+=y.x,h.y+=y.y,h.z+=y.z,h.normalize(),c.push(h.x,h.y,h.z),y.copy(g)}for(let S=0;S<=t;S++){const C=r+S*u*i,M=Math.sin(C),F=Math.cos(C);for(let D=0;D<=e.length-1;D++){A.x=e[D].x*M,A.y=e[D].y,A.z=e[D].x*F,s.push(A.x,A.y,A.z),f.x=S/t,f.y=D/(e.length-1),o.push(f.x,f.y);const U=c[3*D+0]*M,O=c[3*D+1],T=c[3*D+0]*F;l.push(U,O,T)}}for(let S=0;S<t;S++)for(let C=0;C<e.length-1;C++){const M=C+S*e.length,F=M,D=M+e.length,U=M+e.length+1,O=M+1;a.push(F,D,O),a.push(U,O,D)}this.setIndex(a),this.setAttribute("position",new an(s,3)),this.setAttribute("uv",new an(o,2)),this.setAttribute("normal",new an(l,3))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Lg(e.points,e.segments,e.phiStart,e.phiLength)}}class Pb extends Lg{constructor(e=1,t=1,r=4,i=8){const a=new Jp;a.absarc(0,-t/2,e,Math.PI*1.5,0),a.absarc(0,t/2,e,0,Math.PI*.5),super(a.getPoints(r),i),this.type="CapsuleGeometry",this.parameters={radius:e,length:t,capSegments:r,radialSegments:i}}static fromJSON(e){return new Pb(e.radius,e.length,e.capSegments,e.radialSegments)}}class Eb extends Hn{constructor(e=1,t=32,r=0,i=Math.PI*2){super(),this.type="CircleGeometry",this.parameters={radius:e,segments:t,thetaStart:r,thetaLength:i},t=Math.max(3,t);const a=[],s=[],o=[],c=[],l=new ye,u=new vt;s.push(0,0,0),o.push(0,0,1),c.push(.5,.5);for(let A=0,f=3;A<=t;A++,f+=3){const h=r+A/t*i;l.x=e*Math.cos(h),l.y=e*Math.sin(h),s.push(l.x,l.y,l.z),o.push(0,0,1),u.x=(s[f]/e+1)/2,u.y=(s[f+1]/e+1)/2,c.push(u.x,u.y)}for(let A=1;A<=t;A++)a.push(A,A+1,0);this.setIndex(a),this.setAttribute("position",new an(s,3)),this.setAttribute("normal",new an(o,3)),this.setAttribute("uv",new an(c,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Eb(e.radius,e.segments,e.thetaStart,e.thetaLength)}}class Rf extends Hn{constructor(e=1,t=1,r=1,i=32,a=1,s=!1,o=0,c=Math.PI*2){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:t,height:r,radialSegments:i,heightSegments:a,openEnded:s,thetaStart:o,thetaLength:c};const l=this;i=Math.floor(i),a=Math.floor(a);const u=[],A=[],f=[],h=[];let g=0;const y=[],w=r/2;let v=0;S(),s===!1&&(e>0&&C(!0),t>0&&C(!1)),this.setIndex(u),this.setAttribute("position",new an(A,3)),this.setAttribute("normal",new an(f,3)),this.setAttribute("uv",new an(h,2));function S(){const M=new ye,F=new ye;let D=0;const U=(t-e)/r;for(let O=0;O<=a;O++){const T=[],P=O/a,k=P*(t-e)+e;for(let H=0;H<=i;H++){const j=H/i,$=j*c+o,ce=Math.sin($),de=Math.cos($);F.x=k*ce,F.y=-P*r+w,F.z=k*de,A.push(F.x,F.y,F.z),M.set(ce,U,de).normalize(),f.push(M.x,M.y,M.z),h.push(j,1-P),T.push(g++)}y.push(T)}for(let O=0;O<i;O++)for(let T=0;T<a;T++){const P=y[T][O],k=y[T+1][O],H=y[T+1][O+1],j=y[T][O+1];(e>0||T!==0)&&(u.push(P,k,j),D+=3),(t>0||T!==a-1)&&(u.push(k,H,j),D+=3)}l.addGroup(v,D,0),v+=D}function C(M){const F=g,D=new vt,U=new ye;let O=0;const T=M===!0?e:t,P=M===!0?1:-1;for(let H=1;H<=i;H++)A.push(0,w*P,0),f.push(0,P,0),h.push(.5,.5),g++;const k=g;for(let H=0;H<=i;H++){const $=H/i*c+o,ce=Math.cos($),de=Math.sin($);U.x=T*de,U.y=w*P,U.z=T*ce,A.push(U.x,U.y,U.z),f.push(0,P,0),D.x=ce*.5+.5,D.y=de*.5*P+.5,h.push(D.x,D.y),g++}for(let H=0;H<i;H++){const j=F+H,$=k+H;M===!0?u.push($,$+1,j):u.push($+1,$,j),O+=3}l.addGroup(v,O,M===!0?1:2),v+=O}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Rf(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class Bb extends Rf{constructor(e=1,t=1,r=32,i=1,a=!1,s=0,o=Math.PI*2){super(0,e,t,r,i,a,s,o),this.type="ConeGeometry",this.parameters={radius:e,height:t,radialSegments:r,heightSegments:i,openEnded:a,thetaStart:s,thetaLength:o}}static fromJSON(e){return new Bb(e.radius,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class cd extends Hn{constructor(e=[],t=[],r=1,i=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:e,indices:t,radius:r,detail:i};const a=[],s=[];o(i),l(r),u(),this.setAttribute("position",new an(a,3)),this.setAttribute("normal",new an(a.slice(),3)),this.setAttribute("uv",new an(s,2)),i===0?this.computeVertexNormals():this.normalizeNormals();function o(S){const C=new ye,M=new ye,F=new ye;for(let D=0;D<t.length;D+=3)h(t[D+0],C),h(t[D+1],M),h(t[D+2],F),c(C,M,F,S)}function c(S,C,M,F){const D=F+1,U=[];for(let O=0;O<=D;O++){U[O]=[];const T=S.clone().lerp(M,O/D),P=C.clone().lerp(M,O/D),k=D-O;for(let H=0;H<=k;H++)H===0&&O===D?U[O][H]=T:U[O][H]=T.clone().lerp(P,H/k)}for(let O=0;O<D;O++)for(let T=0;T<2*(D-O)-1;T++){const P=Math.floor(T/2);T%2===0?(f(U[O][P+1]),f(U[O+1][P]),f(U[O][P])):(f(U[O][P+1]),f(U[O+1][P+1]),f(U[O+1][P]))}}function l(S){const C=new ye;for(let M=0;M<a.length;M+=3)C.x=a[M+0],C.y=a[M+1],C.z=a[M+2],C.normalize().multiplyScalar(S),a[M+0]=C.x,a[M+1]=C.y,a[M+2]=C.z}function u(){const S=new ye;for(let C=0;C<a.length;C+=3){S.x=a[C+0],S.y=a[C+1],S.z=a[C+2];const M=w(S)/2/Math.PI+.5,F=v(S)/Math.PI+.5;s.push(M,1-F)}g(),A()}function A(){for(let S=0;S<s.length;S+=6){const C=s[S+0],M=s[S+2],F=s[S+4],D=Math.max(C,M,F),U=Math.min(C,M,F);D>.9&&U<.1&&(C<.2&&(s[S+0]+=1),M<.2&&(s[S+2]+=1),F<.2&&(s[S+4]+=1))}}function f(S){a.push(S.x,S.y,S.z)}function h(S,C){const M=S*3;C.x=e[M+0],C.y=e[M+1],C.z=e[M+2]}function g(){const S=new ye,C=new ye,M=new ye,F=new ye,D=new vt,U=new vt,O=new vt;for(let T=0,P=0;T<a.length;T+=9,P+=6){S.set(a[T+0],a[T+1],a[T+2]),C.set(a[T+3],a[T+4],a[T+5]),M.set(a[T+6],a[T+7],a[T+8]),D.set(s[P+0],s[P+1]),U.set(s[P+2],s[P+3]),O.set(s[P+4],s[P+5]),F.copy(S).add(C).add(M).divideScalar(3);const k=w(F);y(D,P+0,S,k),y(U,P+2,C,k),y(O,P+4,M,k)}}function y(S,C,M,F){F<0&&S.x===1&&(s[C]=S.x-1),M.x===0&&M.z===0&&(s[C]=F/2/Math.PI+.5)}function w(S){return Math.atan2(S.z,-S.x)}function v(S){return Math.atan2(-S.y,Math.sqrt(S.x*S.x+S.z*S.z))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new cd(e.vertices,e.indices,e.radius,e.details)}}class Tb extends cd{constructor(e=1,t=0){const r=(1+Math.sqrt(5))/2,i=1/r,a=[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-i,-r,0,-i,r,0,i,-r,0,i,r,-i,-r,0,-i,r,0,i,-r,0,i,r,0,-r,0,-i,r,0,-i,-r,0,i,r,0,i],s=[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9];super(a,s,e,t),this.type="DodecahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new Tb(e.radius,e.detail)}}const q1=new ye,X1=new ye,Cx=new ye,Y1=new js;class bQ extends Hn{constructor(e=null,t=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:e,thresholdAngle:t},e!==null){const i=Math.pow(10,4),a=Math.cos(dA*t),s=e.getIndex(),o=e.getAttribute("position"),c=s?s.count:o.count,l=[0,0,0],u=["a","b","c"],A=new Array(3),f={},h=[];for(let g=0;g<c;g+=3){s?(l[0]=s.getX(g),l[1]=s.getX(g+1),l[2]=s.getX(g+2)):(l[0]=g,l[1]=g+1,l[2]=g+2);const{a:y,b:w,c:v}=Y1;if(y.fromBufferAttribute(o,l[0]),w.fromBufferAttribute(o,l[1]),v.fromBufferAttribute(o,l[2]),Y1.getNormal(Cx),A[0]=`${Math.round(y.x*i)},${Math.round(y.y*i)},${Math.round(y.z*i)}`,A[1]=`${Math.round(w.x*i)},${Math.round(w.y*i)},${Math.round(w.z*i)}`,A[2]=`${Math.round(v.x*i)},${Math.round(v.y*i)},${Math.round(v.z*i)}`,!(A[0]===A[1]||A[1]===A[2]||A[2]===A[0]))for(let S=0;S<3;S++){const C=(S+1)%3,M=A[S],F=A[C],D=Y1[u[S]],U=Y1[u[C]],O=`${M}_${F}`,T=`${F}_${M}`;T in f&&f[T]?(Cx.dot(f[T].normal)<=a&&(h.push(D.x,D.y,D.z),h.push(U.x,U.y,U.z)),f[T]=null):O in f||(f[O]={index0:l[S],index1:l[C],normal:Cx.clone()})}}for(const g in f)if(f[g]){const{index0:y,index1:w}=f[g];q1.fromBufferAttribute(o,y),X1.fromBufferAttribute(o,w),h.push(q1.x,q1.y,q1.z),h.push(X1.x,X1.y,X1.z)}this.setAttribute("position",new an(h,3))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}}class AA extends Jp{constructor(e){super(e),this.uuid=bo(),this.type="Shape",this.holes=[]}getPointsHoles(e){const t=[];for(let r=0,i=this.holes.length;r<i;r++)t[r]=this.holes[r].getPoints(e);return t}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let t=0,r=e.holes.length;t<r;t++){const i=e.holes[t];this.holes.push(i.clone())}return this}toJSON(){const e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let t=0,r=this.holes.length;t<r;t++){const i=this.holes[t];e.holes.push(i.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let t=0,r=e.holes.length;t<r;t++){const i=e.holes[t];this.holes.push(new Jp().fromJSON(i))}return this}}const UXe={triangulate:function(n,e,t=2){const r=e&&e.length,i=r?e[0]*t:n.length;let a=_Q(n,0,i,t,!0);const s=[];if(!a||a.next===a.prev)return s;let o,c,l,u,A,f,h;if(r&&(a=$Xe(n,e,a,t)),n.length>80*t){o=l=n[0],c=u=n[1];for(let g=t;g<i;g+=t)A=n[g],f=n[g+1],A<o&&(o=A),f<c&&(c=f),A>l&&(l=A),f>u&&(u=f);h=Math.max(l-o,u-c),h=h!==0?32767/h:0}return Zp(a,s,t,o,c,h,0),s}};function _Q(n,e,t,r,i){let a,s;if(i===eYe(n,e,t,r)>0)for(a=e;a<t;a+=r)s=C5(a,n[a],n[a+1],s);else for(a=t-r;a>=e;a-=r)s=C5(a,n[a],n[a+1],s);return s&&kb(s,s.next)&&(tg(s),s=s.next),s}function BA(n,e){if(!n)return n;e||(e=n);let t=n,r;do if(r=!1,!t.steiner&&(kb(t,t.next)||ci(t.prev,t,t.next)===0)){if(tg(t),t=e=t.prev,t===t.next)break;r=!0}else t=t.next;while(r||t!==e);return e}function Zp(n,e,t,r,i,a,s){if(!n)return;!s&&a&&KXe(n,r,i,a);let o=n,c,l;for(;n.prev!==n.next;){if(c=n.prev,l=n.next,a?HXe(n,r,i,a):OXe(n)){e.push(c.i/t|0),e.push(n.i/t|0),e.push(l.i/t|0),tg(n),n=l.next,o=l.next;continue}if(n=l,n===o){s?s===1?(n=WXe(BA(n),e,t),Zp(n,e,t,r,i,a,2)):s===2&&QXe(n,e,t,r,i,a):Zp(BA(n),e,t,r,i,a,1);break}}}function OXe(n){const e=n.prev,t=n,r=n.next;if(ci(e,t,r)>=0)return!1;const i=e.x,a=t.x,s=r.x,o=e.y,c=t.y,l=r.y,u=i<a?i<s?i:s:a<s?a:s,A=o<c?o<l?o:l:c<l?c:l,f=i>a?i>s?i:s:a>s?a:s,h=o>c?o>l?o:l:c>l?c:l;let g=r.next;for(;g!==e;){if(g.x>=u&&g.x<=f&&g.y>=A&&g.y<=h&&zh(i,o,a,c,s,l,g.x,g.y)&&ci(g.prev,g,g.next)>=0)return!1;g=g.next}return!0}function HXe(n,e,t,r){const i=n.prev,a=n,s=n.next;if(ci(i,a,s)>=0)return!1;const o=i.x,c=a.x,l=s.x,u=i.y,A=a.y,f=s.y,h=o<c?o<l?o:l:c<l?c:l,g=u<A?u<f?u:f:A<f?A:f,y=o>c?o>l?o:l:c>l?c:l,w=u>A?u>f?u:f:A>f?A:f,v=EM(h,g,e,t,r),S=EM(y,w,e,t,r);let C=n.prevZ,M=n.nextZ;for(;C&&C.z>=v&&M&&M.z<=S;){if(C.x>=h&&C.x<=y&&C.y>=g&&C.y<=w&&C!==i&&C!==s&&zh(o,u,c,A,l,f,C.x,C.y)&&ci(C.prev,C,C.next)>=0||(C=C.prevZ,M.x>=h&&M.x<=y&&M.y>=g&&M.y<=w&&M!==i&&M!==s&&zh(o,u,c,A,l,f,M.x,M.y)&&ci(M.prev,M,M.next)>=0))return!1;M=M.nextZ}for(;C&&C.z>=v;){if(C.x>=h&&C.x<=y&&C.y>=g&&C.y<=w&&C!==i&&C!==s&&zh(o,u,c,A,l,f,C.x,C.y)&&ci(C.prev,C,C.next)>=0)return!1;C=C.prevZ}for(;M&&M.z<=S;){if(M.x>=h&&M.x<=y&&M.y>=g&&M.y<=w&&M!==i&&M!==s&&zh(o,u,c,A,l,f,M.x,M.y)&&ci(M.prev,M,M.next)>=0)return!1;M=M.nextZ}return!0}function WXe(n,e,t){let r=n;do{const i=r.prev,a=r.next.next;!kb(i,a)&&xQ(i,r,r.next,a)&&eg(i,a)&&eg(a,i)&&(e.push(i.i/t|0),e.push(r.i/t|0),e.push(a.i/t|0),tg(r),tg(r.next),r=n=a),r=r.next}while(r!==n);return BA(r)}function QXe(n,e,t,r,i,a){let s=n;do{let o=s.next.next;for(;o!==s.prev;){if(s.i!==o.i&&YXe(s,o)){let c=MQ(s,o);s=BA(s,s.next),c=BA(c,c.next),Zp(s,e,t,r,i,a,0),Zp(c,e,t,r,i,a,0);return}o=o.next}s=s.next}while(s!==n)}function $Xe(n,e,t,r){const i=[];let a,s,o,c,l;for(a=0,s=e.length;a<s;a++)o=e[a]*r,c=a<s-1?e[a+1]*r:n.length,l=_Q(n,o,c,r,!1),l===l.next&&(l.steiner=!0),i.push(XXe(l));for(i.sort(jXe),a=0;a<i.length;a++)t=zXe(i[a],t);return t}function jXe(n,e){return n.x-e.x}function zXe(n,e){const t=VXe(n,e);if(!t)return e;const r=MQ(t,n);return BA(r,r.next),BA(t,t.next)}function VXe(n,e){let t=e,r=-1/0,i;const a=n.x,s=n.y;do{if(s<=t.y&&s>=t.next.y&&t.next.y!==t.y){const f=t.x+(s-t.y)*(t.next.x-t.x)/(t.next.y-t.y);if(f<=a&&f>r&&(r=f,i=t.x<t.next.x?t:t.next,f===a))return i}t=t.next}while(t!==e);if(!i)return null;const o=i,c=i.x,l=i.y;let u=1/0,A;t=i;do a>=t.x&&t.x>=c&&a!==t.x&&zh(s<l?a:r,s,c,l,s<l?r:a,s,t.x,t.y)&&(A=Math.abs(s-t.y)/(a-t.x),eg(t,n)&&(A<u||A===u&&(t.x>i.x||t.x===i.x&&GXe(i,t)))&&(i=t,u=A)),t=t.next;while(t!==o);return i}function GXe(n,e){return ci(n.prev,n,e.prev)<0&&ci(e.next,n,n.next)<0}function KXe(n,e,t,r){let i=n;do i.z===0&&(i.z=EM(i.x,i.y,e,t,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==n);i.prevZ.nextZ=null,i.prevZ=null,qXe(i)}function qXe(n){let e,t,r,i,a,s,o,c,l=1;do{for(t=n,n=null,a=null,s=0;t;){for(s++,r=t,o=0,e=0;e<l&&(o++,r=r.nextZ,!!r);e++);for(c=l;o>0||c>0&&r;)o!==0&&(c===0||!r||t.z<=r.z)?(i=t,t=t.nextZ,o--):(i=r,r=r.nextZ,c--),a?a.nextZ=i:n=i,i.prevZ=a,a=i;t=r}a.nextZ=null,l*=2}while(s>1);return n}function EM(n,e,t,r,i){return n=(n-t)*i|0,e=(e-r)*i|0,n=(n|n<<8)&16711935,n=(n|n<<4)&252645135,n=(n|n<<2)&858993459,n=(n|n<<1)&1431655765,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,n|e<<1}function XXe(n){let e=n,t=n;do(e.x<t.x||e.x===t.x&&e.y<t.y)&&(t=e),e=e.next;while(e!==n);return t}function zh(n,e,t,r,i,a,s,o){return(i-s)*(e-o)>=(n-s)*(a-o)&&(n-s)*(r-o)>=(t-s)*(e-o)&&(t-s)*(a-o)>=(i-s)*(r-o)}function YXe(n,e){return n.next.i!==e.i&&n.prev.i!==e.i&&!JXe(n,e)&&(eg(n,e)&&eg(e,n)&&ZXe(n,e)&&(ci(n.prev,n,e.prev)||ci(n,e.prev,e))||kb(n,e)&&ci(n.prev,n,n.next)>0&&ci(e.prev,e,e.next)>0)}function ci(n,e,t){return(e.y-n.y)*(t.x-e.x)-(e.x-n.x)*(t.y-e.y)}function kb(n,e){return n.x===e.x&&n.y===e.y}function xQ(n,e,t,r){const i=Z1(ci(n,e,t)),a=Z1(ci(n,e,r)),s=Z1(ci(t,r,n)),o=Z1(ci(t,r,e));return!!(i!==a&&s!==o||i===0&&J1(n,t,e)||a===0&&J1(n,r,e)||s===0&&J1(t,n,r)||o===0&&J1(t,e,r))}function J1(n,e,t){return e.x<=Math.max(n.x,t.x)&&e.x>=Math.min(n.x,t.x)&&e.y<=Math.max(n.y,t.y)&&e.y>=Math.min(n.y,t.y)}function Z1(n){return n>0?1:n<0?-1:0}function JXe(n,e){let t=n;do{if(t.i!==n.i&&t.next.i!==n.i&&t.i!==e.i&&t.next.i!==e.i&&xQ(t,t.next,n,e))return!0;t=t.next}while(t!==n);return!1}function eg(n,e){return ci(n.prev,n,n.next)<0?ci(n,e,n.next)>=0&&ci(n,n.prev,e)>=0:ci(n,e,n.prev)<0||ci(n,n.next,e)<0}function ZXe(n,e){let t=n,r=!1;const i=(n.x+e.x)/2,a=(n.y+e.y)/2;do t.y>a!=t.next.y>a&&t.next.y!==t.y&&i<(t.next.x-t.x)*(a-t.y)/(t.next.y-t.y)+t.x&&(r=!r),t=t.next;while(t!==n);return r}function MQ(n,e){const t=new BM(n.i,n.x,n.y),r=new BM(e.i,e.x,e.y),i=n.next,a=e.prev;return n.next=e,e.prev=n,t.next=i,i.prev=t,r.next=t,t.prev=r,a.next=r,r.prev=a,r}function C5(n,e,t,r){const i=new BM(n,e,t);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function tg(n){n.next.prev=n.prev,n.prev.next=n.next,n.prevZ&&(n.prevZ.nextZ=n.nextZ),n.nextZ&&(n.nextZ.prevZ=n.prevZ)}function BM(n,e,t){this.i=n,this.x=e,this.y=t,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function eYe(n,e,t,r){let i=0;for(let a=e,s=t-r;a<t;a+=r)i+=(n[s]-n[a])*(n[a+1]+n[s+1]),s=a;return i}class el{static area(e){const t=e.length;let r=0;for(let i=t-1,a=0;a<t;i=a++)r+=e[i].x*e[a].y-e[a].x*e[i].y;return r*.5}static isClockWise(e){return el.area(e)<0}static triangulateShape(e,t){const r=[],i=[],a=[];P5(e),E5(r,e);let s=e.length;t.forEach(P5);for(let c=0;c<t.length;c++)i.push(s),s+=t[c].length,E5(r,t[c]);const o=UXe.triangulate(r,i);for(let c=0;c<o.length;c+=3)a.push(o.slice(c,c+3));return a}}function P5(n){const e=n.length;e>2&&n[e-1].equals(n[0])&&n.pop()}function E5(n,e){for(let t=0;t<e.length;t++)n.push(e[t].x),n.push(e[t].y)}class Ib extends Hn{constructor(e=new AA([new vt(.5,.5),new vt(-.5,.5),new vt(-.5,-.5),new vt(.5,-.5)]),t={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:t},e=Array.isArray(e)?e:[e];const r=this,i=[],a=[];for(let o=0,c=e.length;o<c;o++){const l=e[o];s(l)}this.setAttribute("position",new an(i,3)),this.setAttribute("uv",new an(a,2)),this.computeVertexNormals();function s(o){const c=[],l=t.curveSegments!==void 0?t.curveSegments:12,u=t.steps!==void 0?t.steps:1,A=t.depth!==void 0?t.depth:1;let f=t.bevelEnabled!==void 0?t.bevelEnabled:!0,h=t.bevelThickness!==void 0?t.bevelThickness:.2,g=t.bevelSize!==void 0?t.bevelSize:h-.1,y=t.bevelOffset!==void 0?t.bevelOffset:0,w=t.bevelSegments!==void 0?t.bevelSegments:3;const v=t.extrudePath,S=t.UVGenerator!==void 0?t.UVGenerator:tYe;let C,M=!1,F,D,U,O;v&&(C=v.getSpacedPoints(u),M=!0,f=!1,F=v.computeFrenetFrames(u,!1),D=new ye,U=new ye,O=new ye),f||(w=0,h=0,g=0,y=0);const T=o.extractPoints(l);let P=T.shape;const k=T.holes;if(!el.isClockWise(P)){P=P.reverse();for(let Ee=0,Ne=k.length;Ee<Ne;Ee++){const ue=k[Ee];el.isClockWise(ue)&&(k[Ee]=ue.reverse())}}const j=el.triangulateShape(P,k),$=P;for(let Ee=0,Ne=k.length;Ee<Ne;Ee++){const ue=k[Ee];P=P.concat(ue)}function ce(Ee,Ne,ue){return Ee.clone().addScaledVector(Ne,ue)}const de=P.length,fe=j.length;function ee(Ee,Ne,ue){let ne,De,je;const ze=Ee.x-Ne.x,Qe=Ee.y-Ne.y,ot=ue.x-Ee.x,se=ue.y-Ee.y,G=ze*ze+Qe*Qe,Be=ze*se-Qe*ot;if(Math.abs(Be)>Number.EPSILON){const Ke=Math.sqrt(G),it=Math.sqrt(ot*ot+se*se),Ve=Ne.x-Qe/Ke,bt=Ne.y+ze/Ke,lt=ue.x-se/it,ct=ue.y+ot/it,kt=((lt-Ve)*se-(ct-bt)*ot)/(ze*se-Qe*ot);ne=Ve+ze*kt-Ee.x,De=bt+Qe*kt-Ee.y;const Je=ne*ne+De*De;if(Je<=2)return new vt(ne,De);je=Math.sqrt(Je/2)}else{let Ke=!1;ze>Number.EPSILON?ot>Number.EPSILON&&(Ke=!0):ze<-Number.EPSILON?ot<-Number.EPSILON&&(Ke=!0):Math.sign(Qe)===Math.sign(se)&&(Ke=!0),Ke?(ne=-Qe,De=ze,je=Math.sqrt(G)):(ne=ze,De=Qe,je=Math.sqrt(G/2))}return new vt(ne/je,De/je)}const Se=[];for(let Ee=0,Ne=$.length,ue=Ne-1,ne=Ee+1;Ee<Ne;Ee++,ue++,ne++)ue===Ne&&(ue=0),ne===Ne&&(ne=0),Se[Ee]=ee($[Ee],$[ue],$[ne]);const xe=[];let Pe,V=Se.concat();for(let Ee=0,Ne=k.length;Ee<Ne;Ee++){const ue=k[Ee];Pe=[];for(let ne=0,De=ue.length,je=De-1,ze=ne+1;ne<De;ne++,je++,ze++)je===De&&(je=0),ze===De&&(ze=0),Pe[ne]=ee(ue[ne],ue[je],ue[ze]);xe.push(Pe),V=V.concat(Pe)}for(let Ee=0;Ee<w;Ee++){const Ne=Ee/w,ue=h*Math.cos(Ne*Math.PI/2),ne=g*Math.sin(Ne*Math.PI/2)+y;for(let De=0,je=$.length;De<je;De++){const ze=ce($[De],Se[De],ne);le(ze.x,ze.y,-ue)}for(let De=0,je=k.length;De<je;De++){const ze=k[De];Pe=xe[De];for(let Qe=0,ot=ze.length;Qe<ot;Qe++){const se=ce(ze[Qe],Pe[Qe],ne);le(se.x,se.y,-ue)}}}const ae=g+y;for(let Ee=0;Ee<de;Ee++){const Ne=f?ce(P[Ee],V[Ee],ae):P[Ee];M?(U.copy(F.normals[0]).multiplyScalar(Ne.x),D.copy(F.binormals[0]).multiplyScalar(Ne.y),O.copy(C[0]).add(U).add(D),le(O.x,O.y,O.z)):le(Ne.x,Ne.y,0)}for(let Ee=1;Ee<=u;Ee++)for(let Ne=0;Ne<de;Ne++){const ue=f?ce(P[Ne],V[Ne],ae):P[Ne];M?(U.copy(F.normals[Ee]).multiplyScalar(ue.x),D.copy(F.binormals[Ee]).multiplyScalar(ue.y),O.copy(C[Ee]).add(U).add(D),le(O.x,O.y,O.z)):le(ue.x,ue.y,A/u*Ee)}for(let Ee=w-1;Ee>=0;Ee--){const Ne=Ee/w,ue=h*Math.cos(Ne*Math.PI/2),ne=g*Math.sin(Ne*Math.PI/2)+y;for(let De=0,je=$.length;De<je;De++){const ze=ce($[De],Se[De],ne);le(ze.x,ze.y,A+ue)}for(let De=0,je=k.length;De<je;De++){const ze=k[De];Pe=xe[De];for(let Qe=0,ot=ze.length;Qe<ot;Qe++){const se=ce(ze[Qe],Pe[Qe],ne);M?le(se.x,se.y+C[u-1].y,C[u-1].x+ue):le(se.x,se.y,A+ue)}}}J(),z();function J(){const Ee=i.length/3;if(f){let Ne=0,ue=de*Ne;for(let ne=0;ne<fe;ne++){const De=j[ne];ge(De[2]+ue,De[1]+ue,De[0]+ue)}Ne=u+w*2,ue=de*Ne;for(let ne=0;ne<fe;ne++){const De=j[ne];ge(De[0]+ue,De[1]+ue,De[2]+ue)}}else{for(let Ne=0;Ne<fe;Ne++){const ue=j[Ne];ge(ue[2],ue[1],ue[0])}for(let Ne=0;Ne<fe;Ne++){const ue=j[Ne];ge(ue[0]+de*u,ue[1]+de*u,ue[2]+de*u)}}r.addGroup(Ee,i.length/3-Ee,0)}function z(){const Ee=i.length/3;let Ne=0;Z($,Ne),Ne+=$.length;for(let ue=0,ne=k.length;ue<ne;ue++){const De=k[ue];Z(De,Ne),Ne+=De.length}r.addGroup(Ee,i.length/3-Ee,1)}function Z(Ee,Ne){let ue=Ee.length;for(;--ue>=0;){const ne=ue;let De=ue-1;De<0&&(De=Ee.length-1);for(let je=0,ze=u+w*2;je<ze;je++){const Qe=de*je,ot=de*(je+1),se=Ne+ne+Qe,G=Ne+De+Qe,Be=Ne+De+ot,Ke=Ne+ne+ot;Me(se,G,Be,Ke)}}}function le(Ee,Ne,ue){c.push(Ee),c.push(Ne),c.push(ue)}function ge(Ee,Ne,ue){Te(Ee),Te(Ne),Te(ue);const ne=i.length/3,De=S.generateTopUV(r,i,ne-3,ne-2,ne-1);We(De[0]),We(De[1]),We(De[2])}function Me(Ee,Ne,ue,ne){Te(Ee),Te(Ne),Te(ne),Te(Ne),Te(ue),Te(ne);const De=i.length/3,je=S.generateSideWallUV(r,i,De-6,De-3,De-2,De-1);We(je[0]),We(je[1]),We(je[3]),We(je[1]),We(je[2]),We(je[3])}function Te(Ee){i.push(c[Ee*3+0]),i.push(c[Ee*3+1]),i.push(c[Ee*3+2])}function We(Ee){a.push(Ee.x),a.push(Ee.y)}}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON(),t=this.parameters.shapes,r=this.parameters.options;return nYe(t,r,e)}static fromJSON(e,t){const r=[];for(let a=0,s=e.shapes.length;a<s;a++){const o=t[e.shapes[a]];r.push(o)}const i=e.options.extrudePath;return i!==void 0&&(e.options.extrudePath=new yw[i.type]().fromJSON(i)),new Ib(r,e.options)}}const tYe={generateTopUV:function(n,e,t,r,i){const a=e[t*3],s=e[t*3+1],o=e[r*3],c=e[r*3+1],l=e[i*3],u=e[i*3+1];return[new vt(a,s),new vt(o,c),new vt(l,u)]},generateSideWallUV:function(n,e,t,r,i,a){const s=e[t*3],o=e[t*3+1],c=e[t*3+2],l=e[r*3],u=e[r*3+1],A=e[r*3+2],f=e[i*3],h=e[i*3+1],g=e[i*3+2],y=e[a*3],w=e[a*3+1],v=e[a*3+2];return Math.abs(o-u)<Math.abs(s-l)?[new vt(s,1-c),new vt(l,1-A),new vt(f,1-g),new vt(y,1-v)]:[new vt(o,1-c),new vt(u,1-A),new vt(h,1-g),new vt(w,1-v)]}};function nYe(n,e,t){if(t.shapes=[],Array.isArray(n))for(let r=0,i=n.length;r<i;r++){const a=n[r];t.shapes.push(a.uuid)}else t.shapes.push(n.uuid);return t.options=Object.assign({},e),e.extrudePath!==void 0&&(t.options.extrudePath=e.extrudePath.toJSON()),t}class Lb extends cd{constructor(e=1,t=0){const r=(1+Math.sqrt(5))/2,i=[-1,r,0,1,r,0,-1,-r,0,1,-r,0,0,-1,r,0,1,r,0,-1,-r,0,1,-r,r,0,-1,r,0,1,-r,0,-1,-r,0,1],a=[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1];super(i,a,e,t),this.type="IcosahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new Lb(e.radius,e.detail)}}class Fg extends cd{constructor(e=1,t=0){const r=[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],i=[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2];super(r,i,e,t),this.type="OctahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new Fg(e.radius,e.detail)}}class Uf extends Hn{constructor(e=1,t=1,r=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:r,heightSegments:i};const a=e/2,s=t/2,o=Math.floor(r),c=Math.floor(i),l=o+1,u=c+1,A=e/o,f=t/c,h=[],g=[],y=[],w=[];for(let v=0;v<u;v++){const S=v*f-s;for(let C=0;C<l;C++){const M=C*A-a;g.push(M,-S,0),y.push(0,0,1),w.push(C/o),w.push(1-v/c)}}for(let v=0;v<c;v++)for(let S=0;S<o;S++){const C=S+l*v,M=S+l*(v+1),F=S+1+l*(v+1),D=S+1+l*v;h.push(C,M,D),h.push(M,F,D)}this.setIndex(h),this.setAttribute("position",new an(g,3)),this.setAttribute("normal",new an(y,3)),this.setAttribute("uv",new an(w,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Uf(e.width,e.height,e.widthSegments,e.heightSegments)}}class Fb extends Hn{constructor(e=.5,t=1,r=32,i=1,a=0,s=Math.PI*2){super(),this.type="RingGeometry",this.parameters={innerRadius:e,outerRadius:t,thetaSegments:r,phiSegments:i,thetaStart:a,thetaLength:s},r=Math.max(3,r),i=Math.max(1,i);const o=[],c=[],l=[],u=[];let A=e;const f=(t-e)/i,h=new ye,g=new vt;for(let y=0;y<=i;y++){for(let w=0;w<=r;w++){const v=a+w/r*s;h.x=A*Math.cos(v),h.y=A*Math.sin(v),c.push(h.x,h.y,h.z),l.push(0,0,1),g.x=(h.x/t+1)/2,g.y=(h.y/t+1)/2,u.push(g.x,g.y)}A+=f}for(let y=0;y<i;y++){const w=y*(r+1);for(let v=0;v<r;v++){const S=v+w,C=S,M=S+r+1,F=S+r+2,D=S+1;o.push(C,M,D),o.push(M,F,D)}}this.setIndex(o),this.setAttribute("position",new an(c,3)),this.setAttribute("normal",new an(l,3)),this.setAttribute("uv",new an(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Fb(e.innerRadius,e.outerRadius,e.thetaSegments,e.phiSegments,e.thetaStart,e.thetaLength)}}class Nb extends Hn{constructor(e=new AA([new vt(0,.5),new vt(-.5,-.5),new vt(.5,-.5)]),t=12){super(),this.type="ShapeGeometry",this.parameters={shapes:e,curveSegments:t};const r=[],i=[],a=[],s=[];let o=0,c=0;if(Array.isArray(e)===!1)l(e);else for(let u=0;u<e.length;u++)l(e[u]),this.addGroup(o,c,u),o+=c,c=0;this.setIndex(r),this.setAttribute("position",new an(i,3)),this.setAttribute("normal",new an(a,3)),this.setAttribute("uv",new an(s,2));function l(u){const A=i.length/3,f=u.extractPoints(t);let h=f.shape;const g=f.holes;el.isClockWise(h)===!1&&(h=h.reverse());for(let w=0,v=g.length;w<v;w++){const S=g[w];el.isClockWise(S)===!0&&(g[w]=S.reverse())}const y=el.triangulateShape(h,g);for(let w=0,v=g.length;w<v;w++){const S=g[w];h=h.concat(S)}for(let w=0,v=h.length;w<v;w++){const S=h[w];i.push(S.x,S.y,0),a.push(0,0,1),s.push(S.x,S.y)}for(let w=0,v=y.length;w<v;w++){const S=y[w],C=S[0]+A,M=S[1]+A,F=S[2]+A;r.push(C,M,F),c+=3}}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON(),t=this.parameters.shapes;return rYe(t,e)}static fromJSON(e,t){const r=[];for(let i=0,a=e.shapes.length;i<a;i++){const s=t[e.shapes[i]];r.push(s)}return new Nb(r,e.curveSegments)}}function rYe(n,e){if(e.shapes=[],Array.isArray(n))for(let t=0,r=n.length;t<r;t++){const i=n[t];e.shapes.push(i.uuid)}else e.shapes.push(n.uuid);return e}class Ng extends Hn{constructor(e=1,t=32,r=16,i=0,a=Math.PI*2,s=0,o=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:t,heightSegments:r,phiStart:i,phiLength:a,thetaStart:s,thetaLength:o},t=Math.max(3,Math.floor(t)),r=Math.max(2,Math.floor(r));const c=Math.min(s+o,Math.PI);let l=0;const u=[],A=new ye,f=new ye,h=[],g=[],y=[],w=[];for(let v=0;v<=r;v++){const S=[],C=v/r;let M=0;v===0&&s===0?M=.5/t:v===r&&c===Math.PI&&(M=-.5/t);for(let F=0;F<=t;F++){const D=F/t;A.x=-e*Math.cos(i+D*a)*Math.sin(s+C*o),A.y=e*Math.cos(s+C*o),A.z=e*Math.sin(i+D*a)*Math.sin(s+C*o),g.push(A.x,A.y,A.z),f.copy(A).normalize(),y.push(f.x,f.y,f.z),w.push(D+M,1-C),S.push(l++)}u.push(S)}for(let v=0;v<r;v++)for(let S=0;S<t;S++){const C=u[v][S+1],M=u[v][S],F=u[v+1][S],D=u[v+1][S+1];(v!==0||s>0)&&h.push(C,M,D),(v!==r-1||c<Math.PI)&&h.push(M,F,D)}this.setIndex(h),this.setAttribute("position",new an(g,3)),this.setAttribute("normal",new an(y,3)),this.setAttribute("uv",new an(w,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Ng(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}class Db extends cd{constructor(e=1,t=0){const r=[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],i=[2,1,0,0,3,2,1,3,0,2,3,1];super(r,i,e,t),this.type="TetrahedronGeometry",this.parameters={radius:e,detail:t}}static fromJSON(e){return new Db(e.radius,e.detail)}}class Rb extends Hn{constructor(e=1,t=.4,r=12,i=48,a=Math.PI*2){super(),this.type="TorusGeometry",this.parameters={radius:e,tube:t,radialSegments:r,tubularSegments:i,arc:a},r=Math.floor(r),i=Math.floor(i);const s=[],o=[],c=[],l=[],u=new ye,A=new ye,f=new ye;for(let h=0;h<=r;h++)for(let g=0;g<=i;g++){const y=g/i*a,w=h/r*Math.PI*2;A.x=(e+t*Math.cos(w))*Math.cos(y),A.y=(e+t*Math.cos(w))*Math.sin(y),A.z=t*Math.sin(w),o.push(A.x,A.y,A.z),u.x=e*Math.cos(y),u.y=e*Math.sin(y),f.subVectors(A,u).normalize(),c.push(f.x,f.y,f.z),l.push(g/i),l.push(h/r)}for(let h=1;h<=r;h++)for(let g=1;g<=i;g++){const y=(i+1)*h+g-1,w=(i+1)*(h-1)+g-1,v=(i+1)*(h-1)+g,S=(i+1)*h+g;s.push(y,w,S),s.push(w,v,S)}this.setIndex(s),this.setAttribute("position",new an(o,3)),this.setAttribute("normal",new an(c,3)),this.setAttribute("uv",new an(l,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Rb(e.radius,e.tube,e.radialSegments,e.tubularSegments,e.arc)}}class Ub extends Hn{constructor(e=1,t=.4,r=64,i=8,a=2,s=3){super(),this.type="TorusKnotGeometry",this.parameters={radius:e,tube:t,tubularSegments:r,radialSegments:i,p:a,q:s},r=Math.floor(r),i=Math.floor(i);const o=[],c=[],l=[],u=[],A=new ye,f=new ye,h=new ye,g=new ye,y=new ye,w=new ye,v=new ye;for(let C=0;C<=r;++C){const M=C/r*a*Math.PI*2;S(M,a,s,e,h),S(M+.01,a,s,e,g),w.subVectors(g,h),v.addVectors(g,h),y.crossVectors(w,v),v.crossVectors(y,w),y.normalize(),v.normalize();for(let F=0;F<=i;++F){const D=F/i*Math.PI*2,U=-t*Math.cos(D),O=t*Math.sin(D);A.x=h.x+(U*v.x+O*y.x),A.y=h.y+(U*v.y+O*y.y),A.z=h.z+(U*v.z+O*y.z),c.push(A.x,A.y,A.z),f.subVectors(A,h).normalize(),l.push(f.x,f.y,f.z),u.push(C/r),u.push(F/i)}}for(let C=1;C<=r;C++)for(let M=1;M<=i;M++){const F=(i+1)*(C-1)+(M-1),D=(i+1)*C+(M-1),U=(i+1)*C+M,O=(i+1)*(C-1)+M;o.push(F,D,O),o.push(D,U,O)}this.setIndex(o),this.setAttribute("position",new an(c,3)),this.setAttribute("normal",new an(l,3)),this.setAttribute("uv",new an(u,2));function S(C,M,F,D,U){const O=Math.cos(C),T=Math.sin(C),P=F/M*C,k=Math.cos(P);U.x=D*(2+k)*.5*O,U.y=D*(2+k)*T*.5,U.z=D*Math.sin(P)*.5}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Ub(e.radius,e.tube,e.tubularSegments,e.radialSegments,e.p,e.q)}}class Ob extends Hn{constructor(e=new NP(new ye(-1,-1,0),new ye(-1,1,0),new ye(1,1,0)),t=64,r=1,i=8,a=!1){super(),this.type="TubeGeometry",this.parameters={path:e,tubularSegments:t,radius:r,radialSegments:i,closed:a};const s=e.computeFrenetFrames(t,a);this.tangents=s.tangents,this.normals=s.normals,this.binormals=s.binormals;const o=new ye,c=new ye,l=new vt;let u=new ye;const A=[],f=[],h=[],g=[];y(),this.setIndex(g),this.setAttribute("position",new an(A,3)),this.setAttribute("normal",new an(f,3)),this.setAttribute("uv",new an(h,2));function y(){for(let C=0;C<t;C++)w(C);w(a===!1?t:0),S(),v()}function w(C){u=e.getPointAt(C/t,u);const M=s.normals[C],F=s.binormals[C];for(let D=0;D<=i;D++){const U=D/i*Math.PI*2,O=Math.sin(U),T=-Math.cos(U);c.x=T*M.x+O*F.x,c.y=T*M.y+O*F.y,c.z=T*M.z+O*F.z,c.normalize(),f.push(c.x,c.y,c.z),o.x=u.x+r*c.x,o.y=u.y+r*c.y,o.z=u.z+r*c.z,A.push(o.x,o.y,o.z)}}function v(){for(let C=1;C<=t;C++)for(let M=1;M<=i;M++){const F=(i+1)*(C-1)+(M-1),D=(i+1)*C+(M-1),U=(i+1)*C+M,O=(i+1)*(C-1)+M;g.push(F,D,O),g.push(D,U,O)}}function S(){for(let C=0;C<=t;C++)for(let M=0;M<=i;M++)l.x=C/t,l.y=M/i,h.push(l.x,l.y)}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return e.path=this.parameters.path.toJSON(),e}static fromJSON(e){return new Ob(new yw[e.path.type]().fromJSON(e.path),e.tubularSegments,e.radius,e.radialSegments,e.closed)}}class SQ extends Hn{constructor(e=null){if(super(),this.type="WireframeGeometry",this.parameters={geometry:e},e!==null){const t=[],r=new Set,i=new ye,a=new ye;if(e.index!==null){const s=e.attributes.position,o=e.index;let c=e.groups;c.length===0&&(c=[{start:0,count:o.count,materialIndex:0}]);for(let l=0,u=c.length;l<u;++l){const A=c[l],f=A.start,h=A.count;for(let g=f,y=f+h;g<y;g+=3)for(let w=0;w<3;w++){const v=o.getX(g+w),S=o.getX(g+(w+1)%3);i.fromBufferAttribute(s,v),a.fromBufferAttribute(s,S),B5(i,a,r)===!0&&(t.push(i.x,i.y,i.z),t.push(a.x,a.y,a.z))}}}else{const s=e.attributes.position;for(let o=0,c=s.count/3;o<c;o++)for(let l=0;l<3;l++){const u=3*o+l,A=3*o+(l+1)%3;i.fromBufferAttribute(s,u),a.fromBufferAttribute(s,A),B5(i,a,r)===!0&&(t.push(i.x,i.y,i.z),t.push(a.x,a.y,a.z))}}this.setAttribute("position",new an(t,3))}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}}function B5(n,e,t){const r=`${n.x},${n.y},${n.z}-${e.x},${e.y},${e.z}`,i=`${e.x},${e.y},${e.z}-${n.x},${n.y},${n.z}`;return t.has(r)===!0||t.has(i)===!0?!1:(t.add(r),t.add(i),!0)}var T5=Object.freeze({__proto__:null,BoxGeometry:zA,CapsuleGeometry:Pb,CircleGeometry:Eb,ConeGeometry:Bb,CylinderGeometry:Rf,DodecahedronGeometry:Tb,EdgesGeometry:bQ,ExtrudeGeometry:Ib,IcosahedronGeometry:Lb,LatheGeometry:Lg,OctahedronGeometry:Fg,PlaneGeometry:Uf,PolyhedronGeometry:cd,RingGeometry:Fb,ShapeGeometry:Nb,SphereGeometry:Ng,TetrahedronGeometry:Db,TorusGeometry:Rb,TorusKnotGeometry:Ub,TubeGeometry:Ob,WireframeGeometry:SQ});class CQ extends Yi{constructor(e){super(),this.isShadowMaterial=!0,this.type="ShadowMaterial",this.color=new Qt(0),this.transparent=!0,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.fog=e.fog,this}}class PQ extends bc{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type="RawShaderMaterial"}}class Dg extends Yi{constructor(e){super(),this.isMeshStandardMaterial=!0,this.type="MeshStandardMaterial",this.defines={STANDARD:""},this.color=new Qt(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Qt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=od,this.normalScale=new vt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Mo,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:""},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class Ko extends Dg{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:"",PHYSICAL:""},this.type="MeshPhysicalMaterial",this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new vt(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Tn(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(t){this.ior=(1+.4*t)/(1-.4*t)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new Qt(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new Qt(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new Qt(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._dispersion=0,this._iridescence=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:"",PHYSICAL:""},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}}class EQ extends Yi{constructor(e){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Qt(16777215),this.specular=new Qt(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Qt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=od,this.normalScale=new vt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Mo,this.combine=Pg,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.specular.copy(e.specular),this.shininess=e.shininess,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class BQ extends Yi{constructor(e){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Qt(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Qt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=od,this.normalScale=new vt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.gradientMap=e.gradientMap,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}class TQ extends Yi{constructor(e){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=od,this.normalScale=new vt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(e)}copy(e){return super.copy(e),this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.flatShading=e.flatShading,this}}class kQ extends Yi{constructor(e){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Qt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Qt(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=od,this.normalScale=new vt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Mo,this.combine=Pg,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}}class RP extends Yi{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=VW,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class UP extends Yi{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}class IQ extends Yi{constructor(e){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Qt(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=od,this.normalScale=new vt(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={MATCAP:""},this.color.copy(e.color),this.matcap=e.matcap,this.map=e.map,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.alphaMap=e.alphaMap,this.flatShading=e.flatShading,this.fog=e.fog,this}}class LQ extends Za{constructor(e){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(e)}copy(e){return super.copy(e),this.scale=e.scale,this.dashSize=e.dashSize,this.gapSize=e.gapSize,this}}function tA(n,e,t){return!n||!t&&n.constructor===e?n:typeof e.BYTES_PER_ELEMENT=="number"?new e(n):Array.prototype.slice.call(n)}function FQ(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function NQ(n){function e(i,a){return n[i]-n[a]}const t=n.length,r=new Array(t);for(let i=0;i!==t;++i)r[i]=i;return r.sort(e),r}function TM(n,e,t){const r=n.length,i=new n.constructor(r);for(let a=0,s=0;s!==r;++a){const o=t[a]*e;for(let c=0;c!==e;++c)i[s++]=n[o+c]}return i}function OP(n,e,t,r){let i=1,a=n[0];for(;a!==void 0&&a[r]===void 0;)a=n[i++];if(a===void 0)return;let s=a[r];if(s!==void 0)if(Array.isArray(s))do s=a[r],s!==void 0&&(e.push(a.time),t.push.apply(t,s)),a=n[i++];while(a!==void 0);else if(s.toArray!==void 0)do s=a[r],s!==void 0&&(e.push(a.time),s.toArray(t,t.length)),a=n[i++];while(a!==void 0);else do s=a[r],s!==void 0&&(e.push(a.time),t.push(s)),a=n[i++];while(a!==void 0)}function iYe(n,e,t,r,i=30){const a=n.clone();a.name=e;const s=[];for(let c=0;c<a.tracks.length;++c){const l=a.tracks[c],u=l.getValueSize(),A=[],f=[];for(let h=0;h<l.times.length;++h){const g=l.times[h]*i;if(!(g<t||g>=r)){A.push(l.times[h]);for(let y=0;y<u;++y)f.push(l.values[h*u+y])}}A.length!==0&&(l.times=tA(A,l.times.constructor),l.values=tA(f,l.values.constructor),s.push(l))}a.tracks=s;let o=1/0;for(let c=0;c<a.tracks.length;++c)o>a.tracks[c].times[0]&&(o=a.tracks[c].times[0]);for(let c=0;c<a.tracks.length;++c)a.tracks[c].shift(-1*o);return a.resetDuration(),a}function aYe(n,e=0,t=n,r=30){r<=0&&(r=30);const i=t.tracks.length,a=e/r;for(let s=0;s<i;++s){const o=t.tracks[s],c=o.ValueTypeName;if(c==="bool"||c==="string")continue;const l=n.tracks.find(function(v){return v.name===o.name&&v.ValueTypeName===c});if(l===void 0)continue;let u=0;const A=o.getValueSize();o.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(u=A/3);let f=0;const h=l.getValueSize();l.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline&&(f=h/3);const g=o.times.length-1;let y;if(a<=o.times[0]){const v=u,S=A-u;y=o.values.slice(v,S)}else if(a>=o.times[g]){const v=g*A+u,S=v+A-u;y=o.values.slice(v,S)}else{const v=o.createInterpolant(),S=u,C=A-u;v.evaluate(a),y=v.resultBuffer.slice(S,C)}c==="quaternion"&&new ma().fromArray(y).normalize().conjugate().toArray(y);const w=l.times.length;for(let v=0;v<w;++v){const S=v*h+f;if(c==="quaternion")ma.multiplyQuaternionsFlat(l.values,S,y,0,l.values,S);else{const C=h-f*2;for(let M=0;M<C;++M)l.values[S+M]-=y[M]}}}return n.blendMode=gP,n}const sYe={convertArray:tA,isTypedArray:FQ,getKeyframeOrder:NQ,sortedArray:TM,flattenJSON:OP,subclip:iYe,makeClipAdditive:aYe};class Of{constructor(e,t,r,i){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=i!==void 0?i:new t.constructor(r),this.sampleValues=t,this.valueSize=r,this.settings=null,this.DefaultSettings_={}}evaluate(e){const t=this.parameterPositions;let r=this._cachedIndex,i=t[r],a=t[r-1];e:{t:{let s;n:{i:if(!(e<i)){for(let o=r+2;;){if(i===void 0){if(e<a)break i;return r=t.length,this._cachedIndex=r,this.copySampleValue_(r-1)}if(r===o)break;if(a=i,i=t[++r],e<i)break t}s=t.length;break n}if(!(e>=a)){const o=t[1];e<o&&(r=2,a=o);for(let c=r-2;;){if(a===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(r===c)break;if(i=a,a=t[--r-1],e>=a)break t}s=r,r=0;break n}break e}for(;r<s;){const o=r+s>>>1;e<t[o]?s=o:r=o+1}if(i=t[r],a=t[r-1],a===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(i===void 0)return r=t.length,this._cachedIndex=r,this.copySampleValue_(r-1)}this._cachedIndex=r,this.intervalChanged_(r,a,i)}return this.interpolate_(r,a,e,i)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(e){const t=this.resultBuffer,r=this.sampleValues,i=this.valueSize,a=e*i;for(let s=0;s!==i;++s)t[s]=r[a+s];return t}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}}class DQ extends Of{constructor(e,t,r,i){super(e,t,r,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:Jd,endingEnd:Jd}}intervalChanged_(e,t,r){const i=this.parameterPositions;let a=e-2,s=e+1,o=i[a],c=i[s];if(o===void 0)switch(this.getSettings_().endingStart){case Zd:a=e,o=2*t-r;break;case Gp:a=i.length-2,o=t+i[a]-i[a+1];break;default:a=e,o=r}if(c===void 0)switch(this.getSettings_().endingEnd){case Zd:s=e,c=2*r-t;break;case Gp:s=1,c=r+i[1]-i[0];break;default:s=e-1,c=t}const l=(r-t)*.5,u=this.valueSize;this._weightPrev=l/(t-o),this._weightNext=l/(c-r),this._offsetPrev=a*u,this._offsetNext=s*u}interpolate_(e,t,r,i){const a=this.resultBuffer,s=this.sampleValues,o=this.valueSize,c=e*o,l=c-o,u=this._offsetPrev,A=this._offsetNext,f=this._weightPrev,h=this._weightNext,g=(r-t)/(i-t),y=g*g,w=y*g,v=-f*w+2*f*y-f*g,S=(1+f)*w+(-1.5-2*f)*y+(-.5+f)*g+1,C=(-1-h)*w+(1.5+h)*y+.5*g,M=h*w-h*y;for(let F=0;F!==o;++F)a[F]=v*s[u+F]+S*s[l+F]+C*s[c+F]+M*s[A+F];return a}}class HP extends Of{constructor(e,t,r,i){super(e,t,r,i)}interpolate_(e,t,r,i){const a=this.resultBuffer,s=this.sampleValues,o=this.valueSize,c=e*o,l=c-o,u=(r-t)/(i-t),A=1-u;for(let f=0;f!==o;++f)a[f]=s[l+f]*A+s[c+f]*u;return a}}class RQ extends Of{constructor(e,t,r,i){super(e,t,r,i)}interpolate_(e){return this.copySampleValue_(e-1)}}class Bc{constructor(e,t,r,i){if(e===void 0)throw new Error("THREE.KeyframeTrack: track name is undefined");if(t===void 0||t.length===0)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+e);this.name=e,this.times=tA(t,this.TimeBufferType),this.values=tA(r,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}static toJSON(e){const t=e.constructor;let r;if(t.toJSON!==this.toJSON)r=t.toJSON(e);else{r={name:e.name,times:tA(e.times,Array),values:tA(e.values,Array)};const i=e.getInterpolation();i!==e.DefaultInterpolation&&(r.interpolation=i)}return r.type=e.ValueTypeName,r}InterpolantFactoryMethodDiscrete(e){return new RQ(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodLinear(e){return new HP(this.times,this.values,this.getValueSize(),e)}InterpolantFactoryMethodSmooth(e){return new DQ(this.times,this.values,this.getValueSize(),e)}setInterpolation(e){let t;switch(e){case pf:t=this.InterpolantFactoryMethodDiscrete;break;case gf:t=this.InterpolantFactoryMethodLinear;break;case Vv:t=this.InterpolantFactoryMethodSmooth;break}if(t===void 0){const r="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(this.createInterpolant===void 0)if(e!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw new Error(r);return this}return this.createInterpolant=t,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return pf;case this.InterpolantFactoryMethodLinear:return gf;case this.InterpolantFactoryMethodSmooth:return Vv}}getValueSize(){return this.values.length/this.times.length}shift(e){if(e!==0){const t=this.times;for(let r=0,i=t.length;r!==i;++r)t[r]+=e}return this}scale(e){if(e!==1){const t=this.times;for(let r=0,i=t.length;r!==i;++r)t[r]*=e}return this}trim(e,t){const r=this.times,i=r.length;let a=0,s=i-1;for(;a!==i&&r[a]<e;)++a;for(;s!==-1&&r[s]>t;)--s;if(++s,a!==0||s!==i){a>=s&&(s=Math.max(s,1),a=s-1);const o=this.getValueSize();this.times=r.slice(a,s),this.values=this.values.slice(a*o,s*o)}return this}validate(){let e=!0;const t=this.getValueSize();t-Math.floor(t)!==0&&(e=!1);const r=this.times,i=this.values,a=r.length;a===0&&(e=!1);let s=null;for(let o=0;o!==a;o++){const c=r[o];if(typeof c=="number"&&isNaN(c)){e=!1;break}if(s!==null&&s>c){e=!1;break}s=c}if(i!==void 0&&FQ(i))for(let o=0,c=i.length;o!==c;++o){const l=i[o];if(isNaN(l)){e=!1;break}}return e}optimize(){const e=this.times.slice(),t=this.values.slice(),r=this.getValueSize(),i=this.getInterpolation()===Vv,a=e.length-1;let s=1;for(let o=1;o<a;++o){let c=!1;const l=e[o],u=e[o+1];if(l!==u&&(o!==1||l!==e[0]))if(i)c=!0;else{const A=o*r,f=A-r,h=A+r;for(let g=0;g!==r;++g){const y=t[A+g];if(y!==t[f+g]||y!==t[h+g]){c=!0;break}}}if(c){if(o!==s){e[s]=e[o];const A=o*r,f=s*r;for(let h=0;h!==r;++h)t[f+h]=t[A+h]}++s}}if(a>0){e[s]=e[a];for(let o=a*r,c=s*r,l=0;l!==r;++l)t[c+l]=t[o+l];++s}return s!==e.length?(this.times=e.slice(0,s),this.values=t.slice(0,s*r)):(this.times=e,this.values=t),this}clone(){const e=this.times.slice(),t=this.values.slice(),r=this.constructor,i=new r(this.name,e,t);return i.createInterpolant=this.createInterpolant,i}}Bc.prototype.TimeBufferType=Float32Array;Bc.prototype.ValueBufferType=Float32Array;Bc.prototype.DefaultInterpolation=gf;class VA extends Bc{constructor(e,t,r){super(e,t,r)}}VA.prototype.ValueTypeName="bool";VA.prototype.ValueBufferType=Array;VA.prototype.DefaultInterpolation=pf;VA.prototype.InterpolantFactoryMethodLinear=void 0;VA.prototype.InterpolantFactoryMethodSmooth=void 0;class WP extends Bc{}WP.prototype.ValueTypeName="color";class TA extends Bc{}TA.prototype.ValueTypeName="number";class UQ extends Of{constructor(e,t,r,i){super(e,t,r,i)}interpolate_(e,t,r,i){const a=this.resultBuffer,s=this.sampleValues,o=this.valueSize,c=(r-t)/(i-t);let l=e*o;for(let u=l+o;l!==u;l+=4)ma.slerpFlat(a,0,s,l-o,s,l,c);return a}}class kA extends Bc{InterpolantFactoryMethodLinear(e){return new UQ(this.times,this.values,this.getValueSize(),e)}}kA.prototype.ValueTypeName="quaternion";kA.prototype.InterpolantFactoryMethodSmooth=void 0;class GA extends Bc{constructor(e,t,r){super(e,t,r)}}GA.prototype.ValueTypeName="string";GA.prototype.ValueBufferType=Array;GA.prototype.DefaultInterpolation=pf;GA.prototype.InterpolantFactoryMethodLinear=void 0;GA.prototype.InterpolantFactoryMethodSmooth=void 0;class IA extends Bc{}IA.prototype.ValueTypeName="vector";class wf{constructor(e="",t=-1,r=[],i=gb){this.name=e,this.tracks=r,this.duration=t,this.blendMode=i,this.uuid=bo(),this.duration<0&&this.resetDuration()}static parse(e){const t=[],r=e.tracks,i=1/(e.fps||1);for(let s=0,o=r.length;s!==o;++s)t.push(cYe(r[s]).scale(i));const a=new this(e.name,e.duration,t,e.blendMode);return a.uuid=e.uuid,a}static toJSON(e){const t=[],r=e.tracks,i={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode};for(let a=0,s=r.length;a!==s;++a)t.push(Bc.toJSON(r[a]));return i}static CreateFromMorphTargetSequence(e,t,r,i){const a=t.length,s=[];for(let o=0;o<a;o++){let c=[],l=[];c.push((o+a-1)%a,o,(o+1)%a),l.push(0,1,0);const u=NQ(c);c=TM(c,1,u),l=TM(l,1,u),!i&&c[0]===0&&(c.push(a),l.push(l[0])),s.push(new TA(".morphTargetInfluences["+t[o].name+"]",c,l).scale(1/r))}return new this(e,-1,s)}static findByName(e,t){let r=e;if(!Array.isArray(e)){const i=e;r=i.geometry&&i.geometry.animations||i.animations}for(let i=0;i<r.length;i++)if(r[i].name===t)return r[i];return null}static CreateClipsFromMorphTargetSequences(e,t,r){const i={},a=/^([\w-]*?)([\d]+)$/;for(let o=0,c=e.length;o<c;o++){const l=e[o],u=l.name.match(a);if(u&&u.length>1){const A=u[1];let f=i[A];f||(i[A]=f=[]),f.push(l)}}const s=[];for(const o in i)s.push(this.CreateFromMorphTargetSequence(o,i[o],t,r));return s}static parseAnimation(e,t){if(!e)return null;const r=function(A,f,h,g,y){if(h.length!==0){const w=[],v=[];OP(h,w,v,g),w.length!==0&&y.push(new A(f,w,v))}},i=[],a=e.name||"default",s=e.fps||30,o=e.blendMode;let c=e.length||-1;const l=e.hierarchy||[];for(let A=0;A<l.length;A++){const f=l[A].keys;if(!(!f||f.length===0))if(f[0].morphTargets){const h={};let g;for(g=0;g<f.length;g++)if(f[g].morphTargets)for(let y=0;y<f[g].morphTargets.length;y++)h[f[g].morphTargets[y]]=-1;for(const y in h){const w=[],v=[];for(let S=0;S!==f[g].morphTargets.length;++S){const C=f[g];w.push(C.time),v.push(C.morphTarget===y?1:0)}i.push(new TA(".morphTargetInfluence["+y+"]",w,v))}c=h.length*s}else{const h=".bones["+t[A].name+"]";r(IA,h+".position",f,"pos",i),r(kA,h+".quaternion",f,"rot",i),r(IA,h+".scale",f,"scl",i)}}return i.length===0?null:new this(a,c,i,o)}resetDuration(){const e=this.tracks;let t=0;for(let r=0,i=e.length;r!==i;++r){const a=this.tracks[r];t=Math.max(t,a.times[a.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].trim(0,this.duration);return this}validate(){let e=!0;for(let t=0;t<this.tracks.length;t++)e=e&&this.tracks[t].validate();return e}optimize(){for(let e=0;e<this.tracks.length;e++)this.tracks[e].optimize();return this}clone(){const e=[];for(let t=0;t<this.tracks.length;t++)e.push(this.tracks[t].clone());return new this.constructor(this.name,this.duration,e,this.blendMode)}toJSON(){return this.constructor.toJSON(this)}}function oYe(n){switch(n.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return TA;case"vector":case"vector2":case"vector3":case"vector4":return IA;case"color":return WP;case"quaternion":return kA;case"bool":case"boolean":return VA;case"string":return GA}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+n)}function cYe(n){if(n.type===void 0)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");const e=oYe(n.type);if(n.times===void 0){const t=[],r=[];OP(n.keys,t,r,"value"),n.times=t,n.values=r}return e.parse!==void 0?e.parse(n):new e(n.name,n.times,n.values,n.interpolation)}const Ul={enabled:!1,files:{},add:function(n,e){this.enabled!==!1&&(this.files[n]=e)},get:function(n){if(this.enabled!==!1)return this.files[n]},remove:function(n){delete this.files[n]},clear:function(){this.files={}}};class QP{constructor(e,t,r){const i=this;let a=!1,s=0,o=0,c;const l=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=r,this.itemStart=function(u){o++,a===!1&&i.onStart!==void 0&&i.onStart(u,s,o),a=!0},this.itemEnd=function(u){s++,i.onProgress!==void 0&&i.onProgress(u,s,o),s===o&&(a=!1,i.onLoad!==void 0&&i.onLoad())},this.itemError=function(u){i.onError!==void 0&&i.onError(u)},this.resolveURL=function(u){return c?c(u):u},this.setURLModifier=function(u){return c=u,this},this.addHandler=function(u,A){return l.push(u,A),this},this.removeHandler=function(u){const A=l.indexOf(u);return A!==-1&&l.splice(A,2),this},this.getHandler=function(u){for(let A=0,f=l.length;A<f;A+=2){const h=l[A],g=l[A+1];if(h.global&&(h.lastIndex=0),h.test(u))return g}return null}}}const OQ=new QP;class Ps{constructor(e){this.manager=e!==void 0?e:OQ,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const r=this;return new Promise(function(i,a){r.load(e,i,t,a)})}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}Ps.DEFAULT_MATERIAL_NAME="__DEFAULT";const Pl={};class lYe extends Error{constructor(e,t){super(e),this.response=t}}class _c extends Ps{constructor(e){super(e)}load(e,t,r,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const a=Ul.get(e);if(a!==void 0)return this.manager.itemStart(e),setTimeout(()=>{t&&t(a),this.manager.itemEnd(e)},0),a;if(Pl[e]!==void 0){Pl[e].push({onLoad:t,onProgress:r,onError:i});return}Pl[e]=[],Pl[e].push({onLoad:t,onProgress:r,onError:i});const s=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),o=this.mimeType,c=this.responseType;fetch(s).then(l=>{if(l.status===200||l.status===0){if(l.status,typeof ReadableStream>"u"||l.body===void 0||l.body.getReader===void 0)return l;const u=Pl[e],A=l.body.getReader(),f=l.headers.get("X-File-Size")||l.headers.get("Content-Length"),h=f?parseInt(f):0,g=h!==0;let y=0;const w=new ReadableStream({start(v){S();function S(){A.read().then(({done:C,value:M})=>{if(C)v.close();else{y+=M.byteLength;const F=new ProgressEvent("progress",{lengthComputable:g,loaded:y,total:h});for(let D=0,U=u.length;D<U;D++){const O=u[D];O.onProgress&&O.onProgress(F)}v.enqueue(M),S()}},C=>{v.error(C)})}}});return new Response(w)}else throw new lYe(`fetch for "${l.url}" responded with ${l.status}: ${l.statusText}`,l)}).then(l=>{switch(c){case"arraybuffer":return l.arrayBuffer();case"blob":return l.blob();case"document":return l.text().then(u=>new DOMParser().parseFromString(u,o));case"json":return l.json();default:if(o===void 0)return l.text();{const A=/charset="?([^;"\s]*)"?/i.exec(o),f=A&&A[1]?A[1].toLowerCase():void 0,h=new TextDecoder(f);return l.arrayBuffer().then(g=>h.decode(g))}}}).then(l=>{Ul.add(e,l);const u=Pl[e];delete Pl[e];for(let A=0,f=u.length;A<f;A++){const h=u[A];h.onLoad&&h.onLoad(l)}}).catch(l=>{const u=Pl[e];if(u===void 0)throw this.manager.itemError(e),l;delete Pl[e];for(let A=0,f=u.length;A<f;A++){const h=u[A];h.onError&&h.onError(l)}this.manager.itemError(e)}).finally(()=>{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class uYe extends Ps{constructor(e){super(e)}load(e,t,r,i){const a=this,s=new _c(this.manager);s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,function(o){try{t(a.parse(JSON.parse(o)))}catch(c){i&&i(c),a.manager.itemError(e)}},r,i)}parse(e){const t=[];for(let r=0;r<e.length;r++){const i=wf.parse(e[r]);t.push(i)}return t}}class dYe extends Ps{constructor(e){super(e)}load(e,t,r,i){const a=this,s=[],o=new Sb,c=new _c(this.manager);c.setPath(this.path),c.setResponseType("arraybuffer"),c.setRequestHeader(this.requestHeader),c.setWithCredentials(a.withCredentials);let l=0;function u(A){c.load(e[A],function(f){const h=a.parse(f,!0);s[A]={width:h.width,height:h.height,format:h.format,mipmaps:h.mipmaps},l+=1,l===6&&(h.mipmapCount===1&&(o.minFilter=pi),o.image=s,o.format=h.format,o.needsUpdate=!0,t&&t(o))},r,i)}if(Array.isArray(e))for(let A=0,f=e.length;A<f;++A)u(A);else c.load(e,function(A){const f=a.parse(A,!0);if(f.isCubemap){const h=f.mipmaps.length/f.mipmapCount;for(let g=0;g<h;g++){s[g]={mipmaps:[]};for(let y=0;y<f.mipmapCount;y++)s[g].mipmaps.push(f.mipmaps[g*f.mipmapCount+y]),s[g].format=f.format,s[g].width=f.width,s[g].height=f.height}o.image=s}else o.image.width=f.width,o.image.height=f.height,o.mipmaps=f.mipmaps;f.mipmapCount===1&&(o.minFilter=pi),o.format=f.format,o.needsUpdate=!0,t&&t(o)},r,i);return o}}class ng extends Ps{constructor(e){super(e)}load(e,t,r,i){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const a=this,s=Ul.get(e);if(s!==void 0)return a.manager.itemStart(e),setTimeout(function(){t&&t(s),a.manager.itemEnd(e)},0),s;const o=Yp("img");function c(){u(),Ul.add(e,this),t&&t(this),a.manager.itemEnd(e)}function l(A){u(),i&&i(A),a.manager.itemError(e),a.manager.itemEnd(e)}function u(){o.removeEventListener("load",c,!1),o.removeEventListener("error",l,!1)}return o.addEventListener("load",c,!1),o.addEventListener("error",l,!1),e.slice(0,5)!=="data:"&&this.crossOrigin!==void 0&&(o.crossOrigin=this.crossOrigin),a.manager.itemStart(e),o.src=e,o}}class AYe extends Ps{constructor(e){super(e)}load(e,t,r,i){const a=new Bg;a.colorSpace=Gi;const s=new ng(this.manager);s.setCrossOrigin(this.crossOrigin),s.setPath(this.path);let o=0;function c(l){s.load(e[l],function(u){a.images[l]=u,o++,o===6&&(a.needsUpdate=!0,t&&t(a))},void 0,i)}for(let l=0;l<e.length;++l)c(l);return a}}class hYe extends Ps{constructor(e){super(e)}load(e,t,r,i){const a=this,s=new Zc,o=new _c(this.manager);return o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setPath(this.path),o.setWithCredentials(a.withCredentials),o.load(e,function(c){let l;try{l=a.parse(c)}catch(u){if(i!==void 0)i(u);else return}l.image!==void 0?s.image=l.image:l.data!==void 0&&(s.image.width=l.width,s.image.height=l.height,s.image.data=l.data),s.wrapS=l.wrapS!==void 0?l.wrapS:go,s.wrapT=l.wrapT!==void 0?l.wrapT:go,s.magFilter=l.magFilter!==void 0?l.magFilter:pi,s.minFilter=l.minFilter!==void 0?l.minFilter:pi,s.anisotropy=l.anisotropy!==void 0?l.anisotropy:1,l.colorSpace!==void 0&&(s.colorSpace=l.colorSpace),l.flipY!==void 0&&(s.flipY=l.flipY),l.format!==void 0&&(s.format=l.format),l.type!==void 0&&(s.type=l.type),l.mipmaps!==void 0&&(s.mipmaps=l.mipmaps,s.minFilter=Wo),l.mipmapCount===1&&(s.minFilter=pi),l.generateMipmaps!==void 0&&(s.generateMipmaps=l.generateMipmaps),s.needsUpdate=!0,t&&t(s,l)},r,i),s}}class HQ extends Ps{constructor(e){super(e)}load(e,t,r,i){const a=new ai,s=new ng(this.manager);return s.setCrossOrigin(this.crossOrigin),s.setPath(this.path),s.load(e,function(o){a.image=o,a.needsUpdate=!0,t!==void 0&&t(a)},r,i),a}}class ld extends Zn{constructor(e,t=1){super(),this.isLight=!0,this.type="Light",this.color=new Qt(e),this.intensity=t}dispose(){}copy(e,t){return super.copy(e,t),this.color.copy(e.color),this.intensity=e.intensity,this}toJSON(e){const t=super.toJSON(e);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,this.groundColor!==void 0&&(t.object.groundColor=this.groundColor.getHex()),this.distance!==void 0&&(t.object.distance=this.distance),this.angle!==void 0&&(t.object.angle=this.angle),this.decay!==void 0&&(t.object.decay=this.decay),this.penumbra!==void 0&&(t.object.penumbra=this.penumbra),this.shadow!==void 0&&(t.object.shadow=this.shadow.toJSON()),this.target!==void 0&&(t.object.target=this.target.uuid),t}}class WQ extends ld{constructor(e,t,r){super(e,r),this.isHemisphereLight=!0,this.type="HemisphereLight",this.position.copy(Zn.DEFAULT_UP),this.updateMatrix(),this.groundColor=new Qt(t)}copy(e,t){return super.copy(e,t),this.groundColor.copy(e.groundColor),this}}const Px=new vn,k5=new ye,I5=new ye;class $P{constructor(e){this.camera=e,this.intensity=1,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new vt(512,512),this.map=null,this.mapPass=null,this.matrix=new vn,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Ig,this._frameExtents=new vt(1,1),this._viewportCount=1,this._viewports=[new ar(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(e){const t=this.camera,r=this.matrix;k5.setFromMatrixPosition(e.matrixWorld),t.position.copy(k5),I5.setFromMatrixPosition(e.target.matrixWorld),t.lookAt(I5),t.updateMatrixWorld(),Px.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Px),r.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),r.multiply(Px)}getViewport(e){return this._viewports[e]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(e){return this.camera=e.camera.clone(),this.intensity=e.intensity,this.bias=e.bias,this.radius=e.radius,this.mapSize.copy(e.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const e={};return this.intensity!==1&&(e.intensity=this.intensity),this.bias!==0&&(e.bias=this.bias),this.normalBias!==0&&(e.normalBias=this.normalBias),this.radius!==1&&(e.radius=this.radius),(this.mapSize.x!==512||this.mapSize.y!==512)&&(e.mapSize=this.mapSize.toArray()),e.camera=this.camera.toJSON(!1).object,delete e.camera.matrix,e}}class fYe extends $P{constructor(){super(new Aa(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(e){const t=this.camera,r=vf*2*e.angle*this.focus,i=this.mapSize.width/this.mapSize.height,a=e.distance||t.far;(r!==t.fov||i!==t.aspect||a!==t.far)&&(t.fov=r,t.aspect=i,t.far=a,t.updateProjectionMatrix()),super.updateMatrices(e)}copy(e){return super.copy(e),this.focus=e.focus,this}}class jP extends ld{constructor(e,t,r=0,i=Math.PI/3,a=0,s=2){super(e,t),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(Zn.DEFAULT_UP),this.updateMatrix(),this.target=new Zn,this.distance=r,this.angle=i,this.penumbra=a,this.decay=s,this.map=null,this.shadow=new fYe}get power(){return this.intensity*Math.PI}set power(e){this.intensity=e/Math.PI}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.angle=e.angle,this.penumbra=e.penumbra,this.decay=e.decay,this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}const L5=new vn,Pm=new ye,Ex=new ye;class mYe extends $P{constructor(){super(new Aa(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new vt(4,2),this._viewportCount=6,this._viewports=[new ar(2,1,1,1),new ar(0,1,1,1),new ar(3,1,1,1),new ar(1,1,1,1),new ar(3,0,1,1),new ar(1,0,1,1)],this._cubeDirections=[new ye(1,0,0),new ye(-1,0,0),new ye(0,0,1),new ye(0,0,-1),new ye(0,1,0),new ye(0,-1,0)],this._cubeUps=[new ye(0,1,0),new ye(0,1,0),new ye(0,1,0),new ye(0,1,0),new ye(0,0,1),new ye(0,0,-1)]}updateMatrices(e,t=0){const r=this.camera,i=this.matrix,a=e.distance||r.far;a!==r.far&&(r.far=a,r.updateProjectionMatrix()),Pm.setFromMatrixPosition(e.matrixWorld),r.position.copy(Pm),Ex.copy(r.position),Ex.add(this._cubeDirections[t]),r.up.copy(this._cubeUps[t]),r.lookAt(Ex),r.updateMatrixWorld(),i.makeTranslation(-Pm.x,-Pm.y,-Pm.z),L5.multiplyMatrices(r.projectionMatrix,r.matrixWorldInverse),this._frustum.setFromProjectionMatrix(L5)}}class zP extends ld{constructor(e,t,r=0,i=2){super(e,t),this.isPointLight=!0,this.type="PointLight",this.distance=r,this.decay=i,this.shadow=new mYe}get power(){return this.intensity*4*Math.PI}set power(e){this.intensity=e/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(e,t){return super.copy(e,t),this.distance=e.distance,this.decay=e.decay,this.shadow=e.shadow.clone(),this}}class Rg extends wb{constructor(e=-1,t=1,r=1,i=-1,a=.1,s=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=r,this.bottom=i,this.near=a,this.far=s,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,t,r,i,a,s){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),r=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let a=r-e,s=r+e,o=i+t,c=i-t;if(this.view!==null&&this.view.enabled){const l=(this.right-this.left)/this.view.fullWidth/this.zoom,u=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a+=l*this.view.offsetX,s=a+l*this.view.width,o-=u*this.view.offsetY,c=o-u*this.view.height}this.projectionMatrix.makeOrthographic(a,s,o,c,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,this.view!==null&&(t.object.view=Object.assign({},this.view)),t}}class pYe extends $P{constructor(){super(new Rg(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class VP extends ld{constructor(e,t){super(e,t),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(Zn.DEFAULT_UP),this.updateMatrix(),this.target=new Zn,this.shadow=new pYe}dispose(){this.shadow.dispose()}copy(e){return super.copy(e),this.target=e.target.clone(),this.shadow=e.shadow.clone(),this}}class QQ extends ld{constructor(e,t){super(e,t),this.isAmbientLight=!0,this.type="AmbientLight"}}class $Q extends ld{constructor(e,t,r=10,i=10){super(e,t),this.isRectAreaLight=!0,this.type="RectAreaLight",this.width=r,this.height=i}get power(){return this.intensity*this.width*this.height*Math.PI}set power(e){this.intensity=e/(this.width*this.height*Math.PI)}copy(e){return super.copy(e),this.width=e.width,this.height=e.height,this}toJSON(e){const t=super.toJSON(e);return t.object.width=this.width,t.object.height=this.height,t}}class jQ{constructor(){this.isSphericalHarmonics3=!0,this.coefficients=[];for(let e=0;e<9;e++)this.coefficients.push(new ye)}set(e){for(let t=0;t<9;t++)this.coefficients[t].copy(e[t]);return this}zero(){for(let e=0;e<9;e++)this.coefficients[e].set(0,0,0);return this}getAt(e,t){const r=e.x,i=e.y,a=e.z,s=this.coefficients;return t.copy(s[0]).multiplyScalar(.282095),t.addScaledVector(s[1],.488603*i),t.addScaledVector(s[2],.488603*a),t.addScaledVector(s[3],.488603*r),t.addScaledVector(s[4],1.092548*(r*i)),t.addScaledVector(s[5],1.092548*(i*a)),t.addScaledVector(s[6],.315392*(3*a*a-1)),t.addScaledVector(s[7],1.092548*(r*a)),t.addScaledVector(s[8],.546274*(r*r-i*i)),t}getIrradianceAt(e,t){const r=e.x,i=e.y,a=e.z,s=this.coefficients;return t.copy(s[0]).multiplyScalar(.886227),t.addScaledVector(s[1],2*.511664*i),t.addScaledVector(s[2],2*.511664*a),t.addScaledVector(s[3],2*.511664*r),t.addScaledVector(s[4],2*.429043*r*i),t.addScaledVector(s[5],2*.429043*i*a),t.addScaledVector(s[6],.743125*a*a-.247708),t.addScaledVector(s[7],2*.429043*r*a),t.addScaledVector(s[8],.429043*(r*r-i*i)),t}add(e){for(let t=0;t<9;t++)this.coefficients[t].add(e.coefficients[t]);return this}addScaledSH(e,t){for(let r=0;r<9;r++)this.coefficients[r].addScaledVector(e.coefficients[r],t);return this}scale(e){for(let t=0;t<9;t++)this.coefficients[t].multiplyScalar(e);return this}lerp(e,t){for(let r=0;r<9;r++)this.coefficients[r].lerp(e.coefficients[r],t);return this}equals(e){for(let t=0;t<9;t++)if(!this.coefficients[t].equals(e.coefficients[t]))return!1;return!0}copy(e){return this.set(e.coefficients)}clone(){return new this.constructor().copy(this)}fromArray(e,t=0){const r=this.coefficients;for(let i=0;i<9;i++)r[i].fromArray(e,t+i*3);return this}toArray(e=[],t=0){const r=this.coefficients;for(let i=0;i<9;i++)r[i].toArray(e,t+i*3);return e}static getBasisAt(e,t){const r=e.x,i=e.y,a=e.z;t[0]=.282095,t[1]=.488603*i,t[2]=.488603*a,t[3]=.488603*r,t[4]=1.092548*r*i,t[5]=1.092548*i*a,t[6]=.315392*(3*a*a-1),t[7]=1.092548*r*a,t[8]=.546274*(r*r-i*i)}}class zQ extends ld{constructor(e=new jQ,t=1){super(void 0,t),this.isLightProbe=!0,this.sh=e}copy(e){return super.copy(e),this.sh.copy(e.sh),this}fromJSON(e){return this.intensity=e.intensity,this.sh.fromArray(e.sh),this}toJSON(e){const t=super.toJSON(e);return t.object.sh=this.sh.toArray(),t}}class Hb extends Ps{constructor(e){super(e),this.textures={}}load(e,t,r,i){const a=this,s=new _c(a.manager);s.setPath(a.path),s.setRequestHeader(a.requestHeader),s.setWithCredentials(a.withCredentials),s.load(e,function(o){try{t(a.parse(JSON.parse(o)))}catch(c){i&&i(c),a.manager.itemError(e)}},r,i)}parse(e){const t=this.textures;function r(a){return t[a],t[a]}const i=this.createMaterialFromType(e.type);if(e.uuid!==void 0&&(i.uuid=e.uuid),e.name!==void 0&&(i.name=e.name),e.color!==void 0&&i.color!==void 0&&i.color.setHex(e.color),e.roughness!==void 0&&(i.roughness=e.roughness),e.metalness!==void 0&&(i.metalness=e.metalness),e.sheen!==void 0&&(i.sheen=e.sheen),e.sheenColor!==void 0&&(i.sheenColor=new Qt().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(i.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&i.emissive!==void 0&&i.emissive.setHex(e.emissive),e.specular!==void 0&&i.specular!==void 0&&i.specular.setHex(e.specular),e.specularIntensity!==void 0&&(i.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&i.specularColor!==void 0&&i.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(i.shininess=e.shininess),e.clearcoat!==void 0&&(i.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=e.clearcoatRoughness),e.dispersion!==void 0&&(i.dispersion=e.dispersion),e.iridescence!==void 0&&(i.iridescence=e.iridescence),e.iridescenceIOR!==void 0&&(i.iridescenceIOR=e.iridescenceIOR),e.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=e.iridescenceThicknessRange),e.transmission!==void 0&&(i.transmission=e.transmission),e.thickness!==void 0&&(i.thickness=e.thickness),e.attenuationDistance!==void 0&&(i.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&i.attenuationColor!==void 0&&i.attenuationColor.setHex(e.attenuationColor),e.anisotropy!==void 0&&(i.anisotropy=e.anisotropy),e.anisotropyRotation!==void 0&&(i.anisotropyRotation=e.anisotropyRotation),e.fog!==void 0&&(i.fog=e.fog),e.flatShading!==void 0&&(i.flatShading=e.flatShading),e.blending!==void 0&&(i.blending=e.blending),e.combine!==void 0&&(i.combine=e.combine),e.side!==void 0&&(i.side=e.side),e.shadowSide!==void 0&&(i.shadowSide=e.shadowSide),e.opacity!==void 0&&(i.opacity=e.opacity),e.transparent!==void 0&&(i.transparent=e.transparent),e.alphaTest!==void 0&&(i.alphaTest=e.alphaTest),e.alphaHash!==void 0&&(i.alphaHash=e.alphaHash),e.depthFunc!==void 0&&(i.depthFunc=e.depthFunc),e.depthTest!==void 0&&(i.depthTest=e.depthTest),e.depthWrite!==void 0&&(i.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(i.colorWrite=e.colorWrite),e.blendSrc!==void 0&&(i.blendSrc=e.blendSrc),e.blendDst!==void 0&&(i.blendDst=e.blendDst),e.blendEquation!==void 0&&(i.blendEquation=e.blendEquation),e.blendSrcAlpha!==void 0&&(i.blendSrcAlpha=e.blendSrcAlpha),e.blendDstAlpha!==void 0&&(i.blendDstAlpha=e.blendDstAlpha),e.blendEquationAlpha!==void 0&&(i.blendEquationAlpha=e.blendEquationAlpha),e.blendColor!==void 0&&i.blendColor!==void 0&&i.blendColor.setHex(e.blendColor),e.blendAlpha!==void 0&&(i.blendAlpha=e.blendAlpha),e.stencilWriteMask!==void 0&&(i.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(i.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(i.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(i.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(i.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(i.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(i.stencilZPass=e.stencilZPass),e.stencilWrite!==void 0&&(i.stencilWrite=e.stencilWrite),e.wireframe!==void 0&&(i.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(i.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(i.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(i.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(i.rotation=e.rotation),e.linewidth!==void 0&&(i.linewidth=e.linewidth),e.dashSize!==void 0&&(i.dashSize=e.dashSize),e.gapSize!==void 0&&(i.gapSize=e.gapSize),e.scale!==void 0&&(i.scale=e.scale),e.polygonOffset!==void 0&&(i.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(i.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(i.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(i.dithering=e.dithering),e.alphaToCoverage!==void 0&&(i.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(i.premultipliedAlpha=e.premultipliedAlpha),e.forceSinglePass!==void 0&&(i.forceSinglePass=e.forceSinglePass),e.visible!==void 0&&(i.visible=e.visible),e.toneMapped!==void 0&&(i.toneMapped=e.toneMapped),e.userData!==void 0&&(i.userData=e.userData),e.vertexColors!==void 0&&(typeof e.vertexColors=="number"?i.vertexColors=e.vertexColors>0:i.vertexColors=e.vertexColors),e.uniforms!==void 0)for(const a in e.uniforms){const s=e.uniforms[a];switch(i.uniforms[a]={},s.type){case"t":i.uniforms[a].value=r(s.value);break;case"c":i.uniforms[a].value=new Qt().setHex(s.value);break;case"v2":i.uniforms[a].value=new vt().fromArray(s.value);break;case"v3":i.uniforms[a].value=new ye().fromArray(s.value);break;case"v4":i.uniforms[a].value=new ar().fromArray(s.value);break;case"m3":i.uniforms[a].value=new Dn().fromArray(s.value);break;case"m4":i.uniforms[a].value=new vn().fromArray(s.value);break;default:i.uniforms[a].value=s.value}}if(e.defines!==void 0&&(i.defines=e.defines),e.vertexShader!==void 0&&(i.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(i.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(i.glslVersion=e.glslVersion),e.extensions!==void 0)for(const a in e.extensions)i.extensions[a]=e.extensions[a];if(e.lights!==void 0&&(i.lights=e.lights),e.clipping!==void 0&&(i.clipping=e.clipping),e.size!==void 0&&(i.size=e.size),e.sizeAttenuation!==void 0&&(i.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(i.map=r(e.map)),e.matcap!==void 0&&(i.matcap=r(e.matcap)),e.alphaMap!==void 0&&(i.alphaMap=r(e.alphaMap)),e.bumpMap!==void 0&&(i.bumpMap=r(e.bumpMap)),e.bumpScale!==void 0&&(i.bumpScale=e.bumpScale),e.normalMap!==void 0&&(i.normalMap=r(e.normalMap)),e.normalMapType!==void 0&&(i.normalMapType=e.normalMapType),e.normalScale!==void 0){let a=e.normalScale;Array.isArray(a)===!1&&(a=[a,a]),i.normalScale=new vt().fromArray(a)}return e.displacementMap!==void 0&&(i.displacementMap=r(e.displacementMap)),e.displacementScale!==void 0&&(i.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(i.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(i.roughnessMap=r(e.roughnessMap)),e.metalnessMap!==void 0&&(i.metalnessMap=r(e.metalnessMap)),e.emissiveMap!==void 0&&(i.emissiveMap=r(e.emissiveMap)),e.emissiveIntensity!==void 0&&(i.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(i.specularMap=r(e.specularMap)),e.specularIntensityMap!==void 0&&(i.specularIntensityMap=r(e.specularIntensityMap)),e.specularColorMap!==void 0&&(i.specularColorMap=r(e.specularColorMap)),e.envMap!==void 0&&(i.envMap=r(e.envMap)),e.envMapRotation!==void 0&&i.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(i.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(i.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(i.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(i.lightMap=r(e.lightMap)),e.lightMapIntensity!==void 0&&(i.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(i.aoMap=r(e.aoMap)),e.aoMapIntensity!==void 0&&(i.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(i.gradientMap=r(e.gradientMap)),e.clearcoatMap!==void 0&&(i.clearcoatMap=r(e.clearcoatMap)),e.clearcoatRoughnessMap!==void 0&&(i.clearcoatRoughnessMap=r(e.clearcoatRoughnessMap)),e.clearcoatNormalMap!==void 0&&(i.clearcoatNormalMap=r(e.clearcoatNormalMap)),e.clearcoatNormalScale!==void 0&&(i.clearcoatNormalScale=new vt().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(i.iridescenceMap=r(e.iridescenceMap)),e.iridescenceThicknessMap!==void 0&&(i.iridescenceThicknessMap=r(e.iridescenceThicknessMap)),e.transmissionMap!==void 0&&(i.transmissionMap=r(e.transmissionMap)),e.thicknessMap!==void 0&&(i.thicknessMap=r(e.thicknessMap)),e.anisotropyMap!==void 0&&(i.anisotropyMap=r(e.anisotropyMap)),e.sheenColorMap!==void 0&&(i.sheenColorMap=r(e.sheenColorMap)),e.sheenRoughnessMap!==void 0&&(i.sheenRoughnessMap=r(e.sheenRoughnessMap)),i}setTextures(e){return this.textures=e,this}createMaterialFromType(e){return Hb.createMaterialFromType(e)}static createMaterialFromType(e){const t={ShadowMaterial:CQ,SpriteMaterial:SP,RawShaderMaterial:PQ,ShaderMaterial:bc,PointsMaterial:Mb,MeshPhysicalMaterial:Ko,MeshStandardMaterial:Dg,MeshPhongMaterial:EQ,MeshToonMaterial:BQ,MeshNormalMaterial:TQ,MeshLambertMaterial:kQ,MeshDepthMaterial:RP,MeshDistanceMaterial:UP,MeshBasicMaterial:vo,MeshMatcapMaterial:IQ,LineDashedMaterial:LQ,LineBasicMaterial:Za,Material:Yi};return new t[e]}}class Ku{static decodeText(e){if(typeof TextDecoder<"u")return new TextDecoder().decode(e);let t="";for(let r=0,i=e.length;r<i;r++)t+=String.fromCharCode(e[r]);try{return decodeURIComponent(escape(t))}catch{return t}}static extractUrlBase(e){const t=e.lastIndexOf("/");return t===-1?"./":e.slice(0,t+1)}static resolveURL(e,t){return typeof e!="string"||e===""?"":(/^https?:\/\//i.test(t)&&/^\//.test(e)&&(t=t.replace(/(^https?:\/\/[^\/]+).*/i,"$1")),/^(https?:)?\/\//i.test(e)||/^data:.*,.*$/i.test(e)||/^blob:.*$/i.test(e)?e:t+e)}}class VQ extends Hn{constructor(){super(),this.isInstancedBufferGeometry=!0,this.type="InstancedBufferGeometry",this.instanceCount=1/0}copy(e){return super.copy(e),this.instanceCount=e.instanceCount,this}toJSON(){const e=super.toJSON();return e.instanceCount=this.instanceCount,e.isInstancedBufferGeometry=!0,e}}class GQ extends Ps{constructor(e){super(e)}load(e,t,r,i){const a=this,s=new _c(a.manager);s.setPath(a.path),s.setRequestHeader(a.requestHeader),s.setWithCredentials(a.withCredentials),s.load(e,function(o){try{t(a.parse(JSON.parse(o)))}catch(c){i&&i(c),a.manager.itemError(e)}},r,i)}parse(e){const t={},r={};function i(h,g){if(t[g]!==void 0)return t[g];const w=h.interleavedBuffers[g],v=a(h,w.buffer),S=jh(w.type,v),C=new Tg(S,w.stride);return C.uuid=w.uuid,t[g]=C,C}function a(h,g){if(r[g]!==void 0)return r[g];const w=h.arrayBuffers[g],v=new Uint32Array(w).buffer;return r[g]=v,v}const s=e.isInstancedBufferGeometry?new VQ:new Hn,o=e.data.index;if(o!==void 0){const h=jh(o.type,o.array);s.setIndex(new hr(h,1))}const c=e.data.attributes;for(const h in c){const g=c[h];let y;if(g.isInterleavedBufferAttribute){const w=i(e.data,g.data);y=new nd(w,g.itemSize,g.offset,g.normalized)}else{const w=jh(g.type,g.array),v=g.isInstancedBufferAttribute?EA:hr;y=new v(w,g.itemSize,g.normalized)}g.name!==void 0&&(y.name=g.name),g.usage!==void 0&&y.setUsage(g.usage),s.setAttribute(h,y)}const l=e.data.morphAttributes;if(l)for(const h in l){const g=l[h],y=[];for(let w=0,v=g.length;w<v;w++){const S=g[w];let C;if(S.isInterleavedBufferAttribute){const M=i(e.data,S.data);C=new nd(M,S.itemSize,S.offset,S.normalized)}else{const M=jh(S.type,S.array);C=new hr(M,S.itemSize,S.normalized)}S.name!==void 0&&(C.name=S.name),y.push(C)}s.morphAttributes[h]=y}e.data.morphTargetsRelative&&(s.morphTargetsRelative=!0);const A=e.data.groups||e.data.drawcalls||e.data.offsets;if(A!==void 0)for(let h=0,g=A.length;h!==g;++h){const y=A[h];s.addGroup(y.start,y.count,y.materialIndex)}const f=e.data.boundingSphere;if(f!==void 0){const h=new ye;f.center!==void 0&&h.fromArray(f.center),s.boundingSphere=new Fa(h,f.radius)}return e.name&&(s.name=e.name),e.userData&&(s.userData=e.userData),s}}class gYe extends Ps{constructor(e){super(e)}load(e,t,r,i){const a=this,s=this.path===""?Ku.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||s;const o=new _c(this.manager);o.setPath(this.path),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(e,function(c){let l=null;try{l=JSON.parse(c)}catch(A){i!==void 0&&i(A);return}const u=l.metadata;if(u===void 0||u.type===void 0||u.type.toLowerCase()==="geometry"){i!==void 0&&i(new Error("THREE.ObjectLoader: Can't load "+e));return}a.parse(l,t)},r,i)}async loadAsync(e,t){const r=this,i=this.path===""?Ku.extractUrlBase(e):this.path;this.resourcePath=this.resourcePath||i;const a=new _c(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials);const s=await a.loadAsync(e,t),o=JSON.parse(s),c=o.metadata;if(c===void 0||c.type===void 0||c.type.toLowerCase()==="geometry")throw new Error("THREE.ObjectLoader: Can't load "+e);return await r.parseAsync(o)}parse(e,t){const r=this.parseAnimations(e.animations),i=this.parseShapes(e.shapes),a=this.parseGeometries(e.geometries,i),s=this.parseImages(e.images,function(){t!==void 0&&t(l)}),o=this.parseTextures(e.textures,s),c=this.parseMaterials(e.materials,o),l=this.parseObject(e.object,a,c,o,r),u=this.parseSkeletons(e.skeletons,l);if(this.bindSkeletons(l,u),this.bindLightTargets(l),t!==void 0){let A=!1;for(const f in s)if(s[f].data instanceof HTMLImageElement){A=!0;break}A===!1&&t(l)}return l}async parseAsync(e){const t=this.parseAnimations(e.animations),r=this.parseShapes(e.shapes),i=this.parseGeometries(e.geometries,r),a=await this.parseImagesAsync(e.images),s=this.parseTextures(e.textures,a),o=this.parseMaterials(e.materials,s),c=this.parseObject(e.object,i,o,s,t),l=this.parseSkeletons(e.skeletons,c);return this.bindSkeletons(c,l),this.bindLightTargets(c),c}parseShapes(e){const t={};if(e!==void 0)for(let r=0,i=e.length;r<i;r++){const a=new AA().fromJSON(e[r]);t[a.uuid]=a}return t}parseSkeletons(e,t){const r={},i={};if(t.traverse(function(a){a.isBone&&(i[a.uuid]=a)}),e!==void 0)for(let a=0,s=e.length;a<s;a++){const o=new kg().fromJSON(e[a],i);r[o.uuid]=o}return r}parseGeometries(e,t){const r={};if(e!==void 0){const i=new GQ;for(let a=0,s=e.length;a<s;a++){let o;const c=e[a];switch(c.type){case"BufferGeometry":case"InstancedBufferGeometry":o=i.parse(c);break;default:c.type in T5&&(o=T5[c.type].fromJSON(c,t))}o.uuid=c.uuid,c.name!==void 0&&(o.name=c.name),c.userData!==void 0&&(o.userData=c.userData),r[c.uuid]=o}}return r}parseMaterials(e,t){const r={},i={};if(e!==void 0){const a=new Hb;a.setTextures(t);for(let s=0,o=e.length;s<o;s++){const c=e[s];r[c.uuid]===void 0&&(r[c.uuid]=a.parse(c)),i[c.uuid]=r[c.uuid]}}return i}parseAnimations(e){const t={};if(e!==void 0)for(let r=0;r<e.length;r++){const i=e[r],a=wf.parse(i);t[a.uuid]=a}return t}parseImages(e,t){const r=this,i={};let a;function s(c){return r.manager.itemStart(c),a.load(c,function(){r.manager.itemEnd(c)},void 0,function(){r.manager.itemError(c),r.manager.itemEnd(c)})}function o(c){if(typeof c=="string"){const l=c,u=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(l)?l:r.resourcePath+l;return s(u)}else return c.data?{data:jh(c.type,c.data),width:c.width,height:c.height}:null}if(e!==void 0&&e.length>0){const c=new QP(t);a=new ng(c),a.setCrossOrigin(this.crossOrigin);for(let l=0,u=e.length;l<u;l++){const A=e[l],f=A.url;if(Array.isArray(f)){const h=[];for(let g=0,y=f.length;g<y;g++){const w=f[g],v=o(w);v!==null&&(v instanceof HTMLImageElement?h.push(v):h.push(new Zc(v.data,v.width,v.height)))}i[A.uuid]=new eA(h)}else{const h=o(A.url);i[A.uuid]=new eA(h)}}}return i}async parseImagesAsync(e){const t=this,r={};let i;async function a(s){if(typeof s=="string"){const o=s,c=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(o)?o:t.resourcePath+o;return await i.loadAsync(c)}else return s.data?{data:jh(s.type,s.data),width:s.width,height:s.height}:null}if(e!==void 0&&e.length>0){i=new ng(this.manager),i.setCrossOrigin(this.crossOrigin);for(let s=0,o=e.length;s<o;s++){const c=e[s],l=c.url;if(Array.isArray(l)){const u=[];for(let A=0,f=l.length;A<f;A++){const h=l[A],g=await a(h);g!==null&&(g instanceof HTMLImageElement?u.push(g):u.push(new Zc(g.data,g.width,g.height)))}r[c.uuid]=new eA(u)}else{const u=await a(c.url);r[c.uuid]=new eA(u)}}}return r}parseTextures(e,t){function r(a,s){return typeof a=="number"?a:s[a]}const i={};if(e!==void 0)for(let a=0,s=e.length;a<s;a++){const o=e[a];o.image,t[o.image];const c=t[o.image],l=c.data;let u;Array.isArray(l)?(u=new Bg,l.length===6&&(u.needsUpdate=!0)):(l&&l.data?u=new Zc:u=new ai,l&&(u.needsUpdate=!0)),u.source=c,u.uuid=o.uuid,o.name!==void 0&&(u.name=o.name),o.mapping!==void 0&&(u.mapping=r(o.mapping,vYe)),o.channel!==void 0&&(u.channel=o.channel),o.offset!==void 0&&u.offset.fromArray(o.offset),o.repeat!==void 0&&u.repeat.fromArray(o.repeat),o.center!==void 0&&u.center.fromArray(o.center),o.rotation!==void 0&&(u.rotation=o.rotation),o.wrap!==void 0&&(u.wrapS=r(o.wrap[0],F5),u.wrapT=r(o.wrap[1],F5)),o.format!==void 0&&(u.format=o.format),o.internalFormat!==void 0&&(u.internalFormat=o.internalFormat),o.type!==void 0&&(u.type=o.type),o.colorSpace!==void 0&&(u.colorSpace=o.colorSpace),o.minFilter!==void 0&&(u.minFilter=r(o.minFilter,N5)),o.magFilter!==void 0&&(u.magFilter=r(o.magFilter,N5)),o.anisotropy!==void 0&&(u.anisotropy=o.anisotropy),o.flipY!==void 0&&(u.flipY=o.flipY),o.generateMipmaps!==void 0&&(u.generateMipmaps=o.generateMipmaps),o.premultiplyAlpha!==void 0&&(u.premultiplyAlpha=o.premultiplyAlpha),o.unpackAlignment!==void 0&&(u.unpackAlignment=o.unpackAlignment),o.compareFunction!==void 0&&(u.compareFunction=o.compareFunction),o.userData!==void 0&&(u.userData=o.userData),i[o.uuid]=u}return i}parseObject(e,t,r,i,a){let s;function o(f){return t[f],t[f]}function c(f){if(f!==void 0){if(Array.isArray(f)){const h=[];for(let g=0,y=f.length;g<y;g++){const w=f[g];r[w],h.push(r[w])}return h}return r[f],r[f]}}function l(f){return i[f],i[f]}let u,A;switch(e.type){case"Scene":s=new dQ,e.background!==void 0&&(Number.isInteger(e.background)?s.background=new Qt(e.background):s.background=l(e.background)),e.environment!==void 0&&(s.environment=l(e.environment)),e.fog!==void 0&&(e.fog.type==="Fog"?s.fog=new _b(e.fog.color,e.fog.near,e.fog.far):e.fog.type==="FogExp2"&&(s.fog=new bb(e.fog.color,e.fog.density)),e.fog.name!==""&&(s.fog.name=e.fog.name)),e.backgroundBlurriness!==void 0&&(s.backgroundBlurriness=e.backgroundBlurriness),e.backgroundIntensity!==void 0&&(s.backgroundIntensity=e.backgroundIntensity),e.backgroundRotation!==void 0&&s.backgroundRotation.fromArray(e.backgroundRotation),e.environmentIntensity!==void 0&&(s.environmentIntensity=e.environmentIntensity),e.environmentRotation!==void 0&&s.environmentRotation.fromArray(e.environmentRotation);break;case"PerspectiveCamera":s=new Aa(e.fov,e.aspect,e.near,e.far),e.focus!==void 0&&(s.focus=e.focus),e.zoom!==void 0&&(s.zoom=e.zoom),e.filmGauge!==void 0&&(s.filmGauge=e.filmGauge),e.filmOffset!==void 0&&(s.filmOffset=e.filmOffset),e.view!==void 0&&(s.view=Object.assign({},e.view));break;case"OrthographicCamera":s=new Rg(e.left,e.right,e.top,e.bottom,e.near,e.far),e.zoom!==void 0&&(s.zoom=e.zoom),e.view!==void 0&&(s.view=Object.assign({},e.view));break;case"AmbientLight":s=new QQ(e.color,e.intensity);break;case"DirectionalLight":s=new VP(e.color,e.intensity),s.target=e.target||"";break;case"PointLight":s=new zP(e.color,e.intensity,e.distance,e.decay);break;case"RectAreaLight":s=new $Q(e.color,e.intensity,e.width,e.height);break;case"SpotLight":s=new jP(e.color,e.intensity,e.distance,e.angle,e.penumbra,e.decay),s.target=e.target||"";break;case"HemisphereLight":s=new WQ(e.color,e.groundColor,e.intensity);break;case"LightProbe":s=new zQ().fromJSON(e);break;case"SkinnedMesh":u=o(e.geometry),A=c(e.material),s=new CP(u,A),e.bindMode!==void 0&&(s.bindMode=e.bindMode),e.bindMatrix!==void 0&&s.bindMatrix.fromArray(e.bindMatrix),e.skeleton!==void 0&&(s.skeleton=e.skeleton);break;case"Mesh":u=o(e.geometry),A=c(e.material),s=new Fi(u,A);break;case"InstancedMesh":u=o(e.geometry),A=c(e.material);const f=e.count,h=e.instanceMatrix,g=e.instanceColor;s=new PP(u,A,f),s.instanceMatrix=new EA(new Float32Array(h.array),16),g!==void 0&&(s.instanceColor=new EA(new Float32Array(g.array),g.itemSize));break;case"BatchedMesh":u=o(e.geometry),A=c(e.material),s=new mQ(e.maxInstanceCount,e.maxVertexCount,e.maxIndexCount,A),s.geometry=u,s.perObjectFrustumCulled=e.perObjectFrustumCulled,s.sortObjects=e.sortObjects,s._drawRanges=e.drawRanges,s._reservedRanges=e.reservedRanges,s._visibility=e.visibility,s._active=e.active,s._bounds=e.bounds.map(y=>{const w=new qa;w.min.fromArray(y.boxMin),w.max.fromArray(y.boxMax);const v=new Fa;return v.radius=y.sphereRadius,v.center.fromArray(y.sphereCenter),{boxInitialized:y.boxInitialized,box:w,sphereInitialized:y.sphereInitialized,sphere:v}}),s._maxInstanceCount=e.maxInstanceCount,s._maxVertexCount=e.maxVertexCount,s._maxIndexCount=e.maxIndexCount,s._geometryInitialized=e.geometryInitialized,s._geometryCount=e.geometryCount,s._matricesTexture=l(e.matricesTexture.uuid),e.colorsTexture!==void 0&&(s._colorsTexture=l(e.colorsTexture.uuid));break;case"LOD":s=new fQ;break;case"Line":s=new Zl(o(e.geometry),c(e.material));break;case"LineLoop":s=new EP(o(e.geometry),c(e.material));break;case"LineSegments":s=new Pc(o(e.geometry),c(e.material));break;case"PointCloud":case"Points":s=new BP(o(e.geometry),c(e.material));break;case"Sprite":s=new hQ(c(e.material));break;case"Group":s=new Rl;break;case"Bone":s=new xb;break;default:s=new Zn}if(s.uuid=e.uuid,e.name!==void 0&&(s.name=e.name),e.matrix!==void 0?(s.matrix.fromArray(e.matrix),e.matrixAutoUpdate!==void 0&&(s.matrixAutoUpdate=e.matrixAutoUpdate),s.matrixAutoUpdate&&s.matrix.decompose(s.position,s.quaternion,s.scale)):(e.position!==void 0&&s.position.fromArray(e.position),e.rotation!==void 0&&s.rotation.fromArray(e.rotation),e.quaternion!==void 0&&s.quaternion.fromArray(e.quaternion),e.scale!==void 0&&s.scale.fromArray(e.scale)),e.up!==void 0&&s.up.fromArray(e.up),e.castShadow!==void 0&&(s.castShadow=e.castShadow),e.receiveShadow!==void 0&&(s.receiveShadow=e.receiveShadow),e.shadow&&(e.shadow.intensity!==void 0&&(s.shadow.intensity=e.shadow.intensity),e.shadow.bias!==void 0&&(s.shadow.bias=e.shadow.bias),e.shadow.normalBias!==void 0&&(s.shadow.normalBias=e.shadow.normalBias),e.shadow.radius!==void 0&&(s.shadow.radius=e.shadow.radius),e.shadow.mapSize!==void 0&&s.shadow.mapSize.fromArray(e.shadow.mapSize),e.shadow.camera!==void 0&&(s.shadow.camera=this.parseObject(e.shadow.camera))),e.visible!==void 0&&(s.visible=e.visible),e.frustumCulled!==void 0&&(s.frustumCulled=e.frustumCulled),e.renderOrder!==void 0&&(s.renderOrder=e.renderOrder),e.userData!==void 0&&(s.userData=e.userData),e.layers!==void 0&&(s.layers.mask=e.layers),e.children!==void 0){const f=e.children;for(let h=0;h<f.length;h++)s.add(this.parseObject(f[h],t,r,i,a))}if(e.animations!==void 0){const f=e.animations;for(let h=0;h<f.length;h++){const g=f[h];s.animations.push(a[g])}}if(e.type==="LOD"){e.autoUpdate!==void 0&&(s.autoUpdate=e.autoUpdate);const f=e.levels;for(let h=0;h<f.length;h++){const g=f[h],y=s.getObjectByProperty("uuid",g.object);y!==void 0&&s.addLevel(y,g.distance,g.hysteresis)}}return s}bindSkeletons(e,t){Object.keys(t).length!==0&&e.traverse(function(r){if(r.isSkinnedMesh===!0&&r.skeleton!==void 0){const i=t[r.skeleton];i===void 0||r.bind(i,r.bindMatrix)}})}bindLightTargets(e){e.traverse(function(t){if(t.isDirectionalLight||t.isSpotLight){const r=t.target,i=e.getObjectByProperty("uuid",r);i!==void 0?t.target=i:t.target=new Zn}})}}const vYe={UVMapping:lb,CubeReflectionMapping:Yl,CubeRefractionMapping:ed,EquirectangularReflectionMapping:zp,EquirectangularRefractionMapping:Vp,CubeUVReflectionMapping:Nf},F5={RepeatWrapping:td,ClampToEdgeWrapping:go,MirroredRepeatWrapping:ff},N5={NearestFilter:Xi,NearestMipmapNearestFilter:ub,NearestMipmapLinearFilter:Yd,LinearFilter:pi,LinearMipmapNearestFilter:qh,LinearMipmapLinearFilter:Wo};class KQ extends Ps{constructor(e){super(e),this.isImageBitmapLoader=!0,this.options={premultiplyAlpha:"none"}}setOptions(e){return this.options=e,this}load(e,t,r,i){e===void 0&&(e=""),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);const a=this,s=Ul.get(e);if(s!==void 0){if(a.manager.itemStart(e),s.then){s.then(l=>{t&&t(l),a.manager.itemEnd(e)}).catch(l=>{i&&i(l)});return}return setTimeout(function(){t&&t(s),a.manager.itemEnd(e)},0),s}const o={};o.credentials=this.crossOrigin==="anonymous"?"same-origin":"include",o.headers=this.requestHeader;const c=fetch(e,o).then(function(l){return l.blob()}).then(function(l){return createImageBitmap(l,Object.assign(a.options,{colorSpaceConversion:"none"}))}).then(function(l){return Ul.add(e,l),t&&t(l),a.manager.itemEnd(e),l}).catch(function(l){i&&i(l),Ul.remove(e),a.manager.itemError(e),a.manager.itemEnd(e)});Ul.add(e,c),a.manager.itemStart(e)}}let ev;class GP{static getContext(){return ev===void 0&&(ev=new(window.AudioContext||window.webkitAudioContext)),ev}static setContext(e){ev=e}}class yYe extends Ps{constructor(e){super(e)}load(e,t,r,i){const a=this,s=new _c(this.manager);s.setResponseType("arraybuffer"),s.setPath(this.path),s.setRequestHeader(this.requestHeader),s.setWithCredentials(this.withCredentials),s.load(e,function(c){try{const l=c.slice(0);GP.getContext().decodeAudioData(l,function(A){t(A)}).catch(o)}catch(l){o(l)}},r,i);function o(c){i&&i(c),a.manager.itemError(e)}}}const D5=new vn,R5=new vn,kd=new vn;class wYe{constructor(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Aa,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Aa,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1,this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}update(e){const t=this._cache;if(t.focus!==e.focus||t.fov!==e.fov||t.aspect!==e.aspect*this.aspect||t.near!==e.near||t.far!==e.far||t.zoom!==e.zoom||t.eyeSep!==this.eyeSep){t.focus=e.focus,t.fov=e.fov,t.aspect=e.aspect*this.aspect,t.near=e.near,t.far=e.far,t.zoom=e.zoom,t.eyeSep=this.eyeSep,kd.copy(e.projectionMatrix);const i=t.eyeSep/2,a=i*t.near/t.focus,s=t.near*Math.tan(dA*t.fov*.5)/t.zoom;let o,c;R5.elements[12]=-i,D5.elements[12]=i,o=-s*t.aspect+a,c=s*t.aspect+a,kd.elements[0]=2*t.near/(c-o),kd.elements[8]=(c+o)/(c-o),this.cameraL.projectionMatrix.copy(kd),o=-s*t.aspect-a,c=s*t.aspect-a,kd.elements[0]=2*t.near/(c-o),kd.elements[8]=(c+o)/(c-o),this.cameraR.projectionMatrix.copy(kd)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(R5),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(D5)}}class qQ extends Aa{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class XQ{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=U5(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const t=U5();e=(t-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e}return e}}function U5(){return performance.now()}const Id=new ye,O5=new ma,bYe=new ye,Ld=new ye;class _Ye extends Zn{constructor(){super(),this.type="AudioListener",this.context=GP.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0,this._clock=new XQ}getInput(){return this.gain}removeFilter(){return this.filter!==null&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this}getFilter(){return this.filter}setFilter(e){return this.filter!==null?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=e,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this}getMasterVolume(){return this.gain.gain.value}setMasterVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}updateMatrixWorld(e){super.updateMatrixWorld(e);const t=this.context.listener,r=this.up;if(this.timeDelta=this._clock.getDelta(),this.matrixWorld.decompose(Id,O5,bYe),Ld.set(0,0,-1).applyQuaternion(O5),t.positionX){const i=this.context.currentTime+this.timeDelta;t.positionX.linearRampToValueAtTime(Id.x,i),t.positionY.linearRampToValueAtTime(Id.y,i),t.positionZ.linearRampToValueAtTime(Id.z,i),t.forwardX.linearRampToValueAtTime(Ld.x,i),t.forwardY.linearRampToValueAtTime(Ld.y,i),t.forwardZ.linearRampToValueAtTime(Ld.z,i),t.upX.linearRampToValueAtTime(r.x,i),t.upY.linearRampToValueAtTime(r.y,i),t.upZ.linearRampToValueAtTime(r.z,i)}else t.setPosition(Id.x,Id.y,Id.z),t.setOrientation(Ld.x,Ld.y,Ld.z,r.x,r.y,r.z)}}class YQ extends Zn{constructor(e){super(),this.type="Audio",this.listener=e,this.context=e.context,this.gain=this.context.createGain(),this.gain.connect(e.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.loopStart=0,this.loopEnd=0,this.offset=0,this.duration=void 0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.source=null,this.sourceType="empty",this._startedAt=0,this._progress=0,this._connected=!1,this.filters=[]}getOutput(){return this.gain}setNodeSource(e){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=e,this.connect(),this}setMediaElementSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(e),this.connect(),this}setMediaStreamSource(e){return this.hasPlaybackControl=!1,this.sourceType="mediaStreamNode",this.source=this.context.createMediaStreamSource(e),this.connect(),this}setBuffer(e){return this.buffer=e,this.sourceType="buffer",this.autoplay&&this.play(),this}play(e=0){if(this.isPlaying===!0||this.hasPlaybackControl===!1)return;this._startedAt=this.context.currentTime+e;const t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.loopStart=this.loopStart,t.loopEnd=this.loopEnd,t.onended=this.onEnded.bind(this),t.start(this._startedAt,this._progress+this.offset,this.duration),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}pause(){if(this.hasPlaybackControl!==!1)return this.isPlaying===!0&&(this._progress+=Math.max(this.context.currentTime-this._startedAt,0)*this.playbackRate,this.loop===!0&&(this._progress=this._progress%(this.duration||this.buffer.duration)),this.source.stop(),this.source.onended=null,this.isPlaying=!1),this}stop(e=0){if(this.hasPlaybackControl!==!1)return this._progress=0,this.source!==null&&(this.source.stop(this.context.currentTime+e),this.source.onended=null),this.isPlaying=!1,this}connect(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(let e=1,t=this.filters.length;e<t;e++)this.filters[e-1].connect(this.filters[e]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this._connected=!0,this}disconnect(){if(this._connected!==!1){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(let e=1,t=this.filters.length;e<t;e++)this.filters[e-1].disconnect(this.filters[e]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this._connected=!1,this}}getFilters(){return this.filters}setFilters(e){return e||(e=[]),this._connected===!0?(this.disconnect(),this.filters=e.slice(),this.connect()):this.filters=e.slice(),this}setDetune(e){return this.detune=e,this.isPlaying===!0&&this.source.detune!==void 0&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this}getDetune(){return this.detune}getFilter(){return this.getFilters()[0]}setFilter(e){return this.setFilters(e?[e]:[])}setPlaybackRate(e){if(this.hasPlaybackControl!==!1)return this.playbackRate=e,this.isPlaying===!0&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this}getPlaybackRate(){return this.playbackRate}onEnded(){this.isPlaying=!1,this._progress=0}getLoop(){return this.hasPlaybackControl===!1?!1:this.loop}setLoop(e){if(this.hasPlaybackControl!==!1)return this.loop=e,this.isPlaying===!0&&(this.source.loop=this.loop),this}setLoopStart(e){return this.loopStart=e,this}setLoopEnd(e){return this.loopEnd=e,this}getVolume(){return this.gain.gain.value}setVolume(e){return this.gain.gain.setTargetAtTime(e,this.context.currentTime,.01),this}copy(e,t){return super.copy(e,t),e.sourceType!=="buffer"?this:(this.autoplay=e.autoplay,this.buffer=e.buffer,this.detune=e.detune,this.loop=e.loop,this.loopStart=e.loopStart,this.loopEnd=e.loopEnd,this.offset=e.offset,this.duration=e.duration,this.playbackRate=e.playbackRate,this.hasPlaybackControl=e.hasPlaybackControl,this.sourceType=e.sourceType,this.filters=e.filters.slice(),this)}clone(e){return new this.constructor(this.listener).copy(this,e)}}const Fd=new ye,H5=new ma,xYe=new ye,Nd=new ye;class MYe extends YQ{constructor(e){super(e),this.panner=this.context.createPanner(),this.panner.panningModel="HRTF",this.panner.connect(this.gain)}connect(){super.connect(),this.panner.connect(this.gain)}disconnect(){super.disconnect(),this.panner.disconnect(this.gain)}getOutput(){return this.panner}getRefDistance(){return this.panner.refDistance}setRefDistance(e){return this.panner.refDistance=e,this}getRolloffFactor(){return this.panner.rolloffFactor}setRolloffFactor(e){return this.panner.rolloffFactor=e,this}getDistanceModel(){return this.panner.distanceModel}setDistanceModel(e){return this.panner.distanceModel=e,this}getMaxDistance(){return this.panner.maxDistance}setMaxDistance(e){return this.panner.maxDistance=e,this}setDirectionalCone(e,t,r){return this.panner.coneInnerAngle=e,this.panner.coneOuterAngle=t,this.panner.coneOuterGain=r,this}updateMatrixWorld(e){if(super.updateMatrixWorld(e),this.hasPlaybackControl===!0&&this.isPlaying===!1)return;this.matrixWorld.decompose(Fd,H5,xYe),Nd.set(0,0,1).applyQuaternion(H5);const t=this.panner;if(t.positionX){const r=this.context.currentTime+this.listener.timeDelta;t.positionX.linearRampToValueAtTime(Fd.x,r),t.positionY.linearRampToValueAtTime(Fd.y,r),t.positionZ.linearRampToValueAtTime(Fd.z,r),t.orientationX.linearRampToValueAtTime(Nd.x,r),t.orientationY.linearRampToValueAtTime(Nd.y,r),t.orientationZ.linearRampToValueAtTime(Nd.z,r)}else t.setPosition(Fd.x,Fd.y,Fd.z),t.setOrientation(Nd.x,Nd.y,Nd.z)}}class SYe{constructor(e,t=2048){this.analyser=e.context.createAnalyser(),this.analyser.fftSize=t,this.data=new Uint8Array(this.analyser.frequencyBinCount),e.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let e=0;const t=this.getFrequencyData();for(let r=0;r<t.length;r++)e+=t[r];return e/t.length}}class JQ{constructor(e,t,r){this.binding=e,this.valueSize=r;let i,a,s;switch(t){case"quaternion":i=this._slerp,a=this._slerpAdditive,s=this._setAdditiveIdentityQuaternion,this.buffer=new Float64Array(r*6),this._workIndex=5;break;case"string":case"bool":i=this._select,a=this._select,s=this._setAdditiveIdentityOther,this.buffer=new Array(r*5);break;default:i=this._lerp,a=this._lerpAdditive,s=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(r*5)}this._mixBufferRegion=i,this._mixBufferRegionAdditive=a,this._setIdentity=s,this._origIndex=3,this._addIndex=4,this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,this.useCount=0,this.referenceCount=0}accumulate(e,t){const r=this.buffer,i=this.valueSize,a=e*i+i;let s=this.cumulativeWeight;if(s===0){for(let o=0;o!==i;++o)r[a+o]=r[o];s=t}else{s+=t;const o=t/s;this._mixBufferRegion(r,a,0,o,i)}this.cumulativeWeight=s}accumulateAdditive(e){const t=this.buffer,r=this.valueSize,i=r*this._addIndex;this.cumulativeWeightAdditive===0&&this._setIdentity(),this._mixBufferRegionAdditive(t,i,0,e,r),this.cumulativeWeightAdditive+=e}apply(e){const t=this.valueSize,r=this.buffer,i=e*t+t,a=this.cumulativeWeight,s=this.cumulativeWeightAdditive,o=this.binding;if(this.cumulativeWeight=0,this.cumulativeWeightAdditive=0,a<1){const c=t*this._origIndex;this._mixBufferRegion(r,i,c,1-a,t)}s>0&&this._mixBufferRegionAdditive(r,i,this._addIndex*t,1,t);for(let c=t,l=t+t;c!==l;++c)if(r[c]!==r[c+t]){o.setValue(r,i);break}}saveOriginalState(){const e=this.binding,t=this.buffer,r=this.valueSize,i=r*this._origIndex;e.getValue(t,i);for(let a=r,s=i;a!==s;++a)t[a]=t[i+a%r];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const e=this.valueSize*3;this.binding.setValue(this.buffer,e)}_setAdditiveIdentityNumeric(){const e=this._addIndex*this.valueSize,t=e+this.valueSize;for(let r=e;r<t;r++)this.buffer[r]=0}_setAdditiveIdentityQuaternion(){this._setAdditiveIdentityNumeric(),this.buffer[this._addIndex*this.valueSize+3]=1}_setAdditiveIdentityOther(){const e=this._origIndex*this.valueSize,t=this._addIndex*this.valueSize;for(let r=0;r<this.valueSize;r++)this.buffer[t+r]=this.buffer[e+r]}_select(e,t,r,i,a){if(i>=.5)for(let s=0;s!==a;++s)e[t+s]=e[r+s]}_slerp(e,t,r,i){ma.slerpFlat(e,t,e,t,e,r,i)}_slerpAdditive(e,t,r,i,a){const s=this._workIndex*a;ma.multiplyQuaternionsFlat(e,s,e,t,e,r),ma.slerpFlat(e,t,e,t,e,s,i)}_lerp(e,t,r,i,a){const s=1-i;for(let o=0;o!==a;++o){const c=t+o;e[c]=e[c]*s+e[r+o]*i}}_lerpAdditive(e,t,r,i,a){for(let s=0;s!==a;++s){const o=t+s;e[o]=e[o]+e[r+s]*i}}}const KP="\\[\\]\\.:\\/",CYe=new RegExp("["+KP+"]","g"),qP="[^"+KP+"]",PYe="[^"+KP.replace("\\.","")+"]",EYe=/((?:WC+[\/:])*)/.source.replace("WC",qP),BYe=/(WCOD+)?/.source.replace("WCOD",PYe),TYe=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",qP),kYe=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",qP),IYe=new RegExp("^"+EYe+BYe+TYe+kYe+"$"),LYe=["material","materials","bones","map"];class FYe{constructor(e,t,r){const i=r||nr.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,i)}getValue(e,t){this.bind();const r=this._targetGroup.nCachedObjects_,i=this._bindings[r];i!==void 0&&i.getValue(e,t)}setValue(e,t){const r=this._bindings;for(let i=this._targetGroup.nCachedObjects_,a=r.length;i!==a;++i)r[i].setValue(e,t)}bind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].bind()}unbind(){const e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,r=e.length;t!==r;++t)e[t].unbind()}}class nr{constructor(e,t,r){this.path=t,this.parsedPath=r||nr.parseTrackName(t),this.node=nr.findNode(e,this.parsedPath.nodeName),this.rootNode=e,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(e,t,r){return e&&e.isAnimationObjectGroup?new nr.Composite(e,t,r):new nr(e,t,r)}static sanitizeNodeName(e){return e.replace(/\s/g,"_").replace(CYe,"")}static parseTrackName(e){const t=IYe.exec(e);if(t===null)throw new Error("PropertyBinding: Cannot parse trackName: "+e);const r={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},i=r.nodeName&&r.nodeName.lastIndexOf(".");if(i!==void 0&&i!==-1){const a=r.nodeName.substring(i+1);LYe.indexOf(a)!==-1&&(r.nodeName=r.nodeName.substring(0,i),r.objectName=a)}if(r.propertyName===null||r.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+e);return r}static findNode(e,t){if(t===void 0||t===""||t==="."||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){const r=e.skeleton.getBoneByName(t);if(r!==void 0)return r}if(e.children){const r=function(a){for(let s=0;s<a.length;s++){const o=a[s];if(o.name===t||o.uuid===t)return o;const c=r(o.children);if(c)return c}return null},i=r(e.children);if(i)return i}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(e,t){e[t]=this.targetObject[this.propertyName]}_getValue_array(e,t){const r=this.resolvedProperty;for(let i=0,a=r.length;i!==a;++i)e[t++]=r[i]}_getValue_arrayElement(e,t){e[t]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(e,t){this.resolvedProperty.toArray(e,t)}_setValue_direct(e,t){this.targetObject[this.propertyName]=e[t]}_setValue_direct_setNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(e,t){this.targetObject[this.propertyName]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(e,t){const r=this.resolvedProperty;for(let i=0,a=r.length;i!==a;++i)r[i]=e[t++]}_setValue_array_setNeedsUpdate(e,t){const r=this.resolvedProperty;for(let i=0,a=r.length;i!==a;++i)r[i]=e[t++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(e,t){const r=this.resolvedProperty;for(let i=0,a=r.length;i!==a;++i)r[i]=e[t++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(e,t){this.resolvedProperty[this.propertyIndex]=e[t]}_setValue_arrayElement_setNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty[this.propertyIndex]=e[t],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(e,t){this.resolvedProperty.fromArray(e,t)}_setValue_fromArray_setNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(e,t){this.resolvedProperty.fromArray(e,t),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(e,t){this.bind(),this.getValue(e,t)}_setValue_unbound(e,t){this.bind(),this.setValue(e,t)}bind(){let e=this.node;const t=this.parsedPath,r=t.objectName,i=t.propertyName;let a=t.propertyIndex;if(e||(e=nr.findNode(this.rootNode,t.nodeName),this.node=e),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!e)return;if(r){let l=t.objectIndex;switch(r){case"materials":if(!e.material||!e.material.materials)return;e=e.material.materials;break;case"bones":if(!e.skeleton)return;e=e.skeleton.bones;for(let u=0;u<e.length;u++)if(e[u].name===l){l=u;break}break;case"map":if("map"in e){e=e.map;break}if(!e.material||!e.material.map)return;e=e.material.map;break;default:if(e[r]===void 0)return;e=e[r]}if(l!==void 0){if(e[l]===void 0)return;e=e[l]}}const s=e[i];if(s===void 0){const l=t.nodeName;return}let o=this.Versioning.None;this.targetObject=e,e.needsUpdate!==void 0?o=this.Versioning.NeedsUpdate:e.matrixWorldNeedsUpdate!==void 0&&(o=this.Versioning.MatrixWorldNeedsUpdate);let c=this.BindingType.Direct;if(a!==void 0){if(i==="morphTargetInfluences"){if(!e.geometry||!e.geometry.morphAttributes)return;e.morphTargetDictionary[a]!==void 0&&(a=e.morphTargetDictionary[a])}c=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=a}else s.fromArray!==void 0&&s.toArray!==void 0?(c=this.BindingType.HasFromToArray,this.resolvedProperty=s):Array.isArray(s)?(c=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=i;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][o]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}nr.Composite=FYe;nr.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3};nr.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2};nr.prototype.GetterByBindingType=[nr.prototype._getValue_direct,nr.prototype._getValue_array,nr.prototype._getValue_arrayElement,nr.prototype._getValue_toArray];nr.prototype.SetterByBindingTypeAndVersioning=[[nr.prototype._setValue_direct,nr.prototype._setValue_direct_setNeedsUpdate,nr.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[nr.prototype._setValue_array,nr.prototype._setValue_array_setNeedsUpdate,nr.prototype._setValue_array_setMatrixWorldNeedsUpdate],[nr.prototype._setValue_arrayElement,nr.prototype._setValue_arrayElement_setNeedsUpdate,nr.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[nr.prototype._setValue_fromArray,nr.prototype._setValue_fromArray_setNeedsUpdate,nr.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];class NYe{constructor(){this.isAnimationObjectGroup=!0,this.uuid=bo(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;const e={};this._indicesByUUID=e;for(let r=0,i=arguments.length;r!==i;++r)e[arguments[r].uuid]=r;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};const t=this;this.stats={objects:{get total(){return t._objects.length},get inUse(){return this.total-t.nCachedObjects_}},get bindingsPerObject(){return t._bindings.length}}}add(){const e=this._objects,t=this._indicesByUUID,r=this._paths,i=this._parsedPaths,a=this._bindings,s=a.length;let o,c=e.length,l=this.nCachedObjects_;for(let u=0,A=arguments.length;u!==A;++u){const f=arguments[u],h=f.uuid;let g=t[h];if(g===void 0){g=c++,t[h]=g,e.push(f);for(let y=0,w=s;y!==w;++y)a[y].push(new nr(f,r[y],i[y]))}else if(g<l){o=e[g];const y=--l,w=e[y];t[w.uuid]=g,e[g]=w,t[h]=y,e[y]=f;for(let v=0,S=s;v!==S;++v){const C=a[v],M=C[y];let F=C[g];C[g]=M,F===void 0&&(F=new nr(f,r[v],i[v])),C[y]=F}}else e[g]}this.nCachedObjects_=l}remove(){const e=this._objects,t=this._indicesByUUID,r=this._bindings,i=r.length;let a=this.nCachedObjects_;for(let s=0,o=arguments.length;s!==o;++s){const c=arguments[s],l=c.uuid,u=t[l];if(u!==void 0&&u>=a){const A=a++,f=e[A];t[f.uuid]=u,e[u]=f,t[l]=A,e[A]=c;for(let h=0,g=i;h!==g;++h){const y=r[h],w=y[A],v=y[u];y[u]=w,y[A]=v}}}this.nCachedObjects_=a}uncache(){const e=this._objects,t=this._indicesByUUID,r=this._bindings,i=r.length;let a=this.nCachedObjects_,s=e.length;for(let o=0,c=arguments.length;o!==c;++o){const l=arguments[o],u=l.uuid,A=t[u];if(A!==void 0)if(delete t[u],A<a){const f=--a,h=e[f],g=--s,y=e[g];t[h.uuid]=A,e[A]=h,t[y.uuid]=f,e[f]=y,e.pop();for(let w=0,v=i;w!==v;++w){const S=r[w],C=S[f],M=S[g];S[A]=C,S[f]=M,S.pop()}}else{const f=--s,h=e[f];f>0&&(t[h.uuid]=A),e[A]=h,e.pop();for(let g=0,y=i;g!==y;++g){const w=r[g];w[A]=w[f],w.pop()}}}this.nCachedObjects_=a}subscribe_(e,t){const r=this._bindingsIndicesByPath;let i=r[e];const a=this._bindings;if(i!==void 0)return a[i];const s=this._paths,o=this._parsedPaths,c=this._objects,l=c.length,u=this.nCachedObjects_,A=new Array(l);i=a.length,r[e]=i,s.push(e),o.push(t),a.push(A);for(let f=u,h=c.length;f!==h;++f){const g=c[f];A[f]=new nr(g,e,t)}return A}unsubscribe_(e){const t=this._bindingsIndicesByPath,r=t[e];if(r!==void 0){const i=this._paths,a=this._parsedPaths,s=this._bindings,o=s.length-1,c=s[o],l=e[o];t[l]=r,s[r]=c,s.pop(),a[r]=a[o],a.pop(),i[r]=i[o],i.pop()}}}class ZQ{constructor(e,t,r=null,i=t.blendMode){this._mixer=e,this._clip=t,this._localRoot=r,this.blendMode=i;const a=t.tracks,s=a.length,o=new Array(s),c={endingStart:Jd,endingEnd:Jd};for(let l=0;l!==s;++l){const u=a[l].createInterpolant(null);o[l]=u,u.settings=c}this._interpolantSettings=c,this._interpolants=o,this._propertyBindings=new Array(s),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=$W,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}play(){return this._mixer._activateAction(this),this}stop(){return this._mixer._deactivateAction(this),this.reset()}reset(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()}isRunning(){return this.enabled&&!this.paused&&this.timeScale!==0&&this._startTime===null&&this._mixer._isActiveAction(this)}isScheduled(){return this._mixer._isActiveAction(this)}startAt(e){return this._startTime=e,this}setLoop(e,t){return this.loop=e,this.repetitions=t,this}setEffectiveWeight(e){return this.weight=e,this._effectiveWeight=this.enabled?e:0,this.stopFading()}getEffectiveWeight(){return this._effectiveWeight}fadeIn(e){return this._scheduleFading(e,0,1)}fadeOut(e){return this._scheduleFading(e,1,0)}crossFadeFrom(e,t,r){if(e.fadeOut(t),this.fadeIn(t),r){const i=this._clip.duration,a=e._clip.duration,s=a/i,o=i/a;e.warp(1,s,t),this.warp(o,1,t)}return this}crossFadeTo(e,t,r){return e.crossFadeFrom(this,t,r)}stopFading(){const e=this._weightInterpolant;return e!==null&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}setEffectiveTimeScale(e){return this.timeScale=e,this._effectiveTimeScale=this.paused?0:e,this.stopWarping()}getEffectiveTimeScale(){return this._effectiveTimeScale}setDuration(e){return this.timeScale=this._clip.duration/e,this.stopWarping()}syncWith(e){return this.time=e.time,this.timeScale=e.timeScale,this.stopWarping()}halt(e){return this.warp(this._effectiveTimeScale,0,e)}warp(e,t,r){const i=this._mixer,a=i.time,s=this.timeScale;let o=this._timeScaleInterpolant;o===null&&(o=i._lendControlInterpolant(),this._timeScaleInterpolant=o);const c=o.parameterPositions,l=o.sampleValues;return c[0]=a,c[1]=a+r,l[0]=e/s,l[1]=t/s,this}stopWarping(){const e=this._timeScaleInterpolant;return e!==null&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(e)),this}getMixer(){return this._mixer}getClip(){return this._clip}getRoot(){return this._localRoot||this._mixer._root}_update(e,t,r,i){if(!this.enabled){this._updateWeight(e);return}const a=this._startTime;if(a!==null){const c=(e-a)*r;c<0||r===0?t=0:(this._startTime=null,t=r*c)}t*=this._updateTimeScale(e);const s=this._updateTime(t),o=this._updateWeight(e);if(o>0){const c=this._interpolants,l=this._propertyBindings;switch(this.blendMode){case gP:for(let u=0,A=c.length;u!==A;++u)c[u].evaluate(s),l[u].accumulateAdditive(o);break;case gb:default:for(let u=0,A=c.length;u!==A;++u)c[u].evaluate(s),l[u].accumulate(i,o)}}}_updateWeight(e){let t=0;if(this.enabled){t=this.weight;const r=this._weightInterpolant;if(r!==null){const i=r.evaluate(e)[0];t*=i,e>r.parameterPositions[1]&&(this.stopFading(),i===0&&(this.enabled=!1))}}return this._effectiveWeight=t,t}_updateTimeScale(e){let t=0;if(!this.paused){t=this.timeScale;const r=this._timeScaleInterpolant;if(r!==null){const i=r.evaluate(e)[0];t*=i,e>r.parameterPositions[1]&&(this.stopWarping(),t===0?this.paused=!0:this.timeScale=t)}}return this._effectiveTimeScale=t,t}_updateTime(e){const t=this._clip.duration,r=this.loop;let i=this.time+e,a=this._loopCount;const s=r===jW;if(e===0)return a===-1?i:s&&(a&1)===1?t-i:i;if(r===QW){a===-1&&(this._loopCount=0,this._setEndings(!0,!0,!1));e:{if(i>=t)i=t;else if(i<0)i=0;else{this.time=i;break e}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e<0?-1:1})}}else{if(a===-1&&(e>=0?(a=0,this._setEndings(!0,this.repetitions===0,s)):this._setEndings(this.repetitions===0,!0,s)),i>=t||i<0){const o=Math.floor(i/t);i-=t*o,a+=Math.abs(o);const c=this.repetitions-a;if(c<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=e>0?t:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:e>0?1:-1});else{if(c===1){const l=e<0;this._setEndings(l,!l,s)}else this._setEndings(!1,!1,s);this._loopCount=a,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:o})}}else this.time=i;if(s&&(a&1)===1)return t-i}return i}_setEndings(e,t,r){const i=this._interpolantSettings;r?(i.endingStart=Zd,i.endingEnd=Zd):(e?i.endingStart=this.zeroSlopeAtStart?Zd:Jd:i.endingStart=Gp,t?i.endingEnd=this.zeroSlopeAtEnd?Zd:Jd:i.endingEnd=Gp)}_scheduleFading(e,t,r){const i=this._mixer,a=i.time;let s=this._weightInterpolant;s===null&&(s=i._lendControlInterpolant(),this._weightInterpolant=s);const o=s.parameterPositions,c=s.sampleValues;return o[0]=a,c[0]=t,o[1]=a+e,c[1]=r,this}}const DYe=new Float32Array(1);class RYe extends sl{constructor(e){super(),this._root=e,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}_bindAction(e,t){const r=e._localRoot||this._root,i=e._clip.tracks,a=i.length,s=e._propertyBindings,o=e._interpolants,c=r.uuid,l=this._bindingsByRootAndName;let u=l[c];u===void 0&&(u={},l[c]=u);for(let A=0;A!==a;++A){const f=i[A],h=f.name;let g=u[h];if(g!==void 0)++g.referenceCount,s[A]=g;else{if(g=s[A],g!==void 0){g._cacheIndex===null&&(++g.referenceCount,this._addInactiveBinding(g,c,h));continue}const y=t&&t._propertyBindings[A].binding.parsedPath;g=new JQ(nr.create(r,h,y),f.ValueTypeName,f.getValueSize()),++g.referenceCount,this._addInactiveBinding(g,c,h),s[A]=g}o[A].resultBuffer=g.buffer}}_activateAction(e){if(!this._isActiveAction(e)){if(e._cacheIndex===null){const r=(e._localRoot||this._root).uuid,i=e._clip.uuid,a=this._actionsByClip[i];this._bindAction(e,a&&a.knownActions[0]),this._addInactiveAction(e,i,r)}const t=e._propertyBindings;for(let r=0,i=t.length;r!==i;++r){const a=t[r];a.useCount++===0&&(this._lendBinding(a),a.saveOriginalState())}this._lendAction(e)}}_deactivateAction(e){if(this._isActiveAction(e)){const t=e._propertyBindings;for(let r=0,i=t.length;r!==i;++r){const a=t[r];--a.useCount===0&&(a.restoreOriginalState(),this._takeBackBinding(a))}this._takeBackAction(e)}}_initMemoryManager(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;const e=this;this.stats={actions:{get total(){return e._actions.length},get inUse(){return e._nActiveActions}},bindings:{get total(){return e._bindings.length},get inUse(){return e._nActiveBindings}},controlInterpolants:{get total(){return e._controlInterpolants.length},get inUse(){return e._nActiveControlInterpolants}}}}_isActiveAction(e){const t=e._cacheIndex;return t!==null&&t<this._nActiveActions}_addInactiveAction(e,t,r){const i=this._actions,a=this._actionsByClip;let s=a[t];if(s===void 0)s={knownActions:[e],actionByRoot:{}},e._byClipCacheIndex=0,a[t]=s;else{const o=s.knownActions;e._byClipCacheIndex=o.length,o.push(e)}e._cacheIndex=i.length,i.push(e),s.actionByRoot[r]=e}_removeInactiveAction(e){const t=this._actions,r=t[t.length-1],i=e._cacheIndex;r._cacheIndex=i,t[i]=r,t.pop(),e._cacheIndex=null;const a=e._clip.uuid,s=this._actionsByClip,o=s[a],c=o.knownActions,l=c[c.length-1],u=e._byClipCacheIndex;l._byClipCacheIndex=u,c[u]=l,c.pop(),e._byClipCacheIndex=null;const A=o.actionByRoot,f=(e._localRoot||this._root).uuid;delete A[f],c.length===0&&delete s[a],this._removeInactiveBindingsForAction(e)}_removeInactiveBindingsForAction(e){const t=e._propertyBindings;for(let r=0,i=t.length;r!==i;++r){const a=t[r];--a.referenceCount===0&&this._removeInactiveBinding(a)}}_lendAction(e){const t=this._actions,r=e._cacheIndex,i=this._nActiveActions++,a=t[i];e._cacheIndex=i,t[i]=e,a._cacheIndex=r,t[r]=a}_takeBackAction(e){const t=this._actions,r=e._cacheIndex,i=--this._nActiveActions,a=t[i];e._cacheIndex=i,t[i]=e,a._cacheIndex=r,t[r]=a}_addInactiveBinding(e,t,r){const i=this._bindingsByRootAndName,a=this._bindings;let s=i[t];s===void 0&&(s={},i[t]=s),s[r]=e,e._cacheIndex=a.length,a.push(e)}_removeInactiveBinding(e){const t=this._bindings,r=e.binding,i=r.rootNode.uuid,a=r.path,s=this._bindingsByRootAndName,o=s[i],c=t[t.length-1],l=e._cacheIndex;c._cacheIndex=l,t[l]=c,t.pop(),delete o[a],Object.keys(o).length===0&&delete s[i]}_lendBinding(e){const t=this._bindings,r=e._cacheIndex,i=this._nActiveBindings++,a=t[i];e._cacheIndex=i,t[i]=e,a._cacheIndex=r,t[r]=a}_takeBackBinding(e){const t=this._bindings,r=e._cacheIndex,i=--this._nActiveBindings,a=t[i];e._cacheIndex=i,t[i]=e,a._cacheIndex=r,t[r]=a}_lendControlInterpolant(){const e=this._controlInterpolants,t=this._nActiveControlInterpolants++;let r=e[t];return r===void 0&&(r=new HP(new Float32Array(2),new Float32Array(2),1,DYe),r.__cacheIndex=t,e[t]=r),r}_takeBackControlInterpolant(e){const t=this._controlInterpolants,r=e.__cacheIndex,i=--this._nActiveControlInterpolants,a=t[i];e.__cacheIndex=i,t[i]=e,a.__cacheIndex=r,t[r]=a}clipAction(e,t,r){const i=t||this._root,a=i.uuid;let s=typeof e=="string"?wf.findByName(i,e):e;const o=s!==null?s.uuid:e,c=this._actionsByClip[o];let l=null;if(r===void 0&&(s!==null?r=s.blendMode:r=gb),c!==void 0){const A=c.actionByRoot[a];if(A!==void 0&&A.blendMode===r)return A;l=c.knownActions[0],s===null&&(s=l._clip)}if(s===null)return null;const u=new ZQ(this,s,t,r);return this._bindAction(u,l),this._addInactiveAction(u,o,a),u}existingAction(e,t){const r=t||this._root,i=r.uuid,a=typeof e=="string"?wf.findByName(r,e):e,s=a?a.uuid:e,o=this._actionsByClip[s];return o!==void 0&&o.actionByRoot[i]||null}stopAllAction(){const e=this._actions,t=this._nActiveActions;for(let r=t-1;r>=0;--r)e[r].stop();return this}update(e){e*=this.timeScale;const t=this._actions,r=this._nActiveActions,i=this.time+=e,a=Math.sign(e),s=this._accuIndex^=1;for(let l=0;l!==r;++l)t[l]._update(i,e,a,s);const o=this._bindings,c=this._nActiveBindings;for(let l=0;l!==c;++l)o[l].apply(s);return this}setTime(e){this.time=0;for(let t=0;t<this._actions.length;t++)this._actions[t].time=0;return this.update(e)}getRoot(){return this._root}uncacheClip(e){const t=this._actions,r=e.uuid,i=this._actionsByClip,a=i[r];if(a!==void 0){const s=a.knownActions;for(let o=0,c=s.length;o!==c;++o){const l=s[o];this._deactivateAction(l);const u=l._cacheIndex,A=t[t.length-1];l._cacheIndex=null,l._byClipCacheIndex=null,A._cacheIndex=u,t[u]=A,t.pop(),this._removeInactiveBindingsForAction(l)}delete i[r]}}uncacheRoot(e){const t=e.uuid,r=this._actionsByClip;for(const s in r){const o=r[s].actionByRoot,c=o[t];c!==void 0&&(this._deactivateAction(c),this._removeInactiveAction(c))}const i=this._bindingsByRootAndName,a=i[t];if(a!==void 0)for(const s in a){const o=a[s];o.restoreOriginalState(),this._removeInactiveBinding(o)}}uncacheAction(e,t){const r=this.existingAction(e,t);r!==null&&(this._deactivateAction(r),this._removeInactiveAction(r))}}class XP{constructor(e){this.value=e}clone(){return new XP(this.value.clone===void 0?this.value:this.value.clone())}}let UYe=0;class OYe extends sl{constructor(){super(),this.isUniformsGroup=!0,Object.defineProperty(this,"id",{value:UYe++}),this.name="",this.usage=qp,this.uniforms=[]}add(e){return this.uniforms.push(e),this}remove(e){const t=this.uniforms.indexOf(e);return t!==-1&&this.uniforms.splice(t,1),this}setName(e){return this.name=e,this}setUsage(e){return this.usage=e,this}dispose(){return this.dispatchEvent({type:"dispose"}),this}copy(e){this.name=e.name,this.usage=e.usage;const t=e.uniforms;this.uniforms.length=0;for(let r=0,i=t.length;r<i;r++){const a=Array.isArray(t[r])?t[r]:[t[r]];for(let s=0;s<a.length;s++)this.uniforms.push(a[s].clone())}return this}clone(){return new this.constructor().copy(this)}}class HYe extends Tg{constructor(e,t,r=1){super(e,t),this.isInstancedInterleavedBuffer=!0,this.meshPerAttribute=r}copy(e){return super.copy(e),this.meshPerAttribute=e.meshPerAttribute,this}clone(e){const t=super.clone(e);return t.meshPerAttribute=this.meshPerAttribute,t}toJSON(e){const t=super.toJSON(e);return t.isInstancedInterleavedBuffer=!0,t.meshPerAttribute=this.meshPerAttribute,t}}class WYe{constructor(e,t,r,i,a){this.isGLBufferAttribute=!0,this.name="",this.buffer=e,this.type=t,this.itemSize=r,this.elementSize=i,this.count=a,this.version=0}set needsUpdate(e){e===!0&&this.version++}setBuffer(e){return this.buffer=e,this}setType(e,t){return this.type=e,this.elementSize=t,this}setItemSize(e){return this.itemSize=e,this}setCount(e){return this.count=e,this}}const W5=new vn;class QYe{constructor(e,t,r=0,i=1/0){this.ray=new jA(e,t),this.near=r,this.far=i,this.camera=null,this.layers=new yb,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,t){this.ray.set(e,t)}setFromCamera(e,t){t.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(t.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(t).sub(this.ray.origin).normalize(),this.camera=t):t.isOrthographicCamera&&(this.ray.origin.set(e.x,e.y,(t.near+t.far)/(t.near-t.far)).unproject(t),this.ray.direction.set(0,0,-1).transformDirection(t.matrixWorld),this.camera=t)}setFromXRController(e){return W5.identity().extractRotation(e.matrixWorld),this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(0,0,-1).applyMatrix4(W5),this}intersectObject(e,t=!0,r=[]){return kM(e,this,r,t),r.sort(Q5),r}intersectObjects(e,t=!0,r=[]){for(let i=0,a=e.length;i<a;i++)kM(e[i],this,r,t);return r.sort(Q5),r}}function Q5(n,e){return n.distance-e.distance}function kM(n,e,t,r){let i=!0;if(n.layers.test(e.layers)&&n.raycast(e,t)===!1&&(i=!1),i===!0&&r===!0){const a=n.children;for(let s=0,o=a.length;s<o;s++)kM(a[s],e,t,!0)}}class IM{constructor(e=1,t=0,r=0){return this.radius=e,this.phi=t,this.theta=r,this}set(e,t,r){return this.radius=e,this.phi=t,this.theta=r,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){return this.phi=Tn(this.phi,1e-6,Math.PI-1e-6),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,r){return this.radius=Math.sqrt(e*e+t*t+r*r),this.radius===0?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,r),this.phi=Math.acos(Tn(t/this.radius,-1,1))),this}clone(){return new this.constructor().copy(this)}}class $Ye{constructor(e=1,t=0,r=0){return this.radius=e,this.theta=t,this.y=r,this}set(e,t,r){return this.radius=e,this.theta=t,this.y=r,this}copy(e){return this.radius=e.radius,this.theta=e.theta,this.y=e.y,this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,t,r){return this.radius=Math.sqrt(e*e+r*r),this.theta=Math.atan2(e,r),this.y=t,this}clone(){return new this.constructor().copy(this)}}class YP{constructor(e,t,r,i){YP.prototype.isMatrix2=!0,this.elements=[1,0,0,1],e!==void 0&&this.set(e,t,r,i)}identity(){return this.set(1,0,0,1),this}fromArray(e,t=0){for(let r=0;r<4;r++)this.elements[r]=e[r+t];return this}set(e,t,r,i){const a=this.elements;return a[0]=e,a[2]=t,a[1]=r,a[3]=i,this}}const $5=new vt;class jYe{constructor(e=new vt(1/0,1/0),t=new vt(-1/0,-1/0)){this.isBox2=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromPoints(e){this.makeEmpty();for(let t=0,r=e.length;t<r;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const r=$5.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(r),this.max.copy(e).add(r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y}getCenter(e){return this.isEmpty()?e.set(0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}containsPoint(e){return e.x>=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,$5).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const j5=new ye,tv=new ye;class zYe{constructor(e=new ye,t=new ye){this.start=e,this.end=t}set(e,t){return this.start.copy(e),this.end.copy(t),this}copy(e){return this.start.copy(e.start),this.end.copy(e.end),this}getCenter(e){return e.addVectors(this.start,this.end).multiplyScalar(.5)}delta(e){return e.subVectors(this.end,this.start)}distanceSq(){return this.start.distanceToSquared(this.end)}distance(){return this.start.distanceTo(this.end)}at(e,t){return this.delta(t).multiplyScalar(e).add(this.start)}closestPointToPointParameter(e,t){j5.subVectors(e,this.start),tv.subVectors(this.end,this.start);const r=tv.dot(tv);let a=tv.dot(j5)/r;return t&&(a=Tn(a,0,1)),a}closestPointToPoint(e,t,r){const i=this.closestPointToPointParameter(e,t);return this.delta(r).multiplyScalar(i).add(this.start)}applyMatrix4(e){return this.start.applyMatrix4(e),this.end.applyMatrix4(e),this}equals(e){return e.start.equals(this.start)&&e.end.equals(this.end)}clone(){return new this.constructor().copy(this)}}const z5=new ye;class VYe extends Zn{constructor(e,t){super(),this.light=e,this.matrixAutoUpdate=!1,this.color=t,this.type="SpotLightHelper";const r=new Hn,i=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(let s=0,o=1,c=32;s<c;s++,o++){const l=s/c*Math.PI*2,u=o/c*Math.PI*2;i.push(Math.cos(l),Math.sin(l),1,Math.cos(u),Math.sin(u),1)}r.setAttribute("position",new an(i,3));const a=new Za({fog:!1,toneMapped:!1});this.cone=new Pc(r,a),this.add(this.cone),this.update()}dispose(){this.cone.geometry.dispose(),this.cone.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1),this.parent?(this.parent.updateWorldMatrix(!0),this.matrix.copy(this.parent.matrixWorld).invert().multiply(this.light.matrixWorld)):this.matrix.copy(this.light.matrixWorld),this.matrixWorld.copy(this.light.matrixWorld);const e=this.light.distance?this.light.distance:1e3,t=e*Math.tan(this.light.angle);this.cone.scale.set(t,t,e),z5.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(z5),this.color!==void 0?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}const Mu=new ye,nv=new vn,Bx=new vn;class GYe extends Pc{constructor(e){const t=e$(e),r=new Hn,i=[],a=[],s=new Qt(0,0,1),o=new Qt(0,1,0);for(let l=0;l<t.length;l++){const u=t[l];u.parent&&u.parent.isBone&&(i.push(0,0,0),i.push(0,0,0),a.push(s.r,s.g,s.b),a.push(o.r,o.g,o.b))}r.setAttribute("position",new an(i,3)),r.setAttribute("color",new an(a,3));const c=new Za({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0});super(r,c),this.isSkeletonHelper=!0,this.type="SkeletonHelper",this.root=e,this.bones=t,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1}updateMatrixWorld(e){const t=this.bones,r=this.geometry,i=r.getAttribute("position");Bx.copy(this.root.matrixWorld).invert();for(let a=0,s=0;a<t.length;a++){const o=t[a];o.parent&&o.parent.isBone&&(nv.multiplyMatrices(Bx,o.matrixWorld),Mu.setFromMatrixPosition(nv),i.setXYZ(s,Mu.x,Mu.y,Mu.z),nv.multiplyMatrices(Bx,o.parent.matrixWorld),Mu.setFromMatrixPosition(nv),i.setXYZ(s+1,Mu.x,Mu.y,Mu.z),s+=2)}r.getAttribute("position").needsUpdate=!0,super.updateMatrixWorld(e)}dispose(){this.geometry.dispose(),this.material.dispose()}}function e$(n){const e=[];n.isBone===!0&&e.push(n);for(let t=0;t<n.children.length;t++)e.push.apply(e,e$(n.children[t]));return e}class KYe extends Fi{constructor(e,t,r){const i=new Ng(t,4,2),a=new vo({wireframe:!0,fog:!1,toneMapped:!1});super(i,a),this.light=e,this.color=r,this.type="PointLightHelper",this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}dispose(){this.geometry.dispose(),this.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.color!==void 0?this.material.color.set(this.color):this.material.color.copy(this.light.color)}}const qYe=new ye,V5=new Qt,G5=new Qt;class XYe extends Zn{constructor(e,t,r){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=r,this.type="HemisphereLightHelper";const i=new Fg(t);i.rotateY(Math.PI*.5),this.material=new vo({wireframe:!0,fog:!1,toneMapped:!1}),this.color===void 0&&(this.material.vertexColors=!0);const a=i.getAttribute("position"),s=new Float32Array(a.count*3);i.setAttribute("color",new hr(s,3)),this.add(new Fi(i,this.material)),this.update()}dispose(){this.children[0].geometry.dispose(),this.children[0].material.dispose()}update(){const e=this.children[0];if(this.color!==void 0)this.material.color.set(this.color);else{const t=e.geometry.getAttribute("color");V5.copy(this.light.color),G5.copy(this.light.groundColor);for(let r=0,i=t.count;r<i;r++){const a=r<i/2?V5:G5;t.setXYZ(r,a.r,a.g,a.b)}t.needsUpdate=!0}this.light.updateWorldMatrix(!0,!1),e.lookAt(qYe.setFromMatrixPosition(this.light.matrixWorld).negate())}}class YYe extends Pc{constructor(e=10,t=10,r=4473924,i=8947848){r=new Qt(r),i=new Qt(i);const a=t/2,s=e/t,o=e/2,c=[],l=[];for(let f=0,h=0,g=-o;f<=t;f++,g+=s){c.push(-o,0,g,o,0,g),c.push(g,0,-o,g,0,o);const y=f===a?r:i;y.toArray(l,h),h+=3,y.toArray(l,h),h+=3,y.toArray(l,h),h+=3,y.toArray(l,h),h+=3}const u=new Hn;u.setAttribute("position",new an(c,3)),u.setAttribute("color",new an(l,3));const A=new Za({vertexColors:!0,toneMapped:!1});super(u,A),this.type="GridHelper"}dispose(){this.geometry.dispose(),this.material.dispose()}}class JYe extends Pc{constructor(e=10,t=16,r=8,i=64,a=4473924,s=8947848){a=new Qt(a),s=new Qt(s);const o=[],c=[];if(t>1)for(let A=0;A<t;A++){const f=A/t*(Math.PI*2),h=Math.sin(f)*e,g=Math.cos(f)*e;o.push(0,0,0),o.push(h,0,g);const y=A&1?a:s;c.push(y.r,y.g,y.b),c.push(y.r,y.g,y.b)}for(let A=0;A<r;A++){const f=A&1?a:s,h=e-e/r*A;for(let g=0;g<i;g++){let y=g/i*(Math.PI*2),w=Math.sin(y)*h,v=Math.cos(y)*h;o.push(w,0,v),c.push(f.r,f.g,f.b),y=(g+1)/i*(Math.PI*2),w=Math.sin(y)*h,v=Math.cos(y)*h,o.push(w,0,v),c.push(f.r,f.g,f.b)}}const l=new Hn;l.setAttribute("position",new an(o,3)),l.setAttribute("color",new an(c,3));const u=new Za({vertexColors:!0,toneMapped:!1});super(l,u),this.type="PolarGridHelper"}dispose(){this.geometry.dispose(),this.material.dispose()}}const K5=new ye,rv=new ye,q5=new ye;class ZYe extends Zn{constructor(e,t,r){super(),this.light=e,this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.color=r,this.type="DirectionalLightHelper",t===void 0&&(t=1);let i=new Hn;i.setAttribute("position",new an([-t,t,0,t,t,0,t,-t,0,-t,-t,0,-t,t,0],3));const a=new Za({fog:!1,toneMapped:!1});this.lightPlane=new Zl(i,a),this.add(this.lightPlane),i=new Hn,i.setAttribute("position",new an([0,0,0,0,0,1],3)),this.targetLine=new Zl(i,a),this.add(this.targetLine),this.update()}dispose(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()}update(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1),K5.setFromMatrixPosition(this.light.matrixWorld),rv.setFromMatrixPosition(this.light.target.matrixWorld),q5.subVectors(rv,K5),this.lightPlane.lookAt(rv),this.color!==void 0?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(rv),this.targetLine.scale.z=q5.length()}}const iv=new ye,hi=new wb;class eJe extends Pc{constructor(e){const t=new Hn,r=new Za({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],a=[],s={};o("n1","n2"),o("n2","n4"),o("n4","n3"),o("n3","n1"),o("f1","f2"),o("f2","f4"),o("f4","f3"),o("f3","f1"),o("n1","f1"),o("n2","f2"),o("n3","f3"),o("n4","f4"),o("p","n1"),o("p","n2"),o("p","n3"),o("p","n4"),o("u1","u2"),o("u2","u3"),o("u3","u1"),o("c","t"),o("p","c"),o("cn1","cn2"),o("cn3","cn4"),o("cf1","cf2"),o("cf3","cf4");function o(g,y){c(g),c(y)}function c(g){i.push(0,0,0),a.push(0,0,0),s[g]===void 0&&(s[g]=[]),s[g].push(i.length/3-1)}t.setAttribute("position",new an(i,3)),t.setAttribute("color",new an(a,3)),super(t,r),this.type="CameraHelper",this.camera=e,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=e.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=s,this.update();const l=new Qt(16755200),u=new Qt(16711680),A=new Qt(43775),f=new Qt(16777215),h=new Qt(3355443);this.setColors(l,u,A,f,h)}setColors(e,t,r,i,a){const o=this.geometry.getAttribute("color");o.setXYZ(0,e.r,e.g,e.b),o.setXYZ(1,e.r,e.g,e.b),o.setXYZ(2,e.r,e.g,e.b),o.setXYZ(3,e.r,e.g,e.b),o.setXYZ(4,e.r,e.g,e.b),o.setXYZ(5,e.r,e.g,e.b),o.setXYZ(6,e.r,e.g,e.b),o.setXYZ(7,e.r,e.g,e.b),o.setXYZ(8,e.r,e.g,e.b),o.setXYZ(9,e.r,e.g,e.b),o.setXYZ(10,e.r,e.g,e.b),o.setXYZ(11,e.r,e.g,e.b),o.setXYZ(12,e.r,e.g,e.b),o.setXYZ(13,e.r,e.g,e.b),o.setXYZ(14,e.r,e.g,e.b),o.setXYZ(15,e.r,e.g,e.b),o.setXYZ(16,e.r,e.g,e.b),o.setXYZ(17,e.r,e.g,e.b),o.setXYZ(18,e.r,e.g,e.b),o.setXYZ(19,e.r,e.g,e.b),o.setXYZ(20,e.r,e.g,e.b),o.setXYZ(21,e.r,e.g,e.b),o.setXYZ(22,e.r,e.g,e.b),o.setXYZ(23,e.r,e.g,e.b),o.setXYZ(24,t.r,t.g,t.b),o.setXYZ(25,t.r,t.g,t.b),o.setXYZ(26,t.r,t.g,t.b),o.setXYZ(27,t.r,t.g,t.b),o.setXYZ(28,t.r,t.g,t.b),o.setXYZ(29,t.r,t.g,t.b),o.setXYZ(30,t.r,t.g,t.b),o.setXYZ(31,t.r,t.g,t.b),o.setXYZ(32,r.r,r.g,r.b),o.setXYZ(33,r.r,r.g,r.b),o.setXYZ(34,r.r,r.g,r.b),o.setXYZ(35,r.r,r.g,r.b),o.setXYZ(36,r.r,r.g,r.b),o.setXYZ(37,r.r,r.g,r.b),o.setXYZ(38,i.r,i.g,i.b),o.setXYZ(39,i.r,i.g,i.b),o.setXYZ(40,a.r,a.g,a.b),o.setXYZ(41,a.r,a.g,a.b),o.setXYZ(42,a.r,a.g,a.b),o.setXYZ(43,a.r,a.g,a.b),o.setXYZ(44,a.r,a.g,a.b),o.setXYZ(45,a.r,a.g,a.b),o.setXYZ(46,a.r,a.g,a.b),o.setXYZ(47,a.r,a.g,a.b),o.setXYZ(48,a.r,a.g,a.b),o.setXYZ(49,a.r,a.g,a.b),o.needsUpdate=!0}update(){const e=this.geometry,t=this.pointMap,r=1,i=1;hi.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),Pi("c",t,e,hi,0,0,-1),Pi("t",t,e,hi,0,0,1),Pi("n1",t,e,hi,-r,-i,-1),Pi("n2",t,e,hi,r,-i,-1),Pi("n3",t,e,hi,-r,i,-1),Pi("n4",t,e,hi,r,i,-1),Pi("f1",t,e,hi,-r,-i,1),Pi("f2",t,e,hi,r,-i,1),Pi("f3",t,e,hi,-r,i,1),Pi("f4",t,e,hi,r,i,1),Pi("u1",t,e,hi,r*.7,i*1.1,-1),Pi("u2",t,e,hi,-r*.7,i*1.1,-1),Pi("u3",t,e,hi,0,i*2,-1),Pi("cf1",t,e,hi,-r,0,1),Pi("cf2",t,e,hi,r,0,1),Pi("cf3",t,e,hi,0,-i,1),Pi("cf4",t,e,hi,0,i,1),Pi("cn1",t,e,hi,-r,0,-1),Pi("cn2",t,e,hi,r,0,-1),Pi("cn3",t,e,hi,0,-i,-1),Pi("cn4",t,e,hi,0,i,-1),e.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}}function Pi(n,e,t,r,i,a,s){iv.set(i,a,s).unproject(r);const o=e[n];if(o!==void 0){const c=t.getAttribute("position");for(let l=0,u=o.length;l<u;l++)c.setXYZ(o[l],iv.x,iv.y,iv.z)}}const av=new qa;class tJe extends Pc{constructor(e,t=16776960){const r=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),i=new Float32Array(24),a=new Hn;a.setIndex(new hr(r,1)),a.setAttribute("position",new hr(i,3)),super(a,new Za({color:t,toneMapped:!1})),this.object=e,this.type="BoxHelper",this.matrixAutoUpdate=!1,this.update()}update(e){if(this.object!==void 0&&av.setFromObject(this.object),av.isEmpty())return;const t=av.min,r=av.max,i=this.geometry.attributes.position,a=i.array;a[0]=r.x,a[1]=r.y,a[2]=r.z,a[3]=t.x,a[4]=r.y,a[5]=r.z,a[6]=t.x,a[7]=t.y,a[8]=r.z,a[9]=r.x,a[10]=t.y,a[11]=r.z,a[12]=r.x,a[13]=r.y,a[14]=t.z,a[15]=t.x,a[16]=r.y,a[17]=t.z,a[18]=t.x,a[19]=t.y,a[20]=t.z,a[21]=r.x,a[22]=t.y,a[23]=t.z,i.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(e){return this.object=e,this.update(),this}copy(e,t){return super.copy(e,t),this.object=e.object,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class nJe extends Pc{constructor(e,t=16776960){const r=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),i=[1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],a=new Hn;a.setIndex(new hr(r,1)),a.setAttribute("position",new an(i,3)),super(a,new Za({color:t,toneMapped:!1})),this.box=e,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(e){const t=this.box;t.isEmpty()||(t.getCenter(this.position),t.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(e))}dispose(){this.geometry.dispose(),this.material.dispose()}}class rJe extends Zl{constructor(e,t=1,r=16776960){const i=r,a=[1,-1,0,-1,1,0,-1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0],s=new Hn;s.setAttribute("position",new an(a,3)),s.computeBoundingSphere(),super(s,new Za({color:i,toneMapped:!1})),this.type="PlaneHelper",this.plane=e,this.size=t;const o=[1,1,0,-1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,-1,0],c=new Hn;c.setAttribute("position",new an(o,3)),c.computeBoundingSphere(),this.add(new Fi(c,new vo({color:i,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}updateMatrixWorld(e){this.position.set(0,0,0),this.scale.set(.5*this.size,.5*this.size,1),this.lookAt(this.plane.normal),this.translateZ(-this.plane.constant),super.updateMatrixWorld(e)}dispose(){this.geometry.dispose(),this.material.dispose(),this.children[0].geometry.dispose(),this.children[0].material.dispose()}}const X5=new ye;let sv,Tx;class iJe extends Zn{constructor(e=new ye(0,0,1),t=new ye(0,0,0),r=1,i=16776960,a=r*.2,s=a*.2){super(),this.type="ArrowHelper",sv===void 0&&(sv=new Hn,sv.setAttribute("position",new an([0,0,0,0,1,0],3)),Tx=new Rf(0,.5,1,5,1),Tx.translate(0,-.5,0)),this.position.copy(t),this.line=new Zl(sv,new Za({color:i,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Fi(Tx,new vo({color:i,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(e),this.setLength(r,a,s)}setDirection(e){if(e.y>.99999)this.quaternion.set(0,0,0,1);else if(e.y<-.99999)this.quaternion.set(1,0,0,0);else{X5.set(e.z,0,-e.x).normalize();const t=Math.acos(e.y);this.quaternion.setFromAxisAngle(X5,t)}}setLength(e,t=e*.2,r=t*.2){this.line.scale.set(1,Math.max(1e-4,e-t),1),this.line.updateMatrix(),this.cone.scale.set(r,t,r),this.cone.position.y=e,this.cone.updateMatrix()}setColor(e){this.line.material.color.set(e),this.cone.material.color.set(e)}copy(e){return super.copy(e,!1),this.line.copy(e.line),this.cone.copy(e.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}}class aJe extends Pc{constructor(e=1){const t=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],r=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],i=new Hn;i.setAttribute("position",new an(t,3)),i.setAttribute("color",new an(r,3));const a=new Za({vertexColors:!0,toneMapped:!1});super(i,a),this.type="AxesHelper"}setColors(e,t,r){const i=new Qt,a=this.geometry.attributes.color.array;return i.set(e),i.toArray(a,0),i.toArray(a,3),i.set(t),i.toArray(a,6),i.toArray(a,9),i.set(r),i.toArray(a,12),i.toArray(a,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}class sJe{constructor(){this.type="ShapePath",this.color=new Qt,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new Jp,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,r,i){return this.currentPath.quadraticCurveTo(e,t,r,i),this}bezierCurveTo(e,t,r,i,a,s){return this.currentPath.bezierCurveTo(e,t,r,i,a,s),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(v){const S=[];for(let C=0,M=v.length;C<M;C++){const F=v[C],D=new AA;D.curves=F.curves,S.push(D)}return S}function r(v,S){const C=S.length;let M=!1;for(let F=C-1,D=0;D<C;F=D++){let U=S[F],O=S[D],T=O.x-U.x,P=O.y-U.y;if(Math.abs(P)>Number.EPSILON){if(P<0&&(U=S[D],T=-T,O=S[F],P=-P),v.y<U.y||v.y>O.y)continue;if(v.y===U.y){if(v.x===U.x)return!0}else{const k=P*(v.x-U.x)-T*(v.y-U.y);if(k===0)return!0;if(k<0)continue;M=!M}}else{if(v.y!==U.y)continue;if(O.x<=v.x&&v.x<=U.x||U.x<=v.x&&v.x<=O.x)return!0}}return M}const i=el.isClockWise,a=this.subPaths;if(a.length===0)return[];let s,o,c;const l=[];if(a.length===1)return o=a[0],c=new AA,c.curves=o.curves,l.push(c),l;let u=!i(a[0].getPoints());u=e?!u:u;const A=[],f=[];let h=[],g=0,y;f[g]=void 0,h[g]=[];for(let v=0,S=a.length;v<S;v++)o=a[v],y=o.getPoints(),s=i(y),s=e?!s:s,s?(!u&&f[g]&&g++,f[g]={s:new AA,p:y},f[g].s.curves=o.curves,u&&g++,h[g]=[]):h[g].push({h:o,p:y[0]});if(!f[0])return t(a);if(f.length>1){let v=!1,S=0;for(let C=0,M=f.length;C<M;C++)A[C]=[];for(let C=0,M=f.length;C<M;C++){const F=h[C];for(let D=0;D<F.length;D++){const U=F[D];let O=!0;for(let T=0;T<f.length;T++)r(U.p,f[T].p)&&(C!==T&&S++,O?(O=!1,A[T].push(U)):v=!0);O&&A[C].push(U)}}S>0&&v===!1&&(h=A)}let w;for(let v=0,S=f.length;v<S;v++){c=f[v].s,l.push(c),w=h[v];for(let C=0,M=w.length;C<M;C++)c.holes.push(w[C].h)}return l}}class t$ extends sl{constructor(e,t=null){super(),this.object=e,this.domElement=t,this.enabled=!0,this.state=-1,this.keys={},this.mouseButtons={LEFT:null,MIDDLE:null,RIGHT:null},this.touches={ONE:null,TWO:null}}connect(){}disconnect(){}dispose(){}update(){}}function oJe(n,e){const t=n.image&&n.image.width?n.image.width/n.image.height:1;return t>e?(n.repeat.x=1,n.repeat.y=t/e,n.offset.x=0,n.offset.y=(1-n.repeat.y)/2):(n.repeat.x=e/t,n.repeat.y=1,n.offset.x=(1-n.repeat.x)/2,n.offset.y=0),n}function cJe(n,e){const t=n.image&&n.image.width?n.image.width/n.image.height:1;return t>e?(n.repeat.x=e/t,n.repeat.y=1,n.offset.x=(1-n.repeat.x)/2,n.offset.y=0):(n.repeat.x=1,n.repeat.y=t/e,n.offset.x=0,n.offset.y=(1-n.repeat.y)/2),n}function lJe(n){return n.repeat.x=1,n.repeat.y=1,n.offset.x=0,n.offset.y=0,n}function LM(n,e,t,r){const i=uJe(r);switch(t){case dP:return n*e;case hP:return n*e;case fP:return n*e*2;case fb:return n*e/i.components*i.byteLength;case Eg:return n*e/i.components*i.byteLength;case mP:return n*e*2/i.components*i.byteLength;case mb:return n*e*2/i.components*i.byteLength;case AP:return n*e*3/i.components*i.byteLength;case Ms:return n*e*4/i.components*i.byteLength;case pb:return n*e*4/i.components*i.byteLength;case op:case cp:return Math.floor((n+3)/4)*Math.floor((e+3)/4)*8;case lp:case up:return Math.floor((n+3)/4)*Math.floor((e+3)/4)*16;case zy:case Gy:return Math.max(n,16)*Math.max(e,8)/4;case jy:case Vy:return Math.max(n,8)*Math.max(e,8)/2;case Ky:case qy:return Math.floor((n+3)/4)*Math.floor((e+3)/4)*8;case Xy:return Math.floor((n+3)/4)*Math.floor((e+3)/4)*16;case Yy:return Math.floor((n+3)/4)*Math.floor((e+3)/4)*16;case Jy:return Math.floor((n+4)/5)*Math.floor((e+3)/4)*16;case Zy:return Math.floor((n+4)/5)*Math.floor((e+4)/5)*16;case ew:return Math.floor((n+5)/6)*Math.floor((e+4)/5)*16;case tw:return Math.floor((n+5)/6)*Math.floor((e+5)/6)*16;case nw:return Math.floor((n+7)/8)*Math.floor((e+4)/5)*16;case rw:return Math.floor((n+7)/8)*Math.floor((e+5)/6)*16;case iw:return Math.floor((n+7)/8)*Math.floor((e+7)/8)*16;case aw:return Math.floor((n+9)/10)*Math.floor((e+4)/5)*16;case sw:return Math.floor((n+9)/10)*Math.floor((e+5)/6)*16;case ow:return Math.floor((n+9)/10)*Math.floor((e+7)/8)*16;case cw:return Math.floor((n+9)/10)*Math.floor((e+9)/10)*16;case lw:return Math.floor((n+11)/12)*Math.floor((e+9)/10)*16;case uw:return Math.floor((n+11)/12)*Math.floor((e+11)/12)*16;case dp:case dw:case Aw:return Math.ceil(n/4)*Math.ceil(e/4)*16;case pP:case hw:return Math.ceil(n/4)*Math.ceil(e/4)*8;case fw:case mw:return Math.ceil(n/4)*Math.ceil(e/4)*16}throw new Error(`Unable to determine texture byte length for ${t} format.`)}function uJe(n){switch(n){case il:case cP:return{byteLength:1,components:1};case mf:case lP:case Df:return{byteLength:2,components:1};case Ab:case hb:return{byteLength:2,components:4};case Jl:case db:case zs:return{byteLength:4,components:1};case uP:return{byteLength:4,components:3}}throw new Error(`Unknown texture type ${n}.`)}const dJe={contain:oJe,cover:cJe,fill:lJe,getByteLength:LM};class AJe extends wc{constructor(e=1,t=1,r=1,i={}){super(e,t,{...i,count:r}),this.isWebGLMultipleRenderTargets=!0}get texture(){return this.textures}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:cb}}));typeof window<"u"&&(window.__THREE__||(window.__THREE__=cb));/**
 * @license
 * Copyright 2010-2024 Three.js Authors
 * SPDX-License-Identifier: MIT
 */function n$(){let n=null,e=!1,t=null,r=null;function i(a,s){t(a,s),r=n.requestAnimationFrame(i)}return{start:function(){e!==!0&&t!==null&&(r=n.requestAnimationFrame(i),e=!0)},stop:function(){n.cancelAnimationFrame(r),e=!1},setAnimationLoop:function(a){t=a},setContext:function(a){n=a}}}function hJe(n){const e=new WeakMap;function t(o,c){const l=o.array,u=o.usage,A=l.byteLength,f=n.createBuffer();n.bindBuffer(c,f),n.bufferData(c,l,u),o.onUploadCallback();let h;if(l instanceof Float32Array)h=n.FLOAT;else if(l instanceof Uint16Array)o.isFloat16BufferAttribute?h=n.HALF_FLOAT:h=n.UNSIGNED_SHORT;else if(l instanceof Int16Array)h=n.SHORT;else if(l instanceof Uint32Array)h=n.UNSIGNED_INT;else if(l instanceof Int32Array)h=n.INT;else if(l instanceof Int8Array)h=n.BYTE;else if(l instanceof Uint8Array)h=n.UNSIGNED_BYTE;else if(l instanceof Uint8ClampedArray)h=n.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+l);return{buffer:f,type:h,bytesPerElement:l.BYTES_PER_ELEMENT,version:o.version,size:A}}function r(o,c,l){const u=c.array,A=c.updateRanges;if(n.bindBuffer(l,o),A.length===0)n.bufferSubData(l,0,u);else{A.sort((h,g)=>h.start-g.start);let f=0;for(let h=1;h<A.length;h++){const g=A[f],y=A[h];y.start<=g.start+g.count+1?g.count=Math.max(g.count,y.start+y.count-g.start):(++f,A[f]=y)}A.length=f+1;for(let h=0,g=A.length;h<g;h++){const y=A[h];n.bufferSubData(l,y.start*u.BYTES_PER_ELEMENT,u,y.start,y.count)}c.clearUpdateRanges()}c.onUploadCallback()}function i(o){return o.isInterleavedBufferAttribute&&(o=o.data),e.get(o)}function a(o){o.isInterleavedBufferAttribute&&(o=o.data);const c=e.get(o);c&&(n.deleteBuffer(c.buffer),e.delete(o))}function s(o,c){if(o.isInterleavedBufferAttribute&&(o=o.data),o.isGLBufferAttribute){const u=e.get(o);(!u||u.version<o.version)&&e.set(o,{buffer:o.buffer,type:o.type,bytesPerElement:o.elementSize,version:o.version});return}const l=e.get(o);if(l===void 0)e.set(o,t(o,c));else if(l.version<o.version){if(l.size!==o.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");r(l.buffer,o,c),l.version=o.version}}return{get:i,remove:a,update:s}}var fJe=`#ifdef USE_ALPHAHASH
	if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
#endif`,mJe=`#ifdef USE_ALPHAHASH
	const float ALPHA_HASH_SCALE = 0.05;
	float hash2D( vec2 value ) {
		return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );
	}
	float hash3D( vec3 value ) {
		return hash2D( vec2( hash2D( value.xy ), value.z ) );
	}
	float getAlphaHashThreshold( vec3 position ) {
		float maxDeriv = max(
			length( dFdx( position.xyz ) ),
			length( dFdy( position.xyz ) )
		);
		float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );
		vec2 pixScales = vec2(
			exp2( floor( log2( pixScale ) ) ),
			exp2( ceil( log2( pixScale ) ) )
		);
		vec2 alpha = vec2(
			hash3D( floor( pixScales.x * position.xyz ) ),
			hash3D( floor( pixScales.y * position.xyz ) )
		);
		float lerpFactor = fract( log2( pixScale ) );
		float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;
		float a = min( lerpFactor, 1.0 - lerpFactor );
		vec3 cases = vec3(
			x * x / ( 2.0 * a * ( 1.0 - a ) ),
			( x - 0.5 * a ) / ( 1.0 - a ),
			1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )
		);
		float threshold = ( x < ( 1.0 - a ) )
			? ( ( x < a ) ? cases.x : cases.y )
			: cases.z;
		return clamp( threshold , 1.0e-6, 1.0 );
	}
#endif`,pJe=`#ifdef USE_ALPHAMAP
	diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;
#endif`,gJe=`#ifdef USE_ALPHAMAP
	uniform sampler2D alphaMap;
#endif`,vJe=`#ifdef USE_ALPHATEST
	#ifdef ALPHA_TO_COVERAGE
	diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );
	if ( diffuseColor.a == 0.0 ) discard;
	#else
	if ( diffuseColor.a < alphaTest ) discard;
	#endif
#endif`,yJe=`#ifdef USE_ALPHATEST
	uniform float alphaTest;
#endif`,wJe=`#ifdef USE_AOMAP
	float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
	reflectedLight.indirectDiffuse *= ambientOcclusion;
	#if defined( USE_CLEARCOAT ) 
		clearcoatSpecularIndirect *= ambientOcclusion;
	#endif
	#if defined( USE_SHEEN ) 
		sheenSpecularIndirect *= ambientOcclusion;
	#endif
	#if defined( USE_ENVMAP ) && defined( STANDARD )
		float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
		reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
	#endif
#endif`,bJe=`#ifdef USE_AOMAP
	uniform sampler2D aoMap;
	uniform float aoMapIntensity;
#endif`,_Je=`#ifdef USE_BATCHING
	#if ! defined( GL_ANGLE_multi_draw )
	#define gl_DrawID _gl_DrawID
	uniform int _gl_DrawID;
	#endif
	uniform highp sampler2D batchingTexture;
	uniform highp usampler2D batchingIdTexture;
	mat4 getBatchingMatrix( const in float i ) {
		int size = textureSize( batchingTexture, 0 ).x;
		int j = int( i ) * 4;
		int x = j % size;
		int y = j / size;
		vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );
		vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );
		vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );
		vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );
		return mat4( v1, v2, v3, v4 );
	}
	float getIndirectIndex( const in int i ) {
		int size = textureSize( batchingIdTexture, 0 ).x;
		int x = i % size;
		int y = i / size;
		return float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r );
	}
#endif
#ifdef USE_BATCHING_COLOR
	uniform sampler2D batchingColorTexture;
	vec3 getBatchingColor( const in float i ) {
		int size = textureSize( batchingColorTexture, 0 ).x;
		int j = int( i );
		int x = j % size;
		int y = j / size;
		return texelFetch( batchingColorTexture, ivec2( x, y ), 0 ).rgb;
	}
#endif`,xJe=`#ifdef USE_BATCHING
	mat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) );
#endif`,MJe=`vec3 transformed = vec3( position );
#ifdef USE_ALPHAHASH
	vPosition = vec3( position );
#endif`,SJe=`vec3 objectNormal = vec3( normal );
#ifdef USE_TANGENT
	vec3 objectTangent = vec3( tangent.xyz );
#endif`,CJe=`float G_BlinnPhong_Implicit( ) {
	return 0.25;
}
float D_BlinnPhong( const in float shininess, const in float dotNH ) {
	return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
}
vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {
	vec3 halfDir = normalize( lightDir + viewDir );
	float dotNH = saturate( dot( normal, halfDir ) );
	float dotVH = saturate( dot( viewDir, halfDir ) );
	vec3 F = F_Schlick( specularColor, 1.0, dotVH );
	float G = G_BlinnPhong_Implicit( );
	float D = D_BlinnPhong( shininess, dotNH );
	return F * ( G * D );
} // validated`,PJe=`#ifdef USE_IRIDESCENCE
	const mat3 XYZ_TO_REC709 = mat3(
		 3.2404542, -0.9692660,  0.0556434,
		-1.5371385,  1.8760108, -0.2040259,
		-0.4985314,  0.0415560,  1.0572252
	);
	vec3 Fresnel0ToIor( vec3 fresnel0 ) {
		vec3 sqrtF0 = sqrt( fresnel0 );
		return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );
	}
	vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {
		return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );
	}
	float IorToFresnel0( float transmittedIor, float incidentIor ) {
		return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));
	}
	vec3 evalSensitivity( float OPD, vec3 shift ) {
		float phase = 2.0 * PI * OPD * 1.0e-9;
		vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );
		vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
		vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
		vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );
		xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );
		xyz /= 1.0685e-7;
		vec3 rgb = XYZ_TO_REC709 * xyz;
		return rgb;
	}
	vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {
		vec3 I;
		float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );
		float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );
		float cosTheta2Sq = 1.0 - sinTheta2Sq;
		if ( cosTheta2Sq < 0.0 ) {
			return vec3( 1.0 );
		}
		float cosTheta2 = sqrt( cosTheta2Sq );
		float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
		float R12 = F_Schlick( R0, 1.0, cosTheta1 );
		float T121 = 1.0 - R12;
		float phi12 = 0.0;
		if ( iridescenceIOR < outsideIOR ) phi12 = PI;
		float phi21 = PI - phi12;
		vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );		vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );
		vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );
		vec3 phi23 = vec3( 0.0 );
		if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;
		if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;
		if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;
		float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;
		vec3 phi = vec3( phi21 ) + phi23;
		vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );
		vec3 r123 = sqrt( R123 );
		vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );
		vec3 C0 = R12 + Rs;
		I = C0;
		vec3 Cm = Rs - T121;
		for ( int m = 1; m <= 2; ++ m ) {
			Cm *= r123;
			vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );
			I += Cm * Sm;
		}
		return max( I, vec3( 0.0 ) );
	}
#endif`,EJe=`#ifdef USE_BUMPMAP
	uniform sampler2D bumpMap;
	uniform float bumpScale;
	vec2 dHdxy_fwd() {
		vec2 dSTdx = dFdx( vBumpMapUv );
		vec2 dSTdy = dFdy( vBumpMapUv );
		float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;
		float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;
		float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;
		return vec2( dBx, dBy );
	}
	vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {
		vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );
		vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );
		vec3 vN = surf_norm;
		vec3 R1 = cross( vSigmaY, vN );
		vec3 R2 = cross( vN, vSigmaX );
		float fDet = dot( vSigmaX, R1 ) * faceDirection;
		vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
		return normalize( abs( fDet ) * surf_norm - vGrad );
	}
#endif`,BJe=`#if NUM_CLIPPING_PLANES > 0
	vec4 plane;
	#ifdef ALPHA_TO_COVERAGE
		float distanceToPlane, distanceGradient;
		float clipOpacity = 1.0;
		#pragma unroll_loop_start
		for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
			plane = clippingPlanes[ i ];
			distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
			distanceGradient = fwidth( distanceToPlane ) / 2.0;
			clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
			if ( clipOpacity == 0.0 ) discard;
		}
		#pragma unroll_loop_end
		#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
			float unionClipOpacity = 1.0;
			#pragma unroll_loop_start
			for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
				plane = clippingPlanes[ i ];
				distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
				distanceGradient = fwidth( distanceToPlane ) / 2.0;
				unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
			}
			#pragma unroll_loop_end
			clipOpacity *= 1.0 - unionClipOpacity;
		#endif
		diffuseColor.a *= clipOpacity;
		if ( diffuseColor.a == 0.0 ) discard;
	#else
		#pragma unroll_loop_start
		for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
			plane = clippingPlanes[ i ];
			if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;
		}
		#pragma unroll_loop_end
		#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
			bool clipped = true;
			#pragma unroll_loop_start
			for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
				plane = clippingPlanes[ i ];
				clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;
			}
			#pragma unroll_loop_end
			if ( clipped ) discard;
		#endif
	#endif
#endif`,TJe=`#if NUM_CLIPPING_PLANES > 0
	varying vec3 vClipPosition;
	uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
#endif`,kJe=`#if NUM_CLIPPING_PLANES > 0
	varying vec3 vClipPosition;
#endif`,IJe=`#if NUM_CLIPPING_PLANES > 0
	vClipPosition = - mvPosition.xyz;
#endif`,LJe=`#if defined( USE_COLOR_ALPHA )
	diffuseColor *= vColor;
#elif defined( USE_COLOR )
	diffuseColor.rgb *= vColor;
#endif`,FJe=`#if defined( USE_COLOR_ALPHA )
	varying vec4 vColor;
#elif defined( USE_COLOR )
	varying vec3 vColor;
#endif`,NJe=`#if defined( USE_COLOR_ALPHA )
	varying vec4 vColor;
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )
	varying vec3 vColor;
#endif`,DJe=`#if defined( USE_COLOR_ALPHA )
	vColor = vec4( 1.0 );
#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )
	vColor = vec3( 1.0 );
#endif
#ifdef USE_COLOR
	vColor *= color;
#endif
#ifdef USE_INSTANCING_COLOR
	vColor.xyz *= instanceColor.xyz;
#endif
#ifdef USE_BATCHING_COLOR
	vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) );
	vColor.xyz *= batchingColor.xyz;
#endif`,RJe=`#define PI 3.141592653589793
#define PI2 6.283185307179586
#define PI_HALF 1.5707963267948966
#define RECIPROCAL_PI 0.3183098861837907
#define RECIPROCAL_PI2 0.15915494309189535
#define EPSILON 1e-6
#ifndef saturate
#define saturate( a ) clamp( a, 0.0, 1.0 )
#endif
#define whiteComplement( a ) ( 1.0 - saturate( a ) )
float pow2( const in float x ) { return x*x; }
vec3 pow2( const in vec3 x ) { return x*x; }
float pow3( const in float x ) { return x*x*x; }
float pow4( const in float x ) { float x2 = x*x; return x2*x2; }
float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }
float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }
highp float rand( const in vec2 uv ) {
	const highp float a = 12.9898, b = 78.233, c = 43758.5453;
	highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );
	return fract( sin( sn ) * c );
}
#ifdef HIGH_PRECISION
	float precisionSafeLength( vec3 v ) { return length( v ); }
#else
	float precisionSafeLength( vec3 v ) {
		float maxComponent = max3( abs( v ) );
		return length( v / maxComponent ) * maxComponent;
	}
#endif
struct IncidentLight {
	vec3 color;
	vec3 direction;
	bool visible;
};
struct ReflectedLight {
	vec3 directDiffuse;
	vec3 directSpecular;
	vec3 indirectDiffuse;
	vec3 indirectSpecular;
};
#ifdef USE_ALPHAHASH
	varying vec3 vPosition;
#endif
vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
	return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
}
vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {
	return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );
}
mat3 transposeMat3( const in mat3 m ) {
	mat3 tmp;
	tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );
	tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );
	tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );
	return tmp;
}
bool isPerspectiveMatrix( mat4 m ) {
	return m[ 2 ][ 3 ] == - 1.0;
}
vec2 equirectUv( in vec3 dir ) {
	float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;
	float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
	return vec2( u, v );
}
vec3 BRDF_Lambert( const in vec3 diffuseColor ) {
	return RECIPROCAL_PI * diffuseColor;
}
vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
}
float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
} // validated`,UJe=`#ifdef ENVMAP_TYPE_CUBE_UV
	#define cubeUV_minMipLevel 4.0
	#define cubeUV_minTileSize 16.0
	float getFace( vec3 direction ) {
		vec3 absDirection = abs( direction );
		float face = - 1.0;
		if ( absDirection.x > absDirection.z ) {
			if ( absDirection.x > absDirection.y )
				face = direction.x > 0.0 ? 0.0 : 3.0;
			else
				face = direction.y > 0.0 ? 1.0 : 4.0;
		} else {
			if ( absDirection.z > absDirection.y )
				face = direction.z > 0.0 ? 2.0 : 5.0;
			else
				face = direction.y > 0.0 ? 1.0 : 4.0;
		}
		return face;
	}
	vec2 getUV( vec3 direction, float face ) {
		vec2 uv;
		if ( face == 0.0 ) {
			uv = vec2( direction.z, direction.y ) / abs( direction.x );
		} else if ( face == 1.0 ) {
			uv = vec2( - direction.x, - direction.z ) / abs( direction.y );
		} else if ( face == 2.0 ) {
			uv = vec2( - direction.x, direction.y ) / abs( direction.z );
		} else if ( face == 3.0 ) {
			uv = vec2( - direction.z, direction.y ) / abs( direction.x );
		} else if ( face == 4.0 ) {
			uv = vec2( - direction.x, direction.z ) / abs( direction.y );
		} else {
			uv = vec2( direction.x, direction.y ) / abs( direction.z );
		}
		return 0.5 * ( uv + 1.0 );
	}
	vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {
		float face = getFace( direction );
		float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );
		mipInt = max( mipInt, cubeUV_minMipLevel );
		float faceSize = exp2( mipInt );
		highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;
		if ( face > 2.0 ) {
			uv.y += faceSize;
			face -= 3.0;
		}
		uv.x += face * faceSize;
		uv.x += filterInt * 3.0 * cubeUV_minTileSize;
		uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );
		uv.x *= CUBEUV_TEXEL_WIDTH;
		uv.y *= CUBEUV_TEXEL_HEIGHT;
		#ifdef texture2DGradEXT
			return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;
		#else
			return texture2D( envMap, uv ).rgb;
		#endif
	}
	#define cubeUV_r0 1.0
	#define cubeUV_m0 - 2.0
	#define cubeUV_r1 0.8
	#define cubeUV_m1 - 1.0
	#define cubeUV_r4 0.4
	#define cubeUV_m4 2.0
	#define cubeUV_r5 0.305
	#define cubeUV_m5 3.0
	#define cubeUV_r6 0.21
	#define cubeUV_m6 4.0
	float roughnessToMip( float roughness ) {
		float mip = 0.0;
		if ( roughness >= cubeUV_r1 ) {
			mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;
		} else if ( roughness >= cubeUV_r4 ) {
			mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;
		} else if ( roughness >= cubeUV_r5 ) {
			mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;
		} else if ( roughness >= cubeUV_r6 ) {
			mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;
		} else {
			mip = - 2.0 * log2( 1.16 * roughness );		}
		return mip;
	}
	vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {
		float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );
		float mipF = fract( mip );
		float mipInt = floor( mip );
		vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );
		if ( mipF == 0.0 ) {
			return vec4( color0, 1.0 );
		} else {
			vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );
			return vec4( mix( color0, color1, mipF ), 1.0 );
		}
	}
#endif`,OJe=`vec3 transformedNormal = objectNormal;
#ifdef USE_TANGENT
	vec3 transformedTangent = objectTangent;
#endif
#ifdef USE_BATCHING
	mat3 bm = mat3( batchingMatrix );
	transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );
	transformedNormal = bm * transformedNormal;
	#ifdef USE_TANGENT
		transformedTangent = bm * transformedTangent;
	#endif
#endif
#ifdef USE_INSTANCING
	mat3 im = mat3( instanceMatrix );
	transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );
	transformedNormal = im * transformedNormal;
	#ifdef USE_TANGENT
		transformedTangent = im * transformedTangent;
	#endif
#endif
transformedNormal = normalMatrix * transformedNormal;
#ifdef FLIP_SIDED
	transformedNormal = - transformedNormal;
#endif
#ifdef USE_TANGENT
	transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;
	#ifdef FLIP_SIDED
		transformedTangent = - transformedTangent;
	#endif
#endif`,HJe=`#ifdef USE_DISPLACEMENTMAP
	uniform sampler2D displacementMap;
	uniform float displacementScale;
	uniform float displacementBias;
#endif`,WJe=`#ifdef USE_DISPLACEMENTMAP
	transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );
#endif`,QJe=`#ifdef USE_EMISSIVEMAP
	vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
	#ifdef DECODE_VIDEO_TEXTURE_EMISSIVE
		emissiveColor = sRGBTransferEOTF( emissiveColor );
	#endif
	totalEmissiveRadiance *= emissiveColor.rgb;
#endif`,$Je=`#ifdef USE_EMISSIVEMAP
	uniform sampler2D emissiveMap;
#endif`,jJe="gl_FragColor = linearToOutputTexel( gl_FragColor );",zJe=`vec4 LinearTransferOETF( in vec4 value ) {
	return value;
}
vec4 sRGBTransferEOTF( in vec4 value ) {
	return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );
}
vec4 sRGBTransferOETF( in vec4 value ) {
	return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );
}`,VJe=`#ifdef USE_ENVMAP
	#ifdef ENV_WORLDPOS
		vec3 cameraToFrag;
		if ( isOrthographic ) {
			cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
		} else {
			cameraToFrag = normalize( vWorldPosition - cameraPosition );
		}
		vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
		#ifdef ENVMAP_MODE_REFLECTION
			vec3 reflectVec = reflect( cameraToFrag, worldNormal );
		#else
			vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );
		#endif
	#else
		vec3 reflectVec = vReflect;
	#endif
	#ifdef ENVMAP_TYPE_CUBE
		vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );
	#else
		vec4 envColor = vec4( 0.0 );
	#endif
	#ifdef ENVMAP_BLENDING_MULTIPLY
		outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );
	#elif defined( ENVMAP_BLENDING_MIX )
		outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );
	#elif defined( ENVMAP_BLENDING_ADD )
		outgoingLight += envColor.xyz * specularStrength * reflectivity;
	#endif
#endif`,GJe=`#ifdef USE_ENVMAP
	uniform float envMapIntensity;
	uniform float flipEnvMap;
	uniform mat3 envMapRotation;
	#ifdef ENVMAP_TYPE_CUBE
		uniform samplerCube envMap;
	#else
		uniform sampler2D envMap;
	#endif
	
#endif`,KJe=`#ifdef USE_ENVMAP
	uniform float reflectivity;
	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
		#define ENV_WORLDPOS
	#endif
	#ifdef ENV_WORLDPOS
		varying vec3 vWorldPosition;
		uniform float refractionRatio;
	#else
		varying vec3 vReflect;
	#endif
#endif`,qJe=`#ifdef USE_ENVMAP
	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
		#define ENV_WORLDPOS
	#endif
	#ifdef ENV_WORLDPOS
		
		varying vec3 vWorldPosition;
	#else
		varying vec3 vReflect;
		uniform float refractionRatio;
	#endif
#endif`,XJe=`#ifdef USE_ENVMAP
	#ifdef ENV_WORLDPOS
		vWorldPosition = worldPosition.xyz;
	#else
		vec3 cameraToVertex;
		if ( isOrthographic ) {
			cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
		} else {
			cameraToVertex = normalize( worldPosition.xyz - cameraPosition );
		}
		vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
		#ifdef ENVMAP_MODE_REFLECTION
			vReflect = reflect( cameraToVertex, worldNormal );
		#else
			vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
		#endif
	#endif
#endif`,YJe=`#ifdef USE_FOG
	vFogDepth = - mvPosition.z;
#endif`,JJe=`#ifdef USE_FOG
	varying float vFogDepth;
#endif`,ZJe=`#ifdef USE_FOG
	#ifdef FOG_EXP2
		float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
	#else
		float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
	#endif
	gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
#endif`,eZe=`#ifdef USE_FOG
	uniform vec3 fogColor;
	varying float vFogDepth;
	#ifdef FOG_EXP2
		uniform float fogDensity;
	#else
		uniform float fogNear;
		uniform float fogFar;
	#endif
#endif`,tZe=`#ifdef USE_GRADIENTMAP
	uniform sampler2D gradientMap;
#endif
vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
	float dotNL = dot( normal, lightDirection );
	vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );
	#ifdef USE_GRADIENTMAP
		return vec3( texture2D( gradientMap, coord ).r );
	#else
		vec2 fw = fwidth( coord ) * 0.5;
		return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );
	#endif
}`,nZe=`#ifdef USE_LIGHTMAP
	uniform sampler2D lightMap;
	uniform float lightMapIntensity;
#endif`,rZe=`LambertMaterial material;
material.diffuseColor = diffuseColor.rgb;
material.specularStrength = specularStrength;`,iZe=`varying vec3 vViewPosition;
struct LambertMaterial {
	vec3 diffuseColor;
	float specularStrength;
};
void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
	vec3 irradiance = dotNL * directLight.color;
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct				RE_Direct_Lambert
#define RE_IndirectDiffuse		RE_IndirectDiffuse_Lambert`,aZe=`uniform bool receiveShadow;
uniform vec3 ambientLightColor;
#if defined( USE_LIGHT_PROBES )
	uniform vec3 lightProbe[ 9 ];
#endif
vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {
	float x = normal.x, y = normal.y, z = normal.z;
	vec3 result = shCoefficients[ 0 ] * 0.886227;
	result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;
	result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;
	result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;
	result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;
	result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;
	result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );
	result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;
	result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );
	return result;
}
vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {
	vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
	vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );
	return irradiance;
}
vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
	vec3 irradiance = ambientLightColor;
	return irradiance;
}
float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {
	float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );
	if ( cutoffDistance > 0.0 ) {
		distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );
	}
	return distanceFalloff;
}
float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {
	return smoothstep( coneCosine, penumbraCosine, angleCosine );
}
#if NUM_DIR_LIGHTS > 0
	struct DirectionalLight {
		vec3 direction;
		vec3 color;
	};
	uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
	void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {
		light.color = directionalLight.color;
		light.direction = directionalLight.direction;
		light.visible = true;
	}
#endif
#if NUM_POINT_LIGHTS > 0
	struct PointLight {
		vec3 position;
		vec3 color;
		float distance;
		float decay;
	};
	uniform PointLight pointLights[ NUM_POINT_LIGHTS ];
	void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {
		vec3 lVector = pointLight.position - geometryPosition;
		light.direction = normalize( lVector );
		float lightDistance = length( lVector );
		light.color = pointLight.color;
		light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );
		light.visible = ( light.color != vec3( 0.0 ) );
	}
#endif
#if NUM_SPOT_LIGHTS > 0
	struct SpotLight {
		vec3 position;
		vec3 direction;
		vec3 color;
		float distance;
		float decay;
		float coneCos;
		float penumbraCos;
	};
	uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];
	void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {
		vec3 lVector = spotLight.position - geometryPosition;
		light.direction = normalize( lVector );
		float angleCos = dot( light.direction, spotLight.direction );
		float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );
		if ( spotAttenuation > 0.0 ) {
			float lightDistance = length( lVector );
			light.color = spotLight.color * spotAttenuation;
			light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );
			light.visible = ( light.color != vec3( 0.0 ) );
		} else {
			light.color = vec3( 0.0 );
			light.visible = false;
		}
	}
#endif
#if NUM_RECT_AREA_LIGHTS > 0
	struct RectAreaLight {
		vec3 color;
		vec3 position;
		vec3 halfWidth;
		vec3 halfHeight;
	};
	uniform sampler2D ltc_1;	uniform sampler2D ltc_2;
	uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];
#endif
#if NUM_HEMI_LIGHTS > 0
	struct HemisphereLight {
		vec3 direction;
		vec3 skyColor;
		vec3 groundColor;
	};
	uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];
	vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {
		float dotNL = dot( normal, hemiLight.direction );
		float hemiDiffuseWeight = 0.5 * dotNL + 0.5;
		vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
		return irradiance;
	}
#endif`,sZe=`#ifdef USE_ENVMAP
	vec3 getIBLIrradiance( const in vec3 normal ) {
		#ifdef ENVMAP_TYPE_CUBE_UV
			vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
			vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );
			return PI * envMapColor.rgb * envMapIntensity;
		#else
			return vec3( 0.0 );
		#endif
	}
	vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
		#ifdef ENVMAP_TYPE_CUBE_UV
			vec3 reflectVec = reflect( - viewDir, normal );
			reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );
			reflectVec = inverseTransformDirection( reflectVec, viewMatrix );
			vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );
			return envMapColor.rgb * envMapIntensity;
		#else
			return vec3( 0.0 );
		#endif
	}
	#ifdef USE_ANISOTROPY
		vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {
			#ifdef ENVMAP_TYPE_CUBE_UV
				vec3 bentNormal = cross( bitangent, viewDir );
				bentNormal = normalize( cross( bentNormal, bitangent ) );
				bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );
				return getIBLRadiance( viewDir, bentNormal, roughness );
			#else
				return vec3( 0.0 );
			#endif
		}
	#endif
#endif`,oZe=`ToonMaterial material;
material.diffuseColor = diffuseColor.rgb;`,cZe=`varying vec3 vViewPosition;
struct ToonMaterial {
	vec3 diffuseColor;
};
void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
	vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct				RE_Direct_Toon
#define RE_IndirectDiffuse		RE_IndirectDiffuse_Toon`,lZe=`BlinnPhongMaterial material;
material.diffuseColor = diffuseColor.rgb;
material.specularColor = specular;
material.specularShininess = shininess;
material.specularStrength = specularStrength;`,uZe=`varying vec3 vViewPosition;
struct BlinnPhongMaterial {
	vec3 diffuseColor;
	vec3 specularColor;
	float specularShininess;
	float specularStrength;
};
void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
	vec3 irradiance = dotNL * directLight.color;
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
	reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;
}
void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
#define RE_Direct				RE_Direct_BlinnPhong
#define RE_IndirectDiffuse		RE_IndirectDiffuse_BlinnPhong`,dZe=`PhysicalMaterial material;
material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );
float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;
material.roughness = min( material.roughness, 1.0 );
#ifdef IOR
	material.ior = ior;
	#ifdef USE_SPECULAR
		float specularIntensityFactor = specularIntensity;
		vec3 specularColorFactor = specularColor;
		#ifdef USE_SPECULAR_COLORMAP
			specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;
		#endif
		#ifdef USE_SPECULAR_INTENSITYMAP
			specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;
		#endif
		material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );
	#else
		float specularIntensityFactor = 1.0;
		vec3 specularColorFactor = vec3( 1.0 );
		material.specularF90 = 1.0;
	#endif
	material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );
#else
	material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );
	material.specularF90 = 1.0;
#endif
#ifdef USE_CLEARCOAT
	material.clearcoat = clearcoat;
	material.clearcoatRoughness = clearcoatRoughness;
	material.clearcoatF0 = vec3( 0.04 );
	material.clearcoatF90 = 1.0;
	#ifdef USE_CLEARCOATMAP
		material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;
	#endif
	#ifdef USE_CLEARCOAT_ROUGHNESSMAP
		material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;
	#endif
	material.clearcoat = saturate( material.clearcoat );	material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );
	material.clearcoatRoughness += geometryRoughness;
	material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );
#endif
#ifdef USE_DISPERSION
	material.dispersion = dispersion;
#endif
#ifdef USE_IRIDESCENCE
	material.iridescence = iridescence;
	material.iridescenceIOR = iridescenceIOR;
	#ifdef USE_IRIDESCENCEMAP
		material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;
	#endif
	#ifdef USE_IRIDESCENCE_THICKNESSMAP
		material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;
	#else
		material.iridescenceThickness = iridescenceThicknessMaximum;
	#endif
#endif
#ifdef USE_SHEEN
	material.sheenColor = sheenColor;
	#ifdef USE_SHEEN_COLORMAP
		material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;
	#endif
	material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );
	#ifdef USE_SHEEN_ROUGHNESSMAP
		material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;
	#endif
#endif
#ifdef USE_ANISOTROPY
	#ifdef USE_ANISOTROPYMAP
		mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );
		vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;
		vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;
	#else
		vec2 anisotropyV = anisotropyVector;
	#endif
	material.anisotropy = length( anisotropyV );
	if( material.anisotropy == 0.0 ) {
		anisotropyV = vec2( 1.0, 0.0 );
	} else {
		anisotropyV /= material.anisotropy;
		material.anisotropy = saturate( material.anisotropy );
	}
	material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
	material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
	material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
#endif`,AZe=`struct PhysicalMaterial {
	vec3 diffuseColor;
	float roughness;
	vec3 specularColor;
	float specularF90;
	float dispersion;
	#ifdef USE_CLEARCOAT
		float clearcoat;
		float clearcoatRoughness;
		vec3 clearcoatF0;
		float clearcoatF90;
	#endif
	#ifdef USE_IRIDESCENCE
		float iridescence;
		float iridescenceIOR;
		float iridescenceThickness;
		vec3 iridescenceFresnel;
		vec3 iridescenceF0;
	#endif
	#ifdef USE_SHEEN
		vec3 sheenColor;
		float sheenRoughness;
	#endif
	#ifdef IOR
		float ior;
	#endif
	#ifdef USE_TRANSMISSION
		float transmission;
		float transmissionAlpha;
		float thickness;
		float attenuationDistance;
		vec3 attenuationColor;
	#endif
	#ifdef USE_ANISOTROPY
		float anisotropy;
		float alphaT;
		vec3 anisotropyT;
		vec3 anisotropyB;
	#endif
};
vec3 clearcoatSpecularDirect = vec3( 0.0 );
vec3 clearcoatSpecularIndirect = vec3( 0.0 );
vec3 sheenSpecularDirect = vec3( 0.0 );
vec3 sheenSpecularIndirect = vec3(0.0 );
vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {
    float x = clamp( 1.0 - dotVH, 0.0, 1.0 );
    float x2 = x * x;
    float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );
    return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );
}
float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {
	float a2 = pow2( alpha );
	float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
	float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
	return 0.5 / max( gv + gl, EPSILON );
}
float D_GGX( const in float alpha, const in float dotNH ) {
	float a2 = pow2( alpha );
	float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;
	return RECIPROCAL_PI * a2 / pow2( denom );
}
#ifdef USE_ANISOTROPY
	float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {
		float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );
		float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );
		float v = 0.5 / ( gv + gl );
		return saturate(v);
	}
	float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {
		float a2 = alphaT * alphaB;
		highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );
		highp float v2 = dot( v, v );
		float w2 = a2 / v2;
		return RECIPROCAL_PI * a2 * pow2 ( w2 );
	}
#endif
#ifdef USE_CLEARCOAT
	vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {
		vec3 f0 = material.clearcoatF0;
		float f90 = material.clearcoatF90;
		float roughness = material.clearcoatRoughness;
		float alpha = pow2( roughness );
		vec3 halfDir = normalize( lightDir + viewDir );
		float dotNL = saturate( dot( normal, lightDir ) );
		float dotNV = saturate( dot( normal, viewDir ) );
		float dotNH = saturate( dot( normal, halfDir ) );
		float dotVH = saturate( dot( viewDir, halfDir ) );
		vec3 F = F_Schlick( f0, f90, dotVH );
		float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
		float D = D_GGX( alpha, dotNH );
		return F * ( V * D );
	}
#endif
vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {
	vec3 f0 = material.specularColor;
	float f90 = material.specularF90;
	float roughness = material.roughness;
	float alpha = pow2( roughness );
	vec3 halfDir = normalize( lightDir + viewDir );
	float dotNL = saturate( dot( normal, lightDir ) );
	float dotNV = saturate( dot( normal, viewDir ) );
	float dotNH = saturate( dot( normal, halfDir ) );
	float dotVH = saturate( dot( viewDir, halfDir ) );
	vec3 F = F_Schlick( f0, f90, dotVH );
	#ifdef USE_IRIDESCENCE
		F = mix( F, material.iridescenceFresnel, material.iridescence );
	#endif
	#ifdef USE_ANISOTROPY
		float dotTL = dot( material.anisotropyT, lightDir );
		float dotTV = dot( material.anisotropyT, viewDir );
		float dotTH = dot( material.anisotropyT, halfDir );
		float dotBL = dot( material.anisotropyB, lightDir );
		float dotBV = dot( material.anisotropyB, viewDir );
		float dotBH = dot( material.anisotropyB, halfDir );
		float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );
		float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );
	#else
		float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
		float D = D_GGX( alpha, dotNH );
	#endif
	return F * ( V * D );
}
vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {
	const float LUT_SIZE = 64.0;
	const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;
	const float LUT_BIAS = 0.5 / LUT_SIZE;
	float dotNV = saturate( dot( N, V ) );
	vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );
	uv = uv * LUT_SCALE + LUT_BIAS;
	return uv;
}
float LTC_ClippedSphereFormFactor( const in vec3 f ) {
	float l = length( f );
	return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );
}
vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {
	float x = dot( v1, v2 );
	float y = abs( x );
	float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;
	float b = 3.4175940 + ( 4.1616724 + y ) * y;
	float v = a / b;
	float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;
	return cross( v1, v2 ) * theta_sintheta;
}
vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {
	vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];
	vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];
	vec3 lightNormal = cross( v1, v2 );
	if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );
	vec3 T1, T2;
	T1 = normalize( V - N * dot( V, N ) );
	T2 = - cross( N, T1 );
	mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );
	vec3 coords[ 4 ];
	coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );
	coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );
	coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );
	coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );
	coords[ 0 ] = normalize( coords[ 0 ] );
	coords[ 1 ] = normalize( coords[ 1 ] );
	coords[ 2 ] = normalize( coords[ 2 ] );
	coords[ 3 ] = normalize( coords[ 3 ] );
	vec3 vectorFormFactor = vec3( 0.0 );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );
	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );
	float result = LTC_ClippedSphereFormFactor( vectorFormFactor );
	return vec3( result );
}
#if defined( USE_SHEEN )
float D_Charlie( float roughness, float dotNH ) {
	float alpha = pow2( roughness );
	float invAlpha = 1.0 / alpha;
	float cos2h = dotNH * dotNH;
	float sin2h = max( 1.0 - cos2h, 0.0078125 );
	return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );
}
float V_Neubelt( float dotNV, float dotNL ) {
	return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );
}
vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {
	vec3 halfDir = normalize( lightDir + viewDir );
	float dotNL = saturate( dot( normal, lightDir ) );
	float dotNV = saturate( dot( normal, viewDir ) );
	float dotNH = saturate( dot( normal, halfDir ) );
	float D = D_Charlie( sheenRoughness, dotNH );
	float V = V_Neubelt( dotNV, dotNL );
	return sheenColor * ( D * V );
}
#endif
float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
	float dotNV = saturate( dot( normal, viewDir ) );
	float r2 = roughness * roughness;
	float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;
	float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;
	float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );
	return saturate( DG * RECIPROCAL_PI );
}
vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
	float dotNV = saturate( dot( normal, viewDir ) );
	const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );
	const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );
	vec4 r = roughness * c0 + c1;
	float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;
	vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;
	return fab;
}
vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {
	vec2 fab = DFGApprox( normal, viewDir, roughness );
	return specularColor * fab.x + specularF90 * fab.y;
}
#ifdef USE_IRIDESCENCE
void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
#else
void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
#endif
	vec2 fab = DFGApprox( normal, viewDir, roughness );
	#ifdef USE_IRIDESCENCE
		vec3 Fr = mix( specularColor, iridescenceF0, iridescence );
	#else
		vec3 Fr = specularColor;
	#endif
	vec3 FssEss = Fr * fab.x + specularF90 * fab.y;
	float Ess = fab.x + fab.y;
	float Ems = 1.0 - Ess;
	vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;	vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );
	singleScatter += FssEss;
	multiScatter += Fms * Ems;
}
#if NUM_RECT_AREA_LIGHTS > 0
	void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
		vec3 normal = geometryNormal;
		vec3 viewDir = geometryViewDir;
		vec3 position = geometryPosition;
		vec3 lightPos = rectAreaLight.position;
		vec3 halfWidth = rectAreaLight.halfWidth;
		vec3 halfHeight = rectAreaLight.halfHeight;
		vec3 lightColor = rectAreaLight.color;
		float roughness = material.roughness;
		vec3 rectCoords[ 4 ];
		rectCoords[ 0 ] = lightPos + halfWidth - halfHeight;		rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;
		rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;
		rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;
		vec2 uv = LTC_Uv( normal, viewDir, roughness );
		vec4 t1 = texture2D( ltc_1, uv );
		vec4 t2 = texture2D( ltc_2, uv );
		mat3 mInv = mat3(
			vec3( t1.x, 0, t1.y ),
			vec3(    0, 1,    0 ),
			vec3( t1.z, 0, t1.w )
		);
		vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );
		reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );
		reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );
	}
#endif
void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
	vec3 irradiance = dotNL * directLight.color;
	#ifdef USE_CLEARCOAT
		float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );
		vec3 ccIrradiance = dotNLcc * directLight.color;
		clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );
	#endif
	#ifdef USE_SHEEN
		sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );
	#endif
	reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );
	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
}
void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {
	#ifdef USE_CLEARCOAT
		clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
	#endif
	#ifdef USE_SHEEN
		sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
	#endif
	vec3 singleScattering = vec3( 0.0 );
	vec3 multiScattering = vec3( 0.0 );
	vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
	#ifdef USE_IRIDESCENCE
		computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );
	#else
		computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );
	#endif
	vec3 totalScattering = singleScattering + multiScattering;
	vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );
	reflectedLight.indirectSpecular += radiance * singleScattering;
	reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;
	reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;
}
#define RE_Direct				RE_Direct_Physical
#define RE_Direct_RectArea		RE_Direct_RectArea_Physical
#define RE_IndirectDiffuse		RE_IndirectDiffuse_Physical
#define RE_IndirectSpecular		RE_IndirectSpecular_Physical
float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
	return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
}`,hZe=`
vec3 geometryPosition = - vViewPosition;
vec3 geometryNormal = normal;
vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
vec3 geometryClearcoatNormal = vec3( 0.0 );
#ifdef USE_CLEARCOAT
	geometryClearcoatNormal = clearcoatNormal;
#endif
#ifdef USE_IRIDESCENCE
	float dotNVi = saturate( dot( normal, geometryViewDir ) );
	if ( material.iridescenceThickness == 0.0 ) {
		material.iridescence = 0.0;
	} else {
		material.iridescence = saturate( material.iridescence );
	}
	if ( material.iridescence > 0.0 ) {
		material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );
		material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );
	}
#endif
IncidentLight directLight;
#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )
	PointLight pointLight;
	#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0
	PointLightShadow pointLightShadow;
	#endif
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
		pointLight = pointLights[ i ];
		getPointLightInfo( pointLight, geometryPosition, directLight );
		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )
		pointLightShadow = pointLightShadows[ i ];
		directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;
		#endif
		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )
	SpotLight spotLight;
	vec4 spotColor;
	vec3 spotLightCoord;
	bool inSpotLightMap;
	#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0
	SpotLightShadow spotLightShadow;
	#endif
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
		spotLight = spotLights[ i ];
		getSpotLightInfo( spotLight, geometryPosition, directLight );
		#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
		#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX
		#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
		#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS
		#else
		#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
		#endif
		#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )
			spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;
			inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );
			spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );
			directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;
		#endif
		#undef SPOT_LIGHT_MAP_INDEX
		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
		spotLightShadow = spotLightShadows[ i ];
		directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
		#endif
		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )
	DirectionalLight directionalLight;
	#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0
	DirectionalLightShadow directionalLightShadow;
	#endif
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
		directionalLight = directionalLights[ i ];
		getDirectionalLightInfo( directionalLight, directLight );
		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )
		directionalLightShadow = directionalLightShadows[ i ];
		directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
		#endif
		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )
	RectAreaLight rectAreaLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {
		rectAreaLight = rectAreaLights[ i ];
		RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
	}
	#pragma unroll_loop_end
#endif
#if defined( RE_IndirectDiffuse )
	vec3 iblIrradiance = vec3( 0.0 );
	vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
	#if defined( USE_LIGHT_PROBES )
		irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );
	#endif
	#if ( NUM_HEMI_LIGHTS > 0 )
		#pragma unroll_loop_start
		for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
			irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );
		}
		#pragma unroll_loop_end
	#endif
#endif
#if defined( RE_IndirectSpecular )
	vec3 radiance = vec3( 0.0 );
	vec3 clearcoatRadiance = vec3( 0.0 );
#endif`,fZe=`#if defined( RE_IndirectDiffuse )
	#ifdef USE_LIGHTMAP
		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
		vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
		irradiance += lightMapIrradiance;
	#endif
	#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )
		iblIrradiance += getIBLIrradiance( geometryNormal );
	#endif
#endif
#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
	#ifdef USE_ANISOTROPY
		radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );
	#else
		radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );
	#endif
	#ifdef USE_CLEARCOAT
		clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );
	#endif
#endif`,mZe=`#if defined( RE_IndirectDiffuse )
	RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
#endif
#if defined( RE_IndirectSpecular )
	RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
#endif`,pZe=`#if defined( USE_LOGDEPTHBUF )
	gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
#endif`,gZe=`#if defined( USE_LOGDEPTHBUF )
	uniform float logDepthBufFC;
	varying float vFragDepth;
	varying float vIsPerspective;
#endif`,vZe=`#ifdef USE_LOGDEPTHBUF
	varying float vFragDepth;
	varying float vIsPerspective;
#endif`,yZe=`#ifdef USE_LOGDEPTHBUF
	vFragDepth = 1.0 + gl_Position.w;
	vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
#endif`,wZe=`#ifdef USE_MAP
	vec4 sampledDiffuseColor = texture2D( map, vMapUv );
	#ifdef DECODE_VIDEO_TEXTURE
		sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor );
	#endif
	diffuseColor *= sampledDiffuseColor;
#endif`,bZe=`#ifdef USE_MAP
	uniform sampler2D map;
#endif`,_Ze=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
	#if defined( USE_POINTS_UV )
		vec2 uv = vUv;
	#else
		vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;
	#endif
#endif
#ifdef USE_MAP
	diffuseColor *= texture2D( map, uv );
#endif
#ifdef USE_ALPHAMAP
	diffuseColor.a *= texture2D( alphaMap, uv ).g;
#endif`,xZe=`#if defined( USE_POINTS_UV )
	varying vec2 vUv;
#else
	#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
		uniform mat3 uvTransform;
	#endif
#endif
#ifdef USE_MAP
	uniform sampler2D map;
#endif
#ifdef USE_ALPHAMAP
	uniform sampler2D alphaMap;
#endif`,MZe=`float metalnessFactor = metalness;
#ifdef USE_METALNESSMAP
	vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
	metalnessFactor *= texelMetalness.b;
#endif`,SZe=`#ifdef USE_METALNESSMAP
	uniform sampler2D metalnessMap;
#endif`,CZe=`#ifdef USE_INSTANCING_MORPH
	float morphTargetInfluences[ MORPHTARGETS_COUNT ];
	float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;
	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
		morphTargetInfluences[i] =  texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;
	}
#endif`,PZe=`#if defined( USE_MORPHCOLORS )
	vColor *= morphTargetBaseInfluence;
	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
		#if defined( USE_COLOR_ALPHA )
			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];
		#elif defined( USE_COLOR )
			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
		#endif
	}
#endif`,EZe=`#ifdef USE_MORPHNORMALS
	objectNormal *= morphTargetBaseInfluence;
	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
		if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];
	}
#endif`,BZe=`#ifdef USE_MORPHTARGETS
	#ifndef USE_INSTANCING_MORPH
		uniform float morphTargetBaseInfluence;
		uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
	#endif
	uniform sampler2DArray morphTargetsTexture;
	uniform ivec2 morphTargetsTextureSize;
	vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {
		int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;
		int y = texelIndex / morphTargetsTextureSize.x;
		int x = texelIndex - y * morphTargetsTextureSize.x;
		ivec3 morphUV = ivec3( x, y, morphTargetIndex );
		return texelFetch( morphTargetsTexture, morphUV, 0 );
	}
#endif`,TZe=`#ifdef USE_MORPHTARGETS
	transformed *= morphTargetBaseInfluence;
	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
		if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];
	}
#endif`,kZe=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
#ifdef FLAT_SHADED
	vec3 fdx = dFdx( vViewPosition );
	vec3 fdy = dFdy( vViewPosition );
	vec3 normal = normalize( cross( fdx, fdy ) );
#else
	vec3 normal = normalize( vNormal );
	#ifdef DOUBLE_SIDED
		normal *= faceDirection;
	#endif
#endif
#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )
	#ifdef USE_TANGENT
		mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
	#else
		mat3 tbn = getTangentFrame( - vViewPosition, normal,
		#if defined( USE_NORMALMAP )
			vNormalMapUv
		#elif defined( USE_CLEARCOAT_NORMALMAP )
			vClearcoatNormalMapUv
		#else
			vUv
		#endif
		);
	#endif
	#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
		tbn[0] *= faceDirection;
		tbn[1] *= faceDirection;
	#endif
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	#ifdef USE_TANGENT
		mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
	#else
		mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
	#endif
	#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
		tbn2[0] *= faceDirection;
		tbn2[1] *= faceDirection;
	#endif
#endif
vec3 nonPerturbedNormal = normal;`,IZe=`#ifdef USE_NORMALMAP_OBJECTSPACE
	normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
	#ifdef FLIP_SIDED
		normal = - normal;
	#endif
	#ifdef DOUBLE_SIDED
		normal = normal * faceDirection;
	#endif
	normal = normalize( normalMatrix * normal );
#elif defined( USE_NORMALMAP_TANGENTSPACE )
	vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
	mapN.xy *= normalScale;
	normal = normalize( tbn * mapN );
#elif defined( USE_BUMPMAP )
	normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );
#endif`,LZe=`#ifndef FLAT_SHADED
	varying vec3 vNormal;
	#ifdef USE_TANGENT
		varying vec3 vTangent;
		varying vec3 vBitangent;
	#endif
#endif`,FZe=`#ifndef FLAT_SHADED
	varying vec3 vNormal;
	#ifdef USE_TANGENT
		varying vec3 vTangent;
		varying vec3 vBitangent;
	#endif
#endif`,NZe=`#ifndef FLAT_SHADED
	vNormal = normalize( transformedNormal );
	#ifdef USE_TANGENT
		vTangent = normalize( transformedTangent );
		vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
	#endif
#endif`,DZe=`#ifdef USE_NORMALMAP
	uniform sampler2D normalMap;
	uniform vec2 normalScale;
#endif
#ifdef USE_NORMALMAP_OBJECTSPACE
	uniform mat3 normalMatrix;
#endif
#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )
	mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {
		vec3 q0 = dFdx( eye_pos.xyz );
		vec3 q1 = dFdy( eye_pos.xyz );
		vec2 st0 = dFdx( uv.st );
		vec2 st1 = dFdy( uv.st );
		vec3 N = surf_norm;
		vec3 q1perp = cross( q1, N );
		vec3 q0perp = cross( N, q0 );
		vec3 T = q1perp * st0.x + q0perp * st1.x;
		vec3 B = q1perp * st0.y + q0perp * st1.y;
		float det = max( dot( T, T ), dot( B, B ) );
		float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );
		return mat3( T * scale, B * scale, N );
	}
#endif`,RZe=`#ifdef USE_CLEARCOAT
	vec3 clearcoatNormal = nonPerturbedNormal;
#endif`,UZe=`#ifdef USE_CLEARCOAT_NORMALMAP
	vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;
	clearcoatMapN.xy *= clearcoatNormalScale;
	clearcoatNormal = normalize( tbn2 * clearcoatMapN );
#endif`,OZe=`#ifdef USE_CLEARCOATMAP
	uniform sampler2D clearcoatMap;
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	uniform sampler2D clearcoatNormalMap;
	uniform vec2 clearcoatNormalScale;
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
	uniform sampler2D clearcoatRoughnessMap;
#endif`,HZe=`#ifdef USE_IRIDESCENCEMAP
	uniform sampler2D iridescenceMap;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
	uniform sampler2D iridescenceThicknessMap;
#endif`,WZe=`#ifdef OPAQUE
diffuseColor.a = 1.0;
#endif
#ifdef USE_TRANSMISSION
diffuseColor.a *= material.transmissionAlpha;
#endif
gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,QZe=`vec3 packNormalToRGB( const in vec3 normal ) {
	return normalize( normal ) * 0.5 + 0.5;
}
vec3 unpackRGBToNormal( const in vec3 rgb ) {
	return 2.0 * rgb.xyz - 1.0;
}
const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.;
const float Inv255 = 1. / 255.;
const vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 );
const vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g );
const vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b );
const vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a );
vec4 packDepthToRGBA( const in float v ) {
	if( v <= 0.0 )
		return vec4( 0., 0., 0., 0. );
	if( v >= 1.0 )
		return vec4( 1., 1., 1., 1. );
	float vuf;
	float af = modf( v * PackFactors.a, vuf );
	float bf = modf( vuf * ShiftRight8, vuf );
	float gf = modf( vuf * ShiftRight8, vuf );
	return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af );
}
vec3 packDepthToRGB( const in float v ) {
	if( v <= 0.0 )
		return vec3( 0., 0., 0. );
	if( v >= 1.0 )
		return vec3( 1., 1., 1. );
	float vuf;
	float bf = modf( v * PackFactors.b, vuf );
	float gf = modf( vuf * ShiftRight8, vuf );
	return vec3( vuf * Inv255, gf * PackUpscale, bf );
}
vec2 packDepthToRG( const in float v ) {
	if( v <= 0.0 )
		return vec2( 0., 0. );
	if( v >= 1.0 )
		return vec2( 1., 1. );
	float vuf;
	float gf = modf( v * 256., vuf );
	return vec2( vuf * Inv255, gf );
}
float unpackRGBAToDepth( const in vec4 v ) {
	return dot( v, UnpackFactors4 );
}
float unpackRGBToDepth( const in vec3 v ) {
	return dot( v, UnpackFactors3 );
}
float unpackRGToDepth( const in vec2 v ) {
	return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g;
}
vec4 pack2HalfToRGBA( const in vec2 v ) {
	vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );
	return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );
}
vec2 unpackRGBATo2Half( const in vec4 v ) {
	return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
}
float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {
	return ( viewZ + near ) / ( near - far );
}
float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {
	return depth * ( near - far ) - near;
}
float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {
	return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );
}
float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {
	return ( near * far ) / ( ( far - near ) * depth - far );
}`,$Ze=`#ifdef PREMULTIPLIED_ALPHA
	gl_FragColor.rgb *= gl_FragColor.a;
#endif`,jZe=`vec4 mvPosition = vec4( transformed, 1.0 );
#ifdef USE_BATCHING
	mvPosition = batchingMatrix * mvPosition;
#endif
#ifdef USE_INSTANCING
	mvPosition = instanceMatrix * mvPosition;
#endif
mvPosition = modelViewMatrix * mvPosition;
gl_Position = projectionMatrix * mvPosition;`,zZe=`#ifdef DITHERING
	gl_FragColor.rgb = dithering( gl_FragColor.rgb );
#endif`,VZe=`#ifdef DITHERING
	vec3 dithering( vec3 color ) {
		float grid_position = rand( gl_FragCoord.xy );
		vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
		dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
		return color + dither_shift_RGB;
	}
#endif`,GZe=`float roughnessFactor = roughness;
#ifdef USE_ROUGHNESSMAP
	vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );
	roughnessFactor *= texelRoughness.g;
#endif`,KZe=`#ifdef USE_ROUGHNESSMAP
	uniform sampler2D roughnessMap;
#endif`,qZe=`#if NUM_SPOT_LIGHT_COORDS > 0
	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
#endif
#if NUM_SPOT_LIGHT_MAPS > 0
	uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];
#endif
#ifdef USE_SHADOWMAP
	#if NUM_DIR_LIGHT_SHADOWS > 0
		uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
		struct DirectionalLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
	#endif
	#if NUM_SPOT_LIGHT_SHADOWS > 0
		uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
		struct SpotLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
		uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
		struct PointLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
			float shadowCameraNear;
			float shadowCameraFar;
		};
		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
	#endif
	float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {
		return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );
	}
	vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {
		return unpackRGBATo2Half( texture2D( shadow, uv ) );
	}
	float VSMShadow (sampler2D shadow, vec2 uv, float compare ){
		float occlusion = 1.0;
		vec2 distribution = texture2DDistribution( shadow, uv );
		float hard_shadow = step( compare , distribution.x );
		if (hard_shadow != 1.0 ) {
			float distance = compare - distribution.x ;
			float variance = max( 0.00000, distribution.y * distribution.y );
			float softness_probability = variance / (variance + distance * distance );			softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );			occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );
		}
		return occlusion;
	}
	float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
		float shadow = 1.0;
		shadowCoord.xyz /= shadowCoord.w;
		shadowCoord.z += shadowBias;
		bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
		bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
		if ( frustumTest ) {
		#if defined( SHADOWMAP_TYPE_PCF )
			vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
			float dx0 = - texelSize.x * shadowRadius;
			float dy0 = - texelSize.y * shadowRadius;
			float dx1 = + texelSize.x * shadowRadius;
			float dy1 = + texelSize.y * shadowRadius;
			float dx2 = dx0 / 2.0;
			float dy2 = dy0 / 2.0;
			float dx3 = dx1 / 2.0;
			float dy3 = dy1 / 2.0;
			shadow = (
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )
			) * ( 1.0 / 17.0 );
		#elif defined( SHADOWMAP_TYPE_PCF_SOFT )
			vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
			float dx = texelSize.x;
			float dy = texelSize.y;
			vec2 uv = shadowCoord.xy;
			vec2 f = fract( uv * shadowMapSize + 0.5 );
			uv -= f * texelSize;
			shadow = (
				texture2DCompare( shadowMap, uv, shadowCoord.z ) +
				texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +
				texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +
				texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +
				mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),
					 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),
					 f.x ) +
				mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),
					 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),
					 f.x ) +
				mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),
					 texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),
					 f.y ) +
				mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),
					 texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),
					 f.y ) +
				mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),
						  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),
						  f.x ),
					 mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),
						  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),
						  f.x ),
					 f.y )
			) * ( 1.0 / 9.0 );
		#elif defined( SHADOWMAP_TYPE_VSM )
			shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );
		#else
			shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );
		#endif
		}
		return mix( 1.0, shadow, shadowIntensity );
	}
	vec2 cubeToUV( vec3 v, float texelSizeY ) {
		vec3 absV = abs( v );
		float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );
		absV *= scaleToCube;
		v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );
		vec2 planar = v.xy;
		float almostATexel = 1.5 * texelSizeY;
		float almostOne = 1.0 - almostATexel;
		if ( absV.z >= almostOne ) {
			if ( v.z > 0.0 )
				planar.x = 4.0 - v.x;
		} else if ( absV.x >= almostOne ) {
			float signX = sign( v.x );
			planar.x = v.z * signX + 2.0 * signX;
		} else if ( absV.y >= almostOne ) {
			float signY = sign( v.y );
			planar.x = v.x + 2.0 * signY + 2.0;
			planar.y = v.z * signY - 2.0;
		}
		return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );
	}
	float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
		float shadow = 1.0;
		vec3 lightToPosition = shadowCoord.xyz;
		
		float lightToPositionLength = length( lightToPosition );
		if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {
			float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );			dp += shadowBias;
			vec3 bd3D = normalize( lightToPosition );
			vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );
			#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )
				vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;
				shadow = (
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +
					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )
				) * ( 1.0 / 9.0 );
			#else
				shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );
			#endif
		}
		return mix( 1.0, shadow, shadowIntensity );
	}
#endif`,XZe=`#if NUM_SPOT_LIGHT_COORDS > 0
	uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];
	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
#endif
#ifdef USE_SHADOWMAP
	#if NUM_DIR_LIGHT_SHADOWS > 0
		uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
		struct DirectionalLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
	#endif
	#if NUM_SPOT_LIGHT_SHADOWS > 0
		struct SpotLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
		};
		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
		uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];
		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
		struct PointLightShadow {
			float shadowIntensity;
			float shadowBias;
			float shadowNormalBias;
			float shadowRadius;
			vec2 shadowMapSize;
			float shadowCameraNear;
			float shadowCameraFar;
		};
		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
	#endif
#endif`,YZe=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
	vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
	vec4 shadowWorldPosition;
#endif
#if defined( USE_SHADOWMAP )
	#if NUM_DIR_LIGHT_SHADOWS > 0
		#pragma unroll_loop_start
		for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
			shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );
			vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;
		}
		#pragma unroll_loop_end
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
		#pragma unroll_loop_start
		for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
			shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );
			vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;
		}
		#pragma unroll_loop_end
	#endif
#endif
#if NUM_SPOT_LIGHT_COORDS > 0
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {
		shadowWorldPosition = worldPosition;
		#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
			shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;
		#endif
		vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;
	}
	#pragma unroll_loop_end
#endif`,JZe=`float getShadowMask() {
	float shadow = 1.0;
	#ifdef USE_SHADOWMAP
	#if NUM_DIR_LIGHT_SHADOWS > 0
	DirectionalLightShadow directionalLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
		directionalLight = directionalLightShadows[ i ];
		shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
	}
	#pragma unroll_loop_end
	#endif
	#if NUM_SPOT_LIGHT_SHADOWS > 0
	SpotLightShadow spotLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
		spotLight = spotLightShadows[ i ];
		shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
	}
	#pragma unroll_loop_end
	#endif
	#if NUM_POINT_LIGHT_SHADOWS > 0
	PointLightShadow pointLight;
	#pragma unroll_loop_start
	for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
		pointLight = pointLightShadows[ i ];
		shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
	}
	#pragma unroll_loop_end
	#endif
	#endif
	return shadow;
}`,ZZe=`#ifdef USE_SKINNING
	mat4 boneMatX = getBoneMatrix( skinIndex.x );
	mat4 boneMatY = getBoneMatrix( skinIndex.y );
	mat4 boneMatZ = getBoneMatrix( skinIndex.z );
	mat4 boneMatW = getBoneMatrix( skinIndex.w );
#endif`,eet=`#ifdef USE_SKINNING
	uniform mat4 bindMatrix;
	uniform mat4 bindMatrixInverse;
	uniform highp sampler2D boneTexture;
	mat4 getBoneMatrix( const in float i ) {
		int size = textureSize( boneTexture, 0 ).x;
		int j = int( i ) * 4;
		int x = j % size;
		int y = j / size;
		vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );
		vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );
		vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );
		vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );
		return mat4( v1, v2, v3, v4 );
	}
#endif`,tet=`#ifdef USE_SKINNING
	vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
	vec4 skinned = vec4( 0.0 );
	skinned += boneMatX * skinVertex * skinWeight.x;
	skinned += boneMatY * skinVertex * skinWeight.y;
	skinned += boneMatZ * skinVertex * skinWeight.z;
	skinned += boneMatW * skinVertex * skinWeight.w;
	transformed = ( bindMatrixInverse * skinned ).xyz;
#endif`,net=`#ifdef USE_SKINNING
	mat4 skinMatrix = mat4( 0.0 );
	skinMatrix += skinWeight.x * boneMatX;
	skinMatrix += skinWeight.y * boneMatY;
	skinMatrix += skinWeight.z * boneMatZ;
	skinMatrix += skinWeight.w * boneMatW;
	skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;
	objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;
	#ifdef USE_TANGENT
		objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
	#endif
#endif`,ret=`float specularStrength;
#ifdef USE_SPECULARMAP
	vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
	specularStrength = texelSpecular.r;
#else
	specularStrength = 1.0;
#endif`,iet=`#ifdef USE_SPECULARMAP
	uniform sampler2D specularMap;
#endif`,aet=`#if defined( TONE_MAPPING )
	gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
#endif`,set=`#ifndef saturate
#define saturate( a ) clamp( a, 0.0, 1.0 )
#endif
uniform float toneMappingExposure;
vec3 LinearToneMapping( vec3 color ) {
	return saturate( toneMappingExposure * color );
}
vec3 ReinhardToneMapping( vec3 color ) {
	color *= toneMappingExposure;
	return saturate( color / ( vec3( 1.0 ) + color ) );
}
vec3 CineonToneMapping( vec3 color ) {
	color *= toneMappingExposure;
	color = max( vec3( 0.0 ), color - 0.004 );
	return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );
}
vec3 RRTAndODTFit( vec3 v ) {
	vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
	vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
	return a / b;
}
vec3 ACESFilmicToneMapping( vec3 color ) {
	const mat3 ACESInputMat = mat3(
		vec3( 0.59719, 0.07600, 0.02840 ),		vec3( 0.35458, 0.90834, 0.13383 ),
		vec3( 0.04823, 0.01566, 0.83777 )
	);
	const mat3 ACESOutputMat = mat3(
		vec3(  1.60475, -0.10208, -0.00327 ),		vec3( -0.53108,  1.10813, -0.07276 ),
		vec3( -0.07367, -0.00605,  1.07602 )
	);
	color *= toneMappingExposure / 0.6;
	color = ACESInputMat * color;
	color = RRTAndODTFit( color );
	color = ACESOutputMat * color;
	return saturate( color );
}
const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(
	vec3( 1.6605, - 0.1246, - 0.0182 ),
	vec3( - 0.5876, 1.1329, - 0.1006 ),
	vec3( - 0.0728, - 0.0083, 1.1187 )
);
const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(
	vec3( 0.6274, 0.0691, 0.0164 ),
	vec3( 0.3293, 0.9195, 0.0880 ),
	vec3( 0.0433, 0.0113, 0.8956 )
);
vec3 agxDefaultContrastApprox( vec3 x ) {
	vec3 x2 = x * x;
	vec3 x4 = x2 * x2;
	return + 15.5 * x4 * x2
		- 40.14 * x4 * x
		+ 31.96 * x4
		- 6.868 * x2 * x
		+ 0.4298 * x2
		+ 0.1191 * x
		- 0.00232;
}
vec3 AgXToneMapping( vec3 color ) {
	const mat3 AgXInsetMatrix = mat3(
		vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),
		vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),
		vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )
	);
	const mat3 AgXOutsetMatrix = mat3(
		vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),
		vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),
		vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )
	);
	const float AgxMinEv = - 12.47393;	const float AgxMaxEv = 4.026069;
	color *= toneMappingExposure;
	color = LINEAR_SRGB_TO_LINEAR_REC2020 * color;
	color = AgXInsetMatrix * color;
	color = max( color, 1e-10 );	color = log2( color );
	color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );
	color = clamp( color, 0.0, 1.0 );
	color = agxDefaultContrastApprox( color );
	color = AgXOutsetMatrix * color;
	color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );
	color = LINEAR_REC2020_TO_LINEAR_SRGB * color;
	color = clamp( color, 0.0, 1.0 );
	return color;
}
vec3 NeutralToneMapping( vec3 color ) {
	const float StartCompression = 0.8 - 0.04;
	const float Desaturation = 0.15;
	color *= toneMappingExposure;
	float x = min( color.r, min( color.g, color.b ) );
	float offset = x < 0.08 ? x - 6.25 * x * x : 0.04;
	color -= offset;
	float peak = max( color.r, max( color.g, color.b ) );
	if ( peak < StartCompression ) return color;
	float d = 1. - StartCompression;
	float newPeak = 1. - d * d / ( peak + d - StartCompression );
	color *= newPeak / peak;
	float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );
	return mix( color, vec3( newPeak ), g );
}
vec3 CustomToneMapping( vec3 color ) { return color; }`,oet=`#ifdef USE_TRANSMISSION
	material.transmission = transmission;
	material.transmissionAlpha = 1.0;
	material.thickness = thickness;
	material.attenuationDistance = attenuationDistance;
	material.attenuationColor = attenuationColor;
	#ifdef USE_TRANSMISSIONMAP
		material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;
	#endif
	#ifdef USE_THICKNESSMAP
		material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;
	#endif
	vec3 pos = vWorldPosition;
	vec3 v = normalize( cameraPosition - pos );
	vec3 n = inverseTransformDirection( normal, viewMatrix );
	vec4 transmitted = getIBLVolumeRefraction(
		n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,
		pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,
		material.attenuationColor, material.attenuationDistance );
	material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
	totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
#endif`,cet=`#ifdef USE_TRANSMISSION
	uniform float transmission;
	uniform float thickness;
	uniform float attenuationDistance;
	uniform vec3 attenuationColor;
	#ifdef USE_TRANSMISSIONMAP
		uniform sampler2D transmissionMap;
	#endif
	#ifdef USE_THICKNESSMAP
		uniform sampler2D thicknessMap;
	#endif
	uniform vec2 transmissionSamplerSize;
	uniform sampler2D transmissionSamplerMap;
	uniform mat4 modelMatrix;
	uniform mat4 projectionMatrix;
	varying vec3 vWorldPosition;
	float w0( float a ) {
		return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );
	}
	float w1( float a ) {
		return ( 1.0 / 6.0 ) * ( a *  a * ( 3.0 * a - 6.0 ) + 4.0 );
	}
	float w2( float a ){
		return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );
	}
	float w3( float a ) {
		return ( 1.0 / 6.0 ) * ( a * a * a );
	}
	float g0( float a ) {
		return w0( a ) + w1( a );
	}
	float g1( float a ) {
		return w2( a ) + w3( a );
	}
	float h0( float a ) {
		return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );
	}
	float h1( float a ) {
		return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );
	}
	vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {
		uv = uv * texelSize.zw + 0.5;
		vec2 iuv = floor( uv );
		vec2 fuv = fract( uv );
		float g0x = g0( fuv.x );
		float g1x = g1( fuv.x );
		float h0x = h0( fuv.x );
		float h1x = h1( fuv.x );
		float h0y = h0( fuv.y );
		float h1y = h1( fuv.y );
		vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
		vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
		vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
		vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
		return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +
			g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );
	}
	vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {
		vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );
		vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );
		vec2 fLodSizeInv = 1.0 / fLodSize;
		vec2 cLodSizeInv = 1.0 / cLodSize;
		vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );
		vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );
		return mix( fSample, cSample, fract( lod ) );
	}
	vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {
		vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );
		vec3 modelScale;
		modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );
		modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );
		modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );
		return normalize( refractionVector ) * thickness * modelScale;
	}
	float applyIorToRoughness( const in float roughness, const in float ior ) {
		return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );
	}
	vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {
		float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );
		return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );
	}
	vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {
		if ( isinf( attenuationDistance ) ) {
			return vec3( 1.0 );
		} else {
			vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;
			vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );			return transmittance;
		}
	}
	vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,
		const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,
		const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,
		const in vec3 attenuationColor, const in float attenuationDistance ) {
		vec4 transmittedLight;
		vec3 transmittance;
		#ifdef USE_DISPERSION
			float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;
			vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );
			for ( int i = 0; i < 3; i ++ ) {
				vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );
				vec3 refractedRayExit = position + transmissionRay;
		
				vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
				vec2 refractionCoords = ndcPos.xy / ndcPos.w;
				refractionCoords += 1.0;
				refractionCoords /= 2.0;
		
				vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );
				transmittedLight[ i ] = transmissionSample[ i ];
				transmittedLight.a += transmissionSample.a;
				transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];
			}
			transmittedLight.a /= 3.0;
		
		#else
		
			vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );
			vec3 refractedRayExit = position + transmissionRay;
			vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
			vec2 refractionCoords = ndcPos.xy / ndcPos.w;
			refractionCoords += 1.0;
			refractionCoords /= 2.0;
			transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );
			transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );
		
		#endif
		vec3 attenuatedColor = transmittance * transmittedLight.rgb;
		vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );
		float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;
		return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );
	}
#endif`,uet=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
	varying vec2 vUv;
#endif
#ifdef USE_MAP
	varying vec2 vMapUv;
#endif
#ifdef USE_ALPHAMAP
	varying vec2 vAlphaMapUv;
#endif
#ifdef USE_LIGHTMAP
	varying vec2 vLightMapUv;
#endif
#ifdef USE_AOMAP
	varying vec2 vAoMapUv;
#endif
#ifdef USE_BUMPMAP
	varying vec2 vBumpMapUv;
#endif
#ifdef USE_NORMALMAP
	varying vec2 vNormalMapUv;
#endif
#ifdef USE_EMISSIVEMAP
	varying vec2 vEmissiveMapUv;
#endif
#ifdef USE_METALNESSMAP
	varying vec2 vMetalnessMapUv;
#endif
#ifdef USE_ROUGHNESSMAP
	varying vec2 vRoughnessMapUv;
#endif
#ifdef USE_ANISOTROPYMAP
	varying vec2 vAnisotropyMapUv;
#endif
#ifdef USE_CLEARCOATMAP
	varying vec2 vClearcoatMapUv;
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	varying vec2 vClearcoatNormalMapUv;
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
	varying vec2 vClearcoatRoughnessMapUv;
#endif
#ifdef USE_IRIDESCENCEMAP
	varying vec2 vIridescenceMapUv;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
	varying vec2 vIridescenceThicknessMapUv;
#endif
#ifdef USE_SHEEN_COLORMAP
	varying vec2 vSheenColorMapUv;
#endif
#ifdef USE_SHEEN_ROUGHNESSMAP
	varying vec2 vSheenRoughnessMapUv;
#endif
#ifdef USE_SPECULARMAP
	varying vec2 vSpecularMapUv;
#endif
#ifdef USE_SPECULAR_COLORMAP
	varying vec2 vSpecularColorMapUv;
#endif
#ifdef USE_SPECULAR_INTENSITYMAP
	varying vec2 vSpecularIntensityMapUv;
#endif
#ifdef USE_TRANSMISSIONMAP
	uniform mat3 transmissionMapTransform;
	varying vec2 vTransmissionMapUv;
#endif
#ifdef USE_THICKNESSMAP
	uniform mat3 thicknessMapTransform;
	varying vec2 vThicknessMapUv;
#endif`,det=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
	varying vec2 vUv;
#endif
#ifdef USE_MAP
	uniform mat3 mapTransform;
	varying vec2 vMapUv;
#endif
#ifdef USE_ALPHAMAP
	uniform mat3 alphaMapTransform;
	varying vec2 vAlphaMapUv;
#endif
#ifdef USE_LIGHTMAP
	uniform mat3 lightMapTransform;
	varying vec2 vLightMapUv;
#endif
#ifdef USE_AOMAP
	uniform mat3 aoMapTransform;
	varying vec2 vAoMapUv;
#endif
#ifdef USE_BUMPMAP
	uniform mat3 bumpMapTransform;
	varying vec2 vBumpMapUv;
#endif
#ifdef USE_NORMALMAP
	uniform mat3 normalMapTransform;
	varying vec2 vNormalMapUv;
#endif
#ifdef USE_DISPLACEMENTMAP
	uniform mat3 displacementMapTransform;
	varying vec2 vDisplacementMapUv;
#endif
#ifdef USE_EMISSIVEMAP
	uniform mat3 emissiveMapTransform;
	varying vec2 vEmissiveMapUv;
#endif
#ifdef USE_METALNESSMAP
	uniform mat3 metalnessMapTransform;
	varying vec2 vMetalnessMapUv;
#endif
#ifdef USE_ROUGHNESSMAP
	uniform mat3 roughnessMapTransform;
	varying vec2 vRoughnessMapUv;
#endif
#ifdef USE_ANISOTROPYMAP
	uniform mat3 anisotropyMapTransform;
	varying vec2 vAnisotropyMapUv;
#endif
#ifdef USE_CLEARCOATMAP
	uniform mat3 clearcoatMapTransform;
	varying vec2 vClearcoatMapUv;
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	uniform mat3 clearcoatNormalMapTransform;
	varying vec2 vClearcoatNormalMapUv;
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
	uniform mat3 clearcoatRoughnessMapTransform;
	varying vec2 vClearcoatRoughnessMapUv;
#endif
#ifdef USE_SHEEN_COLORMAP
	uniform mat3 sheenColorMapTransform;
	varying vec2 vSheenColorMapUv;
#endif
#ifdef USE_SHEEN_ROUGHNESSMAP
	uniform mat3 sheenRoughnessMapTransform;
	varying vec2 vSheenRoughnessMapUv;
#endif
#ifdef USE_IRIDESCENCEMAP
	uniform mat3 iridescenceMapTransform;
	varying vec2 vIridescenceMapUv;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
	uniform mat3 iridescenceThicknessMapTransform;
	varying vec2 vIridescenceThicknessMapUv;
#endif
#ifdef USE_SPECULARMAP
	uniform mat3 specularMapTransform;
	varying vec2 vSpecularMapUv;
#endif
#ifdef USE_SPECULAR_COLORMAP
	uniform mat3 specularColorMapTransform;
	varying vec2 vSpecularColorMapUv;
#endif
#ifdef USE_SPECULAR_INTENSITYMAP
	uniform mat3 specularIntensityMapTransform;
	varying vec2 vSpecularIntensityMapUv;
#endif
#ifdef USE_TRANSMISSIONMAP
	uniform mat3 transmissionMapTransform;
	varying vec2 vTransmissionMapUv;
#endif
#ifdef USE_THICKNESSMAP
	uniform mat3 thicknessMapTransform;
	varying vec2 vThicknessMapUv;
#endif`,Aet=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
	vUv = vec3( uv, 1 ).xy;
#endif
#ifdef USE_MAP
	vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;
#endif
#ifdef USE_ALPHAMAP
	vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_LIGHTMAP
	vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_AOMAP
	vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_BUMPMAP
	vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_NORMALMAP
	vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_DISPLACEMENTMAP
	vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_EMISSIVEMAP
	vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_METALNESSMAP
	vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_ROUGHNESSMAP
	vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_ANISOTROPYMAP
	vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_CLEARCOATMAP
	vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_CLEARCOAT_NORMALMAP
	vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_CLEARCOAT_ROUGHNESSMAP
	vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_IRIDESCENCEMAP
	vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_IRIDESCENCE_THICKNESSMAP
	vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_SHEEN_COLORMAP
	vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_SHEEN_ROUGHNESSMAP
	vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_SPECULARMAP
	vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_SPECULAR_COLORMAP
	vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_SPECULAR_INTENSITYMAP
	vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_TRANSMISSIONMAP
	vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;
#endif
#ifdef USE_THICKNESSMAP
	vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;
#endif`,het=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
	vec4 worldPosition = vec4( transformed, 1.0 );
	#ifdef USE_BATCHING
		worldPosition = batchingMatrix * worldPosition;
	#endif
	#ifdef USE_INSTANCING
		worldPosition = instanceMatrix * worldPosition;
	#endif
	worldPosition = modelMatrix * worldPosition;
#endif`;const fet=`varying vec2 vUv;
uniform mat3 uvTransform;
void main() {
	vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
	gl_Position = vec4( position.xy, 1.0, 1.0 );
}`,met=`uniform sampler2D t2D;
uniform float backgroundIntensity;
varying vec2 vUv;
void main() {
	vec4 texColor = texture2D( t2D, vUv );
	#ifdef DECODE_VIDEO_TEXTURE
		texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );
	#endif
	texColor.rgb *= backgroundIntensity;
	gl_FragColor = texColor;
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
}`,pet=`varying vec3 vWorldDirection;
#include <common>
void main() {
	vWorldDirection = transformDirection( position, modelMatrix );
	#include <begin_vertex>
	#include <project_vertex>
	gl_Position.z = gl_Position.w;
}`,get=`#ifdef ENVMAP_TYPE_CUBE
	uniform samplerCube envMap;
#elif defined( ENVMAP_TYPE_CUBE_UV )
	uniform sampler2D envMap;
#endif
uniform float flipEnvMap;
uniform float backgroundBlurriness;
uniform float backgroundIntensity;
uniform mat3 backgroundRotation;
varying vec3 vWorldDirection;
#include <cube_uv_reflection_fragment>
void main() {
	#ifdef ENVMAP_TYPE_CUBE
		vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );
	#elif defined( ENVMAP_TYPE_CUBE_UV )
		vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );
	#else
		vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );
	#endif
	texColor.rgb *= backgroundIntensity;
	gl_FragColor = texColor;
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
}`,vet=`varying vec3 vWorldDirection;
#include <common>
void main() {
	vWorldDirection = transformDirection( position, modelMatrix );
	#include <begin_vertex>
	#include <project_vertex>
	gl_Position.z = gl_Position.w;
}`,yet=`uniform samplerCube tCube;
uniform float tFlip;
uniform float opacity;
varying vec3 vWorldDirection;
void main() {
	vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
	gl_FragColor = texColor;
	gl_FragColor.a *= opacity;
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
}`,wet=`#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
varying vec2 vHighPrecisionZW;
void main() {
	#include <uv_vertex>
	#include <batching_vertex>
	#include <skinbase_vertex>
	#include <morphinstance_vertex>
	#ifdef USE_DISPLACEMENTMAP
		#include <beginnormal_vertex>
		#include <morphnormal_vertex>
		#include <skinnormal_vertex>
	#endif
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vHighPrecisionZW = gl_Position.zw;
}`,bet=`#if DEPTH_PACKING == 3200
	uniform float opacity;
#endif
#include <common>
#include <packing>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
varying vec2 vHighPrecisionZW;
void main() {
	vec4 diffuseColor = vec4( 1.0 );
	#include <clipping_planes_fragment>
	#if DEPTH_PACKING == 3200
		diffuseColor.a = opacity;
	#endif
	#include <map_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <logdepthbuf_fragment>
	float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;
	#if DEPTH_PACKING == 3200
		gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );
	#elif DEPTH_PACKING == 3201
		gl_FragColor = packDepthToRGBA( fragCoordZ );
	#elif DEPTH_PACKING == 3202
		gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 );
	#elif DEPTH_PACKING == 3203
		gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 );
	#endif
}`,_et=`#define DISTANCE
varying vec3 vWorldPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <batching_vertex>
	#include <skinbase_vertex>
	#include <morphinstance_vertex>
	#ifdef USE_DISPLACEMENTMAP
		#include <beginnormal_vertex>
		#include <morphnormal_vertex>
		#include <skinnormal_vertex>
	#endif
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <worldpos_vertex>
	#include <clipping_planes_vertex>
	vWorldPosition = worldPosition.xyz;
}`,xet=`#define DISTANCE
uniform vec3 referencePosition;
uniform float nearDistance;
uniform float farDistance;
varying vec3 vWorldPosition;
#include <common>
#include <packing>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <clipping_planes_pars_fragment>
void main () {
	vec4 diffuseColor = vec4( 1.0 );
	#include <clipping_planes_fragment>
	#include <map_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	float dist = length( vWorldPosition - referencePosition );
	dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
	dist = saturate( dist );
	gl_FragColor = packDepthToRGBA( dist );
}`,Met=`varying vec3 vWorldDirection;
#include <common>
void main() {
	vWorldDirection = transformDirection( position, modelMatrix );
	#include <begin_vertex>
	#include <project_vertex>
}`,Cet=`uniform sampler2D tEquirect;
varying vec3 vWorldDirection;
#include <common>
void main() {
	vec3 direction = normalize( vWorldDirection );
	vec2 sampleUV = equirectUv( direction );
	gl_FragColor = texture2D( tEquirect, sampleUV );
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
}`,Pet=`uniform float scale;
attribute float lineDistance;
varying float vLineDistance;
#include <common>
#include <uv_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	vLineDistance = scale * lineDistance;
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <fog_vertex>
}`,Eet=`uniform vec3 diffuse;
uniform float opacity;
uniform float dashSize;
uniform float totalSize;
varying float vLineDistance;
#include <common>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	if ( mod( vLineDistance, totalSize ) > dashSize ) {
		discard;
	}
	vec3 outgoingLight = vec3( 0.0 );
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	outgoingLight = diffuseColor.rgb;
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
}`,Bet=`#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )
		#include <beginnormal_vertex>
		#include <morphnormal_vertex>
		#include <skinbase_vertex>
		#include <skinnormal_vertex>
		#include <defaultnormal_vertex>
	#endif
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <worldpos_vertex>
	#include <envmap_vertex>
	#include <fog_vertex>
}`,Tet=`uniform vec3 diffuse;
uniform float opacity;
#ifndef FLAT_SHADED
	varying vec3 vNormal;
#endif
#include <common>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <fog_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <specularmap_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	#ifdef USE_LIGHTMAP
		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
		reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;
	#else
		reflectedLight.indirectDiffuse += vec3( 1.0 );
	#endif
	#include <aomap_fragment>
	reflectedLight.indirectDiffuse *= diffuseColor.rgb;
	vec3 outgoingLight = reflectedLight.indirectDiffuse;
	#include <envmap_fragment>
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,ket=`#define LAMBERT
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <envmap_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,Iet=`#define LAMBERT
uniform vec3 diffuse;
uniform vec3 emissive;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_lambert_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <specularmap_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_lambert_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
	#include <envmap_fragment>
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,Let=`#define MATCAP
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <color_pars_vertex>
#include <displacementmap_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <fog_vertex>
	vViewPosition = - mvPosition.xyz;
}`,Fet=`#define MATCAP
uniform vec3 diffuse;
uniform float opacity;
uniform sampler2D matcap;
varying vec3 vViewPosition;
#include <common>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <fog_pars_fragment>
#include <normal_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	vec3 viewDir = normalize( vViewPosition );
	vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );
	vec3 y = cross( viewDir, x );
	vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
	#ifdef USE_MATCAP
		vec4 matcapColor = texture2D( matcap, uv );
	#else
		vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );
	#endif
	vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,Net=`#define NORMAL
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
	varying vec3 vViewPosition;
#endif
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphinstance_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
	vViewPosition = - mvPosition.xyz;
#endif
}`,Det=`#define NORMAL
uniform float opacity;
#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
	varying vec3 vViewPosition;
#endif
#include <packing>
#include <uv_pars_fragment>
#include <normal_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );
	#include <clipping_planes_fragment>
	#include <logdepthbuf_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );
	#ifdef OPAQUE
		gl_FragColor.a = 1.0;
	#endif
}`,Ret=`#define PHONG
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <envmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphinstance_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <envmap_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,Uet=`#define PHONG
uniform vec3 diffuse;
uniform vec3 emissive;
uniform vec3 specular;
uniform float shininess;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_pars_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_phong_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <specularmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <specularmap_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_phong_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
	#include <envmap_fragment>
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,Oet=`#define STANDARD
varying vec3 vViewPosition;
#ifdef USE_TRANSMISSION
	varying vec3 vWorldPosition;
#endif
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
#ifdef USE_TRANSMISSION
	vWorldPosition = worldPosition.xyz;
#endif
}`,Het=`#define STANDARD
#ifdef PHYSICAL
	#define IOR
	#define USE_SPECULAR
#endif
uniform vec3 diffuse;
uniform vec3 emissive;
uniform float roughness;
uniform float metalness;
uniform float opacity;
#ifdef IOR
	uniform float ior;
#endif
#ifdef USE_SPECULAR
	uniform float specularIntensity;
	uniform vec3 specularColor;
	#ifdef USE_SPECULAR_COLORMAP
		uniform sampler2D specularColorMap;
	#endif
	#ifdef USE_SPECULAR_INTENSITYMAP
		uniform sampler2D specularIntensityMap;
	#endif
#endif
#ifdef USE_CLEARCOAT
	uniform float clearcoat;
	uniform float clearcoatRoughness;
#endif
#ifdef USE_DISPERSION
	uniform float dispersion;
#endif
#ifdef USE_IRIDESCENCE
	uniform float iridescence;
	uniform float iridescenceIOR;
	uniform float iridescenceThicknessMinimum;
	uniform float iridescenceThicknessMaximum;
#endif
#ifdef USE_SHEEN
	uniform vec3 sheenColor;
	uniform float sheenRoughness;
	#ifdef USE_SHEEN_COLORMAP
		uniform sampler2D sheenColorMap;
	#endif
	#ifdef USE_SHEEN_ROUGHNESSMAP
		uniform sampler2D sheenRoughnessMap;
	#endif
#endif
#ifdef USE_ANISOTROPY
	uniform vec2 anisotropyVector;
	#ifdef USE_ANISOTROPYMAP
		uniform sampler2D anisotropyMap;
	#endif
#endif
varying vec3 vViewPosition;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <iridescence_fragment>
#include <cube_uv_reflection_fragment>
#include <envmap_common_pars_fragment>
#include <envmap_physical_pars_fragment>
#include <fog_pars_fragment>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_physical_pars_fragment>
#include <transmission_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <clearcoat_pars_fragment>
#include <iridescence_pars_fragment>
#include <roughnessmap_pars_fragment>
#include <metalnessmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <roughnessmap_fragment>
	#include <metalnessmap_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <clearcoat_normal_fragment_begin>
	#include <clearcoat_normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_physical_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;
	vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;
	#include <transmission_fragment>
	vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
	#ifdef USE_SHEEN
		float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );
		outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;
	#endif
	#ifdef USE_CLEARCOAT
		float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );
		vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );
		outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;
	#endif
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,Wet=`#define TOON
varying vec3 vViewPosition;
#include <common>
#include <batching_pars_vertex>
#include <uv_pars_vertex>
#include <displacementmap_pars_vertex>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <normal_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <shadowmap_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <normal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <displacementmap_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	vViewPosition = - mvPosition.xyz;
	#include <worldpos_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,Qet=`#define TOON
uniform vec3 diffuse;
uniform vec3 emissive;
uniform float opacity;
#include <common>
#include <packing>
#include <dithering_pars_fragment>
#include <color_pars_fragment>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <aomap_pars_fragment>
#include <lightmap_pars_fragment>
#include <emissivemap_pars_fragment>
#include <gradientmap_pars_fragment>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <normal_pars_fragment>
#include <lights_toon_pars_fragment>
#include <shadowmap_pars_fragment>
#include <bumpmap_pars_fragment>
#include <normalmap_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
	vec3 totalEmissiveRadiance = emissive;
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <color_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	#include <normal_fragment_begin>
	#include <normal_fragment_maps>
	#include <emissivemap_fragment>
	#include <lights_toon_fragment>
	#include <lights_fragment_begin>
	#include <lights_fragment_maps>
	#include <lights_fragment_end>
	#include <aomap_fragment>
	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
	#include <dithering_fragment>
}`,$et=`uniform float size;
uniform float scale;
#include <common>
#include <color_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
#ifdef USE_POINTS_UV
	varying vec2 vUv;
	uniform mat3 uvTransform;
#endif
void main() {
	#ifdef USE_POINTS_UV
		vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
	#endif
	#include <color_vertex>
	#include <morphinstance_vertex>
	#include <morphcolor_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <project_vertex>
	gl_PointSize = size;
	#ifdef USE_SIZEATTENUATION
		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
		if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
	#endif
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <worldpos_vertex>
	#include <fog_vertex>
}`,jet=`uniform vec3 diffuse;
uniform float opacity;
#include <common>
#include <color_pars_fragment>
#include <map_particle_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	vec3 outgoingLight = vec3( 0.0 );
	#include <logdepthbuf_fragment>
	#include <map_particle_fragment>
	#include <color_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	outgoingLight = diffuseColor.rgb;
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
	#include <premultiplied_alpha_fragment>
}`,zet=`#include <common>
#include <batching_pars_vertex>
#include <fog_pars_vertex>
#include <morphtarget_pars_vertex>
#include <skinning_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <shadowmap_pars_vertex>
void main() {
	#include <batching_vertex>
	#include <beginnormal_vertex>
	#include <morphinstance_vertex>
	#include <morphnormal_vertex>
	#include <skinbase_vertex>
	#include <skinnormal_vertex>
	#include <defaultnormal_vertex>
	#include <begin_vertex>
	#include <morphtarget_vertex>
	#include <skinning_vertex>
	#include <project_vertex>
	#include <logdepthbuf_vertex>
	#include <worldpos_vertex>
	#include <shadowmap_vertex>
	#include <fog_vertex>
}`,Vet=`uniform vec3 color;
uniform float opacity;
#include <common>
#include <packing>
#include <fog_pars_fragment>
#include <bsdfs>
#include <lights_pars_begin>
#include <logdepthbuf_pars_fragment>
#include <shadowmap_pars_fragment>
#include <shadowmask_pars_fragment>
void main() {
	#include <logdepthbuf_fragment>
	gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
}`,Get=`uniform float rotation;
uniform vec2 center;
#include <common>
#include <uv_pars_vertex>
#include <fog_pars_vertex>
#include <logdepthbuf_pars_vertex>
#include <clipping_planes_pars_vertex>
void main() {
	#include <uv_vertex>
	vec4 mvPosition = modelViewMatrix[ 3 ];
	vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) );
	#ifndef USE_SIZEATTENUATION
		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
		if ( isPerspective ) scale *= - mvPosition.z;
	#endif
	vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;
	vec2 rotatedPosition;
	rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
	rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
	mvPosition.xy += rotatedPosition;
	gl_Position = projectionMatrix * mvPosition;
	#include <logdepthbuf_vertex>
	#include <clipping_planes_vertex>
	#include <fog_vertex>
}`,Ket=`uniform vec3 diffuse;
uniform float opacity;
#include <common>
#include <uv_pars_fragment>
#include <map_pars_fragment>
#include <alphamap_pars_fragment>
#include <alphatest_pars_fragment>
#include <alphahash_pars_fragment>
#include <fog_pars_fragment>
#include <logdepthbuf_pars_fragment>
#include <clipping_planes_pars_fragment>
void main() {
	vec4 diffuseColor = vec4( diffuse, opacity );
	#include <clipping_planes_fragment>
	vec3 outgoingLight = vec3( 0.0 );
	#include <logdepthbuf_fragment>
	#include <map_fragment>
	#include <alphamap_fragment>
	#include <alphatest_fragment>
	#include <alphahash_fragment>
	outgoingLight = diffuseColor.rgb;
	#include <opaque_fragment>
	#include <tonemapping_fragment>
	#include <colorspace_fragment>
	#include <fog_fragment>
}`,jn={alphahash_fragment:fJe,alphahash_pars_fragment:mJe,alphamap_fragment:pJe,alphamap_pars_fragment:gJe,alphatest_fragment:vJe,alphatest_pars_fragment:yJe,aomap_fragment:wJe,aomap_pars_fragment:bJe,batching_pars_vertex:_Je,batching_vertex:xJe,begin_vertex:MJe,beginnormal_vertex:SJe,bsdfs:CJe,iridescence_fragment:PJe,bumpmap_pars_fragment:EJe,clipping_planes_fragment:BJe,clipping_planes_pars_fragment:TJe,clipping_planes_pars_vertex:kJe,clipping_planes_vertex:IJe,color_fragment:LJe,color_pars_fragment:FJe,color_pars_vertex:NJe,color_vertex:DJe,common:RJe,cube_uv_reflection_fragment:UJe,defaultnormal_vertex:OJe,displacementmap_pars_vertex:HJe,displacementmap_vertex:WJe,emissivemap_fragment:QJe,emissivemap_pars_fragment:$Je,colorspace_fragment:jJe,colorspace_pars_fragment:zJe,envmap_fragment:VJe,envmap_common_pars_fragment:GJe,envmap_pars_fragment:KJe,envmap_pars_vertex:qJe,envmap_physical_pars_fragment:sZe,envmap_vertex:XJe,fog_vertex:YJe,fog_pars_vertex:JJe,fog_fragment:ZJe,fog_pars_fragment:eZe,gradientmap_pars_fragment:tZe,lightmap_pars_fragment:nZe,lights_lambert_fragment:rZe,lights_lambert_pars_fragment:iZe,lights_pars_begin:aZe,lights_toon_fragment:oZe,lights_toon_pars_fragment:cZe,lights_phong_fragment:lZe,lights_phong_pars_fragment:uZe,lights_physical_fragment:dZe,lights_physical_pars_fragment:AZe,lights_fragment_begin:hZe,lights_fragment_maps:fZe,lights_fragment_end:mZe,logdepthbuf_fragment:pZe,logdepthbuf_pars_fragment:gZe,logdepthbuf_pars_vertex:vZe,logdepthbuf_vertex:yZe,map_fragment:wZe,map_pars_fragment:bZe,map_particle_fragment:_Ze,map_particle_pars_fragment:xZe,metalnessmap_fragment:MZe,metalnessmap_pars_fragment:SZe,morphinstance_vertex:CZe,morphcolor_vertex:PZe,morphnormal_vertex:EZe,morphtarget_pars_vertex:BZe,morphtarget_vertex:TZe,normal_fragment_begin:kZe,normal_fragment_maps:IZe,normal_pars_fragment:LZe,normal_pars_vertex:FZe,normal_vertex:NZe,normalmap_pars_fragment:DZe,clearcoat_normal_fragment_begin:RZe,clearcoat_normal_fragment_maps:UZe,clearcoat_pars_fragment:OZe,iridescence_pars_fragment:HZe,opaque_fragment:WZe,packing:QZe,premultiplied_alpha_fragment:$Ze,project_vertex:jZe,dithering_fragment:zZe,dithering_pars_fragment:VZe,roughnessmap_fragment:GZe,roughnessmap_pars_fragment:KZe,shadowmap_pars_fragment:qZe,shadowmap_pars_vertex:XZe,shadowmap_vertex:YZe,shadowmask_pars_fragment:JZe,skinbase_vertex:ZZe,skinning_pars_vertex:eet,skinning_vertex:tet,skinnormal_vertex:net,specularmap_fragment:ret,specularmap_pars_fragment:iet,tonemapping_fragment:aet,tonemapping_pars_fragment:set,transmission_fragment:oet,transmission_pars_fragment:cet,uv_pars_fragment:uet,uv_pars_vertex:det,uv_vertex:Aet,worldpos_vertex:het,background_vert:fet,background_frag:met,backgroundCube_vert:pet,backgroundCube_frag:get,cube_vert:vet,cube_frag:yet,depth_vert:wet,depth_frag:bet,distanceRGBA_vert:_et,distanceRGBA_frag:xet,equirect_vert:Met,equirect_frag:Cet,linedashed_vert:Pet,linedashed_frag:Eet,meshbasic_vert:Bet,meshbasic_frag:Tet,meshlambert_vert:ket,meshlambert_frag:Iet,meshmatcap_vert:Let,meshmatcap_frag:Fet,meshnormal_vert:Net,meshnormal_frag:Det,meshphong_vert:Ret,meshphong_frag:Uet,meshphysical_vert:Oet,meshphysical_frag:Het,meshtoon_vert:Wet,meshtoon_frag:Qet,points_vert:$et,points_frag:jet,shadow_vert:zet,shadow_frag:Vet,sprite_vert:Get,sprite_frag:Ket},Wt={common:{diffuse:{value:new Qt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Dn},alphaMap:{value:null},alphaMapTransform:{value:new Dn},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Dn}},envmap:{envMap:{value:null},envMapRotation:{value:new Dn},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Dn}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Dn}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Dn},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Dn},normalScale:{value:new vt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Dn},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Dn}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Dn}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Dn}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Qt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Qt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Dn},alphaTest:{value:0},uvTransform:{value:new Dn}},sprite:{diffuse:{value:new Qt(16777215)},opacity:{value:1},center:{value:new vt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Dn},alphaMap:{value:null},alphaMapTransform:{value:new Dn},alphaTest:{value:0}}},fc={basic:{uniforms:ws([Wt.common,Wt.specularmap,Wt.envmap,Wt.aomap,Wt.lightmap,Wt.fog]),vertexShader:jn.meshbasic_vert,fragmentShader:jn.meshbasic_frag},lambert:{uniforms:ws([Wt.common,Wt.specularmap,Wt.envmap,Wt.aomap,Wt.lightmap,Wt.emissivemap,Wt.bumpmap,Wt.normalmap,Wt.displacementmap,Wt.fog,Wt.lights,{emissive:{value:new Qt(0)}}]),vertexShader:jn.meshlambert_vert,fragmentShader:jn.meshlambert_frag},phong:{uniforms:ws([Wt.common,Wt.specularmap,Wt.envmap,Wt.aomap,Wt.lightmap,Wt.emissivemap,Wt.bumpmap,Wt.normalmap,Wt.displacementmap,Wt.fog,Wt.lights,{emissive:{value:new Qt(0)},specular:{value:new Qt(1118481)},shininess:{value:30}}]),vertexShader:jn.meshphong_vert,fragmentShader:jn.meshphong_frag},standard:{uniforms:ws([Wt.common,Wt.envmap,Wt.aomap,Wt.lightmap,Wt.emissivemap,Wt.bumpmap,Wt.normalmap,Wt.displacementmap,Wt.roughnessmap,Wt.metalnessmap,Wt.fog,Wt.lights,{emissive:{value:new Qt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:jn.meshphysical_vert,fragmentShader:jn.meshphysical_frag},toon:{uniforms:ws([Wt.common,Wt.aomap,Wt.lightmap,Wt.emissivemap,Wt.bumpmap,Wt.normalmap,Wt.displacementmap,Wt.gradientmap,Wt.fog,Wt.lights,{emissive:{value:new Qt(0)}}]),vertexShader:jn.meshtoon_vert,fragmentShader:jn.meshtoon_frag},matcap:{uniforms:ws([Wt.common,Wt.bumpmap,Wt.normalmap,Wt.displacementmap,Wt.fog,{matcap:{value:null}}]),vertexShader:jn.meshmatcap_vert,fragmentShader:jn.meshmatcap_frag},points:{uniforms:ws([Wt.points,Wt.fog]),vertexShader:jn.points_vert,fragmentShader:jn.points_frag},dashed:{uniforms:ws([Wt.common,Wt.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:jn.linedashed_vert,fragmentShader:jn.linedashed_frag},depth:{uniforms:ws([Wt.common,Wt.displacementmap]),vertexShader:jn.depth_vert,fragmentShader:jn.depth_frag},normal:{uniforms:ws([Wt.common,Wt.bumpmap,Wt.normalmap,Wt.displacementmap,{opacity:{value:1}}]),vertexShader:jn.meshnormal_vert,fragmentShader:jn.meshnormal_frag},sprite:{uniforms:ws([Wt.sprite,Wt.fog]),vertexShader:jn.sprite_vert,fragmentShader:jn.sprite_frag},background:{uniforms:{uvTransform:{value:new Dn},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:jn.background_vert,fragmentShader:jn.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Dn}},vertexShader:jn.backgroundCube_vert,fragmentShader:jn.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:jn.cube_vert,fragmentShader:jn.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:jn.equirect_vert,fragmentShader:jn.equirect_frag},distanceRGBA:{uniforms:ws([Wt.common,Wt.displacementmap,{referencePosition:{value:new ye},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:jn.distanceRGBA_vert,fragmentShader:jn.distanceRGBA_frag},shadow:{uniforms:ws([Wt.lights,Wt.fog,{color:{value:new Qt(0)},opacity:{value:1}}]),vertexShader:jn.shadow_vert,fragmentShader:jn.shadow_frag}};fc.physical={uniforms:ws([fc.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Dn},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Dn},clearcoatNormalScale:{value:new vt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Dn},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Dn},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Dn},sheen:{value:0},sheenColor:{value:new Qt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Dn},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Dn},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Dn},transmissionSamplerSize:{value:new vt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Dn},attenuationDistance:{value:0},attenuationColor:{value:new Qt(0)},specularColor:{value:new Qt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Dn},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Dn},anisotropyVector:{value:new vt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Dn}}]),vertexShader:jn.meshphysical_vert,fragmentShader:jn.meshphysical_frag};const ov={r:0,b:0,g:0},Dd=new Mo,qet=new vn;function Xet(n,e,t,r,i,a,s){const o=new Qt(0);let c=a===!0?0:1,l,u,A=null,f=0,h=null;function g(C){let M=C.isScene===!0?C.background:null;return M&&M.isTexture&&(M=(C.backgroundBlurriness>0?t:e).get(M)),M}function y(C){let M=!1;const F=g(C);F===null?v(o,c):F&&F.isColor&&(v(F,1),M=!0);const D=n.xr.getEnvironmentBlendMode();D==="additive"?r.buffers.color.setClear(0,0,0,1,s):D==="alpha-blend"&&r.buffers.color.setClear(0,0,0,0,s),(n.autoClear||M)&&(r.buffers.depth.setTest(!0),r.buffers.depth.setMask(!0),r.buffers.color.setMask(!0),n.clear(n.autoClearColor,n.autoClearDepth,n.autoClearStencil))}function w(C,M){const F=g(M);F&&(F.isCubeTexture||F.mapping===Nf)?(u===void 0&&(u=new Fi(new zA(1,1,1),new bc({name:"BackgroundCubeMaterial",uniforms:yf(fc.backgroundCube.uniforms),vertexShader:fc.backgroundCube.vertexShader,fragmentShader:fc.backgroundCube.fragmentShader,side:Ss,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(D,U,O){this.matrixWorld.copyPosition(O.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),i.update(u)),Dd.copy(M.backgroundRotation),Dd.x*=-1,Dd.y*=-1,Dd.z*=-1,F.isCubeTexture&&F.isRenderTargetTexture===!1&&(Dd.y*=-1,Dd.z*=-1),u.material.uniforms.envMap.value=F,u.material.uniforms.flipEnvMap.value=F.isCubeTexture&&F.isRenderTargetTexture===!1?-1:1,u.material.uniforms.backgroundBlurriness.value=M.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=M.backgroundIntensity,u.material.uniforms.backgroundRotation.value.setFromMatrix4(qet.makeRotationFromEuler(Dd)),u.material.toneMapped=Jn.getTransfer(F.colorSpace)!==Sr,(A!==F||f!==F.version||h!==n.toneMapping)&&(u.material.needsUpdate=!0,A=F,f=F.version,h=n.toneMapping),u.layers.enableAll(),C.unshift(u,u.geometry,u.material,0,0,null)):F&&F.isTexture&&(l===void 0&&(l=new Fi(new Uf(2,2),new bc({name:"BackgroundMaterial",uniforms:yf(fc.background.uniforms),vertexShader:fc.background.vertexShader,fragmentShader:fc.background.fragmentShader,side:rl,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),Object.defineProperty(l.material,"map",{get:function(){return this.uniforms.t2D.value}}),i.update(l)),l.material.uniforms.t2D.value=F,l.material.uniforms.backgroundIntensity.value=M.backgroundIntensity,l.material.toneMapped=Jn.getTransfer(F.colorSpace)!==Sr,F.matrixAutoUpdate===!0&&F.updateMatrix(),l.material.uniforms.uvTransform.value.copy(F.matrix),(A!==F||f!==F.version||h!==n.toneMapping)&&(l.material.needsUpdate=!0,A=F,f=F.version,h=n.toneMapping),l.layers.enableAll(),C.unshift(l,l.geometry,l.material,0,0,null))}function v(C,M){C.getRGB(ov,oQ(n)),r.buffers.color.setClear(ov.r,ov.g,ov.b,M,s)}function S(){u!==void 0&&(u.geometry.dispose(),u.material.dispose()),l!==void 0&&(l.geometry.dispose(),l.material.dispose())}return{getClearColor:function(){return o},setClearColor:function(C,M=1){o.set(C),c=M,v(o,c)},getClearAlpha:function(){return c},setClearAlpha:function(C){c=C,v(o,c)},render:y,addToRenderList:w,dispose:S}}function Yet(n,e){const t=n.getParameter(n.MAX_VERTEX_ATTRIBS),r={},i=f(null);let a=i,s=!1;function o(P,k,H,j,$){let ce=!1;const de=A(j,H,k);a!==de&&(a=de,l(a.object)),ce=h(P,j,H,$),ce&&g(P,j,H,$),$!==null&&e.update($,n.ELEMENT_ARRAY_BUFFER),(ce||s)&&(s=!1,M(P,k,H,j),$!==null&&n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,e.get($).buffer))}function c(){return n.createVertexArray()}function l(P){return n.bindVertexArray(P)}function u(P){return n.deleteVertexArray(P)}function A(P,k,H){const j=H.wireframe===!0;let $=r[P.id];$===void 0&&($={},r[P.id]=$);let ce=$[k.id];ce===void 0&&(ce={},$[k.id]=ce);let de=ce[j];return de===void 0&&(de=f(c()),ce[j]=de),de}function f(P){const k=[],H=[],j=[];for(let $=0;$<t;$++)k[$]=0,H[$]=0,j[$]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:k,enabledAttributes:H,attributeDivisors:j,object:P,attributes:{},index:null}}function h(P,k,H,j){const $=a.attributes,ce=k.attributes;let de=0;const fe=H.getAttributes();for(const ee in fe)if(fe[ee].location>=0){const xe=$[ee];let Pe=ce[ee];if(Pe===void 0&&(ee==="instanceMatrix"&&P.instanceMatrix&&(Pe=P.instanceMatrix),ee==="instanceColor"&&P.instanceColor&&(Pe=P.instanceColor)),xe===void 0||xe.attribute!==Pe||Pe&&xe.data!==Pe.data)return!0;de++}return a.attributesNum!==de||a.index!==j}function g(P,k,H,j){const $={},ce=k.attributes;let de=0;const fe=H.getAttributes();for(const ee in fe)if(fe[ee].location>=0){let xe=ce[ee];xe===void 0&&(ee==="instanceMatrix"&&P.instanceMatrix&&(xe=P.instanceMatrix),ee==="instanceColor"&&P.instanceColor&&(xe=P.instanceColor));const Pe={};Pe.attribute=xe,xe&&xe.data&&(Pe.data=xe.data),$[ee]=Pe,de++}a.attributes=$,a.attributesNum=de,a.index=j}function y(){const P=a.newAttributes;for(let k=0,H=P.length;k<H;k++)P[k]=0}function w(P){v(P,0)}function v(P,k){const H=a.newAttributes,j=a.enabledAttributes,$=a.attributeDivisors;H[P]=1,j[P]===0&&(n.enableVertexAttribArray(P),j[P]=1),$[P]!==k&&(n.vertexAttribDivisor(P,k),$[P]=k)}function S(){const P=a.newAttributes,k=a.enabledAttributes;for(let H=0,j=k.length;H<j;H++)k[H]!==P[H]&&(n.disableVertexAttribArray(H),k[H]=0)}function C(P,k,H,j,$,ce,de){de===!0?n.vertexAttribIPointer(P,k,H,$,ce):n.vertexAttribPointer(P,k,H,j,$,ce)}function M(P,k,H,j){y();const $=j.attributes,ce=H.getAttributes(),de=k.defaultAttributeValues;for(const fe in ce){const ee=ce[fe];if(ee.location>=0){let Se=$[fe];if(Se===void 0&&(fe==="instanceMatrix"&&P.instanceMatrix&&(Se=P.instanceMatrix),fe==="instanceColor"&&P.instanceColor&&(Se=P.instanceColor)),Se!==void 0){const xe=Se.normalized,Pe=Se.itemSize,V=e.get(Se);if(V===void 0)continue;const ae=V.buffer,J=V.type,z=V.bytesPerElement,Z=J===n.INT||J===n.UNSIGNED_INT||Se.gpuType===db;if(Se.isInterleavedBufferAttribute){const le=Se.data,ge=le.stride,Me=Se.offset;if(le.isInstancedInterleavedBuffer){for(let Te=0;Te<ee.locationSize;Te++)v(ee.location+Te,le.meshPerAttribute);P.isInstancedMesh!==!0&&j._maxInstanceCount===void 0&&(j._maxInstanceCount=le.meshPerAttribute*le.count)}else for(let Te=0;Te<ee.locationSize;Te++)w(ee.location+Te);n.bindBuffer(n.ARRAY_BUFFER,ae);for(let Te=0;Te<ee.locationSize;Te++)C(ee.location+Te,Pe/ee.locationSize,J,xe,ge*z,(Me+Pe/ee.locationSize*Te)*z,Z)}else{if(Se.isInstancedBufferAttribute){for(let le=0;le<ee.locationSize;le++)v(ee.location+le,Se.meshPerAttribute);P.isInstancedMesh!==!0&&j._maxInstanceCount===void 0&&(j._maxInstanceCount=Se.meshPerAttribute*Se.count)}else for(let le=0;le<ee.locationSize;le++)w(ee.location+le);n.bindBuffer(n.ARRAY_BUFFER,ae);for(let le=0;le<ee.locationSize;le++)C(ee.location+le,Pe/ee.locationSize,J,xe,Pe*z,Pe/ee.locationSize*le*z,Z)}}else if(de!==void 0){const xe=de[fe];if(xe!==void 0)switch(xe.length){case 2:n.vertexAttrib2fv(ee.location,xe);break;case 3:n.vertexAttrib3fv(ee.location,xe);break;case 4:n.vertexAttrib4fv(ee.location,xe);break;default:n.vertexAttrib1fv(ee.location,xe)}}}}S()}function F(){O();for(const P in r){const k=r[P];for(const H in k){const j=k[H];for(const $ in j)u(j[$].object),delete j[$];delete k[H]}delete r[P]}}function D(P){if(r[P.id]===void 0)return;const k=r[P.id];for(const H in k){const j=k[H];for(const $ in j)u(j[$].object),delete j[$];delete k[H]}delete r[P.id]}function U(P){for(const k in r){const H=r[k];if(H[P.id]===void 0)continue;const j=H[P.id];for(const $ in j)u(j[$].object),delete j[$];delete H[P.id]}}function O(){T(),s=!0,a!==i&&(a=i,l(a.object))}function T(){i.geometry=null,i.program=null,i.wireframe=!1}return{setup:o,reset:O,resetDefaultState:T,dispose:F,releaseStatesOfGeometry:D,releaseStatesOfProgram:U,initAttributes:y,enableAttribute:w,disableUnusedAttributes:S}}function Jet(n,e,t){let r;function i(l){r=l}function a(l,u){n.drawArrays(r,l,u),t.update(u,r,1)}function s(l,u,A){A!==0&&(n.drawArraysInstanced(r,l,u,A),t.update(u,r,A))}function o(l,u,A){if(A===0)return;e.get("WEBGL_multi_draw").multiDrawArraysWEBGL(r,l,0,u,0,A);let h=0;for(let g=0;g<A;g++)h+=u[g];t.update(h,r,1)}function c(l,u,A,f){if(A===0)return;const h=e.get("WEBGL_multi_draw");if(h===null)for(let g=0;g<l.length;g++)s(l[g],u[g],f[g]);else{h.multiDrawArraysInstancedWEBGL(r,l,0,u,0,f,0,A);let g=0;for(let y=0;y<A;y++)g+=u[y]*f[y];t.update(g,r,1)}}this.setMode=i,this.render=a,this.renderInstances=s,this.renderMultiDraw=o,this.renderMultiDrawInstances=c}function Zet(n,e,t,r){let i;function a(){if(i!==void 0)return i;if(e.has("EXT_texture_filter_anisotropic")===!0){const U=e.get("EXT_texture_filter_anisotropic");i=n.getParameter(U.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function s(U){return!(U!==Ms&&r.convert(U)!==n.getParameter(n.IMPLEMENTATION_COLOR_READ_FORMAT))}function o(U){const O=U===Df&&(e.has("EXT_color_buffer_half_float")||e.has("EXT_color_buffer_float"));return!(U!==il&&r.convert(U)!==n.getParameter(n.IMPLEMENTATION_COLOR_READ_TYPE)&&U!==zs&&!O)}function c(U){if(U==="highp"){if(n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.HIGH_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.HIGH_FLOAT).precision>0)return"highp";U="mediump"}return U==="mediump"&&n.getShaderPrecisionFormat(n.VERTEX_SHADER,n.MEDIUM_FLOAT).precision>0&&n.getShaderPrecisionFormat(n.FRAGMENT_SHADER,n.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let l=t.precision!==void 0?t.precision:"highp";const u=c(l);u!==l&&(l=u);const A=t.logarithmicDepthBuffer===!0,f=t.reverseDepthBuffer===!0&&e.has("EXT_clip_control"),h=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS),g=n.getParameter(n.MAX_VERTEX_TEXTURE_IMAGE_UNITS),y=n.getParameter(n.MAX_TEXTURE_SIZE),w=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),v=n.getParameter(n.MAX_VERTEX_ATTRIBS),S=n.getParameter(n.MAX_VERTEX_UNIFORM_VECTORS),C=n.getParameter(n.MAX_VARYING_VECTORS),M=n.getParameter(n.MAX_FRAGMENT_UNIFORM_VECTORS),F=g>0,D=n.getParameter(n.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:s,textureTypeReadable:o,precision:l,logarithmicDepthBuffer:A,reverseDepthBuffer:f,maxTextures:h,maxVertexTextures:g,maxTextureSize:y,maxCubemapSize:w,maxAttributes:v,maxVertexUniforms:S,maxVaryings:C,maxFragmentUniforms:M,vertexTextures:F,maxSamples:D}}function ett(n){const e=this;let t=null,r=0,i=!1,a=!1;const s=new Il,o=new Dn,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(A,f){const h=A.length!==0||f||r!==0||i;return i=f,r=A.length,h},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(A,f){t=u(A,f,0)},this.setState=function(A,f,h){const g=A.clippingPlanes,y=A.clipIntersection,w=A.clipShadows,v=n.get(A);if(!i||g===null||g.length===0||a&&!w)a?u(null):l();else{const S=a?0:r,C=S*4;let M=v.clippingState||null;c.value=M,M=u(g,f,C,h);for(let F=0;F!==C;++F)M[F]=t[F];v.clippingState=M,this.numIntersection=y?this.numPlanes:0,this.numPlanes+=S}};function l(){c.value!==t&&(c.value=t,c.needsUpdate=r>0),e.numPlanes=r,e.numIntersection=0}function u(A,f,h,g){const y=A!==null?A.length:0;let w=null;if(y!==0){if(w=c.value,g!==!0||w===null){const v=h+y*4,S=f.matrixWorldInverse;o.getNormalMatrix(S),(w===null||w.length<v)&&(w=new Float32Array(v));for(let C=0,M=h;C!==y;++C,M+=4)s.copy(A[C]).applyMatrix4(S,o),s.normal.toArray(w,M),w[M+3]=s.constant}c.value=w,c.needsUpdate=!0}return e.numPlanes=y,e.numIntersection=0,w}}function ttt(n){let e=new WeakMap;function t(s,o){return o===zp?s.mapping=Yl:o===Vp&&(s.mapping=ed),s}function r(s){if(s&&s.isTexture){const o=s.mapping;if(o===zp||o===Vp)if(e.has(s)){const c=e.get(s).texture;return t(c,s.mapping)}else{const c=s.image;if(c&&c.height>0){const l=new uQ(c.height);return l.fromEquirectangularTexture(n,s),e.set(s,l),s.addEventListener("dispose",i),t(l.texture,s.mapping)}else return null}}return s}function i(s){const o=s.target;o.removeEventListener("dispose",i);const c=e.get(o);c!==void 0&&(e.delete(o),c.dispose())}function a(){e=new WeakMap}return{get:r,dispose:a}}const Vh=4,Y5=[.125,.215,.35,.446,.526,.582],Gh=20,kx=new Rg,J5=new Qt;let Ix=null,Lx=0,Fx=0,Nx=!1;const $d=(1+Math.sqrt(5))/2,Ih=1/$d,Z5=[new ye(-$d,Ih,0),new ye($d,Ih,0),new ye(-Ih,0,$d),new ye(Ih,0,$d),new ye(0,$d,-Ih),new ye(0,$d,Ih),new ye(-1,1,-1),new ye(1,1,-1),new ye(-1,1,1),new ye(1,1,1)];class FM{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,r=.1,i=100){Ix=this._renderer.getRenderTarget(),Lx=this._renderer.getActiveCubeFace(),Fx=this._renderer.getActiveMipmapLevel(),Nx=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const a=this._allocateTargets();return a.depthBuffer=!0,this._sceneToCubeUV(e,r,i,a),t>0&&this._blur(a,0,0,t),this._applyPMREM(a),this._cleanup(a),a}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=nL(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=tL(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(Ix,Lx,Fx),this._renderer.xr.enabled=Nx,e.scissorTest=!1,cv(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===Yl||e.mapping===ed?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),Ix=this._renderer.getRenderTarget(),Lx=this._renderer.getActiveCubeFace(),Fx=this._renderer.getActiveMipmapLevel(),Nx=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const r=t||this._allocateTargets();return this._textureToCubeUV(e,r),this._applyPMREM(r),this._cleanup(r),r}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,r={magFilter:pi,minFilter:pi,generateMipmaps:!1,type:Df,format:Ms,colorSpace:Xa,depthBuffer:!1},i=eL(e,t,r);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=eL(e,t,r);const{_lodMax:a}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=ntt(a)),this._blurMaterial=rtt(a,e,t)}return i}_compileMaterial(e){const t=new Fi(this._lodPlanes[0],e);this._renderer.compile(t,kx)}_sceneToCubeUV(e,t,r,i){const o=new Aa(90,1,t,r),c=[1,-1,1,1,1,1],l=[1,1,1,-1,-1,-1],u=this._renderer,A=u.autoClear,f=u.toneMapping;u.getClearColor(J5),u.toneMapping=jl,u.autoClear=!1;const h=new vo({name:"PMREM.Background",side:Ss,depthWrite:!1,depthTest:!1}),g=new Fi(new zA,h);let y=!1;const w=e.background;w?w.isColor&&(h.color.copy(w),e.background=null,y=!0):(h.color.copy(J5),y=!0);for(let v=0;v<6;v++){const S=v%3;S===0?(o.up.set(0,c[v],0),o.lookAt(l[v],0,0)):S===1?(o.up.set(0,0,c[v]),o.lookAt(0,l[v],0)):(o.up.set(0,c[v],0),o.lookAt(0,0,l[v]));const C=this._cubeSize;cv(i,S*C,v>2?C:0,C,C),u.setRenderTarget(i),y&&u.render(g,o),u.render(e,o)}g.geometry.dispose(),g.material.dispose(),u.toneMapping=f,u.autoClear=A,e.background=w}_textureToCubeUV(e,t){const r=this._renderer,i=e.mapping===Yl||e.mapping===ed;i?(this._cubemapMaterial===null&&(this._cubemapMaterial=nL()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=tL());const a=i?this._cubemapMaterial:this._equirectMaterial,s=new Fi(this._lodPlanes[0],a),o=a.uniforms;o.envMap.value=e;const c=this._cubeSize;cv(t,0,0,3*c,2*c),r.setRenderTarget(t),r.render(s,kx)}_applyPMREM(e){const t=this._renderer,r=t.autoClear;t.autoClear=!1;const i=this._lodPlanes.length;for(let a=1;a<i;a++){const s=Math.sqrt(this._sigmas[a]*this._sigmas[a]-this._sigmas[a-1]*this._sigmas[a-1]),o=Z5[(i-a-1)%Z5.length];this._blur(e,a-1,a,s,o)}t.autoClear=r}_blur(e,t,r,i,a){const s=this._pingPongRenderTarget;this._halfBlur(e,s,t,r,i,"latitudinal",a),this._halfBlur(s,e,r,r,i,"longitudinal",a)}_halfBlur(e,t,r,i,a,s,o){const c=this._renderer,l=this._blurMaterial,u=3,A=new Fi(this._lodPlanes[i],l),f=l.uniforms,h=this._sizeLods[r]-1,g=isFinite(a)?Math.PI/(2*h):2*Math.PI/(2*Gh-1),y=a/g,w=isFinite(a)?1+Math.floor(u*y):Gh;w>Gh;const v=[];let S=0;for(let U=0;U<Gh;++U){const O=U/y,T=Math.exp(-O*O/2);v.push(T),U===0?S+=T:U<w&&(S+=2*T)}for(let U=0;U<v.length;U++)v[U]=v[U]/S;f.envMap.value=e.texture,f.samples.value=w,f.weights.value=v,f.latitudinal.value=s==="latitudinal",o&&(f.poleAxis.value=o);const{_lodMax:C}=this;f.dTheta.value=g,f.mipInt.value=C-r;const M=this._sizeLods[i],F=3*M*(i>C-Vh?i-C+Vh:0),D=4*(this._cubeSize-M);cv(t,F,D,3*M,2*M),c.setRenderTarget(t),c.render(A,kx)}}function ntt(n){const e=[],t=[],r=[];let i=n;const a=n-Vh+1+Y5.length;for(let s=0;s<a;s++){const o=Math.pow(2,i);t.push(o);let c=1/o;s>n-Vh?c=Y5[s-n+Vh-1]:s===0&&(c=0),r.push(c);const l=1/(o-2),u=-l,A=1+l,f=[u,u,A,u,A,A,u,u,A,A,u,A],h=6,g=6,y=3,w=2,v=1,S=new Float32Array(y*g*h),C=new Float32Array(w*g*h),M=new Float32Array(v*g*h);for(let D=0;D<h;D++){const U=D%3*2/3-1,O=D>2?0:-1,T=[U,O,0,U+2/3,O,0,U+2/3,O+1,0,U,O,0,U+2/3,O+1,0,U,O+1,0];S.set(T,y*g*D),C.set(f,w*g*D);const P=[D,D,D,D,D,D];M.set(P,v*g*D)}const F=new Hn;F.setAttribute("position",new hr(S,y)),F.setAttribute("uv",new hr(C,w)),F.setAttribute("faceIndex",new hr(M,v)),e.push(F),i>Vh&&i--}return{lodPlanes:e,sizeLods:t,sigmas:r}}function eL(n,e,t){const r=new wc(n,e,t);return r.texture.mapping=Nf,r.texture.name="PMREM.cubeUv",r.scissorTest=!0,r}function cv(n,e,t,r,i){n.viewport.set(e,t,r,i),n.scissor.set(e,t,r,i)}function rtt(n,e,t){const r=new Float32Array(Gh),i=new ye(0,1,0);return new bc({name:"SphericalGaussianBlur",defines:{n:Gh,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/t,CUBEUV_MAX_MIP:`${n}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:r},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:i}},vertexShader:JP(),fragmentShader:`

			precision mediump float;
			precision mediump int;

			varying vec3 vOutputDirection;

			uniform sampler2D envMap;
			uniform int samples;
			uniform float weights[ n ];
			uniform bool latitudinal;
			uniform float dTheta;
			uniform float mipInt;
			uniform vec3 poleAxis;

			#define ENVMAP_TYPE_CUBE_UV
			#include <cube_uv_reflection_fragment>

			vec3 getSample( float theta, vec3 axis ) {

				float cosTheta = cos( theta );
				// Rodrigues' axis-angle rotation
				vec3 sampleDirection = vOutputDirection * cosTheta
					+ cross( axis, vOutputDirection ) * sin( theta )
					+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );

				return bilinearCubeUV( envMap, sampleDirection, mipInt );

			}

			void main() {

				vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );

				if ( all( equal( axis, vec3( 0.0 ) ) ) ) {

					axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );

				}

				axis = normalize( axis );

				gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );
				gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );

				for ( int i = 1; i < n; i++ ) {

					if ( i >= samples ) {

						break;

					}

					float theta = dTheta * float( i );
					gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );
					gl_FragColor.rgb += weights[ i ] * getSample( theta, axis );

				}

			}
		`,blending:$l,depthTest:!1,depthWrite:!1})}function tL(){return new bc({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:JP(),fragmentShader:`

			precision mediump float;
			precision mediump int;

			varying vec3 vOutputDirection;

			uniform sampler2D envMap;

			#include <common>

			void main() {

				vec3 outputDirection = normalize( vOutputDirection );
				vec2 uv = equirectUv( outputDirection );

				gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );

			}
		`,blending:$l,depthTest:!1,depthWrite:!1})}function nL(){return new bc({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:JP(),fragmentShader:`

			precision mediump float;
			precision mediump int;

			uniform float flipEnvMap;

			varying vec3 vOutputDirection;

			uniform samplerCube envMap;

			void main() {

				gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );

			}
		`,blending:$l,depthTest:!1,depthWrite:!1})}function JP(){return`

		precision mediump float;
		precision mediump int;

		attribute float faceIndex;

		varying vec3 vOutputDirection;

		// RH coordinate system; PMREM face-indexing convention
		vec3 getDirection( vec2 uv, float face ) {

			uv = 2.0 * uv - 1.0;

			vec3 direction = vec3( uv, 1.0 );

			if ( face == 0.0 ) {

				direction = direction.zyx; // ( 1, v, u ) pos x

			} else if ( face == 1.0 ) {

				direction = direction.xzy;
				direction.xz *= -1.0; // ( -u, 1, -v ) pos y

			} else if ( face == 2.0 ) {

				direction.x *= -1.0; // ( -u, v, 1 ) pos z

			} else if ( face == 3.0 ) {

				direction = direction.zyx;
				direction.xz *= -1.0; // ( -1, v, -u ) neg x

			} else if ( face == 4.0 ) {

				direction = direction.xzy;
				direction.xy *= -1.0; // ( -u, -1, v ) neg y

			} else if ( face == 5.0 ) {

				direction.z *= -1.0; // ( u, v, -1 ) neg z

			}

			return direction;

		}

		void main() {

			vOutputDirection = getDirection( uv, faceIndex );
			gl_Position = vec4( position, 1.0 );

		}
	`}function itt(n){let e=new WeakMap,t=null;function r(o){if(o&&o.isTexture){const c=o.mapping,l=c===zp||c===Vp,u=c===Yl||c===ed;if(l||u){let A=e.get(o);const f=A!==void 0?A.texture.pmremVersion:0;if(o.isRenderTargetTexture&&o.pmremVersion!==f)return t===null&&(t=new FM(n)),A=l?t.fromEquirectangular(o,A):t.fromCubemap(o,A),A.texture.pmremVersion=o.pmremVersion,e.set(o,A),A.texture;if(A!==void 0)return A.texture;{const h=o.image;return l&&h&&h.height>0||u&&h&&i(h)?(t===null&&(t=new FM(n)),A=l?t.fromEquirectangular(o):t.fromCubemap(o),A.texture.pmremVersion=o.pmremVersion,e.set(o,A),o.addEventListener("dispose",a),A.texture):null}}}return o}function i(o){let c=0;const l=6;for(let u=0;u<l;u++)o[u]!==void 0&&c++;return c===l}function a(o){const c=o.target;c.removeEventListener("dispose",a);const l=e.get(c);l!==void 0&&(e.delete(c),l.dispose())}function s(){e=new WeakMap,t!==null&&(t.dispose(),t=null)}return{get:r,dispose:s}}function att(n){const e={};function t(r){if(e[r]!==void 0)return e[r];let i;switch(r){case"WEBGL_depth_texture":i=n.getExtension("WEBGL_depth_texture")||n.getExtension("MOZ_WEBGL_depth_texture")||n.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=n.getExtension("EXT_texture_filter_anisotropic")||n.getExtension("MOZ_EXT_texture_filter_anisotropic")||n.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=n.getExtension("WEBGL_compressed_texture_s3tc")||n.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=n.getExtension("WEBGL_compressed_texture_pvrtc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=n.getExtension(r)}return e[r]=i,i}return{has:function(r){return t(r)!==null},init:function(){t("EXT_color_buffer_float"),t("WEBGL_clip_cull_distance"),t("OES_texture_float_linear"),t("EXT_color_buffer_half_float"),t("WEBGL_multisampled_render_to_texture"),t("WEBGL_render_shared_exponent")},get:function(r){const i=t(r);return i===null&&Wh("THREE.WebGLRenderer: "+r+" extension not supported."),i}}}function stt(n,e,t,r){const i={},a=new WeakMap;function s(A){const f=A.target;f.index!==null&&e.remove(f.index);for(const g in f.attributes)e.remove(f.attributes[g]);f.removeEventListener("dispose",s),delete i[f.id];const h=a.get(f);h&&(e.remove(h),a.delete(f)),r.releaseStatesOfGeometry(f),f.isInstancedBufferGeometry===!0&&delete f._maxInstanceCount,t.memory.geometries--}function o(A,f){return i[f.id]===!0||(f.addEventListener("dispose",s),i[f.id]=!0,t.memory.geometries++),f}function c(A){const f=A.attributes;for(const h in f)e.update(f[h],n.ARRAY_BUFFER)}function l(A){const f=[],h=A.index,g=A.attributes.position;let y=0;if(h!==null){const S=h.array;y=h.version;for(let C=0,M=S.length;C<M;C+=3){const F=S[C+0],D=S[C+1],U=S[C+2];f.push(F,D,D,U,U,F)}}else if(g!==void 0){const S=g.array;y=g.version;for(let C=0,M=S.length/3-1;C<M;C+=3){const F=C+0,D=C+1,U=C+2;f.push(F,D,D,U,U,F)}}else return;const w=new(nQ(f)?MP:xP)(f,1);w.version=y;const v=a.get(A);v&&e.remove(v),a.set(A,w)}function u(A){const f=a.get(A);if(f){const h=A.index;h!==null&&f.version<h.version&&l(A)}else l(A);return a.get(A)}return{get:o,update:c,getWireframeAttribute:u}}function ott(n,e,t){let r;function i(f){r=f}let a,s;function o(f){a=f.type,s=f.bytesPerElement}function c(f,h){n.drawElements(r,h,a,f*s),t.update(h,r,1)}function l(f,h,g){g!==0&&(n.drawElementsInstanced(r,h,a,f*s,g),t.update(h,r,g))}function u(f,h,g){if(g===0)return;e.get("WEBGL_multi_draw").multiDrawElementsWEBGL(r,h,0,a,f,0,g);let w=0;for(let v=0;v<g;v++)w+=h[v];t.update(w,r,1)}function A(f,h,g,y){if(g===0)return;const w=e.get("WEBGL_multi_draw");if(w===null)for(let v=0;v<f.length;v++)l(f[v]/s,h[v],y[v]);else{w.multiDrawElementsInstancedWEBGL(r,h,0,a,f,0,y,0,g);let v=0;for(let S=0;S<g;S++)v+=h[S]*y[S];t.update(v,r,1)}}this.setMode=i,this.setIndex=o,this.render=c,this.renderInstances=l,this.renderMultiDraw=u,this.renderMultiDrawInstances=A}function ctt(n){const e={geometries:0,textures:0},t={frame:0,calls:0,triangles:0,points:0,lines:0};function r(a,s,o){switch(t.calls++,s){case n.TRIANGLES:t.triangles+=o*(a/3);break;case n.LINES:t.lines+=o*(a/2);break;case n.LINE_STRIP:t.lines+=o*(a-1);break;case n.LINE_LOOP:t.lines+=o*a;break;case n.POINTS:t.points+=o*a;break;default:break}}function i(){t.calls=0,t.triangles=0,t.points=0,t.lines=0}return{memory:e,render:t,programs:null,autoReset:!0,reset:i,update:r}}function ltt(n,e,t){const r=new WeakMap,i=new ar;function a(s,o,c){const l=s.morphTargetInfluences,u=o.morphAttributes.position||o.morphAttributes.normal||o.morphAttributes.color,A=u!==void 0?u.length:0;let f=r.get(o);if(f===void 0||f.count!==A){let T=function(){U.dispose(),r.delete(o),o.removeEventListener("dispose",T)};f!==void 0&&f.texture.dispose();const h=o.morphAttributes.position!==void 0,g=o.morphAttributes.normal!==void 0,y=o.morphAttributes.color!==void 0,w=o.morphAttributes.position||[],v=o.morphAttributes.normal||[],S=o.morphAttributes.color||[];let C=0;h===!0&&(C=1),g===!0&&(C=2),y===!0&&(C=3);let M=o.attributes.position.count*C,F=1;M>e.maxTextureSize&&(F=Math.ceil(M/e.maxTextureSize),M=e.maxTextureSize);const D=new Float32Array(M*F*4*A),U=new vb(D,M,F,A);U.type=zs,U.needsUpdate=!0;const O=C*4;for(let P=0;P<A;P++){const k=w[P],H=v[P],j=S[P],$=M*F*4*P;for(let ce=0;ce<k.count;ce++){const de=ce*O;h===!0&&(i.fromBufferAttribute(k,ce),D[$+de+0]=i.x,D[$+de+1]=i.y,D[$+de+2]=i.z,D[$+de+3]=0),g===!0&&(i.fromBufferAttribute(H,ce),D[$+de+4]=i.x,D[$+de+5]=i.y,D[$+de+6]=i.z,D[$+de+7]=0),y===!0&&(i.fromBufferAttribute(j,ce),D[$+de+8]=i.x,D[$+de+9]=i.y,D[$+de+10]=i.z,D[$+de+11]=j.itemSize===4?i.w:1)}}f={count:A,texture:U,size:new vt(M,F)},r.set(o,f),o.addEventListener("dispose",T)}if(s.isInstancedMesh===!0&&s.morphTexture!==null)c.getUniforms().setValue(n,"morphTexture",s.morphTexture,t);else{let h=0;for(let y=0;y<l.length;y++)h+=l[y];const g=o.morphTargetsRelative?1:1-h;c.getUniforms().setValue(n,"morphTargetBaseInfluence",g),c.getUniforms().setValue(n,"morphTargetInfluences",l)}c.getUniforms().setValue(n,"morphTargetsTexture",f.texture,t),c.getUniforms().setValue(n,"morphTargetsTextureSize",f.size)}return{update:a}}function utt(n,e,t,r){let i=new WeakMap;function a(c){const l=r.render.frame,u=c.geometry,A=e.get(c,u);if(i.get(A)!==l&&(e.update(A),i.set(A,l)),c.isInstancedMesh&&(c.hasEventListener("dispose",o)===!1&&c.addEventListener("dispose",o),i.get(c)!==l&&(t.update(c.instanceMatrix,n.ARRAY_BUFFER),c.instanceColor!==null&&t.update(c.instanceColor,n.ARRAY_BUFFER),i.set(c,l))),c.isSkinnedMesh){const f=c.skeleton;i.get(f)!==l&&(f.update(),i.set(f,l))}return A}function s(){i=new WeakMap}function o(c){const l=c.target;l.removeEventListener("dispose",o),t.remove(l.instanceMatrix),l.instanceColor!==null&&t.remove(l.instanceColor)}return{update:a,dispose:s}}const r$=new ai,rL=new TP(1,1),i$=new vb,a$=new _P,s$=new Bg,iL=[],aL=[],sL=new Float32Array(16),oL=new Float32Array(9),cL=new Float32Array(4);function Hf(n,e,t){const r=n[0];if(r<=0||r>0)return n;const i=e*t;let a=iL[i];if(a===void 0&&(a=new Float32Array(i),iL[i]=a),e!==0){r.toArray(a,0);for(let s=1,o=0;s!==e;++s)o+=t,n[s].toArray(a,o)}return a}function Ji(n,e){if(n.length!==e.length)return!1;for(let t=0,r=n.length;t<r;t++)if(n[t]!==e[t])return!1;return!0}function Zi(n,e){for(let t=0,r=e.length;t<r;t++)n[t]=e[t]}function Wb(n,e){let t=aL[e];t===void 0&&(t=new Int32Array(e),aL[e]=t);for(let r=0;r!==e;++r)t[r]=n.allocateTextureUnit();return t}function dtt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1f(this.addr,e),t[0]=e)}function Att(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2f(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(Ji(t,e))return;n.uniform2fv(this.addr,e),Zi(t,e)}}function htt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3f(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else if(e.r!==void 0)(t[0]!==e.r||t[1]!==e.g||t[2]!==e.b)&&(n.uniform3f(this.addr,e.r,e.g,e.b),t[0]=e.r,t[1]=e.g,t[2]=e.b);else{if(Ji(t,e))return;n.uniform3fv(this.addr,e),Zi(t,e)}}function ftt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4f(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(Ji(t,e))return;n.uniform4fv(this.addr,e),Zi(t,e)}}function mtt(n,e){const t=this.cache,r=e.elements;if(r===void 0){if(Ji(t,e))return;n.uniformMatrix2fv(this.addr,!1,e),Zi(t,e)}else{if(Ji(t,r))return;cL.set(r),n.uniformMatrix2fv(this.addr,!1,cL),Zi(t,r)}}function ptt(n,e){const t=this.cache,r=e.elements;if(r===void 0){if(Ji(t,e))return;n.uniformMatrix3fv(this.addr,!1,e),Zi(t,e)}else{if(Ji(t,r))return;oL.set(r),n.uniformMatrix3fv(this.addr,!1,oL),Zi(t,r)}}function gtt(n,e){const t=this.cache,r=e.elements;if(r===void 0){if(Ji(t,e))return;n.uniformMatrix4fv(this.addr,!1,e),Zi(t,e)}else{if(Ji(t,r))return;sL.set(r),n.uniformMatrix4fv(this.addr,!1,sL),Zi(t,r)}}function vtt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1i(this.addr,e),t[0]=e)}function ytt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2i(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(Ji(t,e))return;n.uniform2iv(this.addr,e),Zi(t,e)}}function wtt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3i(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else{if(Ji(t,e))return;n.uniform3iv(this.addr,e),Zi(t,e)}}function btt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4i(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(Ji(t,e))return;n.uniform4iv(this.addr,e),Zi(t,e)}}function _tt(n,e){const t=this.cache;t[0]!==e&&(n.uniform1ui(this.addr,e),t[0]=e)}function xtt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y)&&(n.uniform2ui(this.addr,e.x,e.y),t[0]=e.x,t[1]=e.y);else{if(Ji(t,e))return;n.uniform2uiv(this.addr,e),Zi(t,e)}}function Mtt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z)&&(n.uniform3ui(this.addr,e.x,e.y,e.z),t[0]=e.x,t[1]=e.y,t[2]=e.z);else{if(Ji(t,e))return;n.uniform3uiv(this.addr,e),Zi(t,e)}}function Stt(n,e){const t=this.cache;if(e.x!==void 0)(t[0]!==e.x||t[1]!==e.y||t[2]!==e.z||t[3]!==e.w)&&(n.uniform4ui(this.addr,e.x,e.y,e.z,e.w),t[0]=e.x,t[1]=e.y,t[2]=e.z,t[3]=e.w);else{if(Ji(t,e))return;n.uniform4uiv(this.addr,e),Zi(t,e)}}function Ctt(n,e,t){const r=this.cache,i=t.allocateTextureUnit();r[0]!==i&&(n.uniform1i(this.addr,i),r[0]=i);let a;this.type===n.SAMPLER_2D_SHADOW?(rL.compareFunction=yP,a=rL):a=r$,t.setTexture2D(e||a,i)}function Ptt(n,e,t){const r=this.cache,i=t.allocateTextureUnit();r[0]!==i&&(n.uniform1i(this.addr,i),r[0]=i),t.setTexture3D(e||a$,i)}function Ett(n,e,t){const r=this.cache,i=t.allocateTextureUnit();r[0]!==i&&(n.uniform1i(this.addr,i),r[0]=i),t.setTextureCube(e||s$,i)}function Btt(n,e,t){const r=this.cache,i=t.allocateTextureUnit();r[0]!==i&&(n.uniform1i(this.addr,i),r[0]=i),t.setTexture2DArray(e||i$,i)}function Ttt(n){switch(n){case 5126:return dtt;case 35664:return Att;case 35665:return htt;case 35666:return ftt;case 35674:return mtt;case 35675:return ptt;case 35676:return gtt;case 5124:case 35670:return vtt;case 35667:case 35671:return ytt;case 35668:case 35672:return wtt;case 35669:case 35673:return btt;case 5125:return _tt;case 36294:return xtt;case 36295:return Mtt;case 36296:return Stt;case 35678:case 36198:case 36298:case 36306:case 35682:return Ctt;case 35679:case 36299:case 36307:return Ptt;case 35680:case 36300:case 36308:case 36293:return Ett;case 36289:case 36303:case 36311:case 36292:return Btt}}function ktt(n,e){n.uniform1fv(this.addr,e)}function Itt(n,e){const t=Hf(e,this.size,2);n.uniform2fv(this.addr,t)}function Ltt(n,e){const t=Hf(e,this.size,3);n.uniform3fv(this.addr,t)}function Ftt(n,e){const t=Hf(e,this.size,4);n.uniform4fv(this.addr,t)}function Ntt(n,e){const t=Hf(e,this.size,4);n.uniformMatrix2fv(this.addr,!1,t)}function Dtt(n,e){const t=Hf(e,this.size,9);n.uniformMatrix3fv(this.addr,!1,t)}function Rtt(n,e){const t=Hf(e,this.size,16);n.uniformMatrix4fv(this.addr,!1,t)}function Utt(n,e){n.uniform1iv(this.addr,e)}function Ott(n,e){n.uniform2iv(this.addr,e)}function Htt(n,e){n.uniform3iv(this.addr,e)}function Wtt(n,e){n.uniform4iv(this.addr,e)}function Qtt(n,e){n.uniform1uiv(this.addr,e)}function $tt(n,e){n.uniform2uiv(this.addr,e)}function jtt(n,e){n.uniform3uiv(this.addr,e)}function ztt(n,e){n.uniform4uiv(this.addr,e)}function Vtt(n,e,t){const r=this.cache,i=e.length,a=Wb(t,i);Ji(r,a)||(n.uniform1iv(this.addr,a),Zi(r,a));for(let s=0;s!==i;++s)t.setTexture2D(e[s]||r$,a[s])}function Gtt(n,e,t){const r=this.cache,i=e.length,a=Wb(t,i);Ji(r,a)||(n.uniform1iv(this.addr,a),Zi(r,a));for(let s=0;s!==i;++s)t.setTexture3D(e[s]||a$,a[s])}function Ktt(n,e,t){const r=this.cache,i=e.length,a=Wb(t,i);Ji(r,a)||(n.uniform1iv(this.addr,a),Zi(r,a));for(let s=0;s!==i;++s)t.setTextureCube(e[s]||s$,a[s])}function qtt(n,e,t){const r=this.cache,i=e.length,a=Wb(t,i);Ji(r,a)||(n.uniform1iv(this.addr,a),Zi(r,a));for(let s=0;s!==i;++s)t.setTexture2DArray(e[s]||i$,a[s])}function Xtt(n){switch(n){case 5126:return ktt;case 35664:return Itt;case 35665:return Ltt;case 35666:return Ftt;case 35674:return Ntt;case 35675:return Dtt;case 35676:return Rtt;case 5124:case 35670:return Utt;case 35667:case 35671:return Ott;case 35668:case 35672:return Htt;case 35669:case 35673:return Wtt;case 5125:return Qtt;case 36294:return $tt;case 36295:return jtt;case 36296:return ztt;case 35678:case 36198:case 36298:case 36306:case 35682:return Vtt;case 35679:case 36299:case 36307:return Gtt;case 35680:case 36300:case 36308:case 36293:return Ktt;case 36289:case 36303:case 36311:case 36292:return qtt}}class Ytt{constructor(e,t,r){this.id=e,this.addr=r,this.cache=[],this.type=t.type,this.setValue=Ttt(t.type)}}class Jtt{constructor(e,t,r){this.id=e,this.addr=r,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=Xtt(t.type)}}class Ztt{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,r){const i=this.seq;for(let a=0,s=i.length;a!==s;++a){const o=i[a];o.setValue(e,t[o.id],r)}}}const Dx=/(\w+)(\])?(\[|\.)?/g;function lL(n,e){n.seq.push(e),n.map[e.id]=e}function ent(n,e,t){const r=n.name,i=r.length;for(Dx.lastIndex=0;;){const a=Dx.exec(r),s=Dx.lastIndex;let o=a[1];const c=a[2]==="]",l=a[3];if(c&&(o=o|0),l===void 0||l==="["&&s+2===i){lL(t,l===void 0?new Ytt(o,n,e):new Jtt(o,n,e));break}else{let A=t.map[o];A===void 0&&(A=new Ztt(o),lL(t,A)),t=A}}}class Gv{constructor(e,t){this.seq=[],this.map={};const r=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let i=0;i<r;++i){const a=e.getActiveUniform(t,i),s=e.getUniformLocation(t,a.name);ent(a,s,this)}}setValue(e,t,r,i){const a=this.map[t];a!==void 0&&a.setValue(e,r,i)}setOptional(e,t,r){const i=t[r];i!==void 0&&this.setValue(e,r,i)}static upload(e,t,r,i){for(let a=0,s=t.length;a!==s;++a){const o=t[a],c=r[o.id];c.needsUpdate!==!1&&o.setValue(e,c.value,i)}}static seqWithValue(e,t){const r=[];for(let i=0,a=e.length;i!==a;++i){const s=e[i];s.id in t&&r.push(s)}return r}}function uL(n,e,t){const r=n.createShader(e);return n.shaderSource(r,t),n.compileShader(r),r}const tnt=37297;let nnt=0;function rnt(n,e){const t=n.split(`
`),r=[],i=Math.max(e-6,0),a=Math.min(e+6,t.length);for(let s=i;s<a;s++){const o=s+1;r.push(`${o===e?">":" "} ${o}: ${t[s]}`)}return r.join(`
`)}const dL=new Dn;function int(n){Jn._getMatrix(dL,Jn.workingColorSpace,n);const e=`mat3( ${dL.elements.map(t=>t.toFixed(4))} )`;switch(Jn.getTransfer(n)){case Kp:return[e,"LinearTransferOETF"];case Sr:return[e,"sRGBTransferOETF"];default:return[e,"LinearTransferOETF"]}}function AL(n,e,t){const r=n.getShaderParameter(e,n.COMPILE_STATUS),i=n.getShaderInfoLog(e).trim();if(r&&i==="")return"";const a=/ERROR: 0:(\d+)/.exec(i);if(a){const s=parseInt(a[1]);return t.toUpperCase()+`

`+i+`

`+rnt(n.getShaderSource(e),s)}else return i}function ant(n,e){const t=int(e);return[`vec4 ${n}( vec4 value ) {`,`	return ${t[1]}( vec4( value.rgb * ${t[0]}, value.a ) );`,"}"].join(`
`)}function snt(n,e){let t;switch(e){case FW:t="Linear";break;case NW:t="Reinhard";break;case DW:t="Cineon";break;case RW:t="ACESFilmic";break;case OW:t="AgX";break;case HW:t="Neutral";break;case UW:t="Custom";break;default:t="Linear"}return"vec3 "+n+"( vec3 color ) { return "+t+"ToneMapping( color ); }"}const lv=new ye;function ont(){Jn.getLuminanceCoefficients(lv);const n=lv.x.toFixed(4),e=lv.y.toFixed(4),t=lv.z.toFixed(4);return["float luminance( const in vec3 rgb ) {",`	const vec3 weights = vec3( ${n}, ${e}, ${t} );`,"	return dot( weights, rgb );","}"].join(`
`)}function cnt(n){return[n.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",n.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Hm).join(`
`)}function lnt(n){const e=[];for(const t in n){const r=n[t];r!==!1&&e.push("#define "+t+" "+r)}return e.join(`
`)}function unt(n,e){const t={},r=n.getProgramParameter(e,n.ACTIVE_ATTRIBUTES);for(let i=0;i<r;i++){const a=n.getActiveAttrib(e,i),s=a.name;let o=1;a.type===n.FLOAT_MAT2&&(o=2),a.type===n.FLOAT_MAT3&&(o=3),a.type===n.FLOAT_MAT4&&(o=4),t[s]={type:a.type,location:n.getAttribLocation(e,s),locationSize:o}}return t}function Hm(n){return n!==""}function hL(n,e){const t=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return n.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,t).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function fL(n,e){return n.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const dnt=/^[ \t]*#include +<([\w\d./]+)>/gm;function NM(n){return n.replace(dnt,hnt)}const Ant=new Map;function hnt(n,e){let t=jn[e];if(t===void 0){const r=Ant.get(e);if(r!==void 0)t=jn[r];else throw new Error("Can not resolve #include <"+e+">")}return NM(t)}const fnt=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function mL(n){return n.replace(fnt,mnt)}function mnt(n,e,t,r){let i="";for(let a=parseInt(e);a<parseInt(t);a++)i+=r.replace(/\[\s*i\s*\]/g,"[ "+a+" ]").replace(/UNROLLED_LOOP_INDEX/g,a);return i}function pL(n){let e=`precision ${n.precision} float;
	precision ${n.precision} int;
	precision ${n.precision} sampler2D;
	precision ${n.precision} samplerCube;
	precision ${n.precision} sampler3D;
	precision ${n.precision} sampler2DArray;
	precision ${n.precision} sampler2DShadow;
	precision ${n.precision} samplerCubeShadow;
	precision ${n.precision} sampler2DArrayShadow;
	precision ${n.precision} isampler2D;
	precision ${n.precision} isampler3D;
	precision ${n.precision} isamplerCube;
	precision ${n.precision} isampler2DArray;
	precision ${n.precision} usampler2D;
	precision ${n.precision} usampler3D;
	precision ${n.precision} usamplerCube;
	precision ${n.precision} usampler2DArray;
	`;return n.precision==="highp"?e+=`
#define HIGH_PRECISION`:n.precision==="mediump"?e+=`
#define MEDIUM_PRECISION`:n.precision==="lowp"&&(e+=`
#define LOW_PRECISION`),e}function pnt(n){let e="SHADOWMAP_TYPE_BASIC";return n.shadowMapType===oP?e="SHADOWMAP_TYPE_PCF":n.shadowMapType===hW?e="SHADOWMAP_TYPE_PCF_SOFT":n.shadowMapType===Kc&&(e="SHADOWMAP_TYPE_VSM"),e}function gnt(n){let e="ENVMAP_TYPE_CUBE";if(n.envMap)switch(n.envMapMode){case Yl:case ed:e="ENVMAP_TYPE_CUBE";break;case Nf:e="ENVMAP_TYPE_CUBE_UV";break}return e}function vnt(n){let e="ENVMAP_MODE_REFLECTION";if(n.envMap)switch(n.envMapMode){case ed:e="ENVMAP_MODE_REFRACTION";break}return e}function ynt(n){let e="ENVMAP_BLENDING_NONE";if(n.envMap)switch(n.combine){case Pg:e="ENVMAP_BLENDING_MULTIPLY";break;case IW:e="ENVMAP_BLENDING_MIX";break;case LW:e="ENVMAP_BLENDING_ADD";break}return e}function wnt(n){const e=n.envMapCubeUVHeight;if(e===null)return null;const t=Math.log2(e)-2,r=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,t),112)),texelHeight:r,maxMip:t}}function bnt(n,e,t,r){const i=n.getContext(),a=t.defines;let s=t.vertexShader,o=t.fragmentShader;const c=pnt(t),l=gnt(t),u=vnt(t),A=ynt(t),f=wnt(t),h=cnt(t),g=lnt(a),y=i.createProgram();let w,v,S=t.glslVersion?"#version "+t.glslVersion+`
`:"";t.isRawShaderMaterial?(w=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g].filter(Hm).join(`
`),w.length>0&&(w+=`
`),v=["#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g].filter(Hm).join(`
`),v.length>0&&(v+=`
`)):(w=[pL(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g,t.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",t.batching?"#define USE_BATCHING":"",t.batchingColor?"#define USE_BATCHING_COLOR":"",t.instancing?"#define USE_INSTANCING":"",t.instancingColor?"#define USE_INSTANCING_COLOR":"",t.instancingMorph?"#define USE_INSTANCING_MORPH":"",t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.map?"#define USE_MAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+u:"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.displacementMap?"#define USE_DISPLACEMENTMAP":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.mapUv?"#define MAP_UV "+t.mapUv:"",t.alphaMapUv?"#define ALPHAMAP_UV "+t.alphaMapUv:"",t.lightMapUv?"#define LIGHTMAP_UV "+t.lightMapUv:"",t.aoMapUv?"#define AOMAP_UV "+t.aoMapUv:"",t.emissiveMapUv?"#define EMISSIVEMAP_UV "+t.emissiveMapUv:"",t.bumpMapUv?"#define BUMPMAP_UV "+t.bumpMapUv:"",t.normalMapUv?"#define NORMALMAP_UV "+t.normalMapUv:"",t.displacementMapUv?"#define DISPLACEMENTMAP_UV "+t.displacementMapUv:"",t.metalnessMapUv?"#define METALNESSMAP_UV "+t.metalnessMapUv:"",t.roughnessMapUv?"#define ROUGHNESSMAP_UV "+t.roughnessMapUv:"",t.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+t.anisotropyMapUv:"",t.clearcoatMapUv?"#define CLEARCOATMAP_UV "+t.clearcoatMapUv:"",t.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+t.clearcoatNormalMapUv:"",t.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+t.clearcoatRoughnessMapUv:"",t.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+t.iridescenceMapUv:"",t.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+t.iridescenceThicknessMapUv:"",t.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+t.sheenColorMapUv:"",t.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+t.sheenRoughnessMapUv:"",t.specularMapUv?"#define SPECULARMAP_UV "+t.specularMapUv:"",t.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+t.specularColorMapUv:"",t.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+t.specularIntensityMapUv:"",t.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+t.transmissionMapUv:"",t.thicknessMapUv?"#define THICKNESSMAP_UV "+t.thicknessMapUv:"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.flatShading?"#define FLAT_SHADED":"",t.skinning?"#define USE_SKINNING":"",t.morphTargets?"#define USE_MORPHTARGETS":"",t.morphNormals&&t.flatShading===!1?"#define USE_MORPHNORMALS":"",t.morphColors?"#define USE_MORPHCOLORS":"",t.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+t.morphTextureStride:"",t.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+t.morphTargetsCount:"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+c:"",t.sizeAttenuation?"#define USE_SIZEATTENUATION":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.reverseDepthBuffer?"#define USE_REVERSEDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","	attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","	attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH","	uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","	attribute vec2 uv1;","#endif","#ifdef USE_UV2","	attribute vec2 uv2;","#endif","#ifdef USE_UV3","	attribute vec2 uv3;","#endif","#ifdef USE_TANGENT","	attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","	attribute vec4 color;","#elif defined( USE_COLOR )","	attribute vec3 color;","#endif","#ifdef USE_SKINNING","	attribute vec4 skinIndex;","	attribute vec4 skinWeight;","#endif",`
`].filter(Hm).join(`
`),v=[pL(t),"#define SHADER_TYPE "+t.shaderType,"#define SHADER_NAME "+t.shaderName,g,t.useFog&&t.fog?"#define USE_FOG":"",t.useFog&&t.fogExp2?"#define FOG_EXP2":"",t.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",t.map?"#define USE_MAP":"",t.matcap?"#define USE_MATCAP":"",t.envMap?"#define USE_ENVMAP":"",t.envMap?"#define "+l:"",t.envMap?"#define "+u:"",t.envMap?"#define "+A:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",t.lightMap?"#define USE_LIGHTMAP":"",t.aoMap?"#define USE_AOMAP":"",t.bumpMap?"#define USE_BUMPMAP":"",t.normalMap?"#define USE_NORMALMAP":"",t.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",t.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",t.emissiveMap?"#define USE_EMISSIVEMAP":"",t.anisotropy?"#define USE_ANISOTROPY":"",t.anisotropyMap?"#define USE_ANISOTROPYMAP":"",t.clearcoat?"#define USE_CLEARCOAT":"",t.clearcoatMap?"#define USE_CLEARCOATMAP":"",t.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",t.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",t.dispersion?"#define USE_DISPERSION":"",t.iridescence?"#define USE_IRIDESCENCE":"",t.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",t.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",t.specularMap?"#define USE_SPECULARMAP":"",t.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",t.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",t.roughnessMap?"#define USE_ROUGHNESSMAP":"",t.metalnessMap?"#define USE_METALNESSMAP":"",t.alphaMap?"#define USE_ALPHAMAP":"",t.alphaTest?"#define USE_ALPHATEST":"",t.alphaHash?"#define USE_ALPHAHASH":"",t.sheen?"#define USE_SHEEN":"",t.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",t.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",t.transmission?"#define USE_TRANSMISSION":"",t.transmissionMap?"#define USE_TRANSMISSIONMAP":"",t.thicknessMap?"#define USE_THICKNESSMAP":"",t.vertexTangents&&t.flatShading===!1?"#define USE_TANGENT":"",t.vertexColors||t.instancingColor||t.batchingColor?"#define USE_COLOR":"",t.vertexAlphas?"#define USE_COLOR_ALPHA":"",t.vertexUv1s?"#define USE_UV1":"",t.vertexUv2s?"#define USE_UV2":"",t.vertexUv3s?"#define USE_UV3":"",t.pointsUvs?"#define USE_POINTS_UV":"",t.gradientMap?"#define USE_GRADIENTMAP":"",t.flatShading?"#define FLAT_SHADED":"",t.doubleSided?"#define DOUBLE_SIDED":"",t.flipSided?"#define FLIP_SIDED":"",t.shadowMapEnabled?"#define USE_SHADOWMAP":"",t.shadowMapEnabled?"#define "+c:"",t.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",t.numLightProbes>0?"#define USE_LIGHT_PROBES":"",t.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",t.decodeVideoTextureEmissive?"#define DECODE_VIDEO_TEXTURE_EMISSIVE":"",t.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",t.reverseDepthBuffer?"#define USE_REVERSEDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",t.toneMapping!==jl?"#define TONE_MAPPING":"",t.toneMapping!==jl?jn.tonemapping_pars_fragment:"",t.toneMapping!==jl?snt("toneMapping",t.toneMapping):"",t.dithering?"#define DITHERING":"",t.opaque?"#define OPAQUE":"",jn.colorspace_pars_fragment,ant("linearToOutputTexel",t.outputColorSpace),ont(),t.useDepthPacking?"#define DEPTH_PACKING "+t.depthPacking:"",`
`].filter(Hm).join(`
`)),s=NM(s),s=hL(s,t),s=fL(s,t),o=NM(o),o=hL(o,t),o=fL(o,t),s=mL(s),o=mL(o),t.isRawShaderMaterial!==!0&&(S=`#version 300 es
`,w=[h,"#define attribute in","#define varying out","#define texture2D texture"].join(`
`)+`
`+w,v=["#define varying in",t.glslVersion===CM?"":"layout(location = 0) out highp vec4 pc_fragColor;",t.glslVersion===CM?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(`
`)+`
`+v);const C=S+w+s,M=S+v+o,F=uL(i,i.VERTEX_SHADER,C),D=uL(i,i.FRAGMENT_SHADER,M);i.attachShader(y,F),i.attachShader(y,D),t.index0AttributeName!==void 0?i.bindAttribLocation(y,0,t.index0AttributeName):t.morphTargets===!0&&i.bindAttribLocation(y,0,"position"),i.linkProgram(y);function U(k){if(n.debug.checkShaderErrors){const H=i.getProgramInfoLog(y).trim(),j=i.getShaderInfoLog(F).trim(),$=i.getShaderInfoLog(D).trim();let ce=!0,de=!0;if(i.getProgramParameter(y,i.LINK_STATUS)===!1)if(ce=!1,typeof n.debug.onShaderError=="function")n.debug.onShaderError(i,y,F,D);else{const fe=AL(i,F,"vertex"),ee=AL(i,D,"fragment")}else H!==""||(j===""||$==="")&&(de=!1);de&&(k.diagnostics={runnable:ce,programLog:H,vertexShader:{log:j,prefix:w},fragmentShader:{log:$,prefix:v}})}i.deleteShader(F),i.deleteShader(D),O=new Gv(i,y),T=unt(i,y)}let O;this.getUniforms=function(){return O===void 0&&U(this),O};let T;this.getAttributes=function(){return T===void 0&&U(this),T};let P=t.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return P===!1&&(P=i.getProgramParameter(y,tnt)),P},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(y),this.program=void 0},this.type=t.shaderType,this.name=t.shaderName,this.id=nnt++,this.cacheKey=e,this.usedTimes=1,this.program=y,this.vertexShader=F,this.fragmentShader=D,this}let _nt=0;class xnt{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,r=e.fragmentShader,i=this._getShaderStage(t),a=this._getShaderStage(r),s=this._getShaderCacheForMaterial(e);return s.has(i)===!1&&(s.add(i),i.usedTimes++),s.has(a)===!1&&(s.add(a),a.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const r of t)r.usedTimes--,r.usedTimes===0&&this.shaderCache.delete(r.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let r=t.get(e);return r===void 0&&(r=new Set,t.set(e,r)),r}_getShaderStage(e){const t=this.shaderCache;let r=t.get(e);return r===void 0&&(r=new Mnt(e),t.set(e,r)),r}}class Mnt{constructor(e){this.id=_nt++,this.code=e,this.usedTimes=0}}function Snt(n,e,t,r,i,a,s){const o=new yb,c=new xnt,l=new Set,u=[],A=i.logarithmicDepthBuffer,f=i.vertexTextures;let h=i.precision;const g={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function y(T){return l.add(T),T===0?"uv":`uv${T}`}function w(T,P,k,H,j){const $=H.fog,ce=j.geometry,de=T.isMeshStandardMaterial?H.environment:null,fe=(T.isMeshStandardMaterial?t:e).get(T.envMap||de),ee=fe&&fe.mapping===Nf?fe.image.height:null,Se=g[T.type];T.precision!==null&&(h=i.getMaxPrecision(T.precision),T.precision);const xe=ce.morphAttributes.position||ce.morphAttributes.normal||ce.morphAttributes.color,Pe=xe!==void 0?xe.length:0;let V=0;ce.morphAttributes.position!==void 0&&(V=1),ce.morphAttributes.normal!==void 0&&(V=2),ce.morphAttributes.color!==void 0&&(V=3);let ae,J,z,Z;if(Se){const _n=fc[Se];ae=_n.vertexShader,J=_n.fragmentShader}else ae=T.vertexShader,J=T.fragmentShader,c.update(T),z=c.getVertexShaderID(T),Z=c.getFragmentShaderID(T);const le=n.getRenderTarget(),ge=n.state.buffers.depth.getReversed(),Me=j.isInstancedMesh===!0,Te=j.isBatchedMesh===!0,We=!!T.map,Ee=!!T.matcap,Ne=!!fe,ue=!!T.aoMap,ne=!!T.lightMap,De=!!T.bumpMap,je=!!T.normalMap,ze=!!T.displacementMap,Qe=!!T.emissiveMap,ot=!!T.metalnessMap,se=!!T.roughnessMap,G=T.anisotropy>0,Be=T.clearcoat>0,Ke=T.dispersion>0,it=T.iridescence>0,Ve=T.sheen>0,bt=T.transmission>0,lt=G&&!!T.anisotropyMap,ct=Be&&!!T.clearcoatMap,kt=Be&&!!T.clearcoatNormalMap,Je=Be&&!!T.clearcoatRoughnessMap,Tt=it&&!!T.iridescenceMap,Pt=it&&!!T.iridescenceThicknessMap,Ct=Ve&&!!T.sheenColorMap,yt=Ve&&!!T.sheenRoughnessMap,Kt=!!T.specularMap,_t=!!T.specularColorMap,sn=!!T.specularIntensityMap,Le=bt&&!!T.transmissionMap,pt=bt&&!!T.thicknessMap,Ze=!!T.gradientMap,nt=!!T.alphaMap,At=T.alphaTest>0,Mt=!!T.alphaHash,fn=!!T.extensions;let Sn=jl;T.toneMapped&&(le===null||le.isXRRenderTarget===!0)&&(Sn=n.toneMapping);const or={shaderID:Se,shaderType:T.type,shaderName:T.name,vertexShader:ae,fragmentShader:J,defines:T.defines,customVertexShaderID:z,customFragmentShaderID:Z,isRawShaderMaterial:T.isRawShaderMaterial===!0,glslVersion:T.glslVersion,precision:h,batching:Te,batchingColor:Te&&j._colorsTexture!==null,instancing:Me,instancingColor:Me&&j.instanceColor!==null,instancingMorph:Me&&j.morphTexture!==null,supportsVertexTextures:f,outputColorSpace:le===null?n.outputColorSpace:le.isXRRenderTarget===!0?le.texture.colorSpace:Xa,alphaToCoverage:!!T.alphaToCoverage,map:We,matcap:Ee,envMap:Ne,envMapMode:Ne&&fe.mapping,envMapCubeUVHeight:ee,aoMap:ue,lightMap:ne,bumpMap:De,normalMap:je,displacementMap:f&&ze,emissiveMap:Qe,normalMapObjectSpace:je&&T.normalMapType===KW,normalMapTangentSpace:je&&T.normalMapType===od,metalnessMap:ot,roughnessMap:se,anisotropy:G,anisotropyMap:lt,clearcoat:Be,clearcoatMap:ct,clearcoatNormalMap:kt,clearcoatRoughnessMap:Je,dispersion:Ke,iridescence:it,iridescenceMap:Tt,iridescenceThicknessMap:Pt,sheen:Ve,sheenColorMap:Ct,sheenRoughnessMap:yt,specularMap:Kt,specularColorMap:_t,specularIntensityMap:sn,transmission:bt,transmissionMap:Le,thicknessMap:pt,gradientMap:Ze,opaque:T.transparent===!1&&T.blending===lA&&T.alphaToCoverage===!1,alphaMap:nt,alphaTest:At,alphaHash:Mt,combine:T.combine,mapUv:We&&y(T.map.channel),aoMapUv:ue&&y(T.aoMap.channel),lightMapUv:ne&&y(T.lightMap.channel),bumpMapUv:De&&y(T.bumpMap.channel),normalMapUv:je&&y(T.normalMap.channel),displacementMapUv:ze&&y(T.displacementMap.channel),emissiveMapUv:Qe&&y(T.emissiveMap.channel),metalnessMapUv:ot&&y(T.metalnessMap.channel),roughnessMapUv:se&&y(T.roughnessMap.channel),anisotropyMapUv:lt&&y(T.anisotropyMap.channel),clearcoatMapUv:ct&&y(T.clearcoatMap.channel),clearcoatNormalMapUv:kt&&y(T.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Je&&y(T.clearcoatRoughnessMap.channel),iridescenceMapUv:Tt&&y(T.iridescenceMap.channel),iridescenceThicknessMapUv:Pt&&y(T.iridescenceThicknessMap.channel),sheenColorMapUv:Ct&&y(T.sheenColorMap.channel),sheenRoughnessMapUv:yt&&y(T.sheenRoughnessMap.channel),specularMapUv:Kt&&y(T.specularMap.channel),specularColorMapUv:_t&&y(T.specularColorMap.channel),specularIntensityMapUv:sn&&y(T.specularIntensityMap.channel),transmissionMapUv:Le&&y(T.transmissionMap.channel),thicknessMapUv:pt&&y(T.thicknessMap.channel),alphaMapUv:nt&&y(T.alphaMap.channel),vertexTangents:!!ce.attributes.tangent&&(je||G),vertexColors:T.vertexColors,vertexAlphas:T.vertexColors===!0&&!!ce.attributes.color&&ce.attributes.color.itemSize===4,pointsUvs:j.isPoints===!0&&!!ce.attributes.uv&&(We||nt),fog:!!$,useFog:T.fog===!0,fogExp2:!!$&&$.isFogExp2,flatShading:T.flatShading===!0,sizeAttenuation:T.sizeAttenuation===!0,logarithmicDepthBuffer:A,reverseDepthBuffer:ge,skinning:j.isSkinnedMesh===!0,morphTargets:ce.morphAttributes.position!==void 0,morphNormals:ce.morphAttributes.normal!==void 0,morphColors:ce.morphAttributes.color!==void 0,morphTargetsCount:Pe,morphTextureStride:V,numDirLights:P.directional.length,numPointLights:P.point.length,numSpotLights:P.spot.length,numSpotLightMaps:P.spotLightMap.length,numRectAreaLights:P.rectArea.length,numHemiLights:P.hemi.length,numDirLightShadows:P.directionalShadowMap.length,numPointLightShadows:P.pointShadowMap.length,numSpotLightShadows:P.spotShadowMap.length,numSpotLightShadowsWithMaps:P.numSpotLightShadowsWithMaps,numLightProbes:P.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:T.dithering,shadowMapEnabled:n.shadowMap.enabled&&k.length>0,shadowMapType:n.shadowMap.type,toneMapping:Sn,decodeVideoTexture:We&&T.map.isVideoTexture===!0&&Jn.getTransfer(T.map.colorSpace)===Sr,decodeVideoTextureEmissive:Qe&&T.emissiveMap.isVideoTexture===!0&&Jn.getTransfer(T.emissiveMap.colorSpace)===Sr,premultipliedAlpha:T.premultipliedAlpha,doubleSided:T.side===mc,flipSided:T.side===Ss,useDepthPacking:T.depthPacking>=0,depthPacking:T.depthPacking||0,index0AttributeName:T.index0AttributeName,extensionClipCullDistance:fn&&T.extensions.clipCullDistance===!0&&r.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(fn&&T.extensions.multiDraw===!0||Te)&&r.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:r.has("KHR_parallel_shader_compile"),customProgramCacheKey:T.customProgramCacheKey()};return or.vertexUv1s=l.has(1),or.vertexUv2s=l.has(2),or.vertexUv3s=l.has(3),l.clear(),or}function v(T){const P=[];if(T.shaderID?P.push(T.shaderID):(P.push(T.customVertexShaderID),P.push(T.customFragmentShaderID)),T.defines!==void 0)for(const k in T.defines)P.push(k),P.push(T.defines[k]);return T.isRawShaderMaterial===!1&&(S(P,T),C(P,T),P.push(n.outputColorSpace)),P.push(T.customProgramCacheKey),P.join()}function S(T,P){T.push(P.precision),T.push(P.outputColorSpace),T.push(P.envMapMode),T.push(P.envMapCubeUVHeight),T.push(P.mapUv),T.push(P.alphaMapUv),T.push(P.lightMapUv),T.push(P.aoMapUv),T.push(P.bumpMapUv),T.push(P.normalMapUv),T.push(P.displacementMapUv),T.push(P.emissiveMapUv),T.push(P.metalnessMapUv),T.push(P.roughnessMapUv),T.push(P.anisotropyMapUv),T.push(P.clearcoatMapUv),T.push(P.clearcoatNormalMapUv),T.push(P.clearcoatRoughnessMapUv),T.push(P.iridescenceMapUv),T.push(P.iridescenceThicknessMapUv),T.push(P.sheenColorMapUv),T.push(P.sheenRoughnessMapUv),T.push(P.specularMapUv),T.push(P.specularColorMapUv),T.push(P.specularIntensityMapUv),T.push(P.transmissionMapUv),T.push(P.thicknessMapUv),T.push(P.combine),T.push(P.fogExp2),T.push(P.sizeAttenuation),T.push(P.morphTargetsCount),T.push(P.morphAttributeCount),T.push(P.numDirLights),T.push(P.numPointLights),T.push(P.numSpotLights),T.push(P.numSpotLightMaps),T.push(P.numHemiLights),T.push(P.numRectAreaLights),T.push(P.numDirLightShadows),T.push(P.numPointLightShadows),T.push(P.numSpotLightShadows),T.push(P.numSpotLightShadowsWithMaps),T.push(P.numLightProbes),T.push(P.shadowMapType),T.push(P.toneMapping),T.push(P.numClippingPlanes),T.push(P.numClipIntersection),T.push(P.depthPacking)}function C(T,P){o.disableAll(),P.supportsVertexTextures&&o.enable(0),P.instancing&&o.enable(1),P.instancingColor&&o.enable(2),P.instancingMorph&&o.enable(3),P.matcap&&o.enable(4),P.envMap&&o.enable(5),P.normalMapObjectSpace&&o.enable(6),P.normalMapTangentSpace&&o.enable(7),P.clearcoat&&o.enable(8),P.iridescence&&o.enable(9),P.alphaTest&&o.enable(10),P.vertexColors&&o.enable(11),P.vertexAlphas&&o.enable(12),P.vertexUv1s&&o.enable(13),P.vertexUv2s&&o.enable(14),P.vertexUv3s&&o.enable(15),P.vertexTangents&&o.enable(16),P.anisotropy&&o.enable(17),P.alphaHash&&o.enable(18),P.batching&&o.enable(19),P.dispersion&&o.enable(20),P.batchingColor&&o.enable(21),T.push(o.mask),o.disableAll(),P.fog&&o.enable(0),P.useFog&&o.enable(1),P.flatShading&&o.enable(2),P.logarithmicDepthBuffer&&o.enable(3),P.reverseDepthBuffer&&o.enable(4),P.skinning&&o.enable(5),P.morphTargets&&o.enable(6),P.morphNormals&&o.enable(7),P.morphColors&&o.enable(8),P.premultipliedAlpha&&o.enable(9),P.shadowMapEnabled&&o.enable(10),P.doubleSided&&o.enable(11),P.flipSided&&o.enable(12),P.useDepthPacking&&o.enable(13),P.dithering&&o.enable(14),P.transmission&&o.enable(15),P.sheen&&o.enable(16),P.opaque&&o.enable(17),P.pointsUvs&&o.enable(18),P.decodeVideoTexture&&o.enable(19),P.decodeVideoTextureEmissive&&o.enable(20),P.alphaToCoverage&&o.enable(21),T.push(o.mask)}function M(T){const P=g[T.type];let k;if(P){const H=fc[P];k=cQ.clone(H.uniforms)}else k=T.uniforms;return k}function F(T,P){let k;for(let H=0,j=u.length;H<j;H++){const $=u[H];if($.cacheKey===P){k=$,++k.usedTimes;break}}return k===void 0&&(k=new bnt(n,P,T,a),u.push(k)),k}function D(T){if(--T.usedTimes===0){const P=u.indexOf(T);u[P]=u[u.length-1],u.pop(),T.destroy()}}function U(T){c.remove(T)}function O(){c.dispose()}return{getParameters:w,getProgramCacheKey:v,getUniforms:M,acquireProgram:F,releaseProgram:D,releaseShaderCache:U,programs:u,dispose:O}}function Cnt(){let n=new WeakMap;function e(s){return n.has(s)}function t(s){let o=n.get(s);return o===void 0&&(o={},n.set(s,o)),o}function r(s){n.delete(s)}function i(s,o,c){n.get(s)[o]=c}function a(){n=new WeakMap}return{has:e,get:t,remove:r,update:i,dispose:a}}function Pnt(n,e){return n.groupOrder!==e.groupOrder?n.groupOrder-e.groupOrder:n.renderOrder!==e.renderOrder?n.renderOrder-e.renderOrder:n.material.id!==e.material.id?n.material.id-e.material.id:n.z!==e.z?n.z-e.z:n.id-e.id}function gL(n,e){return n.groupOrder!==e.groupOrder?n.groupOrder-e.groupOrder:n.renderOrder!==e.renderOrder?n.renderOrder-e.renderOrder:n.z!==e.z?e.z-n.z:n.id-e.id}function vL(){const n=[];let e=0;const t=[],r=[],i=[];function a(){e=0,t.length=0,r.length=0,i.length=0}function s(A,f,h,g,y,w){let v=n[e];return v===void 0?(v={id:A.id,object:A,geometry:f,material:h,groupOrder:g,renderOrder:A.renderOrder,z:y,group:w},n[e]=v):(v.id=A.id,v.object=A,v.geometry=f,v.material=h,v.groupOrder=g,v.renderOrder=A.renderOrder,v.z=y,v.group=w),e++,v}function o(A,f,h,g,y,w){const v=s(A,f,h,g,y,w);h.transmission>0?r.push(v):h.transparent===!0?i.push(v):t.push(v)}function c(A,f,h,g,y,w){const v=s(A,f,h,g,y,w);h.transmission>0?r.unshift(v):h.transparent===!0?i.unshift(v):t.unshift(v)}function l(A,f){t.length>1&&t.sort(A||Pnt),r.length>1&&r.sort(f||gL),i.length>1&&i.sort(f||gL)}function u(){for(let A=e,f=n.length;A<f;A++){const h=n[A];if(h.id===null)break;h.id=null,h.object=null,h.geometry=null,h.material=null,h.group=null}}return{opaque:t,transmissive:r,transparent:i,init:a,push:o,unshift:c,finish:u,sort:l}}function Ent(){let n=new WeakMap;function e(r,i){const a=n.get(r);let s;return a===void 0?(s=new vL,n.set(r,[s])):i>=a.length?(s=new vL,a.push(s)):s=a[i],s}function t(){n=new WeakMap}return{get:e,dispose:t}}function Bnt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={direction:new ye,color:new Qt};break;case"SpotLight":t={position:new ye,direction:new ye,color:new Qt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":t={position:new ye,color:new Qt,distance:0,decay:0};break;case"HemisphereLight":t={direction:new ye,skyColor:new Qt,groundColor:new Qt};break;case"RectAreaLight":t={color:new Qt,position:new ye,halfWidth:new ye,halfHeight:new ye};break}return n[e.id]=t,t}}}function Tnt(){const n={};return{get:function(e){if(n[e.id]!==void 0)return n[e.id];let t;switch(e.type){case"DirectionalLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new vt};break;case"SpotLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new vt};break;case"PointLight":t={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new vt,shadowCameraNear:1,shadowCameraFar:1e3};break}return n[e.id]=t,t}}}let knt=0;function Int(n,e){return(e.castShadow?2:0)-(n.castShadow?2:0)+(e.map?1:0)-(n.map?1:0)}function Lnt(n){const e=new Bnt,t=Tnt(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let l=0;l<9;l++)r.probe.push(new ye);const i=new ye,a=new vn,s=new vn;function o(l){let u=0,A=0,f=0;for(let T=0;T<9;T++)r.probe[T].set(0,0,0);let h=0,g=0,y=0,w=0,v=0,S=0,C=0,M=0,F=0,D=0,U=0;l.sort(Int);for(let T=0,P=l.length;T<P;T++){const k=l[T],H=k.color,j=k.intensity,$=k.distance,ce=k.shadow&&k.shadow.map?k.shadow.map.texture:null;if(k.isAmbientLight)u+=H.r*j,A+=H.g*j,f+=H.b*j;else if(k.isLightProbe){for(let de=0;de<9;de++)r.probe[de].addScaledVector(k.sh.coefficients[de],j);U++}else if(k.isDirectionalLight){const de=e.get(k);if(de.color.copy(k.color).multiplyScalar(k.intensity),k.castShadow){const fe=k.shadow,ee=t.get(k);ee.shadowIntensity=fe.intensity,ee.shadowBias=fe.bias,ee.shadowNormalBias=fe.normalBias,ee.shadowRadius=fe.radius,ee.shadowMapSize=fe.mapSize,r.directionalShadow[h]=ee,r.directionalShadowMap[h]=ce,r.directionalShadowMatrix[h]=k.shadow.matrix,S++}r.directional[h]=de,h++}else if(k.isSpotLight){const de=e.get(k);de.position.setFromMatrixPosition(k.matrixWorld),de.color.copy(H).multiplyScalar(j),de.distance=$,de.coneCos=Math.cos(k.angle),de.penumbraCos=Math.cos(k.angle*(1-k.penumbra)),de.decay=k.decay,r.spot[y]=de;const fe=k.shadow;if(k.map&&(r.spotLightMap[F]=k.map,F++,fe.updateMatrices(k),k.castShadow&&D++),r.spotLightMatrix[y]=fe.matrix,k.castShadow){const ee=t.get(k);ee.shadowIntensity=fe.intensity,ee.shadowBias=fe.bias,ee.shadowNormalBias=fe.normalBias,ee.shadowRadius=fe.radius,ee.shadowMapSize=fe.mapSize,r.spotShadow[y]=ee,r.spotShadowMap[y]=ce,M++}y++}else if(k.isRectAreaLight){const de=e.get(k);de.color.copy(H).multiplyScalar(j),de.halfWidth.set(k.width*.5,0,0),de.halfHeight.set(0,k.height*.5,0),r.rectArea[w]=de,w++}else if(k.isPointLight){const de=e.get(k);if(de.color.copy(k.color).multiplyScalar(k.intensity),de.distance=k.distance,de.decay=k.decay,k.castShadow){const fe=k.shadow,ee=t.get(k);ee.shadowIntensity=fe.intensity,ee.shadowBias=fe.bias,ee.shadowNormalBias=fe.normalBias,ee.shadowRadius=fe.radius,ee.shadowMapSize=fe.mapSize,ee.shadowCameraNear=fe.camera.near,ee.shadowCameraFar=fe.camera.far,r.pointShadow[g]=ee,r.pointShadowMap[g]=ce,r.pointShadowMatrix[g]=k.shadow.matrix,C++}r.point[g]=de,g++}else if(k.isHemisphereLight){const de=e.get(k);de.skyColor.copy(k.color).multiplyScalar(j),de.groundColor.copy(k.groundColor).multiplyScalar(j),r.hemi[v]=de,v++}}w>0&&(n.has("OES_texture_float_linear")===!0?(r.rectAreaLTC1=Wt.LTC_FLOAT_1,r.rectAreaLTC2=Wt.LTC_FLOAT_2):(r.rectAreaLTC1=Wt.LTC_HALF_1,r.rectAreaLTC2=Wt.LTC_HALF_2)),r.ambient[0]=u,r.ambient[1]=A,r.ambient[2]=f;const O=r.hash;(O.directionalLength!==h||O.pointLength!==g||O.spotLength!==y||O.rectAreaLength!==w||O.hemiLength!==v||O.numDirectionalShadows!==S||O.numPointShadows!==C||O.numSpotShadows!==M||O.numSpotMaps!==F||O.numLightProbes!==U)&&(r.directional.length=h,r.spot.length=y,r.rectArea.length=w,r.point.length=g,r.hemi.length=v,r.directionalShadow.length=S,r.directionalShadowMap.length=S,r.pointShadow.length=C,r.pointShadowMap.length=C,r.spotShadow.length=M,r.spotShadowMap.length=M,r.directionalShadowMatrix.length=S,r.pointShadowMatrix.length=C,r.spotLightMatrix.length=M+F-D,r.spotLightMap.length=F,r.numSpotLightShadowsWithMaps=D,r.numLightProbes=U,O.directionalLength=h,O.pointLength=g,O.spotLength=y,O.rectAreaLength=w,O.hemiLength=v,O.numDirectionalShadows=S,O.numPointShadows=C,O.numSpotShadows=M,O.numSpotMaps=F,O.numLightProbes=U,r.version=knt++)}function c(l,u){let A=0,f=0,h=0,g=0,y=0;const w=u.matrixWorldInverse;for(let v=0,S=l.length;v<S;v++){const C=l[v];if(C.isDirectionalLight){const M=r.directional[A];M.direction.setFromMatrixPosition(C.matrixWorld),i.setFromMatrixPosition(C.target.matrixWorld),M.direction.sub(i),M.direction.transformDirection(w),A++}else if(C.isSpotLight){const M=r.spot[h];M.position.setFromMatrixPosition(C.matrixWorld),M.position.applyMatrix4(w),M.direction.setFromMatrixPosition(C.matrixWorld),i.setFromMatrixPosition(C.target.matrixWorld),M.direction.sub(i),M.direction.transformDirection(w),h++}else if(C.isRectAreaLight){const M=r.rectArea[g];M.position.setFromMatrixPosition(C.matrixWorld),M.position.applyMatrix4(w),s.identity(),a.copy(C.matrixWorld),a.premultiply(w),s.extractRotation(a),M.halfWidth.set(C.width*.5,0,0),M.halfHeight.set(0,C.height*.5,0),M.halfWidth.applyMatrix4(s),M.halfHeight.applyMatrix4(s),g++}else if(C.isPointLight){const M=r.point[f];M.position.setFromMatrixPosition(C.matrixWorld),M.position.applyMatrix4(w),f++}else if(C.isHemisphereLight){const M=r.hemi[y];M.direction.setFromMatrixPosition(C.matrixWorld),M.direction.transformDirection(w),y++}}}return{setup:o,setupView:c,state:r}}function yL(n){const e=new Lnt(n),t=[],r=[];function i(u){l.camera=u,t.length=0,r.length=0}function a(u){t.push(u)}function s(u){r.push(u)}function o(){e.setup(t)}function c(u){e.setupView(t,u)}const l={lightsArray:t,shadowsArray:r,camera:null,lights:e,transmissionRenderTarget:{}};return{init:i,state:l,setupLights:o,setupLightsView:c,pushLight:a,pushShadow:s}}function Fnt(n){let e=new WeakMap;function t(i,a=0){const s=e.get(i);let o;return s===void 0?(o=new yL(n),e.set(i,[o])):a>=s.length?(o=new yL(n),s.push(o)):o=s[a],o}function r(){e=new WeakMap}return{get:t,dispose:r}}const Nnt=`void main() {
	gl_Position = vec4( position, 1.0 );
}`,Dnt=`uniform sampler2D shadow_pass;
uniform vec2 resolution;
uniform float radius;
#include <packing>
void main() {
	const float samples = float( VSM_SAMPLES );
	float mean = 0.0;
	float squared_mean = 0.0;
	float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );
	float uvStart = samples <= 1.0 ? 0.0 : - 1.0;
	for ( float i = 0.0; i < samples; i ++ ) {
		float uvOffset = uvStart + i * uvStride;
		#ifdef HORIZONTAL_PASS
			vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );
			mean += distribution.x;
			squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;
		#else
			float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );
			mean += depth;
			squared_mean += depth * depth;
		#endif
	}
	mean = mean / samples;
	squared_mean = squared_mean / samples;
	float std_dev = sqrt( squared_mean - mean * mean );
	gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );
}`;function Rnt(n,e,t){let r=new Ig;const i=new vt,a=new vt,s=new ar,o=new RP({depthPacking:GW}),c=new UP,l={},u=t.maxTextureSize,A={[rl]:Ss,[Ss]:rl,[mc]:mc},f=new bc({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new vt},radius:{value:4}},vertexShader:Nnt,fragmentShader:Dnt}),h=f.clone();h.defines.HORIZONTAL_PASS=1;const g=new Hn;g.setAttribute("position",new hr(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const y=new Fi(g,f),w=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=oP;let v=this.type;this.render=function(D,U,O){if(w.enabled===!1||w.autoUpdate===!1&&w.needsUpdate===!1||D.length===0)return;const T=n.getRenderTarget(),P=n.getActiveCubeFace(),k=n.getActiveMipmapLevel(),H=n.state;H.setBlending($l),H.buffers.color.setClear(1,1,1,1),H.buffers.depth.setTest(!0),H.setScissorTest(!1);const j=v!==Kc&&this.type===Kc,$=v===Kc&&this.type!==Kc;for(let ce=0,de=D.length;ce<de;ce++){const fe=D[ce],ee=fe.shadow;if(ee===void 0||ee.autoUpdate===!1&&ee.needsUpdate===!1)continue;i.copy(ee.mapSize);const Se=ee.getFrameExtents();if(i.multiply(Se),a.copy(ee.mapSize),(i.x>u||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/Se.x),i.x=a.x*Se.x,ee.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/Se.y),i.y=a.y*Se.y,ee.mapSize.y=a.y)),ee.map===null||j===!0||$===!0){const Pe=this.type!==Kc?{minFilter:Xi,magFilter:Xi}:{};ee.map!==null&&ee.map.dispose(),ee.map=new wc(i.x,i.y,Pe),ee.map.texture.name=fe.name+".shadowMap",ee.camera.updateProjectionMatrix()}n.setRenderTarget(ee.map),n.clear();const xe=ee.getViewportCount();for(let Pe=0;Pe<xe;Pe++){const V=ee.getViewport(Pe);s.set(a.x*V.x,a.y*V.y,a.x*V.z,a.y*V.w),H.viewport(s),ee.updateMatrices(fe,Pe),r=ee.getFrustum(),M(U,O,ee.camera,fe,this.type)}ee.isPointLightShadow!==!0&&this.type===Kc&&S(ee,O),ee.needsUpdate=!1}v=this.type,w.needsUpdate=!1,n.setRenderTarget(T,P,k)};function S(D,U){const O=e.update(y);f.defines.VSM_SAMPLES!==D.blurSamples&&(f.defines.VSM_SAMPLES=D.blurSamples,h.defines.VSM_SAMPLES=D.blurSamples,f.needsUpdate=!0,h.needsUpdate=!0),D.mapPass===null&&(D.mapPass=new wc(i.x,i.y)),f.uniforms.shadow_pass.value=D.map.texture,f.uniforms.resolution.value=D.mapSize,f.uniforms.radius.value=D.radius,n.setRenderTarget(D.mapPass),n.clear(),n.renderBufferDirect(U,null,O,f,y,null),h.uniforms.shadow_pass.value=D.mapPass.texture,h.uniforms.resolution.value=D.mapSize,h.uniforms.radius.value=D.radius,n.setRenderTarget(D.map),n.clear(),n.renderBufferDirect(U,null,O,h,y,null)}function C(D,U,O,T){let P=null;const k=O.isPointLight===!0?D.customDistanceMaterial:D.customDepthMaterial;if(k!==void 0)P=k;else if(P=O.isPointLight===!0?c:o,n.localClippingEnabled&&U.clipShadows===!0&&Array.isArray(U.clippingPlanes)&&U.clippingPlanes.length!==0||U.displacementMap&&U.displacementScale!==0||U.alphaMap&&U.alphaTest>0||U.map&&U.alphaTest>0){const H=P.uuid,j=U.uuid;let $=l[H];$===void 0&&($={},l[H]=$);let ce=$[j];ce===void 0&&(ce=P.clone(),$[j]=ce,U.addEventListener("dispose",F)),P=ce}if(P.visible=U.visible,P.wireframe=U.wireframe,T===Kc?P.side=U.shadowSide!==null?U.shadowSide:U.side:P.side=U.shadowSide!==null?U.shadowSide:A[U.side],P.alphaMap=U.alphaMap,P.alphaTest=U.alphaTest,P.map=U.map,P.clipShadows=U.clipShadows,P.clippingPlanes=U.clippingPlanes,P.clipIntersection=U.clipIntersection,P.displacementMap=U.displacementMap,P.displacementScale=U.displacementScale,P.displacementBias=U.displacementBias,P.wireframeLinewidth=U.wireframeLinewidth,P.linewidth=U.linewidth,O.isPointLight===!0&&P.isMeshDistanceMaterial===!0){const H=n.properties.get(P);H.light=O}return P}function M(D,U,O,T,P){if(D.visible===!1)return;if(D.layers.test(U.layers)&&(D.isMesh||D.isLine||D.isPoints)&&(D.castShadow||D.receiveShadow&&P===Kc)&&(!D.frustumCulled||r.intersectsObject(D))){D.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse,D.matrixWorld);const j=e.update(D),$=D.material;if(Array.isArray($)){const ce=j.groups;for(let de=0,fe=ce.length;de<fe;de++){const ee=ce[de],Se=$[ee.materialIndex];if(Se&&Se.visible){const xe=C(D,Se,T,P);D.onBeforeShadow(n,D,U,O,j,xe,ee),n.renderBufferDirect(O,null,j,xe,D,ee),D.onAfterShadow(n,D,U,O,j,xe,ee)}}}else if($.visible){const ce=C(D,$,T,P);D.onBeforeShadow(n,D,U,O,j,ce,null),n.renderBufferDirect(O,null,j,ce,D,null),D.onAfterShadow(n,D,U,O,j,ce,null)}}const H=D.children;for(let j=0,$=H.length;j<$;j++)M(H[j],U,O,T,P)}function F(D){D.target.removeEventListener("dispose",F);for(const O in l){const T=l[O],P=D.target.uuid;P in T&&(T[P].dispose(),delete T[P])}}}const Unt={[Ry]:Uy,[Oy]:Qy,[Hy]:$y,[SA]:Wy,[Uy]:Ry,[Qy]:Oy,[$y]:Hy,[Wy]:SA};function Ont(n,e){function t(){let Le=!1;const pt=new ar;let Ze=null;const nt=new ar(0,0,0,0);return{setMask:function(At){Ze!==At&&!Le&&(n.colorMask(At,At,At,At),Ze=At)},setLocked:function(At){Le=At},setClear:function(At,Mt,fn,Sn,or){or===!0&&(At*=Sn,Mt*=Sn,fn*=Sn),pt.set(At,Mt,fn,Sn),nt.equals(pt)===!1&&(n.clearColor(At,Mt,fn,Sn),nt.copy(pt))},reset:function(){Le=!1,Ze=null,nt.set(-1,0,0,0)}}}function r(){let Le=!1,pt=!1,Ze=null,nt=null,At=null;return{setReversed:function(Mt){if(pt!==Mt){const fn=e.get("EXT_clip_control");pt?fn.clipControlEXT(fn.LOWER_LEFT_EXT,fn.ZERO_TO_ONE_EXT):fn.clipControlEXT(fn.LOWER_LEFT_EXT,fn.NEGATIVE_ONE_TO_ONE_EXT);const Sn=At;At=null,this.setClear(Sn)}pt=Mt},getReversed:function(){return pt},setTest:function(Mt){Mt?le(n.DEPTH_TEST):ge(n.DEPTH_TEST)},setMask:function(Mt){Ze!==Mt&&!Le&&(n.depthMask(Mt),Ze=Mt)},setFunc:function(Mt){if(pt&&(Mt=Unt[Mt]),nt!==Mt){switch(Mt){case Ry:n.depthFunc(n.NEVER);break;case Uy:n.depthFunc(n.ALWAYS);break;case Oy:n.depthFunc(n.LESS);break;case SA:n.depthFunc(n.LEQUAL);break;case Hy:n.depthFunc(n.EQUAL);break;case Wy:n.depthFunc(n.GEQUAL);break;case Qy:n.depthFunc(n.GREATER);break;case $y:n.depthFunc(n.NOTEQUAL);break;default:n.depthFunc(n.LEQUAL)}nt=Mt}},setLocked:function(Mt){Le=Mt},setClear:function(Mt){At!==Mt&&(pt&&(Mt=1-Mt),n.clearDepth(Mt),At=Mt)},reset:function(){Le=!1,Ze=null,nt=null,At=null,pt=!1}}}function i(){let Le=!1,pt=null,Ze=null,nt=null,At=null,Mt=null,fn=null,Sn=null,or=null;return{setTest:function(_n){Le||(_n?le(n.STENCIL_TEST):ge(n.STENCIL_TEST))},setMask:function(_n){pt!==_n&&!Le&&(n.stencilMask(_n),pt=_n)},setFunc:function(_n,Vt,zr){(Ze!==_n||nt!==Vt||At!==zr)&&(n.stencilFunc(_n,Vt,zr),Ze=_n,nt=Vt,At=zr)},setOp:function(_n,Vt,zr){(Mt!==_n||fn!==Vt||Sn!==zr)&&(n.stencilOp(_n,Vt,zr),Mt=_n,fn=Vt,Sn=zr)},setLocked:function(_n){Le=_n},setClear:function(_n){or!==_n&&(n.clearStencil(_n),or=_n)},reset:function(){Le=!1,pt=null,Ze=null,nt=null,At=null,Mt=null,fn=null,Sn=null,or=null}}}const a=new t,s=new r,o=new i,c=new WeakMap,l=new WeakMap;let u={},A={},f=new WeakMap,h=[],g=null,y=!1,w=null,v=null,S=null,C=null,M=null,F=null,D=null,U=new Qt(0,0,0),O=0,T=!1,P=null,k=null,H=null,j=null,$=null;const ce=n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let de=!1,fe=0;const ee=n.getParameter(n.VERSION);ee.indexOf("WebGL")!==-1?(fe=parseFloat(/^WebGL (\d)/.exec(ee)[1]),de=fe>=1):ee.indexOf("OpenGL ES")!==-1&&(fe=parseFloat(/^OpenGL ES (\d)/.exec(ee)[1]),de=fe>=2);let Se=null,xe={};const Pe=n.getParameter(n.SCISSOR_BOX),V=n.getParameter(n.VIEWPORT),ae=new ar().fromArray(Pe),J=new ar().fromArray(V);function z(Le,pt,Ze,nt){const At=new Uint8Array(4),Mt=n.createTexture();n.bindTexture(Le,Mt),n.texParameteri(Le,n.TEXTURE_MIN_FILTER,n.NEAREST),n.texParameteri(Le,n.TEXTURE_MAG_FILTER,n.NEAREST);for(let fn=0;fn<Ze;fn++)Le===n.TEXTURE_3D||Le===n.TEXTURE_2D_ARRAY?n.texImage3D(pt,0,n.RGBA,1,1,nt,0,n.RGBA,n.UNSIGNED_BYTE,At):n.texImage2D(pt+fn,0,n.RGBA,1,1,0,n.RGBA,n.UNSIGNED_BYTE,At);return Mt}const Z={};Z[n.TEXTURE_2D]=z(n.TEXTURE_2D,n.TEXTURE_2D,1),Z[n.TEXTURE_CUBE_MAP]=z(n.TEXTURE_CUBE_MAP,n.TEXTURE_CUBE_MAP_POSITIVE_X,6),Z[n.TEXTURE_2D_ARRAY]=z(n.TEXTURE_2D_ARRAY,n.TEXTURE_2D_ARRAY,1,1),Z[n.TEXTURE_3D]=z(n.TEXTURE_3D,n.TEXTURE_3D,1,1),a.setClear(0,0,0,1),s.setClear(1),o.setClear(0),le(n.DEPTH_TEST),s.setFunc(SA),De(!1),je(wM),le(n.CULL_FACE),ue($l);function le(Le){u[Le]!==!0&&(n.enable(Le),u[Le]=!0)}function ge(Le){u[Le]!==!1&&(n.disable(Le),u[Le]=!1)}function Me(Le,pt){return A[Le]!==pt?(n.bindFramebuffer(Le,pt),A[Le]=pt,Le===n.DRAW_FRAMEBUFFER&&(A[n.FRAMEBUFFER]=pt),Le===n.FRAMEBUFFER&&(A[n.DRAW_FRAMEBUFFER]=pt),!0):!1}function Te(Le,pt){let Ze=h,nt=!1;if(Le){Ze=f.get(pt),Ze===void 0&&(Ze=[],f.set(pt,Ze));const At=Le.textures;if(Ze.length!==At.length||Ze[0]!==n.COLOR_ATTACHMENT0){for(let Mt=0,fn=At.length;Mt<fn;Mt++)Ze[Mt]=n.COLOR_ATTACHMENT0+Mt;Ze.length=At.length,nt=!0}}else Ze[0]!==n.BACK&&(Ze[0]=n.BACK,nt=!0);nt&&n.drawBuffers(Ze)}function We(Le){return g!==Le?(n.useProgram(Le),g=Le,!0):!1}const Ee={[Lu]:n.FUNC_ADD,[mW]:n.FUNC_SUBTRACT,[pW]:n.FUNC_REVERSE_SUBTRACT};Ee[gW]=n.MIN,Ee[vW]=n.MAX;const Ne={[yW]:n.ZERO,[wW]:n.ONE,[bW]:n.SRC_COLOR,[Ny]:n.SRC_ALPHA,[PW]:n.SRC_ALPHA_SATURATE,[SW]:n.DST_COLOR,[xW]:n.DST_ALPHA,[_W]:n.ONE_MINUS_SRC_COLOR,[Dy]:n.ONE_MINUS_SRC_ALPHA,[CW]:n.ONE_MINUS_DST_COLOR,[MW]:n.ONE_MINUS_DST_ALPHA,[EW]:n.CONSTANT_COLOR,[BW]:n.ONE_MINUS_CONSTANT_COLOR,[TW]:n.CONSTANT_ALPHA,[kW]:n.ONE_MINUS_CONSTANT_ALPHA};function ue(Le,pt,Ze,nt,At,Mt,fn,Sn,or,_n){if(Le===$l){y===!0&&(ge(n.BLEND),y=!1);return}if(y===!1&&(le(n.BLEND),y=!0),Le!==fW){if(Le!==w||_n!==T){if((v!==Lu||M!==Lu)&&(n.blendEquation(n.FUNC_ADD),v=Lu,M=Lu),_n)switch(Le){case lA:n.blendFuncSeparate(n.ONE,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA);break;case bM:n.blendFunc(n.ONE,n.ONE);break;case _M:n.blendFuncSeparate(n.ZERO,n.ONE_MINUS_SRC_COLOR,n.ZERO,n.ONE);break;case xM:n.blendFuncSeparate(n.ZERO,n.SRC_COLOR,n.ZERO,n.SRC_ALPHA);break;default:break}else switch(Le){case lA:n.blendFuncSeparate(n.SRC_ALPHA,n.ONE_MINUS_SRC_ALPHA,n.ONE,n.ONE_MINUS_SRC_ALPHA);break;case bM:n.blendFunc(n.SRC_ALPHA,n.ONE);break;case _M:n.blendFuncSeparate(n.ZERO,n.ONE_MINUS_SRC_COLOR,n.ZERO,n.ONE);break;case xM:n.blendFunc(n.ZERO,n.SRC_COLOR);break;default:break}S=null,C=null,F=null,D=null,U.set(0,0,0),O=0,w=Le,T=_n}return}At=At||pt,Mt=Mt||Ze,fn=fn||nt,(pt!==v||At!==M)&&(n.blendEquationSeparate(Ee[pt],Ee[At]),v=pt,M=At),(Ze!==S||nt!==C||Mt!==F||fn!==D)&&(n.blendFuncSeparate(Ne[Ze],Ne[nt],Ne[Mt],Ne[fn]),S=Ze,C=nt,F=Mt,D=fn),(Sn.equals(U)===!1||or!==O)&&(n.blendColor(Sn.r,Sn.g,Sn.b,or),U.copy(Sn),O=or),w=Le,T=!1}function ne(Le,pt){Le.side===mc?ge(n.CULL_FACE):le(n.CULL_FACE);let Ze=Le.side===Ss;pt&&(Ze=!Ze),De(Ze),Le.blending===lA&&Le.transparent===!1?ue($l):ue(Le.blending,Le.blendEquation,Le.blendSrc,Le.blendDst,Le.blendEquationAlpha,Le.blendSrcAlpha,Le.blendDstAlpha,Le.blendColor,Le.blendAlpha,Le.premultipliedAlpha),s.setFunc(Le.depthFunc),s.setTest(Le.depthTest),s.setMask(Le.depthWrite),a.setMask(Le.colorWrite);const nt=Le.stencilWrite;o.setTest(nt),nt&&(o.setMask(Le.stencilWriteMask),o.setFunc(Le.stencilFunc,Le.stencilRef,Le.stencilFuncMask),o.setOp(Le.stencilFail,Le.stencilZFail,Le.stencilZPass)),Qe(Le.polygonOffset,Le.polygonOffsetFactor,Le.polygonOffsetUnits),Le.alphaToCoverage===!0?le(n.SAMPLE_ALPHA_TO_COVERAGE):ge(n.SAMPLE_ALPHA_TO_COVERAGE)}function De(Le){P!==Le&&(Le?n.frontFace(n.CW):n.frontFace(n.CCW),P=Le)}function je(Le){Le!==dW?(le(n.CULL_FACE),Le!==k&&(Le===wM?n.cullFace(n.BACK):Le===AW?n.cullFace(n.FRONT):n.cullFace(n.FRONT_AND_BACK))):ge(n.CULL_FACE),k=Le}function ze(Le){Le!==H&&(de&&n.lineWidth(Le),H=Le)}function Qe(Le,pt,Ze){Le?(le(n.POLYGON_OFFSET_FILL),(j!==pt||$!==Ze)&&(n.polygonOffset(pt,Ze),j=pt,$=Ze)):ge(n.POLYGON_OFFSET_FILL)}function ot(Le){Le?le(n.SCISSOR_TEST):ge(n.SCISSOR_TEST)}function se(Le){Le===void 0&&(Le=n.TEXTURE0+ce-1),Se!==Le&&(n.activeTexture(Le),Se=Le)}function G(Le,pt,Ze){Ze===void 0&&(Se===null?Ze=n.TEXTURE0+ce-1:Ze=Se);let nt=xe[Ze];nt===void 0&&(nt={type:void 0,texture:void 0},xe[Ze]=nt),(nt.type!==Le||nt.texture!==pt)&&(Se!==Ze&&(n.activeTexture(Ze),Se=Ze),n.bindTexture(Le,pt||Z[Le]),nt.type=Le,nt.texture=pt)}function Be(){const Le=xe[Se];Le!==void 0&&Le.type!==void 0&&(n.bindTexture(Le.type,null),Le.type=void 0,Le.texture=void 0)}function Ke(){try{n.compressedTexImage2D.apply(n,arguments)}catch{}}function it(){try{n.compressedTexImage3D.apply(n,arguments)}catch{}}function Ve(){try{n.texSubImage2D.apply(n,arguments)}catch{}}function bt(){try{n.texSubImage3D.apply(n,arguments)}catch{}}function lt(){try{n.compressedTexSubImage2D.apply(n,arguments)}catch{}}function ct(){try{n.compressedTexSubImage3D.apply(n,arguments)}catch{}}function kt(){try{n.texStorage2D.apply(n,arguments)}catch{}}function Je(){try{n.texStorage3D.apply(n,arguments)}catch{}}function Tt(){try{n.texImage2D.apply(n,arguments)}catch{}}function Pt(){try{n.texImage3D.apply(n,arguments)}catch{}}function Ct(Le){ae.equals(Le)===!1&&(n.scissor(Le.x,Le.y,Le.z,Le.w),ae.copy(Le))}function yt(Le){J.equals(Le)===!1&&(n.viewport(Le.x,Le.y,Le.z,Le.w),J.copy(Le))}function Kt(Le,pt){let Ze=l.get(pt);Ze===void 0&&(Ze=new WeakMap,l.set(pt,Ze));let nt=Ze.get(Le);nt===void 0&&(nt=n.getUniformBlockIndex(pt,Le.name),Ze.set(Le,nt))}function _t(Le,pt){const nt=l.get(pt).get(Le);c.get(pt)!==nt&&(n.uniformBlockBinding(pt,nt,Le.__bindingPointIndex),c.set(pt,nt))}function sn(){n.disable(n.BLEND),n.disable(n.CULL_FACE),n.disable(n.DEPTH_TEST),n.disable(n.POLYGON_OFFSET_FILL),n.disable(n.SCISSOR_TEST),n.disable(n.STENCIL_TEST),n.disable(n.SAMPLE_ALPHA_TO_COVERAGE),n.blendEquation(n.FUNC_ADD),n.blendFunc(n.ONE,n.ZERO),n.blendFuncSeparate(n.ONE,n.ZERO,n.ONE,n.ZERO),n.blendColor(0,0,0,0),n.colorMask(!0,!0,!0,!0),n.clearColor(0,0,0,0),n.depthMask(!0),n.depthFunc(n.LESS),s.setReversed(!1),n.clearDepth(1),n.stencilMask(4294967295),n.stencilFunc(n.ALWAYS,0,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.KEEP),n.clearStencil(0),n.cullFace(n.BACK),n.frontFace(n.CCW),n.polygonOffset(0,0),n.activeTexture(n.TEXTURE0),n.bindFramebuffer(n.FRAMEBUFFER,null),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),n.bindFramebuffer(n.READ_FRAMEBUFFER,null),n.useProgram(null),n.lineWidth(1),n.scissor(0,0,n.canvas.width,n.canvas.height),n.viewport(0,0,n.canvas.width,n.canvas.height),u={},Se=null,xe={},A={},f=new WeakMap,h=[],g=null,y=!1,w=null,v=null,S=null,C=null,M=null,F=null,D=null,U=new Qt(0,0,0),O=0,T=!1,P=null,k=null,H=null,j=null,$=null,ae.set(0,0,n.canvas.width,n.canvas.height),J.set(0,0,n.canvas.width,n.canvas.height),a.reset(),s.reset(),o.reset()}return{buffers:{color:a,depth:s,stencil:o},enable:le,disable:ge,bindFramebuffer:Me,drawBuffers:Te,useProgram:We,setBlending:ue,setMaterial:ne,setFlipSided:De,setCullFace:je,setLineWidth:ze,setPolygonOffset:Qe,setScissorTest:ot,activeTexture:se,bindTexture:G,unbindTexture:Be,compressedTexImage2D:Ke,compressedTexImage3D:it,texImage2D:Tt,texImage3D:Pt,updateUBOMapping:Kt,uniformBlockBinding:_t,texStorage2D:kt,texStorage3D:Je,texSubImage2D:Ve,texSubImage3D:bt,compressedTexSubImage2D:lt,compressedTexSubImage3D:ct,scissor:Ct,viewport:yt,reset:sn}}function Hnt(n,e,t,r,i,a,s){const o=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,c=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),l=new vt,u=new WeakMap;let A;const f=new WeakMap;let h=!1;try{h=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function g(se,G){return h?new OffscreenCanvas(se,G):Yp("canvas")}function y(se,G,Be){let Ke=1;const it=ot(se);if((it.width>Be||it.height>Be)&&(Ke=Be/Math.max(it.width,it.height)),Ke<1)if(typeof HTMLImageElement<"u"&&se instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&se instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&se instanceof ImageBitmap||typeof VideoFrame<"u"&&se instanceof VideoFrame){const Ve=Math.floor(Ke*it.width),bt=Math.floor(Ke*it.height);A===void 0&&(A=g(Ve,bt));const lt=G?g(Ve,bt):A;return lt.width=Ve,lt.height=bt,lt.getContext("2d").drawImage(se,0,0,Ve,bt),lt}else return"data"in se,se;return se}function w(se){return se.generateMipmaps}function v(se){n.generateMipmap(se)}function S(se){return se.isWebGLCubeRenderTarget?n.TEXTURE_CUBE_MAP:se.isWebGL3DRenderTarget?n.TEXTURE_3D:se.isWebGLArrayRenderTarget||se.isCompressedArrayTexture?n.TEXTURE_2D_ARRAY:n.TEXTURE_2D}function C(se,G,Be,Ke,it=!1){if(se!==null&&n[se]!==void 0)return n[se];let Ve=G;if(G===n.RED&&(Be===n.FLOAT&&(Ve=n.R32F),Be===n.HALF_FLOAT&&(Ve=n.R16F),Be===n.UNSIGNED_BYTE&&(Ve=n.R8)),G===n.RED_INTEGER&&(Be===n.UNSIGNED_BYTE&&(Ve=n.R8UI),Be===n.UNSIGNED_SHORT&&(Ve=n.R16UI),Be===n.UNSIGNED_INT&&(Ve=n.R32UI),Be===n.BYTE&&(Ve=n.R8I),Be===n.SHORT&&(Ve=n.R16I),Be===n.INT&&(Ve=n.R32I)),G===n.RG&&(Be===n.FLOAT&&(Ve=n.RG32F),Be===n.HALF_FLOAT&&(Ve=n.RG16F),Be===n.UNSIGNED_BYTE&&(Ve=n.RG8)),G===n.RG_INTEGER&&(Be===n.UNSIGNED_BYTE&&(Ve=n.RG8UI),Be===n.UNSIGNED_SHORT&&(Ve=n.RG16UI),Be===n.UNSIGNED_INT&&(Ve=n.RG32UI),Be===n.BYTE&&(Ve=n.RG8I),Be===n.SHORT&&(Ve=n.RG16I),Be===n.INT&&(Ve=n.RG32I)),G===n.RGB_INTEGER&&(Be===n.UNSIGNED_BYTE&&(Ve=n.RGB8UI),Be===n.UNSIGNED_SHORT&&(Ve=n.RGB16UI),Be===n.UNSIGNED_INT&&(Ve=n.RGB32UI),Be===n.BYTE&&(Ve=n.RGB8I),Be===n.SHORT&&(Ve=n.RGB16I),Be===n.INT&&(Ve=n.RGB32I)),G===n.RGBA_INTEGER&&(Be===n.UNSIGNED_BYTE&&(Ve=n.RGBA8UI),Be===n.UNSIGNED_SHORT&&(Ve=n.RGBA16UI),Be===n.UNSIGNED_INT&&(Ve=n.RGBA32UI),Be===n.BYTE&&(Ve=n.RGBA8I),Be===n.SHORT&&(Ve=n.RGBA16I),Be===n.INT&&(Ve=n.RGBA32I)),G===n.RGB&&Be===n.UNSIGNED_INT_5_9_9_9_REV&&(Ve=n.RGB9_E5),G===n.RGBA){const bt=it?Kp:Jn.getTransfer(Ke);Be===n.FLOAT&&(Ve=n.RGBA32F),Be===n.HALF_FLOAT&&(Ve=n.RGBA16F),Be===n.UNSIGNED_BYTE&&(Ve=bt===Sr?n.SRGB8_ALPHA8:n.RGBA8),Be===n.UNSIGNED_SHORT_4_4_4_4&&(Ve=n.RGBA4),Be===n.UNSIGNED_SHORT_5_5_5_1&&(Ve=n.RGB5_A1)}return(Ve===n.R16F||Ve===n.R32F||Ve===n.RG16F||Ve===n.RG32F||Ve===n.RGBA16F||Ve===n.RGBA32F)&&e.get("EXT_color_buffer_float"),Ve}function M(se,G){let Be;return se?G===null||G===Jl||G===CA?Be=n.DEPTH24_STENCIL8:G===zs?Be=n.DEPTH32F_STENCIL8:G===mf&&(Be=n.DEPTH24_STENCIL8):G===null||G===Jl||G===CA?Be=n.DEPTH_COMPONENT24:G===zs?Be=n.DEPTH_COMPONENT32F:G===mf&&(Be=n.DEPTH_COMPONENT16),Be}function F(se,G){return w(se)===!0||se.isFramebufferTexture&&se.minFilter!==Xi&&se.minFilter!==pi?Math.log2(Math.max(G.width,G.height))+1:se.mipmaps!==void 0&&se.mipmaps.length>0?se.mipmaps.length:se.isCompressedTexture&&Array.isArray(se.image)?G.mipmaps.length:1}function D(se){const G=se.target;G.removeEventListener("dispose",D),O(G),G.isVideoTexture&&u.delete(G)}function U(se){const G=se.target;G.removeEventListener("dispose",U),P(G)}function O(se){const G=r.get(se);if(G.__webglInit===void 0)return;const Be=se.source,Ke=f.get(Be);if(Ke){const it=Ke[G.__cacheKey];it.usedTimes--,it.usedTimes===0&&T(se),Object.keys(Ke).length===0&&f.delete(Be)}r.remove(se)}function T(se){const G=r.get(se);n.deleteTexture(G.__webglTexture);const Be=se.source,Ke=f.get(Be);delete Ke[G.__cacheKey],s.memory.textures--}function P(se){const G=r.get(se);if(se.depthTexture&&(se.depthTexture.dispose(),r.remove(se.depthTexture)),se.isWebGLCubeRenderTarget)for(let Ke=0;Ke<6;Ke++){if(Array.isArray(G.__webglFramebuffer[Ke]))for(let it=0;it<G.__webglFramebuffer[Ke].length;it++)n.deleteFramebuffer(G.__webglFramebuffer[Ke][it]);else n.deleteFramebuffer(G.__webglFramebuffer[Ke]);G.__webglDepthbuffer&&n.deleteRenderbuffer(G.__webglDepthbuffer[Ke])}else{if(Array.isArray(G.__webglFramebuffer))for(let Ke=0;Ke<G.__webglFramebuffer.length;Ke++)n.deleteFramebuffer(G.__webglFramebuffer[Ke]);else n.deleteFramebuffer(G.__webglFramebuffer);if(G.__webglDepthbuffer&&n.deleteRenderbuffer(G.__webglDepthbuffer),G.__webglMultisampledFramebuffer&&n.deleteFramebuffer(G.__webglMultisampledFramebuffer),G.__webglColorRenderbuffer)for(let Ke=0;Ke<G.__webglColorRenderbuffer.length;Ke++)G.__webglColorRenderbuffer[Ke]&&n.deleteRenderbuffer(G.__webglColorRenderbuffer[Ke]);G.__webglDepthRenderbuffer&&n.deleteRenderbuffer(G.__webglDepthRenderbuffer)}const Be=se.textures;for(let Ke=0,it=Be.length;Ke<it;Ke++){const Ve=r.get(Be[Ke]);Ve.__webglTexture&&(n.deleteTexture(Ve.__webglTexture),s.memory.textures--),r.remove(Be[Ke])}r.remove(se)}let k=0;function H(){k=0}function j(){const se=k;return se>=i.maxTextures,k+=1,se}function $(se){const G=[];return G.push(se.wrapS),G.push(se.wrapT),G.push(se.wrapR||0),G.push(se.magFilter),G.push(se.minFilter),G.push(se.anisotropy),G.push(se.internalFormat),G.push(se.format),G.push(se.type),G.push(se.generateMipmaps),G.push(se.premultiplyAlpha),G.push(se.flipY),G.push(se.unpackAlignment),G.push(se.colorSpace),G.join()}function ce(se,G){const Be=r.get(se);if(se.isVideoTexture&&ze(se),se.isRenderTargetTexture===!1&&se.version>0&&Be.__version!==se.version){const Ke=se.image;if(Ke!==null){if(Ke.complete!==!1){J(Be,se,G);return}}}t.bindTexture(n.TEXTURE_2D,Be.__webglTexture,n.TEXTURE0+G)}function de(se,G){const Be=r.get(se);if(se.version>0&&Be.__version!==se.version){J(Be,se,G);return}t.bindTexture(n.TEXTURE_2D_ARRAY,Be.__webglTexture,n.TEXTURE0+G)}function fe(se,G){const Be=r.get(se);if(se.version>0&&Be.__version!==se.version){J(Be,se,G);return}t.bindTexture(n.TEXTURE_3D,Be.__webglTexture,n.TEXTURE0+G)}function ee(se,G){const Be=r.get(se);if(se.version>0&&Be.__version!==se.version){z(Be,se,G);return}t.bindTexture(n.TEXTURE_CUBE_MAP,Be.__webglTexture,n.TEXTURE0+G)}const Se={[td]:n.REPEAT,[go]:n.CLAMP_TO_EDGE,[ff]:n.MIRRORED_REPEAT},xe={[Xi]:n.NEAREST,[ub]:n.NEAREST_MIPMAP_NEAREST,[Yd]:n.NEAREST_MIPMAP_LINEAR,[pi]:n.LINEAR,[qh]:n.LINEAR_MIPMAP_NEAREST,[Wo]:n.LINEAR_MIPMAP_LINEAR},Pe={[qW]:n.NEVER,[tQ]:n.ALWAYS,[XW]:n.LESS,[yP]:n.LEQUAL,[YW]:n.EQUAL,[eQ]:n.GEQUAL,[JW]:n.GREATER,[ZW]:n.NOTEQUAL};function V(se,G){if(G.type===zs&&e.has("OES_texture_float_linear")===!1&&(G.magFilter===pi||G.magFilter===qh||G.magFilter===Yd||G.magFilter===Wo||G.minFilter===pi||G.minFilter===qh||G.minFilter===Yd||G.minFilter),n.texParameteri(se,n.TEXTURE_WRAP_S,Se[G.wrapS]),n.texParameteri(se,n.TEXTURE_WRAP_T,Se[G.wrapT]),(se===n.TEXTURE_3D||se===n.TEXTURE_2D_ARRAY)&&n.texParameteri(se,n.TEXTURE_WRAP_R,Se[G.wrapR]),n.texParameteri(se,n.TEXTURE_MAG_FILTER,xe[G.magFilter]),n.texParameteri(se,n.TEXTURE_MIN_FILTER,xe[G.minFilter]),G.compareFunction&&(n.texParameteri(se,n.TEXTURE_COMPARE_MODE,n.COMPARE_REF_TO_TEXTURE),n.texParameteri(se,n.TEXTURE_COMPARE_FUNC,Pe[G.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(G.magFilter===Xi||G.minFilter!==Yd&&G.minFilter!==Wo||G.type===zs&&e.has("OES_texture_float_linear")===!1)return;if(G.anisotropy>1||r.get(G).__currentAnisotropy){const Be=e.get("EXT_texture_filter_anisotropic");n.texParameterf(se,Be.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(G.anisotropy,i.getMaxAnisotropy())),r.get(G).__currentAnisotropy=G.anisotropy}}}function ae(se,G){let Be=!1;se.__webglInit===void 0&&(se.__webglInit=!0,G.addEventListener("dispose",D));const Ke=G.source;let it=f.get(Ke);it===void 0&&(it={},f.set(Ke,it));const Ve=$(G);if(Ve!==se.__cacheKey){it[Ve]===void 0&&(it[Ve]={texture:n.createTexture(),usedTimes:0},s.memory.textures++,Be=!0),it[Ve].usedTimes++;const bt=it[se.__cacheKey];bt!==void 0&&(it[se.__cacheKey].usedTimes--,bt.usedTimes===0&&T(G)),se.__cacheKey=Ve,se.__webglTexture=it[Ve].texture}return Be}function J(se,G,Be){let Ke=n.TEXTURE_2D;(G.isDataArrayTexture||G.isCompressedArrayTexture)&&(Ke=n.TEXTURE_2D_ARRAY),G.isData3DTexture&&(Ke=n.TEXTURE_3D);const it=ae(se,G),Ve=G.source;t.bindTexture(Ke,se.__webglTexture,n.TEXTURE0+Be);const bt=r.get(Ve);if(Ve.version!==bt.__version||it===!0){t.activeTexture(n.TEXTURE0+Be);const lt=Jn.getPrimaries(Jn.workingColorSpace),ct=G.colorSpace===Fl?null:Jn.getPrimaries(G.colorSpace),kt=G.colorSpace===Fl||lt===ct?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,G.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,G.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,G.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,kt);let Je=y(G.image,!1,i.maxTextureSize);Je=Qe(G,Je);const Tt=a.convert(G.format,G.colorSpace),Pt=a.convert(G.type);let Ct=C(G.internalFormat,Tt,Pt,G.colorSpace,G.isVideoTexture);V(Ke,G);let yt;const Kt=G.mipmaps,_t=G.isVideoTexture!==!0,sn=bt.__version===void 0||it===!0,Le=Ve.dataReady,pt=F(G,Je);if(G.isDepthTexture)Ct=M(G.format===PA,G.type),sn&&(_t?t.texStorage2D(n.TEXTURE_2D,1,Ct,Je.width,Je.height):t.texImage2D(n.TEXTURE_2D,0,Ct,Je.width,Je.height,0,Tt,Pt,null));else if(G.isDataTexture)if(Kt.length>0){_t&&sn&&t.texStorage2D(n.TEXTURE_2D,pt,Ct,Kt[0].width,Kt[0].height);for(let Ze=0,nt=Kt.length;Ze<nt;Ze++)yt=Kt[Ze],_t?Le&&t.texSubImage2D(n.TEXTURE_2D,Ze,0,0,yt.width,yt.height,Tt,Pt,yt.data):t.texImage2D(n.TEXTURE_2D,Ze,Ct,yt.width,yt.height,0,Tt,Pt,yt.data);G.generateMipmaps=!1}else _t?(sn&&t.texStorage2D(n.TEXTURE_2D,pt,Ct,Je.width,Je.height),Le&&t.texSubImage2D(n.TEXTURE_2D,0,0,0,Je.width,Je.height,Tt,Pt,Je.data)):t.texImage2D(n.TEXTURE_2D,0,Ct,Je.width,Je.height,0,Tt,Pt,Je.data);else if(G.isCompressedTexture)if(G.isCompressedArrayTexture){_t&&sn&&t.texStorage3D(n.TEXTURE_2D_ARRAY,pt,Ct,Kt[0].width,Kt[0].height,Je.depth);for(let Ze=0,nt=Kt.length;Ze<nt;Ze++)if(yt=Kt[Ze],G.format!==Ms){if(Tt!==null)if(_t){if(Le)if(G.layerUpdates.size>0){const At=LM(yt.width,yt.height,G.format,G.type);for(const Mt of G.layerUpdates){const fn=yt.data.subarray(Mt*At/yt.data.BYTES_PER_ELEMENT,(Mt+1)*At/yt.data.BYTES_PER_ELEMENT);t.compressedTexSubImage3D(n.TEXTURE_2D_ARRAY,Ze,0,0,Mt,yt.width,yt.height,1,Tt,fn)}G.clearLayerUpdates()}else t.compressedTexSubImage3D(n.TEXTURE_2D_ARRAY,Ze,0,0,0,yt.width,yt.height,Je.depth,Tt,yt.data)}else t.compressedTexImage3D(n.TEXTURE_2D_ARRAY,Ze,Ct,yt.width,yt.height,Je.depth,0,yt.data,0,0)}else _t?Le&&t.texSubImage3D(n.TEXTURE_2D_ARRAY,Ze,0,0,0,yt.width,yt.height,Je.depth,Tt,Pt,yt.data):t.texImage3D(n.TEXTURE_2D_ARRAY,Ze,Ct,yt.width,yt.height,Je.depth,0,Tt,Pt,yt.data)}else{_t&&sn&&t.texStorage2D(n.TEXTURE_2D,pt,Ct,Kt[0].width,Kt[0].height);for(let Ze=0,nt=Kt.length;Ze<nt;Ze++)yt=Kt[Ze],G.format!==Ms?Tt!==null&&(_t?Le&&t.compressedTexSubImage2D(n.TEXTURE_2D,Ze,0,0,yt.width,yt.height,Tt,yt.data):t.compressedTexImage2D(n.TEXTURE_2D,Ze,Ct,yt.width,yt.height,0,yt.data)):_t?Le&&t.texSubImage2D(n.TEXTURE_2D,Ze,0,0,yt.width,yt.height,Tt,Pt,yt.data):t.texImage2D(n.TEXTURE_2D,Ze,Ct,yt.width,yt.height,0,Tt,Pt,yt.data)}else if(G.isDataArrayTexture)if(_t){if(sn&&t.texStorage3D(n.TEXTURE_2D_ARRAY,pt,Ct,Je.width,Je.height,Je.depth),Le)if(G.layerUpdates.size>0){const Ze=LM(Je.width,Je.height,G.format,G.type);for(const nt of G.layerUpdates){const At=Je.data.subarray(nt*Ze/Je.data.BYTES_PER_ELEMENT,(nt+1)*Ze/Je.data.BYTES_PER_ELEMENT);t.texSubImage3D(n.TEXTURE_2D_ARRAY,0,0,0,nt,Je.width,Je.height,1,Tt,Pt,At)}G.clearLayerUpdates()}else t.texSubImage3D(n.TEXTURE_2D_ARRAY,0,0,0,0,Je.width,Je.height,Je.depth,Tt,Pt,Je.data)}else t.texImage3D(n.TEXTURE_2D_ARRAY,0,Ct,Je.width,Je.height,Je.depth,0,Tt,Pt,Je.data);else if(G.isData3DTexture)_t?(sn&&t.texStorage3D(n.TEXTURE_3D,pt,Ct,Je.width,Je.height,Je.depth),Le&&t.texSubImage3D(n.TEXTURE_3D,0,0,0,0,Je.width,Je.height,Je.depth,Tt,Pt,Je.data)):t.texImage3D(n.TEXTURE_3D,0,Ct,Je.width,Je.height,Je.depth,0,Tt,Pt,Je.data);else if(G.isFramebufferTexture){if(sn)if(_t)t.texStorage2D(n.TEXTURE_2D,pt,Ct,Je.width,Je.height);else{let Ze=Je.width,nt=Je.height;for(let At=0;At<pt;At++)t.texImage2D(n.TEXTURE_2D,At,Ct,Ze,nt,0,Tt,Pt,null),Ze>>=1,nt>>=1}}else if(Kt.length>0){if(_t&&sn){const Ze=ot(Kt[0]);t.texStorage2D(n.TEXTURE_2D,pt,Ct,Ze.width,Ze.height)}for(let Ze=0,nt=Kt.length;Ze<nt;Ze++)yt=Kt[Ze],_t?Le&&t.texSubImage2D(n.TEXTURE_2D,Ze,0,0,Tt,Pt,yt):t.texImage2D(n.TEXTURE_2D,Ze,Ct,Tt,Pt,yt);G.generateMipmaps=!1}else if(_t){if(sn){const Ze=ot(Je);t.texStorage2D(n.TEXTURE_2D,pt,Ct,Ze.width,Ze.height)}Le&&t.texSubImage2D(n.TEXTURE_2D,0,0,0,Tt,Pt,Je)}else t.texImage2D(n.TEXTURE_2D,0,Ct,Tt,Pt,Je);w(G)&&v(Ke),bt.__version=Ve.version,G.onUpdate&&G.onUpdate(G)}se.__version=G.version}function z(se,G,Be){if(G.image.length!==6)return;const Ke=ae(se,G),it=G.source;t.bindTexture(n.TEXTURE_CUBE_MAP,se.__webglTexture,n.TEXTURE0+Be);const Ve=r.get(it);if(it.version!==Ve.__version||Ke===!0){t.activeTexture(n.TEXTURE0+Be);const bt=Jn.getPrimaries(Jn.workingColorSpace),lt=G.colorSpace===Fl?null:Jn.getPrimaries(G.colorSpace),ct=G.colorSpace===Fl||bt===lt?n.NONE:n.BROWSER_DEFAULT_WEBGL;n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL,G.flipY),n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,G.premultiplyAlpha),n.pixelStorei(n.UNPACK_ALIGNMENT,G.unpackAlignment),n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL,ct);const kt=G.isCompressedTexture||G.image[0].isCompressedTexture,Je=G.image[0]&&G.image[0].isDataTexture,Tt=[];for(let nt=0;nt<6;nt++)!kt&&!Je?Tt[nt]=y(G.image[nt],!0,i.maxCubemapSize):Tt[nt]=Je?G.image[nt].image:G.image[nt],Tt[nt]=Qe(G,Tt[nt]);const Pt=Tt[0],Ct=a.convert(G.format,G.colorSpace),yt=a.convert(G.type),Kt=C(G.internalFormat,Ct,yt,G.colorSpace),_t=G.isVideoTexture!==!0,sn=Ve.__version===void 0||Ke===!0,Le=it.dataReady;let pt=F(G,Pt);V(n.TEXTURE_CUBE_MAP,G);let Ze;if(kt){_t&&sn&&t.texStorage2D(n.TEXTURE_CUBE_MAP,pt,Kt,Pt.width,Pt.height);for(let nt=0;nt<6;nt++){Ze=Tt[nt].mipmaps;for(let At=0;At<Ze.length;At++){const Mt=Ze[At];G.format!==Ms?Ct!==null&&(_t?Le&&t.compressedTexSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,At,0,0,Mt.width,Mt.height,Ct,Mt.data):t.compressedTexImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,At,Kt,Mt.width,Mt.height,0,Mt.data)):_t?Le&&t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,At,0,0,Mt.width,Mt.height,Ct,yt,Mt.data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,At,Kt,Mt.width,Mt.height,0,Ct,yt,Mt.data)}}}else{if(Ze=G.mipmaps,_t&&sn){Ze.length>0&&pt++;const nt=ot(Tt[0]);t.texStorage2D(n.TEXTURE_CUBE_MAP,pt,Kt,nt.width,nt.height)}for(let nt=0;nt<6;nt++)if(Je){_t?Le&&t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,0,0,0,Tt[nt].width,Tt[nt].height,Ct,yt,Tt[nt].data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,0,Kt,Tt[nt].width,Tt[nt].height,0,Ct,yt,Tt[nt].data);for(let At=0;At<Ze.length;At++){const fn=Ze[At].image[nt].image;_t?Le&&t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,At+1,0,0,fn.width,fn.height,Ct,yt,fn.data):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,At+1,Kt,fn.width,fn.height,0,Ct,yt,fn.data)}}else{_t?Le&&t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,0,0,0,Ct,yt,Tt[nt]):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,0,Kt,Ct,yt,Tt[nt]);for(let At=0;At<Ze.length;At++){const Mt=Ze[At];_t?Le&&t.texSubImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,At+1,0,0,Ct,yt,Mt.image[nt]):t.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+nt,At+1,Kt,Ct,yt,Mt.image[nt])}}}w(G)&&v(n.TEXTURE_CUBE_MAP),Ve.__version=it.version,G.onUpdate&&G.onUpdate(G)}se.__version=G.version}function Z(se,G,Be,Ke,it,Ve){const bt=a.convert(Be.format,Be.colorSpace),lt=a.convert(Be.type),ct=C(Be.internalFormat,bt,lt,Be.colorSpace),kt=r.get(G),Je=r.get(Be);if(Je.__renderTarget=G,!kt.__hasExternalTextures){const Tt=Math.max(1,G.width>>Ve),Pt=Math.max(1,G.height>>Ve);it===n.TEXTURE_3D||it===n.TEXTURE_2D_ARRAY?t.texImage3D(it,Ve,ct,Tt,Pt,G.depth,0,bt,lt,null):t.texImage2D(it,Ve,ct,Tt,Pt,0,bt,lt,null)}t.bindFramebuffer(n.FRAMEBUFFER,se),je(G)?o.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,Ke,it,Je.__webglTexture,0,De(G)):(it===n.TEXTURE_2D||it>=n.TEXTURE_CUBE_MAP_POSITIVE_X&&it<=n.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&n.framebufferTexture2D(n.FRAMEBUFFER,Ke,it,Je.__webglTexture,Ve),t.bindFramebuffer(n.FRAMEBUFFER,null)}function le(se,G,Be){if(n.bindRenderbuffer(n.RENDERBUFFER,se),G.depthBuffer){const Ke=G.depthTexture,it=Ke&&Ke.isDepthTexture?Ke.type:null,Ve=M(G.stencilBuffer,it),bt=G.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,lt=De(G);je(G)?o.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,lt,Ve,G.width,G.height):Be?n.renderbufferStorageMultisample(n.RENDERBUFFER,lt,Ve,G.width,G.height):n.renderbufferStorage(n.RENDERBUFFER,Ve,G.width,G.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,bt,n.RENDERBUFFER,se)}else{const Ke=G.textures;for(let it=0;it<Ke.length;it++){const Ve=Ke[it],bt=a.convert(Ve.format,Ve.colorSpace),lt=a.convert(Ve.type),ct=C(Ve.internalFormat,bt,lt,Ve.colorSpace),kt=De(G);Be&&je(G)===!1?n.renderbufferStorageMultisample(n.RENDERBUFFER,kt,ct,G.width,G.height):je(G)?o.renderbufferStorageMultisampleEXT(n.RENDERBUFFER,kt,ct,G.width,G.height):n.renderbufferStorage(n.RENDERBUFFER,ct,G.width,G.height)}}n.bindRenderbuffer(n.RENDERBUFFER,null)}function ge(se,G){if(G&&G.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(n.FRAMEBUFFER,se),!(G.depthTexture&&G.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");const Ke=r.get(G.depthTexture);Ke.__renderTarget=G,(!Ke.__webglTexture||G.depthTexture.image.width!==G.width||G.depthTexture.image.height!==G.height)&&(G.depthTexture.image.width=G.width,G.depthTexture.image.height=G.height,G.depthTexture.needsUpdate=!0),ce(G.depthTexture,0);const it=Ke.__webglTexture,Ve=De(G);if(G.depthTexture.format===uA)je(G)?o.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,it,0,Ve):n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,it,0);else if(G.depthTexture.format===PA)je(G)?o.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,it,0,Ve):n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.TEXTURE_2D,it,0);else throw new Error("Unknown depthTexture format")}function Me(se){const G=r.get(se),Be=se.isWebGLCubeRenderTarget===!0;if(G.__boundDepthTexture!==se.depthTexture){const Ke=se.depthTexture;if(G.__depthDisposeCallback&&G.__depthDisposeCallback(),Ke){const it=()=>{delete G.__boundDepthTexture,delete G.__depthDisposeCallback,Ke.removeEventListener("dispose",it)};Ke.addEventListener("dispose",it),G.__depthDisposeCallback=it}G.__boundDepthTexture=Ke}if(se.depthTexture&&!G.__autoAllocateDepthBuffer){if(Be)throw new Error("target.depthTexture not supported in Cube render targets");ge(G.__webglFramebuffer,se)}else if(Be){G.__webglDepthbuffer=[];for(let Ke=0;Ke<6;Ke++)if(t.bindFramebuffer(n.FRAMEBUFFER,G.__webglFramebuffer[Ke]),G.__webglDepthbuffer[Ke]===void 0)G.__webglDepthbuffer[Ke]=n.createRenderbuffer(),le(G.__webglDepthbuffer[Ke],se,!1);else{const it=se.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,Ve=G.__webglDepthbuffer[Ke];n.bindRenderbuffer(n.RENDERBUFFER,Ve),n.framebufferRenderbuffer(n.FRAMEBUFFER,it,n.RENDERBUFFER,Ve)}}else if(t.bindFramebuffer(n.FRAMEBUFFER,G.__webglFramebuffer),G.__webglDepthbuffer===void 0)G.__webglDepthbuffer=n.createRenderbuffer(),le(G.__webglDepthbuffer,se,!1);else{const Ke=se.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,it=G.__webglDepthbuffer;n.bindRenderbuffer(n.RENDERBUFFER,it),n.framebufferRenderbuffer(n.FRAMEBUFFER,Ke,n.RENDERBUFFER,it)}t.bindFramebuffer(n.FRAMEBUFFER,null)}function Te(se,G,Be){const Ke=r.get(se);G!==void 0&&Z(Ke.__webglFramebuffer,se,se.texture,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,0),Be!==void 0&&Me(se)}function We(se){const G=se.texture,Be=r.get(se),Ke=r.get(G);se.addEventListener("dispose",U);const it=se.textures,Ve=se.isWebGLCubeRenderTarget===!0,bt=it.length>1;if(bt||(Ke.__webglTexture===void 0&&(Ke.__webglTexture=n.createTexture()),Ke.__version=G.version,s.memory.textures++),Ve){Be.__webglFramebuffer=[];for(let lt=0;lt<6;lt++)if(G.mipmaps&&G.mipmaps.length>0){Be.__webglFramebuffer[lt]=[];for(let ct=0;ct<G.mipmaps.length;ct++)Be.__webglFramebuffer[lt][ct]=n.createFramebuffer()}else Be.__webglFramebuffer[lt]=n.createFramebuffer()}else{if(G.mipmaps&&G.mipmaps.length>0){Be.__webglFramebuffer=[];for(let lt=0;lt<G.mipmaps.length;lt++)Be.__webglFramebuffer[lt]=n.createFramebuffer()}else Be.__webglFramebuffer=n.createFramebuffer();if(bt)for(let lt=0,ct=it.length;lt<ct;lt++){const kt=r.get(it[lt]);kt.__webglTexture===void 0&&(kt.__webglTexture=n.createTexture(),s.memory.textures++)}if(se.samples>0&&je(se)===!1){Be.__webglMultisampledFramebuffer=n.createFramebuffer(),Be.__webglColorRenderbuffer=[],t.bindFramebuffer(n.FRAMEBUFFER,Be.__webglMultisampledFramebuffer);for(let lt=0;lt<it.length;lt++){const ct=it[lt];Be.__webglColorRenderbuffer[lt]=n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,Be.__webglColorRenderbuffer[lt]);const kt=a.convert(ct.format,ct.colorSpace),Je=a.convert(ct.type),Tt=C(ct.internalFormat,kt,Je,ct.colorSpace,se.isXRRenderTarget===!0),Pt=De(se);n.renderbufferStorageMultisample(n.RENDERBUFFER,Pt,Tt,se.width,se.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+lt,n.RENDERBUFFER,Be.__webglColorRenderbuffer[lt])}n.bindRenderbuffer(n.RENDERBUFFER,null),se.depthBuffer&&(Be.__webglDepthRenderbuffer=n.createRenderbuffer(),le(Be.__webglDepthRenderbuffer,se,!0)),t.bindFramebuffer(n.FRAMEBUFFER,null)}}if(Ve){t.bindTexture(n.TEXTURE_CUBE_MAP,Ke.__webglTexture),V(n.TEXTURE_CUBE_MAP,G);for(let lt=0;lt<6;lt++)if(G.mipmaps&&G.mipmaps.length>0)for(let ct=0;ct<G.mipmaps.length;ct++)Z(Be.__webglFramebuffer[lt][ct],se,G,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+lt,ct);else Z(Be.__webglFramebuffer[lt],se,G,n.COLOR_ATTACHMENT0,n.TEXTURE_CUBE_MAP_POSITIVE_X+lt,0);w(G)&&v(n.TEXTURE_CUBE_MAP),t.unbindTexture()}else if(bt){for(let lt=0,ct=it.length;lt<ct;lt++){const kt=it[lt],Je=r.get(kt);t.bindTexture(n.TEXTURE_2D,Je.__webglTexture),V(n.TEXTURE_2D,kt),Z(Be.__webglFramebuffer,se,kt,n.COLOR_ATTACHMENT0+lt,n.TEXTURE_2D,0),w(kt)&&v(n.TEXTURE_2D)}t.unbindTexture()}else{let lt=n.TEXTURE_2D;if((se.isWebGL3DRenderTarget||se.isWebGLArrayRenderTarget)&&(lt=se.isWebGL3DRenderTarget?n.TEXTURE_3D:n.TEXTURE_2D_ARRAY),t.bindTexture(lt,Ke.__webglTexture),V(lt,G),G.mipmaps&&G.mipmaps.length>0)for(let ct=0;ct<G.mipmaps.length;ct++)Z(Be.__webglFramebuffer[ct],se,G,n.COLOR_ATTACHMENT0,lt,ct);else Z(Be.__webglFramebuffer,se,G,n.COLOR_ATTACHMENT0,lt,0);w(G)&&v(lt),t.unbindTexture()}se.depthBuffer&&Me(se)}function Ee(se){const G=se.textures;for(let Be=0,Ke=G.length;Be<Ke;Be++){const it=G[Be];if(w(it)){const Ve=S(se),bt=r.get(it).__webglTexture;t.bindTexture(Ve,bt),v(Ve),t.unbindTexture()}}}const Ne=[],ue=[];function ne(se){if(se.samples>0){if(je(se)===!1){const G=se.textures,Be=se.width,Ke=se.height;let it=n.COLOR_BUFFER_BIT;const Ve=se.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT,bt=r.get(se),lt=G.length>1;if(lt)for(let ct=0;ct<G.length;ct++)t.bindFramebuffer(n.FRAMEBUFFER,bt.__webglMultisampledFramebuffer),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+ct,n.RENDERBUFFER,null),t.bindFramebuffer(n.FRAMEBUFFER,bt.__webglFramebuffer),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+ct,n.TEXTURE_2D,null,0);t.bindFramebuffer(n.READ_FRAMEBUFFER,bt.__webglMultisampledFramebuffer),t.bindFramebuffer(n.DRAW_FRAMEBUFFER,bt.__webglFramebuffer);for(let ct=0;ct<G.length;ct++){if(se.resolveDepthBuffer&&(se.depthBuffer&&(it|=n.DEPTH_BUFFER_BIT),se.stencilBuffer&&se.resolveStencilBuffer&&(it|=n.STENCIL_BUFFER_BIT)),lt){n.framebufferRenderbuffer(n.READ_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,bt.__webglColorRenderbuffer[ct]);const kt=r.get(G[ct]).__webglTexture;n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,kt,0)}n.blitFramebuffer(0,0,Be,Ke,0,0,Be,Ke,it,n.NEAREST),c===!0&&(Ne.length=0,ue.length=0,Ne.push(n.COLOR_ATTACHMENT0+ct),se.depthBuffer&&se.resolveDepthBuffer===!1&&(Ne.push(Ve),ue.push(Ve),n.invalidateFramebuffer(n.DRAW_FRAMEBUFFER,ue)),n.invalidateFramebuffer(n.READ_FRAMEBUFFER,Ne))}if(t.bindFramebuffer(n.READ_FRAMEBUFFER,null),t.bindFramebuffer(n.DRAW_FRAMEBUFFER,null),lt)for(let ct=0;ct<G.length;ct++){t.bindFramebuffer(n.FRAMEBUFFER,bt.__webglMultisampledFramebuffer),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0+ct,n.RENDERBUFFER,bt.__webglColorRenderbuffer[ct]);const kt=r.get(G[ct]).__webglTexture;t.bindFramebuffer(n.FRAMEBUFFER,bt.__webglFramebuffer),n.framebufferTexture2D(n.DRAW_FRAMEBUFFER,n.COLOR_ATTACHMENT0+ct,n.TEXTURE_2D,kt,0)}t.bindFramebuffer(n.DRAW_FRAMEBUFFER,bt.__webglMultisampledFramebuffer)}else if(se.depthBuffer&&se.resolveDepthBuffer===!1&&c){const G=se.stencilBuffer?n.DEPTH_STENCIL_ATTACHMENT:n.DEPTH_ATTACHMENT;n.invalidateFramebuffer(n.DRAW_FRAMEBUFFER,[G])}}}function De(se){return Math.min(i.maxSamples,se.samples)}function je(se){const G=r.get(se);return se.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&G.__useRenderToTexture!==!1}function ze(se){const G=s.render.frame;u.get(se)!==G&&(u.set(se,G),se.update())}function Qe(se,G){const Be=se.colorSpace,Ke=se.format,it=se.type;return se.isCompressedTexture===!0||se.isVideoTexture===!0||Be!==Xa&&Be!==Fl&&Jn.getTransfer(Be),G}function ot(se){return typeof HTMLImageElement<"u"&&se instanceof HTMLImageElement?(l.width=se.naturalWidth||se.width,l.height=se.naturalHeight||se.height):typeof VideoFrame<"u"&&se instanceof VideoFrame?(l.width=se.displayWidth,l.height=se.displayHeight):(l.width=se.width,l.height=se.height),l}this.allocateTextureUnit=j,this.resetTextureUnits=H,this.setTexture2D=ce,this.setTexture2DArray=de,this.setTexture3D=fe,this.setTextureCube=ee,this.rebindTextures=Te,this.setupRenderTarget=We,this.updateRenderTargetMipmap=Ee,this.updateMultisampleRenderTarget=ne,this.setupDepthRenderbuffer=Me,this.setupFrameBufferTexture=Z,this.useMultisampledRTT=je}function o$(n,e){function t(r,i=Fl){let a;const s=Jn.getTransfer(i);if(r===il)return n.UNSIGNED_BYTE;if(r===Ab)return n.UNSIGNED_SHORT_4_4_4_4;if(r===hb)return n.UNSIGNED_SHORT_5_5_5_1;if(r===uP)return n.UNSIGNED_INT_5_9_9_9_REV;if(r===cP)return n.BYTE;if(r===lP)return n.SHORT;if(r===mf)return n.UNSIGNED_SHORT;if(r===db)return n.INT;if(r===Jl)return n.UNSIGNED_INT;if(r===zs)return n.FLOAT;if(r===Df)return n.HALF_FLOAT;if(r===dP)return n.ALPHA;if(r===AP)return n.RGB;if(r===Ms)return n.RGBA;if(r===hP)return n.LUMINANCE;if(r===fP)return n.LUMINANCE_ALPHA;if(r===uA)return n.DEPTH_COMPONENT;if(r===PA)return n.DEPTH_STENCIL;if(r===fb)return n.RED;if(r===Eg)return n.RED_INTEGER;if(r===mP)return n.RG;if(r===mb)return n.RG_INTEGER;if(r===pb)return n.RGBA_INTEGER;if(r===op||r===cp||r===lp||r===up)if(s===Sr)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(r===op)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(r===cp)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(r===lp)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(r===up)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(r===op)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(r===cp)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(r===lp)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(r===up)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(r===jy||r===zy||r===Vy||r===Gy)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(r===jy)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(r===zy)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(r===Vy)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(r===Gy)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(r===Ky||r===qy||r===Xy)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(r===Ky||r===qy)return s===Sr?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(r===Xy)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(r===Yy||r===Jy||r===Zy||r===ew||r===tw||r===nw||r===rw||r===iw||r===aw||r===sw||r===ow||r===cw||r===lw||r===uw)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(r===Yy)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(r===Jy)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(r===Zy)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(r===ew)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(r===tw)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(r===nw)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(r===rw)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(r===iw)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(r===aw)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(r===sw)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(r===ow)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(r===cw)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(r===lw)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(r===uw)return s===Sr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(r===dp||r===dw||r===Aw)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(r===dp)return s===Sr?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(r===dw)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(r===Aw)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(r===pP||r===hw||r===fw||r===mw)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(r===dp)return a.COMPRESSED_RED_RGTC1_EXT;if(r===hw)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(r===fw)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(r===mw)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return r===CA?n.UNSIGNED_INT_24_8:n[r]!==void 0?n[r]:null}return{convert:t}}const Wnt={type:"move"};class Rx{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Rl,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Rl,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new ye,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new ye),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Rl,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new ye,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new ye),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const r of e.hand.values())this._getHandJoint(t,r)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,t,r){let i=null,a=null,s=null;const o=this._targetRay,c=this._grip,l=this._hand;if(e&&t.session.visibilityState!=="visible-blurred"){if(l&&e.hand){s=!0;for(const y of e.hand.values()){const w=t.getJointPose(y,r),v=this._getHandJoint(l,y);w!==null&&(v.matrix.fromArray(w.transform.matrix),v.matrix.decompose(v.position,v.rotation,v.scale),v.matrixWorldNeedsUpdate=!0,v.jointRadius=w.radius),v.visible=w!==null}const u=l.joints["index-finger-tip"],A=l.joints["thumb-tip"],f=u.position.distanceTo(A.position),h=.02,g=.005;l.inputState.pinching&&f>h+g?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!l.inputState.pinching&&f<=h-g&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else c!==null&&e.gripSpace&&(a=t.getPose(e.gripSpace,r),a!==null&&(c.matrix.fromArray(a.transform.matrix),c.matrix.decompose(c.position,c.rotation,c.scale),c.matrixWorldNeedsUpdate=!0,a.linearVelocity?(c.hasLinearVelocity=!0,c.linearVelocity.copy(a.linearVelocity)):c.hasLinearVelocity=!1,a.angularVelocity?(c.hasAngularVelocity=!0,c.angularVelocity.copy(a.angularVelocity)):c.hasAngularVelocity=!1));o!==null&&(i=t.getPose(e.targetRaySpace,r),i===null&&a!==null&&(i=a),i!==null&&(o.matrix.fromArray(i.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,i.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(i.linearVelocity)):o.hasLinearVelocity=!1,i.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(i.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(Wnt)))}return o!==null&&(o.visible=i!==null),c!==null&&(c.visible=a!==null),l!==null&&(l.visible=s!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){const r=new Rl;r.matrixAutoUpdate=!1,r.visible=!1,e.joints[t.jointName]=r,e.add(r)}return e.joints[t.jointName]}}const Qnt=`
void main() {

	gl_Position = vec4( position, 1.0 );

}`,$nt=`
uniform sampler2DArray depthColor;
uniform float depthWidth;
uniform float depthHeight;

void main() {

	vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );

	if ( coord.x >= 1.0 ) {

		gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;

	} else {

		gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;

	}

}`;class jnt{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,r){if(this.texture===null){const i=new ai,a=e.properties.get(i);a.__webglTexture=t.texture,(t.depthNear!=r.depthNear||t.depthFar!=r.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=i}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,r=new bc({vertexShader:Qnt,fragmentShader:$nt,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new Fi(new Uf(20,20),r)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class znt extends sl{constructor(e,t){super();const r=this;let i=null,a=1,s=null,o="local-floor",c=1,l=null,u=null,A=null,f=null,h=null,g=null;const y=new jnt,w=t.getContextAttributes();let v=null,S=null;const C=[],M=[],F=new vt;let D=null;const U=new Aa;U.viewport=new ar;const O=new Aa;O.viewport=new ar;const T=[U,O],P=new qQ;let k=null,H=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(J){let z=C[J];return z===void 0&&(z=new Rx,C[J]=z),z.getTargetRaySpace()},this.getControllerGrip=function(J){let z=C[J];return z===void 0&&(z=new Rx,C[J]=z),z.getGripSpace()},this.getHand=function(J){let z=C[J];return z===void 0&&(z=new Rx,C[J]=z),z.getHandSpace()};function j(J){const z=M.indexOf(J.inputSource);if(z===-1)return;const Z=C[z];Z!==void 0&&(Z.update(J.inputSource,J.frame,l||s),Z.dispatchEvent({type:J.type,data:J.inputSource}))}function $(){i.removeEventListener("select",j),i.removeEventListener("selectstart",j),i.removeEventListener("selectend",j),i.removeEventListener("squeeze",j),i.removeEventListener("squeezestart",j),i.removeEventListener("squeezeend",j),i.removeEventListener("end",$),i.removeEventListener("inputsourceschange",ce);for(let J=0;J<C.length;J++){const z=M[J];z!==null&&(M[J]=null,C[J].disconnect(z))}k=null,H=null,y.reset(),e.setRenderTarget(v),h=null,f=null,A=null,i=null,S=null,ae.stop(),r.isPresenting=!1,e.setPixelRatio(D),e.setSize(F.width,F.height,!1),r.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(J){a=J,r.isPresenting},this.setReferenceSpaceType=function(J){o=J,r.isPresenting},this.getReferenceSpace=function(){return l||s},this.setReferenceSpace=function(J){l=J},this.getBaseLayer=function(){return f!==null?f:h},this.getBinding=function(){return A},this.getFrame=function(){return g},this.getSession=function(){return i},this.setSession=async function(J){if(i=J,i!==null){if(v=e.getRenderTarget(),i.addEventListener("select",j),i.addEventListener("selectstart",j),i.addEventListener("selectend",j),i.addEventListener("squeeze",j),i.addEventListener("squeezestart",j),i.addEventListener("squeezeend",j),i.addEventListener("end",$),i.addEventListener("inputsourceschange",ce),w.xrCompatible!==!0&&await t.makeXRCompatible(),D=e.getPixelRatio(),e.getSize(F),i.renderState.layers===void 0){const z={antialias:w.antialias,alpha:!0,depth:w.depth,stencil:w.stencil,framebufferScaleFactor:a};h=new XRWebGLLayer(i,t,z),i.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),S=new wc(h.framebufferWidth,h.framebufferHeight,{format:Ms,type:il,colorSpace:e.outputColorSpace,stencilBuffer:w.stencil})}else{let z=null,Z=null,le=null;w.depth&&(le=w.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,z=w.stencil?PA:uA,Z=w.stencil?CA:Jl);const ge={colorFormat:t.RGBA8,depthFormat:le,scaleFactor:a};A=new XRWebGLBinding(i,t),f=A.createProjectionLayer(ge),i.updateRenderState({layers:[f]}),e.setPixelRatio(1),e.setSize(f.textureWidth,f.textureHeight,!1),S=new wc(f.textureWidth,f.textureHeight,{format:Ms,type:il,depthTexture:new TP(f.textureWidth,f.textureHeight,Z,void 0,void 0,void 0,void 0,void 0,void 0,z),stencilBuffer:w.stencil,colorSpace:e.outputColorSpace,samples:w.antialias?4:0,resolveDepthBuffer:f.ignoreDepthValues===!1})}S.isXRRenderTarget=!0,this.setFoveation(c),l=null,s=await i.requestReferenceSpace(o),ae.setContext(i),ae.start(),r.isPresenting=!0,r.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(i!==null)return i.environmentBlendMode},this.getDepthTexture=function(){return y.getDepthTexture()};function ce(J){for(let z=0;z<J.removed.length;z++){const Z=J.removed[z],le=M.indexOf(Z);le>=0&&(M[le]=null,C[le].disconnect(Z))}for(let z=0;z<J.added.length;z++){const Z=J.added[z];let le=M.indexOf(Z);if(le===-1){for(let Me=0;Me<C.length;Me++)if(Me>=M.length){M.push(Z),le=Me;break}else if(M[Me]===null){M[Me]=Z,le=Me;break}if(le===-1)break}const ge=C[le];ge&&ge.connect(Z)}}const de=new ye,fe=new ye;function ee(J,z,Z){de.setFromMatrixPosition(z.matrixWorld),fe.setFromMatrixPosition(Z.matrixWorld);const le=de.distanceTo(fe),ge=z.projectionMatrix.elements,Me=Z.projectionMatrix.elements,Te=ge[14]/(ge[10]-1),We=ge[14]/(ge[10]+1),Ee=(ge[9]+1)/ge[5],Ne=(ge[9]-1)/ge[5],ue=(ge[8]-1)/ge[0],ne=(Me[8]+1)/Me[0],De=Te*ue,je=Te*ne,ze=le/(-ue+ne),Qe=ze*-ue;if(z.matrixWorld.decompose(J.position,J.quaternion,J.scale),J.translateX(Qe),J.translateZ(ze),J.matrixWorld.compose(J.position,J.quaternion,J.scale),J.matrixWorldInverse.copy(J.matrixWorld).invert(),ge[10]===-1)J.projectionMatrix.copy(z.projectionMatrix),J.projectionMatrixInverse.copy(z.projectionMatrixInverse);else{const ot=Te+ze,se=We+ze,G=De-Qe,Be=je+(le-Qe),Ke=Ee*We/se*ot,it=Ne*We/se*ot;J.projectionMatrix.makePerspective(G,Be,Ke,it,ot,se),J.projectionMatrixInverse.copy(J.projectionMatrix).invert()}}function Se(J,z){z===null?J.matrixWorld.copy(J.matrix):J.matrixWorld.multiplyMatrices(z.matrixWorld,J.matrix),J.matrixWorldInverse.copy(J.matrixWorld).invert()}this.updateCamera=function(J){if(i===null)return;let z=J.near,Z=J.far;y.texture!==null&&(y.depthNear>0&&(z=y.depthNear),y.depthFar>0&&(Z=y.depthFar)),P.near=O.near=U.near=z,P.far=O.far=U.far=Z,(k!==P.near||H!==P.far)&&(i.updateRenderState({depthNear:P.near,depthFar:P.far}),k=P.near,H=P.far),U.layers.mask=J.layers.mask|2,O.layers.mask=J.layers.mask|4,P.layers.mask=U.layers.mask|O.layers.mask;const le=J.parent,ge=P.cameras;Se(P,le);for(let Me=0;Me<ge.length;Me++)Se(ge[Me],le);ge.length===2?ee(P,U,O):P.projectionMatrix.copy(U.projectionMatrix),xe(J,P,le)};function xe(J,z,Z){Z===null?J.matrix.copy(z.matrixWorld):(J.matrix.copy(Z.matrixWorld),J.matrix.invert(),J.matrix.multiply(z.matrixWorld)),J.matrix.decompose(J.position,J.quaternion,J.scale),J.updateMatrixWorld(!0),J.projectionMatrix.copy(z.projectionMatrix),J.projectionMatrixInverse.copy(z.projectionMatrixInverse),J.isPerspectiveCamera&&(J.fov=vf*2*Math.atan(1/J.projectionMatrix.elements[5]),J.zoom=1)}this.getCamera=function(){return P},this.getFoveation=function(){if(!(f===null&&h===null))return c},this.setFoveation=function(J){c=J,f!==null&&(f.fixedFoveation=J),h!==null&&h.fixedFoveation!==void 0&&(h.fixedFoveation=J)},this.hasDepthSensing=function(){return y.texture!==null},this.getDepthSensingMesh=function(){return y.getMesh(P)};let Pe=null;function V(J,z){if(u=z.getViewerPose(l||s),g=z,u!==null){const Z=u.views;h!==null&&(e.setRenderTargetFramebuffer(S,h.framebuffer),e.setRenderTarget(S));let le=!1;Z.length!==P.cameras.length&&(P.cameras.length=0,le=!0);for(let Me=0;Me<Z.length;Me++){const Te=Z[Me];let We=null;if(h!==null)We=h.getViewport(Te);else{const Ne=A.getViewSubImage(f,Te);We=Ne.viewport,Me===0&&(e.setRenderTargetTextures(S,Ne.colorTexture,f.ignoreDepthValues?void 0:Ne.depthStencilTexture),e.setRenderTarget(S))}let Ee=T[Me];Ee===void 0&&(Ee=new Aa,Ee.layers.enable(Me),Ee.viewport=new ar,T[Me]=Ee),Ee.matrix.fromArray(Te.transform.matrix),Ee.matrix.decompose(Ee.position,Ee.quaternion,Ee.scale),Ee.projectionMatrix.fromArray(Te.projectionMatrix),Ee.projectionMatrixInverse.copy(Ee.projectionMatrix).invert(),Ee.viewport.set(We.x,We.y,We.width,We.height),Me===0&&(P.matrix.copy(Ee.matrix),P.matrix.decompose(P.position,P.quaternion,P.scale)),le===!0&&P.cameras.push(Ee)}const ge=i.enabledFeatures;if(ge&&ge.includes("depth-sensing")){const Me=A.getDepthInformation(Z[0]);Me&&Me.isValid&&Me.texture&&y.init(e,Me,i.renderState)}}for(let Z=0;Z<C.length;Z++){const le=M[Z],ge=C[Z];le!==null&&ge!==void 0&&ge.update(le,z,l||s)}Pe&&Pe(J,z),z.detectedPlanes&&r.dispatchEvent({type:"planesdetected",data:z}),g=null}const ae=new n$;ae.setAnimationLoop(V),this.setAnimationLoop=function(J){Pe=J},this.dispose=function(){}}}const Rd=new Mo,Vnt=new vn;function Gnt(n,e){function t(w,v){w.matrixAutoUpdate===!0&&w.updateMatrix(),v.value.copy(w.matrix)}function r(w,v){v.color.getRGB(w.fogColor.value,oQ(n)),v.isFog?(w.fogNear.value=v.near,w.fogFar.value=v.far):v.isFogExp2&&(w.fogDensity.value=v.density)}function i(w,v,S,C,M){v.isMeshBasicMaterial||v.isMeshLambertMaterial?a(w,v):v.isMeshToonMaterial?(a(w,v),A(w,v)):v.isMeshPhongMaterial?(a(w,v),u(w,v)):v.isMeshStandardMaterial?(a(w,v),f(w,v),v.isMeshPhysicalMaterial&&h(w,v,M)):v.isMeshMatcapMaterial?(a(w,v),g(w,v)):v.isMeshDepthMaterial?a(w,v):v.isMeshDistanceMaterial?(a(w,v),y(w,v)):v.isMeshNormalMaterial?a(w,v):v.isLineBasicMaterial?(s(w,v),v.isLineDashedMaterial&&o(w,v)):v.isPointsMaterial?c(w,v,S,C):v.isSpriteMaterial?l(w,v):v.isShadowMaterial?(w.color.value.copy(v.color),w.opacity.value=v.opacity):v.isShaderMaterial&&(v.uniformsNeedUpdate=!1)}function a(w,v){w.opacity.value=v.opacity,v.color&&w.diffuse.value.copy(v.color),v.emissive&&w.emissive.value.copy(v.emissive).multiplyScalar(v.emissiveIntensity),v.map&&(w.map.value=v.map,t(v.map,w.mapTransform)),v.alphaMap&&(w.alphaMap.value=v.alphaMap,t(v.alphaMap,w.alphaMapTransform)),v.bumpMap&&(w.bumpMap.value=v.bumpMap,t(v.bumpMap,w.bumpMapTransform),w.bumpScale.value=v.bumpScale,v.side===Ss&&(w.bumpScale.value*=-1)),v.normalMap&&(w.normalMap.value=v.normalMap,t(v.normalMap,w.normalMapTransform),w.normalScale.value.copy(v.normalScale),v.side===Ss&&w.normalScale.value.negate()),v.displacementMap&&(w.displacementMap.value=v.displacementMap,t(v.displacementMap,w.displacementMapTransform),w.displacementScale.value=v.displacementScale,w.displacementBias.value=v.displacementBias),v.emissiveMap&&(w.emissiveMap.value=v.emissiveMap,t(v.emissiveMap,w.emissiveMapTransform)),v.specularMap&&(w.specularMap.value=v.specularMap,t(v.specularMap,w.specularMapTransform)),v.alphaTest>0&&(w.alphaTest.value=v.alphaTest);const S=e.get(v),C=S.envMap,M=S.envMapRotation;C&&(w.envMap.value=C,Rd.copy(M),Rd.x*=-1,Rd.y*=-1,Rd.z*=-1,C.isCubeTexture&&C.isRenderTargetTexture===!1&&(Rd.y*=-1,Rd.z*=-1),w.envMapRotation.value.setFromMatrix4(Vnt.makeRotationFromEuler(Rd)),w.flipEnvMap.value=C.isCubeTexture&&C.isRenderTargetTexture===!1?-1:1,w.reflectivity.value=v.reflectivity,w.ior.value=v.ior,w.refractionRatio.value=v.refractionRatio),v.lightMap&&(w.lightMap.value=v.lightMap,w.lightMapIntensity.value=v.lightMapIntensity,t(v.lightMap,w.lightMapTransform)),v.aoMap&&(w.aoMap.value=v.aoMap,w.aoMapIntensity.value=v.aoMapIntensity,t(v.aoMap,w.aoMapTransform))}function s(w,v){w.diffuse.value.copy(v.color),w.opacity.value=v.opacity,v.map&&(w.map.value=v.map,t(v.map,w.mapTransform))}function o(w,v){w.dashSize.value=v.dashSize,w.totalSize.value=v.dashSize+v.gapSize,w.scale.value=v.scale}function c(w,v,S,C){w.diffuse.value.copy(v.color),w.opacity.value=v.opacity,w.size.value=v.size*S,w.scale.value=C*.5,v.map&&(w.map.value=v.map,t(v.map,w.uvTransform)),v.alphaMap&&(w.alphaMap.value=v.alphaMap,t(v.alphaMap,w.alphaMapTransform)),v.alphaTest>0&&(w.alphaTest.value=v.alphaTest)}function l(w,v){w.diffuse.value.copy(v.color),w.opacity.value=v.opacity,w.rotation.value=v.rotation,v.map&&(w.map.value=v.map,t(v.map,w.mapTransform)),v.alphaMap&&(w.alphaMap.value=v.alphaMap,t(v.alphaMap,w.alphaMapTransform)),v.alphaTest>0&&(w.alphaTest.value=v.alphaTest)}function u(w,v){w.specular.value.copy(v.specular),w.shininess.value=Math.max(v.shininess,1e-4)}function A(w,v){v.gradientMap&&(w.gradientMap.value=v.gradientMap)}function f(w,v){w.metalness.value=v.metalness,v.metalnessMap&&(w.metalnessMap.value=v.metalnessMap,t(v.metalnessMap,w.metalnessMapTransform)),w.roughness.value=v.roughness,v.roughnessMap&&(w.roughnessMap.value=v.roughnessMap,t(v.roughnessMap,w.roughnessMapTransform)),v.envMap&&(w.envMapIntensity.value=v.envMapIntensity)}function h(w,v,S){w.ior.value=v.ior,v.sheen>0&&(w.sheenColor.value.copy(v.sheenColor).multiplyScalar(v.sheen),w.sheenRoughness.value=v.sheenRoughness,v.sheenColorMap&&(w.sheenColorMap.value=v.sheenColorMap,t(v.sheenColorMap,w.sheenColorMapTransform)),v.sheenRoughnessMap&&(w.sheenRoughnessMap.value=v.sheenRoughnessMap,t(v.sheenRoughnessMap,w.sheenRoughnessMapTransform))),v.clearcoat>0&&(w.clearcoat.value=v.clearcoat,w.clearcoatRoughness.value=v.clearcoatRoughness,v.clearcoatMap&&(w.clearcoatMap.value=v.clearcoatMap,t(v.clearcoatMap,w.clearcoatMapTransform)),v.clearcoatRoughnessMap&&(w.clearcoatRoughnessMap.value=v.clearcoatRoughnessMap,t(v.clearcoatRoughnessMap,w.clearcoatRoughnessMapTransform)),v.clearcoatNormalMap&&(w.clearcoatNormalMap.value=v.clearcoatNormalMap,t(v.clearcoatNormalMap,w.clearcoatNormalMapTransform),w.clearcoatNormalScale.value.copy(v.clearcoatNormalScale),v.side===Ss&&w.clearcoatNormalScale.value.negate())),v.dispersion>0&&(w.dispersion.value=v.dispersion),v.iridescence>0&&(w.iridescence.value=v.iridescence,w.iridescenceIOR.value=v.iridescenceIOR,w.iridescenceThicknessMinimum.value=v.iridescenceThicknessRange[0],w.iridescenceThicknessMaximum.value=v.iridescenceThicknessRange[1],v.iridescenceMap&&(w.iridescenceMap.value=v.iridescenceMap,t(v.iridescenceMap,w.iridescenceMapTransform)),v.iridescenceThicknessMap&&(w.iridescenceThicknessMap.value=v.iridescenceThicknessMap,t(v.iridescenceThicknessMap,w.iridescenceThicknessMapTransform))),v.transmission>0&&(w.transmission.value=v.transmission,w.transmissionSamplerMap.value=S.texture,w.transmissionSamplerSize.value.set(S.width,S.height),v.transmissionMap&&(w.transmissionMap.value=v.transmissionMap,t(v.transmissionMap,w.transmissionMapTransform)),w.thickness.value=v.thickness,v.thicknessMap&&(w.thicknessMap.value=v.thicknessMap,t(v.thicknessMap,w.thicknessMapTransform)),w.attenuationDistance.value=v.attenuationDistance,w.attenuationColor.value.copy(v.attenuationColor)),v.anisotropy>0&&(w.anisotropyVector.value.set(v.anisotropy*Math.cos(v.anisotropyRotation),v.anisotropy*Math.sin(v.anisotropyRotation)),v.anisotropyMap&&(w.anisotropyMap.value=v.anisotropyMap,t(v.anisotropyMap,w.anisotropyMapTransform))),w.specularIntensity.value=v.specularIntensity,w.specularColor.value.copy(v.specularColor),v.specularColorMap&&(w.specularColorMap.value=v.specularColorMap,t(v.specularColorMap,w.specularColorMapTransform)),v.specularIntensityMap&&(w.specularIntensityMap.value=v.specularIntensityMap,t(v.specularIntensityMap,w.specularIntensityMapTransform))}function g(w,v){v.matcap&&(w.matcap.value=v.matcap)}function y(w,v){const S=e.get(v).light;w.referencePosition.value.setFromMatrixPosition(S.matrixWorld),w.nearDistance.value=S.shadow.camera.near,w.farDistance.value=S.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function Knt(n,e,t,r){let i={},a={},s=[];const o=n.getParameter(n.MAX_UNIFORM_BUFFER_BINDINGS);function c(S,C){const M=C.program;r.uniformBlockBinding(S,M)}function l(S,C){let M=i[S.id];M===void 0&&(g(S),M=u(S),i[S.id]=M,S.addEventListener("dispose",w));const F=C.program;r.updateUBOMapping(S,F);const D=e.render.frame;a[S.id]!==D&&(f(S),a[S.id]=D)}function u(S){const C=A();S.__bindingPointIndex=C;const M=n.createBuffer(),F=S.__size,D=S.usage;return n.bindBuffer(n.UNIFORM_BUFFER,M),n.bufferData(n.UNIFORM_BUFFER,F,D),n.bindBuffer(n.UNIFORM_BUFFER,null),n.bindBufferBase(n.UNIFORM_BUFFER,C,M),M}function A(){for(let S=0;S<o;S++)if(s.indexOf(S)===-1)return s.push(S),S;return 0}function f(S){const C=i[S.id],M=S.uniforms,F=S.__cache;n.bindBuffer(n.UNIFORM_BUFFER,C);for(let D=0,U=M.length;D<U;D++){const O=Array.isArray(M[D])?M[D]:[M[D]];for(let T=0,P=O.length;T<P;T++){const k=O[T];if(h(k,D,T,F)===!0){const H=k.__offset,j=Array.isArray(k.value)?k.value:[k.value];let $=0;for(let ce=0;ce<j.length;ce++){const de=j[ce],fe=y(de);typeof de=="number"||typeof de=="boolean"?(k.__data[0]=de,n.bufferSubData(n.UNIFORM_BUFFER,H+$,k.__data)):de.isMatrix3?(k.__data[0]=de.elements[0],k.__data[1]=de.elements[1],k.__data[2]=de.elements[2],k.__data[3]=0,k.__data[4]=de.elements[3],k.__data[5]=de.elements[4],k.__data[6]=de.elements[5],k.__data[7]=0,k.__data[8]=de.elements[6],k.__data[9]=de.elements[7],k.__data[10]=de.elements[8],k.__data[11]=0):(de.toArray(k.__data,$),$+=fe.storage/Float32Array.BYTES_PER_ELEMENT)}n.bufferSubData(n.UNIFORM_BUFFER,H,k.__data)}}}n.bindBuffer(n.UNIFORM_BUFFER,null)}function h(S,C,M,F){const D=S.value,U=C+"_"+M;if(F[U]===void 0)return typeof D=="number"||typeof D=="boolean"?F[U]=D:F[U]=D.clone(),!0;{const O=F[U];if(typeof D=="number"||typeof D=="boolean"){if(O!==D)return F[U]=D,!0}else if(O.equals(D)===!1)return O.copy(D),!0}return!1}function g(S){const C=S.uniforms;let M=0;const F=16;for(let U=0,O=C.length;U<O;U++){const T=Array.isArray(C[U])?C[U]:[C[U]];for(let P=0,k=T.length;P<k;P++){const H=T[P],j=Array.isArray(H.value)?H.value:[H.value];for(let $=0,ce=j.length;$<ce;$++){const de=j[$],fe=y(de),ee=M%F,Se=ee%fe.boundary,xe=ee+Se;M+=Se,xe!==0&&F-xe<fe.storage&&(M+=F-xe),H.__data=new Float32Array(fe.storage/Float32Array.BYTES_PER_ELEMENT),H.__offset=M,M+=fe.storage}}}const D=M%F;return D>0&&(M+=F-D),S.__size=M,S.__cache={},this}function y(S){const C={boundary:0,storage:0};return typeof S=="number"||typeof S=="boolean"?(C.boundary=4,C.storage=4):S.isVector2?(C.boundary=8,C.storage=8):S.isVector3||S.isColor?(C.boundary=16,C.storage=12):S.isVector4?(C.boundary=16,C.storage=16):S.isMatrix3?(C.boundary=48,C.storage=48):S.isMatrix4?(C.boundary=64,C.storage=64):S.isTexture,C}function w(S){const C=S.target;C.removeEventListener("dispose",w);const M=s.indexOf(C.__bindingPointIndex);s.splice(M,1),n.deleteBuffer(i[C.id]),delete i[C.id],delete a[C.id]}function v(){for(const S in i)n.deleteBuffer(i[S]);s=[],i={},a={}}return{bind:c,update:l,dispose:v}}class qnt{constructor(e={}){const{canvas:t=rQ(),context:r=null,depth:i=!0,stencil:a=!1,alpha:s=!1,antialias:o=!1,premultipliedAlpha:c=!0,preserveDrawingBuffer:l=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:A=!1,reverseDepthBuffer:f=!1}=e;this.isWebGLRenderer=!0;let h;if(r!==null){if(typeof WebGLRenderingContext<"u"&&r instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");h=r.getContextAttributes().alpha}else h=s;const g=new Uint32Array(4),y=new Int32Array(4);let w=null,v=null;const S=[],C=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=Gi,this.toneMapping=jl,this.toneMappingExposure=1;const M=this;let F=!1,D=0,U=0,O=null,T=-1,P=null;const k=new ar,H=new ar;let j=null;const $=new Qt(0);let ce=0,de=t.width,fe=t.height,ee=1,Se=null,xe=null;const Pe=new ar(0,0,de,fe),V=new ar(0,0,de,fe);let ae=!1;const J=new Ig;let z=!1,Z=!1;const le=new vn,ge=new vn,Me=new ye,Te=new ar,We={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let Ee=!1;function Ne(){return O===null?ee:1}let ue=r;function ne(Ae,Ue){return t.getContext(Ae,Ue)}try{const Ae={alpha:!0,depth:i,stencil:a,antialias:o,premultipliedAlpha:c,preserveDrawingBuffer:l,powerPreference:u,failIfMajorPerformanceCaveat:A};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${cb}`),t.addEventListener("webglcontextlost",nt,!1),t.addEventListener("webglcontextrestored",At,!1),t.addEventListener("webglcontextcreationerror",Mt,!1),ue===null){const Ue="webgl2";if(ue=ne(Ue,Ae),ue===null)throw ne(Ue)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(Ae){throw Ae}let De,je,ze,Qe,ot,se,G,Be,Ke,it,Ve,bt,lt,ct,kt,Je,Tt,Pt,Ct,yt,Kt,_t,sn,Le;function pt(){De=new att(ue),De.init(),_t=new o$(ue,De),je=new Zet(ue,De,e,_t),ze=new Ont(ue,De),je.reverseDepthBuffer&&f&&ze.buffers.depth.setReversed(!0),Qe=new ctt(ue),ot=new Cnt,se=new Hnt(ue,De,ze,ot,je,_t,Qe),G=new ttt(M),Be=new itt(M),Ke=new hJe(ue),sn=new Yet(ue,Ke),it=new stt(ue,Ke,Qe,sn),Ve=new utt(ue,it,Ke,Qe),Ct=new ltt(ue,je,se),Je=new ett(ot),bt=new Snt(M,G,Be,De,je,sn,Je),lt=new Gnt(M,ot),ct=new Ent,kt=new Fnt(De),Pt=new Xet(M,G,Be,ze,Ve,h,c),Tt=new Rnt(M,Ve,je),Le=new Knt(ue,Qe,je,ze),yt=new Jet(ue,De,Qe),Kt=new ott(ue,De,Qe),Qe.programs=bt.programs,M.capabilities=je,M.extensions=De,M.properties=ot,M.renderLists=ct,M.shadowMap=Tt,M.state=ze,M.info=Qe}pt();const Ze=new znt(M,ue);this.xr=Ze,this.getContext=function(){return ue},this.getContextAttributes=function(){return ue.getContextAttributes()},this.forceContextLoss=function(){const Ae=De.get("WEBGL_lose_context");Ae&&Ae.loseContext()},this.forceContextRestore=function(){const Ae=De.get("WEBGL_lose_context");Ae&&Ae.restoreContext()},this.getPixelRatio=function(){return ee},this.setPixelRatio=function(Ae){Ae!==void 0&&(ee=Ae,this.setSize(de,fe,!1))},this.getSize=function(Ae){return Ae.set(de,fe)},this.setSize=function(Ae,Ue,tt=!0){Ze.isPresenting||(de=Ae,fe=Ue,t.width=Math.floor(Ae*ee),t.height=Math.floor(Ue*ee),tt===!0&&(t.style.width=Ae+"px",t.style.height=Ue+"px"),this.setViewport(0,0,Ae,Ue))},this.getDrawingBufferSize=function(Ae){return Ae.set(de*ee,fe*ee).floor()},this.setDrawingBufferSize=function(Ae,Ue,tt){de=Ae,fe=Ue,ee=tt,t.width=Math.floor(Ae*tt),t.height=Math.floor(Ue*tt),this.setViewport(0,0,Ae,Ue)},this.getCurrentViewport=function(Ae){return Ae.copy(k)},this.getViewport=function(Ae){return Ae.copy(Pe)},this.setViewport=function(Ae,Ue,tt,rt){Ae.isVector4?Pe.set(Ae.x,Ae.y,Ae.z,Ae.w):Pe.set(Ae,Ue,tt,rt),ze.viewport(k.copy(Pe).multiplyScalar(ee).round())},this.getScissor=function(Ae){return Ae.copy(V)},this.setScissor=function(Ae,Ue,tt,rt){Ae.isVector4?V.set(Ae.x,Ae.y,Ae.z,Ae.w):V.set(Ae,Ue,tt,rt),ze.scissor(H.copy(V).multiplyScalar(ee).round())},this.getScissorTest=function(){return ae},this.setScissorTest=function(Ae){ze.setScissorTest(ae=Ae)},this.setOpaqueSort=function(Ae){Se=Ae},this.setTransparentSort=function(Ae){xe=Ae},this.getClearColor=function(Ae){return Ae.copy(Pt.getClearColor())},this.setClearColor=function(){Pt.setClearColor.apply(Pt,arguments)},this.getClearAlpha=function(){return Pt.getClearAlpha()},this.setClearAlpha=function(){Pt.setClearAlpha.apply(Pt,arguments)},this.clear=function(Ae=!0,Ue=!0,tt=!0){let rt=0;if(Ae){let $e=!1;if(O!==null){const Et=O.texture.format;$e=Et===pb||Et===mb||Et===Eg}if($e){const Et=O.texture.type,Ut=Et===il||Et===Jl||Et===mf||Et===CA||Et===Ab||Et===hb,Rt=Pt.getClearColor(),zt=Pt.getClearAlpha(),hn=Rt.r,ln=Rt.g,en=Rt.b;Ut?(g[0]=hn,g[1]=ln,g[2]=en,g[3]=zt,ue.clearBufferuiv(ue.COLOR,0,g)):(y[0]=hn,y[1]=ln,y[2]=en,y[3]=zt,ue.clearBufferiv(ue.COLOR,0,y))}else rt|=ue.COLOR_BUFFER_BIT}Ue&&(rt|=ue.DEPTH_BUFFER_BIT),tt&&(rt|=ue.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),ue.clear(rt)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",nt,!1),t.removeEventListener("webglcontextrestored",At,!1),t.removeEventListener("webglcontextcreationerror",Mt,!1),Pt.dispose(),ct.dispose(),kt.dispose(),ot.dispose(),G.dispose(),Be.dispose(),Ve.dispose(),sn.dispose(),Le.dispose(),bt.dispose(),Ze.dispose(),Ze.removeEventListener("sessionstart",ea),Ze.removeEventListener("sessionend",wi),Hr.stop()};function nt(Ae){Ae.preventDefault(),F=!0}function At(){F=!1;const Ae=Qe.autoReset,Ue=Tt.enabled,tt=Tt.autoUpdate,rt=Tt.needsUpdate,$e=Tt.type;pt(),Qe.autoReset=Ae,Tt.enabled=Ue,Tt.autoUpdate=tt,Tt.needsUpdate=rt,Tt.type=$e}function Mt(Ae){}function fn(Ae){const Ue=Ae.target;Ue.removeEventListener("dispose",fn),Sn(Ue)}function Sn(Ae){or(Ae),ot.remove(Ae)}function or(Ae){const Ue=ot.get(Ae).programs;Ue!==void 0&&(Ue.forEach(function(tt){bt.releaseProgram(tt)}),Ae.isShaderMaterial&&bt.releaseShaderCache(Ae))}this.renderBufferDirect=function(Ae,Ue,tt,rt,$e,Et){Ue===null&&(Ue=We);const Ut=$e.isMesh&&$e.matrixWorld.determinant()<0,Rt=Xr(Ae,Ue,tt,rt,$e);ze.setMaterial(rt,Ut);let zt=tt.index,hn=1;if(rt.wireframe===!0){if(zt=it.getWireframeAttribute(tt),zt===void 0)return;hn=2}const ln=tt.drawRange,en=tt.attributes.position;let In=ln.start*hn,Ln=(ln.start+ln.count)*hn;Et!==null&&(In=Math.max(In,Et.start*hn),Ln=Math.min(Ln,(Et.start+Et.count)*hn)),zt!==null?(In=Math.max(In,0),Ln=Math.min(Ln,zt.count)):en!=null&&(In=Math.max(In,0),Ln=Math.min(Ln,en.count));const qt=Ln-In;if(qt<0||qt===1/0)return;sn.setup($e,rt,Rt,tt,zt);let mn,Fn=yt;if(zt!==null&&(mn=Ke.get(zt),Fn=Kt,Fn.setIndex(mn)),$e.isMesh)rt.wireframe===!0?(ze.setLineWidth(rt.wireframeLinewidth*Ne()),Fn.setMode(ue.LINES)):Fn.setMode(ue.TRIANGLES);else if($e.isLine){let Ot=rt.linewidth;Ot===void 0&&(Ot=1),ze.setLineWidth(Ot*Ne()),$e.isLineSegments?Fn.setMode(ue.LINES):$e.isLineLoop?Fn.setMode(ue.LINE_LOOP):Fn.setMode(ue.LINE_STRIP)}else $e.isPoints?Fn.setMode(ue.POINTS):$e.isSprite&&Fn.setMode(ue.TRIANGLES);if($e.isBatchedMesh)if($e._multiDrawInstances!==null)Fn.renderMultiDrawInstances($e._multiDrawStarts,$e._multiDrawCounts,$e._multiDrawCount,$e._multiDrawInstances);else if(De.get("WEBGL_multi_draw"))Fn.renderMultiDraw($e._multiDrawStarts,$e._multiDrawCounts,$e._multiDrawCount);else{const Ot=$e._multiDrawStarts,vr=$e._multiDrawCounts,Cn=$e._multiDrawCount,on=zt?Ke.get(zt).bytesPerElement:1,er=ot.get(rt).currentProgram.getUniforms();for(let ur=0;ur<Cn;ur++)er.setValue(ue,"_gl_DrawID",ur),Fn.render(Ot[ur]/on,vr[ur])}else if($e.isInstancedMesh)Fn.renderInstances(In,qt,$e.count);else if(tt.isInstancedBufferGeometry){const Ot=tt._maxInstanceCount!==void 0?tt._maxInstanceCount:1/0,vr=Math.min(tt.instanceCount,Ot);Fn.renderInstances(In,qt,vr)}else Fn.render(In,qt)};function _n(Ae,Ue,tt){Ae.transparent===!0&&Ae.side===mc&&Ae.forceSinglePass===!1?(Ae.side=Ss,Ae.needsUpdate=!0,si(Ae,Ue,tt),Ae.side=rl,Ae.needsUpdate=!0,si(Ae,Ue,tt),Ae.side=mc):si(Ae,Ue,tt)}this.compile=function(Ae,Ue,tt=null){tt===null&&(tt=Ae),v=kt.get(tt),v.init(Ue),C.push(v),tt.traverseVisible(function($e){$e.isLight&&$e.layers.test(Ue.layers)&&(v.pushLight($e),$e.castShadow&&v.pushShadow($e))}),Ae!==tt&&Ae.traverseVisible(function($e){$e.isLight&&$e.layers.test(Ue.layers)&&(v.pushLight($e),$e.castShadow&&v.pushShadow($e))}),v.setupLights();const rt=new Set;return Ae.traverse(function($e){if(!($e.isMesh||$e.isPoints||$e.isLine||$e.isSprite))return;const Et=$e.material;if(Et)if(Array.isArray(Et))for(let Ut=0;Ut<Et.length;Ut++){const Rt=Et[Ut];_n(Rt,tt,$e),rt.add(Rt)}else _n(Et,tt,$e),rt.add(Et)}),C.pop(),v=null,rt},this.compileAsync=function(Ae,Ue,tt=null){const rt=this.compile(Ae,Ue,tt);return new Promise($e=>{function Et(){if(rt.forEach(function(Ut){ot.get(Ut).currentProgram.isReady()&&rt.delete(Ut)}),rt.size===0){$e(Ae);return}setTimeout(Et,10)}De.get("KHR_parallel_shader_compile")!==null?Et():setTimeout(Et,10)})};let Vt=null;function zr(Ae){Vt&&Vt(Ae)}function ea(){Hr.stop()}function wi(){Hr.start()}const Hr=new n$;Hr.setAnimationLoop(zr),typeof self<"u"&&Hr.setContext(self),this.setAnimationLoop=function(Ae){Vt=Ae,Ze.setAnimationLoop(Ae),Ae===null?Hr.stop():Hr.start()},Ze.addEventListener("sessionstart",ea),Ze.addEventListener("sessionend",wi),this.render=function(Ae,Ue){if(Ue!==void 0&&Ue.isCamera!==!0||F===!0)return;if(Ae.matrixWorldAutoUpdate===!0&&Ae.updateMatrixWorld(),Ue.parent===null&&Ue.matrixWorldAutoUpdate===!0&&Ue.updateMatrixWorld(),Ze.enabled===!0&&Ze.isPresenting===!0&&(Ze.cameraAutoUpdate===!0&&Ze.updateCamera(Ue),Ue=Ze.getCamera()),Ae.isScene===!0&&Ae.onBeforeRender(M,Ae,Ue,O),v=kt.get(Ae,C.length),v.init(Ue),C.push(v),ge.multiplyMatrices(Ue.projectionMatrix,Ue.matrixWorldInverse),J.setFromProjectionMatrix(ge),Z=this.localClippingEnabled,z=Je.init(this.clippingPlanes,Z),w=ct.get(Ae,S.length),w.init(),S.push(w),Ze.enabled===!0&&Ze.isPresenting===!0){const Et=M.xr.getDepthSensingMesh();Et!==null&&Wn(Et,Ue,-1/0,M.sortObjects)}Wn(Ae,Ue,0,M.sortObjects),w.finish(),M.sortObjects===!0&&w.sort(Se,xe),Ee=Ze.enabled===!1||Ze.isPresenting===!1||Ze.hasDepthSensing()===!1,Ee&&Pt.addToRenderList(w,Ae),this.info.render.frame++,z===!0&&Je.beginShadows();const tt=v.state.shadowsArray;Tt.render(tt,Ae,Ue),z===!0&&Je.endShadows(),this.info.autoReset===!0&&this.info.reset();const rt=w.opaque,$e=w.transmissive;if(v.setupLights(),Ue.isArrayCamera){const Et=Ue.cameras;if($e.length>0)for(let Ut=0,Rt=Et.length;Ut<Rt;Ut++){const zt=Et[Ut];Fr(rt,$e,Ae,zt)}Ee&&Pt.render(Ae);for(let Ut=0,Rt=Et.length;Ut<Rt;Ut++){const zt=Et[Ut];Dt(w,Ae,zt,zt.viewport)}}else $e.length>0&&Fr(rt,$e,Ae,Ue),Ee&&Pt.render(Ae),Dt(w,Ae,Ue);O!==null&&(se.updateMultisampleRenderTarget(O),se.updateRenderTargetMipmap(O)),Ae.isScene===!0&&Ae.onAfterRender(M,Ae,Ue),sn.resetDefaultState(),T=-1,P=null,C.pop(),C.length>0?(v=C[C.length-1],z===!0&&Je.setGlobalState(M.clippingPlanes,v.state.camera)):v=null,S.pop(),S.length>0?w=S[S.length-1]:w=null};function Wn(Ae,Ue,tt,rt){if(Ae.visible===!1)return;if(Ae.layers.test(Ue.layers)){if(Ae.isGroup)tt=Ae.renderOrder;else if(Ae.isLOD)Ae.autoUpdate===!0&&Ae.update(Ue);else if(Ae.isLight)v.pushLight(Ae),Ae.castShadow&&v.pushShadow(Ae);else if(Ae.isSprite){if(!Ae.frustumCulled||J.intersectsSprite(Ae)){rt&&Te.setFromMatrixPosition(Ae.matrixWorld).applyMatrix4(ge);const Ut=Ve.update(Ae),Rt=Ae.material;Rt.visible&&w.push(Ae,Ut,Rt,tt,Te.z,null)}}else if((Ae.isMesh||Ae.isLine||Ae.isPoints)&&(!Ae.frustumCulled||J.intersectsObject(Ae))){const Ut=Ve.update(Ae),Rt=Ae.material;if(rt&&(Ae.boundingSphere!==void 0?(Ae.boundingSphere===null&&Ae.computeBoundingSphere(),Te.copy(Ae.boundingSphere.center)):(Ut.boundingSphere===null&&Ut.computeBoundingSphere(),Te.copy(Ut.boundingSphere.center)),Te.applyMatrix4(Ae.matrixWorld).applyMatrix4(ge)),Array.isArray(Rt)){const zt=Ut.groups;for(let hn=0,ln=zt.length;hn<ln;hn++){const en=zt[hn],In=Rt[en.materialIndex];In&&In.visible&&w.push(Ae,Ut,In,tt,Te.z,en)}}else Rt.visible&&w.push(Ae,Ut,Rt,tt,Te.z,null)}}const Et=Ae.children;for(let Ut=0,Rt=Et.length;Ut<Rt;Ut++)Wn(Et[Ut],Ue,tt,rt)}function Dt(Ae,Ue,tt,rt){const $e=Ae.opaque,Et=Ae.transmissive,Ut=Ae.transparent;v.setupLightsView(tt),z===!0&&Je.setGlobalState(M.clippingPlanes,tt),rt&&ze.viewport(k.copy(rt)),$e.length>0&&Hi($e,Ue,tt),Et.length>0&&Hi(Et,Ue,tt),Ut.length>0&&Hi(Ut,Ue,tt),ze.buffers.depth.setTest(!0),ze.buffers.depth.setMask(!0),ze.buffers.color.setMask(!0),ze.setPolygonOffset(!1)}function Fr(Ae,Ue,tt,rt){if((tt.isScene===!0?tt.overrideMaterial:null)!==null)return;v.state.transmissionRenderTarget[rt.id]===void 0&&(v.state.transmissionRenderTarget[rt.id]=new wc(1,1,{generateMipmaps:!0,type:De.has("EXT_color_buffer_half_float")||De.has("EXT_color_buffer_float")?Df:il,minFilter:Wo,samples:4,stencilBuffer:a,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:Jn.workingColorSpace}));const Et=v.state.transmissionRenderTarget[rt.id],Ut=rt.viewport||k;Et.setSize(Ut.z,Ut.w);const Rt=M.getRenderTarget();M.setRenderTarget(Et),M.getClearColor($),ce=M.getClearAlpha(),ce<1&&M.setClearColor(16777215,.5),M.clear(),Ee&&Pt.render(tt);const zt=M.toneMapping;M.toneMapping=jl;const hn=rt.viewport;if(rt.viewport!==void 0&&(rt.viewport=void 0),v.setupLightsView(rt),z===!0&&Je.setGlobalState(M.clippingPlanes,rt),Hi(Ae,tt,rt),se.updateMultisampleRenderTarget(Et),se.updateRenderTargetMipmap(Et),De.has("WEBGL_multisampled_render_to_texture")===!1){let ln=!1;for(let en=0,In=Ue.length;en<In;en++){const Ln=Ue[en],qt=Ln.object,mn=Ln.geometry,Fn=Ln.material,Ot=Ln.group;if(Fn.side===mc&&qt.layers.test(rt.layers)){const vr=Fn.side;Fn.side=Ss,Fn.needsUpdate=!0,ta(qt,tt,rt,mn,Fn,Ot),Fn.side=vr,Fn.needsUpdate=!0,ln=!0}}ln===!0&&(se.updateMultisampleRenderTarget(Et),se.updateRenderTargetMipmap(Et))}M.setRenderTarget(Rt),M.setClearColor($,ce),hn!==void 0&&(rt.viewport=hn),M.toneMapping=zt}function Hi(Ae,Ue,tt){const rt=Ue.isScene===!0?Ue.overrideMaterial:null;for(let $e=0,Et=Ae.length;$e<Et;$e++){const Ut=Ae[$e],Rt=Ut.object,zt=Ut.geometry,hn=rt===null?Ut.material:rt,ln=Ut.group;Rt.layers.test(tt.layers)&&ta(Rt,Ue,tt,zt,hn,ln)}}function ta(Ae,Ue,tt,rt,$e,Et){Ae.onBeforeRender(M,Ue,tt,rt,$e,Et),Ae.modelViewMatrix.multiplyMatrices(tt.matrixWorldInverse,Ae.matrixWorld),Ae.normalMatrix.getNormalMatrix(Ae.modelViewMatrix),$e.onBeforeRender(M,Ue,tt,rt,Ae,Et),$e.transparent===!0&&$e.side===mc&&$e.forceSinglePass===!1?($e.side=Ss,$e.needsUpdate=!0,M.renderBufferDirect(tt,Ue,rt,$e,Ae,Et),$e.side=rl,$e.needsUpdate=!0,M.renderBufferDirect(tt,Ue,rt,$e,Ae,Et),$e.side=mc):M.renderBufferDirect(tt,Ue,rt,$e,Ae,Et),Ae.onAfterRender(M,Ue,tt,rt,$e,Et)}function si(Ae,Ue,tt){Ue.isScene!==!0&&(Ue=We);const rt=ot.get(Ae),$e=v.state.lights,Et=v.state.shadowsArray,Ut=$e.state.version,Rt=bt.getParameters(Ae,$e.state,Et,Ue,tt),zt=bt.getProgramCacheKey(Rt);let hn=rt.programs;rt.environment=Ae.isMeshStandardMaterial?Ue.environment:null,rt.fog=Ue.fog,rt.envMap=(Ae.isMeshStandardMaterial?Be:G).get(Ae.envMap||rt.environment),rt.envMapRotation=rt.environment!==null&&Ae.envMap===null?Ue.environmentRotation:Ae.envMapRotation,hn===void 0&&(Ae.addEventListener("dispose",fn),hn=new Map,rt.programs=hn);let ln=hn.get(zt);if(ln!==void 0){if(rt.currentProgram===ln&&rt.lightsStateVersion===Ut)return _i(Ae,Rt),ln}else Rt.uniforms=bt.getUniforms(Ae),Ae.onBeforeCompile(Rt,M),ln=bt.acquireProgram(Rt,zt),hn.set(zt,ln),rt.uniforms=Rt.uniforms;const en=rt.uniforms;return(!Ae.isShaderMaterial&&!Ae.isRawShaderMaterial||Ae.clipping===!0)&&(en.clippingPlanes=Je.uniform),_i(Ae,Rt),rt.needsLights=es(Ae),rt.lightsStateVersion=Ut,rt.needsLights&&(en.ambientLightColor.value=$e.state.ambient,en.lightProbe.value=$e.state.probe,en.directionalLights.value=$e.state.directional,en.directionalLightShadows.value=$e.state.directionalShadow,en.spotLights.value=$e.state.spot,en.spotLightShadows.value=$e.state.spotShadow,en.rectAreaLights.value=$e.state.rectArea,en.ltc_1.value=$e.state.rectAreaLTC1,en.ltc_2.value=$e.state.rectAreaLTC2,en.pointLights.value=$e.state.point,en.pointLightShadows.value=$e.state.pointShadow,en.hemisphereLights.value=$e.state.hemi,en.directionalShadowMap.value=$e.state.directionalShadowMap,en.directionalShadowMatrix.value=$e.state.directionalShadowMatrix,en.spotShadowMap.value=$e.state.spotShadowMap,en.spotLightMatrix.value=$e.state.spotLightMatrix,en.spotLightMap.value=$e.state.spotLightMap,en.pointShadowMap.value=$e.state.pointShadowMap,en.pointShadowMatrix.value=$e.state.pointShadowMatrix),rt.currentProgram=ln,rt.uniformsList=null,ln}function bi(Ae){if(Ae.uniformsList===null){const Ue=Ae.currentProgram.getUniforms();Ae.uniformsList=Gv.seqWithValue(Ue.seq,Ae.uniforms)}return Ae.uniformsList}function _i(Ae,Ue){const tt=ot.get(Ae);tt.outputColorSpace=Ue.outputColorSpace,tt.batching=Ue.batching,tt.batchingColor=Ue.batchingColor,tt.instancing=Ue.instancing,tt.instancingColor=Ue.instancingColor,tt.instancingMorph=Ue.instancingMorph,tt.skinning=Ue.skinning,tt.morphTargets=Ue.morphTargets,tt.morphNormals=Ue.morphNormals,tt.morphColors=Ue.morphColors,tt.morphTargetsCount=Ue.morphTargetsCount,tt.numClippingPlanes=Ue.numClippingPlanes,tt.numIntersection=Ue.numClipIntersection,tt.vertexAlphas=Ue.vertexAlphas,tt.vertexTangents=Ue.vertexTangents,tt.toneMapping=Ue.toneMapping}function Xr(Ae,Ue,tt,rt,$e){Ue.isScene!==!0&&(Ue=We),se.resetTextureUnits();const Et=Ue.fog,Ut=rt.isMeshStandardMaterial?Ue.environment:null,Rt=O===null?M.outputColorSpace:O.isXRRenderTarget===!0?O.texture.colorSpace:Xa,zt=(rt.isMeshStandardMaterial?Be:G).get(rt.envMap||Ut),hn=rt.vertexColors===!0&&!!tt.attributes.color&&tt.attributes.color.itemSize===4,ln=!!tt.attributes.tangent&&(!!rt.normalMap||rt.anisotropy>0),en=!!tt.morphAttributes.position,In=!!tt.morphAttributes.normal,Ln=!!tt.morphAttributes.color;let qt=jl;rt.toneMapped&&(O===null||O.isXRRenderTarget===!0)&&(qt=M.toneMapping);const mn=tt.morphAttributes.position||tt.morphAttributes.normal||tt.morphAttributes.color,Fn=mn!==void 0?mn.length:0,Ot=ot.get(rt),vr=v.state.lights;if(z===!0&&(Z===!0||Ae!==P)){const Nr=Ae===P&&rt.id===T;Je.setState(rt,Ae,Nr)}let Cn=!1;rt.version===Ot.__version?(Ot.needsLights&&Ot.lightsStateVersion!==vr.state.version||Ot.outputColorSpace!==Rt||$e.isBatchedMesh&&Ot.batching===!1||!$e.isBatchedMesh&&Ot.batching===!0||$e.isBatchedMesh&&Ot.batchingColor===!0&&$e.colorTexture===null||$e.isBatchedMesh&&Ot.batchingColor===!1&&$e.colorTexture!==null||$e.isInstancedMesh&&Ot.instancing===!1||!$e.isInstancedMesh&&Ot.instancing===!0||$e.isSkinnedMesh&&Ot.skinning===!1||!$e.isSkinnedMesh&&Ot.skinning===!0||$e.isInstancedMesh&&Ot.instancingColor===!0&&$e.instanceColor===null||$e.isInstancedMesh&&Ot.instancingColor===!1&&$e.instanceColor!==null||$e.isInstancedMesh&&Ot.instancingMorph===!0&&$e.morphTexture===null||$e.isInstancedMesh&&Ot.instancingMorph===!1&&$e.morphTexture!==null||Ot.envMap!==zt||rt.fog===!0&&Ot.fog!==Et||Ot.numClippingPlanes!==void 0&&(Ot.numClippingPlanes!==Je.numPlanes||Ot.numIntersection!==Je.numIntersection)||Ot.vertexAlphas!==hn||Ot.vertexTangents!==ln||Ot.morphTargets!==en||Ot.morphNormals!==In||Ot.morphColors!==Ln||Ot.toneMapping!==qt||Ot.morphTargetsCount!==Fn)&&(Cn=!0):(Cn=!0,Ot.__version=rt.version);let on=Ot.currentProgram;Cn===!0&&(on=si(rt,Ue,$e));let er=!1,ur=!1,wa=!1;const wn=on.getUniforms(),cr=Ot.uniforms;if(ze.useProgram(on.program)&&(er=!0,ur=!0,wa=!0),rt.id!==T&&(T=rt.id,ur=!0),er||P!==Ae){ze.buffers.depth.getReversed()?(le.copy(Ae.projectionMatrix),Wqe(le),Qqe(le),wn.setValue(ue,"projectionMatrix",le)):wn.setValue(ue,"projectionMatrix",Ae.projectionMatrix),wn.setValue(ue,"viewMatrix",Ae.matrixWorldInverse);const Vn=wn.map.cameraPosition;Vn!==void 0&&Vn.setValue(ue,Me.setFromMatrixPosition(Ae.matrixWorld)),je.logarithmicDepthBuffer&&wn.setValue(ue,"logDepthBufFC",2/(Math.log(Ae.far+1)/Math.LN2)),(rt.isMeshPhongMaterial||rt.isMeshToonMaterial||rt.isMeshLambertMaterial||rt.isMeshBasicMaterial||rt.isMeshStandardMaterial||rt.isShaderMaterial)&&wn.setValue(ue,"isOrthographic",Ae.isOrthographicCamera===!0),P!==Ae&&(P=Ae,ur=!0,wa=!0)}if($e.isSkinnedMesh){wn.setOptional(ue,$e,"bindMatrix"),wn.setOptional(ue,$e,"bindMatrixInverse");const Nr=$e.skeleton;Nr&&(Nr.boneTexture===null&&Nr.computeBoneTexture(),wn.setValue(ue,"boneTexture",Nr.boneTexture,se))}$e.isBatchedMesh&&(wn.setOptional(ue,$e,"batchingTexture"),wn.setValue(ue,"batchingTexture",$e._matricesTexture,se),wn.setOptional(ue,$e,"batchingIdTexture"),wn.setValue(ue,"batchingIdTexture",$e._indirectTexture,se),wn.setOptional(ue,$e,"batchingColorTexture"),$e._colorsTexture!==null&&wn.setValue(ue,"batchingColorTexture",$e._colorsTexture,se));const li=tt.morphAttributes;if((li.position!==void 0||li.normal!==void 0||li.color!==void 0)&&Ct.update($e,tt,on),(ur||Ot.receiveShadow!==$e.receiveShadow)&&(Ot.receiveShadow=$e.receiveShadow,wn.setValue(ue,"receiveShadow",$e.receiveShadow)),rt.isMeshGouraudMaterial&&rt.envMap!==null&&(cr.envMap.value=zt,cr.flipEnvMap.value=zt.isCubeTexture&&zt.isRenderTargetTexture===!1?-1:1),rt.isMeshStandardMaterial&&rt.envMap===null&&Ue.environment!==null&&(cr.envMapIntensity.value=Ue.environmentIntensity),ur&&(wn.setValue(ue,"toneMappingExposure",M.toneMappingExposure),Ot.needsLights&&xi(cr,wa),Et&&rt.fog===!0&&lt.refreshFogUniforms(cr,Et),lt.refreshMaterialUniforms(cr,rt,ee,fe,v.state.transmissionRenderTarget[Ae.id]),Gv.upload(ue,bi(Ot),cr,se)),rt.isShaderMaterial&&rt.uniformsNeedUpdate===!0&&(Gv.upload(ue,bi(Ot),cr,se),rt.uniformsNeedUpdate=!1),rt.isSpriteMaterial&&wn.setValue(ue,"center",$e.center),wn.setValue(ue,"modelViewMatrix",$e.modelViewMatrix),wn.setValue(ue,"normalMatrix",$e.normalMatrix),wn.setValue(ue,"modelMatrix",$e.matrixWorld),rt.isShaderMaterial||rt.isRawShaderMaterial){const Nr=rt.uniformsGroups;for(let Vn=0,ns=Nr.length;Vn<ns;Vn++){const Yr=Nr[Vn];Le.update(Yr,on),Le.bind(Yr,on)}}return on}function xi(Ae,Ue){Ae.ambientLightColor.needsUpdate=Ue,Ae.lightProbe.needsUpdate=Ue,Ae.directionalLights.needsUpdate=Ue,Ae.directionalLightShadows.needsUpdate=Ue,Ae.pointLights.needsUpdate=Ue,Ae.pointLightShadows.needsUpdate=Ue,Ae.spotLights.needsUpdate=Ue,Ae.spotLightShadows.needsUpdate=Ue,Ae.rectAreaLights.needsUpdate=Ue,Ae.hemisphereLights.needsUpdate=Ue}function es(Ae){return Ae.isMeshLambertMaterial||Ae.isMeshToonMaterial||Ae.isMeshPhongMaterial||Ae.isMeshStandardMaterial||Ae.isShadowMaterial||Ae.isShaderMaterial&&Ae.lights===!0}this.getActiveCubeFace=function(){return D},this.getActiveMipmapLevel=function(){return U},this.getRenderTarget=function(){return O},this.setRenderTargetTextures=function(Ae,Ue,tt){ot.get(Ae.texture).__webglTexture=Ue,ot.get(Ae.depthTexture).__webglTexture=tt;const rt=ot.get(Ae);rt.__hasExternalTextures=!0,rt.__autoAllocateDepthBuffer=tt===void 0,rt.__autoAllocateDepthBuffer||De.has("WEBGL_multisampled_render_to_texture")===!0&&(rt.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(Ae,Ue){const tt=ot.get(Ae);tt.__webglFramebuffer=Ue,tt.__useDefaultFramebuffer=Ue===void 0},this.setRenderTarget=function(Ae,Ue=0,tt=0){O=Ae,D=Ue,U=tt;let rt=!0,$e=null,Et=!1,Ut=!1;if(Ae){const zt=ot.get(Ae);if(zt.__useDefaultFramebuffer!==void 0)ze.bindFramebuffer(ue.FRAMEBUFFER,null),rt=!1;else if(zt.__webglFramebuffer===void 0)se.setupRenderTarget(Ae);else if(zt.__hasExternalTextures)se.rebindTextures(Ae,ot.get(Ae.texture).__webglTexture,ot.get(Ae.depthTexture).__webglTexture);else if(Ae.depthBuffer){const en=Ae.depthTexture;if(zt.__boundDepthTexture!==en){if(en!==null&&ot.has(en)&&(Ae.width!==en.image.width||Ae.height!==en.image.height))throw new Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");se.setupDepthRenderbuffer(Ae)}}const hn=Ae.texture;(hn.isData3DTexture||hn.isDataArrayTexture||hn.isCompressedArrayTexture)&&(Ut=!0);const ln=ot.get(Ae).__webglFramebuffer;Ae.isWebGLCubeRenderTarget?(Array.isArray(ln[Ue])?$e=ln[Ue][tt]:$e=ln[Ue],Et=!0):Ae.samples>0&&se.useMultisampledRTT(Ae)===!1?$e=ot.get(Ae).__webglMultisampledFramebuffer:Array.isArray(ln)?$e=ln[tt]:$e=ln,k.copy(Ae.viewport),H.copy(Ae.scissor),j=Ae.scissorTest}else k.copy(Pe).multiplyScalar(ee).floor(),H.copy(V).multiplyScalar(ee).floor(),j=ae;if(ze.bindFramebuffer(ue.FRAMEBUFFER,$e)&&rt&&ze.drawBuffers(Ae,$e),ze.viewport(k),ze.scissor(H),ze.setScissorTest(j),Et){const zt=ot.get(Ae.texture);ue.framebufferTexture2D(ue.FRAMEBUFFER,ue.COLOR_ATTACHMENT0,ue.TEXTURE_CUBE_MAP_POSITIVE_X+Ue,zt.__webglTexture,tt)}else if(Ut){const zt=ot.get(Ae.texture),hn=Ue||0;ue.framebufferTextureLayer(ue.FRAMEBUFFER,ue.COLOR_ATTACHMENT0,zt.__webglTexture,tt||0,hn)}T=-1},this.readRenderTargetPixels=function(Ae,Ue,tt,rt,$e,Et,Ut){if(!(Ae&&Ae.isWebGLRenderTarget))return;let Rt=ot.get(Ae).__webglFramebuffer;if(Ae.isWebGLCubeRenderTarget&&Ut!==void 0&&(Rt=Rt[Ut]),Rt){ze.bindFramebuffer(ue.FRAMEBUFFER,Rt);try{const zt=Ae.texture,hn=zt.format,ln=zt.type;if(!je.textureFormatReadable(hn)||!je.textureTypeReadable(ln))return;Ue>=0&&Ue<=Ae.width-rt&&tt>=0&&tt<=Ae.height-$e&&ue.readPixels(Ue,tt,rt,$e,_t.convert(hn),_t.convert(ln),Et)}finally{const zt=O!==null?ot.get(O).__webglFramebuffer:null;ze.bindFramebuffer(ue.FRAMEBUFFER,zt)}}},this.readRenderTargetPixelsAsync=async function(Ae,Ue,tt,rt,$e,Et,Ut){if(!(Ae&&Ae.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let Rt=ot.get(Ae).__webglFramebuffer;if(Ae.isWebGLCubeRenderTarget&&Ut!==void 0&&(Rt=Rt[Ut]),Rt){const zt=Ae.texture,hn=zt.format,ln=zt.type;if(!je.textureFormatReadable(hn))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!je.textureTypeReadable(ln))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(Ue>=0&&Ue<=Ae.width-rt&&tt>=0&&tt<=Ae.height-$e){ze.bindFramebuffer(ue.FRAMEBUFFER,Rt);const en=ue.createBuffer();ue.bindBuffer(ue.PIXEL_PACK_BUFFER,en),ue.bufferData(ue.PIXEL_PACK_BUFFER,Et.byteLength,ue.STREAM_READ),ue.readPixels(Ue,tt,rt,$e,_t.convert(hn),_t.convert(ln),0);const In=O!==null?ot.get(O).__webglFramebuffer:null;ze.bindFramebuffer(ue.FRAMEBUFFER,In);const Ln=ue.fenceSync(ue.SYNC_GPU_COMMANDS_COMPLETE,0);return ue.flush(),await Hqe(ue,Ln,4),ue.bindBuffer(ue.PIXEL_PACK_BUFFER,en),ue.getBufferSubData(ue.PIXEL_PACK_BUFFER,0,Et),ue.deleteBuffer(en),ue.deleteSync(Ln),Et}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")}},this.copyFramebufferToTexture=function(Ae,Ue=null,tt=0){Ae.isTexture!==!0&&(Wh("WebGLRenderer: copyFramebufferToTexture function signature has changed."),Ue=arguments[0]||null,Ae=arguments[1]);const rt=Math.pow(2,-tt),$e=Math.floor(Ae.image.width*rt),Et=Math.floor(Ae.image.height*rt),Ut=Ue!==null?Ue.x:0,Rt=Ue!==null?Ue.y:0;se.setTexture2D(Ae,0),ue.copyTexSubImage2D(ue.TEXTURE_2D,tt,0,0,Ut,Rt,$e,Et),ze.unbindTexture()};const na=ue.createFramebuffer(),ts=ue.createFramebuffer();this.copyTextureToTexture=function(Ae,Ue,tt=null,rt=null,$e=0,Et=null){Ae.isTexture!==!0&&(Wh("WebGLRenderer: copyTextureToTexture function signature has changed."),rt=arguments[0]||null,Ae=arguments[1],Ue=arguments[2],Et=arguments[3]||0,tt=null),Et===null&&($e!==0?(Wh("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),Et=$e,$e=0):Et=0);let Ut,Rt,zt,hn,ln,en,In,Ln,qt;const mn=Ae.isCompressedTexture?Ae.mipmaps[Et]:Ae.image;if(tt!==null)Ut=tt.max.x-tt.min.x,Rt=tt.max.y-tt.min.y,zt=tt.isBox3?tt.max.z-tt.min.z:1,hn=tt.min.x,ln=tt.min.y,en=tt.isBox3?tt.min.z:0;else{const li=Math.pow(2,-$e);Ut=Math.floor(mn.width*li),Rt=Math.floor(mn.height*li),Ae.isDataArrayTexture?zt=mn.depth:Ae.isData3DTexture?zt=Math.floor(mn.depth*li):zt=1,hn=0,ln=0,en=0}rt!==null?(In=rt.x,Ln=rt.y,qt=rt.z):(In=0,Ln=0,qt=0);const Fn=_t.convert(Ue.format),Ot=_t.convert(Ue.type);let vr;Ue.isData3DTexture?(se.setTexture3D(Ue,0),vr=ue.TEXTURE_3D):Ue.isDataArrayTexture||Ue.isCompressedArrayTexture?(se.setTexture2DArray(Ue,0),vr=ue.TEXTURE_2D_ARRAY):(se.setTexture2D(Ue,0),vr=ue.TEXTURE_2D),ue.pixelStorei(ue.UNPACK_FLIP_Y_WEBGL,Ue.flipY),ue.pixelStorei(ue.UNPACK_PREMULTIPLY_ALPHA_WEBGL,Ue.premultiplyAlpha),ue.pixelStorei(ue.UNPACK_ALIGNMENT,Ue.unpackAlignment);const Cn=ue.getParameter(ue.UNPACK_ROW_LENGTH),on=ue.getParameter(ue.UNPACK_IMAGE_HEIGHT),er=ue.getParameter(ue.UNPACK_SKIP_PIXELS),ur=ue.getParameter(ue.UNPACK_SKIP_ROWS),wa=ue.getParameter(ue.UNPACK_SKIP_IMAGES);ue.pixelStorei(ue.UNPACK_ROW_LENGTH,mn.width),ue.pixelStorei(ue.UNPACK_IMAGE_HEIGHT,mn.height),ue.pixelStorei(ue.UNPACK_SKIP_PIXELS,hn),ue.pixelStorei(ue.UNPACK_SKIP_ROWS,ln),ue.pixelStorei(ue.UNPACK_SKIP_IMAGES,en);const wn=Ae.isDataArrayTexture||Ae.isData3DTexture,cr=Ue.isDataArrayTexture||Ue.isData3DTexture;if(Ae.isDepthTexture){const li=ot.get(Ae),Nr=ot.get(Ue),Vn=ot.get(li.__renderTarget),ns=ot.get(Nr.__renderTarget);ze.bindFramebuffer(ue.READ_FRAMEBUFFER,Vn.__webglFramebuffer),ze.bindFramebuffer(ue.DRAW_FRAMEBUFFER,ns.__webglFramebuffer);for(let Yr=0;Yr<zt;Yr++)wn&&(ue.framebufferTextureLayer(ue.READ_FRAMEBUFFER,ue.COLOR_ATTACHMENT0,ot.get(Ae).__webglTexture,$e,en+Yr),ue.framebufferTextureLayer(ue.DRAW_FRAMEBUFFER,ue.COLOR_ATTACHMENT0,ot.get(Ue).__webglTexture,Et,qt+Yr)),ue.blitFramebuffer(hn,ln,Ut,Rt,In,Ln,Ut,Rt,ue.DEPTH_BUFFER_BIT,ue.NEAREST);ze.bindFramebuffer(ue.READ_FRAMEBUFFER,null),ze.bindFramebuffer(ue.DRAW_FRAMEBUFFER,null)}else if($e!==0||Ae.isRenderTargetTexture||ot.has(Ae)){const li=ot.get(Ae),Nr=ot.get(Ue);ze.bindFramebuffer(ue.READ_FRAMEBUFFER,na),ze.bindFramebuffer(ue.DRAW_FRAMEBUFFER,ts);for(let Vn=0;Vn<zt;Vn++)wn?ue.framebufferTextureLayer(ue.READ_FRAMEBUFFER,ue.COLOR_ATTACHMENT0,li.__webglTexture,$e,en+Vn):ue.framebufferTexture2D(ue.READ_FRAMEBUFFER,ue.COLOR_ATTACHMENT0,ue.TEXTURE_2D,li.__webglTexture,$e),cr?ue.framebufferTextureLayer(ue.DRAW_FRAMEBUFFER,ue.COLOR_ATTACHMENT0,Nr.__webglTexture,Et,qt+Vn):ue.framebufferTexture2D(ue.DRAW_FRAMEBUFFER,ue.COLOR_ATTACHMENT0,ue.TEXTURE_2D,Nr.__webglTexture,Et),$e!==0?ue.blitFramebuffer(hn,ln,Ut,Rt,In,Ln,Ut,Rt,ue.COLOR_BUFFER_BIT,ue.NEAREST):cr?ue.copyTexSubImage3D(vr,Et,In,Ln,qt+Vn,hn,ln,Ut,Rt):ue.copyTexSubImage2D(vr,Et,In,Ln,hn,ln,Ut,Rt);ze.bindFramebuffer(ue.READ_FRAMEBUFFER,null),ze.bindFramebuffer(ue.DRAW_FRAMEBUFFER,null)}else cr?Ae.isDataTexture||Ae.isData3DTexture?ue.texSubImage3D(vr,Et,In,Ln,qt,Ut,Rt,zt,Fn,Ot,mn.data):Ue.isCompressedArrayTexture?ue.compressedTexSubImage3D(vr,Et,In,Ln,qt,Ut,Rt,zt,Fn,mn.data):ue.texSubImage3D(vr,Et,In,Ln,qt,Ut,Rt,zt,Fn,Ot,mn):Ae.isDataTexture?ue.texSubImage2D(ue.TEXTURE_2D,Et,In,Ln,Ut,Rt,Fn,Ot,mn.data):Ae.isCompressedTexture?ue.compressedTexSubImage2D(ue.TEXTURE_2D,Et,In,Ln,mn.width,mn.height,Fn,mn.data):ue.texSubImage2D(ue.TEXTURE_2D,Et,In,Ln,Ut,Rt,Fn,Ot,mn);ue.pixelStorei(ue.UNPACK_ROW_LENGTH,Cn),ue.pixelStorei(ue.UNPACK_IMAGE_HEIGHT,on),ue.pixelStorei(ue.UNPACK_SKIP_PIXELS,er),ue.pixelStorei(ue.UNPACK_SKIP_ROWS,ur),ue.pixelStorei(ue.UNPACK_SKIP_IMAGES,wa),Et===0&&Ue.generateMipmaps&&ue.generateMipmap(vr),ze.unbindTexture()},this.copyTextureToTexture3D=function(Ae,Ue,tt=null,rt=null,$e=0){return Ae.isTexture!==!0&&(Wh("WebGLRenderer: copyTextureToTexture3D function signature has changed."),tt=arguments[0]||null,rt=arguments[1]||null,Ae=arguments[2],Ue=arguments[3],$e=arguments[4]||0),Wh('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'),this.copyTextureToTexture(Ae,Ue,tt,rt,$e)},this.initRenderTarget=function(Ae){ot.get(Ae).__webglFramebuffer===void 0&&se.setupRenderTarget(Ae)},this.initTexture=function(Ae){Ae.isCubeTexture?se.setTextureCube(Ae,0):Ae.isData3DTexture?se.setTexture3D(Ae,0):Ae.isDataArrayTexture||Ae.isCompressedArrayTexture?se.setTexture2DArray(Ae,0):se.setTexture2D(Ae,0),ze.unbindTexture()},this.resetState=function(){D=0,U=0,O=null,ze.reset(),sn.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Yc}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorspace=Jn._getDrawingBufferColorSpace(e),t.unpackColorSpace=Jn._getUnpackColorSpace()}}const Xnt=Object.freeze(Object.defineProperty({__proto__:null,ACESFilmicToneMapping:RW,AddEquation:Lu,AddOperation:LW,AdditiveAnimationBlendMode:gP,AdditiveBlending:bM,AgXToneMapping:OW,AlphaFormat:dP,AlwaysCompare:tQ,AlwaysDepth:Uy,AlwaysStencilFunc:SM,AmbientLight:QQ,AnimationAction:ZQ,AnimationClip:wf,AnimationLoader:uYe,AnimationMixer:RYe,AnimationObjectGroup:NYe,AnimationUtils:sYe,ArcCurve:pQ,ArrayCamera:qQ,ArrowHelper:iJe,AttachedBindMode:MM,Audio:YQ,AudioAnalyser:SYe,AudioContext:GP,AudioListener:_Ye,AudioLoader:yYe,AxesHelper:aJe,BackSide:Ss,BasicDepthPacking:VW,BasicShadowMap:VKe,BatchedMesh:mQ,Bone:xb,BooleanKeyframeTrack:VA,Box2:jYe,Box3:qa,Box3Helper:nJe,BoxGeometry:zA,BoxHelper:tJe,BufferAttribute:hr,BufferGeometry:Hn,BufferGeometryLoader:GQ,ByteType:cP,Cache:Ul,Camera:wb,CameraHelper:eJe,CanvasTexture:TXe,CapsuleGeometry:Pb,CatmullRomCurve3:gQ,CineonToneMapping:DW,CircleGeometry:Eb,ClampToEdgeWrapping:go,Clock:XQ,Color:Qt,ColorKeyframeTrack:WP,ColorManagement:Jn,CompressedArrayTexture:EXe,CompressedCubeTexture:BXe,CompressedTexture:Sb,CompressedTextureLoader:dYe,ConeGeometry:Bb,ConstantAlphaFactor:TW,ConstantColorFactor:EW,Controls:t$,CubeCamera:lQ,CubeReflectionMapping:Yl,CubeRefractionMapping:ed,CubeTexture:Bg,CubeTextureLoader:AYe,CubeUVReflectionMapping:Nf,CubicBezierCurve:IP,CubicBezierCurve3:vQ,CubicInterpolant:DQ,CullFaceBack:wM,CullFaceFront:AW,CullFaceFrontBack:zKe,CullFaceNone:dW,Curve:Ec,CurvePath:wQ,CustomBlending:fW,CustomToneMapping:UW,CylinderGeometry:Rf,Cylindrical:$Ye,Data3DTexture:_P,DataArrayTexture:vb,DataTexture:Zc,DataTextureLoader:hYe,DataUtils:rXe,DecrementStencilOp:rqe,DecrementWrapStencilOp:aqe,DefaultLoadingManager:OQ,DepthFormat:uA,DepthStencilFormat:PA,DepthTexture:TP,DetachedBindMode:WW,DirectionalLight:VP,DirectionalLightHelper:ZYe,DiscreteInterpolant:RQ,DodecahedronGeometry:Tb,DoubleSide:mc,DstAlphaFactor:xW,DstColorFactor:SW,DynamicCopyUsage:wqe,DynamicDrawUsage:fqe,DynamicReadUsage:gqe,EdgesGeometry:bQ,EllipseCurve:Cb,EqualCompare:YW,EqualDepth:Hy,EqualStencilFunc:lqe,EquirectangularReflectionMapping:zp,EquirectangularRefractionMapping:Vp,Euler:Mo,EventDispatcher:sl,ExtrudeGeometry:Ib,FileLoader:_c,Float16BufferAttribute:lXe,Float32BufferAttribute:an,FloatType:zs,Fog:_b,FogExp2:bb,FramebufferTexture:PXe,FrontSide:rl,Frustum:Ig,GLBufferAttribute:WYe,GLSL1:_qe,GLSL3:CM,GreaterCompare:JW,GreaterDepth:Qy,GreaterEqualCompare:eQ,GreaterEqualDepth:Wy,GreaterEqualStencilFunc:hqe,GreaterStencilFunc:dqe,GridHelper:YYe,Group:Rl,HalfFloatType:Df,HemisphereLight:WQ,HemisphereLightHelper:XYe,IcosahedronGeometry:Lb,ImageBitmapLoader:KQ,ImageLoader:ng,ImageUtils:iQ,IncrementStencilOp:nqe,IncrementWrapStencilOp:iqe,InstancedBufferAttribute:EA,InstancedBufferGeometry:VQ,InstancedInterleavedBuffer:HYe,InstancedMesh:PP,Int16BufferAttribute:oXe,Int32BufferAttribute:cXe,Int8BufferAttribute:iXe,IntType:db,InterleavedBuffer:Tg,InterleavedBufferAttribute:nd,Interpolant:Of,InterpolateDiscrete:pf,InterpolateLinear:gf,InterpolateSmooth:Vv,InvertStencilOp:sqe,KeepStencilOp:Qd,KeyframeTrack:Bc,LOD:fQ,LatheGeometry:Lg,Layers:yb,LessCompare:XW,LessDepth:Oy,LessEqualCompare:yP,LessEqualDepth:SA,LessEqualStencilFunc:uqe,LessStencilFunc:cqe,Light:ld,LightProbe:zQ,Line:Zl,Line3:zYe,LineBasicMaterial:Za,LineCurve:LP,LineCurve3:yQ,LineDashedMaterial:LQ,LineLoop:EP,LineSegments:Pc,LinearFilter:pi,LinearInterpolant:HP,LinearMipMapLinearFilter:XKe,LinearMipMapNearestFilter:qKe,LinearMipmapLinearFilter:Wo,LinearMipmapNearestFilter:qh,LinearSRGBColorSpace:Xa,LinearToneMapping:FW,LinearTransfer:Kp,Loader:Ps,LoaderUtils:Ku,LoadingManager:QP,LoopOnce:QW,LoopPingPong:jW,LoopRepeat:$W,LuminanceAlphaFormat:fP,LuminanceFormat:hP,MOUSE:cA,Material:Yi,MaterialLoader:Hb,MathUtils:bP,Matrix2:YP,Matrix3:Dn,Matrix4:vn,MaxEquation:vW,Mesh:Fi,MeshBasicMaterial:vo,MeshDepthMaterial:RP,MeshDistanceMaterial:UP,MeshLambertMaterial:kQ,MeshMatcapMaterial:IQ,MeshNormalMaterial:TQ,MeshPhongMaterial:EQ,MeshPhysicalMaterial:Ko,MeshStandardMaterial:Dg,MeshToonMaterial:BQ,MinEquation:gW,MirroredRepeatWrapping:ff,MixOperation:IW,MultiplyBlending:xM,MultiplyOperation:Pg,NearestFilter:Xi,NearestMipMapLinearFilter:KKe,NearestMipMapNearestFilter:GKe,NearestMipmapLinearFilter:Yd,NearestMipmapNearestFilter:ub,NeutralToneMapping:HW,NeverCompare:qW,NeverDepth:Ry,NeverStencilFunc:oqe,NoBlending:$l,NoColorSpace:Fl,NoToneMapping:jl,NormalAnimationBlendMode:gb,NormalBlending:lA,NotEqualCompare:ZW,NotEqualDepth:$y,NotEqualStencilFunc:Aqe,NumberKeyframeTrack:TA,Object3D:Zn,ObjectLoader:gYe,ObjectSpaceNormalMap:KW,OctahedronGeometry:Fg,OneFactor:wW,OneMinusConstantAlphaFactor:kW,OneMinusConstantColorFactor:BW,OneMinusDstAlphaFactor:MW,OneMinusDstColorFactor:CW,OneMinusSrcAlphaFactor:Dy,OneMinusSrcColorFactor:_W,OrthographicCamera:Rg,PCFShadowMap:oP,PCFSoftShadowMap:hW,PMREMGenerator:FM,Path:Jp,PerspectiveCamera:Aa,Plane:Il,PlaneGeometry:Uf,PlaneHelper:rJe,PointLight:zP,PointLightHelper:KYe,Points:BP,PointsMaterial:Mb,PolarGridHelper:JYe,PolyhedronGeometry:cd,PositionalAudio:MYe,PropertyBinding:nr,PropertyMixer:JQ,QuadraticBezierCurve:FP,QuadraticBezierCurve3:NP,Quaternion:ma,QuaternionKeyframeTrack:kA,QuaternionLinearInterpolant:UQ,RED_GREEN_RGTC2_Format:fw,RED_RGTC1_Format:pP,REVISION:cb,RGBADepthPacking:GW,RGBAFormat:Ms,RGBAIntegerFormat:pb,RGBA_ASTC_10x10_Format:cw,RGBA_ASTC_10x5_Format:aw,RGBA_ASTC_10x6_Format:sw,RGBA_ASTC_10x8_Format:ow,RGBA_ASTC_12x10_Format:lw,RGBA_ASTC_12x12_Format:uw,RGBA_ASTC_4x4_Format:Yy,RGBA_ASTC_5x4_Format:Jy,RGBA_ASTC_5x5_Format:Zy,RGBA_ASTC_6x5_Format:ew,RGBA_ASTC_6x6_Format:tw,RGBA_ASTC_8x5_Format:nw,RGBA_ASTC_8x6_Format:rw,RGBA_ASTC_8x8_Format:iw,RGBA_BPTC_Format:dp,RGBA_ETC2_EAC_Format:Xy,RGBA_PVRTC_2BPPV1_Format:Gy,RGBA_PVRTC_4BPPV1_Format:Vy,RGBA_S3TC_DXT1_Format:cp,RGBA_S3TC_DXT3_Format:lp,RGBA_S3TC_DXT5_Format:up,RGBDepthPacking:JKe,RGBFormat:AP,RGBIntegerFormat:YKe,RGB_BPTC_SIGNED_Format:dw,RGB_BPTC_UNSIGNED_Format:Aw,RGB_ETC1_Format:Ky,RGB_ETC2_Format:qy,RGB_PVRTC_2BPPV1_Format:zy,RGB_PVRTC_4BPPV1_Format:jy,RGB_S3TC_DXT1_Format:op,RGDepthPacking:ZKe,RGFormat:mP,RGIntegerFormat:mb,RawShaderMaterial:PQ,Ray:jA,Raycaster:QYe,RectAreaLight:$Q,RedFormat:fb,RedIntegerFormat:Eg,ReinhardToneMapping:NW,RenderTarget:aQ,RepeatWrapping:td,ReplaceStencilOp:tqe,ReverseSubtractEquation:pW,RingGeometry:Fb,SIGNED_RED_GREEN_RGTC2_Format:mw,SIGNED_RED_RGTC1_Format:hw,SRGBColorSpace:Gi,SRGBTransfer:Sr,Scene:dQ,ShaderChunk:jn,ShaderLib:fc,ShaderMaterial:bc,ShadowMaterial:CQ,Shape:AA,ShapeGeometry:Nb,ShapePath:sJe,ShapeUtils:el,ShortType:lP,Skeleton:kg,SkeletonHelper:GYe,SkinnedMesh:CP,Source:eA,Sphere:Fa,SphereGeometry:Ng,Spherical:IM,SphericalHarmonics3:jQ,SplineCurve:DP,SpotLight:jP,SpotLightHelper:VYe,Sprite:hQ,SpriteMaterial:SP,SrcAlphaFactor:Ny,SrcAlphaSaturateFactor:PW,SrcColorFactor:bW,StaticCopyUsage:yqe,StaticDrawUsage:qp,StaticReadUsage:pqe,StereoCamera:wYe,StreamCopyUsage:bqe,StreamDrawUsage:mqe,StreamReadUsage:vqe,StringKeyframeTrack:GA,SubtractEquation:mW,SubtractiveBlending:_M,TOUCH:Xd,TangentSpaceNormalMap:od,TetrahedronGeometry:Db,Texture:ai,TextureLoader:HQ,TextureUtils:dJe,TorusGeometry:Rb,TorusKnotGeometry:Ub,Triangle:js,TriangleFanDrawMode:pw,TriangleStripDrawMode:vP,TrianglesDrawMode:zW,TubeGeometry:Ob,UVMapping:lb,Uint16BufferAttribute:xP,Uint32BufferAttribute:MP,Uint8BufferAttribute:aXe,Uint8ClampedBufferAttribute:sXe,Uniform:XP,UniformsGroup:OYe,UniformsLib:Wt,UniformsUtils:cQ,UnsignedByteType:il,UnsignedInt248Type:CA,UnsignedInt5999Type:uP,UnsignedIntType:Jl,UnsignedShort4444Type:Ab,UnsignedShort5551Type:hb,UnsignedShortType:mf,VSMShadowMap:Kc,Vector2:vt,Vector3:ye,Vector4:ar,VectorKeyframeTrack:IA,VideoTexture:CXe,WebGL3DRenderTarget:Gqe,WebGLArrayRenderTarget:Vqe,WebGLCoordinateSystem:Yc,WebGLCubeRenderTarget:uQ,WebGLMultipleRenderTargets:AJe,WebGLRenderTarget:wc,WebGLRenderer:qnt,WebGLUtils:o$,WebGPUCoordinateSystem:Xp,WireframeGeometry:SQ,WrapAroundEnding:Gp,ZeroCurvatureEnding:Jd,ZeroFactor:yW,ZeroSlopeEnding:Zd,ZeroStencilOp:eqe,createCanvasElement:rQ},Symbol.toStringTag,{value:"Module"})),wL={type:"change"},ZP={type:"start"},c$={type:"end"},uv=new jA,bL=new Il,Ynt=Math.cos(70*bP.DEG2RAD),ji=new ye,Hs=2*Math.PI,Ir={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},Ux=1e-6;class Jnt extends t${constructor(e,t=null){super(e,t),this.state=Ir.NONE,this.enabled=!0,this.target=new ye,this.cursor=new ye,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:cA.ROTATE,MIDDLE:cA.DOLLY,RIGHT:cA.PAN},this.touches={ONE:Xd.ROTATE,TWO:Xd.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new ye,this._lastQuaternion=new ma,this._lastTargetPosition=new ye,this._quat=new ma().setFromUnitVectors(e.up,new ye(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new IM,this._sphericalDelta=new IM,this._scale=1,this._panOffset=new ye,this._rotateStart=new vt,this._rotateEnd=new vt,this._rotateDelta=new vt,this._panStart=new vt,this._panEnd=new vt,this._panDelta=new vt,this._dollyStart=new vt,this._dollyEnd=new vt,this._dollyDelta=new vt,this._dollyDirection=new ye,this._mouse=new vt,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=ert.bind(this),this._onPointerDown=Znt.bind(this),this._onPointerUp=trt.bind(this),this._onContextMenu=crt.bind(this),this._onMouseWheel=irt.bind(this),this._onKeyDown=art.bind(this),this._onTouchStart=srt.bind(this),this._onTouchMove=ort.bind(this),this._onMouseDown=nrt.bind(this),this._onMouseMove=rrt.bind(this),this._interceptControlDown=lrt.bind(this),this._interceptControlUp=urt.bind(this),this.domElement!==null&&this.connect(),this.update()}connect(){this.domElement.addEventListener("pointerdown",this._onPointerDown),this.domElement.addEventListener("pointercancel",this._onPointerUp),this.domElement.addEventListener("contextmenu",this._onContextMenu),this.domElement.addEventListener("wheel",this._onMouseWheel,{passive:!1}),this.domElement.getRootNode().addEventListener("keydown",this._interceptControlDown,{passive:!0,capture:!0}),this.domElement.style.touchAction="none"}disconnect(){this.domElement.removeEventListener("pointerdown",this._onPointerDown),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.domElement.removeEventListener("pointercancel",this._onPointerUp),this.domElement.removeEventListener("wheel",this._onMouseWheel),this.domElement.removeEventListener("contextmenu",this._onContextMenu),this.stopListenToKeyEvents(),this.domElement.getRootNode().removeEventListener("keydown",this._interceptControlDown,{capture:!0}),this.domElement.style.touchAction="auto"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(e){e.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=e}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(wL),this.update(),this.state=Ir.NONE}update(e=null){const t=this.object.position;ji.copy(t).sub(this.target),ji.applyQuaternion(this._quat),this._spherical.setFromVector3(ji),this.autoRotate&&this.state===Ir.NONE&&this._rotateLeft(this._getAutoRotationAngle(e)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let r=this.minAzimuthAngle,i=this.maxAzimuthAngle;isFinite(r)&&isFinite(i)&&(r<-Math.PI?r+=Hs:r>Math.PI&&(r-=Hs),i<-Math.PI?i+=Hs:i>Math.PI&&(i-=Hs),r<=i?this._spherical.theta=Math.max(r,Math.min(i,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(r+i)/2?Math.max(r,this._spherical.theta):Math.min(i,this._spherical.theta)),this._spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this._spherical.phi)),this._spherical.makeSafe(),this.enableDamping===!0?this.target.addScaledVector(this._panOffset,this.dampingFactor):this.target.add(this._panOffset),this.target.sub(this.cursor),this.target.clampLength(this.minTargetRadius,this.maxTargetRadius),this.target.add(this.cursor);let a=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const s=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),a=s!=this._spherical.radius}if(ji.setFromSpherical(this._spherical),ji.applyQuaternion(this._quatInverse),t.copy(this.target).add(ji),this.object.lookAt(this.target),this.enableDamping===!0?(this._sphericalDelta.theta*=1-this.dampingFactor,this._sphericalDelta.phi*=1-this.dampingFactor,this._panOffset.multiplyScalar(1-this.dampingFactor)):(this._sphericalDelta.set(0,0,0),this._panOffset.set(0,0,0)),this.zoomToCursor&&this._performCursorZoom){let s=null;if(this.object.isPerspectiveCamera){const o=ji.length();s=this._clampDistance(o*this._scale);const c=o-s;this.object.position.addScaledVector(this._dollyDirection,c),this.object.updateMatrixWorld(),a=!!c}else if(this.object.isOrthographicCamera){const o=new ye(this._mouse.x,this._mouse.y,0);o.unproject(this.object);const c=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),a=c!==this.object.zoom;const l=new ye(this._mouse.x,this._mouse.y,0);l.unproject(this.object),this.object.position.sub(l).add(o),this.object.updateMatrixWorld(),s=ji.length()}else this.zoomToCursor=!1;s!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(s).add(this.object.position):(uv.origin.copy(this.object.position),uv.direction.set(0,0,-1).transformDirection(this.object.matrix),Math.abs(this.object.up.dot(uv.direction))<Ynt?this.object.lookAt(this.target):(bL.setFromNormalAndCoplanarPoint(this.object.up,this.target),uv.intersectPlane(bL,this.target))))}else if(this.object.isOrthographicCamera){const s=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),s!==this.object.zoom&&(this.object.updateProjectionMatrix(),a=!0)}return this._scale=1,this._performCursorZoom=!1,a||this._lastPosition.distanceToSquared(this.object.position)>Ux||8*(1-this._lastQuaternion.dot(this.object.quaternion))>Ux||this._lastTargetPosition.distanceToSquared(this.target)>Ux?(this.dispatchEvent(wL),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(e){return e!==null?Hs/60*this.autoRotateSpeed*e:Hs/60/60*this.autoRotateSpeed}_getZoomScale(e){const t=Math.abs(e*.01);return Math.pow(.95,this.zoomSpeed*t)}_rotateLeft(e){this._sphericalDelta.theta-=e}_rotateUp(e){this._sphericalDelta.phi-=e}_panLeft(e,t){ji.setFromMatrixColumn(t,0),ji.multiplyScalar(-e),this._panOffset.add(ji)}_panUp(e,t){this.screenSpacePanning===!0?ji.setFromMatrixColumn(t,1):(ji.setFromMatrixColumn(t,0),ji.crossVectors(this.object.up,ji)),ji.multiplyScalar(e),this._panOffset.add(ji)}_pan(e,t){const r=this.domElement;if(this.object.isPerspectiveCamera){const i=this.object.position;ji.copy(i).sub(this.target);let a=ji.length();a*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*e*a/r.clientHeight,this.object.matrix),this._panUp(2*t*a/r.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(e*(this.object.right-this.object.left)/this.object.zoom/r.clientWidth,this.object.matrix),this._panUp(t*(this.object.top-this.object.bottom)/this.object.zoom/r.clientHeight,this.object.matrix)):this.enablePan=!1}_dollyOut(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=e:this.enableZoom=!1}_dollyIn(e){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=e:this.enableZoom=!1}_updateZoomParameters(e,t){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const r=this.domElement.getBoundingClientRect(),i=e-r.left,a=t-r.top,s=r.width,o=r.height;this._mouse.x=i/s*2-1,this._mouse.y=-(a/o)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(e){return Math.max(this.minDistance,Math.min(this.maxDistance,e))}_handleMouseDownRotate(e){this._rotateStart.set(e.clientX,e.clientY)}_handleMouseDownDolly(e){this._updateZoomParameters(e.clientX,e.clientX),this._dollyStart.set(e.clientX,e.clientY)}_handleMouseDownPan(e){this._panStart.set(e.clientX,e.clientY)}_handleMouseMoveRotate(e){this._rotateEnd.set(e.clientX,e.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Hs*this._rotateDelta.x/t.clientHeight),this._rotateUp(Hs*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(e){this._dollyEnd.set(e.clientX,e.clientY),this._dollyDelta.subVectors(this._dollyEnd,this._dollyStart),this._dollyDelta.y>0?this._dollyOut(this._getZoomScale(this._dollyDelta.y)):this._dollyDelta.y<0&&this._dollyIn(this._getZoomScale(this._dollyDelta.y)),this._dollyStart.copy(this._dollyEnd),this.update()}_handleMouseMovePan(e){this._panEnd.set(e.clientX,e.clientY),this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd),this.update()}_handleMouseWheel(e){this._updateZoomParameters(e.clientX,e.clientY),e.deltaY<0?this._dollyIn(this._getZoomScale(e.deltaY)):e.deltaY>0&&this._dollyOut(this._getZoomScale(e.deltaY)),this.update()}_handleKeyDown(e){let t=!1;switch(e.code){case this.keys.UP:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(Hs*this.rotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),t=!0;break;case this.keys.BOTTOM:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateUp(-Hs*this.rotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),t=!0;break;case this.keys.LEFT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(Hs*this.rotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),t=!0;break;case this.keys.RIGHT:e.ctrlKey||e.metaKey||e.shiftKey?this.enableRotate&&this._rotateLeft(-Hs*this.rotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),t=!0;break}t&&(e.preventDefault(),this.update())}_handleTouchStartRotate(e){if(this._pointers.length===1)this._rotateStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),r=.5*(e.pageX+t.x),i=.5*(e.pageY+t.y);this._rotateStart.set(r,i)}}_handleTouchStartPan(e){if(this._pointers.length===1)this._panStart.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),r=.5*(e.pageX+t.x),i=.5*(e.pageY+t.y);this._panStart.set(r,i)}}_handleTouchStartDolly(e){const t=this._getSecondPointerPosition(e),r=e.pageX-t.x,i=e.pageY-t.y,a=Math.sqrt(r*r+i*i);this._dollyStart.set(0,a)}_handleTouchStartDollyPan(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enablePan&&this._handleTouchStartPan(e)}_handleTouchStartDollyRotate(e){this.enableZoom&&this._handleTouchStartDolly(e),this.enableRotate&&this._handleTouchStartRotate(e)}_handleTouchMoveRotate(e){if(this._pointers.length==1)this._rotateEnd.set(e.pageX,e.pageY);else{const r=this._getSecondPointerPosition(e),i=.5*(e.pageX+r.x),a=.5*(e.pageY+r.y);this._rotateEnd.set(i,a)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const t=this.domElement;this._rotateLeft(Hs*this._rotateDelta.x/t.clientHeight),this._rotateUp(Hs*this._rotateDelta.y/t.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(e){if(this._pointers.length===1)this._panEnd.set(e.pageX,e.pageY);else{const t=this._getSecondPointerPosition(e),r=.5*(e.pageX+t.x),i=.5*(e.pageY+t.y);this._panEnd.set(r,i)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(e){const t=this._getSecondPointerPosition(e),r=e.pageX-t.x,i=e.pageY-t.y,a=Math.sqrt(r*r+i*i);this._dollyEnd.set(0,a),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const s=(e.pageX+t.x)*.5,o=(e.pageY+t.y)*.5;this._updateZoomParameters(s,o)}_handleTouchMoveDollyPan(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enablePan&&this._handleTouchMovePan(e)}_handleTouchMoveDollyRotate(e){this.enableZoom&&this._handleTouchMoveDolly(e),this.enableRotate&&this._handleTouchMoveRotate(e)}_addPointer(e){this._pointers.push(e.pointerId)}_removePointer(e){delete this._pointerPositions[e.pointerId];for(let t=0;t<this._pointers.length;t++)if(this._pointers[t]==e.pointerId){this._pointers.splice(t,1);return}}_isTrackingPointer(e){for(let t=0;t<this._pointers.length;t++)if(this._pointers[t]==e.pointerId)return!0;return!1}_trackPointer(e){let t=this._pointerPositions[e.pointerId];t===void 0&&(t=new vt,this._pointerPositions[e.pointerId]=t),t.set(e.pageX,e.pageY)}_getSecondPointerPosition(e){const t=e.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[t]}_customWheelEvent(e){const t=e.deltaMode,r={clientX:e.clientX,clientY:e.clientY,deltaY:e.deltaY};switch(t){case 1:r.deltaY*=16;break;case 2:r.deltaY*=100;break}return e.ctrlKey&&!this._controlActive&&(r.deltaY*=10),r}}function Znt(n){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(n.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(n)&&(this._addPointer(n),n.pointerType==="touch"?this._onTouchStart(n):this._onMouseDown(n)))}function ert(n){this.enabled!==!1&&(n.pointerType==="touch"?this._onTouchMove(n):this._onMouseMove(n))}function trt(n){switch(this._removePointer(n),this._pointers.length){case 0:this.domElement.releasePointerCapture(n.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(c$),this.state=Ir.NONE;break;case 1:const e=this._pointers[0],t=this._pointerPositions[e];this._onTouchStart({pointerId:e,pageX:t.x,pageY:t.y});break}}function nrt(n){let e;switch(n.button){case 0:e=this.mouseButtons.LEFT;break;case 1:e=this.mouseButtons.MIDDLE;break;case 2:e=this.mouseButtons.RIGHT;break;default:e=-1}switch(e){case cA.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(n),this.state=Ir.DOLLY;break;case cA.ROTATE:if(n.ctrlKey||n.metaKey||n.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(n),this.state=Ir.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(n),this.state=Ir.ROTATE}break;case cA.PAN:if(n.ctrlKey||n.metaKey||n.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(n),this.state=Ir.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(n),this.state=Ir.PAN}break;default:this.state=Ir.NONE}this.state!==Ir.NONE&&this.dispatchEvent(ZP)}function rrt(n){switch(this.state){case Ir.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(n);break;case Ir.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(n);break;case Ir.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(n);break}}function irt(n){this.enabled===!1||this.enableZoom===!1||this.state!==Ir.NONE||(n.preventDefault(),this.dispatchEvent(ZP),this._handleMouseWheel(this._customWheelEvent(n)),this.dispatchEvent(c$))}function art(n){this.enabled!==!1&&this._handleKeyDown(n)}function srt(n){switch(this._trackPointer(n),this._pointers.length){case 1:switch(this.touches.ONE){case Xd.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(n),this.state=Ir.TOUCH_ROTATE;break;case Xd.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(n),this.state=Ir.TOUCH_PAN;break;default:this.state=Ir.NONE}break;case 2:switch(this.touches.TWO){case Xd.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(n),this.state=Ir.TOUCH_DOLLY_PAN;break;case Xd.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(n),this.state=Ir.TOUCH_DOLLY_ROTATE;break;default:this.state=Ir.NONE}break;default:this.state=Ir.NONE}this.state!==Ir.NONE&&this.dispatchEvent(ZP)}function ort(n){switch(this._trackPointer(n),this.state){case Ir.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(n),this.update();break;case Ir.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(n),this.update();break;case Ir.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(n),this.update();break;case Ir.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(n),this.update();break;default:this.state=Ir.NONE}}function crt(n){this.enabled!==!1&&n.preventDefault()}function lrt(n){n.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function urt(n){n.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}const drt=Object.freeze(Object.defineProperty({__proto__:null,OrbitControls:Jnt},Symbol.toStringTag,{value:"Module"}));function _L(n,e){if(e===zW)return n;if(e===pw||e===vP){let t=n.getIndex();if(t===null){const s=[],o=n.getAttribute("position");if(o!==void 0){for(let c=0;c<o.count;c++)s.push(c);n.setIndex(s),t=n.getIndex()}else return n}const r=t.count-2,i=[];if(e===pw)for(let s=1;s<=r;s++)i.push(t.getX(0)),i.push(t.getX(s)),i.push(t.getX(s+1));else for(let s=0;s<r;s++)s%2===0?(i.push(t.getX(s)),i.push(t.getX(s+1)),i.push(t.getX(s+2))):(i.push(t.getX(s+2)),i.push(t.getX(s+1)),i.push(t.getX(s)));i.length/3;const a=n.clone();return a.setIndex(i),a.clearGroups(),a}else return n}class Art extends Ps{constructor(e){super(e),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(t){return new grt(t)}),this.register(function(t){return new vrt(t)}),this.register(function(t){return new Prt(t)}),this.register(function(t){return new Ert(t)}),this.register(function(t){return new Brt(t)}),this.register(function(t){return new wrt(t)}),this.register(function(t){return new brt(t)}),this.register(function(t){return new _rt(t)}),this.register(function(t){return new xrt(t)}),this.register(function(t){return new prt(t)}),this.register(function(t){return new Mrt(t)}),this.register(function(t){return new yrt(t)}),this.register(function(t){return new Crt(t)}),this.register(function(t){return new Srt(t)}),this.register(function(t){return new frt(t)}),this.register(function(t){return new Trt(t)}),this.register(function(t){return new krt(t)})}load(e,t,r,i){const a=this;let s;if(this.resourcePath!=="")s=this.resourcePath;else if(this.path!==""){const l=Ku.extractUrlBase(e);s=Ku.resolveURL(l,this.path)}else s=Ku.extractUrlBase(e);this.manager.itemStart(e);const o=function(l){i&&i(l),a.manager.itemError(e),a.manager.itemEnd(e)},c=new _c(this.manager);c.setPath(this.path),c.setResponseType("arraybuffer"),c.setRequestHeader(this.requestHeader),c.setWithCredentials(this.withCredentials),c.load(e,function(l){try{a.parse(l,s,function(u){t(u),a.manager.itemEnd(e)},o)}catch(u){o(u)}},r,o)}setDRACOLoader(e){return this.dracoLoader=e,this}setKTX2Loader(e){return this.ktx2Loader=e,this}setMeshoptDecoder(e){return this.meshoptDecoder=e,this}register(e){return this.pluginCallbacks.indexOf(e)===-1&&this.pluginCallbacks.push(e),this}unregister(e){return this.pluginCallbacks.indexOf(e)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(e),1),this}parse(e,t,r,i){let a;const s={},o={},c=new TextDecoder;if(typeof e=="string")a=JSON.parse(e);else if(e instanceof ArrayBuffer)if(c.decode(new Uint8Array(e,0,4))===l$){try{s[Gn.KHR_BINARY_GLTF]=new Irt(e)}catch(A){i&&i(A);return}a=JSON.parse(s[Gn.KHR_BINARY_GLTF].content)}else a=JSON.parse(c.decode(e));else a=e;if(a.asset===void 0||a.asset.version[0]<2){i&&i(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const l=new zrt(a,{path:t||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});l.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u<this.pluginCallbacks.length;u++){const A=this.pluginCallbacks[u](l);A.name,o[A.name]=A,s[A.name]=!0}if(a.extensionsUsed)for(let u=0;u<a.extensionsUsed.length;++u){const A=a.extensionsUsed[u],f=a.extensionsRequired||[];switch(A){case Gn.KHR_MATERIALS_UNLIT:s[A]=new mrt;break;case Gn.KHR_DRACO_MESH_COMPRESSION:s[A]=new Lrt(a,this.dracoLoader);break;case Gn.KHR_TEXTURE_TRANSFORM:s[A]=new Frt;break;case Gn.KHR_MESH_QUANTIZATION:s[A]=new Nrt;break;default:f.indexOf(A)>=0&&o[A]}}l.setExtensions(s),l.setPlugins(o),l.parse(r,i)}parseAsync(e,t){const r=this;return new Promise(function(i,a){r.parse(e,t,i,a)})}}function hrt(){let n={};return{get:function(e){return n[e]},add:function(e,t){n[e]=t},remove:function(e){delete n[e]},removeAll:function(){n={}}}}const Gn={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class frt{constructor(e){this.parser=e,this.name=Gn.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const e=this.parser,t=this.parser.json.nodes||[];for(let r=0,i=t.length;r<i;r++){const a=t[r];a.extensions&&a.extensions[this.name]&&a.extensions[this.name].light!==void 0&&e._addNodeRef(this.cache,a.extensions[this.name].light)}}_loadLight(e){const t=this.parser,r="light:"+e;let i=t.cache.get(r);if(i)return i;const a=t.json,c=((a.extensions&&a.extensions[this.name]||{}).lights||[])[e];let l;const u=new Qt(16777215);c.color!==void 0&&u.setRGB(c.color[0],c.color[1],c.color[2],Xa);const A=c.range!==void 0?c.range:0;switch(c.type){case"directional":l=new VP(u),l.target.position.set(0,0,-1),l.add(l.target);break;case"point":l=new zP(u),l.distance=A;break;case"spot":l=new jP(u),l.distance=A,c.spot=c.spot||{},c.spot.innerConeAngle=c.spot.innerConeAngle!==void 0?c.spot.innerConeAngle:0,c.spot.outerConeAngle=c.spot.outerConeAngle!==void 0?c.spot.outerConeAngle:Math.PI/4,l.angle=c.spot.outerConeAngle,l.penumbra=1-c.spot.innerConeAngle/c.spot.outerConeAngle,l.target.position.set(0,0,-1),l.add(l.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+c.type)}return l.position.set(0,0,0),l.decay=2,Tl(l,c),c.intensity!==void 0&&(l.intensity=c.intensity),l.name=t.createUniqueName(c.name||"light_"+e),i=Promise.resolve(l),t.cache.add(r,i),i}getDependency(e,t){if(e==="light")return this._loadLight(t)}createNodeAttachment(e){const t=this,r=this.parser,a=r.json.nodes[e],o=(a.extensions&&a.extensions[this.name]||{}).light;return o===void 0?null:this._loadLight(o).then(function(c){return r._getNodeRef(t.cache,o,c)})}}class mrt{constructor(){this.name=Gn.KHR_MATERIALS_UNLIT}getMaterialType(){return vo}extendParams(e,t,r){const i=[];e.color=new Qt(1,1,1),e.opacity=1;const a=t.pbrMetallicRoughness;if(a){if(Array.isArray(a.baseColorFactor)){const s=a.baseColorFactor;e.color.setRGB(s[0],s[1],s[2],Xa),e.opacity=s[3]}a.baseColorTexture!==void 0&&i.push(r.assignTexture(e,"map",a.baseColorTexture,Gi))}return Promise.all(i)}}class prt{constructor(e){this.parser=e,this.name=Gn.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(e,t){const i=this.parser.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=i.extensions[this.name].emissiveStrength;return a!==void 0&&(t.emissiveIntensity=a),Promise.resolve()}}class grt{constructor(e){this.parser=e,this.name=Gn.KHR_MATERIALS_CLEARCOAT}getMaterialType(e){const r=this.parser.json.materials[e];return!r.extensions||!r.extensions[this.name]?null:Ko}extendMaterialParams(e,t){const r=this.parser,i=r.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[],s=i.extensions[this.name];if(s.clearcoatFactor!==void 0&&(t.clearcoat=s.clearcoatFactor),s.clearcoatTexture!==void 0&&a.push(r.assignTexture(t,"clearcoatMap",s.clearcoatTexture)),s.clearcoatRoughnessFactor!==void 0&&(t.clearcoatRoughness=s.clearcoatRoughnessFactor),s.clearcoatRoughnessTexture!==void 0&&a.push(r.assignTexture(t,"clearcoatRoughnessMap",s.clearcoatRoughnessTexture)),s.clearcoatNormalTexture!==void 0&&(a.push(r.assignTexture(t,"clearcoatNormalMap",s.clearcoatNormalTexture)),s.clearcoatNormalTexture.scale!==void 0)){const o=s.clearcoatNormalTexture.scale;t.clearcoatNormalScale=new vt(o,o)}return Promise.all(a)}}class vrt{constructor(e){this.parser=e,this.name=Gn.KHR_MATERIALS_DISPERSION}getMaterialType(e){const r=this.parser.json.materials[e];return!r.extensions||!r.extensions[this.name]?null:Ko}extendMaterialParams(e,t){const i=this.parser.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=i.extensions[this.name];return t.dispersion=a.dispersion!==void 0?a.dispersion:0,Promise.resolve()}}class yrt{constructor(e){this.parser=e,this.name=Gn.KHR_MATERIALS_IRIDESCENCE}getMaterialType(e){const r=this.parser.json.materials[e];return!r.extensions||!r.extensions[this.name]?null:Ko}extendMaterialParams(e,t){const r=this.parser,i=r.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[],s=i.extensions[this.name];return s.iridescenceFactor!==void 0&&(t.iridescence=s.iridescenceFactor),s.iridescenceTexture!==void 0&&a.push(r.assignTexture(t,"iridescenceMap",s.iridescenceTexture)),s.iridescenceIor!==void 0&&(t.iridescenceIOR=s.iridescenceIor),t.iridescenceThicknessRange===void 0&&(t.iridescenceThicknessRange=[100,400]),s.iridescenceThicknessMinimum!==void 0&&(t.iridescenceThicknessRange[0]=s.iridescenceThicknessMinimum),s.iridescenceThicknessMaximum!==void 0&&(t.iridescenceThicknessRange[1]=s.iridescenceThicknessMaximum),s.iridescenceThicknessTexture!==void 0&&a.push(r.assignTexture(t,"iridescenceThicknessMap",s.iridescenceThicknessTexture)),Promise.all(a)}}class wrt{constructor(e){this.parser=e,this.name=Gn.KHR_MATERIALS_SHEEN}getMaterialType(e){const r=this.parser.json.materials[e];return!r.extensions||!r.extensions[this.name]?null:Ko}extendMaterialParams(e,t){const r=this.parser,i=r.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[];t.sheenColor=new Qt(0,0,0),t.sheenRoughness=0,t.sheen=1;const s=i.extensions[this.name];if(s.sheenColorFactor!==void 0){const o=s.sheenColorFactor;t.sheenColor.setRGB(o[0],o[1],o[2],Xa)}return s.sheenRoughnessFactor!==void 0&&(t.sheenRoughness=s.sheenRoughnessFactor),s.sheenColorTexture!==void 0&&a.push(r.assignTexture(t,"sheenColorMap",s.sheenColorTexture,Gi)),s.sheenRoughnessTexture!==void 0&&a.push(r.assignTexture(t,"sheenRoughnessMap",s.sheenRoughnessTexture)),Promise.all(a)}}class brt{constructor(e){this.parser=e,this.name=Gn.KHR_MATERIALS_TRANSMISSION}getMaterialType(e){const r=this.parser.json.materials[e];return!r.extensions||!r.extensions[this.name]?null:Ko}extendMaterialParams(e,t){const r=this.parser,i=r.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[],s=i.extensions[this.name];return s.transmissionFactor!==void 0&&(t.transmission=s.transmissionFactor),s.transmissionTexture!==void 0&&a.push(r.assignTexture(t,"transmissionMap",s.transmissionTexture)),Promise.all(a)}}class _rt{constructor(e){this.parser=e,this.name=Gn.KHR_MATERIALS_VOLUME}getMaterialType(e){const r=this.parser.json.materials[e];return!r.extensions||!r.extensions[this.name]?null:Ko}extendMaterialParams(e,t){const r=this.parser,i=r.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[],s=i.extensions[this.name];t.thickness=s.thicknessFactor!==void 0?s.thicknessFactor:0,s.thicknessTexture!==void 0&&a.push(r.assignTexture(t,"thicknessMap",s.thicknessTexture)),t.attenuationDistance=s.attenuationDistance||1/0;const o=s.attenuationColor||[1,1,1];return t.attenuationColor=new Qt().setRGB(o[0],o[1],o[2],Xa),Promise.all(a)}}class xrt{constructor(e){this.parser=e,this.name=Gn.KHR_MATERIALS_IOR}getMaterialType(e){const r=this.parser.json.materials[e];return!r.extensions||!r.extensions[this.name]?null:Ko}extendMaterialParams(e,t){const i=this.parser.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=i.extensions[this.name];return t.ior=a.ior!==void 0?a.ior:1.5,Promise.resolve()}}class Mrt{constructor(e){this.parser=e,this.name=Gn.KHR_MATERIALS_SPECULAR}getMaterialType(e){const r=this.parser.json.materials[e];return!r.extensions||!r.extensions[this.name]?null:Ko}extendMaterialParams(e,t){const r=this.parser,i=r.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[],s=i.extensions[this.name];t.specularIntensity=s.specularFactor!==void 0?s.specularFactor:1,s.specularTexture!==void 0&&a.push(r.assignTexture(t,"specularIntensityMap",s.specularTexture));const o=s.specularColorFactor||[1,1,1];return t.specularColor=new Qt().setRGB(o[0],o[1],o[2],Xa),s.specularColorTexture!==void 0&&a.push(r.assignTexture(t,"specularColorMap",s.specularColorTexture,Gi)),Promise.all(a)}}class Srt{constructor(e){this.parser=e,this.name=Gn.EXT_MATERIALS_BUMP}getMaterialType(e){const r=this.parser.json.materials[e];return!r.extensions||!r.extensions[this.name]?null:Ko}extendMaterialParams(e,t){const r=this.parser,i=r.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[],s=i.extensions[this.name];return t.bumpScale=s.bumpFactor!==void 0?s.bumpFactor:1,s.bumpTexture!==void 0&&a.push(r.assignTexture(t,"bumpMap",s.bumpTexture)),Promise.all(a)}}class Crt{constructor(e){this.parser=e,this.name=Gn.KHR_MATERIALS_ANISOTROPY}getMaterialType(e){const r=this.parser.json.materials[e];return!r.extensions||!r.extensions[this.name]?null:Ko}extendMaterialParams(e,t){const r=this.parser,i=r.json.materials[e];if(!i.extensions||!i.extensions[this.name])return Promise.resolve();const a=[],s=i.extensions[this.name];return s.anisotropyStrength!==void 0&&(t.anisotropy=s.anisotropyStrength),s.anisotropyRotation!==void 0&&(t.anisotropyRotation=s.anisotropyRotation),s.anisotropyTexture!==void 0&&a.push(r.assignTexture(t,"anisotropyMap",s.anisotropyTexture)),Promise.all(a)}}class Prt{constructor(e){this.parser=e,this.name=Gn.KHR_TEXTURE_BASISU}loadTexture(e){const t=this.parser,r=t.json,i=r.textures[e];if(!i.extensions||!i.extensions[this.name])return null;const a=i.extensions[this.name],s=t.options.ktx2Loader;if(!s){if(r.extensionsRequired&&r.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return t.loadTextureImage(e,a.source,s)}}class Ert{constructor(e){this.parser=e,this.name=Gn.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,a=i.textures[e];if(!a.extensions||!a.extensions[t])return null;const s=a.extensions[t],o=i.images[s.source];let c=r.textureLoader;if(o.uri){const l=r.options.manager.getHandler(o.uri);l!==null&&(c=l)}return this.detectSupport().then(function(l){if(l)return r.loadTextureImage(e,s.source,c);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class Brt{constructor(e){this.parser=e,this.name=Gn.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(e){const t=this.name,r=this.parser,i=r.json,a=i.textures[e];if(!a.extensions||!a.extensions[t])return null;const s=a.extensions[t],o=i.images[s.source];let c=r.textureLoader;if(o.uri){const l=r.options.manager.getHandler(o.uri);l!==null&&(c=l)}return this.detectSupport().then(function(l){if(l)return r.loadTextureImage(e,s.source,c);if(i.extensionsRequired&&i.extensionsRequired.indexOf(t)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return r.loadTexture(e)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(e){const t=new Image;t.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",t.onload=t.onerror=function(){e(t.height===1)}})),this.isSupported}}class Trt{constructor(e){this.name=Gn.EXT_MESHOPT_COMPRESSION,this.parser=e}loadBufferView(e){const t=this.parser.json,r=t.bufferViews[e];if(r.extensions&&r.extensions[this.name]){const i=r.extensions[this.name],a=this.parser.getDependency("buffer",i.buffer),s=this.parser.options.meshoptDecoder;if(!s||!s.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return a.then(function(o){const c=i.byteOffset||0,l=i.byteLength||0,u=i.count,A=i.byteStride,f=new Uint8Array(o,c,l);return s.decodeGltfBufferAsync?s.decodeGltfBufferAsync(u,A,f,i.mode,i.filter).then(function(h){return h.buffer}):s.ready.then(function(){const h=new ArrayBuffer(u*A);return s.decodeGltfBuffer(new Uint8Array(h),u,A,f,i.mode,i.filter),h})})}else return null}}class krt{constructor(e){this.name=Gn.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){const t=this.parser.json,r=t.nodes[e];if(!r.extensions||!r.extensions[this.name]||r.mesh===void 0)return null;const i=t.meshes[r.mesh];for(const l of i.primitives)if(l.mode!==Ro.TRIANGLES&&l.mode!==Ro.TRIANGLE_STRIP&&l.mode!==Ro.TRIANGLE_FAN&&l.mode!==void 0)return null;const s=r.extensions[this.name].attributes,o=[],c={};for(const l in s)o.push(this.parser.getDependency("accessor",s[l]).then(u=>(c[l]=u,c[l])));return o.length<1?null:(o.push(this.parser.createNodeMesh(e)),Promise.all(o).then(l=>{const u=l.pop(),A=u.isGroup?u.children:[u],f=l[0].count,h=[];for(const g of A){const y=new vn,w=new ye,v=new ma,S=new ye(1,1,1),C=new PP(g.geometry,g.material,f);for(let M=0;M<f;M++)c.TRANSLATION&&w.fromBufferAttribute(c.TRANSLATION,M),c.ROTATION&&v.fromBufferAttribute(c.ROTATION,M),c.SCALE&&S.fromBufferAttribute(c.SCALE,M),C.setMatrixAt(M,y.compose(w,v,S));for(const M in c)if(M==="_COLOR_0"){const F=c[M];C.instanceColor=new EA(F.array,F.itemSize,F.normalized)}else M!=="TRANSLATION"&&M!=="ROTATION"&&M!=="SCALE"&&g.geometry.setAttribute(M,c[M]);Zn.prototype.copy.call(C,g),this.parser.assignFinalMaterial(C),h.push(C)}return u.isGroup?(u.clear(),u.add(...h),u):h[0]}))}}const l$="glTF",Em=12,xL={JSON:1313821514,BIN:5130562};class Irt{constructor(e){this.name=Gn.KHR_BINARY_GLTF,this.content=null,this.body=null;const t=new DataView(e,0,Em),r=new TextDecoder;if(this.header={magic:r.decode(new Uint8Array(e.slice(0,4))),version:t.getUint32(4,!0),length:t.getUint32(8,!0)},this.header.magic!==l$)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const i=this.header.length-Em,a=new DataView(e,Em);let s=0;for(;s<i;){const o=a.getUint32(s,!0);s+=4;const c=a.getUint32(s,!0);if(s+=4,c===xL.JSON){const l=new Uint8Array(e,Em+s,o);this.content=r.decode(l)}else if(c===xL.BIN){const l=Em+s;this.body=e.slice(l,l+o)}s+=o}if(this.content===null)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class Lrt{constructor(e,t){if(!t)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=Gn.KHR_DRACO_MESH_COMPRESSION,this.json=e,this.dracoLoader=t,this.dracoLoader.preload()}decodePrimitive(e,t){const r=this.json,i=this.dracoLoader,a=e.extensions[this.name].bufferView,s=e.extensions[this.name].attributes,o={},c={},l={};for(const u in s){const A=DM[u]||u.toLowerCase();o[A]=s[u]}for(const u in e.attributes){const A=DM[u]||u.toLowerCase();if(s[u]!==void 0){const f=r.accessors[e.attributes[u]],h=Yh[f.componentType];l[A]=h.name,c[A]=f.normalized===!0}}return t.getDependency("bufferView",a).then(function(u){return new Promise(function(A,f){i.decodeDracoFile(u,function(h){for(const g in h.attributes){const y=h.attributes[g],w=c[g];w!==void 0&&(y.normalized=w)}A(h)},o,l,Xa,f)})})}}class Frt{constructor(){this.name=Gn.KHR_TEXTURE_TRANSFORM}extendTexture(e,t){return(t.texCoord===void 0||t.texCoord===e.channel)&&t.offset===void 0&&t.rotation===void 0&&t.scale===void 0||(e=e.clone(),t.texCoord!==void 0&&(e.channel=t.texCoord),t.offset!==void 0&&e.offset.fromArray(t.offset),t.rotation!==void 0&&(e.rotation=t.rotation),t.scale!==void 0&&e.repeat.fromArray(t.scale),e.needsUpdate=!0),e}}class Nrt{constructor(){this.name=Gn.KHR_MESH_QUANTIZATION}}class u$ extends Of{constructor(e,t,r,i){super(e,t,r,i)}copySampleValue_(e){const t=this.resultBuffer,r=this.sampleValues,i=this.valueSize,a=e*i*3+i;for(let s=0;s!==i;s++)t[s]=r[a+s];return t}interpolate_(e,t,r,i){const a=this.resultBuffer,s=this.sampleValues,o=this.valueSize,c=o*2,l=o*3,u=i-t,A=(r-t)/u,f=A*A,h=f*A,g=e*l,y=g-l,w=-2*h+3*f,v=h-f,S=1-w,C=v-f+A;for(let M=0;M!==o;M++){const F=s[y+M+o],D=s[y+M+c]*u,U=s[g+M+o],O=s[g+M]*u;a[M]=S*F+C*D+w*U+v*O}return a}}const Drt=new ma;class Rrt extends u${interpolate_(e,t,r,i){const a=super.interpolate_(e,t,r,i);return Drt.fromArray(a).normalize().toArray(a),a}}const Ro={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},Yh={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},ML={9728:Xi,9729:pi,9984:ub,9985:qh,9986:Yd,9987:Wo},SL={33071:go,33648:ff,10497:td},Ox={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},DM={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},Su={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},Urt={CUBICSPLINE:void 0,LINEAR:gf,STEP:pf},Hx={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function Ort(n){return n.DefaultMaterial===void 0&&(n.DefaultMaterial=new Dg({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:rl})),n.DefaultMaterial}function Ud(n,e,t){for(const r in t.extensions)n[r]===void 0&&(e.userData.gltfExtensions=e.userData.gltfExtensions||{},e.userData.gltfExtensions[r]=t.extensions[r])}function Tl(n,e){e.extras!==void 0&&typeof e.extras=="object"&&Object.assign(n.userData,e.extras)}function Hrt(n,e,t){let r=!1,i=!1,a=!1;for(let l=0,u=e.length;l<u;l++){const A=e[l];if(A.POSITION!==void 0&&(r=!0),A.NORMAL!==void 0&&(i=!0),A.COLOR_0!==void 0&&(a=!0),r&&i&&a)break}if(!r&&!i&&!a)return Promise.resolve(n);const s=[],o=[],c=[];for(let l=0,u=e.length;l<u;l++){const A=e[l];if(r){const f=A.POSITION!==void 0?t.getDependency("accessor",A.POSITION):n.attributes.position;s.push(f)}if(i){const f=A.NORMAL!==void 0?t.getDependency("accessor",A.NORMAL):n.attributes.normal;o.push(f)}if(a){const f=A.COLOR_0!==void 0?t.getDependency("accessor",A.COLOR_0):n.attributes.color;c.push(f)}}return Promise.all([Promise.all(s),Promise.all(o),Promise.all(c)]).then(function(l){const u=l[0],A=l[1],f=l[2];return r&&(n.morphAttributes.position=u),i&&(n.morphAttributes.normal=A),a&&(n.morphAttributes.color=f),n.morphTargetsRelative=!0,n})}function Wrt(n,e){if(n.updateMorphTargets(),e.weights!==void 0)for(let t=0,r=e.weights.length;t<r;t++)n.morphTargetInfluences[t]=e.weights[t];if(e.extras&&Array.isArray(e.extras.targetNames)){const t=e.extras.targetNames;if(n.morphTargetInfluences.length===t.length){n.morphTargetDictionary={};for(let r=0,i=t.length;r<i;r++)n.morphTargetDictionary[t[r]]=r}}}function Qrt(n){let e;const t=n.extensions&&n.extensions[Gn.KHR_DRACO_MESH_COMPRESSION];if(t?e="draco:"+t.bufferView+":"+t.indices+":"+Wx(t.attributes):e=n.indices+":"+Wx(n.attributes)+":"+n.mode,n.targets!==void 0)for(let r=0,i=n.targets.length;r<i;r++)e+=":"+Wx(n.targets[r]);return e}function Wx(n){let e="";const t=Object.keys(n).sort();for(let r=0,i=t.length;r<i;r++)e+=t[r]+":"+n[t[r]]+";";return e}function RM(n){switch(n){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}function $rt(n){return n.search(/\.jpe?g($|\?)/i)>0||n.search(/^data\:image\/jpeg/)===0?"image/jpeg":n.search(/\.webp($|\?)/i)>0||n.search(/^data\:image\/webp/)===0?"image/webp":n.search(/\.ktx2($|\?)/i)>0||n.search(/^data\:image\/ktx2/)===0?"image/ktx2":"image/png"}const jrt=new vn;class zrt{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new hrt,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let r=!1,i=-1,a=!1,s=-1;if(typeof navigator<"u"){const o=navigator.userAgent;r=/^((?!chrome|android).)*safari/i.test(o)===!0;const c=o.match(/Version\/(\d+)/);i=r&&c?parseInt(c[1],10):-1,a=o.indexOf("Firefox")>-1,s=a?o.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>"u"||r&&i<17||a&&s<98?this.textureLoader=new HQ(this.options.manager):this.textureLoader=new KQ(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new _c(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){const r=this,i=this.json,a=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(s){return s._markDefs&&s._markDefs()}),Promise.all(this._invokeAll(function(s){return s.beforeRoot&&s.beforeRoot()})).then(function(){return Promise.all([r.getDependencies("scene"),r.getDependencies("animation"),r.getDependencies("camera")])}).then(function(s){const o={scene:s[0][i.scene||0],scenes:s[0],animations:s[1],cameras:s[2],asset:i.asset,parser:r,userData:{}};return Ud(a,o,i),Tl(o,i),Promise.all(r._invokeAll(function(c){return c.afterRoot&&c.afterRoot(o)})).then(function(){for(const c of o.scenes)c.updateMatrixWorld();e(o)})}).catch(t)}_markDefs(){const e=this.json.nodes||[],t=this.json.skins||[],r=this.json.meshes||[];for(let i=0,a=t.length;i<a;i++){const s=t[i].joints;for(let o=0,c=s.length;o<c;o++)e[s[o]].isBone=!0}for(let i=0,a=e.length;i<a;i++){const s=e[i];s.mesh!==void 0&&(this._addNodeRef(this.meshCache,s.mesh),s.skin!==void 0&&(r[s.mesh].isSkinnedMesh=!0)),s.camera!==void 0&&this._addNodeRef(this.cameraCache,s.camera)}}_addNodeRef(e,t){t!==void 0&&(e.refs[t]===void 0&&(e.refs[t]=e.uses[t]=0),e.refs[t]++)}_getNodeRef(e,t,r){if(e.refs[t]<=1)return r;const i=r.clone(),a=(s,o)=>{const c=this.associations.get(s);c!=null&&this.associations.set(o,c);for(const[l,u]of s.children.entries())a(u,o.children[l])};return a(r,i),i.name+="_instance_"+e.uses[t]++,i}_invokeOne(e){const t=Object.values(this.plugins);t.push(this);for(let r=0;r<t.length;r++){const i=e(t[r]);if(i)return i}return null}_invokeAll(e){const t=Object.values(this.plugins);t.unshift(this);const r=[];for(let i=0;i<t.length;i++){const a=e(t[i]);a&&r.push(a)}return r}getDependency(e,t){const r=e+":"+t;let i=this.cache.get(r);if(!i){switch(e){case"scene":i=this.loadScene(t);break;case"node":i=this._invokeOne(function(a){return a.loadNode&&a.loadNode(t)});break;case"mesh":i=this._invokeOne(function(a){return a.loadMesh&&a.loadMesh(t)});break;case"accessor":i=this.loadAccessor(t);break;case"bufferView":i=this._invokeOne(function(a){return a.loadBufferView&&a.loadBufferView(t)});break;case"buffer":i=this.loadBuffer(t);break;case"material":i=this._invokeOne(function(a){return a.loadMaterial&&a.loadMaterial(t)});break;case"texture":i=this._invokeOne(function(a){return a.loadTexture&&a.loadTexture(t)});break;case"skin":i=this.loadSkin(t);break;case"animation":i=this._invokeOne(function(a){return a.loadAnimation&&a.loadAnimation(t)});break;case"camera":i=this.loadCamera(t);break;default:if(i=this._invokeOne(function(a){return a!=this&&a.getDependency&&a.getDependency(e,t)}),!i)throw new Error("Unknown type: "+e);break}this.cache.add(r,i)}return i}getDependencies(e){let t=this.cache.get(e);if(!t){const r=this,i=this.json[e+(e==="mesh"?"es":"s")]||[];t=Promise.all(i.map(function(a,s){return r.getDependency(e,s)})),this.cache.add(e,t)}return t}loadBuffer(e){const t=this.json.buffers[e],r=this.fileLoader;if(t.type&&t.type!=="arraybuffer")throw new Error("THREE.GLTFLoader: "+t.type+" buffer type is not supported.");if(t.uri===void 0&&e===0)return Promise.resolve(this.extensions[Gn.KHR_BINARY_GLTF].body);const i=this.options;return new Promise(function(a,s){r.load(Ku.resolveURL(t.uri,i.path),a,void 0,function(){s(new Error('THREE.GLTFLoader: Failed to load buffer "'+t.uri+'".'))})})}loadBufferView(e){const t=this.json.bufferViews[e];return this.getDependency("buffer",t.buffer).then(function(r){const i=t.byteLength||0,a=t.byteOffset||0;return r.slice(a,a+i)})}loadAccessor(e){const t=this,r=this.json,i=this.json.accessors[e];if(i.bufferView===void 0&&i.sparse===void 0){const s=Ox[i.type],o=Yh[i.componentType],c=i.normalized===!0,l=new o(i.count*s);return Promise.resolve(new hr(l,s,c))}const a=[];return i.bufferView!==void 0?a.push(this.getDependency("bufferView",i.bufferView)):a.push(null),i.sparse!==void 0&&(a.push(this.getDependency("bufferView",i.sparse.indices.bufferView)),a.push(this.getDependency("bufferView",i.sparse.values.bufferView))),Promise.all(a).then(function(s){const o=s[0],c=Ox[i.type],l=Yh[i.componentType],u=l.BYTES_PER_ELEMENT,A=u*c,f=i.byteOffset||0,h=i.bufferView!==void 0?r.bufferViews[i.bufferView].byteStride:void 0,g=i.normalized===!0;let y,w;if(h&&h!==A){const v=Math.floor(f/h),S="InterleavedBuffer:"+i.bufferView+":"+i.componentType+":"+v+":"+i.count;let C=t.cache.get(S);C||(y=new l(o,v*h,i.count*h/u),C=new Tg(y,h/u),t.cache.add(S,C)),w=new nd(C,c,f%h/u,g)}else o===null?y=new l(i.count*c):y=new l(o,f,i.count*c),w=new hr(y,c,g);if(i.sparse!==void 0){const v=Ox.SCALAR,S=Yh[i.sparse.indices.componentType],C=i.sparse.indices.byteOffset||0,M=i.sparse.values.byteOffset||0,F=new S(s[1],C,i.sparse.count*v),D=new l(s[2],M,i.sparse.count*c);o!==null&&(w=new hr(w.array.slice(),w.itemSize,w.normalized)),w.normalized=!1;for(let U=0,O=F.length;U<O;U++){const T=F[U];if(w.setX(T,D[U*c]),c>=2&&w.setY(T,D[U*c+1]),c>=3&&w.setZ(T,D[U*c+2]),c>=4&&w.setW(T,D[U*c+3]),c>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}w.normalized=g}return w})}loadTexture(e){const t=this.json,r=this.options,a=t.textures[e].source,s=t.images[a];let o=this.textureLoader;if(s.uri){const c=r.manager.getHandler(s.uri);c!==null&&(o=c)}return this.loadTextureImage(e,a,o)}loadTextureImage(e,t,r){const i=this,a=this.json,s=a.textures[e],o=a.images[t],c=(o.uri||o.bufferView)+":"+s.sampler;if(this.textureCache[c])return this.textureCache[c];const l=this.loadImageSource(t,r).then(function(u){u.flipY=!1,u.name=s.name||o.name||"",u.name===""&&typeof o.uri=="string"&&o.uri.startsWith("data:image/")===!1&&(u.name=o.uri);const f=(a.samplers||{})[s.sampler]||{};return u.magFilter=ML[f.magFilter]||pi,u.minFilter=ML[f.minFilter]||Wo,u.wrapS=SL[f.wrapS]||td,u.wrapT=SL[f.wrapT]||td,u.generateMipmaps=!u.isCompressedTexture&&u.minFilter!==Xi&&u.minFilter!==pi,i.associations.set(u,{textures:e}),u}).catch(function(){return null});return this.textureCache[c]=l,l}loadImageSource(e,t){const r=this,i=this.json,a=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(A=>A.clone());const s=i.images[e],o=self.URL||self.webkitURL;let c=s.uri||"",l=!1;if(s.bufferView!==void 0)c=r.getDependency("bufferView",s.bufferView).then(function(A){l=!0;const f=new Blob([A],{type:s.mimeType});return c=o.createObjectURL(f),c});else if(s.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+e+" is missing URI and bufferView");const u=Promise.resolve(c).then(function(A){return new Promise(function(f,h){let g=f;t.isImageBitmapLoader===!0&&(g=function(y){const w=new ai(y);w.needsUpdate=!0,f(w)}),t.load(Ku.resolveURL(A,a.path),g,void 0,h)})}).then(function(A){return l===!0&&o.revokeObjectURL(c),Tl(A,s),A.userData.mimeType=s.mimeType||$rt(s.uri),A}).catch(function(A){throw A});return this.sourceCache[e]=u,u}assignTexture(e,t,r,i){const a=this;return this.getDependency("texture",r.index).then(function(s){if(!s)return null;if(r.texCoord!==void 0&&r.texCoord>0&&(s=s.clone(),s.channel=r.texCoord),a.extensions[Gn.KHR_TEXTURE_TRANSFORM]){const o=r.extensions!==void 0?r.extensions[Gn.KHR_TEXTURE_TRANSFORM]:void 0;if(o){const c=a.associations.get(s);s=a.extensions[Gn.KHR_TEXTURE_TRANSFORM].extendTexture(s,o),a.associations.set(s,c)}}return i!==void 0&&(s.colorSpace=i),e[t]=s,s})}assignFinalMaterial(e){const t=e.geometry;let r=e.material;const i=t.attributes.tangent===void 0,a=t.attributes.color!==void 0,s=t.attributes.normal===void 0;if(e.isPoints){const o="PointsMaterial:"+r.uuid;let c=this.cache.get(o);c||(c=new Mb,Yi.prototype.copy.call(c,r),c.color.copy(r.color),c.map=r.map,c.sizeAttenuation=!1,this.cache.add(o,c)),r=c}else if(e.isLine){const o="LineBasicMaterial:"+r.uuid;let c=this.cache.get(o);c||(c=new Za,Yi.prototype.copy.call(c,r),c.color.copy(r.color),c.map=r.map,this.cache.add(o,c)),r=c}if(i||a||s){let o="ClonedMaterial:"+r.uuid+":";i&&(o+="derivative-tangents:"),a&&(o+="vertex-colors:"),s&&(o+="flat-shading:");let c=this.cache.get(o);c||(c=r.clone(),a&&(c.vertexColors=!0),s&&(c.flatShading=!0),i&&(c.normalScale&&(c.normalScale.y*=-1),c.clearcoatNormalScale&&(c.clearcoatNormalScale.y*=-1)),this.cache.add(o,c),this.associations.set(c,this.associations.get(r))),r=c}e.material=r}getMaterialType(){return Dg}loadMaterial(e){const t=this,r=this.json,i=this.extensions,a=r.materials[e];let s;const o={},c=a.extensions||{},l=[];if(c[Gn.KHR_MATERIALS_UNLIT]){const A=i[Gn.KHR_MATERIALS_UNLIT];s=A.getMaterialType(),l.push(A.extendParams(o,a,t))}else{const A=a.pbrMetallicRoughness||{};if(o.color=new Qt(1,1,1),o.opacity=1,Array.isArray(A.baseColorFactor)){const f=A.baseColorFactor;o.color.setRGB(f[0],f[1],f[2],Xa),o.opacity=f[3]}A.baseColorTexture!==void 0&&l.push(t.assignTexture(o,"map",A.baseColorTexture,Gi)),o.metalness=A.metallicFactor!==void 0?A.metallicFactor:1,o.roughness=A.roughnessFactor!==void 0?A.roughnessFactor:1,A.metallicRoughnessTexture!==void 0&&(l.push(t.assignTexture(o,"metalnessMap",A.metallicRoughnessTexture)),l.push(t.assignTexture(o,"roughnessMap",A.metallicRoughnessTexture))),s=this._invokeOne(function(f){return f.getMaterialType&&f.getMaterialType(e)}),l.push(Promise.all(this._invokeAll(function(f){return f.extendMaterialParams&&f.extendMaterialParams(e,o)})))}a.doubleSided===!0&&(o.side=mc);const u=a.alphaMode||Hx.OPAQUE;if(u===Hx.BLEND?(o.transparent=!0,o.depthWrite=!1):(o.transparent=!1,u===Hx.MASK&&(o.alphaTest=a.alphaCutoff!==void 0?a.alphaCutoff:.5)),a.normalTexture!==void 0&&s!==vo&&(l.push(t.assignTexture(o,"normalMap",a.normalTexture)),o.normalScale=new vt(1,1),a.normalTexture.scale!==void 0)){const A=a.normalTexture.scale;o.normalScale.set(A,A)}if(a.occlusionTexture!==void 0&&s!==vo&&(l.push(t.assignTexture(o,"aoMap",a.occlusionTexture)),a.occlusionTexture.strength!==void 0&&(o.aoMapIntensity=a.occlusionTexture.strength)),a.emissiveFactor!==void 0&&s!==vo){const A=a.emissiveFactor;o.emissive=new Qt().setRGB(A[0],A[1],A[2],Xa)}return a.emissiveTexture!==void 0&&s!==vo&&l.push(t.assignTexture(o,"emissiveMap",a.emissiveTexture,Gi)),Promise.all(l).then(function(){const A=new s(o);return a.name&&(A.name=a.name),Tl(A,a),t.associations.set(A,{materials:e}),a.extensions&&Ud(i,A,a),A})}createUniqueName(e){const t=nr.sanitizeNodeName(e||"");return t in this.nodeNamesUsed?t+"_"+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){const t=this,r=this.extensions,i=this.primitiveCache;function a(o){return r[Gn.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(o,t).then(function(c){return CL(c,o,t)})}const s=[];for(let o=0,c=e.length;o<c;o++){const l=e[o],u=Qrt(l),A=i[u];if(A)s.push(A.promise);else{let f;l.extensions&&l.extensions[Gn.KHR_DRACO_MESH_COMPRESSION]?f=a(l):f=CL(new Hn,l,t),i[u]={primitive:l,promise:f},s.push(f)}}return Promise.all(s)}loadMesh(e){const t=this,r=this.json,i=this.extensions,a=r.meshes[e],s=a.primitives,o=[];for(let c=0,l=s.length;c<l;c++){const u=s[c].material===void 0?Ort(this.cache):this.getDependency("material",s[c].material);o.push(u)}return o.push(t.loadGeometries(s)),Promise.all(o).then(function(c){const l=c.slice(0,c.length-1),u=c[c.length-1],A=[];for(let h=0,g=u.length;h<g;h++){const y=u[h],w=s[h];let v;const S=l[h];if(w.mode===Ro.TRIANGLES||w.mode===Ro.TRIANGLE_STRIP||w.mode===Ro.TRIANGLE_FAN||w.mode===void 0)v=a.isSkinnedMesh===!0?new CP(y,S):new Fi(y,S),v.isSkinnedMesh===!0&&v.normalizeSkinWeights(),w.mode===Ro.TRIANGLE_STRIP?v.geometry=_L(v.geometry,vP):w.mode===Ro.TRIANGLE_FAN&&(v.geometry=_L(v.geometry,pw));else if(w.mode===Ro.LINES)v=new Pc(y,S);else if(w.mode===Ro.LINE_STRIP)v=new Zl(y,S);else if(w.mode===Ro.LINE_LOOP)v=new EP(y,S);else if(w.mode===Ro.POINTS)v=new BP(y,S);else throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+w.mode);Object.keys(v.geometry.morphAttributes).length>0&&Wrt(v,a),v.name=t.createUniqueName(a.name||"mesh_"+e),Tl(v,a),w.extensions&&Ud(i,v,w),t.assignFinalMaterial(v),A.push(v)}for(let h=0,g=A.length;h<g;h++)t.associations.set(A[h],{meshes:e,primitives:h});if(A.length===1)return a.extensions&&Ud(i,A[0],a),A[0];const f=new Rl;a.extensions&&Ud(i,f,a),t.associations.set(f,{meshes:e});for(let h=0,g=A.length;h<g;h++)f.add(A[h]);return f})}loadCamera(e){let t;const r=this.json.cameras[e],i=r[r.type];if(i)return r.type==="perspective"?t=new Aa(bP.radToDeg(i.yfov),i.aspectRatio||1,i.znear||1,i.zfar||2e6):r.type==="orthographic"&&(t=new Rg(-i.xmag,i.xmag,i.ymag,-i.ymag,i.znear,i.zfar)),r.name&&(t.name=this.createUniqueName(r.name)),Tl(t,r),Promise.resolve(t)}loadSkin(e){const t=this.json.skins[e],r=[];for(let i=0,a=t.joints.length;i<a;i++)r.push(this._loadNodeShallow(t.joints[i]));return t.inverseBindMatrices!==void 0?r.push(this.getDependency("accessor",t.inverseBindMatrices)):r.push(null),Promise.all(r).then(function(i){const a=i.pop(),s=i,o=[],c=[];for(let l=0,u=s.length;l<u;l++){const A=s[l];if(A){o.push(A);const f=new vn;a!==null&&f.fromArray(a.array,l*16),c.push(f)}}return new kg(o,c)})}loadAnimation(e){const t=this.json,r=this,i=t.animations[e],a=i.name?i.name:"animation_"+e,s=[],o=[],c=[],l=[],u=[];for(let A=0,f=i.channels.length;A<f;A++){const h=i.channels[A],g=i.samplers[h.sampler],y=h.target,w=y.node,v=i.parameters!==void 0?i.parameters[g.input]:g.input,S=i.parameters!==void 0?i.parameters[g.output]:g.output;y.node!==void 0&&(s.push(this.getDependency("node",w)),o.push(this.getDependency("accessor",v)),c.push(this.getDependency("accessor",S)),l.push(g),u.push(y))}return Promise.all([Promise.all(s),Promise.all(o),Promise.all(c),Promise.all(l),Promise.all(u)]).then(function(A){const f=A[0],h=A[1],g=A[2],y=A[3],w=A[4],v=[];for(let S=0,C=f.length;S<C;S++){const M=f[S],F=h[S],D=g[S],U=y[S],O=w[S];if(M===void 0)continue;M.updateMatrix&&M.updateMatrix();const T=r._createAnimationTracks(M,F,D,U,O);if(T)for(let P=0;P<T.length;P++)v.push(T[P])}return new wf(a,void 0,v)})}createNodeMesh(e){const t=this.json,r=this,i=t.nodes[e];return i.mesh===void 0?null:r.getDependency("mesh",i.mesh).then(function(a){const s=r._getNodeRef(r.meshCache,i.mesh,a);return i.weights!==void 0&&s.traverse(function(o){if(o.isMesh)for(let c=0,l=i.weights.length;c<l;c++)o.morphTargetInfluences[c]=i.weights[c]}),s})}loadNode(e){const t=this.json,r=this,i=t.nodes[e],a=r._loadNodeShallow(e),s=[],o=i.children||[];for(let l=0,u=o.length;l<u;l++)s.push(r.getDependency("node",o[l]));const c=i.skin===void 0?Promise.resolve(null):r.getDependency("skin",i.skin);return Promise.all([a,Promise.all(s),c]).then(function(l){const u=l[0],A=l[1],f=l[2];f!==null&&u.traverse(function(h){h.isSkinnedMesh&&h.bind(f,jrt)});for(let h=0,g=A.length;h<g;h++)u.add(A[h]);return u})}_loadNodeShallow(e){const t=this.json,r=this.extensions,i=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];const a=t.nodes[e],s=a.name?i.createUniqueName(a.name):"",o=[],c=i._invokeOne(function(l){return l.createNodeMesh&&l.createNodeMesh(e)});return c&&o.push(c),a.camera!==void 0&&o.push(i.getDependency("camera",a.camera).then(function(l){return i._getNodeRef(i.cameraCache,a.camera,l)})),i._invokeAll(function(l){return l.createNodeAttachment&&l.createNodeAttachment(e)}).forEach(function(l){o.push(l)}),this.nodeCache[e]=Promise.all(o).then(function(l){let u;if(a.isBone===!0?u=new xb:l.length>1?u=new Rl:l.length===1?u=l[0]:u=new Zn,u!==l[0])for(let A=0,f=l.length;A<f;A++)u.add(l[A]);if(a.name&&(u.userData.name=a.name,u.name=s),Tl(u,a),a.extensions&&Ud(r,u,a),a.matrix!==void 0){const A=new vn;A.fromArray(a.matrix),u.applyMatrix4(A)}else a.translation!==void 0&&u.position.fromArray(a.translation),a.rotation!==void 0&&u.quaternion.fromArray(a.rotation),a.scale!==void 0&&u.scale.fromArray(a.scale);return i.associations.has(u)||i.associations.set(u,{}),i.associations.get(u).nodes=e,u}),this.nodeCache[e]}loadScene(e){const t=this.extensions,r=this.json.scenes[e],i=this,a=new Rl;r.name&&(a.name=i.createUniqueName(r.name)),Tl(a,r),r.extensions&&Ud(t,a,r);const s=r.nodes||[],o=[];for(let c=0,l=s.length;c<l;c++)o.push(i.getDependency("node",s[c]));return Promise.all(o).then(function(c){for(let u=0,A=c.length;u<A;u++)a.add(c[u]);const l=u=>{const A=new Map;for(const[f,h]of i.associations)(f instanceof Yi||f instanceof ai)&&A.set(f,h);return u.traverse(f=>{const h=i.associations.get(f);h!=null&&A.set(f,h)}),A};return i.associations=l(a),a})}_createAnimationTracks(e,t,r,i,a){const s=[],o=e.name?e.name:e.uuid,c=[];Su[a.path]===Su.weights?e.traverse(function(f){f.morphTargetInfluences&&c.push(f.name?f.name:f.uuid)}):c.push(o);let l;switch(Su[a.path]){case Su.weights:l=TA;break;case Su.rotation:l=kA;break;case Su.position:case Su.scale:l=IA;break;default:switch(r.itemSize){case 1:l=TA;break;case 2:case 3:default:l=IA;break}break}const u=i.interpolation!==void 0?Urt[i.interpolation]:gf,A=this._getArrayFromAccessor(r);for(let f=0,h=c.length;f<h;f++){const g=new l(c[f]+"."+Su[a.path],t.array,A,u);i.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(g),s.push(g)}return s}_getArrayFromAccessor(e){let t=e.array;if(e.normalized){const r=RM(t.constructor),i=new Float32Array(t.length);for(let a=0,s=t.length;a<s;a++)i[a]=t[a]*r;t=i}return t}_createCubicSplineTrackInterpolant(e){e.createInterpolant=function(r){const i=this instanceof kA?Rrt:u$;return new i(this.times,this.values,this.getValueSize()/3,r)},e.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function Vrt(n,e,t){const r=e.attributes,i=new qa;if(r.POSITION!==void 0){const o=t.json.accessors[r.POSITION],c=o.min,l=o.max;if(c!==void 0&&l!==void 0){if(i.set(new ye(c[0],c[1],c[2]),new ye(l[0],l[1],l[2])),o.normalized){const u=RM(Yh[o.componentType]);i.min.multiplyScalar(u),i.max.multiplyScalar(u)}}else return}else return;const a=e.targets;if(a!==void 0){const o=new ye,c=new ye;for(let l=0,u=a.length;l<u;l++){const A=a[l];if(A.POSITION!==void 0){const f=t.json.accessors[A.POSITION],h=f.min,g=f.max;if(h!==void 0&&g!==void 0){if(c.setX(Math.max(Math.abs(h[0]),Math.abs(g[0]))),c.setY(Math.max(Math.abs(h[1]),Math.abs(g[1]))),c.setZ(Math.max(Math.abs(h[2]),Math.abs(g[2]))),f.normalized){const y=RM(Yh[f.componentType]);c.multiplyScalar(y)}o.max(c)}}}i.expandByVector(o)}n.boundingBox=i;const s=new Fa;i.getCenter(s.center),s.radius=i.min.distanceTo(i.max)/2,n.boundingSphere=s}function CL(n,e,t){const r=e.attributes,i=[];function a(s,o){return t.getDependency("accessor",s).then(function(c){n.setAttribute(o,c)})}for(const s in r){const o=DM[s]||s.toLowerCase();o in n.attributes||i.push(a(r[s],o))}if(e.indices!==void 0&&!n.index){const s=t.getDependency("accessor",e.indices).then(function(o){n.setIndex(o)});i.push(s)}return Jn.workingColorSpace!==Xa&&"COLOR_0"in r,Tl(n,e),Vrt(n,e,t),Promise.all(i).then(function(){return e.targets!==void 0?Hrt(n,e.targets,t):n})}const Grt=Object.freeze(Object.defineProperty({__proto__:null,GLTFLoader:Art},Symbol.toStringTag,{value:"Module"}));/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var UM=function(n,e){return UM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},UM(n,e)};function Tc(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");UM(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var OM=function(){return OM=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},OM.apply(this,arguments)};function _s(n,e,t,r){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function o(u){try{l(r.next(u))}catch(A){s(A)}}function c(u){try{l(r.throw(u))}catch(A){s(A)}}function l(u){u.done?a(u.value):i(u.value).then(o,c)}l((r=r.apply(n,[])).next())})}function Va(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(l){return function(u){return c([l,u])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(a=l[0]&2?i.return:l[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;switch(i=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,i=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(n,t)}catch(u){l=[6,u],i=0}finally{r=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var eu=(function(){function n(e,t,r,i){this.left=e,this.top=t,this.width=r,this.height=i}return n.prototype.add=function(e,t,r,i){return new n(this.left+e,this.top+t,this.width+r,this.height+i)},n.fromClientRect=function(e,t){return new n(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},n.fromDOMRectList=function(e,t){var r=Array.from(t).find(function(i){return i.width!==0});return r?new n(r.left+e.windowBounds.left,r.top+e.windowBounds.top,r.width,r.height):n.EMPTY},n.EMPTY=new n(0,0,0,0),n})(),Qb=function(n,e){return eu.fromClientRect(n,e.getBoundingClientRect())},Krt=function(n){var e=n.body,t=n.documentElement;if(!e||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),i=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new eu(0,0,r,i)},$b=function(n){for(var e=[],t=0,r=n.length;t<r;){var i=n.charCodeAt(t++);if(i>=55296&&i<=56319&&t<r){var a=n.charCodeAt(t++);(a&64512)===56320?e.push(((i&1023)<<10)+(a&1023)+65536):(e.push(i),t--)}else e.push(i)}return e},Bi=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,n);var t=n.length;if(!t)return"";for(var r=[],i=-1,a="";++i<t;){var s=n[i];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(i+1===t||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},PL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qrt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var dv=0;dv<PL.length;dv++)qrt[PL.charCodeAt(dv)]=dv;var EL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Av=0;Av<EL.length;Av++)Wm[EL.charCodeAt(Av)]=Av;var Xrt=function(n){var e=n.length*.75,t=n.length,r,i=0,a,s,o,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<t;r+=4)a=Wm[n.charCodeAt(r)],s=Wm[n.charCodeAt(r+1)],o=Wm[n.charCodeAt(r+2)],c=Wm[n.charCodeAt(r+3)],u[i++]=a<<2|s>>4,u[i++]=(s&15)<<4|o>>2,u[i++]=(o&3)<<6|c&63;return l},Yrt=function(n){for(var e=n.length,t=[],r=0;r<e;r+=2)t.push(n[r+1]<<8|n[r]);return t},Jrt=function(n){for(var e=n.length,t=[],r=0;r<e;r+=4)t.push(n[r+3]<<24|n[r+2]<<16|n[r+1]<<8|n[r]);return t},hA=5,eE=11,Qx=2,Zrt=eE-hA,d$=65536>>hA,eit=1<<hA,$x=eit-1,tit=1024>>hA,nit=d$+tit,rit=nit,iit=32,ait=rit+iit,sit=65536>>eE,oit=1<<Zrt,cit=oit-1,BL=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},lit=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},uit=function(n,e){var t=Xrt(n),r=Array.isArray(t)?Jrt(t):new Uint32Array(t),i=Array.isArray(t)?Yrt(t):new Uint16Array(t),a=24,s=BL(i,a/2,r[4]/2),o=r[5]===2?BL(i,(a+r[4])/2):lit(r,Math.ceil((a+r[4])/4));return new dit(r[0],r[1],r[2],r[3],s,o)},dit=(function(){function n(e,t,r,i,a,s){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=i,this.index=a,this.data=s}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>hA],t=(t<<Qx)+(e&$x),this.data[t];if(e<=65535)return t=this.index[d$+(e-55296>>hA)],t=(t<<Qx)+(e&$x),this.data[t];if(e<this.highStart)return t=ait-sit+(e>>eE),t=this.index[t],t+=e>>hA&cit,t=this.index[t],t=(t<<Qx)+(e&$x),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n})(),TL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ait=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var hv=0;hv<TL.length;hv++)Ait[TL.charCodeAt(hv)]=hv;var hit="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==",kL=50,fit=1,A$=2,h$=3,mit=4,pit=5,IL=7,f$=8,LL=9,Uu=10,HM=11,FL=12,WM=13,git=14,Qm=15,QM=16,fv=17,Bm=18,vit=19,NL=20,$M=21,Tm=22,jx=23,Lh=24,ho=25,$m=26,jm=27,Fh=28,yit=29,Gd=30,wit=31,mv=32,pv=33,jM=34,zM=35,VM=36,rg=37,GM=38,Kv=39,qv=40,zx=41,m$=42,bit=43,_it=[9001,65288],p$="!",Xn="×",gv="÷",KM=uit(hit),El=[Gd,VM],qM=[fit,A$,h$,pit],g$=[Uu,f$],DL=[jm,$m],xit=qM.concat(g$),RL=[GM,Kv,qv,jM,zM],Mit=[Qm,WM],Sit=function(n,e){e===void 0&&(e="strict");var t=[],r=[],i=[];return n.forEach(function(a,s){var o=KM.get(a);if(o>kL?(i.push(!0),o-=kL):i.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return r.push(s),t.push(QM);if(o===mit||o===HM){if(s===0)return r.push(s),t.push(Gd);var c=t[s-1];return xit.indexOf(c)===-1?(r.push(r[s-1]),t.push(c)):(r.push(s),t.push(Gd))}if(r.push(s),o===wit)return t.push(e==="strict"?$M:rg);if(o===m$||o===yit)return t.push(Gd);if(o===bit)return a>=131072&&a<=196605||a>=196608&&a<=262141?t.push(rg):t.push(Gd);t.push(o)}),[r,t,i]},Vx=function(n,e,t,r){var i=r[t];if(Array.isArray(n)?n.indexOf(i)!==-1:n===i)for(var a=t;a<=r.length;){a++;var s=r[a];if(s===e)return!0;if(s!==Uu)break}if(i===Uu)for(var a=t;a>0;){a--;var o=r[a];if(Array.isArray(n)?n.indexOf(o)!==-1:n===o)for(var c=t;c<=r.length;){c++;var s=r[c];if(s===e)return!0;if(s!==Uu)break}if(o!==Uu)break}return!1},UL=function(n,e){for(var t=n;t>=0;){var r=e[t];if(r===Uu)t--;else return r}return 0},Cit=function(n,e,t,r,i){if(t[r]===0)return Xn;var a=r-1;if(Array.isArray(i)&&i[a]===!0)return Xn;var s=a-1,o=a+1,c=e[a],l=s>=0?e[s]:0,u=e[o];if(c===A$&&u===h$)return Xn;if(qM.indexOf(c)!==-1)return p$;if(qM.indexOf(u)!==-1||g$.indexOf(u)!==-1)return Xn;if(UL(a,e)===f$)return gv;if(KM.get(n[a])===HM||(c===mv||c===pv)&&KM.get(n[o])===HM||c===IL||u===IL||c===LL||[Uu,WM,Qm].indexOf(c)===-1&&u===LL||[fv,Bm,vit,Lh,Fh].indexOf(u)!==-1||UL(a,e)===Tm||Vx(jx,Tm,a,e)||Vx([fv,Bm],$M,a,e)||Vx(FL,FL,a,e))return Xn;if(c===Uu)return gv;if(c===jx||u===jx)return Xn;if(u===QM||c===QM)return gv;if([WM,Qm,$M].indexOf(u)!==-1||c===git||l===VM&&Mit.indexOf(c)!==-1||c===Fh&&u===VM||u===NL||El.indexOf(u)!==-1&&c===ho||El.indexOf(c)!==-1&&u===ho||c===jm&&[rg,mv,pv].indexOf(u)!==-1||[rg,mv,pv].indexOf(c)!==-1&&u===$m||El.indexOf(c)!==-1&&DL.indexOf(u)!==-1||DL.indexOf(c)!==-1&&El.indexOf(u)!==-1||[jm,$m].indexOf(c)!==-1&&(u===ho||[Tm,Qm].indexOf(u)!==-1&&e[o+1]===ho)||[Tm,Qm].indexOf(c)!==-1&&u===ho||c===ho&&[ho,Fh,Lh].indexOf(u)!==-1)return Xn;if([ho,Fh,Lh,fv,Bm].indexOf(u)!==-1)for(var A=a;A>=0;){var f=e[A];if(f===ho)return Xn;if([Fh,Lh].indexOf(f)!==-1)A--;else break}if([jm,$m].indexOf(u)!==-1)for(var A=[fv,Bm].indexOf(c)!==-1?s:a;A>=0;){var f=e[A];if(f===ho)return Xn;if([Fh,Lh].indexOf(f)!==-1)A--;else break}if(GM===c&&[GM,Kv,jM,zM].indexOf(u)!==-1||[Kv,jM].indexOf(c)!==-1&&[Kv,qv].indexOf(u)!==-1||[qv,zM].indexOf(c)!==-1&&u===qv||RL.indexOf(c)!==-1&&[NL,$m].indexOf(u)!==-1||RL.indexOf(u)!==-1&&c===jm||El.indexOf(c)!==-1&&El.indexOf(u)!==-1||c===Lh&&El.indexOf(u)!==-1||El.concat(ho).indexOf(c)!==-1&&u===Tm&&_it.indexOf(n[o])===-1||El.concat(ho).indexOf(u)!==-1&&c===Bm)return Xn;if(c===zx&&u===zx){for(var h=t[a],g=1;h>0&&(h--,e[h]===zx);)g++;if(g%2!==0)return Xn}return c===mv&&u===pv?Xn:gv},Pit=function(n,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=Sit(n,e.lineBreak),r=t[0],i=t[1],a=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(i=i.map(function(o){return[ho,Gd,m$].indexOf(o)!==-1?rg:o}));var s=e.wordBreak==="keep-all"?a.map(function(o,c){return o&&n[c]>=19968&&n[c]<=40959}):void 0;return[r,i,s]},Eit=(function(){function n(e,t,r,i){this.codePoints=e,this.required=t===p$,this.start=r,this.end=i}return n.prototype.slice=function(){return Bi.apply(void 0,this.codePoints.slice(this.start,this.end))},n})(),Bit=function(n,e){var t=$b(n),r=Pit(t,e),i=r[0],a=r[1],s=r[2],o=t.length,c=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var u=Xn;l<o&&(u=Cit(t,a,i,++l,s))===Xn;);if(u!==Xn||l===o){var A=new Eit(t,u,c,l);return c=l,{value:A,done:!1}}return{done:!0,value:null}}}},Tit=1,kit=2,Ug=4,OL=8,ww=10,HL=47,mp=92,Iit=9,Lit=32,vv=34,km=61,Fit=35,Nit=36,Dit=37,yv=39,wv=40,Im=41,Rit=95,$s=45,Uit=33,Oit=60,Hit=62,Wit=64,Qit=91,$it=93,jit=61,zit=123,bv=63,Vit=125,WL=124,Git=126,Kit=128,QL=65533,Gx=42,nA=43,qit=44,Xit=58,Yit=59,ig=46,Jit=0,Zit=8,eat=11,tat=14,nat=31,rat=127,Vc=-1,v$=48,y$=97,w$=101,iat=102,aat=117,sat=122,b$=65,_$=69,x$=70,oat=85,cat=90,Ga=function(n){return n>=v$&&n<=57},lat=function(n){return n>=55296&&n<=57343},Nh=function(n){return Ga(n)||n>=b$&&n<=x$||n>=y$&&n<=iat},uat=function(n){return n>=y$&&n<=sat},dat=function(n){return n>=b$&&n<=cat},Aat=function(n){return uat(n)||dat(n)},hat=function(n){return n>=Kit},_v=function(n){return n===ww||n===Iit||n===Lit},bw=function(n){return Aat(n)||hat(n)||n===Rit},$L=function(n){return bw(n)||Ga(n)||n===$s},fat=function(n){return n>=Jit&&n<=Zit||n===eat||n>=tat&&n<=nat||n===rat},Bu=function(n,e){return n!==mp?!1:e!==ww},xv=function(n,e,t){return n===$s?bw(e)||Bu(e,t):bw(n)?!0:!!(n===mp&&Bu(n,e))},Kx=function(n,e,t){return n===nA||n===$s?Ga(e)?!0:e===ig&&Ga(t):Ga(n===ig?e:n)},mat=function(n){var e=0,t=1;(n[e]===nA||n[e]===$s)&&(n[e]===$s&&(t=-1),e++);for(var r=[];Ga(n[e]);)r.push(n[e++]);var i=r.length?parseInt(Bi.apply(void 0,r),10):0;n[e]===ig&&e++;for(var a=[];Ga(n[e]);)a.push(n[e++]);var s=a.length,o=s?parseInt(Bi.apply(void 0,a),10):0;(n[e]===_$||n[e]===w$)&&e++;var c=1;(n[e]===nA||n[e]===$s)&&(n[e]===$s&&(c=-1),e++);for(var l=[];Ga(n[e]);)l.push(n[e++]);var u=l.length?parseInt(Bi.apply(void 0,l),10):0;return t*(i+o*Math.pow(10,-s))*Math.pow(10,c*u)},pat={type:2},gat={type:3},vat={type:4},yat={type:13},wat={type:8},bat={type:21},_at={type:9},xat={type:10},Mat={type:11},Sat={type:12},Cat={type:14},Mv={type:23},Pat={type:1},Eat={type:25},Bat={type:24},Tat={type:26},kat={type:27},Iat={type:28},Lat={type:29},Fat={type:31},XM={type:32},M$=(function(){function n(){this._value=[]}return n.prototype.write=function(e){this._value=this._value.concat($b(e))},n.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==XM;)e.push(t),t=this.consumeToken();return e},n.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case vv:return this.consumeStringToken(vv);case Fit:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),i=this.peekCodePoint(2);if($L(t)||Bu(r,i)){var a=xv(t,r,i)?kit:Tit,s=this.consumeName();return{type:5,value:s,flags:a}}break;case Nit:if(this.peekCodePoint(0)===km)return this.consumeCodePoint(),yat;break;case yv:return this.consumeStringToken(yv);case wv:return pat;case Im:return gat;case Gx:if(this.peekCodePoint(0)===km)return this.consumeCodePoint(),Cat;break;case nA:if(Kx(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case qit:return vat;case $s:var o=e,c=this.peekCodePoint(0),l=this.peekCodePoint(1);if(Kx(o,c,l))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(xv(o,c,l))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(c===$s&&l===Hit)return this.consumeCodePoint(),this.consumeCodePoint(),Bat;break;case ig:if(Kx(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case HL:if(this.peekCodePoint(0)===Gx)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===Gx&&(u=this.consumeCodePoint(),u===HL))return this.consumeToken();if(u===Vc)return this.consumeToken()}break;case Xit:return Tat;case Yit:return kat;case Oit:if(this.peekCodePoint(0)===Uit&&this.peekCodePoint(1)===$s&&this.peekCodePoint(2)===$s)return this.consumeCodePoint(),this.consumeCodePoint(),Eat;break;case Wit:var A=this.peekCodePoint(0),f=this.peekCodePoint(1),h=this.peekCodePoint(2);if(xv(A,f,h)){var s=this.consumeName();return{type:7,value:s}}break;case Qit:return Iat;case mp:if(Bu(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case $it:return Lat;case jit:if(this.peekCodePoint(0)===km)return this.consumeCodePoint(),wat;break;case zit:return Mat;case Vit:return Sat;case aat:case oat:var g=this.peekCodePoint(0),y=this.peekCodePoint(1);return g===nA&&(Nh(y)||y===bv)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case WL:if(this.peekCodePoint(0)===km)return this.consumeCodePoint(),_at;if(this.peekCodePoint(0)===WL)return this.consumeCodePoint(),bat;break;case Git:if(this.peekCodePoint(0)===km)return this.consumeCodePoint(),xat;break;case Vc:return XM}return _v(e)?(this.consumeWhiteSpace(),Fat):Ga(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):bw(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Bi(e)}},n.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},n.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},n.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},n.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Nh(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var r=!1;t===bv&&e.length<6;)e.push(t),t=this.consumeCodePoint(),r=!0;if(r){var i=parseInt(Bi.apply(void 0,e.map(function(c){return c===bv?v$:c})),16),a=parseInt(Bi.apply(void 0,e.map(function(c){return c===bv?x$:c})),16);return{type:30,start:i,end:a}}var s=parseInt(Bi.apply(void 0,e),16);if(this.peekCodePoint(0)===$s&&Nh(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];Nh(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();var a=parseInt(Bi.apply(void 0,o),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},n.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===wv?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===wv?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},n.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Vc)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===yv||t===vv){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Vc||this.peekCodePoint(0)===Im)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Mv)}for(;;){var i=this.consumeCodePoint();if(i===Vc||i===Im)return{type:22,value:Bi.apply(void 0,e)};if(_v(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Vc||this.peekCodePoint(0)===Im?(this.consumeCodePoint(),{type:22,value:Bi.apply(void 0,e)}):(this.consumeBadUrlRemnants(),Mv);if(i===vv||i===yv||i===wv||fat(i))return this.consumeBadUrlRemnants(),Mv;if(i===mp)if(Bu(i,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Mv;else e.push(i)}},n.prototype.consumeWhiteSpace=function(){for(;_v(this.peekCodePoint(0));)this.consumeCodePoint()},n.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===Im||e===Vc)return;Bu(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},n.prototype.consumeStringSlice=function(e){for(var t=5e4,r="";e>0;){var i=Math.min(t,e);r+=Bi.apply(void 0,this._value.splice(0,i)),e-=i}return this._value.shift(),r},n.prototype.consumeStringToken=function(e){var t="",r=0;do{var i=this._value[r];if(i===Vc||i===void 0||i===e)return t+=this.consumeStringSlice(r),{type:0,value:t};if(i===ww)return this._value.splice(0,r),Pat;if(i===mp){var a=this._value[r+1];a!==Vc&&a!==void 0&&(a===ww?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):Bu(i,a)&&(t+=this.consumeStringSlice(r),t+=Bi(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},n.prototype.consumeNumber=function(){var e=[],t=Ug,r=this.peekCodePoint(0);for((r===nA||r===$s)&&e.push(this.consumeCodePoint());Ga(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(r===ig&&Ga(i))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=OL;Ga(this.peekCodePoint(0));)e.push(this.consumeCodePoint());r=this.peekCodePoint(0),i=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((r===_$||r===w$)&&((i===nA||i===$s)&&Ga(a)||Ga(i)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=OL;Ga(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[mat(e),t]},n.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],r=e[1],i=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if(xv(i,a,s)){var o=this.consumeName();return{type:15,number:t,flags:r,unit:o}}return i===Dit?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},n.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Nh(e)){for(var t=Bi(e);Nh(this.peekCodePoint(0))&&t.length<6;)t+=Bi(this.consumeCodePoint());_v(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||lat(r)||r>1114111?QL:r}return e===Vc?QL:e},n.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if($L(t))e+=Bi(t);else if(Bu(t,this.peekCodePoint(0)))e+=Bi(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},n})(),S$=(function(){function n(e){this._tokens=e}return n.create=function(e){var t=new M$;return t.write(e),new n(t.read())},n.parseValue=function(e){return n.create(e).parseComponentValue()},n.parseValues=function(e){return n.create(e).parseComponentValues()},n.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},n.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},n.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},n.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},r=this.consumeToken();;){if(r.type===32||Dat(r,e))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},n.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},n.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?XM:e},n.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},n})(),Og=function(n){return n.type===15},Wf=function(n){return n.type===17},Lr=function(n){return n.type===20},Nat=function(n){return n.type===0},YM=function(n,e){return Lr(n)&&n.value===e},C$=function(n){return n.type!==31},bf=function(n){return n.type!==31&&n.type!==4},ol=function(n){var e=[],t=[];return n.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&e.push(t),e},Dat=function(n,e){return e===11&&n.type===12||e===28&&n.type===29?!0:e===2&&n.type===3},rd=function(n){return n.type===17||n.type===15},Ui=function(n){return n.type===16||rd(n)},P$=function(n){return n.length>1?[n[0],n[1]]:[n[0]]},La={type:17,number:0,flags:Ug},tE={type:16,number:50,flags:Ug},Ou={type:16,number:100,flags:Ug},zm=function(n,e,t){var r=n[0],i=n[1];return[$r(r,e),$r(typeof i<"u"?i:r,t)]},$r=function(n,e){if(n.type===16)return n.number/100*e;if(Og(n))switch(n.unit){case"rem":case"em":return 16*n.number;case"px":default:return n.number}return n.number},E$="deg",B$="grad",T$="rad",k$="turn",jb={name:"angle",parse:function(n,e){if(e.type===15)switch(e.unit){case E$:return Math.PI*e.number/180;case B$:return Math.PI/200*e.number;case T$:return e.number;case k$:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},I$=function(n){return n.type===15&&(n.unit===E$||n.unit===B$||n.unit===T$||n.unit===k$)},L$=function(n){var e=n.filter(Lr).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[La,La];case"to top":case"bottom":return Qo(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[La,Ou];case"to right":case"left":return Qo(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ou,Ou];case"to bottom":case"top":return Qo(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ou,La];case"to left":case"right":return Qo(270)}return 0},Qo=function(n){return Math.PI*n/180},qu={name:"color",parse:function(n,e){if(e.type===18){var t=Rat[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(n,e.values)}if(e.type===5){if(e.value.length===3){var r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3);return Hu(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(e.value.length===4){var r=e.value.substring(0,1),i=e.value.substring(1,2),a=e.value.substring(2,3),s=e.value.substring(3,4);return Hu(parseInt(r+r,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(e.value.length===6){var r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6);return Hu(parseInt(r,16),parseInt(i,16),parseInt(a,16),1)}if(e.value.length===8){var r=e.value.substring(0,2),i=e.value.substring(2,4),a=e.value.substring(4,6),s=e.value.substring(6,8);return Hu(parseInt(r,16),parseInt(i,16),parseInt(a,16),parseInt(s,16)/255)}}if(e.type===20){var o=Vl[e.value.toUpperCase()];if(typeof o<"u")return o}return Vl.TRANSPARENT}},Xu=function(n){return(255&n)===0},ua=function(n){var e=255&n,t=255&n>>8,r=255&n>>16,i=255&n>>24;return e<255?"rgba("+i+","+r+","+t+","+e/255+")":"rgb("+i+","+r+","+t+")"},Hu=function(n,e,t,r){return(n<<24|e<<16|t<<8|Math.round(r*255)<<0)>>>0},jL=function(n,e){if(n.type===17)return n.number;if(n.type===16){var t=e===3?1:255;return e===3?n.number/100*t:Math.round(n.number/100*t)}return 0},zL=function(n,e){var t=e.filter(bf);if(t.length===3){var r=t.map(jL),i=r[0],a=r[1],s=r[2];return Hu(i,a,s,1)}if(t.length===4){var o=t.map(jL),i=o[0],a=o[1],s=o[2],c=o[3];return Hu(i,a,s,c)}return 0};function qx(n,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(e-n)*t*6+n:t<1/2?e:t<2/3?(e-n)*6*(2/3-t)+n:n}var VL=function(n,e){var t=e.filter(bf),r=t[0],i=t[1],a=t[2],s=t[3],o=(r.type===17?Qo(r.number):jb.parse(n,r))/(Math.PI*2),c=Ui(i)?i.number/100:0,l=Ui(a)?a.number/100:0,u=typeof s<"u"&&Ui(s)?$r(s,1):1;if(c===0)return Hu(l*255,l*255,l*255,1);var A=l<=.5?l*(c+1):l+c-l*c,f=l*2-A,h=qx(f,A,o+1/3),g=qx(f,A,o),y=qx(f,A,o-1/3);return Hu(h*255,g*255,y*255,u)},Rat={hsl:VL,hsla:VL,rgb:zL,rgba:zL},pp=function(n,e){return qu.parse(n,S$.create(e).parseComponentValue())},Vl={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},Uat={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(n,e){return e.map(function(t){if(Lr(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Oat={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},zb=function(n,e){var t=qu.parse(n,e[0]),r=e[1];return r&&Ui(r)?{color:t,stop:r}:{color:t,stop:null}},GL=function(n,e){var t=n[0],r=n[n.length-1];t.stop===null&&(t.stop=La),r.stop===null&&(r.stop=Ou);for(var i=[],a=0,s=0;s<n.length;s++){var o=n[s].stop;if(o!==null){var c=$r(o,e);c>a?i.push(c):i.push(a),a=c}else i.push(null)}for(var l=null,s=0;s<i.length;s++){var u=i[s];if(u===null)l===null&&(l=s);else if(l!==null){for(var A=s-l,f=i[l-1],h=(u-f)/(A+1),g=1;g<=A;g++)i[l+g-1]=h*g;l=null}}return n.map(function(y,w){var v=y.color;return{color:v,stop:Math.max(Math.min(1,i[w]/e),0)}})},Hat=function(n,e,t){var r=e/2,i=t/2,a=$r(n[0],e)-r,s=i-$r(n[1],t);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},Wat=function(n,e,t){var r=typeof n=="number"?n:Hat(n,e,t),i=Math.abs(e*Math.sin(r))+Math.abs(t*Math.cos(r)),a=e/2,s=t/2,o=i/2,c=Math.sin(r-Math.PI/2)*o,l=Math.cos(r-Math.PI/2)*o;return[i,a-l,a+l,s-c,s+c]},hc=function(n,e){return Math.sqrt(n*n+e*e)},KL=function(n,e,t,r,i){var a=[[0,0],[0,e],[n,0],[n,e]];return a.reduce(function(s,o){var c=o[0],l=o[1],u=hc(t-c,r-l);return(i?u<s.optimumDistance:u>s.optimumDistance)?{optimumCorner:o,optimumDistance:u}:s},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},Qat=function(n,e,t,r,i){var a=0,s=0;switch(n.size){case 0:n.shape===0?a=s=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-i)):n.shape===1&&(a=Math.min(Math.abs(e),Math.abs(e-r)),s=Math.min(Math.abs(t),Math.abs(t-i)));break;case 2:if(n.shape===0)a=s=Math.min(hc(e,t),hc(e,t-i),hc(e-r,t),hc(e-r,t-i));else if(n.shape===1){var o=Math.min(Math.abs(t),Math.abs(t-i))/Math.min(Math.abs(e),Math.abs(e-r)),c=KL(r,i,e,t,!0),l=c[0],u=c[1];a=hc(l-e,(u-t)/o),s=o*a}break;case 1:n.shape===0?a=s=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(t),Math.abs(t-i)):n.shape===1&&(a=Math.max(Math.abs(e),Math.abs(e-r)),s=Math.max(Math.abs(t),Math.abs(t-i)));break;case 3:if(n.shape===0)a=s=Math.max(hc(e,t),hc(e,t-i),hc(e-r,t),hc(e-r,t-i));else if(n.shape===1){var o=Math.max(Math.abs(t),Math.abs(t-i))/Math.max(Math.abs(e),Math.abs(e-r)),A=KL(r,i,e,t,!1),l=A[0],u=A[1];a=hc(l-e,(u-t)/o),s=o*a}break}return Array.isArray(n.size)&&(a=$r(n.size[0],r),s=n.size.length===2?$r(n.size[1],i):a),[a,s]},$at=function(n,e){var t=Qo(180),r=[];return ol(e).forEach(function(i,a){if(a===0){var s=i[0];if(s.type===20&&s.value==="to"){t=L$(i);return}else if(I$(s)){t=jb.parse(n,s);return}}var o=zb(n,i);r.push(o)}),{angle:t,stops:r,type:1}},Sv=function(n,e){var t=Qo(180),r=[];return ol(e).forEach(function(i,a){if(a===0){var s=i[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){t=L$(i);return}else if(I$(s)){t=(jb.parse(n,s)+Qo(270))%Qo(360);return}}var o=zb(n,i);r.push(o)}),{angle:t,stops:r,type:1}},jat=function(n,e){var t=Qo(180),r=[],i=1,a=0,s=3,o=[];return ol(e).forEach(function(c,l){var u=c[0];if(l===0){if(Lr(u)&&u.value==="linear"){i=1;return}else if(Lr(u)&&u.value==="radial"){i=2;return}}if(u.type===18){if(u.name==="from"){var A=qu.parse(n,u.values[0]);r.push({stop:La,color:A})}else if(u.name==="to"){var A=qu.parse(n,u.values[0]);r.push({stop:Ou,color:A})}else if(u.name==="color-stop"){var f=u.values.filter(bf);if(f.length===2){var A=qu.parse(n,f[1]),h=f[0];Wf(h)&&r.push({stop:{type:16,number:h.number*100,flags:h.flags},color:A})}}}}),i===1?{angle:(t+Qo(180))%Qo(360),stops:r,type:i}:{size:s,shape:a,stops:r,position:o,type:i}},F$="closest-side",N$="farthest-side",D$="closest-corner",R$="farthest-corner",U$="circle",O$="ellipse",H$="cover",W$="contain",zat=function(n,e){var t=0,r=3,i=[],a=[];return ol(e).forEach(function(s,o){var c=!0;if(o===0){var l=!1;c=s.reduce(function(A,f){if(l)if(Lr(f))switch(f.value){case"center":return a.push(tE),A;case"top":case"left":return a.push(La),A;case"right":case"bottom":return a.push(Ou),A}else(Ui(f)||rd(f))&&a.push(f);else if(Lr(f))switch(f.value){case U$:return t=0,!1;case O$:return t=1,!1;case"at":return l=!0,!1;case F$:return r=0,!1;case H$:case N$:return r=1,!1;case W$:case D$:return r=2,!1;case R$:return r=3,!1}else if(rd(f)||Ui(f))return Array.isArray(r)||(r=[]),r.push(f),!1;return A},c)}if(c){var u=zb(n,s);i.push(u)}}),{size:r,shape:t,stops:i,position:a,type:2}},Cv=function(n,e){var t=0,r=3,i=[],a=[];return ol(e).forEach(function(s,o){var c=!0;if(o===0?c=s.reduce(function(u,A){if(Lr(A))switch(A.value){case"center":return a.push(tE),!1;case"top":case"left":return a.push(La),!1;case"right":case"bottom":return a.push(Ou),!1}else if(Ui(A)||rd(A))return a.push(A),!1;return u},c):o===1&&(c=s.reduce(function(u,A){if(Lr(A))switch(A.value){case U$:return t=0,!1;case O$:return t=1,!1;case W$:case F$:return r=0,!1;case N$:return r=1,!1;case D$:return r=2,!1;case H$:case R$:return r=3,!1}else if(rd(A)||Ui(A))return Array.isArray(r)||(r=[]),r.push(A),!1;return u},c)),c){var l=zb(n,s);i.push(l)}}),{size:r,shape:t,stops:i,position:a,type:2}},Vat=function(n){return n.type===1},Gat=function(n){return n.type===2},nE={name:"image",parse:function(n,e){if(e.type===22){var t={url:e.value,type:0};return n.cache.addImage(e.value),t}if(e.type===18){var r=Q$[e.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(n,e.values)}throw new Error("Unsupported image type "+e.type)}};function Kat(n){return!(n.type===20&&n.value==="none")&&(n.type!==18||!!Q$[n.name])}var Q$={"linear-gradient":$at,"-moz-linear-gradient":Sv,"-ms-linear-gradient":Sv,"-o-linear-gradient":Sv,"-webkit-linear-gradient":Sv,"radial-gradient":zat,"-moz-radial-gradient":Cv,"-ms-radial-gradient":Cv,"-o-radial-gradient":Cv,"-webkit-radial-gradient":Cv,"-webkit-gradient":jat},qat={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(n,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(r){return bf(r)&&Kat(r)}).map(function(r){return nE.parse(n,r)})}},Xat={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(n,e){return e.map(function(t){if(Lr(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Yat={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(n,e){return ol(e).map(function(t){return t.filter(Ui)}).map(P$)}},Jat={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(n,e){return ol(e).map(function(t){return t.filter(Lr).map(function(r){return r.value}).join(" ")}).map(Zat)}},Zat=function(n){switch(n){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Jh;(function(n){n.AUTO="auto",n.CONTAIN="contain",n.COVER="cover"})(Jh||(Jh={}));var est={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(n,e){return ol(e).map(function(t){return t.filter(tst)})}},tst=function(n){return Lr(n)||Ui(n)},Vb=function(n){return{name:"border-"+n+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},nst=Vb("top"),rst=Vb("right"),ist=Vb("bottom"),ast=Vb("left"),Gb=function(n){return{name:"border-radius-"+n,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return P$(t.filter(Ui))}}},sst=Gb("top-left"),ost=Gb("top-right"),cst=Gb("bottom-right"),lst=Gb("bottom-left"),Kb=function(n){return{name:"border-"+n+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ust=Kb("top"),dst=Kb("right"),Ast=Kb("bottom"),hst=Kb("left"),qb=function(n){return{name:"border-"+n+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return Og(t)?t.number:0}}},fst=qb("top"),mst=qb("right"),pst=qb("bottom"),gst=qb("left"),vst={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},yst={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(n,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},wst={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(n,e){return e.filter(Lr).reduce(function(t,r){return t|bst(r.value)},0)}},bst=function(n){switch(n){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},_st={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(n,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},xst={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(n,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},_w;(function(n){n.NORMAL="normal",n.STRICT="strict"})(_w||(_w={}));var Mst={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(n,e){switch(e){case"strict":return _w.STRICT;case"normal":default:return _w.NORMAL}}},Sst={name:"line-height",initialValue:"normal",prefix:!1,type:4},qL=function(n,e){return Lr(n)&&n.value==="normal"?1.2*e:n.type===17?e*n.number:Ui(n)?$r(n,e):e},Cst={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(n,e){return e.type===20&&e.value==="none"?null:nE.parse(n,e)}},Pst={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(n,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},JM={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(n,e){switch(e){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;case"none":default:return-1}}},Xb=function(n){return{name:"margin-"+n,initialValue:"0",prefix:!1,type:4}},Est=Xb("top"),Bst=Xb("right"),Tst=Xb("bottom"),kst=Xb("left"),Ist={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(n,e){return e.filter(Lr).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Lst={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(n,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},Yb=function(n){return{name:"padding-"+n,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Fst=Yb("top"),Nst=Yb("right"),Dst=Yb("bottom"),Rst=Yb("left"),Ust={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(n,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ost={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(n,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Hst={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,e){return e.length===1&&YM(e[0],"none")?[]:ol(e).map(function(t){for(var r={color:Vl.TRANSPARENT,offsetX:La,offsetY:La,blur:La},i=0,a=0;a<t.length;a++){var s=t[a];rd(s)?(i===0?r.offsetX=s:i===1?r.offsetY=s:r.blur=s,i++):r.color=qu.parse(n,s)}return r})}},Wst={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(n,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Qst={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(n,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=zst[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},$st=function(n){var e=n.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},jst=function(n){var e=n.filter(function(c){return c.type===17}).map(function(c){return c.number}),t=e[0],r=e[1];e[2],e[3];var i=e[4],a=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var s=e[12],o=e[13];return e[14],e[15],e.length===16?[t,r,i,a,s,o]:null},zst={matrix:$st,matrix3d:jst},XL={type:16,number:50,flags:Ug},Vst=[XL,XL],Gst={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(n,e){var t=e.filter(Ui);return t.length!==2?Vst:[t[0],t[1]]}},Kst={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(n,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},gp;(function(n){n.NORMAL="normal",n.BREAK_ALL="break-all",n.KEEP_ALL="keep-all"})(gp||(gp={}));var qst={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(n,e){switch(e){case"break-all":return gp.BREAK_ALL;case"keep-all":return gp.KEEP_ALL;case"normal":default:return gp.NORMAL}}},Xst={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(n,e){if(e.type===20)return{auto:!0,order:0};if(Wf(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},$$={name:"time",parse:function(n,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},Yst={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(n,e){return Wf(e)?e.number:1}},Jst={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Zst={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(n,e){return e.filter(Lr).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},eot={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(n,e){var t=[],r=[];return e.forEach(function(i){switch(i.type){case 20:case 0:t.push(i.value);break;case 17:t.push(i.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},tot={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},not={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(n,e){if(Wf(e))return e.number;if(Lr(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},rot={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(n,e){return e.filter(Lr).map(function(t){return t.value})}},iot={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(n,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Ki=function(n,e){return(n&e)!==0},aot={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(n,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},sot={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(n,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var r=[],i=e.filter(C$),a=0;a<i.length;a++){var s=i[a],o=i[a+1];if(s.type===20){var c=o&&Wf(o)?o.number:1;r.push({counter:s.value,increment:c})}}return r}},oot={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(n,e){if(e.length===0)return[];for(var t=[],r=e.filter(C$),i=0;i<r.length;i++){var a=r[i],s=r[i+1];if(Lr(a)&&a.value!=="none"){var o=s&&Wf(s)?s.number:0;t.push({counter:a.value,reset:o})}}return t}},cot={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(n,e){return e.filter(Og).map(function(t){return $$.parse(n,t)})}},lot={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(n,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var r=[],i=e.filter(Nat);if(i.length%2!==0)return null;for(var a=0;a<i.length;a+=2){var s=i[a].value,o=i[a+1].value;r.push({open:s,close:o})}return r}},YL=function(n,e,t){if(!n)return"";var r=n[Math.min(e,n.length-1)];return r?t?r.open:r.close:""},uot={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(n,e){return e.length===1&&YM(e[0],"none")?[]:ol(e).map(function(t){for(var r={color:255,offsetX:La,offsetY:La,blur:La,spread:La,inset:!1},i=0,a=0;a<t.length;a++){var s=t[a];YM(s,"inset")?r.inset=!0:rd(s)?(i===0?r.offsetX=s:i===1?r.offsetY=s:i===2?r.blur=s:r.spread=s,i++):r.color=qu.parse(n,s)}return r})}},dot={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(n,e){var t=[0,1,2],r=[];return e.filter(Lr).forEach(function(i){switch(i.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(i){r.indexOf(i)===-1&&r.push(i)}),r}},Aot={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},hot={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(n,e){return Og(e)?e.number:0}},fot=(function(){function n(e,t){var r,i;this.animationDuration=Gt(e,cot,t.animationDuration),this.backgroundClip=Gt(e,Uat,t.backgroundClip),this.backgroundColor=Gt(e,Oat,t.backgroundColor),this.backgroundImage=Gt(e,qat,t.backgroundImage),this.backgroundOrigin=Gt(e,Xat,t.backgroundOrigin),this.backgroundPosition=Gt(e,Yat,t.backgroundPosition),this.backgroundRepeat=Gt(e,Jat,t.backgroundRepeat),this.backgroundSize=Gt(e,est,t.backgroundSize),this.borderTopColor=Gt(e,nst,t.borderTopColor),this.borderRightColor=Gt(e,rst,t.borderRightColor),this.borderBottomColor=Gt(e,ist,t.borderBottomColor),this.borderLeftColor=Gt(e,ast,t.borderLeftColor),this.borderTopLeftRadius=Gt(e,sst,t.borderTopLeftRadius),this.borderTopRightRadius=Gt(e,ost,t.borderTopRightRadius),this.borderBottomRightRadius=Gt(e,cst,t.borderBottomRightRadius),this.borderBottomLeftRadius=Gt(e,lst,t.borderBottomLeftRadius),this.borderTopStyle=Gt(e,ust,t.borderTopStyle),this.borderRightStyle=Gt(e,dst,t.borderRightStyle),this.borderBottomStyle=Gt(e,Ast,t.borderBottomStyle),this.borderLeftStyle=Gt(e,hst,t.borderLeftStyle),this.borderTopWidth=Gt(e,fst,t.borderTopWidth),this.borderRightWidth=Gt(e,mst,t.borderRightWidth),this.borderBottomWidth=Gt(e,pst,t.borderBottomWidth),this.borderLeftWidth=Gt(e,gst,t.borderLeftWidth),this.boxShadow=Gt(e,uot,t.boxShadow),this.color=Gt(e,vst,t.color),this.direction=Gt(e,yst,t.direction),this.display=Gt(e,wst,t.display),this.float=Gt(e,_st,t.cssFloat),this.fontFamily=Gt(e,eot,t.fontFamily),this.fontSize=Gt(e,tot,t.fontSize),this.fontStyle=Gt(e,iot,t.fontStyle),this.fontVariant=Gt(e,rot,t.fontVariant),this.fontWeight=Gt(e,not,t.fontWeight),this.letterSpacing=Gt(e,xst,t.letterSpacing),this.lineBreak=Gt(e,Mst,t.lineBreak),this.lineHeight=Gt(e,Sst,t.lineHeight),this.listStyleImage=Gt(e,Cst,t.listStyleImage),this.listStylePosition=Gt(e,Pst,t.listStylePosition),this.listStyleType=Gt(e,JM,t.listStyleType),this.marginTop=Gt(e,Est,t.marginTop),this.marginRight=Gt(e,Bst,t.marginRight),this.marginBottom=Gt(e,Tst,t.marginBottom),this.marginLeft=Gt(e,kst,t.marginLeft),this.opacity=Gt(e,Yst,t.opacity);var a=Gt(e,Ist,t.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=Gt(e,Lst,t.overflowWrap),this.paddingTop=Gt(e,Fst,t.paddingTop),this.paddingRight=Gt(e,Nst,t.paddingRight),this.paddingBottom=Gt(e,Dst,t.paddingBottom),this.paddingLeft=Gt(e,Rst,t.paddingLeft),this.paintOrder=Gt(e,dot,t.paintOrder),this.position=Gt(e,Ost,t.position),this.textAlign=Gt(e,Ust,t.textAlign),this.textDecorationColor=Gt(e,Jst,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=Gt(e,Zst,(i=t.textDecorationLine)!==null&&i!==void 0?i:t.textDecoration),this.textShadow=Gt(e,Hst,t.textShadow),this.textTransform=Gt(e,Wst,t.textTransform),this.transform=Gt(e,Qst,t.transform),this.transformOrigin=Gt(e,Gst,t.transformOrigin),this.visibility=Gt(e,Kst,t.visibility),this.webkitTextStrokeColor=Gt(e,Aot,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=Gt(e,hot,t.webkitTextStrokeWidth),this.wordBreak=Gt(e,qst,t.wordBreak),this.zIndex=Gt(e,Xst,t.zIndex)}return n.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},n.prototype.isTransparent=function(){return Xu(this.backgroundColor)},n.prototype.isTransformed=function(){return this.transform!==null},n.prototype.isPositioned=function(){return this.position!==0},n.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},n.prototype.isFloating=function(){return this.float!==0},n.prototype.isInlineLevel=function(){return Ki(this.display,4)||Ki(this.display,33554432)||Ki(this.display,268435456)||Ki(this.display,536870912)||Ki(this.display,67108864)||Ki(this.display,134217728)},n})(),mot=(function(){function n(e,t){this.content=Gt(e,aot,t.content),this.quotes=Gt(e,lot,t.quotes)}return n})(),JL=(function(){function n(e,t){this.counterIncrement=Gt(e,sot,t.counterIncrement),this.counterReset=Gt(e,oot,t.counterReset)}return n})(),Gt=function(n,e,t){var r=new M$,i=t!==null&&typeof t<"u"?t.toString():e.initialValue;r.write(i);var a=new S$(r.read());switch(e.type){case 2:var s=a.parseComponentValue();return e.parse(n,Lr(s)?s.value:e.initialValue);case 0:return e.parse(n,a.parseComponentValue());case 1:return e.parse(n,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(e.format){case"angle":return jb.parse(n,a.parseComponentValue());case"color":return qu.parse(n,a.parseComponentValue());case"image":return nE.parse(n,a.parseComponentValue());case"length":var o=a.parseComponentValue();return rd(o)?o:La;case"length-percentage":var c=a.parseComponentValue();return Ui(c)?c:La;case"time":return $$.parse(n,a.parseComponentValue())}break}},pot="data-html2canvas-debug",got=function(n){var e=n.getAttribute(pot);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ZM=function(n,e){var t=got(n);return t===1||e===t},cl=(function(){function n(e,t){this.context=e,this.textNodes=[],this.elements=[],this.flags=0,ZM(t,3),this.styles=new fot(e,window.getComputedStyle(t,null)),nS(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=Qb(this.context,t),ZM(t,4)&&(this.flags|=16)}return n})(),vot="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ZL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Pv=0;Pv<ZL.length;Pv++)Vm[ZL.charCodeAt(Pv)]=Pv;var yot=function(n){var e=n.length*.75,t=n.length,r,i=0,a,s,o,c;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),u=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r<t;r+=4)a=Vm[n.charCodeAt(r)],s=Vm[n.charCodeAt(r+1)],o=Vm[n.charCodeAt(r+2)],c=Vm[n.charCodeAt(r+3)],u[i++]=a<<2|s>>4,u[i++]=(s&15)<<4|o>>2,u[i++]=(o&3)<<6|c&63;return l},wot=function(n){for(var e=n.length,t=[],r=0;r<e;r+=2)t.push(n[r+1]<<8|n[r]);return t},bot=function(n){for(var e=n.length,t=[],r=0;r<e;r+=4)t.push(n[r+3]<<24|n[r+2]<<16|n[r+1]<<8|n[r]);return t},fA=5,rE=11,Xx=2,_ot=rE-fA,j$=65536>>fA,xot=1<<fA,Yx=xot-1,Mot=1024>>fA,Sot=j$+Mot,Cot=Sot,Pot=32,Eot=Cot+Pot,Bot=65536>>rE,Tot=1<<_ot,kot=Tot-1,eF=function(n,e,t){return n.slice?n.slice(e,t):new Uint16Array(Array.prototype.slice.call(n,e,t))},Iot=function(n,e,t){return n.slice?n.slice(e,t):new Uint32Array(Array.prototype.slice.call(n,e,t))},Lot=function(n,e){var t=yot(n),r=Array.isArray(t)?bot(t):new Uint32Array(t),i=Array.isArray(t)?wot(t):new Uint16Array(t),a=24,s=eF(i,a/2,r[4]/2),o=r[5]===2?eF(i,(a+r[4])/2):Iot(r,Math.ceil((a+r[4])/4));return new Fot(r[0],r[1],r[2],r[3],s,o)},Fot=(function(){function n(e,t,r,i,a,s){this.initialValue=e,this.errorValue=t,this.highStart=r,this.highValueIndex=i,this.index=a,this.data=s}return n.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>fA],t=(t<<Xx)+(e&Yx),this.data[t];if(e<=65535)return t=this.index[j$+(e-55296>>fA)],t=(t<<Xx)+(e&Yx),this.data[t];if(e<this.highStart)return t=Eot-Bot+(e>>rE),t=this.index[t],t+=e>>fA&kot,t=this.index[t],t=(t<<Xx)+(e&Yx),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},n})(),tF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Not=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Ev=0;Ev<tF.length;Ev++)Not[tF.charCodeAt(Ev)]=Ev;var Dot=1,Jx=2,Zx=3,nF=4,rF=5,Rot=7,iF=8,e2=9,t2=10,aF=11,sF=12,oF=13,cF=14,n2=15,Uot=function(n){for(var e=[],t=0,r=n.length;t<r;){var i=n.charCodeAt(t++);if(i>=55296&&i<=56319&&t<r){var a=n.charCodeAt(t++);(a&64512)===56320?e.push(((i&1023)<<10)+(a&1023)+65536):(e.push(i),t--)}else e.push(i)}return e},Oot=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,n);var t=n.length;if(!t)return"";for(var r=[],i=-1,a="";++i<t;){var s=n[i];s<=65535?r.push(s):(s-=65536,r.push((s>>10)+55296,s%1024+56320)),(i+1===t||r.length>16384)&&(a+=String.fromCharCode.apply(String,r),r.length=0)}return a},Hot=Lot(vot),Uo="×",r2="÷",Wot=function(n){return Hot.get(n)},Qot=function(n,e,t){var r=t-2,i=e[r],a=e[t-1],s=e[t];if(a===Jx&&s===Zx)return Uo;if(a===Jx||a===Zx||a===nF||s===Jx||s===Zx||s===nF)return r2;if(a===iF&&[iF,e2,aF,sF].indexOf(s)!==-1||(a===aF||a===e2)&&(s===e2||s===t2)||(a===sF||a===t2)&&s===t2||s===oF||s===rF||s===Rot||a===Dot)return Uo;if(a===oF&&s===cF){for(;i===rF;)i=e[--r];if(i===cF)return Uo}if(a===n2&&s===n2){for(var o=0;i===n2;)o++,i=e[--r];if(o%2===0)return Uo}return r2},$ot=function(n){var e=Uot(n),t=e.length,r=0,i=0,a=e.map(Wot);return{next:function(){if(r>=t)return{done:!0,value:null};for(var s=Uo;r<t&&(s=Qot(e,a,++r))===Uo;);if(s!==Uo||r===t){var o=Oot.apply(null,e.slice(i,r));return i=r,{value:o,done:!1}}return{done:!0,value:null}}}},jot=function(n){for(var e=$ot(n),t=[],r;!(r=e.next()).done;)r.value&&t.push(r.value.slice());return t},zot=function(n){var e=123;if(n.createRange){var t=n.createRange();if(t.getBoundingClientRect){var r=n.createElement("boundtest");r.style.height=e+"px",r.style.display="block",n.body.appendChild(r),t.selectNode(r);var i=t.getBoundingClientRect(),a=Math.round(i.height);if(n.body.removeChild(r),a===e)return!0}}return!1},Vot=function(n){var e=n.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",n.body.appendChild(e);var t=n.createRange();e.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var r=e.firstChild,i=$b(r.data).map(function(c){return Bi(c)}),a=0,s={},o=i.every(function(c,l){t.setStart(r,a),t.setEnd(r,a+c.length);var u=t.getBoundingClientRect();a+=c.length;var A=u.x>s.x||u.y>s.y;return s=u,l===0?!0:A});return n.body.removeChild(e),o},Got=function(){return typeof new Image().crossOrigin<"u"},Kot=function(){return typeof new XMLHttpRequest().responseType=="string"},qot=function(n){var e=new Image,t=n.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},lF=function(n){return n[0]===0&&n[1]===255&&n[2]===0&&n[3]===255},Xot=function(n){var e=n.createElement("canvas"),t=100;e.width=t,e.height=t;var r=e.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var i=new Image,a=e.toDataURL();i.src=a;var s=eS(t,t,0,0,i);return r.fillStyle="red",r.fillRect(0,0,t,t),uF(s).then(function(o){r.drawImage(o,0,0);var c=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var l=n.createElement("div");return l.style.backgroundImage="url("+a+")",l.style.height=t+"px",lF(c)?uF(eS(t,t,0,0,l)):Promise.reject(!1)}).then(function(o){return r.drawImage(o,0,0),lF(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},eS=function(n,e,t,r,i){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",n.toString()),s.setAttributeNS(null,"height",e.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(i),s},uF=function(n){return new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(n))})},ka={get SUPPORT_RANGE_BOUNDS(){var n=zot(document);return Object.defineProperty(ka,"SUPPORT_RANGE_BOUNDS",{value:n}),n},get SUPPORT_WORD_BREAKING(){var n=ka.SUPPORT_RANGE_BOUNDS&&Vot(document);return Object.defineProperty(ka,"SUPPORT_WORD_BREAKING",{value:n}),n},get SUPPORT_SVG_DRAWING(){var n=qot(document);return Object.defineProperty(ka,"SUPPORT_SVG_DRAWING",{value:n}),n},get SUPPORT_FOREIGNOBJECT_DRAWING(){var n=typeof Array.from=="function"&&typeof window.fetch=="function"?Xot(document):Promise.resolve(!1);return Object.defineProperty(ka,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:n}),n},get SUPPORT_CORS_IMAGES(){var n=Got();return Object.defineProperty(ka,"SUPPORT_CORS_IMAGES",{value:n}),n},get SUPPORT_RESPONSE_TYPE(){var n=Kot();return Object.defineProperty(ka,"SUPPORT_RESPONSE_TYPE",{value:n}),n},get SUPPORT_CORS_XHR(){var n="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ka,"SUPPORT_CORS_XHR",{value:n}),n},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var n=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(ka,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:n}),n}},vp=(function(){function n(e,t){this.text=e,this.bounds=t}return n})(),Yot=function(n,e,t,r){var i=ect(e,t),a=[],s=0;return i.forEach(function(o){if(t.textDecorationLine.length||o.trim().length>0)if(ka.SUPPORT_RANGE_BOUNDS){var c=dF(r,s,o.length).getClientRects();if(c.length>1){var l=iE(o),u=0;l.forEach(function(f){a.push(new vp(f,eu.fromDOMRectList(n,dF(r,u+s,f.length).getClientRects()))),u+=f.length})}else a.push(new vp(o,eu.fromDOMRectList(n,c)))}else{var A=r.splitText(o.length);a.push(new vp(o,Jot(n,r))),r=A}else ka.SUPPORT_RANGE_BOUNDS||(r=r.splitText(o.length));s+=o.length}),a},Jot=function(n,e){var t=e.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(r,e);var a=Qb(n,r);return r.firstChild&&i.replaceChild(r.firstChild,r),a}}return eu.EMPTY},dF=function(n,e,t){var r=n.ownerDocument;if(!r)throw new Error("Node has no owner document");var i=r.createRange();return i.setStart(n,e),i.setEnd(n,e+t),i},iE=function(n){if(ka.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(n)).map(function(t){return t.segment})}return jot(n)},Zot=function(n,e){if(ka.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(n)).map(function(r){return r.segment})}return nct(n,e)},ect=function(n,e){return e.letterSpacing!==0?iE(n):Zot(n,e)},tct=[32,160,4961,65792,65793,4153,4241],nct=function(n,e){for(var t=Bit(n,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),r=[],i,a=function(){if(i.value){var s=i.value.slice(),o=$b(s),c="";o.forEach(function(l){tct.indexOf(l)===-1?c+=Bi(l):(c.length&&r.push(c),r.push(Bi(l)),c="")}),c.length&&r.push(c)}};!(i=t.next()).done;)a();return r},rct=(function(){function n(e,t,r){this.text=ict(t.data,r.textTransform),this.textBounds=Yot(e,this.text,r,t)}return n})(),ict=function(n,e){switch(e){case 1:return n.toLowerCase();case 3:return n.replace(act,sct);case 2:return n.toUpperCase();default:return n}},act=/(^|\s|:|-|\(|\))([a-z])/g,sct=function(n,e,t){return n.length>0?e+t.toUpperCase():n},z$=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.src=r.currentSrc||r.src,i.intrinsicWidth=r.naturalWidth,i.intrinsicHeight=r.naturalHeight,i.context.cache.addImage(i.src),i}return e})(cl),V$=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.canvas=r,i.intrinsicWidth=r.width,i.intrinsicHeight=r.height,i}return e})(cl),G$=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this,a=new XMLSerializer,s=Qb(t,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(r)),i.intrinsicWidth=r.width.baseVal.value,i.intrinsicHeight=r.height.baseVal.value,i.context.cache.addImage(i.svg),i}return e})(cl),K$=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.value=r.value,i}return e})(cl),tS=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.start=r.start,i.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,i}return e})(cl),oct=[{type:15,flags:0,unit:"px",number:3}],cct=[{type:16,flags:0,number:50}],lct=function(n){return n.width>n.height?new eu(n.left+(n.width-n.height)/2,n.top,n.height,n.height):n.width<n.height?new eu(n.left,n.top+(n.height-n.width)/2,n.width,n.width):n},uct=function(n){var e=n.type===dct?new Array(n.value.length+1).join("•"):n.value;return e.length===0?n.placeholder||"":e},xw="checkbox",Mw="radio",dct="password",AF=707406591,aE=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this;switch(i.type=r.type.toLowerCase(),i.checked=r.checked,i.value=uct(r),(i.type===xw||i.type===Mw)&&(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=lct(i.bounds)),i.type){case xw:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=oct;break;case Mw:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=cct;break}return i}return e})(cl),q$=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this,a=r.options[r.selectedIndex||0];return i.value=a&&a.text||"",i}return e})(cl),X$=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.value=r.value,i}return e})(cl),Y$=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this;i.src=r.src,i.width=parseInt(r.width,10)||0,i.height=parseInt(r.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){i.tree=Z$(t,r.contentWindow.document.documentElement);var a=r.contentWindow.document.documentElement?pp(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):Vl.TRANSPARENT,s=r.contentWindow.document.body?pp(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):Vl.TRANSPARENT;i.backgroundColor=Xu(a)?Xu(s)?i.styles.backgroundColor:s:a}}catch{}return i}return e})(cl),Act=["OL","UL","MENU"],Xv=function(n,e,t,r){for(var i=e.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,ej(i)&&i.data.trim().length>0)t.textNodes.push(new rct(n,i,t.styles));else if(Kh(i))if(ij(i)&&i.assignedNodes)i.assignedNodes().forEach(function(o){return Xv(n,o,t,r)});else{var s=J$(n,i);s.styles.isVisible()&&(hct(i,s,r)?s.flags|=4:fct(s.styles)&&(s.flags|=2),Act.indexOf(i.tagName)!==-1&&(s.flags|=8),t.elements.push(s),i.slot,i.shadowRoot?Xv(n,i.shadowRoot,s,r):!Sw(i)&&!tj(i)&&!Cw(i)&&Xv(n,i,s,r))}},J$=function(n,e){return rS(e)?new z$(n,e):nj(e)?new V$(n,e):tj(e)?new G$(n,e):mct(e)?new K$(n,e):pct(e)?new tS(n,e):gct(e)?new aE(n,e):Cw(e)?new q$(n,e):Sw(e)?new X$(n,e):rj(e)?new Y$(n,e):new cl(n,e)},Z$=function(n,e){var t=J$(n,e);return t.flags|=4,Xv(n,e,t,t),t},hct=function(n,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||sE(n)&&t.styles.isTransparent()},fct=function(n){return n.isPositioned()||n.isFloating()},ej=function(n){return n.nodeType===Node.TEXT_NODE},Kh=function(n){return n.nodeType===Node.ELEMENT_NODE},nS=function(n){return Kh(n)&&typeof n.style<"u"&&!Yv(n)},Yv=function(n){return typeof n.className=="object"},mct=function(n){return n.tagName==="LI"},pct=function(n){return n.tagName==="OL"},gct=function(n){return n.tagName==="INPUT"},vct=function(n){return n.tagName==="HTML"},tj=function(n){return n.tagName==="svg"},sE=function(n){return n.tagName==="BODY"},nj=function(n){return n.tagName==="CANVAS"},hF=function(n){return n.tagName==="VIDEO"},rS=function(n){return n.tagName==="IMG"},rj=function(n){return n.tagName==="IFRAME"},fF=function(n){return n.tagName==="STYLE"},yct=function(n){return n.tagName==="SCRIPT"},Sw=function(n){return n.tagName==="TEXTAREA"},Cw=function(n){return n.tagName==="SELECT"},ij=function(n){return n.tagName==="SLOT"},mF=function(n){return n.tagName.indexOf("-")>0},wct=(function(){function n(){this.counters={}}return n.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},n.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},n.prototype.pop=function(e){var t=this;e.forEach(function(r){return t.counters[r].pop()})},n.prototype.parse=function(e){var t=this,r=e.counterIncrement,i=e.counterReset,a=!0;r!==null&&r.forEach(function(o){var c=t.counters[o.counter];c&&o.increment!==0&&(a=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=o.increment)});var s=[];return a&&i.forEach(function(o){var c=t.counters[o.counter];s.push(o.counter),c||(c=t.counters[o.counter]=[]),c.push(o.reset)}),s},n})(),pF={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"]},gF={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},bct={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},_ct={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Dh=function(n,e,t,r,i,a){return n<e||n>t?ag(n,i,a.length>0):r.integers.reduce(function(s,o,c){for(;n>=o;)n-=o,s+=r.values[c];return s},"")+a},aj=function(n,e,t,r){var i="";do t||n--,i=r(n)+i,n/=e;while(n*e>=e);return i},Ei=function(n,e,t,r,i){var a=t-e+1;return(n<0?"-":"")+(aj(Math.abs(n),a,r,function(s){return Bi(Math.floor(s%a)+e)})+i)},Od=function(n,e,t){t===void 0&&(t=". ");var r=e.length;return aj(Math.abs(n),r,!1,function(i){return e[Math.floor(i%r)]})+t},Qh=1,Cu=2,Pu=4,Gm=8,Bl=function(n,e,t,r,i,a){if(n<-9999||n>9999)return ag(n,4,i.length>0);var s=Math.abs(n),o=i;if(s===0)return e[0]+o;for(var c=0;s>0&&c<=4;c++){var l=s%10;l===0&&Ki(a,Qh)&&o!==""?o=e[l]+o:l>1||l===1&&c===0||l===1&&c===1&&Ki(a,Cu)||l===1&&c===1&&Ki(a,Pu)&&n>100||l===1&&c>1&&Ki(a,Gm)?o=e[l]+(c>0?t[c-1]:"")+o:l===1&&c>0&&(o=t[c-1]+o),s=Math.floor(s/10)}return(n<0?r:"")+o},vF="十百千萬",yF="拾佰仟萬",wF="マイナス",i2="마이너스",ag=function(n,e,t){var r=t?". ":"",i=t?"、":"",a=t?", ":"",s=t?" ":"";switch(e){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=Ei(n,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return Od(n,"〇一二三四五六七八九",i);case 6:return Dh(n,1,3999,pF,3,r).toLowerCase();case 7:return Dh(n,1,3999,pF,3,r);case 8:return Ei(n,945,969,!1,r);case 9:return Ei(n,97,122,!1,r);case 10:return Ei(n,65,90,!1,r);case 11:return Ei(n,1632,1641,!0,r);case 12:case 49:return Dh(n,1,9999,gF,3,r);case 35:return Dh(n,1,9999,gF,3,r).toLowerCase();case 13:return Ei(n,2534,2543,!0,r);case 14:case 30:return Ei(n,6112,6121,!0,r);case 15:return Od(n,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return Od(n,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Bl(n,"零一二三四五六七八九",vF,"負",i,Cu|Pu|Gm);case 47:return Bl(n,"零壹貳參肆伍陸柒捌玖",yF,"負",i,Qh|Cu|Pu|Gm);case 42:return Bl(n,"零一二三四五六七八九",vF,"负",i,Cu|Pu|Gm);case 41:return Bl(n,"零壹贰叁肆伍陆柒捌玖",yF,"负",i,Qh|Cu|Pu|Gm);case 26:return Bl(n,"〇一二三四五六七八九","十百千万",wF,i,0);case 25:return Bl(n,"零壱弐参四伍六七八九","拾百千万",wF,i,Qh|Cu|Pu);case 31:return Bl(n,"영일이삼사오육칠팔구","십백천만",i2,a,Qh|Cu|Pu);case 33:return Bl(n,"零一二三四五六七八九","十百千萬",i2,a,0);case 32:return Bl(n,"零壹貳參四五六七八九","拾百千",i2,a,Qh|Cu|Pu);case 18:return Ei(n,2406,2415,!0,r);case 20:return Dh(n,1,19999,_ct,3,r);case 21:return Ei(n,2790,2799,!0,r);case 22:return Ei(n,2662,2671,!0,r);case 22:return Dh(n,1,10999,bct,3,r);case 23:return Od(n,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Od(n,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ei(n,3302,3311,!0,r);case 28:return Od(n,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return Od(n,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Ei(n,3792,3801,!0,r);case 37:return Ei(n,6160,6169,!0,r);case 38:return Ei(n,4160,4169,!0,r);case 39:return Ei(n,2918,2927,!0,r);case 40:return Ei(n,1776,1785,!0,r);case 43:return Ei(n,3046,3055,!0,r);case 44:return Ei(n,3174,3183,!0,r);case 45:return Ei(n,3664,3673,!0,r);case 46:return Ei(n,3872,3881,!0,r);case 3:default:return Ei(n,48,57,!0,r)}},sj="data-html2canvas-ignore",bF=(function(){function n(e,t,r){if(this.context=e,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new wct,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return n.prototype.toIFrame=function(e,t){var r=this,i=xct(e,t);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,o=i.contentWindow,c=o.document,l=Cct(i).then(function(){return _s(r,void 0,void 0,function(){var u,A;return Va(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(Tct),o&&(o.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==t.top||o.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-t.left,o.scrollY-t.top,0,0))),u=this.options.onclone,A=this.clonedReferenceElement,typeof A>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Sct(c)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(c,A)}).then(function(){return i})]:[2,i]}})})});return c.open(),c.write(Ect(document.doctype)+"<html></html>"),Bct(this.referenceElement.ownerDocument,a,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),l},n.prototype.createElementClone=function(e){if(ZM(e,2),nj(e))return this.createCanvasClone(e);if(hF(e))return this.createVideoClone(e);if(fF(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return rS(t)&&(rS(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),mF(t)?this.createCustomElementClone(t):t},n.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return a2(e.style,t),t},n.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),i=e.cloneNode(!1);return i.textContent=r,i}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return e.cloneNode(!1)},n.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var r=e.ownerDocument.createElement("img");try{return r.src=e.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var i=e.cloneNode(!1);try{i.width=e.width,i.height=e.height;var a=e.getContext("2d"),s=i.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,e.width,e.height),0,0);else{var o=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(o){var c=o.getContextAttributes();(c==null?void 0:c.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}s.drawImage(e,0,0)}return i}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return i},n.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var i=e.ownerDocument.createElement("canvas");return i.width=e.offsetWidth,i.height=e.offsetHeight,i},n.prototype.appendChildNode=function(e,t,r){(!Kh(t)||!yct(t)&&!t.hasAttribute(sj)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Kh(t)||!fF(t))&&e.appendChild(this.cloneNode(t,r))},n.prototype.cloneChildNodes=function(e,t,r){for(var i=this,a=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;a;a=a.nextSibling)if(Kh(a)&&ij(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(o){return i.appendChildNode(t,o,r)})}else this.appendChildNode(t,a,r)},n.prototype.cloneNode=function(e,t){if(ej(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var r=e.ownerDocument.defaultView;if(r&&Kh(e)&&(nS(e)||Yv(e))){var i=this.createElementClone(e);i.style.transitionProperty="none";var a=r.getComputedStyle(e),s=r.getComputedStyle(e,":before"),o=r.getComputedStyle(e,":after");this.referenceElement===e&&nS(i)&&(this.clonedReferenceElement=i),sE(i)&&Lct(i);var c=this.counters.parse(new JL(this.context,a)),l=this.resolvePseudoContent(e,i,s,yp.BEFORE);mF(e)&&(t=!0),hF(e)||this.cloneChildNodes(e,i,t),l&&i.insertBefore(l,i.firstChild);var u=this.resolvePseudoContent(e,i,o,yp.AFTER);return u&&i.appendChild(u),this.counters.pop(c),(a&&(this.options.copyStyles||Yv(e))&&!rj(e)||t)&&a2(a,i),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([i,e.scrollLeft,e.scrollTop]),(Sw(e)||Cw(e))&&(Sw(i)||Cw(i))&&(i.value=e.value),i}return e.cloneNode(!1)},n.prototype.resolvePseudoContent=function(e,t,r,i){var a=this;if(r){var s=r.content,o=t.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new JL(this.context,r));var c=new mot(this.context,r),l=o.createElement("html2canvaspseudoelement");a2(r,l),c.content.forEach(function(A){if(A.type===0)l.appendChild(o.createTextNode(A.value));else if(A.type===22){var f=o.createElement("img");f.src=A.value,f.style.opacity="1",l.appendChild(f)}else if(A.type===18){if(A.name==="attr"){var h=A.values.filter(Lr);h.length&&l.appendChild(o.createTextNode(e.getAttribute(h[0].value)||""))}else if(A.name==="counter"){var g=A.values.filter(bf),y=g[0],w=g[1];if(y&&Lr(y)){var v=a.counters.getCounterValue(y.value),S=w&&Lr(w)?JM.parse(a.context,w.value):3;l.appendChild(o.createTextNode(ag(v,S,!1)))}}else if(A.name==="counters"){var C=A.values.filter(bf),y=C[0],M=C[1],w=C[2];if(y&&Lr(y)){var F=a.counters.getCounterValues(y.value),D=w&&Lr(w)?JM.parse(a.context,w.value):3,U=M&&M.type===0?M.value:"",O=F.map(function(k){return ag(k,D,!1)}).join(U);l.appendChild(o.createTextNode(O))}}}else if(A.type===20)switch(A.value){case"open-quote":l.appendChild(o.createTextNode(YL(c.quotes,a.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(YL(c.quotes,--a.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(A.value))}}),l.className=iS+" "+aS;var u=i===yp.BEFORE?" "+iS:" "+aS;return Yv(t)?t.className.baseValue+=u:t.className+=u,l}}},n.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},n})(),yp;(function(n){n[n.BEFORE=0]="BEFORE",n[n.AFTER=1]="AFTER"})(yp||(yp={}));var xct=function(n,e){var t=n.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(sj,"true"),n.body.appendChild(t),t},Mct=function(n){return new Promise(function(e){if(n.complete){e();return}if(!n.src){e();return}n.onload=e,n.onerror=e})},Sct=function(n){return Promise.all([].slice.call(n.images,0).map(Mct))},Cct=function(n){return new Promise(function(e,t){var r=n.contentWindow;if(!r)return t("No window assigned for iframe");var i=r.document;r.onload=n.onload=function(){r.onload=n.onload=null;var a=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(a),e(n))},50)}})},Pct=["all","d","content"],a2=function(n,e){for(var t=n.length-1;t>=0;t--){var r=n.item(t);Pct.indexOf(r)===-1&&e.style.setProperty(r,n.getPropertyValue(r))}return e},Ect=function(n){var e="";return n&&(e+="<!DOCTYPE ",n.name&&(e+=n.name),n.internalSubset&&(e+=n.internalSubset),n.publicId&&(e+='"'+n.publicId+'"'),n.systemId&&(e+='"'+n.systemId+'"'),e+=">"),e},Bct=function(n,e,t){n&&n.defaultView&&(e!==n.defaultView.pageXOffset||t!==n.defaultView.pageYOffset)&&n.defaultView.scrollTo(e,t)},Tct=function(n){var e=n[0],t=n[1],r=n[2];e.scrollLeft=t,e.scrollTop=r},kct=":before",Ict=":after",iS="___html2canvas___pseudoelement_before",aS="___html2canvas___pseudoelement_after",_F=`{
    content: "" !important;
    display: none !important;
}`,Lct=function(n){Fct(n,"."+iS+kct+_F+`
         .`+aS+Ict+_F)},Fct=function(n,e){var t=n.ownerDocument;if(t){var r=t.createElement("style");r.textContent=e,n.appendChild(r)}},oj=(function(){function n(){}return n.getOrigin=function(e){var t=n._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},n.isSameOrigin=function(e){return n.getOrigin(e)===n._origin},n.setContext=function(e){n._link=e.document.createElement("a"),n._origin=n.getOrigin(e.location.href)},n._origin="about:blank",n})(),Nct=(function(){function n(e,t){this.context=e,this._options=t,this._cache={}}return n.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(o2(e)||Oct(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},n.prototype.match=function(e){return this._cache[e]},n.prototype.loadImage=function(e){return _s(this,void 0,void 0,function(){var t,r,i,a,s=this;return Va(this,function(o){switch(o.label){case 0:return t=oj.isSameOrigin(e),r=!s2(e)&&this._options.useCORS===!0&&ka.SUPPORT_CORS_IMAGES&&!t,i=!s2(e)&&!t&&!o2(e)&&typeof this._options.proxy=="string"&&ka.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!s2(e)&&!o2(e)&&!i&&!r?[2]:(a=e,i?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(c,l){var u=new Image;u.onload=function(){return c(u)},u.onerror=l,(Hct(a)||r)&&(u.crossOrigin="anonymous"),u.src=a,u.complete===!0&&setTimeout(function(){return c(u)},500),s._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},n.prototype.has=function(e){return typeof this._cache[e]<"u"},n.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},n.prototype.proxy=function(e){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var i=e.substring(0,256);return new Promise(function(a,s){var o=ka.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(o==="text")a(c.response);else{var A=new FileReader;A.addEventListener("load",function(){return a(A.result)},!1),A.addEventListener("error",function(f){return s(f)},!1),A.readAsDataURL(c.response)}else s("Failed to proxy resource "+i+" with status code "+c.status)},c.onerror=s;var l=r.indexOf("?")>-1?"&":"?";if(c.open("GET",""+r+l+"url="+encodeURIComponent(e)+"&responseType="+o),o!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=o),t._options.imageTimeout){var u=t._options.imageTimeout;c.timeout=u,c.ontimeout=function(){return s("Timed out ("+u+"ms) proxying "+i)}}c.send()})},n})(),Dct=/^data:image\/svg\+xml/i,Rct=/^data:image\/.*;base64,/i,Uct=/^data:image\/.*/i,Oct=function(n){return ka.SUPPORT_SVG_DRAWING||!Wct(n)},s2=function(n){return Uct.test(n)},Hct=function(n){return Rct.test(n)},o2=function(n){return n.substr(0,4)==="blob"},Wct=function(n){return n.substr(-3).toLowerCase()==="svg"||Dct.test(n)},jt=(function(){function n(e,t){this.type=0,this.x=e,this.y=t}return n.prototype.add=function(e,t){return new n(this.x+e,this.y+t)},n})(),Rh=function(n,e,t){return new jt(n.x+(e.x-n.x)*t,n.y+(e.y-n.y)*t)},Bv=(function(){function n(e,t,r,i){this.type=1,this.start=e,this.startControl=t,this.endControl=r,this.end=i}return n.prototype.subdivide=function(e,t){var r=Rh(this.start,this.startControl,e),i=Rh(this.startControl,this.endControl,e),a=Rh(this.endControl,this.end,e),s=Rh(r,i,e),o=Rh(i,a,e),c=Rh(s,o,e);return t?new n(this.start,r,s,c):new n(c,o,a,this.end)},n.prototype.add=function(e,t){return new n(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},n.prototype.reverse=function(){return new n(this.end,this.endControl,this.startControl,this.start)},n})(),Oo=function(n){return n.type===1},Qct=(function(){function n(e){var t=e.styles,r=e.bounds,i=zm(t.borderTopLeftRadius,r.width,r.height),a=i[0],s=i[1],o=zm(t.borderTopRightRadius,r.width,r.height),c=o[0],l=o[1],u=zm(t.borderBottomRightRadius,r.width,r.height),A=u[0],f=u[1],h=zm(t.borderBottomLeftRadius,r.width,r.height),g=h[0],y=h[1],w=[];w.push((a+c)/r.width),w.push((g+A)/r.width),w.push((s+y)/r.height),w.push((l+f)/r.height);var v=Math.max.apply(Math,w);v>1&&(a/=v,s/=v,c/=v,l/=v,A/=v,f/=v,g/=v,y/=v);var S=r.width-c,C=r.height-f,M=r.width-A,F=r.height-y,D=t.borderTopWidth,U=t.borderRightWidth,O=t.borderBottomWidth,T=t.borderLeftWidth,P=$r(t.paddingTop,e.bounds.width),k=$r(t.paddingRight,e.bounds.width),H=$r(t.paddingBottom,e.bounds.width),j=$r(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?ti(r.left+T/3,r.top+D/3,a-T/3,s-D/3,pr.TOP_LEFT):new jt(r.left+T/3,r.top+D/3),this.topRightBorderDoubleOuterBox=a>0||s>0?ti(r.left+S,r.top+D/3,c-U/3,l-D/3,pr.TOP_RIGHT):new jt(r.left+r.width-U/3,r.top+D/3),this.bottomRightBorderDoubleOuterBox=A>0||f>0?ti(r.left+M,r.top+C,A-U/3,f-O/3,pr.BOTTOM_RIGHT):new jt(r.left+r.width-U/3,r.top+r.height-O/3),this.bottomLeftBorderDoubleOuterBox=g>0||y>0?ti(r.left+T/3,r.top+F,g-T/3,y-O/3,pr.BOTTOM_LEFT):new jt(r.left+T/3,r.top+r.height-O/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?ti(r.left+T*2/3,r.top+D*2/3,a-T*2/3,s-D*2/3,pr.TOP_LEFT):new jt(r.left+T*2/3,r.top+D*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?ti(r.left+S,r.top+D*2/3,c-U*2/3,l-D*2/3,pr.TOP_RIGHT):new jt(r.left+r.width-U*2/3,r.top+D*2/3),this.bottomRightBorderDoubleInnerBox=A>0||f>0?ti(r.left+M,r.top+C,A-U*2/3,f-O*2/3,pr.BOTTOM_RIGHT):new jt(r.left+r.width-U*2/3,r.top+r.height-O*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||y>0?ti(r.left+T*2/3,r.top+F,g-T*2/3,y-O*2/3,pr.BOTTOM_LEFT):new jt(r.left+T*2/3,r.top+r.height-O*2/3),this.topLeftBorderStroke=a>0||s>0?ti(r.left+T/2,r.top+D/2,a-T/2,s-D/2,pr.TOP_LEFT):new jt(r.left+T/2,r.top+D/2),this.topRightBorderStroke=a>0||s>0?ti(r.left+S,r.top+D/2,c-U/2,l-D/2,pr.TOP_RIGHT):new jt(r.left+r.width-U/2,r.top+D/2),this.bottomRightBorderStroke=A>0||f>0?ti(r.left+M,r.top+C,A-U/2,f-O/2,pr.BOTTOM_RIGHT):new jt(r.left+r.width-U/2,r.top+r.height-O/2),this.bottomLeftBorderStroke=g>0||y>0?ti(r.left+T/2,r.top+F,g-T/2,y-O/2,pr.BOTTOM_LEFT):new jt(r.left+T/2,r.top+r.height-O/2),this.topLeftBorderBox=a>0||s>0?ti(r.left,r.top,a,s,pr.TOP_LEFT):new jt(r.left,r.top),this.topRightBorderBox=c>0||l>0?ti(r.left+S,r.top,c,l,pr.TOP_RIGHT):new jt(r.left+r.width,r.top),this.bottomRightBorderBox=A>0||f>0?ti(r.left+M,r.top+C,A,f,pr.BOTTOM_RIGHT):new jt(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=g>0||y>0?ti(r.left,r.top+F,g,y,pr.BOTTOM_LEFT):new jt(r.left,r.top+r.height),this.topLeftPaddingBox=a>0||s>0?ti(r.left+T,r.top+D,Math.max(0,a-T),Math.max(0,s-D),pr.TOP_LEFT):new jt(r.left+T,r.top+D),this.topRightPaddingBox=c>0||l>0?ti(r.left+Math.min(S,r.width-U),r.top+D,S>r.width+U?0:Math.max(0,c-U),Math.max(0,l-D),pr.TOP_RIGHT):new jt(r.left+r.width-U,r.top+D),this.bottomRightPaddingBox=A>0||f>0?ti(r.left+Math.min(M,r.width-T),r.top+Math.min(C,r.height-O),Math.max(0,A-U),Math.max(0,f-O),pr.BOTTOM_RIGHT):new jt(r.left+r.width-U,r.top+r.height-O),this.bottomLeftPaddingBox=g>0||y>0?ti(r.left+T,r.top+Math.min(F,r.height-O),Math.max(0,g-T),Math.max(0,y-O),pr.BOTTOM_LEFT):new jt(r.left+T,r.top+r.height-O),this.topLeftContentBox=a>0||s>0?ti(r.left+T+j,r.top+D+P,Math.max(0,a-(T+j)),Math.max(0,s-(D+P)),pr.TOP_LEFT):new jt(r.left+T+j,r.top+D+P),this.topRightContentBox=c>0||l>0?ti(r.left+Math.min(S,r.width+T+j),r.top+D+P,S>r.width+T+j?0:c-T+j,l-(D+P),pr.TOP_RIGHT):new jt(r.left+r.width-(U+k),r.top+D+P),this.bottomRightContentBox=A>0||f>0?ti(r.left+Math.min(M,r.width-(T+j)),r.top+Math.min(C,r.height+D+P),Math.max(0,A-(U+k)),f-(O+H),pr.BOTTOM_RIGHT):new jt(r.left+r.width-(U+k),r.top+r.height-(O+H)),this.bottomLeftContentBox=g>0||y>0?ti(r.left+T+j,r.top+F,Math.max(0,g-(T+j)),y-(O+H),pr.BOTTOM_LEFT):new jt(r.left+T+j,r.top+r.height-(O+H))}return n})(),pr;(function(n){n[n.TOP_LEFT=0]="TOP_LEFT",n[n.TOP_RIGHT=1]="TOP_RIGHT",n[n.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",n[n.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(pr||(pr={}));var ti=function(n,e,t,r,i){var a=4*((Math.sqrt(2)-1)/3),s=t*a,o=r*a,c=n+t,l=e+r;switch(i){case pr.TOP_LEFT:return new Bv(new jt(n,l),new jt(n,l-o),new jt(c-s,e),new jt(c,e));case pr.TOP_RIGHT:return new Bv(new jt(n,e),new jt(n+s,e),new jt(c,l-o),new jt(c,l));case pr.BOTTOM_RIGHT:return new Bv(new jt(c,e),new jt(c,e+o),new jt(n+s,l),new jt(n,l));case pr.BOTTOM_LEFT:default:return new Bv(new jt(c,l),new jt(c-s,l),new jt(n,e+o),new jt(n,e))}},Pw=function(n){return[n.topLeftBorderBox,n.topRightBorderBox,n.bottomRightBorderBox,n.bottomLeftBorderBox]},$ct=function(n){return[n.topLeftContentBox,n.topRightContentBox,n.bottomRightContentBox,n.bottomLeftContentBox]},Ew=function(n){return[n.topLeftPaddingBox,n.topRightPaddingBox,n.bottomRightPaddingBox,n.bottomLeftPaddingBox]},jct=(function(){function n(e,t,r){this.offsetX=e,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return n})(),Tv=(function(){function n(e,t){this.path=e,this.target=t,this.type=1}return n})(),zct=(function(){function n(e){this.opacity=e,this.type=2,this.target=6}return n})(),Vct=function(n){return n.type===0},cj=function(n){return n.type===1},Gct=function(n){return n.type===2},xF=function(n,e){return n.length===e.length?n.some(function(t,r){return t===e[r]}):!1},Kct=function(n,e,t,r,i){return n.map(function(a,s){switch(s){case 0:return a.add(e,t);case 1:return a.add(e+r,t);case 2:return a.add(e+r,t+i);case 3:return a.add(e,t+i)}return a})},lj=(function(){function n(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return n})(),uj=(function(){function n(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new Qct(this.container),this.container.styles.opacity<1&&this.effects.push(new zct(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new jct(r,i,a))}if(this.container.styles.overflowX!==0){var s=Pw(this.curves),o=Ew(this.curves);xF(s,o)?this.effects.push(new Tv(s,6)):(this.effects.push(new Tv(s,2)),this.effects.push(new Tv(o,4)))}}return n.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,i=this.effects.slice(0);r;){var a=r.effects.filter(function(c){return!cj(c)});if(t||r.container.styles.position!==0||!r.parent){if(i.unshift.apply(i,a),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Pw(r.curves),o=Ew(r.curves);xF(s,o)||i.unshift(new Tv(o,6))}}else i.unshift.apply(i,a);r=r.parent}return i.filter(function(c){return Ki(c.target,e)})},n})(),sS=function(n,e,t,r){n.container.elements.forEach(function(i){var a=Ki(i.flags,4),s=Ki(i.flags,2),o=new uj(i,n);Ki(i.styles.display,2048)&&r.push(o);var c=Ki(i.flags,8)?[]:r;if(a||s){var l=a||i.styles.isPositioned()?t:e,u=new lj(o);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var A=i.styles.zIndex.order;if(A<0){var f=0;l.negativeZIndex.some(function(g,y){return A>g.element.container.styles.zIndex.order?(f=y,!1):f>0}),l.negativeZIndex.splice(f,0,u)}else if(A>0){var h=0;l.positiveZIndex.some(function(g,y){return A>=g.element.container.styles.zIndex.order?(h=y+1,!1):h>0}),l.positiveZIndex.splice(h,0,u)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else i.styles.isFloating()?l.nonPositionedFloats.push(u):l.nonPositionedInlineLevel.push(u);sS(o,u,a?u:t,c)}else i.styles.isInlineLevel()?e.inlineLevel.push(o):e.nonInlineLevel.push(o),sS(o,e,t,c);Ki(i.flags,8)&&dj(i,c)})},dj=function(n,e){for(var t=n instanceof tS?n.start:1,r=n instanceof tS?n.reversed:!1,i=0;i<e.length;i++){var a=e[i];a.container instanceof K$&&typeof a.container.value=="number"&&a.container.value!==0&&(t=a.container.value),a.listValue=ag(t,a.container.styles.listStyleType,!0),t+=r?-1:1}},qct=function(n){var e=new uj(n,null),t=new lj(e),r=[];return sS(e,t,t,r),dj(e.container,r),t},MF=function(n,e){switch(e){case 0:return $o(n.topLeftBorderBox,n.topLeftPaddingBox,n.topRightBorderBox,n.topRightPaddingBox);case 1:return $o(n.topRightBorderBox,n.topRightPaddingBox,n.bottomRightBorderBox,n.bottomRightPaddingBox);case 2:return $o(n.bottomRightBorderBox,n.bottomRightPaddingBox,n.bottomLeftBorderBox,n.bottomLeftPaddingBox);case 3:default:return $o(n.bottomLeftBorderBox,n.bottomLeftPaddingBox,n.topLeftBorderBox,n.topLeftPaddingBox)}},Xct=function(n,e){switch(e){case 0:return $o(n.topLeftBorderBox,n.topLeftBorderDoubleOuterBox,n.topRightBorderBox,n.topRightBorderDoubleOuterBox);case 1:return $o(n.topRightBorderBox,n.topRightBorderDoubleOuterBox,n.bottomRightBorderBox,n.bottomRightBorderDoubleOuterBox);case 2:return $o(n.bottomRightBorderBox,n.bottomRightBorderDoubleOuterBox,n.bottomLeftBorderBox,n.bottomLeftBorderDoubleOuterBox);case 3:default:return $o(n.bottomLeftBorderBox,n.bottomLeftBorderDoubleOuterBox,n.topLeftBorderBox,n.topLeftBorderDoubleOuterBox)}},Yct=function(n,e){switch(e){case 0:return $o(n.topLeftBorderDoubleInnerBox,n.topLeftPaddingBox,n.topRightBorderDoubleInnerBox,n.topRightPaddingBox);case 1:return $o(n.topRightBorderDoubleInnerBox,n.topRightPaddingBox,n.bottomRightBorderDoubleInnerBox,n.bottomRightPaddingBox);case 2:return $o(n.bottomRightBorderDoubleInnerBox,n.bottomRightPaddingBox,n.bottomLeftBorderDoubleInnerBox,n.bottomLeftPaddingBox);case 3:default:return $o(n.bottomLeftBorderDoubleInnerBox,n.bottomLeftPaddingBox,n.topLeftBorderDoubleInnerBox,n.topLeftPaddingBox)}},Jct=function(n,e){switch(e){case 0:return kv(n.topLeftBorderStroke,n.topRightBorderStroke);case 1:return kv(n.topRightBorderStroke,n.bottomRightBorderStroke);case 2:return kv(n.bottomRightBorderStroke,n.bottomLeftBorderStroke);case 3:default:return kv(n.bottomLeftBorderStroke,n.topLeftBorderStroke)}},kv=function(n,e){var t=[];return Oo(n)?t.push(n.subdivide(.5,!1)):t.push(n),Oo(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},$o=function(n,e,t,r){var i=[];return Oo(n)?i.push(n.subdivide(.5,!1)):i.push(n),Oo(t)?i.push(t.subdivide(.5,!0)):i.push(t),Oo(r)?i.push(r.subdivide(.5,!0).reverse()):i.push(r),Oo(e)?i.push(e.subdivide(.5,!1).reverse()):i.push(e),i},Aj=function(n){var e=n.bounds,t=n.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Bw=function(n){var e=n.styles,t=n.bounds,r=$r(e.paddingLeft,t.width),i=$r(e.paddingRight,t.width),a=$r(e.paddingTop,t.width),s=$r(e.paddingBottom,t.width);return t.add(r+e.borderLeftWidth,a+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+r+i),-(e.borderTopWidth+e.borderBottomWidth+a+s))},Zct=function(n,e){return n===0?e.bounds:n===2?Bw(e):Aj(e)},elt=function(n,e){return n===0?e.bounds:n===2?Bw(e):Aj(e)},c2=function(n,e,t){var r=Zct($h(n.styles.backgroundOrigin,e),n),i=elt($h(n.styles.backgroundClip,e),n),a=tlt($h(n.styles.backgroundSize,e),t,r),s=a[0],o=a[1],c=zm($h(n.styles.backgroundPosition,e),r.width-s,r.height-o),l=nlt($h(n.styles.backgroundRepeat,e),c,a,r,i),u=Math.round(r.left+c[0]),A=Math.round(r.top+c[1]);return[l,u,A,s,o]},Uh=function(n){return Lr(n)&&n.value===Jh.AUTO},Iv=function(n){return typeof n=="number"},tlt=function(n,e,t){var r=e[0],i=e[1],a=e[2],s=n[0],o=n[1];if(!s)return[0,0];if(Ui(s)&&o&&Ui(o))return[$r(s,t.width),$r(o,t.height)];var c=Iv(a);if(Lr(s)&&(s.value===Jh.CONTAIN||s.value===Jh.COVER)){if(Iv(a)){var l=t.width/t.height;return l<a!=(s.value===Jh.COVER)?[t.width,t.width/a]:[t.height*a,t.height]}return[t.width,t.height]}var u=Iv(r),A=Iv(i),f=u||A;if(Uh(s)&&(!o||Uh(o))){if(u&&A)return[r,i];if(!c&&!f)return[t.width,t.height];if(f&&c){var h=u?r:i*a,g=A?i:r/a;return[h,g]}var y=u?r:t.width,w=A?i:t.height;return[y,w]}if(c){var v=0,S=0;return Ui(s)?v=$r(s,t.width):Ui(o)&&(S=$r(o,t.height)),Uh(s)?v=S*a:(!o||Uh(o))&&(S=v/a),[v,S]}var C=null,M=null;if(Ui(s)?C=$r(s,t.width):o&&Ui(o)&&(M=$r(o,t.height)),C!==null&&(!o||Uh(o))&&(M=u&&A?C/r*i:t.height),M!==null&&Uh(s)&&(C=u&&A?M/i*r:t.width),C!==null&&M!==null)return[C,M];throw new Error("Unable to calculate background-size for element")},$h=function(n,e){var t=n[e];return typeof t>"u"?n[0]:t},nlt=function(n,e,t,r,i){var a=e[0],s=e[1],o=t[0],c=t[1];switch(n){case 2:return[new jt(Math.round(r.left),Math.round(r.top+s)),new jt(Math.round(r.left+r.width),Math.round(r.top+s)),new jt(Math.round(r.left+r.width),Math.round(c+r.top+s)),new jt(Math.round(r.left),Math.round(c+r.top+s))];case 3:return[new jt(Math.round(r.left+a),Math.round(r.top)),new jt(Math.round(r.left+a+o),Math.round(r.top)),new jt(Math.round(r.left+a+o),Math.round(r.height+r.top)),new jt(Math.round(r.left+a),Math.round(r.height+r.top))];case 1:return[new jt(Math.round(r.left+a),Math.round(r.top+s)),new jt(Math.round(r.left+a+o),Math.round(r.top+s)),new jt(Math.round(r.left+a+o),Math.round(r.top+s+c)),new jt(Math.round(r.left+a),Math.round(r.top+s+c))];default:return[new jt(Math.round(i.left),Math.round(i.top)),new jt(Math.round(i.left+i.width),Math.round(i.top)),new jt(Math.round(i.left+i.width),Math.round(i.height+i.top)),new jt(Math.round(i.left),Math.round(i.height+i.top))]}},rlt="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",SF="Hidden Text",ilt=(function(){function n(e){this._data={},this._document=e}return n.prototype.parseMetrics=function(e,t){var r=this._document.createElement("div"),i=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=e,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),i.src=rlt,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(SF)),r.appendChild(a),r.appendChild(i);var o=i.offsetTop-a.offsetTop+2;r.removeChild(a),r.appendChild(this._document.createTextNode(SF)),r.style.lineHeight="normal",i.style.verticalAlign="super";var c=i.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:o,middle:c}},n.prototype.getMetrics=function(e,t){var r=e+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(e,t)),this._data[r]},n})(),hj=(function(){function n(e,t){this.context=e,this.options=t}return n})(),alt=1e4,slt=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i._activeEffects=[],i.canvas=r.canvas?r.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),r.canvas||(i.canvas.width=Math.floor(r.width*r.scale),i.canvas.height=Math.floor(r.height*r.scale),i.canvas.style.width=r.width+"px",i.canvas.style.height=r.height+"px"),i.fontMetrics=new ilt(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-r.x,-r.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),i}return e.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(i){return r.applyEffect(i)})},e.prototype.applyEffect=function(t){this.ctx.save(),Gct(t)&&(this.ctx.globalAlpha=t.opacity),Vct(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),cj(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return _s(this,void 0,void 0,function(){var r;return Va(this,function(i){switch(i.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return _s(this,void 0,void 0,function(){return Va(this,function(r){switch(r.label){case 0:return Ki(t.container.flags,16),t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,r,i){var a=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+i);else{var s=iE(t.text);s.reduce(function(o,c){return a.ctx.fillText(c,o,t.bounds.top+i),o+a.ctx.measureText(c).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),i=dlt(t.fontFamily).join(", "),a=Og(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,a,i].join(" "),i,a]},e.prototype.renderTextNode=function(t,r){return _s(this,void 0,void 0,function(){var i,a,s,o,c,l,u,A,f=this;return Va(this,function(h){return i=this.createFontStyle(r),a=i[0],s=i[1],o=i[2],this.ctx.font=a,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,o),l=c.baseline,u=c.middle,A=r.paintOrder,t.textBounds.forEach(function(g){A.forEach(function(y){switch(y){case 0:f.ctx.fillStyle=ua(r.color),f.renderTextWithLetterSpacing(g,r.letterSpacing,l);var w=r.textShadow;w.length&&g.text.trim().length&&(w.slice(0).reverse().forEach(function(v){f.ctx.shadowColor=ua(v.color),f.ctx.shadowOffsetX=v.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=v.offsetY.number*f.options.scale,f.ctx.shadowBlur=v.blur.number,f.renderTextWithLetterSpacing(g,r.letterSpacing,l)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=ua(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(v){switch(v){case 1:f.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+l),g.bounds.width,1);break;case 2:f.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top),g.bounds.width,1);break;case 3:f.ctx.fillRect(g.bounds.left,Math.ceil(g.bounds.top+u),g.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&g.text.trim().length&&(f.ctx.strokeStyle=ua(r.webkitTextStrokeColor),f.ctx.lineWidth=r.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(g.text,g.bounds.left,g.bounds.top+l)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,r,i){if(i&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var a=Bw(t),s=Ew(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,t.intrinsicWidth,t.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return _s(this,void 0,void 0,function(){var r,i,a,s,o,c,S,S,l,u,A,f,M,h,g,F,y,w,v,S,C,M,F;return Va(this,function(D){switch(D.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,i=t.curves,a=r.styles,s=0,o=r.textNodes,D.label=1;case 1:return s<o.length?(c=o[s],[4,this.renderTextNode(c,a)]):[3,4];case 2:D.sent(),D.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof z$))return[3,8];D.label=5;case 5:return D.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return S=D.sent(),this.renderReplacedElement(r,i,S),[3,8];case 7:return D.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof V$&&this.renderReplacedElement(r,i,r.canvas),!(r instanceof G$))return[3,12];D.label=9;case 9:return D.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return S=D.sent(),this.renderReplacedElement(r,i,S),[3,12];case 11:return D.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Y$&&r.tree?(l=new e(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,l.render(r.tree)]):[3,14];case 13:u=D.sent(),r.width&&r.height&&this.ctx.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),D.label=14;case 14:if(r instanceof aE&&(A=Math.min(r.bounds.width,r.bounds.height),r.type===xw?r.checked&&(this.ctx.save(),this.path([new jt(r.bounds.left+A*.39363,r.bounds.top+A*.79),new jt(r.bounds.left+A*.16,r.bounds.top+A*.5549),new jt(r.bounds.left+A*.27347,r.bounds.top+A*.44071),new jt(r.bounds.left+A*.39694,r.bounds.top+A*.5649),new jt(r.bounds.left+A*.72983,r.bounds.top+A*.23),new jt(r.bounds.left+A*.84,r.bounds.top+A*.34085),new jt(r.bounds.left+A*.39363,r.bounds.top+A*.79)]),this.ctx.fillStyle=ua(AF),this.ctx.fill(),this.ctx.restore()):r.type===Mw&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+A/2,r.bounds.top+A/2,A/4,0,Math.PI*2,!0),this.ctx.fillStyle=ua(AF),this.ctx.fill(),this.ctx.restore())),olt(r)&&r.value.length){switch(f=this.createFontStyle(a),M=f[0],h=f[1],g=this.fontMetrics.getMetrics(M,h).baseline,this.ctx.font=M,this.ctx.fillStyle=ua(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=llt(r.styles.textAlign),F=Bw(r),y=0,r.styles.textAlign){case 1:y+=F.width/2;break;case 2:y+=F.width;break}w=F.add(y,0,0,-F.height/2+1),this.ctx.save(),this.path([new jt(F.left,F.top),new jt(F.left+F.width,F.top),new jt(F.left+F.width,F.top+F.height),new jt(F.left,F.top+F.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new vp(r.value,w),a.letterSpacing,g),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ki(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(v=r.styles.listStyleImage,v.type!==0)return[3,18];S=void 0,C=v.url,D.label=15;case 15:return D.trys.push([15,17,,18]),[4,this.context.cache.match(C)];case 16:return S=D.sent(),this.ctx.drawImage(S,r.bounds.left-(S.width+10),r.bounds.top),[3,18];case 17:return D.sent(),this.context.logger.error("Error loading list-style-image "+C),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(M=this.createFontStyle(a)[0],this.ctx.font=M,this.ctx.fillStyle=ua(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",F=new eu(r.bounds.left,r.bounds.top+$r(r.styles.paddingTop,r.bounds.width),r.bounds.width,qL(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new vp(t.listValue,F),a.letterSpacing,qL(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),D.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return _s(this,void 0,void 0,function(){var r,i,v,a,s,v,o,c,v,l,u,v,A,f,v,h,g,v,y,w,v;return Va(this,function(S){switch(S.label){case 0:return Ki(t.element.container.flags,16),[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:S.sent(),r=0,i=t.negativeZIndex,S.label=2;case 2:return r<i.length?(v=i[r],[4,this.renderStack(v)]):[3,5];case 3:S.sent(),S.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:S.sent(),a=0,s=t.nonInlineLevel,S.label=7;case 7:return a<s.length?(v=s[a],[4,this.renderNode(v)]):[3,10];case 8:S.sent(),S.label=9;case 9:return a++,[3,7];case 10:o=0,c=t.nonPositionedFloats,S.label=11;case 11:return o<c.length?(v=c[o],[4,this.renderStack(v)]):[3,14];case 12:S.sent(),S.label=13;case 13:return o++,[3,11];case 14:l=0,u=t.nonPositionedInlineLevel,S.label=15;case 15:return l<u.length?(v=u[l],[4,this.renderStack(v)]):[3,18];case 16:S.sent(),S.label=17;case 17:return l++,[3,15];case 18:A=0,f=t.inlineLevel,S.label=19;case 19:return A<f.length?(v=f[A],[4,this.renderNode(v)]):[3,22];case 20:S.sent(),S.label=21;case 21:return A++,[3,19];case 22:h=0,g=t.zeroOrAutoZIndexOrTransformedOrOpacity,S.label=23;case 23:return h<g.length?(v=g[h],[4,this.renderStack(v)]):[3,26];case 24:S.sent(),S.label=25;case 25:return h++,[3,23];case 26:y=0,w=t.positiveZIndex,S.label=27;case 27:return y<w.length?(v=w[y],[4,this.renderStack(v)]):[3,30];case 28:S.sent(),S.label=29;case 29:return y++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){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(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var r=this;t.forEach(function(i,a){var s=Oo(i)?i.start:i;a===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Oo(i)&&r.ctx.bezierCurveTo(i.startControl.x,i.startControl.y,i.endControl.x,i.endControl.y,i.end.x,i.end.y)})},e.prototype.renderRepeat=function(t,r,i,a){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(i,a),this.ctx.fill(),this.ctx.translate(-i,-a)},e.prototype.resizeImage=function(t,r,i){var a;if(t.width===r&&t.height===i)return t;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=s.createElement("canvas");o.width=Math.max(1,r),o.height=Math.max(1,i);var c=o.getContext("2d");return c.drawImage(t,0,0,t.width,t.height,0,0,r,i),o},e.prototype.renderBackgroundImage=function(t){return _s(this,void 0,void 0,function(){var r,i,a,s,o,c;return Va(this,function(l){switch(l.label){case 0:r=t.styles.backgroundImage.length-1,i=function(u){var A,f,h,P,de,fe,j,$,O,g,P,de,fe,j,$,y,w,v,S,C,M,F,D,U,O,T,P,k,H,j,$,ce,de,fe,ee,Se,xe,Pe,V,ae,J,z;return Va(this,function(Z){switch(Z.label){case 0:if(u.type!==0)return[3,5];A=void 0,f=u.url,Z.label=1;case 1:return Z.trys.push([1,3,,4]),[4,a.context.cache.match(f)];case 2:return A=Z.sent(),[3,4];case 3:return Z.sent(),a.context.logger.error("Error loading background-image "+f),[3,4];case 4:return A&&(h=c2(t,r,[A.width,A.height,A.width/A.height]),P=h[0],de=h[1],fe=h[2],j=h[3],$=h[4],O=a.ctx.createPattern(a.resizeImage(A,j,$),"repeat"),a.renderRepeat(P,O,de,fe)),[3,6];case 5:Vat(u)?(g=c2(t,r,[null,null,null]),P=g[0],de=g[1],fe=g[2],j=g[3],$=g[4],y=Wat(u.angle,j,$),w=y[0],v=y[1],S=y[2],C=y[3],M=y[4],F=document.createElement("canvas"),F.width=j,F.height=$,D=F.getContext("2d"),U=D.createLinearGradient(v,C,S,M),GL(u.stops,w).forEach(function(le){return U.addColorStop(le.stop,ua(le.color))}),D.fillStyle=U,D.fillRect(0,0,j,$),j>0&&$>0&&(O=a.ctx.createPattern(F,"repeat"),a.renderRepeat(P,O,de,fe))):Gat(u)&&(T=c2(t,r,[null,null,null]),P=T[0],k=T[1],H=T[2],j=T[3],$=T[4],ce=u.position.length===0?[tE]:u.position,de=$r(ce[0],j),fe=$r(ce[ce.length-1],$),ee=Qat(u,de,fe,j,$),Se=ee[0],xe=ee[1],Se>0&&xe>0&&(Pe=a.ctx.createRadialGradient(k+de,H+fe,0,k+de,H+fe,Se),GL(u.stops,Se*2).forEach(function(le){return Pe.addColorStop(le.stop,ua(le.color))}),a.path(P),a.ctx.fillStyle=Pe,Se!==xe?(V=t.bounds.left+.5*t.bounds.width,ae=t.bounds.top+.5*t.bounds.height,J=xe/Se,z=1/J,a.ctx.save(),a.ctx.translate(V,ae),a.ctx.transform(1,0,0,J,0,0),a.ctx.translate(-V,-ae),a.ctx.fillRect(k,z*(H-ae)+ae,j,$*z),a.ctx.restore()):a.ctx.fill())),Z.label=6;case 6:return r--,[2]}})},a=this,s=0,o=t.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return s<o.length?(c=o[s],[5,i(c)]):[3,4];case 2:l.sent(),l.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,r,i){return _s(this,void 0,void 0,function(){return Va(this,function(a){return this.path(MF(i,r)),this.ctx.fillStyle=ua(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,r,i,a){return _s(this,void 0,void 0,function(){var s,o;return Va(this,function(c){switch(c.label){case 0:return r<3?[4,this.renderSolidBorder(t,i,a)]:[3,2];case 1:return c.sent(),[2];case 2:return s=Xct(a,i),this.path(s),this.ctx.fillStyle=ua(t),this.ctx.fill(),o=Yct(a,i),this.path(o),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return _s(this,void 0,void 0,function(){var r,i,a,s,o,c,l,u,A=this;return Va(this,function(f){switch(f.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,i=!Xu(r.backgroundColor)||r.backgroundImage.length,a=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=clt($h(r.backgroundClip,0),t.curves),i||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Xu(r.backgroundColor)||(this.ctx.fillStyle=ua(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(h){A.ctx.save();var g=Pw(t.curves),y=h.inset?0:alt,w=Kct(g,-y+(h.inset?1:-1)*h.spread.number,(h.inset?1:-1)*h.spread.number,h.spread.number*(h.inset?-2:2),h.spread.number*(h.inset?-2:2));h.inset?(A.path(g),A.ctx.clip(),A.mask(w)):(A.mask(g),A.ctx.clip(),A.path(w)),A.ctx.shadowOffsetX=h.offsetX.number+y,A.ctx.shadowOffsetY=h.offsetY.number,A.ctx.shadowColor=ua(h.color),A.ctx.shadowBlur=h.blur.number,A.ctx.fillStyle=h.inset?ua(h.color):"rgba(0,0,0,1)",A.ctx.fill(),A.ctx.restore()}),f.label=2;case 2:o=0,c=0,l=a,f.label=3;case 3:return c<l.length?(u=l[c],u.style!==0&&!Xu(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,o,t.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,o,t.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,o,t.curves)];case 10:f.sent(),f.label=11;case 11:o++,f.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,r,i,a,s){return _s(this,void 0,void 0,function(){var o,c,l,u,A,f,h,g,y,w,v,S,C,M,F,D,F,D;return Va(this,function(U){return this.ctx.save(),o=Jct(a,i),c=MF(a,i),s===2&&(this.path(c),this.ctx.clip()),Oo(c[0])?(l=c[0].start.x,u=c[0].start.y):(l=c[0].x,u=c[0].y),Oo(c[1])?(A=c[1].end.x,f=c[1].end.y):(A=c[1].x,f=c[1].y),i===0||i===2?h=Math.abs(l-A):h=Math.abs(u-f),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(c.slice(0,2)),g=r<3?r*3:r*2,y=r<3?r*2:r,s===3&&(g=r,y=r),w=!0,h<=g*2?w=!1:h<=g*2+y?(v=h/(2*g+y),g*=v,y*=v):(S=Math.floor((h+y)/(g+y)),C=(h-S*g)/(S-1),M=(h-(S+1)*g)/S,y=M<=0||Math.abs(y-C)<Math.abs(y-M)?C:M),w&&(s===3?this.ctx.setLineDash([0,g+y]):this.ctx.setLineDash([g,y])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=ua(t),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Oo(c[0])&&(F=c[3],D=c[0],this.ctx.beginPath(),this.formatPath([new jt(F.end.x,F.end.y),new jt(D.start.x,D.start.y)]),this.ctx.stroke()),Oo(c[1])&&(F=c[1],D=c[2],this.ctx.beginPath(),this.formatPath([new jt(F.end.x,F.end.y),new jt(D.start.x,D.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return _s(this,void 0,void 0,function(){var r;return Va(this,function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ua(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=qct(t),[4,this.renderStack(r)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}})})},e})(hj),olt=function(n){return n instanceof X$||n instanceof q$?!0:n instanceof aE&&n.type!==Mw&&n.type!==xw},clt=function(n,e){switch(n){case 0:return Pw(e);case 2:return $ct(e);case 1:default:return Ew(e)}},llt=function(n){switch(n){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ult=["-apple-system","system-ui"],dlt=function(n){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?n.filter(function(e){return ult.indexOf(e)===-1}):n},Alt=(function(n){Tc(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.canvas=r.canvas?r.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=r,i.canvas.width=Math.floor(r.width*r.scale),i.canvas.height=Math.floor(r.height*r.scale),i.canvas.style.width=r.width+"px",i.canvas.style.height=r.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-r.x,-r.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),i}return e.prototype.render=function(t){return _s(this,void 0,void 0,function(){var r,i;return Va(this,function(a){switch(a.label){case 0:return r=eS(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,hlt(r)];case 1:return i=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ua(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e})(hj),hlt=function(n){return new Promise(function(e,t){var r=new Image;r.onload=function(){e(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(n))})},flt=(function(){function n(e){var t=e.id,r=e.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return n.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"||this.info.apply(this,e))},n.prototype.getTime=function(){return Date.now()-this.start},n.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console},n.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"||this.info.apply(this,e))},n.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"||this.info.apply(this,e))},n.instances={},n})(),mlt=(function(){function n(e,t){var r;this.windowBounds=t,this.instanceName="#"+n.instanceCount++,this.logger=new flt({id:this.instanceName,enabled:e.logging}),this.cache=(r=e.cache)!==null&&r!==void 0?r:new Nct(this,e)}return n.instanceCount=1,n})(),plt=function(n,e){return e===void 0&&(e={}),glt(n,e)};typeof window<"u"&&oj.setContext(window);var glt=function(n,e){return _s(void 0,void 0,void 0,function(){var t,r,i,a,s,o,c,l,u,A,f,h,g,y,w,v,S,C,M,F,U,D,U,O,T,P,k,H,j,$,ce,de,fe,ee,Se,xe,Pe,V,ae,J;return Va(this,function(z){switch(z.label){case 0:if(!n||typeof n!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=n.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return i={allowTaint:(O=e.allowTaint)!==null&&O!==void 0?O:!1,imageTimeout:(T=e.imageTimeout)!==null&&T!==void 0?T:15e3,proxy:e.proxy,useCORS:(P=e.useCORS)!==null&&P!==void 0?P:!1},a=OM({logging:(k=e.logging)!==null&&k!==void 0?k:!0,cache:e.cache},i),s={windowWidth:(H=e.windowWidth)!==null&&H!==void 0?H:r.innerWidth,windowHeight:(j=e.windowHeight)!==null&&j!==void 0?j:r.innerHeight,scrollX:($=e.scrollX)!==null&&$!==void 0?$:r.pageXOffset,scrollY:(ce=e.scrollY)!==null&&ce!==void 0?ce:r.pageYOffset},o=new eu(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new mlt(a,o),l=(de=e.foreignObjectRendering)!==null&&de!==void 0?de:!1,u={allowTaint:(fe=e.allowTaint)!==null&&fe!==void 0?fe:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:l,copyStyles:l},c.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),A=new bF(c,n,u),f=A.clonedReferenceElement,f?[4,A.toIFrame(t,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=z.sent(),g=sE(f)||vct(f)?Krt(f.ownerDocument):Qb(c,f),y=g.width,w=g.height,v=g.left,S=g.top,C=vlt(c,f,e.backgroundColor),M={canvas:e.canvas,backgroundColor:C,scale:(Se=(ee=e.scale)!==null&&ee!==void 0?ee:r.devicePixelRatio)!==null&&Se!==void 0?Se:1,x:((xe=e.x)!==null&&xe!==void 0?xe:0)+v,y:((Pe=e.y)!==null&&Pe!==void 0?Pe:0)+S,width:(V=e.width)!==null&&V!==void 0?V:Math.ceil(y),height:(ae=e.height)!==null&&ae!==void 0?ae:Math.ceil(w)},l?(c.logger.debug("Document cloned, using foreign object rendering"),U=new Alt(c,M),[4,U.render(f)]):[3,3];case 2:return F=z.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+v+","+S+" with size "+y+"x"+w+" using computed rendering"),c.logger.debug("Starting DOM parsing"),D=Z$(c,f),C===D.styles.backgroundColor&&(D.styles.backgroundColor=Vl.TRANSPARENT),c.logger.debug("Starting renderer for element at "+M.x+","+M.y+" with size "+M.width+"x"+M.height),U=new slt(c,M),[4,U.render(D)];case 4:F=z.sent(),z.label=5;case 5:return(!((J=e.removeContainer)!==null&&J!==void 0)||J)&&(bF.destroy(h)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,F]}})})},vlt=function(n,e,t){var r=e.ownerDocument,i=r.documentElement?pp(n,getComputedStyle(r.documentElement).backgroundColor):Vl.TRANSPARENT,a=r.body?pp(n,getComputedStyle(r.body).backgroundColor):Vl.TRANSPARENT,s=typeof t=="string"?pp(n,t):t===null?Vl.TRANSPARENT:4294967295;return e===r.documentElement?Xu(i)?Xu(a)?s:a:i:s};const fj=Object.freeze(Object.defineProperty({__proto__:null,default:plt},Symbol.toStringTag,{value:"Module"})),ylt=typeof window>"u",CF=!ylt&&window.self!==window.top,l2=()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15);class mj extends Error{constructor(e,t,r,i,a){super(e),this.name="Base44Error",this.status=t,this.code=r,this.data=i,this.originalError=a}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code,data:this.data}}}function Lv({baseURL:n,headers:e={},token:t,interceptResponses:r=!0,onError:i}){const a=v6.create({baseURL:n,headers:{"Content-Type":"application/json",Accept:"application/json",...e}});return t&&(a.defaults.headers.common.Authorization=`Bearer ${t}`),a.interceptors.request.use(s=>{typeof window<"u"&&s.headers.set("X-Origin-URL",window.location.href);const o=B6();if(s.requestId=o,CF)try{window.parent.postMessage({type:"api-request-start",requestId:o,data:{url:n+s.url,method:s.method,body:s.data instanceof FormData?"[FormData object]":s.data}},"*")}catch{}return s}),r&&a.interceptors.response.use(s=>{var o;const c=(o=s.config)===null||o===void 0?void 0:o.requestId;try{CF&&c&&window.parent.postMessage({type:"api-request-end",requestId:c,data:{statusCode:s.status,response:s.data}},"*")}catch{}return s.data},s=>{var o,c,l,u,A,f,h,g;const y=((c=(o=s.response)===null||o===void 0?void 0:o.data)===null||c===void 0?void 0:c.message)||((u=(l=s.response)===null||l===void 0?void 0:l.data)===null||u===void 0?void 0:u.detail)||s.message,w=new mj(y,(A=s.response)===null||A===void 0?void 0:A.status,(h=(f=s.response)===null||f===void 0?void 0:f.data)===null||h===void 0?void 0:h.code,(g=s.response)===null||g===void 0?void 0:g.data,s);return i==null||i(w),Promise.reject(w)}),a}function PF(n){const{axios:e,appId:t,getSocket:r}=n;return new Proxy({},{get(i,a){if(!(typeof a!="string"||a==="then"||a.startsWith("_")))return blt(e,t,a,r)}})}function wlt(n){var e;try{const t=JSON.parse(n);return{type:t.type,data:t.data,id:t.id||((e=t.data)===null||e===void 0?void 0:e.id),timestamp:t.timestamp||new Date().toISOString()}}catch{return null}}function blt(n,e,t,r){const i=`/apps/${e}/entities/${t}`;return{async list(a,s,o,c){const l={};return a&&(l.sort=a),s&&(l.limit=s),o&&(l.skip=o),c&&(l.fields=Array.isArray(c)?c.join(","):c),n.get(i,{params:l})},async filter(a,s,o,c,l){const u={q:JSON.stringify(a)};return s&&(u.sort=s),o&&(u.limit=o),c&&(u.skip=c),l&&(u.fields=Array.isArray(l)?l.join(","):l),n.get(i,{params:u})},async get(a){return n.get(`${i}/${a}`)},async create(a){return n.post(i,a)},async update(a,s){return n.put(`${i}/${a}`,s)},async delete(a){return n.delete(`${i}/${a}`)},async deleteMany(a){return n.delete(i,{data:a})},async bulkCreate(a){return n.post(`${i}/bulk`,a)},async updateMany(a,s){return n.patch(`${i}/update-many`,{query:a,data:s})},async bulkUpdate(a){return n.put(`${i}/bulk`,a)},async importEntities(a){const s=new FormData;return s.append("file",a,a.name),n.post(`${i}/import`,s,{headers:{"Content-Type":"multipart/form-data"}})},subscribe(a){const s=`entities:${e}:${t}`;return r().subscribeToRoom(s,{update_model:l=>{const u=wlt(l.data);if(u)try{a(u)}catch{}}})}}}function _lt(n,e){return{async call(t,r,i){if(!(t!=null&&t.trim()))throw new Error("Integration slug is required and cannot be empty");if(!(r!=null&&r.trim()))throw new Error("Operation ID is required and cannot be empty");const{pathParams:a,queryParams:s,...o}=i??{},c={...o,...a&&{path_params:a},...s&&{query_params:s}};return await n.post(`/apps/${e}/integrations/custom/${t}/${r}`,c)}}}function EF(n,e){const t=_lt(n,e);return new Proxy({},{get(r,i){if(!(typeof i!="string"||i==="then"||i.startsWith("_")))return i==="custom"?t:new Proxy({},{get(a,s){if(!(typeof s!="string"||s==="then"||s.startsWith("_")))return async o=>{if(typeof o=="string")throw new Error(`Integration ${s} must receive an object with named parameters, received: ${o}`);let c,l;return o instanceof FormData||o&&Object.values(o).some(u=>u instanceof File)?(c=new FormData,Object.keys(o).forEach(u=>{o[u]instanceof File?c.append(u,o[u],o[u].name):typeof o[u]=="object"&&o[u]!==null?c.append(u,JSON.stringify(o[u])):c.append(u,o[u])}),l="multipart/form-data"):(c=o,l="application/json"),i==="Core"?n.post(`/apps/${e}/integration-endpoints/Core/${s}`,c||o,{headers:{"Content-Type":l}}):n.post(`/apps/${e}/integration-endpoints/installable/${i}/integration-endpoints/${s}`,c||o,{headers:{"Content-Type":l}})}}})}})}function xlt(n,e,t,r){return{async me(){return n.get(`/apps/${t}/entities/User/me`)},async updateMe(i){return n.put(`/apps/${t}/entities/User/me`,i)},redirectToLogin(i){if(typeof window>"u")throw new Error("Login method can only be used in a browser environment");const a=i?new URL(i,window.location.origin).toString():window.location.href,s=`${r.appBaseUrl}/login?from_url=${encodeURIComponent(a)}`;window.location.href=s},loginWithProvider(i,a="/"){const s=new URL(a,window.location.origin).toString(),o=`app_id=${t}&from_url=${encodeURIComponent(s)}`;let c;i==="sso"?c=`/apps/${t}/auth/sso/login`:c=`/apps/auth${i==="google"?"":`/${i}`}/login`;const l=`${r.appBaseUrl}/api${c}?${o}`;window.location.href=l},logout(i){if(delete n.defaults.headers.common.Authorization,typeof window<"u"){if(window.localStorage)try{window.localStorage.removeItem("base44_access_token"),window.localStorage.removeItem("token")}catch{}const a=i||window.location.href,s=`${r.appBaseUrl}/api/apps/auth/logout?from_url=${encodeURIComponent(a)}`;window.location.href=s}},setToken(i,a=!0){if(i&&(n.defaults.headers.common.Authorization=`Bearer ${i}`,e.defaults.headers.common.Authorization=`Bearer ${i}`,a&&typeof window<"u"&&window.localStorage))try{window.localStorage.setItem("base44_access_token",i),window.localStorage.setItem("token",i)}catch{}},async loginViaEmailPassword(i,a,s){var o;try{const c=await n.post(`/apps/${t}/auth/login`,{email:i,password:a,...s&&{turnstile_token:s}}),{access_token:l,user:u}=c;return l&&this.setToken(l),{access_token:l,user:u}}catch(c){throw((o=c.response)===null||o===void 0?void 0:o.status)===401&&await this.logout(),c}},async isAuthenticated(){try{return await this.me(),!0}catch{return!1}},inviteUser(i,a){return n.post(`/apps/${t}/users/invite-user`,{user_email:i,role:a})},register(i){return n.post(`/apps/${t}/auth/register`,i)},verifyOtp({email:i,otpCode:a}){return n.post(`/apps/${t}/auth/verify-otp`,{email:i,otp_code:a})},resendOtp(i){return n.post(`/apps/${t}/auth/resend-otp`,{email:i})},resetPasswordRequest(i){return n.post(`/apps/${t}/auth/reset-password-request`,{email:i})},resetPassword({resetToken:i,newPassword:a}){return n.post(`/apps/${t}/auth/reset-password`,{reset_token:i,new_password:a})},changePassword({userId:i,currentPassword:a,newPassword:s}){return n.post(`/apps/${t}/auth/change-password`,{user_id:i,current_password:a,new_password:s})}}}function Mlt(n,e,t){return{async getAccessToken(r){const i=`/apps/${e}/auth/sso/accesstoken/${r}`,a={};return t&&(a["on-behalf-of"]=`Bearer ${t}`),n.get(i,{headers:a})}}}function Slt(n,e){return{async getAccessToken(t){if(!t||typeof t!="string")throw new Error("Integration type is required and must be a string");return(await n.get(`/apps/${e}/external-auth/tokens/${t}`)).access_token},async getConnection(t){var r;if(!t||typeof t!="string")throw new Error("Integration type is required and must be a string");const a=await n.get(`/apps/${e}/external-auth/tokens/${t}`);return{accessToken:a.access_token,connectionConfig:(r=a.connection_config)!==null&&r!==void 0?r:null}}}}function Clt(n,e){return{async getCurrentAppUserAccessToken(t){if(!t||typeof t!="string")throw new Error("Connector ID is required and must be a string");return(await n.get(`/apps/${e}/app-user-auth/connectors/${t}/token`)).access_token},async connectAppUser(t){if(!t||typeof t!="string")throw new Error("Connector ID is required and must be a string");return(await n.post(`/apps/${e}/app-user-auth/connectors/${t}/initiate`)).redirect_url},async disconnectAppUser(t){if(!t||typeof t!="string")throw new Error("Connector ID is required and must be a string");await n.delete(`/apps/${e}/app-user-auth/connectors/${t}`)}}}function sg(n={}){const{storageKey:e="base44_access_token",paramName:t="access_token",saveToStorage:r=!0,removeFromUrl:i=!0}=n;let a=null;if(typeof window<"u"&&window.location)try{const s=new URLSearchParams(window.location.search);if(a=s.get(t),a){if(r&&pj(a,{storageKey:e}),i){s.delete(t);const o=`${window.location.pathname}${s.toString()?`?${s.toString()}`:""}${window.location.hash}`;window.history.replaceState({},document.title,o)}return a}}catch{}if(typeof window<"u"&&window.localStorage)try{return a=window.localStorage.getItem(e),a}catch{}return null}function pj(n,e){const{storageKey:t="base44_access_token"}=e;if(typeof window>"u"||!window.localStorage||!n)return!1;try{return window.localStorage.setItem(t,n),window.localStorage.setItem("token",n),!0}catch{return!1}}function Plt(n){const{storageKey:e="base44_access_token"}=n;if(typeof window>"u"||!window.localStorage)return!1;try{return window.localStorage.removeItem(e),!0}catch{return!1}}function Elt(n,e){const{serverUrl:t,appId:r,loginPath:i="/login"}=e;if(!t||!r)throw new Error("serverUrl and appId are required to construct login URL");const a=encodeURIComponent(n||(typeof window<"u"?window.location.href:""));return`${t}${i}?from_url=${a}&app_id=${r}`}function BF(n,e,t){const r=(a,s)=>a?`${String(a).replace(/\/$/,"")}${s}`:s,i=a=>{const s=new Headers;if(t!=null&&t.getAuthHeaders){const o=t.getAuthHeaders();Object.entries(o).forEach(([c,l])=>{l!=null&&s.set(c,String(l))})}return a&&new Headers(a).forEach((o,c)=>{s.set(c,o)}),s};return{async invoke(a,s){if(typeof s=="string")throw new Error(`Function ${a} must receive an object with named parameters, received: ${s}`);let o,c;return s instanceof FormData||s&&Object.values(s).some(l=>l instanceof File)?(o=new FormData,Object.keys(s).forEach(l=>{s[l]instanceof File?o.append(l,s[l],s[l].name):typeof s[l]=="object"&&s[l]!==null?o.append(l,JSON.stringify(s[l])):o.append(l,s[l])}),c="multipart/form-data"):(o=s,c="application/json"),n.post(`/apps/${e}/functions/${a}`,o||s,{headers:{"Content-Type":c}})},async fetch(a,s={}){const c=`/functions${a.startsWith("/")?a:`/${a}`}`,l=i(s.headers),u={...s,headers:l};return await fetch(r(t==null?void 0:t.baseURL,c),u)}}}function TF({axios:n,getSocket:e,appId:t,serverUrl:r,token:i}){const a=`/apps/${t}/agents`,s={},o=()=>n.get(`${a}/conversations`),c=g=>n.get(`${a}/conversations/${g}`);return{getConversations:o,getConversation:c,listConversations:g=>n.get(`${a}/conversations`,{params:g}),createConversation:g=>n.post(`${a}/conversations`,g),addMessage:async(g,y)=>n.post(`${a}/conversations/v2/${g.id}/messages`,y),subscribeToConversation:(g,y)=>{const w=`/agent-conversations/${g}`,v=e(),S=c(g).then(C=>(s[g]=C,C));return v.subscribeToRoom(w,{connect:()=>{},update_model:async({data:C})=>{const M=JSON.parse(C);if(M._message){await S;const F=M._message,D=s[g];if(D){const U=D.messages||[],O=U.findIndex(P=>P.id===F.id),T=O!==-1?U.map((P,k)=>k===O?F:P):[...U,F];s[g]={...D,messages:T},y==null||y(s[g])}}}})},getWhatsAppConnectURL:g=>{const y=`${r}/api/apps/${t}/agents/${encodeURIComponent(g)}/whatsapp`,w=i??sg();return w?`${y}?token=${w}`:y}}}function kF(n,e){const t=`/app-logs/${e}`;return{async logUserInApp(r){await n.post(`${t}/log-user-in-app/${r}`)},async fetchLogs(r={}){return await n.get(t,{params:r})},async getStats(r={}){return await n.get(`${t}/stats`,{params:r})}}}function Blt(n,e){return{async inviteUser(t,r){if(r!=="user"&&r!=="admin")throw new Error(`Invalid role: "${r}". Role must be either "user" or "admin".`);return await n.post(`/apps/${e}/runtime/users/invite-user`,{user_email:t,role:r})}}}function IF(n,e){var t;const r=T6(n.serverUrl,{path:n.mountPath,transports:n.transports,query:{app_id:n.appId,token:(t=n.token)!==null&&t!==void 0?t:sg()}});return r.on("connect",async()=>{var i;return(i=e.connect)===null||i===void 0?void 0:i.call(e)}),r.on("update_model",async i=>{var a;return(a=e.update_model)===null||a===void 0?void 0:a.call(e,i)}),r.on("error",async i=>{var a;return(a=e.error)===null||a===void 0?void 0:a.call(e,i)}),r.on("connect_error",async i=>{var a;return(a=e.error)===null||a===void 0?void 0:a.call(e,i)}),r}function Tlt({config:n}){let e={...n};const t={},r={connect:async()=>{const h=[];Object.keys(t).forEach(g=>{c(g);const y=A(g);y==null||y.forEach(({connect:w})=>{const v=async()=>w==null?void 0:w();h.push(v())})}),await Promise.all(h)},update_model:async h=>{const y=A(h.room).map(w=>{var v;return(v=w.update_model)===null||v===void 0?void 0:v.call(w,h)});await Promise.all(y)},error:async h=>{const g=Object.values(t).flat().map(y=>{var w;return(w=y.error)===null||w===void 0?void 0:w.call(y,h)});await Promise.all(g)}};let i=IF(n,r);function a(){s()}function s(){i&&i.disconnect()}function o(h){a(),e={...e,...h},i=IF(e,r)}function c(h){i.emit("join",h)}function l(h){i.emit("leave",h)}async function u(h,g){var y;const w=JSON.stringify(g);return(y=r.update_model)===null||y===void 0?void 0:y.call(r,{room:h,data:w})}function A(h){return t[h]}return{socket:i,subscribeToRoom:(h,g)=>(t[h]||(c(h),t[h]=[]),t[h].push(g),()=>{var y,w;t[h]=(w=(y=t[h])===null||y===void 0?void 0:y.filter(v=>v!==g))!==null&&w!==void 0?w:[],t[h].length===0&&l(h)}),updateConfig:o,updateModel:u,disconnect:s}}const Lm=typeof window<"u"?window:{base44SharedInstances:{}};function klt(n,e){return Lm.base44SharedInstances||(Lm.base44SharedInstances={}),Lm.base44SharedInstances[n]||(Lm.base44SharedInstances[n]={instance:e()}),Lm.base44SharedInstances[n].instance}const Ilt="__user_heartbeat_event__",Llt="__initialization_event__",Flt="__session_duration_event__",LF="analytics-enable",FF="base44_analytics_session_id",Nlt={enabled:!0,maxQueueSize:1e3,throttleTime:1e3,batchSize:30,heartBeatInterval:60*1e3},Dlt="analytics",Ur=klt(Dlt,()=>({requestsQueue:[],isProcessing:!1,isHeartBeatProcessing:!1,wasInitializationTracked:!1,sessionContext:null,sessionStartTime:null,config:{...Nlt,...jlt()}})),Rlt=({axiosClient:n,serverUrl:e,appId:t,userAuthModule:r})=>{var i;const{maxQueueSize:a,throttleTime:s,batchSize:o}=Ur.config;if(!(!((i=Ur.config)===null||i===void 0)&&i.enabled))return{track:()=>{},cleanup:()=>{}};let c;const l=`${e}/api/apps/${t}/analytics/track/batch`,u=async C=>{await n.request({method:"POST",url:`/apps/${t}/analytics/track/batch`,data:{events:C}})},A=C=>{try{const M=JSON.stringify({events:C}),F=new Blob([M],{type:"application/json"});return typeof navigator>"u"||M.length>6e4||!navigator.sendBeacon(l,F)}catch{return!1}},f=async(C,M={})=>{if(C.length===0)return;const F=await $lt(r),D=C.map(Qlt(F));try{(!M.isBeacon||!A(D))&&await u(D)}catch{}},h=()=>{DF(f,{throttleTime:s,batchSize:o})},g=C=>{if(Ur.requestsQueue.length>=a)return;const M=Wlt();Ur.requestsQueue.push({...C,...M}),h()},y=()=>{DF(f,{throttleTime:s,batchSize:o}),c=RF(g),Olt()},w=()=>{NF(),c==null||c(),Hlt(g);const C=Ur.requestsQueue.splice(0);f(C,{isBeacon:!0})},v=()=>{typeof window>"u"||(document.visibilityState==="hidden"?w():document.visibilityState==="visible"&&y())},S=()=>{NF(),c==null||c(),typeof window<"u"&&window.removeEventListener("visibilitychange",v)};return h(),c=RF(g),Ult(g),typeof window<"u"&&window.addEventListener("visibilitychange",v),{track:g,cleanup:S}};function NF(){Ur.isProcessing=!1}async function DF(n,e){if(Ur.isProcessing)return;Ur.isProcessing=!0;const{throttleTime:t=1e3,batchSize:r=30}=e??{};for(;Ur.isProcessing&&Ur.requestsQueue.length>0;){const i=Ur.requestsQueue.splice(0,r);i.length&&await n(i),await new Promise(a=>setTimeout(a,t))}Ur.isProcessing=!1}function RF(n){var e;if(Ur.isHeartBeatProcessing||((e=Ur.config.heartBeatInterval)!==null&&e!==void 0?e:0)<10)return()=>{};Ur.isHeartBeatProcessing=!0;const t=setInterval(()=>{n({eventName:Ilt})},Ur.config.heartBeatInterval);return()=>{clearInterval(t),Ur.isHeartBeatProcessing=!1}}function Ult(n){typeof window>"u"||Ur.wasInitializationTracked||(Ur.wasInitializationTracked=!0,n({eventName:Llt,properties:{referrer:document==null?void 0:document.referrer}}))}function Olt(){typeof window>"u"||Ur.sessionStartTime!==null||(Ur.sessionStartTime=new Date().toISOString())}function Hlt(n){if(typeof window>"u"||Ur.sessionStartTime===null)return;const e=new Date().getTime()-new Date(Ur.sessionStartTime).getTime();Ur.sessionStartTime=null,n({eventName:Flt,properties:{sessionDuration:e}})}function Wlt(){return{timestamp:new Date().toISOString(),pageUrl:typeof window<"u"?window.location.pathname:null}}function Qlt(n){return e=>({event_name:e.eventName,properties:e.properties,timestamp:e.timestamp,page_url:e.pageUrl,...n})}let u2=null;async function $lt(n){if(!Ur.sessionContext){if(!u2){const e=zlt();u2=n.me().then(t=>({user_id:t.id,session_id:e})).catch(()=>({user_id:null,session_id:e}))}Ur.sessionContext=await u2}return Ur.sessionContext}function jlt(){if(typeof window>"u")return;const e=new URLSearchParams(window.location.search).get(LF);if(e==null||!e.length)return;const t=new URLSearchParams(window.location.search);t.delete(LF);const r=window.location.pathname+(t.toString()?"?"+t.toString():"");return window.history.replaceState({},"",r),{enabled:e==="true"}}function zlt(){if(typeof window>"u")return l2();try{const n=localStorage.getItem(FF);if(!n){const e=l2();return localStorage.setItem(FF,e),e}return n}catch{return l2()}}function oE(n){var e,t;const{serverUrl:r="https://base44.app",appId:i,token:a,serviceToken:s,requiresAuth:o=!1,appBaseUrl:c,options:l,functionsVersion:u,headers:A}=n,f=typeof c=="string"?c:"",h={serverUrl:r,mountPath:"/ws-user-apps/socket.io/",transports:["websocket"],appId:i,token:a};let g=null;const y=()=>(g||(g=Tlt({config:h})),g),w={...A,"X-App-Id":String(i)},v=u?{...w,"Base44-Functions-Version":u}:w,S=Lv({baseURL:`${r}/api`,headers:w,token:a,onError:l==null?void 0:l.onError}),C=Lv({baseURL:`${r}/api`,headers:v,token:a,interceptResponses:!1,onError:l==null?void 0:l.onError}),M=Lv({baseURL:`${r}/api`,headers:w,token:s,onError:l==null?void 0:l.onError}),F=Lv({baseURL:`${r}/api`,headers:v,token:s,interceptResponses:!1}),D=xlt(S,C,i,{appBaseUrl:f}),U={entities:PF({axios:S,appId:i,getSocket:y}),integrations:EF(S,i),connectors:Clt(S,i),auth:D,functions:BF(C,i,{getAuthHeaders:()=>{const P={},k=a||sg();return k&&(P.Authorization=`Bearer ${k}`),P},baseURL:(e=C.defaults)===null||e===void 0?void 0:e.baseURL}),agents:TF({axios:S,getSocket:y,appId:i,serverUrl:r,token:a}),appLogs:kF(S,i),users:Blt(S,i),analytics:Rlt({axiosClient:S,serverUrl:r,appId:i,userAuthModule:D}),cleanup:()=>{U.analytics.cleanup(),g&&g.disconnect()}},O={entities:PF({axios:M,appId:i,getSocket:y}),integrations:EF(M,i),sso:Mlt(M,i,a),connectors:Slt(M,i),functions:BF(F,i,{getAuthHeaders:()=>{const P={};return s&&(P.Authorization=`Bearer ${s}`),P},baseURL:(t=F.defaults)===null||t===void 0?void 0:t.baseURL}),agents:TF({axios:M,getSocket:y,appId:i,serverUrl:r,token:a}),appLogs:kF(M,i),cleanup:()=>{g&&g.disconnect()}};if(typeof window<"u"){const P=a||sg();P&&U.auth.setToken(P)}return o&&typeof window<"u"&&setTimeout(async()=>{try{await U.auth.isAuthenticated()||U.auth.redirectToLogin(window.location.href)}catch{U.auth.redirectToLogin(window.location.href)}},0),{...U,setToken(P){U.auth.setToken(P),g&&g.updateConfig({token:P}),h.token=P},getConfig(){return{serverUrl:r,appId:i,requiresAuth:o}},get asServiceRole(){if(!s)throw new Error("Service token is required to use asServiceRole. Please provide a serviceToken when creating the client.");return O}}}function Vlt(n){const e=n.headers.get("Authorization"),t=n.headers.get("Base44-Service-Authorization"),r=n.headers.get("Base44-App-Id"),i=n.headers.get("Base44-Api-Url"),a=n.headers.get("Base44-Functions-Version"),s=n.headers.get("Base44-State");if(!r)throw new Error("Base44-App-Id header is required, but is was not found on the request");let o,c;if(t!==null){if(t===""||!t.startsWith("Bearer ")||t.split(" ").length!==2)throw new Error('Invalid authorization header format. Expected "Bearer <token>"');o=t.split(" ")[1]}if(e!==null){if(e===""||!e.startsWith("Bearer ")||e.split(" ").length!==2)throw new Error('Invalid authorization header format. Expected "Bearer <token>"');c=e.split(" ")[1]}const l={};return s&&(l["Base44-State"]=s),oE({serverUrl:i||"https://base44.app",appId:r,token:c,serviceToken:o,functionsVersion:a??void 0,headers:l})}function Glt(n,e,t){const r=async(i,a,s=null)=>{const o=t==null?void 0:t(),c={"X-App-Id":String(e),"Content-Type":"application/json"};o&&(c.Authorization=`Bearer ${o}`);const l={method:i,headers:c};s&&(l.body=JSON.stringify(s));const u=await fetch(`${n}/api${a}`,l);if(!u.ok){const A=await u.json().catch(()=>({}));throw new Error(A.detail||`Request failed: ${u.status}`)}return u.json()};return{async listProducts(){return r("GET",`/apps/${e}/stripe/products`)},async getProduct(i){return r("GET",`/apps/${e}/stripe/products/${i}`)},async listPrices(i={}){const a=new URLSearchParams;i.productId&&a.append("product_id",i.productId);const s=a.toString(),o=s?`/apps/${e}/stripe/prices?${s}`:`/apps/${e}/stripe/prices`;return r("GET",o)},async createCheckoutSession(i){if(!i.priceId)throw new Error("priceId is required");if(!i.successUrl)throw new Error("successUrl is required");if(!i.cancelUrl)throw new Error("cancelUrl is required");const a={price_id:i.priceId,success_url:i.successUrl,cancel_url:i.cancelUrl,quantity:i.quantity||1};return i.customerEmail&&(a.customer_email=i.customerEmail),i.metadata&&(a.metadata=i.metadata),r("POST",`/apps/${e}/stripe/checkout-sessions`,a)}}}function Klt(n){const e=oE(n),{serverUrl:t="https://base44.app",appId:r}=n;return e.stripe=Glt(t,r,()=>{var i,a;return(a=(i=e.auth)==null?void 0:i.getToken)==null?void 0:a.call(i)}),e}const qlt={createClient:Klt,createClientFromRequest:Vlt,Base44Error:mj,getAccessToken:sg,saveAccessToken:pj,removeAccessToken:Plt,getLoginUrl:Elt};hN.locale("en-US");function Xlt(){return{recharts:eZ,"react-hot-toast":W6,moment:hN,"moment/locale/he":Kq,"moment/locale/ar":jq,"moment/locale/fr":H6,"moment/locale/es":O6,react:Ge,"lucide-react":u6,"react-quill":aV,"@hello-pangea/dnd":$ce,"date-fns":vV,"date-fns/locale":c9e,three:Xnt,"three/addons/controls/OrbitControls.js":drt,"three/addons/loaders/GLTFLoader.js":Grt,sonner:U6,"@stripe/stripe-js":Une,"@stripe/react-stripe-js":Pre,"@radix-ui/react-toast":R6,"@radix-ui/react-slot":iV,"@radix-ui/react-tooltip":l6,"@radix-ui/react-separator":rV,"@radix-ui/react-tabs":c6,"@radix-ui/react-hover-card":nV,"@radix-ui/react-select":o6,"@radix-ui/react-alert-dialog":tV,"@radix-ui/react-popover":s6,"@radix-ui/react-label":eV,"@radix-ui/react-switch":Z8,"@radix-ui/react-scroll-area":J8,"@radix-ui/react-collapsible":Y8,"@radix-ui/react-avatar":X8,"@radix-ui/react-dropdown-menu":a6,"@radix-ui/react-dialog":i6,"class-variance-authority":D6,"@/components/ui/sidebar":$Ke,"react-dom":r6,"react-dom/client":N6,"react-markdown":jKe,"@tanstack/react-query":y6,lodash:F6,jspdf:Vte,"framer-motion":n6,"react-router-dom":m6,"react-hook-form":q8,"react-quill/dist/quill.snow.css":{},"react-leaflet":Rne,leaflet:Xte,"leaflet/dist/leaflet.css":{},"canvas-confetti":K8,html2canvas:fj,"@/lib/utils":d0,"@/components/lib/utils":d0,"./components/lib/utils":d0,"@/components/ui/accordion":zce,"@/components/ui/alert":G8,"@/components/ui/alert-dialog":V8,"@/components/ui/aspect-ratio":qce,"@/components/ui/avatar":z8,"@/components/ui/badge":j8,"@/components/ui/button":$8,"@/components/ui/calendar":Q8,"@/components/ui/card":W8,"@/components/ui/checkbox":H8,"@/components/ui/collapsible":O8,"@/components/ui/carousel":l9e,"@/components/ui/command":U8,"@/components/ui/context-menu":D9e,"@/components/ui/dialog":R8,"@/components/ui/dropdown-menu":D8,"@/components/ui/form":O9e,"@/components/ui/hover-card":N8,"@/components/ui/input":F8,"@/components/ui/label":L8,"@/components/ui/menubar":hKe,"@/components/ui/navigation-menu":LKe,"@/components/ui/popover":I8,"@/components/ui/progress":wV,"@/components/ui/radio-group":k8,"@/components/ui/scroll-area":T8,"@/components/ui/select":B8,"@/components/ui/separator":E8,"@/components/ui/sheet":P8,"@/components/ui/skeleton":C8,"@/components/ui/slider":FKe,"@/components/ui/switch":S8,"@/components/ui/table":M8,"@/components/ui/tabs":x8,"@/components/ui/textarea":_8,"@/components/ui/toast":L6,"@/hooks/use-toast":SE,"@/components/ui/use-toast":SE,"@/components/ui/toaster":I6,"@/components/ui/toggle":b8,"@/components/ui/tooltip":k6,"@/components/ui/sonner":NKe,"@base44/sdk":qlt}}class Ylt{constructor(e,t={},r=()=>{}){this.appSDK=e;let i={...e.files.coreFiles};for(const a in e.files.pages)i["pages/"+a+".js"]=e.files.pages[a];for(const a in e.files.components)i["components/"+a+".js"]=e.files.components[a];e.files.layout&&(i["layout.js"]=e.files.layout),this.appFiles=i,this.packages=Xlt(),this.globals=t,this.moduleCache={},this.compilingModules=new Set,this.importFile=this.importFile.bind(this),this.onError=r}_importAppSDK(e){let t=e;if(e.split("/").length>2&&(t=e.split("/").pop()),e.includes("/entities"))return t?{...this.appSDK.entities,default:this.appSDK.entities[t]}:this.appSDK.entities;if(e.includes("/functions"))return t?{...this.appSDK.functions,default:()=>alert="ok!!!"}:this.appSDK.functions;if(e.includes("/integrations")){if(t)return this.appSDK.integrations[t];let r={};return Object.keys(this.appSDK.integrations).forEach(i=>{r[`@/integrations/${i}`]=this.appSDK.integrations[i],r[`./integrations/${i}`]=this.appSDK.integrations[i]}),r}if(e=="./utils"||e=="@/utils"||e==="../utils")return{createPageUrl:this.appSDK.createPageUrl};if(e.includes("/agents"))return{agentSDK:this.appSDK.agents,default:this.appSDK.agents};alert("importing "+e)}importAppSDK(e){return this._importAppSDK(e)}importFile(e,t){if(e.endsWith(".css"))return this.handleCSSImport(e);const r=S2(e);if(this.appFiles[r]&&!r.includes("use-toast"))return this.importAppFile(e,t);if(e.includes("components/ui/")||e.includes("@/components/ui/")){let i=e;if(e.startsWith("./")||e.startsWith("../")){const a=e.split("/");i=`@/components/ui/${a[a.length-1]}`}return this.importPackage(i)}return e==="@/lib/utils"?this.importPackage(e):e.startsWith("./")||e.startsWith("@/")||e.startsWith("../")?e.includes("/entities/")||e.includes("/functions/")||e.includes("/integrations/")||e.includes("/agents")||e=="./utils"||e=="@/utils"||e==="../utils"?this.importAppSDK(e):this.importAppFile(e,t):this.importPackage(e)}importPackage(e){if(!this.packages.hasOwnProperty(e)){const t=e.split("/");if(this.packages.hasOwnProperty(t[0])){let r=this.packages[t[0]];for(let i=1;i<t.length;i++)if(r&&Object.prototype.hasOwnProperty.call(r,t[i]))r=r[t[i]];else throw new Error(`Module not found: '${e}'`);return a1(e,r,!0)}throw new Error(`Module not found: '${e}'`)}return a1(e,this.packages[e],!0)}importAppFile(e,t){const r=Hq(e,t,this.appFiles);if(this.moduleCache[r])return this.moduleCache[r];if(this.compilingModules.has(r))return{};this.compilingModules.add(r);let i=this.appFiles[r];if(!i){const c=r.toLowerCase(),l=Object.keys(this.appFiles).find(u=>u.toLowerCase()===c);if(l)i=this.appFiles[l];else throw new Error(`Error in ${t}: can't import file ${e}, it doesn't exist (checked case-insensitive also).`)}const a=Rq(r,i);let s;try{s=this.compileJSXToJavascript(r,a,!1)}catch{s=this.compileJSXToJavascript(r,i,!0)}const o=this.evaluateJavascriptCode(r,s);return this.moduleCache[r]=o,this.compilingModules.delete(r),o}compileJSXToJavascript(e,t,r=!0){if(!t||typeof t!="string")throw new Error(`Invalid code content for "${e}"`);const i=t.trim();let a;try{a=kq(i,{transforms:["jsx","imports"],production:!1,filePath:e})}catch(c){throw r&&this.onError(c==null?void 0:c.message,c==null?void 0:c.toString(),e,c),c}let s=a.code;return s.startsWith('"use strict";')&&(s=s.substring(13)),`
            // Initialize module objects
            const module = { exports: {} };
            const exports = module.exports;
            
            ${s}
            
            // No need for regex transforms - module.exports will naturally capture all exports
        `}evaluateJavascriptCode(e,t){const r={React:Ge,require:s=>this.importFile(s,e),console:Oq(e,this.onError),...this.globals},i=Object.keys(r),a=i.map(s=>r[s]);try{const o=new Function(...i,t+"; return { moduleExports: module.exports, exportsObj: exports };")(...a),c=o.moduleExports&&Object.keys(o.moduleExports).length>0?o.moduleExports:o.exportsObj;return a1(e,c)}catch(s){return this.onError(`Error evaluating module ${e}: ${s.message}`,s.toString(),e,s),a1(e,{})}}render(e,t={},r=[]){const i=this.importAppFile(e);if(!i)throw new Error(`[AppProjectCompiler] No exports found in "${e}"`);let a=null;if(typeof i=="function")a=i;else if(i.default&&typeof i.default=="function")a=i.default;else for(const o of Object.keys(i))if(typeof i[o]=="function"&&(o.includes("Component")||o.endsWith("Provider")||o.startsWith("App")||o==="Main"||o.charAt(0)===o.charAt(0).toUpperCase())){a=i[o];break}if(!a)throw new Error(`No component found in "${e}"`);return Ge.createElement(a,t,...r)}handleCSSImport(e){const t=S2(e);if(this.constructor.injectedCSS||(this.constructor.injectedCSS=new Set),this.constructor.injectedCSS.has(t))return{};let r="";if(this.appFiles[t])r=this.appFiles[t];else return this.packages[e]?{}:{};if(r){const i=document.createElement("style");i.textContent=r,i.setAttribute("data-source",t),document.head.appendChild(i),this.constructor.injectedCSS.add(t)}return{}}}function Jlt(n){var o,c,l;const e=n.dataset.sourceLocation||n.dataset.visualSelectorId,t=n.getBoundingClientRect(),r={top:t.top,left:t.left,right:t.right,bottom:t.bottom,width:t.width,height:t.height,centerX:t.left+t.width/2,centerY:t.top+t.height/2},i=n.closest("[data-collection-id]"),a=n.closest("[data-collection-item-field]"),s=n.closest("[data-collection-item-id]");return{type:Ao.ELEMENT_SELECTED,tagName:n.tagName,classes:n.getAttribute("class")||"",visualSelectorId:e,content:n.innerText,dataSourceLocation:n.dataset.sourceLocation,isDynamicContent:n.dataset.dynamicContent==="true",linenumber:n.dataset.linenumber,filename:n.dataset.filename,position:r,collectionId:((o=i==null?void 0:i.dataset)==null?void 0:o.collectionId)||null,collectionItemField:((c=a==null?void 0:a.dataset)==null?void 0:c.collectionItemField)||null,collectionItemId:((l=s==null?void 0:s.dataset)==null?void 0:l.collectionItemId)||null}}function Zlt(){const[n,e]=te.useState(!1),t=te.useRef(!1),[r,i]=te.useState(null),[a,s]=te.useState(!1),o=te.useRef(!1),[c,l]=te.useState(!1),u=te.useRef(!1),A=te.useRef([]),f=te.useRef([]),h=te.useRef([]),g=te.useRef(null),y=(P=!1)=>{const k=document.createElement("div");return k.style.position="absolute",k.style.pointerEvents="none",k.style.transition="all 0.1s ease-in-out",k.style.zIndex="9999",P?k.style.border="2px solid #2563EB":(k.style.border="2px solid #95a5fc",k.style.backgroundColor="rgba(99, 102, 241, 0.05)"),k},w=(P,k,H=!1)=>{if(!k||!t.current)return;k.offsetWidth;const j=k.getBoundingClientRect();P.style.top=`${j.top+window.scrollY}px`,P.style.left=`${j.left+window.scrollX}px`,P.style.width=`${j.width}px`,P.style.height=`${j.height}px`;let $=P.querySelector("div");$||($=document.createElement("div"),$.textContent=k.tagName.toLowerCase(),$.style.position="absolute",$.style.top="-27px",$.style.left="-2px",$.style.padding="2px 8px",$.style.fontSize="11px",$.style.fontWeight=H?"500":"400",$.style.color=H?"#ffffff":"#526cff",$.style.backgroundColor=H?"#526cff":"#DBEAFE",$.style.borderRadius="3px",$.style.boxShadow="none",$.style.minWidth="24px",$.style.textAlign="center",P.appendChild($))},v=P=>{if(!P)return[];const k=[...document.querySelectorAll(`[data-source-location="${P}"]`)];return k.length>0?k:[...document.querySelectorAll(`[data-visual-selector-id="${P}"]`)]},S=()=>{A.current.forEach(P=>{P&&P.parentNode&&P.remove()}),A.current=[],h.current=[]},C=P=>{if(!t.current||o.current)return;if(u.current){S();return}if(P.target.tagName.toLowerCase()==="path"){S();return}const k=P.target.closest("[data-source-location], [data-visual-selector-id]");if(!k){S();return}const H=k.dataset.sourceLocation||k.dataset.visualSelectorId;if(k.dataset.sourceLocation,g.current===H){S();return}const j=v(H);S(),j.forEach($=>{const ce=y(!1);document.body.appendChild(ce),A.current.push(ce),w(ce,$)}),h.current=j},M=()=>{o.current||S()},F=P=>{if(!t.current)return;if(u.current){P.preventDefault(),P.stopPropagation(),P.stopImmediatePropagation(),window.parent.postMessage({type:Ao.CLOSE_DROPDOWNS},"*");return}if(P.target.tagName.toLowerCase()==="path")return;P.preventDefault(),P.stopPropagation(),P.stopImmediatePropagation();const k=P.target.closest("[data-source-location], [data-visual-selector-id]");if(!k)return;const H=k.dataset.sourceLocation||k.dataset.visualSelectorId;k.dataset.sourceLocation,f.current.forEach($=>{$&&$.parentNode&&$.remove()}),f.current=[],v(H).forEach($=>{const ce=y(!0);document.body.appendChild(ce),f.current.push(ce),w(ce,$,!0)}),i(k),g.current=H,S(),window.parent.postMessage(Jlt(k),"*")},D=()=>{f.current.forEach(P=>{P&&P.parentNode&&P.remove()}),f.current=[],i(null),g.current=null},U=(P,k,H=!1)=>{const j=v(P);j.length!==0&&(j.forEach($=>{var ce;if(H)$.className=k;else{const de=((ce=$.className)==null?void 0:ce.baseVal)||$.className||"";$.className=jN(de,k)}}),setTimeout(()=>{var $,ce;g.current===P&&f.current.forEach((de,fe)=>{fe<j.length&&w(de,j[fe])}),h.current.length>0&&((ce=($=h.current[0])==null?void 0:$.dataset)==null?void 0:ce.visualSelectorId)===P&&A.current.forEach((fe,ee)=>{ee<h.current.length&&w(fe,h.current[ee])})},50))},O=(P,k)=>{const H=v(P);H.length!==0&&(H.forEach(j=>{j.innerText=k}),setTimeout(()=>{g.current===P&&f.current.forEach((j,$)=>{$<H.length&&w(j,H[$])})},50))},T=P=>{e(P),t.current=P,P?(document.body.style.cursor="crosshair",document.addEventListener("mouseover",C),document.addEventListener("mouseout",M),document.addEventListener("click",F,!0)):(S(),f.current.forEach(k=>{k&&k.parentNode&&k.remove()}),f.current=[],h.current=[],i(null),g.current=null,document.body.style.cursor="default",document.removeEventListener("mouseover",C),document.removeEventListener("mouseout",M),document.removeEventListener("click",F,!0))};return te.useEffect(()=>{document.querySelectorAll("[data-visual-selector-id]"),document.querySelectorAll("[data-linenumber]:not([data-visual-selector-id])").forEach((j,$)=>{const ce=`visual-id-${j.dataset.filename}-${j.dataset.linenumber}-${$}`;j.dataset.visualSelectorId=ce});const k=()=>{if(g.current){const j=v(g.current);if(j.length>0){const ce=j[0].getBoundingClientRect(),de=window.innerHeight,fe=window.innerWidth,ee=ce.top<de&&ce.bottom>0&&ce.left<fe&&ce.right>0,Se={top:ce.top,left:ce.left,right:ce.right,bottom:ce.bottom,width:ce.width,height:ce.height,centerX:ce.left+ce.width/2,centerY:ce.top+ce.height/2};window.parent.postMessage({type:Ao.ELEMENT_POSITION_UPDATE,position:Se,isInViewport:ee,visualSelectorId:g.current},"*")}}},H=j=>{const $=j.data;switch($.type){case Ao.TOGGLE_VISUAL_EDIT_MODE:T($.data.enabled);break;case Ao.UPDATE_CLASSES:$.data&&$.data.classes!==void 0&&U($.data.visualSelectorId,$.data.classes,$.data.replace||!1);break;case Ao.UNSELECT_ELEMENT:D();break;case Ao.REFRESH_PAGE:window.location.reload();break;case Ao.UPDATE_CONTENT:$.data&&$.data.content!==void 0&&O($.data.visualSelectorId,$.data.content);break;case Ao.REQUEST_ELEMENT_POSITION:if(g.current){const ce=v(g.current);if(ce.length>0){const fe=ce[0].getBoundingClientRect(),ee=window.innerHeight,Se=window.innerWidth,xe=fe.top<ee&&fe.bottom>0&&fe.left<Se&&fe.right>0,Pe={top:fe.top,left:fe.left,right:fe.right,bottom:fe.bottom,width:fe.width,height:fe.height,centerX:fe.left+fe.width/2,centerY:fe.top+fe.height/2};window.parent.postMessage({type:Ao.ELEMENT_POSITION_UPDATE,position:Pe,isInViewport:xe,visualSelectorId:g.current},"*")}}break;case Ao.POPOVER_DRAG_STATE:$.data&&$.data.isDragging!==void 0&&(s($.data.isDragging),o.current=$.data.isDragging,$.data.isDragging&&S());break;case Ao.DROPDOWN_STATE:$.data&&$.data.isOpen!==void 0&&(l($.data.isOpen),u.current=$.data.isOpen,$.data.isOpen&&S());break}};return window.addEventListener("message",H),window.addEventListener("scroll",k,!0),document.addEventListener("scroll",k,!0),window.parent.postMessage({type:Ao.VISUAL_EDIT_AGENT_READY},"*"),()=>{window.removeEventListener("message",H),window.removeEventListener("scroll",k,!0),document.removeEventListener("scroll",k,!0),document.removeEventListener("mouseover",C),document.removeEventListener("mouseout",M),document.removeEventListener("click",F,!0),S(),f.current.forEach(j=>{j&&j.parentNode&&j.remove()})}},[]),te.useEffect(()=>{t.current=n},[n]),te.useEffect(()=>{o.current=a},[a]),te.useEffect(()=>{u.current=c},[c]),te.useEffect(()=>{const P=()=>{if(g.current){const H=v(g.current);f.current.forEach((j,$)=>{$<H.length&&w(j,H[$])})}h.current.length>0&&A.current.forEach((H,j)=>{j<h.current.length&&w(H,h.current[j])})},k=new MutationObserver(H=>{H.some($=>{const ce=fe=>{if(fe.nodeType===Node.ELEMENT_NODE){if(fe.dataset&&fe.dataset.visualSelectorId)return!0;for(let ee=0;ee<fe.children.length;ee++)if(ce(fe.children[ee]))return!0}return!1};return $.type==="attributes"&&($.attributeName==="style"||$.attributeName==="class"||$.attributeName==="width"||$.attributeName==="height")&&ce($.target)})&&setTimeout(P,50)});return k.observe(document.body,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["style","class","width","height"]}),window.addEventListener("resize",P),window.addEventListener("scroll",P),()=>{window.removeEventListener("resize",P),window.removeEventListener("scroll",P),k.disconnect()}},[]),null}function eut({appId:n}){const[e,t]=te.useState(!1),[r,i]=te.useState(!0);te.useEffect(()=>{new URLSearchParams(window.location.search).get("hide_badge")==="true"&&i(!1)},[]);const a=async()=>{t(!0);const o=fN();window.open(`${o}/remix-app/${n}`,"_blank"),t(!1)},s=o=>{o.stopPropagation(),i(!1)};return r?R.jsxs("div",{dir:"ltr",className:"fixed z-50 text-white bottom-4 right-4 flex items-center gap-2 bg-black pt-2 pb-2 pl-3 pr-3 rounded-md shadow-lg cursor-pointer transition-all hover:shadow-xl border border-neutral-800",onClick:a,children:[R.jsx("img",{src:"https://base44.app/logo_v3.png",alt:"base44",className:"w-5 h-5"}),R.jsx("span",{className:"whitespace-nowrap text-xs",children:e?R.jsxs("div",{className:"flex items-center gap-1.5",children:[R.jsx(Gl,{className:"w-3 h-3 animate-spin"}),R.jsx("span",{children:"Cloning..."})]}):R.jsxs("div",{className:"flex items-center gap-1.5 align-middle justify-center text-sm",children:[R.jsx("span",{children:"Edit with "}),R.jsx("span",{className:"mb-0.5",children:R.jsx("img",{src:"/base44_text.png",alt:"Base44",height:18,width:56})})]})}),R.jsx("button",{className:"p-0.5 ml-0.5 rounded-full hover:bg-neutral-700 transition-colors","aria-label":"Close badge",onClick:s,children:R.jsx(d6,{className:"w-3.5 h-3.5"})})]}):null}function tut({}){const{user:n,isAuthenticated:e}=bS(),{pageName:t}=oN();return R.jsx("div",{className:"min-h-screen flex items-center justify-center p-6 bg-slate-50",children:R.jsx("div",{className:"max-w-md w-full",children:R.jsxs("div",{className:"text-center space-y-6",children:[R.jsxs("div",{className:"space-y-2",children:[R.jsx("h1",{className:"text-7xl font-light text-slate-300",children:"404"}),R.jsx("div",{className:"h-0.5 w-16 bg-slate-200 mx-auto"})]}),R.jsxs("div",{className:"space-y-3",children:[R.jsx("h2",{className:"text-2xl font-medium text-slate-800",children:"Page Not Found"}),R.jsxs("p",{className:"text-slate-600 leading-relaxed",children:["The page ",R.jsxs("span",{className:"font-medium text-slate-700",children:['"',t,'"']})," could not be found in this application."]})]}),e&&(n==null?void 0:n.role)==="admin"&&R.jsx("div",{className:"mt-8 p-4 bg-slate-100 rounded-lg border border-slate-200",children:R.jsxs("div",{className:"flex items-start space-x-3",children:[R.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded-full bg-orange-100 flex items-center justify-center mt-0.5",children:R.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-400"})}),R.jsxs("div",{className:"text-left space-y-1",children:[R.jsx("p",{className:"text-sm font-medium text-slate-700",children:"Admin Note"}),R.jsx("p",{className:"text-sm text-slate-600 leading-relaxed",children:"This could mean that the AI hasn't implemented this page yet. Ask it to implement it in the chat."})]})]})}),R.jsx("div",{className:"pt-6",children:R.jsxs("button",{onClick:()=>window.location.href="/",className:"inline-flex items-center px-4 py-2 text-sm font-medium text-slate-700 bg-white border border-slate-200 rounded-lg hover:bg-slate-50 hover:border-slate-300 transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500",children:[R.jsx("svg",{className:"w-4 h-4 mr-2",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"})}),"Go Home"]})})]})})})}function gj(){return R.jsxs("div",{className:"min-h-screen bg-[#F8FAFC] flex flex-col relative overflow-hidden font-base44",children:[R.jsx("div",{className:"absolute right-0 top-1/2 transform -translate-y-1/2 w-[50%] h-[100%] rounded-full opacity-60 blur-3xl",style:{background:"radial-gradient(circle, #FF5500 10%, #FFEAA6 70%)",right:"-25%",top:"50%"}}),R.jsx("div",{className:"md:px-[60px] px-[16px] md:py-[24px] py-[16px]",children:R.jsxs("div",{className:"flex items-center space-x-3 h-[44px]",children:[R.jsx(sV,{width:32,height:32}),R.jsx("span",{className:"text-xl font-semibold text-slate-800",children:"Base 44"})]})}),R.jsx("div",{className:"flex-1 flex items-center md:px-[90px] px-[16px]",children:R.jsxs("div",{className:" w-full",children:[R.jsxs("h1",{className:"md:text-[100px] text-[42px] md:font-medium text-[#001E36] md:leading-[109px] tracking-[-1px] mb-6",children:["Your app is",R.jsx("br",{}),"waiting to shine!"]}),R.jsxs("div",{className:"md:text-[28px] text-[18px] font-normal text-black space-y-2",children:[R.jsx("p",{children:"But it isn't live yet."}),R.jsx("p",{children:"Publish it to make it visible here."})]})]})})]})}const nut=()=>R.jsx("div",{className:"flex flex-col items-center justify-center min-h-screen bg-gradient-to-b from-white to-gray-50",children:R.jsx("div",{className:"max-w-md w-full p-8 bg-white rounded-lg shadow-lg border border-gray-100",children:R.jsxs("div",{className:"text-center",children:[R.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 mb-6 rounded-full bg-red-100",children:R.jsx("svg",{className:"w-8 h-8 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),R.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-4",children:"Access Restricted"}),R.jsx("p",{className:"text-gray-600 mb-8",children:"You are not registered to use this application. Please contact the app administrator to request access."}),R.jsxs("div",{className:"p-4 bg-gray-50 rounded-md text-sm text-gray-600",children:[R.jsx("p",{children:"If you believe this is an error, you can:"}),R.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1",children:[R.jsx("li",{children:"Verify you are logged in with the correct account"}),R.jsx("li",{children:"Contact the app administrator for access"}),R.jsx("li",{children:"Try logging out and back in again"})]})]})]})})});function rut({appId:n}){var D,U,O,T;const{isAuthenticated:e,isLoadingAuth:t,logout:r}=bS(),i=kw(),a=Iw(),{appId:s,pageName:o}=oN(),[c,l]=te.useState(null),[u,A]=te.useState(null),[f,h]=te.useState(!0),[g,y]=te.useState(!1),w=P=>{const k=(ce,de,fe,ee)=>{P.options.onError(ce,de,fe,ee)},H=new Ylt(P,v(),k),j=P.getCurrentPage();if(!j){A(R.jsx(tut,{}));return}const $=H.render("pages/"+j.name);if(P.files.layout){const ce=H.render("layout",{currentPageName:j==null?void 0:j.name},[$]);A(ce)}else A($)};function v(){return{cn:On,localStorage:Dq()}}te.useEffect(()=>{IV({id:n||s,onError:S,authProps:{isLoadingAuth:t,logout:r,isUserAuthenticated:()=>e}}).then(P=>{l(P)}).catch(P=>{var $,ce,de,fe,ee,Se,xe,Pe,V,ae,J,z;if(P.response&&P.response.status===404){S("App not found","This app does not exist or has been removed.","general",P);return}P.response&&P.response.status===403&&((ce=($=P.response.data)==null?void 0:$.extra_data)!=null&&ce.reason)?((fe=(de=P.response.data)==null?void 0:de.extra_data)==null?void 0:fe.reason)==="auth_required"?F((Se=(ee=P.response.data)==null?void 0:ee.extra_data)==null?void 0:Se.app_id):((Pe=(xe=P.response.data)==null?void 0:xe.extra_data)==null?void 0:Pe.reason)==="user_not_registered"?h(!1):((ae=(V=P.response.data)==null?void 0:V.extra_data)==null?void 0:ae.reason)==="support_access_required"?S("Access Required","Please access this app through the support panel first. Go to the support panel and click on a ticket for this app to grant temporary access.","general",P):((z=(J=P.response.data)==null?void 0:J.extra_data)==null?void 0:z.reason)==="not_deployed"&&y(!0):S("Failed to load app "+P.message,"none","general",P)})},[]);const S=(P,k,H,j)=>{var ce,de;if(((ce=j==null?void 0:j.response)==null?void 0:ce.status)===402)return;const $=(j==null?void 0:j.stack)||null;(de=window.parent)==null||de.postMessage({type:"app_error",error:{title:P.toString(),details:k==null?void 0:k.toString(),componentName:H==null?void 0:H.toString(),stack:$}},"*")};te.useEffect(()=>{window.parent.postMessage({type:"app_changed_url",url:window.location.href},"*"),c&&w(c)},[i,o,c]);const C=P=>{var $;const H=($=P.reason.stack.match(/at\s+(\w+)\s+\(eval/))==null?void 0:$[1],j=H?`Error in ${H}: ${P.reason.toString()}`:P.reason.toString();S(j,P.reason.toString(),H,P.reason)},M=P=>{var $,ce;let H=(ce=(($=P.error)==null?void 0:$.stack).match(/at\s+(\w+)\s+\(eval/))==null?void 0:ce[1];H==="eval"&&(H=null);const j=H?`in ${H}: ${P.error.toString()}`:P.error.toString();S(j,P.error.toString(),H,P.error)};te.useEffect(()=>(window.addEventListener("unhandledrejection",C),window.addEventListener("error",M),()=>{window.removeEventListener("unhandledrejection",C),window.removeEventListener("error",M)}),[]);const F=P=>{a(`/login?from_url=${window.location.href}&app_id=${P}`)};return te.useEffect(()=>{let P=c==null?void 0:c.getCurrentPage();e&&(c!=null&&c.appId)&&(P!=null&&P.name)&&MV.logUserInApp(c.appId,P.name)},[e,c==null?void 0:c.appId,(D=c==null?void 0:c.getCurrentPage())==null?void 0:D.name]),f?g?R.jsx(gj,{}):c?t?R.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:R.jsx("div",{className:"w-8 h-8 border-4 border-gray-200 border-t-black rounded-full animate-spin"})}):R.jsxs("div",{className:"min-h-screen w-full relative app-preview",children:[R.jsx(Zlt,{}),((U=c==null?void 0:c.files)==null?void 0:U.is_remixable)&&((T=(O=c==null?void 0:c.files)==null?void 0:O.public_settings)==null?void 0:T.includes("public"))&&R.jsx(eut,{appId:n}),R.jsx("div",{className:"flex flex-col w-full h-full",id:"app-demo",children:R.jsx("div",{className:"bg-white w-full min-h-full overflow-auto",children:R.jsx("div",{id:"component-preview-container",children:u})})})]}):R.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:R.jsx("div",{className:"flex flex-col items-center space-y-4",children:R.jsx("div",{className:"w-12 h-12 border-4 border-gray-200 border-t-black rounded-full animate-spin"})})}):R.jsx(nut,{})}function iut({appId:n,appPlatformVersion:e,authSDK:t,onSuccess:r,onSwitchToRegister:i,onSwitchToResetPassword:a}){const[s,o]=te.useState(""),[c,l]=te.useState(""),[u,A]=te.useState(""),[f,h]=te.useState(!1),g=async y=>{var w,v;y.preventDefault(),A(""),h(!0);try{if(e===3){const C=await oE({appId:n,serverUrl:Q6()}).auth.loginViaEmailPassword(s,c);C&&r(C.user)}else{const S=await t.loginViaUsernamePassword(s,c);S&&(dS(S.access_token),r(S.user))}}catch(S){A(((v=(w=S.response)==null?void 0:w.data)==null?void 0:v.detail)||"Invalid email or password")}finally{h(!1)}};return R.jsxs("form",{onSubmit:g,className:"space-y-4 sm:space-y-5",children:[R.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[R.jsxs("div",{className:"space-y-1.5",children:[R.jsx(Ol,{htmlFor:"email",className:"text-sm font-medium text-slate-700",children:"Email"}),R.jsxs("div",{className:"relative",children:[R.jsx(Jv,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-slate-400"}),R.jsx(Hl,{id:"email",type:"email",placeholder:"you@example.com",value:s,onChange:y=>o(y.target.value),required:!0,disabled:f,className:"pl-10 h-11 sm:h-12 bg-slate-50/50 border-slate-200 focus:border-slate-400 focus:ring-slate-400 rounded-xl placeholder:text-slate-400"})]})]}),R.jsxs("div",{className:"space-y-1.5",children:[R.jsx(Ol,{htmlFor:"password",className:"text-sm font-medium text-slate-700",children:"Password"}),R.jsxs("div",{className:"relative",children:[R.jsx(bp,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-slate-400"}),R.jsx(Hl,{id:"password",type:"password",placeholder:"••••••••",value:c,onChange:y=>l(y.target.value),required:!0,disabled:f,className:"pl-10 h-11 sm:h-12 bg-slate-50/50 border-slate-200 focus:border-slate-400 focus:ring-slate-400 rounded-xl placeholder:text-slate-400"})]})]})]}),u&&R.jsx(pA,{className:"bg-red-50/70 border-red-200 rounded-xl",children:R.jsx(gA,{className:"text-red-700 text-sm",children:u})}),R.jsxs("div",{className:"space-y-3",children:[R.jsx(Kl,{type:"submit",disabled:f,className:"w-full h-11 sm:h-12 bg-slate-900 hover:bg-slate-800 text-white font-medium shadow-sm rounded-xl transition-all duration-200",children:f?R.jsxs(R.Fragment,{children:[R.jsx(Gl,{className:"mr-2 h-4 w-4 animate-spin"}),"Signing in..."]}):"Sign in"}),R.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-2 sm:gap-0",children:[R.jsx("button",{type:"button",onClick:a,className:"text-sm text-slate-500 hover:text-slate-700 font-medium transition-colors",children:"Forgot password?"}),R.jsxs("button",{type:"button",onClick:i,className:"text-sm text-slate-500 hover:text-slate-700 transition-colors",children:["Need an account? ",R.jsx("span",{className:"font-medium text-slate-700",children:"Sign up"})]})]})]})]})}function aut({authSDK:n,onSuccess:e,onSwitchToLogin:t,onSwitchToOtpVerification:r,appId:i}){const a=Iw(),[s,o]=te.useState({email:"",password:"",confirmPassword:""}),[c,l]=te.useState(""),[u,A]=te.useState(!1),f=async g=>{var y,w,v,S,C,M;if(g.preventDefault(),l(""),s.password!==s.confirmPassword){l("Passwords do not match");return}if(s.password.length<8){l("Password must be at least 8 characters long");return}A(!0);try{const F=await n.register({email:s.email,password:s.password});F&&r(s.email,F.access_request_created)}catch(F){const D=(w=(y=F.response)==null?void 0:y.data)==null?void 0:w.extra_data;(D==null?void 0:D.reason)==="access_request_needed"&&(D!=null&&D.app_id)?a(`/login?app_id=${D.app_id}&error=access_required`):l(((S=(v=F.response)==null?void 0:v.data)==null?void 0:S.detail)||((M=(C=F.response)==null?void 0:C.data)==null?void 0:M.message)||"Registration failed. Please try again.")}finally{A(!1)}},h=(g,y)=>{o(w=>({...w,[g]:y}))};return R.jsxs("div",{className:"space-y-4",children:[R.jsxs("button",{type:"button",onClick:t,className:"flex items-center gap-2 text-sm text-slate-500 hover:text-slate-700 font-medium transition-colors -mb-2",children:[R.jsx(wp,{className:"h-4 w-4"}),"Back to sign in"]}),R.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-slate-900",children:"Create your account"}),R.jsxs("form",{onSubmit:f,className:"space-y-3 sm:space-y-4",children:[R.jsxs("div",{className:"space-y-3",children:[R.jsxs("div",{className:"space-y-1.5",children:[R.jsx(Ol,{htmlFor:"email",className:"text-sm font-medium text-slate-700",children:"Email"}),R.jsxs("div",{className:"relative",children:[R.jsx(Jv,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-slate-400"}),R.jsx(Hl,{id:"email",type:"email",placeholder:"you@example.com",value:s.email,onChange:g=>h("email",g.target.value),required:!0,disabled:u,className:"pl-10 h-10 sm:h-11 bg-slate-50/50 border-slate-200 focus:border-slate-400 focus:ring-slate-400 rounded-xl placeholder:text-slate-400 text-sm sm:text-base"})]})]}),R.jsxs("div",{className:"space-y-1.5",children:[R.jsx(Ol,{htmlFor:"password",className:"text-sm font-medium text-slate-700",children:"Password"}),R.jsxs("div",{className:"relative",children:[R.jsx(bp,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-slate-400"}),R.jsx(Hl,{id:"password",type:"password",placeholder:"Min. 8 characters",value:s.password,onChange:g=>h("password",g.target.value),required:!0,disabled:u,className:"pl-10 h-10 sm:h-11 bg-slate-50/50 border-slate-200 focus:border-slate-400 focus:ring-slate-400 rounded-xl placeholder:text-slate-400 text-sm sm:text-base"})]})]}),R.jsxs("div",{className:"space-y-1.5",children:[R.jsx(Ol,{htmlFor:"confirmPassword",className:"text-sm font-medium text-slate-700",children:"Confirm Password"}),R.jsxs("div",{className:"relative",children:[R.jsx(bp,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-slate-400"}),R.jsx(Hl,{id:"confirmPassword",type:"password",placeholder:"Re-enter password",value:s.confirmPassword,onChange:g=>h("confirmPassword",g.target.value),required:!0,disabled:u,className:"pl-10 h-10 sm:h-11 bg-slate-50/50 border-slate-200 focus:border-slate-400 focus:ring-slate-400 rounded-xl placeholder:text-slate-400 text-sm sm:text-base"})]})]})]}),c&&R.jsx(pA,{className:"bg-red-50/70 border-red-200 rounded-xl",children:R.jsx(gA,{className:"text-red-700 text-sm",children:c})}),R.jsx(Kl,{type:"submit",disabled:u,className:"w-full h-10 sm:h-11 bg-slate-900 hover:bg-slate-800 text-white font-medium shadow-sm rounded-xl transition-all duration-200",children:u?R.jsxs(R.Fragment,{children:[R.jsx(Gl,{className:"mr-2 h-4 w-4 animate-spin"}),"Creating account..."]}):"Create account"})]})]})}function sut({authSDK:n,appId:e,email:t,isAccessRequest:r=!1,onSuccess:i,onSwitchToLogin:a}){const s=Iw(),[o,c]=te.useState(["","","","","",""]),[l,u]=te.useState(""),[A,f]=te.useState(""),[h,g]=te.useState(!1),[y,w]=te.useState(!1),v=async C=>{var F,D;C.preventDefault(),u(""),f("");const M=o.join("");if(M.length!==6){u("Please enter all 6 digits");return}g(!0);try{const U=r?await n.verifyAccessRequestOtp(t,M):await n.verifyOtp(t,M);U&&(r?(f("Email verified! Waiting for admin approval..."),setTimeout(()=>{s(`/request-access?app_id=${e}`,{state:{email:t,confirmationToken:U.confirmation_token}})},1500)):U.access_token?(dS(U.access_token),await new Promise(O=>setTimeout(O,500)),i()):(f("Email verified successfully! Redirecting to login..."),setTimeout(()=>{a()},2e3)))}catch(U){u(((D=(F=U.response)==null?void 0:F.data)==null?void 0:D.detail)||"Invalid verification code")}finally{g(!1)}},S=async()=>{var C,M;u(""),f(""),w(!0);try{r?await n.resendAccessRequestOtp(t):await n.resendOtp(t),f("New verification code sent to your email"),c(["","","","","",""]),setTimeout(()=>f(""),3e3)}catch(F){u(((M=(C=F.response)==null?void 0:C.data)==null?void 0:M.detail)||"Failed to resend code")}finally{w(!1)}};return R.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[R.jsxs("button",{type:"button",onClick:a,className:"flex items-center gap-2 text-sm text-slate-500 hover:text-slate-700 font-medium transition-colors -mb-2",children:[R.jsx(wp,{className:"h-4 w-4"}),"Back to sign in"]}),R.jsxs("div",{className:"text-center space-y-2",children:[R.jsx("div",{className:"mx-auto w-14 h-14 sm:w-16 sm:h-16 bg-slate-100 rounded-full flex items-center justify-center mb-3 sm:mb-4",children:R.jsx(A6,{className:"h-7 w-7 sm:h-8 sm:w-8 text-slate-700"})}),R.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-slate-900",children:"Verify your email"}),R.jsxs("p",{className:"text-slate-600 text-sm sm:text-base",children:["We've sent a 6-digit code to",R.jsx("br",{}),R.jsx("span",{className:"font-medium text-slate-900",children:t})]})]}),R.jsxs("form",{onSubmit:v,className:"space-y-4 sm:space-y-6",children:[R.jsxs("div",{children:[R.jsx(oV,{value:o,onChange:c,autoFocus:!0,disabled:h||y,separator:!1}),R.jsx("p",{className:"text-xs text-slate-500 text-center mt-3",children:"Enter the verification code sent to your email"})]}),l&&R.jsx(pA,{className:"bg-red-50/70 border-red-200 rounded-xl",children:R.jsx(gA,{className:"text-red-700 text-sm",children:l})}),A&&R.jsx(pA,{className:"bg-green-50/70 border-green-200 rounded-xl",children:R.jsx(gA,{className:"text-green-700 text-sm",children:A})}),R.jsxs("div",{className:"space-y-3",children:[R.jsx(Kl,{type:"submit",disabled:h||y||!!A,className:"w-full h-10 sm:h-11 bg-slate-900 hover:bg-slate-800 text-white font-medium shadow-sm rounded-xl transition-all duration-200",children:h?R.jsxs(R.Fragment,{children:[R.jsx(Gl,{className:"mr-2 h-4 w-4 animate-spin"}),"Verifying..."]}):"Verify email"}),R.jsx("div",{className:"text-center",children:R.jsxs("p",{className:"text-sm text-slate-600",children:["Didn't receive the code?"," ",R.jsx("button",{type:"button",onClick:S,disabled:y||h,className:"font-medium text-slate-700 hover:text-slate-900 disabled:opacity-50 transition-colors",children:y?"Sending...":"Resend"})]})})]})]})]})}function out({authSDK:n,onSwitchToLogin:e}){const[t,r]=te.useState(""),[i,a]=te.useState(""),[s,o]=te.useState(!1),[c,l]=te.useState(!1),u=async A=>{var f,h;A.preventDefault(),a(""),o(!1),l(!0);try{await n.resetPasswordRequest(t),o(!0)}catch(g){a(((h=(f=g.response)==null?void 0:f.data)==null?void 0:h.detail)||"Failed to send reset email")}finally{l(!1)}};return s?R.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[R.jsxs("div",{className:"text-center space-y-3 sm:space-y-4",children:[R.jsx("div",{className:"mx-auto w-14 h-14 sm:w-16 sm:h-16 bg-slate-100 rounded-full flex items-center justify-center",children:R.jsx(Jv,{className:"h-7 w-7 sm:h-8 sm:w-8 text-slate-700"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-slate-900",children:"Check your email"}),R.jsxs("p",{className:"text-slate-600 text-sm sm:text-base",children:["We've sent password reset instructions to",R.jsx("br",{}),R.jsx("span",{className:"font-medium text-slate-900",children:t})]})]})]}),R.jsx(pA,{className:"bg-green-50/70 border-green-200 rounded-xl",children:R.jsx(gA,{className:"text-green-700 text-sm",children:"Please check your email for the password reset link. It may take a few minutes to arrive."})}),R.jsxs("button",{onClick:e,className:"w-full flex items-center justify-center gap-2 text-sm text-slate-500 hover:text-slate-700 font-medium transition-colors",children:[R.jsx(wp,{className:"h-4 w-4"}),"Back to sign in"]})]}):R.jsxs("div",{className:"space-y-4 sm:space-y-6",children:[R.jsxs("button",{type:"button",onClick:e,className:"flex items-center gap-2 text-sm text-slate-500 hover:text-slate-700 font-medium transition-colors -mb-2",children:[R.jsx(wp,{className:"h-4 w-4"}),"Back to sign in"]}),R.jsxs("div",{className:"text-center space-y-2",children:[R.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-slate-900",children:"Reset your password"}),R.jsx("p",{className:"text-slate-600 text-sm sm:text-base",children:"Enter your email and we'll send you a link to reset your password"})]}),R.jsxs("form",{onSubmit:u,className:"space-y-4 sm:space-y-5",children:[R.jsxs("div",{className:"space-y-1.5",children:[R.jsx(Ol,{htmlFor:"email",className:"text-sm font-medium text-slate-700",children:"Email"}),R.jsxs("div",{className:"relative",children:[R.jsx(Jv,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-slate-400"}),R.jsx(Hl,{id:"email",type:"email",placeholder:"you@example.com",value:t,onChange:A=>r(A.target.value),required:!0,disabled:c,className:"pl-10 h-10 sm:h-11 bg-slate-50/50 border-slate-200 focus:border-slate-400 focus:ring-slate-400 rounded-xl placeholder:text-slate-400"})]})]}),i&&R.jsx(pA,{className:"bg-red-50/70 border-red-200 rounded-xl",children:R.jsx(gA,{className:"text-red-700 text-sm",children:i})}),R.jsx(Kl,{type:"submit",disabled:c,className:"w-full h-10 sm:h-11 bg-slate-900 hover:bg-slate-800 text-white font-medium shadow-sm rounded-xl transition-all duration-200",children:c?R.jsxs(R.Fragment,{children:[R.jsx(Gl,{className:"mr-2 h-4 w-4 animate-spin"}),"Sending..."]}):"Send reset link"})]})]})}const vj=()=>R.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),R.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),R.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),R.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),yj=()=>R.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[R.jsx("path",{fill:"#F25022",d:"M1 1h10v10H1z"}),R.jsx("path",{fill:"#00A4EF",d:"M13 1h10v10H13z"}),R.jsx("path",{fill:"#7FBA00",d:"M1 13h10v10H1z"}),R.jsx("path",{fill:"#FFB900",d:"M13 13h10v10H13z"})]}),cut=()=>R.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{fill:"#1877F2",d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),lut=()=>R.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{fill:"#181717",d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})}),uut=()=>R.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{fill:"#007DC1",d:"M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12S18.617 0 12 0zm0 4.8c3.971 0 7.2 3.229 7.2 7.2s-3.229 7.2-7.2 7.2S4.8 15.971 4.8 12 8.029 4.8 12 4.8z"})}),dut=()=>R.jsx("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:R.jsx("path",{fill:"#000000",d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),Aut={google:{name:"Google",icon:vj},microsoft:{name:"Microsoft",icon:yj},github:{name:"GitHub",icon:lut},okta:{name:"Okta",icon:uut}};function hut({appId:n}){var Se;const e=kw(),t=_S(n,()=>{},{}),[r,i]=te.useState(!0),[a,s]=te.useState(null),[o,c]=te.useState(null),[l,u]=te.useState("login"),[A,f]=te.useState(""),[h,g]=te.useState(!1),[y,w]=te.useState(!1),v=new URLSearchParams(e.search),S=v.get("error"),[C,M]=te.useState(S==="access_required"),F=xe=>{const Pe=v.get("from_url"),V=h0(Pe,"/"),ae=v.get("app_id")||n;let J;xe==="google"?J=`${Fm()}/apps/auth/login?from_url=${encodeURIComponent(V)}`:J=`${Fm()}/apps/auth/${xe}/login?from_url=${encodeURIComponent(V)}`,ae&&(J+=`&app_id=${ae}`),h2(J)},D=()=>F("google"),U=()=>F("microsoft"),O=()=>F("facebook"),T=()=>F("apple"),P=()=>{const xe=v.get("from_url"),Pe=h0(xe,"/"),V=v.get("app_id")||n;let ae;j.use_workspace_sso&&(o!=null&&o.organization_id)?ae=`${Fm()}/apps/${o.organization_id}/${V}/auth/sso/login?from_url=${encodeURIComponent(Pe)}`:(ae=`${Fm()}/apps/${V}/auth/sso/login?from_url=${encodeURIComponent(Pe)}`,V&&(ae+=`&app_id=${V}`)),h2(ae)},k=xe=>{const Pe=v.get("from_url"),V=h0(Pe,"/");window.location.href=V},H=(xe,Pe=!1)=>{f(xe),g(Pe),u("otp")},j=cV(o),$=[{id:"google",name:"Google",enabled:j.enable_google_login!==!1,handler:D,icon:vj},{id:"microsoft",name:"Microsoft",enabled:j.enable_microsoft_login,handler:U,icon:yj},{id:"facebook",name:"Facebook",enabled:j.enable_facebook_login,handler:O,icon:cut},{id:"apple",name:"Apple",enabled:j.enable_apple_login,handler:T,icon:dut}],ce=j.enable_sso_login||j.use_workspace_sso?[]:$.filter(xe=>xe.enabled),de=xe=>{const Pe=xe.icon;return R.jsxs("button",{onClick:xe.handler,className:"w-full flex items-center justify-center gap-3 bg-white text-slate-700 px-5 py-3.5 rounded-xl border border-slate-200 hover:bg-slate-50 hover:border-slate-300 hover:shadow-sm transition-all duration-200 font-medium text-[16px] group",children:[R.jsx("div",{className:` transition-transform duration-200 ${xe.id==="google"?"-ml-4":""}`,children:R.jsx(Pe,{})}),R.jsxs("span",{children:["Continue with ",xe.name]})]},xe.id)},fe=()=>{if(!j.sso_provider_name||j.enable_sso_login===!1)return null;const xe=Aut[j.sso_provider_name],Pe=xe?`Continue with ${xe.name}`:`Continue with ${j.sso_provider_name} SSO`,V=xe==null?void 0:xe.icon;return R.jsxs("button",{onClick:P,className:"w-full flex items-center justify-center gap-3 bg-white text-slate-700 px-5 py-3.5 rounded-xl border border-slate-200 hover:bg-slate-50 hover:border-slate-300 hover:shadow-sm transition-all duration-200 font-medium text-[15px] group",children:[V&&R.jsx("div",{className:"group-hover:scale-110 transition-transform duration-200",children:R.jsx(V,{})}),R.jsx("span",{children:Pe})]})};if(te.useEffect(()=>{(async()=>{try{const Pe=await Rw.getLoginInfoById(n);if(Pe.not_published){w(!0),i(!1);return}c(Pe),i(!1)}catch(Pe){s(Pe),i(!1)}})()},[n]),r)return R.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:R.jsx("div",{className:"p-8",children:R.jsx(Gl,{className:"h-10 w-10 animate-spin text-slate-400"})})});if(y)return R.jsx(gj,{});if(a)return R.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:R.jsx("div",{className:"p-8 text-base font-medium text-red-600 bg-white rounded-2xl shadow-sm border border-red-100",children:"An error occurred while loading the app"})});const ee=()=>{if(j.enable_username_password)switch(l){case"register":return R.jsx(aut,{authSDK:t,appId:n,onSuccess:k,onSwitchToLogin:()=>u("login"),onSwitchToOtpVerification:H});case"otp":return R.jsx(sut,{authSDK:t,appId:n,email:A,isAccessRequest:h,onSuccess:k,onSwitchToLogin:()=>u("login")});case"reset":return R.jsx(out,{authSDK:t,onSwitchToLogin:()=>u("login")});default:return R.jsxs(R.Fragment,{children:[R.jsxs("div",{className:"space-y-3",children:[ce.map(xe=>de(xe)),fe()]}),(ce.length>0||fe())&&R.jsxs("div",{className:"relative my-6",children:[R.jsx("div",{className:"absolute inset-0 flex items-center",children:R.jsx(WN,{className:"w-full bg-slate-200"})}),R.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:R.jsx("span",{className:"bg-white px-3 text-slate-400 font-medium tracking-wider",children:"or"})})]}),R.jsx(iut,{appId:n,appPlatformVersion:o==null?void 0:o.platform_version,authSDK:t,onSuccess:k,onSwitchToRegister:()=>u("register"),onSwitchToResetPassword:()=>u("reset")})]})}return R.jsxs("div",{className:"space-y-3",children:[ce.map(xe=>de(xe)),fe()]})};return R.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100 p-4",children:R.jsxs("div",{className:"w-full max-w-md",children:[R.jsxs(Fv,{className:"relative overflow-hidden border-0 shadow-2xl bg-white/95 backdrop-blur-sm rounded-2xl",children:[R.jsx("div",{className:"absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-slate-200 via-slate-300 to-slate-200"}),R.jsx(Nv,{className:"p-8 sm:p-10 md:pt-12 md:pb-10 md:px-10",children:R.jsxs("div",{className:"flex flex-col items-center text-center space-y-6 sm:space-y-8",children:[(o==null?void 0:o.logo_url)&&l==="login"&&R.jsxs("div",{className:"relative group",children:[R.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-slate-200 to-slate-300 rounded-full blur-xl opacity-30 group-hover:opacity-40 transition-opacity duration-300"}),R.jsxs(lV,{className:"relative h-20 w-20 sm:h-24 sm:w-24 shadow-lg ring-4 ring-white/50 group-hover:shadow-xl transition-all duration-300",children:[R.jsx(uV,{src:o.logo_url,alt:`${o.name} logo`,className:"object-cover"}),R.jsx(dV,{className:"bg-gradient-to-br from-slate-100 to-slate-200 text-xl sm:text-2xl font-bold text-slate-700",children:(Se=o.name)==null?void 0:Se[0]})]})]}),l==="login"&&R.jsxs("div",{className:"space-y-2 sm:space-y-3",children:[R.jsxs("h1",{className:"text-2xl sm:text-3xl font-bold text-slate-900 tracking-tight",children:["Welcome to ",o==null?void 0:o.name]}),R.jsx("p",{className:"text-slate-500 text-sm sm:text-base font-medium",children:"Sign in to continue"})]}),C&&R.jsxs("div",{className:"w-full bg-amber-50 border border-amber-200 rounded-lg px-4 py-3 flex items-start gap-2.5 text-sm text-amber-800",children:[R.jsx(h6,{className:"w-4 h-4 flex-shrink-0 mt-0.5"}),R.jsx("span",{children:"This app requires access. Please sign in to request access."})]}),R.jsx("div",{className:"w-full",children:ee()})]})})]}),R.jsx("div",{className:"mt-8 text-center text-xs text-slate-400 sm:hidden",children:R.jsx("p",{children:" "})})]})})}function fut({appId:n}){const e=kw(),t=Iw(),r=_S(n,()=>{},{}),a=new URLSearchParams(e.search).get("token"),[s,o]=te.useState({password:"",confirmPassword:""}),[c,l]=te.useState(""),[u,A]=te.useState(!1),[f,h]=te.useState(!1),[g,y]=te.useState(null),[w,v]=te.useState(!0);te.useEffect(()=>{(async()=>{try{const F=await Rw.getLoginInfoById(n);y(F)}catch{}finally{v(!1)}})(),a||l("Invalid reset link. Please request a new password reset.")},[a,n]);const S=async M=>{var F,D;if(M.preventDefault(),l(""),s.password!==s.confirmPassword){l("Passwords do not match");return}if(s.password.length<8){l("Password must be at least 8 characters long");return}A(!0);try{await r.resetPassword(a,s.password),h(!0),setTimeout(()=>{t("/login")},3e3)}catch(U){l(((D=(F=U.response)==null?void 0:F.data)==null?void 0:D.detail)||"Failed to reset password. The link may have expired.")}finally{A(!1)}},C=(M,F)=>{o(D=>({...D,[M]:F}))};return w?R.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50",children:R.jsx("div",{className:"p-8",children:R.jsx(Gl,{className:"h-10 w-10 animate-spin text-gray-600"})})}):f?R.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 p-4",children:R.jsx(Fv,{className:"max-w-md w-full overflow-hidden border-0 shadow-lg bg-white",children:R.jsxs(Nv,{className:"pt-12 pb-10 px-12 text-center space-y-6",children:[R.jsx("div",{className:"mx-auto w-20 h-20 bg-gray-100 rounded-full flex items-center justify-center",children:R.jsx(f6,{className:"h-10 w-10 text-green-600"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Password reset successful!"}),R.jsx("p",{className:"text-gray-600",children:"Your password has been reset. Redirecting to login..."})]}),(g==null?void 0:g.name)&&R.jsxs("p",{className:"text-sm text-gray-500",children:["You can now sign in to ",g.name," with your new password"]})]})})}):a?R.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 p-4",children:R.jsxs(Fv,{className:"relative max-w-md w-full overflow-hidden border-0 shadow-lg bg-white",children:[R.jsx("div",{className:"absolute top-0 left-0 right-0 h-0.5 bg-gray-900"}),R.jsxs(Nv,{className:"pt-12 pb-10 px-12 space-y-8",children:[R.jsxs("div",{className:"text-center space-y-2",children:[R.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Set new password"}),R.jsx("p",{className:"text-gray-600",children:g!=null&&g.name?`Enter your new password for ${g.name}`:"Please enter your new password below"})]}),R.jsxs("form",{onSubmit:S,className:"space-y-6",children:[R.jsxs("div",{className:"space-y-5",children:[R.jsxs("div",{className:"space-y-2",children:[R.jsx(Ol,{htmlFor:"password",className:"text-sm font-medium text-gray-700",children:"New Password"}),R.jsxs("div",{className:"relative",children:[R.jsx(bp,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),R.jsx(Hl,{id:"password",type:"password",placeholder:"••••••••",value:s.password,onChange:M=>C("password",M.target.value),required:!0,disabled:u,className:"pl-10 h-11 bg-gray-50/50 border-gray-200 focus:border-gray-400 focus:ring-gray-400"})]}),R.jsx("p",{className:"text-xs text-gray-500",children:"Must be at least 8 characters"})]}),R.jsxs("div",{className:"space-y-2",children:[R.jsx(Ol,{htmlFor:"confirmPassword",className:"text-sm font-medium text-gray-700",children:"Confirm New Password"}),R.jsxs("div",{className:"relative",children:[R.jsx(bp,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-gray-400"}),R.jsx(Hl,{id:"confirmPassword",type:"password",placeholder:"••••••••",value:s.confirmPassword,onChange:M=>C("confirmPassword",M.target.value),required:!0,disabled:u,className:"pl-10 h-11 bg-gray-50/50 border-gray-200 focus:border-gray-400 focus:ring-gray-400"})]})]})]}),c&&R.jsx(pA,{className:"bg-red-50/50 border-red-200",children:R.jsx(gA,{className:"text-red-800 text-sm",children:c})}),R.jsxs("div",{className:"space-y-3",children:[R.jsx(Kl,{type:"submit",disabled:u,className:"w-full h-11 bg-gray-900 hover:bg-gray-800 text-white font-medium shadow-sm",children:u?R.jsxs(R.Fragment,{children:[R.jsx(Gl,{className:"mr-2 h-4 w-4 animate-spin"}),"Resetting password..."]}):"Reset password"}),R.jsx("button",{type:"button",onClick:()=>t("/login"),className:"w-full text-sm text-gray-600 hover:text-gray-700",children:"Back to login"})]})]})]})]})}):R.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 p-4",children:R.jsx(Fv,{className:"max-w-md w-full overflow-hidden border-0 shadow-lg bg-white",children:R.jsxs(Nv,{className:"pt-12 pb-10 px-12 text-center space-y-6",children:[R.jsx("div",{className:"mx-auto w-20 h-20 bg-red-100 rounded-full flex items-center justify-center",children:R.jsx(sN,{className:"h-10 w-10 text-red-600"})}),R.jsxs("div",{className:"space-y-2",children:[R.jsx("h2",{className:"text-2xl font-bold text-gray-900",children:"Invalid Reset Link"}),R.jsx("p",{className:"text-gray-600",children:"This password reset link is invalid or has expired."})]}),R.jsx(Kl,{onClick:()=>t("/login"),className:"w-full h-11 bg-gray-900 hover:bg-gray-800 text-white font-medium shadow-sm",children:"Back to Login"})]})})})}const wj="data:image/svg+xml,%3csvg%20width='60'%20height='60'%20viewBox='0%200%2060%2060'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='60'%20height='60'%20rx='9'%20fill='%23F5F5F5'/%3e%3cpath%20d='M23.75%2028.75H21.25C19.8693%2028.75%2018.75%2029.8693%2018.75%2031.25V40C18.75%2041.3807%2019.8693%2042.5%2021.25%2042.5H38.75C40.1307%2042.5%2041.25%2041.3807%2041.25%2040V31.25C41.25%2029.8693%2040.1307%2028.75%2038.75%2028.75H36.25H23.75Z'%20fill='%23525252'/%3e%3cpath%20d='M21.25%2028.75H38.75M21.25%2028.75C19.8693%2028.75%2018.75%2029.8693%2018.75%2031.25V40C18.75%2041.3807%2019.8693%2042.5%2021.25%2042.5H38.75C40.1307%2042.5%2041.25%2041.3807%2041.25%2040V31.25C41.25%2029.8693%2040.1307%2028.75%2038.75%2028.75M21.25%2028.75H23.75M38.75%2028.75H36.25M23.75%2028.75V23.75C23.75%2022.0924%2024.4085%2020.5027%2025.5806%2019.3306C26.7527%2018.1585%2028.3424%2017.5%2030%2017.5C31.6576%2017.5%2033.2473%2018.1585%2034.4194%2019.3306C35.5915%2020.5027%2036.25%2022.0924%2036.25%2023.75V28.75M23.75%2028.75H36.25'%20stroke='%23525252'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";function mut(){const n=fN();return n.startsWith("http")?n:`https://${n}`}function bj(n){try{const e=n.split(".");if(e.length!==3)return null;const t=e[1].replace(/-/g,"+").replace(/_/g,"/"),r=atob(t);return JSON.parse(r)}catch{return null}}function _j(n){const e=window.location.hash;return e?new URLSearchParams(e.slice(1)).get(n):null}function xj({children:n}){const e=mut();return R.jsxs("div",{className:"min-h-screen bg-slate-50 p-4 font-sans text-base leading-normal font-normal",children:[R.jsx("div",{className:"absolute top-6 left-6",children:R.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:R.jsx("img",{src:"/Logo_v5.png",alt:"Base44",width:"114",height:"28"})})}),R.jsx("div",{className:"min-h-screen flex items-center justify-center",children:R.jsx("div",{className:"w-full max-w-[450px] bg-white rounded-2xl shadow-[0_3px_20px_0_#3C3C3C1A] p-10 pt-12 pb-10",children:R.jsx("div",{className:"flex flex-col items-center text-center",children:n})})})]})}function Mj({appId:n,loggedInAsLabel:e,switchAccountLabel:t}){return R.jsxs("div",{className:"mt-8 flex flex-col items-center gap-1",children:[R.jsx("p",{className:"text-base text-slate-400 font-light",children:e}),R.jsx("button",{type:"button",onClick:()=>{window.location.href=`/login?app_id=${n}`},className:"text-sm font-light text-blue-600 hover:text-blue-700 hover:underline",children:t})]})}const put=3,gut={requested:"bg-[#90cca9] text-white disabled:opacity-100",submitting:"bg-slate-400 text-white",idle:"bg-slate-900 text-white hover:bg-slate-800"};function vut({appId:n}){return R.jsx(QN,{ns:"app-access",children:R.jsx(yut,{appId:n})})}function yut({appId:n}){var P;const t=kw().state,r=te.useRef(null);r.current===null&&(r.current=_j("confirmation_token"));const i=r.current;te.useEffect(()=>{i&&window.history.replaceState(null,"",window.location.pathname+window.location.search)},[i]);const a=(t==null?void 0:t.confirmationToken)??i,s=t==null?void 0:t.email,o=a?(P=bj(a))==null?void 0:P.email:void 0,c=s??o??void 0,{t:l}=$N(),[u,A]=te.useState(0),f=u>=put,h=!a;te.useEffect(()=>{h&&(window.location.href=`/login?app_id=${n}`)},[h,n]);const{data:g}=AV({query:()=>Rw.getLoginInfoById(n),enabled:!!n},[n]),{mutate:y,data:w,isLoading:v,error:S}=hV({mutate:async()=>{if(!a)throw new Error("Confirmation token is required");return mV.requestAccess(n,a)},toastError:void 0}),C=te.useCallback(()=>{f||(A(k=>k+1),y())},[f,y]),M=!!(w!=null&&w.success),F=(g==null?void 0:g.name)??"",D=!!S&&!M,U=M?"requested":v?"submitting":"idle",O=U!=="idle"||f,T={requested:R.jsxs(R.Fragment,{children:[R.jsx(lS,{className:"w-4 h-4 flex-shrink-0"}),l("accessRequired.requestSubmitted")]}),submitting:R.jsxs(R.Fragment,{children:[R.jsx(Gl,{className:"w-4 h-4 animate-spin"}),l("accessRequired.requestAccess")]}),idle:l("accessRequired.requestAccess")};return h?null:R.jsxs(xj,{children:[R.jsx("div",{className:"mb-8",children:R.jsx("img",{src:wj,alt:"",width:60,height:60})}),R.jsx("h1",{className:"text-2xl font-normal text-slate-900 mb-3",children:l("accessRequired.title",{appName:F||"..."})}),R.jsx("p",{className:"text-slate-500 text-base font-light mb-8",children:l(M?"accessRequired.subtitleRequested":"accessRequired.subtitleDefault")}),R.jsx(fV,{onClick:C,disabled:O,className:On("h-[40px] rounded-md px-4 py-[15px] text-sm font-normal leading-normal transition-all duration-300 ease-in-out",gut[U]),children:T[U]}),D&&R.jsxs("div",{className:"mt-4 w-full bg-red-50 border border-red-200 rounded-lg px-4 py-3 flex items-start gap-2.5 text-sm text-red-700",children:[R.jsx(sN,{className:"w-4 h-4 flex-shrink-0 mt-0.5"}),R.jsx("span",{children:l(f?"accessRequired.tooManyAttempts":"accessRequired.errorMessage")})]}),f&&R.jsx("button",{type:"button",onClick:()=>{window.location.href=`/login?app_id=${n}`},className:"mt-3 text-sm font-light text-blue-600 hover:text-blue-700 hover:underline",children:l("accessRequired.backToLogin")}),c&&R.jsx(Mj,{appId:n,loggedInAsLabel:l("accessRequired.loggedInAs",{email:c}),switchAccountLabel:l("accessRequired.switchAccount")})]})}function wut({appId:n}){return R.jsx(QN,{ns:"app-access",children:R.jsx(but,{appId:n})})}function but({appId:n}){var s;const{t:e}=$N(),t=te.useRef(null);t.current===null&&(t.current=_j("email_token"));const r=t.current;te.useEffect(()=>{r&&window.history.replaceState(null,"",window.location.pathname+window.location.search)},[r]);const i=r?(s=bj(r))==null?void 0:s.email:void 0,a=!r;return te.useEffect(()=>{a&&(window.location.href=`/login?app_id=${n}`)},[a,n]),a?null:R.jsxs(xj,{children:[R.jsx("div",{className:"mb-8",children:R.jsx("img",{src:wj,alt:"",width:60,height:60})}),R.jsx("h1",{className:"text-2xl font-normal text-slate-900 mb-3",children:e("workspaceRestricted.title")}),R.jsx("p",{className:"text-slate-500 text-base font-light mb-8",children:e("workspaceRestricted.subtitle")}),i&&R.jsx(Mj,{appId:n,loggedInAsLabel:e("accessRequired.loggedInAs",{email:i}),switchAccountLabel:e("accessRequired.switchAccount")})]})}function _ut(){const{user:n,isLoadingAuth:e}=bS(),{platform:t}=pV();return te.useEffect(()=>{e||$6({platform:t,onLoaded:()=>{n&&j6(n.id,{platform:t})}})},[e,t,n]),null}function xut({}){const[n,e]=te.useState(null),[t,r]=te.useState(null),[i,a]=te.useState(!0),s=window.location.host.includes("localhost")?window.location.host:window.location.hostname,[o]=te.useState(()=>new w6);return te.useEffect(()=>{Rw.getDomainAppId(s).then(c=>{e(c),window.appId=c,a(!1)}).catch(c=>{r(!0),a(!1)})},[]),i?R.jsx("div",{className:"fixed inset-0 flex items-center justify-center",children:R.jsx("div",{className:"w-12 h-12 border-4 border-gray-200 border-t-black rounded-full animate-spin"})}):t?R.jsxs("div",{className:"relative font-base44 w-full min-h-screen overflow-hidden bg-gradient-to-br from-slate-50 via-orange-50/30 to-orange-100/40",children:[R.jsx("div",{className:"absolute right-0 bottom-0 translate-x-1/2 translate-y-1/2 w-[800px] h-[800px] bg-orange-400/20 rounded-full mix-blend-multiply filter blur-[120px]"}),R.jsx("div",{className:"absolute right-0 bottom-0 translate-x-1/2 translate-y-1/2 w-[600px] h-[600px] bg-yellow-300/25 rounded-full mix-blend-multiply filter blur-[100px]"}),R.jsx("div",{className:"absolute right-0 bottom-0 translate-x-1/2 translate-y-1/2 w-[500px] h-[500px] bg-orange-500/15 rounded-full mix-blend-multiply filter blur-[80px]"}),R.jsx("div",{className:"absolute top-0 left-0 w-full px-[4%] md:px-[60px] py-4 md:py-6 flex items-center gap-5 md:gap-10 z-10",children:R.jsx("div",{className:"flex items-center w-[114px] h-[28px]",children:R.jsx("img",{src:"https://app.base44.com/Logo_v5.png",alt:"Base44",width:"114",height:"28"})})}),R.jsx("div",{className:"relative z-10 flex items-start md:items-center min-h-screen px-[4%] md:pl-[4%] pt-32 md:pt-0 pb-30 md:pb-0",children:R.jsxs("div",{className:"w-full max-w-6xl",children:[R.jsx("div",{className:"text-[20px] md:text-[32px] font-normal mb-4 tracking-[0.1em] md:tracking-[0.05em] text-[#001E36]",children:"ERROR: 404"}),R.jsx("h1",{className:"text-[48px] md:text-[100px] font-[300] leading-[52px] md:leading-[109px] tracking-[0.02em] md:tracking-[-1px] m-0 text-[#001E36]",children:"This app was not found"}),R.jsxs("div",{className:"text-[18px] md:text-[24px] text-black leading-relaxed mt-8 font-[300] tracking-[0.01em] md:tracking-normal",children:["This usually happens when the app's subdomain has been changed, the app has been deleted, or there's a typo in the URL.",R.jsx("br",{}),R.jsx("br",{}),"Are you looking for Base44?",R.jsx("br",{}),R.jsx("a",{href:"https://app.base44.com",className:"text-slate-800 underline decoration-1 underline-offset-2 hover:text-orange-600 transition-colors",children:"Visit Base44 home →"})]})]})}),R.jsx("div",{className:"fixed bottom-8 left-1/2 -translate-x-1/2 text-center px-5 z-10",children:R.jsxs("div",{className:"text-sm md:text-[0.875rem] text-black tracking-[0.02em] whitespace-nowrap",children:["Need help? visit our"," ",R.jsx("a",{href:"https://app.base44.com/support",className:"text-black underline decoration-1 underline-offset-2 hover:text-slate-800 transition-colors",children:"support center"})]})})]}):R.jsxs(p6,{children:[R.jsx("div",{children:R.jsx(CE,{})}),R.jsx("div",{children:R.jsx(HH,{})}),R.jsx("div",{children:R.jsx(CE,{})}),R.jsx(PV,{appId:n,children:R.jsxs(b6,{client:o,children:[R.jsx(_ut,{}),R.jsxs(g6,{children:[R.jsx(em,{path:"/login",element:R.jsx(hut,{appId:n})}),R.jsx(em,{path:"/reset-password",element:R.jsx(fut,{appId:n})}),R.jsx(em,{path:"/request-access",element:R.jsx(vut,{appId:n})}),R.jsx(em,{path:"/workspace-restricted",element:R.jsx(wut,{appId:n})}),R.jsx(em,{path:"/:pageName?",element:R.jsx(rut,{appId:n})})]})]})})]})}const Uut=Object.freeze(Object.defineProperty({__proto__:null,default:xut},Symbol.toStringTag,{value:"Module"}));export{Uut as U,Cr as _};