From bdccdf9d6598178904ad879b21f31c10c9392892 Mon Sep 17 00:00:00 2001 From: efrice <719431749@qq.com> Date: Wed, 10 Apr 2024 19:27:05 +0800 Subject: [PATCH] deploy: docs --- components.d.ts | 3 -- docs/assets/Index-e426f46a.js | 2 ++ ...ue_type_script_setup_true_lang-91e3e424.js | 22 +++++++++++++++ docs/assets/_...all_-6d5f2e61.js | 1 + docs/assets/edit-02d5cd50.js | 1 + docs/assets/index-269d4ed0.css | 1 + docs/assets/index-35f8c1f4.js | 25 +++++++++++++++++ docs/assets/level2-3b3af78c.js | 1 + docs/assets/level3-625f817a.js | 1 + docs/favicon.svg | 9 ++++++ docs/gif.worker.js | 3 ++ docs/gif.worker.js.map | 1 + docs/index.html | 28 +++++++++++++++++++ package.json | 6 ++-- tsconfig.json | 2 +- 15 files changed, 99 insertions(+), 7 deletions(-) create mode 100644 docs/assets/Index-e426f46a.js create mode 100644 docs/assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js create mode 100644 docs/assets/_...all_-6d5f2e61.js create mode 100644 docs/assets/edit-02d5cd50.js create mode 100644 docs/assets/index-269d4ed0.css create mode 100644 docs/assets/index-35f8c1f4.js create mode 100644 docs/assets/level2-3b3af78c.js create mode 100644 docs/assets/level3-625f817a.js create mode 100644 docs/favicon.svg create mode 100644 docs/gif.worker.js create mode 100644 docs/gif.worker.js.map create mode 100644 docs/index.html diff --git a/components.d.ts b/components.d.ts index a27072a..aac829c 100644 --- a/components.d.ts +++ b/components.d.ts @@ -9,11 +9,9 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { - Box: typeof import('./src/components/Box.vue')['default'] Boxes: typeof import('./src/components/Boxes.vue')['default'] Confetti: typeof import('./src/components/Confetti.vue')['default'] Game: typeof import('./src/components/Game.vue')['default'] - Grid: typeof import('./src/components/Grid.vue')['default'] Map: typeof import('./src/components/Map.vue')['default'] Message: typeof import('./src/components/Message.vue')['default'] Mines: typeof import('./src/components/Mines.vue')['default'] @@ -22,7 +20,6 @@ declare module '@vue/runtime-core' { Player: typeof import('./src/components/Player.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] - Select: typeof import('./src/components/Select.vue')['default'] SelectLevel: typeof import('./src/components/SelectLevel.vue')['default'] TheFooter: typeof import('./src/components/TheFooter.vue')['default'] Wall: typeof import('./src/components/Wall.vue')['default'] diff --git a/docs/assets/Index-e426f46a.js b/docs/assets/Index-e426f46a.js new file mode 100644 index 0000000..645871e --- /dev/null +++ b/docs/assets/Index-e426f46a.js @@ -0,0 +1,2 @@ +import{s as N,i as de,h as Le,u as je,a as De,b as Ne,c as qe,d as We,e as Ue,_ as Ve,f as $e,g as ze,j as He}from"./Player.vue_vue_type_script_setup_true_lang-91e3e424.js";import{d as ne,w as fe,o as D,c as W,r as re,a as _,F as Ge,b as Ze,t as ve,_ as ee,u as Ye,e as Je,f as Ke,g as F,h as q,i as he,j as Qe,k as Xe,v as ea,l as aa,m as ra,n as na}from"./index-35f8c1f4.js";var te={};(function S(d,v,M,g){var R=!!(d.Worker&&d.Blob&&d.Promise&&d.OffscreenCanvas&&d.OffscreenCanvasRenderingContext2D&&d.HTMLCanvasElement&&d.HTMLCanvasElement.prototype.transferControlToOffscreen&&d.URL&&d.URL.createObjectURL),O=typeof Path2D=="function"&&typeof DOMMatrix=="function",E=function(){if(!d.OffscreenCanvas)return!1;var a=new OffscreenCanvas(1,1),e=a.getContext("2d");e.fillRect(0,0,1,1);var r=a.transferToImageBitmap();try{e.createPattern(r,"no-repeat")}catch{return!1}return!0}();function B(){}function w(a){var e=v.exports.Promise,r=e!==void 0?e:d.Promise;return typeof r=="function"?new r(a):(a(B,B),null)}var I=function(a,e){return{transform:function(r){if(a)return r;if(e.has(r))return e.get(r);var t=new OffscreenCanvas(r.width,r.height),o=t.getContext("2d");return o.drawImage(r,0,0),e.set(r,t),t},clear:function(){e.clear()}}}(E,new Map),A=function(){var a=Math.floor(16.666666666666668),e,r,t={},o=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(e=function(s){var i=Math.random();return t[i]=requestAnimationFrame(function n(l){o===l||o+a-1{ae({...M,particleCount:50,angle:60,spread:80,origin:{x:0}})},250),setTimeout(()=>{ae({...M,particleCount:50,angle:120,spread:80,origin:{x:1}})},400)}return fe(()=>d.passed,M=>{M&&setTimeout(v,300)},{flush:"post"}),(M,g)=>(D(),W("div"))}}),oa=(S,d)=>{const v=S[d];return v?typeof v=="function"?v():Promise.resolve(v):new Promise((M,g)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(g.bind(null,new Error("Unknown variable dynamic import: "+d)))})},sa={"m-auto":"","w-60":"",flex:"","justify-between":""},ia=_("div",null,"Select Level: ",-1),la=["value"],ca=ne({__name:"SelectLevel",emits:["select"],setup(S,{emit:d}){const v=d,M=["1","2","3"],g=re("1");function R(E){g.value=E.target.value}async function O(){const E=await oa(Object.assign({"../data/level1.json":()=>ee(()=>Promise.resolve().then(()=>ua),void 0),"../data/level2.json":()=>ee(()=>import("./level2-3b3af78c.js"),[]),"../data/level3.json":()=>ee(()=>import("./level3-625f817a.js"),[])}),`../data/level${g.value}.json`);v("select",E)}return(E,B)=>(D(),W("div",sa,[ia,_("select",{"w-12":"","b-rd-1":"","bg-gray-600":"",onChange:R},[(D(),W(Ge,null,Ze(M,w=>_("option",{key:w,value:w},ve(w),9,la)),64))],32),_("div",{btn:"",onClick:O}," Go Level ")]))}}),me=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],pe={left:3,top:3},ge=[{top:3,left:2},{top:3,left:4},{top:2,left:3},{top:4,left:3}],ye=[{top:1,left:3},{top:3,left:5},{top:5,left:3},{top:3,left:1}],Me={map:me,player:pe,mines:ge,boxes:ye},ua=Object.freeze(Object.defineProperty({__proto__:null,boxes:ye,default:Me,map:me,mines:ge,player:pe},Symbol.toStringTag,{value:"Module"})),da=_("h4",{"mb-2":""}," PUSH MINES ",-1),ha={"my-2":""},fa={"mt-4":""},va={btn:""},ma=ne({__name:"Game",setup(S){function d(u){return typeof u=="string"?de(u.replaceAll(" ","+")):aa(u).cloned.value}const v=re(Me);function M(u){v.value=u,N(u)}const g=Ye();N(d(g.query.game||v.value));const R=g.query.steps?de(g.query.steps).steps:[];Le(R);const{steps:O}=je(),{positions:E}=De(),{positions:B}=Ne(),w=re(!1),I=Je(()=>E.every(u=>B.find(L=>L.top===u.top&&L.left===u.left)));fe(I,()=>{I?w.value=!0:w.value=!1});function A(){N(d(g.query.game||v.value))}function U(){qe(location.search||v.value)}function V(){We(d(g.query.game||v.value))}function $(){N(d(g.query.game||v.value)),Ue()}function z(){w.value=!1,A()}return(u,L)=>{const H=ca,j=Ve,G=$e,Z=ze,Y=He,J=Ke("RouterLink"),K=ta;return D(),W("div",null,[da,F(H,{onSelect:M}),_("h6",ha," steps: "+ve(q(O).length),1),F(Y,null,{default:he(()=>[F(j),F(G),F(Z)]),_:1}),_("div",fa,[_("div",{"mr-2":"",btn:"",onClick:A}," RESTART "),_("div",va,[F(J,{to:"/edit"},{default:he(()=>[Qe(" EDIT MAP ")]),_:1})])]),_("div",{"mt-4":""},[_("div",{"mr-2":"",btn:"",onClick:U}," SHARE GAME ")]),Xe(_("div",{fixed:"","bottom-0":"","left-0":"","right-0":"","top-0":"",flex:"","items-center":"","justify-center":"","bg-white":"","dark:bg-black":"",onClick:z},[_("div",{"mt--40":"",btn:"",onClick:V}," SHARE HOW TO PLAY "),_("div",{"ml-8":"","mt--40":"",btn:"",onClick:$}," SHARE GIF SHOW PLAY "),F(K,{passed:q(I)},null,8,["passed"])],512),[[ea,q(I)&&q(w)]])])}}}),pa={};function ga(S,d){const v=ma;return D(),na(v)}const ba=ra(pa,[["render",ga]]);export{ba as default}; diff --git a/docs/assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js b/docs/assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js new file mode 100644 index 0000000..144a508 --- /dev/null +++ b/docs/assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js @@ -0,0 +1,22 @@ +import{x as dt,y as ye,e as as,r as ss,z as $B,A as Ao,B as eo,o as rA,c as fA,C as Bs,m as to,a as ti,d as vr,F as sr,b as Br,h as Ie,D as ro,n as Ui,E as ri,G as no,H as io}from"./index-35f8c1f4.js";var Be=(A=>(A[A.NORMAL=0]="NORMAL",A[A.WALL=1]="WALL",A))(Be||{}),Ve=(A=>(A[A.up=1]="up",A[A.left=2]="left",A[A.down=3]="down",A[A.right=4]="right",A))(Ve||{});const Ut=dt("map",()=>{const A=ye([]);function t(r){A.splice(0,A.length,...r)}return{map:A,setup:t,isWall:({top:r,left:n})=>A[r][n]===Be.WALL}});function ni(A,t){return A.top===t.top&&A.left===t.left}/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const ao=4,Fi=0,pi=1,so=2;function Ke(A){let t=A.length;for(;--t>=0;)A[t]=0}const Bo=0,os=1,oo=2,lo=3,fo=258,ii=29,Ft=256,Bt=Ft+1+ii,me=30,ai=19,ls=2*Bt+1,te=15,Gr=16,co=7,si=256,fs=16,cs=17,us=18,En=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),tr=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),uo=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),gs=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),go=512,xA=new Array((Bt+2)*2);Ke(xA);const At=new Array(me*2);Ke(At);const ot=new Array(go);Ke(ot);const lt=new Array(fo-lo+1);Ke(lt);const Bi=new Array(ii);Ke(Bi);const or=new Array(me);Ke(or);function Nr(A,t,e,r,n){this.static_tree=A,this.extra_bits=t,this.extra_base=e,this.elems=r,this.max_length=n,this.has_stree=A&&A.length}let ws,hs,Qs;function Vr(A,t){this.dyn_tree=A,this.max_code=0,this.stat_desc=t}const Cs=A=>A<256?ot[A]:ot[256+(A>>>7)],ft=(A,t)=>{A.pending_buf[A.pending++]=t&255,A.pending_buf[A.pending++]=t>>>8&255},iA=(A,t,e)=>{A.bi_valid>Gr-e?(A.bi_buf|=t<>Gr-A.bi_valid,A.bi_valid+=e-Gr):(A.bi_buf|=t<{iA(A,e[t*2],e[t*2+1])},ds=(A,t)=>{let e=0;do e|=A&1,A>>>=1,e<<=1;while(--t>0);return e>>>1},wo=A=>{A.bi_valid===16?(ft(A,A.bi_buf),A.bi_buf=0,A.bi_valid=0):A.bi_valid>=8&&(A.pending_buf[A.pending++]=A.bi_buf&255,A.bi_buf>>=8,A.bi_valid-=8)},ho=(A,t)=>{const e=t.dyn_tree,r=t.max_code,n=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,l=t.stat_desc.max_length;let B,o,c,f,u,g,Q=0;for(f=0;f<=te;f++)A.bl_count[f]=0;for(e[A.heap[A.heap_max]*2+1]=0,B=A.heap_max+1;Bl&&(f=l,Q++),e[o*2+1]=f,!(o>r)&&(A.bl_count[f]++,u=0,o>=s&&(u=a[o-s]),g=e[o*2],A.opt_len+=g*(f+u),i&&(A.static_len+=g*(n[o*2+1]+u)));if(Q!==0){do{for(f=l-1;A.bl_count[f]===0;)f--;A.bl_count[f]--,A.bl_count[f+1]+=2,A.bl_count[l]--,Q-=2}while(Q>0);for(f=l;f!==0;f--)for(o=A.bl_count[f];o!==0;)c=A.heap[--B],!(c>r)&&(e[c*2+1]!==f&&(A.opt_len+=(f-e[c*2+1])*e[c*2],e[c*2+1]=f),o--)}},Us=(A,t,e)=>{const r=new Array(te+1);let n=0,i,a;for(i=1;i<=te;i++)n=n+e[i-1]<<1,r[i]=n;for(a=0;a<=t;a++){let s=A[a*2+1];s!==0&&(A[a*2]=ds(r[s]++,s))}},Qo=()=>{let A,t,e,r,n;const i=new Array(te+1);for(e=0,r=0;r>=7;r{let t;for(t=0;t{A.bi_valid>8?ft(A,A.bi_buf):A.bi_valid>0&&(A.pending_buf[A.pending++]=A.bi_buf),A.bi_buf=0,A.bi_valid=0},Ei=(A,t,e,r)=>{const n=t*2,i=e*2;return A[n]{const r=A.heap[e];let n=e<<1;for(;n<=A.heap_len&&(n{let r,n,i=0,a,s;if(A.sym_next!==0)do r=A.pending_buf[A.sym_buf+i++]&255,r+=(A.pending_buf[A.sym_buf+i++]&255)<<8,n=A.pending_buf[A.sym_buf+i++],r===0?FA(A,n,t):(a=lt[n],FA(A,a+Ft+1,t),s=En[a],s!==0&&(n-=Bi[a],iA(A,n,s)),r--,a=Cs(r),FA(A,a,e),s=tr[a],s!==0&&(r-=or[a],iA(A,r,s)));while(i{const e=t.dyn_tree,r=t.stat_desc.static_tree,n=t.stat_desc.has_stree,i=t.stat_desc.elems;let a,s,l=-1,B;for(A.heap_len=0,A.heap_max=ls,a=0;a>1;a>=1;a--)Pr(A,e,a);B=i;do a=A.heap[1],A.heap[1]=A.heap[A.heap_len--],Pr(A,e,1),s=A.heap[1],A.heap[--A.heap_max]=a,A.heap[--A.heap_max]=s,e[B*2]=e[a*2]+e[s*2],A.depth[B]=(A.depth[a]>=A.depth[s]?A.depth[a]:A.depth[s])+1,e[a*2+1]=e[s*2+1]=B,A.heap[1]=B++,Pr(A,e,1);while(A.heap_len>=2);A.heap[--A.heap_max]=A.heap[1],ho(A,t),Us(e,l,A.bl_count)},Hi=(A,t,e)=>{let r,n=-1,i,a=t[0*2+1],s=0,l=7,B=4;for(a===0&&(l=138,B=3),t[(e+1)*2+1]=65535,r=0;r<=e;r++)i=a,a=t[(r+1)*2+1],!(++s{let r,n=-1,i,a=t[0*2+1],s=0,l=7,B=4;for(a===0&&(l=138,B=3),r=0;r<=e;r++)if(i=a,a=t[(r+1)*2+1],!(++s{let t;for(Hi(A,A.dyn_ltree,A.l_desc.max_code),Hi(A,A.dyn_dtree,A.d_desc.max_code),vn(A,A.bl_desc),t=ai-1;t>=3&&A.bl_tree[gs[t]*2+1]===0;t--);return A.opt_len+=3*(t+1)+5+5+4,t},Uo=(A,t,e,r)=>{let n;for(iA(A,t-257,5),iA(A,e-1,5),iA(A,r-4,4),n=0;n{let t=4093624447,e;for(e=0;e<=31;e++,t>>>=1)if(t&1&&A.dyn_ltree[e*2]!==0)return Fi;if(A.dyn_ltree[9*2]!==0||A.dyn_ltree[10*2]!==0||A.dyn_ltree[13*2]!==0)return pi;for(e=32;e{mi||(Qo(),mi=!0),A.l_desc=new Vr(A.dyn_ltree,ws),A.d_desc=new Vr(A.dyn_dtree,hs),A.bl_desc=new Vr(A.bl_tree,Qs),A.bi_buf=0,A.bi_valid=0,Fs(A)},Es=(A,t,e,r)=>{iA(A,(Bo<<1)+(r?1:0),3),ps(A),ft(A,e),ft(A,~e),e&&A.pending_buf.set(A.window.subarray(t,t+e),A.pending),A.pending+=e},Eo=A=>{iA(A,os<<1,3),FA(A,si,xA),wo(A)},vo=(A,t,e,r)=>{let n,i,a=0;A.level>0?(A.strm.data_type===so&&(A.strm.data_type=Fo(A)),vn(A,A.l_desc),vn(A,A.d_desc),a=Co(A),n=A.opt_len+3+7>>>3,i=A.static_len+3+7>>>3,i<=n&&(n=i)):n=i=e+5,e+4<=n&&t!==-1?Es(A,t,e,r):A.strategy===ao||i===n?(iA(A,(os<<1)+(r?1:0),3),vi(A,xA,At)):(iA(A,(oo<<1)+(r?1:0),3),Uo(A,A.l_desc.max_code+1,A.d_desc.max_code+1,a+1),vi(A,A.dyn_ltree,A.dyn_dtree)),Fs(A),r&&ps(A)},Ho=(A,t,e)=>(A.pending_buf[A.sym_buf+A.sym_next++]=t,A.pending_buf[A.sym_buf+A.sym_next++]=t>>8,A.pending_buf[A.sym_buf+A.sym_next++]=e,t===0?A.dyn_ltree[e*2]++:(A.matches++,t--,A.dyn_ltree[(lt[e]+Ft+1)*2]++,A.dyn_dtree[Cs(t)*2]++),A.sym_next===A.sym_end);var Io=po,mo=Es,_o=vo,yo=Ho,bo=Eo,xo={_tr_init:Io,_tr_stored_block:mo,_tr_flush_block:_o,_tr_tally:yo,_tr_align:bo};const Lo=(A,t,e,r)=>{let n=A&65535|0,i=A>>>16&65535|0,a=0;for(;e!==0;){a=e>2e3?2e3:e,e-=a;do n=n+t[r++]|0,i=i+n|0;while(--a);n%=65521,i%=65521}return n|i<<16|0};var ct=Lo;const Ko=()=>{let A,t=[];for(var e=0;e<256;e++){A=e;for(var r=0;r<8;r++)A=A&1?3988292384^A>>>1:A>>>1;t[e]=A}return t},Do=new Uint32Array(Ko()),So=(A,t,e,r)=>{const n=Do,i=r+e;A^=-1;for(let a=r;a>>8^n[(A^t[a])&255];return A^-1};var J=So,oe={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"},ce={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:To,_tr_stored_block:Hn,_tr_flush_block:Oo,_tr_tally:PA,_tr_align:Ro}=xo,{Z_NO_FLUSH:XA,Z_PARTIAL_FLUSH:Mo,Z_FULL_FLUSH:ko,Z_FINISH:cA,Z_BLOCK:_i,Z_OK:Z,Z_STREAM_END:yi,Z_STREAM_ERROR:pA,Z_DATA_ERROR:Go,Z_BUF_ERROR:Xr,Z_DEFAULT_COMPRESSION:No,Z_FILTERED:Vo,Z_HUFFMAN_ONLY:mt,Z_RLE:Po,Z_FIXED:Xo,Z_DEFAULT_STRATEGY:Jo,Z_UNKNOWN:Wo,Z_DEFLATED:Hr}=ce,Zo=9,Yo=15,zo=8,qo=29,jo=256,In=jo+1+qo,$o=30,Al=19,el=2*In+1,tl=15,L=3,kA=258,EA=kA+L+1,rl=32,be=42,oi=57,mn=69,_n=73,yn=91,bn=103,re=113,Pe=666,AA=1,De=2,le=3,Se=4,nl=3,ne=(A,t)=>(A.msg=oe[t],t),bi=A=>A*2-(A>4?9:0),MA=A=>{let t=A.length;for(;--t>=0;)A[t]=0},il=A=>{let t,e,r,n=A.w_size;t=A.hash_size,r=t;do e=A.head[--r],A.head[r]=e>=n?e-n:0;while(--t);t=n,r=t;do e=A.prev[--r],A.prev[r]=e>=n?e-n:0;while(--t)};let al=(A,t,e)=>(t<{const t=A.state;let e=t.pending;e>A.avail_out&&(e=A.avail_out),e!==0&&(A.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+e),A.next_out),A.next_out+=e,t.pending_out+=e,A.total_out+=e,A.avail_out-=e,t.pending-=e,t.pending===0&&(t.pending_out=0))},BA=(A,t)=>{Oo(A,A.block_start>=0?A.block_start:-1,A.strstart-A.block_start,t),A.block_start=A.strstart,sA(A.strm)},K=(A,t)=>{A.pending_buf[A.pending++]=t},Re=(A,t)=>{A.pending_buf[A.pending++]=t>>>8&255,A.pending_buf[A.pending++]=t&255},xn=(A,t,e,r)=>{let n=A.avail_in;return n>r&&(n=r),n===0?0:(A.avail_in-=n,t.set(A.input.subarray(A.next_in,A.next_in+n),e),A.state.wrap===1?A.adler=ct(A.adler,t,n,e):A.state.wrap===2&&(A.adler=J(A.adler,t,n,e)),A.next_in+=n,A.total_in+=n,n)},vs=(A,t)=>{let e=A.max_chain_length,r=A.strstart,n,i,a=A.prev_length,s=A.nice_match;const l=A.strstart>A.w_size-EA?A.strstart-(A.w_size-EA):0,B=A.window,o=A.w_mask,c=A.prev,f=A.strstart+kA;let u=B[r+a-1],g=B[r+a];A.prev_length>=A.good_match&&(e>>=2),s>A.lookahead&&(s=A.lookahead);do if(n=t,!(B[n+a]!==g||B[n+a-1]!==u||B[n]!==B[r]||B[++n]!==B[r+1])){r+=2,n++;do;while(B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&B[++r]===B[++n]&&ra){if(A.match_start=t,a=i,i>=s)break;u=B[r+a-1],g=B[r+a]}}while((t=c[t&o])>l&&--e!==0);return a<=A.lookahead?a:A.lookahead},xe=A=>{const t=A.w_size;let e,r,n;do{if(r=A.window_size-A.lookahead-A.strstart,A.strstart>=t+(t-EA)&&(A.window.set(A.window.subarray(t,t+t-r),0),A.match_start-=t,A.strstart-=t,A.block_start-=t,A.insert>A.strstart&&(A.insert=A.strstart),il(A),r+=t),A.strm.avail_in===0)break;if(e=xn(A.strm,A.window,A.strstart+A.lookahead,r),A.lookahead+=e,A.lookahead+A.insert>=L)for(n=A.strstart-A.insert,A.ins_h=A.window[n],A.ins_h=JA(A,A.ins_h,A.window[n+1]);A.insert&&(A.ins_h=JA(A,A.ins_h,A.window[n+L-1]),A.prev[n&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=n,n++,A.insert--,!(A.lookahead+A.insert{let e=A.pending_buf_size-5>A.w_size?A.w_size:A.pending_buf_size-5,r,n,i,a=0,s=A.strm.avail_in;do{if(r=65535,i=A.bi_valid+42>>3,A.strm.avail_outn+A.strm.avail_in&&(r=n+A.strm.avail_in),r>i&&(r=i),r>8,A.pending_buf[A.pending-2]=~r,A.pending_buf[A.pending-1]=~r>>8,sA(A.strm),n&&(n>r&&(n=r),A.strm.output.set(A.window.subarray(A.block_start,A.block_start+n),A.strm.next_out),A.strm.next_out+=n,A.strm.avail_out-=n,A.strm.total_out+=n,A.block_start+=n,r-=n),r&&(xn(A.strm,A.strm.output,A.strm.next_out,r),A.strm.next_out+=r,A.strm.avail_out-=r,A.strm.total_out+=r)}while(a===0);return s-=A.strm.avail_in,s&&(s>=A.w_size?(A.matches=2,A.window.set(A.strm.input.subarray(A.strm.next_in-A.w_size,A.strm.next_in),0),A.strstart=A.w_size,A.insert=A.strstart):(A.window_size-A.strstart<=s&&(A.strstart-=A.w_size,A.window.set(A.window.subarray(A.w_size,A.w_size+A.strstart),0),A.matches<2&&A.matches++,A.insert>A.strstart&&(A.insert=A.strstart)),A.window.set(A.strm.input.subarray(A.strm.next_in-s,A.strm.next_in),A.strstart),A.strstart+=s,A.insert+=s>A.w_size-A.insert?A.w_size-A.insert:s),A.block_start=A.strstart),A.high_wateri&&A.block_start>=A.w_size&&(A.block_start-=A.w_size,A.strstart-=A.w_size,A.window.set(A.window.subarray(A.w_size,A.w_size+A.strstart),0),A.matches<2&&A.matches++,i+=A.w_size,A.insert>A.strstart&&(A.insert=A.strstart)),i>A.strm.avail_in&&(i=A.strm.avail_in),i&&(xn(A.strm,A.window,A.strstart,i),A.strstart+=i,A.insert+=i>A.w_size-A.insert?A.w_size-A.insert:i),A.high_water>3,i=A.pending_buf_size-i>65535?65535:A.pending_buf_size-i,e=i>A.w_size?A.w_size:i,n=A.strstart-A.block_start,(n>=e||(n||t===cA)&&t!==XA&&A.strm.avail_in===0&&n<=i)&&(r=n>i?i:n,a=t===cA&&A.strm.avail_in===0&&r===n?1:0,Hn(A,A.block_start,r,a),A.block_start+=r,sA(A.strm)),a?le:AA)},Jr=(A,t)=>{let e,r;for(;;){if(A.lookahead=L&&(A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),e!==0&&A.strstart-e<=A.w_size-EA&&(A.match_length=vs(A,e)),A.match_length>=L)if(r=PA(A,A.strstart-A.match_start,A.match_length-L),A.lookahead-=A.match_length,A.match_length<=A.max_lazy_match&&A.lookahead>=L){A.match_length--;do A.strstart++,A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart;while(--A.match_length!==0);A.strstart++}else A.strstart+=A.match_length,A.match_length=0,A.ins_h=A.window[A.strstart],A.ins_h=JA(A,A.ins_h,A.window[A.strstart+1]);else r=PA(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++;if(r&&(BA(A,!1),A.strm.avail_out===0))return AA}return A.insert=A.strstart{let e,r,n;for(;;){if(A.lookahead=L&&(A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart),A.prev_length=A.match_length,A.prev_match=A.match_start,A.match_length=L-1,e!==0&&A.prev_length4096)&&(A.match_length=L-1)),A.prev_length>=L&&A.match_length<=A.prev_length){n=A.strstart+A.lookahead-L,r=PA(A,A.strstart-1-A.prev_match,A.prev_length-L),A.lookahead-=A.prev_length-1,A.prev_length-=2;do++A.strstart<=n&&(A.ins_h=JA(A,A.ins_h,A.window[A.strstart+L-1]),e=A.prev[A.strstart&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=A.strstart);while(--A.prev_length!==0);if(A.match_available=0,A.match_length=L-1,A.strstart++,r&&(BA(A,!1),A.strm.avail_out===0))return AA}else if(A.match_available){if(r=PA(A,0,A.window[A.strstart-1]),r&&BA(A,!1),A.strstart++,A.lookahead--,A.strm.avail_out===0)return AA}else A.match_available=1,A.strstart++,A.lookahead--}return A.match_available&&(r=PA(A,0,A.window[A.strstart-1]),A.match_available=0),A.insert=A.strstart{let e,r,n,i;const a=A.window;for(;;){if(A.lookahead<=kA){if(xe(A),A.lookahead<=kA&&t===XA)return AA;if(A.lookahead===0)break}if(A.match_length=0,A.lookahead>=L&&A.strstart>0&&(n=A.strstart-1,r=a[n],r===a[++n]&&r===a[++n]&&r===a[++n])){i=A.strstart+kA;do;while(r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&r===a[++n]&&nA.lookahead&&(A.match_length=A.lookahead)}if(A.match_length>=L?(e=PA(A,1,A.match_length-L),A.lookahead-=A.match_length,A.strstart+=A.match_length,A.match_length=0):(e=PA(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++),e&&(BA(A,!1),A.strm.avail_out===0))return AA}return A.insert=0,t===cA?(BA(A,!0),A.strm.avail_out===0?le:Se):A.sym_next&&(BA(A,!1),A.strm.avail_out===0)?AA:De},Bl=(A,t)=>{let e;for(;;){if(A.lookahead===0&&(xe(A),A.lookahead===0)){if(t===XA)return AA;break}if(A.match_length=0,e=PA(A,0,A.window[A.strstart]),A.lookahead--,A.strstart++,e&&(BA(A,!1),A.strm.avail_out===0))return AA}return A.insert=0,t===cA?(BA(A,!0),A.strm.avail_out===0?le:Se):A.sym_next&&(BA(A,!1),A.strm.avail_out===0)?AA:De};function dA(A,t,e,r,n){this.good_length=A,this.max_lazy=t,this.nice_length=e,this.max_chain=r,this.func=n}const Xe=[new dA(0,0,0,0,Hs),new dA(4,4,8,4,Jr),new dA(4,5,16,8,Jr),new dA(4,6,32,32,Jr),new dA(4,4,16,16,we),new dA(8,16,32,32,we),new dA(8,16,128,128,we),new dA(8,32,128,256,we),new dA(32,128,258,1024,we),new dA(32,258,258,4096,we)],ol=A=>{A.window_size=2*A.w_size,MA(A.head),A.max_lazy_match=Xe[A.level].max_lazy,A.good_match=Xe[A.level].good_length,A.nice_match=Xe[A.level].nice_length,A.max_chain_length=Xe[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=L-1,A.match_available=0,A.ins_h=0};function ll(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Hr,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(el*2),this.dyn_dtree=new Uint16Array((2*$o+1)*2),this.bl_tree=new Uint16Array((2*Al+1)*2),MA(this.dyn_ltree),MA(this.dyn_dtree),MA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(tl+1),this.heap=new Uint16Array(2*In+1),MA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*In+1),MA(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const pt=A=>{if(!A)return 1;const t=A.state;return!t||t.strm!==A||t.status!==be&&t.status!==oi&&t.status!==mn&&t.status!==_n&&t.status!==yn&&t.status!==bn&&t.status!==re&&t.status!==Pe?1:0},Is=A=>{if(pt(A))return ne(A,pA);A.total_in=A.total_out=0,A.data_type=Wo;const t=A.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?oi:t.wrap?be:re,A.adler=t.wrap===2?0:1,t.last_flush=-2,To(t),Z},ms=A=>{const t=Is(A);return t===Z&&ol(A.state),t},fl=(A,t)=>pt(A)||A.state.wrap!==2?pA:(A.state.gzhead=t,Z),_s=(A,t,e,r,n,i)=>{if(!A)return pA;let a=1;if(t===No&&(t=6),r<0?(a=0,r=-r):r>15&&(a=2,r-=16),n<1||n>Zo||e!==Hr||r<8||r>15||t<0||t>9||i<0||i>Xo||r===8&&a!==1)return ne(A,pA);r===8&&(r=9);const s=new ll;return A.state=s,s.strm=A,s.status=be,s.wrap=a,s.gzhead=null,s.w_bits=r,s.w_size=1<_s(A,t,Hr,Yo,zo,Jo),ul=(A,t)=>{if(pt(A)||t>_i||t<0)return A?ne(A,pA):pA;const e=A.state;if(!A.output||A.avail_in!==0&&!A.input||e.status===Pe&&t!==cA)return ne(A,A.avail_out===0?Xr:pA);const r=e.last_flush;if(e.last_flush=t,e.pending!==0){if(sA(A),A.avail_out===0)return e.last_flush=-1,Z}else if(A.avail_in===0&&bi(t)<=bi(r)&&t!==cA)return ne(A,Xr);if(e.status===Pe&&A.avail_in!==0)return ne(A,Xr);if(e.status===be&&e.wrap===0&&(e.status=re),e.status===be){let n=Hr+(e.w_bits-8<<4)<<8,i=-1;if(e.strategy>=mt||e.level<2?i=0:e.level<6?i=1:e.level===6?i=2:i=3,n|=i<<6,e.strstart!==0&&(n|=rl),n+=31-n%31,Re(e,n),e.strstart!==0&&(Re(e,A.adler>>>16),Re(e,A.adler&65535)),A.adler=1,e.status=re,sA(A),e.pending!==0)return e.last_flush=-1,Z}if(e.status===oi){if(A.adler=0,K(e,31),K(e,139),K(e,8),e.gzhead)K(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),K(e,e.gzhead.time&255),K(e,e.gzhead.time>>8&255),K(e,e.gzhead.time>>16&255),K(e,e.gzhead.time>>24&255),K(e,e.level===9?2:e.strategy>=mt||e.level<2?4:0),K(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(K(e,e.gzhead.extra.length&255),K(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(A.adler=J(A.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=mn;else if(K(e,0),K(e,0),K(e,0),K(e,0),K(e,0),K(e,e.level===9?2:e.strategy>=mt||e.level<2?4:0),K(e,nl),e.status=re,sA(A),e.pending!==0)return e.last_flush=-1,Z}if(e.status===mn){if(e.gzhead.extra){let n=e.pending,i=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+i>e.pending_buf_size;){let s=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+s),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),e.gzindex+=s,sA(A),e.pending!==0)return e.last_flush=-1,Z;n=0,i-=s}let a=new Uint8Array(e.gzhead.extra);e.pending_buf.set(a.subarray(e.gzindex,e.gzindex+i),e.pending),e.pending+=i,e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),e.gzindex=0}e.status=_n}if(e.status===_n){if(e.gzhead.name){let n=e.pending,i;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),sA(A),e.pending!==0)return e.last_flush=-1,Z;n=0}e.gzindexn&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),e.gzindex=0}e.status=yn}if(e.status===yn){if(e.gzhead.comment){let n=e.pending,i;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>n&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n)),sA(A),e.pending!==0)return e.last_flush=-1,Z;n=0}e.gzindexn&&(A.adler=J(A.adler,e.pending_buf,e.pending-n,n))}e.status=bn}if(e.status===bn){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(sA(A),e.pending!==0))return e.last_flush=-1,Z;K(e,A.adler&255),K(e,A.adler>>8&255),A.adler=0}if(e.status=re,sA(A),e.pending!==0)return e.last_flush=-1,Z}if(A.avail_in!==0||e.lookahead!==0||t!==XA&&e.status!==Pe){let n=e.level===0?Hs(e,t):e.strategy===mt?Bl(e,t):e.strategy===Po?sl(e,t):Xe[e.level].func(e,t);if((n===le||n===Se)&&(e.status=Pe),n===AA||n===le)return A.avail_out===0&&(e.last_flush=-1),Z;if(n===De&&(t===Mo?Ro(e):t!==_i&&(Hn(e,0,0,!1),t===ko&&(MA(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),sA(A),A.avail_out===0))return e.last_flush=-1,Z}return t!==cA?Z:e.wrap<=0?yi:(e.wrap===2?(K(e,A.adler&255),K(e,A.adler>>8&255),K(e,A.adler>>16&255),K(e,A.adler>>24&255),K(e,A.total_in&255),K(e,A.total_in>>8&255),K(e,A.total_in>>16&255),K(e,A.total_in>>24&255)):(Re(e,A.adler>>>16),Re(e,A.adler&65535)),sA(A),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?Z:yi)},gl=A=>{if(pt(A))return pA;const t=A.state.status;return A.state=null,t===re?ne(A,Go):Z},wl=(A,t)=>{let e=t.length;if(pt(A))return pA;const r=A.state,n=r.wrap;if(n===2||n===1&&r.status!==be||r.lookahead)return pA;if(n===1&&(A.adler=ct(A.adler,t,e,0)),r.wrap=0,e>=r.w_size){n===0&&(MA(r.head),r.strstart=0,r.block_start=0,r.insert=0);let l=new Uint8Array(r.w_size);l.set(t.subarray(e-r.w_size,e),0),t=l,e=r.w_size}const i=A.avail_in,a=A.next_in,s=A.input;for(A.avail_in=e,A.next_in=0,A.input=t,xe(r);r.lookahead>=L;){let l=r.strstart,B=r.lookahead-(L-1);do r.ins_h=JA(r,r.ins_h,r.window[l+L-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++;while(--B);r.strstart=l,r.lookahead=L-1,xe(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=L-1,r.match_available=0,A.next_in=a,A.input=s,A.avail_in=i,r.wrap=n,Z};var hl=cl,Ql=_s,Cl=ms,dl=Is,Ul=fl,Fl=ul,pl=gl,El=wl,vl="pako deflate (from Nodeca project)",et={deflateInit:hl,deflateInit2:Ql,deflateReset:Cl,deflateResetKeep:dl,deflateSetHeader:Ul,deflate:Fl,deflateEnd:pl,deflateSetDictionary:El,deflateInfo:vl};const Hl=(A,t)=>Object.prototype.hasOwnProperty.call(A,t);var Il=function(A){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)Hl(e,r)&&(A[r]=e[r])}}return A},ml=A=>{let t=0;for(let r=0,n=A.length;r=252?6:A>=248?5:A>=240?4:A>=224?3:A>=192?2:1;ut[254]=ut[254]=1;var _l=A=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(A);let t,e,r,n,i,a=A.length,s=0;for(n=0;n>>6,t[i++]=128|e&63):e<65536?(t[i++]=224|e>>>12,t[i++]=128|e>>>6&63,t[i++]=128|e&63):(t[i++]=240|e>>>18,t[i++]=128|e>>>12&63,t[i++]=128|e>>>6&63,t[i++]=128|e&63);return t};const yl=(A,t)=>{if(t<65534&&A.subarray&&ys)return String.fromCharCode.apply(null,A.length===t?A:A.subarray(0,t));let e="";for(let r=0;r{const e=t||A.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(A.subarray(0,t));let r,n;const i=new Array(e*2);for(n=0,r=0;r4){i[n++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r1){i[n++]=65533;continue}a<65536?i[n++]=a:(a-=65536,i[n++]=55296|a>>10&1023,i[n++]=56320|a&1023)}return yl(i,n)},xl=(A,t)=>{t=t||A.length,t>A.length&&(t=A.length);let e=t-1;for(;e>=0&&(A[e]&192)===128;)e--;return e<0||e===0?t:e+ut[A[e]]>t?e:t},gt={string2buf:_l,buf2string:bl,utf8border:xl};function Ll(){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 bs=Ll;const xs=Object.prototype.toString,{Z_NO_FLUSH:Kl,Z_SYNC_FLUSH:Dl,Z_FULL_FLUSH:Sl,Z_FINISH:Tl,Z_OK:lr,Z_STREAM_END:Ol,Z_DEFAULT_COMPRESSION:Rl,Z_DEFAULT_STRATEGY:Ml,Z_DEFLATED:kl}=ce;function Et(A){this.options=Ir.assign({level:Rl,method:kl,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ml},A||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bs,this.strm.avail_out=0;let e=et.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(e!==lr)throw new Error(oe[e]);if(t.header&&et.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=gt.string2buf(t.dictionary):xs.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,e=et.deflateSetDictionary(this.strm,r),e!==lr)throw new Error(oe[e]);this._dict_set=!0}}Et.prototype.push=function(A,t){const e=this.strm,r=this.options.chunkSize;let n,i;if(this.ended)return!1;for(t===~~t?i=t:i=t===!0?Tl:Kl,typeof A=="string"?e.input=gt.string2buf(A):xs.call(A)==="[object ArrayBuffer]"?e.input=new Uint8Array(A):e.input=A,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),(i===Dl||i===Sl)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(n=et.deflate(e,i),n===Ol)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),n=et.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===lr;if(e.avail_out===0){this.onData(e.output);continue}if(i>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};Et.prototype.onData=function(A){this.chunks.push(A)};Et.prototype.onEnd=function(A){A===lr&&(this.result=Ir.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};function li(A,t){const e=new Et(t);if(e.push(A,!0),e.err)throw e.msg||oe[e.err];return e.result}function Gl(A,t){return t=t||{},t.raw=!0,li(A,t)}function Nl(A,t){return t=t||{},t.gzip=!0,li(A,t)}var Vl=Et,Pl=li,Xl=Gl,Jl=Nl,Wl=ce,Zl={Deflate:Vl,deflate:Pl,deflateRaw:Xl,gzip:Jl,constants:Wl};const _t=16209,Yl=16191;var zl=function(t,e){let r,n,i,a,s,l,B,o,c,f,u,g,Q,w,h,C,U,d,p,F,E,_,v,m;const y=t.state;r=t.next_in,v=t.input,n=r+(t.avail_in-5),i=t.next_out,m=t.output,a=i-(e-t.avail_out),s=i+(t.avail_out-257),l=y.dmax,B=y.wsize,o=y.whave,c=y.wnext,f=y.window,u=y.hold,g=y.bits,Q=y.lencode,w=y.distcode,h=(1<>>24,u>>>=d,g-=d,d=U>>>16&255,d===0)m[i++]=U&65535;else if(d&16){p=U&65535,d&=15,d&&(g>>=d,g-=d),g<15&&(u+=v[r++]<>>24,u>>>=d,g-=d,d=U>>>16&255,d&16){if(F=U&65535,d&=15,gl){t.msg="invalid distance too far back",y.mode=_t;break A}if(u>>>=d,g-=d,d=i-a,F>d){if(d=F-d,d>o&&y.sane){t.msg="invalid distance too far back",y.mode=_t;break A}if(E=0,_=f,c===0){if(E+=B-d,d2;)m[i++]=_[E++],m[i++]=_[E++],m[i++]=_[E++],p-=3;p&&(m[i++]=_[E++],p>1&&(m[i++]=_[E++]))}else{E=i-F;do m[i++]=m[E++],m[i++]=m[E++],m[i++]=m[E++],p-=3;while(p>2);p&&(m[i++]=m[E++],p>1&&(m[i++]=m[E++]))}}else if(d&64){t.msg="invalid distance code",y.mode=_t;break A}else{U=w[(U&65535)+(u&(1<>3,r-=p,g-=p<<3,u&=(1<{const l=s.bits;let B=0,o=0,c=0,f=0,u=0,g=0,Q=0,w=0,h=0,C=0,U,d,p,F,E,_=null,v;const m=new Uint16Array(he+1),y=new Uint16Array(he+1);let R=null,x,T,W;for(B=0;B<=he;B++)m[B]=0;for(o=0;o=1&&m[f]===0;f--);if(u>f&&(u=f),f===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,s.bits=1,0;for(c=1;c0&&(A===Ki||f!==1))return-1;for(y[1]=0,B=1;Bxi||A===Di&&h>Li)return 1;for(;;){x=B-Q,a[o]+1=v?(T=R[a[o]-v],W=_[a[o]-v]):(T=32+64,W=0),U=1<>Q)+d]=x<<24|T<<16|W|0;while(d!==0);for(U=1<>=1;if(U!==0?(C&=U-1,C+=U):C=0,o++,--m[B]===0){if(B===f)break;B=t[e+a[o]]}if(B>u&&(C&F)!==p){for(Q===0&&(Q=u),E+=c,g=B-Q,w=1<xi||A===Di&&h>Li)return 1;p=C&F,n[p]=u<<24|g<<16|E-i|0}}return C!==0&&(n[E+C]=B-Q<<24|64<<16|0),s.bits=u,0};var tt=ef;const tf=0,Ls=1,Ks=2,{Z_FINISH:Si,Z_BLOCK:rf,Z_TREES:yt,Z_OK:fe,Z_STREAM_END:nf,Z_NEED_DICT:af,Z_STREAM_ERROR:wA,Z_DATA_ERROR:Ds,Z_MEM_ERROR:Ss,Z_BUF_ERROR:sf,Z_DEFLATED:Ti}=ce,mr=16180,Oi=16181,Ri=16182,Mi=16183,ki=16184,Gi=16185,Ni=16186,Vi=16187,Pi=16188,Xi=16189,fr=16190,_A=16191,Zr=16192,Ji=16193,Yr=16194,Wi=16195,Zi=16196,Yi=16197,zi=16198,bt=16199,xt=16200,qi=16201,ji=16202,$i=16203,Aa=16204,ea=16205,zr=16206,ta=16207,ra=16208,M=16209,Ts=16210,Os=16211,Bf=852,of=592,lf=15,ff=lf,na=A=>(A>>>24&255)+(A>>>8&65280)+((A&65280)<<8)+((A&255)<<24);function cf(){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 ue=A=>{if(!A)return 1;const t=A.state;return!t||t.strm!==A||t.modeOs?1:0},Rs=A=>{if(ue(A))return wA;const t=A.state;return A.total_in=A.total_out=t.total=0,A.msg="",t.wrap&&(A.adler=t.wrap&1),t.mode=mr,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Bf),t.distcode=t.distdyn=new Int32Array(of),t.sane=1,t.back=-1,fe},Ms=A=>{if(ue(A))return wA;const t=A.state;return t.wsize=0,t.whave=0,t.wnext=0,Rs(A)},ks=(A,t)=>{let e;if(ue(A))return wA;const r=A.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?wA:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=e,r.wbits=t,Ms(A))},Gs=(A,t)=>{if(!A)return wA;const e=new cf;A.state=e,e.strm=A,e.window=null,e.mode=mr;const r=ks(A,t);return r!==fe&&(A.state=null),r},uf=A=>Gs(A,ff);let ia=!0,qr,jr;const gf=A=>{if(ia){qr=new Int32Array(512),jr=new Int32Array(32);let t=0;for(;t<144;)A.lens[t++]=8;for(;t<256;)A.lens[t++]=9;for(;t<280;)A.lens[t++]=7;for(;t<288;)A.lens[t++]=8;for(tt(Ls,A.lens,0,288,qr,0,A.work,{bits:9}),t=0;t<32;)A.lens[t++]=5;tt(Ks,A.lens,0,32,jr,0,A.work,{bits:5}),ia=!1}A.lencode=qr,A.lenbits=9,A.distcode=jr,A.distbits=5},Ns=(A,t,e,r)=>{let n;const i=A.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(t.subarray(e-i.wsize,e),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(t.subarray(e-r,e-r+n),i.wnext),r-=n,r?(i.window.set(t.subarray(e-r,e),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave{let e,r,n,i,a,s,l,B,o,c,f,u,g,Q,w=0,h,C,U,d,p,F,E,_;const v=new Uint8Array(4);let m,y;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ue(A)||!A.output||!A.input&&A.avail_in!==0)return wA;e=A.state,e.mode===_A&&(e.mode=Zr),a=A.next_out,n=A.output,l=A.avail_out,i=A.next_in,r=A.input,s=A.avail_in,B=e.hold,o=e.bits,c=s,f=l,_=fe;A:for(;;)switch(e.mode){case mr:if(e.wrap===0){e.mode=Zr;break}for(;o<16;){if(s===0)break A;s--,B+=r[i++]<>>8&255,e.check=J(e.check,v,2,0),B=0,o=0,e.mode=Oi;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((B&255)<<8)+(B>>8))%31){A.msg="incorrect header check",e.mode=M;break}if((B&15)!==Ti){A.msg="unknown compression method",e.mode=M;break}if(B>>>=4,o-=4,E=(B&15)+8,e.wbits===0&&(e.wbits=E),E>15||E>e.wbits){A.msg="invalid window size",e.mode=M;break}e.dmax=1<>8&1),e.flags&512&&e.wrap&4&&(v[0]=B&255,v[1]=B>>>8&255,e.check=J(e.check,v,2,0)),B=0,o=0,e.mode=Ri;case Ri:for(;o<32;){if(s===0)break A;s--,B+=r[i++]<>>8&255,v[2]=B>>>16&255,v[3]=B>>>24&255,e.check=J(e.check,v,4,0)),B=0,o=0,e.mode=Mi;case Mi:for(;o<16;){if(s===0)break A;s--,B+=r[i++]<>8),e.flags&512&&e.wrap&4&&(v[0]=B&255,v[1]=B>>>8&255,e.check=J(e.check,v,2,0)),B=0,o=0,e.mode=ki;case ki:if(e.flags&1024){for(;o<16;){if(s===0)break A;s--,B+=r[i++]<>>8&255,e.check=J(e.check,v,2,0)),B=0,o=0}else e.head&&(e.head.extra=null);e.mode=Gi;case Gi:if(e.flags&1024&&(u=e.length,u>s&&(u=s),u&&(e.head&&(E=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(i,i+u),E)),e.flags&512&&e.wrap&4&&(e.check=J(e.check,r,u,i)),s-=u,i+=u,e.length-=u),e.length))break A;e.length=0,e.mode=Ni;case Ni:if(e.flags&2048){if(s===0)break A;u=0;do E=r[i+u++],e.head&&E&&e.length<65536&&(e.head.name+=String.fromCharCode(E));while(E&&u>9&1,e.head.done=!0),A.adler=e.check=0,e.mode=_A;break;case Xi:for(;o<32;){if(s===0)break A;s--,B+=r[i++]<>>=o&7,o-=o&7,e.mode=zr;break}for(;o<3;){if(s===0)break A;s--,B+=r[i++]<>>=1,o-=1,B&3){case 0:e.mode=Ji;break;case 1:if(gf(e),e.mode=bt,t===yt){B>>>=2,o-=2;break A}break;case 2:e.mode=Zi;break;case 3:A.msg="invalid block type",e.mode=M}B>>>=2,o-=2;break;case Ji:for(B>>>=o&7,o-=o&7;o<32;){if(s===0)break A;s--,B+=r[i++]<>>16^65535)){A.msg="invalid stored block lengths",e.mode=M;break}if(e.length=B&65535,B=0,o=0,e.mode=Yr,t===yt)break A;case Yr:e.mode=Wi;case Wi:if(u=e.length,u){if(u>s&&(u=s),u>l&&(u=l),u===0)break A;n.set(r.subarray(i,i+u),a),s-=u,i+=u,l-=u,a+=u,e.length-=u;break}e.mode=_A;break;case Zi:for(;o<14;){if(s===0)break A;s--,B+=r[i++]<>>=5,o-=5,e.ndist=(B&31)+1,B>>>=5,o-=5,e.ncode=(B&15)+4,B>>>=4,o-=4,e.nlen>286||e.ndist>30){A.msg="too many length or distance symbols",e.mode=M;break}e.have=0,e.mode=Yi;case Yi:for(;e.have>>=3,o-=3}for(;e.have<19;)e.lens[R[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,m={bits:e.lenbits},_=tt(tf,e.lens,0,19,e.lencode,0,e.work,m),e.lenbits=m.bits,_){A.msg="invalid code lengths set",e.mode=M;break}e.have=0,e.mode=zi;case zi:for(;e.have>>24,C=w>>>16&255,U=w&65535,!(h<=o);){if(s===0)break A;s--,B+=r[i++]<>>=h,o-=h,e.lens[e.have++]=U;else{if(U===16){for(y=h+2;o>>=h,o-=h,e.have===0){A.msg="invalid bit length repeat",e.mode=M;break}E=e.lens[e.have-1],u=3+(B&3),B>>>=2,o-=2}else if(U===17){for(y=h+3;o>>=h,o-=h,E=0,u=3+(B&7),B>>>=3,o-=3}else{for(y=h+7;o>>=h,o-=h,E=0,u=11+(B&127),B>>>=7,o-=7}if(e.have+u>e.nlen+e.ndist){A.msg="invalid bit length repeat",e.mode=M;break}for(;u--;)e.lens[e.have++]=E}}if(e.mode===M)break;if(e.lens[256]===0){A.msg="invalid code -- missing end-of-block",e.mode=M;break}if(e.lenbits=9,m={bits:e.lenbits},_=tt(Ls,e.lens,0,e.nlen,e.lencode,0,e.work,m),e.lenbits=m.bits,_){A.msg="invalid literal/lengths set",e.mode=M;break}if(e.distbits=6,e.distcode=e.distdyn,m={bits:e.distbits},_=tt(Ks,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,m),e.distbits=m.bits,_){A.msg="invalid distances set",e.mode=M;break}if(e.mode=bt,t===yt)break A;case bt:e.mode=xt;case xt:if(s>=6&&l>=258){A.next_out=a,A.avail_out=l,A.next_in=i,A.avail_in=s,e.hold=B,e.bits=o,zl(A,f),a=A.next_out,n=A.output,l=A.avail_out,i=A.next_in,r=A.input,s=A.avail_in,B=e.hold,o=e.bits,e.mode===_A&&(e.back=-1);break}for(e.back=0;w=e.lencode[B&(1<>>24,C=w>>>16&255,U=w&65535,!(h<=o);){if(s===0)break A;s--,B+=r[i++]<>d)],h=w>>>24,C=w>>>16&255,U=w&65535,!(d+h<=o);){if(s===0)break A;s--,B+=r[i++]<>>=d,o-=d,e.back+=d}if(B>>>=h,o-=h,e.back+=h,e.length=U,C===0){e.mode=ea;break}if(C&32){e.back=-1,e.mode=_A;break}if(C&64){A.msg="invalid literal/length code",e.mode=M;break}e.extra=C&15,e.mode=qi;case qi:if(e.extra){for(y=e.extra;o>>=e.extra,o-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=ji;case ji:for(;w=e.distcode[B&(1<>>24,C=w>>>16&255,U=w&65535,!(h<=o);){if(s===0)break A;s--,B+=r[i++]<>d)],h=w>>>24,C=w>>>16&255,U=w&65535,!(d+h<=o);){if(s===0)break A;s--,B+=r[i++]<>>=d,o-=d,e.back+=d}if(B>>>=h,o-=h,e.back+=h,C&64){A.msg="invalid distance code",e.mode=M;break}e.offset=U,e.extra=C&15,e.mode=$i;case $i:if(e.extra){for(y=e.extra;o>>=e.extra,o-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){A.msg="invalid distance too far back",e.mode=M;break}e.mode=Aa;case Aa:if(l===0)break A;if(u=f-l,e.offset>u){if(u=e.offset-u,u>e.whave&&e.sane){A.msg="invalid distance too far back",e.mode=M;break}u>e.wnext?(u-=e.wnext,g=e.wsize-u):g=e.wnext-u,u>e.length&&(u=e.length),Q=e.window}else Q=n,g=a-e.offset,u=e.length;u>l&&(u=l),l-=u,e.length-=u;do n[a++]=Q[g++];while(--u);e.length===0&&(e.mode=xt);break;case ea:if(l===0)break A;n[a++]=e.length,l--,e.mode=xt;break;case zr:if(e.wrap){for(;o<32;){if(s===0)break A;s--,B|=r[i++]<{if(ue(A))return wA;let t=A.state;return t.window&&(t.window=null),A.state=null,fe},Qf=(A,t)=>{if(ue(A))return wA;const e=A.state;return e.wrap&2?(e.head=t,t.done=!1,fe):wA},Cf=(A,t)=>{const e=t.length;let r,n,i;return ue(A)||(r=A.state,r.wrap!==0&&r.mode!==fr)?wA:r.mode===fr&&(n=1,n=ct(n,t,e,0),n!==r.check)?Ds:(i=Ns(A,t,e,e),i?(r.mode=Ts,Ss):(r.havedict=1,fe))};var df=Ms,Uf=ks,Ff=Rs,pf=uf,Ef=Gs,vf=wf,Hf=hf,If=Qf,mf=Cf,_f="pako inflate (from Nodeca project)",LA={inflateReset:df,inflateReset2:Uf,inflateResetKeep:Ff,inflateInit:pf,inflateInit2:Ef,inflate:vf,inflateEnd:Hf,inflateGetHeader:If,inflateSetDictionary:mf,inflateInfo:_f};function yf(){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 bf=yf;const Vs=Object.prototype.toString,{Z_NO_FLUSH:xf,Z_FINISH:Lf,Z_OK:wt,Z_STREAM_END:$r,Z_NEED_DICT:An,Z_STREAM_ERROR:Kf,Z_DATA_ERROR:aa,Z_MEM_ERROR:Df}=ce;function vt(A){this.options=Ir.assign({chunkSize:1024*64,windowBits:15,to:""},A||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(A&&A.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new bs,this.strm.avail_out=0;let e=LA.inflateInit2(this.strm,t.windowBits);if(e!==wt)throw new Error(oe[e]);if(this.header=new bf,LA.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=gt.string2buf(t.dictionary):Vs.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=LA.inflateSetDictionary(this.strm,t.dictionary),e!==wt)))throw new Error(oe[e])}vt.prototype.push=function(A,t){const e=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let i,a,s;if(this.ended)return!1;for(t===~~t?a=t:a=t===!0?Lf:xf,Vs.call(A)==="[object ArrayBuffer]"?e.input=new Uint8Array(A):e.input=A,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),i=LA.inflate(e,a),i===An&&n&&(i=LA.inflateSetDictionary(e,n),i===wt?i=LA.inflate(e,a):i===aa&&(i=An));e.avail_in>0&&i===$r&&e.state.wrap>0&&A[e.next_in]!==0;)LA.inflateReset(e),i=LA.inflate(e,a);switch(i){case Kf:case aa:case An:case Df:return this.onEnd(i),this.ended=!0,!1}if(s=e.avail_out,e.next_out&&(e.avail_out===0||i===$r))if(this.options.to==="string"){let l=gt.utf8border(e.output,e.next_out),B=e.next_out-l,o=gt.buf2string(e.output,l);e.next_out=B,e.avail_out=r-B,B&&e.output.set(e.output.subarray(l,l+B),0),this.onData(o)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(i===wt&&s===0)){if(i===$r)return i=LA.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};vt.prototype.onData=function(A){this.chunks.push(A)};vt.prototype.onEnd=function(A){A===wt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ir.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};function fi(A,t){const e=new vt(t);if(e.push(A),e.err)throw e.msg||oe[e.err];return e.result}function Sf(A,t){return t=t||{},t.raw=!0,fi(A,t)}var Tf=vt,Of=fi,Rf=Sf,Mf=fi,kf=ce,Gf={Inflate:Tf,inflate:Of,inflateRaw:Rf,ungzip:Mf,constants:kf};const{Deflate:Nf,deflate:Vf,deflateRaw:Pf,gzip:Xf}=Zl,{Inflate:Jf,inflate:Wf,inflateRaw:Zf,ungzip:Yf}=Gf;var zf=Nf,qf=Vf,jf=Pf,$f=Xf,Ac=Jf,ec=Wf,tc=Zf,rc=Yf,nc=ce,Ps={Deflate:zf,deflate:qf,deflateRaw:jf,gzip:$f,Inflate:Ac,inflate:ec,inflateRaw:tc,ungzip:rc,constants:nc};function cr(A){const t=JSON.stringify(A),e=Ps.deflate(t);return btoa(String.fromCharCode.apply(null,e))}function FC(A){const t=atob(A),e=new Uint8Array(t.length);for(let r=0;r{const{isWall:A}=Ut(),t=ye([]);function e(B){t.splice(0,t.length,...B)}function r(B){const o=t.findIndex(c=>ni(c,B));o>-1&&t.splice(o,1)}function n({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B,left:o-1};return A(f)||l(f)?!1:(c&&(c.left-=1),!0)}function i({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B,left:o+1};return A(f)||l(f)?!1:(c&&(c.left+=1),!0)}function a({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B-1,left:o};return A(f)||l(f)?!1:(c&&(c.top-=1),!0)}function s({top:B,left:o}){const c=t.find(u=>u.top===B&&u.left===o),f={top:B+1,left:o};return A(f)||l(f)?!1:(c&&(c.top+=1),!0)}function l({top:B,left:o}){return t.find(c=>c.top===B&&c.left===o)}return{positions:t,setup:e,remove:r,moveLeft:n,moveRight:i,moveUp:a,moveDown:s,isMine:l}}),yr=dt("player",()=>{const{isWall:A}=Ut(),{isMine:t,moveLeft:e,moveRight:r,moveUp:n,moveDown:i}=_r(),a=ye({top:-1,left:-1});function s(Q){Object.assign(a,Q),g()}function l(){const Q={top:a.top,left:a.left-1};if(A(Q))return;let w=!0;t(Q)&&(w=e(Q)),w&&(a.left-=1)}function B(){const Q={top:a.top,left:a.left+1};if(A(Q))return;let w=!0;t(Q)&&(w=r(Q)),w&&(a.left+=1)}function o(){const Q={top:a.top-1,left:a.left};if(A(Q))return;let w=!0;t(Q)&&(w=n(Q)),w&&(a.top-=1)}function c(){const Q={top:a.top+1,left:a.left};if(A(Q))return;let w=!0;t(Q)&&(w=i(Q)),w&&(a.top+=1)}const f=ye([]);function u(Q){f.push(Q)}function g(){f.splice(0,f.length)}return{position:a,steps:f,pushStep:u,setup:s,moveLeft:l,moveRight:B,moveUp:o,moveDown:c}}),ci=dt("boxes",()=>{const A=ye([]);function t(r){A.splice(0,A.length,...r)}function e(r){const n=A.findIndex(i=>ni(i,r));n>-1&&A.splice(n,1)}return{positions:A,setup:t,remove:e}}),ur=20;function ic(A){return as(()=>({top:`${A.top*ur}px`,left:`${A.left*ur}px`}))}function Xs(A){return as(()=>A.map(t=>({top:`${t.top*ur}px`,left:`${t.left*ur}px`})))}/*! + * html2canvas 1.4.1 + * Copyright (c) 2022 Niklas von Hertzen + * 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 Ln=function(A,t){return Ln=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])},Ln(A,t)};function QA(A,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ln(A,t);function e(){this.constructor=A}A.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Kn=function(){return Kn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&i[i.length-1])&&(B[0]===6||B[0]===2)){e=0;continue}if(B[0]===3&&(!i||B[1]>i[0]&&B[1]=55296&&n<=56319&&e>10)+55296,a%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sc=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Kt=0;Kt"u"?[]:new Uint8Array(256);for(var Dt=0;Dt>4,o[n++]=(a&15)<<4|s>>2,o[n++]=(s&3)<<6|l&63;return B},oc=function(A){for(var t=A.length,e=[],r=0;r>ae,cc=1<>ae,gc=Js+uc,wc=gc,hc=32,Qc=wc+hc,Cc=65536>>ui,dc=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>ae],e=(e<>ae)],e=(e<>ui),e=this.index[e],e+=t>>ae&Uc,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var St=0;Stfa?(n.push(!0),s-=fa):n.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(a),e.push(Tn);if(s===mc||s===Dn){if(a===0)return r.push(a),e.push(ee);var l=e[a-1];return Sc.indexOf(l)===-1?(r.push(r[a-1]),e.push(l)):(r.push(a),e.push(ee))}if(r.push(a),s===Lc)return e.push(t==="strict"?On:ht);if(s===zs||s===xc)return e.push(ee);if(s===Kc)return i>=131072&&i<=196605||i>=196608&&i<=262141?e.push(ht):e.push(ee);e.push(s)}),[r,e,n]},an=function(A,t,e,r){var n=r[e];if(Array.isArray(A)?A.indexOf(n)!==-1:A===n)for(var i=e;i<=r.length;){i++;var a=r[i];if(a===t)return!0;if(a!==GA)break}if(n===GA)for(var i=e;i>0;){i--;var s=r[i];if(Array.isArray(A)?A.indexOf(s)!==-1:A===s)for(var l=e;l<=r.length;){l++;var a=r[l];if(a===t)return!0;if(a!==GA)break}if(s!==GA)break}return!1},Ca=function(A,t){for(var e=A;e>=0;){var r=t[e];if(r===GA)e--;else return r}return 0},Rc=function(A,t,e,r,n){if(e[r]===0)return b;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return b;var a=i-1,s=i+1,l=t[i],B=a>=0?t[a]:0,o=t[s];if(l===Ws&&o===Zs)return b;if(Vn.indexOf(l)!==-1)return qs;if(Vn.indexOf(o)!==-1||js.indexOf(o)!==-1)return b;if(Ca(i,t)===Ys)return Mt;if(Nn.get(A[i])===Dn||(l===Ot||l===Rt)&&Nn.get(A[s])===Dn||l===ca||o===ca||l===ua||[GA,Sn,We].indexOf(l)===-1&&o===ua||[Tt,Me,bc,Qe,Ce].indexOf(o)!==-1||Ca(i,t)===ke||an(rn,ke,i,t)||an([Tt,Me],On,i,t)||an(ga,ga,i,t))return b;if(l===GA)return Mt;if(l===rn||o===rn)return b;if(o===Tn||l===Tn)return Mt;if([Sn,We,On].indexOf(o)!==-1||l===yc||B===kn&&Tc.indexOf(l)!==-1||l===Ce&&o===kn||o===wa||yA.indexOf(o)!==-1&&l===aA||yA.indexOf(l)!==-1&&o===aA||l===Ye&&[ht,Ot,Rt].indexOf(o)!==-1||[ht,Ot,Rt].indexOf(l)!==-1&&o===Ze||yA.indexOf(l)!==-1&&ha.indexOf(o)!==-1||ha.indexOf(l)!==-1&&yA.indexOf(o)!==-1||[Ye,Ze].indexOf(l)!==-1&&(o===aA||[ke,We].indexOf(o)!==-1&&t[s+1]===aA)||[ke,We].indexOf(l)!==-1&&o===aA||l===aA&&[aA,Ce,Qe].indexOf(o)!==-1)return b;if([aA,Ce,Qe,Tt,Me].indexOf(o)!==-1)for(var c=i;c>=0;){var f=t[c];if(f===aA)return b;if([Ce,Qe].indexOf(f)!==-1)c--;else break}if([Ye,Ze].indexOf(o)!==-1)for(var c=[Tt,Me].indexOf(l)!==-1?a:i;c>=0;){var f=t[c];if(f===aA)return b;if([Ce,Qe].indexOf(f)!==-1)c--;else break}if(Gn===l&&[Gn,rr,Rn,Mn].indexOf(o)!==-1||[rr,Rn].indexOf(l)!==-1&&[rr,nr].indexOf(o)!==-1||[nr,Mn].indexOf(l)!==-1&&o===nr||Qa.indexOf(l)!==-1&&[wa,Ze].indexOf(o)!==-1||Qa.indexOf(o)!==-1&&l===Ye||yA.indexOf(l)!==-1&&yA.indexOf(o)!==-1||l===Qe&&yA.indexOf(o)!==-1||yA.concat(aA).indexOf(l)!==-1&&o===ke&&Dc.indexOf(A[s])===-1||yA.concat(aA).indexOf(o)!==-1&&l===Me)return b;if(l===nn&&o===nn){for(var u=e[i],g=1;u>0&&(u--,t[u]===nn);)g++;if(g%2!==0)return b}return l===Ot&&o===Rt?b:Mt},Mc=function(A,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var e=Oc(A,t.lineBreak),r=e[0],n=e[1],i=e[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(n=n.map(function(s){return[aA,ee,zs].indexOf(s)!==-1?ht:s}));var a=t.wordBreak==="keep-all"?i.map(function(s,l){return s&&A[l]>=19968&&A[l]<=40959}):void 0;return[r,n,a]},kc=function(){function A(t,e,r,n){this.codePoints=t,this.required=e===qs,this.start=r,this.end=n}return A.prototype.slice=function(){return N.apply(void 0,this.codePoints.slice(this.start,this.end))},A}(),Gc=function(A,t){var e=xr(A),r=Mc(e,t),n=r[0],i=r[1],a=r[2],s=e.length,l=0,B=0;return{next:function(){if(B>=s)return{done:!0,value:null};for(var o=b;B=$s&&A<=57},Fu=function(A){return A>=55296&&A<=57343},de=function(A){return j(A)||A>=tB&&A<=nB||A>=AB&&A<=hu},pu=function(A){return A>=AB&&A<=Cu},Eu=function(A){return A>=tB&&A<=Uu},vu=function(A){return pu(A)||Eu(A)},Hu=function(A){return A>=au},Pt=function(A){return A===gr||A===Pc||A===Xc},wr=function(A){return vu(A)||Hu(A)||A===Yc},Ea=function(A){return wr(A)||j(A)||A===nA},Iu=function(A){return A>=lu&&A<=fu||A===cu||A>=uu&&A<=gu||A===wu},RA=function(A,t){return A!==rt?!1:t!==gr},Xt=function(A,t,e){return A===nA?wr(t)||RA(t,e):wr(A)?!0:!!(A===rt&&RA(A,t))},Bn=function(A,t,e){return A===ie||A===nA?j(t)?!0:t===Qt&&j(e):j(A===Qt?t:A)},mu=function(A){var t=0,e=1;(A[t]===ie||A[t]===nA)&&(A[t]===nA&&(e=-1),t++);for(var r=[];j(A[t]);)r.push(A[t++]);var n=r.length?parseInt(N.apply(void 0,r),10):0;A[t]===Qt&&t++;for(var i=[];j(A[t]);)i.push(A[t++]);var a=i.length,s=a?parseInt(N.apply(void 0,i),10):0;(A[t]===rB||A[t]===eB)&&t++;var l=1;(A[t]===ie||A[t]===nA)&&(A[t]===nA&&(l=-1),t++);for(var B=[];j(A[t]);)B.push(A[t++]);var o=B.length?parseInt(N.apply(void 0,B),10):0;return e*(n+s*Math.pow(10,-a))*Math.pow(10,l*o)},_u={type:2},yu={type:3},bu={type:4},xu={type:13},Lu={type:8},Ku={type:21},Du={type:9},Su={type:10},Tu={type:11},Ou={type:12},Ru={type:14},Jt={type:23},Mu={type:1},ku={type:25},Gu={type:24},Nu={type:26},Vu={type:27},Pu={type:28},Xu={type:29},Ju={type:31},Pn={type:32},iB=function(){function A(){this._value=[]}return A.prototype.write=function(t){this._value=this._value.concat(xr(t))},A.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==Pn;)t.push(e),e=this.consumeToken();return t},A.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case kt:return this.consumeStringToken(kt);case Jc:var e=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Ea(e)||RA(r,n)){var i=Xt(e,r,n)?Vc:Nc,a=this.consumeName();return{type:5,value:a,flags:i}}break;case Wc:if(this.peekCodePoint(0)===Ge)return this.consumeCodePoint(),xu;break;case Gt:return this.consumeStringToken(Gt);case Nt:return _u;case Ne:return yu;case sn:if(this.peekCodePoint(0)===Ge)return this.consumeCodePoint(),Ru;break;case ie:if(Bn(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case su:return bu;case nA:var s=t,l=this.peekCodePoint(0),B=this.peekCodePoint(1);if(Bn(s,l,B))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Xt(s,l,B))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(l===nA&&B===jc)return this.consumeCodePoint(),this.consumeCodePoint(),Gu;break;case Qt:if(Bn(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case Ua:if(this.peekCodePoint(0)===sn)for(this.consumeCodePoint();;){var o=this.consumeCodePoint();if(o===sn&&(o=this.consumeCodePoint(),o===Ua))return this.consumeToken();if(o===UA)return this.consumeToken()}break;case Bu:return Nu;case ou:return Vu;case qc:if(this.peekCodePoint(0)===zc&&this.peekCodePoint(1)===nA&&this.peekCodePoint(2)===nA)return this.consumeCodePoint(),this.consumeCodePoint(),ku;break;case $c:var c=this.peekCodePoint(0),f=this.peekCodePoint(1),u=this.peekCodePoint(2);if(Xt(c,f,u)){var a=this.consumeName();return{type:7,value:a}}break;case Au:return Pu;case rt:if(RA(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case eu:return Xu;case tu:if(this.peekCodePoint(0)===Ge)return this.consumeCodePoint(),Lu;break;case ru:return Tu;case nu:return Ou;case Qu:case du:var g=this.peekCodePoint(0),Q=this.peekCodePoint(1);return g===ie&&(de(Q)||Q===Vt)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case Fa:if(this.peekCodePoint(0)===Ge)return this.consumeCodePoint(),Du;if(this.peekCodePoint(0)===Fa)return this.consumeCodePoint(),Ku;break;case iu:if(this.peekCodePoint(0)===Ge)return this.consumeCodePoint(),Su;break;case UA:return Pn}return Pt(t)?(this.consumeWhiteSpace(),Ju):j(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):wr(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:N(t)}},A.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},A.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},A.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},A.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();de(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var r=!1;e===Vt&&t.length<6;)t.push(e),e=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(N.apply(void 0,t.map(function(l){return l===Vt?$s:l})),16),i=parseInt(N.apply(void 0,t.map(function(l){return l===Vt?nB:l})),16);return{type:30,start:n,end:i}}var a=parseInt(N.apply(void 0,t),16);if(this.peekCodePoint(0)===nA&&de(this.peekCodePoint(1))){this.consumeCodePoint(),e=this.consumeCodePoint();for(var s=[];de(e)&&s.length<6;)s.push(e),e=this.consumeCodePoint();var i=parseInt(N.apply(void 0,s),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},A.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===Nt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Nt?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},A.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===UA)return{type:22,value:""};var e=this.peekCodePoint(0);if(e===Gt||e===kt){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===UA||this.peekCodePoint(0)===Ne)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Jt)}for(;;){var n=this.consumeCodePoint();if(n===UA||n===Ne)return{type:22,value:N.apply(void 0,t)};if(Pt(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===UA||this.peekCodePoint(0)===Ne?(this.consumeCodePoint(),{type:22,value:N.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Jt);if(n===kt||n===Gt||n===Nt||Iu(n))return this.consumeBadUrlRemnants(),Jt;if(n===rt)if(RA(n,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Jt;else t.push(n)}},A.prototype.consumeWhiteSpace=function(){for(;Pt(this.peekCodePoint(0));)this.consumeCodePoint()},A.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===Ne||t===UA)return;RA(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},A.prototype.consumeStringSlice=function(t){for(var e=5e4,r="";t>0;){var n=Math.min(e,t);r+=N.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),r},A.prototype.consumeStringToken=function(t){var e="",r=0;do{var n=this._value[r];if(n===UA||n===void 0||n===t)return e+=this.consumeStringSlice(r),{type:0,value:e};if(n===gr)return this._value.splice(0,r),Mu;if(n===rt){var i=this._value[r+1];i!==UA&&i!==void 0&&(i===gr?(e+=this.consumeStringSlice(r),r=-1,this._value.shift()):RA(n,i)&&(e+=this.consumeStringSlice(r),e+=N(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},A.prototype.consumeNumber=function(){var t=[],e=Ht,r=this.peekCodePoint(0);for((r===ie||r===nA)&&t.push(this.consumeCodePoint());j(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Qt&&j(n))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=da;j(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===rB||r===eB)&&((n===ie||n===nA)&&j(i)||j(n)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=da;j(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[mu(t),e]},A.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],r=t[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(Xt(n,i,a)){var s=this.consumeName();return{type:15,number:e,flags:r,unit:s}}return n===Zc?(this.consumeCodePoint(),{type:16,number:e,flags:r}):{type:17,number:e,flags:r}},A.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(de(t)){for(var e=N(t);de(this.peekCodePoint(0))&&e.length<6;)e+=N(this.consumeCodePoint());Pt(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(e,16);return r===0||Fu(r)||r>1114111?pa:r}return t===UA?pa:t},A.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(Ea(e))t+=N(e);else if(RA(e,this.peekCodePoint(0)))t+=N(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(e),t}},A}(),aB=function(){function A(t){this._tokens=t}return A.create=function(t){var e=new iB;return e.write(t),new A(e.read())},A.parseValue=function(t){return A.create(t).parseComponentValue()},A.parseValues=function(t){return A.create(t).parseComponentValues()},A.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return e;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},A.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(e.type===32)return t;t.push(e),t.push()}},A.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},A.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},r=this.consumeToken();;){if(r.type===32||Zu(r,t))return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue()),r=this.consumeToken()}},A.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return e;this.reconsumeToken(r),e.values.push(this.consumeComponentValue())}},A.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?Pn:t},A.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},A}(),It=function(A){return A.type===15},Te=function(A){return A.type===17},S=function(A){return A.type===20},Wu=function(A){return A.type===0},Xn=function(A,t){return S(A)&&A.value===t},sB=function(A){return A.type!==31},Le=function(A){return A.type!==31&&A.type!==4},vA=function(A){var t=[],e=[];return A.forEach(function(r){if(r.type===4){if(e.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(e),e=[];return}r.type!==31&&e.push(r)}),e.length&&t.push(e),t},Zu=function(A,t){return t===11&&A.type===12||t===28&&A.type===29?!0:t===2&&A.type===3},YA=function(A){return A.type===17||A.type===15},V=function(A){return A.type===16||YA(A)},BB=function(A){return A.length>1?[A[0],A[1]]:[A[0]]},z={type:17,number:0,flags:Ht},gi={type:16,number:50,flags:Ht},NA={type:16,number:100,flags:Ht},ze=function(A,t,e){var r=A[0],n=A[1];return[O(r,t),O(typeof n<"u"?n:r,e)]},O=function(A,t){if(A.type===16)return A.number/100*t;if(It(A))switch(A.unit){case"rem":case"em":return 16*A.number;case"px":default:return A.number}return A.number},oB="deg",lB="grad",fB="rad",cB="turn",Lr={name:"angle",parse:function(A,t){if(t.type===15)switch(t.unit){case oB:return Math.PI*t.number/180;case lB:return Math.PI/200*t.number;case fB:return t.number;case cB:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},uB=function(A){return A.type===15&&(A.unit===oB||A.unit===lB||A.unit===fB||A.unit===cB)},gB=function(A){var t=A.filter(S).map(function(e){return e.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[z,z];case"to top":case"bottom":return uA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[z,NA];case"to right":case"left":return uA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[NA,NA];case"to bottom":case"top":return uA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[NA,z];case"to left":case"right":return uA(270)}return 0},uA=function(A){return Math.PI*A/180},WA={name:"color",parse:function(A,t){if(t.type===18){var e=Yu[t.name];if(typeof e>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return e(A,t.values)}if(t.type===5){if(t.value.length===3){var r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3);return VA(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(t.value.length===4){var r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3),a=t.value.substring(3,4);return VA(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(t.value.length===6){var r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6);return VA(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(t.value.length===8){var r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6),a=t.value.substring(6,8);return VA(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(a,16)/255)}}if(t.type===20){var s=KA[t.value.toUpperCase()];if(typeof s<"u")return s}return KA.TRANSPARENT}},ZA=function(A){return(255&A)===0},X=function(A){var t=255&A,e=255&A>>8,r=255&A>>16,n=255&A>>24;return t<255?"rgba("+n+","+r+","+e+","+t/255+")":"rgb("+n+","+r+","+e+")"},VA=function(A,t,e,r){return(A<<24|t<<16|e<<8|Math.round(r*255)<<0)>>>0},va=function(A,t){if(A.type===17)return A.number;if(A.type===16){var e=t===3?1:255;return t===3?A.number/100*e:Math.round(A.number/100*e)}return 0},Ha=function(A,t){var e=t.filter(Le);if(e.length===3){var r=e.map(va),n=r[0],i=r[1],a=r[2];return VA(n,i,a,1)}if(e.length===4){var s=e.map(va),n=s[0],i=s[1],a=s[2],l=s[3];return VA(n,i,a,l)}return 0};function on(A,t,e){return e<0&&(e+=1),e>=1&&(e-=1),e<1/6?(t-A)*e*6+A:e<1/2?t:e<2/3?(t-A)*6*(2/3-e)+A:A}var Ia=function(A,t){var e=t.filter(Le),r=e[0],n=e[1],i=e[2],a=e[3],s=(r.type===17?uA(r.number):Lr.parse(A,r))/(Math.PI*2),l=V(n)?n.number/100:0,B=V(i)?i.number/100:0,o=typeof a<"u"&&V(a)?O(a,1):1;if(l===0)return VA(B*255,B*255,B*255,1);var c=B<=.5?B*(l+1):B+l-B*l,f=B*2-c,u=on(f,c,s+1/3),g=on(f,c,s),Q=on(f,c,s-1/3);return VA(u*255,g*255,Q*255,o)},Yu={hsl:Ia,hsla:Ia,rgb:Ha,rgba:Ha},nt=function(A,t){return WA.parse(A,aB.create(t).parseComponentValue())},KA={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},zu={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map(function(e){if(S(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qu={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Kr=function(A,t){var e=WA.parse(A,t[0]),r=t[1];return r&&V(r)?{color:e,stop:r}:{color:e,stop:null}},ma=function(A,t){var e=A[0],r=A[A.length-1];e.stop===null&&(e.stop=z),r.stop===null&&(r.stop=NA);for(var n=[],i=0,a=0;ai?n.push(l):n.push(i),i=l}else n.push(null)}for(var B=null,a=0;aa.optimumDistance)?{optimumCorner:s,optimumDistance:o}:a},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},Ag=function(A,t,e,r,n){var i=0,a=0;switch(A.size){case 0:A.shape===0?i=a=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):A.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-r)),a=Math.min(Math.abs(e),Math.abs(e-n)));break;case 2:if(A.shape===0)i=a=Math.min(hA(t,e),hA(t,e-n),hA(t-r,e),hA(t-r,e-n));else if(A.shape===1){var s=Math.min(Math.abs(e),Math.abs(e-n))/Math.min(Math.abs(t),Math.abs(t-r)),l=_a(r,n,t,e,!0),B=l[0],o=l[1];i=hA(B-t,(o-e)/s),a=s*i}break;case 1:A.shape===0?i=a=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(e),Math.abs(e-n)):A.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-r)),a=Math.max(Math.abs(e),Math.abs(e-n)));break;case 3:if(A.shape===0)i=a=Math.max(hA(t,e),hA(t,e-n),hA(t-r,e),hA(t-r,e-n));else if(A.shape===1){var s=Math.max(Math.abs(e),Math.abs(e-n))/Math.max(Math.abs(t),Math.abs(t-r)),c=_a(r,n,t,e,!1),B=c[0],o=c[1];i=hA(B-t,(o-e)/s),a=s*i}break}return Array.isArray(A.size)&&(i=O(A.size[0],r),a=A.size.length===2?O(A.size[1],n):i),[i,a]},eg=function(A,t){var e=uA(180),r=[];return vA(t).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&a.value==="to"){e=gB(n);return}else if(uB(a)){e=Lr.parse(A,a);return}}var s=Kr(A,n);r.push(s)}),{angle:e,stops:r,type:1}},Wt=function(A,t){var e=uA(180),r=[];return vA(t).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){e=gB(n);return}else if(uB(a)){e=(Lr.parse(A,a)+uA(270))%uA(360);return}}var s=Kr(A,n);r.push(s)}),{angle:e,stops:r,type:1}},tg=function(A,t){var e=uA(180),r=[],n=1,i=0,a=3,s=[];return vA(t).forEach(function(l,B){var o=l[0];if(B===0){if(S(o)&&o.value==="linear"){n=1;return}else if(S(o)&&o.value==="radial"){n=2;return}}if(o.type===18){if(o.name==="from"){var c=WA.parse(A,o.values[0]);r.push({stop:z,color:c})}else if(o.name==="to"){var c=WA.parse(A,o.values[0]);r.push({stop:NA,color:c})}else if(o.name==="color-stop"){var f=o.values.filter(Le);if(f.length===2){var c=WA.parse(A,f[1]),u=f[0];Te(u)&&r.push({stop:{type:16,number:u.number*100,flags:u.flags},color:c})}}}}),n===1?{angle:(e+uA(180))%uA(360),stops:r,type:n}:{size:a,shape:i,stops:r,position:s,type:n}},wB="closest-side",hB="farthest-side",QB="closest-corner",CB="farthest-corner",dB="circle",UB="ellipse",FB="cover",pB="contain",rg=function(A,t){var e=0,r=3,n=[],i=[];return vA(t).forEach(function(a,s){var l=!0;if(s===0){var B=!1;l=a.reduce(function(c,f){if(B)if(S(f))switch(f.value){case"center":return i.push(gi),c;case"top":case"left":return i.push(z),c;case"right":case"bottom":return i.push(NA),c}else(V(f)||YA(f))&&i.push(f);else if(S(f))switch(f.value){case dB:return e=0,!1;case UB:return e=1,!1;case"at":return B=!0,!1;case wB:return r=0,!1;case FB:case hB:return r=1,!1;case pB:case QB:return r=2,!1;case CB:return r=3,!1}else if(YA(f)||V(f))return Array.isArray(r)||(r=[]),r.push(f),!1;return c},l)}if(l){var o=Kr(A,a);n.push(o)}}),{size:r,shape:e,stops:n,position:i,type:2}},Zt=function(A,t){var e=0,r=3,n=[],i=[];return vA(t).forEach(function(a,s){var l=!0;if(s===0?l=a.reduce(function(o,c){if(S(c))switch(c.value){case"center":return i.push(gi),!1;case"top":case"left":return i.push(z),!1;case"right":case"bottom":return i.push(NA),!1}else if(V(c)||YA(c))return i.push(c),!1;return o},l):s===1&&(l=a.reduce(function(o,c){if(S(c))switch(c.value){case dB:return e=0,!1;case UB:return e=1,!1;case pB:case wB:return r=0,!1;case hB:return r=1,!1;case QB:return r=2,!1;case FB:case CB:return r=3,!1}else if(YA(c)||V(c))return Array.isArray(r)||(r=[]),r.push(c),!1;return o},l)),l){var B=Kr(A,a);n.push(B)}}),{size:r,shape:e,stops:n,position:i,type:2}},ng=function(A){return A.type===1},ig=function(A){return A.type===2},wi={name:"image",parse:function(A,t){if(t.type===22){var e={url:t.value,type:0};return A.cache.addImage(t.value),e}if(t.type===18){var r=EB[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(A,t.values)}throw new Error("Unsupported image type "+t.type)}};function ag(A){return!(A.type===20&&A.value==="none")&&(A.type!==18||!!EB[A.name])}var EB={"linear-gradient":eg,"-moz-linear-gradient":Wt,"-ms-linear-gradient":Wt,"-o-linear-gradient":Wt,"-webkit-linear-gradient":Wt,"radial-gradient":rg,"-moz-radial-gradient":Zt,"-ms-radial-gradient":Zt,"-o-radial-gradient":Zt,"-webkit-radial-gradient":Zt,"-webkit-gradient":tg},sg={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t.filter(function(r){return Le(r)&&ag(r)}).map(function(r){return wi.parse(A,r)})}},Bg={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(A,t){return t.map(function(e){if(S(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},og={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(A,t){return vA(t).map(function(e){return e.filter(V)}).map(BB)}},lg={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(A,t){return vA(t).map(function(e){return e.filter(S).map(function(r){return r.value}).join(" ")}).map(fg)}},fg=function(A){switch(A){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}},_e;(function(A){A.AUTO="auto",A.CONTAIN="contain",A.COVER="cover"})(_e||(_e={}));var cg={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(A,t){return vA(t).map(function(e){return e.filter(ug)})}},ug=function(A){return S(A)||V(A)},Dr=function(A){return{name:"border-"+A+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},gg=Dr("top"),wg=Dr("right"),hg=Dr("bottom"),Qg=Dr("left"),Sr=function(A){return{name:"border-radius-"+A,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return BB(e.filter(V))}}},Cg=Sr("top-left"),dg=Sr("top-right"),Ug=Sr("bottom-right"),Fg=Sr("bottom-left"),Tr=function(A){return{name:"border-"+A+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},pg=Tr("top"),Eg=Tr("right"),vg=Tr("bottom"),Hg=Tr("left"),Or=function(A){return{name:"border-"+A+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return It(e)?e.number:0}}},Ig=Or("top"),mg=Or("right"),_g=Or("bottom"),yg=Or("left"),bg={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},xg={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(A,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},Lg={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(A,t){return t.filter(S).reduce(function(e,r){return e|Kg(r.value)},0)}},Kg=function(A){switch(A){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},Dg={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Sg={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(A,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},hr;(function(A){A.NORMAL="normal",A.STRICT="strict"})(hr||(hr={}));var Tg={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"strict":return hr.STRICT;case"normal":default:return hr.NORMAL}}},Og={name:"line-height",initialValue:"normal",prefix:!1,type:4},ya=function(A,t){return S(A)&&A.value==="normal"?1.2*t:A.type===17?t*A.number:V(A)?O(A,t):t},Rg={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(A,t){return t.type===20&&t.value==="none"?null:wi.parse(A,t)}},Mg={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(A,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},Jn={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){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}}},Rr=function(A){return{name:"margin-"+A,initialValue:"0",prefix:!1,type:4}},kg=Rr("top"),Gg=Rr("right"),Ng=Rr("bottom"),Vg=Rr("left"),Pg={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(A,t){return t.filter(S).map(function(e){switch(e.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Xg={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Mr=function(A){return{name:"padding-"+A,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Jg=Mr("top"),Wg=Mr("right"),Zg=Mr("bottom"),Yg=Mr("left"),zg={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(A,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},qg={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(A,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},jg={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.length===1&&Xn(t[0],"none")?[]:vA(t).map(function(e){for(var r={color:KA.TRANSPARENT,offsetX:z,offsetY:z,blur:z},n=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return e(t.values)}return null}},ew=function(A){var t=A.filter(function(e){return e.type===17}).map(function(e){return e.number});return t.length===6?t:null},tw=function(A){var t=A.filter(function(l){return l.type===17}).map(function(l){return l.number}),e=t[0],r=t[1];t[2],t[3];var n=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var a=t[12],s=t[13];return t[14],t[15],t.length===16?[e,r,n,i,a,s]:null},rw={matrix:ew,matrix3d:tw},ba={type:16,number:50,flags:Ht},nw=[ba,ba],iw={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(A,t){var e=t.filter(V);return e.length!==2?nw:[e[0],e[1]]}},aw={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(A,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},it;(function(A){A.NORMAL="normal",A.BREAK_ALL="break-all",A.KEEP_ALL="keep-all"})(it||(it={}));var sw={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"break-all":return it.BREAK_ALL;case"keep-all":return it.KEEP_ALL;case"normal":default:return it.NORMAL}}},Bw={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(A,t){if(t.type===20)return{auto:!0,order:0};if(Te(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},vB={name:"time",parse:function(A,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},ow={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(A,t){return Te(t)?t.number:1}},lw={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fw={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(A,t){return t.filter(S).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return e!==0})}},cw={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(A,t){var e=[],r=[];return t.forEach(function(n){switch(n.type){case 20:case 0:e.push(n.value);break;case 17:e.push(n.number.toString());break;case 4:r.push(e.join(" ")),e.length=0;break}}),e.length&&r.push(e.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},uw={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},gw={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(A,t){if(Te(t))return t.number;if(S(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},ww={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(A,t){return t.filter(S).map(function(e){return e.value})}},hw={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(A,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},P=function(A,t){return(A&t)!==0},Qw={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(A,t){if(t.length===0)return[];var e=t[0];return e.type===20&&e.value==="none"?[]:t}},Cw={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(A,t){if(t.length===0)return null;var e=t[0];if(e.type===20&&e.value==="none")return null;for(var r=[],n=t.filter(sB),i=0;i1?1:0],this.overflowWrap=I(t,Xg,e.overflowWrap),this.paddingTop=I(t,Jg,e.paddingTop),this.paddingRight=I(t,Wg,e.paddingRight),this.paddingBottom=I(t,Zg,e.paddingBottom),this.paddingLeft=I(t,Yg,e.paddingLeft),this.paintOrder=I(t,Ew,e.paintOrder),this.position=I(t,qg,e.position),this.textAlign=I(t,zg,e.textAlign),this.textDecorationColor=I(t,lw,(r=e.textDecorationColor)!==null&&r!==void 0?r:e.color),this.textDecorationLine=I(t,fw,(n=e.textDecorationLine)!==null&&n!==void 0?n:e.textDecoration),this.textShadow=I(t,jg,e.textShadow),this.textTransform=I(t,$g,e.textTransform),this.transform=I(t,Aw,e.transform),this.transformOrigin=I(t,iw,e.transformOrigin),this.visibility=I(t,aw,e.visibility),this.webkitTextStrokeColor=I(t,vw,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=I(t,Hw,e.webkitTextStrokeWidth),this.wordBreak=I(t,sw,e.wordBreak),this.zIndex=I(t,Bw,e.zIndex)}return A.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},A.prototype.isTransparent=function(){return ZA(this.backgroundColor)},A.prototype.isTransformed=function(){return this.transform!==null},A.prototype.isPositioned=function(){return this.position!==0},A.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},A.prototype.isFloating=function(){return this.float!==0},A.prototype.isInlineLevel=function(){return P(this.display,4)||P(this.display,33554432)||P(this.display,268435456)||P(this.display,536870912)||P(this.display,67108864)||P(this.display,134217728)},A}(),mw=function(){function A(t,e){this.content=I(t,Qw,e.content),this.quotes=I(t,Fw,e.quotes)}return A}(),La=function(){function A(t,e){this.counterIncrement=I(t,Cw,e.counterIncrement),this.counterReset=I(t,dw,e.counterReset)}return A}(),I=function(A,t,e){var r=new iB,n=e!==null&&typeof e<"u"?e.toString():t.initialValue;r.write(n);var i=new aB(r.read());switch(t.type){case 2:var a=i.parseComponentValue();return t.parse(A,S(a)?a.value:t.initialValue);case 0:return t.parse(A,i.parseComponentValue());case 1:return t.parse(A,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Lr.parse(A,i.parseComponentValue());case"color":return WA.parse(A,i.parseComponentValue());case"image":return wi.parse(A,i.parseComponentValue());case"length":var s=i.parseComponentValue();return YA(s)?s:z;case"length-percentage":var l=i.parseComponentValue();return V(l)?l:z;case"time":return vB.parse(A,i.parseComponentValue())}break}},_w="data-html2canvas-debug",yw=function(A){var t=A.getAttribute(_w);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Wn=function(A,t){var e=yw(A);return e===1||t===e},HA=function(){function A(t,e){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,Wn(e,3))debugger;this.styles=new Iw(t,window.getComputedStyle(e,null)),zn(e)&&(this.styles.animationDuration.some(function(r){return r>0})&&(e.style.animationDuration="0s"),this.styles.transform!==null&&(e.style.transform="none")),this.bounds=br(this.context,e),Wn(e,4)&&(this.flags|=16)}return A}(),bw="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU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AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAA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AOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ka="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",qe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Yt=0;Yt>4,o[n++]=(a&15)<<4|s>>2,o[n++]=(s&3)<<6|l&63;return B},Lw=function(A){for(var t=A.length,e=[],r=0;r>se,Sw=1<>se,Ow=HB+Tw,Rw=Ow,Mw=32,kw=Rw+Mw,Gw=65536>>hi,Nw=1<=0){if(t<55296||t>56319&&t<=65535)return e=this.index[t>>se],e=(e<>se)],e=(e<>hi),e=this.index[e],e+=t>>se&Vw,e=this.index[e],e=(e<"u"?[]:new Uint8Array(256);for(var zt=0;zt=55296&&n<=56319&&e>10)+55296,a%1024+56320)),(n+1===e||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},jw=Xw(bw),oA="×",Qn="÷",$w=function(A){return jw.get(A)},Ah=function(A,t,e){var r=e-2,n=t[r],i=t[e-1],a=t[e];if(i===cn&&a===un)return oA;if(i===cn||i===un||i===Ta||a===cn||a===un||a===Ta)return Qn;if(i===Ra&&[Ra,gn,Ma,ka].indexOf(a)!==-1||(i===Ma||i===gn)&&(a===gn||a===wn)||(i===ka||i===wn)&&a===wn||a===Ga||a===Oa||a===Yw||i===Zw)return oA;if(i===Ga&&a===Na){for(;n===Oa;)n=t[--r];if(n===Na)return oA}if(i===hn&&a===hn){for(var s=0;n===hn;)s++,n=t[--r];if(s%2===0)return oA}return Qn},eh=function(A){var t=zw(A),e=t.length,r=0,n=0,i=t.map($w);return{next:function(){if(r>=e)return{done:!0,value:null};for(var a=oA;ra.x||o.y>a.y;return a=o,B===0?!0:c});return A.body.removeChild(t),s},ih=function(){return typeof new Image().crossOrigin<"u"},ah=function(){return typeof new XMLHttpRequest().responseType=="string"},sh=function(A){var t=new Image,e=A.createElement("canvas"),r=e.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,";try{r.drawImage(t,0,0),e.toDataURL()}catch{return!1}return!0},Va=function(A){return A[0]===0&&A[1]===255&&A[2]===0&&A[3]===255},Bh=function(A){var t=A.createElement("canvas"),e=100;t.width=e,t.height=e;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,e,e);var n=new Image,i=t.toDataURL();n.src=i;var a=Zn(e,e,0,0,n);return r.fillStyle="red",r.fillRect(0,0,e,e),Pa(a).then(function(s){r.drawImage(s,0,0);var l=r.getImageData(0,0,e,e).data;r.fillStyle="red",r.fillRect(0,0,e,e);var B=A.createElement("div");return B.style.backgroundImage="url("+i+")",B.style.height=e+"px",Va(l)?Pa(Zn(e,e,0,0,B)):Promise.reject(!1)}).then(function(s){return r.drawImage(s,0,0),Va(r.getImageData(0,0,e,e).data)}).catch(function(){return!1})},Zn=function(A,t,e,r,n){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",A.toString()),a.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",e.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(n),a},Pa=function(A){return new Promise(function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(A))})},Y={get SUPPORT_RANGE_BOUNDS(){var A=rh(document);return Object.defineProperty(Y,"SUPPORT_RANGE_BOUNDS",{value:A}),A},get SUPPORT_WORD_BREAKING(){var A=Y.SUPPORT_RANGE_BOUNDS&&nh(document);return Object.defineProperty(Y,"SUPPORT_WORD_BREAKING",{value:A}),A},get SUPPORT_SVG_DRAWING(){var A=sh(document);return Object.defineProperty(Y,"SUPPORT_SVG_DRAWING",{value:A}),A},get SUPPORT_FOREIGNOBJECT_DRAWING(){var A=typeof Array.from=="function"&&typeof window.fetch=="function"?Bh(document):Promise.resolve(!1);return Object.defineProperty(Y,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:A}),A},get SUPPORT_CORS_IMAGES(){var A=ih();return Object.defineProperty(Y,"SUPPORT_CORS_IMAGES",{value:A}),A},get SUPPORT_RESPONSE_TYPE(){var A=ah();return Object.defineProperty(Y,"SUPPORT_RESPONSE_TYPE",{value:A}),A},get SUPPORT_CORS_XHR(){var A="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Y,"SUPPORT_CORS_XHR",{value:A}),A},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var A=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Y,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:A}),A}},at=function(){function A(t,e){this.text=t,this.bounds=e}return A}(),oh=function(A,t,e,r){var n=ch(t,e),i=[],a=0;return n.forEach(function(s){if(e.textDecorationLine.length||s.trim().length>0)if(Y.SUPPORT_RANGE_BOUNDS){var l=Xa(r,a,s.length).getClientRects();if(l.length>1){var B=Qi(s),o=0;B.forEach(function(f){i.push(new at(f,DA.fromDOMRectList(A,Xa(r,o+a,f.length).getClientRects()))),o+=f.length})}else i.push(new at(s,DA.fromDOMRectList(A,l)))}else{var c=r.splitText(s.length);i.push(new at(s,lh(A,r))),r=c}else Y.SUPPORT_RANGE_BOUNDS||(r=r.splitText(s.length));a+=s.length}),i},lh=function(A,t){var e=t.ownerDocument;if(e){var r=e.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var i=br(A,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return DA.EMPTY},Xa=function(A,t,e){var r=A.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(A,t),n.setEnd(A,t+e),n},Qi=function(A){if(Y.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(A)).map(function(e){return e.segment})}return th(A)},fh=function(A,t){if(Y.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(e.segment(A)).map(function(r){return r.segment})}return gh(A,t)},ch=function(A,t){return t.letterSpacing!==0?Qi(A):fh(A,t)},uh=[32,160,4961,65792,65793,4153,4241],gh=function(A,t){for(var e=Gc(A,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),r=[],n,i=function(){if(n.value){var a=n.value.slice(),s=xr(a),l="";s.forEach(function(B){uh.indexOf(B)===-1?l+=N(B):(l.length&&r.push(l),r.push(N(B)),l="")}),l.length&&r.push(l)}};!(n=e.next()).done;)i();return r},wh=function(){function A(t,e,r){this.text=hh(e.data,r.textTransform),this.textBounds=oh(t,this.text,r,e)}return A}(),hh=function(A,t){switch(t){case 1:return A.toLowerCase();case 3:return A.replace(Qh,Ch);case 2:return A.toUpperCase();default:return A}},Qh=/(^|\s|:|-|\(|\))([a-z])/g,Ch=function(A,t,e){return A.length>0?t+e.toUpperCase():A},IB=function(A){QA(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return t}(HA),mB=function(A){QA(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return t}(HA),_B=function(A){QA(t,A);function t(e,r){var n=A.call(this,e,r)||this,i=new XMLSerializer,a=br(e,r);return r.setAttribute("width",a.width+"px"),r.setAttribute("height",a.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return t}(HA),yB=function(A){QA(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.value=r.value,n}return t}(HA),Yn=function(A){QA(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return t}(HA),dh=[{type:15,flags:0,unit:"px",number:3}],Uh=[{type:16,flags:0,number:50}],Fh=function(A){return A.width>A.height?new DA(A.left+(A.width-A.height)/2,A.top,A.height,A.height):A.width0)e.textNodes.push(new wh(A,n,e.styles));else if(He(n))if(MB(n)&&n.assignedNodes)n.assignedNodes().forEach(function(s){return ir(A,s,e,r)});else{var a=KB(A,n);a.styles.isVisible()&&(Hh(n,a,r)?a.flags|=4:Ih(a.styles)&&(a.flags|=2),vh.indexOf(n.tagName)!==-1&&(a.flags|=8),e.elements.push(a),n.slot,n.shadowRoot?ir(A,n.shadowRoot,a,r):!dr(n)&&!TB(n)&&!Ur(n)&&ir(A,n,a,r))}},KB=function(A,t){return qn(t)?new IB(A,t):OB(t)?new mB(A,t):TB(t)?new _B(A,t):mh(t)?new yB(A,t):_h(t)?new Yn(A,t):yh(t)?new Ci(A,t):Ur(t)?new bB(A,t):dr(t)?new xB(A,t):RB(t)?new LB(A,t):new HA(A,t)},DB=function(A,t){var e=KB(A,t);return e.flags|=4,ir(A,t,e,e),e},Hh=function(A,t,e){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||di(A)&&e.styles.isTransparent()},Ih=function(A){return A.isPositioned()||A.isFloating()},SB=function(A){return A.nodeType===Node.TEXT_NODE},He=function(A){return A.nodeType===Node.ELEMENT_NODE},zn=function(A){return He(A)&&typeof A.style<"u"&&!ar(A)},ar=function(A){return typeof A.className=="object"},mh=function(A){return A.tagName==="LI"},_h=function(A){return A.tagName==="OL"},yh=function(A){return A.tagName==="INPUT"},bh=function(A){return A.tagName==="HTML"},TB=function(A){return A.tagName==="svg"},di=function(A){return A.tagName==="BODY"},OB=function(A){return A.tagName==="CANVAS"},Wa=function(A){return A.tagName==="VIDEO"},qn=function(A){return A.tagName==="IMG"},RB=function(A){return A.tagName==="IFRAME"},Za=function(A){return A.tagName==="STYLE"},xh=function(A){return A.tagName==="SCRIPT"},dr=function(A){return A.tagName==="TEXTAREA"},Ur=function(A){return A.tagName==="SELECT"},MB=function(A){return A.tagName==="SLOT"},Ya=function(A){return A.tagName.indexOf("-")>0},Lh=function(){function A(){this.counters={}}return A.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},A.prototype.getCounterValues=function(t){var e=this.counters[t];return e||[]},A.prototype.pop=function(t){var e=this;t.forEach(function(r){return e.counters[r].pop()})},A.prototype.parse=function(t){var e=this,r=t.counterIncrement,n=t.counterReset,i=!0;r!==null&&r.forEach(function(s){var l=e.counters[s.counter];l&&s.increment!==0&&(i=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=s.increment)});var a=[];return i&&n.forEach(function(s){var l=e.counters[s.counter];a.push(s.counter),l||(l=e.counters[s.counter]=[]),l.push(s.reset)}),a},A}(),za={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"]},qa={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Kh={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Dh={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ue=function(A,t,e,r,n,i){return Ae?Ct(A,n,i.length>0):r.integers.reduce(function(a,s,l){for(;A>=s;)A-=s,a+=r.values[l];return a},"")+i},kB=function(A,t,e,r){var n="";do e||A--,n=r(A)+n,A/=t;while(A*t>=t);return n},G=function(A,t,e,r,n){var i=e-t+1;return(A<0?"-":"")+(kB(Math.abs(A),i,r,function(a){return N(Math.floor(a%i)+t)})+n)},Ae=function(A,t,e){e===void 0&&(e=". ");var r=t.length;return kB(Math.abs(A),r,!1,function(n){return t[Math.floor(n%r)]})+e},Ee=1,TA=2,OA=4,je=8,bA=function(A,t,e,r,n,i){if(A<-9999||A>9999)return Ct(A,4,n.length>0);var a=Math.abs(A),s=n;if(a===0)return t[0]+s;for(var l=0;a>0&&l<=4;l++){var B=a%10;B===0&&P(i,Ee)&&s!==""?s=t[B]+s:B>1||B===1&&l===0||B===1&&l===1&&P(i,TA)||B===1&&l===1&&P(i,OA)&&A>100||B===1&&l>1&&P(i,je)?s=t[B]+(l>0?e[l-1]:"")+s:B===1&&l>0&&(s=e[l-1]+s),a=Math.floor(a/10)}return(A<0?r:"")+s},ja="十百千萬",$a="拾佰仟萬",As="マイナス",Cn="마이너스",Ct=function(A,t,e){var r=e?". ":"",n=e?"、":"",i=e?", ":"",a=e?" ":"";switch(t){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=G(A,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Ae(A,"〇一二三四五六七八九",n);case 6:return Ue(A,1,3999,za,3,r).toLowerCase();case 7:return Ue(A,1,3999,za,3,r);case 8:return G(A,945,969,!1,r);case 9:return G(A,97,122,!1,r);case 10:return G(A,65,90,!1,r);case 11:return G(A,1632,1641,!0,r);case 12:case 49:return Ue(A,1,9999,qa,3,r);case 35:return Ue(A,1,9999,qa,3,r).toLowerCase();case 13:return G(A,2534,2543,!0,r);case 14:case 30:return G(A,6112,6121,!0,r);case 15:return Ae(A,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ae(A,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return bA(A,"零一二三四五六七八九",ja,"負",n,TA|OA|je);case 47:return bA(A,"零壹貳參肆伍陸柒捌玖",$a,"負",n,Ee|TA|OA|je);case 42:return bA(A,"零一二三四五六七八九",ja,"负",n,TA|OA|je);case 41:return bA(A,"零壹贰叁肆伍陆柒捌玖",$a,"负",n,Ee|TA|OA|je);case 26:return bA(A,"〇一二三四五六七八九","十百千万",As,n,0);case 25:return bA(A,"零壱弐参四伍六七八九","拾百千万",As,n,Ee|TA|OA);case 31:return bA(A,"영일이삼사오육칠팔구","십백천만",Cn,i,Ee|TA|OA);case 33:return bA(A,"零一二三四五六七八九","十百千萬",Cn,i,0);case 32:return bA(A,"零壹貳參四五六七八九","拾百千",Cn,i,Ee|TA|OA);case 18:return G(A,2406,2415,!0,r);case 20:return Ue(A,1,19999,Dh,3,r);case 21:return G(A,2790,2799,!0,r);case 22:return G(A,2662,2671,!0,r);case 22:return Ue(A,1,10999,Kh,3,r);case 23:return Ae(A,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ae(A,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return G(A,3302,3311,!0,r);case 28:return Ae(A,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ae(A,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return G(A,3792,3801,!0,r);case 37:return G(A,6160,6169,!0,r);case 38:return G(A,4160,4169,!0,r);case 39:return G(A,2918,2927,!0,r);case 40:return G(A,1776,1785,!0,r);case 43:return G(A,3046,3055,!0,r);case 44:return G(A,3174,3183,!0,r);case 45:return G(A,3664,3673,!0,r);case 46:return G(A,3872,3881,!0,r);case 3:default:return G(A,48,57,!0,r)}},GB="data-html2canvas-ignore",es=function(){function A(t,e,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=e,this.counters=new Lh,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return A.prototype.toIFrame=function(t,e){var r=this,n=Sh(t,e);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,a=t.defaultView.pageYOffset,s=n.contentWindow,l=s.document,B=Rh(n).then(function(){return $(r,void 0,void 0,function(){var o,c;return q(this,function(f){switch(f.label){case 0:return this.scrolledElements.forEach(Nh),s&&(s.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==e.top||s.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-e.left,s.scrollY-e.top,0,0))),o=this.options.onclone,c=this.clonedReferenceElement,typeof c>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:f.sent(),f.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Oh(l)]:[3,4];case 3:f.sent(),f.label=4;case 4:return typeof o=="function"?[2,Promise.resolve().then(function(){return o(l,c)}).then(function(){return n})]:[2,n]}})})});return l.open(),l.write(kh(document.doctype)+""),Gh(this.referenceElement.ownerDocument,i,a),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),B},A.prototype.createElementClone=function(t){if(Wn(t,2))debugger;if(OB(t))return this.createCanvasClone(t);if(Wa(t))return this.createVideoClone(t);if(Za(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return qn(e)&&(qn(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),e.loading==="lazy"&&(e.loading="eager")),Ya(e)?this.createCustomElementClone(e):e},A.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return dn(t.style,e),e},A.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var r=[].slice.call(e.cssRules,0).reduce(function(i,a){return a&&typeof a.cssText=="string"?i+a.cssText:i},""),n=t.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},A.prototype.createCanvasClone=function(t){var e;if(this.options.inlineImages&&t.ownerDocument){var r=t.ownerDocument.createElement("img");try{return r.src=t.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var n=t.cloneNode(!1);try{n.width=t.width,n.height=t.height;var i=t.getContext("2d"),a=n.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var s=(e=t.getContext("webgl2"))!==null&&e!==void 0?e:t.getContext("webgl");if(s){var l=s.getContextAttributes();(l==null?void 0:l.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}a.drawImage(t,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return n},A.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var r=e.getContext("2d");try{return r&&(r.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||r.getImageData(0,0,e.width,e.height)),e}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var n=t.ownerDocument.createElement("canvas");return n.width=t.offsetWidth,n.height=t.offsetHeight,n},A.prototype.appendChildNode=function(t,e,r){(!He(e)||!xh(e)&&!e.hasAttribute(GB)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(e)))&&(!this.options.copyStyles||!He(e)||!Za(e))&&t.appendChild(this.cloneNode(e,r))},A.prototype.cloneChildNodes=function(t,e,r){for(var n=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(He(i)&&MB(i)&&typeof i.assignedNodes=="function"){var a=i.assignedNodes();a.length&&a.forEach(function(s){return n.appendChildNode(e,s,r)})}else this.appendChildNode(e,i,r)},A.prototype.cloneNode=function(t,e){if(SB(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var r=t.ownerDocument.defaultView;if(r&&He(t)&&(zn(t)||ar(t))){var n=this.createElementClone(t);n.style.transitionProperty="none";var i=r.getComputedStyle(t),a=r.getComputedStyle(t,":before"),s=r.getComputedStyle(t,":after");this.referenceElement===t&&zn(n)&&(this.clonedReferenceElement=n),di(n)&&Xh(n);var l=this.counters.parse(new La(this.context,i)),B=this.resolvePseudoContent(t,n,a,st.BEFORE);Ya(t)&&(e=!0),Wa(t)||this.cloneChildNodes(t,n,e),B&&n.insertBefore(B,n.firstChild);var o=this.resolvePseudoContent(t,n,s,st.AFTER);return o&&n.appendChild(o),this.counters.pop(l),(i&&(this.options.copyStyles||ar(t))&&!RB(t)||e)&&dn(i,n),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(dr(t)||Ur(t))&&(dr(n)||Ur(n))&&(n.value=t.value),n}return t.cloneNode(!1)},A.prototype.resolvePseudoContent=function(t,e,r,n){var i=this;if(r){var a=r.content,s=e.ownerDocument;if(!(!s||!a||a==="none"||a==="-moz-alt-content"||r.display==="none")){this.counters.parse(new La(this.context,r));var l=new mw(this.context,r),B=s.createElement("html2canvaspseudoelement");dn(r,B),l.content.forEach(function(c){if(c.type===0)B.appendChild(s.createTextNode(c.value));else if(c.type===22){var f=s.createElement("img");f.src=c.value,f.style.opacity="1",B.appendChild(f)}else if(c.type===18){if(c.name==="attr"){var u=c.values.filter(S);u.length&&B.appendChild(s.createTextNode(t.getAttribute(u[0].value)||""))}else if(c.name==="counter"){var g=c.values.filter(Le),Q=g[0],w=g[1];if(Q&&S(Q)){var h=i.counters.getCounterValue(Q.value),C=w&&S(w)?Jn.parse(i.context,w.value):3;B.appendChild(s.createTextNode(Ct(h,C,!1)))}}else if(c.name==="counters"){var U=c.values.filter(Le),Q=U[0],d=U[1],w=U[2];if(Q&&S(Q)){var p=i.counters.getCounterValues(Q.value),F=w&&S(w)?Jn.parse(i.context,w.value):3,E=d&&d.type===0?d.value:"",_=p.map(function(y){return Ct(y,F,!1)}).join(E);B.appendChild(s.createTextNode(_))}}}else if(c.type===20)switch(c.value){case"open-quote":B.appendChild(s.createTextNode(xa(l.quotes,i.quoteDepth++,!0)));break;case"close-quote":B.appendChild(s.createTextNode(xa(l.quotes,--i.quoteDepth,!1)));break;default:B.appendChild(s.createTextNode(c.value))}}),B.className=jn+" "+$n;var o=n===st.BEFORE?" "+jn:" "+$n;return ar(e)?e.className.baseValue+=o:e.className+=o,B}}},A.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},A}(),st;(function(A){A[A.BEFORE=0]="BEFORE",A[A.AFTER=1]="AFTER"})(st||(st={}));var Sh=function(A,t){var e=A.createElement("iframe");return e.className="html2canvas-container",e.style.visibility="hidden",e.style.position="fixed",e.style.left="-10000px",e.style.top="0px",e.style.border="0",e.width=t.width.toString(),e.height=t.height.toString(),e.scrolling="no",e.setAttribute(GB,"true"),A.body.appendChild(e),e},Th=function(A){return new Promise(function(t){if(A.complete){t();return}if(!A.src){t();return}A.onload=t,A.onerror=t})},Oh=function(A){return Promise.all([].slice.call(A.images,0).map(Th))},Rh=function(A){return new Promise(function(t,e){var r=A.contentWindow;if(!r)return e("No window assigned for iframe");var n=r.document;r.onload=A.onload=function(){r.onload=A.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),t(A))},50)}})},Mh=["all","d","content"],dn=function(A,t){for(var e=A.length-1;e>=0;e--){var r=A.item(e);Mh.indexOf(r)===-1&&t.style.setProperty(r,A.getPropertyValue(r))}return t},kh=function(A){var t="";return A&&(t+=""),t},Gh=function(A,t,e){A&&A.defaultView&&(t!==A.defaultView.pageXOffset||e!==A.defaultView.pageYOffset)&&A.defaultView.scrollTo(t,e)},Nh=function(A){var t=A[0],e=A[1],r=A[2];t.scrollLeft=e,t.scrollTop=r},Vh=":before",Ph=":after",jn="___html2canvas___pseudoelement_before",$n="___html2canvas___pseudoelement_after",ts=`{ + content: "" !important; + display: none !important; +}`,Xh=function(A){Jh(A,"."+jn+Vh+ts+` + .`+$n+Ph+ts)},Jh=function(A,t){var e=A.ownerDocument;if(e){var r=e.createElement("style");r.textContent=t,A.appendChild(r)}},NB=function(){function A(){}return A.getOrigin=function(t){var e=A._link;return e?(e.href=t,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},A.isSameOrigin=function(t){return A.getOrigin(t)===A._origin},A.setContext=function(t){A._link=t.document.createElement("a"),A._origin=A.getOrigin(t.location.href)},A._origin="about:blank",A}(),Wh=function(){function A(t,e){this.context=t,this._options=e,this._cache={}}return A.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)||(Fn(t)||qh(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),e},A.prototype.match=function(t){return this._cache[t]},A.prototype.loadImage=function(t){return $(this,void 0,void 0,function(){var e,r,n,i,a=this;return q(this,function(s){switch(s.label){case 0:return e=NB.isSameOrigin(t),r=!Un(t)&&this._options.useCORS===!0&&Y.SUPPORT_CORS_IMAGES&&!e,n=!Un(t)&&!e&&!Fn(t)&&typeof this._options.proxy=="string"&&Y.SUPPORT_CORS_XHR&&!r,!e&&this._options.allowTaint===!1&&!Un(t)&&!Fn(t)&&!n&&!r?[2]:(i=t,n?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,B){var o=new Image;o.onload=function(){return l(o)},o.onerror=B,(jh(i)||r)&&(o.crossOrigin="anonymous"),o.src=i,o.complete===!0&&setTimeout(function(){return l(o)},500),a._options.imageTimeout>0&&setTimeout(function(){return B("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},A.prototype.has=function(t){return typeof this._cache[t]<"u"},A.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},A.prototype.proxy=function(t){var e=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=t.substring(0,256);return new Promise(function(i,a){var s=Y.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(s==="text")i(l.response);else{var c=new FileReader;c.addEventListener("load",function(){return i(c.result)},!1),c.addEventListener("error",function(f){return a(f)},!1),c.readAsDataURL(l.response)}else a("Failed to proxy resource "+n+" with status code "+l.status)},l.onerror=a;var B=r.indexOf("?")>-1?"&":"?";if(l.open("GET",""+r+B+"url="+encodeURIComponent(t)+"&responseType="+s),s!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=s),e._options.imageTimeout){var o=e._options.imageTimeout;l.timeout=o,l.ontimeout=function(){return a("Timed out ("+o+"ms) proxying "+n)}}l.send()})},A}(),Zh=/^data:image\/svg\+xml/i,Yh=/^data:image\/.*;base64,/i,zh=/^data:image\/.*/i,qh=function(A){return Y.SUPPORT_SVG_DRAWING||!$h(A)},Un=function(A){return zh.test(A)},jh=function(A){return Yh.test(A)},Fn=function(A){return A.substr(0,4)==="blob"},$h=function(A){return A.substr(-3).toLowerCase()==="svg"||Zh.test(A)},H=function(){function A(t,e){this.type=0,this.x=t,this.y=e}return A.prototype.add=function(t,e){return new A(this.x+t,this.y+e)},A}(),Fe=function(A,t,e){return new H(A.x+(t.x-A.x)*e,A.y+(t.y-A.y)*e)},qt=function(){function A(t,e,r,n){this.type=1,this.start=t,this.startControl=e,this.endControl=r,this.end=n}return A.prototype.subdivide=function(t,e){var r=Fe(this.start,this.startControl,t),n=Fe(this.startControl,this.endControl,t),i=Fe(this.endControl,this.end,t),a=Fe(r,n,t),s=Fe(n,i,t),l=Fe(a,s,t);return e?new A(this.start,r,a,l):new A(l,s,i,this.end)},A.prototype.add=function(t,e){return new A(this.start.add(t,e),this.startControl.add(t,e),this.endControl.add(t,e),this.end.add(t,e))},A.prototype.reverse=function(){return new A(this.end,this.endControl,this.startControl,this.start)},A}(),lA=function(A){return A.type===1},AQ=function(){function A(t){var e=t.styles,r=t.bounds,n=ze(e.borderTopLeftRadius,r.width,r.height),i=n[0],a=n[1],s=ze(e.borderTopRightRadius,r.width,r.height),l=s[0],B=s[1],o=ze(e.borderBottomRightRadius,r.width,r.height),c=o[0],f=o[1],u=ze(e.borderBottomLeftRadius,r.width,r.height),g=u[0],Q=u[1],w=[];w.push((i+l)/r.width),w.push((g+c)/r.width),w.push((a+Q)/r.height),w.push((B+f)/r.height);var h=Math.max.apply(Math,w);h>1&&(i/=h,a/=h,l/=h,B/=h,c/=h,f/=h,g/=h,Q/=h);var C=r.width-l,U=r.height-f,d=r.width-c,p=r.height-Q,F=e.borderTopWidth,E=e.borderRightWidth,_=e.borderBottomWidth,v=e.borderLeftWidth,m=O(e.paddingTop,t.bounds.width),y=O(e.paddingRight,t.bounds.width),R=O(e.paddingBottom,t.bounds.width),x=O(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?k(r.left+v/3,r.top+F/3,i-v/3,a-F/3,D.TOP_LEFT):new H(r.left+v/3,r.top+F/3),this.topRightBorderDoubleOuterBox=i>0||a>0?k(r.left+C,r.top+F/3,l-E/3,B-F/3,D.TOP_RIGHT):new H(r.left+r.width-E/3,r.top+F/3),this.bottomRightBorderDoubleOuterBox=c>0||f>0?k(r.left+d,r.top+U,c-E/3,f-_/3,D.BOTTOM_RIGHT):new H(r.left+r.width-E/3,r.top+r.height-_/3),this.bottomLeftBorderDoubleOuterBox=g>0||Q>0?k(r.left+v/3,r.top+p,g-v/3,Q-_/3,D.BOTTOM_LEFT):new H(r.left+v/3,r.top+r.height-_/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?k(r.left+v*2/3,r.top+F*2/3,i-v*2/3,a-F*2/3,D.TOP_LEFT):new H(r.left+v*2/3,r.top+F*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?k(r.left+C,r.top+F*2/3,l-E*2/3,B-F*2/3,D.TOP_RIGHT):new H(r.left+r.width-E*2/3,r.top+F*2/3),this.bottomRightBorderDoubleInnerBox=c>0||f>0?k(r.left+d,r.top+U,c-E*2/3,f-_*2/3,D.BOTTOM_RIGHT):new H(r.left+r.width-E*2/3,r.top+r.height-_*2/3),this.bottomLeftBorderDoubleInnerBox=g>0||Q>0?k(r.left+v*2/3,r.top+p,g-v*2/3,Q-_*2/3,D.BOTTOM_LEFT):new H(r.left+v*2/3,r.top+r.height-_*2/3),this.topLeftBorderStroke=i>0||a>0?k(r.left+v/2,r.top+F/2,i-v/2,a-F/2,D.TOP_LEFT):new H(r.left+v/2,r.top+F/2),this.topRightBorderStroke=i>0||a>0?k(r.left+C,r.top+F/2,l-E/2,B-F/2,D.TOP_RIGHT):new H(r.left+r.width-E/2,r.top+F/2),this.bottomRightBorderStroke=c>0||f>0?k(r.left+d,r.top+U,c-E/2,f-_/2,D.BOTTOM_RIGHT):new H(r.left+r.width-E/2,r.top+r.height-_/2),this.bottomLeftBorderStroke=g>0||Q>0?k(r.left+v/2,r.top+p,g-v/2,Q-_/2,D.BOTTOM_LEFT):new H(r.left+v/2,r.top+r.height-_/2),this.topLeftBorderBox=i>0||a>0?k(r.left,r.top,i,a,D.TOP_LEFT):new H(r.left,r.top),this.topRightBorderBox=l>0||B>0?k(r.left+C,r.top,l,B,D.TOP_RIGHT):new H(r.left+r.width,r.top),this.bottomRightBorderBox=c>0||f>0?k(r.left+d,r.top+U,c,f,D.BOTTOM_RIGHT):new H(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=g>0||Q>0?k(r.left,r.top+p,g,Q,D.BOTTOM_LEFT):new H(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||a>0?k(r.left+v,r.top+F,Math.max(0,i-v),Math.max(0,a-F),D.TOP_LEFT):new H(r.left+v,r.top+F),this.topRightPaddingBox=l>0||B>0?k(r.left+Math.min(C,r.width-E),r.top+F,C>r.width+E?0:Math.max(0,l-E),Math.max(0,B-F),D.TOP_RIGHT):new H(r.left+r.width-E,r.top+F),this.bottomRightPaddingBox=c>0||f>0?k(r.left+Math.min(d,r.width-v),r.top+Math.min(U,r.height-_),Math.max(0,c-E),Math.max(0,f-_),D.BOTTOM_RIGHT):new H(r.left+r.width-E,r.top+r.height-_),this.bottomLeftPaddingBox=g>0||Q>0?k(r.left+v,r.top+Math.min(p,r.height-_),Math.max(0,g-v),Math.max(0,Q-_),D.BOTTOM_LEFT):new H(r.left+v,r.top+r.height-_),this.topLeftContentBox=i>0||a>0?k(r.left+v+x,r.top+F+m,Math.max(0,i-(v+x)),Math.max(0,a-(F+m)),D.TOP_LEFT):new H(r.left+v+x,r.top+F+m),this.topRightContentBox=l>0||B>0?k(r.left+Math.min(C,r.width+v+x),r.top+F+m,C>r.width+v+x?0:l-v+x,B-(F+m),D.TOP_RIGHT):new H(r.left+r.width-(E+y),r.top+F+m),this.bottomRightContentBox=c>0||f>0?k(r.left+Math.min(d,r.width-(v+x)),r.top+Math.min(U,r.height+F+m),Math.max(0,c-(E+y)),f-(_+R),D.BOTTOM_RIGHT):new H(r.left+r.width-(E+y),r.top+r.height-(_+R)),this.bottomLeftContentBox=g>0||Q>0?k(r.left+v+x,r.top+p,Math.max(0,g-(v+x)),Q-(_+R),D.BOTTOM_LEFT):new H(r.left+v+x,r.top+r.height-(_+R))}return A}(),D;(function(A){A[A.TOP_LEFT=0]="TOP_LEFT",A[A.TOP_RIGHT=1]="TOP_RIGHT",A[A.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",A[A.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(D||(D={}));var k=function(A,t,e,r,n){var i=4*((Math.sqrt(2)-1)/3),a=e*i,s=r*i,l=A+e,B=t+r;switch(n){case D.TOP_LEFT:return new qt(new H(A,B),new H(A,B-s),new H(l-a,t),new H(l,t));case D.TOP_RIGHT:return new qt(new H(A,t),new H(A+a,t),new H(l,B-s),new H(l,B));case D.BOTTOM_RIGHT:return new qt(new H(l,t),new H(l,t+s),new H(A+a,B),new H(A,B));case D.BOTTOM_LEFT:default:return new qt(new H(l,B),new H(l-a,B),new H(A,t+s),new H(A,t))}},Fr=function(A){return[A.topLeftBorderBox,A.topRightBorderBox,A.bottomRightBorderBox,A.bottomLeftBorderBox]},eQ=function(A){return[A.topLeftContentBox,A.topRightContentBox,A.bottomRightContentBox,A.bottomLeftContentBox]},pr=function(A){return[A.topLeftPaddingBox,A.topRightPaddingBox,A.bottomRightPaddingBox,A.bottomLeftPaddingBox]},tQ=function(){function A(t,e,r){this.offsetX=t,this.offsetY=e,this.matrix=r,this.type=0,this.target=6}return A}(),jt=function(){function A(t,e){this.path=t,this.target=e,this.type=1}return A}(),rQ=function(){function A(t){this.opacity=t,this.type=2,this.target=6}return A}(),nQ=function(A){return A.type===0},VB=function(A){return A.type===1},iQ=function(A){return A.type===2},rs=function(A,t){return A.length===t.length?A.some(function(e,r){return e===t[r]}):!1},aQ=function(A,t,e,r,n){return A.map(function(i,a){switch(a){case 0:return i.add(t,e);case 1:return i.add(t+r,e);case 2:return i.add(t+r,e+n);case 3:return i.add(t,e+n)}return i})},PB=function(){function A(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return A}(),XB=function(){function A(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new AQ(this.container),this.container.styles.opacity<1&&this.effects.push(new rQ(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new tQ(r,n,i))}if(this.container.styles.overflowX!==0){var a=Fr(this.curves),s=pr(this.curves);rs(a,s)?this.effects.push(new jt(a,6)):(this.effects.push(new jt(a,2)),this.effects.push(new jt(s,4)))}}return A.prototype.getEffects=function(t){for(var e=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(l){return!VB(l)});if(e||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),e=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var a=Fr(r.curves),s=pr(r.curves);rs(a,s)||n.unshift(new jt(s,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(l){return P(l.target,t)})},A}(),Ai=function(A,t,e,r){A.container.elements.forEach(function(n){var i=P(n.flags,4),a=P(n.flags,2),s=new XB(n,A);P(n.styles.display,2048)&&r.push(s);var l=P(n.flags,8)?[]:r;if(i||a){var B=i||n.styles.isPositioned()?e:t,o=new PB(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var c=n.styles.zIndex.order;if(c<0){var f=0;B.negativeZIndex.some(function(g,Q){return c>g.element.container.styles.zIndex.order?(f=Q,!1):f>0}),B.negativeZIndex.splice(f,0,o)}else if(c>0){var u=0;B.positiveZIndex.some(function(g,Q){return c>=g.element.container.styles.zIndex.order?(u=Q+1,!1):u>0}),B.positiveZIndex.splice(u,0,o)}else B.zeroOrAutoZIndexOrTransformedOrOpacity.push(o)}else n.styles.isFloating()?B.nonPositionedFloats.push(o):B.nonPositionedInlineLevel.push(o);Ai(s,o,i?o:e,l)}else n.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Ai(s,t,e,l);P(n.flags,8)&&JB(n,l)})},JB=function(A,t){for(var e=A instanceof Yn?A.start:1,r=A instanceof Yn?A.reversed:!1,n=0;n"u"?A[0]:e},gQ=function(A,t,e,r,n){var i=t[0],a=t[1],s=e[0],l=e[1];switch(A){case 2:return[new H(Math.round(r.left),Math.round(r.top+a)),new H(Math.round(r.left+r.width),Math.round(r.top+a)),new H(Math.round(r.left+r.width),Math.round(l+r.top+a)),new H(Math.round(r.left),Math.round(l+r.top+a))];case 3:return[new H(Math.round(r.left+i),Math.round(r.top)),new H(Math.round(r.left+i+s),Math.round(r.top)),new H(Math.round(r.left+i+s),Math.round(r.height+r.top)),new H(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new H(Math.round(r.left+i),Math.round(r.top+a)),new H(Math.round(r.left+i+s),Math.round(r.top+a)),new H(Math.round(r.left+i+s),Math.round(r.top+a+l)),new H(Math.round(r.left+i),Math.round(r.top+a+l))];default:return[new H(Math.round(n.left),Math.round(n.top)),new H(Math.round(n.left+n.width),Math.round(n.top)),new H(Math.round(n.left+n.width),Math.round(n.height+n.top)),new H(Math.round(n.left),Math.round(n.height+n.top))]}},wQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",is="Hidden Text",hQ=function(){function A(t){this._data={},this._document=t}return A.prototype.parseMetrics=function(t,e){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=e,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",a.appendChild(r),n.src=wQ,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(is)),r.appendChild(i),r.appendChild(n);var s=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(is)),r.style.lineHeight="normal",n.style.verticalAlign="super";var l=n.offsetTop-r.offsetTop+2;return a.removeChild(r),{baseline:s,middle:l}},A.prototype.getMetrics=function(t,e){var r=t+" "+e;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,e)),this._data[r]},A}(),ZB=function(){function A(t,e){this.context=t,this.options=e}return A}(),QQ=1e4,CQ=function(A){QA(t,A);function t(e,r){var n=A.call(this,e,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new hQ(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return t.prototype.applyEffects=function(e){for(var r=this;this._activeEffects.length;)this.popEffect();e.forEach(function(n){return r.applyEffect(n)})},t.prototype.applyEffect=function(e){this.ctx.save(),iQ(e)&&(this.ctx.globalAlpha=e.opacity),nQ(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),VB(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(e){return $(this,void 0,void 0,function(){var r;return q(this,function(n){switch(n.label){case 0:return r=e.element.container.styles,r.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(e){return $(this,void 0,void 0,function(){return q(this,function(r){switch(r.label){case 0:if(P(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(e)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(e,r,n){var i=this;if(r===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+n);else{var a=Qi(e.text);a.reduce(function(s,l){return i.ctx.fillText(l,s,e.bounds.top+n),s+i.ctx.measureText(l).width},e.bounds.left)}},t.prototype.createFontStyle=function(e){var r=e.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),n=EQ(e.fontFamily).join(", "),i=It(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,r,e.fontWeight,i,n].join(" "),n,i]},t.prototype.renderTextNode=function(e,r){return $(this,void 0,void 0,function(){var n,i,a,s,l,B,o,c,f=this;return q(this,function(u){return n=this.createFontStyle(r),i=n[0],a=n[1],s=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(a,s),B=l.baseline,o=l.middle,c=r.paintOrder,e.textBounds.forEach(function(g){c.forEach(function(Q){switch(Q){case 0:f.ctx.fillStyle=X(r.color),f.renderTextWithLetterSpacing(g,r.letterSpacing,B);var w=r.textShadow;w.length&&g.text.trim().length&&(w.slice(0).reverse().forEach(function(h){f.ctx.shadowColor=X(h.color),f.ctx.shadowOffsetX=h.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=h.offsetY.number*f.options.scale,f.ctx.shadowBlur=h.blur.number,f.renderTextWithLetterSpacing(g,r.letterSpacing,B)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=X(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(h){switch(h){case 1:f.ctx.fillRect(g.bounds.left,Math.round(g.bounds.top+B),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+o),g.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&g.text.trim().length&&(f.ctx.strokeStyle=X(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+B)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(e,r,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=Er(e),a=pr(r);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(e){return $(this,void 0,void 0,function(){var r,n,i,a,s,l,C,C,B,o,c,f,d,u,g,p,Q,w,h,C,U,d,p;return q(this,function(F){switch(F.label){case 0:this.applyEffects(e.getEffects(4)),r=e.container,n=e.curves,i=r.styles,a=0,s=r.textNodes,F.label=1;case 1:return a0&&T>0&&(_=i.ctx.createPattern(p,"repeat"),i.renderRepeat(m,_,eA,tA))):ig(o)&&(v=pn(e,r,[null,null,null]),m=v[0],y=v[1],R=v[2],x=v[3],T=v[4],W=o.position.length===0?[gi]:o.position,eA=O(W[0],x),tA=O(W[W.length-1],T),zA=Ag(o,eA,tA,x,T),CA=zA[0],SA=zA[1],CA>0&&SA>0&&(qA=i.ctx.createRadialGradient(y+eA,R+tA,0,y+eA,R+tA,CA),ma(o.stops,CA*2).forEach(function(Oe){return qA.addColorStop(Oe.stop,X(Oe.color))}),i.path(m),i.ctx.fillStyle=qA,CA!==SA?(jA=e.bounds.left+.5*e.bounds.width,IA=e.bounds.top+.5*e.bounds.height,$A=SA/CA,mA=1/$A,i.ctx.save(),i.ctx.translate(jA,IA),i.ctx.transform(1,0,0,$A,0,0),i.ctx.translate(-jA,-IA),i.ctx.fillRect(y,mA*(R-IA)+IA,x,T*mA),i.ctx.restore()):i.ctx.fill())),ge.label=6;case 6:return r--,[2]}})},i=this,a=0,s=e.styles.backgroundImage.slice(0).reverse(),B.label=1;case 1:return a0?o.style!==2?[3,5]:[4,this.renderDashedDottedBorder(o.color,o.width,s,e.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return o.style!==3?[3,7]:[4,this.renderDashedDottedBorder(o.color,o.width,s,e.curves,3)];case 6:return f.sent(),[3,11];case 7:return o.style!==4?[3,9]:[4,this.renderDoubleBorder(o.color,o.width,s,e.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(o.color,s,e.curves)];case 10:f.sent(),f.label=11;case 11:s++,f.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(e,r,n,i,a){return $(this,void 0,void 0,function(){var s,l,B,o,c,f,u,g,Q,w,h,C,U,d,p,F,p,F;return q(this,function(E){return this.ctx.save(),s=lQ(i,n),l=ns(i,n),a===2&&(this.path(l),this.ctx.clip()),lA(l[0])?(B=l[0].start.x,o=l[0].start.y):(B=l[0].x,o=l[0].y),lA(l[1])?(c=l[1].end.x,f=l[1].end.y):(c=l[1].x,f=l[1].y),n===0||n===2?u=Math.abs(B-c):u=Math.abs(o-f),this.ctx.beginPath(),a===3?this.formatPath(s):this.formatPath(l.slice(0,2)),g=r<3?r*3:r*2,Q=r<3?r*2:r,a===3&&(g=r,Q=r),w=!0,u<=g*2?w=!1:u<=g*2+Q?(h=u/(2*g+Q),g*=h,Q*=h):(C=Math.floor((u+Q)/(g+Q)),U=(u-C*g)/(C-1),d=(u-(C+1)*g)/C,Q=d<=0||Math.abs(Q-U)0&&this._events[o].length>f&&(this._events[o].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[o].length),typeof console.trace=="function"&&console.trace())),this},i.prototype.on=i.prototype.addListener,i.prototype.once=function(o,c){if(!a(c))throw TypeError("listener must be a function");var f=!1;function u(){this.removeListener(o,u),f||(f=!0,c.apply(this,arguments))}return u.listener=c,this.on(o,u),this},i.prototype.removeListener=function(o,c){var f,u,g,Q;if(!a(c))throw TypeError("listener must be a function");if(!this._events||!this._events[o])return this;if(f=this._events[o],g=f.length,u=-1,f===c||a(f.listener)&&f.listener===c)delete this._events[o],this._events.removeListener&&this.emit("removeListener",o,c);else if(l(f)){for(Q=g;Q-- >0;)if(f[Q]===c||f[Q].listener&&f[Q].listener===c){u=Q;break}if(u<0)return this;f.length===1?(f.length=0,delete this._events[o]):f.splice(u,1),this._events.removeListener&&this.emit("removeListener",o,c)}return this},i.prototype.removeAllListeners=function(o){var c,f;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[o]&&delete this._events[o],this;if(arguments.length===0){for(c in this._events)c!=="removeListener"&&this.removeAllListeners(c);return this.removeAllListeners("removeListener"),this._events={},this}if(f=this._events[o],a(f))this.removeListener(o,f);else if(f)for(;f.length;)this.removeListener(o,f[f.length-1]);return delete this._events[o],this},i.prototype.listeners=function(o){var c;return!this._events||!this._events[o]?c=[]:a(this._events[o])?c=[this._events[o]]:c=this._events[o].slice(),c},i.prototype.listenerCount=function(o){if(this._events){var c=this._events[o];if(a(c))return 1;if(c)return c.length}return 0},i.listenerCount=function(o,c){return o.listenerCount(c)};function a(o){return typeof o=="function"}function s(o){return typeof o=="number"}function l(o){return typeof o=="object"&&o!==null}function B(o){return o===void 0}},{}],2:[function(e,r,n){var i,a,s,l,B;B=navigator.userAgent.toLowerCase(),l=navigator.platform.toLowerCase(),i=B.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0],s=i[1]==="ie"&&document.documentMode,a={name:i[1]==="version"?i[3]:i[1],version:s||parseFloat(i[1]==="opera"&&i[4]?i[4]:i[2]),platform:{name:B.match(/ip(?:ad|od|hone)/)?"ios":(B.match(/(?:webos|android)/)||l.match(/mac|win|linux/)||["other"])[0]}},a[a.name]=!0,a[a.name+parseInt(a.version,10)]=!0,a.platform[a.platform.name]=!0,r.exports=a},{}],3:[function(e,r,n){var i,a,s,l=function(f,u){for(var g in u)B.call(u,g)&&(f[g]=u[g]);function Q(){this.constructor=f}return Q.prototype=u.prototype,f.prototype=new Q,f.__super__=u.prototype,f},B={}.hasOwnProperty,o=[].indexOf||function(f){for(var u=0,g=this.length;ud;0<=d?++U:--U)p.push(null);return p}).call(this),h=this.spawnWorkers(),this.options.globalPalette===!0)this.renderNextFrame();else for(w=0,C=h;0<=C?wC;0<=C?++w:--w)this.renderNextFrame();return this.emit("start"),this.emit("progress",0)},Q.prototype.abort=function(){for(var w;w=this.activeWorkers.shift(),w!=null;)this.log("killing active worker"),w.terminate();return this.running=!1,this.emit("abort")},Q.prototype.spawnWorkers=function(){var w,h,C;return w=Math.min(this.options.workers,this.frames.length),(function(){C=[];for(var U=h=this.freeWorkers.length;h<=w?Uw;h<=w?U++:U--)C.push(U);return C}).apply(this).forEach(function(U){return function(d){var p;return U.log("spawning worker "+d),p=new Worker(U.options.workerScript),p.onmessage=function(F){return U.activeWorkers.splice(U.activeWorkers.indexOf(p),1),U.freeWorkers.push(p),U.frameFinished(F.data)},U.freeWorkers.push(p)}}(this)),w},Q.prototype.frameFinished=function(w){var h,C;if(this.log("frame "+w.index+" finished - "+this.activeWorkers.length+" active"),this.finishedFrames++,this.emit("progress",this.finishedFrames/this.frames.length),this.imageParts[w.index]=w,this.options.globalPalette===!0&&(this.options.globalPalette=w.globalPalette,this.log("global palette analyzed"),this.frames.length>2))for(h=1,C=this.freeWorkers.length;1<=C?hC;1<=C?++h:--h)this.renderNextFrame();return o.call(this.imageParts,null)>=0?this.renderNextFrame():this.finishRendering()},Q.prototype.finishRendering=function(){var w,h,C,U,d,p,F,E,_,v,m,y,R,x,T,W;for(E=0,x=this.imageParts,d=0,_=x.length;d<_;d++)h=x[d],E+=(h.data.length-1)*h.pageSize+h.cursor;for(E+=h.pageSize-h.cursor,this.log("rendering finished - filesize "+Math.round(E/1e3)+"kb"),w=new Uint8Array(E),y=0,T=this.imageParts,p=0,v=T.length;p=this.frames.length))return w=this.frames[this.nextFrame++],C=this.freeWorkers.shift(),h=this.getTask(w),this.log("starting frame "+(h.index+1)+" of "+this.frames.length),this.activeWorkers.push(C),C.postMessage(h)},Q.prototype.getContextData=function(w){return w.getImageData(0,0,this.options.width,this.options.height).data},Q.prototype.getImageData=function(w){var h;return this._canvas==null&&(this._canvas=document.createElement("canvas"),this._canvas.width=this.options.width,this._canvas.height=this.options.height),h=this._canvas.getContext("2d"),h.setFill=this.options.background,h.fillRect(0,0,this.options.width,this.options.height),h.drawImage(w,0,0),this.getContextData(h)},Q.prototype.getTask=function(w){var h,C;if(h=this.frames.indexOf(w),C={index:h,last:h===this.frames.length-1,delay:w.delay,transparent:w.transparent,width:this.options.width,height:this.options.height,quality:this.options.quality,dither:this.options.dither,globalPalette:this.options.globalPalette,repeat:this.options.repeat,canTransfer:s.name==="chrome"},w.data!=null)C.data=w.data;else if(w.context!=null)C.data=this.getContextData(w.context);else if(w.image!=null)C.data=this.getImageData(w.image);else throw new Error("Invalid frame");return C},Q.prototype.log=function(){var w;if(w=1<=arguments.length?c.call(arguments,0):[],!!this.options.debug)return console.log.apply(console,w)},Q}(i),r.exports=a},{"./browser.coffee":2,events:1}]},{},[3])(3)})})(YB);var LQ=YB.exports;const KQ=xQ(LQ),{steps:$e,pushStep:DQ,moveUp:SQ,moveLeft:TQ,moveDown:OQ,moveRight:RQ}=yr(),MQ=ss(""),{copy:ei}=$B({source:MQ});function pC(A){ei(typeof A=="string"?`${location.origin}${A}`:`${location.origin}?game=${cr(A)}`)}function EC(A){ei(`${location.origin}?game=${cr(A)}&steps=${cr({steps:$e})}`)}const zB={1:SQ,2:TQ,3:OQ,4:RQ};function vC(){if($e.length>0){const A=new KQ({workers:2,quality:10});$e.push(1),$e.forEach((t,e)=>{setTimeout(async()=>{zB[t](),DQ(t);const r=await kQ();A.addFrame(r,{copy:!0})},500*(e+2))}),setTimeout(()=>{A.on("finished",t=>{const e=URL.createObjectURL(t);window.open(e),GQ(e)}),A.render()},($e.length+2)*500)}}async function kQ(){return new Promise(A=>{_Q(document.getElementById("map")).then(t=>{A(t)})})}function GQ(A){const t=Ao(eo(),"HH_mm_ss"),e=document.createElement("a");e.download=`push-mines-${t.value}.gif`,e.style.display="none",e.href=A,document.body.appendChild(e),e.dispatchEvent(new MouseEvent("click")),document.body.removeChild(e)}const{map:NQ,setup:VQ}=Ut(),{position:PQ,setup:XQ,pushStep:JQ}=yr(),{positions:WQ,setup:ZQ}=_r(),{positions:YQ,setup:zQ}=ci();function HC({map:A,player:t,mines:e,boxes:r}){VQ(A),XQ(t),ZQ(e),zQ(r)}function IC(){return cr({map:NQ,player:PQ,mines:WQ,boxes:YQ})}function mC(A){A.length>0&&A.forEach((t,e)=>{setTimeout(async()=>{zB[t](),JQ(t)},500*(e+1))})}const qQ={__name:"Normal",props:{isEdit:Boolean},setup(A){return(t,e)=>(rA(),fA("div",{h5:"",w5:"",class:Bs({"border-gray-200 dark:border-gray-800 border-b border-l":A.isEdit})},null,2))}},jQ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAcJJREFUSEvtU79rFEEUfm9YFgvRIkWaU7t0EdIlJIW1+AeI6eLNu8UuXewCEky6gEWYjy0laKFYeJWNaEIErRKIYEiRhMAlIEnAIncMMzrcngzrwRVhAwGnnO/N+37Me0wVH664P/0nGJgwi4gvqrYA3NVarzHzZOnlPoA7WusmM9+PsMVOp7OUpulJH6YVAE8uheBjwb4L4LGIvCCi0ZKiFoCHIvKciCYi7GWSJK+ste/7OHgHYLn6KRKRnoNYxAcACyISlF0vqdsA8LTRaLz23g/3MGZ+5r0/JqKQQDhdB9Enx31WAUyLyBkR3SgRNAE8EJF9IroVYdPOuQOl1Kfi7p9ProZg4CBfsCBENF/0OAKworWeYebbpb6nIU8ReUREI1Hun9vt9nqapnN9dHwF0LyUPah2k7Msuxfsee9/GWO+ZVk2RkQ3Y8vW2vM8z7+IyKhSaqiHWWv3arXaQavVmipH5L0/NMbscI+g1PAoz/PvIjKllEpizDn3E8BWvV4fT5LkWoRtO+faSqkgMAjuElz9PYjG9K9bZt40xrwVkTB+cQyh5geA1T9bPlv6qzdEFDZ/pmjUHdML7tHA51ef4Dcz0C0oDQkmGQAAAABJRU5ErkJggg==",$Q={},AC={draggable:"true",h5:"",w5:"","overflow-hidden":""},eC=ti("img",{src:jQ,"scale-150":""},null,-1),tC=[eC];function rC(A,t){return rA(),fA("div",AC,tC)}const nC=to($Q,[["render",rC]]),{map:qB}=Ut(),{positions:iC,setup:aC,remove:sC}=_r(),{positions:BC,setup:oC,remove:lC}=ci(),{position:fC,setup:jB}=yr(),kr={type:Be.NORMAL,execute:(A,t)=>{qB[A.top][A.left]=Be.NORMAL,ni(fC,A)&&jB({top:-1,left:-1}),t!=="BOX"&&sC(A),t!=="MINES"&&lC(A)}},_C={type:Be.WALL,execute:A=>{qB[A.top][A.left]=Be.WALL}},yC={type:"PLAYER",execute:A=>{kr.execute(A),jB(A)}},bC={type:"MINES",execute:A=>{kr.execute(A,"MINES"),aC([...iC,A])}},xC={type:"BOX",execute:A=>{kr.execute(A,"BOX"),oC([...BC,A])}},cC=dt("edit",()=>{let A=ye(kr);function t(){return A}function e(r){A=r}return{selectElement:A,getSelectElement:t,setSelectElement:e}}),uC=["onMousedown","onMouseover","onMouseup"],LC=vr({__name:"Map",props:{isEdit:Boolean},setup(A){const t=A,{map:e}=Ut(),{getSelectElement:r}=cC();function n(B,o){r().execute&&r().execute({top:B,left:o})}const i=ss(!1);function a(B,o,c){B.preventDefault(),t.isEdit&&(n(o,c),i.value=!0)}function s(B,o){!t.isEdit||!i.value||n(B,o)}function l(B,o){t.isEdit&&(n(B,o),i.value=!1)}return(B,o)=>{const c=nC,f=qQ;return rA(),fA("div",{id:"map","border-grad-500":"",relative:"","m-auto":"","w-fit":"","overflow-hidden":"",class:Bs({"border-gray-200 dark:border-gray-800 border-t border-r":A.isEdit})},[(rA(!0),fA(sr,null,Br(Ie(e),(u,g)=>(rA(),fA("div",{key:g,flex:""},[(rA(!0),fA(sr,null,Br(u,(Q,w)=>(rA(),fA("div",{key:g*10+w,onMousedown:h=>a(h,g,w),onMouseover:h=>s(g,w),onMouseup:h=>l(g,w)},[Ie(e)[g][w]===Ie(Be).WALL?(rA(),Ui(c,{key:0})):(rA(),Ui(f,{key:1,"is-edit":A.isEdit},null,8,["is-edit"]))],40,uC))),128))]))),128)),ro(B.$slots,"default")],2)}}}),KC=vr({__name:"Boxes",setup(A){const{positions:t}=ci(),e=Xs(t);return(r,n)=>(rA(!0),fA(sr,null,Br(Ie(e),(i,a)=>(rA(),fA("div",{key:a,style:ri(i),"pointer-events-none":"",absolute:"",h5:"",w5:"",border:"","border-gray-400":"",rounded:"","dark:border-gray-500":""},null,4))),128))}}),gC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAhxJREFUSEvNlb+LE0EUx9+bXUFso6YShcP/wEJExF+lKIpaCGKxmTfRRrRUi2m0U8vszGwRCYKHICJio3gq+KMQ/AfsRHIoh5Zb3M7TCbkj5DbJ7mHAbV6xb76f92veIMz5wzr67Xb7cPBP0/RN1XP/F0ApdZaZ0Vr7+J9lIKU8j4j7mTlHxJ9D4e0AsA0RPxljFqfBSkskpTzJzL+EEKeZ+YVz7pXWOtZar46KKaWOMfMJ7/0TIUTDWvt0HFYKIKKDzHzFOXdBa7213++fQsQmACznef6s2+3mo0JE9DCKItvpdN5WBdyz1l4PzlLKAwCw4JzrJUlyMY7jr8aYj+NCRHTfWnttJoCIznnvfwsh3nvvQ9S74zjeu7Ky8qDRaFwCgM9pmn4ZF2q1WkcRcadz7tHovw0lIqJB9KEPQRwRV6Mo6hdF0Qy22Ww+11r7ssaWZbEBoJS6Y4y5mSTJZURcQsTjeZ4v9nq9H7NGk4huW2tvAQCv+Q4ASqlDwXrvdzDznizL7hLRAiLu895/c859mCU+7NdVIcTy3wEZBGOtXRoAiOhIsMwcALsCoIrguI+UMgC+A8AAYIx5N6lENzYDmFiisZleH9G6kEpNXhvTLMte1gFUHtNhT2pnUfmiDQHrq6JKFrVXRdmyKwNtetmNis1lXU8qi1LqDABsmfUGTN1F02oebnxRFHGWZa+r9Cb41HqT5w6oGvWo3x9U/yYo2FJH/gAAAABJRU5ErkJggg==",wC=ti("img",{src:gC},null,-1),hC=[wC],DC=vr({__name:"Mines",setup(A){const{positions:t}=_r(),e=Xs(t);return(r,n)=>(rA(!0),fA(sr,null,Br(Ie(e),(i,a)=>(rA(),fA("div",{key:a,"pointer-events-none":"",absolute:"",h5:"",w5:"",style:ri(i)},hC,4))),128))}}),QC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAjNJREFUSEvF1D1oFFEQB/D/vNtCiKioELzOKoKdWAQjRNQIJn50aYXLvjmbA21SWK2IqVMtt/PuBEux9CP4AadiFMFWBUGw8dDCoKhwEtzxVvZAk9vbS47DbXfe+82bN28IQ/5oyPujL6BcLp9V1XkA+9OEXgFYEJE7eQnmAtbaU0R0q9tGRDQTRdHdXkguwMzLAA5lbPJMRCYGBb4B2JqxyYqI7BoU+Axg59AAa+1TIupaBlVdds4dHugEvS5ZVaedc0sDAcniFLmUtukvVX1tjFnI66BkbW4X5fV53v//A1QqlW2tVusCgANEtKNXlqr6xRjzslAoLIZh+H1t7LoT+L6/1xjzHMAogB8ARnLK0IlpGmMmqtXq+7/j1wHMfA/AQVU91s5+EcBkDvDYGHMxjuNG2rYzmUAQBF6z2Uxebk1EKsz8qB9ARI4wcxXAuWKxOBIEQdxB/jkBM+8D8AbArIjc3AhgrZ0lohuqOuace5sFnACQlGhcRF5sBPB9fzy5u3aZptqv+2FXwFpriUg8z9sThuHHPoGGiBwtlUpFz/M+qOqcc+5aFnCFiOZFZAsAtdbeJ6KpnEteEpHp5NEy808AV0XkchZwnYiS8oylI6JGRHM5QCQi55MYZn6nqg3nnJ91B7eJSKMoOp0Cx9uT9EHPYUY0GUXRkxRIBt+qiJzpCvi+P6qqq/V6faUTYK09SURJhtvXQF9VNXTOJU3x52Pm3XEcF2q12qeuQN7g2sz/3y5r7BnDJ4R8AAAAAElFTkSuQmCC",CC=ti("img",{src:QC},null,-1),dC=[CC],SC=vr({__name:"Player",props:{isEdit:Boolean},setup(A){const t=A,{position:e,pushStep:r,moveLeft:n,moveRight:i,moveUp:a,moveDown:s}=yr(),l=ic(e),B={ArrowLeft:n,ArrowRight:i,ArrowUp:a,ArrowDown:s},o={ArrowUp:Ve.up,ArrowDown:Ve.down,ArrowRight:Ve.right,ArrowLeft:Ve.left};function c({key:u}){t.isEdit||Object.keys(B).includes(u)&&(r(o[u]),B[u]())}const f=no(window,"keydown",c);return io(f),(u,g)=>(rA(),fA("div",{"pointer-events-none":"",absolute:"",h5:"",w5:"",style:ri(Ie(l))},dC,4))}});export{xC as B,bC as M,kr as N,yC as P,_C as W,SC as _,_r as a,ci as b,pC as c,EC as d,vC as e,DC as f,KC as g,mC as h,FC as i,LC as j,Ut as k,IC as l,cC as m,nC as n,gC as o,QC as p,HC as s,yr as u}; diff --git a/docs/assets/_...all_-6d5f2e61.js b/docs/assets/_...all_-6d5f2e61.js new file mode 100644 index 0000000..75015af --- /dev/null +++ b/docs/assets/_...all_-6d5f2e61.js @@ -0,0 +1 @@ +import{m as e,c,o}from"./index-35f8c1f4.js";const _={};function n(t,r){return o(),c("div",null," Not Found ")}const s=e(_,[["render",n]]);export{s as default}; diff --git a/docs/assets/edit-02d5cd50.js b/docs/assets/edit-02d5cd50.js new file mode 100644 index 0000000..7a76f3d --- /dev/null +++ b/docs/assets/edit-02d5cd50.js @@ -0,0 +1 @@ +import{k as R,u as T,b as U,a as W,l as D,s as G,m as q,W as I,M as L,B as Y,N as z,P as F,n as H,j as J,o as K,p as Q,f as X,g as Z,_ as ee}from"./Player.vue_vue_type_script_setup_true_lang-91e3e424.js";import{d as te,r as b,e as ne,w as h,p as oe,o as se,c as ie,j as re,a as n,k as x,q as k,h as a,s as w,g as f,i as le}from"./index-35f8c1f4.js";const ae={"m-auto":"","w-fit":"",p4:""},pe={flex:"","justify-center":"",p2:""},ce={flex:"","place-content-between":""},ue=n("label",{for:"rows"},"rows: ",-1),de={"ml-2":"",flex:"","place-content-between":""},fe=n("label",{for:"cols"},"cols: ",-1),me={flex:"","place-content-around":"","items-center":"","py-2":""},_e=n("img",{src:K},null,-1),ge=[_e],ve=n("div",{h4:"",w4:"",border:"~ rounded gray-200 dark:gray-400"},null,-1),ye=[ve],be=n("img",{src:Q},null,-1),he=[be],E=!0,Ee=te({__name:"edit",setup(xe){const c=b(8),p=b(8),{map:r,setup:m}=R(),{position:_,setup:g}=T(),{positions:o,setup:v}=U(),{positions:s,setup:y}=W(),C=ne(()=>`/?game=${D()}`),u={top:-1,left:-1};G({map:Array.from({length:c.value},()=>Array.from({length:p.value},()=>0)),mines:[],boxes:[],player:Object.assign({},u)}),h(c,(t,e)=>{e0)),m(r)):(r.pop(),m(r),M(t))});function M(t){_.top===t&&g(Object.assign({},u));for(let e=0;e{ei.push(0)),m(r)):(r.forEach(i=>i.pop()),m(r),$(t))});function $(t){_.left===t&&g(Object.assign({},u));for(let e=0;e{const i=H,A=X,N=Z,V=ee,O=J;return se(),ie("div",ae,[re(" EDIT MAP "),n("div",pe,[n("div",ce,[ue,x(n("input",{id:"rows","onUpdate:modelValue":e[0]||(e[0]=l=>w(c)?c.value=l:null),type:"number","ml-2":"","w-12":"",p0:"",text:"center",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"},null,512),[[k,a(c)]])]),n("div",de,[fe,x(n("input",{id:"cols","onUpdate:modelValue":e[1]||(e[1]=l=>w(p)?p.value=l:null),type:"number","ml-2":"","w-12":"",p0:"",text:"center",bg:"transparent",border:"~ rounded gray-200 dark:gray-700",outline:"none active:none"},null,512),[[k,a(p)]])])]),n("div",me,[f(i,{onClick:e[2]||(e[2]=l=>d(a(I)))}),n("div",{onClick:e[3]||(e[3]=l=>d(a(L)))},ge),n("div",{h5:"",w5:"",flex:"","items-center":"","justify-center":"",border:"~ rounded gray-200 dark:gray-400",onClick:e[4]||(e[4]=l=>d(a(Y)))},ye),n("div",{title:"clear",h5:"",w5:"",border:"~ rounded gray-200 dark:gray-400",onClick:e[5]||(e[5]=l=>d(a(z)))}),n("div",{onClick:e[6]||(e[6]=l=>d(a(F)))},he)]),f(O,{"is-edit":E},{default:le(()=>[f(A),f(N),f(V,{"is-edit":E})]),_:1}),n("div",{"mt-4":"",btn:"",onClick:j}," GO PLAY ")])}}});export{Ee as default}; diff --git a/docs/assets/index-269d4ed0.css b/docs/assets/index-269d4ed0.css new file mode 100644 index 0000000..8c1463e --- /dev/null +++ b/docs/assets/index-269d4ed0.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}html,body,#app{height:100%;margin:0;padding:0}html.dark{background:#121212}*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset: ;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }@font-face{font-family:DM Mono;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmmono/v14/aFTU7PB1QTsUX8KYthSQBLyM.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmmono/v14/aFTU7PB1QTsUX8KYthqQBA.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRR232VGM.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxRSW32.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:"DM Serif Display";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmserifdisplay/v15/-nFnOHM81r4j6k0gjAW3mujVU2B2G_5x0ujy.woff2) format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"DM Serif Display";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/dmserifdisplay/v15/-nFnOHM81r4j6k0gjAW3mujVU2B2G_Bx0g.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.dark .dark\:i-carbon-moon,.dark [dark\:i-carbon-moon=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M13.503 5.414a15.076 15.076 0 0 0 11.593 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.i-carbon-logo-github,[i-carbon-logo-github=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M16 2a14 14 0 0 0-4.43 27.28c.7.13 1-.3 1-.67v-2.38c-3.89.84-4.71-1.88-4.71-1.88a3.71 3.71 0 0 0-1.62-2.05c-1.27-.86.1-.85.1-.85a2.94 2.94 0 0 1 2.14 1.45a3 3 0 0 0 4.08 1.16a2.93 2.93 0 0 1 .88-1.87c-3.1-.36-6.37-1.56-6.37-6.92a5.4 5.4 0 0 1 1.44-3.76a5 5 0 0 1 .14-3.7s1.17-.38 3.85 1.43a13.3 13.3 0 0 1 7 0c2.67-1.81 3.84-1.43 3.84-1.43a5 5 0 0 1 .14 3.7a5.4 5.4 0 0 1 1.44 3.76c0 5.38-3.27 6.56-6.39 6.91a3.33 3.33 0 0 1 .95 2.59v3.84c0 .46.25.81 1 .67A14 14 0 0 0 16 2'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.i-carbon-sun,[i-carbon-sun=""]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 32 32' width='1.2em' height='1.2em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6M5.394 6.813L6.81 5.399l3.505 3.506L8.9 10.319zM2 15.005h5v2H2zm3.394 10.193L8.9 21.692l1.414 1.414l-3.505 3.506zM15 25.005h2v5h-2zm6.687-1.9l1.414-1.414l3.506 3.506l-1.414 1.414zm3.313-8.1h5v2h-5zm-3.313-6.101l3.506-3.506l1.414 1.414l-3.506 3.506zM15 2.005h2v5h-2z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1.2em;height:1.2em}.btn,[btn=""]{display:inline-block;cursor:pointer;border-radius:.25rem;--un-bg-opacity:1;background-color:rgba(75,85,99,var(--un-bg-opacity));padding:.25rem .5rem;font-size:.75rem;--un-text-opacity:1;color:rgba(255,255,255,var(--un-text-opacity))}.icon-btn,[icon-btn=""]{display:inline-block;cursor:pointer;-webkit-user-select:none;user-select:none;font-size:.9em;opacity:.75;outline:2px solid transparent!important;outline-offset:2px!important;transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.2s}.btn:disabled,[btn=""]:disabled{cursor:default;--un-bg-opacity:1;background-color:rgba(75,85,99,var(--un-bg-opacity));opacity:.5}.btn:hover,[btn=""]:hover{--un-bg-opacity:1;background-color:rgba(55,65,81,var(--un-bg-opacity))}.icon-btn:hover,[icon-btn=""]:hover{--un-text-opacity:1;color:rgba(13,148,136,var(--un-text-opacity));opacity:1}.pointer-events-none,[pointer-events-none=""]{pointer-events:none}.absolute,[absolute=""]{position:absolute}.fixed,[fixed=""]{position:fixed}.relative,[relative=""]{position:relative}.bottom-0,[bottom-0=""]{bottom:0}.left-0,[left-0=""]{left:0}.right-0,[right-0=""]{right:0}.top-0,[top-0=""]{top:0}.m-auto,[m-auto=""]{margin:auto}.my-2,[my-2=""]{margin-top:.5rem;margin-bottom:.5rem}.mb-2,[mb-2=""]{margin-bottom:.5rem}.ml-2,[ml-2=""]{margin-left:.5rem}.ml-8,[ml-8=""]{margin-left:2rem}.mr-2,[mr-2=""]{margin-right:.5rem}.mt--40,[mt--40=""]{margin-top:-10rem}.mt-4,[mt-4=""]{margin-top:1rem}.mt-6,[mt-6=""]{margin-top:1.5rem}.h4,[h4=""]{height:1rem}.h5,[h5=""]{height:1.25rem}.h6{height:1.5rem}.w-12,[w-12=""]{width:3rem}.w-60,[w-60=""]{width:15rem}.w-fit,[w-fit=""]{width:fit-content}.w4,[w4=""]{width:1rem}.w5,[w5=""]{width:1.25rem}.flex,[flex=""]{display:flex}.inline-flex,[inline-flex=""]{display:inline-flex}[scale-150=""]{--un-scale-x:1.5;--un-scale-y:1.5;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.place-content-between,[place-content-between=""]{place-content:space-between}.place-content-around,[place-content-around=""]{place-content:space-around}.items-center,[items-center=""]{align-items:center}.justify-center,[justify-center=""]{justify-content:center}.justify-between,[justify-between=""]{justify-content:space-between}.gap-2,[gap-2=""]{grid-gap:.5rem;gap:.5rem}.overflow-hidden,[overflow-hidden=""]{overflow:hidden}.border,[border=""],[border~="~"]{border-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-gray-200,[border~=gray-200]{--un-border-opacity:1;border-color:rgba(229,231,235,var(--un-border-opacity))}.border-gray-400,.dark [border~="dark:gray-400"],[border-gray-400=""]{--un-border-opacity:1;border-color:rgba(156,163,175,var(--un-border-opacity))}.dark .dark\:border-gray-500,.dark [dark\:border-gray-500=""]{--un-border-opacity:1;border-color:rgba(107,114,128,var(--un-border-opacity))}.dark .dark\:border-gray-800{--un-border-opacity:1;border-color:rgba(31,41,55,var(--un-border-opacity))}.dark [border~="dark:gray-700"]{--un-border-opacity:1;border-color:rgba(55,65,81,var(--un-border-opacity))}.b-rd-1,.rounded,[b-rd-1=""],[border~=rounded],[rounded=""]{border-radius:.25rem}.bg-gray-600,[bg-gray-600=""]{--un-bg-opacity:1;background-color:rgba(75,85,99,var(--un-bg-opacity))}.bg-white,[bg-white=""]{--un-bg-opacity:1;background-color:rgba(255,255,255,var(--un-bg-opacity))}.dark .dark\:bg-black,.dark [dark\:bg-black=""]{--un-bg-opacity:1;background-color:rgba(0,0,0,var(--un-bg-opacity))}.dark .dark\:bg-hex-121212{--un-bg-opacity:1;background-color:rgba(18,18,18,var(--un-bg-opacity))}[bg~=transparent]{background-color:transparent}.p0,[p0=""]{padding:0}.p2,[p2=""]{padding:.5rem}.p4,[p4=""]{padding:1rem}.py-2,[py-2=""]{padding-top:.5rem;padding-bottom:.5rem}[p~=x-4]{padding-left:1rem;padding-right:1rem}[p~=y-10]{padding-top:2.5rem;padding-bottom:2.5rem}[text~=center]{text-align:center}.font-sans,[font-sans=""]{font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}[text-xl=""]{font-size:1.25rem;line-height:1.75rem}.dark .dark\:text-white{--un-text-opacity:1;color:rgba(255,255,255,var(--un-text-opacity))}.dark [text~="dark:gray-200"]{--un-text-opacity:1;color:rgba(229,231,235,var(--un-text-opacity))}[text~=gray-700]{--un-text-opacity:1;color:rgba(55,65,81,var(--un-text-opacity))}.outline{outline-style:solid}[outline~=none],[outline~="active:none"]:active{outline:2px solid transparent;outline-offset:2px} diff --git a/docs/assets/index-35f8c1f4.js b/docs/assets/index-35f8c1f4.js new file mode 100644 index 0000000..39dbe04 --- /dev/null +++ b/docs/assets/index-35f8c1f4.js @@ -0,0 +1,25 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/** +* @vue/shared v3.4.21 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function yr(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const re={},Et=[],Re=()=>{},wi=()=>!1,An=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vr=e=>e.startsWith("onUpdate:"),ge=Object.assign,br=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ei=Object.prototype.hasOwnProperty,z=(e,t)=>Ei.call(e,t),V=Array.isArray,St=e=>On(e)==="[object Map]",Gs=e=>On(e)==="[object Set]",U=e=>typeof e=="function",ae=e=>typeof e=="string",It=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",Ys=e=>(se(e)||U(e))&&U(e.then)&&U(e.catch),Js=Object.prototype.toString,On=e=>Js.call(e),Si=e=>On(e).slice(8,-1),Qs=e=>On(e)==="[object Object]",wr=e=>ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ht=yr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},xi=/-(\w)/g,Ve=Mn(e=>e.replace(xi,(t,n)=>n?n.toUpperCase():"")),Ri=/\B([A-Z])/g,Lt=Mn(e=>e.replace(Ri,"-$1").toLowerCase()),Tn=Mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kn=Mn(e=>e?`on${Tn(e)}`:""),st=(e,t)=>!Object.is(e,t),gn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},nr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Yr;const Xs=()=>Yr||(Yr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Er(e){if(V(e)){const t={};for(let n=0;n{if(n){const r=n.split(Pi);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Sr(e){let t="";if(ae(e))t=e;else if(V(e))for(let n=0;nae(e)?e:e==null?"":V(e)||se(e)&&(e.toString===Js||!U(e.toString))?JSON.stringify(e,eo,2):String(e),eo=(e,t)=>t&&t.__v_isRef?eo(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Wn(r,o)+" =>"]=s,n),{})}:Gs(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Wn(n))}:It(t)?Wn(t):se(t)&&!V(t)&&!Qs(t)?String(t):t,Wn=(e,t="")=>{var n;return It(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.4.21 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let xe;class to{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=xe,!t&&xe&&(this.index=(xe.scopes||(xe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=xe;try{return xe=this,t()}finally{xe=n}}}on(){xe=this}off(){xe=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),gt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=et,n=at;try{return et=!0,at=this,this._runnings++,Jr(this),this.fn()}finally{Qr(this),this._runnings--,at=n,et=t}}stop(){var t;this.active&&(Jr(this),Qr(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Li(e){return e.value}function Jr(e){e._trackId++,e._depsLength=0}function Qr(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},bn=new WeakMap,dt=Symbol(""),or=Symbol("");function Ee(e,t,n){if(et&&at){let r=bn.get(e);r||bn.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=co(()=>r.delete(n))),io(at,s)}}function Ke(e,t,n,r,s,o){const i=bn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&V(e)){const c=Number(r);i.forEach((a,u)=>{(u==="length"||!It(u)&&u>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":V(e)?wr(n)&&l.push(i.get("length")):(l.push(i.get(dt)),St(e)&&l.push(i.get(or)));break;case"delete":V(e)||(l.push(i.get(dt)),St(e)&&l.push(i.get(or)));break;case"set":St(e)&&l.push(i.get(dt));break}Cr();for(const c of l)c&&lo(c,4);Pr()}function Fi(e,t){var n;return(n=bn.get(e))==null?void 0:n.get(t)}const Ni=yr("__proto__,__v_isRef,__isVue"),uo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(It)),Xr=$i();function $i(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=G(this);for(let o=0,i=this.length;o{e[t]=function(...n){pt(),Cr();const r=G(this)[t].apply(this,n);return Pr(),gt(),r}}),e}function ji(e){const t=G(this);return Ee(t,"has",e),t.hasOwnProperty(e)}class fo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Ji:go:o?po:ho).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=V(t);if(!s){if(i&&z(Xr,n))return Reflect.get(Xr,n,r);if(n==="hasOwnProperty")return ji}const l=Reflect.get(t,n,r);return(It(n)?uo.has(n):Ni(n))||(s||Ee(t,"get",n),o)?l:le(l)?i&&wr(n)?l:l.value:se(l)?s?Ft(l):tn(l):l}}class ao extends fo{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=Ct(o);if(!wn(r)&&!Ct(r)&&(o=G(o),r=G(r)),!V(t)&&le(o)&&!le(r))return c?!1:(o.value=r,!0)}const i=V(t)&&wr(n)?Number(n)e,In=e=>Reflect.getPrototypeOf(e);function ln(e,t,n=!1,r=!1){e=e.__v_raw;const s=G(e),o=G(t);n||(st(t,o)&&Ee(s,"get",t),Ee(s,"get",o));const{has:i}=In(s),l=r?Ar:n?Tr:Gt;if(i.call(s,t))return l(e.get(t));if(i.call(s,o))return l(e.get(o));e!==s&&e.get(t)}function cn(e,t=!1){const n=this.__v_raw,r=G(n),s=G(e);return t||(st(e,s)&&Ee(r,"has",e),Ee(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function un(e,t=!1){return e=e.__v_raw,!t&&Ee(G(e),"iterate",dt),Reflect.get(e,"size",e)}function Zr(e){e=G(e);const t=G(this);return In(t).has.call(t,e)||(t.add(e),Ke(t,"add",e,e)),this}function es(e,t){t=G(t);const n=G(this),{has:r,get:s}=In(n);let o=r.call(n,e);o||(e=G(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?st(t,i)&&Ke(n,"set",e,t):Ke(n,"add",e,t),this}function ts(e){const t=G(this),{has:n,get:r}=In(t);let s=n.call(t,e);s||(e=G(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Ke(t,"delete",e,void 0),o}function ns(){const e=G(this),t=e.size!==0,n=e.clear();return t&&Ke(e,"clear",void 0,void 0),n}function fn(e,t){return function(r,s){const o=this,i=o.__v_raw,l=G(i),c=t?Ar:e?Tr:Gt;return!e&&Ee(l,"iterate",dt),i.forEach((a,u)=>r.call(s,c(a),c(u),o))}}function an(e,t,n){return function(...r){const s=this.__v_raw,o=G(s),i=St(o),l=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,a=s[e](...r),u=n?Ar:t?Tr:Gt;return!t&&Ee(o,"iterate",c?or:dt),{next(){const{value:h,done:p}=a.next();return p?{value:h,done:p}:{value:l?[u(h[0]),u(h[1])]:u(h),done:p}},[Symbol.iterator](){return this}}}}function ze(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Bi(){const e={get(o){return ln(this,o)},get size(){return un(this)},has:cn,add:Zr,set:es,delete:ts,clear:ns,forEach:fn(!1,!1)},t={get(o){return ln(this,o,!1,!0)},get size(){return un(this)},has:cn,add:Zr,set:es,delete:ts,clear:ns,forEach:fn(!1,!0)},n={get(o){return ln(this,o,!0)},get size(){return un(this,!0)},has(o){return cn.call(this,o,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:fn(!0,!1)},r={get(o){return ln(this,o,!0,!0)},get size(){return un(this,!0)},has(o){return cn.call(this,o,!0)},add:ze("add"),set:ze("set"),delete:ze("delete"),clear:ze("clear"),forEach:fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=an(o,!1,!1),n[o]=an(o,!0,!1),t[o]=an(o,!1,!0),r[o]=an(o,!0,!0)}),[e,n,t,r]}const[Ui,Ki,Wi,qi]=Bi();function Or(e,t){const n=t?e?qi:Wi:e?Ki:Ui;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(z(n,s)&&s in r?n:r,s,o)}const zi={get:Or(!1,!1)},Gi={get:Or(!1,!0)},Yi={get:Or(!0,!1)},ho=new WeakMap,po=new WeakMap,go=new WeakMap,Ji=new WeakMap;function Qi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xi(e){return e.__v_skip||!Object.isExtensible(e)?0:Qi(Si(e))}function tn(e){return Ct(e)?e:Mr(e,!1,ki,zi,ho)}function mo(e){return Mr(e,!1,Vi,Gi,po)}function Ft(e){return Mr(e,!0,Hi,Yi,go)}function Mr(e,t,n,r,s){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Xi(e);if(i===0)return e;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function tt(e){return Ct(e)?tt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ct(e){return!!(e&&e.__v_isReadonly)}function wn(e){return!!(e&&e.__v_isShallow)}function _o(e){return tt(e)||Ct(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Ln(e){return Object.isExtensible(e)&&vn(e,"__v_skip",!0),e}const Gt=e=>se(e)?tn(e):e,Tr=e=>se(e)?Ft(e):e;class yo{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Rr(()=>t(this._value),()=>Vt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=G(this);return(!t._cacheable||t.effect.dirty)&&st(t._value,t._value=t.effect.run())&&Vt(t,4),Ir(t),t.effect._dirtyLevel>=2&&Vt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Zi(e,t,n=!1){let r,s;const o=U(e);return o?(r=e,s=Re):(r=e.get,s=e.set),new yo(r,s,o||!s,n)}function Ir(e){var t;et&&at&&(e=G(e),io(at,(t=e.dep)!=null?t:e.dep=co(()=>e.dep=void 0,e instanceof yo?e:void 0)))}function Vt(e,t=4,n){e=G(e);const r=e.dep;r&&lo(r,t)}function le(e){return!!(e&&e.__v_isRef===!0)}function pe(e){return bo(e,!1)}function vo(e){return bo(e,!0)}function bo(e,t){return le(e)?e:new el(e,t)}class el{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:Gt(t)}get value(){return Ir(this),this._value}set value(t){const n=this.__v_isShallow||wn(t)||Ct(t);t=n?t:G(t),st(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Gt(t),Vt(this,4))}}function nt(e){return le(e)?e.value:e}const tl={get:(e,t,n)=>nt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return le(s)&&!le(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function wo(e){return tt(e)?e:new Proxy(e,tl)}class nl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>Ir(this),()=>Vt(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function rl(e){return new nl(e)}function sl(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=Eo(e,n);return t}class ol{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Fi(G(this._object),this._key)}}class il{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ll(e,t,n){return le(e)?e:U(e)?new il(e):se(e)&&arguments.length>1?Eo(e,t,n):pe(e)}function Eo(e,t,n){const r=e[t];return le(r)?r:new ol(e,t,n)}/** +* @vue/runtime-core v3.4.21 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function rt(e,t,n,r){try{return r?e(...r):e()}catch(s){Fn(s,t,n)}}function Le(e,t,n,r){if(U(e)){const o=rt(e,t,n,r);return o&&Ys(o)&&o.catch(i=>{Fn(i,t,n)}),o}const s=[];for(let o=0;o>>1,s=_e[r],o=Jt(s);oke&&_e.splice(t,1)}function al(e){V(e)?xt.push(...e):(!Je||!Je.includes(e,e.allowRecurse?ut+1:ut))&&xt.push(e),xo()}function rs(e,t,n=Yt?ke+1:0){for(;n<_e.length;n++){const r=_e[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;_e.splice(n,1),n--,r()}}}function Ro(e){if(xt.length){const t=[...new Set(xt)].sort((n,r)=>Jt(n)-Jt(r));if(xt.length=0,Je){Je.push(...t);return}for(Je=t,ut=0;ute.id==null?1/0:e.id,dl=(e,t)=>{const n=Jt(e)-Jt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Co(e){ir=!1,Yt=!0,_e.sort(dl);const t=Re;try{for(ke=0;ke<_e.length;ke++){const n=_e[ke];n&&n.active!==!1&&rt(n,null,14)}}finally{ke=0,_e.length=0,Ro(),Yt=!1,Lr=null,(_e.length||xt.length)&&Co()}}function hl(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||re;let s=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:p}=r[u]||re;p&&(s=n.map(m=>ae(m)?m.trim():m)),h&&(s=n.map(nr))}let l,c=r[l=Kn(t)]||r[l=Kn(Ve(t))];!c&&o&&(c=r[l=Kn(Lt(t))]),c&&Le(c,e,6,s);const a=r[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Le(a,e,6,s)}}function Po(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},l=!1;if(!U(e)){const c=a=>{const u=Po(a,t,!0);u&&(l=!0,ge(i,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(se(e)&&r.set(e,null),null):(V(o)?o.forEach(c=>i[c]=null):ge(i,o),se(e)&&r.set(e,i),i)}function Nn(e,t){return!e||!An(t)?!1:(t=t.slice(2).replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,Lt(t))||z(e,t))}let fe=null,Ao=null;function En(e){const t=fe;return fe=e,Ao=e&&e.type.__scopeId||null,t}function pl(e,t=fe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ps(-1);const o=En(t);let i;try{i=e(...s)}finally{En(o),r._d&&ps(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function qn(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:l,attrs:c,emit:a,render:u,renderCache:h,data:p,setupState:m,ctx:S,inheritAttrs:A}=e;let I,O;const R=En(e);try{if(n.shapeFlag&4){const j=s||r,K=j;I=De(u.call(K,j,h,o,m,p,S)),O=c}else{const j=t;I=De(j.length>1?j(o,{attrs:c,slots:l,emit:a}):j(o,null)),O=t.props?c:gl(c)}}catch(j){Kt.length=0,Fn(j,e,1),I=ve(Pt)}let L=I;if(O&&A!==!1){const j=Object.keys(O),{shapeFlag:K}=L;j.length&&K&7&&(i&&j.some(vr)&&(O=ml(O,i)),L=At(L,O))}return n.dirs&&(L=At(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),I=L,En(R),I}const gl=e=>{let t;for(const n in e)(n==="class"||n==="style"||An(n))&&((t||(t={}))[n]=e[n]);return t},ml=(e,t)=>{const n={};for(const r in e)(!vr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function _l(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:l,patchFlag:c}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?ss(r,i,a):!!i;if(c&8){const u=t.dynamicProps;for(let h=0;he.__isSuspense;function Sl(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):al(e)}const xl=Symbol.for("v-scx"),Rl=()=>Ae(xl);function Cl(e,t){return Nr(e,null,t)}const dn={};function He(e,t,n){return Nr(e,t,n)}function Nr(e,t,{immediate:n,deep:r,flush:s,once:o,onTrack:i,onTrigger:l}=re){if(t&&o){const k=t;t=(...ee)=>{k(...ee),K()}}const c=he,a=k=>r===!0?k:ft(k,r===!1?1:void 0);let u,h=!1,p=!1;if(le(e)?(u=()=>e.value,h=wn(e)):tt(e)?(u=()=>a(e),h=!0):V(e)?(p=!0,h=e.some(k=>tt(k)||wn(k)),u=()=>e.map(k=>{if(le(k))return k.value;if(tt(k))return a(k);if(U(k))return rt(k,c,2)})):U(e)?t?u=()=>rt(e,c,2):u=()=>(m&&m(),Le(e,c,3,[S])):u=Re,t&&r){const k=u;u=()=>ft(k())}let m,S=k=>{m=L.onStop=()=>{rt(k,c,4),m=L.onStop=void 0}},A;if(kn)if(S=Re,t?n&&Le(t,c,3,[u(),p?[]:void 0,S]):u(),s==="sync"){const k=Rl();A=k.__watcherHandles||(k.__watcherHandles=[])}else return Re;let I=p?new Array(e.length).fill(dn):dn;const O=()=>{if(!(!L.active||!L.dirty))if(t){const k=L.run();(r||h||(p?k.some((ee,H)=>st(ee,I[H])):st(k,I)))&&(m&&m(),Le(t,c,3,[k,I===dn?void 0:p&&I[0]===dn?[]:I,S]),I=k)}else L.run()};O.allowRecurse=!!t;let R;s==="sync"?R=O:s==="post"?R=()=>we(O,c&&c.suspense):(O.pre=!0,c&&(O.id=c.uid),R=()=>Fr(O));const L=new Rr(u,Re,R),j=xr(),K=()=>{L.stop(),j&&br(j.effects,L)};return t?n?O():I=L.run():s==="post"?we(L.run.bind(L),c&&c.suspense):L.run(),A&&A.push(K),K}function Pl(e,t,n){const r=this.proxy,s=ae(e)?e.includes(".")?Mo(r,e):()=>r[e]:e.bind(r,r);let o;U(t)?o=t:(o=t.handler,n=t);const i=sn(this),l=Nr(s,o.bind(r),n);return i(),l}function Mo(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),le(e))ft(e.value,t,n,r);else if(V(e))for(let s=0;s{ft(s,t,n,r)});else if(Qs(e))for(const s in e)ft(e[s],t,n,r);return e}function Zf(e,t){if(fe===null)return e;const n=Hn(fe)||fe.proxy,r=e.dirs||(e.dirs=[]);for(let s=0;sge({name:e.name},t,{setup:e}))():e}const Bt=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function Al(e,t){Lo(e,"a",t)}function Ol(e,t){Lo(e,"da",t)}function Lo(e,t,n=he){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if($n(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Io(s.parent.vnode)&&Ml(r,t,n,s),s=s.parent}}function Ml(e,t,n,r){const s=$n(t,e,r,!0);Fo(()=>{br(r[t],s)},n)}function $n(e,t,n=he,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;pt();const l=sn(n),c=Le(t,n,e,i);return l(),gt(),c});return r?s.unshift(o):s.push(o),o}}const We=e=>(t,n=he)=>(!kn||e==="sp")&&$n(e,(...r)=>t(...r),n),Tl=We("bm"),$r=We("m"),Il=We("bu"),Ll=We("u"),Fl=We("bum"),Fo=We("um"),Nl=We("sp"),$l=We("rtg"),jl=We("rtc");function Dl(e,t=he){$n("ec",e,t)}function ea(e,t,n,r){let s;const o=n&&n[r];if(V(e)||ae(e)){s=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,c=i.length;lxn(t)?!(t.type===Pt||t.type===Te&&!No(t.children)):!0)?e:null}const lr=e=>e?Yo(e)?Hn(e)||e.proxy:lr(e.parent):null,Ut=ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>lr(e.parent),$root:e=>lr(e.root),$emit:e=>e.emit,$options:e=>jr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Fr(e.update)}),$nextTick:e=>e.n||(e.n=nn.bind(e.proxy)),$watch:e=>Pl.bind(e)}),zn=(e,t)=>e!==re&&!e.__isScriptSetup&&z(e,t),kl={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:l,appContext:c}=e;let a;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(zn(r,t))return i[t]=1,r[t];if(s!==re&&z(s,t))return i[t]=2,s[t];if((a=e.propsOptions[0])&&z(a,t))return i[t]=3,o[t];if(n!==re&&z(n,t))return i[t]=4,n[t];cr&&(i[t]=0)}}const u=Ut[t];let h,p;if(u)return t==="$attrs"&&Ee(e,"get",t),u(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==re&&z(n,t))return i[t]=4,n[t];if(p=c.config.globalProperties,z(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return zn(s,t)?(s[t]=n,!0):r!==re&&z(r,t)?(r[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let l;return!!n[i]||e!==re&&z(e,i)||zn(t,i)||(l=o[0])&&z(l,i)||z(r,i)||z(Ut,i)||z(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function is(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cr=!0;function Hl(e){const t=jr(e),n=e.proxy,r=e.ctx;cr=!1,t.beforeCreate&&ls(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:l,provide:c,inject:a,created:u,beforeMount:h,mounted:p,beforeUpdate:m,updated:S,activated:A,deactivated:I,beforeDestroy:O,beforeUnmount:R,destroyed:L,unmounted:j,render:K,renderTracked:k,renderTriggered:ee,errorCaptured:H,serverPrefetch:W,expose:N,inheritAttrs:Y,components:ce,directives:Ce,filters:ot}=t;if(a&&Vl(a,r,null),i)for(const te in i){const Q=i[te];U(Q)&&(r[te]=Q.bind(n))}if(s){const te=s.call(n,n);se(te)&&(e.data=tn(te))}if(cr=!0,o)for(const te in o){const Q=o[te],Be=U(Q)?Q.bind(n,n):U(Q.get)?Q.get.bind(n,n):Re,qe=!U(Q)&&U(Q.set)?Q.set.bind(n):Re,Ne=ue({get:Be,set:qe});Object.defineProperty(r,te,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:be=>Ne.value=be})}if(l)for(const te in l)$o(l[te],r,n,te);if(c){const te=U(c)?c.call(n):c;Reflect.ownKeys(te).forEach(Q=>{mn(Q,te[Q])})}u&&ls(u,e,"c");function J(te,Q){V(Q)?Q.forEach(Be=>te(Be.bind(n))):Q&&te(Q.bind(n))}if(J(Tl,h),J($r,p),J(Il,m),J(Ll,S),J(Al,A),J(Ol,I),J(Dl,H),J(jl,k),J($l,ee),J(Fl,R),J(Fo,j),J(Nl,W),V(N))if(N.length){const te=e.exposed||(e.exposed={});N.forEach(Q=>{Object.defineProperty(te,Q,{get:()=>n[Q],set:Be=>n[Q]=Be})})}else e.exposed||(e.exposed={});K&&e.render===Re&&(e.render=K),Y!=null&&(e.inheritAttrs=Y),ce&&(e.components=ce),Ce&&(e.directives=Ce)}function Vl(e,t,n=Re){V(e)&&(e=ur(e));for(const r in e){const s=e[r];let o;se(s)?"default"in s?o=Ae(s.from||r,s.default,!0):o=Ae(s.from||r):o=Ae(s),le(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function ls(e,t,n){Le(V(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function $o(e,t,n,r){const s=r.includes(".")?Mo(n,r):()=>n[r];if(ae(e)){const o=t[e];U(o)&&He(s,o)}else if(U(e))He(s,e.bind(n));else if(se(e))if(V(e))e.forEach(o=>$o(o,t,n,r));else{const o=U(e.handler)?e.handler.bind(n):t[e.handler];U(o)&&He(s,o,e)}}function jr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let c;return l?c=l:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(a=>Sn(c,a,i,!0)),Sn(c,t,i)),se(t)&&o.set(t,c),c}function Sn(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Sn(e,o,n,!0),s&&s.forEach(i=>Sn(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const l=Bl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Bl={data:cs,props:us,emits:us,methods:kt,computed:kt,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:kt,directives:kt,watch:Kl,provide:cs,inject:Ul};function cs(e,t){return t?e?function(){return ge(U(e)?e.call(this,this):e,U(t)?t.call(this,this):t)}:t:e}function Ul(e,t){return kt(ur(e),ur(t))}function ur(e){if(V(e)){const t={};for(let n=0;n1)return n&&U(t)?t.call(r&&r.proxy):t}}function zl(){return!!(he||fe||Rt)}function Gl(e,t,n,r=!1){const s={},o={};vn(o,Dn,1),e.propsDefaults=Object.create(null),Do(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:mo(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function Yl(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,l=G(s),[c]=e.propsOptions;let a=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[p,m]=ko(h,t,!0);ge(i,p),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return se(e)&&r.set(e,Et),Et;if(V(o))for(let u=0;u-1,m[1]=A<0||S-1||z(m,"default"))&&l.push(h)}}}const a=[i,l];return se(e)&&r.set(e,a),a}function fs(e){return e[0]!=="$"&&!Ht(e)}function as(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function ds(e,t){return as(e)===as(t)}function hs(e,t){return V(t)?t.findIndex(n=>ds(n,e)):U(t)&&ds(t,e)?0:-1}const Ho=e=>e[0]==="_"||e==="$stable",Dr=e=>V(e)?e.map(De):[De(e)],Jl=(e,t,n)=>{if(t._n)return t;const r=pl((...s)=>Dr(t(...s)),n);return r._c=!1,r},Vo=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ho(s))continue;const o=e[s];if(U(o))t[s]=Jl(s,o,r);else if(o!=null){const i=Dr(o);t[s]=()=>i}}},Bo=(e,t)=>{const n=Dr(t);e.slots.default=()=>n},Ql=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),vn(t,"_",n)):Vo(t,e.slots={})}else e.slots={},t&&Bo(e,t);vn(e.slots,Dn,1)},Xl=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=re;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(ge(s,t),!n&&l===1&&delete s._):(o=!t.$stable,Vo(t,s)),i=t}else t&&(Bo(e,t),i={default:1});if(o)for(const l in s)!Ho(l)&&i[l]==null&&delete s[l]};function ar(e,t,n,r,s=!1){if(V(e)){e.forEach((p,m)=>ar(p,t&&(V(t)?t[m]:t),n,r,s));return}if(Bt(r)&&!s)return;const o=r.shapeFlag&4?Hn(r.component)||r.component.proxy:r.el,i=s?null:o,{i:l,r:c}=e,a=t&&t.r,u=l.refs===re?l.refs={}:l.refs,h=l.setupState;if(a!=null&&a!==c&&(ae(a)?(u[a]=null,z(h,a)&&(h[a]=null)):le(a)&&(a.value=null)),U(c))rt(c,l,12,[i,u]);else{const p=ae(c),m=le(c);if(p||m){const S=()=>{if(e.f){const A=p?z(h,c)?h[c]:u[c]:c.value;s?V(A)&&br(A,o):V(A)?A.includes(o)||A.push(o):p?(u[c]=[o],z(h,c)&&(h[c]=u[c])):(c.value=[o],e.k&&(u[e.k]=c.value))}else p?(u[c]=i,z(h,c)&&(h[c]=i)):m&&(c.value=i,e.k&&(u[e.k]=i))};i?(S.id=-1,we(S,n)):S()}}}const we=Sl;function Zl(e){return ec(e)}function ec(e,t){const n=Xs();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:l,createComment:c,setText:a,setElementText:u,parentNode:h,nextSibling:p,setScopeId:m=Re,insertStaticContent:S}=e,A=(f,d,g,v=null,_=null,E=null,P=void 0,w=null,x=!!d.dynamicChildren)=>{if(f===d)return;f&&!$t(f,d)&&(v=y(f),be(f,_,E,!0),f=null),d.patchFlag===-2&&(x=!1,d.dynamicChildren=null);const{type:b,ref:T,shapeFlag:D}=d;switch(b){case jn:I(f,d,g,v);break;case Pt:O(f,d,g,v);break;case Yn:f==null&&R(d,g,v,P);break;case Te:ce(f,d,g,v,_,E,P,w,x);break;default:D&1?K(f,d,g,v,_,E,P,w,x):D&6?Ce(f,d,g,v,_,E,P,w,x):(D&64||D&128)&&b.process(f,d,g,v,_,E,P,w,x,F)}T!=null&&_&&ar(T,f&&f.ref,E,d||f,!d)},I=(f,d,g,v)=>{if(f==null)r(d.el=l(d.children),g,v);else{const _=d.el=f.el;d.children!==f.children&&a(_,d.children)}},O=(f,d,g,v)=>{f==null?r(d.el=c(d.children||""),g,v):d.el=f.el},R=(f,d,g,v)=>{[f.el,f.anchor]=S(f.children,d,g,v,f.el,f.anchor)},L=({el:f,anchor:d},g,v)=>{let _;for(;f&&f!==d;)_=p(f),r(f,g,v),f=_;r(d,g,v)},j=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=p(f),s(f),f=g;s(d)},K=(f,d,g,v,_,E,P,w,x)=>{d.type==="svg"?P="svg":d.type==="math"&&(P="mathml"),f==null?k(d,g,v,_,E,P,w,x):W(f,d,_,E,P,w,x)},k=(f,d,g,v,_,E,P,w)=>{let x,b;const{props:T,shapeFlag:D,transition:$,dirs:B}=f;if(x=f.el=i(f.type,E,T&&T.is,T),D&8?u(x,f.children):D&16&&H(f.children,x,null,v,_,Gn(f,E),P,w),B&&it(f,null,v,"created"),ee(x,f,f.scopeId,P,v),T){for(const ne in T)ne!=="value"&&!Ht(ne)&&o(x,ne,null,T[ne],E,f.children,v,_,me);"value"in T&&o(x,"value",null,T.value,E),(b=T.onVnodeBeforeMount)&&je(b,v,f)}B&&it(f,null,v,"beforeMount");const q=tc(_,$);q&&$.beforeEnter(x),r(x,d,g),((b=T&&T.onVnodeMounted)||q||B)&&we(()=>{b&&je(b,v,f),q&&$.enter(x),B&&it(f,null,v,"mounted")},_)},ee=(f,d,g,v,_)=>{if(g&&m(f,g),v)for(let E=0;E{for(let b=x;b{const w=d.el=f.el;let{patchFlag:x,dynamicChildren:b,dirs:T}=d;x|=f.patchFlag&16;const D=f.props||re,$=d.props||re;let B;if(g&<(g,!1),(B=$.onVnodeBeforeUpdate)&&je(B,g,d,f),T&&it(d,f,g,"beforeUpdate"),g&<(g,!0),b?N(f.dynamicChildren,b,w,g,v,Gn(d,_),E):P||Q(f,d,w,null,g,v,Gn(d,_),E,!1),x>0){if(x&16)Y(w,d,D,$,g,v,_);else if(x&2&&D.class!==$.class&&o(w,"class",null,$.class,_),x&4&&o(w,"style",D.style,$.style,_),x&8){const q=d.dynamicProps;for(let ne=0;ne{B&&je(B,g,d,f),T&&it(d,f,g,"updated")},v)},N=(f,d,g,v,_,E,P)=>{for(let w=0;w{if(g!==v){if(g!==re)for(const w in g)!Ht(w)&&!(w in v)&&o(f,w,g[w],null,P,d.children,_,E,me);for(const w in v){if(Ht(w))continue;const x=v[w],b=g[w];x!==b&&w!=="value"&&o(f,w,b,x,P,d.children,_,E,me)}"value"in v&&o(f,"value",g.value,v.value,P)}},ce=(f,d,g,v,_,E,P,w,x)=>{const b=d.el=f?f.el:l(""),T=d.anchor=f?f.anchor:l("");let{patchFlag:D,dynamicChildren:$,slotScopeIds:B}=d;B&&(w=w?w.concat(B):B),f==null?(r(b,g,v),r(T,g,v),H(d.children||[],g,T,_,E,P,w,x)):D>0&&D&64&&$&&f.dynamicChildren?(N(f.dynamicChildren,$,g,_,E,P,w),(d.key!=null||_&&d===_.subTree)&&Uo(f,d,!0)):Q(f,d,g,T,_,E,P,w,x)},Ce=(f,d,g,v,_,E,P,w,x)=>{d.slotScopeIds=w,f==null?d.shapeFlag&512?_.ctx.activate(d,g,v,P,x):ot(d,g,v,_,E,P,x):Pe(f,d,x)},ot=(f,d,g,v,_,E,P)=>{const w=f.component=dc(f,v,_);if(Io(f)&&(w.ctx.renderer=F),hc(w),w.asyncDep){if(_&&_.registerDep(w,J),!f.el){const x=w.subTree=ve(Pt);O(null,x,d,g)}}else J(w,f,d,g,_,E,P)},Pe=(f,d,g)=>{const v=d.component=f.component;if(_l(f,d,g))if(v.asyncDep&&!v.asyncResolved){te(v,d,g);return}else v.next=d,fl(v.update),v.effect.dirty=!0,v.update();else d.el=f.el,v.vnode=d},J=(f,d,g,v,_,E,P)=>{const w=()=>{if(f.isMounted){let{next:T,bu:D,u:$,parent:B,vnode:q}=f;{const yt=Ko(f);if(yt){T&&(T.el=q.el,te(f,T,P)),yt.asyncDep.then(()=>{f.isUnmounted||w()});return}}let ne=T,ie;lt(f,!1),T?(T.el=q.el,te(f,T,P)):T=q,D&&gn(D),(ie=T.props&&T.props.onVnodeBeforeUpdate)&&je(ie,B,T,q),lt(f,!0);const de=qn(f),Me=f.subTree;f.subTree=de,A(Me,de,h(Me.el),y(Me),f,_,E),T.el=de.el,ne===null&&yl(f,de.el),$&&we($,_),(ie=T.props&&T.props.onVnodeUpdated)&&we(()=>je(ie,B,T,q),_)}else{let T;const{el:D,props:$}=d,{bm:B,m:q,parent:ne}=f,ie=Bt(d);if(lt(f,!1),B&&gn(B),!ie&&(T=$&&$.onVnodeBeforeMount)&&je(T,ne,d),lt(f,!0),D&&oe){const de=()=>{f.subTree=qn(f),oe(D,f.subTree,f,_,null)};ie?d.type.__asyncLoader().then(()=>!f.isUnmounted&&de()):de()}else{const de=f.subTree=qn(f);A(null,de,g,v,f,_,E),d.el=de.el}if(q&&we(q,_),!ie&&(T=$&&$.onVnodeMounted)){const de=d;we(()=>je(T,ne,de),_)}(d.shapeFlag&256||ne&&Bt(ne.vnode)&&ne.vnode.shapeFlag&256)&&f.a&&we(f.a,_),f.isMounted=!0,d=g=v=null}},x=f.effect=new Rr(w,Re,()=>Fr(b),f.scope),b=f.update=()=>{x.dirty&&x.run()};b.id=f.uid,lt(f,!0),b()},te=(f,d,g)=>{d.component=f;const v=f.vnode.props;f.vnode=d,f.next=null,Yl(f,d.props,v,g),Xl(f,d.children,g),pt(),rs(f),gt()},Q=(f,d,g,v,_,E,P,w,x=!1)=>{const b=f&&f.children,T=f?f.shapeFlag:0,D=d.children,{patchFlag:$,shapeFlag:B}=d;if($>0){if($&128){qe(b,D,g,v,_,E,P,w,x);return}else if($&256){Be(b,D,g,v,_,E,P,w,x);return}}B&8?(T&16&&me(b,_,E),D!==b&&u(g,D)):T&16?B&16?qe(b,D,g,v,_,E,P,w,x):me(b,_,E,!0):(T&8&&u(g,""),B&16&&H(D,g,v,_,E,P,w,x))},Be=(f,d,g,v,_,E,P,w,x)=>{f=f||Et,d=d||Et;const b=f.length,T=d.length,D=Math.min(b,T);let $;for($=0;$T?me(f,_,E,!0,!1,D):H(d,g,v,_,E,P,w,x,D)},qe=(f,d,g,v,_,E,P,w,x)=>{let b=0;const T=d.length;let D=f.length-1,$=T-1;for(;b<=D&&b<=$;){const B=f[b],q=d[b]=x?Qe(d[b]):De(d[b]);if($t(B,q))A(B,q,g,null,_,E,P,w,x);else break;b++}for(;b<=D&&b<=$;){const B=f[D],q=d[$]=x?Qe(d[$]):De(d[$]);if($t(B,q))A(B,q,g,null,_,E,P,w,x);else break;D--,$--}if(b>D){if(b<=$){const B=$+1,q=B$)for(;b<=D;)be(f[b],_,E,!0),b++;else{const B=b,q=b,ne=new Map;for(b=q;b<=$;b++){const Se=d[b]=x?Qe(d[b]):De(d[b]);Se.key!=null&&ne.set(Se.key,b)}let ie,de=0;const Me=$-q+1;let yt=!1,qr=0;const Nt=new Array(Me);for(b=0;b=Me){be(Se,_,E,!0);continue}let $e;if(Se.key!=null)$e=ne.get(Se.key);else for(ie=q;ie<=$;ie++)if(Nt[ie-q]===0&&$t(Se,d[ie])){$e=ie;break}$e===void 0?be(Se,_,E,!0):(Nt[$e-q]=b+1,$e>=qr?qr=$e:yt=!0,A(Se,d[$e],g,null,_,E,P,w,x),de++)}const zr=yt?nc(Nt):Et;for(ie=zr.length-1,b=Me-1;b>=0;b--){const Se=q+b,$e=d[Se],Gr=Se+1{const{el:E,type:P,transition:w,children:x,shapeFlag:b}=f;if(b&6){Ne(f.component.subTree,d,g,v);return}if(b&128){f.suspense.move(d,g,v);return}if(b&64){P.move(f,d,g,F);return}if(P===Te){r(E,d,g);for(let D=0;Dw.enter(E),_);else{const{leave:D,delayLeave:$,afterLeave:B}=w,q=()=>r(E,d,g),ne=()=>{D(E,()=>{q(),B&&B()})};$?$(E,q,ne):ne()}else r(E,d,g)},be=(f,d,g,v=!1,_=!1)=>{const{type:E,props:P,ref:w,children:x,dynamicChildren:b,shapeFlag:T,patchFlag:D,dirs:$}=f;if(w!=null&&ar(w,null,g,f,!0),T&256){d.ctx.deactivate(f);return}const B=T&1&&$,q=!Bt(f);let ne;if(q&&(ne=P&&P.onVnodeBeforeUnmount)&&je(ne,d,f),T&6)on(f.component,g,v);else{if(T&128){f.suspense.unmount(g,v);return}B&&it(f,null,d,"beforeUnmount"),T&64?f.type.remove(f,d,g,_,F,v):b&&(E!==Te||D>0&&D&64)?me(b,d,g,!1,!0):(E===Te&&D&384||!_&&T&16)&&me(x,d,g),v&&mt(f)}(q&&(ne=P&&P.onVnodeUnmounted)||B)&&we(()=>{ne&&je(ne,d,f),B&&it(f,null,d,"unmounted")},g)},mt=f=>{const{type:d,el:g,anchor:v,transition:_}=f;if(d===Te){_t(g,v);return}if(d===Yn){j(f);return}const E=()=>{s(g),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(f.shapeFlag&1&&_&&!_.persisted){const{leave:P,delayLeave:w}=_,x=()=>P(g,E);w?w(f.el,E,x):x()}else E()},_t=(f,d)=>{let g;for(;f!==d;)g=p(f),s(f),f=g;s(d)},on=(f,d,g)=>{const{bum:v,scope:_,update:E,subTree:P,um:w}=f;v&&gn(v),_.stop(),E&&(E.active=!1,be(P,f,d,g)),w&&we(w,d),we(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},me=(f,d,g,v=!1,_=!1,E=0)=>{for(let P=E;Pf.shapeFlag&6?y(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el);let M=!1;const C=(f,d,g)=>{f==null?d._vnode&&be(d._vnode,null,null,!0):A(d._vnode||null,f,d,null,null,null,g),M||(M=!0,rs(),Ro(),M=!1),d._vnode=f},F={p:A,um:be,m:Ne,r:mt,mt:ot,mc:H,pc:Q,pbc:N,n:y,o:e};let X,oe;return t&&([X,oe]=t(F)),{render:C,hydrate:X,createApp:ql(C,X)}}function Gn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function lt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function tc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Uo(e,t,n=!1){const r=e.children,s=t.children;if(V(r)&&V(s))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Ko(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ko(t)}const rc=e=>e.__isTeleport,Te=Symbol.for("v-fgt"),jn=Symbol.for("v-txt"),Pt=Symbol.for("v-cmt"),Yn=Symbol.for("v-stc"),Kt=[];let Ie=null;function kr(e=!1){Kt.push(Ie=e?null:[])}function sc(){Kt.pop(),Ie=Kt[Kt.length-1]||null}let Qt=1;function ps(e){Qt+=e}function Wo(e){return e.dynamicChildren=Qt>0?Ie||Et:null,sc(),Qt>0&&Ie&&Ie.push(e),e}function qo(e,t,n,r,s,o){return Wo(rn(e,t,n,r,s,o,!0))}function oc(e,t,n,r,s){return Wo(ve(e,t,n,r,s,!0))}function xn(e){return e?e.__v_isVNode===!0:!1}function $t(e,t){return e.type===t.type&&e.key===t.key}const Dn="__vInternal",zo=({key:e})=>e??null,_n=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ae(e)||le(e)||U(e)?{i:fe,r:e,k:t,f:!!n}:e:null);function rn(e,t=null,n=null,r=0,s=null,o=e===Te?0:1,i=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zo(t),ref:t&&_n(t),scopeId:Ao,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:fe};return l?(Hr(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ae(n)?8:16),Qt>0&&!i&&Ie&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ie.push(c),c}const ve=ic;function ic(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===bl)&&(e=Pt),xn(e)){const l=At(e,t,!0);return n&&Hr(l,n),Qt>0&&!o&&Ie&&(l.shapeFlag&6?Ie[Ie.indexOf(e)]=l:Ie.push(l)),l.patchFlag|=-2,l}if(yc(e)&&(e=e.__vccOpts),t){t=lc(t);let{class:l,style:c}=t;l&&!ae(l)&&(t.class=Sr(l)),se(c)&&(_o(c)&&!V(c)&&(c=ge({},c)),t.style=Er(c))}const i=ae(e)?1:El(e)?128:rc(e)?64:se(e)?4:U(e)?2:0;return rn(e,t,n,r,s,i,o,!0)}function lc(e){return e?_o(e)||Dn in e?ge({},e):e:null}function At(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,l=t?uc(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&zo(l),ref:t&&t.ref?n&&s?V(s)?s.concat(_n(t)):[s,_n(t)]:_n(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&At(e.ssContent),ssFallback:e.ssFallback&&At(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function cc(e=" ",t=0){return ve(jn,null,e,t)}function De(e){return e==null||typeof e=="boolean"?ve(Pt):V(e)?ve(Te,null,e.slice()):typeof e=="object"?Qe(e):ve(jn,null,String(e))}function Qe(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:At(e)}function Hr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Hr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Dn in t)?t._ctx=fe:s===3&&fe&&(fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else U(t)?(t={default:t,_ctx:fe},n=32):(t=String(t),r&64?(n=16,t=[cc(t)]):n=8);e.children=t,e.shapeFlag|=n}function uc(...e){const t={};for(let n=0;nhe||fe;let Rn,dr;{const e=Xs(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Rn=t("__VUE_INSTANCE_SETTERS__",n=>he=n),dr=t("__VUE_SSR_SETTERS__",n=>kn=n)}const sn=e=>{const t=he;return Rn(e),e.scope.on(),()=>{e.scope.off(),Rn(t)}},gs=()=>{he&&he.scope.off(),Rn(null)};function Yo(e){return e.vnode.shapeFlag&4}let kn=!1;function hc(e,t=!1){t&&dr(t);const{props:n,children:r}=e.vnode,s=Yo(e);Gl(e,n,s,t),Ql(e,r);const o=s?pc(e,t):void 0;return t&&dr(!1),o}function pc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ln(new Proxy(e.ctx,kl));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?mc(e):null,o=sn(e);pt();const i=rt(r,e,0,[e.props,s]);if(gt(),o(),Ys(i)){if(i.then(gs,gs),t)return i.then(l=>{ms(e,l,t)}).catch(l=>{Fn(l,e,0)});e.asyncDep=i}else ms(e,i,t)}else Jo(e,t)}function ms(e,t,n){U(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=wo(t)),Jo(e,n)}let _s;function Jo(e,t,n){const r=e.type;if(!e.render){if(!t&&_s&&!r.render){const s=r.template||jr(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,a=ge(ge({isCustomElement:o,delimiters:l},i),c);r.render=_s(s,a)}}e.render=r.render||Re}{const s=sn(e);pt();try{Hl(e)}finally{gt(),s()}}}function gc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Ee(e,"get","$attrs"),t[n]}}))}function mc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return gc(e)},slots:e.slots,emit:e.emit,expose:t}}function Hn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(wo(Ln(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ut)return Ut[n](e)},has(t,n){return n in t||n in Ut}}))}function _c(e,t=!0){return U(e)?e.displayName||e.name:e.name||t&&e.__name}function yc(e){return U(e)&&"__vccOpts"in e}const ue=(e,t)=>Zi(e,t,kn);function Qo(e,t,n){const r=arguments.length;return r===2?se(t)&&!V(t)?xn(t)?ve(e,null,[t]):ve(e,t):ve(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&xn(n)&&(n=[n]),ve(e,t,n))}const vc="3.4.21";/** +* @vue/runtime-dom v3.4.21 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const bc="http://www.w3.org/2000/svg",wc="http://www.w3.org/1998/Math/MathML",Xe=typeof document<"u"?document:null,ys=Xe&&Xe.createElement("template"),Ec={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Xe.createElementNS(bc,e):t==="mathml"?Xe.createElementNS(wc,e):Xe.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Xe.createTextNode(e),createComment:e=>Xe.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xe.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{ys.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const l=ys.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Sc=Symbol("_vtc");function xc(e,t,n){const r=e[Sc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cn=Symbol("_vod"),Xo=Symbol("_vsh"),na={beforeMount(e,{value:t},{transition:n}){e[Cn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):jt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),jt(e,!0),r.enter(e)):r.leave(e,()=>{jt(e,!1)}):jt(e,t))},beforeUnmount(e,{value:t}){jt(e,t)}};function jt(e,t){e.style.display=t?e[Cn]:"none",e[Xo]=!t}const Rc=Symbol(""),Cc=/(^|;)\s*display\s*:/;function Pc(e,t,n){const r=e.style,s=ae(n);let o=!1;if(n&&!s){if(t)if(ae(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&yn(r,l,"")}else for(const i in t)n[i]==null&&yn(r,i,"");for(const i in n)i==="display"&&(o=!0),yn(r,i,n[i])}else if(s){if(t!==n){const i=r[Rc];i&&(n+=";"+i),r.cssText=n,o=Cc.test(n)}}else t&&e.removeAttribute("style");Cn in e&&(e[Cn]=o?r.display:"",e[Xo]&&(r.display="none"))}const vs=/\s*!important$/;function yn(e,t,n){if(V(n))n.forEach(r=>yn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Ac(e,t);vs.test(n)?e.setProperty(Lt(r),n.replace(vs,""),"important"):e[r]=n}}const bs=["Webkit","Moz","ms"],Jn={};function Ac(e,t){const n=Jn[t];if(n)return n;let r=Ve(t);if(r!=="filter"&&r in e)return Jn[t]=r;r=Tn(r);for(let s=0;sQn||(Fc.then(()=>Qn=0),Qn=Date.now());function $c(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Le(jc(r,n.value),t,5,[r])};return n.value=e,n.attached=Nc(),n}function jc(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const xs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Dc=(e,t,n,r,s,o,i,l,c)=>{const a=s==="svg";t==="class"?xc(e,r,a):t==="style"?Pc(e,n,r):An(t)?vr(t)||Ic(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):kc(e,t,r,a))?Mc(e,t,r,o,i,l,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Oc(e,t,r,a))};function kc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&xs(t)&&U(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return xs(t)&&ae(n)?!1:t in e}const Rs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>gn(t,n):t};function Hc(e){e.target.composing=!0}function Cs(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xn=Symbol("_assign"),ra={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Xn]=Rs(s);const o=r||s.props&&s.props.type==="number";bt(e,t?"change":"input",i=>{if(i.target.composing)return;let l=e.value;n&&(l=l.trim()),o&&(l=nr(l)),e[Xn](l)}),n&&bt(e,"change",()=>{e.value=e.value.trim()}),t||(bt(e,"compositionstart",Hc),bt(e,"compositionend",Cs),bt(e,"change",Cs))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},o){if(e[Xn]=Rs(o),e.composing)return;const i=s||e.type==="number"?nr(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===l)||(e.value=l))}},Vc=ge({patchProp:Dc},Ec);let Ps;function Bc(){return Ps||(Ps=Zl(Vc))}const Uc=(...e)=>{const t=Bc().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Wc(r);if(!s)return;const o=t._component;!U(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,Kc(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};function Kc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wc(e){return ae(e)?document.querySelector(e):e}/*! + * vue-router v4.3.0 + * (c) 2024 Eduardo San Martin Morote + * @license MIT + */const wt=typeof document<"u";function qc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Z=Object.assign;function Zn(e,t){const n={};for(const r in t){const s=t[r];n[r]=Fe(s)?s.map(e):e(s)}return n}const Wt=()=>{},Fe=Array.isArray,Zo=/#/g,zc=/&/g,Gc=/\//g,Yc=/=/g,Jc=/\?/g,ei=/\+/g,Qc=/%5B/g,Xc=/%5D/g,ti=/%5E/g,Zc=/%60/g,ni=/%7B/g,eu=/%7C/g,ri=/%7D/g,tu=/%20/g;function Vr(e){return encodeURI(""+e).replace(eu,"|").replace(Qc,"[").replace(Xc,"]")}function nu(e){return Vr(e).replace(ni,"{").replace(ri,"}").replace(ti,"^")}function hr(e){return Vr(e).replace(ei,"%2B").replace(tu,"+").replace(Zo,"%23").replace(zc,"%26").replace(Zc,"`").replace(ni,"{").replace(ri,"}").replace(ti,"^")}function ru(e){return hr(e).replace(Yc,"%3D")}function su(e){return Vr(e).replace(Zo,"%23").replace(Jc,"%3F")}function ou(e){return e==null?"":su(e).replace(Gc,"%2F")}function Xt(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const iu=/\/$/,lu=e=>e.replace(iu,"");function er(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),o=t.slice(c+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=au(r??t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:Xt(i)}}function cu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function As(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function uu(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Ot(t.matched[r],n.matched[s])&&si(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ot(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function si(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!fu(e[n],t[n]))return!1;return!0}function fu(e,t){return Fe(e)?Os(e,t):Fe(t)?Os(t,e):e===t}function Os(e,t){return Fe(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function au(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(i).join("/")}var Zt;(function(e){e.pop="pop",e.push="push"})(Zt||(Zt={}));var qt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(qt||(qt={}));function du(e){if(!e)if(wt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),lu(e)}const hu=/^[^#]+#/;function pu(e,t){return e.replace(hu,"#")+t}function gu(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Vn=()=>({left:window.scrollX,top:window.scrollY});function mu(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=gu(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ms(e,t){return(history.state?history.state.position-t:-1)+e}const pr=new Map;function _u(e,t){pr.set(e,t)}function yu(e){const t=pr.get(e);return pr.delete(e),t}let vu=()=>location.protocol+"//"+location.host;function oi(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(l);return c[0]!=="/"&&(c="/"+c),As(c,"")}return As(n,e)+r+s}function bu(e,t,n,r){let s=[],o=[],i=null;const l=({state:p})=>{const m=oi(e,location),S=n.value,A=t.value;let I=0;if(p){if(n.value=m,t.value=p,i&&i===S){i=null;return}I=A?p.position-A.position:0}else r(m);s.forEach(O=>{O(n.value,S,{delta:I,type:Zt.pop,direction:I?I>0?qt.forward:qt.back:qt.unknown})})};function c(){i=n.value}function a(p){s.push(p);const m=()=>{const S=s.indexOf(p);S>-1&&s.splice(S,1)};return o.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(Z({},p.state,{scroll:Vn()}),"")}function h(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:c,listen:a,destroy:h}}function Ts(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Vn():null}}function wu(e){const{history:t,location:n}=window,r={value:oi(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,a,u){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:vu()+e+c;try{t[u?"replaceState":"pushState"](a,"",p),s.value=a}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function i(c,a){const u=Z({},t.state,Ts(s.value.back,c,s.value.forward,!0),a,{position:s.value.position});o(c,u,!0),r.value=c}function l(c,a){const u=Z({},s.value,t.state,{forward:c,scroll:Vn()});o(u.current,u,!0);const h=Z({},Ts(r.value,c,null),{position:u.position+1},a);o(c,h,!1),r.value=c}return{location:r,state:s,push:l,replace:i}}function Eu(e){e=du(e);const t=wu(e),n=bu(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=Z({location:"",base:e,go:r,createHref:pu.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Su(e){return typeof e=="string"||e&&typeof e=="object"}function ii(e){return typeof e=="string"||typeof e=="symbol"}const Ge={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},li=Symbol("");var Is;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Is||(Is={}));function Mt(e,t){return Z(new Error,{type:e,[li]:!0},t)}function Ue(e,t){return e instanceof Error&&li in e&&(t==null||!!(e.type&t))}const Ls="[^/]+?",xu={sensitive:!1,strict:!1,start:!0,end:!0},Ru=/[.+*?^${}()[\]/\\]/g;function Cu(e,t){const n=Z({},xu,t),r=[];let s=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(s+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function Au(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Ou={type:0,value:""},Mu=/[a-zA-Z0-9_]/;function Tu(e){if(!e)return[[]];if(e==="/")return[[Ou]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let l=0,c,a="",u="";function h(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=c}for(;l{i(R)}:Wt}function i(u){if(ii(u)){const h=r.get(u);h&&(r.delete(u),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(u);h>-1&&(n.splice(h,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function l(){return n}function c(u){let h=0;for(;h=0&&(u.record.path!==n[h].record.path||!ci(u,n[h]));)h++;n.splice(h,0,u),u.record.name&&!$s(u)&&r.set(u.record.name,u)}function a(u,h){let p,m={},S,A;if("name"in u&&u.name){if(p=r.get(u.name),!p)throw Mt(1,{location:u});A=p.record.name,m=Z(Ns(h.params,p.keys.filter(R=>!R.optional).concat(p.parent?p.parent.keys.filter(R=>R.optional):[]).map(R=>R.name)),u.params&&Ns(u.params,p.keys.map(R=>R.name))),S=p.stringify(m)}else if(u.path!=null)S=u.path,p=n.find(R=>R.re.test(S)),p&&(m=p.parse(S),A=p.record.name);else{if(p=h.name?r.get(h.name):n.find(R=>R.re.test(h.path)),!p)throw Mt(1,{location:u,currentLocation:h});A=p.record.name,m=Z({},h.params,u.params),S=p.stringify(m)}const I=[];let O=p;for(;O;)I.unshift(O.record),O=O.parent;return{name:A,path:S,params:m,matched:I,meta:$u(I)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:l,getRecordMatcher:s}}function Ns(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Fu(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Nu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Nu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function $s(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $u(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function js(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ci(e,t){return t.children.some(n=>n===e||ci(e,n))}function ju(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&hr(o)):[r&&hr(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Du(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Fe(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const ku=Symbol(""),ks=Symbol(""),Bn=Symbol(""),Br=Symbol(""),gr=Symbol("");function Dt(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ze(e,t,n,r,s,o=i=>i()){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,c)=>{const a=p=>{p===!1?c(Mt(4,{from:n,to:t})):p instanceof Error?c(p):Su(p)?c(Mt(2,{from:t,to:p})):(i&&r.enterCallbacks[s]===i&&typeof p=="function"&&i.push(p),l())},u=o(()=>e.call(r&&r.instances[s],t,n,a));let h=Promise.resolve(u);e.length<3&&(h=h.then(a)),h.catch(p=>c(p))})}function tr(e,t,n,r,s=o=>o()){const o=[];for(const i of e)for(const l in i.components){let c=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Hu(c)){const u=(c.__vccOpts||c)[t];u&&o.push(Ze(u,n,r,i,l,s))}else{let a=c();o.push(()=>a.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const h=qc(u)?u.default:u;i.components[l]=h;const m=(h.__vccOpts||h)[t];return m&&Ze(m,n,r,i,l,s)()}))}}return o}function Hu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hs(e){const t=Ae(Bn),n=Ae(Br),r=ue(()=>t.resolve(nt(e.to))),s=ue(()=>{const{matched:c}=r.value,{length:a}=c,u=c[a-1],h=n.matched;if(!u||!h.length)return-1;const p=h.findIndex(Ot.bind(null,u));if(p>-1)return p;const m=Vs(c[a-2]);return a>1&&Vs(u)===m&&h[h.length-1].path!==m?h.findIndex(Ot.bind(null,c[a-2])):p}),o=ue(()=>s.value>-1&&Ku(n.params,r.value.params)),i=ue(()=>s.value>-1&&s.value===n.matched.length-1&&si(n.params,r.value.params));function l(c={}){return Uu(c)?t[nt(e.replace)?"replace":"push"](nt(e.to)).catch(Wt):Promise.resolve()}return{route:r,href:ue(()=>r.value.href),isActive:o,isExactActive:i,navigate:l}}const Vu=To({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hs,setup(e,{slots:t}){const n=tn(Hs(e)),{options:r}=Ae(Bn),s=ue(()=>({[Bs(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Bs(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Qo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),Bu=Vu;function Uu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ku(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Fe(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function Vs(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bs=(e,t,n)=>e??t??n,Wu=To({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ae(gr),s=ue(()=>e.route||r.value),o=Ae(ks,0),i=ue(()=>{let a=nt(o);const{matched:u}=s.value;let h;for(;(h=u[a])&&!h.components;)a++;return a}),l=ue(()=>s.value.matched[i.value]);mn(ks,ue(()=>i.value+1)),mn(ku,l),mn(gr,s);const c=pe();return He(()=>[c.value,l.value,e.name],([a,u,h],[p,m,S])=>{u&&(u.instances[h]=a,m&&m!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),a&&u&&(!m||!Ot(u,m)||!p)&&(u.enterCallbacks[h]||[]).forEach(A=>A(a))},{flush:"post"}),()=>{const a=s.value,u=e.name,h=l.value,p=h&&h.components[u];if(!p)return Us(n.default,{Component:p,route:a});const m=h.props[u],S=m?m===!0?a.params:typeof m=="function"?m(a):m:null,I=Qo(p,Z({},S,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(h.instances[u]=null)},ref:c}));return Us(n.default,{Component:I,route:a})||I}}});function Us(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const qu=Wu;function zu(e){const t=Lu(e.routes,e),n=e.parseQuery||ju,r=e.stringifyQuery||Ds,s=e.history,o=Dt(),i=Dt(),l=Dt(),c=vo(Ge);let a=Ge;wt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zn.bind(null,y=>""+y),h=Zn.bind(null,ou),p=Zn.bind(null,Xt);function m(y,M){let C,F;return ii(y)?(C=t.getRecordMatcher(y),F=M):F=y,t.addRoute(F,C)}function S(y){const M=t.getRecordMatcher(y);M&&t.removeRoute(M)}function A(){return t.getRoutes().map(y=>y.record)}function I(y){return!!t.getRecordMatcher(y)}function O(y,M){if(M=Z({},M||c.value),typeof y=="string"){const d=er(n,y,M.path),g=t.resolve({path:d.path},M),v=s.createHref(d.fullPath);return Z(d,g,{params:p(g.params),hash:Xt(d.hash),redirectedFrom:void 0,href:v})}let C;if(y.path!=null)C=Z({},y,{path:er(n,y.path,M.path).path});else{const d=Z({},y.params);for(const g in d)d[g]==null&&delete d[g];C=Z({},y,{params:h(d)}),M.params=h(M.params)}const F=t.resolve(C,M),X=y.hash||"";F.params=u(p(F.params));const oe=cu(r,Z({},y,{hash:nu(X),path:F.path})),f=s.createHref(oe);return Z({fullPath:oe,hash:X,query:r===Ds?Du(y.query):y.query||{}},F,{redirectedFrom:void 0,href:f})}function R(y){return typeof y=="string"?er(n,y,c.value.path):Z({},y)}function L(y,M){if(a!==y)return Mt(8,{from:M,to:y})}function j(y){return ee(y)}function K(y){return j(Z(R(y),{replace:!0}))}function k(y){const M=y.matched[y.matched.length-1];if(M&&M.redirect){const{redirect:C}=M;let F=typeof C=="function"?C(y):C;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=R(F):{path:F},F.params={}),Z({query:y.query,hash:y.hash,params:F.path!=null?{}:y.params},F)}}function ee(y,M){const C=a=O(y),F=c.value,X=y.state,oe=y.force,f=y.replace===!0,d=k(C);if(d)return ee(Z(R(d),{state:typeof d=="object"?Z({},X,d.state):X,force:oe,replace:f}),M||C);const g=C;g.redirectedFrom=M;let v;return!oe&&uu(r,F,C)&&(v=Mt(16,{to:g,from:F}),Ne(F,F,!0,!1)),(v?Promise.resolve(v):N(g,F)).catch(_=>Ue(_)?Ue(_,2)?_:qe(_):Q(_,g,F)).then(_=>{if(_){if(Ue(_,2))return ee(Z({replace:f},R(_.to),{state:typeof _.to=="object"?Z({},X,_.to.state):X,force:oe}),M||g)}else _=ce(g,F,!0,f,X);return Y(g,F,_),_})}function H(y,M){const C=L(y,M);return C?Promise.reject(C):Promise.resolve()}function W(y){const M=_t.values().next().value;return M&&typeof M.runWithContext=="function"?M.runWithContext(y):y()}function N(y,M){let C;const[F,X,oe]=Gu(y,M);C=tr(F.reverse(),"beforeRouteLeave",y,M);for(const d of F)d.leaveGuards.forEach(g=>{C.push(Ze(g,y,M))});const f=H.bind(null,y,M);return C.push(f),me(C).then(()=>{C=[];for(const d of o.list())C.push(Ze(d,y,M));return C.push(f),me(C)}).then(()=>{C=tr(X,"beforeRouteUpdate",y,M);for(const d of X)d.updateGuards.forEach(g=>{C.push(Ze(g,y,M))});return C.push(f),me(C)}).then(()=>{C=[];for(const d of oe)if(d.beforeEnter)if(Fe(d.beforeEnter))for(const g of d.beforeEnter)C.push(Ze(g,y,M));else C.push(Ze(d.beforeEnter,y,M));return C.push(f),me(C)}).then(()=>(y.matched.forEach(d=>d.enterCallbacks={}),C=tr(oe,"beforeRouteEnter",y,M,W),C.push(f),me(C))).then(()=>{C=[];for(const d of i.list())C.push(Ze(d,y,M));return C.push(f),me(C)}).catch(d=>Ue(d,8)?d:Promise.reject(d))}function Y(y,M,C){l.list().forEach(F=>W(()=>F(y,M,C)))}function ce(y,M,C,F,X){const oe=L(y,M);if(oe)return oe;const f=M===Ge,d=wt?history.state:{};C&&(F||f?s.replace(y.fullPath,Z({scroll:f&&d&&d.scroll},X)):s.push(y.fullPath,X)),c.value=y,Ne(y,M,C,f),qe()}let Ce;function ot(){Ce||(Ce=s.listen((y,M,C)=>{if(!on.listening)return;const F=O(y),X=k(F);if(X){ee(Z(X,{replace:!0}),F).catch(Wt);return}a=F;const oe=c.value;wt&&_u(Ms(oe.fullPath,C.delta),Vn()),N(F,oe).catch(f=>Ue(f,12)?f:Ue(f,2)?(ee(f.to,F).then(d=>{Ue(d,20)&&!C.delta&&C.type===Zt.pop&&s.go(-1,!1)}).catch(Wt),Promise.reject()):(C.delta&&s.go(-C.delta,!1),Q(f,F,oe))).then(f=>{f=f||ce(F,oe,!1),f&&(C.delta&&!Ue(f,8)?s.go(-C.delta,!1):C.type===Zt.pop&&Ue(f,20)&&s.go(-1,!1)),Y(F,oe,f)}).catch(Wt)}))}let Pe=Dt(),J=Dt(),te;function Q(y,M,C){qe(y);const F=J.list();return F.length?F.forEach(X=>X(y,M,C)):console.error(y),Promise.reject(y)}function Be(){return te&&c.value!==Ge?Promise.resolve():new Promise((y,M)=>{Pe.add([y,M])})}function qe(y){return te||(te=!y,ot(),Pe.list().forEach(([M,C])=>y?C(y):M()),Pe.reset()),y}function Ne(y,M,C,F){const{scrollBehavior:X}=e;if(!wt||!X)return Promise.resolve();const oe=!C&&yu(Ms(y.fullPath,0))||(F||!C)&&history.state&&history.state.scroll||null;return nn().then(()=>X(y,M,oe)).then(f=>f&&mu(f)).catch(f=>Q(f,y,M))}const be=y=>s.go(y);let mt;const _t=new Set,on={currentRoute:c,listening:!0,addRoute:m,removeRoute:S,hasRoute:I,getRoutes:A,resolve:O,options:e,push:j,replace:K,go:be,back:()=>be(-1),forward:()=>be(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:J.add,isReady:Be,install(y){const M=this;y.component("RouterLink",Bu),y.component("RouterView",qu),y.config.globalProperties.$router=M,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>nt(c)}),wt&&!mt&&c.value===Ge&&(mt=!0,j(s.location).catch(X=>{}));const C={};for(const X in Ge)Object.defineProperty(C,X,{get:()=>c.value[X],enumerable:!0});y.provide(Bn,M),y.provide(Br,mo(C)),y.provide(gr,c);const F=y.unmount;_t.add(y),y.unmount=function(){_t.delete(y),_t.size<1&&(a=Ge,Ce&&Ce(),Ce=null,c.value=Ge,mt=!1,te=!1),F()}}};function me(y){return y.reduce((M,C)=>M.then(()=>W(C)),Promise.resolve())}return on}function Gu(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iOt(a,l))?r.push(l):n.push(l));const c=e.matched[i];c&&(t.matched.find(a=>Ot(a,c))||s.push(c))}return[n,r,s]}function sa(){return Ae(Bn)}function oa(){return Ae(Br)}const Yu="modulepreload",Ju=function(e){return"/"+e},Ks={},Ur=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=Ju(o),o in Ks)return;Ks[o]=!0;const i=o.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let u=s.length-1;u>=0;u--){const h=s[u];if(h.href===o&&(!i||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const a=document.createElement("link");if(a.rel=i?"stylesheet":Yu,i||(a.as="script",a.crossOrigin=""),a.href=o,document.head.appendChild(a),i)return new Promise((u,h)=>{a.addEventListener("load",u),a.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o})},Qu=()=>Ur(()=>import("./Index-e426f46a.js"),["assets/Index-e426f46a.js","assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js"]),Xu=()=>Ur(()=>import("./edit-02d5cd50.js"),["assets/edit-02d5cd50.js","assets/Player.vue_vue_type_script_setup_true_lang-91e3e424.js"]),Zu=()=>Ur(()=>import("./_...all_-6d5f2e61.js"),[]),ef=[{name:"Index",path:"/",component:Qu,props:!0},{name:"edit",path:"/edit",component:Xu,props:!0},{name:"all",path:"/:all(.*)*",component:Zu,props:!0}];var tf=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let ui;const Un=e=>ui=e,fi=Symbol();function mr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var zt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(zt||(zt={}));function nf(){const e=no(!0),t=e.run(()=>pe({}));let n=[],r=[];const s=Ln({install(o){Un(s),s._a=o,o.provide(fi,s),o.config.globalProperties.$pinia=s,r.forEach(i=>n.push(i)),r=[]},use(o){return!this._a&&!tf?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const ai=()=>{};function Ws(e,t,n,r=ai){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&xr()&&ro(s),s}function vt(e,...t){e.slice().forEach(n=>{n(...t)})}const rf=e=>e();function _r(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];mr(s)&&mr(r)&&e.hasOwnProperty(n)&&!le(r)&&!tt(r)?e[n]=_r(s,r):e[n]=r}return e}const sf=Symbol();function of(e){return!mr(e)||!e.hasOwnProperty(sf)}const{assign:Ye}=Object;function lf(e){return!!(le(e)&&e.effect)}function cf(e,t,n,r){const{state:s,actions:o,getters:i}=t,l=n.state.value[e];let c;function a(){l||(n.state.value[e]=s?s():{});const u=sl(n.state.value[e]);return Ye(u,o,Object.keys(i||{}).reduce((h,p)=>(h[p]=Ln(ue(()=>{Un(n);const m=n._s.get(e);return i[p].call(m,m)})),h),{}))}return c=di(e,a,t,n,r,!0),c}function di(e,t,n={},r,s,o){let i;const l=Ye({actions:{}},n),c={deep:!0};let a,u,h=[],p=[],m;const S=r.state.value[e];!o&&!S&&(r.state.value[e]={}),pe({});let A;function I(H){let W;a=u=!1,typeof H=="function"?(H(r.state.value[e]),W={type:zt.patchFunction,storeId:e,events:m}):(_r(r.state.value[e],H),W={type:zt.patchObject,payload:H,storeId:e,events:m});const N=A=Symbol();nn().then(()=>{A===N&&(a=!0)}),u=!0,vt(h,W,r.state.value[e])}const O=o?function(){const{state:W}=n,N=W?W():{};this.$patch(Y=>{Ye(Y,N)})}:ai;function R(){i.stop(),h=[],p=[],r._s.delete(e)}function L(H,W){return function(){Un(r);const N=Array.from(arguments),Y=[],ce=[];function Ce(J){Y.push(J)}function ot(J){ce.push(J)}vt(p,{args:N,name:H,store:K,after:Ce,onError:ot});let Pe;try{Pe=W.apply(this&&this.$id===e?this:K,N)}catch(J){throw vt(ce,J),J}return Pe instanceof Promise?Pe.then(J=>(vt(Y,J),J)).catch(J=>(vt(ce,J),Promise.reject(J))):(vt(Y,Pe),Pe)}}const j={_p:r,$id:e,$onAction:Ws.bind(null,p),$patch:I,$reset:O,$subscribe(H,W={}){const N=Ws(h,H,W.detached,()=>Y()),Y=i.run(()=>He(()=>r.state.value[e],ce=>{(W.flush==="sync"?u:a)&&H({storeId:e,type:zt.direct,events:m},ce)},Ye({},c,W)));return N},$dispose:R},K=tn(j);r._s.set(e,K);const ee=(r._a&&r._a.runWithContext||rf)(()=>r._e.run(()=>(i=no()).run(t)));for(const H in ee){const W=ee[H];if(le(W)&&!lf(W)||tt(W))o||(S&&of(W)&&(le(W)?W.value=S[H]:_r(W,S[H])),r.state.value[e][H]=W);else if(typeof W=="function"){const N=L(H,W);ee[H]=N,l.actions[H]=W}}return Ye(K,ee),Ye(G(K),ee),Object.defineProperty(K,"$state",{get:()=>r.state.value[e],set:H=>{I(W=>{Ye(W,H)})}}),r._p.forEach(H=>{Ye(K,i.run(()=>H({store:K,app:r._a,pinia:r,options:l})))}),S&&o&&n.hydrate&&n.hydrate(K.$state,S),a=!0,u=!0,K}function ia(e,t,n){let r,s;const o=typeof t=="function";typeof e=="string"?(r=e,s=o?n:t):(s=e,r=e.id);function i(l,c){const a=zl();return l=l||(a?Ae(fi,null):null),l&&Un(l),l=ui,l._s.has(r)||(o?di(r,t,s,l):cf(r,s,l)),l._s.get(r)}return i.$id=r,i}function Tt(e){return xr()?(ro(e),!0):!1}function Oe(e){return typeof e=="function"?e():nt(e)}const en=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const uf=Object.prototype.toString,ff=e=>uf.call(e)==="[object Object]",hi=()=>{};function af(e,t){function n(...r){return new Promise((s,o)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(o)})}return n}const pi=e=>e();function df(e=pi){const t=pe(!0);function n(){t.value=!1}function r(){t.value=!0}const s=(...o)=>{t.value&&e(...o)};return{isActive:Ft(t),pause:n,resume:r,eventFilter:s}}function hf(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function pf(e){return e||Go()}function gf(...e){if(e.length!==1)return ll(...e);const t=e[0];return typeof t=="function"?Ft(rl(()=>({get:t,set:hi}))):pe(t)}function mf(e,t,n={}){const{eventFilter:r=pi,...s}=n;return He(e,af(r,t),s)}function _f(e,t,n={}){const{eventFilter:r,...s}=n,{eventFilter:o,pause:i,resume:l,isActive:c}=df(r);return{stop:mf(e,t,{...s,eventFilter:o}),pause:i,resume:l,isActive:c}}function gi(e,t=!0,n){pf()?$r(e,n):t?e():nn(e)}const yf=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vf=/[YMDHhms]o|\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function bf(e,t,n,r){let s=e<12?"AM":"PM";return r&&(s=s.split("").reduce((o,i)=>o+=`${i}.`,"")),n?s.toLowerCase():s}function ct(e){const t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function wf(e,t,n={}){var r;const s=e.getFullYear(),o=e.getMonth(),i=e.getDate(),l=e.getHours(),c=e.getMinutes(),a=e.getSeconds(),u=e.getMilliseconds(),h=e.getDay(),p=(r=n.customMeridiem)!=null?r:bf,m={Yo:()=>ct(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>o+1,Mo:()=>ct(o+1),MM:()=>`${o+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(n.locales,{month:"short"}),MMMM:()=>e.toLocaleDateString(n.locales,{month:"long"}),D:()=>String(i),Do:()=>ct(i),DD:()=>`${i}`.padStart(2,"0"),H:()=>String(l),Ho:()=>ct(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>ct(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(c),mo:()=>ct(c),mm:()=>`${c}`.padStart(2,"0"),s:()=>String(a),so:()=>ct(a),ss:()=>`${a}`.padStart(2,"0"),SSS:()=>`${u}`.padStart(3,"0"),d:()=>h,dd:()=>e.toLocaleDateString(n.locales,{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(n.locales,{weekday:"short"}),dddd:()=>e.toLocaleDateString(n.locales,{weekday:"long"}),A:()=>p(l,c),AA:()=>p(l,c,!1,!0),a:()=>p(l,c,!0),aa:()=>p(l,c,!0,!0)};return t.replace(vf,(S,A)=>{var I,O;return(O=A??((I=m[S])==null?void 0:I.call(m)))!=null?O:S})}function Ef(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const t=e.match(yf);if(t){const n=t[2]-1||0,r=(t[7]||"0").substring(0,3);return new Date(t[1],n,t[3]||1,t[4]||0,t[5]||0,t[6]||0,r)}}return new Date(e)}function la(e,t="HH:mm:ss",n={}){return ue(()=>wf(Ef(Oe(e)),Oe(t),n))}function Sf(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let o=null;const i=pe(!1);function l(){o&&(clearInterval(o),o=null)}function c(){i.value=!1,l()}function a(){const u=Oe(t);u<=0||(i.value=!0,s&&e(),l(),o=setInterval(e,u))}if(r&&en&&a(),le(t)||typeof t=="function"){const u=He(t,()=>{i.value&&en&&a()});Tt(u)}return Tt(c),{isActive:i,pause:c,resume:a}}function xf(e,t,n={}){const{immediate:r=!0}=n,s=pe(!1);let o=null;function i(){o&&(clearTimeout(o),o=null)}function l(){s.value=!1,i()}function c(...a){i(),s.value=!0,o=setTimeout(()=>{s.value=!1,o=null,e(...a)},Oe(t))}return r&&(s.value=!0,en&&c()),Tt(l),{isPending:Ft(s),start:c,stop:l}}function Rf(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,s=le(e),o=pe(e);function i(l){if(arguments.length)return o.value=l,o.value;{const c=Oe(n);return o.value=o.value===c?Oe(r):c,o.value}}return s?i:[o,i]}function mi(e){var t;const n=Oe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ht=en?window:void 0,_i=en?window.navigator:void 0;function Pn(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=ht):[t,n,r,s]=e,!t)return hi;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],i=()=>{o.forEach(u=>u()),o.length=0},l=(u,h,p,m)=>(u.addEventListener(h,p,m),()=>u.removeEventListener(h,p,m)),c=He(()=>[mi(t),Oe(s)],([u,h])=>{if(i(),!u)return;const p=ff(h)?{...h}:h;o.push(...n.flatMap(m=>r.map(S=>l(u,m,S,p))))},{immediate:!0,flush:"post"}),a=()=>{c(),i()};return Tt(a),a}function Cf(){const e=pe(!1),t=Go();return t&&$r(()=>{e.value=!0},t),e}function Kr(e){const t=Cf();return ue(()=>(t.value,!!e()))}function Pf(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=ht}=t,o=pe(!1),i=r?1e3/r:null;let l=0,c=null;function a(p){if(!o.value||!s)return;l||(l=p);const m=p-l;if(i&&mn&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const o=pe(!1),i=a=>{o.value=a.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",i):s.removeListener(i))},c=Cl(()=>{r.value&&(l(),s=n.matchMedia(Oe(e)),"addEventListener"in s?s.addEventListener("change",i):s.addListener(i),o.value=s.matches)});return Tt(()=>{c(),l(),s=void 0}),o}function qs(e,t={}){const{controls:n=!1,navigator:r=_i}=t,s=Kr(()=>r&&"permissions"in r);let o;const i=typeof e=="string"?{name:e}:e,l=pe(),c=()=>{o&&(l.value=o.state)},a=hf(async()=>{if(s.value){if(!o)try{o=await r.permissions.query(i),Pn(o,"change",c),c()}catch{l.value="prompt"}return o}});return a(),n?{state:l,isSupported:s,query:a}:l}function ca(e={}){const{navigator:t=_i,read:n=!1,source:r,copiedDuring:s=1500,legacy:o=!1}=e,i=Kr(()=>t&&"clipboard"in t),l=qs("clipboard-read"),c=qs("clipboard-write"),a=ue(()=>i.value||o),u=pe(""),h=pe(!1),p=xf(()=>h.value=!1,s);function m(){i.value&&O(l.value)?t.clipboard.readText().then(R=>{u.value=R}):u.value=I()}a.value&&n&&Pn(["copy","cut"],m);async function S(R=Oe(r)){a.value&&R!=null&&(i.value&&O(c.value)?await t.clipboard.writeText(R):A(R),u.value=R,h.value=!0,p.start())}function A(R){const L=document.createElement("textarea");L.value=R??"",L.style.position="absolute",L.style.opacity="0",document.body.appendChild(L),L.select(),document.execCommand("copy"),L.remove()}function I(){var R,L,j;return(j=(L=(R=document==null?void 0:document.getSelection)==null?void 0:R.call(document))==null?void 0:L.toString())!=null?j:""}function O(R){return R==="granted"||R==="prompt"}return{isSupported:a,text:u,copied:h,copy:S}}function Of(e){return JSON.parse(JSON.stringify(e))}function ua(e,t={}){const n=pe({}),{manual:r,clone:s=Of,deep:o=!0,immediate:i=!0}=t;function l(){n.value=s(Oe(e))}return!r&&(le(e)||typeof e=="function")?He(e,l,{...t,deep:o,immediate:i}):l(),{cloned:n,sync:l}}const hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pn="__vueuse_ssr_handlers__",Mf=Tf();function Tf(){return pn in hn||(hn[pn]=hn[pn]||{}),hn[pn]}function yi(e,t){return Mf[e]||t}function If(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Lf={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},zs="vueuse-storage";function Ff(e,t,n,r={}){var s;const{flush:o="pre",deep:i=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:a=!1,shallow:u,window:h=ht,eventFilter:p,onError:m=N=>{console.error(N)},initOnMounted:S}=r,A=(u?vo:pe)(typeof t=="function"?t():t);if(!n)try{n=yi("getDefaultStorage",()=>{var N;return(N=ht)==null?void 0:N.localStorage})()}catch(N){m(N)}if(!n)return A;const I=Oe(t),O=If(I),R=(s=r.serializer)!=null?s:Lf[O],{pause:L,resume:j}=_f(A,()=>k(A.value),{flush:o,deep:i,eventFilter:p});h&&l&&gi(()=>{Pn(h,"storage",H),Pn(h,zs,W),S&&H()}),S||H();function K(N,Y){h&&h.dispatchEvent(new CustomEvent(zs,{detail:{key:e,oldValue:N,newValue:Y,storageArea:n}}))}function k(N){try{const Y=n.getItem(e);if(N==null)K(Y,null),n.removeItem(e);else{const ce=R.write(N);Y!==ce&&(n.setItem(e,ce),K(Y,ce))}}catch(Y){m(Y)}}function ee(N){const Y=N?N.newValue:n.getItem(e);if(Y==null)return c&&I!=null&&n.setItem(e,R.write(I)),I;if(!N&&a){const ce=R.read(Y);return typeof a=="function"?a(ce,I):O==="object"&&!Array.isArray(ce)?{...I,...ce}:ce}else return typeof Y!="string"?Y:R.read(Y)}function H(N){if(!(N&&N.storageArea!==n)){if(N&&N.key==null){A.value=I;return}if(!(N&&N.key!==e)){L();try{(N==null?void 0:N.newValue)!==R.write(A.value)&&(A.value=ee(N))}catch(Y){m(Y)}finally{N?nn(j):j()}}}}function W(N){H(N.detail)}return A}function vi(e){return Af("(prefers-color-scheme: dark)",e)}function Nf(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:s=ht,storage:o,storageKey:i="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:a,disableTransition:u=!0}=e,h={auto:"",light:"light",dark:"dark",...e.modes||{}},p=vi({window:s}),m=ue(()=>p.value?"dark":"light"),S=c||(i==null?gf(r):Ff(i,r,o,{window:s,listenToStorageChanges:l})),A=ue(()=>S.value==="auto"?m.value:S.value),I=yi("updateHTMLAttrs",(j,K,k)=>{const ee=typeof j=="string"?s==null?void 0:s.document.querySelector(j):mi(j);if(!ee)return;let H;if(u){H=s.document.createElement("style");const W="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";H.appendChild(document.createTextNode(W)),s.document.head.appendChild(H)}if(K==="class"){const W=k.split(/\s/g);Object.values(h).flatMap(N=>(N||"").split(/\s/g)).filter(Boolean).forEach(N=>{W.includes(N)?ee.classList.add(N):ee.classList.remove(N)})}else ee.setAttribute(K,k);u&&(s.getComputedStyle(H).opacity,document.head.removeChild(H))});function O(j){var K;I(t,n,(K=h[j])!=null?K:j)}function R(j){e.onChanged?e.onChanged(j,O):O(j)}He(A,R,{flush:"post",immediate:!0}),gi(()=>R(A.value));const L=ue({get(){return a?S.value:A.value},set(j){S.value=j}});try{return Object.assign(L,{store:S,system:m,state:A})}catch{return L}}function $f(e={}){const{valueDark:t="dark",valueLight:n="",window:r=ht}=e,s=Nf({...e,onChanged:(l,c)=>{var a;e.onChanged?(a=e.onChanged)==null||a.call(e,l==="dark",c,l):c(l)},modes:{dark:t,light:n}}),o=ue(()=>s.system?s.system.value:vi({window:r}).value?"dark":"light");return ue({get(){return s.value==="dark"},set(l){const c=l?"dark":"light";o.value===c?s.value="auto":s.value=c}})}function fa(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=pe(new Date),s=()=>r.value=new Date,o=n==="requestAnimationFrame"?Pf(s,{immediate:!0}):Sf(s,n,{immediate:!0});return t?{now:r,...o}:r}const jf=$f(),Df=Rf(jf),bi=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},kf={},Hf={"mt-6":"","inline-flex":"","gap-2":"","text-xl":""},Vf=rn("div",{"i-carbon-sun":"","dark:i-carbon-moon":""},null,-1),Bf=[Vf],Uf=rn("a",{"i-carbon-logo-github":"","icon-btn":"",rel:"noreferrer",href:"https://github.com/efrice",target:"_blank",title:"GitHub"},null,-1);function Kf(e,t){return kr(),qo("nav",Hf,[rn("button",{"icon-btn":"",onClick:t[0]||(t[0]=n=>("toggleDark"in e?e.toggleDark:nt(Df))())},Bf),Uf])}const Wf=bi(kf,[["render",Kf]]),qf={},zf={p:"x-4 y-10","font-sans":"",text:"center gray-700 dark:gray-200"};function Gf(e,t){const n=vl("RouterView"),r=Wf;return kr(),qo("main",zf,[ve(n),ve(r)])}const Yf=bi(qf,[["render",Gf]]);const Jf=nf(),Wr=Uc(Yf),Qf=zu({history:Eu("/"),routes:ef});Wr.use(Qf);Wr.use(Jf);Wr.mount("#app");export{la as A,fa as B,Sr as C,ta as D,Er as E,Te as F,Pn as G,Fo as H,Ur as _,rn as a,ea as b,qo as c,To as d,ue as e,vl as f,ve as g,nt as h,pl as i,cc as j,Zf as k,ua as l,bi as m,oc as n,kr as o,sa as p,ra as q,pe as r,le as s,Xf as t,oa as u,na as v,He as w,ia as x,tn as y,ca as z}; diff --git a/docs/assets/level2-3b3af78c.js b/docs/assets/level2-3b3af78c.js new file mode 100644 index 0000000..da9283e --- /dev/null +++ b/docs/assets/level2-3b3af78c.js @@ -0,0 +1 @@ +const t=[[0,0,1,1,1,1,1,0],[1,1,1,0,0,0,1,0],[1,0,0,0,0,0,1,0],[1,1,1,0,0,0,1,0],[1,0,1,1,0,0,1,0],[1,0,1,0,0,0,1,1],[1,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,1],[1,1,1,1,1,1,1,1]],e={top:2,left:2},o=[{top:2,left:3},{top:3,left:4},{top:4,left:4},{top:6,left:1},{top:6,left:3},{top:6,left:4},{top:6,left:5}],l=[{top:2,left:1},{top:3,left:5},{top:4,left:1},{top:5,left:4},{top:6,left:6},{top:7,left:4},{top:6,left:3}],p={map:t,player:e,mines:o,boxes:l};export{l as boxes,p as default,t as map,o as mines,e as player}; diff --git a/docs/assets/level3-625f817a.js b/docs/assets/level3-625f817a.js new file mode 100644 index 0000000..7a7abfd --- /dev/null +++ b/docs/assets/level3-625f817a.js @@ -0,0 +1 @@ +const t=[[0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,1,1,1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0],[0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0],[1,1,1,0,1,0,1,1,1,0,1,0,0,0,0,1,1,1,1,1,1,1],[1,0,0,0,1,0,1,1,1,0,1,1,1,1,1,1,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1],[1,1,1,1,1,0,1,1,1,1,0,1,0,1,1,1,0,0,0,0,0,1],[0,0,0,0,1,0,0,0,0,0,0,1,1,1,0,1,1,1,1,1,1,1],[0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0]],e={top:8,left:12},o=[{top:4,left:8},{top:3,left:7},{top:2,left:5},{top:4,left:5},{top:7,left:5},{top:7,left:2}],l=[{top:6,left:20},{top:7,left:20},{top:8,left:20},{top:6,left:19},{top:7,left:19},{top:8,left:19}],p={map:t,player:e,mines:o,boxes:l};export{l as boxes,p as default,t as map,o as mines,e as player}; diff --git a/docs/favicon.svg b/docs/favicon.svg new file mode 100644 index 0000000..12d3b56 --- /dev/null +++ b/docs/favicon.svg @@ -0,0 +1,9 @@ + + + + diff --git a/docs/gif.worker.js b/docs/gif.worker.js new file mode 100644 index 0000000..269624e --- /dev/null +++ b/docs/gif.worker.js @@ -0,0 +1,3 @@ +// gif.worker.js 0.2.0 - https://github.com/jnordberg/gif.js +(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o=ByteArray.pageSize)this.newPage();this.pages[this.page][this.cursor++]=val};ByteArray.prototype.writeUTFBytes=function(string){for(var l=string.length,i=0;i=0)this.dispose=disposalCode};GIFEncoder.prototype.setRepeat=function(repeat){this.repeat=repeat};GIFEncoder.prototype.setTransparent=function(color){this.transparent=color};GIFEncoder.prototype.addFrame=function(imageData){this.image=imageData;this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null;this.getImagePixels();this.analyzePixels();if(this.globalPalette===true)this.globalPalette=this.colorTab;if(this.firstFrame){this.writeLSD();this.writePalette();if(this.repeat>=0){this.writeNetscapeExt()}}this.writeGraphicCtrlExt();this.writeImageDesc();if(!this.firstFrame&&!this.globalPalette)this.writePalette();this.writePixels();this.firstFrame=false};GIFEncoder.prototype.finish=function(){this.out.writeByte(59)};GIFEncoder.prototype.setQuality=function(quality){if(quality<1)quality=1;this.sample=quality};GIFEncoder.prototype.setDither=function(dither){if(dither===true)dither="FloydSteinberg";this.dither=dither};GIFEncoder.prototype.setGlobalPalette=function(palette){this.globalPalette=palette};GIFEncoder.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};GIFEncoder.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};GIFEncoder.prototype.analyzePixels=function(){if(!this.colorTab){this.neuQuant=new NeuQuant(this.pixels,this.sample);this.neuQuant.buildColormap();this.colorTab=this.neuQuant.getColormap()}if(this.dither){this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null)}else{this.indexPixels()}this.pixels=null;this.colorDepth=8;this.palSize=7;if(this.transparent!==null){this.transIndex=this.findClosest(this.transparent,true)}};GIFEncoder.prototype.indexPixels=function(imgq){var nPix=this.pixels.length/3;this.indexedPixels=new Uint8Array(nPix);var k=0;for(var j=0;j=0&&x1+x=0&&y1+y>16,(c&65280)>>8,c&255,used)};GIFEncoder.prototype.findClosestRGB=function(r,g,b,used){if(this.colorTab===null)return-1;if(this.neuQuant&&!used){return this.neuQuant.lookupRGB(r,g,b)}var c=b|g<<8|r<<16;var minpos=0;var dmin=256*256*256;var len=this.colorTab.length;for(var i=0,index=0;i=0){disp=dispose&7}disp<<=2;this.out.writeByte(0|disp|0|transp);this.writeShort(this.delay);this.out.writeByte(this.transIndex);this.out.writeByte(0)};GIFEncoder.prototype.writeImageDesc=function(){this.out.writeByte(44);this.writeShort(0);this.writeShort(0);this.writeShort(this.width);this.writeShort(this.height);if(this.firstFrame||this.globalPalette){this.out.writeByte(0)}else{this.out.writeByte(128|0|0|0|this.palSize)}};GIFEncoder.prototype.writeLSD=function(){this.writeShort(this.width);this.writeShort(this.height);this.out.writeByte(128|112|0|this.palSize);this.out.writeByte(0);this.out.writeByte(0)};GIFEncoder.prototype.writeNetscapeExt=function(){this.out.writeByte(33);this.out.writeByte(255);this.out.writeByte(11);this.out.writeUTFBytes("NETSCAPE2.0");this.out.writeByte(3);this.out.writeByte(1);this.writeShort(this.repeat);this.out.writeByte(0)};GIFEncoder.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);var n=3*256-this.colorTab.length;for(var i=0;i>8&255)};GIFEncoder.prototype.writePixels=function(){var enc=new LZWEncoder(this.width,this.height,this.indexedPixels,this.colorDepth);enc.encode(this.out)};GIFEncoder.prototype.stream=function(){return this.out};module.exports=GIFEncoder},{"./LZWEncoder.js":2,"./TypedNeuQuant.js":3}],2:[function(require,module,exports){var EOF=-1;var BITS=12;var HSIZE=5003;var masks=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function LZWEncoder(width,height,pixels,colorDepth){var initCodeSize=Math.max(2,colorDepth);var accum=new Uint8Array(256);var htab=new Int32Array(HSIZE);var codetab=new Int32Array(HSIZE);var cur_accum,cur_bits=0;var a_count;var free_ent=0;var maxcode;var clear_flg=false;var g_init_bits,ClearCode,EOFCode;function char_out(c,outs){accum[a_count++]=c;if(a_count>=254)flush_char(outs)}function cl_block(outs){cl_hash(HSIZE);free_ent=ClearCode+2;clear_flg=true;output(ClearCode,outs)}function cl_hash(hsize){for(var i=0;i=0){disp=hsize_reg-i;if(i===0)disp=1;do{if((i-=disp)<0)i+=hsize_reg;if(htab[i]===fcode){ent=codetab[i];continue outer_loop}}while(htab[i]>=0)}output(ent,outs);ent=c;if(free_ent<1<0){outs.writeByte(a_count);outs.writeBytes(accum,0,a_count);a_count=0}}function MAXCODE(n_bits){return(1<0)cur_accum|=code<=8){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}if(free_ent>maxcode||clear_flg){if(clear_flg){maxcode=MAXCODE(n_bits=g_init_bits);clear_flg=false}else{++n_bits;if(n_bits==BITS)maxcode=1<0){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}flush_char(outs)}}this.encode=encode}module.exports=LZWEncoder},{}],3:[function(require,module,exports){var ncycles=100;var netsize=256;var maxnetpos=netsize-1;var netbiasshift=4;var intbiasshift=16;var intbias=1<>betashift;var betagamma=intbias<>3;var radiusbiasshift=6;var radiusbias=1<>3);var i,v;for(i=0;i>=netbiasshift;network[i][1]>>=netbiasshift;network[i][2]>>=netbiasshift;network[i][3]=i}}function altersingle(alpha,i,b,g,r){network[i][0]-=alpha*(network[i][0]-b)/initalpha;network[i][1]-=alpha*(network[i][1]-g)/initalpha;network[i][2]-=alpha*(network[i][2]-r)/initalpha}function alterneigh(radius,i,b,g,r){var lo=Math.abs(i-radius);var hi=Math.min(i+radius,netsize);var j=i+1;var k=i-1;var m=1;var p,a;while(jlo){a=radpower[m++];if(jlo){p=network[k--];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}}}function contest(b,g,r){var bestd=~(1<<31);var bestbiasd=bestd;var bestpos=-1;var bestbiaspos=bestpos;var i,n,dist,biasdist,betafreq;for(i=0;i>intbiasshift-netbiasshift);if(biasdist>betashift;freq[i]-=betafreq;bias[i]+=betafreq<>1;for(j=previouscol+1;j>1;for(j=previouscol+1;j<256;j++)netindex[j]=maxnetpos}function inxsearch(b,g,r){var a,p,dist;var bestd=1e3;var best=-1;var i=netindex[g];var j=i-1;while(i=0){if(i=bestd)i=netsize;else{i++;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist=0){p=network[j];dist=g-p[1];if(dist>=bestd)j=-1;else{j--;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist>radiusbiasshift;if(rad<=1)rad=0;for(i=0;i=lengthcount)pix-=lengthcount;i++;if(delta===0)delta=1;if(i%delta===0){alpha-=alpha/alphadec;radius-=radius/radiusdec;rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(j=0;j= ByteArray.pageSize) this.newPage();\n this.pages[this.page][this.cursor++] = val;\n};\n\nByteArray.prototype.writeUTFBytes = function(string) {\n for (var l = string.length, i = 0; i < l; i++)\n this.writeByte(string.charCodeAt(i));\n};\n\nByteArray.prototype.writeBytes = function(array, offset, length) {\n for (var l = length || array.length, i = offset || 0; i < l; i++)\n this.writeByte(array[i]);\n};\n\nfunction GIFEncoder(width, height) {\n // image size\n this.width = ~~width;\n this.height = ~~height;\n\n // transparent color if given\n this.transparent = null;\n\n // transparent index in color table\n this.transIndex = 0;\n\n // -1 = no repeat, 0 = forever. anything else is repeat count\n this.repeat = -1;\n\n // frame delay (hundredths)\n this.delay = 0;\n\n this.image = null; // current frame\n this.pixels = null; // BGR byte array from frame\n this.indexedPixels = null; // converted frame indexed to palette\n this.colorDepth = null; // number of bit planes\n this.colorTab = null; // RGB palette\n this.neuQuant = null; // NeuQuant instance that was used to generate this.colorTab.\n this.usedEntry = new Array(); // active palette entries\n this.palSize = 7; // color table size (bits-1)\n this.dispose = -1; // disposal code (-1 = use default)\n this.firstFrame = true;\n this.sample = 10; // default sample interval for quantizer\n this.dither = false; // default dithering\n this.globalPalette = false;\n\n this.out = new ByteArray();\n}\n\n/*\n Sets the delay time between each frame, or changes it for subsequent frames\n (applies to last frame added)\n*/\nGIFEncoder.prototype.setDelay = function(milliseconds) {\n this.delay = Math.round(milliseconds / 10);\n};\n\n/*\n Sets frame rate in frames per second.\n*/\nGIFEncoder.prototype.setFrameRate = function(fps) {\n this.delay = Math.round(100 / fps);\n};\n\n/*\n Sets the GIF frame disposal code for the last added frame and any\n subsequent frames.\n\n Default is 0 if no transparent color has been set, otherwise 2.\n*/\nGIFEncoder.prototype.setDispose = function(disposalCode) {\n if (disposalCode >= 0) this.dispose = disposalCode;\n};\n\n/*\n Sets the number of times the set of GIF frames should be played.\n\n -1 = play once\n 0 = repeat indefinitely\n\n Default is -1\n\n Must be invoked before the first image is added\n*/\n\nGIFEncoder.prototype.setRepeat = function(repeat) {\n this.repeat = repeat;\n};\n\n/*\n Sets the transparent color for the last added frame and any subsequent\n frames. Since all colors are subject to modification in the quantization\n process, the color in the final palette for each frame closest to the given\n color becomes the transparent color for that frame. May be set to null to\n indicate no transparent color.\n*/\nGIFEncoder.prototype.setTransparent = function(color) {\n this.transparent = color;\n};\n\n/*\n Adds next GIF frame. The frame is not written immediately, but is\n actually deferred until the next frame is received so that timing\n data can be inserted. Invoking finish() flushes all frames.\n*/\nGIFEncoder.prototype.addFrame = function(imageData) {\n this.image = imageData;\n\n this.colorTab = this.globalPalette && this.globalPalette.slice ? this.globalPalette : null;\n\n this.getImagePixels(); // convert to correct format if necessary\n this.analyzePixels(); // build color table & map pixels\n\n if (this.globalPalette === true) this.globalPalette = this.colorTab;\n\n if (this.firstFrame) {\n this.writeLSD(); // logical screen descriptior\n this.writePalette(); // global color table\n if (this.repeat >= 0) {\n // use NS app extension to indicate reps\n this.writeNetscapeExt();\n }\n }\n\n this.writeGraphicCtrlExt(); // write graphic control extension\n this.writeImageDesc(); // image descriptor\n if (!this.firstFrame && !this.globalPalette) this.writePalette(); // local color table\n this.writePixels(); // encode and write pixel data\n\n this.firstFrame = false;\n};\n\n/*\n Adds final trailer to the GIF stream, if you don't call the finish method\n the GIF stream will not be valid.\n*/\nGIFEncoder.prototype.finish = function() {\n this.out.writeByte(0x3b); // gif trailer\n};\n\n/*\n Sets quality of color quantization (conversion of images to the maximum 256\n colors allowed by the GIF specification). Lower values (minimum = 1)\n produce better colors, but slow processing significantly. 10 is the\n default, and produces good color mapping at reasonable speeds. Values\n greater than 20 do not yield significant improvements in speed.\n*/\nGIFEncoder.prototype.setQuality = function(quality) {\n if (quality < 1) quality = 1;\n this.sample = quality;\n};\n\n/*\n Sets dithering method. Available are:\n - FALSE no dithering\n - TRUE or FloydSteinberg\n - FalseFloydSteinberg\n - Stucki\n - Atkinson\n You can add '-serpentine' to use serpentine scanning\n*/\nGIFEncoder.prototype.setDither = function(dither) {\n if (dither === true) dither = 'FloydSteinberg';\n this.dither = dither;\n};\n\n/*\n Sets global palette for all frames.\n You can provide TRUE to create global palette from first picture.\n Or an array of r,g,b,r,g,b,...\n*/\nGIFEncoder.prototype.setGlobalPalette = function(palette) {\n this.globalPalette = palette;\n};\n\n/*\n Returns global palette used for all frames.\n If setGlobalPalette(true) was used, then this function will return\n calculated palette after the first frame is added.\n*/\nGIFEncoder.prototype.getGlobalPalette = function() {\n return (this.globalPalette && this.globalPalette.slice && this.globalPalette.slice(0)) || this.globalPalette;\n};\n\n/*\n Writes GIF file header\n*/\nGIFEncoder.prototype.writeHeader = function() {\n this.out.writeUTFBytes(\"GIF89a\");\n};\n\n/*\n Analyzes current frame colors and creates color map.\n*/\nGIFEncoder.prototype.analyzePixels = function() {\n if (!this.colorTab) {\n this.neuQuant = new NeuQuant(this.pixels, this.sample);\n this.neuQuant.buildColormap(); // create reduced palette\n this.colorTab = this.neuQuant.getColormap();\n }\n\n // map image pixels to new palette\n if (this.dither) {\n this.ditherPixels(this.dither.replace('-serpentine', ''), this.dither.match(/-serpentine/) !== null);\n } else {\n this.indexPixels();\n }\n\n this.pixels = null;\n this.colorDepth = 8;\n this.palSize = 7;\n\n // get closest match to transparent color if specified\n if (this.transparent !== null) {\n this.transIndex = this.findClosest(this.transparent, true);\n }\n};\n\n/*\n Index pixels, without dithering\n*/\nGIFEncoder.prototype.indexPixels = function(imgq) {\n var nPix = this.pixels.length / 3;\n this.indexedPixels = new Uint8Array(nPix);\n var k = 0;\n for (var j = 0; j < nPix; j++) {\n var index = this.findClosestRGB(\n this.pixels[k++] & 0xff,\n this.pixels[k++] & 0xff,\n this.pixels[k++] & 0xff\n );\n this.usedEntry[index] = true;\n this.indexedPixels[j] = index;\n }\n};\n\n/*\n Taken from http://jsbin.com/iXofIji/2/edit by PAEz\n*/\nGIFEncoder.prototype.ditherPixels = function(kernel, serpentine) {\n var kernels = {\n FalseFloydSteinberg: [\n [3 / 8, 1, 0],\n [3 / 8, 0, 1],\n [2 / 8, 1, 1]\n ],\n FloydSteinberg: [\n [7 / 16, 1, 0],\n [3 / 16, -1, 1],\n [5 / 16, 0, 1],\n [1 / 16, 1, 1]\n ],\n Stucki: [\n [8 / 42, 1, 0],\n [4 / 42, 2, 0],\n [2 / 42, -2, 1],\n [4 / 42, -1, 1],\n [8 / 42, 0, 1],\n [4 / 42, 1, 1],\n [2 / 42, 2, 1],\n [1 / 42, -2, 2],\n [2 / 42, -1, 2],\n [4 / 42, 0, 2],\n [2 / 42, 1, 2],\n [1 / 42, 2, 2]\n ],\n Atkinson: [\n [1 / 8, 1, 0],\n [1 / 8, 2, 0],\n [1 / 8, -1, 1],\n [1 / 8, 0, 1],\n [1 / 8, 1, 1],\n [1 / 8, 0, 2]\n ]\n };\n\n if (!kernel || !kernels[kernel]) {\n throw 'Unknown dithering kernel: ' + kernel;\n }\n\n var ds = kernels[kernel];\n var index = 0,\n height = this.height,\n width = this.width,\n data = this.pixels;\n var direction = serpentine ? -1 : 1;\n\n this.indexedPixels = new Uint8Array(this.pixels.length / 3);\n\n for (var y = 0; y < height; y++) {\n\n if (serpentine) direction = direction * -1;\n\n for (var x = (direction == 1 ? 0 : width - 1), xend = (direction == 1 ? width : 0); x !== xend; x += direction) {\n\n index = (y * width) + x;\n // Get original colour\n var idx = index * 3;\n var r1 = data[idx];\n var g1 = data[idx + 1];\n var b1 = data[idx + 2];\n\n // Get converted colour\n idx = this.findClosestRGB(r1, g1, b1);\n this.usedEntry[idx] = true;\n this.indexedPixels[index] = idx;\n idx *= 3;\n var r2 = this.colorTab[idx];\n var g2 = this.colorTab[idx + 1];\n var b2 = this.colorTab[idx + 2];\n\n var er = r1 - r2;\n var eg = g1 - g2;\n var eb = b1 - b2;\n\n for (var i = (direction == 1 ? 0: ds.length - 1), end = (direction == 1 ? ds.length : 0); i !== end; i += direction) {\n var x1 = ds[i][1]; // *direction; // Should this by timesd by direction?..to make the kernel go in the opposite direction....got no idea....\n var y1 = ds[i][2];\n if (x1 + x >= 0 && x1 + x < width && y1 + y >= 0 && y1 + y < height) {\n var d = ds[i][0];\n idx = index + x1 + (y1 * width);\n idx *= 3;\n\n data[idx] = Math.max(0, Math.min(255, data[idx] + er * d));\n data[idx + 1] = Math.max(0, Math.min(255, data[idx + 1] + eg * d));\n data[idx + 2] = Math.max(0, Math.min(255, data[idx + 2] + eb * d));\n }\n }\n }\n }\n};\n\n/*\n Returns index of palette color closest to c\n*/\nGIFEncoder.prototype.findClosest = function(c, used) {\n return this.findClosestRGB((c & 0xFF0000) >> 16, (c & 0x00FF00) >> 8, (c & 0x0000FF), used);\n};\n\nGIFEncoder.prototype.findClosestRGB = function(r, g, b, used) {\n if (this.colorTab === null) return -1;\n\n if (this.neuQuant && !used) {\n return this.neuQuant.lookupRGB(r, g, b);\n }\n \n var c = b | (g << 8) | (r << 16);\n\n var minpos = 0;\n var dmin = 256 * 256 * 256;\n var len = this.colorTab.length;\n\n for (var i = 0, index = 0; i < len; index++) {\n var dr = r - (this.colorTab[i++] & 0xff);\n var dg = g - (this.colorTab[i++] & 0xff);\n var db = b - (this.colorTab[i++] & 0xff);\n var d = dr * dr + dg * dg + db * db;\n if ((!used || this.usedEntry[index]) && (d < dmin)) {\n dmin = d;\n minpos = index;\n }\n }\n\n return minpos;\n};\n\n/*\n Extracts image pixels into byte array pixels\n (removes alphachannel from canvas imagedata)\n*/\nGIFEncoder.prototype.getImagePixels = function() {\n var w = this.width;\n var h = this.height;\n this.pixels = new Uint8Array(w * h * 3);\n\n var data = this.image;\n var srcPos = 0;\n var count = 0;\n\n for (var i = 0; i < h; i++) {\n for (var j = 0; j < w; j++) {\n this.pixels[count++] = data[srcPos++];\n this.pixels[count++] = data[srcPos++];\n this.pixels[count++] = data[srcPos++];\n srcPos++;\n }\n }\n};\n\n/*\n Writes Graphic Control Extension\n*/\nGIFEncoder.prototype.writeGraphicCtrlExt = function() {\n this.out.writeByte(0x21); // extension introducer\n this.out.writeByte(0xf9); // GCE label\n this.out.writeByte(4); // data block size\n\n var transp, disp;\n if (this.transparent === null) {\n transp = 0;\n disp = 0; // dispose = no action\n } else {\n transp = 1;\n disp = 2; // force clear if using transparent color\n }\n\n if (this.dispose >= 0) {\n disp = dispose & 7; // user override\n }\n disp <<= 2;\n\n // packed fields\n this.out.writeByte(\n 0 | // 1:3 reserved\n disp | // 4:6 disposal\n 0 | // 7 user input - 0 = none\n transp // 8 transparency flag\n );\n\n this.writeShort(this.delay); // delay x 1/100 sec\n this.out.writeByte(this.transIndex); // transparent color index\n this.out.writeByte(0); // block terminator\n};\n\n/*\n Writes Image Descriptor\n*/\nGIFEncoder.prototype.writeImageDesc = function() {\n this.out.writeByte(0x2c); // image separator\n this.writeShort(0); // image position x,y = 0,0\n this.writeShort(0);\n this.writeShort(this.width); // image size\n this.writeShort(this.height);\n\n // packed fields\n if (this.firstFrame || this.globalPalette) {\n // no LCT - GCT is used for first (or only) frame\n this.out.writeByte(0);\n } else {\n // specify normal LCT\n this.out.writeByte(\n 0x80 | // 1 local color table 1=yes\n 0 | // 2 interlace - 0=no\n 0 | // 3 sorted - 0=no\n 0 | // 4-5 reserved\n this.palSize // 6-8 size of color table\n );\n }\n};\n\n/*\n Writes Logical Screen Descriptor\n*/\nGIFEncoder.prototype.writeLSD = function() {\n // logical screen size\n this.writeShort(this.width);\n this.writeShort(this.height);\n\n // packed fields\n this.out.writeByte(\n 0x80 | // 1 : global color table flag = 1 (gct used)\n 0x70 | // 2-4 : color resolution = 7\n 0x00 | // 5 : gct sort flag = 0\n this.palSize // 6-8 : gct size\n );\n\n this.out.writeByte(0); // background color index\n this.out.writeByte(0); // pixel aspect ratio - assume 1:1\n};\n\n/*\n Writes Netscape application extension to define repeat count.\n*/\nGIFEncoder.prototype.writeNetscapeExt = function() {\n this.out.writeByte(0x21); // extension introducer\n this.out.writeByte(0xff); // app extension label\n this.out.writeByte(11); // block size\n this.out.writeUTFBytes('NETSCAPE2.0'); // app id + auth code\n this.out.writeByte(3); // sub-block size\n this.out.writeByte(1); // loop sub-block id\n this.writeShort(this.repeat); // loop count (extra iterations, 0=repeat forever)\n this.out.writeByte(0); // block terminator\n};\n\n/*\n Writes color table\n*/\nGIFEncoder.prototype.writePalette = function() {\n this.out.writeBytes(this.colorTab);\n var n = (3 * 256) - this.colorTab.length;\n for (var i = 0; i < n; i++)\n this.out.writeByte(0);\n};\n\nGIFEncoder.prototype.writeShort = function(pValue) {\n this.out.writeByte(pValue & 0xFF);\n this.out.writeByte((pValue >> 8) & 0xFF);\n};\n\n/*\n Encodes and writes pixel data\n*/\nGIFEncoder.prototype.writePixels = function() {\n var enc = new LZWEncoder(this.width, this.height, this.indexedPixels, this.colorDepth);\n enc.encode(this.out);\n};\n\n/*\n Retrieves the GIF stream\n*/\nGIFEncoder.prototype.stream = function() {\n return this.out;\n};\n\nmodule.exports = GIFEncoder;\n","/*\n LZWEncoder.js\n\n Authors\n Kevin Weiner (original Java version - kweiner@fmsware.com)\n Thibault Imbert (AS3 version - bytearray.org)\n Johan Nordberg (JS version - code@johan-nordberg.com)\n\n Acknowledgements\n GIFCOMPR.C - GIF Image compression routines\n Lempel-Ziv compression based on 'compress'. GIF modifications by\n David Rowley (mgardi@watdcsu.waterloo.edu)\n GIF Image compression - modified 'compress'\n Based on: compress.c - File compression ala IEEE Computer, June 1984.\n By Authors: Spencer W. Thomas (decvax!harpo!utah-cs!utah-gr!thomas)\n Jim McKie (decvax!mcvax!jim)\n Steve Davies (decvax!vax135!petsd!peora!srd)\n Ken Turkowski (decvax!decwrl!turtlevax!ken)\n James A. Woods (decvax!ihnp4!ames!jaw)\n Joe Orost (decvax!vax135!petsd!joe)\n*/\n\nvar EOF = -1;\nvar BITS = 12;\nvar HSIZE = 5003; // 80% occupancy\nvar masks = [0x0000, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F,\n 0x003F, 0x007F, 0x00FF, 0x01FF, 0x03FF, 0x07FF,\n 0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF, 0xFFFF];\n\nfunction LZWEncoder(width, height, pixels, colorDepth) {\n var initCodeSize = Math.max(2, colorDepth);\n\n var accum = new Uint8Array(256);\n var htab = new Int32Array(HSIZE);\n var codetab = new Int32Array(HSIZE);\n\n var cur_accum, cur_bits = 0;\n var a_count;\n var free_ent = 0; // first unused entry\n var maxcode;\n\n // block compression parameters -- after all codes are used up,\n // and compression rate changes, start over.\n var clear_flg = false;\n\n // Algorithm: use open addressing double hashing (no chaining) on the\n // prefix code / next character combination. We do a variant of Knuth's\n // algorithm D (vol. 3, sec. 6.4) along with G. Knott's relatively-prime\n // secondary probe. Here, the modular division first probe is gives way\n // to a faster exclusive-or manipulation. Also do block compression with\n // an adaptive reset, whereby the code table is cleared when the compression\n // ratio decreases, but after the table fills. The variable-length output\n // codes are re-sized at this point, and a special CLEAR code is generated\n // for the decompressor. Late addition: construct the table according to\n // file size for noticeable speed improvement on small files. Please direct\n // questions about this implementation to ames!jaw.\n var g_init_bits, ClearCode, EOFCode;\n\n // Add a character to the end of the current packet, and if it is 254\n // characters, flush the packet to disk.\n function char_out(c, outs) {\n accum[a_count++] = c;\n if (a_count >= 254) flush_char(outs);\n }\n\n // Clear out the hash table\n // table clear for block compress\n function cl_block(outs) {\n cl_hash(HSIZE);\n free_ent = ClearCode + 2;\n clear_flg = true;\n output(ClearCode, outs);\n }\n\n // Reset code table\n function cl_hash(hsize) {\n for (var i = 0; i < hsize; ++i) htab[i] = -1;\n }\n\n function compress(init_bits, outs) {\n var fcode, c, i, ent, disp, hsize_reg, hshift;\n\n // Set up the globals: g_init_bits - initial number of bits\n g_init_bits = init_bits;\n\n // Set up the necessary values\n clear_flg = false;\n n_bits = g_init_bits;\n maxcode = MAXCODE(n_bits);\n\n ClearCode = 1 << (init_bits - 1);\n EOFCode = ClearCode + 1;\n free_ent = ClearCode + 2;\n\n a_count = 0; // clear packet\n\n ent = nextPixel();\n\n hshift = 0;\n for (fcode = HSIZE; fcode < 65536; fcode *= 2) ++hshift;\n hshift = 8 - hshift; // set hash code range bound\n hsize_reg = HSIZE;\n cl_hash(hsize_reg); // clear hash table\n\n output(ClearCode, outs);\n\n outer_loop: while ((c = nextPixel()) != EOF) {\n fcode = (c << BITS) + ent;\n i = (c << hshift) ^ ent; // xor hashing\n if (htab[i] === fcode) {\n ent = codetab[i];\n continue;\n } else if (htab[i] >= 0) { // non-empty slot\n disp = hsize_reg - i; // secondary hash (after G. Knott)\n if (i === 0) disp = 1;\n do {\n if ((i -= disp) < 0) i += hsize_reg;\n if (htab[i] === fcode) {\n ent = codetab[i];\n continue outer_loop;\n }\n } while (htab[i] >= 0);\n }\n output(ent, outs);\n ent = c;\n if (free_ent < 1 << BITS) {\n codetab[i] = free_ent++; // code -> hashtable\n htab[i] = fcode;\n } else {\n cl_block(outs);\n }\n }\n\n // Put out the final code.\n output(ent, outs);\n output(EOFCode, outs);\n }\n\n function encode(outs) {\n outs.writeByte(initCodeSize); // write \"initial code size\" byte\n remaining = width * height; // reset navigation variables\n curPixel = 0;\n compress(initCodeSize + 1, outs); // compress and write the pixel data\n outs.writeByte(0); // write block terminator\n }\n\n // Flush the packet to disk, and reset the accumulator\n function flush_char(outs) {\n if (a_count > 0) {\n outs.writeByte(a_count);\n outs.writeBytes(accum, 0, a_count);\n a_count = 0;\n }\n }\n\n function MAXCODE(n_bits) {\n return (1 << n_bits) - 1;\n }\n\n // Return the next pixel from the image\n function nextPixel() {\n if (remaining === 0) return EOF;\n --remaining;\n var pix = pixels[curPixel++];\n return pix & 0xff;\n }\n\n function output(code, outs) {\n cur_accum &= masks[cur_bits];\n\n if (cur_bits > 0) cur_accum |= (code << cur_bits);\n else cur_accum = code;\n\n cur_bits += n_bits;\n\n while (cur_bits >= 8) {\n char_out((cur_accum & 0xff), outs);\n cur_accum >>= 8;\n cur_bits -= 8;\n }\n\n // If the next entry is going to be too big for the code size,\n // then increase it, if possible.\n if (free_ent > maxcode || clear_flg) {\n if (clear_flg) {\n maxcode = MAXCODE(n_bits = g_init_bits);\n clear_flg = false;\n } else {\n ++n_bits;\n if (n_bits == BITS) maxcode = 1 << BITS;\n else maxcode = MAXCODE(n_bits);\n }\n }\n\n if (code == EOFCode) {\n // At EOF, write the rest of the buffer.\n while (cur_bits > 0) {\n char_out((cur_accum & 0xff), outs);\n cur_accum >>= 8;\n cur_bits -= 8;\n }\n flush_char(outs);\n }\n }\n\n this.encode = encode;\n}\n\nmodule.exports = LZWEncoder;\n","/* NeuQuant Neural-Net Quantization Algorithm\n * ------------------------------------------\n *\n * Copyright (c) 1994 Anthony Dekker\n *\n * NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994.\n * See \"Kohonen neural networks for optimal colour quantization\"\n * in \"Network: Computation in Neural Systems\" Vol. 5 (1994) pp 351-367.\n * for a discussion of the algorithm.\n * See also http://members.ozemail.com.au/~dekker/NEUQUANT.HTML\n *\n * Any party obtaining a copy of these files from the author, directly or\n * indirectly, is granted, free of charge, a full and unrestricted irrevocable,\n * world-wide, paid up, royalty-free, nonexclusive right and license to deal\n * in this software and documentation files (the \"Software\"), including without\n * limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,\n * and/or sell copies of the Software, and to permit persons who receive\n * copies from any such party to do so, with the only requirement being\n * that this copyright notice remain intact.\n *\n * (JavaScript port 2012 by Johan Nordberg)\n */\n\nvar ncycles = 100; // number of learning cycles\nvar netsize = 256; // number of colors used\nvar maxnetpos = netsize - 1;\n\n// defs for freq and bias\nvar netbiasshift = 4; // bias for colour values\nvar intbiasshift = 16; // bias for fractions\nvar intbias = (1 << intbiasshift);\nvar gammashift = 10;\nvar gamma = (1 << gammashift);\nvar betashift = 10;\nvar beta = (intbias >> betashift); /* beta = 1/1024 */\nvar betagamma = (intbias << (gammashift - betashift));\n\n// defs for decreasing radius factor\nvar initrad = (netsize >> 3); // for 256 cols, radius starts\nvar radiusbiasshift = 6; // at 32.0 biased by 6 bits\nvar radiusbias = (1 << radiusbiasshift);\nvar initradius = (initrad * radiusbias); //and decreases by a\nvar radiusdec = 30; // factor of 1/30 each cycle\n\n// defs for decreasing alpha factor\nvar alphabiasshift = 10; // alpha starts at 1.0\nvar initalpha = (1 << alphabiasshift);\nvar alphadec; // biased by 10 bits\n\n/* radbias and alpharadbias used for radpower calculation */\nvar radbiasshift = 8;\nvar radbias = (1 << radbiasshift);\nvar alpharadbshift = (alphabiasshift + radbiasshift);\nvar alpharadbias = (1 << alpharadbshift);\n\n// four primes near 500 - assume no image has a length so large that it is\n// divisible by all four primes\nvar prime1 = 499;\nvar prime2 = 491;\nvar prime3 = 487;\nvar prime4 = 503;\nvar minpicturebytes = (3 * prime4);\n\n/*\n Constructor: NeuQuant\n\n Arguments:\n\n pixels - array of pixels in RGB format\n samplefac - sampling factor 1 to 30 where lower is better quality\n\n >\n > pixels = [r, g, b, r, g, b, r, g, b, ..]\n >\n*/\nfunction NeuQuant(pixels, samplefac) {\n var network; // int[netsize][4]\n var netindex; // for network lookup - really 256\n\n // bias and freq arrays for learning\n var bias;\n var freq;\n var radpower;\n\n /*\n Private Method: init\n\n sets up arrays\n */\n function init() {\n network = [];\n netindex = new Int32Array(256);\n bias = new Int32Array(netsize);\n freq = new Int32Array(netsize);\n radpower = new Int32Array(netsize >> 3);\n\n var i, v;\n for (i = 0; i < netsize; i++) {\n v = (i << (netbiasshift + 8)) / netsize;\n network[i] = new Float64Array([v, v, v, 0]);\n //network[i] = [v, v, v, 0]\n freq[i] = intbias / netsize;\n bias[i] = 0;\n }\n }\n\n /*\n Private Method: unbiasnet\n\n unbiases network to give byte values 0..255 and record position i to prepare for sort\n */\n function unbiasnet() {\n for (var i = 0; i < netsize; i++) {\n network[i][0] >>= netbiasshift;\n network[i][1] >>= netbiasshift;\n network[i][2] >>= netbiasshift;\n network[i][3] = i; // record color number\n }\n }\n\n /*\n Private Method: altersingle\n\n moves neuron *i* towards biased (b,g,r) by factor *alpha*\n */\n function altersingle(alpha, i, b, g, r) {\n network[i][0] -= (alpha * (network[i][0] - b)) / initalpha;\n network[i][1] -= (alpha * (network[i][1] - g)) / initalpha;\n network[i][2] -= (alpha * (network[i][2] - r)) / initalpha;\n }\n\n /*\n Private Method: alterneigh\n\n moves neurons in *radius* around index *i* towards biased (b,g,r) by factor *alpha*\n */\n function alterneigh(radius, i, b, g, r) {\n var lo = Math.abs(i - radius);\n var hi = Math.min(i + radius, netsize);\n\n var j = i + 1;\n var k = i - 1;\n var m = 1;\n\n var p, a;\n while ((j < hi) || (k > lo)) {\n a = radpower[m++];\n\n if (j < hi) {\n p = network[j++];\n p[0] -= (a * (p[0] - b)) / alpharadbias;\n p[1] -= (a * (p[1] - g)) / alpharadbias;\n p[2] -= (a * (p[2] - r)) / alpharadbias;\n }\n\n if (k > lo) {\n p = network[k--];\n p[0] -= (a * (p[0] - b)) / alpharadbias;\n p[1] -= (a * (p[1] - g)) / alpharadbias;\n p[2] -= (a * (p[2] - r)) / alpharadbias;\n }\n }\n }\n\n /*\n Private Method: contest\n\n searches for biased BGR values\n */\n function contest(b, g, r) {\n /*\n finds closest neuron (min dist) and updates freq\n finds best neuron (min dist-bias) and returns position\n for frequently chosen neurons, freq[i] is high and bias[i] is negative\n bias[i] = gamma * ((1 / netsize) - freq[i])\n */\n\n var bestd = ~(1 << 31);\n var bestbiasd = bestd;\n var bestpos = -1;\n var bestbiaspos = bestpos;\n\n var i, n, dist, biasdist, betafreq;\n for (i = 0; i < netsize; i++) {\n n = network[i];\n\n dist = Math.abs(n[0] - b) + Math.abs(n[1] - g) + Math.abs(n[2] - r);\n if (dist < bestd) {\n bestd = dist;\n bestpos = i;\n }\n\n biasdist = dist - ((bias[i]) >> (intbiasshift - netbiasshift));\n if (biasdist < bestbiasd) {\n bestbiasd = biasdist;\n bestbiaspos = i;\n }\n\n betafreq = (freq[i] >> betashift);\n freq[i] -= betafreq;\n bias[i] += (betafreq << gammashift);\n }\n\n freq[bestpos] += beta;\n bias[bestpos] -= betagamma;\n\n return bestbiaspos;\n }\n\n /*\n Private Method: inxbuild\n\n sorts network and builds netindex[0..255]\n */\n function inxbuild() {\n var i, j, p, q, smallpos, smallval, previouscol = 0, startpos = 0;\n for (i = 0; i < netsize; i++) {\n p = network[i];\n smallpos = i;\n smallval = p[1]; // index on g\n // find smallest in i..netsize-1\n for (j = i + 1; j < netsize; j++) {\n q = network[j];\n if (q[1] < smallval) { // index on g\n smallpos = j;\n smallval = q[1]; // index on g\n }\n }\n q = network[smallpos];\n // swap p (i) and q (smallpos) entries\n if (i != smallpos) {\n j = q[0]; q[0] = p[0]; p[0] = j;\n j = q[1]; q[1] = p[1]; p[1] = j;\n j = q[2]; q[2] = p[2]; p[2] = j;\n j = q[3]; q[3] = p[3]; p[3] = j;\n }\n // smallval entry is now in position i\n\n if (smallval != previouscol) {\n netindex[previouscol] = (startpos + i) >> 1;\n for (j = previouscol + 1; j < smallval; j++)\n netindex[j] = i;\n previouscol = smallval;\n startpos = i;\n }\n }\n netindex[previouscol] = (startpos + maxnetpos) >> 1;\n for (j = previouscol + 1; j < 256; j++)\n netindex[j] = maxnetpos; // really 256\n }\n\n /*\n Private Method: inxsearch\n\n searches for BGR values 0..255 and returns a color index\n */\n function inxsearch(b, g, r) {\n var a, p, dist;\n\n var bestd = 1000; // biggest possible dist is 256*3\n var best = -1;\n\n var i = netindex[g]; // index on g\n var j = i - 1; // start at netindex[g] and work outwards\n\n while ((i < netsize) || (j >= 0)) {\n if (i < netsize) {\n p = network[i];\n dist = p[1] - g; // inx key\n if (dist >= bestd) i = netsize; // stop iter\n else {\n i++;\n if (dist < 0) dist = -dist;\n a = p[0] - b; if (a < 0) a = -a;\n dist += a;\n if (dist < bestd) {\n a = p[2] - r; if (a < 0) a = -a;\n dist += a;\n if (dist < bestd) {\n bestd = dist;\n best = p[3];\n }\n }\n }\n }\n if (j >= 0) {\n p = network[j];\n dist = g - p[1]; // inx key - reverse dif\n if (dist >= bestd) j = -1; // stop iter\n else {\n j--;\n if (dist < 0) dist = -dist;\n a = p[0] - b; if (a < 0) a = -a;\n dist += a;\n if (dist < bestd) {\n a = p[2] - r; if (a < 0) a = -a;\n dist += a;\n if (dist < bestd) {\n bestd = dist;\n best = p[3];\n }\n }\n }\n }\n }\n\n return best;\n }\n\n /*\n Private Method: learn\n\n \"Main Learning Loop\"\n */\n function learn() {\n var i;\n\n var lengthcount = pixels.length;\n var alphadec = 30 + ((samplefac - 1) / 3);\n var samplepixels = lengthcount / (3 * samplefac);\n var delta = ~~(samplepixels / ncycles);\n var alpha = initalpha;\n var radius = initradius;\n\n var rad = radius >> radiusbiasshift;\n\n if (rad <= 1) rad = 0;\n for (i = 0; i < rad; i++)\n radpower[i] = alpha * (((rad * rad - i * i) * radbias) / (rad * rad));\n\n var step;\n if (lengthcount < minpicturebytes) {\n samplefac = 1;\n step = 3;\n } else if ((lengthcount % prime1) !== 0) {\n step = 3 * prime1;\n } else if ((lengthcount % prime2) !== 0) {\n step = 3 * prime2;\n } else if ((lengthcount % prime3) !== 0) {\n step = 3 * prime3;\n } else {\n step = 3 * prime4;\n }\n\n var b, g, r, j;\n var pix = 0; // current pixel\n\n i = 0;\n while (i < samplepixels) {\n b = (pixels[pix] & 0xff) << netbiasshift;\n g = (pixels[pix + 1] & 0xff) << netbiasshift;\n r = (pixels[pix + 2] & 0xff) << netbiasshift;\n\n j = contest(b, g, r);\n\n altersingle(alpha, j, b, g, r);\n if (rad !== 0) alterneigh(rad, j, b, g, r); // alter neighbours\n\n pix += step;\n if (pix >= lengthcount) pix -= lengthcount;\n\n i++;\n\n if (delta === 0) delta = 1;\n if (i % delta === 0) {\n alpha -= alpha / alphadec;\n radius -= radius / radiusdec;\n rad = radius >> radiusbiasshift;\n\n if (rad <= 1) rad = 0;\n for (j = 0; j < rad; j++)\n radpower[j] = alpha * (((rad * rad - j * j) * radbias) / (rad * rad));\n }\n }\n }\n\n /*\n Method: buildColormap\n\n 1. initializes network\n 2. trains it\n 3. removes misconceptions\n 4. builds colorindex\n */\n function buildColormap() {\n init();\n learn();\n unbiasnet();\n inxbuild();\n }\n this.buildColormap = buildColormap;\n\n /*\n Method: getColormap\n\n builds colormap from the index\n\n returns array in the format:\n\n >\n > [r, g, b, r, g, b, r, g, b, ..]\n >\n */\n function getColormap() {\n var map = [];\n var index = [];\n\n for (var i = 0; i < netsize; i++)\n index[network[i][3]] = i;\n\n var k = 0;\n for (var l = 0; l < netsize; l++) {\n var j = index[l];\n map[k++] = (network[j][0]);\n map[k++] = (network[j][1]);\n map[k++] = (network[j][2]);\n }\n return map;\n }\n this.getColormap = getColormap;\n\n /*\n Method: lookupRGB\n\n looks for the closest *r*, *g*, *b* color in the map and\n returns its index\n */\n this.lookupRGB = inxsearch;\n}\n\nmodule.exports = NeuQuant;\n","GIFEncoder = require './GIFEncoder.js'\n\nrenderFrame = (frame) ->\n encoder = new GIFEncoder frame.width, frame.height\n\n if frame.index is 0\n encoder.writeHeader()\n else\n encoder.firstFrame = false\n\n encoder.setTransparent frame.transparent\n encoder.setRepeat frame.repeat\n encoder.setDelay frame.delay\n encoder.setQuality frame.quality\n encoder.setDither frame.dither\n encoder.setGlobalPalette frame.globalPalette\n encoder.addFrame frame.data\n encoder.finish() if frame.last\n if frame.globalPalette == true\n frame.globalPalette = encoder.getGlobalPalette()\n\n stream = encoder.stream()\n frame.data = stream.pages\n frame.cursor = stream.cursor\n frame.pageSize = stream.constructor.pageSize\n\n if frame.canTransfer\n transfer = (page.buffer for page in frame.data)\n self.postMessage frame, transfer\n else\n self.postMessage frame\n\nself.onmessage = (event) -> renderFrame event.data\n"]} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..1eab4ab --- /dev/null +++ b/docs/index.html @@ -0,0 +1,28 @@ + + + + + + + Push Mines + + + + + +
+ + + + + + diff --git a/package.json b/package.json index 5e6f076..c0b504b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "packageManager": "pnpm@8.5.1", "scripts": { - "build": "vite build", + "build": "vite build --outDir docs", "dev": "vite --port 3333", "lint": "eslint .", "typecheck": "vue-tsc --noEmit", @@ -51,7 +51,7 @@ "pre-commit": "pnpm lint-staged" }, "lint-staged": { - "*": "eslint --fix" + "src/*": "eslint --fix" }, "eslintConfig": { "extends": [ @@ -59,4 +59,4 @@ "@unocss" ] } -} +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 016ce40..83f7e80 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,5 +23,5 @@ "~/*": ["src/*"] } }, - "exclude": ["dist", "node_modules"] + "exclude": ["docs", "node_modules"] }