From 7eea03ee7df6e0edb63c90888c4ab3fdc95aa76c Mon Sep 17 00:00:00 2001 From: Affolter Matias Date: Fri, 14 Jun 2024 20:49:59 +0200 Subject: [PATCH] IMG pri --- 404.html | 2 +- client/chunk_17.min.js | 2 +- client/chunk_2.min.js | 2 +- client/chunk_36.min.js | 2 +- client/chunk_39.min.js | 2 +- client/chunk_main_678f84af.min.js | 2 +- client/chunk_main_d939e436.min.js | 2 +- index.html | 2 +- service-worker.js | 10 +++++----- src/js/utils/demoData.js | 9 +++++++++ webpack.config.js | 2 +- 11 files changed, 23 insertions(+), 14 deletions(-) diff --git a/404.html b/404.html index 0ccdefe7..bb22703b 100644 --- a/404.html +++ b/404.html @@ -294,7 +294,7 @@ _REGISTER_SERVICE_WORKER().catch(_RELOAD).then(_LISTEN_RELOAD); - + diff --git a/client/chunk_17.min.js b/client/chunk_17.min.js index 3c22bcb3..721a3866 100644 --- a/client/chunk_17.min.js +++ b/client/chunk_17.min.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{717:function(t,e,_){"use strict";async function n(){function t(t,e){if(o.buffer.byteLength(m.set(o),i(s(0)))}}function _(t){return t>>>0}function n(t){return t&g}function s(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t(3*e.length,0),_(r(0,y.encodeInto(e,m).written,n))}function i(e){let _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0n;return t(3*e.length,0),n(l(0,y.encodeInto(e,m).written,_))}const{instance:{exports:{mem:o,xxh32:r,xxh64:l,init32:h,update32:p,digest32:c,init64:u,update64:d,digest64:f}}}=await WebAssembly.instantiate(a);let m=new Uint8Array(o.buffer);const g=2n**64n-1n,y=new TextEncoder;return{h32:s,h32ToString(t){return s(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0).toString(16).padStart(8,"0")},h32Raw(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t(e.byteLength,0),m.set(e),_(r(0,e.byteLength,n))},create32(){return e(48,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,h,p,c,_)},h64:i,h64ToString(t){return i(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0n).toString(16).padStart(16,"0")},h64Raw(e){let _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0n;return t(e.byteLength,0),m.set(e),n(l(0,e.byteLength,_))},create64(){return e(88,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0n,u,d,f,n)}}}_.r(e),_.d(e,"default",(function(){return n}));const a=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,0,96,3,127,127,127,1,127,96,2,127,127,0,96,2,127,126,0,96,1,127,1,127,96,1,127,1,126,96,3,127,127,126,1,126,96,3,126,127,127,1,126,3,11,10,1,1,2,0,4,6,7,3,0,5,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,211,23,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,247,148,175,175,120,106,33,4,32,2,65,177,243,221,241,121,107,33,5,3,64,32,0,40,2,0,65,247,148,175,175,120,108,32,3,106,65,13,119,65,177,243,221,241,121,108,33,3,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,4,106,65,13,119,65,177,243,221,241,121,108,33,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,2,106,65,13,119,65,177,243,221,241,121,108,33,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,5,106,65,13,119,65,177,243,221,241,121,108,33,5,32,0,65,4,106,34,0,32,6,77,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,1,40,2,0,65,189,220,202,149,124,108,32,0,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,1,45,0,0,65,177,207,217,178,1,108,32,0,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,65,15,118,32,0,115,65,247,148,175,175,120,108,34,0,32,0,65,13,118,115,65,189,220,202,149,124,108,34,0,32,0,65,16,118,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,247,148,175,175,120,106,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,177,243,221,241,121,107,54,2,0,11,211,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,5,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,4,32,4,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,5,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,5,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,40,2,0,32,5,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,12,106,34,3,40,2,0,32,5,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,16,106,34,3,40,2,0,32,5,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,20,106,34,3,40,2,0,32,5,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,4,32,0,65,20,106,40,2,0,33,7,3,64,32,1,40,2,0,65,247,148,175,175,120,108,32,2,106,65,13,119,65,177,243,221,241,121,108,33,2,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,3,106,65,13,119,65,177,243,221,241,121,108,33,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,4,106,65,13,119,65,177,243,221,241,121,108,33,4,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,7,106,65,13,119,65,177,243,221,241,121,108,33,7,32,1,65,4,106,34,1,32,8,77,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,4,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,5,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,157,4,2,1,127,3,126,32,0,32,1,106,33,3,32,1,65,32,79,4,126,32,3,65,32,107,33,3,32,2,66,135,149,175,175,152,182,222,155,158,127,124,66,207,214,211,190,210,199,171,217,66,124,33,4,32,2,66,207,214,211,190,210,199,171,217,66,124,33,5,32,2,66,0,124,33,6,32,2,66,135,149,175,175,152,182,222,155,158,127,125,33,2,3,64,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,4,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,5,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,6,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,2,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,0,65,8,106,34,0,32,3,77,13,0,11,32,6,66,12,137,32,2,66,18,137,124,32,5,66,7,137,124,32,4,66,1,137,124,32,4,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,5,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,6,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,2,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,137,2,0,32,1,32,2,106,33,2,3,64,32,1,65,8,106,32,2,77,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,32,0,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,66,33,136,32,0,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,88,0,32,0,65,8,106,32,1,66,135,149,175,175,152,182,222,155,158,127,124,66,207,214,211,190,210,199,171,217,66,124,55,3,0,32,0,65,16,106,32,1,66,207,214,211,190,210,199,171,217,66,124,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,135,149,175,175,152,182,222,155,158,127,125,55,3,0,11,132,5,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,16,106,34,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,24,106,34,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,32,106,34,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,6,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,7,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,8,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,9,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,1,65,8,106,34,1,32,2,77,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,200,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,4,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,1,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,5,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11])},923:function(t,e,_){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a,s,i,o,r,l,h,p,c,u,d,f,m,g,y,v,x,w,b,M,I,z,C,A,S,j,E,D,L,k,O,F,U,G,T;Object.defineProperty(e,"__esModule",{value:!0}),a=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var _,n,a=[],s=!0,i=!1,o=void 0;try{for(_=t[Symbol.iterator]();!(s=(n=_.next()).done)&&(a.push(n.value),!e||a.length!==e);s=!0);}catch(r){i=!0,o=r}finally{try{!s&&_.return&&_.return()}finally{if(i)throw o}}return a}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s=function(){function t(t,e){var _,n;for(_=0;_0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t.super_state.set_state({_id:Date.now(),pxl_width:parseInt(e),pxl_height:parseInt(_),_pxl_indexes_of_selection:new i.SetFixed(e*_),_base64_original_images:[],_layers:[{id:Date.now(),name:"Layer 0",hidden:!1,opacity:1}],_json_state_history:{history_position:0,state_history:[]},_s_layers:[o.Layer.new_from_colors_and_indexes(new Uint32Array(1),new Uint16Array(parseInt(e)*parseInt(_)),parseInt(e),parseInt(_),!0)],_layer_index:0,_pxls_hovered:-1,_original_image_index:-1,_last_action_timestamp:Date.now()}).then((function(){t._set_size()}))},this._set_size=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=e||t.super_state.get_state().pxl_width,_=_||t.super_state.get_state().pxl_height,t.super_state.set_state({pxl_width:e,pxl_height:_}).then((function(){t.canvas_pos.set_sizes(e,_),t.canvas_pos.set_current_scale_default(),t._request_force_update(!1,!1).then((function(){t.super_canvas.setDimensions(e,_).then((function(){t.super_master_meta.update_canvas(!0).catch((function(){t._set_size(e,_)}))})).catch((function(){t.super_master_meta.update_canvas(!0).catch((function(){t._set_size(e,_)}))}))})).catch((function(){t._set_size(e,_)}))}))},this.export_state=function(){t._notify_export_state()},this._notify_export_state=function(){t.props.on_state_export&&t.props.on_state_export(),t.props.on_state_exported&&t.export_JS_state((function(e){t.props.on_state_exported(e)}))},this._maybe_update_selection_highlight=function(){var e=t.super_state.get_state(),_=e.tool,n=e._select_shape_index_a,a=e._selection_pair_highlight;_.toUpperCase().includes("SELECT")&&parseInt(n)<0&&t.super_state.set_state({_selection_pair_highlight:!a}).then((function(){t.super_master_meta.update_canvas(!1,Date.now())}))},this._set_props=function(e){t.componentWillReceiveProps(Object.assign(Object.assign({},t.props),e))},this.zoom_in=function(){t.canvas_pos.set_zoom(1.33)},this.zoom_out=function(){t.canvas_pos.set_zoom(.75)},this.current_layer_up=function(){var e=t.super_state.get_state(),_=e._layers,n=e._layer_index,a=e._s_layers;n<_.length-1&&(_.splice(n+1,0,_.splice(n,1)[0]),a.splice(n+1,0,a.splice(n,1)[0]),t.super_state.set_state({_layers:_,_layer_index:parseInt(n+1),_s_layers:a,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)})))},this.current_layer_down=function(){var e=t.super_state.get_state(),_=e._layers,n=e._layer_index,a=e._s_layers;n>0&&(_.splice(n-1,0,_.splice(n,1)[0]),a.splice(n-1,0,a.splice(n,1)[0]),t.super_state.set_state({_layers:_,_s_layers:a,_layer_index:parseInt(n-1),_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)})))},this.new_layer=function(e){var _=t.super_state.get_state(),n=_.pxl_width,a=_.pxl_height,s=t.super_state.get_state(),i=s._layers,r=s._s_layers;e=void 0===e?r.length:e,r.splice(e+1,0,o.Layer.new_from_colors_and_indexes(Uint32Array.of(0),new Uint8Array(n*a),n,a,!0)),i.splice(e+1,0,{id:Date.now(),hash:"",name:"Layer "+(e+1),hidden:!1,opacity:1,colors:["#00000000"],number_of_colors:1}),t.super_state.set_state({_layers:i,_s_layers:r,_layer_index:e+1,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)}))},this.duplicate_layer=function(e){var _=t.super_state.get_state(),n=_._layers,a=_._s_layers,s=_.pxl_width,i=_.pxl_height;e=void 0===e?a.length:e,a.splice(e+1,0,o.Layer.new_from_colors_and_indexes(a[e].colors_copy,a[e].indexes_copy,s,i,!0)),n.splice(e+1,0,{id:Date.now(),hash:n[e].hash,name:n[e].name+" (copy)",hidden:!!n[e].hidden,opacity:parseFloat(n[e].opacity),colors:Array.from(n[e].colors||[]),number_of_colors:parseInt(n[e].number_of_colors),thumbnail:n[e].thumbnail}),t.super_state.set_state({_layers:n,_layer_index:e+1,_s_layers:a,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)}))},this.delete_layer=function(e){var _=t.super_state.get_state(),n=_._layers,a=_._s_layers,s=_._layer_index;n.length>1&&(a.splice(e,1),n.splice(e,1),s=(s=e-1)<0?0:s,t.super_state.set_state({_layers:n,_layer_index:s,_s_layers:a,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)})))},this.change_active_layer=function(e){t.super_state.get_state()._layers.length>e&&0<=e&&t.super_state.set_state({_layer_index:e,_last_action_timestamp:1/0}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)}))},this.toggle_layer_visibility=function(e){var _=Array.from(t.super_state.get_state()._layers);_[parseInt(e)].hidden=!_[parseInt(e)].hidden,t.super_state.set_state({_layers:_,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this.change_layer_opacity=function(e,_){var n=Array.from(t.super_state.get_state()._layers);n[parseInt(e)].opacity=parseFloat(_),t.super_state.set_state({_layers:n,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this.merge_down_layer=function(e){var _,n,s,i,r,l,h,p,c,u,d=t.super_state.get_state(),f=d._layers,m=d._s_layers,g=d.pxl_width,y=d.pxl_height;if(void 0!==f[e]&&void 0!==f[e-1]){for(_=m[e].indexes,n=m[e-1].indexes,s=m[e].colors,i=m[e-1].colors,r=255&Math.round(255*parseFloat(f[e].opacity)),l=255&Math.round(255*parseFloat(f[e-1].opacity)),h=0|_.length,p={id:Date.now(),name:"Merged layers "+e+"+"+(e-1),hidden:!(!f[e].hidden||!f[e-1].hidden),opacity:parseFloat(1)},c=C.default.init(2,h,Uint8Array.of(l,r)),u=0;(0|u)<(0|h);u=(u+1|0)>>>0)c.for(u,0),c.stack(0,i[n[0|u]]),c.stack(1,s[_[0|u]]),c.next();c.blend(!1,!1).then((function(_){var n,s,i,r,l,h=a(_,2),u=h[0],d=h[1],v=new Uint32Array(new ArrayBuffer(y*g*4)),x=0|u.length;for(n=0;F.simdops.int_less(n,x);n=F.simdops.plus_uint(n,1))v[u[n]]=d[0|n];s=new ImageData(new Uint8ClampedArray(v.buffer),g,y),r=(i=t._get_pixels_palette_and_list_from_image_data(s,!0)).new_pxl_colors,l=i.new_pxls,c.clear(),f.splice(e-1,2,p),m.splice(e-1,2,o.Layer.new_from_colors_and_indexes(r,l,g,y,!0)),t.super_state.set_state({_layer_index:e-1,_layers:f,_s_layers:m,_old_pxl_colors:new Uint32Array(m[0].indexes.length),_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)}))}))}},this.compute_filters_preview=function(){t._notify_filters_change(1)},this._notify_filters_change=function(){var e,_,n,a,s,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.props.onFiltersThumbnailChange&&(e=t.super_state.get_state(),_=e._processing_filters,n=e._layer_index,a=e._last_filters_hash,s=e._s_layers,i=e._filter_thumbnails,s[n].hash_hex_async().then((function(e){var r,l,h;a===e&&!1!==_||(r=i||new Map,l=0,h=0,t.super_state.set_state({_last_filters_hash:e,_processing_filters:!0}).then((function(){t.filters.names.forEach((function(_,a,i){t.filters.use(_,s[n],o,!0).bitmap_async().then((function(n){h++;var a=r.get(_);void 0!==a&&void 0!==a.destroy&&a.destroy(),r.set(_,n),l=Math.round(h/i.length*100).toString(),t.props.onFiltersThumbnailChange(r,e,l),r.size===i.length&&t.super_state.set_state({_filter_thumbnails:r,_processing_filters:!1})}))}))})))})))},this.get_pixel_color_from_pos=function(e,_){return t.super_master_meta.get_pixel_color_from_pos(e,_)},this.get_layer_bitmap_image=function(e,_,n,a,s){t.bmp_layer.render(e,_,n,a,s)},this.set_png_compressors=function(e,_){t.png_quant=e||t.png_quant,t.oxi_png=_||t.oxi_png},this.get_base64_png_data_url=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:35;return t._get_base64_png_data_url(e,_,n,a,s)},this._get_base64_png_data_url=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:35,s=t.super_state.get_state(),i=s.pxl_width,o=s.pxl_height,r=s._s_layers,l=s._layers;return new Promise((function(s,h){f.default.from(u.default,parseInt(i),parseInt(o),r.map((function(t){return t.indexes})),r.map((function(t){return t.colors})),l,parseInt(e),!0).render().then((function(e){t.png_quant&&0!==_&&e.colors.length<=256?t.png_quant(""+e.url,n,a,_,u.default).then((function(t){e.url=t,s(e)})).catch((function(t){this.props.set_compressor(),h(t)})):t.oxi_png&&0!==_&&e.colors.length>256?t.oxi_png(""+e.url,Math.round(a/33),!1,u.default).then((function(t){e.url=t,s(e)})).catch((function(t){this.png_quant(""+e.url,n,a,_,u.default).then((function(t){e.url=t,s(e)})).catch((function(t){this.props.set_compressor(),h(t)}))})):s(e)})).catch((function(t){h(t)}))}))},this._get_pixels_palette_and_list_from_image_data=function(e){var _,n,a,s,i,o,r,l,h,p,c,u,d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],f=t.super_state.get_state(),m=f.max_size,g=f._lazy_lazy_compute_time_ms,y=(f.pxl_width,f.pxl_height,e.data.length/4>m*m),v=[],x=new Set,w=void 0;if(!y||d)for(w=new Uint16Array(e.width*e.height).fill(0),_=0;_>>0)?v.indexOf((0|n)>>>0):-1)&&(a=(v.push((0|n)>>>0)-1|0)>>>0,x.add((0|n)>>>0)),w[_/4|0]=(0|a)>>>0;else for(s=Date.now(),w=new Uint16Array(e.width*(m+1)).fill(0),i=0,o=0;o<=m&&!(s+g2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"high",s=document.createElement("canvas");return s.width=t,s.height=e,_=s.getContext("2d"),n?(_.mozImageSmoothingEnabled=!1,_.webkitImageSmoothingEnabled=!1,_.msImageSmoothingEnabled=!1,_.imageSmoothingEnabled=!1):a.length&&(_.imageSmoothingQuality=a),[_,s]},this.copy_selection=function(){t.import_image_on_canvas_from_selection()},this.cut_selection=function(){t.import_image_on_canvas_from_selection(),t.erase_selection(),t.to_selection_none()},this.erase_selection=function(){var e=t.super_state.get_state(),_=e._s_layers,n=e._layer_index,a=e._pxl_indexes_of_selection,s=(e.pxl_width,e.pxl_height,Array.from(_[n].colors));a.size>0&&(s.includes(0)||(s.push(0),_[n].set_colors(s)),a.forEach((function(t){_[n].set_uint32(t,0)})),t.super_state.set_state({_s_layers:_,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas()})))},this.import_image_on_canvas_from_selection=function(){var e,_,n,s,i,o,r,l,h,p,c,u,d,f=t.super_state.get_state(),m=f._s_layers,g=f._layer_index,y=f._pxl_indexes_of_selection,v=f.pxl_width,x=f.pxl_height;if(y.size>0){for(e=[v,x],_=[-1,-1],y.forEach((function(t){var n=t%v,a=(t-n)/v;n_[0]&&(_[0]=n),a>_[1]&&(_[1]=a)})),n=1+_[0]-e[0],s=1+_[1]-e[1],i=m[g].indexes,o=new Uint16Array(n*s),r=Array.from(m[g].colors),l=0;l0&&void 0!==arguments[0]?arguments[0]:null,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.props.onLoad&&t.props.onLoad("image_load"),n.id?t.super_state.set_state({_id:Date.now(),pxl_width:parseInt(n.width),pxl_height:parseInt(n.height),_pxl_indexes_of_selection:new i.SetFixed(n.width*n.height),_base64_original_images:[_],_s_layers:[o.Layer.new_from_colors_and_indexes(n.pxl_colors,n.pxls,parseInt(n.width),parseInt(n.height),!0)],_layers:[{id:Date.now(),name:"Layer 0",hidden:!1,opacity:1}],_layer_index:0,_pxls_hovered:-1,_original_image_index:0,_last_action_timestamp:Date.now(),_json_state_history:{history_position:0,state_history:[]}}).then((function(){t._set_size(),t._notify_image_load_complete(),t._notify_export_state()})):setTimeout((function(){var n,r,l,h,p,c,u,d,f,m,g,y,v,x,w,b,M,I,z,C,A,S,j,E,D,L,k,O,F,U,G,T,N,H,R,B,P,W,Y,q,Z,Q,V,J,X,K,$,tt,et,_t=t.super_state.get_state(),nt=_t.default_size,at=_t.max_size,st=_t.ideal_size,it=_t._base64_original_images,ot=_t.dont_change_img_size_onload,rt=_t.dont_compute_base64_original_image,lt=e.naturalWidth,ht=e.naturalHeight,pt=t._get_new_ctx_from_canvas(lt,ht,!0),ct=a(pt,2),ut=ct[0],dt=ct[1];if(ut.drawImage(e,0,0,lt,ht),n=ut.getImageData(0,0,lt,ht),r=rt?"":_.length>0?_:dt.toDataURL("image/jpeg"),ut=null,dt=null,l=!1,h=1,!1===ot){if(c=(p=t._get_pixels_palette_and_list_from_image_data(n,!0)).new_pxls,u=p.new_pxl_colors,n=null,d=c.length/u.length,!(f=at*at>ht*lt)){if(m=1/0,y=0,v=-1,(g=[])[1]=0,c.forEach((function(t,e){v===t||0===e?y++:(y32||(_=i>32?1:42/(i+10),n=i>32?0:(i>32?1:_*M)*Math.pow(i,1-1/_+1),1!==i&&wg[1]?b:1,z=I,g[1]g[1]&&(z=C,f=!0);break}C++}if(A=z,Object.entries(g).forEach((function(t,e){var _=a(t,2),n=_[0],s=_[1];n=parseInt(n),e>1&&s>g[A]&&n16*Math.sqrt(j=ht*h*(lt*h))&&j<=nt*nt*4||d>9*Math.sqrt(j)&&j<=nt*nt*3||d>4*Math.sqrt(j)&&j<=nt*nt*2||d>1*Math.sqrt(j)&&j<=nt*nt*1,D=j>u.length,(E||f)&&jnt*nt&&(lt*=h,ht*=h,l=!0);else{for(L=1;Math.round(lt*L)*Math.round(ht*L)>nt*nt;)L-=.01;lt*=L,ht*=L}}k=void 0,O=null,l&&!1===ot?(N=(G=ht/h)-G%(F=1/h),H=Math.floor((T=(U=lt/h)-U%F)/F),R=Math.floor(N/F),B=T,P=N,W=Math.floor((U-T)/2),Y=Math.floor((G-N)/2),lt=Math.floor(H),ht=Math.floor(R),q=t._get_new_ctx_from_canvas(lt,ht,!0),k=(Z=a(q,2))[0],Z[1],k.drawImage(e,W,Y,B,P,0,0,lt,ht),O=k.getImageData(0,0,lt,ht)):!1===ot?(lt=Math.floor(lt),ht=Math.floor(ht),Q=t._get_new_ctx_from_canvas(lt,ht,!0),k=(V=a(Q,2))[0],V[1],k.drawImage(e,0,0,lt,ht),O=k.getImageData(0,0,lt,ht)):O=n,J=t._get_pixels_palette_and_list_from_image_data(O,!0),k=null,n=null,O=null,(X=it).includes(r)||X.push(r),K=t.color_conversion.clean_duplicate_colors(J.new_pxls,J.new_pxl_colors),tt=($=a(K,2))[0],et=$[1],t.super_state.set_state({_id:Date.now(),pxl_width:parseInt(lt),pxl_height:parseInt(ht),_pxl_indexes_of_selection:new i.SetFixed(lt*ht),_base64_original_images:X,_layers:[{id:Date.now(),name:"Layer 0",hidden:!1,opacity:1}],_json_state_history:{history_position:0,state_history:[]},_s_layers:[o.Layer.new_from_colors_and_indexes(et,tt,parseInt(lt),parseInt(ht),!0)],_layer_index:0,_pxls_hovered:-1,_original_image_index:X.indexOf(r),_last_action_timestamp:Date.now()}).then((function(){t._set_size(),t._notify_image_load_complete(),t._notify_export_state()}))}),50)},this._set_canvas_ref=function(e){if(void 0===e)return t._set_size();if(null===e)return t._set_size();if(void 0===e.width)return t._set_size();if(null===e.width)return t._set_size();var _=t.super_state.get_state(),n=_.pxl_width,a=_.pxl_height;t.super_canvas.new(e,n,a).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)}))},this._set_canvas_container_ref=function(e){null!==e&&t.super_state.set_state({_canvas_container:e}).then((function(){t._update_canvas_container_size()}))},this._set_canvas_wrapper_ref=function(e){null!==e&&t.super_state.set_state({_canvas_wrapper:e})},this._set_canvas_wrapper_overflow_ref=function(e){null!==e&&(e.addEventListener("wheel",t._canvas_pos_handle_wheel,{passive:!1}),e.addEventListener("pointerdown",t._canvas_pos_handle_pointer_down,{passive:!1}),e.addEventListener("pointermove",t._canvas_pos_handle_pointer_move,{passive:!1}),e.addEventListener("pointerup",t._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointercancel",t._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointerout",t._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointerleave",t._canvas_pos_handle_pointer_up,{passive:!1}),t.super_state.set_state({_canvas_wrapper_overflow:e}))},this._super_master_meta_handle_canvas_mouse_move=function(e){t.super_master_meta._handle_canvas_mouse_move(e)},this._super_master_meta_handle_canvas_mouse_up=function(e){t.super_master_meta._handle_canvas_mouse_up(e)},this._super_master_meta_handle_canvas_mouse_down=function(e){t.super_master_meta._handle_canvas_mouse_down(e)},this._function_ripple=function(e){t._ripple.start(e),setTimeout((function(){t._ripple.stop(e)}),75)},this._canvas_pos_handle_wheel=function(e){t.canvas_pos.handle_wheel(e)},this._canvas_pos_handle_pointer_down=function(e){t.canvas_pos.handle_pointer_down(e)},this._canvas_pos_handle_pointer_move=function(e){t.canvas_pos.handle_pointer_move(e)},this._canvas_pos_handle_pointer_up=function(e){t.canvas_pos.handle_pointer_up(e)},this.write_text=function(e,_){var n,a=t.super_state.get_state()._layer_index;t.new_layer(a),t.change_active_layer(a+1),n=(new t.super_state.create_shape).from_text(e,_),t.super_state.paint_shape(n,t.super_state.get_state().pxl_current_color_uint32)},this._match_color=function(e,_,n){var s,i,o,r,l,h,p,c,u,d,f,m,g,y,v,x,w,b;return 1===(n=void 0===n?null:n)||(0===n?e===_:(s=Math.round(255*n),i=t.color_conversion.to_rgba_from_uint32(e),r=(o=a(i,4))[0],l=o[1],h=o[2],p=o[3],c=t.color_conversion.to_rgba_from_uint32(_),d=(u=a(c,4))[0],f=u[1],m=u[2],g=u[3],y=Math.abs(p-g),v=Math.abs(r-d),x=Math.abs(l-f),w=Math.abs(h-m),b=Math.abs(1-y/255),null!==n?!!(vt.super_state.get_state()._layers_defined_at),r=Object.assign({},e);r._layers=Array.from(e._layers.map((function(t){return{id:0|t.id,hash:t.hash+"",name:t.name+"",hidden:t.hidden&&!0,opacity:parseFloat(t.opacity),colors:Array.from(t.colors),number_of_colors:0|t.number_of_colors}}))),s&&o&&i?t.super_state.set_state({_layer_index:parseInt(e._layer_index),_layers:Array.from(e._layers),_layers_defined_at:n}).then((function(){t.props.onLayersChange&&t.props.onLayersChange(t.super_state.get_state()._layer_index,Array.from(e._layers)),null!==_&&_(t.super_state.get_state()._layers,t.super_state.get_state()._layer_index,s,r)})):(t.props.onLayersChange&&t.props.onLayersChange(t.super_state.get_state()._layer_index,Array.from(e._layers)),(s||a)&&i?null!==_&&_(t.super_state.get_state()._layers,t.super_state.get_state()._layer_index,s,r):null!==_&&_(t.super_state.get_state()._layers,t.super_state.get_state()._layer_index,s,{}))},this._get_most_used_color_sorted=function(t,e,_){var n,a,s,i;for(_=Math.min(e.length,_||256),n=new F.Colors(new F.Colors(e.buffer).get_deduplicated_sorted_uint32a(_).buffer),a=new F.Color(new ArrayBuffer(4)),s=Array(_),i=0;i<_;i++)s[i]=n.get_use_element(i,a).hex;return s},this._notify_layers_and_compute_thumbnails_change=function(e,_,n,a){var s,i,o,r,l,h,p,c,u;for(a=a||Date.now(),s=0,i=parseInt(e._timestamp)||Date.now(),o=parseInt(_._timestamp),r=_._layers.length,l=parseInt(i),h=!1,p=!1,c=function(i){_._s_layers[i].bitmap_async(!0).then((function(c){var u=""+c.hash,d=Object.assign({},(e._layers||[])[i]),f=d.thumbnail,m=d.hash;m===u&&m&&f&&_._s_layers[i].thumbnail?(_._layers[i].hash=u,_._layers[i].thumbnail=f,0!==_._layers[i].colors.length&&_._layers[i].colors.length===_._layers[i].number_of_colors||(_._layers[i].colors=t._get_most_used_color_sorted(_._s_layers[i].indexes,_._s_layers[i].colors,256),_._layers[i].number_of_colors=parseInt(_._s_layers[i].colors.length)),++s===r&&(_._timestamp=parseInt(l),t.maybe_set_layers(_,n,a,p,h))):(p=!0,m===u&&m||(h=!0,l=o),_._layers[i].hash=u,_._layers[i].thumbnail=c,_._layers[i].colors=t._get_most_used_color_sorted(_._s_layers[i].indexes,_._s_layers[i].colors,256),_._layers[i].number_of_colors=parseInt(_._s_layers[i].colors.length),++s===r&&(_._timestamp=parseInt(l),t.maybe_set_layers(_,n,a,p,h)))}))},u=0;us._saving_json_state_history_ran_timestamp||_)&&(s._last_action_timestamp+625<=Date.now()||_||0===i.state_history.length)?s._saving_json_state_history_running||a&&!_?setTimeout((function(){t._maybe_save_state(e,_,n)}),125):(t.super_state.set_state({_saving_json_state_history_running:!0}),r=s._id,l=s._layers,h=s.pxl_width,p=s.pxl_height,c=s._s_layers,u=s._original_image_index,d=s._layer_index,f=s._pxl_indexes_of_selection,m=s._pencil_mirror_index,g=parseInt(i.history_position),y=0===i.state_history.length?{}:i.state_history[g-1],(v={})._timestamp=parseInt(Date.now()),v._id=r.toString(),v.pxl_width=parseInt(h),v.pxl_height=parseInt(p),v._original_image_index=parseInt(u),v._layers=Array.from(l.map((function(t){return{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity||1),thumbnail:t.thumbnail||null,colors:Array.from(t.colors||[]),number_of_colors:parseInt(t.number_of_colors||0)}}))),v._layer_index=parseInt(d),v._s_layers=Array.from(c.map((function(t){return o.Layer.new_from_colors_and_indexes(t.colors_copy,t.indexes_copy,parseInt(h),parseInt(p),!0)}))),v._pxl_indexes_of_selection=f.export,v._pencil_mirror_index=parseInt(m),t._notify_layers_and_compute_thumbnails_change(Object.assign({},y),Object.assign({},v),(function(_,n,a){var o,r,l=s._state_history_length,h=s._saving_json_state_history_ran_timestamp,p=!(0!==i.state_history.length),c=parseInt(i.history_position),u=v._timestamp||0,d=Date.now();if(p&&0!==u)i.state_history=[],i.state_history.push(Object.assign({},v)),i.history_position=1,h=d;else if(a){if(i.state_history.length-c>0)for(o=i.state_history.splice(c);o.length;)i.state_history.push(Object.assign({},o.shift()));i.state_history.length>=l&&i.state_history.splice(1,1),i.state_history.push(Object.assign({},v)),i.history_position=parseInt(i.state_history.length),h=d}else for(r=0;r0&&void 0!==arguments[0]&&arguments[0],_=t.super_state.get_state(),n=_._s_layers,a={width:_.pxl_width,height:_.pxl_height,number_of_colors:n[0].colors.length,only_scan:e};t._maybe_save_state(void 0,!0),t.props.onLoadComplete&&t.props.onLoadComplete("image_load",a)},this._notify_image_import_complete=function(){t.props.onImageImportComplete&&t.props.onImageImportComplete()},this._notify_can_undo_redo_change=function(){t.props.onCanUndoRedoChange&&t.props.onCanUndoRedoChange(t._can_undo(),t._can_redo())},this._notify_size_change=function(){var e=t.super_state.get_state(),_=e.pxl_width,n=e.pxl_height;t.props.onSizeChange&&t.props.onSizeChange(_,n)},this.import_JSON_state=function(e){t.import_JS_state(e)},this.import_JS_state=function(e,_){var n=Array.from(e._base64_original_images);Promise.all(n.map((function(t){return(0,U.bytesToBase64)(t[1])}))).then((function(a){var s,r;a.forEach((function(t,e){n[e]=n[e][0]+","+t})),s={history_position:parseInt(e._json_state_history.history_position),state_history:e._json_state_history.state_history.map((function(t){return Object.assign({},{_original_image_index:parseInt(t._original_image_index),pxl_width:parseInt(t.pxl_width),pxl_height:parseInt(t.pxl_height),_pxl_indexes_of_selection:i.SetFixed.import(t._pxl_indexes_of_selection),_s_layers:Array(t._s_pxls.length).fill({}).map((function(e,_){return o.Layer.new_from_colors_and_indexes(t._s_pxl_colors[_],t._s_pxls[_],parseInt(t.pxl_width),parseInt(t.pxl_height),!0)})),_layers:Array.from(t._layers.map((function(t){return Object.assign({},{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity)})}))),_layer_index:parseInt(t._layer_index),_pencil_mirror_index:parseInt(t._pencil_mirror_index),_id:t._id.toString()})}))},e=null,r=s.state_history[s.history_position-1],t.super_state.set_state({_id:r._id.toString(),pxl_width:parseInt(r.pxl_width),pxl_height:parseInt(r.pxl_height),_base64_original_images:Array.from(n),_original_image_index:parseInt(r._original_image_index)||0,_layers:Array.from(r._layers.map((function(t){return{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity)}}))),_layer_index:parseInt(r._layer_index)||0,_s_layers:Array.from(r._s_layers),_pxl_indexes_of_selection:i.SetFixed.import(r._pxl_indexes_of_selection),_pencil_mirror_index:parseInt(r._pencil_mirror_index),_json_state_history:s,_pxls_hovered:-1,_last_action_timestamp:1/0}).then((function(){t._set_size(),t._notify_image_load_complete(),t._notify_is_something_selected(),t._notify_can_undo_redo_change(),_()}))}))},this.export_JS_state=function(e){t._maybe_save_state((function(_){var n=t.super_state.get_state()._base64_original_images.map((function(t){return t.split(",")}));Promise.all([Promise.all(n.map((function(t){return(0,U.base64ToBytes)(t[1])}))),t.get_base64_png_data_url(1,!1,1,100,100)]).then((function(a){Array.from(a[0]).forEach((function(t,e){n[e][1]=t})),_={history_position:parseInt(_.history_position),state_history:_.state_history.map((function(t){return Object.assign({},{_original_image_index:parseInt(t._original_image_index),pxl_width:parseInt(t.pxl_width),pxl_height:parseInt(t.pxl_height),_pxl_indexes_of_selection:t._pxl_indexes_of_selection.export,_s_pxls:Array.from(t._s_layers).map((function(t){return t.indexes_copy})),_s_pxl_colors:Array.from(t._s_layers).map((function(t){return t.colors_copy})),_layers:Array.from(t._layers.map((function(t){return{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity)}}))),_layer_index:parseInt(t._layer_index),_pencil_mirror_index:parseInt(t._pencil_mirror_index),_id:t._id.toString()})}))};var s=3*Math.ceil(a[1].url.length/4);e({id:t.super_state.get_state()._id.toString(),kb:s/1024,preview:a[1].url,timestamp:Date.now(),_base64_original_images:n,_json_state_history:_})}))}))},this._can_undo=function(e){return e||(e=t.super_state.get_state()._json_state_history),parseInt(e.history_position-1)},this.undo=function(){t._maybe_save_state((function(e){var _,n;t._can_undo(e)>0&&(e.history_position=parseInt(e.history_position-1),_=e.state_history[e.history_position-1],n=!(_.pxl_width===t.super_state.get_state().pxl_width&&_.pxl_height===t.super_state.get_state().pxl_height),t.super_state.set_state({_id:_._id.toString(),pxl_width:parseInt(_.pxl_width),pxl_height:parseInt(_.pxl_height),_original_image_index:parseInt(_._original_image_index),_layers:Array.from(_._layers.map((function(t){return{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity)}}))),_layer_index:parseInt(_._layer_index),_s_layers:Array.from(_._s_layers.map((function(t){return o.Layer.new_from_colors_and_indexes(t.colors_copy,t.indexes_copy,parseInt(_.pxl_width),parseInt(_.pxl_height),!0)}))),_pxl_indexes_of_selection:i.SetFixed.import(_._pxl_indexes_of_selection),_pencil_mirror_index:parseInt(_._pencil_mirror_index),_json_state_history:e,_last_action_timestamp:Date.now()}).then((function(){n?t._set_size():t.super_master_meta.update_canvas(!0),t._notify_is_something_selected(),t._notify_can_undo_redo_change()})))}),!0)},this._can_redo=function(e){return e||(e=t.super_state.get_state()._json_state_history),e.state_history.length-parseInt(e.history_position-1)-1|0},this.redo=function(){t._maybe_save_state((function(e){var _,n;t._can_redo(e)>0&&(e.history_position=parseInt(e.history_position+1),_=e.state_history[e.history_position-1],n=!(_.pxl_width===t.super_state.get_state().pxl_width&&_.pxl_height===t.super_state.get_state().pxl_height),t.super_state.set_state({_id:_._id.toString(),pxl_width:parseInt(_.pxl_width),pxl_height:parseInt(_.pxl_height),_original_image_index:parseInt(_._original_image_index),_layers:Array.from(_._layers.map((function(t){return{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity)}}))),_layer_index:parseInt(_._layer_index),_s_layers:Array.from(_._s_layers.map((function(t){return o.Layer.new_from_colors_and_indexes(t.colors_copy,t.indexes_copy,parseInt(_.pxl_width),parseInt(_.pxl_height),!0)}))),_pxl_indexes_of_selection:i.SetFixed.import(_._pxl_indexes_of_selection),_pencil_mirror_index:parseInt(_._pencil_mirror_index),_json_state_history:e,_last_action_timestamp:Date.now()}).then((function(){n?t._set_size():t.super_master_meta.update_canvas(!0),t._notify_is_something_selected(),t._notify_can_undo_redo_change()})))}),!0)},this.to_selection_border=function(){var e=t.super_state.get_state(),_=e.pxl_current_color_uint32,n=e._pxl_indexes_of_selection,a=e._s_layers,s=e._layer_index,i=e.pxl_current_opacity,o=(a[s]||{}).indexes_copy||new Uint8Array(0),r=Array.from(a[s].colors_copy);t._get_border_from_selection(n).forEach((function(e){var n,a=o[e],s=r[a],l=t.color_conversion.blend_colors(s,_,i,!1,!1);r.includes(l)||r.push(l),n=r.indexOf(l),o[e]=n})),a[s].set_colors_and_indexes(r,o),t.super_state.set_state({_s_layers:a,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas()}))},this.to_selection_bucket=function(){var e=t.super_state.get_state(),_=e._s_layers,n=e._pxl_indexes_of_selection,a=e._layer_index,s=e.pxl_current_opacity,i=e.pxl_current_color_uint32,o=Array.from(_[a].indexes),r=Array.from(_[a].colors);n.forEach((function(e){var _,n=o[e],a=r[n],l=t.color_conversion.blend_colors(a,i,s,!1,!1);r.includes(l)||r.push(l),_=r.indexOf(l),o[e]=_})),_[a].set_colors_and_indexes(r,o),t.super_state.set_state({_s_layers:_,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas()}))},this.to_selection_invert=function(){var e,_=t.super_state.get_state(),n=_._s_layers,a=_._pxl_indexes_of_selection,s=_._layer_index,o=_.pxl_width,r=_.pxl_height,l=a,h=new i.SetFixed(o*r);for(e=0;e1&&void 0!==arguments[1]&&arguments[1],n=t.color_conversion.to_rgba_from_uint32(e),s=a(n,4),i=s[0],o=s[1],r=s[2],l=s[3],h=t.color_conversion.to_hsla_from_rgba(Uint8ClampedArray.of(i,o,r,l)),p=a(h,4),c=p[0],u=p[1],d=p[2],f=(p[3],t.super_state.get_state()),m=f._s_layers,g=f._pxl_indexes_of_selection,y=f._layer_index,v=Array.from(m[y].indexes),x=Array.from(m[y].colors),w=t._get_average_color_of_selection(),b=t.color_conversion.to_rgba_from_uint32(w),M=a(b,4),I=M[0],z=M[1],C=M[2],A=M[3],S=t.color_conversion.to_hsla_from_rgba(Uint8ClampedArray.of(I,z,C,A)),j=a(S,4),E=j[0],D=(j[1],j[2],j[3],E-c);g.forEach((function(e,n,s){var i,o,r,l,h,p,c,f=v[e],m=x[f],g=t.color_conversion.to_rgba_from_uint32(m),y=a(g,4),w=y[0],b=y[1],M=y[2],I=y[3],z=t.color_conversion.to_hsla_from_rgba(Uint8ClampedArray.of(w,b,M,I)),C=a(z,4),A=C[0],S=C[1],j=C[2],E=C[3],L=A+D<0?(360+A+D)%360:(A+D)%360,k=[u,d,1],O=[S,j,1],F=[];0!==I&&_?(F[2]=1-(1-k[2])*(1-O[2]),F[0]=Math.round(k[0]*k[2]/F[2]+O[0]*O[2]*(1-k[2])/F[2]),F[1]=Math.round(k[1]*k[2]/F[2]+O[1]*O[2]*(1-k[2])/F[2])):F=[S,j],i=t.color_conversion.to_rgba_from_hsla(Array.of(L,F[0],F[1],E)),r=(o=a(i,4))[0],l=o[1],h=o[2],p=o[3],c=0,0!==I&&(c=t.color_conversion.to_uint32_from_rgba(Uint8ClampedArray.of(r,l,h,p))),x.includes(c)||x.push(c),v[e]=x.indexOf(c)})),m[y].set_colors_and_indexes(x,v),t.super_state.set_state({_s_layers:m,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas()}))},this._get_border_from_selection=function(e){var _=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t.super_state.get_state(),s=a.pxl_width,o=a.pxl_height,r=new i.SetFixed(s*o);return e.forEach((function(t,a){var i,l,h,p,c=void 0,u=void 0,d=void 0,f=void 0;u=(u=t+1)%s==0?-1:u,f=(f=t-1)%s==s-1?-1:f,i=void 0,l=void 0,h=void 0,p=void 0,i=(c=(c=t-s)<0?-1:c)-1,i=-1===c||-1===f?-1:i,l=c+1,l=-1===c||-1===u?-1:l,h=(d=(d=t+s)>s*o?-1:d)-1,h=-1===d||-1===f?-1:h,p=d+1,p=-1===d||-1===u?-1:p,_?(e.has(c)&&-1!==c&&e.has(u)&&-1!==u&&e.has(d)&&-1!==d&&e.has(f)&&-1!==f||r.add(t),n&&(e.has(i)&&-1!==i&&e.has(l)&&-1!==l&&e.has(h)&&-1!==h&&e.has(p)&&-1!==p||r.add(t))):(e.has(c)||r.add(c),e.has(u)||r.add(u),e.has(d)||r.add(d),e.has(f)||r.add(f),n&&(e.has(i)||r.add(i),e.has(l)||r.add(l),e.has(h)||r.add(h),e.has(p)||r.add(p)))})),r},this._to_selection_crop=function(){var e,_,n,s,r,l,h,p,c,u,d,f,m=t.super_state.get_state(),g=m._s_layers,y=(m._layer_index,m._pxl_indexes_of_selection),v=m.pxl_width,x=m.pxl_height,w=m._base64_original_images,b=m._original_image_index;if(y.size>0){for(e=[v,x],_=[-1,-1],y.forEach((function(t){var n=t%v,a=(t-n)/v;n_[0]&&(_[0]=n),a>_[1]&&(_[1]=a)})),n=1+_[0]-e[0],s=1+_[1]-e[1],r=0;r0;t.super_state.set_state({_is_image_import_mode:e}),t.props.onImageImportModeChange&&t.props.onImageImportModeChange(e)},this.to_selection_crop=function(){t._to_selection_crop()},this.to_rotation=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t._to_rotation(e)},this.to_greyscale=function(){t._to_colorized("greyscale")},this.to_sepia=function(){t._to_colorized("sepia")},this.to_opacity=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t._to_colorized(null,e)},this.to_color=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t._to_colorized(e,_,n,a)},this.to_vignette=function(e,_){t._to_vignette(e,_)},this.less_colors_stepped=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};t._to_less_color(e,_)},this.less_colors_stepped=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=0,a=e;!function s(){t.to_less_color(a/64,(function(t){n=t.colors_removed,a+=e,e-=n>0?1:0,n<1?s():_(t)}))}()},this.to_less_color=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/16,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};t.props.onLoad&&("auto"===e?t.props.onLoad("less_color_auto"):t.props.onLoad("less_color")),t._to_less_color(e,(function(n){t.props.onLoadComplete&&("auto"===e?t.props.onLoadComplete&&t.props.onLoadComplete("less_color_auto",n):t.props.onLoadComplete&&t.props.onLoadComplete("less_color",n)),_(n)}))},this.auto_adjust_contrast=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t._auto_adjust_contrast(e)},this.auto_adjust_saturation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.5;t._auto_adjust_saturation(e)},this.smooth_adjust=function(){t._auto_adjust_smoothness()},this.to_alpha=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#00000000",_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;t._to_alpha(t.color_conversion.to_uint32_from_hex(t.color_conversion.format_hex_color(e)),_)},this.to_filter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1997",_=arguments[1];t._to_filter(e,parseFloat(_))},this.to_mirror=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t._invert_pixel(e?"HORIZONTAL":"VERTICAL")},this.to_dutone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.8,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#ffffffff",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000ff";t._to_dutone(e,t.color_conversion.to_uint32_from_hex(t.color_conversion.format_hex_color(_)),t.color_conversion.to_uint32_from_hex(t.color_conversion.format_hex_color(n)))},this._invert_pixel=function(e){var _,n,s,o=t.super_state.get_state(),r=o._s_layers,l=o.pxl_width,h=o.pxl_height,p=o._base64_original_images,c=o._original_image_index,u=o._pxl_indexes_of_selection,d=o._shape_index_a,f=o._select_shape_index_a,m=o._layer_index,g=t.super_state.get_state(),y=g._imported_image_pxls,v=g._imported_image_width,x=g._imported_image_height,w=Array.from(r[m].indexes),b=new i.SetFixed(w.length),M=d,I=f,z=1,C=1;"HORIZONTAL"===e?y.length?(_=new Uint16Array(y.length),y.forEach((function(t,e){var n=e%v;_[(e-n)/v*v+(n=v-1-n)]=t})),y=_):(r[m].indexes.forEach((function(t,e){var _,n=e%l;w[_=(e-n)/l*l+(n=l-1-n)]=t,u.has(e)&&b.add(_),d===e&&(M=_),f===e&&(I=_)})),r[m].set_indexes(w),z=-1):y.length?(n=new Uint16Array(y.length),y.forEach((function(t,e){var _=e%v,a=(e-_)/v;n[(a=x-1-a)*v+_]=t})),y=n):(r[m].indexes.forEach((function(t,e){var _,n=e%l,a=(e-n)/l;w[_=(a=h-1-a)*l+n]=t,u.has(e)&&b.add(_),d===e&&(M=_),f===e&&(I=_)})),C=-1,r[m].set_indexes(w)),void 0===p[c]||0!==m||y.length?t.super_state.set_state({_shape_index_a:M,_select_shape_index_a:I,_pxl_indexes_of_selection:b,_s_layers:r,_last_action_timestamp:Date.now(),_imported_image_pxls:y}).then((function(){return t.super_master_meta.update_canvas()})):((s=new Image).onload=function(){var e,_=t._get_new_ctx_from_canvas(s.naturalWidth,s.naturalHeight),n=a(_,2),i=n[0],o=n[1];i.save(),i.scale(z,C),i.drawImage(s,0,0,s.naturalWidth*z,s.naturalHeight*C),i.restore(),e=s.src.includes("image/png")?o.toDataURL("image/png"):o.toDataURL("image/jpeg"),p.includes(e)||(p.push(e),c++),t.super_state.set_state({_shape_index_a:M,_select_shape_index_a:I,_pxl_indexes_of_selection:b,_s_layers:r,_base64_original_images:p,_original_image_index:c,_imported_image_pxls:y,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas()}))},s.src=p[c])},this._get_darkest_color=function(e){var _=t.color_conversion.to_rgba_from_hex(e[0]);return e.forEach((function(e){var n=t.color_conversion.to_rgba_from_hex(e);n[0]+n[1]+n[2]<_[0]+_[1]+_[2]&&(_=n)})),t.color_conversion.to_hex_from_rgba(Uint8ClampedArray.of(_[0],_[1],_[2],255))},this._to_alpha=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.super_state.get_state(),s=n._s_layers,i=n._layer_index,o=t._pxl_colors_to_alpha(s[i].indexes,s[i].colors,e,_),r=a(o,2),l=r[0],h=r[1];s[i].set_colors_and_indexes(h,l),t.super_state.set_state({_layer_index:i,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._to_less_color=function(e){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=t.super_state.get_state()._layer_index,s=t.super_state.get_state()._s_layers,i=s[n].colors.length;t._remove_close_pxl_colors(s[n].image_data,"auto").then((function(e){var o,r,l=a(e,2),h=l[0],p=l[1];s[n].set_colors_and_indexes(p,h),o=s[n].colors.length,r={colors_removed:i-o,colors_remaining:o},t.super_state.set_state({_s_layers:s,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),_(r)}))}))},this._auto_adjust_contrast=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=t.super_state.get_state(),n=_._layer_index,a=_._s_layers,s=a[n]||{},i=t._pxl_adjust_contrast(s.indexes_copy,s.colors_copy,e);a[n].set_colors_and_indexes(i[1],i[0]),t.super_state.set_state({_s_layers:a,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._auto_adjust_saturation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=t.super_state.get_state(),n=_._s_layers,a=_._layer_index,s=n[a]||{},i=t._pxl_adjust_saturation(s.indexes_copy,s.colors_copy,e);n[a].set_colors_and_indexes(i[1],i[0]),t.super_state.set_state({_s_layers:n,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._pxl_adjust_saturation=function(t,e,_){var n,a,s,i,o,r,l,h,p,c=100,u=0;for(_=0|Math.round(255*parseFloat(_)),n=0,a=void 0,i=(s=new F.Colors(e)).length,o=void 0,r=0;(0|r)<(0|i);r=(r+1|0)>>>0)n=(a=s.get_element(r)).hsla[1],(0|a.a)>0&&((0|n)>(0|u)&&(u=0|n),(0|n)<(0|c)&&(c=0|n));for(h=-c*(l=100/Math.max(1,u-c))|0,p=0;(0|p)<(0|i);p=(p+1|0)>>>0)o=(a=s.get_element(p)).hsla,a.blend_with(F.Color.new_hsla(o[0],o[1]*l+h|0,o[2],o[3]),_,!1,!1);return[t,e=s.slice_uint32(0,i),l,h]},this._selection_pxl_adjust_sat_lum=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t.super_state.get_state(),s=n._layer_index,i=n._s_layers,o=n._pxl_indexes_of_selection,r=i[s].indexes,l=Array.from(i[s].colors);o.forEach((function(n){var s=l[r[n]],i=t.color_conversion.to_hsla_from_rgba(t.color_conversion.to_rgba_from_uint32(s)),o=a(i,4),h=o[0],p=o[1],c=o[2],u=o[3],d=Math.min(100,Math.max(0,p+e)),f=Math.min(100,Math.max(0,c+_)),m=t.color_conversion.to_uint32_from_rgba(t.color_conversion.to_rgba_from_hsla(Array.of(h,d,f,u)));-1===l.indexOf(m)&&l.push(m),r[n]=l.indexOf(m)})),i[s].set_colors_and_indexes(l,r),t.super_state.set_state({_s_layers:i})},this._auto_adjust_smoothness=function(){var e=t.super_state.get_state(),_=e._layer_index,n=e._s_layers,a=e.pxl_width,s=e.pxl_height,i=t._pxl_adjust_smoothness(n[_].indexes,n[_].colors,a,s);n[_].set_colors_and_indexes(i[1],i[0]),t.super_state.set_state({_s_layers:n,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._pxl_to_vignette=function(e,_,n,s,i){var o,r=t.super_state.get_state().pxl_current_color_uint32,l=t.super_state.get_state(),h=l.pxl_width,p=l.pxl_height,c=t._get_new_ctx_from_canvas(h,p),u=a(c,2),d=u[0],f=(u[1],Math.max(h,p)),m=t.color_conversion.invert_uint32(r),g=d.createRadialGradient(h/2,p/2,0,h/2,p/2,f/2);g.addColorStop(1,t.color_conversion.to_hex_from_uint32(r)),g.addColorStop(.8,t.color_conversion.to_hex_from_uint32(t.color_conversion.blend_colors(r,m,.6))),g.addColorStop(0,t.color_conversion.to_hex_from_uint32(m)),d.fillStyle=g,d.fillRect(0,0,h,p),o=d.getImageData(0,0,h,p),t._remove_close_pxl_colors(o,18).then((function(n){var o,l,h,p,c,u,d=a(n,2),f=d[0],g=d[1],y=t._pxl_colors_to_alpha(f,g,m,1),v=a(y,2);f=v[0],g=v[1],o=t.color_conversion.to_rgba_from_uint32(r),l=a(o,3),h=l[0],p=l[1],c=l[2],g=g.map((function(e){e|=0;var _=t.color_conversion.to_rgba_from_uint32(e)[3];return 0|t.color_conversion.to_uint32_from_rgba(Uint8ClampedArray.of(h,p,c,_))})),u=[],f=f.map((function(n,a){var i,o,r;return a|=0,i=0|g[n|=0],o=0|_[e[a]],r=t.color_conversion.blend_colors(o,i,s,!1,!1),-1===u.indexOf(r)&&u.push(r),u.indexOf(r)})),i(Array.of(f,g=u))}))},this._to_vignette=function(e,_){var n,a,s,i;_>0&&(n=t.super_state.get_state(),a=n._layer_index,s=t.super_state.get_state(),i=s._s_layers,t._pxl_to_vignette(i[a].indexes,i[a].colors,e,_,(function(e){i[a].set_colors_and_indexes(e[1],e[0]),t.super_state.set_state({_s_layers:i,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))})))},this._to_colorized=function(){var e,_=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=t.super_state.get_state(),r=o._s_layers,l=o._layer_index;n=null===n?1:n,e=r[l].colors.map((function(e){var o,r,l,h,p,c,u=t.color_conversion.to_rgba_from_uint32(e),d=a(u,4),f=d[0],m=d[1],g=d[2],y=d[3],v=t.color_conversion.to_hsla_from_rgba(Uint8ClampedArray.of(f,m,g,y)),x=a(v,4),w=(x[0],x[1]),b=x[2],M=x[3],I=[s,i,n],z=[w,b,M/100],C=[];return 0!==n?(C[2]=1-(1-I[2])*(1-z[2]),C[0]=Math.round(I[0]*I[2]/C[2]+Math.round(z[0]*z[2]*(1-I[2])/C[2])),C[1]=Math.round(I[1]*I[2]/C[2]+Math.round(z[1]*z[2]*(1-I[2])/C[2]))):C=[w,b],o=t.color_conversion.to_rgba_from_hsla(Array.of(_,C[0],C[1],100*C[2])),l=(r=a(o,4))[0],h=r[1],p=r[2],c=r[3],0===y?0:t.color_conversion.to_uint32_from_rgba(Uint8ClampedArray.of(l,h,p,c))})),r[l].set_colors(e),t.super_state.set_state({_s_layers:r,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this.get_filter_names=function(){return t.filters.names},this._dutone_pixels=function(e,_,n,a,s){return s=s.map((function(a){var s=t.color_conversion.to_hsla_from_rgba(t.color_conversion.to_rgba_from_uint32(a))[2];return t.color_conversion.blend_colors(_,n,parseFloat(s/100)/e,!1,!1)})),t.color_conversion.clean_duplicate_colors(a,s)},this._to_dutone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.8,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#ffffffff",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000ff",a=t.super_state.get_state(),s=a._layer_index,i=a._s_layers,o=t._dutone_pixels(e,_,n,i[s].indexes,i[s].colors);i[s].set_indexes(o[0]),i[s].set_colors(o[1]),t.super_state.set_state({_s_layers:i,_pxls_hovered:-1,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._to_filter=function(e,_){var n=t.super_state.get_state(),a=n._s_layers,s=n._layer_index;t.filters.use(e,a[s],_),t.super_state.set_state({_s_layers:a,_pxls_hovered:-1,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._to_rotation=function(){var e,_,n,s,o,r,l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],h=t.super_state.get_state(),p=h._imported_image_pxls,c=h._imported_image_width,u=h._imported_image_height,d=h.pxl_width,f=h.pxl_height,m=h._s_layers,g=h._pxl_indexes_of_selection,y=h._select_shape_index_a,v=h._shape_index_a,x=h._base64_original_images,w=h._original_image_index,b=(h._layer_index,u),M=c,I=new Uint16Array(b*M),z=f,C=d,A=new i.SetFixed(z*C),S=y,j=v,E=0,D=0,L=0;if(p.length)p.forEach((function(t,e){D=(e-(E=e%c))/c,I[L=(l?b-1-D:D)+(l?E:M-1-E)*b]=t,g.has(e)&&A.add(L)}));else{for(e=0,_=m[0].indexes.length;e<_;e++)D=(e-(E=e%d))/d,L=(l?z-1-D:D)+(l?E:C-1-E)*z,g.has(e)&&A.add(L),y===e&&(S=L),v===e&&(j=L);for(n=function(t){var e=new Uint16Array(z*C);m[t].indexes.forEach((function(t,_){D=(_-(E=_%d))/d,e[L=(l?z-1-D:D)+(l?E:C-1-E)*z]=t})),m[t].set_indexes(e)},s=0;s2&&void 0!==arguments[2]?arguments[2]:1,c=255,u=0;for(p=0|Math.round(255*parseFloat(p)),_=0,n=new F.Color(new ArrayBuffer(4)),a=(0,F.Colors)(e),s=F.simdops.clamp_int,i=a.length,o=0;(0|o)<(0|i);o=(o+1|0)>>>0)_=(n=a.get_element(0|o,n)).sum_rgb()/3*n.a/255|0,(0|n.a)>0&&((0|_)>(0|u)&&(u=0|_),(0|_)<(0|c)&&(c=0|_));for(l=-c*(r=255/Math.max(1,u-c))|0,h=0;(0|h)<(0|i);h=(h+1|0)>>>0)(n=a.get_element(0|h,n)).blend_with(F.Color.new_of(s(n.r*r+l|0,0,255),s(n.g*r+l|0,0,255),s(n.b*r+l|0,0,255),n.a),p,!1,!1);return[t,e=a.subarray_uint32(0,i),r,l]},this._pxl_adjust_smoothness=function(e,_,n,s,i){n|=0,s|=0,i=i||1;for(var o=0;on*s?-1:v)-1,l=-1===v||-1===x?-1:l,h=v+1,h=-1===v||-1===y?-1:h,p=[i[g],i[y],i[v],i[x],i[o],i[r],i[l],i[h]],c=[],p.forEach((function(t){c[t]=void 0===c[t]?1:c[t]+1})),u=-1,d=-1,Object.entries(c).forEach((function(t){var e=a(t,2),_=e[0],n=e[1];d=6&&-1!==u||d+m>=8&&d>=5&&F.Color.new_uint32(_[i[e]]).match_with(F.Color.new_uint32(_[u]).blend_with(F.Color.new_uint32(_[f]),128,!1,!1),24))&&(i[e]=u)}));return t.color_conversion.clean_duplicate_colors(e,_)},this._set_ripple_ref=function(e){null!==e&&null===t._ripple&&(t._ripple=e)},this._remove_close_pxl_colors=function(t,e){return new Promise((function(_,n){(0,y.QuantiMatGlobal)(t,e).then((function(t){var e=t[1],n=t[2];return _([e,n])}))}))},this._request_force_update=function(e,_){return e=void 0===e||e,_=void 0===_||_,t.sraf.run_frame((function(){return new Promise((function(e,_){t.forceUpdate(e)}))}),!e,!_,Date.now(),"inner_pixel_page").catch((function(){return t._request_force_update(e,_)}))},this._update_canvas_container_size=function(){var e,_,n,a,s=t.super_state.get_state()._canvas_container?t.super_state.get_state()._canvas_container.getBoundingClientRect():null;s?(e=s.width||0,_=s.height||0,n=s.left||0,a=s.top||0,t.canvas_pos.set_canvas_container(a,n,_,e)):setTimeout((function(){t._update_canvas_container_size()}),50)}},e.default=G},924:function(t,e,_){e.UINT32=_(925),e.UINT64=_(926)},925:function(t,e,_){var n;!function(e){function _(t,e){return this instanceof _?(this._low=0,this._high=0,this.remainder=null,void 0===e?s.call(this,t):"string"==typeof t?i.call(this,t,e):void a.call(this,t,e)):new _(t,e)}function a(t,e){return this._low=0|t,this._high=0|e,this}function s(t){return this._low=65535&t,this._high=t>>>16,this}function i(t,e){var _=parseInt(t,e||10);return this._low=65535&_,this._high=_>>>16,this}_(60466176),_(268435456),_(1e9),_(1073741824),_(36),_(16),_(10),_(2),_.prototype.fromBits=a,_.prototype.fromNumber=s,_.prototype.fromString=i,_.prototype.toNumber=function(){return 65536*this._high+this._low},_.prototype.toString=function(t){return this.toNumber().toString(t||10)},_.prototype.add=function(t){var e=this._low+t._low,_=e>>>16;return _+=this._high+t._high,this._low=65535&e,this._high=65535&_,this},_.prototype.subtract=function(t){return this.add(t.clone().negate())},_.prototype.multiply=function(t){var e=this._high,_=this._low,n=t._high,a=t._low,s=_*a,i=s>>>16;return i+=e*a,i&=65535,i+=_*n,this._low=65535&s,this._high=65535&i,this},_.prototype.div=function(t){var e,n;if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new _(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new _(0),this._low=1,this._high=0,this;for(e=t.clone(),n=-1;!this.lt(e);)e.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._low=0,this._high=0;n>=0;n--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),n>=16?this._high|=1<>>16)&65535,this},_.prototype.equals=_.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},_.prototype.greaterThan=_.prototype.gt=function(t){return this._high>t._high||!(this._hight._low},_.prototype.lessThan=_.prototype.lt=function(t){return this._hight._high)&&this._low16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},_.prototype.shiftLeft=_.prototype.shiftl=function(t,e){return t>16?(this._high=this._low<>16-t,this._low=this._low<>>32-t,this._low=65535&e,this._high=e>>>16,this},_.prototype.rotateRight=_.prototype.rotr=function(t){var e=this._high<<16|this._low;return e=e>>>t|e<<32-t,this._low=65535&e,this._high=e>>>16,this},_.prototype.clone=function(){return new _(this._low,this._high)},void 0===(n=_)||(t.exports=n)}()},926:function(t,e,_){var n;!function(e){function _(t,e,n,o){return this instanceof _?(this.remainder=null,"string"==typeof t?i.call(this,t,e):void 0===e?s.call(this,t):void a.apply(this,arguments)):new _(t,e,n,o)}function a(t,e,_,n){return void 0===_?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&e,this._a48=e>>>16,this):(this._a00=0|t,this._a16=0|e,this._a32=0|_,this._a48=0|n,this)}function s(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function i(t,e){var n,a,s,i,r;for(e=e||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0,n=o[e]||new _(Math.pow(e,5)),a=0,s=t.length;a=0&&(n.div(e),a[s]=n.remainder.toNumber().toString(t),n.gt(e));s--);return a[s-1]=n.toNumber().toString(t),a.join("")},_.prototype.add=function(t){var e,_,n=this._a00+t._a00,a=n>>>16;return e=(a+=this._a16+t._a16)>>>16,_=(e+=this._a32+t._a32)>>>16,_+=this._a48+t._a48,this._a00=65535&n,this._a16=65535&a,this._a32=65535&e,this._a48=65535&_,this},_.prototype.subtract=function(t){return this.add(t.clone().negate())},_.prototype.multiply=function(t){var e,_,n=this._a00,a=this._a16,s=this._a32,i=this._a48,o=t._a00,r=t._a16,l=t._a32,h=n*o,p=h>>>16;return e=(p+=n*r)>>>16,p&=65535,e+=(p+=a*o)>>>16,_=(e+=n*l)>>>16,e&=65535,_+=(e+=a*r)>>>16,e&=65535,_+=(e+=s*o)>>>16,_+=n*t._a48,_&=65535,_+=a*l,_&=65535,_+=s*r,_&=65535,_+=i*o,this._a00=65535&h,this._a16=65535&p,this._a32=65535&e,this._a48=65535&_,this},_.prototype.div=function(t){var e,n;if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new _(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new _(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(e=t.clone(),n=-1;!this.lt(e);)e.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;n>=0;n--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),n>=48?this._a48|=1<=32?this._a32|=1<=16?this._a16|=1<>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},_.prototype.equals=_.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},_.prototype.greaterThan=_.prototype.gt=function(t){return this._a48>t._a48||!(this._a48t._a32||!(this._a32t._a16||!(this._a16t._a00))},_.prototype.lessThan=_.prototype.lt=function(t){return this._a48t._a48)&&(this._a32t._a32)&&(this._a16t._a16)&&this._a00=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},_.prototype.shiftLeft=_.prototype.shiftl=function(t,e){return(t%=64)>=48?(this._a48=this._a00<=32?(t-=32,this._a48=this._a16<>16-t,this._a32=this._a00<=16?(t-=16,this._a48=this._a32<>16-t,this._a32=65535&(this._a16<>16-t),this._a16=this._a00<>16-t,this._a32=65535&(this._a32<>16-t),this._a16=65535&(this._a16<>16-t),this._a00=this._a00<=32){if(e=this._a00,this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}return a=(_=this._a48<<16|this._a32)<>>32-t,s=n<>>32-t,this._a00=65535&s,this._a16=s>>>16,this._a32=65535&a,this._a48=a>>>16,this},_.prototype.rotateRight=_.prototype.rotr=function(t){var e,_,n,a,s;if(0==(t%=64))return this;if(t>=32){if(e=this._a00,this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}return a=(_=this._a48<<16|this._a32)>>>t|(n=this._a16<<16|this._a00)<<32-t,s=n>>>t|_<<32-t,this._a00=65535&s,this._a16=s>>>16,this._a32=65535&a,this._a48=a>>>16,this},_.prototype.clone=function(){return new _(this._a00,this._a16,this._a32,this._a48)},void 0===(n=_)||(t.exports=n)}()},930:function(t,e,_){"use strict";var n=_(931),a=Set.prototype;t.exports={Set,add:n(a.add),has:n(a.has),remove:n(a.delete),proto:a}},931:function(t,e,_){"use strict";var n=_(932),a=Function.prototype,s=a.call,i=n&&a.bind.bind(s,s);t.exports=n?i:function(t){return function(){return s.apply(t,arguments)}}},932:function(t,e,_){"use strict";var n=_(933);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},933:function(t,e,_){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{717:function(t,e,_){"use strict";async function n(){function t(t,e){if(o.buffer.byteLength(m.set(o),i(s(0)))}}function _(t){return t>>>0}function n(t){return t&g}function s(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t(3*e.length,0),_(r(0,y.encodeInto(e,m).written,n))}function i(e){let _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0n;return t(3*e.length,0),n(l(0,y.encodeInto(e,m).written,_))}const{instance:{exports:{mem:o,xxh32:r,xxh64:l,init32:h,update32:p,digest32:c,init64:u,update64:d,digest64:f}}}=await WebAssembly.instantiate(a);let m=new Uint8Array(o.buffer);const g=2n**64n-1n,y=new TextEncoder;return{h32:s,h32ToString(t){return s(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0).toString(16).padStart(8,"0")},h32Raw(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t(e.byteLength,0),m.set(e),_(r(0,e.byteLength,n))},create32(){return e(48,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,h,p,c,_)},h64:i,h64ToString(t){return i(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0n).toString(16).padStart(16,"0")},h64Raw(e){let _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0n;return t(e.byteLength,0),m.set(e),n(l(0,e.byteLength,_))},create64(){return e(88,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0n,u,d,f,n)}}}_.r(e),_.d(e,"default",(function(){return n}));const a=new Uint8Array([0,97,115,109,1,0,0,0,1,48,8,96,3,127,127,127,0,96,3,127,127,127,1,127,96,2,127,127,0,96,2,127,126,0,96,1,127,1,127,96,1,127,1,126,96,3,127,127,126,1,126,96,3,126,127,127,1,126,3,11,10,1,1,2,0,4,6,7,3,0,5,5,3,1,0,1,7,85,9,3,109,101,109,2,0,5,120,120,104,51,50,0,0,6,105,110,105,116,51,50,0,2,8,117,112,100,97,116,101,51,50,0,3,8,100,105,103,101,115,116,51,50,0,4,5,120,120,104,54,52,0,5,6,105,110,105,116,54,52,0,7,8,117,112,100,97,116,101,54,52,0,8,8,100,105,103,101,115,116,54,52,0,9,10,211,23,10,242,1,1,4,127,32,0,32,1,106,33,3,32,1,65,16,79,4,127,32,3,65,16,107,33,6,32,2,65,168,136,141,161,2,106,33,3,32,2,65,247,148,175,175,120,106,33,4,32,2,65,177,243,221,241,121,107,33,5,3,64,32,0,40,2,0,65,247,148,175,175,120,108,32,3,106,65,13,119,65,177,243,221,241,121,108,33,3,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,4,106,65,13,119,65,177,243,221,241,121,108,33,4,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,2,106,65,13,119,65,177,243,221,241,121,108,33,2,32,0,65,4,106,34,0,40,2,0,65,247,148,175,175,120,108,32,5,106,65,13,119,65,177,243,221,241,121,108,33,5,32,0,65,4,106,34,0,32,6,77,13,0,11,32,2,65,12,119,32,5,65,18,119,106,32,4,65,7,119,106,32,3,65,1,119,106,5,32,2,65,177,207,217,178,1,106,11,32,1,106,32,0,32,1,65,15,113,16,1,11,146,1,0,32,1,32,2,106,33,2,3,64,32,1,65,4,106,32,2,75,69,4,64,32,1,40,2,0,65,189,220,202,149,124,108,32,0,106,65,17,119,65,175,214,211,190,2,108,33,0,32,1,65,4,106,33,1,12,1,11,11,3,64,32,1,32,2,79,69,4,64,32,1,45,0,0,65,177,207,217,178,1,108,32,0,106,65,11,119,65,177,243,221,241,121,108,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,65,15,118,32,0,115,65,247,148,175,175,120,108,34,0,32,0,65,13,118,115,65,189,220,202,149,124,108,34,0,32,0,65,16,118,115,11,63,0,32,0,65,8,106,32,1,65,168,136,141,161,2,106,54,2,0,32,0,65,12,106,32,1,65,247,148,175,175,120,106,54,2,0,32,0,65,16,106,32,1,54,2,0,32,0,65,20,106,32,1,65,177,243,221,241,121,107,54,2,0,11,211,4,1,6,127,32,1,32,2,106,33,6,32,0,65,24,106,33,5,32,0,65,40,106,40,2,0,33,3,32,0,32,0,40,2,0,32,2,106,54,2,0,32,0,65,4,106,34,4,32,4,40,2,0,32,2,65,16,79,32,0,40,2,0,65,16,79,114,114,54,2,0,32,2,32,3,106,65,16,73,4,64,32,3,32,5,106,32,1,32,2,252,10,0,0,32,0,65,40,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,5,106,32,1,65,16,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,40,2,0,32,5,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,12,106,34,3,40,2,0,32,5,65,4,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,16,106,34,3,40,2,0,32,5,65,8,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,20,106,34,3,40,2,0,32,5,65,12,106,40,2,0,65,247,148,175,175,120,108,106,65,13,119,65,177,243,221,241,121,108,33,4,32,3,32,4,54,2,0,32,0,65,40,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,32,6,65,16,107,77,4,64,32,6,65,16,107,33,8,32,0,65,8,106,40,2,0,33,2,32,0,65,12,106,40,2,0,33,3,32,0,65,16,106,40,2,0,33,4,32,0,65,20,106,40,2,0,33,7,3,64,32,1,40,2,0,65,247,148,175,175,120,108,32,2,106,65,13,119,65,177,243,221,241,121,108,33,2,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,3,106,65,13,119,65,177,243,221,241,121,108,33,3,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,4,106,65,13,119,65,177,243,221,241,121,108,33,4,32,1,65,4,106,34,1,40,2,0,65,247,148,175,175,120,108,32,7,106,65,13,119,65,177,243,221,241,121,108,33,7,32,1,65,4,106,34,1,32,8,77,13,0,11,32,0,65,8,106,32,2,54,2,0,32,0,65,12,106,32,3,54,2,0,32,0,65,16,106,32,4,54,2,0,32,0,65,20,106,32,7,54,2,0,11,32,1,32,6,73,4,64,32,5,32,1,32,6,32,1,107,34,1,252,10,0,0,32,0,65,40,106,32,1,54,2,0,11,11,97,1,1,127,32,0,65,16,106,40,2,0,33,1,32,0,65,4,106,40,2,0,4,127,32,1,65,12,119,32,0,65,20,106,40,2,0,65,18,119,106,32,0,65,12,106,40,2,0,65,7,119,106,32,0,65,8,106,40,2,0,65,1,119,106,5,32,1,65,177,207,217,178,1,106,11,32,0,40,2,0,106,32,0,65,24,106,32,0,65,40,106,40,2,0,16,1,11,157,4,2,1,127,3,126,32,0,32,1,106,33,3,32,1,65,32,79,4,126,32,3,65,32,107,33,3,32,2,66,135,149,175,175,152,182,222,155,158,127,124,66,207,214,211,190,210,199,171,217,66,124,33,4,32,2,66,207,214,211,190,210,199,171,217,66,124,33,5,32,2,66,0,124,33,6,32,2,66,135,149,175,175,152,182,222,155,158,127,125,33,2,3,64,32,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,4,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,4,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,5,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,5,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,6,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,0,65,8,106,34,0,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,2,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,2,32,0,65,8,106,34,0,32,3,77,13,0,11,32,6,66,12,137,32,2,66,18,137,124,32,5,66,7,137,124,32,4,66,1,137,124,32,4,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,5,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,6,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,2,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,5,32,2,66,197,207,217,178,241,229,186,234,39,124,11,32,1,173,124,32,0,32,1,65,31,113,16,6,11,137,2,0,32,1,32,2,106,33,2,3,64,32,1,65,8,106,32,2,77,4,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,27,137,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,33,0,32,1,65,8,106,33,1,12,1,11,11,32,1,65,4,106,32,2,77,4,64,32,1,53,2,0,66,135,149,175,175,152,182,222,155,158,127,126,32,0,133,66,23,137,66,207,214,211,190,210,199,171,217,66,126,66,249,243,221,241,153,246,153,171,22,124,33,0,32,1,65,4,106,33,1,11,3,64,32,1,32,2,73,4,64,32,1,49,0,0,66,197,207,217,178,241,229,186,234,39,126,32,0,133,66,11,137,66,135,149,175,175,152,182,222,155,158,127,126,33,0,32,1,65,1,106,33,1,12,1,11,11,32,0,66,33,136,32,0,133,66,207,214,211,190,210,199,171,217,66,126,34,0,32,0,66,29,136,133,66,249,243,221,241,153,246,153,171,22,126,34,0,32,0,66,32,136,133,11,88,0,32,0,65,8,106,32,1,66,135,149,175,175,152,182,222,155,158,127,124,66,207,214,211,190,210,199,171,217,66,124,55,3,0,32,0,65,16,106,32,1,66,207,214,211,190,210,199,171,217,66,124,55,3,0,32,0,65,24,106,32,1,55,3,0,32,0,65,32,106,32,1,66,135,149,175,175,152,182,222,155,158,127,125,55,3,0,11,132,5,2,3,127,4,126,32,1,32,2,106,33,5,32,0,65,40,106,33,4,32,0,65,200,0,106,40,2,0,33,3,32,0,32,0,41,3,0,32,2,173,124,55,3,0,32,2,32,3,106,65,32,73,4,64,32,3,32,4,106,32,1,32,2,252,10,0,0,32,0,65,200,0,106,32,2,32,3,106,54,2,0,15,11,32,3,4,64,32,3,32,4,106,32,1,65,32,32,3,107,34,2,252,10,0,0,32,0,65,8,106,34,3,41,3,0,32,4,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,16,106,34,3,41,3,0,32,4,65,8,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,24,106,34,3,41,3,0,32,4,65,16,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,32,106,34,3,41,3,0,32,4,65,24,106,41,3,0,66,207,214,211,190,210,199,171,217,66,126,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,3,32,6,55,3,0,32,0,65,200,0,106,65,0,54,2,0,32,1,32,2,106,33,1,11,32,1,65,32,106,32,5,77,4,64,32,5,65,32,107,33,2,32,0,65,8,106,41,3,0,33,6,32,0,65,16,106,41,3,0,33,7,32,0,65,24,106,41,3,0,33,8,32,0,65,32,106,41,3,0,33,9,3,64,32,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,6,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,6,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,7,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,7,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,8,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,8,32,1,65,8,106,34,1,41,3,0,66,207,214,211,190,210,199,171,217,66,126,32,9,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,33,9,32,1,65,8,106,34,1,32,2,77,13,0,11,32,0,65,8,106,32,6,55,3,0,32,0,65,16,106,32,7,55,3,0,32,0,65,24,106,32,8,55,3,0,32,0,65,32,106,32,9,55,3,0,11,32,1,32,5,73,4,64,32,4,32,1,32,5,32,1,107,34,1,252,10,0,0,32,0,65,200,0,106,32,1,54,2,0,11,11,200,2,1,5,126,32,0,65,24,106,41,3,0,33,1,32,0,41,3,0,34,2,66,32,90,4,126,32,0,65,8,106,41,3,0,34,3,66,1,137,32,0,65,16,106,41,3,0,34,4,66,7,137,124,32,1,66,12,137,32,0,65,32,106,41,3,0,34,5,66,18,137,124,124,32,3,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,4,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,1,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,32,5,66,207,214,211,190,210,199,171,217,66,126,66,0,124,66,31,137,66,135,149,175,175,152,182,222,155,158,127,126,133,66,135,149,175,175,152,182,222,155,158,127,126,66,227,220,202,149,252,206,242,245,133,127,124,5,32,1,66,197,207,217,178,241,229,186,234,39,124,11,32,2,124,32,0,65,40,106,32,2,66,31,131,167,16,6,11])},923:function(t,e,_){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var a,s,i,o,r,l,h,p,c,u,d,f,m,g,y,v,x,w,b,M,I,z,C,A,S,j,E,D,L,k,O,F,U,G,T;Object.defineProperty(e,"__esModule",{value:!0}),a=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var _,n,a=[],s=!0,i=!1,o=void 0;try{for(_=t[Symbol.iterator]();!(s=(n=_.next()).done)&&(a.push(n.value),!e||a.length!==e);s=!0);}catch(r){i=!0,o=r}finally{try{!s&&_.return&&_.return()}finally{if(i)throw o}}return a}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s=function(){function t(t,e){var _,n;for(_=0;_0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t.super_state.set_state({_id:Date.now(),pxl_width:parseInt(e),pxl_height:parseInt(_),_pxl_indexes_of_selection:new i.SetFixed(e*_),_base64_original_images:[],_layers:[{id:Date.now(),name:"Layer 0",hidden:!1,opacity:1}],_json_state_history:{history_position:0,state_history:[]},_s_layers:[o.Layer.new_from_colors_and_indexes(new Uint32Array(1),new Uint16Array(parseInt(e)*parseInt(_)),parseInt(e),parseInt(_),!0)],_layer_index:0,_pxls_hovered:-1,_original_image_index:-1,_last_action_timestamp:Date.now()}).then((function(){t._set_size()}))},this._set_size=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;e=e||t.super_state.get_state().pxl_width,_=_||t.super_state.get_state().pxl_height,t.super_state.set_state({pxl_width:e,pxl_height:_}).then((function(){t.canvas_pos.set_sizes(e,_),t.canvas_pos.set_current_scale_default(),t._request_force_update(!1,!1).then((function(){t.super_canvas.setDimensions(e,_).then((function(){t.super_master_meta.update_canvas(!0).catch((function(){t._set_size(e,_)}))})).catch((function(){t.super_master_meta.update_canvas(!0).catch((function(){t._set_size(e,_)}))}))})).catch((function(){t._set_size(e,_)}))}))},this.export_state=function(){t._notify_export_state()},this._notify_export_state=function(){t.props.on_state_export&&t.props.on_state_export(),t.props.on_state_exported&&t.export_JS_state((function(e){t.props.on_state_exported(e)}))},this._maybe_update_selection_highlight=function(){var e=t.super_state.get_state(),_=e.tool,n=e._select_shape_index_a,a=e._selection_pair_highlight;_.toUpperCase().includes("SELECT")&&parseInt(n)<0&&t.super_state.set_state({_selection_pair_highlight:!a}).then((function(){t.super_master_meta.update_canvas(!1,Date.now())}))},this._set_props=function(e){t.componentWillReceiveProps(Object.assign(Object.assign({},t.props),e))},this.zoom_in=function(){t.canvas_pos.set_zoom(1.33)},this.zoom_out=function(){t.canvas_pos.set_zoom(.75)},this.current_layer_up=function(){var e=t.super_state.get_state(),_=e._layers,n=e._layer_index,a=e._s_layers;n<_.length-1&&(_.splice(n+1,0,_.splice(n,1)[0]),a.splice(n+1,0,a.splice(n,1)[0]),t.super_state.set_state({_layers:_,_layer_index:parseInt(n+1),_s_layers:a,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)})))},this.current_layer_down=function(){var e=t.super_state.get_state(),_=e._layers,n=e._layer_index,a=e._s_layers;n>0&&(_.splice(n-1,0,_.splice(n,1)[0]),a.splice(n-1,0,a.splice(n,1)[0]),t.super_state.set_state({_layers:_,_s_layers:a,_layer_index:parseInt(n-1),_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)})))},this.new_layer=function(e){var _=t.super_state.get_state(),n=_.pxl_width,a=_.pxl_height,s=t.super_state.get_state(),i=s._layers,r=s._s_layers;e=void 0===e?r.length:e,r.splice(e+1,0,o.Layer.new_from_colors_and_indexes(Uint32Array.of(0),new Uint8Array(n*a),n,a,!0)),i.splice(e+1,0,{id:Date.now(),hash:"",name:"Layer "+(e+1),hidden:!1,opacity:1,colors:["#00000000"],number_of_colors:1}),t.super_state.set_state({_layers:i,_s_layers:r,_layer_index:e+1,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)}))},this.duplicate_layer=function(e){var _=t.super_state.get_state(),n=_._layers,a=_._s_layers,s=_.pxl_width,i=_.pxl_height;e=void 0===e?a.length:e,a.splice(e+1,0,o.Layer.new_from_colors_and_indexes(a[e].colors_copy,a[e].indexes_copy,s,i,!0)),n.splice(e+1,0,{id:Date.now(),hash:n[e].hash,name:n[e].name+" (copy)",hidden:!!n[e].hidden,opacity:parseFloat(n[e].opacity),colors:Array.from(n[e].colors||[]),number_of_colors:parseInt(n[e].number_of_colors),thumbnail:n[e].thumbnail}),t.super_state.set_state({_layers:n,_layer_index:e+1,_s_layers:a,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)}))},this.delete_layer=function(e){var _=t.super_state.get_state(),n=_._layers,a=_._s_layers,s=_._layer_index;n.length>1&&(a.splice(e,1),n.splice(e,1),s=(s=e-1)<0?0:s,t.super_state.set_state({_layers:n,_layer_index:s,_s_layers:a,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)})))},this.change_active_layer=function(e){t.super_state.get_state()._layers.length>e&&0<=e&&t.super_state.set_state({_layer_index:e,_last_action_timestamp:1/0}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)}))},this.toggle_layer_visibility=function(e){var _=Array.from(t.super_state.get_state()._layers);_[parseInt(e)].hidden=!_[parseInt(e)].hidden,t.super_state.set_state({_layers:_,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this.change_layer_opacity=function(e,_){var n=Array.from(t.super_state.get_state()._layers);n[parseInt(e)].opacity=parseFloat(_),t.super_state.set_state({_layers:n,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this.merge_down_layer=function(e){var _,n,s,i,r,l,h,p,c,u,d=t.super_state.get_state(),f=d._layers,m=d._s_layers,g=d.pxl_width,y=d.pxl_height;if(void 0!==f[e]&&void 0!==f[e-1]){for(_=m[e].indexes,n=m[e-1].indexes,s=m[e].colors,i=m[e-1].colors,r=255&Math.round(255*parseFloat(f[e].opacity)),l=255&Math.round(255*parseFloat(f[e-1].opacity)),h=0|_.length,p={id:Date.now(),name:"Merged layers "+e+"+"+(e-1),hidden:!(!f[e].hidden||!f[e-1].hidden),opacity:parseFloat(1)},c=C.default.init(2,h,Uint8Array.of(l,r)),u=0;(0|u)<(0|h);u=(u+1|0)>>>0)c.for(u,0),c.stack(0,i[n[0|u]]),c.stack(1,s[_[0|u]]),c.next();c.blend(!1,!1).then((function(_){var n,s,i,r,l,h=a(_,2),u=h[0],d=h[1],v=new Uint32Array(new ArrayBuffer(y*g*4)),x=0|u.length;for(n=0;F.simdops.int_less(n,x);n=F.simdops.plus_uint(n,1))v[u[n]]=d[0|n];s=new ImageData(new Uint8ClampedArray(v.buffer),g,y),r=(i=t._get_pixels_palette_and_list_from_image_data(s,!0)).new_pxl_colors,l=i.new_pxls,c.clear(),f.splice(e-1,2,p),m.splice(e-1,2,o.Layer.new_from_colors_and_indexes(r,l,g,y,!0)),t.super_state.set_state({_layer_index:e-1,_layers:f,_s_layers:m,_old_pxl_colors:new Uint32Array(m[0].indexes.length),_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)}))}))}},this.compute_filters_preview=function(){t._notify_filters_change(1)},this._notify_filters_change=function(){var e,_,n,a,s,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.props.onFiltersThumbnailChange&&(e=t.super_state.get_state(),_=e._processing_filters,n=e._layer_index,a=e._last_filters_hash,s=e._s_layers,i=e._filter_thumbnails,s[n].hash_hex_async().then((function(e){var r,l,h;a===e&&!1!==_||(r=i||new Map,l=0,h=0,t.super_state.set_state({_last_filters_hash:e,_processing_filters:!0}).then((function(){t.filters.names.forEach((function(_,a,i){t.filters.use(_,s[n],o,!0).bitmap_async().then((function(n){h++;var a=r.get(_);void 0!==a&&void 0!==a.destroy&&a.destroy(),r.set(_,n),l=Math.round(h/i.length*100).toString(),t.props.onFiltersThumbnailChange(r,e,l),r.size===i.length&&t.super_state.set_state({_filter_thumbnails:r,_processing_filters:!1})}))}))})))})))},this.get_pixel_color_from_pos=function(e,_){return t.super_master_meta.get_pixel_color_from_pos(e,_)},this.get_layer_bitmap_image=function(e,_,n,a,s){t.bmp_layer.render(e,_,n,a,s)},this.set_png_compressors=function(e,_){t.png_quant=e||t.png_quant,t.oxi_png=_||t.oxi_png},this.get_base64_png_data_url=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:35;return t._get_base64_png_data_url(e,_,n,a,s)},this._get_base64_png_data_url=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:35,s=t.super_state.get_state(),i=s.pxl_width,o=s.pxl_height,r=s._s_layers,l=s._layers;return new Promise((function(s,h){f.default.from(u.default,parseInt(i),parseInt(o),r.map((function(t){return t.indexes})),r.map((function(t){return t.colors})),l,parseInt(e),!0).render().then((function(e){t.png_quant&&0!==_&&e.colors.length<=256?t.png_quant(""+e.url,n,a,_,u.default).then((function(t){e.url=t,s(e)})).catch((function(t){this.props.set_compressor(),h(t)})):t.oxi_png&&0!==_&&e.colors.length>256?t.oxi_png(""+e.url,Math.round(a/33),!1,u.default).then((function(t){e.url=t,s(e)})).catch((function(t){this.png_quant(""+e.url,n,a,_,u.default).then((function(t){e.url=t,s(e)})).catch((function(t){this.props.set_compressor(),h(t)}))})):s(e)})).catch((function(t){h(t)}))}))},this._get_pixels_palette_and_list_from_image_data=function(e){var _,n,a,s,i,o,r,l,h,p,c,u,d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],f=t.super_state.get_state(),m=f.max_size,g=f._lazy_lazy_compute_time_ms,y=(f.pxl_width,f.pxl_height,e.data.length/4>m*m),v=[],x=new Set,w=void 0;if(!y||d)for(w=new Uint16Array(e.width*e.height).fill(0),_=0;_>>0)?v.indexOf((0|n)>>>0):-1)&&(a=(v.push((0|n)>>>0)-1|0)>>>0,x.add((0|n)>>>0)),w[_/4|0]=(0|a)>>>0;else for(s=Date.now(),w=new Uint16Array(e.width*(m+1)).fill(0),i=0,o=0;o<=m&&!(s+g2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"high",s=document.createElement("canvas");return s.width=t,s.height=e,_=s.getContext("2d"),n?(_.mozImageSmoothingEnabled=!1,_.webkitImageSmoothingEnabled=!1,_.msImageSmoothingEnabled=!1,_.imageSmoothingEnabled=!1):a.length&&(_.imageSmoothingQuality=a),[_,s]},this.copy_selection=function(){t.import_image_on_canvas_from_selection()},this.cut_selection=function(){t.import_image_on_canvas_from_selection(),t.erase_selection(),t.to_selection_none()},this.erase_selection=function(){var e=t.super_state.get_state(),_=e._s_layers,n=e._layer_index,a=e._pxl_indexes_of_selection,s=(e.pxl_width,e.pxl_height,Array.from(_[n].colors));a.size>0&&(s.includes(0)||(s.push(0),_[n].set_colors(s)),a.forEach((function(t){_[n].set_uint32(t,0)})),t.super_state.set_state({_s_layers:_,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas()})))},this.import_image_on_canvas_from_selection=function(){var e,_,n,s,i,o,r,l,h,p,c,u,d,f=t.super_state.get_state(),m=f._s_layers,g=f._layer_index,y=f._pxl_indexes_of_selection,v=f.pxl_width,x=f.pxl_height;if(y.size>0){for(e=[v,x],_=[-1,-1],y.forEach((function(t){var n=t%v,a=(t-n)/v;n_[0]&&(_[0]=n),a>_[1]&&(_[1]=a)})),n=1+_[0]-e[0],s=1+_[1]-e[1],i=m[g].indexes,o=new Uint16Array(n*s),r=Array.from(m[g].colors),l=0;l0&&void 0!==arguments[0]?arguments[0]:null,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.props.onLoad&&t.props.onLoad("image_load"),n.id?t.super_state.set_state({_id:Date.now(),pxl_width:parseInt(n.width),pxl_height:parseInt(n.height),_pxl_indexes_of_selection:new i.SetFixed(n.width*n.height),_base64_original_images:[_],_s_layers:[o.Layer.new_from_colors_and_indexes(n.pxl_colors,n.pxls,parseInt(n.width),parseInt(n.height),!0)],_layers:[{id:Date.now(),name:"Layer 0",hidden:!1,opacity:1}],_layer_index:0,_pxls_hovered:-1,_original_image_index:0,_last_action_timestamp:Date.now(),_json_state_history:{history_position:0,state_history:[]}}).then((function(){t._set_size(),t._notify_image_load_complete(),t._notify_export_state()})):setTimeout((function(){var n,r,l,h,p,c,u,d,f,m,g,y,v,x,w,b,M,I,z,C,A,S,j,E,D,L,k,O,F,U,G,T,N,H,R,B,P,W,Y,q,Z,Q,V,J,X,K,$,tt,et,_t=t.super_state.get_state(),nt=_t.default_size,at=_t.max_size,st=_t.ideal_size,it=_t._base64_original_images,ot=_t.dont_change_img_size_onload,rt=_t.dont_compute_base64_original_image,lt=e.naturalWidth,ht=e.naturalHeight,pt=t._get_new_ctx_from_canvas(lt,ht,!0),ct=a(pt,2),ut=ct[0],dt=ct[1];if(ut.drawImage(e,0,0,lt,ht),n=ut.getImageData(0,0,lt,ht),r=rt?"":_.length>0?_:dt.toDataURL("image/jpeg"),ut=null,dt=null,l=!1,h=1,!1===ot){if(c=(p=t._get_pixels_palette_and_list_from_image_data(n,!0)).new_pxls,u=p.new_pxl_colors,n=null,d=c.length/u.length,!(f=at*at>ht*lt)){if(m=1/0,y=0,v=-1,(g=[])[1]=0,c.forEach((function(t,e){v===t||0===e?y++:(y32||(_=i>32?1:42/(i+10),n=i>32?0:(i>32?1:_*M)*Math.pow(i,1-1/_+1),1!==i&&wg[1]?b:1,z=I,g[1]g[1]&&(z=C,f=!0);break}C++}if(A=z,Object.entries(g).forEach((function(t,e){var _=a(t,2),n=_[0],s=_[1];n=parseInt(n),e>1&&s>g[A]&&n16*Math.sqrt(j=ht*h*(lt*h))&&j<=nt*nt*4||d>9*Math.sqrt(j)&&j<=nt*nt*3||d>4*Math.sqrt(j)&&j<=nt*nt*2||d>1*Math.sqrt(j)&&j<=nt*nt*1,D=j>u.length,(E||f)&&jnt*nt&&(lt*=h,ht*=h,l=!0);else{for(L=1;Math.round(lt*L)*Math.round(ht*L)>nt*nt;)L-=.01;lt*=L,ht*=L}}k=void 0,O=null,l&&!1===ot?(N=(G=ht/h)-G%(F=1/h),H=Math.floor((T=(U=lt/h)-U%F)/F),R=Math.floor(N/F),B=T,P=N,W=Math.floor((U-T)/2),Y=Math.floor((G-N)/2),lt=Math.floor(H),ht=Math.floor(R),q=t._get_new_ctx_from_canvas(lt,ht,!0),k=(Z=a(q,2))[0],Z[1],k.drawImage(e,W,Y,B,P,0,0,lt,ht),O=k.getImageData(0,0,lt,ht)):!1===ot?(lt=Math.floor(lt),ht=Math.floor(ht),Q=t._get_new_ctx_from_canvas(lt,ht,!0),k=(V=a(Q,2))[0],V[1],k.drawImage(e,0,0,lt,ht),O=k.getImageData(0,0,lt,ht)):O=n,J=t._get_pixels_palette_and_list_from_image_data(O,!0),k=null,n=null,O=null,(X=it).includes(r)||X.push(r),K=t.color_conversion.clean_duplicate_colors(J.new_pxls,J.new_pxl_colors),tt=($=a(K,2))[0],et=$[1],t.super_state.set_state({_id:Date.now(),pxl_width:parseInt(lt),pxl_height:parseInt(ht),_pxl_indexes_of_selection:new i.SetFixed(lt*ht),_base64_original_images:X,_layers:[{id:Date.now(),name:"Layer 0",hidden:!1,opacity:1}],_json_state_history:{history_position:0,state_history:[]},_s_layers:[o.Layer.new_from_colors_and_indexes(et,tt,parseInt(lt),parseInt(ht),!0)],_layer_index:0,_pxls_hovered:-1,_original_image_index:X.indexOf(r),_last_action_timestamp:Date.now()}).then((function(){t._set_size(),t._notify_image_load_complete(),t._notify_export_state()}))}),50)},this._set_canvas_ref=function(e){if(void 0===e)return t._set_size();if(null===e)return t._set_size();if(void 0===e.width)return t._set_size();if(null===e.width)return t._set_size();var _=t.super_state.get_state(),n=_.pxl_width,a=_.pxl_height;t.super_canvas.new(e,n,a).then((function(){t.super_master_meta.update_canvas(!0),t._maybe_save_state(void 0,!0)}))},this._set_canvas_container_ref=function(e){null!==e&&t.super_state.set_state({_canvas_container:e}).then((function(){t._update_canvas_container_size()}))},this._set_canvas_wrapper_ref=function(e){null!==e&&t.super_state.set_state({_canvas_wrapper:e})},this._set_canvas_wrapper_overflow_ref=function(e){null!==e&&(e.addEventListener("wheel",t._canvas_pos_handle_wheel,{passive:!1}),e.addEventListener("pointerdown",t._canvas_pos_handle_pointer_down,{passive:!1}),e.addEventListener("pointermove",t._canvas_pos_handle_pointer_move,{passive:!1}),e.addEventListener("pointerup",t._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointercancel",t._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointerout",t._canvas_pos_handle_pointer_up,{passive:!1}),e.addEventListener("pointerleave",t._canvas_pos_handle_pointer_up,{passive:!1}),t.super_state.set_state({_canvas_wrapper_overflow:e}))},this._super_master_meta_handle_canvas_mouse_move=function(e){t.super_master_meta._handle_canvas_mouse_move(e)},this._super_master_meta_handle_canvas_mouse_up=function(e){t.super_master_meta._handle_canvas_mouse_up(e)},this._super_master_meta_handle_canvas_mouse_down=function(e){t.super_master_meta._handle_canvas_mouse_down(e)},this._function_ripple=function(e){t._ripple.start(e),setTimeout((function(){t._ripple.stop(e)}),75)},this._canvas_pos_handle_wheel=function(e){t.canvas_pos.handle_wheel(e)},this._canvas_pos_handle_pointer_down=function(e){t.canvas_pos.handle_pointer_down(e)},this._canvas_pos_handle_pointer_move=function(e){t.canvas_pos.handle_pointer_move(e)},this._canvas_pos_handle_pointer_up=function(e){t.canvas_pos.handle_pointer_up(e)},this.write_text=function(e,_){var n,a=t.super_state.get_state()._layer_index;t.new_layer(a),t.change_active_layer(a+1),n=(new t.super_state.create_shape).from_text(e,_),t.super_state.paint_shape(n,t.super_state.get_state().pxl_current_color_uint32)},this._match_color=function(e,_,n){var s,i,o,r,l,h,p,c,u,d,f,m,g,y,v,x,w,b;return 1===(n=void 0===n?null:n)||(0===n?e===_:(s=Math.round(255*n),i=t.color_conversion.to_rgba_from_uint32(e),r=(o=a(i,4))[0],l=o[1],h=o[2],p=o[3],c=t.color_conversion.to_rgba_from_uint32(_),d=(u=a(c,4))[0],f=u[1],m=u[2],g=u[3],y=Math.abs(p-g),v=Math.abs(r-d),x=Math.abs(l-f),w=Math.abs(h-m),b=Math.abs(1-y/255),null!==n?!!(vt.super_state.get_state()._layers_defined_at),r=Object.assign({},e);r._layers=Array.from(e._layers.map((function(t){return{id:0|t.id,hash:t.hash+"",name:t.name+"",hidden:t.hidden&&!0,opacity:parseFloat(t.opacity),colors:Array.from(t.colors),number_of_colors:0|t.number_of_colors}}))),s&&o&&i?t.super_state.set_state({_layer_index:parseInt(e._layer_index),_layers:Array.from(e._layers),_layers_defined_at:n}).then((function(){t.props.onLayersChange&&t.props.onLayersChange(t.super_state.get_state()._layer_index,Array.from(e._layers)),null!==_&&_(t.super_state.get_state()._layers,t.super_state.get_state()._layer_index,s,r)})):(t.props.onLayersChange&&t.props.onLayersChange(t.super_state.get_state()._layer_index,Array.from(e._layers)),(s||a)&&i?null!==_&&_(t.super_state.get_state()._layers,t.super_state.get_state()._layer_index,s,r):null!==_&&_(t.super_state.get_state()._layers,t.super_state.get_state()._layer_index,s,{}))},this._get_most_used_color_sorted=function(t,e,_){var n,a,s,i;for(_=Math.min(e.length,_||256),n=new F.Colors(new F.Colors(e.buffer).get_deduplicated_sorted_uint32a(_).buffer),a=new F.Color(new ArrayBuffer(4)),s=Array(_),i=0;i<_;i++)s[i]=n.get_use_element(i,a).hex;return s},this._notify_layers_and_compute_thumbnails_change=function(e,_,n,a){var s,i,o,r,l,h,p,c,u;for(a=a||Date.now(),s=0,i=parseInt(e._timestamp)||Date.now(),o=parseInt(_._timestamp),r=_._layers.length,l=parseInt(i),h=!1,p=!1,c=function(i){_._s_layers[i].bitmap_async(!0).then((function(c){var u=""+c.hash,d=Object.assign({},(e._layers||[])[i]),f=d.thumbnail,m=d.hash;m===u&&m&&f&&_._s_layers[i].thumbnail?(_._layers[i].hash=u,_._layers[i].thumbnail=f,0!==_._layers[i].colors.length&&_._layers[i].colors.length===_._layers[i].number_of_colors||(_._layers[i].colors=t._get_most_used_color_sorted(_._s_layers[i].indexes,_._s_layers[i].colors,256),_._layers[i].number_of_colors=parseInt(_._s_layers[i].colors.length)),++s===r&&(_._timestamp=parseInt(l),t.maybe_set_layers(_,n,a,p,h))):(p=!0,m===u&&m||(h=!0,l=o),_._layers[i].hash=u,_._layers[i].thumbnail=c,_._layers[i].colors=t._get_most_used_color_sorted(_._s_layers[i].indexes,_._s_layers[i].colors,256),_._layers[i].number_of_colors=parseInt(_._s_layers[i].colors.length),++s===r&&(_._timestamp=parseInt(l),t.maybe_set_layers(_,n,a,p,h)))}))},u=0;us._saving_json_state_history_ran_timestamp||_)&&(s._last_action_timestamp+625<=Date.now()||_||0===i.state_history.length)?s._saving_json_state_history_running||a&&!_?setTimeout((function(){t._maybe_save_state(e,_,n)}),125):(t.super_state.set_state({_saving_json_state_history_running:!0}),r=s._id,l=s._layers,h=s.pxl_width,p=s.pxl_height,c=s._s_layers,u=s._original_image_index,d=s._layer_index,f=s._pxl_indexes_of_selection,m=s._pencil_mirror_index,g=parseInt(i.history_position),y=0===i.state_history.length?{}:i.state_history[g-1],(v={})._timestamp=parseInt(Date.now()),v._id=r.toString(),v.pxl_width=parseInt(h),v.pxl_height=parseInt(p),v._original_image_index=parseInt(u),v._layers=Array.from(l.map((function(t){return{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity||1),thumbnail:t.thumbnail||null,colors:Array.from(t.colors||[]),number_of_colors:parseInt(t.number_of_colors||0)}}))),v._layer_index=parseInt(d),v._s_layers=Array.from(c.map((function(t){return o.Layer.new_from_colors_and_indexes(t.colors_copy,t.indexes_copy,parseInt(h),parseInt(p),!0)}))),v._pxl_indexes_of_selection=f.export,v._pencil_mirror_index=parseInt(m),t._notify_layers_and_compute_thumbnails_change(Object.assign({},y),Object.assign({},v),(function(_,n,a){var o,r,l=s._state_history_length,h=s._saving_json_state_history_ran_timestamp,p=!(0!==i.state_history.length),c=parseInt(i.history_position),u=v._timestamp||0,d=Date.now();if(p&&0!==u)i.state_history=[],i.state_history.push(Object.assign({},v)),i.history_position=1,h=d;else if(a){if(i.state_history.length-c>0)for(o=i.state_history.splice(c);o.length;)i.state_history.push(Object.assign({},o.shift()));i.state_history.length>=l&&i.state_history.splice(1,1),i.state_history.push(Object.assign({},v)),i.history_position=parseInt(i.state_history.length),h=d}else for(r=0;r0&&void 0!==arguments[0]&&arguments[0],_=t.super_state.get_state(),n=_._s_layers,a={width:_.pxl_width,height:_.pxl_height,number_of_colors:n[0].colors.length,only_scan:e};t._maybe_save_state(void 0,!0),t.props.onLoadComplete&&t.props.onLoadComplete("image_load",a)},this._notify_image_import_complete=function(){t.props.onImageImportComplete&&t.props.onImageImportComplete()},this._notify_can_undo_redo_change=function(){t.props.onCanUndoRedoChange&&t.props.onCanUndoRedoChange(t._can_undo(),t._can_redo())},this._notify_size_change=function(){var e=t.super_state.get_state(),_=e.pxl_width,n=e.pxl_height;t.props.onSizeChange&&t.props.onSizeChange(_,n)},this.import_JSON_state=function(e){t.import_JS_state(e)},this.import_JS_state=function(e,_){var n=Array.from(e._base64_original_images);Promise.all(n.map((function(t){return(0,U.bytesToBase64)(t[1])}))).then((function(a){var s,r;a.forEach((function(t,e){n[e]=n[e][0]+","+t})),s={history_position:parseInt(e._json_state_history.history_position),state_history:e._json_state_history.state_history.map((function(t){return Object.assign({},{_original_image_index:parseInt(t._original_image_index),pxl_width:parseInt(t.pxl_width),pxl_height:parseInt(t.pxl_height),_pxl_indexes_of_selection:i.SetFixed.import(t._pxl_indexes_of_selection),_s_layers:Array(t._s_pxls.length).fill({}).map((function(e,_){return o.Layer.new_from_colors_and_indexes(t._s_pxl_colors[_],t._s_pxls[_],parseInt(t.pxl_width),parseInt(t.pxl_height),!0)})),_layers:Array.from(t._layers.map((function(t){return Object.assign({},{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity)})}))),_layer_index:parseInt(t._layer_index),_pencil_mirror_index:parseInt(t._pencil_mirror_index),_id:t._id.toString()})}))},e=null,r=s.state_history[s.history_position-1],t.super_state.set_state({_id:r._id.toString(),pxl_width:parseInt(r.pxl_width),pxl_height:parseInt(r.pxl_height),_base64_original_images:Array.from(n),_original_image_index:parseInt(r._original_image_index)||0,_layers:Array.from(r._layers.map((function(t){return{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity)}}))),_layer_index:parseInt(r._layer_index)||0,_s_layers:Array.from(r._s_layers),_pxl_indexes_of_selection:i.SetFixed.import(r._pxl_indexes_of_selection),_pencil_mirror_index:parseInt(r._pencil_mirror_index),_json_state_history:s,_pxls_hovered:-1,_last_action_timestamp:1/0}).then((function(){t._set_size(),t._notify_image_load_complete(),t._notify_is_something_selected(),t._notify_can_undo_redo_change(),_()}))}))},this.export_JS_state=function(e){t._maybe_save_state((function(_){var n=t.super_state.get_state()._base64_original_images.map((function(t){return t.split(",")}));Promise.all([Promise.all(n.map((function(t){return(0,U.base64ToBytes)(t[1])}))),t.get_base64_png_data_url(1,!1,1,100,100)]).then((function(a){Array.from(a[0]).forEach((function(t,e){n[e][1]=t})),_={history_position:parseInt(_.history_position),state_history:_.state_history.map((function(t){return Object.assign({},{_original_image_index:parseInt(t._original_image_index),pxl_width:parseInt(t.pxl_width),pxl_height:parseInt(t.pxl_height),_pxl_indexes_of_selection:t._pxl_indexes_of_selection.export,_s_pxls:Array.from(t._s_layers).map((function(t){return t.indexes_copy})),_s_pxl_colors:Array.from(t._s_layers).map((function(t){return t.colors_copy})),_layers:Array.from(t._layers.map((function(t){return{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity)}}))),_layer_index:parseInt(t._layer_index),_pencil_mirror_index:parseInt(t._pencil_mirror_index),_id:t._id.toString()})}))};var s=3*Math.ceil(a[1].url.length/4);e({id:t.super_state.get_state()._id.toString(),kb:s/1024,preview:a[1].url,timestamp:Date.now(),_base64_original_images:n,_json_state_history:_})}))}))},this._can_undo=function(e){return e||(e=t.super_state.get_state()._json_state_history),parseInt(e.history_position-1)},this.undo=function(){t._maybe_save_state((function(e){var _,n;t._can_undo(e)>0&&(e.history_position=parseInt(e.history_position-1),_=e.state_history[e.history_position-1],n=!(_.pxl_width===t.super_state.get_state().pxl_width&&_.pxl_height===t.super_state.get_state().pxl_height),t.super_state.set_state({_id:_._id.toString(),pxl_width:parseInt(_.pxl_width),pxl_height:parseInt(_.pxl_height),_original_image_index:parseInt(_._original_image_index),_layers:Array.from(_._layers.map((function(t){return{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity)}}))),_layer_index:parseInt(_._layer_index),_s_layers:Array.from(_._s_layers.map((function(t){return o.Layer.new_from_colors_and_indexes(t.colors_copy,t.indexes_copy,parseInt(_.pxl_width),parseInt(_.pxl_height),!0)}))),_pxl_indexes_of_selection:i.SetFixed.import(_._pxl_indexes_of_selection),_pencil_mirror_index:parseInt(_._pencil_mirror_index),_json_state_history:e,_last_action_timestamp:Date.now()}).then((function(){n?t._set_size():t.super_master_meta.update_canvas(!0),t._notify_is_something_selected(),t._notify_can_undo_redo_change()})))}),!0)},this._can_redo=function(e){return e||(e=t.super_state.get_state()._json_state_history),e.state_history.length-parseInt(e.history_position-1)-1|0},this.redo=function(){t._maybe_save_state((function(e){var _,n;t._can_redo(e)>0&&(e.history_position=parseInt(e.history_position+1),_=e.state_history[e.history_position-1],n=!(_.pxl_width===t.super_state.get_state().pxl_width&&_.pxl_height===t.super_state.get_state().pxl_height),t.super_state.set_state({_id:_._id.toString(),pxl_width:parseInt(_.pxl_width),pxl_height:parseInt(_.pxl_height),_original_image_index:parseInt(_._original_image_index),_layers:Array.from(_._layers.map((function(t){return{id:parseInt(t.id),hash:t.hash+"",name:t.name+"",hidden:!!t.hidden,opacity:parseFloat(t.opacity)}}))),_layer_index:parseInt(_._layer_index),_s_layers:Array.from(_._s_layers.map((function(t){return o.Layer.new_from_colors_and_indexes(t.colors_copy,t.indexes_copy,parseInt(_.pxl_width),parseInt(_.pxl_height),!0)}))),_pxl_indexes_of_selection:i.SetFixed.import(_._pxl_indexes_of_selection),_pencil_mirror_index:parseInt(_._pencil_mirror_index),_json_state_history:e,_last_action_timestamp:Date.now()}).then((function(){n?t._set_size():t.super_master_meta.update_canvas(!0),t._notify_is_something_selected(),t._notify_can_undo_redo_change()})))}),!0)},this.to_selection_border=function(){var e=t.super_state.get_state(),_=e.pxl_current_color_uint32,n=e._pxl_indexes_of_selection,a=e._s_layers,s=e._layer_index,i=e.pxl_current_opacity,o=(a[s]||{}).indexes_copy||new Uint8Array(0),r=Array.from(a[s].colors_copy);t._get_border_from_selection(n).forEach((function(e){var n,a=o[e],s=r[a],l=t.color_conversion.blend_colors(s,_,i,!1,!1);r.includes(l)||r.push(l),n=r.indexOf(l),o[e]=n})),a[s].set_colors_and_indexes(r,o),t.super_state.set_state({_s_layers:a,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas()}))},this.to_selection_bucket=function(){var e=t.super_state.get_state(),_=e._s_layers,n=e._pxl_indexes_of_selection,a=e._layer_index,s=e.pxl_current_opacity,i=e.pxl_current_color_uint32,o=Array.from(_[a].indexes),r=Array.from(_[a].colors);n.forEach((function(e){var _,n=o[e],a=r[n],l=t.color_conversion.blend_colors(a,i,s,!1,!1);r.includes(l)||r.push(l),_=r.indexOf(l),o[e]=_})),_[a].set_colors_and_indexes(r,o),t.super_state.set_state({_s_layers:_,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas()}))},this.to_selection_invert=function(){var e,_=t.super_state.get_state(),n=_._s_layers,a=_._pxl_indexes_of_selection,s=_._layer_index,o=_.pxl_width,r=_.pxl_height,l=a,h=new i.SetFixed(o*r);for(e=0;e1&&void 0!==arguments[1]&&arguments[1],n=t.color_conversion.to_rgba_from_uint32(e),s=a(n,4),i=s[0],o=s[1],r=s[2],l=s[3],h=t.color_conversion.to_hsla_from_rgba(Uint8ClampedArray.of(i,o,r,l)),p=a(h,4),c=p[0],u=p[1],d=p[2],f=(p[3],t.super_state.get_state()),m=f._s_layers,g=f._pxl_indexes_of_selection,y=f._layer_index,v=Array.from(m[y].indexes),x=Array.from(m[y].colors),w=t._get_average_color_of_selection(),b=t.color_conversion.to_rgba_from_uint32(w),M=a(b,4),I=M[0],z=M[1],C=M[2],A=M[3],S=t.color_conversion.to_hsla_from_rgba(Uint8ClampedArray.of(I,z,C,A)),j=a(S,4),E=j[0],D=(j[1],j[2],j[3],E-c);g.forEach((function(e,n,s){var i,o,r,l,h,p,c,f=v[e],m=x[f],g=t.color_conversion.to_rgba_from_uint32(m),y=a(g,4),w=y[0],b=y[1],M=y[2],I=y[3],z=t.color_conversion.to_hsla_from_rgba(Uint8ClampedArray.of(w,b,M,I)),C=a(z,4),A=C[0],S=C[1],j=C[2],E=C[3],L=A+D<0?(360+A+D)%360:(A+D)%360,k=[u,d,1],O=[S,j,1],F=[];0!==I&&_?(F[2]=1-(1-k[2])*(1-O[2]),F[0]=Math.round(k[0]*k[2]/F[2]+O[0]*O[2]*(1-k[2])/F[2]),F[1]=Math.round(k[1]*k[2]/F[2]+O[1]*O[2]*(1-k[2])/F[2])):F=[S,j],i=t.color_conversion.to_rgba_from_hsla(Array.of(L,F[0],F[1],E)),r=(o=a(i,4))[0],l=o[1],h=o[2],p=o[3],c=0,0!==I&&(c=t.color_conversion.to_uint32_from_rgba(Uint8ClampedArray.of(r,l,h,p))),x.includes(c)||x.push(c),v[e]=x.indexOf(c)})),m[y].set_colors_and_indexes(x,v),t.super_state.set_state({_s_layers:m,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas()}))},this._get_border_from_selection=function(e){var _=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t.super_state.get_state(),s=a.pxl_width,o=a.pxl_height,r=new i.SetFixed(s*o);return e.forEach((function(t,a){var i,l,h,p,c=void 0,u=void 0,d=void 0,f=void 0;u=(u=t+1)%s==0?-1:u,f=(f=t-1)%s==s-1?-1:f,i=void 0,l=void 0,h=void 0,p=void 0,i=(c=(c=t-s)<0?-1:c)-1,i=-1===c||-1===f?-1:i,l=c+1,l=-1===c||-1===u?-1:l,h=(d=(d=t+s)>s*o?-1:d)-1,h=-1===d||-1===f?-1:h,p=d+1,p=-1===d||-1===u?-1:p,_?(e.has(c)&&-1!==c&&e.has(u)&&-1!==u&&e.has(d)&&-1!==d&&e.has(f)&&-1!==f||r.add(t),n&&(e.has(i)&&-1!==i&&e.has(l)&&-1!==l&&e.has(h)&&-1!==h&&e.has(p)&&-1!==p||r.add(t))):(e.has(c)||r.add(c),e.has(u)||r.add(u),e.has(d)||r.add(d),e.has(f)||r.add(f),n&&(e.has(i)||r.add(i),e.has(l)||r.add(l),e.has(h)||r.add(h),e.has(p)||r.add(p)))})),r},this._to_selection_crop=function(){var e,_,n,s,r,l,h,p,c,u,d,f,m=t.super_state.get_state(),g=m._s_layers,y=(m._layer_index,m._pxl_indexes_of_selection),v=m.pxl_width,x=m.pxl_height,w=m._base64_original_images,b=m._original_image_index;if(y.size>0){for(e=[v,x],_=[-1,-1],y.forEach((function(t){var n=t%v,a=(t-n)/v;n_[0]&&(_[0]=n),a>_[1]&&(_[1]=a)})),n=1+_[0]-e[0],s=1+_[1]-e[1],r=0;r0;t.super_state.set_state({_is_image_import_mode:e}),t.props.onImageImportModeChange&&t.props.onImageImportModeChange(e)},this.to_selection_crop=function(){t._to_selection_crop()},this.to_rotation=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t._to_rotation(e)},this.to_greyscale=function(){t._to_colorized("greyscale")},this.to_sepia=function(){t._to_colorized("sepia")},this.to_opacity=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t._to_colorized(null,e)},this.to_color=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t._to_colorized(e,_,n,a)},this.to_vignette=function(e,_){t._to_vignette(e,_)},this.less_colors_stepped=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};t._to_less_color(e,_)},this.less_colors_stepped=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=0,a=e;!function s(){t.to_less_color(a/64,(function(t){n=t.colors_removed,a+=e,e-=n>0?1:0,n<1?s():_(t)}))}()},this.to_less_color=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/16,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};t.props.onLoad&&("auto"===e?t.props.onLoad("less_color_auto"):t.props.onLoad("less_color")),t._to_less_color(e,(function(n){t.props.onLoadComplete&&("auto"===e?t.props.onLoadComplete&&t.props.onLoadComplete("less_color_auto",n):t.props.onLoadComplete&&t.props.onLoadComplete("less_color",n)),_(n)}))},this.auto_adjust_contrast=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t._auto_adjust_contrast(e)},this.auto_adjust_saturation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.5;t._auto_adjust_saturation(e)},this.smooth_adjust=function(){t._auto_adjust_smoothness()},this.to_alpha=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#00000000",_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;t._to_alpha(t.color_conversion.to_uint32_from_hex(t.color_conversion.format_hex_color(e)),_)},this.to_filter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1997",_=arguments[1];t._to_filter(e,parseFloat(_))},this.to_mirror=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];t._invert_pixel(e?"HORIZONTAL":"VERTICAL")},this.to_dutone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.8,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#ffffffff",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000ff";t._to_dutone(e,t.color_conversion.to_uint32_from_hex(t.color_conversion.format_hex_color(_)),t.color_conversion.to_uint32_from_hex(t.color_conversion.format_hex_color(n)))},this._invert_pixel=function(e){var _,n,s,o=t.super_state.get_state(),r=o._s_layers,l=o.pxl_width,h=o.pxl_height,p=o._base64_original_images,c=o._original_image_index,u=o._pxl_indexes_of_selection,d=o._shape_index_a,f=o._select_shape_index_a,m=o._layer_index,g=t.super_state.get_state(),y=g._imported_image_pxls,v=g._imported_image_width,x=g._imported_image_height,w=Array.from(r[m].indexes),b=new i.SetFixed(w.length),M=d,I=f,z=1,C=1;"HORIZONTAL"===e?y.length?(_=new Uint16Array(y.length),y.forEach((function(t,e){var n=e%v;_[(e-n)/v*v+(n=v-1-n)]=t})),y=_):(r[m].indexes.forEach((function(t,e){var _,n=e%l;w[_=(e-n)/l*l+(n=l-1-n)]=t,u.has(e)&&b.add(_),d===e&&(M=_),f===e&&(I=_)})),r[m].set_indexes(w),z=-1):y.length?(n=new Uint16Array(y.length),y.forEach((function(t,e){var _=e%v,a=(e-_)/v;n[(a=x-1-a)*v+_]=t})),y=n):(r[m].indexes.forEach((function(t,e){var _,n=e%l,a=(e-n)/l;w[_=(a=h-1-a)*l+n]=t,u.has(e)&&b.add(_),d===e&&(M=_),f===e&&(I=_)})),C=-1,r[m].set_indexes(w)),void 0===p[c]||0!==m||y.length?t.super_state.set_state({_shape_index_a:M,_select_shape_index_a:I,_pxl_indexes_of_selection:b,_s_layers:r,_last_action_timestamp:Date.now(),_imported_image_pxls:y}).then((function(){return t.super_master_meta.update_canvas()})):((s=new Image).onload=function(){var e,_=t._get_new_ctx_from_canvas(s.naturalWidth,s.naturalHeight),n=a(_,2),i=n[0],o=n[1];i.save(),i.scale(z,C),i.drawImage(s,0,0,s.naturalWidth*z,s.naturalHeight*C),i.restore(),e=s.src.includes("image/png")?o.toDataURL("image/png"):o.toDataURL("image/jpeg"),p.includes(e)||(p.push(e),c++),t.super_state.set_state({_shape_index_a:M,_select_shape_index_a:I,_pxl_indexes_of_selection:b,_s_layers:r,_base64_original_images:p,_original_image_index:c,_imported_image_pxls:y,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas()}))},s.src=p[c])},this._get_darkest_color=function(e){var _=t.color_conversion.to_rgba_from_hex(e[0]);return e.forEach((function(e){var n=t.color_conversion.to_rgba_from_hex(e);n[0]+n[1]+n[2]<_[0]+_[1]+_[2]&&(_=n)})),t.color_conversion.to_hex_from_rgba(Uint8ClampedArray.of(_[0],_[1],_[2],255))},this._to_alpha=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.super_state.get_state(),s=n._s_layers,i=n._layer_index,o=t._pxl_colors_to_alpha(s[i].indexes,s[i].colors,e,_),r=a(o,2),l=r[0],h=r[1];s[i].set_colors_and_indexes(h,l),t.super_state.set_state({_layer_index:i,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._to_less_color=function(e){var _=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=t.super_state.get_state()._layer_index,s=t.super_state.get_state()._s_layers,i=s[n].colors.length;t._remove_close_pxl_colors(s[n].image_data,"auto").then((function(e){var o,r,l=a(e,2),h=l[0],p=l[1];s[n].set_colors_and_indexes(p,h),o=s[n].colors.length,r={colors_removed:i-o,colors_remaining:o},t.super_state.set_state({_s_layers:s,_last_action_timestamp:Date.now()}).then((function(){t.super_master_meta.update_canvas(!0),_(r)}))}))},this._auto_adjust_contrast=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=t.super_state.get_state(),n=_._layer_index,a=_._s_layers,s=a[n]||{},i=t._pxl_adjust_contrast(s.indexes_copy,s.colors_copy,e);a[n].set_colors_and_indexes(i[1],i[0]),t.super_state.set_state({_s_layers:a,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._auto_adjust_saturation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,_=t.super_state.get_state(),n=_._s_layers,a=_._layer_index,s=n[a]||{},i=t._pxl_adjust_saturation(s.indexes_copy,s.colors_copy,e);n[a].set_colors_and_indexes(i[1],i[0]),t.super_state.set_state({_s_layers:n,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._pxl_adjust_saturation=function(t,e,_){var n,a,s,i,o,r,l,h,p,c=100,u=0;for(_=0|Math.round(255*parseFloat(_)),n=0,a=void 0,i=(s=new F.Colors(e)).length,o=void 0,r=0;(0|r)<(0|i);r=(r+1|0)>>>0)n=(a=s.get_element(r)).hsla[1],(0|a.a)>0&&((0|n)>(0|u)&&(u=0|n),(0|n)<(0|c)&&(c=0|n));for(h=-c*(l=100/Math.max(1,u-c))|0,p=0;(0|p)<(0|i);p=(p+1|0)>>>0)o=(a=s.get_element(p)).hsla,a.blend_with(F.Color.new_hsla(o[0],o[1]*l+h|0,o[2],o[3]),_,!1,!1);return[t,e=s.slice_uint32(0,i),l,h]},this._selection_pxl_adjust_sat_lum=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t.super_state.get_state(),s=n._layer_index,i=n._s_layers,o=n._pxl_indexes_of_selection,r=i[s].indexes,l=Array.from(i[s].colors);o.forEach((function(n){var s=l[r[n]],i=t.color_conversion.to_hsla_from_rgba(t.color_conversion.to_rgba_from_uint32(s)),o=a(i,4),h=o[0],p=o[1],c=o[2],u=o[3],d=Math.min(100,Math.max(0,p+e)),f=Math.min(100,Math.max(0,c+_)),m=t.color_conversion.to_uint32_from_rgba(t.color_conversion.to_rgba_from_hsla(Array.of(h,d,f,u)));-1===l.indexOf(m)&&l.push(m),r[n]=l.indexOf(m)})),i[s].set_colors_and_indexes(l,r),t.super_state.set_state({_s_layers:i})},this._auto_adjust_smoothness=function(){var e=t.super_state.get_state(),_=e._layer_index,n=e._s_layers,a=e.pxl_width,s=e.pxl_height,i=t._pxl_adjust_smoothness(n[_].indexes,n[_].colors,a,s);n[_].set_colors_and_indexes(i[1],i[0]),t.super_state.set_state({_s_layers:n,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._pxl_to_vignette=function(e,_,n,s,i){var o,r=t.super_state.get_state().pxl_current_color_uint32,l=t.super_state.get_state(),h=l.pxl_width,p=l.pxl_height,c=t._get_new_ctx_from_canvas(h,p),u=a(c,2),d=u[0],f=(u[1],Math.max(h,p)),m=t.color_conversion.invert_uint32(r),g=d.createRadialGradient(h/2,p/2,0,h/2,p/2,f/2);g.addColorStop(1,t.color_conversion.to_hex_from_uint32(r)),g.addColorStop(.8,t.color_conversion.to_hex_from_uint32(t.color_conversion.blend_colors(r,m,.6))),g.addColorStop(0,t.color_conversion.to_hex_from_uint32(m)),d.fillStyle=g,d.fillRect(0,0,h,p),o=d.getImageData(0,0,h,p),t._remove_close_pxl_colors(o,18).then((function(n){var o,l,h,p,c,u,d=a(n,2),f=d[0],g=d[1],y=t._pxl_colors_to_alpha(f,g,m,1),v=a(y,2);f=v[0],g=v[1],o=t.color_conversion.to_rgba_from_uint32(r),l=a(o,3),h=l[0],p=l[1],c=l[2],g=g.map((function(e){e|=0;var _=t.color_conversion.to_rgba_from_uint32(e)[3];return 0|t.color_conversion.to_uint32_from_rgba(Uint8ClampedArray.of(h,p,c,_))})),u=[],f=f.map((function(n,a){var i,o,r;return a|=0,i=0|g[n|=0],o=0|_[e[a]],r=t.color_conversion.blend_colors(o,i,s,!1,!1),-1===u.indexOf(r)&&u.push(r),u.indexOf(r)})),i(Array.of(f,g=u))}))},this._to_vignette=function(e,_){var n,a,s,i;_>0&&(n=t.super_state.get_state(),a=n._layer_index,s=t.super_state.get_state(),i=s._s_layers,t._pxl_to_vignette(i[a].indexes,i[a].colors,e,_,(function(e){i[a].set_colors_and_indexes(e[1],e[0]),t.super_state.set_state({_s_layers:i,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))})))},this._to_colorized=function(){var e,_=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=t.super_state.get_state(),r=o._s_layers,l=o._layer_index;n=null===n?1:n,e=r[l].colors.map((function(e){var o,r,l,h,p,c,u=t.color_conversion.to_rgba_from_uint32(e),d=a(u,4),f=d[0],m=d[1],g=d[2],y=d[3],v=t.color_conversion.to_hsla_from_rgba(Uint8ClampedArray.of(f,m,g,y)),x=a(v,4),w=(x[0],x[1]),b=x[2],M=x[3],I=[s,i,n],z=[w,b,M/100],C=[];return 0!==n?(C[2]=1-(1-I[2])*(1-z[2]),C[0]=Math.round(I[0]*I[2]/C[2]+Math.round(z[0]*z[2]*(1-I[2])/C[2])),C[1]=Math.round(I[1]*I[2]/C[2]+Math.round(z[1]*z[2]*(1-I[2])/C[2]))):C=[w,b],o=t.color_conversion.to_rgba_from_hsla(Array.of(_,C[0],C[1],100*C[2])),l=(r=a(o,4))[0],h=r[1],p=r[2],c=r[3],0===y?0:t.color_conversion.to_uint32_from_rgba(Uint8ClampedArray.of(l,h,p,c))})),r[l].set_colors(e),t.super_state.set_state({_s_layers:r,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this.get_filter_names=function(){return t.filters.names},this._dutone_pixels=function(e,_,n,a,s){return s=s.map((function(a){var s=t.color_conversion.to_hsla_from_rgba(t.color_conversion.to_rgba_from_uint32(a))[2];return t.color_conversion.blend_colors(_,n,parseFloat(s/100)/e,!1,!1)})),t.color_conversion.clean_duplicate_colors(a,s)},this._to_dutone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.8,_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#ffffffff",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000ff",a=t.super_state.get_state(),s=a._layer_index,i=a._s_layers,o=t._dutone_pixels(e,_,n,i[s].indexes,i[s].colors);i[s].set_indexes(o[0]),i[s].set_colors(o[1]),t.super_state.set_state({_s_layers:i,_pxls_hovered:-1,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._to_filter=function(e,_){var n=t.super_state.get_state(),a=n._s_layers,s=n._layer_index;t.filters.use(e,a[s],_),t.super_state.set_state({_s_layers:a,_pxls_hovered:-1,_last_action_timestamp:Date.now()}).then((function(){return t.super_master_meta.update_canvas(!0)}))},this._to_rotation=function(){var e,_,n,s,o,r,l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],h=t.super_state.get_state(),p=h._imported_image_pxls,c=h._imported_image_width,u=h._imported_image_height,d=h.pxl_width,f=h.pxl_height,m=h._s_layers,g=h._pxl_indexes_of_selection,y=h._select_shape_index_a,v=h._shape_index_a,x=h._base64_original_images,w=h._original_image_index,b=(h._layer_index,u),M=c,I=new Uint16Array(b*M),z=f,C=d,A=new i.SetFixed(z*C),S=y,j=v,E=0,D=0,L=0;if(p.length)p.forEach((function(t,e){D=(e-(E=e%c))/c,I[L=(l?b-1-D:D)+(l?E:M-1-E)*b]=t,g.has(e)&&A.add(L)}));else{for(e=0,_=m[0].indexes.length;e<_;e++)D=(e-(E=e%d))/d,L=(l?z-1-D:D)+(l?E:C-1-E)*z,g.has(e)&&A.add(L),y===e&&(S=L),v===e&&(j=L);for(n=function(t){var e=new Uint16Array(z*C);m[t].indexes.forEach((function(t,_){D=(_-(E=_%d))/d,e[L=(l?z-1-D:D)+(l?E:C-1-E)*z]=t})),m[t].set_indexes(e)},s=0;s2&&void 0!==arguments[2]?arguments[2]:1,c=255,u=0;for(p=0|Math.round(255*parseFloat(p)),_=0,n=new F.Color(new ArrayBuffer(4)),a=(0,F.Colors)(e),s=F.simdops.clamp_int,i=a.length,o=0;(0|o)<(0|i);o=(o+1|0)>>>0)_=(n=a.get_element(0|o,n)).sum_rgb()/3*n.a/255|0,(0|n.a)>0&&((0|_)>(0|u)&&(u=0|_),(0|_)<(0|c)&&(c=0|_));for(l=-c*(r=255/Math.max(1,u-c))|0,h=0;(0|h)<(0|i);h=(h+1|0)>>>0)(n=a.get_element(0|h,n)).blend_with(F.Color.new_of(s(n.r*r+l|0,0,255),s(n.g*r+l|0,0,255),s(n.b*r+l|0,0,255),n.a),p,!1,!1);return[t,e=a.subarray_uint32(0,i),r,l]},this._pxl_adjust_smoothness=function(e,_,n,s,i){n|=0,s|=0,i=i||1;for(var o=0;on*s?-1:v)-1,l=-1===v||-1===x?-1:l,h=v+1,h=-1===v||-1===y?-1:h,p=[i[g],i[y],i[v],i[x],i[o],i[r],i[l],i[h]],c=[],p.forEach((function(t){c[t]=void 0===c[t]?1:c[t]+1})),u=-1,d=-1,Object.entries(c).forEach((function(t){var e=a(t,2),_=e[0],n=e[1];d=6&&-1!==u||d+m>=8&&d>=5&&F.Color.new_uint32(_[i[e]]).match_with(F.Color.new_uint32(_[u]).blend_with(F.Color.new_uint32(_[f]),128,!1,!1),24))&&(i[e]=u)}));return t.color_conversion.clean_duplicate_colors(e,_)},this._set_ripple_ref=function(e){null!==e&&null===t._ripple&&(t._ripple=e)},this._remove_close_pxl_colors=function(t,e){return new Promise((function(_,n){(0,y.QuantiMatGlobal)(t,e).then((function(t){var e=t[1],n=t[2];return _([e,n])}))}))},this._request_force_update=function(e,_){return e=void 0===e||e,_=void 0===_||_,t.sraf.run_frame((function(){return new Promise((function(e,_){t.forceUpdate(e)}))}),!e,!_,Date.now(),"inner_pixel_page").catch((function(){return t._request_force_update(e,_)}))},this._update_canvas_container_size=function(){var e,_,n,a,s=t.super_state.get_state()._canvas_container?t.super_state.get_state()._canvas_container.getBoundingClientRect():null;s?(e=s.width||0,_=s.height||0,n=s.left||0,a=s.top||0,t.canvas_pos.set_canvas_container(a,n,_,e)):setTimeout((function(){t._update_canvas_container_size()}),50)}},e.default=G},924:function(t,e,_){e.UINT32=_(925),e.UINT64=_(926)},925:function(t,e,_){var n;!function(e){function _(t,e){return this instanceof _?(this._low=0,this._high=0,this.remainder=null,void 0===e?s.call(this,t):"string"==typeof t?i.call(this,t,e):void a.call(this,t,e)):new _(t,e)}function a(t,e){return this._low=0|t,this._high=0|e,this}function s(t){return this._low=65535&t,this._high=t>>>16,this}function i(t,e){var _=parseInt(t,e||10);return this._low=65535&_,this._high=_>>>16,this}_(60466176),_(268435456),_(1e9),_(1073741824),_(36),_(16),_(10),_(2),_.prototype.fromBits=a,_.prototype.fromNumber=s,_.prototype.fromString=i,_.prototype.toNumber=function(){return 65536*this._high+this._low},_.prototype.toString=function(t){return this.toNumber().toString(t||10)},_.prototype.add=function(t){var e=this._low+t._low,_=e>>>16;return _+=this._high+t._high,this._low=65535&e,this._high=65535&_,this},_.prototype.subtract=function(t){return this.add(t.clone().negate())},_.prototype.multiply=function(t){var e=this._high,_=this._low,n=t._high,a=t._low,s=_*a,i=s>>>16;return i+=e*a,i&=65535,i+=_*n,this._low=65535&s,this._high=65535&i,this},_.prototype.div=function(t){var e,n;if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new _(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new _(0),this._low=1,this._high=0,this;for(e=t.clone(),n=-1;!this.lt(e);)e.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._low=0,this._high=0;n>=0;n--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),n>=16?this._high|=1<>>16)&65535,this},_.prototype.equals=_.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},_.prototype.greaterThan=_.prototype.gt=function(t){return this._high>t._high||!(this._hight._low},_.prototype.lessThan=_.prototype.lt=function(t){return this._hight._high)&&this._low16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},_.prototype.shiftLeft=_.prototype.shiftl=function(t,e){return t>16?(this._high=this._low<>16-t,this._low=this._low<>>32-t,this._low=65535&e,this._high=e>>>16,this},_.prototype.rotateRight=_.prototype.rotr=function(t){var e=this._high<<16|this._low;return e=e>>>t|e<<32-t,this._low=65535&e,this._high=e>>>16,this},_.prototype.clone=function(){return new _(this._low,this._high)},void 0===(n=_)||(t.exports=n)}()},926:function(t,e,_){var n;!function(e){function _(t,e,n,o){return this instanceof _?(this.remainder=null,"string"==typeof t?i.call(this,t,e):void 0===e?s.call(this,t):void a.apply(this,arguments)):new _(t,e,n,o)}function a(t,e,_,n){return void 0===_?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&e,this._a48=e>>>16,this):(this._a00=0|t,this._a16=0|e,this._a32=0|_,this._a48=0|n,this)}function s(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function i(t,e){var n,a,s,i,r;for(e=e||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0,n=o[e]||new _(Math.pow(e,5)),a=0,s=t.length;a=0&&(n.div(e),a[s]=n.remainder.toNumber().toString(t),n.gt(e));s--);return a[s-1]=n.toNumber().toString(t),a.join("")},_.prototype.add=function(t){var e,_,n=this._a00+t._a00,a=n>>>16;return e=(a+=this._a16+t._a16)>>>16,_=(e+=this._a32+t._a32)>>>16,_+=this._a48+t._a48,this._a00=65535&n,this._a16=65535&a,this._a32=65535&e,this._a48=65535&_,this},_.prototype.subtract=function(t){return this.add(t.clone().negate())},_.prototype.multiply=function(t){var e,_,n=this._a00,a=this._a16,s=this._a32,i=this._a48,o=t._a00,r=t._a16,l=t._a32,h=n*o,p=h>>>16;return e=(p+=n*r)>>>16,p&=65535,e+=(p+=a*o)>>>16,_=(e+=n*l)>>>16,e&=65535,_+=(e+=a*r)>>>16,e&=65535,_+=(e+=s*o)>>>16,_+=n*t._a48,_&=65535,_+=a*l,_&=65535,_+=s*r,_&=65535,_+=i*o,this._a00=65535&h,this._a16=65535&p,this._a32=65535&e,this._a48=65535&_,this},_.prototype.div=function(t){var e,n;if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new _(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new _(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(e=t.clone(),n=-1;!this.lt(e);)e.shiftLeft(1,!0),n++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;n>=0;n--)e.shiftRight(1),this.remainder.lt(e)||(this.remainder.subtract(e),n>=48?this._a48|=1<=32?this._a32|=1<=16?this._a16|=1<>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},_.prototype.equals=_.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},_.prototype.greaterThan=_.prototype.gt=function(t){return this._a48>t._a48||!(this._a48t._a32||!(this._a32t._a16||!(this._a16t._a00))},_.prototype.lessThan=_.prototype.lt=function(t){return this._a48t._a48)&&(this._a32t._a32)&&(this._a16t._a16)&&this._a00=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},_.prototype.shiftLeft=_.prototype.shiftl=function(t,e){return(t%=64)>=48?(this._a48=this._a00<=32?(t-=32,this._a48=this._a16<>16-t,this._a32=this._a00<=16?(t-=16,this._a48=this._a32<>16-t,this._a32=65535&(this._a16<>16-t),this._a16=this._a00<>16-t,this._a32=65535&(this._a32<>16-t),this._a16=65535&(this._a16<>16-t),this._a00=this._a00<=32){if(e=this._a00,this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}return a=(_=this._a48<<16|this._a32)<>>32-t,s=n<>>32-t,this._a00=65535&s,this._a16=s>>>16,this._a32=65535&a,this._a48=a>>>16,this},_.prototype.rotateRight=_.prototype.rotr=function(t){var e,_,n,a,s;if(0==(t%=64))return this;if(t>=32){if(e=this._a00,this._a00=this._a32,this._a32=e,e=this._a48,this._a48=this._a16,this._a16=e,32==t)return this;t-=32}return a=(_=this._a48<<16|this._a32)>>>t|(n=this._a16<<16|this._a00)<<32-t,s=n>>>t|_<<32-t,this._a00=65535&s,this._a16=s>>>16,this._a32=65535&a,this._a48=a>>>16,this},_.prototype.clone=function(){return new _(this._a00,this._a16,this._a32,this._a48)},void 0===(n=_)||(t.exports=n)}()},930:function(t,e,_){"use strict";var n=_(931),a=Set.prototype;t.exports={Set:Set,add:n(a.add),has:n(a.has),remove:n(a.delete),proto:a}},931:function(t,e,_){"use strict";var n=_(932),a=Function.prototype,s=a.call,i=n&&a.bind.bind(s,s);t.exports=n?i:function(t){return function(){return s.apply(t,arguments)}}},932:function(t,e,_){"use strict";var n=_(933);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},933:function(t,e,_){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}}}]); \ No newline at end of file diff --git a/client/chunk_2.min.js b/client/chunk_2.min.js index be2fee75..cde1a7b7 100644 --- a/client/chunk_2.min.js +++ b/client/chunk_2.min.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{689:function(e,t,r){"use strict";r.r(t),function(e,n){function a(e){return(0,ft.isTag)(e)}function i(e){return e.type===ft.ElementType.CDATA}function o(e){return e.type===ft.ElementType.Text}function s(e){return e.type===ft.ElementType.Comment}function l(e){return e.type===ft.ElementType.Directive}function c(e){return e.type===ft.ElementType.Root}function u(e,t){var r,n,u,d,h,f;if(void 0===t&&(t=!1),o(e))r=new yt(e.data);else if(s(e))r=new vt(e.data);else if(a(e))n=t?p(e.children):[],u=new St(e.name,ht({},e.attribs),n),n.forEach((function(e){return e.parent=u})),e["x-attribsNamespace"]&&(u["x-attribsNamespace"]=ht({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(u["x-attribsPrefix"]=ht({},e["x-attribsPrefix"])),r=u;else if(i(e))n=t?p(e.children):[],d=new xt(ft.ElementType.CDATA,n),n.forEach((function(e){return e.parent=d})),r=d;else if(c(e))n=t?p(e.children):[],h=new wt(n),n.forEach((function(e){return e.parent=h})),e["x-mode"]&&(h["x-mode"]=e["x-mode"]),r=h;else{if(!l(e))throw Error("Not implemented yet: "+e.type);f=new kt(e.name,e.data),null!=e["x-name"]&&(f["x-name"]=e["x-name"],f["x-publicId"]=e["x-publicId"],f["x-systemId"]=e["x-systemId"]),r=f}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,r}function p(e){var t,r=e.map((function(e){return u(e,!0)}));for(t=1;t1?$t(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(e){return function(t){return t.replace(Qt,(function(t){return e[t]||g(t)}))}}function y(e,t){var r,n,a;void 0===t&&(t={}),r="length"in e?e:[e],n="";for(a=0;a";case rr.Comment:return"\x3c!--"+e.data+"--\x3e";case rr.CDATA:return"";case rr.Script:case rr.Style:case rr.Tag:return r=e,"foreign"===(n=t).xmlMode&&(r.name=null!==(a=ar.elementNames.get(r.name))&&void 0!==a?a:r.name,r.parent&&sr.has(r.parent.name)&&(n=Kt(Kt({},n),{xmlMode:!1}))),!n.xmlMode&&lr.has(r.name)&&(n=Kt(Kt({},n),{xmlMode:"foreign"})),i="<"+r.name,o=function(e,t){if(e)return Object.keys(e).map((function(r){var n,a,i=null!==(n=e[r])&&void 0!==n?n:"";return"foreign"===t.xmlMode&&(r=null!==(a=ar.attributeNames.get(r))&&void 0!==a?a:r),t.emptyAttrs||t.xmlMode||""!==i?r+'="'+(!1!==t.decodeEntities?nr.encodeXML(i):i.replace(/"/g,"""))+'"':r})).join(" ")}(r.attribs,n),o&&(i+=" "+o),0===r.children.length&&(n.xmlMode?!1!==n.selfClosingTags:n.selfClosingTags&&or.has(r.name))?(n.xmlMode||(i+=" "),i+="/>"):(i+=">",r.children.length>0&&(i+=y(r.children,n)),!n.xmlMode&&or.has(r.name)||(i+="")),i;case rr.Text:return function(e,t){var r=e.data||"";return!1===t.decodeEntities||!t.xmlMode&&e.parent&&ir.has(e.parent.name)||(r=nr.encodeXML(r)),r}(e,t)}var r,n,a,i,o}function k(e,t){return(0,pr.default)(e,t)}function x(e){var t;return null!==(t=e.children)&&void 0!==t?t:mr}function w(e){return e.parent||null}function S(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}function T(e,t,r,n){var a,i,o,s,l=[];for(a=0,i=t;a0&&(s=T(e,o.children,r,n),l.push.apply(l,s),(n-=s.length)<=0));a++);return l}function A(e,t){return"function"==typeof t?function(r){return(0,kr.isTag)(r)&&t(r.attribs[e])}:function(r){return(0,kr.isTag)(r)&&r.attribs[e]===t}}function C(e,t){return function(r){return e(r)||t(r)}}function E(e){var t=Object.keys(e).map((function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(wr,t)?wr[t](r):A(t,r)}));return 0===t.length?null:t.reduce(C)}function P(e,t){var r,n,a,i,o,s,l,c=[],u=[];if(e===t)return 0;for(r=(0,Tr.hasChildren)(e)?e:e.parent;r;)c.unshift(r),r=r.parent;for(r=(0,Tr.hasChildren)(t)?t:t.parent;r;)u.unshift(r),r=r.parent;for(n=Math.min(c.length,u.length),a=0;ao.indexOf(l)?i===t?20:4:i===e?10:2)}function N(e){return(0,Er.getElementsByTagName)("media:content",e).map((function(e){var t,r,n,a,i,o=e.attribs,s={medium:o.medium,isDefault:!!o.isDefault};for(t=0,r=Pr;t>10|55296,1023&n|56320)}function R(e){return e.replace(Rr,I)}function _(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function z(e,t,r,n){function a(e){var r,a=t.slice(n+e).match(Ir);if(!a)throw Error("Expected name, found "+t.slice(n));return r=a[0],n+=e+r.length,R(r)}function i(e){for(;_(t.charAt(n+e));)e++;n+=e}function o(e){for(var r=0;"\\"===t.charAt(--e);)r++;return!(1&~r)}function s(){if(u.length>0&&q(u[u.length-1]))throw Error("Did not expect successive traversals.")}var l,c,u,p,d,h,f,m,g,b,y,v,k,x,w,S,T,A,C,E,P,N,O,D,L;for(void 0===r&&(r={}),u=[],p=!1,i(0);""!==t;)if(_(d=t.charAt(n)))p=!0,i(1);else if(d in zr)s(),u.push({type:zr[d]}),p=!1,i(1);else if(","===d){if(0===u.length)throw Error("Empty sub-selector");e.push(u),u=[],p=!1,i(1)}else if(t.startsWith("/*",n)){if((h=t.indexOf("*/",n+2))<0)throw Error("Comment was not terminated");n=h+2}else if(p&&(s(),u.push({type:"descendant"}),p=!1),d in jr)m=(f=jr[d])[0],g=f[1],u.push({type:"attribute",name:m,action:g,value:a(1),namespace:null,ignoreCase:!!r.xmlMode&&null});else if("["===d){if(i(1),b=void 0,y=null,"|"===t.charAt(n)&&(y="",n+=1),t.startsWith("*|",n)&&(y="*",n+=2),b=a(0),null===y&&"|"===t.charAt(n)&&"="!==t.charAt(n+1)&&(y=b,b=a(1)),(null!==(l=r.lowerCaseAttributeNames)&&void 0!==l?l:!r.xmlMode)&&(b=b.toLowerCase()),i(0),g="exists",v=_r.get(t.charAt(n))){if(g=v,"="!==t.charAt(n+1))throw Error("Expected `=`");i(2)}else"="===t.charAt(n)&&(g="equals",i(1));if(k="",x=null,"exists"!==g){if(Vr.has(t.charAt(n))){for(w=t.charAt(n),S=n+1;S0&&n0&&0===t.length)throw Error("Empty sub-selector");e.push(t)}function F(e){return e.map(G).join(", ")}function G(e){return e.map(B).join("")}function B(e){switch(e.type){case"child":return" > ";case"parent":return" < ";case"sibling":return" ~ ";case"adjacent":return" + ";case"descendant":return" ";case"universal":return V(e.namespace)+"*";case"tag":return U(e);case"pseudo-element":return"::"+H(e.name);case"pseudo":return null===e.data?":"+H(e.name):"string"==typeof e.data?":"+H(e.name)+"("+H(e.data)+")":":"+H(e.name)+"("+F(e.data)+")";case"attribute":if("id"===e.name&&"equals"===e.action&&!e.ignoreCase&&!e.namespace)return"#"+H(e.value);if("class"===e.name&&"element"===e.action&&!e.ignoreCase&&!e.namespace)return"."+H(e.value);var t=U(e);return"exists"===e.action?"["+t+"]":"["+t+Yr[e.action]+"='"+H(e.value)+"'"+(e.ignoreCase?"i":!1===e.ignoreCase?"s":"")+"]"}}function U(e){return""+V(e.namespace)+H(e.name)}function V(e){return null!==e?("*"===e?"*":H(e))+"|":""}function H(e){return e.split("").map((function(e){return Xr.has(e)?"\\"+e:e})).join("")}function W(e){var t,r,n=Zr.procedure[e.type];if("attribute"===e.type)(n=Kr[e.action])===Kr.equals&&"id"===e.name&&(n=9),e.ignoreCase&&(n>>=1);else if("pseudo"===e.type)if(e.data)if("has"===e.name||"contains"===e.name)n=0;else if(Array.isArray(e.data)){for(n=0,t=0;tn&&(n=r)}e.data.length>1&&n>0&&(n-=1)}else n=1;else n=3;return n}function Y(e){return e.replace(rn,"\\$&")}function X(e,t,r){return Q("string"==typeof e?bn.parse(e,t):e,t,r)}function $(e){return"pseudo"===e.type&&("scope"===e.name||Array.isArray(e.data)&&e.data.some((function(e){return e.some($)})))}function Q(e,t,r){var n,a,i,o,s;return(e=e.filter((function(e){return e.length>0}))).forEach(vn.default),r=null!==(n=t.context)&&void 0!==n?n:r,a=Array.isArray(r),function(e,t,r){var n,a,i,o=t.adapter,s=!!(null==r?void 0:r.every((function(e){var t=o.isTag(e)&&o.getParent(e);return e===wn.PLACEHOLDER_ELEMENT||t&&o.isTag(t)})));for(n=0,a=e;n0&&kn.isTraversal(i[0])&&"descendant"!==i[0].type);else{if(!s||i.some($))continue;i.unshift(Sn)}i.unshift(An)}}(e,t,i=r&&(Array.isArray(r)?r:[r])),o=!1,s=e.map((function(e){if(e.length>=2){var r=e[0],n=e[1];"pseudo"!==r.type||"scope"!==r.name||(a&&"descendant"===n.type?e[1]=Tn:"adjacent"!==n.type&&"sibling"!==n.type||(o=!0))}return function(e,t,r){var n;return e.reduce((function(e,n){return e===yn.falseFunc?yn.falseFunc:xn.compileGeneralSelector(e,n,t,r,Q)}),null!==(n=t.rootFunc)&&void 0!==n?n:yn.trueFunc)}(e,t,i)})).reduce(Z,yn.falseFunc),s.shouldTestNextSiblings=o,s}function Z(e,t){return t===yn.falseFunc||e===yn.trueFunc?e:e===yn.falseFunc||t===yn.trueFunc?t:function(r){return e(r)||t(r)}}function K(e,t,r,n,a){return function e(i){return i.children=i.children.filter((function(i){a&&i.children&&e(i);let o=!0;return r.active&&(o=!1!==r.fn(i,n,t)),!a&&i.children&&e(i),o})),i}(e)}function J(e,t){for(var r=0;r<4;r+=1){if(e[r]t[r])return 1}return 0}function ee(e,t){return J(Vn(e),Vn(t))}function te(e,t){return ee(e.item.data,t.item.data)}function re(e,t){var r,n,a=Object.create(null);if(!Array.isArray(e))return null;for(r=0;r1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function le(e,t,r,n){var a,i,o,s,l;return 0===t?a=i=o=r:(a=se(l=2*r-(s=r<.5?r*(1+t):r+t-r*t),s,e+1/3),i=se(l,s,e),o=se(l,s,e-1/3)),[Math.round(255*a),Math.round(255*i),Math.round(255*o),n]}function ce(e){return 1===(e=e.toString(16)).length?"0"+e:e}function ue(e,t,r){for(var n,a,i=e.head,o=[],s=!1;null!==i;){switch(a=(n=i.data).type){case"Number":case"Percentage":if(s)return;s=!0,o.push({type:a,value:Number(n.value)});break;case"Operator":if(","===n.value){if(!s)return;s=!1}else if(s||"+"!==n.value)return;break;default:return}i=i.next}if(o.length===t){if(4===o.length){if("Number"!==o[3].type)return;o[3].type="Alpha"}if(r){if(o[0].type!==o[1].type||o[0].type!==o[2].type)return}else{if("Number"!==o[0].type||"Percentage"!==o[1].type||"Percentage"!==o[2].type)return;o[0].type="Angle"}return o.map((function(e){var t=Math.max(0,e.value);switch(e.type){case"Number":t=Math.min(t,255);break;case"Percentage":if(t=Math.min(t,100)/100,!r)return t;t*=255;break;case"Angle":return(t%360+360)%360/360;case"Alpha":return Math.min(t,1)}return Math.round(t)}))}}function pe(e,t){var r=e.value.toLowerCase();6===r.length&&r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&(r=r[0]+r[2]+r[4]),Qa[r]?t.data={type:"Identifier",loc:e.loc,name:Qa[r]}:e.value=r}function de(){this.seed=0,this.map=Object.create(null)}function he(e,t,r,n){var a=t.data,i=mi(a.name).basename,o=a.name.toLowerCase()+"/"+(a.prelude?a.prelude.id:null);gi.call(e,i)||(e[i]=Object.create(null)),n&&delete e[i][o],gi.call(e[i],o)||(e[i][o]=new fi),e[i][o].append(r.remove(t))}function fe(e){return"Atrule"===e.type&&"media"===e.name}function me(e,t,r){if(fe(e)){var n=t.prev&&t.prev.data;n&&fe(n)&&e.prelude&&n.prelude&&e.prelude.id===n.prelude.id&&(n.block.children.appendList(e.block.children),r.remove(t))}}function ge(e,t){for(var r,n=e.head;null!==n;){for(r=t.head;null!==r;){if(n.data.compareMarker===r.data.compareMarker)return!0;r=r.next}n=n.next}return!1}function be(e,t,r){var n=e.prelude.children,a=e.block.children;r.prevUntil(t.prev,(function(i){var o,s;if("Rule"!==i.type)return wi.unsafeToSkipNode.call(n,i);if(o=i.prelude.children,s=i.block.children,e.pseudoSignature===i.pseudoSignature){if(wi.isEqualSelectors(o,n))return s.appendList(a),r.remove(t),!0;if(wi.isEqualDeclarations(a,s))return wi.addSelectors(o,n),r.remove(t),!0}return wi.hasSimilarSelectors(n,o)}))}function ye(e,t,r){for(var n,a=e.prelude.children;a.head!==a.tail;)(n=new Ti).insert(a.remove(a.head)),r.insert(r.createItem({type:"Rule",loc:e.loc,prelude:{type:"SelectorList",loc:e.prelude.loc,children:n},block:{type:"Block",loc:e.block.loc,children:e.block.children.copy()},pseudoSignature:e.pseudoSignature}),t)}function ve(e){this.name=e,this.loc=null,this.iehack=void 0,this.sides={top:null,right:null,bottom:null,left:null}}function ke(e,t,r){var n,a,i,o,s,l,c=qi(e).basename;if("background"===c)return e+":"+_i(t.value);if(!(a=r[n=t.id])){switch(t.value.type){case"Value":i="",o="",s={},l=!1,t.value.children.each((function e(t){var r,n;switch(t.type){case"Value":case"Brackets":case"Parentheses":t.children.each(e);break;case"Raw":l=!0;break;case"Identifier":r=t.name,i||(i=Ii(r).vendor),/\\[09]/.test(r)&&(o=RegExp.lastMatch),Gi.hasOwnProperty(c)?-1===Gi[c].indexOf(r)&&(s[r]=!0):Fi.hasOwnProperty(c)&&Fi[c].test(r)&&(s[r]=!0);break;case"Function":r=t.name,i||(i=Ii(r).vendor),"rect"===r&&(t.children.some((function(e){return"Operator"===e.type&&","===e.value}))||(r="rect-backward")),s[r+"()"]=!0,t.children.each(e);break;case"Dimension":switch(n=t.unit,/\\[09]/.test(n)&&(o=RegExp.lastMatch),n){case"rem":case"vw":case"vh":case"vmin":case"vmax":case"vm":s[n]=!0}}})),a=l?"!"+zi++:"!"+Object.keys(s).sort()+"|"+o+i;break;case"Raw":a="!"+t.value.value;break;default:a=_i(t.value)}r[n]=a}return e+a}function xe(e,t,r){var n=e.prelude.children,a=e.block.children,i=n.first().compareMarker,o={};r.nextUntil(t.next,(function(t,s){var l,c,u,p;return"Rule"!==t.type?Hi.unsafeToSkipNode.call(n,t):e.pseudoSignature!==t.pseudoSignature||(l=t.prelude.children.head,c=t.block.children,(u=l.data.compareMarker)in o||(n.head===n.tail&&n.first().id===l.data.id?(a.appendList(c),void r.remove(s)):Hi.isEqualDeclarations(a,c)?(p=l.data.id,n.some((function(e,t){var r=e.id;return p=b)return y=r.createItem({type:"Rule",loc:null,prelude:g,block:{type:"Block",loc:null,children:(new Yi).fromArray(h.eq)},pseudoSignature:e.pseudoSignature}),i.children=(new Yi).fromArray(h.ne1),v.children=(new Yi).fromArray(h.ne2overrided),s?r.insert(y,u):r.insert(y,t),!0}s&&(s=!d.some((function(e){return a.some((function(t){return t.compareMarker===e.compareMarker}))}))),d.each((function(e){o[e.compareMarker]=!0}))}))}function Ae(e,t){var r,n=new io,a=!1;return e.nextUntil(e.head,(function(e,i,o){if("Comment"===e.type)return t&&"!"===e.value.charAt(0)?!(!a&&!r)||(o.remove(i),void(r=e)):void o.remove(i);"WhiteSpace"!==e.type&&(a=!0),n.insert(o.remove(i))})),{comment:r,stylesheet:{type:"StyleSheet",loc:null,children:n}}}function Ce(e,t,r,n){n.logger("Compress block #"+r,null,!0);var a=1;return"StyleSheet"===e.type&&(e.firstAtrulesAllowed=t,e.id=a++),po(e,{visit:"Atrule",enter:function(e){null!==e.block&&(e.block.id=a++)}}),n.logger("init",e),lo(e,n),n.logger("clean",e),co(e),n.logger("replace",e),n.restructuring&&uo(e,n),e}function Ee(e){return"restructure"in e?e.restructure:!("restructuring"in e)||e.restructuring}function Pe(e,t,r,n){return t.debug&&console.error("## "+e+" done in %d ms\n",Date.now()-r),n}function Ne(e,t,r){Array.isArray(r)||(r=[r]),r.forEach((function(r){r(e,t)}))}function Oe(e,t,r){var n,a,i,o;return n=(r=r||{}).filename||"",a=Pe("parsing",r,Date.now(),mo(t,{context:e,filename:n,positions:!!r.sourceMap})),r.beforeCompress&&Pe("beforeCompress",r,Date.now(),Ne(a,r,r.beforeCompress)),i=Pe("compress",r,Date.now(),go(a,function(e){var t,r;return"function"!=typeof(e=function(e){var t,r={};for(t in e)r[t]=e[t];return r}(e)).logger&&e.debug&&(e.logger=(t=e.debug,function(e,n){var a,i=e;n&&(i="["+((Date.now()-r)/1e3).toFixed(3)+"s] "+i),t>1&&n&&(a=bo(n),2===t&&a.length>256&&(a=a.substr(0,256)+"..."),i+="\n "+a+"\n"),console.error(i),r=Date.now()})),e}(r))),r.afterCompress&&Pe("afterCompress",r,Date.now(),Ne(i,r,r.afterCompress)),r.sourceMap?Pe("generate(sourceMap: true)",r,Date.now(),((o=bo(i.ast,{sourceMap:!0})).map._file=n,o.map.setSourceContent(n,t),o)):Pe("generate",r,Date.now(),{css:bo(i.ast),map:null})}function De(e,t){return e[0]=t[t.length-2],e[1]=t[t.length-1],e}function Le(e,t){if(2==e.length){let r=e[1],n=e[0],a=Me(e[1]),i=qe(n,r);Ie(a,i)>0?De(t,Re(i,r)):(De(t,a),e.shift())}else{let r=e[2],n=e[1],a=e[0],i=qe(n,r),o=qe(a,r),s=Me(r),l=Re(i,o),c=Re(o,i);if(Ie(l,s)>0)Ie(i,s)>0?(De(t,l),e.shift()):(De(t,s),e.splice(0,2));else{if(!(Ie(c,s)>0))return!0;Ie(o,s)>0?(De(t,c),e.splice(1,1)):(De(t,s),e.splice(0,2))}}return!1}function Me(e){return[-e[0],-e[1]]}function qe(e,t){return[e[0]-t[0],e[1]-t[1]]}function Ie(e,t){return e[0]*t[0]+e[1]*t[1]}function Re(e,t){var r=[-e[1],e[0]];return Ie(r,Me(t))<0?Me(r):r}function _e(e){var t,r;const n={list:[],minX:0,minY:0,maxX:0,maxY:0},a=(e,t)=>{(!e.list.length||t[1]>e.list[e.maxY][1])&&(e.maxY=e.list.length,n.maxY=n.list.length?Math.max(t[1],n.maxY):t[1]),(!e.list.length||t[0]>e.list[e.maxX][0])&&(e.maxX=e.list.length,n.maxX=n.list.length?Math.max(t[0],n.maxX):t[0]),(!e.list.length||t[1]e+(null==c?0:c[t%2]);switch(o.command){case"M":s={list:[],minX:0,minY:0,maxX:0,maxY:0},n.list.push(s);break;case"H":null!=c&&a(s,[u[0],c[1]]);break;case"V":null!=c&&a(s,[c[0],u[0]]);break;case"Q":a(s,u.slice(0,2)),jo=[u[2]-u[0],u[3]-u[1]];break;case"T":null==c||null==l||"Q"!=l.command&&"T"!=l.command||(p=[c[0]+jo[0],c[1]+jo[1]],a(s,p),jo=[u[0]-p[0],u[1]-p[1]]);break;case"C":null!=c&&a(s,[.5*(c[0]+u[0]),.5*(c[1]+u[1])]),a(s,[.5*(u[0]+u[2]),.5*(u[1]+u[3])]),a(s,[.5*(u[2]+u[4]),.5*(u[3]+u[5])]),jo=[u[4]-u[2],u[5]-u[3]];break;case"S":null==c||null==l||"C"!=l.command&&"S"!=l.command||(a(s,[c[0]+.5*jo[0],c[1]+.5*jo[1]]),p=[c[0]+jo[0],c[1]+jo[1]]),null!=p&&a(s,[.5*(p[0]+u[0]),.5*(p[1]+u[1])]),a(s,[.5*(u[0]+u[2]),.5*(u[1]+u[3])]),jo=[u[2]-u[0],u[3]-u[1]];break;case"A":if(null!=c)for(t=ou.apply(0,c.concat(u));(r=t.splice(0,6).map(d)).length;)null!=c&&a(s,[.5*(c[0]+r[0]),.5*(c[1]+r[1])]),a(s,[.5*(r[0]+r[2]),.5*(r[1]+r[3])]),a(s,[.5*(r[2]+r[4]),.5*(r[3]+r[5])]),t.length&&a(s,c=r.slice(-2))}u.length>=2&&a(s,u.slice(-2))}return n}function ze(e){var t,r,n,a,i,o;e.list.sort((function(e,t){return e[0]==t[0]?e[1]-t[1]:e[0]-t[0]})),t=[],r=0,n=0;for(let l=0;l=2&&je(t[t.length-2],t[t.length-1],e.list[l])<=0;)t.pop();e.list[l][1]=2&&je(a[a.length-2],a[a.length-1],e.list[l])<=0;)a.pop();e.list[l][1]>e.list[i][1]&&(i=l,o=a.length),a.push(e.list[l])}a.pop(),t.pop();const s=t.concat(a);return{list:s,minX:0,maxX:t.length,minY:n,maxY:(t.length+o)%s.length}}function je(e,t,r){return(t[0]-e[0])*(r[1]-e[1])-(t[1]-e[1])*(r[0]-e[0])}function Fe(e,t,{maybeHasStrokeAndLinecap:r,hasMarkerMid:n}){var a=Ke.bind(null,t),i=[0,0],o=[0,0],s={};return e.filter((function(e,l,c){var u,p,d,h,f,m,g,b,y,v,k,x,w,S,T,A,C,E,P,N;let O=e.command,D=e.args,L=c[l+1];if("Z"!==O&&"z"!==O){if(u=D,"s"===O&&(u=[0,0].concat(D),"c"!==O&&"s"!==O||(h=(d=s.args).length,u[0]=d[h-2]-d[h-4],u[1]=d[h-1]-d[h-3])),t.makeArcs&&("c"==O||"s"==O)&&Ge(u)&&(p=function(e){var t=Xe(e,.5),r=[t[0]/2,t[1]/2],n=[(t[0]+e[4])/2,(t[1]+e[5])/2],a=Be([r[0],r[1],r[0]+r[1],r[1]-r[0],n[0],n[1],n[0]+(n[1]-t[1]),n[1]-(n[0]-t[0])]),i=a&&Ye([0,0],a),o=Math.min(qu*Mu,Iu*i/100);if(a&&i<1e15&&[1/4,3/4].every((function(t){return Math.abs(Ye(Xe(e,t),a)-i)<=o})))return{center:a,radius:i}}(u))){for(f=Du([p.radius])[0],m=Ze(u,p),y=[b={command:"a",args:[f,f,0,0,g=u[5]*u[0]-u[4]*u[1]>0?1:0,u[4],u[5]],coords:e.coords.slice(),base:e.base}],k={center:v=[p.center[0]-u[4],p.center[1]-u[5]],radius:p.radius},x=[e],w=0,S="",("c"==s.command&&Ge(s.args)&&Qe(s.args,p)||"a"==s.command&&s.sdata&&Qe(s.sdata,p))&&(x.unshift(s),b.base=s.base,b.args[5]=b.coords[0]-b.base[0],b.args[6]=b.coords[1]-b.base[1],(m+=Ze(A="a"==s.command?s.sdata:s.args,{center:[A[4]+p.center[0],A[5]+p.center[1]],radius:p.radius}))>Math.PI&&(b.args[3]=1),w=1),C=l;(L=c[++C])&&~"cs".indexOf(L.command)&&(E=L.args,"s"==L.command&&(E=(T=We({command:"s",args:L.args.slice()},c[C-1].args)).args,T.args=E.slice(0,2),S=a([T])),Ge(E)&&$e(E,k))&&!((m+=Ze(E,k))-2*Math.PI>.001);){if(m>Math.PI&&(b.args[3]=1),x.push(L),!(2*Math.PI-m>.001)){b.args[5]=2*(k.center[0]-E[4]),b.args[6]=2*(k.center[1]-E[5]),b.coords=[b.base[0]+b.args[5],b.base[1]+b.args[6]],b={command:"a",args:[f,f,0,0,g,L.coords[0]-b.coords[0],L.coords[1]-b.coords[1]],coords:L.coords,base:b.coords},y.push(b),C++;break}b.coords=L.coords,b.args[5]=b.coords[0]-b.base[0],b.args[6]=b.coords[1]-b.base[1],v[0]-=E[4],v[1]-=E[5]}if((a(y)+S).length0&&c.splice.apply(c,[l+1,x.length-1-w].concat(y)),!b)return!1;O="a",D=b.args,e.coords=b.coords}}if(!1!==Lu){if("m"===O||"l"===O||"t"===O||"q"===O||"s"===O||"c"===O)for(N=D.length;N--;)D[N]+=e.base[N%2]-i[N%2];else"h"==O?D[0]+=e.base[0]-i[0]:"v"==O?D[0]+=e.base[1]-i[1]:"a"==O&&(D[5]+=e.base[0]-i[0],D[6]+=e.base[1]-i[1]);Du(D),"h"==O?i[0]+=D[0]:"v"==O?i[1]+=D[0]:(i[0]+=D[D.length-2],i[1]+=D[D.length-1]),Du(i),"M"!==O&&"m"!==O||(o[0]=i[0],o[1]=i[1])}if(t.straightCurves&&("c"===O&&He(D)||"s"===O&&He(u)?(L&&"s"==L.command&&We(L,D),O="l",D=D.slice(-2)):"q"===O&&He(D)?(L&&"t"==L.command&&We(L,D),O="l",D=D.slice(-2)):"t"===O&&"q"!==s.command&&"t"!==s.command?(O="l",D=D.slice(-2)):"a"!==O||0!==D[0]&&0!==D[1]||(O="l",D=D.slice(-2))),t.lineShorthands&&"l"===O&&(0===D[1]?(O="h",D.pop()):0===D[0]&&(O="v",D.shift())),t.collapseRepeated&&!1===n&&("m"===O||"h"===O||"v"===O)&&s.command&&O==s.command.toLowerCase()&&("h"!=O&&"v"!=O||s.args[0]>=0==D[0]>=0))return s.args[0]+=D[0],"h"!=O&&"v"!=O&&(s.args[1]+=D[1]),s.coords=e.coords,c[l]=s,!1;if(t.curveSmoothShorthands&&s.command&&("c"===O?("c"===s.command&&D[0]===-(s.args[2]-s.args[4])&&D[1]===-(s.args[3]-s.args[5])||"s"===s.command&&D[0]===-(s.args[0]-s.args[2])&&D[1]===-(s.args[1]-s.args[3])||"c"!==s.command&&"s"!==s.command&&0===D[0]&&0===D[1])&&(O="s",D=D.slice(2)):"q"===O&&("q"===s.command&&D[0]===s.args[2]-s.args[0]&&D[1]===s.args[3]-s.args[1]||"t"===s.command&&D[2]===s.args[0]&&D[3]===s.args[1])&&(O="t",D=D.slice(2))),t.removeUseless&&!r){if(("l"===O||"h"===O||"v"===O||"q"===O||"t"===O||"c"===O||"s"===O)&&D.every((function(e){return 0===e})))return c[l]=s,!1;if("a"===O&&0===D[5]&&0===D[6])return c[l]=s,!1}e.command=O,e.args=D,s=e}else{if(i[0]=o[0],i[1]=o[1],"Z"===s.command||"z"===s.command)return!1;s=e}return!0}))}function Ge(e){var t=Be([0,0,e[2],e[3],e[0],e[1],e[4],e[5]]);return t&&e[2]0;)e[t].toFixed(Lu)!=e[t]&&(r=+e[t].toFixed(Lu-1),e[t]=+Math.abs(r-e[t]).toFixed(Lu+1)>=Mu?+e[t].toFixed(Lu):r);return e}function Ve(e){for(var t=e.length;t-- >0;)e[t]=Math.round(e[t]);return e}function He(e){var t=e.length-2,r=-e[t+1],n=e[t],a=1/(r*r+n*n);if(t<=1||!isFinite(a))return!1;for(;(t-=2)>=0;)if(Math.sqrt(Math.pow(r*e[t]+n*e[t+1],2)*a)>Mu)return!1;return!0}function We(e,t){switch(e.command){case"s":e.command="c";break;case"t":e.command="q"}return e.args.unshift(t[t.length-2]-t[t.length-4],t[t.length-1]-t[t.length-3]),e}function Ye(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function Xe(e,t){var r=t*t,n=r*t,a=1-t,i=a*a;return[3*i*t*e[0]+3*a*r*e[2]+n*e[4],3*i*t*e[1]+3*a*r*e[3]+n*e[5]]}function $e(e,t){var r=Math.min(qu*Mu,Iu*t.radius/100);return[0,1/4,.5,3/4,1].every((function(n){return Math.abs(Ye(Xe(e,n),t.center)-t.radius)<=r}))}function Qe(e,t){return $e(e,{center:[t.center[0]+e[4],t.center[1]+e[5]],radius:t.radius})}function Ze(e,t){var r=-t.center[0],n=-t.center[1],a=e[4]-t.center[0],i=e[5]-t.center[1];return Math.acos((r*a+n*i)/Math.sqrt((r*r+n*n)*(a*a+i*i)))}function Ke(e,t){return t.reduce((function(t,r){var n="";return r.args&&(n=Ou(Du(r.args.slice()),e)),t+r.command+n}),"")}function Je(){return"(?:"+Array.prototype.join.call(arguments,"|")+")"}var et,tt,rt,nt,at,it,ot,st,lt,ct,ut,pt,dt,ht,ft,mt,gt,bt,yt,vt,kt,xt,wt,St,Tt,At,Ct,Et,Pt,Nt,Ot,Dt,Lt,Mt,qt,It,Rt,_t,zt,jt,Ft,Gt,Bt,Ut,Vt,Ht,Wt,Yt,Xt,$t,Qt,Zt,Kt,Jt,er,tr,rr,nr,ar,ir,or,sr,lr,cr,ur,pr,dr,hr,fr,mr,gr,br,yr,vr,kr,xr,wr,Sr,Tr,Ar,Cr,Er,Pr,Nr,Or,Dr,Lr,Mr,qr,Ir,Rr,_r,zr,jr,Fr,Gr,Br,Ur,Vr,Hr,Wr,Yr,Xr,$r,Qr,Zr,Kr,Jr,en,tn,rn,nn,an,on,sn,ln,cn,un,pn,dn,hn,fn,mn,gn,bn,yn,vn,kn,xn,wn,Sn,Tn,An,Cn,En,Pn,Nn,On,Dn,Ln,Mn,qn,In,Rn,_n,zn,jn,Fn,Gn,Bn,Un,Vn,Hn,Wn,Yn,Xn,$n,Qn,Zn,Kn,Jn,ea,ta,ra,na,aa,ia,oa,sa,la,ca,ua,pa,da,ha,fa,ma,ga,ba,ya,va,ka,xa,wa,Sa,Ta,Aa,Ca,Ea,Pa,Na,Oa,Da,La,Ma,qa,Ia,Ra,_a,za,ja,Fa,Ga,Ba,Ua,Va,Ha,Wa,Ya,Xa,$a,Qa,Za,Ka,Ja,ei,ti,ri,ni,ai,ii,oi,si,li,ci,ui,pi,di,hi,fi,mi,gi,bi,yi,vi,ki,xi,wi,Si,Ti,Ai,Ci,Ei,Pi,Ni,Oi,Di,Li,Mi,qi,Ii,Ri,_i,zi,ji,Fi,Gi,Bi,Ui,Vi,Hi,Wi,Yi,Xi,$i,Qi,Zi,Ki,Ji,eo,to,ro,no,ao,io,oo,so,lo,co,uo,po,ho,fo,mo,go,bo,yo,vo,ko,xo,wo,So,To,Ao,Co,Eo,Po,No,Oo,Do,Lo,Mo,qo,Io,Ro,_o,zo,jo,Fo,Go,Bo,Uo,Vo,Ho,Wo,Yo,Xo,$o,Qo,Zo,Ko,Jo,es,ts,rs,ns,as,is,os,ss,ls,cs,us,ps,ds,hs,fs,ms,gs,bs,ys,vs,ks,xs,ws,Ss,Ts,As,Cs,Es,Ps,Ns,Os,Ds,Ls,Ms,qs,Is,Rs;r.d(t,"createContentItem",(function(){return Ps})),r.d(t,"default",(function(){return tt})),r.d(t,"extendDefaultPlugins",(function(){return Cs})),r.d(t,"optimize",(function(){return Es})),et="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},tt={},rt={},nt={},at={},it={},ot={},st={},lt={},ct={},function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(t=e.ElementType||(e.ElementType={})),e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype}(ut={}),pt={},dt=et&&et.__extends||(Ns=function(e,t){return Ns=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Ns(e,t)},function(e,t){function r(){this.constructor=e}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");Ns(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ht=et&&et.__assign||function(){return ht=Object.assign||function(e){var t,r,n,a;for(r=1,n=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(gt),pt.NodeWithChildren=xt,wt=function(e){function t(t){return e.call(this,ft.ElementType.Root,t)||this}return dt(t,e),t}(xt),pt.Document=wt,St=function(e){function t(t,r,n,a){void 0===n&&(n=[]),void 0===a&&(a="script"===t?ft.ElementType.Script:"style"===t?ft.ElementType.Style:ft.ElementType.Tag);var i=e.call(this,a,n)||this;return i.name=t,i.attribs=r,i}return dt(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(xt),pt.Element=St,pt.isTag=a,pt.isCDATA=i,pt.isText=o,pt.isComment=s,pt.isDirective=l,pt.isDocument=c,pt.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},pt.cloneNode=u,function(e){var t,r,n,a,i,o=et&&et.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=et&&et.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||o(t,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0,t=ut,r=pt,s(pt,e),n=/\s+/g,a={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function e(e,t,n){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,n){var a=this.options.xmlMode?t.ElementType.Tag:void 0,i=new r.Element(e,n,void 0,a);this.addNode(i),this.tagStack.push(i)},e.prototype.ontext=function(e){var a,i=this.options.normalizeWhitespace,o=this.lastNode;o&&o.type===t.ElementType.Text?(i?o.data=(o.data+e).replace(n," "):o.data+=e,this.options.withEndIndices&&(o.endIndex=this.parser.endIndex)):(i&&(e=e.replace(n," ")),a=new r.Text(e),this.addNode(a),this.lastNode=a)},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===t.ElementType.Comment)this.lastNode.data+=e;else{var n=new r.Comment(e);this.addNode(n),this.lastNode=n}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new r.Text(""),n=new r.NodeWithChildren(t.ElementType.CDATA,[e]);this.addNode(n),e.parent=n,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new r.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}(),e.DomHandler=i,e.default=i}(ct),Tt={},At={},Ct={},Et={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Pt={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"},Nt={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Ot={},Dt={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},Lt=et&&et.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Object.defineProperty(Ot,"__esModule",{value:!0}),Mt=Lt(Dt),qt=String.fromCodePoint||function(e){var t="";return e>65535&&(t+=String.fromCharCode((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)},Ot.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in Mt.default&&(e=Mt.default[e]),qt(e))},It=et&&et.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.decodeHTML=Ct.decodeHTMLStrict=Ct.decodeXML=void 0,Rt=It(Et),_t=It(Pt),zt=It(Nt),jt=It(Ot),Ft=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g,Ct.decodeXML=d(zt.default),Ct.decodeHTMLStrict=d(Rt.default),Gt=function(e,t){return e1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},gr.append=function(e,t){var r,n,a;S(t),r=e.parent,n=e.next,t.next=n,t.prev=e,e.next=t,t.parent=r,n?(n.prev=t,r&&(a=r.children).splice(a.lastIndexOf(n),0,t)):r&&r.children.push(t)},gr.prependChild=function(e,t){if(S(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},gr.prepend=function(e,t){var r,n;S(t),(r=e.parent)&&(n=r.children).splice(n.indexOf(e),0,t),e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t},Object.defineProperty(br={},"__esModule",{value:!0}),br.findAll=br.existsOne=br.findOne=br.findOneChild=br.find=br.filter=void 0,yr=ct,br.filter=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),Array.isArray(t)||(t=[t]),T(e,t,r,n)},br.find=T,br.findOneChild=function(e,t){return t.find(e)},br.findOne=function e(t,r,n){var a,i,o;for(void 0===n&&(n=!0),a=null,i=0;i0&&(a=e(t,o.children)));return a},br.existsOne=function e(t,r){return r.some((function(r){return(0,yr.isTag)(r)&&(t(r)||r.children.length>0&&e(t,r.children))}))},br.findAll=function(e,t){for(var r,n,a,i=[],o=t.filter(yr.isTag);n=o.shift();)(a=null===(r=n.children)||void 0===r?void 0:r.filter(yr.isTag))&&a.length>0&&o.unshift.apply(o,a),e(n)&&i.push(n);return i},Object.defineProperty(vr={},"__esModule",{value:!0}),vr.getElementsByTagType=vr.getElementsByTagName=vr.getElementById=vr.getElements=vr.testElement=void 0,kr=ct,xr=br,wr={tag_name:function(e){return"function"==typeof e?function(t){return(0,kr.isTag)(t)&&e(t.name)}:"*"===e?kr.isTag:function(t){return(0,kr.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,kr.isText)(t)&&e(t.data)}:function(t){return(0,kr.isText)(t)&&t.data===e}}},vr.testElement=function(e,t){var r=E(e);return!r||r(t)},vr.getElements=function(e,t,r,n){void 0===n&&(n=1/0);var a=E(e);return a?(0,xr.filter)(a,t,r,n):[]},vr.getElementById=function(e,t,r){return void 0===r&&(r=!0),Array.isArray(t)||(t=[t]),(0,xr.findOne)(A("id",e),t,r)},vr.getElementsByTagName=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,xr.filter)(wr.tag_name(e),t,r,n)},vr.getElementsByTagType=function(e,t,r,n){return void 0===r&&(r=!0),void 0===n&&(n=1/0),(0,xr.filter)(wr.tag_type(e),t,r,n)},Object.defineProperty(Sr={},"__esModule",{value:!0}),Sr.uniqueSort=Sr.compareDocumentPosition=Sr.removeSubsets=void 0,Tr=ct,Sr.removeSubsets=function(e){for(var t,r,n=e.length;--n>=0;)if(t=e[n],n>0&&e.lastIndexOf(t,n-1)>=0)e.splice(n,1);else for(r=t.parent;r;r=r.parent)if(e.includes(r)){e.splice(n,1);break}return e},Sr.compareDocumentPosition=P,Sr.uniqueSort=function(e){return e=e.filter((function(e,t,r){return!r.includes(e,t+1)})),e.sort((function(e,t){var r=P(e,t);return 2&r?-1:4&r?1:0})),e},Object.defineProperty(Ar={},"__esModule",{value:!0}),Ar.getFeed=void 0,Cr=lt,Er=vr,Ar.getFeed=function(e){var t=O(M,e);return t?"feed"===t.name?function(e){var t,r,n,a=e.children,i={type:"atom",items:(0,Er.getElementsByTagName)("entry",a).map((function(e){var t,r,n,a,i=e.children,o={media:N(i)};return L(o,"id","id",i),L(o,"title","title",i),(r=null===(t=O("link",i))||void 0===t?void 0:t.attribs.href)&&(o.link=r),(n=D("summary",i)||D("content",i))&&(o.description=n),(a=D("updated",i))&&(o.pubDate=new Date(a)),o}))};return L(i,"id","id",a),L(i,"title","title",a),(r=null===(t=O("link",a))||void 0===t?void 0:t.attribs.href)&&(i.link=r),L(i,"description","subtitle",a),(n=D("updated",a))&&(i.updated=new Date(n)),L(i,"author","email",a,!0),i}(t):function(e){var t,r,n,a=null!==(r=null===(t=O("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==r?r:[],i={type:e.name.substr(0,3),id:"",items:(0,Er.getElementsByTagName)("item",e.children).map((function(e){var t,r=e.children,n={media:N(r)};return L(n,"id","guid",r),L(n,"title","title",r),L(n,"link","link",r),L(n,"description","description",r),(t=D("pubDate",r))&&(n.pubDate=new Date(t)),n}))};return L(i,"title","title",a),L(i,"link","link",a),L(i,"description","description",a),(n=D("lastBuildDate",a))&&(i.updated=new Date(n)),L(i,"author","managingEditor",a,!0),i}(t):null},Pr=["url","type","lang"],Nr=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"],function(e){var t,r=et&&et.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=et&&et.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.hasChildren=e.isDocument=e.isComment=e.isText=e.isCDATA=e.isTag=void 0,n(lt,e),n(hr,e),n(gr,e),n(br,e),n(vr,e),n(Sr,e),n(Ar,e),t=ct,Object.defineProperty(e,"isTag",{enumerable:!0,get:function(){return t.isTag}}),Object.defineProperty(e,"isCDATA",{enumerable:!0,get:function(){return t.isCDATA}}),Object.defineProperty(e,"isText",{enumerable:!0,get:function(){return t.isText}}),Object.defineProperty(e,"isComment",{enumerable:!0,get:function(){return t.isComment}}),Object.defineProperty(e,"isDocument",{enumerable:!0,get:function(){return t.isDocument}}),Object.defineProperty(e,"hasChildren",{enumerable:!0,get:function(){return t.hasChildren}})}(st),Or={trueFunc:function(){return!0},falseFunc:function(){return!1}},Dr={},Lr={},Mr={},qr=et&&et.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r":"child","<":"parent","~":"sibling","+":"adjacent"},jr={"#":["id","equals"],".":["class","element"]},Fr=new Set(["has","not","matches","is","host","host-context"]),Gr=new Set(qr(["descendant"],Object.keys(zr).map((function(e){return zr[e]})))),Br=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]),Mr.isTraversal=q,Ur=new Set(["contains","icontains"]),Vr=new Set(['"',"'"]),Mr.default=function(e,t){var r=[],n=z(r,""+e,t,0);if(n=0&&r=i.length&&n.test(r)&&e(t)})},exists:function(e,t,r){var n=t.name,a=r.adapter;return function(t){return a.hasAttrib(t,n)&&e(t)}},start:function(e,t,r){var n=r.adapter,a=t.name,i=t.value,o=i.length;return 0===o?tn.falseFunc:t.ignoreCase?(i=i.toLowerCase(),function(t){var r=n.getAttributeValue(t,a);return null!=r&&r.length>=o&&r.substr(0,o).toLowerCase()===i&&e(t)}):function(t){var r;return!!(null===(r=n.getAttributeValue(t,a))||void 0===r?void 0:r.startsWith(i))&&e(t)}},end:function(e,t,r){var n=r.adapter,a=t.name,i=t.value,o=-i.length;return 0===o?tn.falseFunc:t.ignoreCase?(i=i.toLowerCase(),function(t){var r;return(null===(r=n.getAttributeValue(t,a))||void 0===r?void 0:r.substr(o).toLowerCase())===i&&e(t)}):function(t){var r;return!!(null===(r=n.getAttributeValue(t,a))||void 0===r?void 0:r.endsWith(i))&&e(t)}},any:function(e,t,r){var n,a=r.adapter,i=t.name,o=t.value;return""===o?tn.falseFunc:t.ignoreCase?(n=RegExp(Y(o),"i"),function(t){var r=a.getAttributeValue(t,i);return null!=r&&r.length>=o.length&&n.test(r)&&e(t)}):function(t){var r;return!!(null===(r=a.getAttributeValue(t,i))||void 0===r?void 0:r.includes(o))&&e(t)}},not:function(e,t,r){var n=r.adapter,a=t.name,i=t.value;return""===i?function(t){return!!n.getAttributeValue(t,a)&&e(t)}:t.ignoreCase?(i=i.toLowerCase(),function(t){var r=n.getAttributeValue(t,a);return(null==r||r.length!==i.length||r.toLowerCase()!==i)&&e(t)}):function(t){return n.getAttributeValue(t,a)!==i&&e(t)}}},nn={},an={},on={},Object.defineProperty(sn={},"__esModule",{value:!0}),sn.parse=void 0,ln=/^([+-]?\d*n)?\s*(?:([+-]?)\s*(\d+))?$/,sn.parse=function(e){var t,r;if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];if(!(t=e.match(ln)))throw Error("n-th rule couldn't be parsed ('"+e+"')");return t[1]?(r=parseInt(t[1],10),isNaN(r)&&(r=t[1].startsWith("-")?-1:1)):r=0,[r,("-"===t[2]?-1:1)*(t[3]?parseInt(t[3],10):0)]},Object.defineProperty(cn={},"__esModule",{value:!0}),cn.compile=void 0,un=Or,cn.compile=function(e){var t,r,n=e[0],a=e[1]-1;return a<0&&n<=0?un.falseFunc:-1===n?function(e){return e<=a}:0===n?function(e){return e===a}:1===n?a<0?un.trueFunc:function(e){return e>=a}:(r=(a%(t=Math.abs(n))+t)%t,n>1?function(e){return e>=a&&e%t===r}:function(e){return e<=a&&e%t===r})},function(e){var t,r;Object.defineProperty(e,"__esModule",{value:!0}),e.compile=e.parse=void 0,t=sn,Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return t.parse}}),r=cn,Object.defineProperty(e,"compile",{enumerable:!0,get:function(){return r.compile}}),e.default=function(e){return r.compile(t.parse(e))}}(on),function(e){function t(e,t){return function(r){var n=t.getParent(r);return null!=n&&t.isTag(n)&&e(r)}}function r(e){return function(t,r,n){var i=n.adapter[e];return"function"!=typeof i?a.falseFunc:function(e){return i(e)&&t(e)}}}var n,a,i=et&&et.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.filters=void 0,n=i(on),a=Or,e.filters={contains:function(e,t,r){var n=r.adapter;return function(r){return e(r)&&n.getText(r).includes(t)}},icontains:function(e,t,r){var n=r.adapter,a=t.toLowerCase();return function(t){return e(t)&&n.getText(t).toLowerCase().includes(a)}},"nth-child":function(e,r,i){var o=i.adapter,s=i.equals,l=n.default(r);return l===a.falseFunc?a.falseFunc:l===a.trueFunc?t(e,o):function(t){var r,n=o.getSiblings(t),a=0;for(r=0;r=0&&!s(t,n[r]);r--)o.isTag(n[r])&&a++;return l(a)&&e(t)}},"nth-of-type":function(e,r,i){var o=i.adapter,s=i.equals,l=n.default(r);return l===a.falseFunc?a.falseFunc:l===a.trueFunc?t(e,o):function(t){var r,n,a=o.getSiblings(t),i=0;for(r=0;r=0&&(n=a[r],!s(t,n));r--)o.isTag(n)&&o.getName(n)===o.getName(t)&&i++;return l(i)&&e(t)}},root:function(e,t,r){var n=r.adapter;return function(t){var r=n.getParent(t);return(null==r||!n.isTag(r))&&e(t)}},scope:function(t,r,n,a){var i=n.equals;return a&&0!==a.length?1===a.length?function(e){return i(a[0],e)&&t(e)}:function(e){return a.includes(e)&&t(e)}:e.filters.root(t,r,n)},hover:r("isHovered"),visited:r("isVisited"),active:r("isActive")}}(an),Object.defineProperty(pn={},"__esModule",{value:!0}),pn.verifyPseudoArgs=pn.pseudos=void 0,pn.pseudos={empty:function(e,t){var r=t.adapter;return!r.getChildren(e).some((function(e){return r.isTag(e)||""!==r.getText(e)}))},"first-child":function(e,t){var r=t.adapter,n=t.equals,a=r.getSiblings(e).find((function(e){return r.isTag(e)}));return null!=a&&n(e,a)},"last-child":function(e,t){var r,n=t.adapter,a=t.equals,i=n.getSiblings(e);for(r=i.length-1;r>=0;r--){if(a(e,i[r]))return!0;if(n.isTag(i[r]))break}return!1},"first-of-type":function(e,t){var r,n,a=t.adapter,i=t.equals,o=a.getSiblings(e),s=a.getName(e);for(r=0;r=0;r--){if(i(e,n=o[r]))return!0;if(a.isTag(n)&&a.getName(n)===s)break}return!1},"only-of-type":function(e,t){var r=t.adapter,n=t.equals,a=r.getName(e);return r.getSiblings(e).every((function(t){return n(e,t)||!r.isTag(t)||r.getName(t)!==a}))},"only-child":function(e,t){var r=t.adapter,n=t.equals;return r.getSiblings(e).every((function(t){return n(e,t)||!r.isTag(t)}))}},pn.verifyPseudoArgs=function(e,t,r){if(null===r){if(e.length>2)throw Error("pseudo-selector :"+t+" requires an argument")}else if(2===e.length)throw Error("pseudo-selector :"+t+" doesn't have any arguments")},Object.defineProperty(dn={},"__esModule",{value:!0}),dn.aliases=void 0,dn.aliases={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},function(e){function t(e,t){return e===n.falseFunc?n.falseFunc:function(r){return t.isTag(r)&&e(r)}}function r(e,t){var r,n=t.getSiblings(e);return n.length<=1||(r=n.indexOf(e))<0||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}var n,a,i,o=et&&et.__spreadArray||function(e,t){for(var r=0,n=t.length,a=e.length;r"element"===e.type,zs=(e,t)=>t.some((t=>!!_s(t)&&(e(t)||zs(e,js(t))))),js=e=>e.children||[],Fs=e=>e.parentNode||null,Gs=(e,t)=>{const r=[];for(const n of t)_s(n)&&(e(n)&&r.push(n),r.push(...Gs(e,js(n))));return r},Bs=(e,t)=>{for(const r of t)if(_s(r)){if(e(r))return r;const t=Bs(e,js(r));if(t)return t}return null},Us={isTag:_s,existsOne:zs,getAttributeValue:(e,t)=>e.attributes[t],getChildren:js,getName:e=>e.name,getParent:Fs,getSiblings:e=>{var t=Fs(e);return t?js(t):[]},getText:e=>"text"===e.children[0].type&&"cdata"===e.children[0].type?e.children[0].value:"",hasAttrib:(e,t)=>void 0!==e.attributes[t],removeSubsets:e=>{let t,r,n,a=e.length;for(;--a>-1;){for(t=r=e[a],e[a]=null,n=!0;r;){if(e.includes(r)){n=!1,e.splice(a,1);break}r=Fs(r)}n&&(e[a]=t)}return e},findAll:Gs,findOne:Bs};Cn=Us;const{selectAll:Vs,selectOne:Hs,is:Ws}=ot,Ys={xmlMode:!0,adapter:Cn};it.querySelectorAll=(e,t)=>Vs(t,e,Ys),it.querySelector=(e,t)=>Hs(t,e,Ys),it.matches=(e,t)=>Ws(e,t,Ys),it.closestByName=(e,t)=>{let r=e;for(;r;){if("element"===r.type&&r.name===t)return r;r=r.parentNode}return null};const Xs=Symbol();it.visitSkip=Xs;const $s=(e,t,r)=>{const n=t[e.type];if(!n||!n.enter||n.enter(e,r)!==Xs){if("root"===e.type)for(const r of e.children)$s(r,t,e);if("element"===e.type&&r.children.includes(e))for(const r of e.children)$s(r,t,e);n&&n.exit&&n.exit(e,r)}};it.visit=$s,it.detachNodeFromParent=(e,t)=>{t.children=t.children.filter((t=>t!==e))};const{visit:Qs}=it,Zs=(e,t,r,n,a)=>{for(const i of r){const r=null==n?null:n[i.name];if(!1===r)continue;const o={...i.params,...a,...r};if("perItem"===i.type&&(e=K(e,t,i,o)),"perItemReverse"===i.type&&(e=K(e,t,i,o,!0)),"full"===i.type&&i.active&&(e=i.fn(e,o,t)),"visitor"===i.type&&i.active){const r=i.fn(e,o,t);null!=r&&Qs(e,r)}}return e};at.invokePlugins=Zs,at.createPreset=({name:e,plugins:t})=>({name:e,type:"full",fn:(e,r,n)=>{const{floatPrecision:a,overrides:i}=r,o={};if(null!=a&&(o.floatPrecision=a),i)for(const[t,s]of Object.entries(i))!0===s&&console.warn(`You are trying to enable ${t} which is not part of preset.\nTry to put it before or after preset, for example\n\nplugins: [\n {\n name: 'preset-default',\n },\n 'cleanupListOfValues'\n]\n`);return Zs(e,n,t,i,o)}}),En={};const{detachNodeFromParent:Ks}=it;En.name="removeDoctype",En.type="visitor",En.active=!0,En.description="removes doctype declaration",En.fn=()=>({doctype:{enter:(e,t)=>{Ks(e,t)}}}),Pn={};const{detachNodeFromParent:Js}=it;Pn.name="removeXMLProcInst",Pn.type="visitor",Pn.active=!0,Pn.description="removes XML processing instructions",Pn.fn=()=>({instruction:{enter:(e,t)=>{"xml"===e.name&&Js(e,t)}}}),Nn={};const{detachNodeFromParent:el}=it;Nn.name="removeComments",Nn.type="visitor",Nn.active=!0,Nn.description="removes comments",Nn.fn=()=>({comment:{enter:(e,t)=>{"!"!==e.value.charAt(0)&&el(e,t)}}}),On={};const{detachNodeFromParent:tl}=it;On.name="removeMetadata",On.type="visitor",On.active=!0,On.description="removes ",On.fn=()=>({element:{enter:(e,t)=>{"metadata"===e.name&&tl(e,t)}}}),Dn={},function(e){e.elemsGroups={animation:["animate","animateColor","animateMotion","animateTransform","set"],descriptive:["desc","metadata","title"],shape:["circle","ellipse","line","path","polygon","polyline","rect"],structural:["defs","g","svg","symbol","use"],paintServer:["solidColor","linearGradient","radialGradient","meshGradient","pattern","hatch"],nonRendering:["linearGradient","radialGradient","pattern","clipPath","mask","marker","symbol","filter","solidColor"],container:["a","defs","g","marker","mask","missing-glyph","pattern","svg","switch","symbol","foreignObject"],textContent:["altGlyph","altGlyphDef","altGlyphItem","glyph","glyphRef","textPath","text","tref","tspan"],textContentChild:["altGlyph","textPath","tref","tspan"],lightSource:["feDiffuseLighting","feSpecularLighting","feDistantLight","fePointLight","feSpotLight"],filterPrimitive:["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence"]},e.textElems=e.elemsGroups.textContent.concat("title"),e.pathElems=["path","glyph","missing-glyph"],e.attrsGroups={animationAddition:["additive","accumulate"],animationAttributeTarget:["attributeType","attributeName"],animationEvent:["onbegin","onend","onrepeat","onload"],animationTiming:["begin","dur","end","min","max","restart","repeatCount","repeatDur","fill"],animationValue:["calcMode","values","keyTimes","keySplines","from","to","by"],conditionalProcessing:["requiredFeatures","requiredExtensions","systemLanguage"],core:["id","tabindex","xml:base","xml:lang","xml:space"],graphicalEvent:["onfocusin","onfocusout","onactivate","onclick","onmousedown","onmouseup","onmouseover","onmousemove","onmouseout","onload"],presentation:["alignment-baseline","baseline-shift","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cursor","direction","display","dominant-baseline","enable-background","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","transform-origin","unicode-bidi","vector-effect","visibility","word-spacing","writing-mode"],xlink:["xlink:href","xlink:show","xlink:actuate","xlink:type","xlink:role","xlink:arcrole","xlink:title"],documentEvent:["onunload","onabort","onerror","onresize","onscroll","onzoom"],filterPrimitive:["x","y","width","height","result"],transferFunction:["type","tableValues","slope","intercept","amplitude","exponent","offset"]},e.attrsGroupsDefaults={core:{"xml:space":"default"},presentation:{clip:"auto","clip-path":"none","clip-rule":"nonzero",mask:"none",opacity:"1","stop-color":"#000","stop-opacity":"1","fill-opacity":"1","fill-rule":"nonzero",fill:"#000",stroke:"none","stroke-width":"1","stroke-linecap":"butt","stroke-linejoin":"miter","stroke-miterlimit":"4","stroke-dasharray":"none","stroke-dashoffset":"0","stroke-opacity":"1","paint-order":"normal","vector-effect":"none",display:"inline",visibility:"visible","marker-start":"none","marker-mid":"none","marker-end":"none","color-interpolation":"sRGB","color-interpolation-filters":"linearRGB","color-rendering":"auto","shape-rendering":"auto","text-rendering":"auto","image-rendering":"auto","font-style":"normal","font-variant":"normal","font-weight":"normal","font-stretch":"normal","font-size":"medium","font-size-adjust":"none",kerning:"auto","letter-spacing":"normal","word-spacing":"normal","text-decoration":"none","text-anchor":"start","text-overflow":"clip","writing-mode":"lr-tb","glyph-orientation-vertical":"auto","glyph-orientation-horizontal":"0deg",direction:"ltr","unicode-bidi":"normal","dominant-baseline":"auto","alignment-baseline":"baseline","baseline-shift":"baseline"},transferFunction:{slope:"1",intercept:"0",amplitude:"1",exponent:"1",offset:"0"}},e.elems={a:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation","xlink"],attrs:["class","style","externalResourcesRequired","transform","target"],defaults:{target:"_self"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view","tspan"]},altGlyph:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation","xlink"],attrs:["class","style","externalResourcesRequired","x","y","dx","dy","glyphRef","format","rotate"]},altGlyphDef:{attrsGroups:["core"],content:["glyphRef"]},altGlyphItem:{attrsGroups:["core"],content:["glyphRef","altGlyphItem"]},animate:{attrsGroups:["conditionalProcessing","core","animationAddition","animationAttributeTarget","animationEvent","animationTiming","animationValue","presentation","xlink"],attrs:["externalResourcesRequired"],contentGroups:["descriptive"]},animateColor:{attrsGroups:["conditionalProcessing","core","animationEvent","xlink","animationAttributeTarget","animationTiming","animationValue","animationAddition","presentation"],attrs:["externalResourcesRequired"],contentGroups:["descriptive"]},animateMotion:{attrsGroups:["conditionalProcessing","core","animationEvent","xlink","animationTiming","animationValue","animationAddition"],attrs:["externalResourcesRequired","path","keyPoints","rotate","origin"],defaults:{rotate:"0"},contentGroups:["descriptive"],content:["mpath"]},animateTransform:{attrsGroups:["conditionalProcessing","core","animationEvent","xlink","animationAttributeTarget","animationTiming","animationValue","animationAddition"],attrs:["externalResourcesRequired","type"],contentGroups:["descriptive"]},circle:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","cx","cy","r"],defaults:{cx:"0",cy:"0"},contentGroups:["animation","descriptive"]},clipPath:{attrsGroups:["conditionalProcessing","core","presentation"],attrs:["class","style","externalResourcesRequired","transform","clipPathUnits"],defaults:{clipPathUnits:"userSpaceOnUse"},contentGroups:["animation","descriptive","shape"],content:["text","use"]},"color-profile":{attrsGroups:["core","xlink"],attrs:["local","name","rendering-intent"],defaults:{name:"sRGB","rendering-intent":"auto"},contentGroups:["descriptive"]},cursor:{attrsGroups:["core","conditionalProcessing","xlink"],attrs:["externalResourcesRequired","x","y"],defaults:{x:"0",y:"0"},contentGroups:["descriptive"]},defs:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform"],contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},desc:{attrsGroups:["core"],attrs:["class","style"]},ellipse:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","cx","cy","rx","ry"],defaults:{cx:"0",cy:"0"},contentGroups:["animation","descriptive"]},feBlend:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","in2","mode"],defaults:{mode:"normal"},content:["animate","set"]},feColorMatrix:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","type","values"],defaults:{type:"matrix"},content:["animate","set"]},feComponentTransfer:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in"],content:["feFuncA","feFuncB","feFuncG","feFuncR"]},feComposite:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","in2","operator","k1","k2","k3","k4"],defaults:{operator:"over",k1:"0",k2:"0",k3:"0",k4:"0"},content:["animate","set"]},feConvolveMatrix:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","order","kernelMatrix","divisor","bias","targetX","targetY","edgeMode","kernelUnitLength","preserveAlpha"],defaults:{order:"3",bias:"0",edgeMode:"duplicate",preserveAlpha:"false"},content:["animate","set"]},feDiffuseLighting:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","surfaceScale","diffuseConstant","kernelUnitLength"],defaults:{surfaceScale:"1",diffuseConstant:"1"},contentGroups:["descriptive"],content:["feDistantLight","fePointLight","feSpotLight"]},feDisplacementMap:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","in2","scale","xChannelSelector","yChannelSelector"],defaults:{scale:"0",xChannelSelector:"A",yChannelSelector:"A"},content:["animate","set"]},feDistantLight:{attrsGroups:["core"],attrs:["azimuth","elevation"],defaults:{azimuth:"0",elevation:"0"},content:["animate","set"]},feFlood:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style"],content:["animate","animateColor","set"]},feFuncA:{attrsGroups:["core","transferFunction"],content:["set","animate"]},feFuncB:{attrsGroups:["core","transferFunction"],content:["set","animate"]},feFuncG:{attrsGroups:["core","transferFunction"],content:["set","animate"]},feFuncR:{attrsGroups:["core","transferFunction"],content:["set","animate"]},feGaussianBlur:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","stdDeviation"],defaults:{stdDeviation:"0"},content:["set","animate"]},feImage:{attrsGroups:["core","presentation","filterPrimitive","xlink"],attrs:["class","style","externalResourcesRequired","preserveAspectRatio","href","xlink:href"],defaults:{preserveAspectRatio:"xMidYMid meet"},content:["animate","animateTransform","set"]},feMerge:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style"],content:["feMergeNode"]},feMergeNode:{attrsGroups:["core"],attrs:["in"],content:["animate","set"]},feMorphology:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","operator","radius"],defaults:{operator:"erode",radius:"0"},content:["animate","set"]},feOffset:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","dx","dy"],defaults:{dx:"0",dy:"0"},content:["animate","set"]},fePointLight:{attrsGroups:["core"],attrs:["x","y","z"],defaults:{x:"0",y:"0",z:"0"},content:["animate","set"]},feSpecularLighting:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in","surfaceScale","specularConstant","specularExponent","kernelUnitLength"],defaults:{surfaceScale:"1",specularConstant:"1",specularExponent:"1"},contentGroups:["descriptive","lightSource"]},feSpotLight:{attrsGroups:["core"],attrs:["x","y","z","pointsAtX","pointsAtY","pointsAtZ","specularExponent","limitingConeAngle"],defaults:{x:"0",y:"0",z:"0",pointsAtX:"0",pointsAtY:"0",pointsAtZ:"0",specularExponent:"1"},content:["animate","set"]},feTile:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","in"],content:["animate","set"]},feTurbulence:{attrsGroups:["core","presentation","filterPrimitive"],attrs:["class","style","baseFrequency","numOctaves","seed","stitchTiles","type"],defaults:{baseFrequency:"0",numOctaves:"1",seed:"0",stitchTiles:"noStitch",type:"turbulence"},content:["animate","set"]},filter:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","externalResourcesRequired","x","y","width","height","filterRes","filterUnits","primitiveUnits","href","xlink:href"],defaults:{primitiveUnits:"userSpaceOnUse",x:"-10%",y:"-10%",width:"120%",height:"120%"},contentGroups:["descriptive","filterPrimitive"],content:["animate","set"]},font:{attrsGroups:["core","presentation"],attrs:["class","style","externalResourcesRequired","horiz-origin-x","horiz-origin-y","horiz-adv-x","vert-origin-x","vert-origin-y","vert-adv-y"],defaults:{"horiz-origin-x":"0","horiz-origin-y":"0"},contentGroups:["descriptive"],content:["font-face","glyph","hkern","missing-glyph","vkern"]},"font-face":{attrsGroups:["core"],attrs:["font-family","font-style","font-variant","font-weight","font-stretch","font-size","unicode-range","units-per-em","panose-1","stemv","stemh","slope","cap-height","x-height","accent-height","ascent","descent","widths","bbox","ideographic","alphabetic","mathematical","hanging","v-ideographic","v-alphabetic","v-mathematical","v-hanging","underline-position","underline-thickness","strikethrough-position","strikethrough-thickness","overline-position","overline-thickness"],defaults:{"font-style":"all","font-variant":"normal","font-weight":"all","font-stretch":"normal","unicode-range":"U+0-10FFFF","units-per-em":"1000","panose-1":"0 0 0 0 0 0 0 0 0 0",slope:"0"},contentGroups:["descriptive"],content:["font-face-src"]},"font-face-format":{attrsGroups:["core"],attrs:["string"]},"font-face-name":{attrsGroups:["core"],attrs:["name"]},"font-face-src":{attrsGroups:["core"],content:["font-face-name","font-face-uri"]},"font-face-uri":{attrsGroups:["core","xlink"],attrs:["href","xlink:href"],content:["font-face-format"]},foreignObject:{attrsGroups:["core","conditionalProcessing","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","x","y","width","height"],defaults:{x:"0",y:"0"}},g:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform"],contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},glyph:{attrsGroups:["core","presentation"],attrs:["class","style","d","horiz-adv-x","vert-origin-x","vert-origin-y","vert-adv-y","unicode","glyph-name","orientation","arabic-form","lang"],defaults:{"arabic-form":"initial"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},glyphRef:{attrsGroups:["core","presentation"],attrs:["class","style","d","horiz-adv-x","vert-origin-x","vert-origin-y","vert-adv-y"],contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},hatch:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","x","y","pitch","rotate","hatchUnits","hatchContentUnits","transform"],defaults:{hatchUnits:"objectBoundingBox",hatchContentUnits:"userSpaceOnUse",x:"0",y:"0",pitch:"0",rotate:"0"},contentGroups:["animation","descriptive"],content:["hatchPath"]},hatchPath:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","d","offset"],defaults:{offset:"0"},contentGroups:["animation","descriptive"]},hkern:{attrsGroups:["core"],attrs:["u1","g1","u2","g2","k"]},image:{attrsGroups:["core","conditionalProcessing","graphicalEvent","xlink","presentation"],attrs:["class","style","externalResourcesRequired","preserveAspectRatio","transform","x","y","width","height","href","xlink:href"],defaults:{x:"0",y:"0",preserveAspectRatio:"xMidYMid meet"},contentGroups:["animation","descriptive"]},line:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","x1","y1","x2","y2"],defaults:{x1:"0",y1:"0",x2:"0",y2:"0"},contentGroups:["animation","descriptive"]},linearGradient:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","externalResourcesRequired","x1","y1","x2","y2","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],defaults:{x1:"0",y1:"0",x2:"100%",y2:"0",spreadMethod:"pad"},contentGroups:["descriptive"],content:["animate","animateTransform","set","stop"]},marker:{attrsGroups:["core","presentation"],attrs:["class","style","externalResourcesRequired","viewBox","preserveAspectRatio","refX","refY","markerUnits","markerWidth","markerHeight","orient"],defaults:{markerUnits:"strokeWidth",refX:"0",refY:"0",markerWidth:"3",markerHeight:"3"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},mask:{attrsGroups:["conditionalProcessing","core","presentation"],attrs:["class","style","externalResourcesRequired","x","y","width","height","mask-type","maskUnits","maskContentUnits"],defaults:{maskUnits:"objectBoundingBox",maskContentUnits:"userSpaceOnUse",x:"-10%",y:"-10%",width:"120%",height:"120%"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},metadata:{attrsGroups:["core"]},"missing-glyph":{attrsGroups:["core","presentation"],attrs:["class","style","d","horiz-adv-x","vert-origin-x","vert-origin-y","vert-adv-y"],contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},mpath:{attrsGroups:["core","xlink"],attrs:["externalResourcesRequired","href","xlink:href"],contentGroups:["descriptive"]},path:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","d","pathLength"],contentGroups:["animation","descriptive"]},pattern:{attrsGroups:["conditionalProcessing","core","presentation","xlink"],attrs:["class","style","externalResourcesRequired","viewBox","preserveAspectRatio","x","y","width","height","patternUnits","patternContentUnits","patternTransform","href","xlink:href"],defaults:{patternUnits:"objectBoundingBox",patternContentUnits:"userSpaceOnUse",x:"0",y:"0",width:"0",height:"0",preserveAspectRatio:"xMidYMid meet"},contentGroups:["animation","descriptive","paintServer","shape","structural"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},polygon:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","points"],contentGroups:["animation","descriptive"]},polyline:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","points"],contentGroups:["animation","descriptive"]},radialGradient:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","externalResourcesRequired","cx","cy","r","fx","fy","fr","gradientUnits","gradientTransform","spreadMethod","href","xlink:href"],defaults:{gradientUnits:"objectBoundingBox",cx:"50%",cy:"50%",r:"50%"},contentGroups:["descriptive"],content:["animate","animateTransform","set","stop"]},meshGradient:{attrsGroups:["core","presentation","xlink"],attrs:["class","style","x","y","gradientUnits","transform"],contentGroups:["descriptive","paintServer","animation"],content:["meshRow"]},meshRow:{attrsGroups:["core","presentation"],attrs:["class","style"],contentGroups:["descriptive"],content:["meshPatch"]},meshPatch:{attrsGroups:["core","presentation"],attrs:["class","style"],contentGroups:["descriptive"],content:["stop"]},rect:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","x","y","width","height","rx","ry"],defaults:{x:"0",y:"0"},contentGroups:["animation","descriptive"]},script:{attrsGroups:["core","xlink"],attrs:["externalResourcesRequired","type","href","xlink:href"]},set:{attrsGroups:["conditionalProcessing","core","animation","xlink","animationAttributeTarget","animationTiming"],attrs:["externalResourcesRequired","to"],contentGroups:["descriptive"]},solidColor:{attrsGroups:["core","presentation"],attrs:["class","style"],contentGroups:["paintServer"]},stop:{attrsGroups:["core","presentation"],attrs:["class","style","offset","path"],content:["animate","animateColor","set"]},style:{attrsGroups:["core"],attrs:["type","media","title"],defaults:{type:"text/css"}},svg:{attrsGroups:["conditionalProcessing","core","documentEvent","graphicalEvent","presentation"],attrs:["class","style","x","y","width","height","viewBox","preserveAspectRatio","zoomAndPan","version","baseProfile","contentScriptType","contentStyleType"],defaults:{x:"0",y:"0",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid meet",zoomAndPan:"magnify",version:"1.1",baseProfile:"none",contentScriptType:"application/ecmascript",contentStyleType:"text/css"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},switch:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform"],contentGroups:["animation","descriptive","shape"],content:["a","foreignObject","g","image","svg","switch","text","use"]},symbol:{attrsGroups:["core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","preserveAspectRatio","viewBox","refX","refY"],defaults:{refX:"0",refY:"0"},contentGroups:["animation","descriptive","shape","structural","paintServer"],content:["a","altGlyphDef","clipPath","color-profile","cursor","filter","font","font-face","foreignObject","image","marker","mask","pattern","script","style","switch","text","view"]},text:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","transform","lengthAdjust","x","y","dx","dy","rotate","textLength"],defaults:{x:"0",y:"0",lengthAdjust:"spacing"},contentGroups:["animation","descriptive","textContentChild"],content:["a"]},textPath:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation","xlink"],attrs:["class","style","externalResourcesRequired","href","xlink:href","startOffset","method","spacing","d"],defaults:{startOffset:"0",method:"align",spacing:"exact"},contentGroups:["descriptive"],content:["a","altGlyph","animate","animateColor","set","tref","tspan"]},title:{attrsGroups:["core"],attrs:["class","style"]},tref:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation","xlink"],attrs:["class","style","externalResourcesRequired","href","xlink:href"],contentGroups:["descriptive"],content:["animate","animateColor","set"]},tspan:{attrsGroups:["conditionalProcessing","core","graphicalEvent","presentation"],attrs:["class","style","externalResourcesRequired","x","y","dx","dy","rotate","textLength","lengthAdjust"],contentGroups:["descriptive"],content:["a","altGlyph","animate","animateColor","set","tref","tspan"]},use:{attrsGroups:["core","conditionalProcessing","graphicalEvent","presentation","xlink"],attrs:["class","style","externalResourcesRequired","transform","x","y","width","height","href","xlink:href"],defaults:{x:"0",y:"0"},contentGroups:["animation","descriptive"]},view:{attrsGroups:["core"],attrs:["externalResourcesRequired","viewBox","preserveAspectRatio","zoomAndPan","viewTarget"],contentGroups:["descriptive"]},vkern:{attrsGroups:["core"],attrs:["u1","g1","u2","g2","k"]}},e.editorNamespaces=["http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd","http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd","http://www.inkscape.org/namespaces/inkscape","http://www.bohemiancoding.com/sketch/ns","http://ns.adobe.com/AdobeIllustrator/10.0/","http://ns.adobe.com/Graphs/1.0/","http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/","http://ns.adobe.com/Variables/1.0/","http://ns.adobe.com/SaveForWeb/1.0/","http://ns.adobe.com/Extensibility/1.0/","http://ns.adobe.com/Flows/1.0/","http://ns.adobe.com/ImageReplacement/1.0/","http://ns.adobe.com/GenericCustomNamespace/1.0/","http://ns.adobe.com/XPath/1.0/","http://schemas.microsoft.com/visio/2003/SVGExtensions/","http://taptrix.com/vectorillustrator/svg_extensions","http://www.figma.com/figma/ns","http://purl.org/dc/elements/1.1/","http://creativecommons.org/ns#","http://www.w3.org/1999/02/22-rdf-syntax-ns#","http://www.serif.com/","http://www.vector.evaxdesign.sk"],e.referencesProps=["clip-path","color-profile","fill","filter","marker-start","marker-mid","marker-end","mask","stroke","style"],e.inheritableAttrs=["clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cursor","direction","dominant-baseline","fill","fill-opacity","fill-rule","font","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-orientation-horizontal","glyph-orientation-vertical","image-rendering","letter-spacing","marker","marker-end","marker-mid","marker-start","paint-order","pointer-events","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-rendering","transform","visibility","word-spacing","writing-mode"],e.presentationNonInheritableGroupAttrs=["display","clip-path","filter","mask","opacity","text-decoration","transform","unicode-bidi"],e.colorsNames={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#f0f",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#639",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},e.colorsShortNames={"#f0ffff":"azure","#f5f5dc":"beige","#ffe4c4":"bisque","#a52a2a":"brown","#ff7f50":"coral","#ffd700":"gold","#808080":"gray","#008000":"green","#4b0082":"indigo","#fffff0":"ivory","#f0e68c":"khaki","#faf0e6":"linen","#800000":"maroon","#000080":"navy","#808000":"olive","#ffa500":"orange","#da70d6":"orchid","#cd853f":"peru","#ffc0cb":"pink","#dda0dd":"plum","#800080":"purple","#f00":"red","#ff0000":"red","#fa8072":"salmon","#a0522d":"sienna","#c0c0c0":"silver","#fffafa":"snow","#d2b48c":"tan","#008080":"teal","#ff6347":"tomato","#ee82ee":"violet","#f5deb3":"wheat"},e.colorsProps=["color","fill","stroke","stop-color","flood-color","lighting-color"]}(Ln={});const{detachNodeFromParent:rl}=it,{editorNamespaces:nl}=Ln;Dn.type="visitor",Dn.name="removeEditorsNSData",Dn.active=!0,Dn.description="removes editors namespaces, elements and attributes",Dn.fn=(e,t)=>{let r=nl;Array.isArray(t.additionalNamespaces)&&(r=[...nl,...t.additionalNamespaces]);const n=[];return{element:{enter:(e,t)=>{if("svg"===e.name)for(const[a,i]of Object.entries(e.attributes))a.startsWith("xmlns:")&&r.includes(i)&&(n.push(a.slice(6)),delete e.attributes[a]);for(const r of Object.keys(e.attributes))if(r.includes(":")){const[t]=r.split(":");n.includes(t)&&delete e.attributes[r]}if(e.name.includes(":")){const[r]=e.name.split(":");n.includes(r)&&rl(e,t)}}}}},(Mn={}).name="cleanupAttrs",Mn.type="visitor",Mn.active=!0,Mn.description="cleanups attributes from newlines, trailing and repeating spaces";const al=/(\S)\r?\n(\S)/g,il=/\r?\n/g,ol=/\s{2,}/g;Mn.fn=(e,t)=>{const{newlines:r=!0,trim:n=!0,spaces:a=!0}=t;return{element:{enter:e=>{for(const t of Object.keys(e.attributes))r&&(e.attributes[t]=e.attributes[t].replace(al,((e,t,r)=>t+" "+r)),e.attributes[t]=e.attributes[t].replace(il,"")),n&&(e.attributes[t]=e.attributes[t].trim()),a&&(e.attributes[t]=e.attributes[t].replace(ol," "))}}}},qn={},In=function(e){this.parentNode=e,this.classNames=new Set;const t=e.attributes.class;null!=t&&(this.addClassValueHandler(),this.setClassValue(t))},In.prototype.addClassValueHandler=function(){Object.defineProperty(this.parentNode.attributes,"class",{get:this.getClassValue.bind(this),set:this.setClassValue.bind(this),enumerable:!0,configurable:!0})},In.prototype.getClassValue=function(){return Array.from(this.classNames).join(" ")},In.prototype.setClassValue=function(e){if(void 0!==e){var t=e.split(" ");this.classNames=new Set(t)}else this.classNames.clear()},In.prototype.add=function(){this.addClassValueHandler(),Object.values(arguments).forEach(this._addSingle.bind(this))},In.prototype._addSingle=function(e){this.classNames.add(e)},In.prototype.remove=function(){this.addClassValueHandler(),Object.values(arguments).forEach(this._removeSingle.bind(this))},In.prototype._removeSingle=function(e){this.classNames.delete(e)},In.prototype.item=function(e){return Array.from(this.classNames)[e]},In.prototype.toggle=function(e,t){(this.contains(e)||!1===t)&&this.classNames.delete(e),this.classNames.add(e)},In.prototype.contains=function(e){return this.classNames.has(e)},Rn=In,function(e,t){e.exports=function(){function e(e){return{prev:null,next:null,data:e}}function t(e,t,r){var n;return null!==Vs?(n=Vs,Vs=Vs.cursor,n.prev=t,n.next=r,n.cursor=e.cursor):n={prev:t,next:r,cursor:e.cursor},e.cursor=n,n}function r(e){var t=e.cursor;e.cursor=t.cursor,t.prev=null,t.next=null,t.cursor=Vs,Vs=t}function n(e,t){function r(e,t){return a.slice(e,t).map((function(t,r){for(var n=e+r+1+"";n.length100&&(u=o-60+3,o=58),n=s;n<=l;n++)n>=0&&n0&&a[n].length>u?"…":"")+a[n].substr(u,98)+(a[n].length>u+100-1?"…":""));return[r(s,i),Array(o+c+2).join("-")+"^",r(i,l)].filter(Boolean).join("\n")}function a(e){return e>=48&&e<=57}function i(e){return e>=65&&e<=90}function o(e){return e>=97&&e<=122}function s(e){return i(e)||o(e)}function l(e){return e>=128}function c(e){return s(e)||l(e)||95===e}function u(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function p(e){return 10===e||13===e||12===e}function d(e){return p(e)||32===e||9===e}function h(e,t){return 92===e&&!p(t)&&0!==t}function f(e){return e<128?xt[e]:f.NameStart}function m(e,t){return t";break;case"Property":a="<'"+e.name+"'>";break;case"Keyword":a=e.name;break;case"AtKeyword":a="@"+e.name;break;case"Function":a=e.name+"(";break;case"String":case"Token":a=e.value;break;case"Comma":a=",";break;default:throw Error("Unknown node type `"+e.type+"`")}return t(a,e)}function w(e,t){const r=e&&e.loc&&e.loc[t];return r?"line"in r?S(r):r:null}function S({offset:e,line:t,column:r},n){const a={offset:e,line:t,column:r};if(n){const e=n.split(/\n|\r\n?|\f/);a.offset+=n.length,a.line+=e.length-1,a.column=1===e.length?a.column+n.length:e.pop().length+1}return a}function T(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function A(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){var r=e.indexOf("-",t+2);if(-1!==r)return e.substring(t,r+1)}return""}function C(e,t){function r(t){return t=e.length?void(p>24,l[c]=f,l[f++]=c;f0?6:0;if(!vr(i))return 0;if(++a>6)return 0}return a}function q(e,t,r){if(!e)return 0;for(;D(r(t),63);){if(++e>6)return 0;t++}return t}function I(e,t){return te.max)return!0}return!1}function F(e,t){var r=e.index,n=0;do{if(n++,e.balance<=r)break}while(e=t(n));return n}function G(e){return function(t,r,n){return null===t?0:t.type===Dr.Function&&_(t.value,Mr)?F(t,r):e(t,r,n)}}function B(e){return function(t){return null===t||t.type!==e?0:1}}function U(e){return function(t,r,n){var a,i,o;return null===t||t.type!==Dr.Dimension?0:(a=Or(t.value,0),null!==e&&(o=-1!==(i=t.value.indexOf("\\",a))&&z(t.value,i)?t.value.substring(a,i):t.value.substr(a),!1===e.hasOwnProperty(o.toLowerCase()))||j(n,t.value,a)?0:1)}}function V(e){return"function"!=typeof e&&(e=function(){return 0}),function(t,r,n){return null!==t&&t.type===Dr.Number&&0===Number(t.value)?1:e(t,r,n)}}function H(e){return e.substringToPos(e.findWsEnd(e.pos))}function W(e){var t,r;for(t=e.pos;t=128||0===zr[r]);t++);return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Y(e){var t,r;for(t=e.pos;t57);t++);return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function X(e){var t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function $(e){var t,r=null;return e.eat(123),t=Y(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(r=Y(e))):r=t,e.eat(125),{min:Number(t),max:r?Number(r):0}}function Q(e,t){var r=function(e){var t=null,r=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,r=!0,t=123===e.charCode()?$(e):{min:1,max:0};break;case 123:t=$(e);break;default:return null}return{type:"Multiplier",comma:r,min:t.min,max:t.max,term:null}}(e);return null!==r?(r.term=t,r):t}function Z(e){var t=e.peek();return""===t?null:{type:"Token",value:t}}function K(e,t){function r(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}var n,a,i,o;for(t=Object.keys(t).sort((function(e,t){return jr[e]-jr[t]}));t.length>0;){for(n=t.shift(),a=0,i=0;a1&&(e.splice(i,a-i,r(e.slice(i,a),n)),a=i+1),i=-1));-1!==i&&t.length&&e.splice(i,a-i,r(e.slice(i,a),n))}return n}function J(e){for(var t,r=[],n={},a=null,i=e.pos;t=ee(e);)"Spaces"!==t.type&&("Combinator"===t.type?(null!==a&&"Combinator"!==a.type||(e.pos=i,e.error("Unexpected combinator")),n[t.value]=!0):null!==a&&"Combinator"!==a.type&&(n[" "]=!0,r.push({type:"Combinator",value:" "})),r.push(t),a=t,i=e.pos);return null!==a&&"Combinator"===a.type&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:r,combinator:K(r,n)||" ",disallowEmpty:!1,explicit:!1}}function ee(e){var t=e.charCode();if(t<128&&1===zr[t])return function(e){var t;return t=W(e),40===e.charCode()?(e.pos++,{type:"Function",name:t}):Q(e,{type:"Keyword",name:t})}(e);switch(t){case 93:case 42:case 43:case 63:case 35:case 33:break;case 91:return Q(e,function(e){var t;return e.eat(91),t=J(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){var t;return e.eat(60),e.eat(39),t=W(e),e.eat(39),e.eat(62),Q(e,{type:"Property",name:t})}(e):function(e){var t,r=null;return e.eat(60),t=W(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(H(e),r=function(e){var t=null,r=null,n=1;return e.eat(91),45===e.charCode()&&(e.peek(),n=-1),-1==n&&8734===e.charCode()?e.peek():t=n*Number(Y(e)),H(e),e.eat(44),H(e),8734===e.charCode()?e.peek():(n=1,45===e.charCode()&&(e.peek(),n=-1),r=n*Number(Y(e))),e.eat(93),null===t&&null===r?null:{type:"Range",min:t,max:r}}(e)),e.eat(62),Q(e,{type:"Type",name:t,opts:r})}(e);case 124:return{type:"Combinator",value:e.substringToPos(124===e.nextCharCode()?e.pos+2:e.pos+1)};case 38:return e.pos++,e.eat(38),{type:"Combinator",value:"&&"};case 44:return e.pos++,{type:"Comma"};case 39:return Q(e,{type:"String",value:X(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:H(e)};case 64:return(t=e.nextCharCode())<128&&1===zr[t]?(e.pos++,{type:"AtKeyword",name:W(e)}):Z(e);case 123:if((t=e.nextCharCode())<48||t>57)return Z(e);break;default:return Z(e)}}function te(e){var t=new _r(e),r=J(t);return t.pos!==e.length&&t.error("Unexpected input"),1===r.terms.length&&"Group"===r.terms[0].type&&(r=r.terms[0]),r}function re(e){return"function"==typeof e?e:Gr}function ne(e,t){var r=[],n=0,a=0,i=t?t[a].node:null;for(cr(e,Ur);!Ur.eof;){if(t)for(;a2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function oe(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&ie(e.name)}function se(e){if("function"==typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=function e(t,r,n){var a,i,o,s,l,c;switch(t){case" ":for(a=Hr,i=r.length-1;i>=0;i--)a=ae(l=r[i],a,Wr);return a;case"|":for(a=Wr,o=null,i=r.length-1;i>=0;i--)oe(l=r[i])&&(null===o&&i>0&&oe(r[i-1])&&(a=ae({type:"Enum",map:o=Object.create(null)},Hr,a)),null!==o)&&(s=(ie(l.name)?l.name.slice(0,-1):l.name).toLowerCase())in o==0?o[s]=l:(o=null,a=ae(l,Hr,a));return a;case"&&":if(r.length>5)return{type:"MatchOnce",terms:r,all:!0};for(a=Wr,i=r.length-1;i>=0;i--)l=r[i],c=r.length>1?e(t,r.filter((function(e){return e!==l})),!1):Hr,a=ae(l,c,a);return a;case"||":if(r.length>5)return{type:"MatchOnce",terms:r,all:!1};for(a=n?Hr:Wr,i=r.length-1;i>=0;i--)l=r[i],c=r.length>1?e(t,r.filter((function(e){return e!==l})),!0):Hr,a=ae(l,c,a);return a}}(e.combinator,e.terms.map(se),!1);return e.disallowEmpty&&(t=ae(t,Yr,Wr)),t;case"Multiplier":return function(e){var t,r=Hr,n=se(e.term);if(0===e.max)n=ae(n,Yr,Wr),(r=ae(n,null,Wr)).then=ae(Hr,Hr,r),e.comma&&(r.then.else=ae({type:"Comma",syntax:e},r,Wr));else for(t=e.min||1;t<=e.max;t++)e.comma&&r!==Hr&&(r=ae({type:"Comma",syntax:e},r,Wr)),r=ae(n,ae(Hr,Hr,r),Wr);if(0===e.min)r=ae(Hr,Hr,r);else for(t=0;t=65&&n<=90&&(n|=32),n!==t.charCodeAt(r))return!1;return!0}function ce(e){return null===e||e.type===rn.Comma||e.type===rn.Function||e.type===rn.LeftParenthesis||e.type===rn.LeftSquareBracket||e.type===rn.LeftCurlyBracket||function(e){return e.type===rn.Delim&&"?"!==e.value}(e)}function ue(e){return null===e||e.type===rn.RightParenthesis||e.type===rn.RightSquareBracket||e.type===rn.RightCurlyBracket||e.type===rn.Delim}function pe(e){function t(e){return null!==e&&("Type"===e.type||"Property"===e.type||"Keyword"===e.type)}var r=null;return null!==this.matched&&function n(a){if(Array.isArray(a.match)){for(var i=0;i=0}function fe(e){return!!e&&he(e.offset)&&he(e.line)&&he(e.column)}function me(e,t){return function(r,n){var a,i,o,s;if(!r||r.constructor!==Object)return n(r,"Type of node should be an Object");for(a in r)if(i=!0,!1!==sn.call(r,a)){if("type"===a)r.type!==e&&n(r,"Wrong node type `"+r.type+"`, expected `"+e+"`");else if("loc"===a){if(null===r.loc)continue;if(r.loc&&r.loc.constructor===Object)if("string"!=typeof r.loc.source)a+=".source";else if(fe(r.loc.start)){if(fe(r.loc.end))continue;a+=".end"}else a+=".start";i=!1}else if(t.hasOwnProperty(a))for(o=0,i=!1;!i&&o");else{if(!Array.isArray(o))throw Error("Wrong value `"+o+"` in `"+e+"."+r+"` structure definition");n.push("List")}c[r]=n.join(" | ")}return{docs:c,check:me(e,l)}}function be(e,t,r){var n,a={};for(n in e)e[n].syntax&&(a[n]=r?e[n].syntax:jt(e[n].syntax,{compact:t}));return a}function ye(e,t,r){const n={};for(const[a,i]of Object.entries(e))n[a]={prelude:i.prelude&&(r?i.prelude.syntax:jt(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&be(i.descriptors,t,r)};return n}function ve(e,t,r){return{matched:e,iterations:r,error:t,getTrace:an.getTrace,isType:an.isType,isProperty:an.isProperty,isKeyword:an.isKeyword}}function ke(e,t,r,n){var a,i=function(e,t){return"string"==typeof e?ne(e,null):t.generate(e,Vr)}(r,e.syntax);return function(e){for(var t=0;t0&&this.scanner.skip(e),0===t&&43!==(r=this.scanner.source.charCodeAt(this.scanner.tokenStart))&&45!==r&&this.error("Number sign is expected"),ze.call(this,0!==t),45===t?"-"+this.consume(Yn):this.consume(Yn)}function Ge(){return this.scanner.tokenIndex>0&&this.scanner.lookupType(-1)===Zn?this.scanner.tokenIndex>1?this.scanner.getTokenStart(this.scanner.tokenIndex-1):this.scanner.firstCharOffset:this.scanner.tokenStart}function Be(){return 0}function Ue(e){return this.Raw(e,na.leftCurlyBracketOrSemicolon,!0)}function Ve(){for(var e,t=1;e=this.scanner.lookupType(t);t++){if(e===sa)return!0;if(e===oa||e===aa)return!1}return!1}function He(){this.scanner.eof&&this.error("Unexpected end of input");var e=this.scanner.tokenStart,t=!1,r=!0;return this.scanner.isDelim(42)?(t=!0,r=!1,this.scanner.next()):this.scanner.isDelim(124)||this.eat(fa),this.scanner.isDelim(124)?61!==this.scanner.source.charCodeAt(this.scanner.tokenStart+1)?(this.scanner.next(),this.eat(fa)):t&&this.error("Identifier is expected",this.scanner.tokenEnd):t&&this.error("Vertical line is expected"),r&&this.scanner.tokenType===ga&&(this.scanner.next(),this.eat(fa)),{type:"Identifier",loc:this.getLocation(e,this.scanner.tokenStart),name:this.scanner.substrToCursor(e)}}function We(){var e=this.scanner.tokenStart,t=this.scanner.source.charCodeAt(e);return 61!==t&&126!==t&&94!==t&&36!==t&&42!==t&&124!==t&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.scanner.next(),61!==t&&(this.scanner.isDelim(61)||this.error("Equal sign is expected"),this.scanner.next()),this.scanner.substrToCursor(e)}function Ye(e){return this.Raw(e,null,!0)}function Xe(){return this.parseWithFallback(this.Rule,Ye)}function $e(e){return this.Raw(e,xa.semicolonIncluded,!0)}function Qe(){if(this.scanner.tokenType===Ta)return $e.call(this,this.scanner.tokenIndex);var e=this.parseWithFallback(this.Declaration,$e);return this.scanner.tokenType===Ta&&this.scanner.next(),e}function Ze(e){return this.Raw(e,Ha.exclamationMarkOrSemicolon,!0)}function Ke(e){return this.Raw(e,Ha.exclamationMarkOrSemicolon,!1)}function Je(){var e=this.scanner.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.scanner.eof&&this.scanner.tokenType!==$a&&!1===this.scanner.isDelim(33)&&!1===this.scanner.isBalanceEdge(e)&&this.error(),t}function et(){var e=this.scanner.tokenStart;if(this.scanner.tokenType===Qa)switch(this.scanner.source.charCodeAt(this.scanner.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.scanner.next();break;case 47:this.scanner.next(),this.scanner.isDelim(47)&&this.scanner.next()}return this.scanner.tokenType===Ya?this.eat(Ya):this.eat(Wa),this.scanner.substrToCursor(e)}function tt(){this.eat(Qa),this.scanner.skipSC();var e=this.consume(Wa);return"important"===e||e}function rt(e){return this.Raw(e,ei.semicolonIncluded,!0)}function nt(){var e,t,r;for(this.scanner.skipWS(),e=this.consume(no),t=0;t6&&this.error("Too many hex digits",r)}return this.scanner.next(),n}function ct(e){for(var t=0;this.scanner.isDelim(63);)++t>e&&this.error("Too many question marks"),this.scanner.next()}function ut(e){this.scanner.source.charCodeAt(this.scanner.tokenStart)!==e&&this.error(Eo[e]+" is expected")}function pt(){var e=0;return this.scanner.isDelim(43)?(this.scanner.next(),this.scanner.tokenType===Po?void((e=lt.call(this,0,!0))>0&&ct.call(this,6-e)):this.scanner.isDelim(63)?(this.scanner.next(),void ct.call(this,5)):void this.error("Hex digit or question mark is expected")):this.scanner.tokenType===No?(ut.call(this,43),e=lt.call(this,1,!0),this.scanner.isDelim(63)?void ct.call(this,6-e):this.scanner.tokenType===Oo||this.scanner.tokenType===No?(ut.call(this,45),void lt.call(this,1,!1)):void 0):this.scanner.tokenType===Oo?(ut.call(this,43),void((e=lt.call(this,1,!0))>0&&ct.call(this,6-e))):void this.error()}function dt(){return this.createSingleNodeList(this.Raw(this.scanner.tokenIndex,null,!1))}function ht(){return this.scanner.skipSC(),this.scanner.tokenType===Ds&&this.lookupNonWSType(1)===Ms?this.createSingleNodeList(this.Declaration()):ft.call(this)}function ft(){var e,t=this.createList(),r=null;this.scanner.skipSC();e:for(;!this.scanner.eof;){switch(this.scanner.tokenType){case Ns:r=this.WhiteSpace();continue;case Os:this.scanner.next();continue;case Ls:e=this.Function(dt,this.scope.AtrulePrelude);break;case Ds:e=this.Identifier();break;case qs:e=this.Parentheses(ht,this.scope.AtrulePrelude);break;default:break e}null!==r&&(t.push(r),r=null),t.push(e)}return t}var mt,gt,bt,yt,vt,kt,xt,wt,St,Tt,At,Ct,Et,Pt,Nt,Ot,Dt,Lt,Mt,qt,It,Rt,_t,zt,jt,Ft,Gt,Bt,Ut,Vt,Ht,Wt,Yt,Xt,$t,Qt,Zt,Kt,Jt,er,tr,rr,nr,ar,ir,or,sr,lr,cr,ur,pr,dr,hr,fr,mr,gr,br,yr,vr,kr,xr,wr,Sr,Tr,Ar,Cr,Er,Pr,Nr,Or,Dr,Lr,Mr,qr,Ir,Rr,_r,zr,jr,Fr,Gr,Br,Ur,Vr,Hr,Wr,Yr,Xr,$r,Qr,Zr,Kr,Jr,en,tn,rn,nn,an,on,sn,ln,cn,un,pn,dn,hn,fn,mn,gn,bn,yn,vn,kn,xn,wn,Sn,Tn,An,Cn,En,Pn,Nn,On,Dn,Ln,Mn,qn,In,Rn,_n,zn,jn,Fn,Gn,Bn,Un,Vn,Hn,Wn,Yn,Xn,$n,Qn,Zn,Kn,Jn,ea,ta,ra,na,aa,ia,oa,sa,la,ca,ua,pa,da,ha,fa,ma,ga,ba,ya,va,ka,xa,wa,Sa,Ta,Aa,Ca,Ea,Pa,Na,Oa,Da,La,Ma,qa,Ia,Ra,_a,za,ja,Fa,Ga,Ba,Ua,Va,Ha,Wa,Ya,Xa,$a,Qa,Za,Ka,Ja,ei,ti,ri,ni,ai,ii,oi,si,li,ci,ui,pi,di,hi,fi,mi,gi,bi,yi,vi,ki,xi,wi,Si,Ti,Ai,Ci,Ei,Pi,Ni,Oi,Di,Li,Mi,qi,Ii,Ri,_i,zi,ji,Fi,Gi,Bi,Ui,Vi,Hi,Wi,Yi,Xi,$i,Qi,Zi,Ki,Ji,eo,to,ro,no,ao,io,oo,so,lo,co,uo,po,ho,fo,mo,go,bo,yo,vo,ko,xo,wo,So,To,Ao,Co,Eo,Po,No,Oo,Do,Lo,Mo,qo,Io,Ro,_o,zo,jo,Fo,Go,Bo,Uo,Vo,Ho,Wo,Yo,Xo,$o,Qo,Zo,Ko,Jo,es,ts,rs,ns,as,is,os,ss,ls,cs,us,ps,ds,hs,fs,ms,gs,bs,ys,vs,ks,xs,ws,Ss,Ts,As,Cs,Es,Ps,Ns,Os,Ds,Ls,Ms,qs,Is,Rs,_s,zs,js,Fs,Gs,Bs,Us,Vs=null,Hs=function(){this.cursor=null,this.head=null,this.tail=null};for(Hs.createItem=e,Hs.prototype.createItem=e,Hs.prototype.updateCursors=function(e,t,r,n){for(var a=this.cursor;null!==a;)a.prev===e&&(a.prev=t),a.next===r&&(a.next=n),a=a.cursor},Hs.prototype.getSize=function(){for(var e=0,t=this.head;t;)e++,t=t.next;return e},Hs.prototype.fromArray=function(t){var r,n,a=null;for(this.head=null,r=0;r=65&&e<=70||e>=97&&e<=102},isUppercaseLetter:i,isLowercaseLetter:o,isLetter:s,isNonAscii:l,isNameStart:c,isName:function(e){return c(e)||a(e)||45===e},isNonPrintable:u,isNewline:p,isWhiteSpace:d,isValidEscape:h,isIdentifierStart:function(e,t,r){return 45===e?c(t)||45===t||h(t,r):!!c(e)||92===e&&h(e,t)},isNumberStart:function(e,t,r){return 43===e||45===e?a(t)?2:46===t&&a(r)?3:0:46===e?a(t)?2:0:a(e)?1:0},isBOM:function(e){return 65279===e||65534===e?1:0},charCodeCategory:f},Tt=St.isDigit,At=St.isHexDigit,Ct=St.isUppercaseLetter,Et=St.isName,Pt=St.isWhiteSpace,Nt=St.isValidEscape,Ot={consumeEscaped:v,consumeName:function(e,t){for(;te.length)return!1;for(a=t;a=0&&Pt(e.charCodeAt(t));t--);return t+1},findWhiteSpaceEnd:function(e,t){for(;t>24:qt},lookupOffset:function(e){return(e+=this.tokenIndex)0?e>24,this.source,a)){case 1:break e;case 2:n++;break e;default:this.balance[r]===n&&(n=r),a=16777215&this.offsetAndType[n]}return n-this.tokenIndex},isBalanceEdge:function(e){return this.balance[this.tokenIndex]>24===It;e++,t++);t>0&&this.skip(t)},skipSC:function(){for(;this.tokenType===It||this.tokenType===Rt;)this.next()},skip:function(e){var t=this.tokenIndex+e;t>24,this.tokenEnd=16777215&t):(this.tokenIndex=this.tokenCount,this.next())},next:function(){var e=this.tokenIndex+1;e>24,this.tokenEnd=16777215&e):(this.tokenIndex=this.tokenCount,this.eof=!0,this.tokenType=qt,this.tokenStart=this.tokenEnd=this.source.length)},forEachToken(e){var t,r,n,a,i;for(t=0,r=this.firstCharOffset;t>24,n,i,t)},dump(){var e=Array(this.tokenCount);return this.forEachToken(((t,r,n,a)=>{e[a]={idx:a,type:Lt[t],chunk:this.source.substring(r,n),balance:this.balance[a]}})),e}},zt=_t,jt=function(e,t){var r=k,n=!1,a=!1;return"function"==typeof t?r=t:t&&(n=!!t.forceBraces,a=!!t.compact,"function"==typeof t.decorate&&(r=t.decorate)),x(e,r,n,a)};const Ws={offset:0,line:1,column:1};Ft=function(e,t){const r=gt("SyntaxReferenceError",e+(t?" `"+t+"`":""));return r.reference=t,r},Gt=function(e,t,r,n){const a=gt("SyntaxMatchError",e),{css:i,mismatchOffset:o,mismatchLength:s,start:l,end:c}=function(e,t){const r=e.tokens,n=e.longestMatch,a=n1?(o=w(i||t,"end")||S(Ws,p),s=S(o)):(o=w(i,"start")||S(w(t,"start")||Ws,p.slice(0,l)),s=w(i,"end")||S(o,p.substr(l,c))),{css:p,mismatchOffset:l,mismatchLength:c,start:o,end:s}}(n,r);return a.rawMessage=e,a.syntax=t?jt(t):"",a.css=i,a.mismatchOffset=o,a.mismatchLength=s,a.message=e+"\n syntax: "+a.syntax+"\n value: "+(i||"")+"\n --------"+Array(a.mismatchOffset+1).join("-")+"^",Object.assign(a,l),a.loc={source:r&&r.loc&&r.loc.source||"",start:l,end:c},a},Bt=Object.prototype.hasOwnProperty,Ut=Object.create(null),Vt=Object.create(null),Ht={keyword:function(e){var t,r,n;return Bt.call(Ut,e)?Ut[e]:(t=e.toLowerCase(),Bt.call(Ut,t)?Ut[e]=Ut[t]:(n=(r=T(t,0))?"":A(t,0),Ut[e]=Object.freeze({basename:t.substr(n.length),name:t,vendor:n,prefix:n,custom:r})))},property:function(e){var t,r,n,a,i;return Bt.call(Vt,e)?Vt[e]:(t=e,"/"===(r=e[0])?r="/"===e[1]?"//":"/":"_"!==r&&"*"!==r&&"$"!==r&&"#"!==r&&"+"!==r&&"&"!==r&&(r=""),!(n=T(t,r.length))&&(t=t.toLowerCase(),Bt.call(Vt,t))?Vt[e]=Vt[t]:(a=n?"":A(t,r.length),i=t.substr(0,r.length+a.length),Vt[e]=Object.freeze({basename:t.substr(i.length),name:t.substr(r.length),hack:r,vendor:a,prefix:i,custom:n})))},isCustomProperty:T,vendorPrefix:A},Wt="undefined"!=typeof Uint32Array?Uint32Array:Array,Yt=function(e,t){return null===e||e.lengthe.index||e.balancee.index||e.balance#|<'c'>*||e() f{2} /,(% g#{1,2} h{2,})]!"),Fr=te,Gr=function(){},Br=function(e,t,r){var n=Gr,a=Gr;if("function"==typeof t?n=t:t&&(n=re(t.enter),a=re(t.leave)),n===Gr&&a===Gr)throw Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(n.call(r,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw Error("Unknown type: "+t.type)}a.call(r,t)}(e)},Ur=new zt,Vr={decorator:function(e){var t=null,r={len:0,node:null},n=[r],a="";return{children:e.children,node:function(r){var n=t;t=r,e.node.call(this,r),t=n},chunk:function(e){a+=e,r.node!==t?n.push({len:e.length,node:t}):r.len+=e.length},result:function(){return ne(a,n)}}}},Xr=Hr={type:"Match"},$r=Wr={type:"Mismatch"},Qr=Yr={type:"DisallowEmpty"},Zr=function(e,t){return"string"==typeof e&&(e=Fr(e)),{type:"MatchGraph",match:se(e),syntax:t||null,source:e}},Kr=Object.prototype.hasOwnProperty,Jr=Xr,en=$r,tn=Qr,rn=kt.TYPE,nn=function(e,t,r){var n,a,i,o=function(e,t,r){function n(){do{C++,A=CE&&(E=C)}function c(){P=2===P.type?P.prev:{type:3,syntax:v.syntax,token:P.token,prev:P},v=v.prev}var u,p,d,h,f,m,g,b,y,v=null,k=null,x=null,w=null,S=0,T=null,A=null,C=-1,E=0,P={type:0,syntax:null,token:null,prev:null};for(n();null===T&&++S<15e3;)switch(t.type){case"Match":if(null===k){if(null!==A&&(C!==e.length-1||"\\0"!==A.value&&"\\9"!==A.value)){t=en;break}T="Match";break}if((t=k.nextState)===tn){if(k.matchStack===P){t=en;break}t=Jr}for(;k.syntaxStack!==v;)c();k=k.prev;break;case"Mismatch":if(null!==w&&!1!==w)(null===x||C>x.tokenIndex)&&(x=w,w=!1);else if(null===x){T="Mismatch";break}t=x.nextState,k=x.thenStack,v=x.syntaxStack,P=x.matchStack,C=x.tokenIndex,A=CC){for(;C":"<'"+t.name+"'>"));if(!1!==w&&null!==A&&"Type"===t.type&&("custom-ident"===t.name&&A.type===rn.Ident||"length"===t.name&&"0"===A.value)){null===w&&(w=i(t,x)),t=en;break}v={syntax:t.syntax,opts:t.syntax.opts||null!==v&&v.opts||null,prev:v},P={type:2,syntax:t.syntax,token:P.token,prev:P},t=m.match;break;case"Keyword":if(g=t.name,null!==A&&(-1!==(b=A.value).indexOf("\\")&&(b=b.replace(/\\[09].*$/,"")),le(b,g))){l(),t=Jr;break}t=en;break;case"AtKeyword":case"Function":if(null!==A&&le(A.value,t.name)){l(),t=Jr;break}t=en;break;case"Token":if(null!==A&&A.value===t.value){l(),t=Jr;break}t=en;break;case"Comma":null!==A&&A.type===rn.Comma?ce(P.token)?t=en:(l(),t=ue(A)?en:Jr):t=ce(P.token)||ue(A)?Jr:en;break;case"String":for(y="",h=C;h"),mn=function(e,t,r){var n;if(this.valueCommonSyntax=hn,this.syntax=t,this.generic=!1,this.atrules={},this.properties={},this.types={},this.structure=r||dn(e),e){if(e.types)for(n in e.types)this.addType_(n,e.types[n]);if(e.generic)for(n in this.generic=!0,qr)this.addType_(n,qr[n]);if(e.atrules)for(n in e.atrules)this.addAtrule_(n,e.atrules[n]);if(e.properties)for(n in e.properties)this.addProperty_(n,e.properties[n])}},mn.prototype={structure:{},checkStructure:function(e){function t(e,t){n.push({node:e,message:t})}var r=this.structure,n=[];return this.syntax.walk(e,(function(e){r.hasOwnProperty(e.type)?r[e.type].check(e,t):t(e,"Unknown node type `"+e.type+"`")})),!!n.length&&n},createDescriptor:function(e,t,r,n=null){var a={type:t,name:r},i={type:t,name:r,parent:n,syntax:null,match:null};return"function"==typeof e?i.match=un(e,a):("string"==typeof e?Object.defineProperty(i,"syntax",{get:function(){return Object.defineProperty(i,"syntax",{value:Fr(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get:function(){return Object.defineProperty(i,"match",{value:un(i.syntax,a)}),i.match}})),i},addAtrule_:function(e,t){t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce(((r,n)=>(r[n]=this.createDescriptor(t.descriptors[n],"AtruleDescriptor",n,e),r)),{}):null})},addProperty_:function(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))},addType_:function(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e),t===qr["-ms-legacy-expression"]&&(this.valueCommonSyntax=fn))},checkAtruleName:function(e){if(!this.getAtrule(e))return new ln("Unknown at-rule","@"+e)},checkAtrulePrelude:function(e,t){let r=this.checkAtruleName(e);if(r)return r;var n=this.getAtrule(e);return!n.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):n.prelude&&!t?new SyntaxError("At-rule `@"+e+"` should contain a prelude"):void 0},checkAtruleDescriptorName:function(e,t){let r=this.checkAtruleName(e);if(r)return r;var n=this.getAtrule(e),a=Ht.keyword(t);return n.descriptors?n.descriptors[a.name]||n.descriptors[a.basename]?void 0:new ln("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")},checkPropertyName:function(e){return Ht.property(e).custom?Error("Lexer matching doesn't applicable for custom properties"):this.getProperty(e)?void 0:new ln("Unknown property",e)},matchAtrulePrelude:function(e,t){var r=this.checkAtrulePrelude(e,t);return r?ve(null,r):t?ke(this,this.getAtrule(e).prelude,t,!1):ve(null,null)},matchAtruleDescriptor:function(e,t,r){var n,a,i=this.checkAtruleDescriptorName(e,t);return i?ve(null,i):(n=this.getAtrule(e),a=Ht.keyword(t),ke(this,n.descriptors[a.name]||n.descriptors[a.basename],r,!1))},matchDeclaration:function(e){return"Declaration"!==e.type?ve(null,Error("Not a Declaration node")):this.matchProperty(e.property,e.value)},matchProperty:function(e,t){var r=this.checkPropertyName(e);return r?ve(null,r):ke(this,this.getProperty(e),t,!0)},matchType:function(e,t){var r=this.getType(e);return r?ke(this,r,t,!1):ve(null,new ln("Unknown type",e))},match:function(e,t){return"string"==typeof e||e&&e.type?("string"!=typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),ke(this,e,t,!1)):ve(null,new ln("Bad syntax"))},findValueFragments:function(e,t,r,n){return on.matchFragments(this,t,this.matchProperty(e,t),r,n)},findDeclarationValueFragments:function(e,t,r){return on.matchFragments(this,e.value,this.matchDeclaration(e),t,r)},findAllFragments:function(e,t,r){var n=[];return this.syntax.walk(e,{visit:"Declaration",enter:function(e){n.push.apply(n,this.findDeclarationValueFragments(e,t,r))}.bind(this)}),n},getAtrule:function(e,t=!0){var r=Ht.keyword(e);return(r.vendor&&t?this.atrules[r.name]||this.atrules[r.basename]:this.atrules[r.name])||null},getAtrulePrelude:function(e,t=!0){const r=this.getAtrule(e,t);return r&&r.prelude||null},getAtruleDescriptor:function(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null},getProperty:function(e,t=!0){var r=Ht.property(e);return(r.vendor&&t?this.properties[r.name]||this.properties[r.basename]:this.properties[r.name])||null},getType:function(e){return this.types.hasOwnProperty(e)?this.types[e]:null},validate:function(){function e(t,a,i,o){if(i.hasOwnProperty(a))return i[a];i[a]=!1,null!==o.syntax&&Br(o.syntax,(function(o){if("Type"===o.type||"Property"===o.type){var s="Type"===o.type?t.types:t.properties,l="Type"===o.type?r:n;s.hasOwnProperty(o.name)&&!e(t,o.name,l,s[o.name])||(i[a]=!0)}}),this)}var t,r={},n={};for(t in this.types)e(this,t,r,this.types[t]);for(t in this.properties)e(this,t,n,this.properties[t]);return r=Object.keys(r).filter((function(e){return r[e]})),n=Object.keys(n).filter((function(e){return n[e]})),r.length||n.length?{types:r,properties:n}:null},dump:function(e,t){return{generic:this.generic,types:be(this.types,!t,e),properties:be(this.properties,!t,e),atrules:ye(this.atrules,!t,e)}},toString:function(){return JSON.stringify(this.dump())}},gn=mn,bn={SyntaxError:Ir,parse:Fr,generate:jt,walk:Br},yn=cr.isBOM,(vn=function(){this.lines=null,this.columns=null,this.linesAndColumnsComputed=!1}).prototype={setSource:function(e,t,r,n){this.source=e,this.startOffset=void 0===t?0:t,this.startLine=void 0===r?1:r,this.startColumn=void 0===n?1:n,this.linesAndColumnsComputed=!1},ensureLinesAndColumnsComputed:function(){this.linesAndColumnsComputed||(function(e,t){var r,n,a,i,o,s,l;for(r=t.length,n=Yt(e.lines,r),a=e.startLine,i=Yt(e.columns,r),o=e.startColumn,s=t.length>0?yn(t.charCodeAt(0)):0;s",needPositions:!1,onParseError:el,onParseErrorThrow:!1,parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Zs,createList:function(){return new mt},createSingleNodeList:function(e){return(new mt).appendData(e)},getFirstListNode:function(e){return e&&e.first()},getLastListNode:function(e){return e.last()},parseWithFallback:function(e,t){var r,n=this.scanner.tokenIndex;try{return e.call(this)}catch(e){if(this.onParseErrorThrow)throw e;return r=t.call(this,n),this.onParseErrorThrow=!0,this.onParseError(e,r),this.onParseErrorThrow=!1,r}},lookupNonWSType:function(e){do{var t=this.scanner.lookupType(e++);if(t!==nl)return t}while(0!==t);return 0},eat:function(e){if(this.scanner.tokenType!==e){var t=this.scanner.tokenStart,r=rl[e]+" is expected";switch(e){case il:this.scanner.tokenType===ol||this.scanner.tokenType===sl?(t=this.scanner.tokenEnd-1,r="Identifier is expected but function found"):r="Identifier is expected";break;case ll:this.scanner.isDelim(35)&&(this.scanner.next(),t++,r="Name is expected");break;case cl:this.scanner.tokenType===ul&&(t=this.scanner.tokenEnd,r="Percent sign is expected");break;default:this.scanner.source.charCodeAt(this.scanner.tokenStart)===e&&(t+=1)}this.error(r,t)}this.scanner.next()},consume:function(e){var t=this.scanner.getTokenValue();return this.eat(e),t},consumeFunctionName:function(){var e=this.scanner.source.substring(this.scanner.tokenStart,this.scanner.tokenEnd-1);return this.eat(ol),e},getLocation:function(e,t){return this.needPositions?this.locationMap.getLocationRange(e,t,this.filename):null},getLocationFromList:function(e){if(this.needPositions){var t=this.getFirstListNode(e),r=this.getLastListNode(e);return this.locationMap.getLocationRange(null!==t?t.loc.start.offset-this.locationMap.startOffset:this.scanner.tokenStart,null!==r?r.loc.end.offset-this.locationMap.startOffset:this.scanner.tokenStart,this.filename)}return null},error:function(e,t){var r=void 0!==t&&t",r.needPositions=!!t.positions,r.onParseError="function"==typeof t.onParseError?t.onParseError:el,r.onParseErrorThrow=!1,r.parseAtrulePrelude=!("parseAtrulePrelude"in t)||!!t.parseAtrulePrelude,r.parseRulePrelude=!("parseRulePrelude"in t)||!!t.parseRulePrelude,r.parseValue=!("parseValue"in t)||!!t.parseValue,r.parseCustomProperty="parseCustomProperty"in t&&!!t.parseCustomProperty,!r.context.hasOwnProperty(a))throw Error("Unknown context `"+a+"`");return"function"==typeof i&&r.scanner.forEachToken(((t,n,a)=>{if(t===al){const t=r.getLocation(n,a),o=Js(e,a-2,a,"*/")?e.slice(n+2,a-2):e.slice(n+2,a);i(o,t)}})),n=r.context[a].call(r,t),r.scanner.eof||r.error(),n}},xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),wn=function(e){if(0<=e&&e>>=5)>0&&(t|=32),r+=wn(t)}while(n>0);return r},Tn=function(e,t){return function(e,t){function r(e){var t=e.match(c);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function n(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var a,i,o,s,l,c=e,u=r(e);if(u){if(!u.path)return e;c=u.path}for(i=t.isAbsolute(c),s=0,l=(o=c.split(/\/+/)).length-1;l>=0;l--)"."===(a=o[l])?o.splice(l,1):".."===a?s++:s>0&&(""===a?(o.splice(l+1,s),s=0):(o.splice(l,2),s--));return""===(c=o.join("/"))&&(c=i?"/":"."),u?(u.path=c,n(u)):c}function i(e,t){var i,o,s;return""===e&&(e="."),""===t&&(t="."),i=r(t),(o=r(e))&&(e=o.path||"/"),i&&!i.scheme?(o&&(i.scheme=o.scheme),n(i)):i||t.match(u)?t:!o||o.host||o.path?(s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t),o?(o.path=s,n(o)):s):(o.host=t,n(o))}function o(e){return e}function s(e){var t,r;if(!e)return!1;if((t=e.length)<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function l(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}var c,u,p;t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw Error('"'+t+'" is a required argument.')},c=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,u=/^data:.+\,.+$/,t.urlParse=r,t.urlGenerate=n,t.normalize=a,t.join=i,t.isAbsolute=function(e){return"/"===e.charAt(0)||c.test(e)},t.relative=function(e,t){var r,n;for(""===e&&(e="."),e=e.replace(/\/$/,""),r=0;0!==t.indexOf(e+"/");){if((n=e.lastIndexOf("/"))<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)},p=!("__proto__"in Object.create(null)),t.toSetString=p?o:function(e){return s(e)?"$"+e:e},t.fromSetString=p?o:function(e){return s(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=l(e.source,t.source);return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:l(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=l(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:l(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=l(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:l(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,o){var s,l;if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),o){if(!(s=r(o)))throw Error("sourceMapURL could not be parsed");s.path&&(l=s.path.lastIndexOf("/"))>=0&&(s.path=s.path.substring(0,l+1)),t=i(n(s),t)}return a(t)}}(t={exports:{}},t.exports),t.exports}(),Tn.getArg,Tn.urlParse,Tn.urlGenerate,Tn.normalize,Tn.join,Tn.isAbsolute,Tn.relative,Tn.toSetString,Tn.fromSetString,Tn.compareByOriginalPositions,Tn.compareByGeneratedPositionsDeflated,Tn.compareByGeneratedPositionsInflated,Tn.parseSourceMapInput,Tn.computeSourceURL,An=Object.prototype.hasOwnProperty,Cn="undefined"!=typeof Map,we.fromArray=function(e,t){for(var r=new we,n=0,a=e.length;n=0)return t}else if(r=Tn.toSetString(e),An.call(this._set,r))return this._set[r];throw Error('"'+e+'" is not in the set.')},we.prototype.at=function(e){if(e>=0&&en||a==n&&o>=i||Tn.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},Se.prototype.toArray=function(){return this._sorted||(this._array.sort(Tn.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Pn=En.ArraySet,Nn={MappingList:Se}.MappingList,Te.prototype._version=3,Te.fromSourceMap=function(e){var t=e.sourceRoot,r=new Te({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=Tn.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var a,i=n;null!==t&&(i=Tn.relative(t,n)),r._sources.has(i)||r._sources.add(i),null!=(a=e.sourceContentFor(n))&&r.setSourceContent(n,a)})),r},Te.prototype.addMapping=function(e){var t=Tn.getArg(e,"generated"),r=Tn.getArg(e,"original",null),n=Tn.getArg(e,"source",null),a=Tn.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n+="",this._sources.has(n)||this._sources.add(n)),null!=a&&(a+="",this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:a})},Te.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=Tn.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Tn.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[Tn.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},Te.prototype.applySourceMap=function(e,t,r){var n,a,i,o=t;if(null==t){if(null==e.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');o=e.file}null!=(n=this._sourceRoot)&&(o=Tn.relative(n,o)),a=new Pn,i=new Pn,this._mappings.unsortedForEach((function(t){var s,l,c;t.source===o&&null!=t.originalLine&&null!=(s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn})).source&&(t.source=s.source,null!=r&&(t.source=Tn.join(r,t.source)),null!=n&&(t.source=Tn.relative(n,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name)),null==(l=t.source)||a.has(l)||a.add(l),null==(c=t.name)||i.has(c)||i.add(c)}),this),this._sources=a,this._names=i,e.sources.forEach((function(t){var a=e.sourceContentFor(t);null!=a&&(null!=r&&(t=Tn.join(r,t)),null!=n&&(t=Tn.relative(n,t)),this.setSourceContent(t,a))}),this)},Te.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},Te.prototype._serializeMappings=function(){for(var e,t,r,n,a=0,i=1,o=0,s=0,l=0,c=0,u="",p=this._mappings.toArray(),d=0,h=p.length;d0){if(!Tn.compareByGeneratedPositionsInflated(t,p[d-1]))continue;e+=","}e+=Sn(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(n=this._sources.indexOf(t.source),e+=Sn(n-c),c=n,e+=Sn(t.originalLine-1-s),s=t.originalLine-1,e+=Sn(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=Sn(r-l),l=r)),u+=e}return u},Te.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=Tn.relative(t,e));var r=Tn.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},Te.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},Te.prototype.toString=function(){return JSON.stringify(this.toJSON())},On={SourceMapGenerator:Te}.SourceMapGenerator,Dn={Atrule:!0,Selector:!0,Declaration:!0},Ln=Object.prototype.hasOwnProperty,Mn=function(e){function t(e){if(!Ln.call(n,e.type))throw Error("Unknown node type: "+e.type);n[e.type].call(this,e)}var r,n={};if(e.node)for(r in e.node)n[r]=e.node[r].generate;return function(e,r){var n="",a={children:Ae,node:t,chunk:function(e){n+=e},result:function(){return n}};return r&&("function"==typeof r.decorator&&(a=r.decorator(a)),r.sourceMap&&(a=function(e){var t,r,n=new On,a=1,i=0,o={line:1,column:0},s={line:0,column:0},l=!1,c={line:1,column:0},u={generated:c},p=e.node;return e.node=function(e){if(e.loc&&e.loc.start&&Dn.hasOwnProperty(e.type)){var t=e.loc.start.line,r=e.loc.start.column-1;s.line===t&&s.column===r||(s.line=t,s.column=r,o.line=a,o.column=i,l&&(l=!1,o.line===c.line&&o.column===c.column||n.addMapping(u)),l=!0,n.addMapping({source:e.loc.source,original:s,generated:o}))}p.call(this,e),l&&Dn.hasOwnProperty(e.type)&&(c.line=a,c.column=i)},t=e.chunk,e.chunk=function(e){for(var r=0;re||a(t,r,n),p=In,d=In,h=o,f={break:l,skip:c,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"==typeof t)p=t;else if(t&&(p=Ce(t.enter),d=Ce(t.leave),t.reverse&&(h=s),t.visit)){if(r.hasOwnProperty(t.visit))h=t.reverse?n[t.visit]:r[t.visit];else if(!i.hasOwnProperty(t.visit))throw Error("Bad value `"+t.visit+"` for `visit` option (should be: "+Object.keys(i).join(", ")+")");p=Ee(p,t.visit),d=Ee(d,t.visit)}if(p===In&&d===In)throw Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");a(e)},a.break=l,a.skip=c,a.find=function(e,t){var r=null;return a(e,(function(e,n,a){if(t.call(this,e,n,a))return r=e,l})),r},a.findLast=function(e,t){var r=null;return a(e,{reverse:!0,enter:function(e,n,a){if(t.call(this,e,n,a))return r=e,l}}),r},a.findAll=function(e,t){var r=[];return a(e,(function(e,n,a){t.call(this,e,n,a)&&r.push(e)})),r},a},_n=function e(t){var r,n,a={};for(r in t)(n=t[r])&&(Array.isArray(n)||n instanceof mt?n=n.map(e):n.constructor===Object&&(n=e(n))),a[r]=n;return a};const pl=Object.prototype.hasOwnProperty,dl={generic:!0,types:qe,atrules:{prelude:Ie,descriptors:Ie},properties:qe,parseContext:function(e,t){return Object.assign(e,t)},scope:function e(t,r){for(const n in r)pl.call(r,n)&&(De(t[n])?e(t[n],Le(r[n])):t[n]=Le(r[n]));return t},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};return zn=(e,t)=>function e(t,r,n){for(const a in n)if(!1!==pl.call(n,a))if(!0===n[a])a in r&&pl.call(r,a)&&(t[a]=Le(r[a]));else if(n[a])if("function"==typeof n[a]){const e=n[a];t[a]=e({},t[a]),t[a]=e(t[a]||{},r[a])}else if(De(n[a])){const i={};for(let r in t[a])i[r]=e({},t[a][r],n[a]);for(let t in r[a])i[t]=e(i[t]||{},r[a][t],n[a]);t[a]=i}else if(Array.isArray(n[a])){const i={},o=n[a].reduce((function(e,t){return e[t]=!0,e}),{});for(const[r,n]of Object.entries(t[a]||{}))i[r]={},n&&e(i[r],n,o);for(const t in r[a])pl.call(r[a],t)&&(i[t]||(i[t]={}),r[a]&&r[a][t]&&e(i[t],r[a][t],o));t[a]=i}return t}(e,t,dl),jn=function(e){return Re(zn({},e))},Fn={generic:!0,types:{"absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"|||( )","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||counter( , <'list-style-type'>? )]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","counter()":"counter( , ? )","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fit-content()":"fit-content( [|] )","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"|||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] ","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"||min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [||min-content|max-content|auto] , [|||min-content|max-content|auto] )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' ","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","saturate()":"saturate( )","scale()":"scale( , ? )","scale3d()":"scale3d( , , )","scaleX()":"scaleX( )","scaleY()":"scaleY( )","scaleZ()":"scaleZ( )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","single-animation":"