From c4cb582acd3de41b91f5a06603e15ef29633a409 Mon Sep 17 00:00:00 2001 From: wwc936 Date: Tue, 2 Jul 2024 06:50:53 +0800 Subject: [PATCH] Updates --- assets/{index-C0bZt9xi.css => index-BMQIRQZC.css} | 2 +- assets/{index-CQqthcE2.js => index-CaFx18S4.js} | 2 +- index.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename assets/{index-C0bZt9xi.css => index-BMQIRQZC.css} (96%) rename assets/{index-CQqthcE2.js => index-CaFx18S4.js} (99%) diff --git a/assets/index-C0bZt9xi.css b/assets/index-BMQIRQZC.css similarity index 96% rename from assets/index-C0bZt9xi.css rename to assets/index-BMQIRQZC.css index 3dea4cd..f5a3147 100644 --- a/assets/index-C0bZt9xi.css +++ b/assets/index-BMQIRQZC.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.fixed{position:fixed}.ml-8{margin-left:2rem}.flex{display:flex}.min-h-screen{min-height:100vh}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-8{padding:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.bg-app[data-v-68d0d1bd]{background-color:#eee}.text-app-blue[data-v-68d0d1bd]{color:#0d70b0}.text-app-light-black[data-v-68d0d1bd]{color:#333} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.fixed{position:fixed}.ml-8{margin-left:2rem}.flex{display:flex}.min-h-screen{min-height:100vh}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.p-4{padding:1rem}.p-8{padding:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.bg-app[data-v-dc136763]{background-color:#eee}.text-app-blue[data-v-dc136763]{color:#0d70b0}.text-app-light-black[data-v-dc136763]{color:#333} diff --git a/assets/index-CQqthcE2.js b/assets/index-CaFx18S4.js similarity index 99% rename from assets/index-CQqthcE2.js rename to assets/index-CaFx18S4.js index aa072b8..d2c6227 100644 --- a/assets/index-CQqthcE2.js +++ b/assets/index-CaFx18S4.js @@ -84,4 +84,4 @@ `+d.line+" | "+v+` `+K+" | "+i("",u.column-1," ")+i("",P,"^")}else s+=` at `+y}return s},t.buildMessage=function(n,s){var e={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(P){return Array.isArray(P)?d(P[0])+"-"+d(P[1]):d(P)});return"["+(v.inverted?"^":"")+b.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description}};function l(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+l(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+l(b)})}function y(v){return e[v.type](v)}function T(v){var b=v.map(y),P,fe;if(b.sort(),b.length>0){for(P=1,fe=1;PA.comment),j].filter(A=>A),ke=B.map(A=>A.op.content.content).join(" ");return{type:"animation",comments:$e,attribute:ke,content:we.content}},ce=function(h,B){return{...B,start:h,type:"foreach"}},He=function(h,B,j,we,$e,ke,A,G){const ae=[h,we,$e,A].filter(Ae=>Ae);return{type:"foreach_body",variables:B,options:j&&j.content,list:ke,command:G,comments:ae}},qe=function(h,B,j,we){const $e=[h,j].filter(ke=>ke);return{type:"svg_operation",options:B&&B.content,content:we,comments:$e}},de=function(h,B,j,we,$e,ke){return{coord:ke,comment:$e}},Oe=function(h,B,j,we,$e,ke){const A=[h,B,we,$e&&$e.comment,ke].filter(G=>G);return{type:"curve_to",controls:$e?[j,$e.coord]:[j],comments:A}},We=function(){return{type:"line_to",command:"|-"}},Ce=function(){return{type:"line_to",command:"-|"}},nr=function(){return{type:"line_to",command:"--"}},dr=function(h,B){return{type:"coordinate",content:B,prefix:h}},wr=function(h){return{type:"square_brace_group",content:h}},ve=function(h){return{type:"unknown",content:h}},Or=function(h){return s.isComment(h)},mr=function(h){return h},ye=function(h){return s.isWhitespace(h)},Ye=function(h){return h},Je=function(h){return h},Pr=function(h){return s.isOperation(h)},vr=function(h){return{type:"operation",content:h}},me=function(h){return s.isChar(h,"=")},Se=function(h){return h},U=function(h){return s.isChar(h,"[")},Lr=function(h){return h},Er=function(h){return s.isChar(h,"]")},pr=function(h){return h},or=function(h){return s.isChar(h,"(")},Br=function(h){return h},Wr=function(h){return s.isChar(h,")")},Nr=function(h){return h},jr=function(h){return s.isChar(h,"+")},Gr=function(h){return h},O=function(h){return s.isChar(h,"-")},H=function(h){return h},se=function(h){return s.isChar(h,"|")},k=function(h){return h},q=function(h){return s.isChar(h,".")},Y=function(h){return h},ue=function(h){return s.isChar(h,"controls")},ge=function(h){return h},z=function(h){return s.isChar(h,"and")},he=function(h){return h},Ie=function(h){return s.isChar(h,"svg")},R=function(h){return h},F=function(h){return s.isGroup(h)},I=function(h){return h},Le=function(h){return s.isAnyMacro(h)},Z=function(h){return h},_e=function(h){return s.isChar(h,"foreach")},Ue=function(h){return h},Be=function(h){return s.isMacro(h,"foreach")},pe=function(h){return h},Ur=function(h){return s.isChar(h,"in")},br=function(h){return h},Jr=function(h){return s.isChar(h,":")},ar=function(h){return h},E=0,C=[{line:1,column:1}],N=0,ee=[],ie=0,Ge;if("startRule"in s){if(!(s.startRule in u))throw new Error(`Can't start parsing from rule "`+s.startRule+'".');d=u[s.startRule]}function yr(){return{type:"any"}}function sr(){return{type:"end"}}function gr(h){return{type:"other",description:h}}function $r(h){var B=C[h],j;if(B)return B;for(j=h-1;!C[j];)j--;for(B=C[j],B={line:B.line,column:B.column};jN&&(N=E,ee=[]),ee.push(h))}function Cr(h,B,j){return new t(t.buildMessage(h,B),h,B,j)}function W(){var h,B,j,we,$e,ke;if(h=E,B=[],j=E,we=J(),we===e&&(we=x(),we===e&&(we=Ir(),we===e&&(we=lr(),we===e&&(we=xe(),we===e&&(we=Re(),we===e&&(we=w(),we===e&&(we=ir(),we===e&&(we=ne(),we===e&&(we=Xe()))))))))),we!==e){for($e=[],ke=Te();ke!==e;)$e.push(ke),ke=Te();j=P(we)}else E=j,j=e;if(j!==e)for(;j!==e;)if(B.push(j),j=E,we=J(),we===e&&(we=x(),we===e&&(we=Ir(),we===e&&(we=lr(),we===e&&(we=xe(),we===e&&(we=Re(),we===e&&(we=w(),we===e&&(we=ir(),we===e&&(we=ne(),we===e&&(we=Xe()))))))))),we!==e){for($e=[],ke=Te();ke!==e;)$e.push(ke),ke=Te();j=P(we)}else E=j,j=e;else B=e;return B!==e&&(B=fe(B)),h=B,h}function ne(){var h,B,j,we,$e,ke,A;if(h=E,B=gt(),B!==e){if(j=zr(),we=[],$e=E,ke=w(),ke!==e?(A=zr(),$e=Fe(j,ke,A)):(E=$e,$e=e),$e!==e)for(;$e!==e;)we.push($e),$e=E,ke=w(),ke!==e?(A=zr(),$e=Fe(j,ke,A)):(E=$e,$e=e);else we=e;we!==e?($e=c(),$e!==e?(ke=zr(),A=Ot(),A!==e?h=ze(j,we,ke,A):(E=h,h=e)):(E=h,h=e)):(E=h,h=e)}else E=h,h=e;return h}function Re(){var h,B,j;return h=E,B=Rt(),B===e&&(B=jt()),B!==e?(j=rr(),j!==e?h=ce(B,j):(E=h,h=e)):(E=h,h=e),h}function rr(){var h,B,j,we,$e,ke,A,G,ae,Ae;for(h=E,B=zr(),j=E,we=[],$e=E,ke=E,ie++,A=mt(),A===e&&(A=J()),ie--,A===e?ke=void 0:(E=ke,ke=e),ke!==e?(n.length>E?(A=n.charAt(E),E++):(A=e,ie===0&&fr(y)),A!==e?(ke=[ke,A],$e=ke):(E=$e,$e=e)):(E=$e,$e=e);$e!==e;)we.push($e),$e=E,ke=E,ie++,A=mt(),A===e&&(A=J()),ie--,A===e?ke=void 0:(E=ke,ke=e),ke!==e?(n.length>E?(A=n.charAt(E),E++):(A=e,ie===0&&fr(y)),A!==e?(ke=[ke,A],$e=ke):(E=$e,$e=e)):(E=$e,$e=e);return j=n.substring(j,E),we=J(),we===e&&(we=null),$e=zr(),ke=mt(),ke!==e?(A=zr(),G=Ot(),G===e&&(G=De()),G!==e?(ae=zr(),Ae=Re(),Ae===e&&(Ae=Ot(),Ae===e&&(Ae=De())),Ae!==e?h=He(B,j,we,$e,A,G,ae,Ae):(E=h,h=e)):(E=h,h=e)):(E=h,h=e),h}function xe(){var h,B,j,we,$e,ke;return h=E,B=en(),B!==e?(j=zr(),we=J(),we===e&&(we=null),$e=zr(),ke=Ot(),ke!==e?h=qe(j,we,$e,ke):(E=h,h=e)):(E=h,h=e),h}function Ir(){var h,B,j,we,$e,ke,A,G,ae,Ae,Ke;return h=E,B=X(),B!==e?(j=zr(),we=kn(),we!==e?($e=zr(),ke=x(),ke!==e?(A=zr(),G=E,ae=qr(),ae!==e?(Ae=zr(),Ke=x(),Ke!==e?G=de(j,$e,ke,A,Ae,Ke):(E=G,G=e)):(E=G,G=e),G===e&&(G=null),ae=zr(),Ae=X(),Ae!==e?h=Oe(j,$e,ke,A,G,ae):(E=h,h=e)):(E=h,h=e)):(E=h,h=e)):(E=h,h=e),h}function lr(){var h,B,j;return h=E,B=Ft(),B!==e?(j=Zr(),j!==e?h=We():(E=h,h=e)):(E=h,h=e),h===e&&(h=E,B=Zr(),B!==e?(j=Ft(),j!==e?h=Ce():(E=h,h=e)):(E=h,h=e),h===e&&(h=E,B=Zr(),B!==e?(j=Zr(),j!==e?h=nr():(E=h,h=e)):(E=h,h=e))),h}function x(){var h,B,j,we,$e,ke,A,G;if(h=E,B=E,j=E,we=ft(),we!==e?($e=ft(),$e===e&&($e=null),we=[we,$e],j=we):(E=j,j=e),j===e&&(j=null),B=n.substring(B,E),j=kr(),j!==e){for(we=E,$e=[],ke=E,A=E,ie++,G=le(),ie--,G===e?A=void 0:(E=A,A=e),A!==e?(n.length>E?(G=n.charAt(E),E++):(G=e,ie===0&&fr(y)),G!==e?(A=[A,G],ke=A):(E=ke,ke=e)):(E=ke,ke=e);ke!==e;)$e.push(ke),ke=E,A=E,ie++,G=le(),ie--,G===e?A=void 0:(E=A,A=e),A!==e?(n.length>E?(G=n.charAt(E),E++):(G=e,ie===0&&fr(y)),G!==e?(A=[A,G],ke=A):(E=ke,ke=e)):(E=ke,ke=e);we=n.substring(we,E),$e=le(),$e!==e?h=dr(B,we):(E=h,h=e)}else E=h,h=e;return h}function J(){var h,B,j,we,$e,ke,A;if(h=E,B=V(),B!==e){for(j=E,we=[],$e=E,ke=E,ie++,A=Qe(),ie--,A===e?ke=void 0:(E=ke,ke=e),ke!==e?(n.length>E?(A=n.charAt(E),E++):(A=e,ie===0&&fr(y)),A!==e?(ke=[ke,A],$e=ke):(E=$e,$e=e)):(E=$e,$e=e);$e!==e;)we.push($e),$e=E,ke=E,ie++,A=Qe(),ie--,A===e?ke=void 0:(E=ke,ke=e),ke!==e?(n.length>E?(A=n.charAt(E),E++):(A=e,ie===0&&fr(y)),A!==e?(ke=[ke,A],$e=ke):(E=$e,$e=e)):(E=$e,$e=e);j=n.substring(j,E),we=Qe(),we!==e?h=wr(j):(E=h,h=e)}else E=h,h=e;return h}function X(){var h,B,j;return h=E,B=Qt(),B!==e?(j=Qt(),j!==e?(B=[B,j],h=B):(E=h,h=e)):(E=h,h=e),h}function Xe(){var h,B;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e&&(B=ve(B)),h=B,h}function ir(){var h,B,j;return ie++,h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Or(B),j?j=void 0:j=e,j!==e?h=mr(B):(E=h,h=e)):(E=h,h=e),ie--,h===e&&(B=e,ie===0&&fr(T)),h}function Te(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=ye(B),j?j=void 0:j=e,j!==e?h=Ye(B):(E=h,h=e)):(E=h,h=e),h}function zr(){var h,B,j,we,$e;for(ie++,h=E,B=[],j=Te();j!==e;)B.push(j),j=Te();for(j=ir(),j===e&&(j=null),we=[],$e=Te();$e!==e;)we.push($e),$e=Te();return h=Je(j),ie--,B=e,ie===0&&fr(K),h}function w(){var h,B,j;return ie++,h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Pr(B),j?j=void 0:j=e,j!==e?h=vr(B):(E=h,h=e)):(E=h,h=e),ie--,h===e&&(B=e,ie===0&&fr(v)),h}function c(){var h,B,j;return ie++,h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=me(B),j?j=void 0:j=e,j!==e?h=Se(B):(E=h,h=e)):(E=h,h=e),ie--,h===e&&(B=e,ie===0&&fr(b)),h}function V(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=U(B),j?j=void 0:j=e,j!==e?h=Lr(B):(E=h,h=e)):(E=h,h=e),h}function Qe(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Er(B),j?j=void 0:j=e,j!==e?h=pr(B):(E=h,h=e)):(E=h,h=e),h}function kr(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=or(B),j?j=void 0:j=e,j!==e?h=Br(B):(E=h,h=e)):(E=h,h=e),h}function le(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Wr(B),j?j=void 0:j=e,j!==e?h=Nr(B):(E=h,h=e)):(E=h,h=e),h}function ft(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=jr(B),j?j=void 0:j=e,j!==e?h=Gr(B):(E=h,h=e)):(E=h,h=e),h}function Zr(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=O(B),j?j=void 0:j=e,j!==e?h=H(B):(E=h,h=e)):(E=h,h=e),h}function Ft(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=se(B),j?j=void 0:j=e,j!==e?h=k(B):(E=h,h=e)):(E=h,h=e),h}function Qt(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=q(B),j?j=void 0:j=e,j!==e?h=Y(B):(E=h,h=e)):(E=h,h=e),h}function kn(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=ue(B),j?j=void 0:j=e,j!==e?h=ge(B):(E=h,h=e)):(E=h,h=e),h}function qr(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=z(B),j?j=void 0:j=e,j!==e?h=he(B):(E=h,h=e)):(E=h,h=e),h}function en(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Ie(B),j?j=void 0:j=e,j!==e?h=R(B):(E=h,h=e)):(E=h,h=e),h}function Ot(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=F(B),j?j=void 0:j=e,j!==e?h=I(B):(E=h,h=e)):(E=h,h=e),h}function De(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Le(B),j?j=void 0:j=e,j!==e?h=Z(B):(E=h,h=e)):(E=h,h=e),h}function Rt(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=_e(B),j?j=void 0:j=e,j!==e?h=Ue(B):(E=h,h=e)):(E=h,h=e),h}function jt(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Be(B),j?j=void 0:j=e,j!==e?h=pe(B):(E=h,h=e)):(E=h,h=e),h}function mt(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Ur(B),j?j=void 0:j=e,j!==e?h=br(B):(E=h,h=e)):(E=h,h=e),h}function gt(){var h,B,j;return h=E,n.length>E?(B=n.charAt(E),E++):(B=e,ie===0&&fr(y)),B!==e?(j=Jr(B),j?j=void 0:j=e,j!==e?h=ar(B):(E=h,h=e)):(E=h,h=e),h}if(!s.isWhitespace)try{Object.assign(s,{isChar:(h,B)=>h.type==="string"&&h.content===B,isOperation:h=>h.type==="string"&&h.content.match(/[a-zA-Z]/),isWhitespace:h=>h.type==="whitespace"||h.type==="parbreak",isSameLineComment:h=>h.type==="comment"&&h.sameline,isOwnLineComment:h=>h.type==="comment"&&!h.sameline,isComment:h=>h.type==="comment",isGroup:h=>h.type==="group",isMacro:(h,B)=>h.type==="macro"&&h.content===B,isAnyMacro:h=>h.type==="macro"})}catch(h){console.warn("Error when initializing parser",h)}if(Ge=d(),Ge!==e&&E===n.length)return Ge;throw Ge!==e&&E"u"?"undefined":i(l));var u=l.reduce(function(d,y){return y.toLowerCase().split("").reduce(n.default,d),d},{});return u}r.exports=t.default})(uo,uo.exports);var C0=uo.exports,po={exports:{}},ho={exports:{}};(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={objectCopy:function(o){return typeof o>"u"?{}:JSON.parse(JSON.stringify(o))},stringify:function(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return typeof o>"u"?"":JSON.stringify(o,null,n)}},r.exports=t.default})(ho,ho.exports);var Hf=ho.exports;(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var i=Hf;o(i);function o(s){return s&&s.__esModule?s:{default:s}}function n(s,e){var l=e.toLowerCase().split(""),u=l.every(function(d,y){return s[d]?s=s[d]:!1});return{prefixFound:u,prefixNode:s}}r.exports=t.default})(po,po.exports);var E0=po.exports,mo={exports:{}};(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;var i=gi,o=n(i);function n(l){return l&&l.__esModule?l:{default:l}}var s=function(u,d){for(var y=0;y3&&arguments[3]!==void 0?arguments[3]:[],T=u;for(var K in l){var v=K;K===o.default.END_WORD&&typeof l[K]=="number"?(d?s(T,y):y.push(T),T=""):K===o.default.END_WORD_REPLACER&&(v=o.default.END_WORD),e(l[K],u+v,d,y)}return y}r.exports=t.default})(mo,mo.exports);var I0=mo.exports,vo={exports:{}};(function(r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var i=gi,o=n(i);function n(e){return e&&e.__esModule?e:{default:e}}function s(e,l){var u=l,d=Object.keys(e),y=d[Math.floor(Math.random()*d.length)];return y===o.default.END_WORD?u:s(e[y],l+y)}r.exports=t.default})(vo,vo.exports);var M0=vo.exports,bo={exports:{}};(function(r,t){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};t.default=e;var o=gi,n=s(o);function s(l){return l&&l.__esModule?l:{default:l}}function e(l,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{type:"anagram"};if(typeof l!="string")throw"Permutations expects string letters, received "+(typeof l>"u"?"undefined":i(l));var y=[],T=function K(v,b){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",fe=v.length===0,Fe=y.indexOf(P)!==-1,ze=b[n.default.END_WORD]===1;fe&&ze&&!Fe&&y.push(P);for(var ce=0,He=v.length;ce"u"?"undefined":i(de));var Oe=(0,n.default)([].concat(He(de)));return{tree:function(){return Oe},dump:function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return b.default.stringify(Oe,Ce)},addWord:function(Ce){if(typeof Ce!="string"||Ce==="")throw"Expected parameter string, received "+(typeof Ce>"u"?"undefined":i(Ce));var nr=function(){return e.default.apply(void 0,arguments)},dr=Ce.toLowerCase().split("");return dr.reduce(nr,Oe),this},removeWord:function(Ce){if(typeof Ce!="string"||Ce==="")throw"Expected parameter string, received "+(typeof Ce>"u"?"undefined":i(Ce));var nr=(0,u.default)(Oe,Ce),dr=nr.prefixFound,wr=nr.prefixNode;return dr&&delete wr[fe.default.END_WORD],this},isPrefix:function(Ce){if(typeof Ce!="string")throw"Expected string prefix, received "+(typeof Ce>"u"?"undefined":i(Ce));var nr=(0,u.default)(Oe,Ce),dr=nr.prefixFound;return dr},getPrefix:function(Ce){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof Ce!="string")throw"Expected string prefix, received "+(typeof Ce>"u"?"undefined":i(Ce));if(typeof nr!="boolean")throw"Expected sort parameter as boolean, received "+(typeof nr>"u"?"undefined":i(nr));if(!this.isPrefix(Ce))return[];var dr=Ce.length?(0,u.default)(Oe,Ce).prefixNode:Oe;return(0,y.default)(dr,Ce,nr)},getRandomWordWithPrefix:function(Ce){if(typeof Ce!="string")throw"Expected string prefix, received "+(typeof Ce>"u"?"undefined":i(Ce));if(!this.isPrefix(Ce))return"";var nr=(0,u.default)(Oe,Ce),dr=nr.prefixNode;return(0,K.default)(dr,Ce)},countPrefix:function(Ce){var nr=this.getPrefix(Ce);return nr.length},getWords:function(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.getPrefix("",Ce)},hasWord:function(Ce){if(typeof Ce!="string")throw"Expected string word, received "+(typeof Ce>"u"?"undefined":i(Ce));var nr=(0,u.default)(Oe,Ce),dr=nr.prefixFound,wr=nr.prefixNode;return dr?wr[fe.default.END_WORD]===1:!1},getAnagrams:function(Ce){if(typeof Ce!="string")throw"Anagrams expected string letters, received "+(typeof Ce>"u"?"undefined":i(Ce));if(Ce.length"u"?"undefined":i(Ce));if(Ce.length=0)return e;break}if(n&&!Ve.whitespace(l)&&!Ve.comment(l))return null}return null}function Bt(r,t,i=0){if(typeof t=="string"||!t.type)throw new Error(`argSpec must be an already-parsed argument specification, not "${JSON.stringify(t)}"`);let o=null,n=i;const s=t.noLeadingWhitespace?()=>{}:()=>{for(;n1){console.warn('"until" matches with multi-token stop conditions are not yet implemented');break}const K=t.stopTokens[0];let b=Kn(r,i,void 0,K===" "?{type:"whitespace"}:K);if(!b)break;o=st(r.slice(i,b[1]),{openMark:"",closeMark:K}),n=b[1],ni.length){const d=n.content;n.content=i,r.splice(s+1,0,Si(n,d.slice(i.length)))}e=s+1}if(!o){const u=r[e];if(!u)return;if(Ve.anyString(u)&&u.content.length>1){const d=u.content;u.content=d[0],r.splice(e+1,0,Si(u,d.slice(1)))}return[s,e]}if(e=Ki(r,o,{startIndex:e,allowSubstringMatches:!0}),e===null)return;const l=r[e];if(Ve.anyString(l)&&typeof o=="string"){const u=l.content;let d=u.indexOf(o);if(u.length>o.length){l.content=o;const y=u.slice(0,d),T=u.slice(d+o.length);y&&(r.splice(e,0,Si(l,y)),e++),T&&r.splice(e+1,0,Si(l,T))}}return[s,e]}function Xi(r,t,i=0){if(typeof t=="function")return t(r,i);typeof t=="string"&&(t=_n(t));const o=[];let n=0;for(const s of t)if(s.type==="embellishment"){const e=new Set(s.embellishmentTokens),l=Object.fromEntries(s.embellishmentTokens.map((y,T)=>{var K;const v="defaultArg"in s?(K=s.defaultArg)==null?void 0:K[T]:void 0;return[y,kl(v)]}));let{argument:u,nodesRemoved:d}=Bt(r,_l(e),i);for(;u;){const y=u.openMark;e.delete(y),l[y]=u,n+=d;const T=_l(e);({argument:u,nodesRemoved:d}=Bt(r,T,i))}o.push(...s.embellishmentTokens.map(y=>l[y]))}else{const{argument:e,nodesRemoved:l}=Bt(r,s,i),u="defaultArg"in s?s.defaultArg:void 0;o.push(e||kl(u)),n+=l}return{args:o,nodesRemoved:n}}function _l(r){return{type:"embellishment",embellishmentTokens:[...r]}}function kl(r){const t=st([],{openMark:"",closeMark:""});return r!=null&&us(t,{defaultArg:r}),t}function Yi(r,t){let i;const o=Ve.createMacroMatcher(t);function n(){for(;i>=0&&!o(r[i]);)i--}for(i=r.length-1;i>=0;){if(n(),i<0)return;const s=i,e=r[s],l=e.content,u=t[l];us(e,u.renderInfo);const d=u.argumentParser||u.signature;if(d==null){i--;continue}if(e.args!=null){i=s-1;continue}i++;const{args:y}=Xi(r,d,i);e.args=y,i=s-1}}const P0=function(t){return i=>{const{macros:o={}}=t||{};Object.keys(o).length===0&&console.warn("Attempting to attach macro arguments but no macros are specified."),$n(i,n=>{Yi(n,o)},{includeArrays:!0,test:Array.isArray})}},F0=_n("m")[0],O0=_n("o")[0],Ws={},R0=(r,t)=>{const{argument:i,nodesRemoved:o}=Bt(r,O0,t);let n=null,s=0;const e=r[t];if(Ve.group(e)){const l=Bt(r,F0,t);n=l.argument,s=l.nodesRemoved}else if(Ve.string(e)&&e.content.length===1){const l=e.content;Ws[l]=Ws[l]||_n(`r${l}${l}`)[0];const u=Bt(r,Ws[l],t);n=u.argument,s=u.nodesRemoved}return{args:[i||st(null),n||st(null)],nodesRemoved:o+s}},T0={lstset:{signature:"m"},lstinline:{argumentParser:R0},lstinputlisting:{signature:"o m"},lstdefinestyle:{signature:"m m"},lstnewenvironment:{signature:"m o o m m"},lstMakeShortInline:{signature:"o m"},lstDeleteShortInline:{signature:"m"},lstdefineformat:{signature:"m m"},lstdefinelanguage:{signature:"o m o m o"},lstalias:{signature:"o m o m"},lstloadlanguages:{signature:"m"}},D0={},L0={see:{signature:"m m"},seealso:{signature:"m m"},seename:{signature:"m"},alsoname:{signature:"m"},index:{signature:"m"}},B0={},N0={mathtoolsset:{signature:"m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},mathllap:{signature:"o m"},mathrlap:{signature:"o m"},mathclap:{signature:"o m"},clap:{signature:"m"},mathmbox:{signature:"m"},mathmakebox:{signature:"o o m"},cramped:{signature:"o m"},crampedllap:{signature:"o m"},crampedrlap:{signature:"o m"},crampedclap:{signature:"o m"},crampedsubstack:{signature:"o m"},smashoperator:{signature:"o m"},newtagform:{signature:"m o m m"},renewtagform:{signature:"m o m m"},usetagform:{signature:"m"},xleftrightarrow:{signature:"o m"},xLeftarrow:{signature:"o m"},xhookleftarrow:{signature:"o m"},xmapsto:{signature:"o m"},xRightarrow:{signature:"o m"},xLeftrightarrow:{signature:"o m"},xhookrightarrow:{signature:"o m"},underbracket:{signature:"o o m"},overbracket:{signature:"o o m"},underbrace:{signature:"m"},overbrace:{signature:"m"},shoveleft:{signature:"o m"},shoveright:{signature:"o m"},ArrowBetweenLines:{signature:"s o"},vdotswithin:{signature:"m"},shortdotswithin:{signature:"s m"},DeclarePairedDelimiter:{signature:"m m m",renderInfo:{breakAround:!0}},DeclarePairedDelimiterX:{signature:"m o m m m",renderInfo:{breakAround:!0}},DeclarePairedDelimiterXPP:{signature:"m o m m m m m",renderInfo:{breakAround:!0}},prescript:{signature:"m m m"},DeclareMathSizes:{signature:"m m m m"},newgathered:{signature:"m m m m"},renewgathered:{signature:"m m m m"},splitfrac:{signature:"m m"},splitdfrac:{signature:"m m"},xmathstrut:{signature:"o m"},newtheorem:{signature:"s m o m o",renderInfo:{breakAround:!0}},theoremstyle:{signature:"m",renderInfo:{breakAround:!0}},newtheoremstyle:{signature:"m m m m m m m m m",renderInfo:{breakAround:!0}},text:{signature:"m",renderInfo:{inMathMode:!1}},mathbb:{signature:"m"},mathscr:{signature:"m"},mathfrak:{signature:"m"},frak:{signature:"m"},Bdd:{signature:"m"},bold:{signature:"m"},operatorname:{signature:"s m"},DeclareMathOperator:{signature:"s m m",renderInfo:{breakAround:!0}}},j0={crampedsubarray:{signature:"m",renderInfo:{alignContent:!0,inMathMode:!0}},matrix:{renderInfo:{alignContent:!0,inMathMode:!0}},bmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},pmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},vmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Bmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Vmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},smallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},psmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},vsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},bsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Bsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},Vsmallmatrix:{renderInfo:{alignContent:!0,inMathMode:!0}},"matrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"bmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"pmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"vmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Bmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Vmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"smallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"psmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"bsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"vsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Bsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},"Vsmallmatrix*":{signature:"o",renderInfo:{alignContent:!0,inMathMode:!0}},multilined:{signature:"o o",renderInfo:{inMathMode:!0}},cases:{renderInfo:{alignContent:!0,inMathMode:!0}},"cases*":{renderInfo:{alignContent:!0,inMathMode:!0}},dcases:{renderInfo:{alignContent:!0,inMathMode:!0}},"dcases*":{renderInfo:{alignContent:!0,inMathMode:!0}},rcases:{renderInfo:{alignContent:!0,inMathMode:!0}},"rcases*":{renderInfo:{alignContent:!0,inMathMode:!0}},drcases:{renderInfo:{alignContent:!0,inMathMode:!0}},"drcases*":{renderInfo:{alignContent:!0,inMathMode:!0}},spreadlines:{signature:"m",renderInfo:{inMathMode:!0}},lgathered:{signature:"o",renderInfo:{inMathMode:!0}},rgathered:{signature:"o",renderInfo:{inMathMode:!0}},"align*":{renderInfo:{inMathMode:!0,alignContent:!0}},align:{renderInfo:{inMathMode:!0,alignContent:!0}},aligned:{renderInfo:{inMathMode:!0,alignContent:!0}},"alignat*":{renderInfo:{inMathMode:!0,alignContent:!0}},alignat:{renderInfo:{inMathMode:!0,alignContent:!0}},"equation*":{renderInfo:{inMathMode:!0}},equation:{renderInfo:{inMathMode:!0}},"gather*":{renderInfo:{inMathMode:!0}},gather:{renderInfo:{inMathMode:!0}},"multline*":{renderInfo:{inMathMode:!0}},multline:{renderInfo:{inMathMode:!0}},"flalign*":{renderInfo:{inMathMode:!0,alignContent:!0}},flalign:{renderInfo:{inMathMode:!0,alignContent:!0}},split:{renderInfo:{inMathMode:!0}},displaymath:{renderInfo:{inMathMode:!0}},theorem:{signature:"o"},lemma:{signature:"o"},definition:{signature:"o"},proposition:{signature:"o"},corollary:{signature:"o"},remark:{signature:"!o"},example:{signature:"!o"},proof:{signature:"o"}},Cl=_n("m")[0],z0=_n("o")[0],Gs={},Us=(r,t)=>{const{argument:i,nodesRemoved:o}=Bt(r,z0,t),{argument:n,nodesRemoved:s}=Bt(r,Cl,t);let e=null,l=0;const u=r[t];if(Ve.group(u)){const d=Bt(r,Cl,t);e=d.argument,l=d.nodesRemoved}else if(Ve.string(u)&&u.content.length===1){const d=u.content;Gs[d]=Gs[d]||_n(`r${d}${d}`)[0];const y=Bt(r,Gs[d],t);e=y.argument,l=y.nodesRemoved}return{args:[i||st(null),n||st(null),e||st(null)],nodesRemoved:o+s+l}},q0={mint:{argumentParser:Us},mintinline:{argumentParser:Us},inputminted:{argumentParser:Us},usemintedstyle:{signature:"m"},setminted:{signature:"o m"},setmintedinline:{signature:"o m"},newmint:{signature:"o m m"},newminted:{signature:"o m m"},newmintinline:{signature:"o m m"},newmintedfile:{signature:"o m m"}},W0={minted:{signature:"o m"}},G0={NiceMatrixOptions:{signature:"m",renderInfo:{pgfkeysArgs:!0,breakAround:!0}}},U0={NiceTabular:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceMatrixBlock:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceArrayWithDelims:{signature:"m m o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},pNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},bNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},BNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},vNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},VNiceArray:{signature:"o m !o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},NiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},pNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},bNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},BNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},vNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}},VNiceMatrix:{signature:"!o",renderInfo:{pgfkeysArgs:!0,alignContent:!0}}},V0={systeme:{signature:"s o o m",renderInfo:{inMathMode:!0}},sysdelim:{signature:"m m"},syseqsep:{signature:"m"},sysalign:{signature:"m"},syssignspace:{signature:"m"},syseqspace:{signature:"m"},syslineskipcoeff:{signature:"m"},syseqivsign:{signature:"m"},sysaddeqsign:{signature:"m"},sysremoveeqsign:{signature:"m"},sysextracolonsign:{signature:"m"},syscodeextracol:{signature:"m"},sysautonum:{signature:"m"},syssubstitute:{signature:"m"}},H0={};(function(){typeof globalThis!="object"&&(Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();const K0=_n("o")[0];function Pi(){return st([],{openMark:"",closeMark:""})}const Kf=(r,t)=>{const i=t;let o=t,n=0;const s=X0(r,o);let e=Pi();if(s!==o){const K=r.splice(o,s-o);zn(K),e=st(K,{openMark:" ",closeMark:" "})}n+=s-o;const{argument:l,nodesRemoved:u}=Bt(r,K0,o);n+=u;const d=l||Pi();for(;Ve.whitespace(r[o]);)o++;const y=r[o];if(!y)return{args:[e,d,Pi()],nodesRemoved:0};if(Ve.group(y)){const K=[e,d,st(y.content)];return r.splice(i,o-i+1),{args:K,nodesRemoved:o-i+1+n}}const T=Ki(r,";",{startIndex:o});if(T!=null){const K=r.splice(i,T-i+1);return zn(K),{args:[e,d,st(K)],nodesRemoved:i-T+1+n}}return{args:[e,d,Pi()],nodesRemoved:0}};function X0(r,t){const i=Ki(r,":",{startIndex:t,allowSubstringMatches:!0,onlySkipWhitespaceAndComments:!0});if(!i)return t;let o=t,n=i+1;for(;n=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},eh=Q0,rh=Array.prototype.concat,th=Array.prototype.slice,El=Jf.exports=function(t){for(var i=[],o=0,n=t.length;o=4&&r[3]!==1&&(t=", "+r[3]),"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+t+")"};_t.to.keyword=function(r){return Qf[r.slice(0,3)]};function vn(r,t,i){return Math.min(Math.max(t,r),i)}function Fi(r){var t=Math.round(r).toString(16).toUpperCase();return t.length<2?"0"+t:t}var ih=Xf.exports;const fi=Yf,eu={};for(const r of Object.keys(fi))eu[fi[r]]=r;const er={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var ru=er;for(const r of Object.keys(er)){if(!("channels"in er[r]))throw new Error("missing channels property: "+r);if(!("labels"in er[r]))throw new Error("missing channel labels property: "+r);if(er[r].labels.length!==er[r].channels)throw new Error("channel and label counts mismatch: "+r);const{channels:t,labels:i}=er[r];delete er[r].channels,delete er[r].labels,Object.defineProperty(er[r],"channels",{value:t}),Object.defineProperty(er[r],"labels",{value:i})}er.rgb.hsl=function(r){const t=r[0]/255,i=r[1]/255,o=r[2]/255,n=Math.min(t,i,o),s=Math.max(t,i,o),e=s-n;let l,u;s===n?l=0:t===s?l=(i-o)/e:i===s?l=2+(o-t)/e:o===s&&(l=4+(t-i)/e),l=Math.min(l*60,360),l<0&&(l+=360);const d=(n+s)/2;return s===n?u=0:d<=.5?u=e/(s+n):u=e/(2-s-n),[l,u*100,d*100]};er.rgb.hsv=function(r){let t,i,o,n,s;const e=r[0]/255,l=r[1]/255,u=r[2]/255,d=Math.max(e,l,u),y=d-Math.min(e,l,u),T=function(K){return(d-K)/6/y+1/2};return y===0?(n=0,s=0):(s=y/d,t=T(e),i=T(l),o=T(u),e===d?n=o-i:l===d?n=1/3+t-o:u===d&&(n=2/3+i-t),n<0?n+=1:n>1&&(n-=1)),[n*360,s*100,d*100]};er.rgb.hwb=function(r){const t=r[0],i=r[1];let o=r[2];const n=er.rgb.hsl(r)[0],s=1/255*Math.min(t,Math.min(i,o));return o=1-1/255*Math.max(t,Math.max(i,o)),[n,s*100,o*100]};er.rgb.cmyk=function(r){const t=r[0]/255,i=r[1]/255,o=r[2]/255,n=Math.min(1-t,1-i,1-o),s=(1-t-n)/(1-n)||0,e=(1-i-n)/(1-n)||0,l=(1-o-n)/(1-n)||0;return[s*100,e*100,l*100,n*100]};function sh(r,t){return(r[0]-t[0])**2+(r[1]-t[1])**2+(r[2]-t[2])**2}er.rgb.keyword=function(r){const t=eu[r];if(t)return t;let i=1/0,o;for(const n of Object.keys(fi)){const s=fi[n],e=sh(r,s);e.04045?((t+.055)/1.055)**2.4:t/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;const n=t*.4124+i*.3576+o*.1805,s=t*.2126+i*.7152+o*.0722,e=t*.0193+i*.1192+o*.9505;return[n*100,s*100,e*100]};er.rgb.lab=function(r){const t=er.rgb.xyz(r);let i=t[0],o=t[1],n=t[2];i/=95.047,o/=100,n/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const s=116*o-16,e=500*(i-o),l=200*(o-n);return[s,e,l]};er.hsl.rgb=function(r){const t=r[0]/360,i=r[1]/100,o=r[2]/100;let n,s,e;if(i===0)return e=o*255,[e,e,e];o<.5?n=o*(1+i):n=o+i-o*i;const l=2*o-n,u=[0,0,0];for(let d=0;d<3;d++)s=t+1/3*-(d-1),s<0&&s++,s>1&&s--,6*s<1?e=l+(n-l)*6*s:2*s<1?e=n:3*s<2?e=l+(n-l)*(2/3-s)*6:e=l,u[d]=e*255;return u};er.hsl.hsv=function(r){const t=r[0];let i=r[1]/100,o=r[2]/100,n=i;const s=Math.max(o,.01);o*=2,i*=o<=1?o:2-o,n*=s<=1?s:2-s;const e=(o+i)/2,l=o===0?2*n/(s+n):2*i/(o+i);return[t,l*100,e*100]};er.hsv.rgb=function(r){const t=r[0]/60,i=r[1]/100;let o=r[2]/100;const n=Math.floor(t)%6,s=t-Math.floor(t),e=255*o*(1-i),l=255*o*(1-i*s),u=255*o*(1-i*(1-s));switch(o*=255,n){case 0:return[o,u,e];case 1:return[l,o,e];case 2:return[e,o,u];case 3:return[e,l,o];case 4:return[u,e,o];case 5:return[o,e,l]}};er.hsv.hsl=function(r){const t=r[0],i=r[1]/100,o=r[2]/100,n=Math.max(o,.01);let s,e;e=(2-i)*o;const l=(2-i)*n;return s=i*n,s/=l<=1?l:2-l,s=s||0,e/=2,[t,s*100,e*100]};er.hwb.rgb=function(r){const t=r[0]/360;let i=r[1]/100,o=r[2]/100;const n=i+o;let s;n>1&&(i/=n,o/=n);const e=Math.floor(6*t),l=1-o;s=6*t-e,e&1&&(s=1-s);const u=i+s*(l-i);let d,y,T;switch(e){default:case 6:case 0:d=l,y=u,T=i;break;case 1:d=u,y=l,T=i;break;case 2:d=i,y=l,T=u;break;case 3:d=i,y=u,T=l;break;case 4:d=u,y=i,T=l;break;case 5:d=l,y=i,T=u;break}return[d*255,y*255,T*255]};er.cmyk.rgb=function(r){const t=r[0]/100,i=r[1]/100,o=r[2]/100,n=r[3]/100,s=1-Math.min(1,t*(1-n)+n),e=1-Math.min(1,i*(1-n)+n),l=1-Math.min(1,o*(1-n)+n);return[s*255,e*255,l*255]};er.xyz.rgb=function(r){const t=r[0]/100,i=r[1]/100,o=r[2]/100;let n,s,e;return n=t*3.2406+i*-1.5372+o*-.4986,s=t*-.9689+i*1.8758+o*.0415,e=t*.0557+i*-.204+o*1.057,n=n>.0031308?1.055*n**(1/2.4)-.055:n*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,e=e>.0031308?1.055*e**(1/2.4)-.055:e*12.92,n=Math.min(Math.max(0,n),1),s=Math.min(Math.max(0,s),1),e=Math.min(Math.max(0,e),1),[n*255,s*255,e*255]};er.xyz.lab=function(r){let t=r[0],i=r[1],o=r[2];t/=95.047,i/=100,o/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const n=116*i-16,s=500*(t-i),e=200*(i-o);return[n,s,e]};er.lab.xyz=function(r){const t=r[0],i=r[1],o=r[2];let n,s,e;s=(t+16)/116,n=i/500+s,e=s-o/200;const l=s**3,u=n**3,d=e**3;return s=l>.008856?l:(s-16/116)/7.787,n=u>.008856?u:(n-16/116)/7.787,e=d>.008856?d:(e-16/116)/7.787,n*=95.047,s*=100,e*=108.883,[n,s,e]};er.lab.lch=function(r){const t=r[0],i=r[1],o=r[2];let n;n=Math.atan2(o,i)*360/2/Math.PI,n<0&&(n+=360);const e=Math.sqrt(i*i+o*o);return[t,e,n]};er.lch.lab=function(r){const t=r[0],i=r[1],n=r[2]/360*2*Math.PI,s=i*Math.cos(n),e=i*Math.sin(n);return[t,s,e]};er.rgb.ansi16=function(r,t=null){const[i,o,n]=r;let s=t===null?er.rgb.hsv(r)[2]:t;if(s=Math.round(s/50),s===0)return 30;let e=30+(Math.round(n/255)<<2|Math.round(o/255)<<1|Math.round(i/255));return s===2&&(e+=60),e};er.hsv.ansi16=function(r){return er.rgb.ansi16(er.hsv.rgb(r),r[2])};er.rgb.ansi256=function(r){const t=r[0],i=r[1],o=r[2];return t===i&&i===o?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(i/255*5)+Math.round(o/255*5)};er.ansi16.rgb=function(r){let t=r%10;if(t===0||t===7)return r>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const i=(~~(r>50)+1)*.5,o=(t&1)*i*255,n=(t>>1&1)*i*255,s=(t>>2&1)*i*255;return[o,n,s]};er.ansi256.rgb=function(r){if(r>=232){const s=(r-232)*10+8;return[s,s,s]}r-=16;let t;const i=Math.floor(r/36)/5*255,o=Math.floor((t=r%36)/6)/5*255,n=t%6/5*255;return[i,o,n]};er.rgb.hex=function(r){const i=(((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255)).toString(16).toUpperCase();return"000000".substring(i.length)+i};er.hex.rgb=function(r){const t=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let i=t[0];t[0].length===3&&(i=i.split("").map(l=>l+l).join(""));const o=parseInt(i,16),n=o>>16&255,s=o>>8&255,e=o&255;return[n,s,e]};er.rgb.hcg=function(r){const t=r[0]/255,i=r[1]/255,o=r[2]/255,n=Math.max(Math.max(t,i),o),s=Math.min(Math.min(t,i),o),e=n-s;let l,u;return e<1?l=s/(1-e):l=0,e<=0?u=0:n===t?u=(i-o)/e%6:n===i?u=2+(o-t)/e:u=4+(t-i)/e,u/=6,u%=1,[u*360,e*100,l*100]};er.hsl.hcg=function(r){const t=r[1]/100,i=r[2]/100,o=i<.5?2*t*i:2*t*(1-i);let n=0;return o<1&&(n=(i-.5*o)/(1-o)),[r[0],o*100,n*100]};er.hsv.hcg=function(r){const t=r[1]/100,i=r[2]/100,o=t*i;let n=0;return o<1&&(n=(i-o)/(1-o)),[r[0],o*100,n*100]};er.hcg.rgb=function(r){const t=r[0]/360,i=r[1]/100,o=r[2]/100;if(i===0)return[o*255,o*255,o*255];const n=[0,0,0],s=t%1*6,e=s%1,l=1-e;let u=0;switch(Math.floor(s)){case 0:n[0]=1,n[1]=e,n[2]=0;break;case 1:n[0]=l,n[1]=1,n[2]=0;break;case 2:n[0]=0,n[1]=1,n[2]=e;break;case 3:n[0]=0,n[1]=l,n[2]=1;break;case 4:n[0]=e,n[1]=0,n[2]=1;break;default:n[0]=1,n[1]=0,n[2]=l}return u=(1-i)*o,[(i*n[0]+u)*255,(i*n[1]+u)*255,(i*n[2]+u)*255]};er.hcg.hsv=function(r){const t=r[1]/100,i=r[2]/100,o=t+i*(1-t);let n=0;return o>0&&(n=t/o),[r[0],n*100,o*100]};er.hcg.hsl=function(r){const t=r[1]/100,o=r[2]/100*(1-t)+.5*t;let n=0;return o>0&&o<.5?n=t/(2*o):o>=.5&&o<1&&(n=t/(2*(1-o))),[r[0],n*100,o*100]};er.hcg.hwb=function(r){const t=r[1]/100,i=r[2]/100,o=t+i*(1-t);return[r[0],(o-t)*100,(1-o)*100]};er.hwb.hcg=function(r){const t=r[1]/100,o=1-r[2]/100,n=o-t;let s=0;return n<1&&(s=(o-n)/(1-n)),[r[0],n*100,s*100]};er.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};er.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};er.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};er.gray.hsl=function(r){return[0,0,r[0]]};er.gray.hsv=er.gray.hsl;er.gray.hwb=function(r){return[0,100,r[0]]};er.gray.cmyk=function(r){return[0,0,0,r[0]]};er.gray.lab=function(r){return[r[0],0,0]};er.gray.hex=function(r){const t=Math.round(r[0]/100*255)&255,o=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(o.length)+o};er.rgb.gray=function(r){return[(r[0]+r[1]+r[2])/3/255*100]};const Ji=ru;function oh(){const r={},t=Object.keys(Ji);for(let i=t.length,o=0;o1&&(i=o),r(i))};return"conversion"in r&&(t.conversion=r.conversion),t}function hh(r){const t=function(...i){const o=i[0];if(o==null)return o;o.length>1&&(i=o);const n=r(i);if(typeof n=="object")for(let s=n.length,e=0;e{Rn[r]={},Object.defineProperty(Rn[r],"channels",{value:yo[r].channels}),Object.defineProperty(Rn[r],"labels",{value:yo[r].labels});const t=ch(r);Object.keys(t).forEach(o=>{const n=t[o];Rn[r][o]=hh(n),Rn[r][o].raw=ph(n)})});var dh=Rn;const Tn=ih,wt=dh,tu=["keyword","gray","hex"],$o={};for(const r of Object.keys(wt))$o[[...wt[r].labels].sort().join("")]=r;const Zi={};function it(r,t){if(!(this instanceof it))return new it(r,t);if(t&&t in tu&&(t=null),t&&!(t in wt))throw new Error("Unknown model: "+t);let i,o;if(r==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(r instanceof it)this.model=r.model,this.color=[...r.color],this.valpha=r.valpha;else if(typeof r=="string"){const n=Tn.get(r);if(n===null)throw new Error("Unable to parse color from string: "+r);this.model=n.model,o=wt[this.model].channels,this.color=n.value.slice(0,o),this.valpha=typeof n.value[o]=="number"?n.value[o]:1}else if(r.length>0){this.model=t||"rgb",o=wt[this.model].channels;const n=Array.prototype.slice.call(r,0,o);this.color=Ao(n,o),this.valpha=typeof r[o]=="number"?r[o]:1}else if(typeof r=="number")this.model="rgb",this.color=[r>>16&255,r>>8&255,r&255],this.valpha=1;else{this.valpha=1;const n=Object.keys(r);"alpha"in r&&(n.splice(n.indexOf("alpha"),1),this.valpha=typeof r.alpha=="number"?r.alpha:0);const s=n.sort().join("");if(!(s in $o))throw new Error("Unable to parse color from object: "+JSON.stringify(r));this.model=$o[s];const{labels:e}=wt[this.model],l=[];for(i=0;i(r%360+360)%360),saturationl:Xr("hsl",1,tt(100)),lightness:Xr("hsl",2,tt(100)),saturationv:Xr("hsv",1,tt(100)),value:Xr("hsv",2,tt(100)),chroma:Xr("hcg",1,tt(100)),gray:Xr("hcg",2,tt(100)),white:Xr("hwb",1,tt(100)),wblack:Xr("hwb",2,tt(100)),cyan:Xr("cmyk",0,tt(100)),magenta:Xr("cmyk",1,tt(100)),yellow:Xr("cmyk",2,tt(100)),black:Xr("cmyk",3,tt(100)),x:Xr("xyz",0,tt(95.047)),y:Xr("xyz",1,tt(100)),z:Xr("xyz",2,tt(108.833)),l:Xr("lab",0,tt(100)),a:Xr("lab",1),b:Xr("lab",2),keyword(r){return r!==void 0?new it(r):wt[this.model].keyword(this.color)},hex(r){return r!==void 0?new it(r):Tn.to.hex(this.rgb().round().color)},hexa(r){if(r!==void 0)return new it(r);const t=this.rgb().round().color;let i=Math.round(this.valpha*255).toString(16).toUpperCase();return i.length===1&&(i="0"+i),Tn.to.hex(t)+i},rgbNumber(){const r=this.rgb().color;return(r[0]&255)<<16|(r[1]&255)<<8|r[2]&255},luminosity(){const r=this.rgb().color,t=[];for(const[i,o]of r.entries()){const n=o/255;t[i]=n<=.04045?n/12.92:((n+.055)/1.055)**2.4}return .2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(r){const t=this.luminosity(),i=r.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level(r){const t=this.contrast(r);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const r=this.rgb().color;return(r[0]*2126+r[1]*7152+r[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const r=this.rgb();for(let t=0;t<3;t++)r.color[t]=255-r.color[t];return r},lighten(r){const t=this.hsl();return t.color[2]+=t.color[2]*r,t},darken(r){const t=this.hsl();return t.color[2]-=t.color[2]*r,t},saturate(r){const t=this.hsl();return t.color[1]+=t.color[1]*r,t},desaturate(r){const t=this.hsl();return t.color[1]-=t.color[1]*r,t},whiten(r){const t=this.hwb();return t.color[1]+=t.color[1]*r,t},blacken(r){const t=this.hwb();return t.color[2]+=t.color[2]*r,t},grayscale(){const r=this.rgb().color,t=r[0]*.3+r[1]*.59+r[2]*.11;return it.rgb(t,t,t)},fade(r){return this.alpha(this.valpha-this.valpha*r)},opaquer(r){return this.alpha(this.valpha+this.valpha*r)},rotate(r){const t=this.hsl();let i=t.color[0];return i=(i+r)%360,i=i<0?360+i:i,t.color[0]=i,t},mix(r,t){if(!r||!r.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r);const i=r.rgb(),o=this.rgb(),n=t===void 0?.5:t,s=2*n-1,e=i.alpha()-o.alpha(),l=((s*e===-1?s:(s+e)/(1+s*e))+1)/2,u=1-l;return it.rgb(l*i.red()+u*o.red(),l*i.green()+u*o.green(),l*i.blue()+u*o.blue(),i.alpha()*n+o.alpha()*(1-n))}};for(const r of Object.keys(wt)){if(tu.includes(r))continue;const{channels:t}=wt[r];it.prototype[r]=function(...i){return this.model===r?new it(this):i.length>0?new it(i,r):new it([...bh(wt[this.model][r].raw(this.color)),this.valpha],r)},it[r]=function(...i){let o=i[0];return typeof o=="number"&&(o=Ao(i,t)),new it(o,r)}}function mh(r,t){return Number(r.toFixed(t))}function vh(r){return function(t){return mh(t,r)}}function Xr(r,t,i){r=Array.isArray(r)?r:[r];for(const o of r)(Zi[o]||(Zi[o]=[]))[t]=i;return r=r[0],function(o){let n;return o!==void 0?(i&&(o=i(o)),n=this[r](),n.color[t]=o,n):(n=this[r]().color[t],i&&(n=i(n)),n)}}function tt(r){return function(t){return Math.max(0,Math.min(r,t))}}function bh(r){return Array.isArray(r)?r:[r]}function Ao(r,t){for(let i=0;ije([r*255,t*255,i*255],"rgb"),xh={Apricot:je("#FBB982"),Aquamarine:je("#00B5BE"),Bittersweet:je("#C04F17"),Black:je("#221E1F"),Blue:je("#2D2F92"),BlueGreen:je("#00B3B8"),BlueViolet:je("#473992"),BrickRed:je("#B6321C"),Brown:je("#792500"),BurntOrange:je("#F7921D"),CadetBlue:je("#74729A"),CarnationPink:je("#F282B4"),Cerulean:je("#00A2E3"),CornflowerBlue:je("#41B0E4"),Cyan:je("#00AEEF"),Dandelion:je("#FDBC42"),DarkOrchid:je("#A4538A"),Emerald:je("#00A99D"),ForestGreen:je("#009B55"),Fuchsia:je("#8C368C"),Goldenrod:je("#FFDF42"),Gray:je("#949698"),Green:je("#00A64F"),GreenYellow:je("#DFE674"),JungleGreen:je("#00A99A"),Lavender:je("#F49EC4"),LimeGreen:je("#8DC73E"),Magenta:je("#EC008C"),Mahogany:je("#A9341F"),Maroon:je("#AF3235"),Melon:je("#F89E7B"),MidnightBlue:je("#006795"),Mulberry:je("#A93C93"),NavyBlue:je("#006EB8"),OliveGreen:je("#3C8031"),Orange:je("#F58137"),OrangeRed:je("#ED135A"),Orchid:je("#AF72B0"),Peach:je("#F7965A"),Periwinkle:je("#7977B8"),PineGreen:je("#008B72"),Plum:je("#92268F"),ProcessBlue:je("#00B0F0"),Purple:je("#99479B"),RawSienna:je("#974006"),Red:je("#ED1B23"),RedOrange:je("#F26035"),RedViolet:je("#A1246B"),Rhodamine:je("#EF559F"),RoyalBlue:je("#0071BC"),RoyalPurple:je("#613F99"),RubineRed:je("#ED017D"),Salmon:je("#F69289"),SeaGreen:je("#3FBC9D"),Sepia:je("#671800"),SkyBlue:je("#46C5DD"),SpringGreen:je("#C6DC67"),Tan:je("#DA9D76"),TealBlue:je("#00AEB3"),Thistle:je("#D883B7"),Turquoise:je("#00B4CE"),Violet:je("#58429B"),VioletRed:je("#EF58A0"),White:je("#FFFFFF"),WildStrawberry:je("#EE2967"),Yellow:je("#FFF200"),YellowGreen:je("#98CC70"),YellowOrange:je("#FAA21A")},wh={AliceBlue:p([.94,.972,1]),AntiqueWhite:p([.98,.92,.844]),Aqua:p([0,1,1]),Aquamarine:p([.498,1,.83]),Azure:p([.94,1,1]),Beige:p([.96,.96,.864]),Bisque:p([1,.894,.77]),Black:p([0,0,0]),BlanchedAlmond:p([1,.92,.804]),Blue:p([0,0,1]),BlueViolet:p([.54,.17,.888]),Brown:p([.648,.165,.165]),BurlyWood:p([.87,.72,.53]),CadetBlue:p([.372,.62,.628]),Chartreuse:p([.498,1,0]),Chocolate:p([.824,.41,.116]),Coral:p([1,.498,.312]),CornflowerBlue:p([.392,.585,.93]),Cornsilk:p([1,.972,.864]),Crimson:p([.864,.08,.235]),Cyan:p([0,1,1]),DarkBlue:p([0,0,.545]),DarkCyan:p([0,.545,.545]),DarkGoldenrod:p([.72,.525,.044]),DarkGray:p([.664,.664,.664]),DarkGreen:p([0,.392,0]),DarkGrey:p([.664,.664,.664]),DarkKhaki:p([.74,.716,.42]),DarkMagenta:p([.545,0,.545]),DarkOliveGreen:p([.332,.42,.185]),DarkOrange:p([1,.55,0]),DarkOrchid:p([.6,.196,.8]),DarkRed:p([.545,0,0]),DarkSalmon:p([.912,.59,.48]),DarkSeaGreen:p([.56,.736,.56]),DarkSlateBlue:p([.284,.24,.545]),DarkSlateGray:p([.185,.31,.31]),DarkSlateGrey:p([.185,.31,.31]),DarkTurquoise:p([0,.808,.82]),DarkViolet:p([.58,0,.828]),DeepPink:p([1,.08,.576]),DeepSkyBlue:p([0,.75,1]),DimGray:p([.41,.41,.41]),DimGrey:p([.41,.41,.41]),DodgerBlue:p([.116,.565,1]),FireBrick:p([.698,.132,.132]),FloralWhite:p([1,.98,.94]),ForestGreen:p([.132,.545,.132]),Fuchsia:p([1,0,1]),Gainsboro:p([.864,.864,.864]),GhostWhite:p([.972,.972,1]),Gold:p([1,.844,0]),Goldenrod:p([.855,.648,.125]),Gray:p([.5,.5,.5]),Green:p([0,.5,0]),GreenYellow:p([.68,1,.185]),Grey:p([.5,.5,.5]),Honeydew:p([.94,1,.94]),HotPink:p([1,.41,.705]),IndianRed:p([.804,.36,.36]),Indigo:p([.294,0,.51]),Ivory:p([1,1,.94]),Khaki:p([.94,.9,.55]),Lavender:p([.9,.9,.98]),LavenderBlush:p([1,.94,.96]),LawnGreen:p([.488,.99,0]),LemonChiffon:p([1,.98,.804]),LightBlue:p([.68,.848,.9]),LightCoral:p([.94,.5,.5]),LightCyan:p([.88,1,1]),LightGoldenrod:p([.933,.867,.51]),LightGoldenrodYellow:p([.98,.98,.824]),LightGray:p([.828,.828,.828]),LightGreen:p([.565,.932,.565]),LightGrey:p([.828,.828,.828]),LightPink:p([1,.712,.756]),LightSalmon:p([1,.628,.48]),LightSeaGreen:p([.125,.698,.668]),LightSkyBlue:p([.53,.808,.98]),LightSlateBlue:p([.518,.44,1]),LightSlateGray:p([.468,.532,.6]),LightSlateGrey:p([.468,.532,.6]),LightSteelBlue:p([.69,.77,.87]),LightYellow:p([1,1,.88]),Lime:p([0,1,0]),LimeGreen:p([.196,.804,.196]),Linen:p([.98,.94,.9]),Magenta:p([1,0,1]),Maroon:p([.5,0,0]),MediumAquamarine:p([.4,.804,.668]),MediumBlue:p([0,0,.804]),MediumOrchid:p([.73,.332,.828]),MediumPurple:p([.576,.44,.86]),MediumSeaGreen:p([.235,.7,.444]),MediumSlateBlue:p([.484,.408,.932]),MediumSpringGreen:p([0,.98,.604]),MediumTurquoise:p([.284,.82,.8]),MediumVioletRed:p([.78,.084,.52]),MidnightBlue:p([.098,.098,.44]),MintCream:p([.96,1,.98]),MistyRose:p([1,.894,.884]),Moccasin:p([1,.894,.71]),NavajoWhite:p([1,.87,.68]),Navy:p([0,0,.5]),NavyBlue:p([0,0,.5]),OldLace:p([.992,.96,.9]),Olive:p([.5,.5,0]),OliveDrab:p([.42,.556,.136]),Orange:p([1,.648,0]),OrangeRed:p([1,.27,0]),Orchid:p([.855,.44,.84]),PaleGoldenrod:p([.932,.91,.668]),PaleGreen:p([.596,.985,.596]),PaleTurquoise:p([.688,.932,.932]),PaleVioletRed:p([.86,.44,.576]),PapayaWhip:p([1,.936,.835]),PeachPuff:p([1,.855,.725]),Peru:p([.804,.52,.248]),Pink:p([1,.752,.796]),Plum:p([.868,.628,.868]),PowderBlue:p([.69,.88,.9]),Purple:p([.5,0,.5]),Red:p([1,0,0]),RosyBrown:p([.736,.56,.56]),RoyalBlue:p([.255,.41,.884]),SaddleBrown:p([.545,.27,.075]),Salmon:p([.98,.5,.448]),SandyBrown:p([.956,.644,.376]),SeaGreen:p([.18,.545,.34]),Seashell:p([1,.96,.932]),Sienna:p([.628,.32,.176]),Silver:p([.752,.752,.752]),SkyBlue:p([.53,.808,.92]),SlateBlue:p([.415,.352,.804]),SlateGray:p([.44,.5,.565]),SlateGrey:p([.44,.5,.565]),Snow:p([1,.98,.98]),SpringGreen:p([0,1,.498]),SteelBlue:p([.275,.51,.705]),Tan:p([.824,.705,.55]),Teal:p([0,.5,.5]),Thistle:p([.848,.75,.848]),Tomato:p([1,.39,.28]),Turquoise:p([.25,.88,.815]),Violet:p([.932,.51,.932]),VioletRed:p([.816,.125,.565]),Wheat:p([.96,.87,.7]),White:p([1,1,1]),WhiteSmoke:p([.96,.96,.96]),Yellow:p([1,1,0]),YellowGreen:p([.604,.804,.196])},_h={AntiqueWhite1:p([1,.936,.86]),AntiqueWhite2:p([.932,.875,.8]),AntiqueWhite3:p([.804,.752,.69]),AntiqueWhite4:p([.545,.512,.47]),Aquamarine1:p([.498,1,.83]),Aquamarine2:p([.464,.932,.776]),Aquamarine3:p([.4,.804,.668]),Aquamarine4:p([.27,.545,.455]),Azure1:p([.94,1,1]),Azure2:p([.88,.932,.932]),Azure3:p([.756,.804,.804]),Azure4:p([.512,.545,.545]),Bisque1:p([1,.894,.77]),Bisque2:p([.932,.835,.716]),Bisque3:p([.804,.716,.62]),Bisque4:p([.545,.49,.42]),Blue1:p([0,0,1]),Blue2:p([0,0,.932]),Blue3:p([0,0,.804]),Blue4:p([0,0,.545]),Brown1:p([1,.25,.25]),Brown2:p([.932,.23,.23]),Brown3:p([.804,.2,.2]),Brown4:p([.545,.136,.136]),Burlywood1:p([1,.828,.608]),Burlywood2:p([.932,.772,.57]),Burlywood3:p([.804,.668,.49]),Burlywood4:p([.545,.45,.332]),CadetBlue1:p([.596,.96,1]),CadetBlue2:p([.556,.898,.932]),CadetBlue3:p([.48,.772,.804]),CadetBlue4:p([.325,.525,.545]),Chartreuse1:p([.498,1,0]),Chartreuse2:p([.464,.932,0]),Chartreuse3:p([.4,.804,0]),Chartreuse4:p([.27,.545,0]),Chocolate1:p([1,.498,.14]),Chocolate2:p([.932,.464,.13]),Chocolate3:p([.804,.4,.112]),Chocolate4:p([.545,.27,.075]),Coral1:p([1,.448,.336]),Coral2:p([.932,.415,.312]),Coral3:p([.804,.356,.27]),Coral4:p([.545,.244,.185]),Cornsilk1:p([1,.972,.864]),Cornsilk2:p([.932,.91,.804]),Cornsilk3:p([.804,.785,.694]),Cornsilk4:p([.545,.532,.47]),Cyan1:p([0,1,1]),Cyan2:p([0,.932,.932]),Cyan3:p([0,.804,.804]),Cyan4:p([0,.545,.545]),DarkGoldenrod1:p([1,.725,.06]),DarkGoldenrod2:p([.932,.68,.055]),DarkGoldenrod3:p([.804,.585,.048]),DarkGoldenrod4:p([.545,.396,.03]),DarkOliveGreen1:p([.792,1,.44]),DarkOliveGreen2:p([.736,.932,.408]),DarkOliveGreen3:p([.635,.804,.352]),DarkOliveGreen4:p([.43,.545,.24]),DarkOrange1:p([1,.498,0]),DarkOrange2:p([.932,.464,0]),DarkOrange3:p([.804,.4,0]),DarkOrange4:p([.545,.27,0]),DarkOrchid1:p([.75,.244,1]),DarkOrchid2:p([.698,.228,.932]),DarkOrchid3:p([.604,.196,.804]),DarkOrchid4:p([.408,.132,.545]),DarkSeaGreen1:p([.756,1,.756]),DarkSeaGreen2:p([.705,.932,.705]),DarkSeaGreen3:p([.608,.804,.608]),DarkSeaGreen4:p([.41,.545,.41]),DarkSlateGray1:p([.592,1,1]),DarkSlateGray2:p([.552,.932,.932]),DarkSlateGray3:p([.475,.804,.804]),DarkSlateGray4:p([.32,.545,.545]),DeepPink1:p([1,.08,.576]),DeepPink2:p([.932,.07,.536]),DeepPink3:p([.804,.064,.464]),DeepPink4:p([.545,.04,.312]),DeepSkyBlue1:p([0,.75,1]),DeepSkyBlue2:p([0,.698,.932]),DeepSkyBlue3:p([0,.604,.804]),DeepSkyBlue4:p([0,.408,.545]),DodgerBlue1:p([.116,.565,1]),DodgerBlue2:p([.11,.525,.932]),DodgerBlue3:p([.094,.455,.804]),DodgerBlue4:p([.064,.305,.545]),Firebrick1:p([1,.19,.19]),Firebrick2:p([.932,.172,.172]),Firebrick3:p([.804,.15,.15]),Firebrick4:p([.545,.1,.1]),Gold1:p([1,.844,0]),Gold2:p([.932,.79,0]),Gold3:p([.804,.68,0]),Gold4:p([.545,.46,0]),Goldenrod1:p([1,.756,.145]),Goldenrod2:p([.932,.705,.132]),Goldenrod3:p([.804,.608,.112]),Goldenrod4:p([.545,.41,.08]),Green1:p([0,1,0]),Green2:p([0,.932,0]),Green3:p([0,.804,0]),Green4:p([0,.545,0]),Honeydew1:p([.94,1,.94]),Honeydew2:p([.88,.932,.88]),Honeydew3:p([.756,.804,.756]),Honeydew4:p([.512,.545,.512]),HotPink1:p([1,.43,.705]),HotPink2:p([.932,.415,.655]),HotPink3:p([.804,.376,.565]),HotPink4:p([.545,.228,.385]),IndianRed1:p([1,.415,.415]),IndianRed2:p([.932,.39,.39]),IndianRed3:p([.804,.332,.332]),IndianRed4:p([.545,.228,.228]),Ivory1:p([1,1,.94]),Ivory2:p([.932,.932,.88]),Ivory3:p([.804,.804,.756]),Ivory4:p([.545,.545,.512]),Khaki1:p([1,.965,.56]),Khaki2:p([.932,.9,.52]),Khaki3:p([.804,.776,.45]),Khaki4:p([.545,.525,.305]),LavenderBlush1:p([1,.94,.96]),LavenderBlush2:p([.932,.88,.898]),LavenderBlush3:p([.804,.756,.772]),LavenderBlush4:p([.545,.512,.525]),LemonChiffon1:p([1,.98,.804]),LemonChiffon2:p([.932,.912,.75]),LemonChiffon3:p([.804,.79,.648]),LemonChiffon4:p([.545,.536,.44]),LightBlue1:p([.75,.936,1]),LightBlue2:p([.698,.875,.932]),LightBlue3:p([.604,.752,.804]),LightBlue4:p([.408,.512,.545]),LightCyan1:p([.88,1,1]),LightCyan2:p([.82,.932,.932]),LightCyan3:p([.705,.804,.804]),LightCyan4:p([.48,.545,.545]),LightGoldenrod1:p([1,.925,.545]),LightGoldenrod2:p([.932,.864,.51]),LightGoldenrod3:p([.804,.745,.44]),LightGoldenrod4:p([.545,.505,.298]),LightPink1:p([1,.684,.725]),LightPink2:p([.932,.635,.68]),LightPink3:p([.804,.55,.585]),LightPink4:p([.545,.372,.396]),LightSalmon1:p([1,.628,.48]),LightSalmon2:p([.932,.585,.448]),LightSalmon3:p([.804,.505,.385]),LightSalmon4:p([.545,.34,.26]),LightSkyBlue1:p([.69,.888,1]),LightSkyBlue2:p([.644,.828,.932]),LightSkyBlue3:p([.552,.712,.804]),LightSkyBlue4:p([.376,.484,.545]),LightSteelBlue1:p([.792,.884,1]),LightSteelBlue2:p([.736,.824,.932]),LightSteelBlue3:p([.635,.71,.804]),LightSteelBlue4:p([.43,.484,.545]),LightYellow1:p([1,1,.88]),LightYellow2:p([.932,.932,.82]),LightYellow3:p([.804,.804,.705]),LightYellow4:p([.545,.545,.48]),Magenta1:p([1,0,1]),Magenta2:p([.932,0,.932]),Magenta3:p([.804,0,.804]),Magenta4:p([.545,0,.545]),Maroon1:p([1,.204,.7]),Maroon2:p([.932,.19,.655]),Maroon3:p([.804,.16,.565]),Maroon4:p([.545,.11,.385]),MediumOrchid1:p([.88,.4,1]),MediumOrchid2:p([.82,.372,.932]),MediumOrchid3:p([.705,.32,.804]),MediumOrchid4:p([.48,.215,.545]),MediumPurple1:p([.67,.51,1]),MediumPurple2:p([.624,.475,.932]),MediumPurple3:p([.536,.408,.804]),MediumPurple4:p([.365,.28,.545]),MistyRose1:p([1,.894,.884]),MistyRose2:p([.932,.835,.824]),MistyRose3:p([.804,.716,.71]),MistyRose4:p([.545,.49,.484]),NavajoWhite1:p([1,.87,.68]),NavajoWhite2:p([.932,.81,.63]),NavajoWhite3:p([.804,.7,.545]),NavajoWhite4:p([.545,.475,.37]),OliveDrab1:p([.752,1,.244]),OliveDrab2:p([.7,.932,.228]),OliveDrab3:p([.604,.804,.196]),OliveDrab4:p([.41,.545,.132]),Orange1:p([1,.648,0]),Orange2:p([.932,.604,0]),Orange3:p([.804,.52,0]),Orange4:p([.545,.352,0]),OrangeRed1:p([1,.27,0]),OrangeRed2:p([.932,.25,0]),OrangeRed3:p([.804,.215,0]),OrangeRed4:p([.545,.145,0]),Orchid1:p([1,.512,.98]),Orchid2:p([.932,.48,.912]),Orchid3:p([.804,.41,.79]),Orchid4:p([.545,.28,.536]),PaleGreen1:p([.604,1,.604]),PaleGreen2:p([.565,.932,.565]),PaleGreen3:p([.488,.804,.488]),PaleGreen4:p([.33,.545,.33]),PaleTurquoise1:p([.732,1,1]),PaleTurquoise2:p([.684,.932,.932]),PaleTurquoise3:p([.59,.804,.804]),PaleTurquoise4:p([.4,.545,.545]),PaleVioletRed1:p([1,.51,.67]),PaleVioletRed2:p([.932,.475,.624]),PaleVioletRed3:p([.804,.408,.536]),PaleVioletRed4:p([.545,.28,.365]),PeachPuff1:p([1,.855,.725]),PeachPuff2:p([.932,.796,.68]),PeachPuff3:p([.804,.688,.585]),PeachPuff4:p([.545,.468,.396]),Pink1:p([1,.71,.772]),Pink2:p([.932,.664,.72]),Pink3:p([.804,.57,.62]),Pink4:p([.545,.39,.424]),Plum1:p([1,.732,1]),Plum2:p([.932,.684,.932]),Plum3:p([.804,.59,.804]),Plum4:p([.545,.4,.545]),Purple1:p([.608,.19,1]),Purple2:p([.57,.172,.932]),Purple3:p([.49,.15,.804]),Purple4:p([.332,.1,.545]),Red1:p([1,0,0]),Red2:p([.932,0,0]),Red3:p([.804,0,0]),Red4:p([.545,0,0]),RosyBrown1:p([1,.756,.756]),RosyBrown2:p([.932,.705,.705]),RosyBrown3:p([.804,.608,.608]),RosyBrown4:p([.545,.41,.41]),RoyalBlue1:p([.284,.464,1]),RoyalBlue2:p([.264,.43,.932]),RoyalBlue3:p([.228,.372,.804]),RoyalBlue4:p([.152,.25,.545]),Salmon1:p([1,.55,.41]),Salmon2:p([.932,.51,.385]),Salmon3:p([.804,.44,.33]),Salmon4:p([.545,.298,.224]),SeaGreen1:p([.33,1,.624]),SeaGreen2:p([.305,.932,.58]),SeaGreen3:p([.264,.804,.5]),SeaGreen4:p([.18,.545,.34]),Seashell1:p([1,.96,.932]),Seashell2:p([.932,.898,.87]),Seashell3:p([.804,.772,.75]),Seashell4:p([.545,.525,.51]),Sienna1:p([1,.51,.28]),Sienna2:p([.932,.475,.26]),Sienna3:p([.804,.408,.224]),Sienna4:p([.545,.28,.15]),SkyBlue1:p([.53,.808,1]),SkyBlue2:p([.494,.752,.932]),SkyBlue3:p([.424,.65,.804]),SkyBlue4:p([.29,.44,.545]),SlateBlue1:p([.512,.435,1]),SlateBlue2:p([.48,.404,.932]),SlateBlue3:p([.41,.35,.804]),SlateBlue4:p([.28,.235,.545]),SlateGray1:p([.776,.888,1]),SlateGray2:p([.725,.828,.932]),SlateGray3:p([.624,.712,.804]),SlateGray4:p([.424,.484,.545]),Snow1:p([1,.98,.98]),Snow2:p([.932,.912,.912]),Snow3:p([.804,.79,.79]),Snow4:p([.545,.536,.536]),SpringGreen1:p([0,1,.498]),SpringGreen2:p([0,.932,.464]),SpringGreen3:p([0,.804,.4]),SpringGreen4:p([0,.545,.27]),SteelBlue1:p([.39,.72,1]),SteelBlue2:p([.36,.675,.932]),SteelBlue3:p([.31,.58,.804]),SteelBlue4:p([.21,.392,.545]),Tan1:p([1,.648,.31]),Tan2:p([.932,.604,.288]),Tan3:p([.804,.52,.248]),Tan4:p([.545,.352,.17]),Thistle1:p([1,.884,1]),Thistle2:p([.932,.824,.932]),Thistle3:p([.804,.71,.804]),Thistle4:p([.545,.484,.545]),Tomato1:p([1,.39,.28]),Tomato2:p([.932,.36,.26]),Tomato3:p([.804,.31,.224]),Tomato4:p([.545,.21,.15]),Turquoise1:p([0,.96,1]),Turquoise2:p([0,.898,.932]),Turquoise3:p([0,.772,.804]),Turquoise4:p([0,.525,.545]),VioletRed1:p([1,.244,.59]),VioletRed2:p([.932,.228,.55]),VioletRed3:p([.804,.196,.47]),VioletRed4:p([.545,.132,.32]),Wheat1:p([1,.905,.73]),Wheat2:p([.932,.848,.684]),Wheat3:p([.804,.73,.59]),Wheat4:p([.545,.494,.4]),Yellow1:p([1,1,0]),Yellow2:p([.932,.932,0]),Yellow3:p([.804,.804,0]),Yellow4:p([.545,.545,0]),Gray0:p([.745,.745,.745]),Green0:p([0,1,0]),Grey0:p([.745,.745,.745]),Maroon0:p([.69,.19,.376]),Purple0:p([.628,.125,.94])},Qr={rgb:([r,t,i])=>je([r*255,t*255,i*255],"rgb"),cmy:([r,t,i])=>Qr.rgb([1-r,1-t,1-i]),cmyk:([r,t,i,o])=>je([r*255,t*255,i*255,o*100],"cmyk"),hsb:([r,t,i])=>je([r*360,t*100,i*100],"hsv"),gray:([r])=>je([r*255,r*255,r*255],"rgb")};({red:Qr.rgb([1,0,0]),green:Qr.rgb([0,1,0]),blue:Qr.rgb([0,0,1]),brown:Qr.rgb([.75,.5,.25]),lime:Qr.rgb([.75,1,0]),orange:Qr.rgb([1,.5,0]),pink:Qr.rgb([1,.75,.75]),purple:Qr.rgb([.75,0,.25]),teal:Qr.rgb([0,.5,.5]),violet:Qr.rgb([.5,0,.5]),cyan:Qr.rgb([0,1,1]),magenta:Qr.rgb([1,0,1]),yellow:Qr.rgb([1,1,0]),olive:Qr.rgb([.5,.5,0]),black:Qr.rgb([0,0,0]),darkgray:Qr.rgb([.25,.25,.25]),gray:Qr.rgb([.5,.5,.5]),lightgray:Qr.rgb([.75,.75,.75]),white:Qr.rgb([1,1,1]),...xh,...wh,..._h});const kh={NewDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},RenewDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},ProvideDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},DeclareDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},NewDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},RenewDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},ProvideDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},DeclareDocumentEnvironment:{signature:"m m m m",renderInfo:{breakAround:!0}},NewExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},RenewExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},ProvideExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},DeclareExpandableDocumentCommand:{signature:"m m m",renderInfo:{breakAround:!0}},RequirePackage:{signature:"o m",renderInfo:{pgfkeysArgs:!0,breakAround:!0}},DeclareOption:{signature:"m m",renderInfo:{breakAround:!0}}},Ch={},Eh={mode:{signature:"s d<> d{}",renderInfo:{breakAround:!0}},insertnavigation:{signature:"m",renderInfo:{breakAround:!0}},insertsectionnavigation:{signature:"m",renderInfo:{breakAround:!0}},insertsectionnavigationhorizontal:{signature:"m m m",renderInfo:{breakAround:!0}},insertauthor:{signature:"o",renderInfo:{breakAround:!0}},insertshortauthor:{signature:"o",renderInfo:{breakAround:!0}},insertshortdate:{signature:"o",renderInfo:{breakAround:!0}},insertshortinstitute:{signature:"o",renderInfo:{breakAround:!0}},insertshortpart:{signature:"o",renderInfo:{breakAround:!0}},insertshorttitle:{signature:"o",renderInfo:{breakAround:!0}},insertsubsectionnavigation:{signature:"m",renderInfo:{breakAround:!0}},insertsubsectionnavigationhorizontal:{signature:"m m m",renderInfo:{breakAround:!0}},insertverticalnavigation:{signature:"m",renderInfo:{breakAround:!0}},usebeamercolor:{signature:"s m",renderInfo:{breakAround:!0}},usebeamertemplate:{signature:"s m",renderInfo:{breakAround:!0}},setbeamercolor:{signature:"m m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},setbeamersize:{signature:"m o o",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},setbeamertemplate:{signature:"m o o d{}",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},newcommand:{signature:"s d<> +m o +o +m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"name","numArgs","default","body"]}},renewcommand:{signature:"s d<> +m o +o +m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"name","numArgs","default","body"]}},newenvironment:{signature:"s d<> m o o m m",renderInfo:{breakAround:!0}},renewenvironment:{signature:"s d<> m o o m m",renderInfo:{breakAround:!0}},resetcounteronoverlays:{signature:"m",renderInfo:{breakAround:!0}},resetcountonoverlays:{signature:"m",renderInfo:{breakAround:!0}},logo:{signature:"m",renderInfo:{breakAround:!0}},frametitle:{signature:"d<> o m",renderInfo:{breakAround:!0}},framesubtitle:{signature:"d<> m",renderInfo:{breakAround:!0}},pause:{signature:"o"},onslide:{signature:"t+ t* d<> d{}"},only:{signature:"d<> m d<>"},uncover:{signature:"d<> m"},visible:{signature:"d<> m"},invisible:{signature:"d<> m"},alt:{signature:"d<> m m d<>"},temporal:{signature:"r<> m m m"},item:{signature:"d<> o d<>",renderInfo:{hangingIndent:!0,namedArguments:[null,"label",null]}},label:{signature:"d<> o m"},action:{signature:"d<> m"},beamerdefaultoverlayspecification:{signature:"m"},titlegraphic:{signature:"m",renderInfo:{breakAround:!0}},subject:{signature:"m",renderInfo:{breakAround:!0}},keywords:{signature:"m",renderInfo:{breakAround:!0}},lecture:{signature:"o m m",renderInfo:{breakAround:!0}},partpage:{renderInfo:{breakAround:!0}},sectionpage:{renderInfo:{breakAround:!0}},subsectionpage:{renderInfo:{breakAround:!0}},AtBeginLecture:{signature:"m",renderInfo:{breakAround:!0}},AtBeginPart:{signature:"m",renderInfo:{breakAround:!0}},tableofcontents:{signature:"o",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},againframe:{signature:"d<> o o m",renderInfo:{breakAround:!0}},framezoom:{signature:"r<> r<> o r() r()",renderInfo:{breakAround:!0}},column:{signature:"d<> o m",renderInfo:{breakAround:!0}},animate:{signature:"r<>",renderInfo:{breakAround:!0}},animatevalue:{signature:"r<> m m m",renderInfo:{breakAround:!0}},sound:{signature:"o m m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},hyperlinksound:{signature:"o m m",renderInfo:{breakAround:!0,pgfkeysArgs:!0}},hyperlinkmute:{signature:"m",renderInfo:{breakAround:!0}},section:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},subsection:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},subsubsection:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},part:{signature:"s d<> o m",renderInfo:{breakAround:!0,namedArguments:["starred",null,"tocTitle","title"]}},bibitem:{signature:"s d<> o m",renderInfo:{hangingIndent:!0,namedArguments:["starred",null,"tocTitle","title"]}}},Ih={frame:{signature:"!d<> !o !o !d{} !d{}"},block:{signature:"!d<> !d{} !d<>"},alertblock:{signature:"!d<> !d{} !d<>"},exampleblock:{signature:"!d<> !d{} !d<>"},onlyenv:{signature:"!d<>"},altenv:{signature:"!d<> m m m m !d<>"},overlayarea:{signature:"m m"},overprint:{signature:"o"},actionenv:{signature:"!d<>"},columns:{signature:"d<> o"},column:{signature:"d<> o m"}},Mh={columnbreak:{renderInfo:{breakAround:!0}}},Sh={multicols:{signature:"m o o"},"multicols*":{signature:"m o o"}},Ph={cleveref:e0,exam:d0,geometry:v0,hyperref:y0,latex2e:A0,listings:T0,makeidx:L0,mathtools:N0,minted:q0,nicematrix:G0,systeme:V0,tikz:Y0,xcolor:$h,xparse:kh,beamer:Eh,multicol:Mh},Fh={cleveref:r0,exam:m0,geometry:b0,hyperref:$0,latex2e:x0,listings:D0,makeidx:B0,mathtools:j0,minted:W0,nicematrix:U0,systeme:H0,tikz:J0,xcolor:Ah,xparse:Ch,beamer:Ih,multicol:Sh};function Il(r,t){if(t.signature&&r.args==null){const{args:i}=Xi(r.content,t.signature);r.args=i}us(r,t.renderInfo),typeof t.processContent=="function"&&(r.content=t.processContent(r.content))}function Ml(r,t,i){const o=[];let n={start:void 0,end:r.length};for(let s=0;sl.start-u.start);const i=new Set(t.flatMap(l=>[l.start,l.end])),o=Array.from(i);o.sort((l,u)=>l-u);const n=[],s=[];let e=0;for(let l=0;l=y.start&&(K=!0),!K&&b.endd)break;b.start<=y.start&&b.end>=y.end&&(K=!0,T.add(b))}T.size>0&&(n.push(y),s.push(T))}return{regions:n,regionsContainedIn:s}}function Rh(r,t){const i=[],o=[0,r.length],n={};for(const[s,e]of Object.entries(t))o.push(...e.flatMap(l=>(n[""+[l.start,l.end]]=s,[l.start,l.end])));o.sort((s,e)=>s-e);for(let s=0;s1)throw new Error(`Only single characters are allowed as \`allowedTokens\` when reparsing macro names, not \`${n}\`.`);let o=!1;return $n(r,n=>{if(Lh(n,i))return o=!0,qi},{includeArrays:!0,test:Array.isArray}),o}function Bh(r,t){var i,o,n;const s=Dh(t);let e=0;for(;e0?y.length===u.content.length?(l.content+=u.content,r.splice(e+1,1),l.position&&((i=u.position)!=null&&i.end)&&(l.position.end=u.position.end)):(l.content+=y,u.content=u.content.slice(y.length),(o=l.position)!=null&&o.end&&(l.position.end.offset+=y.length,l.position.end.column+=y.length),(n=u.position)!=null&&n.start&&(u.position.start.offset+=y.length,u.position.start.column+=y.length)):e++}else++e}}function Wi(r,t){typeof t=="string"&&(t=new Set(t.split("")));const i=t;for(const o of i)if(o.length>1)throw new Error(`Only single characters are allowed as \`allowedTokens\` when reparsing macro names, not \`${o}\`.`);$n(r,o=>{Bh(o,i)},{includeArrays:!0,test:Array.isArray})}const Pl={start:Ve.createMacroMatcher(["ExplSyntaxOn"]),end:Ve.createMacroMatcher(["ExplSyntaxOff"])},Fl={start:Ve.createMacroMatcher(["makeatletter"]),end:Ve.createMacroMatcher(["makeatother"])};function Nh(r){const t=Ml(r,Pl.start,Pl.end),i=Ml(r,Fl.start,Fl.end),o=new Map([...t.map(e=>[e,"expl"]),...i.map(e=>[e,"atLetter"])]),n=Oh([...t,...i]),s={explOnly:[],atLetterOnly:[],both:[]};for(let e=0;ee.end-e.start>1),s.atLetterOnly=s.atLetterOnly.filter(e=>e.end-e.start>1),s.both=s.both.filter(e=>e.end-e.start>1),s}const jh=new Set(["@"]),zh=new Set(["_",":"]),qh=new Set(["_",":","@"]);function Wh(r){$n(r,{leave:t=>{const i=Nh(t);if(i.both.length+i.atLetterOnly.length+i.explOnly.length===0)return;const n=Rh(t,i),s=[];for(const[e,l]of n)switch(e){case null:s.push(...l);continue;case"atLetterOnly":Wi(l,jh),s.push(...l);continue;case"explOnly":Wi(l,zh),s.push(...l);continue;case"both":Wi(l,qh),s.push(...l);continue;default:throw new Error(`Unexpected case when splitting ${e}`)}return t.length=0,t.push(...s),qf}},{includeArrays:!0,test:Array.isArray})}const nu=function(){Object.assign(this,{Compiler:t=>t})};function Gh(r){return Uf.parse(r)}function xo(r){return Uf.parse(r,{startRule:"math"})}const Uh=function(t){Object.assign(this,{Parser:o=>(t==null?void 0:t.mode)==="math"?{type:"root",content:xo(o),_renderInfo:{inMathMode:!0}}:Gh(o)})};function Vh({mathEnvs:r,mathMacros:t}){const i=Ve.createEnvironmentMatcher(r),o=Ve.createMacroMatcher(t);return n=>{$n(n,s=>{if(Ve.anyMacro(s))for(const e of s.args||[])e.content.length>0&&!Ol(e.content)&&(e.content=xo(yn(e.content)));Ve.anyEnvironment(s)&&(Ol(s.content)||(s.content=xo(yn(s.content))))},{test:s=>i(s)||o(s)})}}function Ol(r){return!r.some(t=>Ve.anyString(t)&&t.content.length>1||Ve.string(t,"^")||Ve.string(t,"_"))}const Hh=function(t){const{environments:i={},macros:o={}}=t||{},n=Object.fromEntries(Object.entries(o).filter(([d,y])=>{var T;return((T=y.renderInfo)==null?void 0:T.inMathMode)===!0})),s=Object.fromEntries(Object.entries(i).filter(([d,y])=>{var T;return((T=y.renderInfo)==null?void 0:T.inMathMode)===!0})),e=Vh({mathEnvs:Object.keys(s),mathMacros:Object.keys(n)}),l=Ve.createEnvironmentMatcher(i),u=Ve.createEnvironmentMatcher(s);return d=>{$n(d,{enter:y=>{Array.isArray(y)&&Yi(y,n)},leave:y=>{if(!u(y))return;const T=yn(y.env),K=i[T];if(!K)throw new Error(`Could not find environment info for environment "${T}"`);Il(y,K)}},{includeArrays:!0}),e(d),$n(d,{enter:y=>{Array.isArray(y)&&Yi(y,o)},leave:y=>{if(!l(y))return;const T=yn(y.env),K=i[T];if(!K)throw new Error(`Could not find environment info for environment "${T}"`);Il(y,K)}},{includeArrays:!0})}},Kh=function(t){let{atLetter:i=!1,expl3:o=!1,autodetectExpl3AndAtLetter:n=!1}=t||{};return s=>{Wh(s),(i||o)&&(n=!1),n&&(i=Sl(s,"@"),o=Sl(s,"_"));const e=new Set;i&&e.add("@"),o&&(e.add(":"),e.add("_")),e.size>0&&Wi(s,e)}},iu=function(t){const{mode:i="regular",macros:o={},environments:n={},flags:{atLetter:s=!1,expl3:e=!1,autodetectExpl3AndAtLetter:l=!1}={}}=t||{},u=Object.assign({},...Object.values(Ph),o),d=Object.assign({},...Object.values(Fh),n),y=Go().use(Uh,{mode:i}).use(Kh,{atLetter:s,expl3:e,autodetectExpl3AndAtLetter:l}).use(Hh,{macros:u,environments:d}).use(f0).use(u0).use(nu);Object.assign(this,{Parser:K=>y.processSync({value:K}).result})};Go().use(iu).freeze();function Xh(r){return!(r!=null&&r.content)||r.content.length===0}const Yh={",":r=>r.data.inFunction?"comma":",","&":r=>r.data.inArray?",":"&","/":"\\/",";":"\\;"};function Rl(r){var t,i,o;((i=(t=r.args)===null||t===void 0?void 0:t[0].content)===null||i===void 0?void 0:i.length)===1&&((o=r.args)===null||o===void 0?void 0:o[0].content)[0].type==="string"&&(r.args[0].content=r.args[0].content[0].content.split("").map(n=>({type:"string",content:n})))}const Jh={cdot:"dot.op",to:"arrow.r",rightarrow:"arrow.r",leftarrow:"arrow.l",gets:"arrow.l",infty:"infinity",nonumber:"",int:"integral",iint:"integral.double",sqrt:(r,t)=>{var i;return Xh((i=t.args)===null||i===void 0?void 0:i[0])?"sqrt":"root"},vec:"arrow",mathbf:"bold",boldsymbol:"bold",mathrm:"upright",rm:"upright",mathcal:"cal",mathfrak:"frak",pm:"plus.minus",partial:"diff",_:(r,t)=>(Rl(t),"_"),"^":(r,t)=>(Rl(t),"^"),left:(r,t)=>{var i;const o=t.args;t.args=[];const n=((i=o==null?void 0:o[0].content)===null||i===void 0?void 0:i[0]).content;if(n==="(")return"(";if(n==="[")return"[";if(n==="{")return"{";if(n==="|")return"|";throw new Error(`Undefined left bracket: ${n}`)},right:(r,t)=>{var i;const o=t.args;t.args=[];const n=((i=o==null?void 0:o[0].content)===null||i===void 0?void 0:i[0]).content;if(n===")")return")";if(n==="]")return"]";if(n==="}")return"}";if(n==="|")return"|";throw new Error(`Undefined right bracket: ${n}`)},operatorname:(r,t)=>{var i;const o=(i=t.args)===null||i===void 0?void 0:i.slice(-1)[0];return t.args=[{type:"macro",content:"text",args:[o]}],"op"},"\\":(r,t)=>(t.args=[],r.data.inArray?";":`\\ -`),sim:"tilde",phi:"phi.alt",propto:"prop",doteq:"dot(eq)",ge:"gt.eq",geq:"gt.eq",le:"lt.eq",leq:"lt.eq",neq:"eq.not",dot:"dot",ddot:"dot.double",dots:"dots.h",ldots:"dots.h",vdots:"dots.v",ddots:"dots.down",subseteq:"subset.eq",cdots:"dots.h.c",cap:"sect",cup:"union",widehat:"hat",",":"thin",":":"med",";":"thick","!":"#h(-1em)",quad:"quad",qquad:"wide",prod:"product",mathbb:(r,t)=>{var i,o,n,s,e;const u=((e=(s=(n=(o=(i=t.args)===null||i===void 0?void 0:i.slice(-1)[0])===null||o===void 0?void 0:o.content)===null||n===void 0?void 0:n[0])===null||s===void 0?void 0:s.content)!==null&&e!==void 0?e:"").split("").map(d=>`${d}${d}`).join(" ");return t.args=[],u}},Zh={array:(r,t)=>{r.data.inArray=!0,r.openFunction("mat"),r.write("delim: #none,"),r.writeChildren(t),r.closeFunction(),r.data.inArray=!1}};function Qh(r){return{type:"math",content:Go().use(iu,{mode:"math"}).use(nu).use(P0,{macros:{vec:{signature:"m"},boldsymbol:{signature:"m"},left:{signature:"m"},right:{signature:"m"},dot:{signature:"m"},ddot:{signature:"m"},hat:{signature:"m"},widehat:{signature:"m"}}}).processSync({value:r}).result.content}}function wo(r){if(delete r.position,Array.isArray(r.content)){const t=r.content.map(n=>wo(n));let i=0;const o=t.reduce((n,s,e,l)=>{var u;if(i>0)return i-=1,n;if(s.type==="string"&&(s.content==="_"||s.content==="^")){const{args:d,nodesRemoved:y}=Xi(l.slice(e+1),"m");s.type="macro",s.args=d,i+=y}if(s.type==="macro"&&(s.content==="overbrace"||s.content==="underbrace")){const{args:d,nodesRemoved:y}=Xi(l.slice(e+1),"m");d[0].content.length===1&&d[0].content[0].type==="macro"&&(d[0].content[0].content==="^"&&s.content==="overbrace"||d[0].content[0].content==="_"&&s.content==="underbrace")&&(s.args=[...(u=s.args)!==null&&u!==void 0?u:[],...d[0].content[0].args],i+=y)}return n.push(s),n},[]);return r.content=o,{...r,content:o}}if(Array.isArray(r.args)){const t=r.args.map(i=>wo(i));return r.args=t,{...r,args:t}}return r}class ed{constructor(){this._scriptsSimplified=!1,this._closeToken=[],this._currentFunctions=[],this._value="",this.data={}}get value(){return this._value}addWhitespace(){const t=this.value.slice(-1);!this._value||t.match(/^(["\s_^{(-])$/)||(this._value+=" ")}write(t){t&&(this._scriptsSimplified&&t==="("?this.addWhitespace():t.match(/^([}()_^,;!])$/)||this.addWhitespace(),this._scriptsSimplified=!1,this._value+=t)}writeChildren(t){var i;Array.isArray(t==null?void 0:t.content)&&((i=t.content)===null||i===void 0||i.forEach(o=>{Vo(o,this)}))}get _currentFunction(){return this._currentFunctions.slice(-1)[0]}get _functionCount(){return this._currentFunctions.length}openFunction(t){t==="text"?this.addWhitespace():this.write(t),this._currentFunctions.push(t),this.data.inFunction=!0,this._simplify=t==="_"||t==="^",this._lastFunction=this._value.length,this._value+=t==="text"?'"':"(",this._closeToken.push(t==="text"?'"':")")}closeFunction(){if(this._value+=this._closeToken.pop()||")",this._currentFunctions.pop(),this.data.inFunction=this._functionCount>=1,!this._simplify)return;const t=this._value.slice(this._lastFunction);(t.length===3||t.match(/^\([a-zA-Z]*\)$/))&&(this._value=this._value.slice(0,this._lastFunction)+t.slice(1,-1),this._scriptsSimplified=!0)}}function Tl(r,t){if(t.type==="macro"&&typeof t.content=="string"){const i=Jh[t.content],o=typeof i=="function"?i(r,t):i;return o??t.content}return""}function Dl(r,t){const i=Yh[t];return typeof i=="function"?i(r)||t:i||t}function Vo(r,t=new ed){if(r.type==="whitespace")return t;if(r.type==="string"){const i=r.content;t._currentFunction==="text"?t.write(Dl(t,i)):i.split("").forEach(o=>{t.write(Dl(t,o))})}else if(r.type==="environment"&&Array.isArray(r.content)){const i=Zh[r.env];i==null||i(t,r)}else if(Array.isArray(r.content))t.writeChildren(r);else if(r.type==="macro"&&Array.isArray(r.args)){const i=Tl(t,r);if(r.args.length===0)return t.write(i),t;t.openFunction(i),r.args.filter(o=>!(Array.isArray(o.content)&&o.content.length===0)).forEach((o,n)=>{n!==0&&t.write(","),Vo(o,t)}),t.closeFunction()}else if(r.type==="macro"&&typeof r.content=="string"){const i=Tl(t,r);t.write(i??r.content)}return t}function rd(r){return r.replace(/^(_|\^)/,'""$1')}function td(r){const t=Qh(r);wo(t);const i=Vo(t);return rd(i.value)}function nd(r){var t=document.createElement("textarea");t.value=r,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{var i=document.execCommand("copy");i||console.log("Fallback: Error on copying text command")}catch(o){console.error("Fallback: Oops, unable to copy",o)}document.body.removeChild(t)}function id(r){if(!navigator.clipboard){nd(r);return}navigator.clipboard.writeText(r).then(function(){},function(t){console.error("Async: Could not copy text: ",t)})}const sd=(r,t)=>{const i=r.__vccOpts||r;for(const[o,n]of t)i[o]=n;return i},cs=r=>(Zc("data-v-68d0d1bd"),r=r(),Qc(),r),od={class:"bg-app text-app-blue min-h-screen flex flex-col"},ad=cs(()=>et("header",null,[et("h1",{class:"text-left text-4xl p-4"},"tex2typst")],-1)),ld=cs(()=>et("div",{class:"text-app-blue p-4 text-center"},[Ni(" Covert LaTeX math formula code to "),et("a",{href:"https://typst.app/",target:"_blank"},"Typst"),Ni(" code! "),et("br"),Ni(" This tool runs locally in your browser. Nothing is uploaded. ")],-1)),fd={class:"flex flex-1 p-8"},ud={class:"flex-1 flex flex-col border border-gray-700 rounded-lg"},cd={class:"flex justify-between p-4 border-b border-gray-700"},gd=cs(()=>et("span",{class:"text-app-blue"},"LaTex code",-1)),pd={class:"flex-1 flex flex-col border border-gray-700 rounded-lg ml-8"},hd=cs(()=>et("span",{class:"text-app-blue"},"Typst code",-1)),dd={class:"flex-1 p-4",id:"typst"},md={class:"p-4 text-center"},vd=["innerHTML"],bd=Yg('',1),yd="\\prod_{p} \\frac{1}{1-p^{-s}}= \\sum _{n=1}^{\\infty} \\frac{1}{n^s}",$d={__name:"App",setup(r){const t=jc(yd),i=so(()=>td(t.value)),o=so(()=>t.value===""?"
Math formula will be rendered here.
":katex.renderToString(t.value,{displayMode:!0,throwOnError:!1}));function n(){id(i.value)}return(s,e)=>(Wg(),Vg("div",od,[ad,ld,et("main",fd,[et("div",ud,[et("div",cd,[gd,et("button",{class:"text-app-light-black",onClick:e[0]||(e[0]=l=>t.value="")},"Clear")]),vg(et("textarea",{class:"flex-1 p-4","onUpdate:modelValue":e[1]||(e[1]=l=>t.value=l)},null,512),[[Ip,t.value]])]),et("div",pd,[et("div",{class:"flex justify-between p-4 border-b border-gray-700"},[hd,et("button",{class:"text-app-light-black",onClick:n},"Copy")]),et("div",dd,Vl(i.value),1)])]),et("div",md,[et("div",{innerHTML:o.value},null,8,vd)]),bd]))}},Ad=sd($d,[["__scopeId","data-v-68d0d1bd"]]);Pp(Ad).mount("#app"); +`),sim:"tilde",phi:"phi.alt",propto:"prop",doteq:"dot(eq)",ge:"gt.eq",geq:"gt.eq",le:"lt.eq",leq:"lt.eq",neq:"eq.not",dot:"dot",ddot:"dot.double",dots:"dots.h",ldots:"dots.h",vdots:"dots.v",ddots:"dots.down",subseteq:"subset.eq",cdots:"dots.h.c",cap:"sect",cup:"union",widehat:"hat",",":"thin",":":"med",";":"thick","!":"#h(-1em)",quad:"quad",qquad:"wide",prod:"product",mathbb:(r,t)=>{var i,o,n,s,e;const u=((e=(s=(n=(o=(i=t.args)===null||i===void 0?void 0:i.slice(-1)[0])===null||o===void 0?void 0:o.content)===null||n===void 0?void 0:n[0])===null||s===void 0?void 0:s.content)!==null&&e!==void 0?e:"").split("").map(d=>`${d}${d}`).join(" ");return t.args=[],u}},Zh={array:(r,t)=>{r.data.inArray=!0,r.openFunction("mat"),r.write("delim: #none,"),r.writeChildren(t),r.closeFunction(),r.data.inArray=!1}};function Qh(r){return{type:"math",content:Go().use(iu,{mode:"math"}).use(nu).use(P0,{macros:{vec:{signature:"m"},boldsymbol:{signature:"m"},left:{signature:"m"},right:{signature:"m"},dot:{signature:"m"},ddot:{signature:"m"},hat:{signature:"m"},widehat:{signature:"m"}}}).processSync({value:r}).result.content}}function wo(r){if(delete r.position,Array.isArray(r.content)){const t=r.content.map(n=>wo(n));let i=0;const o=t.reduce((n,s,e,l)=>{var u;if(i>0)return i-=1,n;if(s.type==="string"&&(s.content==="_"||s.content==="^")){const{args:d,nodesRemoved:y}=Xi(l.slice(e+1),"m");s.type="macro",s.args=d,i+=y}if(s.type==="macro"&&(s.content==="overbrace"||s.content==="underbrace")){const{args:d,nodesRemoved:y}=Xi(l.slice(e+1),"m");d[0].content.length===1&&d[0].content[0].type==="macro"&&(d[0].content[0].content==="^"&&s.content==="overbrace"||d[0].content[0].content==="_"&&s.content==="underbrace")&&(s.args=[...(u=s.args)!==null&&u!==void 0?u:[],...d[0].content[0].args],i+=y)}return n.push(s),n},[]);return r.content=o,{...r,content:o}}if(Array.isArray(r.args)){const t=r.args.map(i=>wo(i));return r.args=t,{...r,args:t}}return r}class ed{constructor(){this._scriptsSimplified=!1,this._closeToken=[],this._currentFunctions=[],this._value="",this.data={}}get value(){return this._value}addWhitespace(){const t=this.value.slice(-1);!this._value||t.match(/^(["\s_^{(-])$/)||(this._value+=" ")}write(t){t&&(this._scriptsSimplified&&t==="("?this.addWhitespace():t.match(/^([}()_^,;!])$/)||this.addWhitespace(),this._scriptsSimplified=!1,this._value+=t)}writeChildren(t){var i;Array.isArray(t==null?void 0:t.content)&&((i=t.content)===null||i===void 0||i.forEach(o=>{Vo(o,this)}))}get _currentFunction(){return this._currentFunctions.slice(-1)[0]}get _functionCount(){return this._currentFunctions.length}openFunction(t){t==="text"?this.addWhitespace():this.write(t),this._currentFunctions.push(t),this.data.inFunction=!0,this._simplify=t==="_"||t==="^",this._lastFunction=this._value.length,this._value+=t==="text"?'"':"(",this._closeToken.push(t==="text"?'"':")")}closeFunction(){if(this._value+=this._closeToken.pop()||")",this._currentFunctions.pop(),this.data.inFunction=this._functionCount>=1,!this._simplify)return;const t=this._value.slice(this._lastFunction);(t.length===3||t.match(/^\([a-zA-Z]*\)$/))&&(this._value=this._value.slice(0,this._lastFunction)+t.slice(1,-1),this._scriptsSimplified=!0)}}function Tl(r,t){if(t.type==="macro"&&typeof t.content=="string"){const i=Jh[t.content],o=typeof i=="function"?i(r,t):i;return o??t.content}return""}function Dl(r,t){const i=Yh[t];return typeof i=="function"?i(r)||t:i||t}function Vo(r,t=new ed){if(r.type==="whitespace")return t;if(r.type==="string"){const i=r.content;t._currentFunction==="text"?t.write(Dl(t,i)):i.split("").forEach(o=>{t.write(Dl(t,o))})}else if(r.type==="environment"&&Array.isArray(r.content)){const i=Zh[r.env];i==null||i(t,r)}else if(Array.isArray(r.content))t.writeChildren(r);else if(r.type==="macro"&&Array.isArray(r.args)){const i=Tl(t,r);if(r.args.length===0)return t.write(i),t;t.openFunction(i),r.args.filter(o=>!(Array.isArray(o.content)&&o.content.length===0)).forEach((o,n)=>{n!==0&&t.write(","),Vo(o,t)}),t.closeFunction()}else if(r.type==="macro"&&typeof r.content=="string"){const i=Tl(t,r);t.write(i??r.content)}return t}function rd(r){return r.replace(/^(_|\^)/,'""$1')}function td(r){const t=Qh(r);wo(t);const i=Vo(t);return rd(i.value)}function nd(r){var t=document.createElement("textarea");t.value=r,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{var i=document.execCommand("copy");i||console.log("Fallback: Error on copying text command")}catch(o){console.error("Fallback: Oops, unable to copy",o)}document.body.removeChild(t)}function id(r){if(!navigator.clipboard){nd(r);return}navigator.clipboard.writeText(r).then(function(){},function(t){console.error("Async: Could not copy text: ",t)})}const sd=(r,t)=>{const i=r.__vccOpts||r;for(const[o,n]of t)i[o]=n;return i},cs=r=>(Zc("data-v-dc136763"),r=r(),Qc(),r),od={class:"bg-app text-app-blue min-h-screen flex flex-col"},ad=cs(()=>et("header",null,[et("h1",{class:"text-left text-4xl p-4"},"tex2typst")],-1)),ld=cs(()=>et("div",{class:"text-app-blue p-4 text-center"},[Ni(" Covert LaTeX math formula code to "),et("a",{href:"https://typst.app/",target:"_blank"},"Typst"),Ni(" code! "),et("br"),Ni(" This tool runs locally in your browser. Nothing is uploaded. ")],-1)),fd={class:"flex flex-1 p-8"},ud={class:"flex-1 flex flex-col border border-gray-700 rounded-lg"},cd={class:"flex justify-between p-4 border-b border-gray-700"},gd=cs(()=>et("span",{class:"text-app-blue"},"LaTeX code",-1)),pd={class:"flex-1 flex flex-col border border-gray-700 rounded-lg ml-8"},hd=cs(()=>et("span",{class:"text-app-blue"},"Typst code",-1)),dd={class:"flex-1 p-4",id:"typst"},md={class:"p-4 text-center"},vd=["innerHTML"],bd=Yg('',1),yd="\\prod_{p} \\frac{1}{1-p^{-s}}= \\sum _{n=1}^{\\infty} \\frac{1}{n^s}",$d={__name:"App",setup(r){const t=jc(yd),i=so(()=>td(t.value)),o=so(()=>t.value===""?"
Math formula will be rendered here.
":katex.renderToString(t.value,{displayMode:!0,throwOnError:!1}));function n(){id(i.value)}return(s,e)=>(Wg(),Vg("div",od,[ad,ld,et("main",fd,[et("div",ud,[et("div",cd,[gd,et("button",{class:"text-app-light-black",onClick:e[0]||(e[0]=l=>t.value="")},"Clear")]),vg(et("textarea",{class:"flex-1 p-4","onUpdate:modelValue":e[1]||(e[1]=l=>t.value=l)},null,512),[[Ip,t.value]])]),et("div",pd,[et("div",{class:"flex justify-between p-4 border-b border-gray-700"},[hd,et("button",{class:"text-app-light-black",onClick:n},"Copy")]),et("div",dd,Vl(i.value),1)])]),et("div",md,[et("div",{innerHTML:o.value},null,8,vd)]),bd]))}},Ad=sd($d,[["__scopeId","data-v-dc136763"]]);Pp(Ad).mount("#app"); diff --git a/index.html b/index.html index 7dc59c3..411eb90 100644 --- a/index.html +++ b/index.html @@ -8,8 +8,8 @@ tex2typst Web App - Convert LaTex formula code to Typst - - + +