reacthub-pixitweenjs 0.2.64 → 0.2.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +113 -113
- package/dist/index.umd.js +14 -14
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var _y=bt,by=Symbol.for("react.element"),xy=Symbol.for("react.fragment"),Ey=Object.prototype.hasOwnProperty,wy=_y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ty={key:!0,ref:!0,__self:!0,__source:!0};function Xf(e,t,r){var n,i={},a=null,l=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)Ey.call(t,n)&&!Ty.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:by,type:e,key:a,ref:l,props:i,_owner:wy.current}}Ls.Fragment=xy,Ls.jsx=Xf,Ls.jsxs=Xf,Wf.exports=Ls;var Zt=Wf.exports,An=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(An||{}),Kf=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Kf||{}),Bo=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(Bo||{}),Rt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Rt||{}),an=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(an||{}),mt=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(mt||{}),Zn=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(Zn||{}),zt=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(zt||{}),Uo=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(Uo||{}),qr=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(qr||{}),Vi=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Vi||{}),Sn=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(Sn||{}),on=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(on||{}),On=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(On||{}),Do=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(Do||{}),sr=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(sr||{}),Ee=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(Ee||{}),be=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(be||{}),Pr=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(Pr||{});const Ht={ADAPTER:{createCanvas:(e,t)=>{const r=document.createElement("canvas");return r.width=e,r.height=t,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var $o=/iPhone/i,Yf=/iPod/i,Zf=/iPad/i,Jf=/\biOS-universal(?:.+)Mac\b/i,Go=/\bAndroid(?:.+)Mobile\b/i,Qf=/Android/i,Jn=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Fs=/Silk/i,jr=/Windows Phone/i,tc=/\bWindows(?:.+)ARM\b/i,ec=/BlackBerry/i,rc=/BB10/i,nc=/Opera Mini/i,ic=/\b(CriOS|Chrome)(?:.+)Mobile/i,sc=/Mobile(?:.+)Firefox\b/i,ac=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function Ay(e){return function(t){return t.test(e)}}function oc(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var r=t.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=Ay(r),a={apple:{phone:i($o)&&!i(jr),ipod:i(Yf),tablet:!i($o)&&(i(Zf)||ac(t))&&!i(jr),universal:i(Jf),device:(i($o)||i(Yf)||i(Zf)||i(Jf)||ac(t))&&!i(jr)},amazon:{phone:i(Jn),tablet:!i(Jn)&&i(Fs),device:i(Jn)||i(Fs)},android:{phone:!i(jr)&&i(Jn)||!i(jr)&&i(Go),tablet:!i(jr)&&!i(Jn)&&!i(Go)&&(i(Fs)||i(Qf)),device:!i(jr)&&(i(Jn)||i(Fs)||i(Go)||i(Qf))||i(/\bokhttp\b/i)},windows:{phone:i(jr),tablet:i(tc),device:i(jr)||i(tc)},other:{blackberry:i(ec),blackberry10:i(rc),opera:i(nc),firefox:i(sc),chrome:i(ic),device:i(ec)||i(rc)||i(nc)||i(sc)||i(ic)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}const Qn=(oc.default??oc)(globalThis.navigator);Ht.RETINA_PREFIX=/@([0-9\.]+)x/,Ht.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var lc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(f,h,d){this.fn=f,this.context=h,this.once=d||!1}function a(f,h,d,p,c){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new i(d,p||f,c),y=r?r+h:h;return f._events[y]?f._events[y].fn?f._events[y]=[f._events[y],v]:f._events[y].push(v):(f._events[y]=v,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new n:delete f._events[h]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var h=[],d,p;if(this._eventsCount===0)return h;for(p in d=this._events)t.call(d,p)&&h.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(d)):h},u.prototype.listeners=function(h){var d=r?r+h:h,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var c=0,v=p.length,y=new Array(v);c<v;c++)y[c]=p[c].fn;return y},u.prototype.listenerCount=function(h){var d=r?r+h:h,p=this._events[d];return p?p.fn?1:p.length:0},u.prototype.emit=function(h,d,p,c,v,y){var m=r?r+h:h;if(!this._events[m])return!1;var b=this._events[m],_=arguments.length,E,w;if(b.fn){switch(b.once&&this.removeListener(h,b.fn,void 0,!0),_){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,p),!0;case 4:return b.fn.call(b.context,d,p,c),!0;case 5:return b.fn.call(b.context,d,p,c,v),!0;case 6:return b.fn.call(b.context,d,p,c,v,y),!0}for(w=1,E=new Array(_-1);w<_;w++)E[w-1]=arguments[w];b.fn.apply(b.context,E)}else{var x=b.length,A;for(w=0;w<x;w++)switch(b[w].once&&this.removeListener(h,b[w].fn,void 0,!0),_){case 1:b[w].fn.call(b[w].context);break;case 2:b[w].fn.call(b[w].context,d);break;case 3:b[w].fn.call(b[w].context,d,p);break;case 4:b[w].fn.call(b[w].context,d,p,c);break;default:if(!E)for(A=1,E=new Array(_-1);A<_;A++)E[A-1]=arguments[A];b[w].fn.apply(b[w].context,E)}}return!0},u.prototype.on=function(h,d,p){return a(this,h,d,p,!1)},u.prototype.once=function(h,d,p){return a(this,h,d,p,!0)},u.prototype.removeListener=function(h,d,p,c){var v=r?r+h:h;if(!this._events[v])return this;if(!d)return l(this,v),this;var y=this._events[v];if(y.fn)y.fn===d&&(!c||y.once)&&(!p||y.context===p)&&l(this,v);else{for(var m=0,b=[],_=y.length;m<_;m++)(y[m].fn!==d||c&&!y[m].once||p&&y[m].context!==p)&&b.push(y[m]);b.length?this._events[v]=b.length===1?b[0]:b:l(this,v)}return this},u.prototype.removeAllListeners=function(h){var d;return h?(d=r?r+h:h,this._events[d]&&l(this,d)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(lc);var Sy=lc.exports;const Bs=Tn(Sy);var qo={exports:{}};qo.exports=Us,qo.exports.default=Us;function Us(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=uc(e,0,i,r,!0),l=[];if(!a||a.next===a.prev)return l;var u,f,h,d,p,c,v;if(n&&(a=Ny(e,t,a,r)),e.length>80*r){u=h=e[0],f=d=e[1];for(var y=r;y<i;y+=r)p=e[y],c=e[y+1],p<u&&(u=p),c<f&&(f=c),p>h&&(h=p),c>d&&(d=c);v=Math.max(h-u,d-f),v=v!==0?32767/v:0}return Wi(a,l,r,u,f,v,0),l}function uc(e,t,r,n,i){var a,l;if(i===zo(e,t,r,n)>0)for(a=t;a<r;a+=n)l=hc(a,e[a],e[a+1],l);else for(a=r-n;a>=t;a-=n)l=hc(a,e[a],e[a+1],l);return l&&Ds(l,l.next)&&(Ki(l),l=l.next),l}function In(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Ds(r,r.next)||ce(r.prev,r,r.next)===0)){if(Ki(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Wi(e,t,r,n,i,a,l){if(e){!l&&a&&Fy(e,n,i,a);for(var u=e,f,h;e.prev!==e.next;){if(f=e.prev,h=e.next,a?Iy(e,n,i,a):Oy(e)){t.push(f.i/r|0),t.push(e.i/r|0),t.push(h.i/r|0),Ki(e),e=h.next,u=h.next;continue}if(e=h,e===u){l?l===1?(e=Ry(In(e),t,r),Wi(e,t,r,n,i,a,2)):l===2&&Cy(e,t,r,n,i,a):Wi(In(e),t,r,n,i,a,1);break}}}}function Oy(e){var t=e.prev,r=e,n=e.next;if(ce(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,l=n.x,u=t.y,f=r.y,h=n.y,d=i<a?i<l?i:l:a<l?a:l,p=u<f?u<h?u:h:f<h?f:h,c=i>a?i>l?i:l:a>l?a:l,v=u>f?u>h?u:h:f>h?f:h,y=n.next;y!==t;){if(y.x>=d&&y.x<=c&&y.y>=p&&y.y<=v&&ti(i,u,a,f,l,h,y.x,y.y)&&ce(y.prev,y,y.next)>=0)return!1;y=y.next}return!0}function Iy(e,t,r,n){var i=e.prev,a=e,l=e.next;if(ce(i,a,l)>=0)return!1;for(var u=i.x,f=a.x,h=l.x,d=i.y,p=a.y,c=l.y,v=u<f?u<h?u:h:f<h?f:h,y=d<p?d<c?d:c:p<c?p:c,m=u>f?u>h?u:h:f>h?f:h,b=d>p?d>c?d:c:p>c?p:c,_=jo(v,y,t,r,n),E=jo(m,b,t,r,n),w=e.prevZ,x=e.nextZ;w&&w.z>=_&&x&&x.z<=E;){if(w.x>=v&&w.x<=m&&w.y>=y&&w.y<=b&&w!==i&&w!==l&&ti(u,d,f,p,h,c,w.x,w.y)&&ce(w.prev,w,w.next)>=0||(w=w.prevZ,x.x>=v&&x.x<=m&&x.y>=y&&x.y<=b&&x!==i&&x!==l&&ti(u,d,f,p,h,c,x.x,x.y)&&ce(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;w&&w.z>=_;){if(w.x>=v&&w.x<=m&&w.y>=y&&w.y<=b&&w!==i&&w!==l&&ti(u,d,f,p,h,c,w.x,w.y)&&ce(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;x&&x.z<=E;){if(x.x>=v&&x.x<=m&&x.y>=y&&x.y<=b&&x!==i&&x!==l&&ti(u,d,f,p,h,c,x.x,x.y)&&ce(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function Ry(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!Ds(i,a)&&fc(i,n,n.next,a)&&Xi(i,a)&&Xi(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),Ki(n),Ki(n.next),n=e=a),n=n.next}while(n!==e);return In(n)}function Cy(e,t,r,n,i,a){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&Dy(l,u)){var f=cc(l,u);l=In(l,l.next),f=In(f,f.next),Wi(l,t,r,n,i,a,0),Wi(f,t,r,n,i,a,0);return}u=u.next}l=l.next}while(l!==e)}function Ny(e,t,r,n){var i=[],a,l,u,f,h;for(a=0,l=t.length;a<l;a++)u=t[a]*n,f=a<l-1?t[a+1]*n:e.length,h=uc(e,u,f,n,!1),h===h.next&&(h.steiner=!0),i.push(Uy(h));for(i.sort(Py),a=0;a<i.length;a++)r=My(i[a],r);return r}function Py(e,t){return e.x-t.x}function My(e,t){var r=ky(e,t);if(!r)return t;var n=cc(r,e);return In(n,n.next),In(r,r.next)}function ky(e,t){var r=t,n=e.x,i=e.y,a=-1/0,l;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>a&&(a=u,l=r.x<r.next.x?r:r.next,u===n))return l}r=r.next}while(r!==t);if(!l)return null;var f=l,h=l.x,d=l.y,p=1/0,c;r=l;do n>=r.x&&r.x>=h&&n!==r.x&&ti(i<d?n:a,i,h,d,i<d?a:n,i,r.x,r.y)&&(c=Math.abs(i-r.y)/(n-r.x),Xi(r,e)&&(c<p||c===p&&(r.x>l.x||r.x===l.x&&Ly(l,r)))&&(l=r,p=c)),r=r.next;while(r!==f);return l}function Ly(e,t){return ce(e.prev,e,t.prev)<0&&ce(t.next,e,e.next)<0}function Fy(e,t,r,n){var i=e;do i.z===0&&(i.z=jo(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,By(i)}function By(e){var t,r,n,i,a,l,u,f,h=1;do{for(r=e,e=null,a=null,l=0;r;){for(l++,n=r,u=0,t=0;t<h&&(u++,n=n.nextZ,!!n);t++);for(f=h;u>0||f>0&&n;)u!==0&&(f===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,f--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,h*=2}while(l>1);return e}function jo(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Uy(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function ti(e,t,r,n,i,a,l,u){return(i-l)*(t-u)>=(e-l)*(a-u)&&(e-l)*(n-u)>=(r-l)*(t-u)&&(r-l)*(a-u)>=(i-l)*(n-u)}function Dy(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!$y(e,t)&&(Xi(e,t)&&Xi(t,e)&&Gy(e,t)&&(ce(e.prev,e,t.prev)||ce(e,t.prev,t))||Ds(e,t)&&ce(e.prev,e,e.next)>0&&ce(t.prev,t,t.next)>0)}function ce(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Ds(e,t){return e.x===t.x&&e.y===t.y}function fc(e,t,r,n){var i=Gs(ce(e,t,r)),a=Gs(ce(e,t,n)),l=Gs(ce(r,n,e)),u=Gs(ce(r,n,t));return!!(i!==a&&l!==u||i===0&&$s(e,r,t)||a===0&&$s(e,n,t)||l===0&&$s(r,e,n)||u===0&&$s(r,t,n))}function $s(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Gs(e){return e>0?1:e<0?-1:0}function $y(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&fc(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Xi(e,t){return ce(e.prev,e,e.next)<0?ce(e,t,e.next)>=0&&ce(e,e.prev,t)>=0:ce(e,t,e.prev)<0||ce(e,e.next,t)<0}function Gy(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function cc(e,t){var r=new Ho(e.i,e.x,e.y),n=new Ho(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function hc(e,t,r,n){var i=new Ho(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ki(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Ho(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Us.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,l=Math.abs(zo(e,0,a,r));if(i)for(var u=0,f=t.length;u<f;u++){var h=t[u]*r,d=u<f-1?t[u+1]*r:e.length;l-=Math.abs(zo(e,h,d,r))}var p=0;for(u=0;u<n.length;u+=3){var c=n[u]*r,v=n[u+1]*r,y=n[u+2]*r;p+=Math.abs((e[c]-e[y])*(e[v+1]-e[c+1])-(e[c]-e[v])*(e[y+1]-e[c+1]))}return l===0&&p===0?0:Math.abs((p-l)/l)};function zo(e,t,r,n){for(var i=0,a=t,l=r-n;a<r;a+=n)i+=(e[l]-e[a])*(e[a+1]+e[l+1]),l=a;return i}Us.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var l=0;l<t;l++)r.vertices.push(e[i][a][l]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var qy=qo.exports;const jy=Tn(qy);var qs={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */qs.exports,function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,a=typeof Ke=="object"&&Ke;(a.global===a||a.window===a||a.self===a)&&(r=a);var l,u=2147483647,f=36,h=1,d=26,p=38,c=700,v=72,y=128,m="-",b=/^xn--/,_=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-h,A=Math.floor,C=String.fromCharCode,S;function O(D){throw new RangeError(w[D])}function L(D,M){for(var U=D.length,q=[];U--;)q[U]=M(D[U]);return q}function R(D,M){var U=D.split("@"),q="";U.length>1&&(q=U[0]+"@",D=U[1]),D=D.replace(E,".");var W=D.split("."),K=L(W,M).join(".");return q+K}function I(D){for(var M=[],U=0,q=D.length,W,K;U<q;)W=D.charCodeAt(U++),W>=55296&&W<=56319&&U<q?(K=D.charCodeAt(U++),(K&64512)==56320?M.push(((W&1023)<<10)+(K&1023)+65536):(M.push(W),U--)):M.push(W);return M}function N(D){return L(D,function(M){var U="";return M>65535&&(M-=65536,U+=C(M>>>10&1023|55296),M=56320|M&1023),U+=C(M),U}).join("")}function k(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:f}function F(D,M){return D+22+75*(D<26)-((M!=0)<<5)}function j(D,M,U){var q=0;for(D=U?A(D/c):D>>1,D+=A(D/M);D>x*d>>1;q+=f)D=A(D/x);return A(q+(x+1)*D/(D+p))}function Z(D){var M=[],U=D.length,q,W=0,K=y,G=v,V,tt,et,st,ht,yt,_t,gt,It;for(V=D.lastIndexOf(m),V<0&&(V=0),tt=0;tt<V;++tt)D.charCodeAt(tt)>=128&&O("not-basic"),M.push(D.charCodeAt(tt));for(et=V>0?V+1:0;et<U;){for(st=W,ht=1,yt=f;et>=U&&O("invalid-input"),_t=k(D.charCodeAt(et++)),(_t>=f||_t>A((u-W)/ht))&&O("overflow"),W+=_t*ht,gt=yt<=G?h:yt>=G+d?d:yt-G,!(_t<gt);yt+=f)It=f-gt,ht>A(u/It)&&O("overflow"),ht*=It;q=M.length+1,G=j(W-st,q,st==0),A(W/q)>u-K&&O("overflow"),K+=A(W/q),W%=q,M.splice(W++,0,K)}return N(M)}function H(D){var M,U,q,W,K,G,V,tt,et,st,ht,yt=[],_t,gt,It,re;for(D=I(D),_t=D.length,M=y,U=0,K=v,G=0;G<_t;++G)ht=D[G],ht<128&&yt.push(C(ht));for(q=W=yt.length,W&&yt.push(m);q<_t;){for(V=u,G=0;G<_t;++G)ht=D[G],ht>=M&&ht<V&&(V=ht);for(gt=q+1,V-M>A((u-U)/gt)&&O("overflow"),U+=(V-M)*gt,M=V,G=0;G<_t;++G)if(ht=D[G],ht<M&&++U>u&&O("overflow"),ht==M){for(tt=U,et=f;st=et<=K?h:et>=K+d?d:et-K,!(tt<st);et+=f)re=tt-st,It=f-st,yt.push(C(F(st+re%It,0))),tt=A(re/It);yt.push(C(F(tt,0))),K=j(U,gt,q==W),U=0,++q}++U,++M}return yt.join("")}function nt(D){return R(D,function(M){return b.test(M)?Z(M.slice(4).toLowerCase()):M})}function Y(D){return R(D,function(M){return _.test(M)?"xn--"+H(M):M})}if(l={version:"1.4.1",ucs2:{decode:I,encode:N},decode:Z,encode:H,toASCII:Y,toUnicode:nt},n&&i)if(e.exports==n)i.exports=l;else for(S in l)l.hasOwnProperty(S)&&(n[S]=l[S]);else r.punycode=l})(Ke)}(qs,qs.exports);var Hy=qs.exports,zy=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},dc=typeof Symbol<"u"&&Symbol,Vy=zy,Wy=function(){return typeof dc!="function"||typeof Symbol!="function"||typeof dc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Vy()},pc={foo:{}},Xy=Object,Ky=function(){return{__proto__:pc}.foo===pc.foo&&!({__proto__:null}instanceof Xy)},Yy="Function.prototype.bind called on incompatible ",Vo=Array.prototype.slice,Zy=Object.prototype.toString,Jy="[object Function]",Qy=function(t){var r=this;if(typeof r!="function"||Zy.call(r)!==Jy)throw new TypeError(Yy+r);for(var n=Vo.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(Vo.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(Vo.call(arguments)))},l=Math.max(0,r.length-n.length),u=[],f=0;f<l;f++)u.push("$"+f);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var h=function(){};h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i},tm=Qy,Wo=Function.prototype.bind||tm,em=Wo,rm=em.call(Function.call,Object.prototype.hasOwnProperty),Dt,ei=SyntaxError,vc=Function,ri=TypeError,Xo=function(e){try{return vc('"use strict"; return ('+e+").constructor;")()}catch{}},Rn=Object.getOwnPropertyDescriptor;if(Rn)try{Rn({},"")}catch{Rn=null}var Ko=function(){throw new ri},nm=Rn?function(){try{return arguments.callee,Ko}catch{try{return Rn(arguments,"callee").get}catch{return Ko}}}():Ko,ni=Wy(),im=Ky(),Ae=Object.getPrototypeOf||(im?function(e){return e.__proto__}:null),ii={},sm=typeof Uint8Array>"u"||!Ae?Dt:Ae(Uint8Array),Cn={"%AggregateError%":typeof AggregateError>"u"?Dt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Dt:ArrayBuffer,"%ArrayIteratorPrototype%":ni&&Ae?Ae([][Symbol.iterator]()):Dt,"%AsyncFromSyncIteratorPrototype%":Dt,"%AsyncFunction%":ii,"%AsyncGenerator%":ii,"%AsyncGeneratorFunction%":ii,"%AsyncIteratorPrototype%":ii,"%Atomics%":typeof Atomics>"u"?Dt:Atomics,"%BigInt%":typeof BigInt>"u"?Dt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Dt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Dt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Dt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Dt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Dt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Dt:FinalizationRegistry,"%Function%":vc,"%GeneratorFunction%":ii,"%Int8Array%":typeof Int8Array>"u"?Dt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Dt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Dt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ni&&Ae?Ae(Ae([][Symbol.iterator]())):Dt,"%JSON%":typeof JSON=="object"?JSON:Dt,"%Map%":typeof Map>"u"?Dt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ni||!Ae?Dt:Ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Dt:Promise,"%Proxy%":typeof Proxy>"u"?Dt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Dt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Dt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ni||!Ae?Dt:Ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Dt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ni&&Ae?Ae(""[Symbol.iterator]()):Dt,"%Symbol%":ni?Symbol:Dt,"%SyntaxError%":ei,"%ThrowTypeError%":nm,"%TypedArray%":sm,"%TypeError%":ri,"%Uint8Array%":typeof Uint8Array>"u"?Dt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Dt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Dt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Dt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Dt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Dt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Dt:WeakSet};if(Ae)try{null.error}catch(e){var am=Ae(Ae(e));Cn["%Error.prototype%"]=am}var om=function e(t){var r;if(t==="%AsyncFunction%")r=Xo("async function () {}");else if(t==="%GeneratorFunction%")r=Xo("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Xo("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ae&&(r=Ae(i.prototype))}return Cn[t]=r,r},gc={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Yi=Wo,js=rm,lm=Yi.call(Function.call,Array.prototype.concat),um=Yi.call(Function.apply,Array.prototype.splice),yc=Yi.call(Function.call,String.prototype.replace),Hs=Yi.call(Function.call,String.prototype.slice),fm=Yi.call(Function.call,RegExp.prototype.exec),cm=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,hm=/\\(\\)?/g,dm=function(t){var r=Hs(t,0,1),n=Hs(t,-1);if(r==="%"&&n!=="%")throw new ei("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ei("invalid intrinsic syntax, expected opening `%`");var i=[];return yc(t,cm,function(a,l,u,f){i[i.length]=u?yc(f,hm,"$1"):l||a}),i},pm=function(t,r){var n=t,i;if(js(gc,n)&&(i=gc[n],n="%"+i[0]+"%"),js(Cn,n)){var a=Cn[n];if(a===ii&&(a=om(n)),typeof a>"u"&&!r)throw new ri("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new ei("intrinsic "+t+" does not exist!")},Yo=function(t,r){if(typeof t!="string"||t.length===0)throw new ri("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ri('"allowMissing" argument must be a boolean');if(fm(/^%?[^%]*%?$/,t)===null)throw new ei("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=dm(t),i=n.length>0?n[0]:"",a=pm("%"+i+"%",r),l=a.name,u=a.value,f=!1,h=a.alias;h&&(i=h[0],um(n,lm([0,1],h)));for(var d=1,p=!0;d<n.length;d+=1){var c=n[d],v=Hs(c,0,1),y=Hs(c,-1);if((v==='"'||v==="'"||v==="`"||y==='"'||y==="'"||y==="`")&&v!==y)throw new ei("property names with quotes must have matching quotes");if((c==="constructor"||!p)&&(f=!0),i+="."+c,l="%"+i+"%",js(Cn,l))u=Cn[l];else if(u!=null){if(!(c in u)){if(!r)throw new ri("base intrinsic for "+t+" exists, but the property is not available.");return}if(Rn&&d+1>=n.length){var m=Rn(u,c);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?u=m.get:u=u[c]}else p=js(u,c),u=u[c];p&&!f&&(Cn[l]=u)}}return u},mc={exports:{}};(function(e){var t=Wo,r=Yo,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),l=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),f=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(p){var c=a(t,i,arguments);if(l&&u){var v=l(c,"length");v.configurable&&u(c,"length",{value:1+f(0,p.length-(arguments.length-1))})}return c};var h=function(){return a(t,n,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h})(mc);var vm=mc.exports,_c=Yo,bc=vm,gm=bc(_c("String.prototype.indexOf")),ym=function(t,r){var n=_c(t,!!r);return typeof n=="function"&&gm(t,".prototype.")>-1?bc(n):n};const mm=my(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Zo=typeof Map=="function"&&Map.prototype,Jo=Object.getOwnPropertyDescriptor&&Zo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,zs=Zo&&Jo&&typeof Jo.get=="function"?Jo.get:null,xc=Zo&&Map.prototype.forEach,Qo=typeof Set=="function"&&Set.prototype,tl=Object.getOwnPropertyDescriptor&&Qo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Vs=Qo&&tl&&typeof tl.get=="function"?tl.get:null,Ec=Qo&&Set.prototype.forEach,_m=typeof WeakMap=="function"&&WeakMap.prototype,Zi=_m?WeakMap.prototype.has:null,bm=typeof WeakSet=="function"&&WeakSet.prototype,Ji=bm?WeakSet.prototype.has:null,xm=typeof WeakRef=="function"&&WeakRef.prototype,wc=xm?WeakRef.prototype.deref:null,Em=Boolean.prototype.valueOf,wm=Object.prototype.toString,Tm=Function.prototype.toString,Am=String.prototype.match,el=String.prototype.slice,ln=String.prototype.replace,Sm=String.prototype.toUpperCase,Tc=String.prototype.toLowerCase,Ac=RegExp.prototype.test,Sc=Array.prototype.concat,Mr=Array.prototype.join,Om=Array.prototype.slice,Oc=Math.floor,rl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,nl=Object.getOwnPropertySymbols,il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,si=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===si||"symbol")?Symbol.toStringTag:null,Ic=Object.prototype.propertyIsEnumerable,Rc=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Cc(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ac.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Oc(-e):Oc(e);if(n!==e){var i=String(n),a=el.call(t,i.length+1);return ln.call(i,r,"$&_")+"."+ln.call(ln.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ln.call(t,r,"$&_")}var sl=mm,Nc=sl.custom,Pc=Lc(Nc)?Nc:null,Im=function e(t,r,n,i){var a=r||{};if(un(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(un(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=un(a,"customInspect")?a.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(un(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(un(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Bc(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var f=String(t);return u?Cc(t,f):f}if(typeof t=="bigint"){var h=String(t)+"n";return u?Cc(t,h):h}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return al(t)?"[Array]":"[Object]";var p=Vm(a,n);if(typeof i>"u")i=[];else if(Fc(i,t)>=0)return"[Circular]";function c(k,F,j){if(F&&(i=Om.call(i),i.push(F)),j){var Z={depth:a.depth};return un(a,"quoteStyle")&&(Z.quoteStyle=a.quoteStyle),e(k,Z,n+1,i)}return e(k,a,n+1,i)}if(typeof t=="function"&&!kc(t)){var v=Bm(t),y=Ws(t,c);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(y.length>0?" { "+Mr.call(y,", ")+" }":"")}if(Lc(t)){var m=si?ln.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):il.call(t);return typeof t=="object"&&!si?Qi(m):m}if(jm(t)){for(var b="<"+Tc.call(String(t.nodeName)),_=t.attributes||[],E=0;E<_.length;E++)b+=" "+_[E].name+"="+Mc(Rm(_[E].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+Tc.call(String(t.nodeName))+">",b}if(al(t)){if(t.length===0)return"[]";var w=Ws(t,c);return p&&!zm(w)?"["+ll(w,p)+"]":"[ "+Mr.call(w,", ")+" ]"}if(Nm(t)){var x=Ws(t,c);return!("cause"in Error.prototype)&&"cause"in t&&!Ic.call(t,"cause")?"{ ["+String(t)+"] "+Mr.call(Sc.call("[cause]: "+c(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Mr.call(x,", ")+" }"}if(typeof t=="object"&&l){if(Pc&&typeof t[Pc]=="function"&&sl)return sl(t,{depth:d-n});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Um(t)){var A=[];return xc&&xc.call(t,function(k,F){A.push(c(F,t,!0)+" => "+c(k,t))}),Uc("Map",zs.call(t),A,p)}if(Gm(t)){var C=[];return Ec&&Ec.call(t,function(k){C.push(c(k,t))}),Uc("Set",Vs.call(t),C,p)}if(Dm(t))return ol("WeakMap");if(qm(t))return ol("WeakSet");if($m(t))return ol("WeakRef");if(Mm(t))return Qi(c(Number(t)));if(Lm(t))return Qi(c(rl.call(t)));if(km(t))return Qi(Em.call(t));if(Pm(t))return Qi(c(String(t)));if(!Cm(t)&&!kc(t)){var S=Ws(t,c),O=Rc?Rc(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",R=!O&&Me&&Object(t)===t&&Me in t?el.call(fn(t),8,-1):L?"Object":"",I=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",N=I+(R||L?"["+Mr.call(Sc.call([],R||[],L||[]),": ")+"] ":"");return S.length===0?N+"{}":p?N+"{"+ll(S,p)+"}":N+"{ "+Mr.call(S,", ")+" }"}return String(t)};function Mc(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Rm(e){return ln.call(String(e),/"/g,""")}function al(e){return fn(e)==="[object Array]"&&(!Me||!(typeof e=="object"&&Me in e))}function Cm(e){return fn(e)==="[object Date]"&&(!Me||!(typeof e=="object"&&Me in e))}function kc(e){return fn(e)==="[object RegExp]"&&(!Me||!(typeof e=="object"&&Me in e))}function Nm(e){return fn(e)==="[object Error]"&&(!Me||!(typeof e=="object"&&Me in e))}function Pm(e){return fn(e)==="[object String]"&&(!Me||!(typeof e=="object"&&Me in e))}function Mm(e){return fn(e)==="[object Number]"&&(!Me||!(typeof e=="object"&&Me in e))}function km(e){return fn(e)==="[object Boolean]"&&(!Me||!(typeof e=="object"&&Me in e))}function Lc(e){if(si)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!il)return!1;try{return il.call(e),!0}catch{}return!1}function Lm(e){if(!e||typeof e!="object"||!rl)return!1;try{return rl.call(e),!0}catch{}return!1}var Fm=Object.prototype.hasOwnProperty||function(e){return e in this};function un(e,t){return Fm.call(e,t)}function fn(e){return wm.call(e)}function Bm(e){if(e.name)return e.name;var t=Am.call(Tm.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Fc(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Um(e){if(!zs||!e||typeof e!="object")return!1;try{zs.call(e);try{Vs.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Dm(e){if(!Zi||!e||typeof e!="object")return!1;try{Zi.call(e,Zi);try{Ji.call(e,Ji)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function $m(e){if(!wc||!e||typeof e!="object")return!1;try{return wc.call(e),!0}catch{}return!1}function Gm(e){if(!Vs||!e||typeof e!="object")return!1;try{Vs.call(e);try{zs.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function qm(e){if(!Ji||!e||typeof e!="object")return!1;try{Ji.call(e,Ji);try{Zi.call(e,Zi)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function jm(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Bc(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Bc(el.call(e,0,t.maxStringLength),t)+n}var i=ln.call(ln.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Hm);return Mc(i,"single",t)}function Hm(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Sm.call(t.toString(16))}function Qi(e){return"Object("+e+")"}function ol(e){return e+" { ? }"}function Uc(e,t,r,n){var i=n?ll(r,n):Mr.call(r,", ");return e+" ("+t+") {"+i+"}"}function zm(e){for(var t=0;t<e.length;t++)if(Fc(e[t],`
|
|
9
|
+
*/var _y=bt,by=Symbol.for("react.element"),xy=Symbol.for("react.fragment"),Ey=Object.prototype.hasOwnProperty,wy=_y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ty={key:!0,ref:!0,__self:!0,__source:!0};function Xf(e,t,r){var n,i={},a=null,l=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)Ey.call(t,n)&&!Ty.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:by,type:e,key:a,ref:l,props:i,_owner:wy.current}}Ls.Fragment=xy,Ls.jsx=Xf,Ls.jsxs=Xf,Wf.exports=Ls;var Zt=Wf.exports,An=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(An||{}),Kf=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Kf||{}),Bo=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(Bo||{}),Rt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Rt||{}),an=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(an||{}),mt=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(mt||{}),Zn=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(Zn||{}),zt=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(zt||{}),Uo=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(Uo||{}),qr=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(qr||{}),Vi=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Vi||{}),Sn=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(Sn||{}),on=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(on||{}),On=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(On||{}),Do=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(Do||{}),sr=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(sr||{}),Ee=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(Ee||{}),be=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(be||{}),Pr=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(Pr||{});const Ht={ADAPTER:{createCanvas:(e,t)=>{const r=document.createElement("canvas");return r.width=e,r.height=t,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var $o=/iPhone/i,Yf=/iPod/i,Zf=/iPad/i,Jf=/\biOS-universal(?:.+)Mac\b/i,Go=/\bAndroid(?:.+)Mobile\b/i,Qf=/Android/i,Jn=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Fs=/Silk/i,jr=/Windows Phone/i,tc=/\bWindows(?:.+)ARM\b/i,ec=/BlackBerry/i,rc=/BB10/i,nc=/Opera Mini/i,ic=/\b(CriOS|Chrome)(?:.+)Mobile/i,sc=/Mobile(?:.+)Firefox\b/i,ac=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function Ay(e){return function(t){return t.test(e)}}function oc(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var r=t.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=Ay(r),a={apple:{phone:i($o)&&!i(jr),ipod:i(Yf),tablet:!i($o)&&(i(Zf)||ac(t))&&!i(jr),universal:i(Jf),device:(i($o)||i(Yf)||i(Zf)||i(Jf)||ac(t))&&!i(jr)},amazon:{phone:i(Jn),tablet:!i(Jn)&&i(Fs),device:i(Jn)||i(Fs)},android:{phone:!i(jr)&&i(Jn)||!i(jr)&&i(Go),tablet:!i(jr)&&!i(Jn)&&!i(Go)&&(i(Fs)||i(Qf)),device:!i(jr)&&(i(Jn)||i(Fs)||i(Go)||i(Qf))||i(/\bokhttp\b/i)},windows:{phone:i(jr),tablet:i(tc),device:i(jr)||i(tc)},other:{blackberry:i(ec),blackberry10:i(rc),opera:i(nc),firefox:i(sc),chrome:i(ic),device:i(ec)||i(rc)||i(nc)||i(sc)||i(ic)},any:!1,phone:!1,tablet:!1};return a.any=a.apple.device||a.android.device||a.windows.device||a.other.device,a.phone=a.apple.phone||a.android.phone||a.windows.phone,a.tablet=a.apple.tablet||a.android.tablet||a.windows.tablet,a}const Qn=(oc.default??oc)(globalThis.navigator);Ht.RETINA_PREFIX=/@([0-9\.]+)x/,Ht.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var lc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(f,h,d){this.fn=f,this.context=h,this.once=d||!1}function a(f,h,d,p,c){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new i(d,p||f,c),y=r?r+h:h;return f._events[y]?f._events[y].fn?f._events[y]=[f._events[y],v]:f._events[y].push(v):(f._events[y]=v,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new n:delete f._events[h]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var h=[],d,p;if(this._eventsCount===0)return h;for(p in d=this._events)t.call(d,p)&&h.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(d)):h},u.prototype.listeners=function(h){var d=r?r+h:h,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var c=0,v=p.length,y=new Array(v);c<v;c++)y[c]=p[c].fn;return y},u.prototype.listenerCount=function(h){var d=r?r+h:h,p=this._events[d];return p?p.fn?1:p.length:0},u.prototype.emit=function(h,d,p,c,v,y){var m=r?r+h:h;if(!this._events[m])return!1;var b=this._events[m],_=arguments.length,E,w;if(b.fn){switch(b.once&&this.removeListener(h,b.fn,void 0,!0),_){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,p),!0;case 4:return b.fn.call(b.context,d,p,c),!0;case 5:return b.fn.call(b.context,d,p,c,v),!0;case 6:return b.fn.call(b.context,d,p,c,v,y),!0}for(w=1,E=new Array(_-1);w<_;w++)E[w-1]=arguments[w];b.fn.apply(b.context,E)}else{var x=b.length,A;for(w=0;w<x;w++)switch(b[w].once&&this.removeListener(h,b[w].fn,void 0,!0),_){case 1:b[w].fn.call(b[w].context);break;case 2:b[w].fn.call(b[w].context,d);break;case 3:b[w].fn.call(b[w].context,d,p);break;case 4:b[w].fn.call(b[w].context,d,p,c);break;default:if(!E)for(A=1,E=new Array(_-1);A<_;A++)E[A-1]=arguments[A];b[w].fn.apply(b[w].context,E)}}return!0},u.prototype.on=function(h,d,p){return a(this,h,d,p,!1)},u.prototype.once=function(h,d,p){return a(this,h,d,p,!0)},u.prototype.removeListener=function(h,d,p,c){var v=r?r+h:h;if(!this._events[v])return this;if(!d)return l(this,v),this;var y=this._events[v];if(y.fn)y.fn===d&&(!c||y.once)&&(!p||y.context===p)&&l(this,v);else{for(var m=0,b=[],_=y.length;m<_;m++)(y[m].fn!==d||c&&!y[m].once||p&&y[m].context!==p)&&b.push(y[m]);b.length?this._events[v]=b.length===1?b[0]:b:l(this,v)}return this},u.prototype.removeAllListeners=function(h){var d;return h?(d=r?r+h:h,this._events[d]&&l(this,d)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(lc);var Sy=lc.exports;const Bs=Tn(Sy);var qo={exports:{}};qo.exports=Us,qo.exports.default=Us;function Us(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=uc(e,0,i,r,!0),l=[];if(!a||a.next===a.prev)return l;var u,f,h,d,p,c,v;if(n&&(a=Ny(e,t,a,r)),e.length>80*r){u=h=e[0],f=d=e[1];for(var y=r;y<i;y+=r)p=e[y],c=e[y+1],p<u&&(u=p),c<f&&(f=c),p>h&&(h=p),c>d&&(d=c);v=Math.max(h-u,d-f),v=v!==0?32767/v:0}return Wi(a,l,r,u,f,v,0),l}function uc(e,t,r,n,i){var a,l;if(i===zo(e,t,r,n)>0)for(a=t;a<r;a+=n)l=hc(a,e[a],e[a+1],l);else for(a=r-n;a>=t;a-=n)l=hc(a,e[a],e[a+1],l);return l&&Ds(l,l.next)&&(Ki(l),l=l.next),l}function In(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Ds(r,r.next)||ce(r.prev,r,r.next)===0)){if(Ki(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Wi(e,t,r,n,i,a,l){if(e){!l&&a&&Fy(e,n,i,a);for(var u=e,f,h;e.prev!==e.next;){if(f=e.prev,h=e.next,a?Iy(e,n,i,a):Oy(e)){t.push(f.i/r|0),t.push(e.i/r|0),t.push(h.i/r|0),Ki(e),e=h.next,u=h.next;continue}if(e=h,e===u){l?l===1?(e=Ry(In(e),t,r),Wi(e,t,r,n,i,a,2)):l===2&&Cy(e,t,r,n,i,a):Wi(In(e),t,r,n,i,a,1);break}}}}function Oy(e){var t=e.prev,r=e,n=e.next;if(ce(t,r,n)>=0)return!1;for(var i=t.x,a=r.x,l=n.x,u=t.y,f=r.y,h=n.y,d=i<a?i<l?i:l:a<l?a:l,p=u<f?u<h?u:h:f<h?f:h,c=i>a?i>l?i:l:a>l?a:l,v=u>f?u>h?u:h:f>h?f:h,y=n.next;y!==t;){if(y.x>=d&&y.x<=c&&y.y>=p&&y.y<=v&&ti(i,u,a,f,l,h,y.x,y.y)&&ce(y.prev,y,y.next)>=0)return!1;y=y.next}return!0}function Iy(e,t,r,n){var i=e.prev,a=e,l=e.next;if(ce(i,a,l)>=0)return!1;for(var u=i.x,f=a.x,h=l.x,d=i.y,p=a.y,c=l.y,v=u<f?u<h?u:h:f<h?f:h,y=d<p?d<c?d:c:p<c?p:c,m=u>f?u>h?u:h:f>h?f:h,b=d>p?d>c?d:c:p>c?p:c,_=jo(v,y,t,r,n),E=jo(m,b,t,r,n),w=e.prevZ,x=e.nextZ;w&&w.z>=_&&x&&x.z<=E;){if(w.x>=v&&w.x<=m&&w.y>=y&&w.y<=b&&w!==i&&w!==l&&ti(u,d,f,p,h,c,w.x,w.y)&&ce(w.prev,w,w.next)>=0||(w=w.prevZ,x.x>=v&&x.x<=m&&x.y>=y&&x.y<=b&&x!==i&&x!==l&&ti(u,d,f,p,h,c,x.x,x.y)&&ce(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;w&&w.z>=_;){if(w.x>=v&&w.x<=m&&w.y>=y&&w.y<=b&&w!==i&&w!==l&&ti(u,d,f,p,h,c,w.x,w.y)&&ce(w.prev,w,w.next)>=0)return!1;w=w.prevZ}for(;x&&x.z<=E;){if(x.x>=v&&x.x<=m&&x.y>=y&&x.y<=b&&x!==i&&x!==l&&ti(u,d,f,p,h,c,x.x,x.y)&&ce(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function Ry(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!Ds(i,a)&&fc(i,n,n.next,a)&&Xi(i,a)&&Xi(a,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(a.i/r|0),Ki(n),Ki(n.next),n=e=a),n=n.next}while(n!==e);return In(n)}function Cy(e,t,r,n,i,a){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&Dy(l,u)){var f=cc(l,u);l=In(l,l.next),f=In(f,f.next),Wi(l,t,r,n,i,a,0),Wi(f,t,r,n,i,a,0);return}u=u.next}l=l.next}while(l!==e)}function Ny(e,t,r,n){var i=[],a,l,u,f,h;for(a=0,l=t.length;a<l;a++)u=t[a]*n,f=a<l-1?t[a+1]*n:e.length,h=uc(e,u,f,n,!1),h===h.next&&(h.steiner=!0),i.push(Uy(h));for(i.sort(Py),a=0;a<i.length;a++)r=My(i[a],r);return r}function Py(e,t){return e.x-t.x}function My(e,t){var r=ky(e,t);if(!r)return t;var n=cc(r,e);return In(n,n.next),In(r,r.next)}function ky(e,t){var r=t,n=e.x,i=e.y,a=-1/0,l;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>a&&(a=u,l=r.x<r.next.x?r:r.next,u===n))return l}r=r.next}while(r!==t);if(!l)return null;var f=l,h=l.x,d=l.y,p=1/0,c;r=l;do n>=r.x&&r.x>=h&&n!==r.x&&ti(i<d?n:a,i,h,d,i<d?a:n,i,r.x,r.y)&&(c=Math.abs(i-r.y)/(n-r.x),Xi(r,e)&&(c<p||c===p&&(r.x>l.x||r.x===l.x&&Ly(l,r)))&&(l=r,p=c)),r=r.next;while(r!==f);return l}function Ly(e,t){return ce(e.prev,e,t.prev)<0&&ce(t.next,e,e.next)<0}function Fy(e,t,r,n){var i=e;do i.z===0&&(i.z=jo(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,By(i)}function By(e){var t,r,n,i,a,l,u,f,h=1;do{for(r=e,e=null,a=null,l=0;r;){for(l++,n=r,u=0,t=0;t<h&&(u++,n=n.nextZ,!!n);t++);for(f=h;u>0||f>0&&n;)u!==0&&(f===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,f--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,h*=2}while(l>1);return e}function jo(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function Uy(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function ti(e,t,r,n,i,a,l,u){return(i-l)*(t-u)>=(e-l)*(a-u)&&(e-l)*(n-u)>=(r-l)*(t-u)&&(r-l)*(a-u)>=(i-l)*(n-u)}function Dy(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!$y(e,t)&&(Xi(e,t)&&Xi(t,e)&&Gy(e,t)&&(ce(e.prev,e,t.prev)||ce(e,t.prev,t))||Ds(e,t)&&ce(e.prev,e,e.next)>0&&ce(t.prev,t,t.next)>0)}function ce(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Ds(e,t){return e.x===t.x&&e.y===t.y}function fc(e,t,r,n){var i=Gs(ce(e,t,r)),a=Gs(ce(e,t,n)),l=Gs(ce(r,n,e)),u=Gs(ce(r,n,t));return!!(i!==a&&l!==u||i===0&&$s(e,r,t)||a===0&&$s(e,n,t)||l===0&&$s(r,e,n)||u===0&&$s(r,t,n))}function $s(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Gs(e){return e>0?1:e<0?-1:0}function $y(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&fc(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Xi(e,t){return ce(e.prev,e,e.next)<0?ce(e,t,e.next)>=0&&ce(e,e.prev,t)>=0:ce(e,t,e.prev)<0||ce(e,e.next,t)<0}function Gy(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function cc(e,t){var r=new Ho(e.i,e.x,e.y),n=new Ho(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function hc(e,t,r,n){var i=new Ho(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Ki(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Ho(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Us.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,l=Math.abs(zo(e,0,a,r));if(i)for(var u=0,f=t.length;u<f;u++){var h=t[u]*r,d=u<f-1?t[u+1]*r:e.length;l-=Math.abs(zo(e,h,d,r))}var p=0;for(u=0;u<n.length;u+=3){var c=n[u]*r,v=n[u+1]*r,y=n[u+2]*r;p+=Math.abs((e[c]-e[y])*(e[v+1]-e[c+1])-(e[c]-e[v])*(e[y+1]-e[c+1]))}return l===0&&p===0?0:Math.abs((p-l)/l)};function zo(e,t,r,n){for(var i=0,a=t,l=r-n;a<r;a+=n)i+=(e[l]-e[a])*(e[a+1]+e[l+1]),l=a;return i}Us.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var l=0;l<t;l++)r.vertices.push(e[i][a][l]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var qy=qo.exports;const jy=Tn(qy);var qs={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */qs.exports,function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,a=typeof Ke=="object"&&Ke;(a.global===a||a.window===a||a.self===a)&&(r=a);var l,u=2147483647,f=36,h=1,d=26,p=38,c=700,v=72,y=128,m="-",b=/^xn--/,_=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-h,A=Math.floor,C=String.fromCharCode,S;function O(D){throw new RangeError(w[D])}function L(D,M){for(var U=D.length,q=[];U--;)q[U]=M(D[U]);return q}function R(D,M){var U=D.split("@"),q="";U.length>1&&(q=U[0]+"@",D=U[1]),D=D.replace(E,".");var W=D.split("."),K=L(W,M).join(".");return q+K}function I(D){for(var M=[],U=0,q=D.length,W,K;U<q;)W=D.charCodeAt(U++),W>=55296&&W<=56319&&U<q?(K=D.charCodeAt(U++),(K&64512)==56320?M.push(((W&1023)<<10)+(K&1023)+65536):(M.push(W),U--)):M.push(W);return M}function N(D){return L(D,function(M){var U="";return M>65535&&(M-=65536,U+=C(M>>>10&1023|55296),M=56320|M&1023),U+=C(M),U}).join("")}function k(D){return D-48<10?D-22:D-65<26?D-65:D-97<26?D-97:f}function F(D,M){return D+22+75*(D<26)-((M!=0)<<5)}function j(D,M,U){var q=0;for(D=U?A(D/c):D>>1,D+=A(D/M);D>x*d>>1;q+=f)D=A(D/x);return A(q+(x+1)*D/(D+p))}function Z(D){var M=[],U=D.length,q,W=0,K=y,G=v,V,tt,et,st,ht,yt,_t,vt,It;for(V=D.lastIndexOf(m),V<0&&(V=0),tt=0;tt<V;++tt)D.charCodeAt(tt)>=128&&O("not-basic"),M.push(D.charCodeAt(tt));for(et=V>0?V+1:0;et<U;){for(st=W,ht=1,yt=f;et>=U&&O("invalid-input"),_t=k(D.charCodeAt(et++)),(_t>=f||_t>A((u-W)/ht))&&O("overflow"),W+=_t*ht,vt=yt<=G?h:yt>=G+d?d:yt-G,!(_t<vt);yt+=f)It=f-vt,ht>A(u/It)&&O("overflow"),ht*=It;q=M.length+1,G=j(W-st,q,st==0),A(W/q)>u-K&&O("overflow"),K+=A(W/q),W%=q,M.splice(W++,0,K)}return N(M)}function H(D){var M,U,q,W,K,G,V,tt,et,st,ht,yt=[],_t,vt,It,re;for(D=I(D),_t=D.length,M=y,U=0,K=v,G=0;G<_t;++G)ht=D[G],ht<128&&yt.push(C(ht));for(q=W=yt.length,W&&yt.push(m);q<_t;){for(V=u,G=0;G<_t;++G)ht=D[G],ht>=M&&ht<V&&(V=ht);for(vt=q+1,V-M>A((u-U)/vt)&&O("overflow"),U+=(V-M)*vt,M=V,G=0;G<_t;++G)if(ht=D[G],ht<M&&++U>u&&O("overflow"),ht==M){for(tt=U,et=f;st=et<=K?h:et>=K+d?d:et-K,!(tt<st);et+=f)re=tt-st,It=f-st,yt.push(C(F(st+re%It,0))),tt=A(re/It);yt.push(C(F(tt,0))),K=j(U,vt,q==W),U=0,++q}++U,++M}return yt.join("")}function nt(D){return R(D,function(M){return b.test(M)?Z(M.slice(4).toLowerCase()):M})}function Y(D){return R(D,function(M){return _.test(M)?"xn--"+H(M):M})}if(l={version:"1.4.1",ucs2:{decode:I,encode:N},decode:Z,encode:H,toASCII:Y,toUnicode:nt},n&&i)if(e.exports==n)i.exports=l;else for(S in l)l.hasOwnProperty(S)&&(n[S]=l[S]);else r.punycode=l})(Ke)}(qs,qs.exports);var Hy=qs.exports,zy=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},dc=typeof Symbol<"u"&&Symbol,Vy=zy,Wy=function(){return typeof dc!="function"||typeof Symbol!="function"||typeof dc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Vy()},pc={foo:{}},Xy=Object,Ky=function(){return{__proto__:pc}.foo===pc.foo&&!({__proto__:null}instanceof Xy)},Yy="Function.prototype.bind called on incompatible ",Vo=Array.prototype.slice,Zy=Object.prototype.toString,Jy="[object Function]",Qy=function(t){var r=this;if(typeof r!="function"||Zy.call(r)!==Jy)throw new TypeError(Yy+r);for(var n=Vo.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(Vo.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(Vo.call(arguments)))},l=Math.max(0,r.length-n.length),u=[],f=0;f<l;f++)u.push("$"+f);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var h=function(){};h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i},tm=Qy,Wo=Function.prototype.bind||tm,em=Wo,rm=em.call(Function.call,Object.prototype.hasOwnProperty),Dt,ei=SyntaxError,vc=Function,ri=TypeError,Xo=function(e){try{return vc('"use strict"; return ('+e+").constructor;")()}catch{}},Rn=Object.getOwnPropertyDescriptor;if(Rn)try{Rn({},"")}catch{Rn=null}var Ko=function(){throw new ri},nm=Rn?function(){try{return arguments.callee,Ko}catch{try{return Rn(arguments,"callee").get}catch{return Ko}}}():Ko,ni=Wy(),im=Ky(),Ae=Object.getPrototypeOf||(im?function(e){return e.__proto__}:null),ii={},sm=typeof Uint8Array>"u"||!Ae?Dt:Ae(Uint8Array),Cn={"%AggregateError%":typeof AggregateError>"u"?Dt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Dt:ArrayBuffer,"%ArrayIteratorPrototype%":ni&&Ae?Ae([][Symbol.iterator]()):Dt,"%AsyncFromSyncIteratorPrototype%":Dt,"%AsyncFunction%":ii,"%AsyncGenerator%":ii,"%AsyncGeneratorFunction%":ii,"%AsyncIteratorPrototype%":ii,"%Atomics%":typeof Atomics>"u"?Dt:Atomics,"%BigInt%":typeof BigInt>"u"?Dt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Dt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Dt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Dt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Dt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Dt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Dt:FinalizationRegistry,"%Function%":vc,"%GeneratorFunction%":ii,"%Int8Array%":typeof Int8Array>"u"?Dt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Dt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Dt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ni&&Ae?Ae(Ae([][Symbol.iterator]())):Dt,"%JSON%":typeof JSON=="object"?JSON:Dt,"%Map%":typeof Map>"u"?Dt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ni||!Ae?Dt:Ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Dt:Promise,"%Proxy%":typeof Proxy>"u"?Dt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Dt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Dt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ni||!Ae?Dt:Ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Dt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ni&&Ae?Ae(""[Symbol.iterator]()):Dt,"%Symbol%":ni?Symbol:Dt,"%SyntaxError%":ei,"%ThrowTypeError%":nm,"%TypedArray%":sm,"%TypeError%":ri,"%Uint8Array%":typeof Uint8Array>"u"?Dt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Dt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Dt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Dt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Dt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Dt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Dt:WeakSet};if(Ae)try{null.error}catch(e){var am=Ae(Ae(e));Cn["%Error.prototype%"]=am}var om=function e(t){var r;if(t==="%AsyncFunction%")r=Xo("async function () {}");else if(t==="%GeneratorFunction%")r=Xo("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Xo("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Ae&&(r=Ae(i.prototype))}return Cn[t]=r,r},gc={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Yi=Wo,js=rm,lm=Yi.call(Function.call,Array.prototype.concat),um=Yi.call(Function.apply,Array.prototype.splice),yc=Yi.call(Function.call,String.prototype.replace),Hs=Yi.call(Function.call,String.prototype.slice),fm=Yi.call(Function.call,RegExp.prototype.exec),cm=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,hm=/\\(\\)?/g,dm=function(t){var r=Hs(t,0,1),n=Hs(t,-1);if(r==="%"&&n!=="%")throw new ei("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ei("invalid intrinsic syntax, expected opening `%`");var i=[];return yc(t,cm,function(a,l,u,f){i[i.length]=u?yc(f,hm,"$1"):l||a}),i},pm=function(t,r){var n=t,i;if(js(gc,n)&&(i=gc[n],n="%"+i[0]+"%"),js(Cn,n)){var a=Cn[n];if(a===ii&&(a=om(n)),typeof a>"u"&&!r)throw new ri("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new ei("intrinsic "+t+" does not exist!")},Yo=function(t,r){if(typeof t!="string"||t.length===0)throw new ri("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ri('"allowMissing" argument must be a boolean');if(fm(/^%?[^%]*%?$/,t)===null)throw new ei("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=dm(t),i=n.length>0?n[0]:"",a=pm("%"+i+"%",r),l=a.name,u=a.value,f=!1,h=a.alias;h&&(i=h[0],um(n,lm([0,1],h)));for(var d=1,p=!0;d<n.length;d+=1){var c=n[d],v=Hs(c,0,1),y=Hs(c,-1);if((v==='"'||v==="'"||v==="`"||y==='"'||y==="'"||y==="`")&&v!==y)throw new ei("property names with quotes must have matching quotes");if((c==="constructor"||!p)&&(f=!0),i+="."+c,l="%"+i+"%",js(Cn,l))u=Cn[l];else if(u!=null){if(!(c in u)){if(!r)throw new ri("base intrinsic for "+t+" exists, but the property is not available.");return}if(Rn&&d+1>=n.length){var m=Rn(u,c);p=!!m,p&&"get"in m&&!("originalValue"in m.get)?u=m.get:u=u[c]}else p=js(u,c),u=u[c];p&&!f&&(Cn[l]=u)}}return u},mc={exports:{}};(function(e){var t=Wo,r=Yo,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),l=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),f=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(p){var c=a(t,i,arguments);if(l&&u){var v=l(c,"length");v.configurable&&u(c,"length",{value:1+f(0,p.length-(arguments.length-1))})}return c};var h=function(){return a(t,n,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h})(mc);var vm=mc.exports,_c=Yo,bc=vm,gm=bc(_c("String.prototype.indexOf")),ym=function(t,r){var n=_c(t,!!r);return typeof n=="function"&&gm(t,".prototype.")>-1?bc(n):n};const mm=my(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Zo=typeof Map=="function"&&Map.prototype,Jo=Object.getOwnPropertyDescriptor&&Zo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,zs=Zo&&Jo&&typeof Jo.get=="function"?Jo.get:null,xc=Zo&&Map.prototype.forEach,Qo=typeof Set=="function"&&Set.prototype,tl=Object.getOwnPropertyDescriptor&&Qo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Vs=Qo&&tl&&typeof tl.get=="function"?tl.get:null,Ec=Qo&&Set.prototype.forEach,_m=typeof WeakMap=="function"&&WeakMap.prototype,Zi=_m?WeakMap.prototype.has:null,bm=typeof WeakSet=="function"&&WeakSet.prototype,Ji=bm?WeakSet.prototype.has:null,xm=typeof WeakRef=="function"&&WeakRef.prototype,wc=xm?WeakRef.prototype.deref:null,Em=Boolean.prototype.valueOf,wm=Object.prototype.toString,Tm=Function.prototype.toString,Am=String.prototype.match,el=String.prototype.slice,ln=String.prototype.replace,Sm=String.prototype.toUpperCase,Tc=String.prototype.toLowerCase,Ac=RegExp.prototype.test,Sc=Array.prototype.concat,Mr=Array.prototype.join,Om=Array.prototype.slice,Oc=Math.floor,rl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,nl=Object.getOwnPropertySymbols,il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,si=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===si||"symbol")?Symbol.toStringTag:null,Ic=Object.prototype.propertyIsEnumerable,Rc=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Cc(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Ac.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Oc(-e):Oc(e);if(n!==e){var i=String(n),a=el.call(t,i.length+1);return ln.call(i,r,"$&_")+"."+ln.call(ln.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ln.call(t,r,"$&_")}var sl=mm,Nc=sl.custom,Pc=Lc(Nc)?Nc:null,Im=function e(t,r,n,i){var a=r||{};if(un(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(un(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=un(a,"customInspect")?a.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(un(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(un(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Bc(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var f=String(t);return u?Cc(t,f):f}if(typeof t=="bigint"){var h=String(t)+"n";return u?Cc(t,h):h}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return al(t)?"[Array]":"[Object]";var p=Vm(a,n);if(typeof i>"u")i=[];else if(Fc(i,t)>=0)return"[Circular]";function c(k,F,j){if(F&&(i=Om.call(i),i.push(F)),j){var Z={depth:a.depth};return un(a,"quoteStyle")&&(Z.quoteStyle=a.quoteStyle),e(k,Z,n+1,i)}return e(k,a,n+1,i)}if(typeof t=="function"&&!kc(t)){var v=Bm(t),y=Ws(t,c);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(y.length>0?" { "+Mr.call(y,", ")+" }":"")}if(Lc(t)){var m=si?ln.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):il.call(t);return typeof t=="object"&&!si?Qi(m):m}if(jm(t)){for(var b="<"+Tc.call(String(t.nodeName)),_=t.attributes||[],E=0;E<_.length;E++)b+=" "+_[E].name+"="+Mc(Rm(_[E].value),"double",a);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+Tc.call(String(t.nodeName))+">",b}if(al(t)){if(t.length===0)return"[]";var w=Ws(t,c);return p&&!zm(w)?"["+ll(w,p)+"]":"[ "+Mr.call(w,", ")+" ]"}if(Nm(t)){var x=Ws(t,c);return!("cause"in Error.prototype)&&"cause"in t&&!Ic.call(t,"cause")?"{ ["+String(t)+"] "+Mr.call(Sc.call("[cause]: "+c(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Mr.call(x,", ")+" }"}if(typeof t=="object"&&l){if(Pc&&typeof t[Pc]=="function"&&sl)return sl(t,{depth:d-n});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Um(t)){var A=[];return xc&&xc.call(t,function(k,F){A.push(c(F,t,!0)+" => "+c(k,t))}),Uc("Map",zs.call(t),A,p)}if(Gm(t)){var C=[];return Ec&&Ec.call(t,function(k){C.push(c(k,t))}),Uc("Set",Vs.call(t),C,p)}if(Dm(t))return ol("WeakMap");if(qm(t))return ol("WeakSet");if($m(t))return ol("WeakRef");if(Mm(t))return Qi(c(Number(t)));if(Lm(t))return Qi(c(rl.call(t)));if(km(t))return Qi(Em.call(t));if(Pm(t))return Qi(c(String(t)));if(!Cm(t)&&!kc(t)){var S=Ws(t,c),O=Rc?Rc(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",R=!O&&Me&&Object(t)===t&&Me in t?el.call(fn(t),8,-1):L?"Object":"",I=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",N=I+(R||L?"["+Mr.call(Sc.call([],R||[],L||[]),": ")+"] ":"");return S.length===0?N+"{}":p?N+"{"+ll(S,p)+"}":N+"{ "+Mr.call(S,", ")+" }"}return String(t)};function Mc(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Rm(e){return ln.call(String(e),/"/g,""")}function al(e){return fn(e)==="[object Array]"&&(!Me||!(typeof e=="object"&&Me in e))}function Cm(e){return fn(e)==="[object Date]"&&(!Me||!(typeof e=="object"&&Me in e))}function kc(e){return fn(e)==="[object RegExp]"&&(!Me||!(typeof e=="object"&&Me in e))}function Nm(e){return fn(e)==="[object Error]"&&(!Me||!(typeof e=="object"&&Me in e))}function Pm(e){return fn(e)==="[object String]"&&(!Me||!(typeof e=="object"&&Me in e))}function Mm(e){return fn(e)==="[object Number]"&&(!Me||!(typeof e=="object"&&Me in e))}function km(e){return fn(e)==="[object Boolean]"&&(!Me||!(typeof e=="object"&&Me in e))}function Lc(e){if(si)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!il)return!1;try{return il.call(e),!0}catch{}return!1}function Lm(e){if(!e||typeof e!="object"||!rl)return!1;try{return rl.call(e),!0}catch{}return!1}var Fm=Object.prototype.hasOwnProperty||function(e){return e in this};function un(e,t){return Fm.call(e,t)}function fn(e){return wm.call(e)}function Bm(e){if(e.name)return e.name;var t=Am.call(Tm.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Fc(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Um(e){if(!zs||!e||typeof e!="object")return!1;try{zs.call(e);try{Vs.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Dm(e){if(!Zi||!e||typeof e!="object")return!1;try{Zi.call(e,Zi);try{Ji.call(e,Ji)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function $m(e){if(!wc||!e||typeof e!="object")return!1;try{return wc.call(e),!0}catch{}return!1}function Gm(e){if(!Vs||!e||typeof e!="object")return!1;try{Vs.call(e);try{zs.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function qm(e){if(!Ji||!e||typeof e!="object")return!1;try{Ji.call(e,Ji);try{Zi.call(e,Zi)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function jm(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Bc(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Bc(el.call(e,0,t.maxStringLength),t)+n}var i=ln.call(ln.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Hm);return Mc(i,"single",t)}function Hm(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Sm.call(t.toString(16))}function Qi(e){return"Object("+e+")"}function ol(e){return e+" { ? }"}function Uc(e,t,r,n){var i=n?ll(r,n):Mr.call(r,", ");return e+" ("+t+") {"+i+"}"}function zm(e){for(var t=0;t<e.length;t++)if(Fc(e[t],`
|
|
10
10
|
`)>=0)return!1;return!0}function Vm(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Mr.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Mr.call(Array(t+1),r)}}function ll(e,t){if(e.length===0)return"";var r=`
|
|
11
11
|
`+t.prev+t.base;return r+Mr.call(e,","+r)+`
|
|
12
12
|
`+t.prev}function Ws(e,t){var r=al(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=un(e,i)?t(e[i],e):""}var a=typeof nl=="function"?nl(e):[],l;if(si){l={};for(var u=0;u<a.length;u++)l["$"+a[u]]=a[u]}for(var f in e)un(e,f)&&(r&&String(Number(f))===f&&f<e.length||si&&l["$"+f]instanceof Symbol||(Ac.call(/[^\w$]/,f)?n.push(t(f,e)+": "+t(e[f],e)):n.push(f+": "+t(e[f],e))));if(typeof nl=="function")for(var h=0;h<a.length;h++)Ic.call(e,a[h])&&n.push("["+t(a[h])+"]: "+t(e[a[h]],e));return n}var ul=Yo,ai=ym,Wm=Im,Xm=ul("%TypeError%"),Xs=ul("%WeakMap%",!0),Ks=ul("%Map%",!0),Km=ai("WeakMap.prototype.get",!0),Ym=ai("WeakMap.prototype.set",!0),Zm=ai("WeakMap.prototype.has",!0),Jm=ai("Map.prototype.get",!0),Qm=ai("Map.prototype.set",!0),t0=ai("Map.prototype.has",!0),fl=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},e0=function(e,t){var r=fl(e,t);return r&&r.value},r0=function(e,t,r){var n=fl(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},n0=function(e,t){return!!fl(e,t)},i0=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new Xm("Side channel does not contain "+Wm(a))},get:function(a){if(Xs&&a&&(typeof a=="object"||typeof a=="function")){if(t)return Km(t,a)}else if(Ks){if(r)return Jm(r,a)}else if(n)return e0(n,a)},has:function(a){if(Xs&&a&&(typeof a=="object"||typeof a=="function")){if(t)return Zm(t,a)}else if(Ks){if(r)return t0(r,a)}else if(n)return n0(n,a);return!1},set:function(a,l){Xs&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Xs),Ym(t,a,l)):Ks?(r||(r=new Ks),Qm(r,a,l)):(n||(n={key:{},next:null}),r0(n,a,l))}};return i},s0=String.prototype.replace,a0=/%20/g,cl={RFC1738:"RFC1738",RFC3986:"RFC3986"},hl={default:cl.RFC3986,formatters:{RFC1738:function(e){return s0.call(e,a0,"+")},RFC3986:function(e){return String(e)}},RFC1738:cl.RFC1738,RFC3986:cl.RFC3986},o0=hl,dl=Object.prototype.hasOwnProperty,Nn=Array.isArray,kr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l0=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Nn(n)){for(var i=[],a=0;a<n.length;++a)typeof n[a]<"u"&&i.push(n[a]);r.obj[r.prop]=i}}},Dc=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},u0=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Nn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!dl.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return Nn(t)&&!Nn(r)&&(i=Dc(t,n)),Nn(t)&&Nn(r)?(r.forEach(function(a,l){if(dl.call(t,l)){var u=t[l];u&&typeof u=="object"&&a&&typeof a=="object"?t[l]=e(u,a,n):t.push(a)}else t[l]=a}),t):Object.keys(r).reduce(function(a,l){var u=r[l];return dl.call(a,l)?a[l]=e(a[l],u,n):a[l]=u,a},i)},f0=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},c0=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},h0=function(t,r,n,i,a){if(t.length===0)return t;var l=t;if(typeof t=="symbol"?l=Symbol.prototype.toString.call(t):typeof t!="string"&&(l=String(t)),n==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var u="",f=0;f<l.length;++f){var h=l.charCodeAt(f);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||a===o0.RFC1738&&(h===40||h===41)){u+=l.charAt(f);continue}if(h<128){u=u+kr[h];continue}if(h<2048){u=u+(kr[192|h>>6]+kr[128|h&63]);continue}if(h<55296||h>=57344){u=u+(kr[224|h>>12]+kr[128|h>>6&63]+kr[128|h&63]);continue}f+=1,h=65536+((h&1023)<<10|l.charCodeAt(f)&1023),u+=kr[240|h>>18]+kr[128|h>>12&63]+kr[128|h>>6&63]+kr[128|h&63]}return u},d0=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var a=r[i],l=a.obj[a.prop],u=Object.keys(l),f=0;f<u.length;++f){var h=u[f],d=l[h];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:l,prop:h}),n.push(d))}return l0(r),t},p0=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},v0=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},g0=function(t,r){return[].concat(t,r)},y0=function(t,r){if(Nn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},$c={arrayToObject:Dc,assign:f0,combine:g0,compact:d0,decode:c0,encode:h0,isBuffer:v0,isRegExp:p0,maybeMap:y0,merge:u0},Gc=i0,Ys=$c,ts=hl,m0=Object.prototype.hasOwnProperty,qc={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Hr=Array.isArray,_0=Array.prototype.push,jc=function(e,t){_0.apply(e,Hr(t)?t:[t])},b0=Date.prototype.toISOString,Hc=ts.default,ke={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Ys.encode,encodeValuesOnly:!1,format:Hc,formatter:ts.formatters[Hc],indices:!1,serializeDate:function(t){return b0.call(t)},skipNulls:!1,strictNullHandling:!1},x0=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},pl={},E0=function e(t,r,n,i,a,l,u,f,h,d,p,c,v,y,m,b){for(var _=t,E=b,w=0,x=!1;(E=E.get(pl))!==void 0&&!x;){var A=E.get(t);if(w+=1,typeof A<"u"){if(A===w)throw new RangeError("Cyclic object value");x=!0}typeof E.get(pl)>"u"&&(w=0)}if(typeof f=="function"?_=f(r,_):_ instanceof Date?_=p(_):n==="comma"&&Hr(_)&&(_=Ys.maybeMap(_,function(Z){return Z instanceof Date?p(Z):Z})),_===null){if(a)return u&&!y?u(r,ke.encoder,m,"key",c):r;_=""}if(x0(_)||Ys.isBuffer(_)){if(u){var C=y?r:u(r,ke.encoder,m,"key",c);return[v(C)+"="+v(u(_,ke.encoder,m,"value",c))]}return[v(r)+"="+v(String(_))]}var S=[];if(typeof _>"u")return S;var O;if(n==="comma"&&Hr(_))y&&u&&(_=Ys.maybeMap(_,u)),O=[{value:_.length>0?_.join(",")||null:void 0}];else if(Hr(f))O=f;else{var L=Object.keys(_);O=h?L.sort(h):L}for(var R=i&&Hr(_)&&_.length===1?r+"[]":r,I=0;I<O.length;++I){var N=O[I],k=typeof N=="object"&&typeof N.value<"u"?N.value:_[N];if(!(l&&k===null)){var F=Hr(_)?typeof n=="function"?n(R,N):R:R+(d?"."+N:"["+N+"]");b.set(t,w);var j=Gc();j.set(pl,b),jc(S,e(k,F,n,i,a,l,n==="comma"&&y&&Hr(_)?null:u,f,h,d,p,c,v,y,m,j))}}return S},w0=function(t){if(!t)return ke;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||ke.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ts.default;if(typeof t.format<"u"){if(!m0.call(ts.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=ts.formatters[n],a=ke.filter;return(typeof t.filter=="function"||Hr(t.filter))&&(a=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:ke.addQueryPrefix,allowDots:typeof t.allowDots>"u"?ke.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:ke.charsetSentinel,delimiter:typeof t.delimiter>"u"?ke.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:ke.encode,encoder:typeof t.encoder=="function"?t.encoder:ke.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:ke.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:ke.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:ke.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:ke.strictNullHandling}},T0=function(e,t){var r=e,n=w0(t),i,a;typeof n.filter=="function"?(a=n.filter,r=a("",r)):Hr(n.filter)&&(a=n.filter,i=a);var l=[];if(typeof r!="object"||r===null)return"";var u;t&&t.arrayFormat in qc?u=t.arrayFormat:t&&"indices"in t?u=t.indices?"indices":"repeat":u="indices";var f=qc[u];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=f==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var d=Gc(),p=0;p<i.length;++p){var c=i[p];n.skipNulls&&r[c]===null||jc(l,E0(r[c],c,f,h,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,d))}var v=l.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),v.length>0?y+v:""},oi=$c,vl=Object.prototype.hasOwnProperty,A0=Array.isArray,Se={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:oi.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},S0=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},zc=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},O0="utf8=%26%2310003%3B",I0="utf8=%E2%9C%93",R0=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=r.parameterLimit===1/0?void 0:r.parameterLimit,l=i.split(r.delimiter,a),u=-1,f,h=r.charset;if(r.charsetSentinel)for(f=0;f<l.length;++f)l[f].indexOf("utf8=")===0&&(l[f]===I0?h="utf-8":l[f]===O0&&(h="iso-8859-1"),u=f,f=l.length);for(f=0;f<l.length;++f)if(f!==u){var d=l[f],p=d.indexOf("]="),c=p===-1?d.indexOf("="):p+1,v,y;c===-1?(v=r.decoder(d,Se.decoder,h,"key"),y=r.strictNullHandling?null:""):(v=r.decoder(d.slice(0,c),Se.decoder,h,"key"),y=oi.maybeMap(zc(d.slice(c+1),r),function(m){return r.decoder(m,Se.decoder,h,"value")})),y&&r.interpretNumericEntities&&h==="iso-8859-1"&&(y=S0(y)),d.indexOf("[]=")>-1&&(y=A0(y)?[y]:y),vl.call(n,v)?n[v]=oi.combine(n[v],y):n[v]=y}return n},C0=function(e,t,r,n){for(var i=n?t:zc(t,r),a=e.length-1;a>=0;--a){var l,u=e[a];if(u==="[]"&&r.parseArrays)l=[].concat(i);else{l=r.plainObjects?Object.create(null):{};var f=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,h=parseInt(f,10);!r.parseArrays&&f===""?l={0:i}:!isNaN(h)&&u!==f&&String(h)===f&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(l=[],l[h]=i):f!=="__proto__"&&(l[f]=i)}i=l}return i},N0=function(t,r,n,i){if(t){var a=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,f=n.depth>0&&l.exec(a),h=f?a.slice(0,f.index):a,d=[];if(h){if(!n.plainObjects&&vl.call(Object.prototype,h)&&!n.allowPrototypes)return;d.push(h)}for(var p=0;n.depth>0&&(f=u.exec(a))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&vl.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(f[1])}return f&&d.push("["+a.slice(f.index)+"]"),C0(d,r,n,i)}},P0=function(t){if(!t)return Se;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Se.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Se.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Se.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Se.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Se.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Se.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Se.comma,decoder:typeof t.decoder=="function"?t.decoder:Se.decoder,delimiter:typeof t.delimiter=="string"||oi.isRegExp(t.delimiter)?t.delimiter:Se.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Se.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Se.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Se.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Se.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Se.strictNullHandling}},M0=function(e,t){var r=P0(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?R0(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(n),l=0;l<a.length;++l){var u=a[l],f=N0(u,n[u],r,typeof e=="string");i=oi.merge(i,f,r)}return r.allowSparse===!0?i:oi.compact(i)},k0=T0,L0=M0,F0=hl,B0={formats:F0,parse:L0,stringify:k0},U0=Hy;function gr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var D0=/^([a-z0-9.+-]+:)/i,$0=/:[0-9]*$/,G0=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,q0=["<",">",'"',"`"," ","\r",`
|
|
@@ -536,7 +536,7 @@ void main(void)
|
|
|
536
536
|
|
|
537
537
|
gl_FragColor = c * alpha;
|
|
538
538
|
}
|
|
539
|
-
`;class R1 extends Wr{constructor(t){super(O1,I1),this.gamma=1,this.saturation=1,this.contrast=1,this.brightness=1,this.red=1,this.green=1,this.blue=1,this.alpha=1,Object.assign(this,t)}apply(t,r,n,i){this.uniforms.gamma=Math.max(this.gamma,1e-4),this.uniforms.saturation=this.saturation,this.uniforms.contrast=this.contrast,this.uniforms.brightness=this.brightness,this.uniforms.red=this.red,this.uniforms.green=this.green,this.uniforms.blue=this.blue,this.uniforms.alpha=this.alpha,t.applyFilter(this,r,n,i)}}var Bn=(e=>(e.BlackAndWhite="BlackAndWhite",e.Sepia="Sepia",e.RetroVintage="RetroVintage",e.NightVision="NightVision",e.Normal="Normal",e.None="Normal",e))(Bn||{});const C1=({pixiTransformerRef:e,imageRef:t,isMounted:r,transformCommit:n,transformChange:i,mouseoverEvent:a,onDoubleClick:l,uniqueId:u=""})=>{const f=wn.utils.string2hex("#F3C409"),h=wn.utils.string2hex("#F3C409"),d=Tt.useRef({isDragging:!1}),p=Tt.useCallback(()=>{a&&!d.current.isDragging&&a(!0)},[a]),c=Tt.useCallback(()=>{a&&!d.current.isDragging&&a(!1)},[a]),v=Tt.useCallback(()=>{d.current.isDragging=!0},[]),y=Tt.useCallback(()=>{d.current.isDragging=!1},[]),m=Tt.useCallback(()=>{d.current.isDragging=!1},[]),b=Tt.useCallback(()=>{console.log("dobule click in pixi transformer"),l&&l({uniqueId:u})},[l]),_=Tt.useCallback(w=>{d.current.isDragging=!0,i&&i(w)},[i]),E=Tt.useCallback(()=>{if(t.current===null)return;const w=t.current.x,x=t.current.y,A=t.current.width,C=t.current.height,S=t.current.rotation,O=[t.current.scale.x,t.current.scale.y];n&&n({uniqueId:u,transformation:{x:Math.round(w),y:Math.round(x),width:Math.round(Math.max(5,A)),height:Math.round(Math.max(5,C)),rotation:S,scale:O}}),d.current.isDragging=!1},[n]);return Tt.useEffect(()=>(e.current&&(e.current.on("mouseover",p),e.current.on("mouseout",c),e.current.on("mousedown",v),e.current.on("mouseup",y),e.current.on("mouseupoutside",m),e.current.addListener("dblclick",b)),()=>{e.current&&(e.current.off("mouseover",p),e.current.off("mouseout",c),e.current.off("mousedown",v),e.current.off("mouseup",y),e.current.off("mouseupoutside",m),e.current.removeListener("dblclick",b))}),[]),Zt.jsx(gy.Transformer,{ref:e,group:r?[t.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:2,color:h},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:f,shape:"circle",radius:10},transformchange:_,transformcommit:E})};let id;function sd(){return id=document.body,id}function wr(e,t,r){let n;return bt.useEffect(()=>{n=n||sd();const i=a=>{const l=a.detail;t(l)};return n.addEventListener(e,i,!1),()=>{n==null||n.removeEventListener(e,i,!1)}},r),i=>{n=i}}function Ea(e,t){const r=sd(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function N1(){let e;function t(r){e=r}return t.emit=function(r,n){const i=new CustomEvent(r,{bubbles:!0,detail:n});e==null||e.dispatchEvent(i)},t}const mi=Tt.createContext({}),je={STOP:"GSAP_STOP",PAUSE:"GSAP_PAUSE",PLAY:"GSAP_PLAY",RESUME:"GSAP_RESUME",RESTART:"GSAP_RESTART",REPEAT:"GSAP_REPEAT",SEEK:"GSAP_SEEK",RESET:"GSAP_RESET",COMPLETE:"GSAP_COMPLETE",SEEK_START:"GSAP_SEEK_START",SEEK_END:"GSAP_SEEK_END",SCRUBBER_SEEK:"GSAP_SCRUBBER_SEEK",SCRUBBER_PROGRESS_UPDATE:"GSAP_SCRUBBER_PROGRESS_UPDATE",SCRUBBER_PLAY:"GSAP_SCRUBBER_PLAY",SCRUBBER_PAUSE:"GSAP_SCRUBBER_PAUSE"},P1=({children:e})=>{const[t,r]=bt.useState(!1),n=bt.useRef(),i=bt.useRef(),a=bt.useRef(.001);bt.useLayoutEffect(()=>(i.current=xe.context(()=>{n.current&&n.current.progress(0).kill(),n.current&&n.current.clear(),n.current&&xe.killTweensOf(n.current),n.current=xe.timeline({paused:!0,defaults:{duration:0}})}),()=>{n.current&&(n.current.progress(0).kill(),xe.killTweensOf(n.current)),i.current.revert()}),[]);const l=bt.useCallback(()=>{if(n.current){let b=n.current.time();a.current=b}},[]);bt.useEffect(()=>{if(n.current){const m=n.current;m.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){m.pause(),l()}).eventCallback("onUpdate",function(){l()}).eventCallback("onComplete",function(){m.pause(),m.revert(),Ea(je.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),l()})}},[]);const u=bt.useCallback(()=>{n.current&&n.current.revert()},[]),f=bt.useCallback(()=>{n.current&&n.current.restart()},[]),h=bt.useCallback(()=>{if(n.current){const m=n.current;m.repeat(1),m.restart()}},[]),d=bt.useCallback(m=>{n.current&&n.current.seek(m)},[]),p=bt.useCallback(()=>{n.current&&n.current.seek(4)},[]),c=bt.useCallback(()=>{const m=n.current;return m?m.totalDuration():0},[]),v=()=>{n.current&&(n.current.pause(),Ea(je.PAUSE))},y=()=>{n.current&&(n.current.resume(),Ea(je.RESUME))};return wr(je.SEEK_START,()=>{r(!0)}),wr(je.SCRUBBER_PLAY,()=>{y()}),wr(je.SCRUBBER_PAUSE,()=>{v()}),wr(je.SCRUBBER_SEEK,m=>{d(m)}),wr(je.SEEK_END,()=>{r(!1)}),wr(je.SCRUBBER_PROGRESS_UPDATE,m=>{}),Zt.jsx(mi.Provider,{value:{gsapCtx:i,tl:n,handlePlay:y,handlePause:v,handleReset:u,handleSeek:d,handleSeekTest:p,handleRestart:f,handleRepeat:h,playerTimeRef:a,isDragging:t,getTimelineDuration:c},children:e})},M1=e=>{let t={};switch(e){case"NONE":case"none":break;case"BOUNCE_IN":t.from={duration:2,ease:"bounce.out",y:-1500};break;case"BOUNCE_IN_DOWN":t.from={ease:"bounce.out",y:-1500,duration:2};break;case"BOUNCE_IN_LEFT":t.from={ease:"bounce.out",x:-1500,duration:2};break;case"BOUNCE_IN_RIGHT":t.from={ease:"bounce.out",x:1500,duration:2};break;case"BOUNCE_IN_UP":t.from={ease:"bounce.out",y:1500,duration:2};break;case"BOUNCE_OUT":t.from={ease:"bounce.in",y:2,duration:2};break;case"BOUNCE_OUT_DOWN":break;case"BOUNCE_OUT_LEFT":break;case"BOUNCE_OUT_RIGHT":break;case"BOUNCE_OUT_UP":break;case"FADE_IN":t.to={ease:"power4.in",alpha:1,duration:1};break;case"FADE_IN_DOWN":t.fromTo={from:{y:-1e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break;case"FADE_IN_LEFT":t.fromTo={from:{x:-1e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_RIGHT":t.fromTo={from:{x:2e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_UP":t.fromTo={from:{y:2e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break}return t};var k1=Object.prototype;function L1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||k1;return e===r}var ad=L1;function F1(e,t){return function(r){return e(t(r))}}var B1=F1,U1=B1,D1=U1(Object.keys,Object),$1=D1,G1=ad,q1=$1,j1=Object.prototype,H1=j1.hasOwnProperty;function z1(e){if(!G1(e))return q1(e);var t=[];for(var r in Object(e))H1.call(e,r)&&r!="constructor"&&t.push(r);return t}var od=z1,V1=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,ld=V1,W1=ld,X1=typeof self=="object"&&self&&self.Object===Object&&self,K1=W1||X1||Function("return this")(),Br=K1,Y1=Br,Z1=Y1.Symbol,wa=Z1,ud=wa,fd=Object.prototype,J1=fd.hasOwnProperty,Q1=fd.toString,fs=ud?ud.toStringTag:void 0;function tb(e){var t=J1.call(e,fs),r=e[fs];try{e[fs]=void 0;var n=!0}catch{}var i=Q1.call(e);return n&&(t?e[fs]=r:delete e[fs]),i}var eb=tb,rb=Object.prototype,nb=rb.toString;function ib(e){return nb.call(e)}var sb=ib,cd=wa,ab=eb,ob=sb,lb="[object Null]",ub="[object Undefined]",hd=cd?cd.toStringTag:void 0;function fb(e){return e==null?e===void 0?ub:lb:hd&&hd in Object(e)?ab(e):ob(e)}var cs=fb;function cb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hs=cb,hb=cs,db=hs,pb="[object AsyncFunction]",vb="[object Function]",gb="[object GeneratorFunction]",yb="[object Proxy]";function mb(e){if(!db(e))return!1;var t=hb(e);return t==vb||t==gb||t==pb||t==yb}var dd=mb,_b=Br,bb=_b["__core-js_shared__"],xb=bb,Zl=xb,pd=function(){var e=/[^.]+$/.exec(Zl&&Zl.keys&&Zl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Eb(e){return!!pd&&pd in e}var wb=Eb,Tb=Function.prototype,Ab=Tb.toString;function Sb(e){if(e!=null){try{return Ab.call(e)}catch{}try{return e+""}catch{}}return""}var vd=Sb,Ob=dd,Ib=wb,Rb=hs,Cb=vd,Nb=/[\\^$.*+?()[\]{}|]/g,Pb=/^\[object .+?Constructor\]$/,Mb=Function.prototype,kb=Object.prototype,Lb=Mb.toString,Fb=kb.hasOwnProperty,Bb=RegExp("^"+Lb.call(Fb).replace(Nb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ub(e){if(!Rb(e)||Ib(e))return!1;var t=Ob(e)?Bb:Pb;return t.test(Cb(e))}var Db=Ub;function $b(e,t){return e==null?void 0:e[t]}var Gb=$b,qb=Db,jb=Gb;function Hb(e,t){var r=jb(e,t);return qb(r)?r:void 0}var _i=Hb,zb=_i,Vb=Br,Wb=zb(Vb,"DataView"),Xb=Wb,Kb=_i,Yb=Br,Zb=Kb(Yb,"Map"),Jl=Zb,Jb=_i,Qb=Br,tx=Jb(Qb,"Promise"),ex=tx,rx=_i,nx=Br,ix=rx(nx,"Set"),sx=ix,ax=_i,ox=Br,lx=ax(ox,"WeakMap"),ux=lx,Ql=Xb,tu=Jl,eu=ex,ru=sx,nu=ux,gd=cs,bi=vd,yd="[object Map]",fx="[object Object]",md="[object Promise]",_d="[object Set]",bd="[object WeakMap]",xd="[object DataView]",cx=bi(Ql),hx=bi(tu),dx=bi(eu),px=bi(ru),vx=bi(nu),Un=gd;(Ql&&Un(new Ql(new ArrayBuffer(1)))!=xd||tu&&Un(new tu)!=yd||eu&&Un(eu.resolve())!=md||ru&&Un(new ru)!=_d||nu&&Un(new nu)!=bd)&&(Un=function(e){var t=gd(e),r=t==fx?e.constructor:void 0,n=r?bi(r):"";if(n)switch(n){case cx:return xd;case hx:return yd;case dx:return md;case px:return _d;case vx:return bd}return t});var Ed=Un;function gx(e){return e!=null&&typeof e=="object"}var ds=gx,yx=cs,mx=ds,_x="[object Arguments]";function bx(e){return mx(e)&&yx(e)==_x}var xx=bx,wd=xx,Ex=ds,Td=Object.prototype,wx=Td.hasOwnProperty,Tx=Td.propertyIsEnumerable,Ax=wd(function(){return arguments}())?wd:function(e){return Ex(e)&&wx.call(e,"callee")&&!Tx.call(e,"callee")},iu=Ax,Sx=Array.isArray,Ur=Sx,Ox=9007199254740991;function Ix(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ox}var su=Ix,Rx=dd,Cx=su;function Nx(e){return e!=null&&Cx(e.length)&&!Rx(e)}var Ta=Nx,Aa={exports:{}};function Px(){return!1}var Mx=Px;Aa.exports,function(e,t){var r=Br,n=Mx,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===i,u=l?r.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||n;e.exports=h}(Aa,Aa.exports);var au=Aa.exports,kx=cs,Lx=su,Fx=ds,Bx="[object Arguments]",Ux="[object Array]",Dx="[object Boolean]",$x="[object Date]",Gx="[object Error]",qx="[object Function]",jx="[object Map]",Hx="[object Number]",zx="[object Object]",Vx="[object RegExp]",Wx="[object Set]",Xx="[object String]",Kx="[object WeakMap]",Yx="[object ArrayBuffer]",Zx="[object DataView]",Jx="[object Float32Array]",Qx="[object Float64Array]",tE="[object Int8Array]",eE="[object Int16Array]",rE="[object Int32Array]",nE="[object Uint8Array]",iE="[object Uint8ClampedArray]",sE="[object Uint16Array]",aE="[object Uint32Array]",ae={};ae[Jx]=ae[Qx]=ae[tE]=ae[eE]=ae[rE]=ae[nE]=ae[iE]=ae[sE]=ae[aE]=!0,ae[Bx]=ae[Ux]=ae[Yx]=ae[Dx]=ae[Zx]=ae[$x]=ae[Gx]=ae[qx]=ae[jx]=ae[Hx]=ae[zx]=ae[Vx]=ae[Wx]=ae[Xx]=ae[Kx]=!1;function oE(e){return Fx(e)&&Lx(e.length)&&!!ae[kx(e)]}var lE=oE;function uE(e){return function(t){return e(t)}}var fE=uE,Sa={exports:{}};Sa.exports,function(e,t){var r=ld,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a&&r.process,u=function(){try{var f=i&&i.require&&i.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}}();e.exports=u}(Sa,Sa.exports);var cE=Sa.exports,hE=lE,dE=fE,Ad=cE,Sd=Ad&&Ad.isTypedArray,pE=Sd?dE(Sd):hE,ou=pE,vE=od,gE=Ed,yE=iu,mE=Ur,_E=Ta,bE=au,xE=ad,EE=ou,wE="[object Map]",TE="[object Set]",AE=Object.prototype,SE=AE.hasOwnProperty;function OE(e){if(e==null)return!0;if(_E(e)&&(mE(e)||typeof e=="string"||typeof e.splice=="function"||bE(e)||EE(e)||yE(e)))return!e.length;var t=gE(e);if(t==wE||t==TE)return!e.size;if(xE(e))return!vE(e).length;for(var r in e)if(SE.call(e,r))return!1;return!0}var IE=OE;const xi=Tn(IE),RE=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],Ei=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState(!1),[i,a]=bt.useState(!1),[l,u]=bt.useState(!1),[f,h]=bt.useState(e.initialAlpha),d=bt.useRef(null),p=bt.useRef(null),c=bt.useRef(null),v=bt.useRef(null),y=bt.useRef(e.initialAlpha),{tl:m}=bt.useContext(mi),{uniqueId:b,startAt:_,endAt:E,initialAlpha:w,transformation:{x,y:A,width:C,height:S,scale:O=[1,1],rotation:L=0,colorCorrection:R,animation:I,effect:N},applyTransformer:k,disabled:F,ignoreTlForVideo:j,pointerdown:Z,pointerout:H,pointerover:nt,isText:Y}=e,{contrast:D=1,saturation:M=1,brightness:U=1,alpha:q=1,blurRadius:W=0}=R||{},K={...U>1&&{brightness:U},...D>1&&{contrast:D},...M>1&&{saturation:M},...q!==0&&{alpha:q}};wr(je.COMPLETE,()=>{d.current&&(y.current=w,h(w))}),Tt.useImperativeHandle(t,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>l}),[i,l]),Tt.useEffect(()=>{d.current&&n(!0)},[]);const G=Tt.useCallback(()=>{u(!0),nt&&nt()},[]),V=()=>{console.log("reverse complete"),y.current=w},tt=gt=>{y.current=gt.alpha},et=gt=>{y.current=gt.alpha};Tt.useEffect(()=>{let gt=xe.context(()=>{});if(d.current&&m.current){const It={duration:Number(E)-Number(_)},re={onStart:tt,onReverseComplete:V,onStartParams:[{alpha:1}]},$t={onComplete:et,onCompleteParams:[{alpha:0}]},it=M1(I||"None");gt=xe.context(()=>{var ot,dt;xi(it.from)?xi(it.to)?xi(it.fromTo)?m.current.to(d.current,{alpha:1,duration:.1,...re},_).to(d.current,{alpha:0,duration:.1,...$t},Number(E)-.09):m.current.fromTo(d.current,(ot=it.fromTo)==null?void 0:ot.from,{...(dt=it.fromTo)==null?void 0:dt.to,...re},_).to(d.current,{alpha:0,duration:.1,...$t},Number(E)-.09):m.current.to(d.current,{alpha:1,duration:.1,...it.to,...re},_).to(d.current,{alpha:0,duration:.1,...$t},Number(E)-.09):m.current.from(d.current,{...it.from},_).to(d.current,{alpha:1,duration:.1,...re},_).to(d.current,{alpha:0,duration:.1,...$t},Number(E)-.09),j||m.current.from(d.current,{...It},_)})}return()=>{m.current&&(m.current.progress(0).kill(),xe.killTweensOf(m.current)),gt.revert()}},[I,_,E,j]);const st=Tt.useCallback(()=>{a(!0)},[]),ht=Tt.useCallback(gt=>{console.log("changeEnd",gt),e.onAnchorTransformationEnd&&(console.log("running onAnchorTransformationEnd"),e.onAnchorTransformationEnd(gt)),a(!1)},[]),yt=ve.withFilters(ve.Container,{...W>0&&{blur:wn.filters.BlurFilter},...!xi(K)&&{adjust:R1},matrix:wn.filters.ColorMatrixFilter}),_t=(R==null?void 0:R.enabled)||N&&N!==Bn.Normal;return console.log("abstraction props",e),Zt.jsxs(ve.Container,{ref:p,children:[Zt.jsx(ve.Container,{ref:d,alpha:y.current||f,position:[x,A],pivot:[x,A],width:C,height:S,scale:[1,1],rotation:L,...!F&&!i&&{interactive:!0,buttonMode:!0,pointerdown:Z,pointerover:nt,pointerout:H},...Y&&{scale:O},children:Zt.jsxs(ve.Container,{children:[_t&&Zt.jsx(yt,{scale:1,blur:{blur:W,quality:4},adjust:K,apply:({matrix:gt})=>{N===Bn.BlackAndWhite?gt.desaturate():N===Bn.Sepia?gt.sepia():N===Bn.RetroVintage||N===Bn.NightVision?gt.negative():N===Bn.Normal&>.reset()},matrix:{enabled:!0,matrix:RE},children:Zt.jsx(ve.Container,{ref:c,children:e.children})}),!_t&&Zt.jsx(ve.Container,{ref:c,children:e.children})]})}),k&&Zt.jsx(C1,{pixiTransformerRef:v,imageRef:d,isMounted:r,transformCommit:ht,transformChange:st,mouseoverEvent:G,uniqueId:b})]})});Ei.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};const CE=Tt.forwardRef((e,t)=>{const r=bt.useRef(null),n=bt.useRef(null),{src:i,transformation:{x:a,y:l,width:u,height:f,anchor:h},pointerdown:d,pointerup:p}=e;return Zt.jsx(Ei,{...e,ref:t,children:Zt.jsx(ve.Container,{ref:n,children:Zt.jsx(ve.Sprite,{image:i,width:u,height:f,anchor:h,ref:r,x:a,y:l,interactive:!0,pointerdown:d,pointerup:p})})})}),Oa={build(e){const t=e.points;let r,n,i,a,l,u;if(e.type===Ce.CIRC){const y=e.shape;r=y.x,n=y.y,l=u=y.radius,i=a=0}else if(e.type===Ce.ELIP){const y=e.shape;r=y.x,n=y.y,l=y.width,u=y.height,i=a=0}else{const y=e.shape,m=y.width/2,b=y.height/2;r=y.x+m,n=y.y+b,l=u=Math.max(0,Math.min(y.radius,Math.min(m,b))),i=m-l,a=b-u}if(!(l>=0&&u>=0&&i>=0&&a>=0)){t.length=0;return}const f=Math.ceil(2.3*Math.sqrt(l+u)),h=f*8+(i?4:0)+(a?4:0);if(t.length=h,h===0)return;if(f===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+a,t[2]=t[4]=r-i,t[5]=t[7]=n-a;return}let d=0,p=f*4+(i?2:0)+2,c=p,v=h;{const y=i+l,m=a,b=r+y,_=r-y,E=n+m;if(t[d++]=b,t[d++]=E,t[--p]=E,t[--p]=_,a){const w=n-m;t[c++]=_,t[c++]=w,t[--v]=w,t[--v]=b}}for(let y=1;y<f;y++){const m=Math.PI/2*(y/f),b=i+Math.cos(m)*l,_=a+Math.sin(m)*u,E=r+b,w=r-b,x=n+_,A=n-_;t[d++]=E,t[d++]=x,t[--p]=x,t[--p]=w,t[c++]=w,t[c++]=A,t[--v]=A,t[--v]=E}{const y=i,m=a+u,b=r+y,_=r-y,E=n+m,w=n-m;t[d++]=b,t[d++]=E,t[--v]=w,t[--v]=b,i&&(t[d++]=_,t[d++]=E,t[--v]=w,t[--v]=_)}},triangulate(e,t){const r=e.points,n=t.points,i=t.indices;if(r.length===0)return;let a=n.length/2;const l=a;let u,f;if(e.type!==Ce.RREC){const d=e.shape;u=d.x,f=d.y}else{const d=e.shape;u=d.x+d.width/2,f=d.y+d.height/2}const h=e.matrix;n.push(e.matrix?h.a*u+h.c*f+h.tx:u,e.matrix?h.b*u+h.d*f+h.ty:f),a++,n.push(r[0],r[1]);for(let d=2;d<r.length;d+=2)n.push(r[d],r[d+1]),i.push(a++,l,a);i.push(l+1,l,a)}};function Od(e,t=!1){const r=e.length;if(r<6)return;let n=0;for(let i=0,a=e[r-2],l=e[r-1];i<r;i+=2){const u=e[i],f=e[i+1];n+=(u-a)*(f+l),a=u,l=f}if(!t&&n>0||t&&n<=0){const i=r/2;for(let a=i+i%2;a<r;a+=2){const l=r-a-2,u=r-a-1,f=a,h=a+1;[e[l],e[f]]=[e[f],e[l]],[e[u],e[h]]=[e[h],e[u]]}}}const Id={build(e){e.points=e.shape.points.slice()},triangulate(e,t){let r=e.points;const n=e.holes,i=t.points,a=t.indices;if(r.length>=6){Od(r,!1);const l=[];for(let h=0;h<n.length;h++){const d=n[h];Od(d.points,!0),l.push(r.length/2),r=r.concat(d.points)}const u=jy(r,l,2);if(!u)return;const f=i.length/2;for(let h=0;h<u.length;h+=3)a.push(u[h]+f),a.push(u[h+1]+f),a.push(u[h+2]+f);for(let h=0;h<r.length;h++)i.push(r[h])}}},NE={build(e){const t=e.shape,r=t.x,n=t.y,i=t.width,a=t.height,l=e.points;l.length=0,i>=0&&a>=0&&l.push(r,n,r+i,n,r+i,n+a,r,n+a)},triangulate(e,t){const r=e.points,n=t.points;if(r.length===0)return;const i=n.length/2;n.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},PE={build(e){Oa.build(e)},triangulate(e,t){Oa.triangulate(e,t)}};var Tr=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(Tr||{}),Dn=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(Dn||{});const wi={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let r=Math.ceil(e/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}};class Rd{static curveTo(t,r,n,i,a,l){const u=l[l.length-2],h=l[l.length-1]-r,d=u-t,p=i-r,c=n-t,v=Math.abs(h*c-d*p);if(v<1e-8||a===0)return(l[l.length-2]!==t||l[l.length-1]!==r)&&l.push(t,r),null;const y=h*h+d*d,m=p*p+c*c,b=h*p+d*c,_=a*Math.sqrt(y)/v,E=a*Math.sqrt(m)/v,w=_*b/y,x=E*b/m,A=_*c+E*d,C=_*p+E*h,S=d*(E+w),O=h*(E+w),L=c*(_+x),R=p*(_+x),I=Math.atan2(O-C,S-A),N=Math.atan2(R-C,L-A);return{cx:A+t,cy:C+r,radius:a,startAngle:I,endAngle:N,anticlockwise:d*p>c*h}}static arc(t,r,n,i,a,l,u,f,h){const d=u-l,p=wi._segmentsCount(Math.abs(d)*a,Math.ceil(Math.abs(d)/ia)*40),c=d/(p*2),v=c*2,y=Math.cos(c),m=Math.sin(c),b=p-1,_=b%1/b;for(let E=0;E<=b;++E){const w=E+_*E,x=c+l+v*w,A=Math.cos(x),C=-Math.sin(x);h.push((y*A+m*C)*a+n,(y*-C+m*A)*a+i)}}}class ME{constructor(){this.reset()}begin(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n}end(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class lu{static curveLength(t,r,n,i,a,l,u,f){let d=0,p=0,c=0,v=0,y=0,m=0,b=0,_=0,E=0,w=0,x=0,A=t,C=r;for(let S=1;S<=10;++S)p=S/10,c=p*p,v=c*p,y=1-p,m=y*y,b=m*y,_=b*t+3*m*p*n+3*y*c*a+v*u,E=b*r+3*m*p*i+3*y*c*l+v*f,w=A-_,x=C-E,A=_,C=E,d+=Math.sqrt(w*w+x*x);return d}static curveTo(t,r,n,i,a,l,u){const f=u[u.length-2],h=u[u.length-1];u.length-=2;const d=wi._segmentsCount(lu.curveLength(f,h,t,r,n,i,a,l));let p=0,c=0,v=0,y=0,m=0;u.push(f,h);for(let b=1,_=0;b<=d;++b)_=b/d,p=1-_,c=p*p,v=c*p,y=_*_,m=y*_,u.push(v*f+3*c*_*t+3*p*y*n+m*a,v*h+3*c*_*r+3*p*y*i+m*l)}}function Cd(e,t,r,n,i,a,l,u){const f=e-r*i,h=t-n*i,d=e+r*a,p=t+n*a;let c,v;l?(c=n,v=-r):(c=-n,v=r);const y=f+c,m=h+v,b=d+c,_=p+v;return u.push(y,m,b,_),2}function $n(e,t,r,n,i,a,l,u){const f=r-e,h=n-t;let d=Math.atan2(f,h),p=Math.atan2(i-e,a-t);u&&d<p?d+=Math.PI*2:!u&&d>p&&(p+=Math.PI*2);let c=d;const v=p-d,y=Math.abs(v),m=Math.sqrt(f*f+h*h),b=(15*y*Math.sqrt(m)/Math.PI>>0)+1,_=v/b;if(c+=_,u){l.push(e,t,r,n);for(let E=1,w=c;E<b;E++,w+=_)l.push(e,t,e+Math.sin(w)*m,t+Math.cos(w)*m);l.push(e,t,i,a)}else{l.push(r,n,e,t);for(let E=1,w=c;E<b;E++,w+=_)l.push(e+Math.sin(w)*m,t+Math.cos(w)*m,e,t);l.push(i,a,e,t)}return b*2}function kE(e,t){const r=e.shape;let n=e.points||r.points.slice();const i=t.closePointEps;if(n.length===0)return;const a=e.lineStyle,l=new Ie(n[0],n[1]),u=new Ie(n[n.length-2],n[n.length-1]),f=r.type!==Ce.POLY||r.closeStroke,h=Math.abs(l.x-u.x)<i&&Math.abs(l.y-u.y)<i;if(f){n=n.slice(),h&&(n.pop(),n.pop(),u.set(n[n.length-2],n[n.length-1]));const H=(l.x+u.x)*.5,nt=(u.y+l.y)*.5;n.unshift(H,nt),n.push(H,nt)}const d=t.points,p=n.length/2;let c=n.length;const v=d.length/2,y=a.width/2,m=y*y,b=a.miterLimit*a.miterLimit;let _=n[0],E=n[1],w=n[2],x=n[3],A=0,C=0,S=-(E-x),O=_-w,L=0,R=0,I=Math.sqrt(S*S+O*O);S/=I,O/=I,S*=y,O*=y;const N=a.alignment,k=(1-N)*2,F=N*2;f||(a.cap===Dn.ROUND?c+=$n(_-S*(k-F)*.5,E-O*(k-F)*.5,_-S*k,E-O*k,_+S*F,E+O*F,d,!0)+2:a.cap===Dn.SQUARE&&(c+=Cd(_,E,S,O,k,F,!0,d))),d.push(_-S*k,E-O*k,_+S*F,E+O*F);for(let H=1;H<p-1;++H){_=n[(H-1)*2],E=n[(H-1)*2+1],w=n[H*2],x=n[H*2+1],A=n[(H+1)*2],C=n[(H+1)*2+1],S=-(E-x),O=_-w,I=Math.sqrt(S*S+O*O),S/=I,O/=I,S*=y,O*=y,L=-(x-C),R=w-A,I=Math.sqrt(L*L+R*R),L/=I,R/=I,L*=y,R*=y;const nt=w-_,Y=E-x,D=w-A,M=C-x,U=nt*D+Y*M,q=Y*D-M*nt,W=q<0;if(Math.abs(q)<.001*Math.abs(U)){d.push(w-S*k,x-O*k,w+S*F,x+O*F),U>=0&&(a.join===Tr.ROUND?c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,d,!1)+4:c+=2,d.push(w-L*F,x-R*F,w+L*k,x+R*k));continue}const K=(-S+_)*(-O+x)-(-S+w)*(-O+E),G=(-L+A)*(-R+x)-(-L+w)*(-R+C),V=(nt*G-D*K)/q,tt=(M*K-Y*G)/q,et=(V-w)*(V-w)+(tt-x)*(tt-x),st=w+(V-w)*k,ht=x+(tt-x)*k,yt=w-(V-w)*F,_t=x-(tt-x)*F,gt=Math.min(nt*nt+Y*Y,D*D+M*M),It=W?k:F,re=gt+It*It*m,$t=et<=re;let it=a.join;if(it===Tr.MITER&&et/m>b&&(it=Tr.BEVEL),$t)switch(it){case Tr.MITER:{d.push(st,ht,yt,_t);break}case Tr.BEVEL:{W?d.push(st,ht,w+S*F,x+O*F,st,ht,w+L*F,x+R*F):d.push(w-S*k,x-O*k,yt,_t,w-L*k,x-R*k,yt,_t),c+=2;break}case Tr.ROUND:{W?(d.push(st,ht,w+S*F,x+O*F),c+=$n(w,x,w+S*F,x+O*F,w+L*F,x+R*F,d,!0)+4,d.push(st,ht,w+L*F,x+R*F)):(d.push(w-S*k,x-O*k,yt,_t),c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,d,!1)+4,d.push(w-L*k,x-R*k,yt,_t));break}}else{switch(d.push(w-S*k,x-O*k,w+S*F,x+O*F),it){case Tr.MITER:{W?d.push(yt,_t,yt,_t):d.push(st,ht,st,ht),c+=2;break}case Tr.ROUND:{W?c+=$n(w,x,w+S*F,x+O*F,w+L*F,x+R*F,d,!0)+2:c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,d,!1)+2;break}}d.push(w-L*k,x-R*k,w+L*F,x+R*F),c+=2}}_=n[(p-2)*2],E=n[(p-2)*2+1],w=n[(p-1)*2],x=n[(p-1)*2+1],S=-(E-x),O=_-w,I=Math.sqrt(S*S+O*O),S/=I,O/=I,S*=y,O*=y,d.push(w-S*k,x-O*k,w+S*F,x+O*F),f||(a.cap===Dn.ROUND?c+=$n(w-S*(k-F)*.5,x-O*(k-F)*.5,w-S*k,x-O*k,w+S*F,x+O*F,d,!1)+2:a.cap===Dn.SQUARE&&(c+=Cd(w,x,S,O,k,F,!1,d)));const j=t.indices,Z=wi.epsilon*wi.epsilon;for(let H=v;H<c+v-2;++H)_=d[H*2],E=d[H*2+1],w=d[(H+1)*2],x=d[(H+1)*2+1],A=d[(H+2)*2],C=d[(H+2)*2+1],!(Math.abs(_*(x-C)+w*(C-E)+A*(E-x))<Z)&&j.push(H,H+1,H+2)}function LE(e,t){let r=0;const n=e.shape,i=e.points||n.points,a=n.type!==Ce.POLY||n.closeStroke;if(i.length===0)return;const l=t.points,u=t.indices,f=i.length/2,h=l.length/2;let d=h;for(l.push(i[0],i[1]),r=1;r<f;r++)l.push(i[r*2],i[r*2+1]),u.push(d,d+1),d++;a&&u.push(d,h)}function Nd(e,t){e.lineStyle.native?LE(e,t):kE(e,t)}class uu{static curveLength(t,r,n,i,a,l){const u=t-2*n+a,f=r-2*i+l,h=2*n-2*t,d=2*i-2*r,p=4*(u*u+f*f),c=4*(u*h+f*d),v=h*h+d*d,y=2*Math.sqrt(p+c+v),m=Math.sqrt(p),b=2*p*m,_=2*Math.sqrt(v),E=c/m;return(b*y+m*c*(y-_)+(4*v*p-c*c)*Math.log((2*m+E+y)/(E+_)))/(4*b)}static curveTo(t,r,n,i,a){const l=a[a.length-2],u=a[a.length-1],f=wi._segmentsCount(uu.curveLength(l,u,t,r,n,i));let h=0,d=0;for(let p=1;p<=f;++p){const c=p/f;h=l+(t-l)*c,d=u+(r-u)*c,a.push(h+(t+(n-t)*c-h)*c,d+(r+(i-r)*c-d)*c)}}}const fu={[Ce.POLY]:Id,[Ce.CIRC]:Oa,[Ce.ELIP]:Oa,[Ce.RECT]:NE,[Ce.RREC]:PE},Pd=[],Ia=[];class cu{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?ee.EMPTY:(t=t||new ee(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,r){const{a:n,b:i,c:a,d:l,tx:u,ty:f}=t,h=n*r.x+a*r.y+u,d=i*r.x+l*r.y+f;this.minX=Math.min(this.minX,h),this.maxX=Math.max(this.maxX,h),this.minY=Math.min(this.minY,d),this.maxY=Math.max(this.maxY,d)}addQuad(t){let r=this.minX,n=this.minY,i=this.maxX,a=this.maxY,l=t[0],u=t[1];r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[2],u=t[3],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[4],u=t[5],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[6],u=t[7],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,this.minX=r,this.minY=n,this.maxX=i,this.maxY=a}addFrame(t,r,n,i,a){this.addFrameMatrix(t.worldTransform,r,n,i,a)}addFrameMatrix(t,r,n,i,a){const l=t.a,u=t.b,f=t.c,h=t.d,d=t.tx,p=t.ty;let c=this.minX,v=this.minY,y=this.maxX,m=this.maxY,b=l*r+f*n+d,_=u*r+h*n+p;c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*i+f*n+d,_=u*i+h*n+p,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*r+f*a+d,_=u*r+h*a+p,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*i+f*a+d,_=u*i+h*a+p,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,this.minX=c,this.minY=v,this.maxX=y,this.maxY=m}addVertexData(t,r,n){let i=this.minX,a=this.minY,l=this.maxX,u=this.maxY;for(let f=r;f<n;f+=2){const h=t[f],d=t[f+1];i=h<i?h:i,a=d<a?d:a,l=h>l?h:l,u=d>u?d:u}this.minX=i,this.minY=a,this.maxX=l,this.maxY=u}addVertices(t,r,n,i){this.addVerticesMatrix(t.worldTransform,r,n,i)}addVerticesMatrix(t,r,n,i,a=0,l=a){const u=t.a,f=t.b,h=t.c,d=t.d,p=t.tx,c=t.ty;let v=this.minX,y=this.minY,m=this.maxX,b=this.maxY;for(let _=n;_<i;_+=2){const E=r[_],w=r[_+1],x=u*E+h*w+p,A=d*w+f*E+c;v=Math.min(v,x-a),m=Math.max(m,x+a),y=Math.min(y,A-l),b=Math.max(b,A+l)}this.minX=v,this.minY=y,this.maxX=m,this.maxY=b}addBounds(t){const r=this.minX,n=this.minY,i=this.maxX,a=this.maxY;this.minX=t.minX<r?t.minX:r,this.minY=t.minY<n?t.minY:n,this.maxX=t.maxX>i?t.maxX:i,this.maxY=t.maxY>a?t.maxY:a}addBoundsMask(t,r){const n=t.minX>r.minX?t.minX:r.minX,i=t.minY>r.minY?t.minY:r.minY,a=t.maxX<r.maxX?t.maxX:r.maxX,l=t.maxY<r.maxY?t.maxY:r.maxY;if(n<=a&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=a>h?a:h,this.maxY=l>d?l:d}}addBoundsMatrix(t,r){this.addFrameMatrix(r,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,r){const n=t.minX>r.x?t.minX:r.x,i=t.minY>r.y?t.minY:r.y,a=t.maxX<r.x+r.width?t.maxX:r.x+r.width,l=t.maxY<r.y+r.height?t.maxY:r.y+r.height;if(n<=a&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=a>h?a:h,this.maxY=l>d?l:d}}pad(t=0,r=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=r,this.maxY+=r)}addFramePad(t,r,n,i,a,l){t-=a,r-=l,n+=a,i+=l,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<r?this.minY:r,this.maxY=this.maxY>i?this.maxY:i}}class Ti extends Bs{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new Ul,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new cu,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];Object.defineProperty(Ti.prototype,i,Object.getOwnPropertyDescriptor(t,i))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(t,r){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),r||(this._boundsRect||(this._boundsRect=new ee),r=this._boundsRect),this._bounds.getRectangle(r)}getLocalBounds(t){t||(this._localBoundsRect||(this._localBoundsRect=new ee),t=this._localBoundsRect),this._localBounds||(this._localBounds=new cu);const r=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;const i=this._bounds,a=this._boundsID;this._bounds=this._localBounds;const l=this.getBounds(!1,t);return this.parent=n,this.transform=r,this._bounds=i,this._bounds.updateID+=this._boundsID-a,l}toGlobal(t,r,n=!1){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,r)}toLocal(t,r,n,i){return r&&(t=r.toGlobal(t,n,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,n)}setParent(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t}removeFromParent(){var t;(t=this.parent)==null||t.removeChild(this)}setTransform(t=0,r=0,n=1,i=1,a=0,l=0,u=0,f=0,h=0){return this.position.x=t,this.position.y=r,this.scale.x=n||1,this.scale.y=i||1,this.rotation=a,this.skew.x=l,this.skew.y=u,this.pivot.x=f,this.pivot.y=h,this}destroy(t){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new FE),this.tempDisplayObjectParent}enableTempParent(){const t=this.parent;return this.parent=this._tempDisplayObjectParent,t}disableTempParent(t){this.parent=t}get x(){return this.position.x}set x(t){this.transform.position.x=t}get y(){return this.position.y}set y(t){this.transform.position.y=t}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(t){this.transform.position.copyFrom(t)}get scale(){return this.transform.scale}set scale(t){this.transform.scale.copyFrom(t)}get pivot(){return this.transform.pivot}set pivot(t){this.transform.pivot.copyFrom(t)}get skew(){return this.transform.skew}set skew(t){this.transform.skew.copyFrom(t)}get rotation(){return this.transform.rotation}set rotation(t){this.transform.rotation=t}get angle(){return this.transform.rotation*w_}set angle(t){this.transform.rotation=t*T_}get zIndex(){return this._zIndex}set zIndex(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){let t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}get mask(){return this._mask}set mask(t){if(this._mask!==t){if(this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount--,r._maskRefCount===0&&(r.renderable=!0,r.isMask=!1))}if(this._mask=t,this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount===0&&(r.renderable=!1,r.isMask=!0),r._maskRefCount++)}}}}class FE extends Ti{constructor(){super(...arguments),this.sortDirty=null}}Ti.prototype.displayObjectUpdateTransform=Ti.prototype.updateTransform;const BE=new Be;function UE(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}const hu=class extends Ti{constructor(){super(),this.children=[],this.sortableChildren=hu.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(e){}addChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.addChild(e[t]);else{const t=e[0];t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this)}return e[0]}addChildAt(e,t){if(t<0||t>this.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e,this.onChildrenChange(r<n?r:n)}getChildIndex(e){const t=this.children.indexOf(e);if(t===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return t}setChildIndex(e,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const r=this.getChildIndex(e);ta(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.removeChild(e[t]);else{const t=e[0],r=this.children.indexOf(t);if(r===-1)return null;t.parent=null,t.transform._parentID=-1,ta(this.children,r,1),this._boundsID++,this.onChildrenChange(r),t.emit("removed",this),this.emit("childRemoved",t,this,r)}return e[0]}removeChildAt(e){const t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,ta(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t}removeChildren(e=0,t=this.children.length){const r=e,n=t,i=n-r;let a;if(i>0&&i<=n){a=this.children.splice(r,i);for(let l=0;l<a.length;++l)a[l].parent=null,a[l].transform&&(a[l].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(let l=0;l<a.length;++l)a[l].emit("removed",this),this.emit("childRemoved",a[l],this,l);return a}else if(i===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let e=!1;for(let t=0,r=this.children.length;t<r;++t){const n=this.children[t];n._lastSortedIndex=t,!e&&n.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort(UE),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e<t;++e){const r=this.children[e];r.visible&&r.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let e=0;e<this.children.length;e++){const t=this.children[e];if(!(!t.visible||!t.renderable))if(t.calculateBounds(),t._mask){const r=t._mask.isMaskData?t._mask.maskObject:t._mask;r?(r.calculateBounds(),this._bounds.addBoundsMask(t._bounds,r._bounds)):this._bounds.addBounds(t._bounds)}else t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(e,t=!1){const r=super.getLocalBounds(e);if(!t)for(let n=0,i=this.children.length;n<i;++n){const a=this.children[n];a.visible&&a.updateTransform()}return r}_calculateBounds(){}_renderWithCulling(e){const t=e.renderTexture.sourceFrame;if(!(t.width>0&&t.height>0))return;let r,n;this.cullArea?(r=this.cullArea,n=this.worldTransform):this._render!==hu.prototype._render&&(r=this.getBounds(!0));const i=e.projection.transform;if(i&&(n?(n=BE.copyFrom(n),n.prepend(i)):n=i),r&&t.intersects(r,n))this._render(e);else if(this.cullArea)return;for(let a=0,l=this.children.length;a<l;++a){const u=this.children[a],f=u.cullable;u.cullable=f||!this.cullArea,u.render(e),u.cullable=f}}render(e){var t;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(t=this.filters)!=null&&t.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(let r=0,n=this.children.length;r<n;++r)this.children[r].render(e)}}renderAdvanced(e){var i,a,l;const t=this.filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let u=0;u<t.length;u++)t[u].enabled&&this._enabledFilters.push(t[u])}const n=t&&((i=this._enabledFilters)==null?void 0:i.length)||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==Ee.NONE));if(n&&e.batch.flush(),t&&((a=this._enabledFilters)!=null&&a.length)&&e.filter.push(this,this._enabledFilters),r&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(let u=0,f=this.children.length;u<f;++u)this.children[u].render(e)}n&&e.batch.flush(),r&&e.mask.pop(this),t&&((l=this._enabledFilters)!=null&&l.length)&&e.filter.pop()}_render(e){}destroy(e){super.destroy(),this.sortDirty=!1;const t=typeof e=="boolean"?e:e==null?void 0:e.children,r=this.removeChildren(0,this.children.length);if(t)for(let n=0;n<r.length;++n)r[n].destroy(e)}get width(){return this.scale.x*this.getLocalBounds().width}set width(e){const t=this.getLocalBounds().width;t!==0?this.scale.x=e/t:this.scale.x=1,this._width=e}get height(){return this.scale.y*this.getLocalBounds().height}set height(e){const t=this.getLocalBounds().height;t!==0?this.scale.y=e/t:this.scale.y=1,this._height=e}};let Ai=hu;Ai.defaultSortableChildren=!1,Ai.prototype.containerUpdateTransform=Ai.prototype.updateTransform,Object.defineProperties(Ht,{SORTABLE_CHILDREN:{get(){return Ai.defaultSortableChildren},set(e){Jt("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Ai.defaultSortableChildren=e}}});class Ra{constructor(t,r=null,n=null,i=null){this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}clone(){return new Ra(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const Si=new Ie,Md=class extends ph{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new cu,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Ia.push(this.drawCalls[e]);this.drawCalls.length=0;for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t.reset(),Pd.push(t)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,r=null,n=null){const i=new Ra(e,t,r,n);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const r=new Ra(e,null,null,t),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this}destroy(){super.destroy();for(let e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(e){const t=this.graphicsData;for(let r=0;r<t.length;++r){const n=t[r];if(n.fillStyle.visible&&n.shape&&(n.matrix?n.matrix.applyInverse(e,Si):Si.copyFrom(e),n.shape.contains(Si.x,Si.y))){let i=!1;if(n.holes){for(let a=0;a<n.holes.length;a++)if(n.holes[a].shape.contains(Si.x,Si.y)){i=!0;break}}if(!i)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const e=this.uvs,t=this.graphicsData;let r=null,n=null;this.batches.length>0&&(r=this.batches[this.batches.length-1],n=r.style);for(let u=this.shapeIndex;u<t.length;u++){this.shapeIndex++;const f=t[u],h=f.fillStyle,d=f.lineStyle;fu[f.type].build(f),f.matrix&&this.transformPoints(f.points,f.matrix),(h.visible||d.visible)&&this.processHoles(f.holes);for(let c=0;c<2;c++){const v=c===0?h:d;if(!v.visible)continue;const y=v.texture.baseTexture,m=this.indices.length,b=this.points.length/2;y.wrapMode=Vi.REPEAT,c===0?this.processFill(f):this.processLine(f);const _=this.points.length/2-b;_!==0&&(r&&!this._compareStyles(n,v)&&(r.end(m,b),r=null),r||(r=Pd.pop()||new ME,r.begin(v,m,b),this.batches.push(r),n=v),this.addUvs(this.points,e,v.texture,b,_,v.matrix))}}const i=this.indices.length,a=this.points.length/2;if(r&&r.end(i,a),this.batches.length===0){this.batchable=!0;return}const l=a>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&l===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=l?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e<t;e++){const r=this.graphicsData[e],n=r.fillStyle,i=r.lineStyle;if(n&&!n.texture.baseTexture.valid||i&&!i.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const e=this.batches;for(let t=0,r=e.length;t<r;t++){const n=e[t];for(let i=0;i<n.size;i++){const a=n.start+i;this.indicesUint16[a]=this.indicesUint16[a]-n.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const e=this.batches;for(let t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<Md.BATCHABLE_SIZE*2}buildDrawCalls(){let e=++Vt._globalBatch;for(let d=0;d<this.drawCalls.length;d++)this.drawCalls[d].texArray.clear(),Ia.push(this.drawCalls[d]);this.drawCalls.length=0;const t=this.colors,r=this.textureIds;let n=Ia.pop();n||(n=new kl,n.texArray=new $l),n.texArray.count=0,n.start=0,n.size=0,n.type=an.TRIANGLES;let i=0,a=null,l=0,u=!1,f=an.TRIANGLES,h=0;this.drawCalls.push(n);for(let d=0;d<this.batches.length;d++){const p=this.batches[d],c=8,v=p.style,y=v.texture.baseTexture;u!==!!v.native&&(u=!!v.native,f=u?an.LINES:an.TRIANGLES,a=null,i=c,e++),a!==y&&(a=y,y._batchEnabled!==e&&(i===c&&(e++,i=0,n.size>0&&(n=Ia.pop(),n||(n=new kl,n.texArray=new $l),this.drawCalls.push(n)),n.start=h,n.size=0,n.texArray.count=0,n.type=f),y.touched=1,y._batchEnabled=e,y._batchLocation=i,y.wrapMode=Vi.REPEAT,n.texArray.elements[n.texArray.count++]=y,i++)),n.size+=p.size,h+=p.size,l=y._batchLocation,this.addColors(t,v.color,v.alpha,p.attribSize,p.attribStart),this.addTextureIds(r,l,p.attribSize,p.attribStart)}Vt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(e.length*3*4),a=new Float32Array(i),l=new Uint32Array(i);let u=0;for(let f=0;f<e.length/2;f++)a[u++]=e[f*2],a[u++]=e[f*2+1],a[u++]=t[f*2],a[u++]=t[f*2+1],l[u++]=r[f],a[u++]=n[f];this._buffer.update(i),this._indexBuffer.update(this.indicesUint16)}processFill(e){e.holes.length?Id.triangulate(e,this):fu[e.type].triangulate(e,this)}processLine(e){Nd(e,this);for(let t=0;t<e.holes.length;t++)Nd(e.holes[t],this)}processHoles(e){for(let t=0;t<e.length;t++){const r=e[t];fu[r.type].build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}}calculateBounds(){const e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)}transformPoints(e,t){for(let r=0;r<e.length/2;r++){const n=e[r*2],i=e[r*2+1];e[r*2]=t.a*n+t.c*i+t.tx,e[r*2+1]=t.b*n+t.d*i+t.ty}}addColors(e,t,r,n,i=0){const a=qe.shared.setValue(t).toLittleEndianNumber(),l=qe.shared.setValue(a).toPremultiplied(r);e.length=Math.max(e.length,i+n);for(let u=0;u<n;u++)e[i+u]=l}addTextureIds(e,t,r,n=0){e.length=Math.max(e.length,n+r);for(let i=0;i<r;i++)e[n+i]=t}addUvs(e,t,r,n,i,a=null){let l=0;const u=t.length,f=r.frame;for(;l<i;){let d=e[(n+l)*2],p=e[(n+l)*2+1];if(a){const c=a.a*d+a.c*p+a.tx;p=a.b*d+a.d*p+a.ty,d=c}l++,t.push(d/f.width,p/f.height)}const h=r.baseTexture;(f.width<h.width||f.height<h.height)&&this.adjustUvs(t,r,u,i)}adjustUvs(e,t,r,n){const i=t.baseTexture,a=1e-6,l=r+n*2,u=t.frame,f=u.width/i.width,h=u.height/i.height;let d=u.x/u.width,p=u.y/u.height,c=Math.floor(e[r]+a),v=Math.floor(e[r+1]+a);for(let y=r+2;y<l;y+=2)c=Math.min(c,Math.floor(e[y]+a)),v=Math.min(v,Math.floor(e[y+1]+a));d-=c,p-=v;for(let y=r;y<l;y+=2)e[y]=(e[y]+d)*f,e[y+1]=(e[y+1]+p)*h}};let kd=Md;kd.BATCHABLE_SIZE=100;class Ca{constructor(){this.color=16777215,this.alpha=1,this.texture=Wt.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const t=new Ca;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t}reset(){this.color=16777215,this.alpha=1,this.texture=Wt.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class du extends Ca{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=Dn.BUTT,this.join=Tr.MITER,this.miterLimit=10}clone(){const t=new du;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1}}const pu={},Na=class extends Ai{constructor(e=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new Ca,this._lineStyle=new du,this._matrix=null,this._holeMode=!1,this.state=ra.for2d(),this._geometry=e||new kd,this._geometry.refCount++,this._transformID=-1,this._tintColor=new qe(16777215),this.blendMode=Rt.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new Na(this._geometry)}set blendMode(e){this.state.blendMode=e}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(e=null,t=0,r,n=.5,i=!1){return typeof e=="number"&&(e={width:e,color:t,alpha:r,alignment:n,native:i}),this.lineTextureStyle(e)}lineTextureStyle(e){const t={width:0,texture:Wt.WHITE,color:e!=null&&e.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:Dn.BUTT,join:Tr.MITER,miterLimit:10};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.width>0&&e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:r},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new is,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new is,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return(n!==e||i!==t)&&r.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,r,n){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),uu.curveTo(e,t,r,n,i),this}bezierCurveTo(e,t,r,n,i,a){return this._initCurve(),lu.curveTo(e,t,r,n,i,a,this.currentPath.points),this}arcTo(e,t,r,n,i){this._initCurve(e,t);const a=this.currentPath.points,l=Rd.curveTo(e,t,r,n,i,a);if(l){const{cx:u,cy:f,radius:h,startAngle:d,endAngle:p,anticlockwise:c}=l;this.arc(u,f,h,d,p,c)}return this}arc(e,t,r,n,i,a=!1){if(n===i)return this;if(!a&&i<=n?i+=ia:a&&n<=i&&(n+=ia),i-n===0)return this;const u=e+Math.cos(n)*r,f=t+Math.sin(n)*r,h=this._geometry.closePointEps;let d=this.currentPath?this.currentPath.points:null;if(d){const p=Math.abs(d[d.length-2]-u),c=Math.abs(d[d.length-1]-f);p<h&&c<h||d.push(u,f)}else this.moveTo(u,f),d=this.currentPath.points;return Rd.arc(u,f,e,t,r,n,i,a,d),this}beginFill(e=0,t){return this.beginTextureFill({texture:Wt.WHITE,color:e,alpha:t})}normalizeColor(e){const t=qe.shared.setValue(e.color??0);e.color=t.toNumber(),e.alpha??(e.alpha=t.alpha)}beginTextureFill(e){const t={texture:Wt.WHITE,color:16777215,matrix:null};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:r},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,r,n){return this.drawShape(new ee(e,t,r,n))}drawRoundedRect(e,t,r,n,i){return this.drawShape(new Fl(e,t,r,n,i))}drawCircle(e,t,r){return this.drawShape(new Ll(e,t,r))}drawEllipse(e,t,r,n){return this.drawShape(new A_(e,t,r,n))}drawPolygon(...e){let t,r=!0;const n=e[0];n.points?(r=n.closeStroke,t=n.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new is(t);return i.closeStroke=r,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Ce.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,r=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(e.points);for(let n=0;n<r;n++){const i=e.batches[n],a=i.style.color,l=new Float32Array(this.vertexData.buffer,i.attribStart*4*2,i.attribSize*2),u=new Float32Array(e.uvsFloat32.buffer,i.attribStart*4*2,i.attribSize*2),f=new Uint16Array(e.indicesUint16.buffer,i.start*2,i.size),h={vertexData:l,blendMode:t,indices:f,uvs:u,_batchRGB:qe.shared.setValue(a).toRgbArray(),_tintRGB:a,_texture:i.style.texture,alpha:i.style.alpha,worldAlpha:1};this.batches[n]=h}}_renderBatched(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let t=0,r=this.batches.length;t<r;t++){const n=this.batches[t];n.worldAlpha=this.worldAlpha*n.alpha,e.plugins[this.pluginName].render(n)}}}_renderDirect(e){const t=this._resolveDirectShader(e),r=this._geometry,n=this.worldAlpha,i=t.uniforms,a=r.drawCalls;i.translationMatrix=this.transform.worldTransform,qe.shared.setValue(this._tintColor).premultiply(n).toArray(i.tint),e.shader.bind(t),e.geometry.bind(r,t),e.state.set(this.state);for(let l=0,u=a.length;l<u;l++)this._renderDrawCallDirect(e,r.drawCalls[l])}_renderDrawCallDirect(e,t){const{texArray:r,type:n,size:i,start:a}=t,l=r.count;for(let u=0;u<l;u++)e.texture.bind(r.elements[u],u);e.geometry.draw(n,i,a)}_resolveDirectShader(e){let t=this.shader;const r=this.pluginName;if(!t){if(!pu[r]){const{maxTextures:n}=e.plugins[r],i=new Int32Array(n);for(let u=0;u<n;u++)i[u]=u;const a={tint:new Float32Array([1,1,1,1]),translationMatrix:new Be,default:mr.from({uSamplers:i},!0)},l=e.plugins[r]._shader.program;pu[r]=new as(l,a)}t=pu[r]}return t}_calculateBounds(){this.finishPoly();const e=this._geometry;if(!e.graphicsData.length)return;const{minX:t,minY:r,maxX:n,maxY:i}=e.bounds;this._bounds.addFrame(this.transform,t,r,n,i)}containsPoint(e){return this.worldTransform.applyInverse(e,Na._TEMP_POINT),this._geometry.containsPoint(Na._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t._tintRGB=qe.shared.setValue(this._tintColor).multiply(t._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const e=this.transform._worldID;if(this._transformID===e)return;this._transformID=e;const t=this.transform.worldTransform,r=t.a,n=t.b,i=t.c,a=t.d,l=t.tx,u=t.ty,f=this._geometry.points,h=this.vertexData;let d=0;for(let p=0;p<f.length;p+=2){const c=f[p],v=f[p+1];h[d++]=r*c+i*v+l,h[d++]=a*v+n*c+u}}closePath(){const e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this}setMatrix(e){return this._matrix=e,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(e){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(e)}};let vu=Na;vu.curves=wi,vu._TEMP_POINT=new Ie;var DE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gu={},$E={get exports(){return gu},set exports(e){gu=e}};/*!
|
|
539
|
+
`;class R1 extends Wr{constructor(t){super(O1,I1),this.gamma=1,this.saturation=1,this.contrast=1,this.brightness=1,this.red=1,this.green=1,this.blue=1,this.alpha=1,Object.assign(this,t)}apply(t,r,n,i){this.uniforms.gamma=Math.max(this.gamma,1e-4),this.uniforms.saturation=this.saturation,this.uniforms.contrast=this.contrast,this.uniforms.brightness=this.brightness,this.uniforms.red=this.red,this.uniforms.green=this.green,this.uniforms.blue=this.blue,this.uniforms.alpha=this.alpha,t.applyFilter(this,r,n,i)}}var Bn=(e=>(e.BlackAndWhite="BlackAndWhite",e.Sepia="Sepia",e.RetroVintage="RetroVintage",e.NightVision="NightVision",e.Normal="Normal",e.None="Normal",e))(Bn||{});const C1=({pixiTransformerRef:e,imageRef:t,isMounted:r,transformCommit:n,transformChange:i,mouseoverEvent:a,onDoubleClick:l,uniqueId:u=""})=>{const f=wn.utils.string2hex("#F3C409"),h=wn.utils.string2hex("#F3C409"),d=Tt.useRef({isDragging:!1}),p=Tt.useCallback(()=>{a&&!d.current.isDragging&&a(!0)},[a]),c=Tt.useCallback(()=>{a&&!d.current.isDragging&&a(!1)},[a]),v=Tt.useCallback(()=>{d.current.isDragging=!0},[]),y=Tt.useCallback(()=>{d.current.isDragging=!1},[]),m=Tt.useCallback(()=>{d.current.isDragging=!1},[]),b=Tt.useCallback(()=>{console.log("dobule click in pixi transformer"),l&&l({uniqueId:u})},[l]),_=Tt.useCallback(w=>{d.current.isDragging=!0,i&&i(w)},[i]),E=Tt.useCallback(()=>{if(t.current===null)return;const w=t.current.x,x=t.current.y,A=t.current.width,C=t.current.height,S=t.current.rotation,O=[t.current.scale.x,t.current.scale.y];n&&n({uniqueId:u,transformation:{x:Math.round(w),y:Math.round(x),width:Math.round(Math.max(5,A)),height:Math.round(Math.max(5,C)),rotation:S,scale:O}}),d.current.isDragging=!1},[n]);return Tt.useEffect(()=>(e.current&&(e.current.on("mouseover",p),e.current.on("mouseout",c),e.current.on("mousedown",v),e.current.on("mouseup",y),e.current.on("mouseupoutside",m),e.current.addListener("dblclick",b)),()=>{e.current&&(e.current.off("mouseover",p),e.current.off("mouseout",c),e.current.off("mousedown",v),e.current.off("mouseup",y),e.current.off("mouseupoutside",m),e.current.removeListener("dblclick",b))}),[]),Zt.jsx(gy.Transformer,{ref:e,group:r?[t.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:2,color:h},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:f,shape:"circle",radius:10},transformchange:_,transformcommit:E})};let id;function sd(){return id=document.body,id}function wr(e,t,r){let n;return bt.useEffect(()=>{n=n||sd();const i=a=>{const l=a.detail;t(l)};return n.addEventListener(e,i,!1),()=>{n==null||n.removeEventListener(e,i,!1)}},r),i=>{n=i}}function Ea(e,t){const r=sd(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function N1(){let e;function t(r){e=r}return t.emit=function(r,n){const i=new CustomEvent(r,{bubbles:!0,detail:n});e==null||e.dispatchEvent(i)},t}const mi=Tt.createContext({}),je={STOP:"GSAP_STOP",PAUSE:"GSAP_PAUSE",PLAY:"GSAP_PLAY",RESUME:"GSAP_RESUME",RESTART:"GSAP_RESTART",REPEAT:"GSAP_REPEAT",SEEK:"GSAP_SEEK",RESET:"GSAP_RESET",COMPLETE:"GSAP_COMPLETE",SEEK_START:"GSAP_SEEK_START",SEEK_END:"GSAP_SEEK_END",SCRUBBER_SEEK:"GSAP_SCRUBBER_SEEK",SCRUBBER_PROGRESS_UPDATE:"GSAP_SCRUBBER_PROGRESS_UPDATE",SCRUBBER_PLAY:"GSAP_SCRUBBER_PLAY",SCRUBBER_PAUSE:"GSAP_SCRUBBER_PAUSE"},P1=({children:e})=>{const[t,r]=bt.useState(!1),n=bt.useRef(),i=bt.useRef(),a=bt.useRef(.001);bt.useLayoutEffect(()=>(i.current=xe.context(()=>{n.current&&n.current.progress(0).kill(),n.current&&n.current.clear(),n.current&&xe.killTweensOf(n.current),n.current=xe.timeline({paused:!0,defaults:{duration:0}})}),()=>{n.current&&(n.current.progress(0).kill(),xe.killTweensOf(n.current)),i.current.revert()}),[]);const l=bt.useCallback(()=>{if(n.current){let b=n.current.time();a.current=b}},[]);bt.useEffect(()=>{if(n.current){const m=n.current;m.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){m.pause(),l()}).eventCallback("onUpdate",function(){l()}).eventCallback("onComplete",function(){m.pause(),m.revert(),Ea(je.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),l()})}},[]);const u=bt.useCallback(()=>{n.current&&n.current.revert()},[]),f=bt.useCallback(()=>{n.current&&n.current.restart()},[]),h=bt.useCallback(()=>{if(n.current){const m=n.current;m.repeat(1),m.restart()}},[]),d=bt.useCallback(m=>{n.current&&n.current.seek(m)},[]),p=bt.useCallback(()=>{n.current&&n.current.seek(4)},[]),c=bt.useCallback(()=>{const m=n.current;return m?m.totalDuration():0},[]),v=()=>{n.current&&(n.current.pause(),Ea(je.PAUSE))},y=()=>{n.current&&(n.current.resume(),Ea(je.RESUME))};return wr(je.SEEK_START,()=>{r(!0)}),wr(je.SCRUBBER_PLAY,()=>{y()}),wr(je.SCRUBBER_PAUSE,()=>{v()}),wr(je.SCRUBBER_SEEK,m=>{d(m)}),wr(je.SEEK_END,()=>{r(!1)}),wr(je.SCRUBBER_PROGRESS_UPDATE,m=>{}),Zt.jsx(mi.Provider,{value:{gsapCtx:i,tl:n,handlePlay:y,handlePause:v,handleReset:u,handleSeek:d,handleSeekTest:p,handleRestart:f,handleRepeat:h,playerTimeRef:a,isDragging:t,getTimelineDuration:c},children:e})},M1=e=>{let t={};switch(e){case"NONE":case"none":break;case"BOUNCE_IN":t.from={duration:2,ease:"bounce.out",y:-1500};break;case"BOUNCE_IN_DOWN":t.from={ease:"bounce.out",y:-1500,duration:2};break;case"BOUNCE_IN_LEFT":t.from={ease:"bounce.out",x:-1500,duration:2};break;case"BOUNCE_IN_RIGHT":t.from={ease:"bounce.out",x:1500,duration:2};break;case"BOUNCE_IN_UP":t.from={ease:"bounce.out",y:1500,duration:2};break;case"BOUNCE_OUT":t.from={ease:"bounce.in",y:2,duration:2};break;case"BOUNCE_OUT_DOWN":break;case"BOUNCE_OUT_LEFT":break;case"BOUNCE_OUT_RIGHT":break;case"BOUNCE_OUT_UP":break;case"FADE_IN":t.to={ease:"power4.in",alpha:1,duration:1};break;case"FADE_IN_DOWN":t.fromTo={from:{y:-1e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break;case"FADE_IN_LEFT":t.fromTo={from:{x:-1e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_RIGHT":t.fromTo={from:{x:2e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_UP":t.fromTo={from:{y:2e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break}return t};var k1=Object.prototype;function L1(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||k1;return e===r}var ad=L1;function F1(e,t){return function(r){return e(t(r))}}var B1=F1,U1=B1,D1=U1(Object.keys,Object),$1=D1,G1=ad,q1=$1,j1=Object.prototype,H1=j1.hasOwnProperty;function z1(e){if(!G1(e))return q1(e);var t=[];for(var r in Object(e))H1.call(e,r)&&r!="constructor"&&t.push(r);return t}var od=z1,V1=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,ld=V1,W1=ld,X1=typeof self=="object"&&self&&self.Object===Object&&self,K1=W1||X1||Function("return this")(),Br=K1,Y1=Br,Z1=Y1.Symbol,wa=Z1,ud=wa,fd=Object.prototype,J1=fd.hasOwnProperty,Q1=fd.toString,fs=ud?ud.toStringTag:void 0;function tb(e){var t=J1.call(e,fs),r=e[fs];try{e[fs]=void 0;var n=!0}catch{}var i=Q1.call(e);return n&&(t?e[fs]=r:delete e[fs]),i}var eb=tb,rb=Object.prototype,nb=rb.toString;function ib(e){return nb.call(e)}var sb=ib,cd=wa,ab=eb,ob=sb,lb="[object Null]",ub="[object Undefined]",hd=cd?cd.toStringTag:void 0;function fb(e){return e==null?e===void 0?ub:lb:hd&&hd in Object(e)?ab(e):ob(e)}var cs=fb;function cb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var hs=cb,hb=cs,db=hs,pb="[object AsyncFunction]",vb="[object Function]",gb="[object GeneratorFunction]",yb="[object Proxy]";function mb(e){if(!db(e))return!1;var t=hb(e);return t==vb||t==gb||t==pb||t==yb}var dd=mb,_b=Br,bb=_b["__core-js_shared__"],xb=bb,Zl=xb,pd=function(){var e=/[^.]+$/.exec(Zl&&Zl.keys&&Zl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Eb(e){return!!pd&&pd in e}var wb=Eb,Tb=Function.prototype,Ab=Tb.toString;function Sb(e){if(e!=null){try{return Ab.call(e)}catch{}try{return e+""}catch{}}return""}var vd=Sb,Ob=dd,Ib=wb,Rb=hs,Cb=vd,Nb=/[\\^$.*+?()[\]{}|]/g,Pb=/^\[object .+?Constructor\]$/,Mb=Function.prototype,kb=Object.prototype,Lb=Mb.toString,Fb=kb.hasOwnProperty,Bb=RegExp("^"+Lb.call(Fb).replace(Nb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ub(e){if(!Rb(e)||Ib(e))return!1;var t=Ob(e)?Bb:Pb;return t.test(Cb(e))}var Db=Ub;function $b(e,t){return e==null?void 0:e[t]}var Gb=$b,qb=Db,jb=Gb;function Hb(e,t){var r=jb(e,t);return qb(r)?r:void 0}var _i=Hb,zb=_i,Vb=Br,Wb=zb(Vb,"DataView"),Xb=Wb,Kb=_i,Yb=Br,Zb=Kb(Yb,"Map"),Jl=Zb,Jb=_i,Qb=Br,tx=Jb(Qb,"Promise"),ex=tx,rx=_i,nx=Br,ix=rx(nx,"Set"),sx=ix,ax=_i,ox=Br,lx=ax(ox,"WeakMap"),ux=lx,Ql=Xb,tu=Jl,eu=ex,ru=sx,nu=ux,gd=cs,bi=vd,yd="[object Map]",fx="[object Object]",md="[object Promise]",_d="[object Set]",bd="[object WeakMap]",xd="[object DataView]",cx=bi(Ql),hx=bi(tu),dx=bi(eu),px=bi(ru),vx=bi(nu),Un=gd;(Ql&&Un(new Ql(new ArrayBuffer(1)))!=xd||tu&&Un(new tu)!=yd||eu&&Un(eu.resolve())!=md||ru&&Un(new ru)!=_d||nu&&Un(new nu)!=bd)&&(Un=function(e){var t=gd(e),r=t==fx?e.constructor:void 0,n=r?bi(r):"";if(n)switch(n){case cx:return xd;case hx:return yd;case dx:return md;case px:return _d;case vx:return bd}return t});var Ed=Un;function gx(e){return e!=null&&typeof e=="object"}var ds=gx,yx=cs,mx=ds,_x="[object Arguments]";function bx(e){return mx(e)&&yx(e)==_x}var xx=bx,wd=xx,Ex=ds,Td=Object.prototype,wx=Td.hasOwnProperty,Tx=Td.propertyIsEnumerable,Ax=wd(function(){return arguments}())?wd:function(e){return Ex(e)&&wx.call(e,"callee")&&!Tx.call(e,"callee")},iu=Ax,Sx=Array.isArray,Ur=Sx,Ox=9007199254740991;function Ix(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ox}var su=Ix,Rx=dd,Cx=su;function Nx(e){return e!=null&&Cx(e.length)&&!Rx(e)}var Ta=Nx,Aa={exports:{}};function Px(){return!1}var Mx=Px;Aa.exports,function(e,t){var r=Br,n=Mx,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,l=a&&a.exports===i,u=l?r.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||n;e.exports=h}(Aa,Aa.exports);var au=Aa.exports,kx=cs,Lx=su,Fx=ds,Bx="[object Arguments]",Ux="[object Array]",Dx="[object Boolean]",$x="[object Date]",Gx="[object Error]",qx="[object Function]",jx="[object Map]",Hx="[object Number]",zx="[object Object]",Vx="[object RegExp]",Wx="[object Set]",Xx="[object String]",Kx="[object WeakMap]",Yx="[object ArrayBuffer]",Zx="[object DataView]",Jx="[object Float32Array]",Qx="[object Float64Array]",tE="[object Int8Array]",eE="[object Int16Array]",rE="[object Int32Array]",nE="[object Uint8Array]",iE="[object Uint8ClampedArray]",sE="[object Uint16Array]",aE="[object Uint32Array]",ae={};ae[Jx]=ae[Qx]=ae[tE]=ae[eE]=ae[rE]=ae[nE]=ae[iE]=ae[sE]=ae[aE]=!0,ae[Bx]=ae[Ux]=ae[Yx]=ae[Dx]=ae[Zx]=ae[$x]=ae[Gx]=ae[qx]=ae[jx]=ae[Hx]=ae[zx]=ae[Vx]=ae[Wx]=ae[Xx]=ae[Kx]=!1;function oE(e){return Fx(e)&&Lx(e.length)&&!!ae[kx(e)]}var lE=oE;function uE(e){return function(t){return e(t)}}var fE=uE,Sa={exports:{}};Sa.exports,function(e,t){var r=ld,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,l=a&&r.process,u=function(){try{var f=i&&i.require&&i.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}}();e.exports=u}(Sa,Sa.exports);var cE=Sa.exports,hE=lE,dE=fE,Ad=cE,Sd=Ad&&Ad.isTypedArray,pE=Sd?dE(Sd):hE,ou=pE,vE=od,gE=Ed,yE=iu,mE=Ur,_E=Ta,bE=au,xE=ad,EE=ou,wE="[object Map]",TE="[object Set]",AE=Object.prototype,SE=AE.hasOwnProperty;function OE(e){if(e==null)return!0;if(_E(e)&&(mE(e)||typeof e=="string"||typeof e.splice=="function"||bE(e)||EE(e)||yE(e)))return!e.length;var t=gE(e);if(t==wE||t==TE)return!e.size;if(xE(e))return!vE(e).length;for(var r in e)if(SE.call(e,r))return!1;return!0}var IE=OE;const xi=Tn(IE),RE=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],Ei=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState(!1),[i,a]=bt.useState(!1),[l,u]=bt.useState(!1),[f,h]=bt.useState(e.initialAlpha),d=bt.useRef(null),p=bt.useRef(null),c=bt.useRef(null),v=bt.useRef(null),y=bt.useRef(e.initialAlpha),{tl:m}=bt.useContext(mi),{uniqueId:b,startAt:_,endAt:E,initialAlpha:w,transformation:{x,y:A,width:C,height:S,scale:O=[1,1],rotation:L=0,colorCorrection:R,animation:I,effect:N},applyTransformer:k,disabled:F,ignoreTlForVideo:j,pointerdown:Z,pointerout:H,pointerover:nt,isText:Y}=e,{contrast:D=1,saturation:M=1,brightness:U=1,alpha:q=1,blurRadius:W=0}=R||{},K={...U>1&&{brightness:U},...D>1&&{contrast:D},...M>1&&{saturation:M},...q!==0&&{alpha:q}};wr(je.COMPLETE,()=>{d.current&&(y.current=w,h(w))}),Tt.useImperativeHandle(t,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>l}),[i,l]),Tt.useEffect(()=>{d.current&&n(!0)},[]);const G=Tt.useCallback(()=>{u(!0),nt&&nt()},[]),V=()=>{console.log("reverse complete"),y.current=w,h(w)},tt=vt=>{y.current=vt.alpha,h(vt.alpha)},et=vt=>{y.current=vt.alpha,h(vt.alpha)};Tt.useEffect(()=>{let vt=xe.context(()=>{});if(d.current&&m.current){const It={duration:Number(E)-Number(_)},re={onStart:tt,onReverseComplete:V,onStartParams:[{alpha:1}]},$t={onComplete:et,onCompleteParams:[{alpha:0}]},it=M1(I||"None");vt=xe.context(()=>{var ot,dt;xi(it.from)?xi(it.to)?xi(it.fromTo)?m.current.to(d.current,{alpha:1,duration:.1,...re},_).to(d.current,{alpha:0,duration:.1,...$t},Number(E)-.09):m.current.fromTo(d.current,(ot=it.fromTo)==null?void 0:ot.from,{...(dt=it.fromTo)==null?void 0:dt.to,...re},_).to(d.current,{alpha:0,duration:.1,...$t},Number(E)-.09):m.current.to(d.current,{alpha:1,duration:.1,...it.to,...re},_).to(d.current,{alpha:0,duration:.1,...$t},Number(E)-.09):m.current.from(d.current,{...it.from},_).to(d.current,{alpha:1,duration:.1,...re},_).to(d.current,{alpha:0,duration:.1,...$t},Number(E)-.09),j||m.current.from(d.current,{...It},_)})}return()=>{m.current&&(m.current.progress(0).kill(),xe.killTweensOf(m.current)),vt.revert()}},[I,_,E,j]);const st=Tt.useCallback(()=>{a(!0)},[]),ht=Tt.useCallback(vt=>{console.log("changeEnd",vt),e.onAnchorTransformationEnd&&(console.log("running onAnchorTransformationEnd"),e.onAnchorTransformationEnd(vt)),a(!1)},[]),yt=ve.withFilters(ve.Container,{...W>0&&{blur:wn.filters.BlurFilter},...!xi(K)&&{adjust:R1},matrix:wn.filters.ColorMatrixFilter}),_t=(R==null?void 0:R.enabled)||N&&N!==Bn.Normal;return console.log("abstraction props",e),console.log("alphaRef",b,y.current,f,w),Zt.jsxs(ve.Container,{ref:p,children:[Zt.jsx(ve.Container,{ref:d,alpha:y.current||f,position:[x,A],pivot:[x,A],width:C,height:S,scale:[1,1],rotation:L,...!F&&!i&&{interactive:!0,buttonMode:!0,pointerdown:Z,pointerover:nt,pointerout:H},...Y&&{scale:O},children:Zt.jsxs(ve.Container,{children:[_t&&Zt.jsx(yt,{scale:1,blur:{blur:W,quality:4},adjust:K,apply:({matrix:vt})=>{N===Bn.BlackAndWhite?vt.desaturate():N===Bn.Sepia?vt.sepia():N===Bn.RetroVintage||N===Bn.NightVision?vt.negative():N===Bn.Normal&&vt.reset()},matrix:{enabled:!0,matrix:RE},children:Zt.jsx(ve.Container,{ref:c,children:e.children})}),!_t&&Zt.jsx(ve.Container,{ref:c,children:e.children})]})}),k&&Zt.jsx(C1,{pixiTransformerRef:v,imageRef:d,isMounted:r,transformCommit:ht,transformChange:st,mouseoverEvent:G,uniqueId:b})]})});Ei.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};const CE=Tt.forwardRef((e,t)=>{const r=bt.useRef(null),n=bt.useRef(null),{src:i,transformation:{x:a,y:l,width:u,height:f,anchor:h},pointerdown:d,pointerup:p}=e;return Zt.jsx(Ei,{...e,ref:t,children:Zt.jsx(ve.Container,{ref:n,children:Zt.jsx(ve.Sprite,{image:i,width:u,height:f,anchor:h,ref:r,x:a,y:l,interactive:!0,pointerdown:d,pointerup:p})})})}),Oa={build(e){const t=e.points;let r,n,i,a,l,u;if(e.type===Ce.CIRC){const y=e.shape;r=y.x,n=y.y,l=u=y.radius,i=a=0}else if(e.type===Ce.ELIP){const y=e.shape;r=y.x,n=y.y,l=y.width,u=y.height,i=a=0}else{const y=e.shape,m=y.width/2,b=y.height/2;r=y.x+m,n=y.y+b,l=u=Math.max(0,Math.min(y.radius,Math.min(m,b))),i=m-l,a=b-u}if(!(l>=0&&u>=0&&i>=0&&a>=0)){t.length=0;return}const f=Math.ceil(2.3*Math.sqrt(l+u)),h=f*8+(i?4:0)+(a?4:0);if(t.length=h,h===0)return;if(f===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+a,t[2]=t[4]=r-i,t[5]=t[7]=n-a;return}let d=0,p=f*4+(i?2:0)+2,c=p,v=h;{const y=i+l,m=a,b=r+y,_=r-y,E=n+m;if(t[d++]=b,t[d++]=E,t[--p]=E,t[--p]=_,a){const w=n-m;t[c++]=_,t[c++]=w,t[--v]=w,t[--v]=b}}for(let y=1;y<f;y++){const m=Math.PI/2*(y/f),b=i+Math.cos(m)*l,_=a+Math.sin(m)*u,E=r+b,w=r-b,x=n+_,A=n-_;t[d++]=E,t[d++]=x,t[--p]=x,t[--p]=w,t[c++]=w,t[c++]=A,t[--v]=A,t[--v]=E}{const y=i,m=a+u,b=r+y,_=r-y,E=n+m,w=n-m;t[d++]=b,t[d++]=E,t[--v]=w,t[--v]=b,i&&(t[d++]=_,t[d++]=E,t[--v]=w,t[--v]=_)}},triangulate(e,t){const r=e.points,n=t.points,i=t.indices;if(r.length===0)return;let a=n.length/2;const l=a;let u,f;if(e.type!==Ce.RREC){const d=e.shape;u=d.x,f=d.y}else{const d=e.shape;u=d.x+d.width/2,f=d.y+d.height/2}const h=e.matrix;n.push(e.matrix?h.a*u+h.c*f+h.tx:u,e.matrix?h.b*u+h.d*f+h.ty:f),a++,n.push(r[0],r[1]);for(let d=2;d<r.length;d+=2)n.push(r[d],r[d+1]),i.push(a++,l,a);i.push(l+1,l,a)}};function Od(e,t=!1){const r=e.length;if(r<6)return;let n=0;for(let i=0,a=e[r-2],l=e[r-1];i<r;i+=2){const u=e[i],f=e[i+1];n+=(u-a)*(f+l),a=u,l=f}if(!t&&n>0||t&&n<=0){const i=r/2;for(let a=i+i%2;a<r;a+=2){const l=r-a-2,u=r-a-1,f=a,h=a+1;[e[l],e[f]]=[e[f],e[l]],[e[u],e[h]]=[e[h],e[u]]}}}const Id={build(e){e.points=e.shape.points.slice()},triangulate(e,t){let r=e.points;const n=e.holes,i=t.points,a=t.indices;if(r.length>=6){Od(r,!1);const l=[];for(let h=0;h<n.length;h++){const d=n[h];Od(d.points,!0),l.push(r.length/2),r=r.concat(d.points)}const u=jy(r,l,2);if(!u)return;const f=i.length/2;for(let h=0;h<u.length;h+=3)a.push(u[h]+f),a.push(u[h+1]+f),a.push(u[h+2]+f);for(let h=0;h<r.length;h++)i.push(r[h])}}},NE={build(e){const t=e.shape,r=t.x,n=t.y,i=t.width,a=t.height,l=e.points;l.length=0,i>=0&&a>=0&&l.push(r,n,r+i,n,r+i,n+a,r,n+a)},triangulate(e,t){const r=e.points,n=t.points;if(r.length===0)return;const i=n.length/2;n.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},PE={build(e){Oa.build(e)},triangulate(e,t){Oa.triangulate(e,t)}};var Tr=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(Tr||{}),Dn=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(Dn||{});const wi={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let r=Math.ceil(e/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}};class Rd{static curveTo(t,r,n,i,a,l){const u=l[l.length-2],h=l[l.length-1]-r,d=u-t,p=i-r,c=n-t,v=Math.abs(h*c-d*p);if(v<1e-8||a===0)return(l[l.length-2]!==t||l[l.length-1]!==r)&&l.push(t,r),null;const y=h*h+d*d,m=p*p+c*c,b=h*p+d*c,_=a*Math.sqrt(y)/v,E=a*Math.sqrt(m)/v,w=_*b/y,x=E*b/m,A=_*c+E*d,C=_*p+E*h,S=d*(E+w),O=h*(E+w),L=c*(_+x),R=p*(_+x),I=Math.atan2(O-C,S-A),N=Math.atan2(R-C,L-A);return{cx:A+t,cy:C+r,radius:a,startAngle:I,endAngle:N,anticlockwise:d*p>c*h}}static arc(t,r,n,i,a,l,u,f,h){const d=u-l,p=wi._segmentsCount(Math.abs(d)*a,Math.ceil(Math.abs(d)/ia)*40),c=d/(p*2),v=c*2,y=Math.cos(c),m=Math.sin(c),b=p-1,_=b%1/b;for(let E=0;E<=b;++E){const w=E+_*E,x=c+l+v*w,A=Math.cos(x),C=-Math.sin(x);h.push((y*A+m*C)*a+n,(y*-C+m*A)*a+i)}}}class ME{constructor(){this.reset()}begin(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n}end(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class lu{static curveLength(t,r,n,i,a,l,u,f){let d=0,p=0,c=0,v=0,y=0,m=0,b=0,_=0,E=0,w=0,x=0,A=t,C=r;for(let S=1;S<=10;++S)p=S/10,c=p*p,v=c*p,y=1-p,m=y*y,b=m*y,_=b*t+3*m*p*n+3*y*c*a+v*u,E=b*r+3*m*p*i+3*y*c*l+v*f,w=A-_,x=C-E,A=_,C=E,d+=Math.sqrt(w*w+x*x);return d}static curveTo(t,r,n,i,a,l,u){const f=u[u.length-2],h=u[u.length-1];u.length-=2;const d=wi._segmentsCount(lu.curveLength(f,h,t,r,n,i,a,l));let p=0,c=0,v=0,y=0,m=0;u.push(f,h);for(let b=1,_=0;b<=d;++b)_=b/d,p=1-_,c=p*p,v=c*p,y=_*_,m=y*_,u.push(v*f+3*c*_*t+3*p*y*n+m*a,v*h+3*c*_*r+3*p*y*i+m*l)}}function Cd(e,t,r,n,i,a,l,u){const f=e-r*i,h=t-n*i,d=e+r*a,p=t+n*a;let c,v;l?(c=n,v=-r):(c=-n,v=r);const y=f+c,m=h+v,b=d+c,_=p+v;return u.push(y,m,b,_),2}function $n(e,t,r,n,i,a,l,u){const f=r-e,h=n-t;let d=Math.atan2(f,h),p=Math.atan2(i-e,a-t);u&&d<p?d+=Math.PI*2:!u&&d>p&&(p+=Math.PI*2);let c=d;const v=p-d,y=Math.abs(v),m=Math.sqrt(f*f+h*h),b=(15*y*Math.sqrt(m)/Math.PI>>0)+1,_=v/b;if(c+=_,u){l.push(e,t,r,n);for(let E=1,w=c;E<b;E++,w+=_)l.push(e,t,e+Math.sin(w)*m,t+Math.cos(w)*m);l.push(e,t,i,a)}else{l.push(r,n,e,t);for(let E=1,w=c;E<b;E++,w+=_)l.push(e+Math.sin(w)*m,t+Math.cos(w)*m,e,t);l.push(i,a,e,t)}return b*2}function kE(e,t){const r=e.shape;let n=e.points||r.points.slice();const i=t.closePointEps;if(n.length===0)return;const a=e.lineStyle,l=new Ie(n[0],n[1]),u=new Ie(n[n.length-2],n[n.length-1]),f=r.type!==Ce.POLY||r.closeStroke,h=Math.abs(l.x-u.x)<i&&Math.abs(l.y-u.y)<i;if(f){n=n.slice(),h&&(n.pop(),n.pop(),u.set(n[n.length-2],n[n.length-1]));const H=(l.x+u.x)*.5,nt=(u.y+l.y)*.5;n.unshift(H,nt),n.push(H,nt)}const d=t.points,p=n.length/2;let c=n.length;const v=d.length/2,y=a.width/2,m=y*y,b=a.miterLimit*a.miterLimit;let _=n[0],E=n[1],w=n[2],x=n[3],A=0,C=0,S=-(E-x),O=_-w,L=0,R=0,I=Math.sqrt(S*S+O*O);S/=I,O/=I,S*=y,O*=y;const N=a.alignment,k=(1-N)*2,F=N*2;f||(a.cap===Dn.ROUND?c+=$n(_-S*(k-F)*.5,E-O*(k-F)*.5,_-S*k,E-O*k,_+S*F,E+O*F,d,!0)+2:a.cap===Dn.SQUARE&&(c+=Cd(_,E,S,O,k,F,!0,d))),d.push(_-S*k,E-O*k,_+S*F,E+O*F);for(let H=1;H<p-1;++H){_=n[(H-1)*2],E=n[(H-1)*2+1],w=n[H*2],x=n[H*2+1],A=n[(H+1)*2],C=n[(H+1)*2+1],S=-(E-x),O=_-w,I=Math.sqrt(S*S+O*O),S/=I,O/=I,S*=y,O*=y,L=-(x-C),R=w-A,I=Math.sqrt(L*L+R*R),L/=I,R/=I,L*=y,R*=y;const nt=w-_,Y=E-x,D=w-A,M=C-x,U=nt*D+Y*M,q=Y*D-M*nt,W=q<0;if(Math.abs(q)<.001*Math.abs(U)){d.push(w-S*k,x-O*k,w+S*F,x+O*F),U>=0&&(a.join===Tr.ROUND?c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,d,!1)+4:c+=2,d.push(w-L*F,x-R*F,w+L*k,x+R*k));continue}const K=(-S+_)*(-O+x)-(-S+w)*(-O+E),G=(-L+A)*(-R+x)-(-L+w)*(-R+C),V=(nt*G-D*K)/q,tt=(M*K-Y*G)/q,et=(V-w)*(V-w)+(tt-x)*(tt-x),st=w+(V-w)*k,ht=x+(tt-x)*k,yt=w-(V-w)*F,_t=x-(tt-x)*F,vt=Math.min(nt*nt+Y*Y,D*D+M*M),It=W?k:F,re=vt+It*It*m,$t=et<=re;let it=a.join;if(it===Tr.MITER&&et/m>b&&(it=Tr.BEVEL),$t)switch(it){case Tr.MITER:{d.push(st,ht,yt,_t);break}case Tr.BEVEL:{W?d.push(st,ht,w+S*F,x+O*F,st,ht,w+L*F,x+R*F):d.push(w-S*k,x-O*k,yt,_t,w-L*k,x-R*k,yt,_t),c+=2;break}case Tr.ROUND:{W?(d.push(st,ht,w+S*F,x+O*F),c+=$n(w,x,w+S*F,x+O*F,w+L*F,x+R*F,d,!0)+4,d.push(st,ht,w+L*F,x+R*F)):(d.push(w-S*k,x-O*k,yt,_t),c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,d,!1)+4,d.push(w-L*k,x-R*k,yt,_t));break}}else{switch(d.push(w-S*k,x-O*k,w+S*F,x+O*F),it){case Tr.MITER:{W?d.push(yt,_t,yt,_t):d.push(st,ht,st,ht),c+=2;break}case Tr.ROUND:{W?c+=$n(w,x,w+S*F,x+O*F,w+L*F,x+R*F,d,!0)+2:c+=$n(w,x,w-S*k,x-O*k,w-L*k,x-R*k,d,!1)+2;break}}d.push(w-L*k,x-R*k,w+L*F,x+R*F),c+=2}}_=n[(p-2)*2],E=n[(p-2)*2+1],w=n[(p-1)*2],x=n[(p-1)*2+1],S=-(E-x),O=_-w,I=Math.sqrt(S*S+O*O),S/=I,O/=I,S*=y,O*=y,d.push(w-S*k,x-O*k,w+S*F,x+O*F),f||(a.cap===Dn.ROUND?c+=$n(w-S*(k-F)*.5,x-O*(k-F)*.5,w-S*k,x-O*k,w+S*F,x+O*F,d,!1)+2:a.cap===Dn.SQUARE&&(c+=Cd(w,x,S,O,k,F,!1,d)));const j=t.indices,Z=wi.epsilon*wi.epsilon;for(let H=v;H<c+v-2;++H)_=d[H*2],E=d[H*2+1],w=d[(H+1)*2],x=d[(H+1)*2+1],A=d[(H+2)*2],C=d[(H+2)*2+1],!(Math.abs(_*(x-C)+w*(C-E)+A*(E-x))<Z)&&j.push(H,H+1,H+2)}function LE(e,t){let r=0;const n=e.shape,i=e.points||n.points,a=n.type!==Ce.POLY||n.closeStroke;if(i.length===0)return;const l=t.points,u=t.indices,f=i.length/2,h=l.length/2;let d=h;for(l.push(i[0],i[1]),r=1;r<f;r++)l.push(i[r*2],i[r*2+1]),u.push(d,d+1),d++;a&&u.push(d,h)}function Nd(e,t){e.lineStyle.native?LE(e,t):kE(e,t)}class uu{static curveLength(t,r,n,i,a,l){const u=t-2*n+a,f=r-2*i+l,h=2*n-2*t,d=2*i-2*r,p=4*(u*u+f*f),c=4*(u*h+f*d),v=h*h+d*d,y=2*Math.sqrt(p+c+v),m=Math.sqrt(p),b=2*p*m,_=2*Math.sqrt(v),E=c/m;return(b*y+m*c*(y-_)+(4*v*p-c*c)*Math.log((2*m+E+y)/(E+_)))/(4*b)}static curveTo(t,r,n,i,a){const l=a[a.length-2],u=a[a.length-1],f=wi._segmentsCount(uu.curveLength(l,u,t,r,n,i));let h=0,d=0;for(let p=1;p<=f;++p){const c=p/f;h=l+(t-l)*c,d=u+(r-u)*c,a.push(h+(t+(n-t)*c-h)*c,d+(r+(i-r)*c-d)*c)}}}const fu={[Ce.POLY]:Id,[Ce.CIRC]:Oa,[Ce.ELIP]:Oa,[Ce.RECT]:NE,[Ce.RREC]:PE},Pd=[],Ia=[];class cu{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?ee.EMPTY:(t=t||new ee(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,r){const{a:n,b:i,c:a,d:l,tx:u,ty:f}=t,h=n*r.x+a*r.y+u,d=i*r.x+l*r.y+f;this.minX=Math.min(this.minX,h),this.maxX=Math.max(this.maxX,h),this.minY=Math.min(this.minY,d),this.maxY=Math.max(this.maxY,d)}addQuad(t){let r=this.minX,n=this.minY,i=this.maxX,a=this.maxY,l=t[0],u=t[1];r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[2],u=t[3],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[4],u=t[5],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,l=t[6],u=t[7],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,a=u>a?u:a,this.minX=r,this.minY=n,this.maxX=i,this.maxY=a}addFrame(t,r,n,i,a){this.addFrameMatrix(t.worldTransform,r,n,i,a)}addFrameMatrix(t,r,n,i,a){const l=t.a,u=t.b,f=t.c,h=t.d,d=t.tx,p=t.ty;let c=this.minX,v=this.minY,y=this.maxX,m=this.maxY,b=l*r+f*n+d,_=u*r+h*n+p;c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*i+f*n+d,_=u*i+h*n+p,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*r+f*a+d,_=u*r+h*a+p,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,b=l*i+f*a+d,_=u*i+h*a+p,c=b<c?b:c,v=_<v?_:v,y=b>y?b:y,m=_>m?_:m,this.minX=c,this.minY=v,this.maxX=y,this.maxY=m}addVertexData(t,r,n){let i=this.minX,a=this.minY,l=this.maxX,u=this.maxY;for(let f=r;f<n;f+=2){const h=t[f],d=t[f+1];i=h<i?h:i,a=d<a?d:a,l=h>l?h:l,u=d>u?d:u}this.minX=i,this.minY=a,this.maxX=l,this.maxY=u}addVertices(t,r,n,i){this.addVerticesMatrix(t.worldTransform,r,n,i)}addVerticesMatrix(t,r,n,i,a=0,l=a){const u=t.a,f=t.b,h=t.c,d=t.d,p=t.tx,c=t.ty;let v=this.minX,y=this.minY,m=this.maxX,b=this.maxY;for(let _=n;_<i;_+=2){const E=r[_],w=r[_+1],x=u*E+h*w+p,A=d*w+f*E+c;v=Math.min(v,x-a),m=Math.max(m,x+a),y=Math.min(y,A-l),b=Math.max(b,A+l)}this.minX=v,this.minY=y,this.maxX=m,this.maxY=b}addBounds(t){const r=this.minX,n=this.minY,i=this.maxX,a=this.maxY;this.minX=t.minX<r?t.minX:r,this.minY=t.minY<n?t.minY:n,this.maxX=t.maxX>i?t.maxX:i,this.maxY=t.maxY>a?t.maxY:a}addBoundsMask(t,r){const n=t.minX>r.minX?t.minX:r.minX,i=t.minY>r.minY?t.minY:r.minY,a=t.maxX<r.maxX?t.maxX:r.maxX,l=t.maxY<r.maxY?t.maxY:r.maxY;if(n<=a&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=a>h?a:h,this.maxY=l>d?l:d}}addBoundsMatrix(t,r){this.addFrameMatrix(r,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,r){const n=t.minX>r.x?t.minX:r.x,i=t.minY>r.y?t.minY:r.y,a=t.maxX<r.x+r.width?t.maxX:r.x+r.width,l=t.maxY<r.y+r.height?t.maxY:r.y+r.height;if(n<=a&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=a>h?a:h,this.maxY=l>d?l:d}}pad(t=0,r=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=r,this.maxY+=r)}addFramePad(t,r,n,i,a,l){t-=a,r-=l,n+=a,i+=l,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<r?this.minY:r,this.maxY=this.maxY>i?this.maxY:i}}class Ti extends Bs{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new Ul,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new cu,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];Object.defineProperty(Ti.prototype,i,Object.getOwnPropertyDescriptor(t,i))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(t,r){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),r||(this._boundsRect||(this._boundsRect=new ee),r=this._boundsRect),this._bounds.getRectangle(r)}getLocalBounds(t){t||(this._localBoundsRect||(this._localBoundsRect=new ee),t=this._localBoundsRect),this._localBounds||(this._localBounds=new cu);const r=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;const i=this._bounds,a=this._boundsID;this._bounds=this._localBounds;const l=this.getBounds(!1,t);return this.parent=n,this.transform=r,this._bounds=i,this._bounds.updateID+=this._boundsID-a,l}toGlobal(t,r,n=!1){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,r)}toLocal(t,r,n,i){return r&&(t=r.toGlobal(t,n,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,n)}setParent(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t}removeFromParent(){var t;(t=this.parent)==null||t.removeChild(this)}setTransform(t=0,r=0,n=1,i=1,a=0,l=0,u=0,f=0,h=0){return this.position.x=t,this.position.y=r,this.scale.x=n||1,this.scale.y=i||1,this.rotation=a,this.skew.x=l,this.skew.y=u,this.pivot.x=f,this.pivot.y=h,this}destroy(t){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new FE),this.tempDisplayObjectParent}enableTempParent(){const t=this.parent;return this.parent=this._tempDisplayObjectParent,t}disableTempParent(t){this.parent=t}get x(){return this.position.x}set x(t){this.transform.position.x=t}get y(){return this.position.y}set y(t){this.transform.position.y=t}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(t){this.transform.position.copyFrom(t)}get scale(){return this.transform.scale}set scale(t){this.transform.scale.copyFrom(t)}get pivot(){return this.transform.pivot}set pivot(t){this.transform.pivot.copyFrom(t)}get skew(){return this.transform.skew}set skew(t){this.transform.skew.copyFrom(t)}get rotation(){return this.transform.rotation}set rotation(t){this.transform.rotation=t}get angle(){return this.transform.rotation*w_}set angle(t){this.transform.rotation=t*T_}get zIndex(){return this._zIndex}set zIndex(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){let t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}get mask(){return this._mask}set mask(t){if(this._mask!==t){if(this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount--,r._maskRefCount===0&&(r.renderable=!0,r.isMask=!1))}if(this._mask=t,this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount===0&&(r.renderable=!1,r.isMask=!0),r._maskRefCount++)}}}}class FE extends Ti{constructor(){super(...arguments),this.sortDirty=null}}Ti.prototype.displayObjectUpdateTransform=Ti.prototype.updateTransform;const BE=new Be;function UE(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}const hu=class extends Ti{constructor(){super(),this.children=[],this.sortableChildren=hu.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(e){}addChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.addChild(e[t]);else{const t=e[0];t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this)}return e[0]}addChildAt(e,t){if(t<0||t>this.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e,this.onChildrenChange(r<n?r:n)}getChildIndex(e){const t=this.children.indexOf(e);if(t===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return t}setChildIndex(e,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const r=this.getChildIndex(e);ta(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.removeChild(e[t]);else{const t=e[0],r=this.children.indexOf(t);if(r===-1)return null;t.parent=null,t.transform._parentID=-1,ta(this.children,r,1),this._boundsID++,this.onChildrenChange(r),t.emit("removed",this),this.emit("childRemoved",t,this,r)}return e[0]}removeChildAt(e){const t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,ta(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t}removeChildren(e=0,t=this.children.length){const r=e,n=t,i=n-r;let a;if(i>0&&i<=n){a=this.children.splice(r,i);for(let l=0;l<a.length;++l)a[l].parent=null,a[l].transform&&(a[l].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(let l=0;l<a.length;++l)a[l].emit("removed",this),this.emit("childRemoved",a[l],this,l);return a}else if(i===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let e=!1;for(let t=0,r=this.children.length;t<r;++t){const n=this.children[t];n._lastSortedIndex=t,!e&&n.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort(UE),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e<t;++e){const r=this.children[e];r.visible&&r.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let e=0;e<this.children.length;e++){const t=this.children[e];if(!(!t.visible||!t.renderable))if(t.calculateBounds(),t._mask){const r=t._mask.isMaskData?t._mask.maskObject:t._mask;r?(r.calculateBounds(),this._bounds.addBoundsMask(t._bounds,r._bounds)):this._bounds.addBounds(t._bounds)}else t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(e,t=!1){const r=super.getLocalBounds(e);if(!t)for(let n=0,i=this.children.length;n<i;++n){const a=this.children[n];a.visible&&a.updateTransform()}return r}_calculateBounds(){}_renderWithCulling(e){const t=e.renderTexture.sourceFrame;if(!(t.width>0&&t.height>0))return;let r,n;this.cullArea?(r=this.cullArea,n=this.worldTransform):this._render!==hu.prototype._render&&(r=this.getBounds(!0));const i=e.projection.transform;if(i&&(n?(n=BE.copyFrom(n),n.prepend(i)):n=i),r&&t.intersects(r,n))this._render(e);else if(this.cullArea)return;for(let a=0,l=this.children.length;a<l;++a){const u=this.children[a],f=u.cullable;u.cullable=f||!this.cullArea,u.render(e),u.cullable=f}}render(e){var t;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(t=this.filters)!=null&&t.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(let r=0,n=this.children.length;r<n;++r)this.children[r].render(e)}}renderAdvanced(e){var i,a,l;const t=this.filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let u=0;u<t.length;u++)t[u].enabled&&this._enabledFilters.push(t[u])}const n=t&&((i=this._enabledFilters)==null?void 0:i.length)||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==Ee.NONE));if(n&&e.batch.flush(),t&&((a=this._enabledFilters)!=null&&a.length)&&e.filter.push(this,this._enabledFilters),r&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(let u=0,f=this.children.length;u<f;++u)this.children[u].render(e)}n&&e.batch.flush(),r&&e.mask.pop(this),t&&((l=this._enabledFilters)!=null&&l.length)&&e.filter.pop()}_render(e){}destroy(e){super.destroy(),this.sortDirty=!1;const t=typeof e=="boolean"?e:e==null?void 0:e.children,r=this.removeChildren(0,this.children.length);if(t)for(let n=0;n<r.length;++n)r[n].destroy(e)}get width(){return this.scale.x*this.getLocalBounds().width}set width(e){const t=this.getLocalBounds().width;t!==0?this.scale.x=e/t:this.scale.x=1,this._width=e}get height(){return this.scale.y*this.getLocalBounds().height}set height(e){const t=this.getLocalBounds().height;t!==0?this.scale.y=e/t:this.scale.y=1,this._height=e}};let Ai=hu;Ai.defaultSortableChildren=!1,Ai.prototype.containerUpdateTransform=Ai.prototype.updateTransform,Object.defineProperties(Ht,{SORTABLE_CHILDREN:{get(){return Ai.defaultSortableChildren},set(e){Jt("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Ai.defaultSortableChildren=e}}});class Ra{constructor(t,r=null,n=null,i=null){this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}clone(){return new Ra(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const Si=new Ie,Md=class extends ph{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new cu,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Ia.push(this.drawCalls[e]);this.drawCalls.length=0;for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t.reset(),Pd.push(t)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,r=null,n=null){const i=new Ra(e,t,r,n);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const r=new Ra(e,null,null,t),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this}destroy(){super.destroy();for(let e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(e){const t=this.graphicsData;for(let r=0;r<t.length;++r){const n=t[r];if(n.fillStyle.visible&&n.shape&&(n.matrix?n.matrix.applyInverse(e,Si):Si.copyFrom(e),n.shape.contains(Si.x,Si.y))){let i=!1;if(n.holes){for(let a=0;a<n.holes.length;a++)if(n.holes[a].shape.contains(Si.x,Si.y)){i=!0;break}}if(!i)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const e=this.uvs,t=this.graphicsData;let r=null,n=null;this.batches.length>0&&(r=this.batches[this.batches.length-1],n=r.style);for(let u=this.shapeIndex;u<t.length;u++){this.shapeIndex++;const f=t[u],h=f.fillStyle,d=f.lineStyle;fu[f.type].build(f),f.matrix&&this.transformPoints(f.points,f.matrix),(h.visible||d.visible)&&this.processHoles(f.holes);for(let c=0;c<2;c++){const v=c===0?h:d;if(!v.visible)continue;const y=v.texture.baseTexture,m=this.indices.length,b=this.points.length/2;y.wrapMode=Vi.REPEAT,c===0?this.processFill(f):this.processLine(f);const _=this.points.length/2-b;_!==0&&(r&&!this._compareStyles(n,v)&&(r.end(m,b),r=null),r||(r=Pd.pop()||new ME,r.begin(v,m,b),this.batches.push(r),n=v),this.addUvs(this.points,e,v.texture,b,_,v.matrix))}}const i=this.indices.length,a=this.points.length/2;if(r&&r.end(i,a),this.batches.length===0){this.batchable=!0;return}const l=a>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&l===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=l?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e<t;e++){const r=this.graphicsData[e],n=r.fillStyle,i=r.lineStyle;if(n&&!n.texture.baseTexture.valid||i&&!i.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const e=this.batches;for(let t=0,r=e.length;t<r;t++){const n=e[t];for(let i=0;i<n.size;i++){const a=n.start+i;this.indicesUint16[a]=this.indicesUint16[a]-n.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const e=this.batches;for(let t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<Md.BATCHABLE_SIZE*2}buildDrawCalls(){let e=++Vt._globalBatch;for(let d=0;d<this.drawCalls.length;d++)this.drawCalls[d].texArray.clear(),Ia.push(this.drawCalls[d]);this.drawCalls.length=0;const t=this.colors,r=this.textureIds;let n=Ia.pop();n||(n=new kl,n.texArray=new $l),n.texArray.count=0,n.start=0,n.size=0,n.type=an.TRIANGLES;let i=0,a=null,l=0,u=!1,f=an.TRIANGLES,h=0;this.drawCalls.push(n);for(let d=0;d<this.batches.length;d++){const p=this.batches[d],c=8,v=p.style,y=v.texture.baseTexture;u!==!!v.native&&(u=!!v.native,f=u?an.LINES:an.TRIANGLES,a=null,i=c,e++),a!==y&&(a=y,y._batchEnabled!==e&&(i===c&&(e++,i=0,n.size>0&&(n=Ia.pop(),n||(n=new kl,n.texArray=new $l),this.drawCalls.push(n)),n.start=h,n.size=0,n.texArray.count=0,n.type=f),y.touched=1,y._batchEnabled=e,y._batchLocation=i,y.wrapMode=Vi.REPEAT,n.texArray.elements[n.texArray.count++]=y,i++)),n.size+=p.size,h+=p.size,l=y._batchLocation,this.addColors(t,v.color,v.alpha,p.attribSize,p.attribStart),this.addTextureIds(r,l,p.attribSize,p.attribStart)}Vt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(e.length*3*4),a=new Float32Array(i),l=new Uint32Array(i);let u=0;for(let f=0;f<e.length/2;f++)a[u++]=e[f*2],a[u++]=e[f*2+1],a[u++]=t[f*2],a[u++]=t[f*2+1],l[u++]=r[f],a[u++]=n[f];this._buffer.update(i),this._indexBuffer.update(this.indicesUint16)}processFill(e){e.holes.length?Id.triangulate(e,this):fu[e.type].triangulate(e,this)}processLine(e){Nd(e,this);for(let t=0;t<e.holes.length;t++)Nd(e.holes[t],this)}processHoles(e){for(let t=0;t<e.length;t++){const r=e[t];fu[r.type].build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}}calculateBounds(){const e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)}transformPoints(e,t){for(let r=0;r<e.length/2;r++){const n=e[r*2],i=e[r*2+1];e[r*2]=t.a*n+t.c*i+t.tx,e[r*2+1]=t.b*n+t.d*i+t.ty}}addColors(e,t,r,n,i=0){const a=qe.shared.setValue(t).toLittleEndianNumber(),l=qe.shared.setValue(a).toPremultiplied(r);e.length=Math.max(e.length,i+n);for(let u=0;u<n;u++)e[i+u]=l}addTextureIds(e,t,r,n=0){e.length=Math.max(e.length,n+r);for(let i=0;i<r;i++)e[n+i]=t}addUvs(e,t,r,n,i,a=null){let l=0;const u=t.length,f=r.frame;for(;l<i;){let d=e[(n+l)*2],p=e[(n+l)*2+1];if(a){const c=a.a*d+a.c*p+a.tx;p=a.b*d+a.d*p+a.ty,d=c}l++,t.push(d/f.width,p/f.height)}const h=r.baseTexture;(f.width<h.width||f.height<h.height)&&this.adjustUvs(t,r,u,i)}adjustUvs(e,t,r,n){const i=t.baseTexture,a=1e-6,l=r+n*2,u=t.frame,f=u.width/i.width,h=u.height/i.height;let d=u.x/u.width,p=u.y/u.height,c=Math.floor(e[r]+a),v=Math.floor(e[r+1]+a);for(let y=r+2;y<l;y+=2)c=Math.min(c,Math.floor(e[y]+a)),v=Math.min(v,Math.floor(e[y+1]+a));d-=c,p-=v;for(let y=r;y<l;y+=2)e[y]=(e[y]+d)*f,e[y+1]=(e[y+1]+p)*h}};let kd=Md;kd.BATCHABLE_SIZE=100;class Ca{constructor(){this.color=16777215,this.alpha=1,this.texture=Wt.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const t=new Ca;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t}reset(){this.color=16777215,this.alpha=1,this.texture=Wt.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class du extends Ca{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=Dn.BUTT,this.join=Tr.MITER,this.miterLimit=10}clone(){const t=new du;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1}}const pu={},Na=class extends Ai{constructor(e=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new Ca,this._lineStyle=new du,this._matrix=null,this._holeMode=!1,this.state=ra.for2d(),this._geometry=e||new kd,this._geometry.refCount++,this._transformID=-1,this._tintColor=new qe(16777215),this.blendMode=Rt.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new Na(this._geometry)}set blendMode(e){this.state.blendMode=e}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(e=null,t=0,r,n=.5,i=!1){return typeof e=="number"&&(e={width:e,color:t,alpha:r,alignment:n,native:i}),this.lineTextureStyle(e)}lineTextureStyle(e){const t={width:0,texture:Wt.WHITE,color:e!=null&&e.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:Dn.BUTT,join:Tr.MITER,miterLimit:10};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.width>0&&e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:r},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new is,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new is,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return(n!==e||i!==t)&&r.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,r,n){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),uu.curveTo(e,t,r,n,i),this}bezierCurveTo(e,t,r,n,i,a){return this._initCurve(),lu.curveTo(e,t,r,n,i,a,this.currentPath.points),this}arcTo(e,t,r,n,i){this._initCurve(e,t);const a=this.currentPath.points,l=Rd.curveTo(e,t,r,n,i,a);if(l){const{cx:u,cy:f,radius:h,startAngle:d,endAngle:p,anticlockwise:c}=l;this.arc(u,f,h,d,p,c)}return this}arc(e,t,r,n,i,a=!1){if(n===i)return this;if(!a&&i<=n?i+=ia:a&&n<=i&&(n+=ia),i-n===0)return this;const u=e+Math.cos(n)*r,f=t+Math.sin(n)*r,h=this._geometry.closePointEps;let d=this.currentPath?this.currentPath.points:null;if(d){const p=Math.abs(d[d.length-2]-u),c=Math.abs(d[d.length-1]-f);p<h&&c<h||d.push(u,f)}else this.moveTo(u,f),d=this.currentPath.points;return Rd.arc(u,f,e,t,r,n,i,a,d),this}beginFill(e=0,t){return this.beginTextureFill({texture:Wt.WHITE,color:e,alpha:t})}normalizeColor(e){const t=qe.shared.setValue(e.color??0);e.color=t.toNumber(),e.alpha??(e.alpha=t.alpha)}beginTextureFill(e){const t={texture:Wt.WHITE,color:16777215,matrix:null};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:r},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,r,n){return this.drawShape(new ee(e,t,r,n))}drawRoundedRect(e,t,r,n,i){return this.drawShape(new Fl(e,t,r,n,i))}drawCircle(e,t,r){return this.drawShape(new Ll(e,t,r))}drawEllipse(e,t,r,n){return this.drawShape(new A_(e,t,r,n))}drawPolygon(...e){let t,r=!0;const n=e[0];n.points?(r=n.closeStroke,t=n.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new is(t);return i.closeStroke=r,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Ce.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,r=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(e.points);for(let n=0;n<r;n++){const i=e.batches[n],a=i.style.color,l=new Float32Array(this.vertexData.buffer,i.attribStart*4*2,i.attribSize*2),u=new Float32Array(e.uvsFloat32.buffer,i.attribStart*4*2,i.attribSize*2),f=new Uint16Array(e.indicesUint16.buffer,i.start*2,i.size),h={vertexData:l,blendMode:t,indices:f,uvs:u,_batchRGB:qe.shared.setValue(a).toRgbArray(),_tintRGB:a,_texture:i.style.texture,alpha:i.style.alpha,worldAlpha:1};this.batches[n]=h}}_renderBatched(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let t=0,r=this.batches.length;t<r;t++){const n=this.batches[t];n.worldAlpha=this.worldAlpha*n.alpha,e.plugins[this.pluginName].render(n)}}}_renderDirect(e){const t=this._resolveDirectShader(e),r=this._geometry,n=this.worldAlpha,i=t.uniforms,a=r.drawCalls;i.translationMatrix=this.transform.worldTransform,qe.shared.setValue(this._tintColor).premultiply(n).toArray(i.tint),e.shader.bind(t),e.geometry.bind(r,t),e.state.set(this.state);for(let l=0,u=a.length;l<u;l++)this._renderDrawCallDirect(e,r.drawCalls[l])}_renderDrawCallDirect(e,t){const{texArray:r,type:n,size:i,start:a}=t,l=r.count;for(let u=0;u<l;u++)e.texture.bind(r.elements[u],u);e.geometry.draw(n,i,a)}_resolveDirectShader(e){let t=this.shader;const r=this.pluginName;if(!t){if(!pu[r]){const{maxTextures:n}=e.plugins[r],i=new Int32Array(n);for(let u=0;u<n;u++)i[u]=u;const a={tint:new Float32Array([1,1,1,1]),translationMatrix:new Be,default:mr.from({uSamplers:i},!0)},l=e.plugins[r]._shader.program;pu[r]=new as(l,a)}t=pu[r]}return t}_calculateBounds(){this.finishPoly();const e=this._geometry;if(!e.graphicsData.length)return;const{minX:t,minY:r,maxX:n,maxY:i}=e.bounds;this._bounds.addFrame(this.transform,t,r,n,i)}containsPoint(e){return this.worldTransform.applyInverse(e,Na._TEMP_POINT),this._geometry.containsPoint(Na._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t._tintRGB=qe.shared.setValue(this._tintColor).multiply(t._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const e=this.transform._worldID;if(this._transformID===e)return;this._transformID=e;const t=this.transform.worldTransform,r=t.a,n=t.b,i=t.c,a=t.d,l=t.tx,u=t.ty,f=this._geometry.points,h=this.vertexData;let d=0;for(let p=0;p<f.length;p+=2){const c=f[p],v=f[p+1];h[d++]=r*c+i*v+l,h[d++]=a*v+n*c+u}}closePath(){const e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this}setMatrix(e){return this._matrix=e,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(e){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(e)}};let vu=Na;vu.curves=wi,vu._TEMP_POINT=new Ie;var DE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gu={},$E={get exports(){return gu},set exports(e){gu=e}};/*!
|
|
540
540
|
* d-path-parser - v1.0.0
|
|
541
541
|
* by Massimo Artizzu (MaxArt2501)
|
|
542
542
|
*
|
|
@@ -554,10 +554,10 @@ void main(void)
|
|
|
554
554
|
* Released under MIT license <https://lodash.com/license>
|
|
555
555
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
556
556
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
557
|
-
*/Va.exports,function(e,t){(function(){var r,n="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,c=2,v=4,y=1,m=2,b=1,_=2,E=4,w=8,x=16,A=32,C=64,S=128,O=256,L=512,R=30,I="...",N=800,k=16,F=1,j=2,Z=3,H=1/0,nt=9007199254740991,Y=17976931348623157e292,D=0/0,M=4294967295,U=M-1,q=M>>>1,W=[["ary",S],["bind",b],["bindKey",_],["curry",w],["curryRight",x],["flip",L],["partial",A],["partialRight",C],["rearg",O]],K="[object Arguments]",G="[object Array]",V="[object AsyncFunction]",tt="[object Boolean]",et="[object Date]",st="[object DOMException]",ht="[object Error]",yt="[object Function]",_t="[object GeneratorFunction]",gt="[object Map]",It="[object Number]",re="[object Null]",$t="[object Object]",it="[object Promise]",ot="[object Proxy]",dt="[object RegExp]",pt="[object Set]",ft="[object String]",Nt="[object Symbol]",Lt="[object Undefined]",Pt="[object WeakMap]",He="[object WeakSet]",Ue="[object ArrayBuffer]",Kt="[object DataView]",_s="[object Float32Array]",ue="[object Float64Array]",or="[object Int8Array]",Ou="[object Int16Array]",Iu="[object Int32Array]",Ru="[object Uint8Array]",Cu="[object Uint8ClampedArray]",Nu="[object Uint16Array]",Pu="[object Uint32Array]",sC=/\b__p \+= '';/g,aC=/\b(__p \+=) '' \+/g,oC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bp=/&(?:amp|lt|gt|quot|#39);/g,Up=/[&<>"']/g,lC=RegExp(Bp.source),uC=RegExp(Up.source),fC=/<%-([\s\S]+?)%>/g,cC=/<%([\s\S]+?)%>/g,Dp=/<%=([\s\S]+?)%>/g,hC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dC=/^\w*$/,pC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mu=/[\\^$.*+?()[\]{}|]/g,vC=RegExp(Mu.source),ku=/^\s+/,gC=/\s/,yC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mC=/\{\n\/\* \[wrapped with (.+)\] \*/,_C=/,? & /,bC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xC=/[()=,{}\[\]\/\s]/,EC=/\\(\\)?/g,wC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$p=/\w*$/,TC=/^[-+]0x[0-9a-f]+$/i,AC=/^0b[01]+$/i,SC=/^\[object .+?Constructor\]$/,OC=/^0o[0-7]+$/i,IC=/^(?:0|[1-9]\d*)$/,RC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wa=/($^)/,CC=/['\n\r\u2028\u2029\\]/g,Xa="\\ud800-\\udfff",NC="\\u0300-\\u036f",PC="\\ufe20-\\ufe2f",MC="\\u20d0-\\u20ff",Gp=NC+PC+MC,qp="\\u2700-\\u27bf",jp="a-z\\xdf-\\xf6\\xf8-\\xff",kC="\\xac\\xb1\\xd7\\xf7",LC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",FC="\\u2000-\\u206f",BC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hp="A-Z\\xc0-\\xd6\\xd8-\\xde",zp="\\ufe0e\\ufe0f",Vp=kC+LC+FC+BC,Lu="['’]",UC="["+Xa+"]",Wp="["+Vp+"]",Ka="["+Gp+"]",Xp="\\d+",DC="["+qp+"]",Kp="["+jp+"]",Yp="[^"+Xa+Vp+Xp+qp+jp+Hp+"]",Fu="\\ud83c[\\udffb-\\udfff]",$C="(?:"+Ka+"|"+Fu+")",Zp="[^"+Xa+"]",Bu="(?:\\ud83c[\\udde6-\\uddff]){2}",Uu="[\\ud800-\\udbff][\\udc00-\\udfff]",Pi="["+Hp+"]",Jp="\\u200d",Qp="(?:"+Kp+"|"+Yp+")",GC="(?:"+Pi+"|"+Yp+")",tv="(?:"+Lu+"(?:d|ll|m|re|s|t|ve))?",ev="(?:"+Lu+"(?:D|LL|M|RE|S|T|VE))?",rv=$C+"?",nv="["+zp+"]?",qC="(?:"+Jp+"(?:"+[Zp,Bu,Uu].join("|")+")"+nv+rv+")*",jC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",HC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",iv=nv+rv+qC,zC="(?:"+[DC,Bu,Uu].join("|")+")"+iv,VC="(?:"+[Zp+Ka+"?",Ka,Bu,Uu,UC].join("|")+")",WC=RegExp(Lu,"g"),XC=RegExp(Ka,"g"),Du=RegExp(Fu+"(?="+Fu+")|"+VC+iv,"g"),KC=RegExp([Pi+"?"+Kp+"+"+tv+"(?="+[Wp,Pi,"$"].join("|")+")",GC+"+"+ev+"(?="+[Wp,Pi+Qp,"$"].join("|")+")",Pi+"?"+Qp+"+"+tv,Pi+"+"+ev,HC,jC,Xp,zC].join("|"),"g"),YC=RegExp("["+Jp+Xa+Gp+zp+"]"),ZC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,JC=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],QC=-1,oe={};oe[_s]=oe[ue]=oe[or]=oe[Ou]=oe[Iu]=oe[Ru]=oe[Cu]=oe[Nu]=oe[Pu]=!0,oe[K]=oe[G]=oe[Ue]=oe[tt]=oe[Kt]=oe[et]=oe[ht]=oe[yt]=oe[gt]=oe[It]=oe[$t]=oe[dt]=oe[pt]=oe[ft]=oe[Pt]=!1;var se={};se[K]=se[G]=se[Ue]=se[Kt]=se[tt]=se[et]=se[_s]=se[ue]=se[or]=se[Ou]=se[Iu]=se[gt]=se[It]=se[$t]=se[dt]=se[pt]=se[ft]=se[Nt]=se[Ru]=se[Cu]=se[Nu]=se[Pu]=!0,se[ht]=se[yt]=se[Pt]=!1;var tN={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},eN={"&":"&","<":"<",">":">",'"':""","'":"'"},rN={"&":"&","<":"<",">":">",""":'"',"'":"'"},nN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},iN=parseFloat,sN=parseInt,sv=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,aN=typeof self=="object"&&self&&self.Object===Object&&self,Ne=sv||aN||Function("return this")(),$u=t&&!t.nodeType&&t,qn=$u&&!0&&e&&!e.nodeType&&e,av=qn&&qn.exports===$u,Gu=av&&sv.process,lr=function(){try{var J=qn&&qn.require&&qn.require("util").types;return J||Gu&&Gu.binding&&Gu.binding("util")}catch{}}(),ov=lr&&lr.isArrayBuffer,lv=lr&&lr.isDate,uv=lr&&lr.isMap,fv=lr&&lr.isRegExp,cv=lr&&lr.isSet,hv=lr&&lr.isTypedArray;function Qe(J,at,rt){switch(rt.length){case 0:return J.call(at);case 1:return J.call(at,rt[0]);case 2:return J.call(at,rt[0],rt[1]);case 3:return J.call(at,rt[0],rt[1],rt[2])}return J.apply(at,rt)}function oN(J,at,rt,xt){for(var Ct=-1,Xt=J==null?0:J.length;++Ct<Xt;){var we=J[Ct];at(xt,we,rt(we),J)}return xt}function ur(J,at){for(var rt=-1,xt=J==null?0:J.length;++rt<xt&&at(J[rt],rt,J)!==!1;);return J}function lN(J,at){for(var rt=J==null?0:J.length;rt--&&at(J[rt],rt,J)!==!1;);return J}function dv(J,at){for(var rt=-1,xt=J==null?0:J.length;++rt<xt;)if(!at(J[rt],rt,J))return!1;return!0}function pn(J,at){for(var rt=-1,xt=J==null?0:J.length,Ct=0,Xt=[];++rt<xt;){var we=J[rt];at(we,rt,J)&&(Xt[Ct++]=we)}return Xt}function Ya(J,at){var rt=J==null?0:J.length;return!!rt&&Mi(J,at,0)>-1}function qu(J,at,rt){for(var xt=-1,Ct=J==null?0:J.length;++xt<Ct;)if(rt(at,J[xt]))return!0;return!1}function fe(J,at){for(var rt=-1,xt=J==null?0:J.length,Ct=Array(xt);++rt<xt;)Ct[rt]=at(J[rt],rt,J);return Ct}function vn(J,at){for(var rt=-1,xt=at.length,Ct=J.length;++rt<xt;)J[Ct+rt]=at[rt];return J}function ju(J,at,rt,xt){var Ct=-1,Xt=J==null?0:J.length;for(xt&&Xt&&(rt=J[++Ct]);++Ct<Xt;)rt=at(rt,J[Ct],Ct,J);return rt}function uN(J,at,rt,xt){var Ct=J==null?0:J.length;for(xt&&Ct&&(rt=J[--Ct]);Ct--;)rt=at(rt,J[Ct],Ct,J);return rt}function Hu(J,at){for(var rt=-1,xt=J==null?0:J.length;++rt<xt;)if(at(J[rt],rt,J))return!0;return!1}var fN=zu("length");function cN(J){return J.split("")}function hN(J){return J.match(bC)||[]}function pv(J,at,rt){var xt;return rt(J,function(Ct,Xt,we){if(at(Ct,Xt,we))return xt=Xt,!1}),xt}function Za(J,at,rt,xt){for(var Ct=J.length,Xt=rt+(xt?1:-1);xt?Xt--:++Xt<Ct;)if(at(J[Xt],Xt,J))return Xt;return-1}function Mi(J,at,rt){return at===at?TN(J,at,rt):Za(J,vv,rt)}function dN(J,at,rt,xt){for(var Ct=rt-1,Xt=J.length;++Ct<Xt;)if(xt(J[Ct],at))return Ct;return-1}function vv(J){return J!==J}function gv(J,at){var rt=J==null?0:J.length;return rt?Wu(J,at)/rt:D}function zu(J){return function(at){return at==null?r:at[J]}}function Vu(J){return function(at){return J==null?r:J[at]}}function yv(J,at,rt,xt,Ct){return Ct(J,function(Xt,we,ne){rt=xt?(xt=!1,Xt):at(rt,Xt,we,ne)}),rt}function pN(J,at){var rt=J.length;for(J.sort(at);rt--;)J[rt]=J[rt].value;return J}function Wu(J,at){for(var rt,xt=-1,Ct=J.length;++xt<Ct;){var Xt=at(J[xt]);Xt!==r&&(rt=rt===r?Xt:rt+Xt)}return rt}function Xu(J,at){for(var rt=-1,xt=Array(J);++rt<J;)xt[rt]=at(rt);return xt}function vN(J,at){return fe(at,function(rt){return[rt,J[rt]]})}function mv(J){return J&&J.slice(0,Ev(J)+1).replace(ku,"")}function tr(J){return function(at){return J(at)}}function Ku(J,at){return fe(at,function(rt){return J[rt]})}function bs(J,at){return J.has(at)}function _v(J,at){for(var rt=-1,xt=J.length;++rt<xt&&Mi(at,J[rt],0)>-1;);return rt}function bv(J,at){for(var rt=J.length;rt--&&Mi(at,J[rt],0)>-1;);return rt}function gN(J,at){for(var rt=J.length,xt=0;rt--;)J[rt]===at&&++xt;return xt}var yN=Vu(tN),mN=Vu(eN);function _N(J){return"\\"+nN[J]}function bN(J,at){return J==null?r:J[at]}function ki(J){return YC.test(J)}function xN(J){return ZC.test(J)}function EN(J){for(var at,rt=[];!(at=J.next()).done;)rt.push(at.value);return rt}function Yu(J){var at=-1,rt=Array(J.size);return J.forEach(function(xt,Ct){rt[++at]=[Ct,xt]}),rt}function xv(J,at){return function(rt){return J(at(rt))}}function gn(J,at){for(var rt=-1,xt=J.length,Ct=0,Xt=[];++rt<xt;){var we=J[rt];(we===at||we===d)&&(J[rt]=d,Xt[Ct++]=rt)}return Xt}function Ja(J){var at=-1,rt=Array(J.size);return J.forEach(function(xt){rt[++at]=xt}),rt}function wN(J){var at=-1,rt=Array(J.size);return J.forEach(function(xt){rt[++at]=[xt,xt]}),rt}function TN(J,at,rt){for(var xt=rt-1,Ct=J.length;++xt<Ct;)if(J[xt]===at)return xt;return-1}function AN(J,at,rt){for(var xt=rt+1;xt--;)if(J[xt]===at)return xt;return xt}function Li(J){return ki(J)?ON(J):fN(J)}function Ir(J){return ki(J)?IN(J):cN(J)}function Ev(J){for(var at=J.length;at--&&gC.test(J.charAt(at)););return at}var SN=Vu(rN);function ON(J){for(var at=Du.lastIndex=0;Du.test(J);)++at;return at}function IN(J){return J.match(Du)||[]}function RN(J){return J.match(KC)||[]}var CN=function J(at){at=at==null?Ne:Fi.defaults(Ne.Object(),at,Fi.pick(Ne,JC));var rt=at.Array,xt=at.Date,Ct=at.Error,Xt=at.Function,we=at.Math,ne=at.Object,Zu=at.RegExp,NN=at.String,fr=at.TypeError,Qa=rt.prototype,PN=Xt.prototype,Bi=ne.prototype,to=at["__core-js_shared__"],eo=PN.toString,te=Bi.hasOwnProperty,MN=0,wv=function(){var s=/[^.]+$/.exec(to&&to.keys&&to.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),ro=Bi.toString,kN=eo.call(ne),LN=Ne._,FN=Zu("^"+eo.call(te).replace(Mu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),no=av?at.Buffer:r,yn=at.Symbol,io=at.Uint8Array,Tv=no?no.allocUnsafe:r,so=xv(ne.getPrototypeOf,ne),Av=ne.create,Sv=Bi.propertyIsEnumerable,ao=Qa.splice,Ov=yn?yn.isConcatSpreadable:r,xs=yn?yn.iterator:r,jn=yn?yn.toStringTag:r,oo=function(){try{var s=Xn(ne,"defineProperty");return s({},"",{}),s}catch{}}(),BN=at.clearTimeout!==Ne.clearTimeout&&at.clearTimeout,UN=xt&&xt.now!==Ne.Date.now&&xt.now,DN=at.setTimeout!==Ne.setTimeout&&at.setTimeout,lo=we.ceil,uo=we.floor,Ju=ne.getOwnPropertySymbols,$N=no?no.isBuffer:r,Iv=at.isFinite,GN=Qa.join,qN=xv(ne.keys,ne),Te=we.max,Le=we.min,jN=xt.now,HN=at.parseInt,Rv=we.random,zN=Qa.reverse,Qu=Xn(at,"DataView"),Es=Xn(at,"Map"),tf=Xn(at,"Promise"),Ui=Xn(at,"Set"),ws=Xn(at,"WeakMap"),Ts=Xn(ne,"create"),fo=ws&&new ws,Di={},VN=Kn(Qu),WN=Kn(Es),XN=Kn(tf),KN=Kn(Ui),YN=Kn(ws),co=yn?yn.prototype:r,As=co?co.valueOf:r,Cv=co?co.toString:r;function B(s){if(ge(s)&&!Mt(s)&&!(s instanceof Gt)){if(s instanceof cr)return s;if(te.call(s,"__wrapped__"))return Ng(s)}return new cr(s)}var $i=function(){function s(){}return function(o){if(!pe(o))return{};if(Av)return Av(o);s.prototype=o;var g=new s;return s.prototype=r,g}}();function ho(){}function cr(s,o){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}B.templateSettings={escape:fC,evaluate:cC,interpolate:Dp,variable:"",imports:{_:B}},B.prototype=ho.prototype,B.prototype.constructor=B,cr.prototype=$i(ho.prototype),cr.prototype.constructor=cr;function Gt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=M,this.__views__=[]}function ZN(){var s=new Gt(this.__wrapped__);return s.__actions__=ze(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=ze(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=ze(this.__views__),s}function JN(){if(this.__filtered__){var s=new Gt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function QN(){var s=this.__wrapped__.value(),o=this.__dir__,g=Mt(s),T=o<0,P=g?s.length:0,$=cM(0,P,this.__views__),z=$.start,X=$.end,Q=X-z,lt=T?X:z-1,ut=this.__iteratees__,ct=ut.length,vt=0,Et=Le(Q,this.__takeCount__);if(!g||!T&&P==Q&&Et==Q)return tg(s,this.__actions__);var St=[];t:for(;Q--&&vt<Et;){lt+=o;for(var Ft=-1,Ot=s[lt];++Ft<ct;){var Ut=ut[Ft],jt=Ut.iteratee,nr=Ut.type,Ge=jt(Ot);if(nr==j)Ot=Ge;else if(!Ge){if(nr==F)continue t;break t}}St[vt++]=Ot}return St}Gt.prototype=$i(ho.prototype),Gt.prototype.constructor=Gt;function Hn(s){var o=-1,g=s==null?0:s.length;for(this.clear();++o<g;){var T=s[o];this.set(T[0],T[1])}}function tP(){this.__data__=Ts?Ts(null):{},this.size=0}function eP(s){var o=this.has(s)&&delete this.__data__[s];return this.size-=o?1:0,o}function rP(s){var o=this.__data__;if(Ts){var g=o[s];return g===f?r:g}return te.call(o,s)?o[s]:r}function nP(s){var o=this.__data__;return Ts?o[s]!==r:te.call(o,s)}function iP(s,o){var g=this.__data__;return this.size+=this.has(s)?0:1,g[s]=Ts&&o===r?f:o,this}Hn.prototype.clear=tP,Hn.prototype.delete=eP,Hn.prototype.get=rP,Hn.prototype.has=nP,Hn.prototype.set=iP;function Yr(s){var o=-1,g=s==null?0:s.length;for(this.clear();++o<g;){var T=s[o];this.set(T[0],T[1])}}function sP(){this.__data__=[],this.size=0}function aP(s){var o=this.__data__,g=po(o,s);if(g<0)return!1;var T=o.length-1;return g==T?o.pop():ao.call(o,g,1),--this.size,!0}function oP(s){var o=this.__data__,g=po(o,s);return g<0?r:o[g][1]}function lP(s){return po(this.__data__,s)>-1}function uP(s,o){var g=this.__data__,T=po(g,s);return T<0?(++this.size,g.push([s,o])):g[T][1]=o,this}Yr.prototype.clear=sP,Yr.prototype.delete=aP,Yr.prototype.get=oP,Yr.prototype.has=lP,Yr.prototype.set=uP;function Zr(s){var o=-1,g=s==null?0:s.length;for(this.clear();++o<g;){var T=s[o];this.set(T[0],T[1])}}function fP(){this.size=0,this.__data__={hash:new Hn,map:new(Es||Yr),string:new Hn}}function cP(s){var o=So(this,s).delete(s);return this.size-=o?1:0,o}function hP(s){return So(this,s).get(s)}function dP(s){return So(this,s).has(s)}function pP(s,o){var g=So(this,s),T=g.size;return g.set(s,o),this.size+=g.size==T?0:1,this}Zr.prototype.clear=fP,Zr.prototype.delete=cP,Zr.prototype.get=hP,Zr.prototype.has=dP,Zr.prototype.set=pP;function zn(s){var o=-1,g=s==null?0:s.length;for(this.__data__=new Zr;++o<g;)this.add(s[o])}function vP(s){return this.__data__.set(s,f),this}function gP(s){return this.__data__.has(s)}zn.prototype.add=zn.prototype.push=vP,zn.prototype.has=gP;function Rr(s){var o=this.__data__=new Yr(s);this.size=o.size}function yP(){this.__data__=new Yr,this.size=0}function mP(s){var o=this.__data__,g=o.delete(s);return this.size=o.size,g}function _P(s){return this.__data__.get(s)}function bP(s){return this.__data__.has(s)}function xP(s,o){var g=this.__data__;if(g instanceof Yr){var T=g.__data__;if(!Es||T.length<i-1)return T.push([s,o]),this.size=++g.size,this;g=this.__data__=new Zr(T)}return g.set(s,o),this.size=g.size,this}Rr.prototype.clear=yP,Rr.prototype.delete=mP,Rr.prototype.get=_P,Rr.prototype.has=bP,Rr.prototype.set=xP;function Nv(s,o){var g=Mt(s),T=!g&&Yn(s),P=!g&&!T&&En(s),$=!g&&!T&&!P&&Hi(s),z=g||T||P||$,X=z?Xu(s.length,NN):[],Q=X.length;for(var lt in s)(o||te.call(s,lt))&&!(z&&(lt=="length"||P&&(lt=="offset"||lt=="parent")||$&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||en(lt,Q)))&&X.push(lt);return X}function Pv(s){var o=s.length;return o?s[hf(0,o-1)]:r}function EP(s,o){return Oo(ze(s),Vn(o,0,s.length))}function wP(s){return Oo(ze(s))}function ef(s,o,g){(g!==r&&!Cr(s[o],g)||g===r&&!(o in s))&&Jr(s,o,g)}function Ss(s,o,g){var T=s[o];(!(te.call(s,o)&&Cr(T,g))||g===r&&!(o in s))&&Jr(s,o,g)}function po(s,o){for(var g=s.length;g--;)if(Cr(s[g][0],o))return g;return-1}function TP(s,o,g,T){return mn(s,function(P,$,z){o(T,P,g(P),z)}),T}function Mv(s,o){return s&&$r(o,Re(o),s)}function AP(s,o){return s&&$r(o,We(o),s)}function Jr(s,o,g){o=="__proto__"&&oo?oo(s,o,{configurable:!0,enumerable:!0,value:g,writable:!0}):s[o]=g}function rf(s,o){for(var g=-1,T=o.length,P=rt(T),$=s==null;++g<T;)P[g]=$?r:Bf(s,o[g]);return P}function Vn(s,o,g){return s===s&&(g!==r&&(s=s<=g?s:g),o!==r&&(s=s>=o?s:o)),s}function hr(s,o,g,T,P,$){var z,X=o&p,Q=o&c,lt=o&v;if(g&&(z=P?g(s,T,P,$):g(s)),z!==r)return z;if(!pe(s))return s;var ut=Mt(s);if(ut){if(z=dM(s),!X)return ze(s,z)}else{var ct=Fe(s),vt=ct==yt||ct==_t;if(En(s))return ng(s,X);if(ct==$t||ct==K||vt&&!P){if(z=Q||vt?{}:Eg(s),!X)return Q?rM(s,AP(z,s)):eM(s,Mv(z,s))}else{if(!se[ct])return P?s:{};z=pM(s,ct,X)}}$||($=new Rr);var Et=$.get(s);if(Et)return Et;$.set(s,z),Zg(s)?s.forEach(function(Ot){z.add(hr(Ot,o,g,Ot,s,$))}):Kg(s)&&s.forEach(function(Ot,Ut){z.set(Ut,hr(Ot,o,g,Ut,s,$))});var St=lt?Q?wf:Ef:Q?We:Re,Ft=ut?r:St(s);return ur(Ft||s,function(Ot,Ut){Ft&&(Ut=Ot,Ot=s[Ut]),Ss(z,Ut,hr(Ot,o,g,Ut,s,$))}),z}function SP(s){var o=Re(s);return function(g){return kv(g,s,o)}}function kv(s,o,g){var T=g.length;if(s==null)return!T;for(s=ne(s);T--;){var P=g[T],$=o[P],z=s[P];if(z===r&&!(P in s)||!$(z))return!1}return!0}function Lv(s,o,g){if(typeof s!="function")throw new fr(l);return Ms(function(){s.apply(r,g)},o)}function Os(s,o,g,T){var P=-1,$=Ya,z=!0,X=s.length,Q=[],lt=o.length;if(!X)return Q;g&&(o=fe(o,tr(g))),T?($=qu,z=!1):o.length>=i&&($=bs,z=!1,o=new zn(o));t:for(;++P<X;){var ut=s[P],ct=g==null?ut:g(ut);if(ut=T||ut!==0?ut:0,z&&ct===ct){for(var vt=lt;vt--;)if(o[vt]===ct)continue t;Q.push(ut)}else $(o,ct,T)||Q.push(ut)}return Q}var mn=lg(Dr),Fv=lg(sf,!0);function OP(s,o){var g=!0;return mn(s,function(T,P,$){return g=!!o(T,P,$),g}),g}function vo(s,o,g){for(var T=-1,P=s.length;++T<P;){var $=s[T],z=o($);if(z!=null&&(X===r?z===z&&!rr(z):g(z,X)))var X=z,Q=$}return Q}function IP(s,o,g,T){var P=s.length;for(g=kt(g),g<0&&(g=-g>P?0:P+g),T=T===r||T>P?P:kt(T),T<0&&(T+=P),T=g>T?0:Qg(T);g<T;)s[g++]=o;return s}function Bv(s,o){var g=[];return mn(s,function(T,P,$){o(T,P,$)&&g.push(T)}),g}function Pe(s,o,g,T,P){var $=-1,z=s.length;for(g||(g=gM),P||(P=[]);++$<z;){var X=s[$];o>0&&g(X)?o>1?Pe(X,o-1,g,T,P):vn(P,X):T||(P[P.length]=X)}return P}var nf=ug(),Uv=ug(!0);function Dr(s,o){return s&&nf(s,o,Re)}function sf(s,o){return s&&Uv(s,o,Re)}function go(s,o){return pn(o,function(g){return rn(s[g])})}function Wn(s,o){o=bn(o,s);for(var g=0,T=o.length;s!=null&&g<T;)s=s[Gr(o[g++])];return g&&g==T?s:r}function Dv(s,o,g){var T=o(s);return Mt(s)?T:vn(T,g(s))}function De(s){return s==null?s===r?Lt:re:jn&&jn in ne(s)?fM(s):wM(s)}function af(s,o){return s>o}function RP(s,o){return s!=null&&te.call(s,o)}function CP(s,o){return s!=null&&o in ne(s)}function NP(s,o,g){return s>=Le(o,g)&&s<Te(o,g)}function of(s,o,g){for(var T=g?qu:Ya,P=s[0].length,$=s.length,z=$,X=rt($),Q=1/0,lt=[];z--;){var ut=s[z];z&&o&&(ut=fe(ut,tr(o))),Q=Le(ut.length,Q),X[z]=!g&&(o||P>=120&&ut.length>=120)?new zn(z&&ut):r}ut=s[0];var ct=-1,vt=X[0];t:for(;++ct<P&<.length<Q;){var Et=ut[ct],St=o?o(Et):Et;if(Et=g||Et!==0?Et:0,!(vt?bs(vt,St):T(lt,St,g))){for(z=$;--z;){var Ft=X[z];if(!(Ft?bs(Ft,St):T(s[z],St,g)))continue t}vt&&vt.push(St),lt.push(Et)}}return lt}function PP(s,o,g,T){return Dr(s,function(P,$,z){o(T,g(P),$,z)}),T}function Is(s,o,g){o=bn(o,s),s=Sg(s,o);var T=s==null?s:s[Gr(pr(o))];return T==null?r:Qe(T,s,g)}function $v(s){return ge(s)&&De(s)==K}function MP(s){return ge(s)&&De(s)==Ue}function kP(s){return ge(s)&&De(s)==et}function Rs(s,o,g,T,P){return s===o?!0:s==null||o==null||!ge(s)&&!ge(o)?s!==s&&o!==o:LP(s,o,g,T,Rs,P)}function LP(s,o,g,T,P,$){var z=Mt(s),X=Mt(o),Q=z?G:Fe(s),lt=X?G:Fe(o);Q=Q==K?$t:Q,lt=lt==K?$t:lt;var ut=Q==$t,ct=lt==$t,vt=Q==lt;if(vt&&En(s)){if(!En(o))return!1;z=!0,ut=!1}if(vt&&!ut)return $||($=new Rr),z||Hi(s)?_g(s,o,g,T,P,$):lM(s,o,Q,g,T,P,$);if(!(g&y)){var Et=ut&&te.call(s,"__wrapped__"),St=ct&&te.call(o,"__wrapped__");if(Et||St){var Ft=Et?s.value():s,Ot=St?o.value():o;return $||($=new Rr),P(Ft,Ot,g,T,$)}}return vt?($||($=new Rr),uM(s,o,g,T,P,$)):!1}function FP(s){return ge(s)&&Fe(s)==gt}function lf(s,o,g,T){var P=g.length,$=P,z=!T;if(s==null)return!$;for(s=ne(s);P--;){var X=g[P];if(z&&X[2]?X[1]!==s[X[0]]:!(X[0]in s))return!1}for(;++P<$;){X=g[P];var Q=X[0],lt=s[Q],ut=X[1];if(z&&X[2]){if(lt===r&&!(Q in s))return!1}else{var ct=new Rr;if(T)var vt=T(lt,ut,Q,s,o,ct);if(!(vt===r?Rs(ut,lt,y|m,T,ct):vt))return!1}}return!0}function Gv(s){if(!pe(s)||mM(s))return!1;var o=rn(s)?FN:SC;return o.test(Kn(s))}function BP(s){return ge(s)&&De(s)==dt}function UP(s){return ge(s)&&Fe(s)==pt}function DP(s){return ge(s)&&Mo(s.length)&&!!oe[De(s)]}function qv(s){return typeof s=="function"?s:s==null?Xe:typeof s=="object"?Mt(s)?zv(s[0],s[1]):Hv(s):fy(s)}function uf(s){if(!Ps(s))return qN(s);var o=[];for(var g in ne(s))te.call(s,g)&&g!="constructor"&&o.push(g);return o}function $P(s){if(!pe(s))return EM(s);var o=Ps(s),g=[];for(var T in s)T=="constructor"&&(o||!te.call(s,T))||g.push(T);return g}function ff(s,o){return s<o}function jv(s,o){var g=-1,T=Ve(s)?rt(s.length):[];return mn(s,function(P,$,z){T[++g]=o(P,$,z)}),T}function Hv(s){var o=Af(s);return o.length==1&&o[0][2]?Tg(o[0][0],o[0][1]):function(g){return g===s||lf(g,s,o)}}function zv(s,o){return Of(s)&&wg(o)?Tg(Gr(s),o):function(g){var T=Bf(g,s);return T===r&&T===o?Uf(g,s):Rs(o,T,y|m)}}function yo(s,o,g,T,P){s!==o&&nf(o,function($,z){if(P||(P=new Rr),pe($))GP(s,o,z,g,yo,T,P);else{var X=T?T(Rf(s,z),$,z+"",s,o,P):r;X===r&&(X=$),ef(s,z,X)}},We)}function GP(s,o,g,T,P,$,z){var X=Rf(s,g),Q=Rf(o,g),lt=z.get(Q);if(lt){ef(s,g,lt);return}var ut=$?$(X,Q,g+"",s,o,z):r,ct=ut===r;if(ct){var vt=Mt(Q),Et=!vt&&En(Q),St=!vt&&!Et&&Hi(Q);ut=Q,vt||Et||St?Mt(X)?ut=X:me(X)?ut=ze(X):Et?(ct=!1,ut=ng(Q,!0)):St?(ct=!1,ut=ig(Q,!0)):ut=[]:ks(Q)||Yn(Q)?(ut=X,Yn(X)?ut=ty(X):(!pe(X)||rn(X))&&(ut=Eg(Q))):ct=!1}ct&&(z.set(Q,ut),P(ut,Q,T,$,z),z.delete(Q)),ef(s,g,ut)}function Vv(s,o){var g=s.length;if(g)return o+=o<0?g:0,en(o,g)?s[o]:r}function Wv(s,o,g){o.length?o=fe(o,function($){return Mt($)?function(z){return Wn(z,$.length===1?$[0]:$)}:$}):o=[Xe];var T=-1;o=fe(o,tr(At()));var P=jv(s,function($,z,X){var Q=fe(o,function(lt){return lt($)});return{criteria:Q,index:++T,value:$}});return pN(P,function($,z){return tM($,z,g)})}function qP(s,o){return Xv(s,o,function(g,T){return Uf(s,T)})}function Xv(s,o,g){for(var T=-1,P=o.length,$={};++T<P;){var z=o[T],X=Wn(s,z);g(X,z)&&Cs($,bn(z,s),X)}return $}function jP(s){return function(o){return Wn(o,s)}}function cf(s,o,g,T){var P=T?dN:Mi,$=-1,z=o.length,X=s;for(s===o&&(o=ze(o)),g&&(X=fe(s,tr(g)));++$<z;)for(var Q=0,lt=o[$],ut=g?g(lt):lt;(Q=P(X,ut,Q,T))>-1;)X!==s&&ao.call(X,Q,1),ao.call(s,Q,1);return s}function Kv(s,o){for(var g=s?o.length:0,T=g-1;g--;){var P=o[g];if(g==T||P!==$){var $=P;en(P)?ao.call(s,P,1):vf(s,P)}}return s}function hf(s,o){return s+uo(Rv()*(o-s+1))}function HP(s,o,g,T){for(var P=-1,$=Te(lo((o-s)/(g||1)),0),z=rt($);$--;)z[T?$:++P]=s,s+=g;return z}function df(s,o){var g="";if(!s||o<1||o>nt)return g;do o%2&&(g+=s),o=uo(o/2),o&&(s+=s);while(o);return g}function Bt(s,o){return Cf(Ag(s,o,Xe),s+"")}function zP(s){return Pv(zi(s))}function VP(s,o){var g=zi(s);return Oo(g,Vn(o,0,g.length))}function Cs(s,o,g,T){if(!pe(s))return s;o=bn(o,s);for(var P=-1,$=o.length,z=$-1,X=s;X!=null&&++P<$;){var Q=Gr(o[P]),lt=g;if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return s;if(P!=z){var ut=X[Q];lt=T?T(ut,Q,X):r,lt===r&&(lt=pe(ut)?ut:en(o[P+1])?[]:{})}Ss(X,Q,lt),X=X[Q]}return s}var Yv=fo?function(s,o){return fo.set(s,o),s}:Xe,WP=oo?function(s,o){return oo(s,"toString",{configurable:!0,enumerable:!1,value:$f(o),writable:!0})}:Xe;function XP(s){return Oo(zi(s))}function dr(s,o,g){var T=-1,P=s.length;o<0&&(o=-o>P?0:P+o),g=g>P?P:g,g<0&&(g+=P),P=o>g?0:g-o>>>0,o>>>=0;for(var $=rt(P);++T<P;)$[T]=s[T+o];return $}function KP(s,o){var g;return mn(s,function(T,P,$){return g=o(T,P,$),!g}),!!g}function mo(s,o,g){var T=0,P=s==null?T:s.length;if(typeof o=="number"&&o===o&&P<=q){for(;T<P;){var $=T+P>>>1,z=s[$];z!==null&&!rr(z)&&(g?z<=o:z<o)?T=$+1:P=$}return P}return pf(s,o,Xe,g)}function pf(s,o,g,T){var P=0,$=s==null?0:s.length;if($===0)return 0;o=g(o);for(var z=o!==o,X=o===null,Q=rr(o),lt=o===r;P<$;){var ut=uo((P+$)/2),ct=g(s[ut]),vt=ct!==r,Et=ct===null,St=ct===ct,Ft=rr(ct);if(z)var Ot=T||St;else lt?Ot=St&&(T||vt):X?Ot=St&&vt&&(T||!Et):Q?Ot=St&&vt&&!Et&&(T||!Ft):Et||Ft?Ot=!1:Ot=T?ct<=o:ct<o;Ot?P=ut+1:$=ut}return Le($,U)}function Zv(s,o){for(var g=-1,T=s.length,P=0,$=[];++g<T;){var z=s[g],X=o?o(z):z;if(!g||!Cr(X,Q)){var Q=X;$[P++]=z===0?0:z}}return $}function Jv(s){return typeof s=="number"?s:rr(s)?D:+s}function er(s){if(typeof s=="string")return s;if(Mt(s))return fe(s,er)+"";if(rr(s))return Cv?Cv.call(s):"";var o=s+"";return o=="0"&&1/s==-H?"-0":o}function _n(s,o,g){var T=-1,P=Ya,$=s.length,z=!0,X=[],Q=X;if(g)z=!1,P=qu;else if($>=i){var lt=o?null:aM(s);if(lt)return Ja(lt);z=!1,P=bs,Q=new zn}else Q=o?[]:X;t:for(;++T<$;){var ut=s[T],ct=o?o(ut):ut;if(ut=g||ut!==0?ut:0,z&&ct===ct){for(var vt=Q.length;vt--;)if(Q[vt]===ct)continue t;o&&Q.push(ct),X.push(ut)}else P(Q,ct,g)||(Q!==X&&Q.push(ct),X.push(ut))}return X}function vf(s,o){return o=bn(o,s),s=Sg(s,o),s==null||delete s[Gr(pr(o))]}function Qv(s,o,g,T){return Cs(s,o,g(Wn(s,o)),T)}function _o(s,o,g,T){for(var P=s.length,$=T?P:-1;(T?$--:++$<P)&&o(s[$],$,s););return g?dr(s,T?0:$,T?$+1:P):dr(s,T?$+1:0,T?P:$)}function tg(s,o){var g=s;return g instanceof Gt&&(g=g.value()),ju(o,function(T,P){return P.func.apply(P.thisArg,vn([T],P.args))},g)}function gf(s,o,g){var T=s.length;if(T<2)return T?_n(s[0]):[];for(var P=-1,$=rt(T);++P<T;)for(var z=s[P],X=-1;++X<T;)X!=P&&($[P]=Os($[P]||z,s[X],o,g));return _n(Pe($,1),o,g)}function eg(s,o,g){for(var T=-1,P=s.length,$=o.length,z={};++T<P;){var X=T<$?o[T]:r;g(z,s[T],X)}return z}function yf(s){return me(s)?s:[]}function mf(s){return typeof s=="function"?s:Xe}function bn(s,o){return Mt(s)?s:Of(s,o)?[s]:Cg(Yt(s))}var YP=Bt;function xn(s,o,g){var T=s.length;return g=g===r?T:g,!o&&g>=T?s:dr(s,o,g)}var rg=BN||function(s){return Ne.clearTimeout(s)};function ng(s,o){if(o)return s.slice();var g=s.length,T=Tv?Tv(g):new s.constructor(g);return s.copy(T),T}function _f(s){var o=new s.constructor(s.byteLength);return new io(o).set(new io(s)),o}function ZP(s,o){var g=o?_f(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.byteLength)}function JP(s){var o=new s.constructor(s.source,$p.exec(s));return o.lastIndex=s.lastIndex,o}function QP(s){return As?ne(As.call(s)):{}}function ig(s,o){var g=o?_f(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.length)}function sg(s,o){if(s!==o){var g=s!==r,T=s===null,P=s===s,$=rr(s),z=o!==r,X=o===null,Q=o===o,lt=rr(o);if(!X&&!lt&&!$&&s>o||$&&z&&Q&&!X&&!lt||T&&z&&Q||!g&&Q||!P)return 1;if(!T&&!$&&!lt&&s<o||lt&&g&&P&&!T&&!$||X&&g&&P||!z&&P||!Q)return-1}return 0}function tM(s,o,g){for(var T=-1,P=s.criteria,$=o.criteria,z=P.length,X=g.length;++T<z;){var Q=sg(P[T],$[T]);if(Q){if(T>=X)return Q;var lt=g[T];return Q*(lt=="desc"?-1:1)}}return s.index-o.index}function ag(s,o,g,T){for(var P=-1,$=s.length,z=g.length,X=-1,Q=o.length,lt=Te($-z,0),ut=rt(Q+lt),ct=!T;++X<Q;)ut[X]=o[X];for(;++P<z;)(ct||P<$)&&(ut[g[P]]=s[P]);for(;lt--;)ut[X++]=s[P++];return ut}function og(s,o,g,T){for(var P=-1,$=s.length,z=-1,X=g.length,Q=-1,lt=o.length,ut=Te($-X,0),ct=rt(ut+lt),vt=!T;++P<ut;)ct[P]=s[P];for(var Et=P;++Q<lt;)ct[Et+Q]=o[Q];for(;++z<X;)(vt||P<$)&&(ct[Et+g[z]]=s[P++]);return ct}function ze(s,o){var g=-1,T=s.length;for(o||(o=rt(T));++g<T;)o[g]=s[g];return o}function $r(s,o,g,T){var P=!g;g||(g={});for(var $=-1,z=o.length;++$<z;){var X=o[$],Q=T?T(g[X],s[X],X,g,s):r;Q===r&&(Q=s[X]),P?Jr(g,X,Q):Ss(g,X,Q)}return g}function eM(s,o){return $r(s,Sf(s),o)}function rM(s,o){return $r(s,bg(s),o)}function bo(s,o){return function(g,T){var P=Mt(g)?oN:TP,$=o?o():{};return P(g,s,At(T,2),$)}}function Gi(s){return Bt(function(o,g){var T=-1,P=g.length,$=P>1?g[P-1]:r,z=P>2?g[2]:r;for($=s.length>3&&typeof $=="function"?(P--,$):r,z&&$e(g[0],g[1],z)&&($=P<3?r:$,P=1),o=ne(o);++T<P;){var X=g[T];X&&s(o,X,T,$)}return o})}function lg(s,o){return function(g,T){if(g==null)return g;if(!Ve(g))return s(g,T);for(var P=g.length,$=o?P:-1,z=ne(g);(o?$--:++$<P)&&T(z[$],$,z)!==!1;);return g}}function ug(s){return function(o,g,T){for(var P=-1,$=ne(o),z=T(o),X=z.length;X--;){var Q=z[s?X:++P];if(g($[Q],Q,$)===!1)break}return o}}function nM(s,o,g){var T=o&b,P=Ns(s);function $(){var z=this&&this!==Ne&&this instanceof $?P:s;return z.apply(T?g:this,arguments)}return $}function fg(s){return function(o){o=Yt(o);var g=ki(o)?Ir(o):r,T=g?g[0]:o.charAt(0),P=g?xn(g,1).join(""):o.slice(1);return T[s]()+P}}function qi(s){return function(o){return ju(ly(oy(o).replace(WC,"")),s,"")}}function Ns(s){return function(){var o=arguments;switch(o.length){case 0:return new s;case 1:return new s(o[0]);case 2:return new s(o[0],o[1]);case 3:return new s(o[0],o[1],o[2]);case 4:return new s(o[0],o[1],o[2],o[3]);case 5:return new s(o[0],o[1],o[2],o[3],o[4]);case 6:return new s(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new s(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var g=$i(s.prototype),T=s.apply(g,o);return pe(T)?T:g}}function iM(s,o,g){var T=Ns(s);function P(){for(var $=arguments.length,z=rt($),X=$,Q=ji(P);X--;)z[X]=arguments[X];var lt=$<3&&z[0]!==Q&&z[$-1]!==Q?[]:gn(z,Q);if($-=lt.length,$<g)return vg(s,o,xo,P.placeholder,r,z,lt,r,r,g-$);var ut=this&&this!==Ne&&this instanceof P?T:s;return Qe(ut,this,z)}return P}function cg(s){return function(o,g,T){var P=ne(o);if(!Ve(o)){var $=At(g,3);o=Re(o),g=function(X){return $(P[X],X,P)}}var z=s(o,g,T);return z>-1?P[$?o[z]:z]:r}}function hg(s){return tn(function(o){var g=o.length,T=g,P=cr.prototype.thru;for(s&&o.reverse();T--;){var $=o[T];if(typeof $!="function")throw new fr(l);if(P&&!z&&Ao($)=="wrapper")var z=new cr([],!0)}for(T=z?T:g;++T<g;){$=o[T];var X=Ao($),Q=X=="wrapper"?Tf($):r;Q&&If(Q[0])&&Q[1]==(S|w|A|O)&&!Q[4].length&&Q[9]==1?z=z[Ao(Q[0])].apply(z,Q[3]):z=$.length==1&&If($)?z[X]():z.thru($)}return function(){var lt=arguments,ut=lt[0];if(z&<.length==1&&Mt(ut))return z.plant(ut).value();for(var ct=0,vt=g?o[ct].apply(this,lt):ut;++ct<g;)vt=o[ct].call(this,vt);return vt}})}function xo(s,o,g,T,P,$,z,X,Q,lt){var ut=o&S,ct=o&b,vt=o&_,Et=o&(w|x),St=o&L,Ft=vt?r:Ns(s);function Ot(){for(var Ut=arguments.length,jt=rt(Ut),nr=Ut;nr--;)jt[nr]=arguments[nr];if(Et)var Ge=ji(Ot),ir=gN(jt,Ge);if(T&&(jt=ag(jt,T,P,Et)),$&&(jt=og(jt,$,z,Et)),Ut-=ir,Et&&Ut<lt){var _e=gn(jt,Ge);return vg(s,o,xo,Ot.placeholder,g,jt,_e,X,Q,lt-Ut)}var Nr=ct?g:this,sn=vt?Nr[s]:s;return Ut=jt.length,X?jt=TM(jt,X):St&&Ut>1&&jt.reverse(),ut&&Q<Ut&&(jt.length=Q),this&&this!==Ne&&this instanceof Ot&&(sn=Ft||Ns(sn)),sn.apply(Nr,jt)}return Ot}function dg(s,o){return function(g,T){return PP(g,s,o(T),{})}}function Eo(s,o){return function(g,T){var P;if(g===r&&T===r)return o;if(g!==r&&(P=g),T!==r){if(P===r)return T;typeof g=="string"||typeof T=="string"?(g=er(g),T=er(T)):(g=Jv(g),T=Jv(T)),P=s(g,T)}return P}}function bf(s){return tn(function(o){return o=fe(o,tr(At())),Bt(function(g){var T=this;return s(o,function(P){return Qe(P,T,g)})})})}function wo(s,o){o=o===r?" ":er(o);var g=o.length;if(g<2)return g?df(o,s):o;var T=df(o,lo(s/Li(o)));return ki(o)?xn(Ir(T),0,s).join(""):T.slice(0,s)}function sM(s,o,g,T){var P=o&b,$=Ns(s);function z(){for(var X=-1,Q=arguments.length,lt=-1,ut=T.length,ct=rt(ut+Q),vt=this&&this!==Ne&&this instanceof z?$:s;++lt<ut;)ct[lt]=T[lt];for(;Q--;)ct[lt++]=arguments[++X];return Qe(vt,P?g:this,ct)}return z}function pg(s){return function(o,g,T){return T&&typeof T!="number"&&$e(o,g,T)&&(g=T=r),o=nn(o),g===r?(g=o,o=0):g=nn(g),T=T===r?o<g?1:-1:nn(T),HP(o,g,T,s)}}function To(s){return function(o,g){return typeof o=="string"&&typeof g=="string"||(o=vr(o),g=vr(g)),s(o,g)}}function vg(s,o,g,T,P,$,z,X,Q,lt){var ut=o&w,ct=ut?z:r,vt=ut?r:z,Et=ut?$:r,St=ut?r:$;o|=ut?A:C,o&=~(ut?C:A),o&E||(o&=~(b|_));var Ft=[s,o,P,Et,ct,St,vt,X,Q,lt],Ot=g.apply(r,Ft);return If(s)&&Og(Ot,Ft),Ot.placeholder=T,Ig(Ot,s,o)}function xf(s){var o=we[s];return function(g,T){if(g=vr(g),T=T==null?0:Le(kt(T),292),T&&Iv(g)){var P=(Yt(g)+"e").split("e"),$=o(P[0]+"e"+(+P[1]+T));return P=(Yt($)+"e").split("e"),+(P[0]+"e"+(+P[1]-T))}return o(g)}}var aM=Ui&&1/Ja(new Ui([,-0]))[1]==H?function(s){return new Ui(s)}:jf;function gg(s){return function(o){var g=Fe(o);return g==gt?Yu(o):g==pt?wN(o):vN(o,s(o))}}function Qr(s,o,g,T,P,$,z,X){var Q=o&_;if(!Q&&typeof s!="function")throw new fr(l);var lt=T?T.length:0;if(lt||(o&=~(A|C),T=P=r),z=z===r?z:Te(kt(z),0),X=X===r?X:kt(X),lt-=P?P.length:0,o&C){var ut=T,ct=P;T=P=r}var vt=Q?r:Tf(s),Et=[s,o,g,T,P,ut,ct,$,z,X];if(vt&&xM(Et,vt),s=Et[0],o=Et[1],g=Et[2],T=Et[3],P=Et[4],X=Et[9]=Et[9]===r?Q?0:s.length:Te(Et[9]-lt,0),!X&&o&(w|x)&&(o&=~(w|x)),!o||o==b)var St=nM(s,o,g);else o==w||o==x?St=iM(s,o,X):(o==A||o==(b|A))&&!P.length?St=sM(s,o,g,T):St=xo.apply(r,Et);var Ft=vt?Yv:Og;return Ig(Ft(St,Et),s,o)}function yg(s,o,g,T){return s===r||Cr(s,Bi[g])&&!te.call(T,g)?o:s}function mg(s,o,g,T,P,$){return pe(s)&&pe(o)&&($.set(o,s),yo(s,o,r,mg,$),$.delete(o)),s}function oM(s){return ks(s)?r:s}function _g(s,o,g,T,P,$){var z=g&y,X=s.length,Q=o.length;if(X!=Q&&!(z&&Q>X))return!1;var lt=$.get(s),ut=$.get(o);if(lt&&ut)return lt==o&&ut==s;var ct=-1,vt=!0,Et=g&m?new zn:r;for($.set(s,o),$.set(o,s);++ct<X;){var St=s[ct],Ft=o[ct];if(T)var Ot=z?T(Ft,St,ct,o,s,$):T(St,Ft,ct,s,o,$);if(Ot!==r){if(Ot)continue;vt=!1;break}if(Et){if(!Hu(o,function(Ut,jt){if(!bs(Et,jt)&&(St===Ut||P(St,Ut,g,T,$)))return Et.push(jt)})){vt=!1;break}}else if(!(St===Ft||P(St,Ft,g,T,$))){vt=!1;break}}return $.delete(s),$.delete(o),vt}function lM(s,o,g,T,P,$,z){switch(g){case Kt:if(s.byteLength!=o.byteLength||s.byteOffset!=o.byteOffset)return!1;s=s.buffer,o=o.buffer;case Ue:return!(s.byteLength!=o.byteLength||!$(new io(s),new io(o)));case tt:case et:case It:return Cr(+s,+o);case ht:return s.name==o.name&&s.message==o.message;case dt:case ft:return s==o+"";case gt:var X=Yu;case pt:var Q=T&y;if(X||(X=Ja),s.size!=o.size&&!Q)return!1;var lt=z.get(s);if(lt)return lt==o;T|=m,z.set(s,o);var ut=_g(X(s),X(o),T,P,$,z);return z.delete(s),ut;case Nt:if(As)return As.call(s)==As.call(o)}return!1}function uM(s,o,g,T,P,$){var z=g&y,X=Ef(s),Q=X.length,lt=Ef(o),ut=lt.length;if(Q!=ut&&!z)return!1;for(var ct=Q;ct--;){var vt=X[ct];if(!(z?vt in o:te.call(o,vt)))return!1}var Et=$.get(s),St=$.get(o);if(Et&&St)return Et==o&&St==s;var Ft=!0;$.set(s,o),$.set(o,s);for(var Ot=z;++ct<Q;){vt=X[ct];var Ut=s[vt],jt=o[vt];if(T)var nr=z?T(jt,Ut,vt,o,s,$):T(Ut,jt,vt,s,o,$);if(!(nr===r?Ut===jt||P(Ut,jt,g,T,$):nr)){Ft=!1;break}Ot||(Ot=vt=="constructor")}if(Ft&&!Ot){var Ge=s.constructor,ir=o.constructor;Ge!=ir&&"constructor"in s&&"constructor"in o&&!(typeof Ge=="function"&&Ge instanceof Ge&&typeof ir=="function"&&ir instanceof ir)&&(Ft=!1)}return $.delete(s),$.delete(o),Ft}function tn(s){return Cf(Ag(s,r,kg),s+"")}function Ef(s){return Dv(s,Re,Sf)}function wf(s){return Dv(s,We,bg)}var Tf=fo?function(s){return fo.get(s)}:jf;function Ao(s){for(var o=s.name+"",g=Di[o],T=te.call(Di,o)?g.length:0;T--;){var P=g[T],$=P.func;if($==null||$==s)return P.name}return o}function ji(s){var o=te.call(B,"placeholder")?B:s;return o.placeholder}function At(){var s=B.iteratee||Gf;return s=s===Gf?qv:s,arguments.length?s(arguments[0],arguments[1]):s}function So(s,o){var g=s.__data__;return yM(o)?g[typeof o=="string"?"string":"hash"]:g.map}function Af(s){for(var o=Re(s),g=o.length;g--;){var T=o[g],P=s[T];o[g]=[T,P,wg(P)]}return o}function Xn(s,o){var g=bN(s,o);return Gv(g)?g:r}function fM(s){var o=te.call(s,jn),g=s[jn];try{s[jn]=r;var T=!0}catch{}var P=ro.call(s);return T&&(o?s[jn]=g:delete s[jn]),P}var Sf=Ju?function(s){return s==null?[]:(s=ne(s),pn(Ju(s),function(o){return Sv.call(s,o)}))}:Hf,bg=Ju?function(s){for(var o=[];s;)vn(o,Sf(s)),s=so(s);return o}:Hf,Fe=De;(Qu&&Fe(new Qu(new ArrayBuffer(1)))!=Kt||Es&&Fe(new Es)!=gt||tf&&Fe(tf.resolve())!=it||Ui&&Fe(new Ui)!=pt||ws&&Fe(new ws)!=Pt)&&(Fe=function(s){var o=De(s),g=o==$t?s.constructor:r,T=g?Kn(g):"";if(T)switch(T){case VN:return Kt;case WN:return gt;case XN:return it;case KN:return pt;case YN:return Pt}return o});function cM(s,o,g){for(var T=-1,P=g.length;++T<P;){var $=g[T],z=$.size;switch($.type){case"drop":s+=z;break;case"dropRight":o-=z;break;case"take":o=Le(o,s+z);break;case"takeRight":s=Te(s,o-z);break}}return{start:s,end:o}}function hM(s){var o=s.match(mC);return o?o[1].split(_C):[]}function xg(s,o,g){o=bn(o,s);for(var T=-1,P=o.length,$=!1;++T<P;){var z=Gr(o[T]);if(!($=s!=null&&g(s,z)))break;s=s[z]}return $||++T!=P?$:(P=s==null?0:s.length,!!P&&Mo(P)&&en(z,P)&&(Mt(s)||Yn(s)))}function dM(s){var o=s.length,g=new s.constructor(o);return o&&typeof s[0]=="string"&&te.call(s,"index")&&(g.index=s.index,g.input=s.input),g}function Eg(s){return typeof s.constructor=="function"&&!Ps(s)?$i(so(s)):{}}function pM(s,o,g){var T=s.constructor;switch(o){case Ue:return _f(s);case tt:case et:return new T(+s);case Kt:return ZP(s,g);case _s:case ue:case or:case Ou:case Iu:case Ru:case Cu:case Nu:case Pu:return ig(s,g);case gt:return new T;case It:case ft:return new T(s);case dt:return JP(s);case pt:return new T;case Nt:return QP(s)}}function vM(s,o){var g=o.length;if(!g)return s;var T=g-1;return o[T]=(g>1?"& ":"")+o[T],o=o.join(g>2?", ":" "),s.replace(yC,`{
|
|
557
|
+
*/Va.exports,function(e,t){(function(){var r,n="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,c=2,v=4,y=1,m=2,b=1,_=2,E=4,w=8,x=16,A=32,C=64,S=128,O=256,L=512,R=30,I="...",N=800,k=16,F=1,j=2,Z=3,H=1/0,nt=9007199254740991,Y=17976931348623157e292,D=0/0,M=4294967295,U=M-1,q=M>>>1,W=[["ary",S],["bind",b],["bindKey",_],["curry",w],["curryRight",x],["flip",L],["partial",A],["partialRight",C],["rearg",O]],K="[object Arguments]",G="[object Array]",V="[object AsyncFunction]",tt="[object Boolean]",et="[object Date]",st="[object DOMException]",ht="[object Error]",yt="[object Function]",_t="[object GeneratorFunction]",vt="[object Map]",It="[object Number]",re="[object Null]",$t="[object Object]",it="[object Promise]",ot="[object Proxy]",dt="[object RegExp]",pt="[object Set]",ft="[object String]",Nt="[object Symbol]",Lt="[object Undefined]",Pt="[object WeakMap]",He="[object WeakSet]",Ue="[object ArrayBuffer]",Kt="[object DataView]",_s="[object Float32Array]",ue="[object Float64Array]",or="[object Int8Array]",Ou="[object Int16Array]",Iu="[object Int32Array]",Ru="[object Uint8Array]",Cu="[object Uint8ClampedArray]",Nu="[object Uint16Array]",Pu="[object Uint32Array]",sC=/\b__p \+= '';/g,aC=/\b(__p \+=) '' \+/g,oC=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bp=/&(?:amp|lt|gt|quot|#39);/g,Up=/[&<>"']/g,lC=RegExp(Bp.source),uC=RegExp(Up.source),fC=/<%-([\s\S]+?)%>/g,cC=/<%([\s\S]+?)%>/g,Dp=/<%=([\s\S]+?)%>/g,hC=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dC=/^\w*$/,pC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mu=/[\\^$.*+?()[\]{}|]/g,vC=RegExp(Mu.source),ku=/^\s+/,gC=/\s/,yC=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mC=/\{\n\/\* \[wrapped with (.+)\] \*/,_C=/,? & /,bC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xC=/[()=,{}\[\]\/\s]/,EC=/\\(\\)?/g,wC=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$p=/\w*$/,TC=/^[-+]0x[0-9a-f]+$/i,AC=/^0b[01]+$/i,SC=/^\[object .+?Constructor\]$/,OC=/^0o[0-7]+$/i,IC=/^(?:0|[1-9]\d*)$/,RC=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wa=/($^)/,CC=/['\n\r\u2028\u2029\\]/g,Xa="\\ud800-\\udfff",NC="\\u0300-\\u036f",PC="\\ufe20-\\ufe2f",MC="\\u20d0-\\u20ff",Gp=NC+PC+MC,qp="\\u2700-\\u27bf",jp="a-z\\xdf-\\xf6\\xf8-\\xff",kC="\\xac\\xb1\\xd7\\xf7",LC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",FC="\\u2000-\\u206f",BC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Hp="A-Z\\xc0-\\xd6\\xd8-\\xde",zp="\\ufe0e\\ufe0f",Vp=kC+LC+FC+BC,Lu="['’]",UC="["+Xa+"]",Wp="["+Vp+"]",Ka="["+Gp+"]",Xp="\\d+",DC="["+qp+"]",Kp="["+jp+"]",Yp="[^"+Xa+Vp+Xp+qp+jp+Hp+"]",Fu="\\ud83c[\\udffb-\\udfff]",$C="(?:"+Ka+"|"+Fu+")",Zp="[^"+Xa+"]",Bu="(?:\\ud83c[\\udde6-\\uddff]){2}",Uu="[\\ud800-\\udbff][\\udc00-\\udfff]",Pi="["+Hp+"]",Jp="\\u200d",Qp="(?:"+Kp+"|"+Yp+")",GC="(?:"+Pi+"|"+Yp+")",tv="(?:"+Lu+"(?:d|ll|m|re|s|t|ve))?",ev="(?:"+Lu+"(?:D|LL|M|RE|S|T|VE))?",rv=$C+"?",nv="["+zp+"]?",qC="(?:"+Jp+"(?:"+[Zp,Bu,Uu].join("|")+")"+nv+rv+")*",jC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",HC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",iv=nv+rv+qC,zC="(?:"+[DC,Bu,Uu].join("|")+")"+iv,VC="(?:"+[Zp+Ka+"?",Ka,Bu,Uu,UC].join("|")+")",WC=RegExp(Lu,"g"),XC=RegExp(Ka,"g"),Du=RegExp(Fu+"(?="+Fu+")|"+VC+iv,"g"),KC=RegExp([Pi+"?"+Kp+"+"+tv+"(?="+[Wp,Pi,"$"].join("|")+")",GC+"+"+ev+"(?="+[Wp,Pi+Qp,"$"].join("|")+")",Pi+"?"+Qp+"+"+tv,Pi+"+"+ev,HC,jC,Xp,zC].join("|"),"g"),YC=RegExp("["+Jp+Xa+Gp+zp+"]"),ZC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,JC=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],QC=-1,oe={};oe[_s]=oe[ue]=oe[or]=oe[Ou]=oe[Iu]=oe[Ru]=oe[Cu]=oe[Nu]=oe[Pu]=!0,oe[K]=oe[G]=oe[Ue]=oe[tt]=oe[Kt]=oe[et]=oe[ht]=oe[yt]=oe[vt]=oe[It]=oe[$t]=oe[dt]=oe[pt]=oe[ft]=oe[Pt]=!1;var se={};se[K]=se[G]=se[Ue]=se[Kt]=se[tt]=se[et]=se[_s]=se[ue]=se[or]=se[Ou]=se[Iu]=se[vt]=se[It]=se[$t]=se[dt]=se[pt]=se[ft]=se[Nt]=se[Ru]=se[Cu]=se[Nu]=se[Pu]=!0,se[ht]=se[yt]=se[Pt]=!1;var tN={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},eN={"&":"&","<":"<",">":">",'"':""","'":"'"},rN={"&":"&","<":"<",">":">",""":'"',"'":"'"},nN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},iN=parseFloat,sN=parseInt,sv=typeof Ke=="object"&&Ke&&Ke.Object===Object&&Ke,aN=typeof self=="object"&&self&&self.Object===Object&&self,Ne=sv||aN||Function("return this")(),$u=t&&!t.nodeType&&t,qn=$u&&!0&&e&&!e.nodeType&&e,av=qn&&qn.exports===$u,Gu=av&&sv.process,lr=function(){try{var J=qn&&qn.require&&qn.require("util").types;return J||Gu&&Gu.binding&&Gu.binding("util")}catch{}}(),ov=lr&&lr.isArrayBuffer,lv=lr&&lr.isDate,uv=lr&&lr.isMap,fv=lr&&lr.isRegExp,cv=lr&&lr.isSet,hv=lr&&lr.isTypedArray;function Qe(J,at,rt){switch(rt.length){case 0:return J.call(at);case 1:return J.call(at,rt[0]);case 2:return J.call(at,rt[0],rt[1]);case 3:return J.call(at,rt[0],rt[1],rt[2])}return J.apply(at,rt)}function oN(J,at,rt,xt){for(var Ct=-1,Xt=J==null?0:J.length;++Ct<Xt;){var we=J[Ct];at(xt,we,rt(we),J)}return xt}function ur(J,at){for(var rt=-1,xt=J==null?0:J.length;++rt<xt&&at(J[rt],rt,J)!==!1;);return J}function lN(J,at){for(var rt=J==null?0:J.length;rt--&&at(J[rt],rt,J)!==!1;);return J}function dv(J,at){for(var rt=-1,xt=J==null?0:J.length;++rt<xt;)if(!at(J[rt],rt,J))return!1;return!0}function pn(J,at){for(var rt=-1,xt=J==null?0:J.length,Ct=0,Xt=[];++rt<xt;){var we=J[rt];at(we,rt,J)&&(Xt[Ct++]=we)}return Xt}function Ya(J,at){var rt=J==null?0:J.length;return!!rt&&Mi(J,at,0)>-1}function qu(J,at,rt){for(var xt=-1,Ct=J==null?0:J.length;++xt<Ct;)if(rt(at,J[xt]))return!0;return!1}function fe(J,at){for(var rt=-1,xt=J==null?0:J.length,Ct=Array(xt);++rt<xt;)Ct[rt]=at(J[rt],rt,J);return Ct}function vn(J,at){for(var rt=-1,xt=at.length,Ct=J.length;++rt<xt;)J[Ct+rt]=at[rt];return J}function ju(J,at,rt,xt){var Ct=-1,Xt=J==null?0:J.length;for(xt&&Xt&&(rt=J[++Ct]);++Ct<Xt;)rt=at(rt,J[Ct],Ct,J);return rt}function uN(J,at,rt,xt){var Ct=J==null?0:J.length;for(xt&&Ct&&(rt=J[--Ct]);Ct--;)rt=at(rt,J[Ct],Ct,J);return rt}function Hu(J,at){for(var rt=-1,xt=J==null?0:J.length;++rt<xt;)if(at(J[rt],rt,J))return!0;return!1}var fN=zu("length");function cN(J){return J.split("")}function hN(J){return J.match(bC)||[]}function pv(J,at,rt){var xt;return rt(J,function(Ct,Xt,we){if(at(Ct,Xt,we))return xt=Xt,!1}),xt}function Za(J,at,rt,xt){for(var Ct=J.length,Xt=rt+(xt?1:-1);xt?Xt--:++Xt<Ct;)if(at(J[Xt],Xt,J))return Xt;return-1}function Mi(J,at,rt){return at===at?TN(J,at,rt):Za(J,vv,rt)}function dN(J,at,rt,xt){for(var Ct=rt-1,Xt=J.length;++Ct<Xt;)if(xt(J[Ct],at))return Ct;return-1}function vv(J){return J!==J}function gv(J,at){var rt=J==null?0:J.length;return rt?Wu(J,at)/rt:D}function zu(J){return function(at){return at==null?r:at[J]}}function Vu(J){return function(at){return J==null?r:J[at]}}function yv(J,at,rt,xt,Ct){return Ct(J,function(Xt,we,ne){rt=xt?(xt=!1,Xt):at(rt,Xt,we,ne)}),rt}function pN(J,at){var rt=J.length;for(J.sort(at);rt--;)J[rt]=J[rt].value;return J}function Wu(J,at){for(var rt,xt=-1,Ct=J.length;++xt<Ct;){var Xt=at(J[xt]);Xt!==r&&(rt=rt===r?Xt:rt+Xt)}return rt}function Xu(J,at){for(var rt=-1,xt=Array(J);++rt<J;)xt[rt]=at(rt);return xt}function vN(J,at){return fe(at,function(rt){return[rt,J[rt]]})}function mv(J){return J&&J.slice(0,Ev(J)+1).replace(ku,"")}function tr(J){return function(at){return J(at)}}function Ku(J,at){return fe(at,function(rt){return J[rt]})}function bs(J,at){return J.has(at)}function _v(J,at){for(var rt=-1,xt=J.length;++rt<xt&&Mi(at,J[rt],0)>-1;);return rt}function bv(J,at){for(var rt=J.length;rt--&&Mi(at,J[rt],0)>-1;);return rt}function gN(J,at){for(var rt=J.length,xt=0;rt--;)J[rt]===at&&++xt;return xt}var yN=Vu(tN),mN=Vu(eN);function _N(J){return"\\"+nN[J]}function bN(J,at){return J==null?r:J[at]}function ki(J){return YC.test(J)}function xN(J){return ZC.test(J)}function EN(J){for(var at,rt=[];!(at=J.next()).done;)rt.push(at.value);return rt}function Yu(J){var at=-1,rt=Array(J.size);return J.forEach(function(xt,Ct){rt[++at]=[Ct,xt]}),rt}function xv(J,at){return function(rt){return J(at(rt))}}function gn(J,at){for(var rt=-1,xt=J.length,Ct=0,Xt=[];++rt<xt;){var we=J[rt];(we===at||we===d)&&(J[rt]=d,Xt[Ct++]=rt)}return Xt}function Ja(J){var at=-1,rt=Array(J.size);return J.forEach(function(xt){rt[++at]=xt}),rt}function wN(J){var at=-1,rt=Array(J.size);return J.forEach(function(xt){rt[++at]=[xt,xt]}),rt}function TN(J,at,rt){for(var xt=rt-1,Ct=J.length;++xt<Ct;)if(J[xt]===at)return xt;return-1}function AN(J,at,rt){for(var xt=rt+1;xt--;)if(J[xt]===at)return xt;return xt}function Li(J){return ki(J)?ON(J):fN(J)}function Ir(J){return ki(J)?IN(J):cN(J)}function Ev(J){for(var at=J.length;at--&&gC.test(J.charAt(at)););return at}var SN=Vu(rN);function ON(J){for(var at=Du.lastIndex=0;Du.test(J);)++at;return at}function IN(J){return J.match(Du)||[]}function RN(J){return J.match(KC)||[]}var CN=function J(at){at=at==null?Ne:Fi.defaults(Ne.Object(),at,Fi.pick(Ne,JC));var rt=at.Array,xt=at.Date,Ct=at.Error,Xt=at.Function,we=at.Math,ne=at.Object,Zu=at.RegExp,NN=at.String,fr=at.TypeError,Qa=rt.prototype,PN=Xt.prototype,Bi=ne.prototype,to=at["__core-js_shared__"],eo=PN.toString,te=Bi.hasOwnProperty,MN=0,wv=function(){var s=/[^.]+$/.exec(to&&to.keys&&to.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),ro=Bi.toString,kN=eo.call(ne),LN=Ne._,FN=Zu("^"+eo.call(te).replace(Mu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),no=av?at.Buffer:r,yn=at.Symbol,io=at.Uint8Array,Tv=no?no.allocUnsafe:r,so=xv(ne.getPrototypeOf,ne),Av=ne.create,Sv=Bi.propertyIsEnumerable,ao=Qa.splice,Ov=yn?yn.isConcatSpreadable:r,xs=yn?yn.iterator:r,jn=yn?yn.toStringTag:r,oo=function(){try{var s=Xn(ne,"defineProperty");return s({},"",{}),s}catch{}}(),BN=at.clearTimeout!==Ne.clearTimeout&&at.clearTimeout,UN=xt&&xt.now!==Ne.Date.now&&xt.now,DN=at.setTimeout!==Ne.setTimeout&&at.setTimeout,lo=we.ceil,uo=we.floor,Ju=ne.getOwnPropertySymbols,$N=no?no.isBuffer:r,Iv=at.isFinite,GN=Qa.join,qN=xv(ne.keys,ne),Te=we.max,Le=we.min,jN=xt.now,HN=at.parseInt,Rv=we.random,zN=Qa.reverse,Qu=Xn(at,"DataView"),Es=Xn(at,"Map"),tf=Xn(at,"Promise"),Ui=Xn(at,"Set"),ws=Xn(at,"WeakMap"),Ts=Xn(ne,"create"),fo=ws&&new ws,Di={},VN=Kn(Qu),WN=Kn(Es),XN=Kn(tf),KN=Kn(Ui),YN=Kn(ws),co=yn?yn.prototype:r,As=co?co.valueOf:r,Cv=co?co.toString:r;function B(s){if(ge(s)&&!Mt(s)&&!(s instanceof Gt)){if(s instanceof cr)return s;if(te.call(s,"__wrapped__"))return Ng(s)}return new cr(s)}var $i=function(){function s(){}return function(o){if(!pe(o))return{};if(Av)return Av(o);s.prototype=o;var g=new s;return s.prototype=r,g}}();function ho(){}function cr(s,o){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}B.templateSettings={escape:fC,evaluate:cC,interpolate:Dp,variable:"",imports:{_:B}},B.prototype=ho.prototype,B.prototype.constructor=B,cr.prototype=$i(ho.prototype),cr.prototype.constructor=cr;function Gt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=M,this.__views__=[]}function ZN(){var s=new Gt(this.__wrapped__);return s.__actions__=ze(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=ze(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=ze(this.__views__),s}function JN(){if(this.__filtered__){var s=new Gt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function QN(){var s=this.__wrapped__.value(),o=this.__dir__,g=Mt(s),T=o<0,P=g?s.length:0,$=cM(0,P,this.__views__),z=$.start,X=$.end,Q=X-z,lt=T?X:z-1,ut=this.__iteratees__,ct=ut.length,gt=0,Et=Le(Q,this.__takeCount__);if(!g||!T&&P==Q&&Et==Q)return tg(s,this.__actions__);var St=[];t:for(;Q--&><Et;){lt+=o;for(var Ft=-1,Ot=s[lt];++Ft<ct;){var Ut=ut[Ft],jt=Ut.iteratee,nr=Ut.type,Ge=jt(Ot);if(nr==j)Ot=Ge;else if(!Ge){if(nr==F)continue t;break t}}St[gt++]=Ot}return St}Gt.prototype=$i(ho.prototype),Gt.prototype.constructor=Gt;function Hn(s){var o=-1,g=s==null?0:s.length;for(this.clear();++o<g;){var T=s[o];this.set(T[0],T[1])}}function tP(){this.__data__=Ts?Ts(null):{},this.size=0}function eP(s){var o=this.has(s)&&delete this.__data__[s];return this.size-=o?1:0,o}function rP(s){var o=this.__data__;if(Ts){var g=o[s];return g===f?r:g}return te.call(o,s)?o[s]:r}function nP(s){var o=this.__data__;return Ts?o[s]!==r:te.call(o,s)}function iP(s,o){var g=this.__data__;return this.size+=this.has(s)?0:1,g[s]=Ts&&o===r?f:o,this}Hn.prototype.clear=tP,Hn.prototype.delete=eP,Hn.prototype.get=rP,Hn.prototype.has=nP,Hn.prototype.set=iP;function Yr(s){var o=-1,g=s==null?0:s.length;for(this.clear();++o<g;){var T=s[o];this.set(T[0],T[1])}}function sP(){this.__data__=[],this.size=0}function aP(s){var o=this.__data__,g=po(o,s);if(g<0)return!1;var T=o.length-1;return g==T?o.pop():ao.call(o,g,1),--this.size,!0}function oP(s){var o=this.__data__,g=po(o,s);return g<0?r:o[g][1]}function lP(s){return po(this.__data__,s)>-1}function uP(s,o){var g=this.__data__,T=po(g,s);return T<0?(++this.size,g.push([s,o])):g[T][1]=o,this}Yr.prototype.clear=sP,Yr.prototype.delete=aP,Yr.prototype.get=oP,Yr.prototype.has=lP,Yr.prototype.set=uP;function Zr(s){var o=-1,g=s==null?0:s.length;for(this.clear();++o<g;){var T=s[o];this.set(T[0],T[1])}}function fP(){this.size=0,this.__data__={hash:new Hn,map:new(Es||Yr),string:new Hn}}function cP(s){var o=So(this,s).delete(s);return this.size-=o?1:0,o}function hP(s){return So(this,s).get(s)}function dP(s){return So(this,s).has(s)}function pP(s,o){var g=So(this,s),T=g.size;return g.set(s,o),this.size+=g.size==T?0:1,this}Zr.prototype.clear=fP,Zr.prototype.delete=cP,Zr.prototype.get=hP,Zr.prototype.has=dP,Zr.prototype.set=pP;function zn(s){var o=-1,g=s==null?0:s.length;for(this.__data__=new Zr;++o<g;)this.add(s[o])}function vP(s){return this.__data__.set(s,f),this}function gP(s){return this.__data__.has(s)}zn.prototype.add=zn.prototype.push=vP,zn.prototype.has=gP;function Rr(s){var o=this.__data__=new Yr(s);this.size=o.size}function yP(){this.__data__=new Yr,this.size=0}function mP(s){var o=this.__data__,g=o.delete(s);return this.size=o.size,g}function _P(s){return this.__data__.get(s)}function bP(s){return this.__data__.has(s)}function xP(s,o){var g=this.__data__;if(g instanceof Yr){var T=g.__data__;if(!Es||T.length<i-1)return T.push([s,o]),this.size=++g.size,this;g=this.__data__=new Zr(T)}return g.set(s,o),this.size=g.size,this}Rr.prototype.clear=yP,Rr.prototype.delete=mP,Rr.prototype.get=_P,Rr.prototype.has=bP,Rr.prototype.set=xP;function Nv(s,o){var g=Mt(s),T=!g&&Yn(s),P=!g&&!T&&En(s),$=!g&&!T&&!P&&Hi(s),z=g||T||P||$,X=z?Xu(s.length,NN):[],Q=X.length;for(var lt in s)(o||te.call(s,lt))&&!(z&&(lt=="length"||P&&(lt=="offset"||lt=="parent")||$&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||en(lt,Q)))&&X.push(lt);return X}function Pv(s){var o=s.length;return o?s[hf(0,o-1)]:r}function EP(s,o){return Oo(ze(s),Vn(o,0,s.length))}function wP(s){return Oo(ze(s))}function ef(s,o,g){(g!==r&&!Cr(s[o],g)||g===r&&!(o in s))&&Jr(s,o,g)}function Ss(s,o,g){var T=s[o];(!(te.call(s,o)&&Cr(T,g))||g===r&&!(o in s))&&Jr(s,o,g)}function po(s,o){for(var g=s.length;g--;)if(Cr(s[g][0],o))return g;return-1}function TP(s,o,g,T){return mn(s,function(P,$,z){o(T,P,g(P),z)}),T}function Mv(s,o){return s&&$r(o,Re(o),s)}function AP(s,o){return s&&$r(o,We(o),s)}function Jr(s,o,g){o=="__proto__"&&oo?oo(s,o,{configurable:!0,enumerable:!0,value:g,writable:!0}):s[o]=g}function rf(s,o){for(var g=-1,T=o.length,P=rt(T),$=s==null;++g<T;)P[g]=$?r:Bf(s,o[g]);return P}function Vn(s,o,g){return s===s&&(g!==r&&(s=s<=g?s:g),o!==r&&(s=s>=o?s:o)),s}function hr(s,o,g,T,P,$){var z,X=o&p,Q=o&c,lt=o&v;if(g&&(z=P?g(s,T,P,$):g(s)),z!==r)return z;if(!pe(s))return s;var ut=Mt(s);if(ut){if(z=dM(s),!X)return ze(s,z)}else{var ct=Fe(s),gt=ct==yt||ct==_t;if(En(s))return ng(s,X);if(ct==$t||ct==K||gt&&!P){if(z=Q||gt?{}:Eg(s),!X)return Q?rM(s,AP(z,s)):eM(s,Mv(z,s))}else{if(!se[ct])return P?s:{};z=pM(s,ct,X)}}$||($=new Rr);var Et=$.get(s);if(Et)return Et;$.set(s,z),Zg(s)?s.forEach(function(Ot){z.add(hr(Ot,o,g,Ot,s,$))}):Kg(s)&&s.forEach(function(Ot,Ut){z.set(Ut,hr(Ot,o,g,Ut,s,$))});var St=lt?Q?wf:Ef:Q?We:Re,Ft=ut?r:St(s);return ur(Ft||s,function(Ot,Ut){Ft&&(Ut=Ot,Ot=s[Ut]),Ss(z,Ut,hr(Ot,o,g,Ut,s,$))}),z}function SP(s){var o=Re(s);return function(g){return kv(g,s,o)}}function kv(s,o,g){var T=g.length;if(s==null)return!T;for(s=ne(s);T--;){var P=g[T],$=o[P],z=s[P];if(z===r&&!(P in s)||!$(z))return!1}return!0}function Lv(s,o,g){if(typeof s!="function")throw new fr(l);return Ms(function(){s.apply(r,g)},o)}function Os(s,o,g,T){var P=-1,$=Ya,z=!0,X=s.length,Q=[],lt=o.length;if(!X)return Q;g&&(o=fe(o,tr(g))),T?($=qu,z=!1):o.length>=i&&($=bs,z=!1,o=new zn(o));t:for(;++P<X;){var ut=s[P],ct=g==null?ut:g(ut);if(ut=T||ut!==0?ut:0,z&&ct===ct){for(var gt=lt;gt--;)if(o[gt]===ct)continue t;Q.push(ut)}else $(o,ct,T)||Q.push(ut)}return Q}var mn=lg(Dr),Fv=lg(sf,!0);function OP(s,o){var g=!0;return mn(s,function(T,P,$){return g=!!o(T,P,$),g}),g}function vo(s,o,g){for(var T=-1,P=s.length;++T<P;){var $=s[T],z=o($);if(z!=null&&(X===r?z===z&&!rr(z):g(z,X)))var X=z,Q=$}return Q}function IP(s,o,g,T){var P=s.length;for(g=kt(g),g<0&&(g=-g>P?0:P+g),T=T===r||T>P?P:kt(T),T<0&&(T+=P),T=g>T?0:Qg(T);g<T;)s[g++]=o;return s}function Bv(s,o){var g=[];return mn(s,function(T,P,$){o(T,P,$)&&g.push(T)}),g}function Pe(s,o,g,T,P){var $=-1,z=s.length;for(g||(g=gM),P||(P=[]);++$<z;){var X=s[$];o>0&&g(X)?o>1?Pe(X,o-1,g,T,P):vn(P,X):T||(P[P.length]=X)}return P}var nf=ug(),Uv=ug(!0);function Dr(s,o){return s&&nf(s,o,Re)}function sf(s,o){return s&&Uv(s,o,Re)}function go(s,o){return pn(o,function(g){return rn(s[g])})}function Wn(s,o){o=bn(o,s);for(var g=0,T=o.length;s!=null&&g<T;)s=s[Gr(o[g++])];return g&&g==T?s:r}function Dv(s,o,g){var T=o(s);return Mt(s)?T:vn(T,g(s))}function De(s){return s==null?s===r?Lt:re:jn&&jn in ne(s)?fM(s):wM(s)}function af(s,o){return s>o}function RP(s,o){return s!=null&&te.call(s,o)}function CP(s,o){return s!=null&&o in ne(s)}function NP(s,o,g){return s>=Le(o,g)&&s<Te(o,g)}function of(s,o,g){for(var T=g?qu:Ya,P=s[0].length,$=s.length,z=$,X=rt($),Q=1/0,lt=[];z--;){var ut=s[z];z&&o&&(ut=fe(ut,tr(o))),Q=Le(ut.length,Q),X[z]=!g&&(o||P>=120&&ut.length>=120)?new zn(z&&ut):r}ut=s[0];var ct=-1,gt=X[0];t:for(;++ct<P&<.length<Q;){var Et=ut[ct],St=o?o(Et):Et;if(Et=g||Et!==0?Et:0,!(gt?bs(gt,St):T(lt,St,g))){for(z=$;--z;){var Ft=X[z];if(!(Ft?bs(Ft,St):T(s[z],St,g)))continue t}gt&>.push(St),lt.push(Et)}}return lt}function PP(s,o,g,T){return Dr(s,function(P,$,z){o(T,g(P),$,z)}),T}function Is(s,o,g){o=bn(o,s),s=Sg(s,o);var T=s==null?s:s[Gr(pr(o))];return T==null?r:Qe(T,s,g)}function $v(s){return ge(s)&&De(s)==K}function MP(s){return ge(s)&&De(s)==Ue}function kP(s){return ge(s)&&De(s)==et}function Rs(s,o,g,T,P){return s===o?!0:s==null||o==null||!ge(s)&&!ge(o)?s!==s&&o!==o:LP(s,o,g,T,Rs,P)}function LP(s,o,g,T,P,$){var z=Mt(s),X=Mt(o),Q=z?G:Fe(s),lt=X?G:Fe(o);Q=Q==K?$t:Q,lt=lt==K?$t:lt;var ut=Q==$t,ct=lt==$t,gt=Q==lt;if(gt&&En(s)){if(!En(o))return!1;z=!0,ut=!1}if(gt&&!ut)return $||($=new Rr),z||Hi(s)?_g(s,o,g,T,P,$):lM(s,o,Q,g,T,P,$);if(!(g&y)){var Et=ut&&te.call(s,"__wrapped__"),St=ct&&te.call(o,"__wrapped__");if(Et||St){var Ft=Et?s.value():s,Ot=St?o.value():o;return $||($=new Rr),P(Ft,Ot,g,T,$)}}return gt?($||($=new Rr),uM(s,o,g,T,P,$)):!1}function FP(s){return ge(s)&&Fe(s)==vt}function lf(s,o,g,T){var P=g.length,$=P,z=!T;if(s==null)return!$;for(s=ne(s);P--;){var X=g[P];if(z&&X[2]?X[1]!==s[X[0]]:!(X[0]in s))return!1}for(;++P<$;){X=g[P];var Q=X[0],lt=s[Q],ut=X[1];if(z&&X[2]){if(lt===r&&!(Q in s))return!1}else{var ct=new Rr;if(T)var gt=T(lt,ut,Q,s,o,ct);if(!(gt===r?Rs(ut,lt,y|m,T,ct):gt))return!1}}return!0}function Gv(s){if(!pe(s)||mM(s))return!1;var o=rn(s)?FN:SC;return o.test(Kn(s))}function BP(s){return ge(s)&&De(s)==dt}function UP(s){return ge(s)&&Fe(s)==pt}function DP(s){return ge(s)&&Mo(s.length)&&!!oe[De(s)]}function qv(s){return typeof s=="function"?s:s==null?Xe:typeof s=="object"?Mt(s)?zv(s[0],s[1]):Hv(s):fy(s)}function uf(s){if(!Ps(s))return qN(s);var o=[];for(var g in ne(s))te.call(s,g)&&g!="constructor"&&o.push(g);return o}function $P(s){if(!pe(s))return EM(s);var o=Ps(s),g=[];for(var T in s)T=="constructor"&&(o||!te.call(s,T))||g.push(T);return g}function ff(s,o){return s<o}function jv(s,o){var g=-1,T=Ve(s)?rt(s.length):[];return mn(s,function(P,$,z){T[++g]=o(P,$,z)}),T}function Hv(s){var o=Af(s);return o.length==1&&o[0][2]?Tg(o[0][0],o[0][1]):function(g){return g===s||lf(g,s,o)}}function zv(s,o){return Of(s)&&wg(o)?Tg(Gr(s),o):function(g){var T=Bf(g,s);return T===r&&T===o?Uf(g,s):Rs(o,T,y|m)}}function yo(s,o,g,T,P){s!==o&&nf(o,function($,z){if(P||(P=new Rr),pe($))GP(s,o,z,g,yo,T,P);else{var X=T?T(Rf(s,z),$,z+"",s,o,P):r;X===r&&(X=$),ef(s,z,X)}},We)}function GP(s,o,g,T,P,$,z){var X=Rf(s,g),Q=Rf(o,g),lt=z.get(Q);if(lt){ef(s,g,lt);return}var ut=$?$(X,Q,g+"",s,o,z):r,ct=ut===r;if(ct){var gt=Mt(Q),Et=!gt&&En(Q),St=!gt&&!Et&&Hi(Q);ut=Q,gt||Et||St?Mt(X)?ut=X:me(X)?ut=ze(X):Et?(ct=!1,ut=ng(Q,!0)):St?(ct=!1,ut=ig(Q,!0)):ut=[]:ks(Q)||Yn(Q)?(ut=X,Yn(X)?ut=ty(X):(!pe(X)||rn(X))&&(ut=Eg(Q))):ct=!1}ct&&(z.set(Q,ut),P(ut,Q,T,$,z),z.delete(Q)),ef(s,g,ut)}function Vv(s,o){var g=s.length;if(g)return o+=o<0?g:0,en(o,g)?s[o]:r}function Wv(s,o,g){o.length?o=fe(o,function($){return Mt($)?function(z){return Wn(z,$.length===1?$[0]:$)}:$}):o=[Xe];var T=-1;o=fe(o,tr(At()));var P=jv(s,function($,z,X){var Q=fe(o,function(lt){return lt($)});return{criteria:Q,index:++T,value:$}});return pN(P,function($,z){return tM($,z,g)})}function qP(s,o){return Xv(s,o,function(g,T){return Uf(s,T)})}function Xv(s,o,g){for(var T=-1,P=o.length,$={};++T<P;){var z=o[T],X=Wn(s,z);g(X,z)&&Cs($,bn(z,s),X)}return $}function jP(s){return function(o){return Wn(o,s)}}function cf(s,o,g,T){var P=T?dN:Mi,$=-1,z=o.length,X=s;for(s===o&&(o=ze(o)),g&&(X=fe(s,tr(g)));++$<z;)for(var Q=0,lt=o[$],ut=g?g(lt):lt;(Q=P(X,ut,Q,T))>-1;)X!==s&&ao.call(X,Q,1),ao.call(s,Q,1);return s}function Kv(s,o){for(var g=s?o.length:0,T=g-1;g--;){var P=o[g];if(g==T||P!==$){var $=P;en(P)?ao.call(s,P,1):vf(s,P)}}return s}function hf(s,o){return s+uo(Rv()*(o-s+1))}function HP(s,o,g,T){for(var P=-1,$=Te(lo((o-s)/(g||1)),0),z=rt($);$--;)z[T?$:++P]=s,s+=g;return z}function df(s,o){var g="";if(!s||o<1||o>nt)return g;do o%2&&(g+=s),o=uo(o/2),o&&(s+=s);while(o);return g}function Bt(s,o){return Cf(Ag(s,o,Xe),s+"")}function zP(s){return Pv(zi(s))}function VP(s,o){var g=zi(s);return Oo(g,Vn(o,0,g.length))}function Cs(s,o,g,T){if(!pe(s))return s;o=bn(o,s);for(var P=-1,$=o.length,z=$-1,X=s;X!=null&&++P<$;){var Q=Gr(o[P]),lt=g;if(Q==="__proto__"||Q==="constructor"||Q==="prototype")return s;if(P!=z){var ut=X[Q];lt=T?T(ut,Q,X):r,lt===r&&(lt=pe(ut)?ut:en(o[P+1])?[]:{})}Ss(X,Q,lt),X=X[Q]}return s}var Yv=fo?function(s,o){return fo.set(s,o),s}:Xe,WP=oo?function(s,o){return oo(s,"toString",{configurable:!0,enumerable:!1,value:$f(o),writable:!0})}:Xe;function XP(s){return Oo(zi(s))}function dr(s,o,g){var T=-1,P=s.length;o<0&&(o=-o>P?0:P+o),g=g>P?P:g,g<0&&(g+=P),P=o>g?0:g-o>>>0,o>>>=0;for(var $=rt(P);++T<P;)$[T]=s[T+o];return $}function KP(s,o){var g;return mn(s,function(T,P,$){return g=o(T,P,$),!g}),!!g}function mo(s,o,g){var T=0,P=s==null?T:s.length;if(typeof o=="number"&&o===o&&P<=q){for(;T<P;){var $=T+P>>>1,z=s[$];z!==null&&!rr(z)&&(g?z<=o:z<o)?T=$+1:P=$}return P}return pf(s,o,Xe,g)}function pf(s,o,g,T){var P=0,$=s==null?0:s.length;if($===0)return 0;o=g(o);for(var z=o!==o,X=o===null,Q=rr(o),lt=o===r;P<$;){var ut=uo((P+$)/2),ct=g(s[ut]),gt=ct!==r,Et=ct===null,St=ct===ct,Ft=rr(ct);if(z)var Ot=T||St;else lt?Ot=St&&(T||gt):X?Ot=St&>&&(T||!Et):Q?Ot=St&>&&!Et&&(T||!Ft):Et||Ft?Ot=!1:Ot=T?ct<=o:ct<o;Ot?P=ut+1:$=ut}return Le($,U)}function Zv(s,o){for(var g=-1,T=s.length,P=0,$=[];++g<T;){var z=s[g],X=o?o(z):z;if(!g||!Cr(X,Q)){var Q=X;$[P++]=z===0?0:z}}return $}function Jv(s){return typeof s=="number"?s:rr(s)?D:+s}function er(s){if(typeof s=="string")return s;if(Mt(s))return fe(s,er)+"";if(rr(s))return Cv?Cv.call(s):"";var o=s+"";return o=="0"&&1/s==-H?"-0":o}function _n(s,o,g){var T=-1,P=Ya,$=s.length,z=!0,X=[],Q=X;if(g)z=!1,P=qu;else if($>=i){var lt=o?null:aM(s);if(lt)return Ja(lt);z=!1,P=bs,Q=new zn}else Q=o?[]:X;t:for(;++T<$;){var ut=s[T],ct=o?o(ut):ut;if(ut=g||ut!==0?ut:0,z&&ct===ct){for(var gt=Q.length;gt--;)if(Q[gt]===ct)continue t;o&&Q.push(ct),X.push(ut)}else P(Q,ct,g)||(Q!==X&&Q.push(ct),X.push(ut))}return X}function vf(s,o){return o=bn(o,s),s=Sg(s,o),s==null||delete s[Gr(pr(o))]}function Qv(s,o,g,T){return Cs(s,o,g(Wn(s,o)),T)}function _o(s,o,g,T){for(var P=s.length,$=T?P:-1;(T?$--:++$<P)&&o(s[$],$,s););return g?dr(s,T?0:$,T?$+1:P):dr(s,T?$+1:0,T?P:$)}function tg(s,o){var g=s;return g instanceof Gt&&(g=g.value()),ju(o,function(T,P){return P.func.apply(P.thisArg,vn([T],P.args))},g)}function gf(s,o,g){var T=s.length;if(T<2)return T?_n(s[0]):[];for(var P=-1,$=rt(T);++P<T;)for(var z=s[P],X=-1;++X<T;)X!=P&&($[P]=Os($[P]||z,s[X],o,g));return _n(Pe($,1),o,g)}function eg(s,o,g){for(var T=-1,P=s.length,$=o.length,z={};++T<P;){var X=T<$?o[T]:r;g(z,s[T],X)}return z}function yf(s){return me(s)?s:[]}function mf(s){return typeof s=="function"?s:Xe}function bn(s,o){return Mt(s)?s:Of(s,o)?[s]:Cg(Yt(s))}var YP=Bt;function xn(s,o,g){var T=s.length;return g=g===r?T:g,!o&&g>=T?s:dr(s,o,g)}var rg=BN||function(s){return Ne.clearTimeout(s)};function ng(s,o){if(o)return s.slice();var g=s.length,T=Tv?Tv(g):new s.constructor(g);return s.copy(T),T}function _f(s){var o=new s.constructor(s.byteLength);return new io(o).set(new io(s)),o}function ZP(s,o){var g=o?_f(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.byteLength)}function JP(s){var o=new s.constructor(s.source,$p.exec(s));return o.lastIndex=s.lastIndex,o}function QP(s){return As?ne(As.call(s)):{}}function ig(s,o){var g=o?_f(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.length)}function sg(s,o){if(s!==o){var g=s!==r,T=s===null,P=s===s,$=rr(s),z=o!==r,X=o===null,Q=o===o,lt=rr(o);if(!X&&!lt&&!$&&s>o||$&&z&&Q&&!X&&!lt||T&&z&&Q||!g&&Q||!P)return 1;if(!T&&!$&&!lt&&s<o||lt&&g&&P&&!T&&!$||X&&g&&P||!z&&P||!Q)return-1}return 0}function tM(s,o,g){for(var T=-1,P=s.criteria,$=o.criteria,z=P.length,X=g.length;++T<z;){var Q=sg(P[T],$[T]);if(Q){if(T>=X)return Q;var lt=g[T];return Q*(lt=="desc"?-1:1)}}return s.index-o.index}function ag(s,o,g,T){for(var P=-1,$=s.length,z=g.length,X=-1,Q=o.length,lt=Te($-z,0),ut=rt(Q+lt),ct=!T;++X<Q;)ut[X]=o[X];for(;++P<z;)(ct||P<$)&&(ut[g[P]]=s[P]);for(;lt--;)ut[X++]=s[P++];return ut}function og(s,o,g,T){for(var P=-1,$=s.length,z=-1,X=g.length,Q=-1,lt=o.length,ut=Te($-X,0),ct=rt(ut+lt),gt=!T;++P<ut;)ct[P]=s[P];for(var Et=P;++Q<lt;)ct[Et+Q]=o[Q];for(;++z<X;)(gt||P<$)&&(ct[Et+g[z]]=s[P++]);return ct}function ze(s,o){var g=-1,T=s.length;for(o||(o=rt(T));++g<T;)o[g]=s[g];return o}function $r(s,o,g,T){var P=!g;g||(g={});for(var $=-1,z=o.length;++$<z;){var X=o[$],Q=T?T(g[X],s[X],X,g,s):r;Q===r&&(Q=s[X]),P?Jr(g,X,Q):Ss(g,X,Q)}return g}function eM(s,o){return $r(s,Sf(s),o)}function rM(s,o){return $r(s,bg(s),o)}function bo(s,o){return function(g,T){var P=Mt(g)?oN:TP,$=o?o():{};return P(g,s,At(T,2),$)}}function Gi(s){return Bt(function(o,g){var T=-1,P=g.length,$=P>1?g[P-1]:r,z=P>2?g[2]:r;for($=s.length>3&&typeof $=="function"?(P--,$):r,z&&$e(g[0],g[1],z)&&($=P<3?r:$,P=1),o=ne(o);++T<P;){var X=g[T];X&&s(o,X,T,$)}return o})}function lg(s,o){return function(g,T){if(g==null)return g;if(!Ve(g))return s(g,T);for(var P=g.length,$=o?P:-1,z=ne(g);(o?$--:++$<P)&&T(z[$],$,z)!==!1;);return g}}function ug(s){return function(o,g,T){for(var P=-1,$=ne(o),z=T(o),X=z.length;X--;){var Q=z[s?X:++P];if(g($[Q],Q,$)===!1)break}return o}}function nM(s,o,g){var T=o&b,P=Ns(s);function $(){var z=this&&this!==Ne&&this instanceof $?P:s;return z.apply(T?g:this,arguments)}return $}function fg(s){return function(o){o=Yt(o);var g=ki(o)?Ir(o):r,T=g?g[0]:o.charAt(0),P=g?xn(g,1).join(""):o.slice(1);return T[s]()+P}}function qi(s){return function(o){return ju(ly(oy(o).replace(WC,"")),s,"")}}function Ns(s){return function(){var o=arguments;switch(o.length){case 0:return new s;case 1:return new s(o[0]);case 2:return new s(o[0],o[1]);case 3:return new s(o[0],o[1],o[2]);case 4:return new s(o[0],o[1],o[2],o[3]);case 5:return new s(o[0],o[1],o[2],o[3],o[4]);case 6:return new s(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new s(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var g=$i(s.prototype),T=s.apply(g,o);return pe(T)?T:g}}function iM(s,o,g){var T=Ns(s);function P(){for(var $=arguments.length,z=rt($),X=$,Q=ji(P);X--;)z[X]=arguments[X];var lt=$<3&&z[0]!==Q&&z[$-1]!==Q?[]:gn(z,Q);if($-=lt.length,$<g)return vg(s,o,xo,P.placeholder,r,z,lt,r,r,g-$);var ut=this&&this!==Ne&&this instanceof P?T:s;return Qe(ut,this,z)}return P}function cg(s){return function(o,g,T){var P=ne(o);if(!Ve(o)){var $=At(g,3);o=Re(o),g=function(X){return $(P[X],X,P)}}var z=s(o,g,T);return z>-1?P[$?o[z]:z]:r}}function hg(s){return tn(function(o){var g=o.length,T=g,P=cr.prototype.thru;for(s&&o.reverse();T--;){var $=o[T];if(typeof $!="function")throw new fr(l);if(P&&!z&&Ao($)=="wrapper")var z=new cr([],!0)}for(T=z?T:g;++T<g;){$=o[T];var X=Ao($),Q=X=="wrapper"?Tf($):r;Q&&If(Q[0])&&Q[1]==(S|w|A|O)&&!Q[4].length&&Q[9]==1?z=z[Ao(Q[0])].apply(z,Q[3]):z=$.length==1&&If($)?z[X]():z.thru($)}return function(){var lt=arguments,ut=lt[0];if(z&<.length==1&&Mt(ut))return z.plant(ut).value();for(var ct=0,gt=g?o[ct].apply(this,lt):ut;++ct<g;)gt=o[ct].call(this,gt);return gt}})}function xo(s,o,g,T,P,$,z,X,Q,lt){var ut=o&S,ct=o&b,gt=o&_,Et=o&(w|x),St=o&L,Ft=gt?r:Ns(s);function Ot(){for(var Ut=arguments.length,jt=rt(Ut),nr=Ut;nr--;)jt[nr]=arguments[nr];if(Et)var Ge=ji(Ot),ir=gN(jt,Ge);if(T&&(jt=ag(jt,T,P,Et)),$&&(jt=og(jt,$,z,Et)),Ut-=ir,Et&&Ut<lt){var _e=gn(jt,Ge);return vg(s,o,xo,Ot.placeholder,g,jt,_e,X,Q,lt-Ut)}var Nr=ct?g:this,sn=gt?Nr[s]:s;return Ut=jt.length,X?jt=TM(jt,X):St&&Ut>1&&jt.reverse(),ut&&Q<Ut&&(jt.length=Q),this&&this!==Ne&&this instanceof Ot&&(sn=Ft||Ns(sn)),sn.apply(Nr,jt)}return Ot}function dg(s,o){return function(g,T){return PP(g,s,o(T),{})}}function Eo(s,o){return function(g,T){var P;if(g===r&&T===r)return o;if(g!==r&&(P=g),T!==r){if(P===r)return T;typeof g=="string"||typeof T=="string"?(g=er(g),T=er(T)):(g=Jv(g),T=Jv(T)),P=s(g,T)}return P}}function bf(s){return tn(function(o){return o=fe(o,tr(At())),Bt(function(g){var T=this;return s(o,function(P){return Qe(P,T,g)})})})}function wo(s,o){o=o===r?" ":er(o);var g=o.length;if(g<2)return g?df(o,s):o;var T=df(o,lo(s/Li(o)));return ki(o)?xn(Ir(T),0,s).join(""):T.slice(0,s)}function sM(s,o,g,T){var P=o&b,$=Ns(s);function z(){for(var X=-1,Q=arguments.length,lt=-1,ut=T.length,ct=rt(ut+Q),gt=this&&this!==Ne&&this instanceof z?$:s;++lt<ut;)ct[lt]=T[lt];for(;Q--;)ct[lt++]=arguments[++X];return Qe(gt,P?g:this,ct)}return z}function pg(s){return function(o,g,T){return T&&typeof T!="number"&&$e(o,g,T)&&(g=T=r),o=nn(o),g===r?(g=o,o=0):g=nn(g),T=T===r?o<g?1:-1:nn(T),HP(o,g,T,s)}}function To(s){return function(o,g){return typeof o=="string"&&typeof g=="string"||(o=vr(o),g=vr(g)),s(o,g)}}function vg(s,o,g,T,P,$,z,X,Q,lt){var ut=o&w,ct=ut?z:r,gt=ut?r:z,Et=ut?$:r,St=ut?r:$;o|=ut?A:C,o&=~(ut?C:A),o&E||(o&=~(b|_));var Ft=[s,o,P,Et,ct,St,gt,X,Q,lt],Ot=g.apply(r,Ft);return If(s)&&Og(Ot,Ft),Ot.placeholder=T,Ig(Ot,s,o)}function xf(s){var o=we[s];return function(g,T){if(g=vr(g),T=T==null?0:Le(kt(T),292),T&&Iv(g)){var P=(Yt(g)+"e").split("e"),$=o(P[0]+"e"+(+P[1]+T));return P=(Yt($)+"e").split("e"),+(P[0]+"e"+(+P[1]-T))}return o(g)}}var aM=Ui&&1/Ja(new Ui([,-0]))[1]==H?function(s){return new Ui(s)}:jf;function gg(s){return function(o){var g=Fe(o);return g==vt?Yu(o):g==pt?wN(o):vN(o,s(o))}}function Qr(s,o,g,T,P,$,z,X){var Q=o&_;if(!Q&&typeof s!="function")throw new fr(l);var lt=T?T.length:0;if(lt||(o&=~(A|C),T=P=r),z=z===r?z:Te(kt(z),0),X=X===r?X:kt(X),lt-=P?P.length:0,o&C){var ut=T,ct=P;T=P=r}var gt=Q?r:Tf(s),Et=[s,o,g,T,P,ut,ct,$,z,X];if(gt&&xM(Et,gt),s=Et[0],o=Et[1],g=Et[2],T=Et[3],P=Et[4],X=Et[9]=Et[9]===r?Q?0:s.length:Te(Et[9]-lt,0),!X&&o&(w|x)&&(o&=~(w|x)),!o||o==b)var St=nM(s,o,g);else o==w||o==x?St=iM(s,o,X):(o==A||o==(b|A))&&!P.length?St=sM(s,o,g,T):St=xo.apply(r,Et);var Ft=gt?Yv:Og;return Ig(Ft(St,Et),s,o)}function yg(s,o,g,T){return s===r||Cr(s,Bi[g])&&!te.call(T,g)?o:s}function mg(s,o,g,T,P,$){return pe(s)&&pe(o)&&($.set(o,s),yo(s,o,r,mg,$),$.delete(o)),s}function oM(s){return ks(s)?r:s}function _g(s,o,g,T,P,$){var z=g&y,X=s.length,Q=o.length;if(X!=Q&&!(z&&Q>X))return!1;var lt=$.get(s),ut=$.get(o);if(lt&&ut)return lt==o&&ut==s;var ct=-1,gt=!0,Et=g&m?new zn:r;for($.set(s,o),$.set(o,s);++ct<X;){var St=s[ct],Ft=o[ct];if(T)var Ot=z?T(Ft,St,ct,o,s,$):T(St,Ft,ct,s,o,$);if(Ot!==r){if(Ot)continue;gt=!1;break}if(Et){if(!Hu(o,function(Ut,jt){if(!bs(Et,jt)&&(St===Ut||P(St,Ut,g,T,$)))return Et.push(jt)})){gt=!1;break}}else if(!(St===Ft||P(St,Ft,g,T,$))){gt=!1;break}}return $.delete(s),$.delete(o),gt}function lM(s,o,g,T,P,$,z){switch(g){case Kt:if(s.byteLength!=o.byteLength||s.byteOffset!=o.byteOffset)return!1;s=s.buffer,o=o.buffer;case Ue:return!(s.byteLength!=o.byteLength||!$(new io(s),new io(o)));case tt:case et:case It:return Cr(+s,+o);case ht:return s.name==o.name&&s.message==o.message;case dt:case ft:return s==o+"";case vt:var X=Yu;case pt:var Q=T&y;if(X||(X=Ja),s.size!=o.size&&!Q)return!1;var lt=z.get(s);if(lt)return lt==o;T|=m,z.set(s,o);var ut=_g(X(s),X(o),T,P,$,z);return z.delete(s),ut;case Nt:if(As)return As.call(s)==As.call(o)}return!1}function uM(s,o,g,T,P,$){var z=g&y,X=Ef(s),Q=X.length,lt=Ef(o),ut=lt.length;if(Q!=ut&&!z)return!1;for(var ct=Q;ct--;){var gt=X[ct];if(!(z?gt in o:te.call(o,gt)))return!1}var Et=$.get(s),St=$.get(o);if(Et&&St)return Et==o&&St==s;var Ft=!0;$.set(s,o),$.set(o,s);for(var Ot=z;++ct<Q;){gt=X[ct];var Ut=s[gt],jt=o[gt];if(T)var nr=z?T(jt,Ut,gt,o,s,$):T(Ut,jt,gt,s,o,$);if(!(nr===r?Ut===jt||P(Ut,jt,g,T,$):nr)){Ft=!1;break}Ot||(Ot=gt=="constructor")}if(Ft&&!Ot){var Ge=s.constructor,ir=o.constructor;Ge!=ir&&"constructor"in s&&"constructor"in o&&!(typeof Ge=="function"&&Ge instanceof Ge&&typeof ir=="function"&&ir instanceof ir)&&(Ft=!1)}return $.delete(s),$.delete(o),Ft}function tn(s){return Cf(Ag(s,r,kg),s+"")}function Ef(s){return Dv(s,Re,Sf)}function wf(s){return Dv(s,We,bg)}var Tf=fo?function(s){return fo.get(s)}:jf;function Ao(s){for(var o=s.name+"",g=Di[o],T=te.call(Di,o)?g.length:0;T--;){var P=g[T],$=P.func;if($==null||$==s)return P.name}return o}function ji(s){var o=te.call(B,"placeholder")?B:s;return o.placeholder}function At(){var s=B.iteratee||Gf;return s=s===Gf?qv:s,arguments.length?s(arguments[0],arguments[1]):s}function So(s,o){var g=s.__data__;return yM(o)?g[typeof o=="string"?"string":"hash"]:g.map}function Af(s){for(var o=Re(s),g=o.length;g--;){var T=o[g],P=s[T];o[g]=[T,P,wg(P)]}return o}function Xn(s,o){var g=bN(s,o);return Gv(g)?g:r}function fM(s){var o=te.call(s,jn),g=s[jn];try{s[jn]=r;var T=!0}catch{}var P=ro.call(s);return T&&(o?s[jn]=g:delete s[jn]),P}var Sf=Ju?function(s){return s==null?[]:(s=ne(s),pn(Ju(s),function(o){return Sv.call(s,o)}))}:Hf,bg=Ju?function(s){for(var o=[];s;)vn(o,Sf(s)),s=so(s);return o}:Hf,Fe=De;(Qu&&Fe(new Qu(new ArrayBuffer(1)))!=Kt||Es&&Fe(new Es)!=vt||tf&&Fe(tf.resolve())!=it||Ui&&Fe(new Ui)!=pt||ws&&Fe(new ws)!=Pt)&&(Fe=function(s){var o=De(s),g=o==$t?s.constructor:r,T=g?Kn(g):"";if(T)switch(T){case VN:return Kt;case WN:return vt;case XN:return it;case KN:return pt;case YN:return Pt}return o});function cM(s,o,g){for(var T=-1,P=g.length;++T<P;){var $=g[T],z=$.size;switch($.type){case"drop":s+=z;break;case"dropRight":o-=z;break;case"take":o=Le(o,s+z);break;case"takeRight":s=Te(s,o-z);break}}return{start:s,end:o}}function hM(s){var o=s.match(mC);return o?o[1].split(_C):[]}function xg(s,o,g){o=bn(o,s);for(var T=-1,P=o.length,$=!1;++T<P;){var z=Gr(o[T]);if(!($=s!=null&&g(s,z)))break;s=s[z]}return $||++T!=P?$:(P=s==null?0:s.length,!!P&&Mo(P)&&en(z,P)&&(Mt(s)||Yn(s)))}function dM(s){var o=s.length,g=new s.constructor(o);return o&&typeof s[0]=="string"&&te.call(s,"index")&&(g.index=s.index,g.input=s.input),g}function Eg(s){return typeof s.constructor=="function"&&!Ps(s)?$i(so(s)):{}}function pM(s,o,g){var T=s.constructor;switch(o){case Ue:return _f(s);case tt:case et:return new T(+s);case Kt:return ZP(s,g);case _s:case ue:case or:case Ou:case Iu:case Ru:case Cu:case Nu:case Pu:return ig(s,g);case vt:return new T;case It:case ft:return new T(s);case dt:return JP(s);case pt:return new T;case Nt:return QP(s)}}function vM(s,o){var g=o.length;if(!g)return s;var T=g-1;return o[T]=(g>1?"& ":"")+o[T],o=o.join(g>2?", ":" "),s.replace(yC,`{
|
|
558
558
|
/* [wrapped with `+o+`] */
|
|
559
|
-
`)}function gM(s){return Mt(s)||Yn(s)||!!(Ov&&s&&s[Ov])}function en(s,o){var g=typeof s;return o=o??nt,!!o&&(g=="number"||g!="symbol"&&IC.test(s))&&s>-1&&s%1==0&&s<o}function $e(s,o,g){if(!pe(g))return!1;var T=typeof o;return(T=="number"?Ve(g)&&en(o,g.length):T=="string"&&o in g)?Cr(g[o],s):!1}function Of(s,o){if(Mt(s))return!1;var g=typeof s;return g=="number"||g=="symbol"||g=="boolean"||s==null||rr(s)?!0:dC.test(s)||!hC.test(s)||o!=null&&s in ne(o)}function yM(s){var o=typeof s;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?s!=="__proto__":s===null}function If(s){var o=Ao(s),g=B[o];if(typeof g!="function"||!(o in Gt.prototype))return!1;if(s===g)return!0;var T=Tf(g);return!!T&&s===T[0]}function mM(s){return!!wv&&wv in s}var _M=to?rn:zf;function Ps(s){var o=s&&s.constructor,g=typeof o=="function"&&o.prototype||Bi;return s===g}function wg(s){return s===s&&!pe(s)}function Tg(s,o){return function(g){return g==null?!1:g[s]===o&&(o!==r||s in ne(g))}}function bM(s){var o=No(s,function(T){return g.size===h&&g.clear(),T}),g=o.cache;return o}function xM(s,o){var g=s[1],T=o[1],P=g|T,$=P<(b|_|S),z=T==S&&g==w||T==S&&g==O&&s[7].length<=o[8]||T==(S|O)&&o[7].length<=o[8]&&g==w;if(!($||z))return s;T&b&&(s[2]=o[2],P|=g&b?0:E);var X=o[3];if(X){var Q=s[3];s[3]=Q?ag(Q,X,o[4]):X,s[4]=Q?gn(s[3],d):o[4]}return X=o[5],X&&(Q=s[5],s[5]=Q?og(Q,X,o[6]):X,s[6]=Q?gn(s[5],d):o[6]),X=o[7],X&&(s[7]=X),T&S&&(s[8]=s[8]==null?o[8]:Le(s[8],o[8])),s[9]==null&&(s[9]=o[9]),s[0]=o[0],s[1]=P,s}function EM(s){var o=[];if(s!=null)for(var g in ne(s))o.push(g);return o}function wM(s){return ro.call(s)}function Ag(s,o,g){return o=Te(o===r?s.length-1:o,0),function(){for(var T=arguments,P=-1,$=Te(T.length-o,0),z=rt($);++P<$;)z[P]=T[o+P];P=-1;for(var X=rt(o+1);++P<o;)X[P]=T[P];return X[o]=g(z),Qe(s,this,X)}}function Sg(s,o){return o.length<2?s:Wn(s,dr(o,0,-1))}function TM(s,o){for(var g=s.length,T=Le(o.length,g),P=ze(s);T--;){var $=o[T];s[T]=en($,g)?P[$]:r}return s}function Rf(s,o){if(!(o==="constructor"&&typeof s[o]=="function")&&o!="__proto__")return s[o]}var Og=Rg(Yv),Ms=DN||function(s,o){return Ne.setTimeout(s,o)},Cf=Rg(WP);function Ig(s,o,g){var T=o+"";return Cf(s,vM(T,AM(hM(T),g)))}function Rg(s){var o=0,g=0;return function(){var T=jN(),P=k-(T-g);if(g=T,P>0){if(++o>=N)return arguments[0]}else o=0;return s.apply(r,arguments)}}function Oo(s,o){var g=-1,T=s.length,P=T-1;for(o=o===r?T:o;++g<o;){var $=hf(g,P),z=s[$];s[$]=s[g],s[g]=z}return s.length=o,s}var Cg=bM(function(s){var o=[];return s.charCodeAt(0)===46&&o.push(""),s.replace(pC,function(g,T,P,$){o.push(P?$.replace(EC,"$1"):T||g)}),o});function Gr(s){if(typeof s=="string"||rr(s))return s;var o=s+"";return o=="0"&&1/s==-H?"-0":o}function Kn(s){if(s!=null){try{return eo.call(s)}catch{}try{return s+""}catch{}}return""}function AM(s,o){return ur(W,function(g){var T="_."+g[0];o&g[1]&&!Ya(s,T)&&s.push(T)}),s.sort()}function Ng(s){if(s instanceof Gt)return s.clone();var o=new cr(s.__wrapped__,s.__chain__);return o.__actions__=ze(s.__actions__),o.__index__=s.__index__,o.__values__=s.__values__,o}function SM(s,o,g){(g?$e(s,o,g):o===r)?o=1:o=Te(kt(o),0);var T=s==null?0:s.length;if(!T||o<1)return[];for(var P=0,$=0,z=rt(lo(T/o));P<T;)z[$++]=dr(s,P,P+=o);return z}function OM(s){for(var o=-1,g=s==null?0:s.length,T=0,P=[];++o<g;){var $=s[o];$&&(P[T++]=$)}return P}function IM(){var s=arguments.length;if(!s)return[];for(var o=rt(s-1),g=arguments[0],T=s;T--;)o[T-1]=arguments[T];return vn(Mt(g)?ze(g):[g],Pe(o,1))}var RM=Bt(function(s,o){return me(s)?Os(s,Pe(o,1,me,!0)):[]}),CM=Bt(function(s,o){var g=pr(o);return me(g)&&(g=r),me(s)?Os(s,Pe(o,1,me,!0),At(g,2)):[]}),NM=Bt(function(s,o){var g=pr(o);return me(g)&&(g=r),me(s)?Os(s,Pe(o,1,me,!0),r,g):[]});function PM(s,o,g){var T=s==null?0:s.length;return T?(o=g||o===r?1:kt(o),dr(s,o<0?0:o,T)):[]}function MM(s,o,g){var T=s==null?0:s.length;return T?(o=g||o===r?1:kt(o),o=T-o,dr(s,0,o<0?0:o)):[]}function kM(s,o){return s&&s.length?_o(s,At(o,3),!0,!0):[]}function LM(s,o){return s&&s.length?_o(s,At(o,3),!0):[]}function FM(s,o,g,T){var P=s==null?0:s.length;return P?(g&&typeof g!="number"&&$e(s,o,g)&&(g=0,T=P),IP(s,o,g,T)):[]}function Pg(s,o,g){var T=s==null?0:s.length;if(!T)return-1;var P=g==null?0:kt(g);return P<0&&(P=Te(T+P,0)),Za(s,At(o,3),P)}function Mg(s,o,g){var T=s==null?0:s.length;if(!T)return-1;var P=T-1;return g!==r&&(P=kt(g),P=g<0?Te(T+P,0):Le(P,T-1)),Za(s,At(o,3),P,!0)}function kg(s){var o=s==null?0:s.length;return o?Pe(s,1):[]}function BM(s){var o=s==null?0:s.length;return o?Pe(s,H):[]}function UM(s,o){var g=s==null?0:s.length;return g?(o=o===r?1:kt(o),Pe(s,o)):[]}function DM(s){for(var o=-1,g=s==null?0:s.length,T={};++o<g;){var P=s[o];T[P[0]]=P[1]}return T}function Lg(s){return s&&s.length?s[0]:r}function $M(s,o,g){var T=s==null?0:s.length;if(!T)return-1;var P=g==null?0:kt(g);return P<0&&(P=Te(T+P,0)),Mi(s,o,P)}function GM(s){var o=s==null?0:s.length;return o?dr(s,0,-1):[]}var qM=Bt(function(s){var o=fe(s,yf);return o.length&&o[0]===s[0]?of(o):[]}),jM=Bt(function(s){var o=pr(s),g=fe(s,yf);return o===pr(g)?o=r:g.pop(),g.length&&g[0]===s[0]?of(g,At(o,2)):[]}),HM=Bt(function(s){var o=pr(s),g=fe(s,yf);return o=typeof o=="function"?o:r,o&&g.pop(),g.length&&g[0]===s[0]?of(g,r,o):[]});function zM(s,o){return s==null?"":GN.call(s,o)}function pr(s){var o=s==null?0:s.length;return o?s[o-1]:r}function VM(s,o,g){var T=s==null?0:s.length;if(!T)return-1;var P=T;return g!==r&&(P=kt(g),P=P<0?Te(T+P,0):Le(P,T-1)),o===o?AN(s,o,P):Za(s,vv,P,!0)}function WM(s,o){return s&&s.length?Vv(s,kt(o)):r}var XM=Bt(Fg);function Fg(s,o){return s&&s.length&&o&&o.length?cf(s,o):s}function KM(s,o,g){return s&&s.length&&o&&o.length?cf(s,o,At(g,2)):s}function YM(s,o,g){return s&&s.length&&o&&o.length?cf(s,o,r,g):s}var ZM=tn(function(s,o){var g=s==null?0:s.length,T=rf(s,o);return Kv(s,fe(o,function(P){return en(P,g)?+P:P}).sort(sg)),T});function JM(s,o){var g=[];if(!(s&&s.length))return g;var T=-1,P=[],$=s.length;for(o=At(o,3);++T<$;){var z=s[T];o(z,T,s)&&(g.push(z),P.push(T))}return Kv(s,P),g}function Nf(s){return s==null?s:zN.call(s)}function QM(s,o,g){var T=s==null?0:s.length;return T?(g&&typeof g!="number"&&$e(s,o,g)?(o=0,g=T):(o=o==null?0:kt(o),g=g===r?T:kt(g)),dr(s,o,g)):[]}function tk(s,o){return mo(s,o)}function ek(s,o,g){return pf(s,o,At(g,2))}function rk(s,o){var g=s==null?0:s.length;if(g){var T=mo(s,o);if(T<g&&Cr(s[T],o))return T}return-1}function nk(s,o){return mo(s,o,!0)}function ik(s,o,g){return pf(s,o,At(g,2),!0)}function sk(s,o){var g=s==null?0:s.length;if(g){var T=mo(s,o,!0)-1;if(Cr(s[T],o))return T}return-1}function ak(s){return s&&s.length?Zv(s):[]}function ok(s,o){return s&&s.length?Zv(s,At(o,2)):[]}function lk(s){var o=s==null?0:s.length;return o?dr(s,1,o):[]}function uk(s,o,g){return s&&s.length?(o=g||o===r?1:kt(o),dr(s,0,o<0?0:o)):[]}function fk(s,o,g){var T=s==null?0:s.length;return T?(o=g||o===r?1:kt(o),o=T-o,dr(s,o<0?0:o,T)):[]}function ck(s,o){return s&&s.length?_o(s,At(o,3),!1,!0):[]}function hk(s,o){return s&&s.length?_o(s,At(o,3)):[]}var dk=Bt(function(s){return _n(Pe(s,1,me,!0))}),pk=Bt(function(s){var o=pr(s);return me(o)&&(o=r),_n(Pe(s,1,me,!0),At(o,2))}),vk=Bt(function(s){var o=pr(s);return o=typeof o=="function"?o:r,_n(Pe(s,1,me,!0),r,o)});function gk(s){return s&&s.length?_n(s):[]}function yk(s,o){return s&&s.length?_n(s,At(o,2)):[]}function mk(s,o){return o=typeof o=="function"?o:r,s&&s.length?_n(s,r,o):[]}function Pf(s){if(!(s&&s.length))return[];var o=0;return s=pn(s,function(g){if(me(g))return o=Te(g.length,o),!0}),Xu(o,function(g){return fe(s,zu(g))})}function Bg(s,o){if(!(s&&s.length))return[];var g=Pf(s);return o==null?g:fe(g,function(T){return Qe(o,r,T)})}var _k=Bt(function(s,o){return me(s)?Os(s,o):[]}),bk=Bt(function(s){return gf(pn(s,me))}),xk=Bt(function(s){var o=pr(s);return me(o)&&(o=r),gf(pn(s,me),At(o,2))}),Ek=Bt(function(s){var o=pr(s);return o=typeof o=="function"?o:r,gf(pn(s,me),r,o)}),wk=Bt(Pf);function Tk(s,o){return eg(s||[],o||[],Ss)}function Ak(s,o){return eg(s||[],o||[],Cs)}var Sk=Bt(function(s){var o=s.length,g=o>1?s[o-1]:r;return g=typeof g=="function"?(s.pop(),g):r,Bg(s,g)});function Ug(s){var o=B(s);return o.__chain__=!0,o}function Ok(s,o){return o(s),s}function Io(s,o){return o(s)}var Ik=tn(function(s){var o=s.length,g=o?s[0]:0,T=this.__wrapped__,P=function($){return rf($,s)};return o>1||this.__actions__.length||!(T instanceof Gt)||!en(g)?this.thru(P):(T=T.slice(g,+g+(o?1:0)),T.__actions__.push({func:Io,args:[P],thisArg:r}),new cr(T,this.__chain__).thru(function($){return o&&!$.length&&$.push(r),$}))});function Rk(){return Ug(this)}function Ck(){return new cr(this.value(),this.__chain__)}function Nk(){this.__values__===r&&(this.__values__=Jg(this.value()));var s=this.__index__>=this.__values__.length,o=s?r:this.__values__[this.__index__++];return{done:s,value:o}}function Pk(){return this}function Mk(s){for(var o,g=this;g instanceof ho;){var T=Ng(g);T.__index__=0,T.__values__=r,o?P.__wrapped__=T:o=T;var P=T;g=g.__wrapped__}return P.__wrapped__=s,o}function kk(){var s=this.__wrapped__;if(s instanceof Gt){var o=s;return this.__actions__.length&&(o=new Gt(this)),o=o.reverse(),o.__actions__.push({func:Io,args:[Nf],thisArg:r}),new cr(o,this.__chain__)}return this.thru(Nf)}function Lk(){return tg(this.__wrapped__,this.__actions__)}var Fk=bo(function(s,o,g){te.call(s,g)?++s[g]:Jr(s,g,1)});function Bk(s,o,g){var T=Mt(s)?dv:OP;return g&&$e(s,o,g)&&(o=r),T(s,At(o,3))}function Uk(s,o){var g=Mt(s)?pn:Bv;return g(s,At(o,3))}var Dk=cg(Pg),$k=cg(Mg);function Gk(s,o){return Pe(Ro(s,o),1)}function qk(s,o){return Pe(Ro(s,o),H)}function jk(s,o,g){return g=g===r?1:kt(g),Pe(Ro(s,o),g)}function Dg(s,o){var g=Mt(s)?ur:mn;return g(s,At(o,3))}function $g(s,o){var g=Mt(s)?lN:Fv;return g(s,At(o,3))}var Hk=bo(function(s,o,g){te.call(s,g)?s[g].push(o):Jr(s,g,[o])});function zk(s,o,g,T){s=Ve(s)?s:zi(s),g=g&&!T?kt(g):0;var P=s.length;return g<0&&(g=Te(P+g,0)),ko(s)?g<=P&&s.indexOf(o,g)>-1:!!P&&Mi(s,o,g)>-1}var Vk=Bt(function(s,o,g){var T=-1,P=typeof o=="function",$=Ve(s)?rt(s.length):[];return mn(s,function(z){$[++T]=P?Qe(o,z,g):Is(z,o,g)}),$}),Wk=bo(function(s,o,g){Jr(s,g,o)});function Ro(s,o){var g=Mt(s)?fe:jv;return g(s,At(o,3))}function Xk(s,o,g,T){return s==null?[]:(Mt(o)||(o=o==null?[]:[o]),g=T?r:g,Mt(g)||(g=g==null?[]:[g]),Wv(s,o,g))}var Kk=bo(function(s,o,g){s[g?0:1].push(o)},function(){return[[],[]]});function Yk(s,o,g){var T=Mt(s)?ju:yv,P=arguments.length<3;return T(s,At(o,4),g,P,mn)}function Zk(s,o,g){var T=Mt(s)?uN:yv,P=arguments.length<3;return T(s,At(o,4),g,P,Fv)}function Jk(s,o){var g=Mt(s)?pn:Bv;return g(s,Po(At(o,3)))}function Qk(s){var o=Mt(s)?Pv:zP;return o(s)}function tL(s,o,g){(g?$e(s,o,g):o===r)?o=1:o=kt(o);var T=Mt(s)?EP:VP;return T(s,o)}function eL(s){var o=Mt(s)?wP:XP;return o(s)}function rL(s){if(s==null)return 0;if(Ve(s))return ko(s)?Li(s):s.length;var o=Fe(s);return o==gt||o==pt?s.size:uf(s).length}function nL(s,o,g){var T=Mt(s)?Hu:KP;return g&&$e(s,o,g)&&(o=r),T(s,At(o,3))}var iL=Bt(function(s,o){if(s==null)return[];var g=o.length;return g>1&&$e(s,o[0],o[1])?o=[]:g>2&&$e(o[0],o[1],o[2])&&(o=[o[0]]),Wv(s,Pe(o,1),[])}),Co=UN||function(){return Ne.Date.now()};function sL(s,o){if(typeof o!="function")throw new fr(l);return s=kt(s),function(){if(--s<1)return o.apply(this,arguments)}}function Gg(s,o,g){return o=g?r:o,o=s&&o==null?s.length:o,Qr(s,S,r,r,r,r,o)}function qg(s,o){var g;if(typeof o!="function")throw new fr(l);return s=kt(s),function(){return--s>0&&(g=o.apply(this,arguments)),s<=1&&(o=r),g}}var Mf=Bt(function(s,o,g){var T=b;if(g.length){var P=gn(g,ji(Mf));T|=A}return Qr(s,T,o,g,P)}),jg=Bt(function(s,o,g){var T=b|_;if(g.length){var P=gn(g,ji(jg));T|=A}return Qr(o,T,s,g,P)});function Hg(s,o,g){o=g?r:o;var T=Qr(s,w,r,r,r,r,r,o);return T.placeholder=Hg.placeholder,T}function zg(s,o,g){o=g?r:o;var T=Qr(s,x,r,r,r,r,r,o);return T.placeholder=zg.placeholder,T}function Vg(s,o,g){var T,P,$,z,X,Q,lt=0,ut=!1,ct=!1,vt=!0;if(typeof s!="function")throw new fr(l);o=vr(o)||0,pe(g)&&(ut=!!g.leading,ct="maxWait"in g,$=ct?Te(vr(g.maxWait)||0,o):$,vt="trailing"in g?!!g.trailing:vt);function Et(_e){var Nr=T,sn=P;return T=P=r,lt=_e,z=s.apply(sn,Nr),z}function St(_e){return lt=_e,X=Ms(Ut,o),ut?Et(_e):z}function Ft(_e){var Nr=_e-Q,sn=_e-lt,cy=o-Nr;return ct?Le(cy,$-sn):cy}function Ot(_e){var Nr=_e-Q,sn=_e-lt;return Q===r||Nr>=o||Nr<0||ct&&sn>=$}function Ut(){var _e=Co();if(Ot(_e))return jt(_e);X=Ms(Ut,Ft(_e))}function jt(_e){return X=r,vt&&T?Et(_e):(T=P=r,z)}function nr(){X!==r&&rg(X),lt=0,T=Q=P=X=r}function Ge(){return X===r?z:jt(Co())}function ir(){var _e=Co(),Nr=Ot(_e);if(T=arguments,P=this,Q=_e,Nr){if(X===r)return St(Q);if(ct)return rg(X),X=Ms(Ut,o),Et(Q)}return X===r&&(X=Ms(Ut,o)),z}return ir.cancel=nr,ir.flush=Ge,ir}var aL=Bt(function(s,o){return Lv(s,1,o)}),oL=Bt(function(s,o,g){return Lv(s,vr(o)||0,g)});function lL(s){return Qr(s,L)}function No(s,o){if(typeof s!="function"||o!=null&&typeof o!="function")throw new fr(l);var g=function(){var T=arguments,P=o?o.apply(this,T):T[0],$=g.cache;if($.has(P))return $.get(P);var z=s.apply(this,T);return g.cache=$.set(P,z)||$,z};return g.cache=new(No.Cache||Zr),g}No.Cache=Zr;function Po(s){if(typeof s!="function")throw new fr(l);return function(){var o=arguments;switch(o.length){case 0:return!s.call(this);case 1:return!s.call(this,o[0]);case 2:return!s.call(this,o[0],o[1]);case 3:return!s.call(this,o[0],o[1],o[2])}return!s.apply(this,o)}}function uL(s){return qg(2,s)}var fL=YP(function(s,o){o=o.length==1&&Mt(o[0])?fe(o[0],tr(At())):fe(Pe(o,1),tr(At()));var g=o.length;return Bt(function(T){for(var P=-1,$=Le(T.length,g);++P<$;)T[P]=o[P].call(this,T[P]);return Qe(s,this,T)})}),kf=Bt(function(s,o){var g=gn(o,ji(kf));return Qr(s,A,r,o,g)}),Wg=Bt(function(s,o){var g=gn(o,ji(Wg));return Qr(s,C,r,o,g)}),cL=tn(function(s,o){return Qr(s,O,r,r,r,o)});function hL(s,o){if(typeof s!="function")throw new fr(l);return o=o===r?o:kt(o),Bt(s,o)}function dL(s,o){if(typeof s!="function")throw new fr(l);return o=o==null?0:Te(kt(o),0),Bt(function(g){var T=g[o],P=xn(g,0,o);return T&&vn(P,T),Qe(s,this,P)})}function pL(s,o,g){var T=!0,P=!0;if(typeof s!="function")throw new fr(l);return pe(g)&&(T="leading"in g?!!g.leading:T,P="trailing"in g?!!g.trailing:P),Vg(s,o,{leading:T,maxWait:o,trailing:P})}function vL(s){return Gg(s,1)}function gL(s,o){return kf(mf(o),s)}function yL(){if(!arguments.length)return[];var s=arguments[0];return Mt(s)?s:[s]}function mL(s){return hr(s,v)}function _L(s,o){return o=typeof o=="function"?o:r,hr(s,v,o)}function bL(s){return hr(s,p|v)}function xL(s,o){return o=typeof o=="function"?o:r,hr(s,p|v,o)}function EL(s,o){return o==null||kv(s,o,Re(o))}function Cr(s,o){return s===o||s!==s&&o!==o}var wL=To(af),TL=To(function(s,o){return s>=o}),Yn=$v(function(){return arguments}())?$v:function(s){return ge(s)&&te.call(s,"callee")&&!Sv.call(s,"callee")},Mt=rt.isArray,AL=ov?tr(ov):MP;function Ve(s){return s!=null&&Mo(s.length)&&!rn(s)}function me(s){return ge(s)&&Ve(s)}function SL(s){return s===!0||s===!1||ge(s)&&De(s)==tt}var En=$N||zf,OL=lv?tr(lv):kP;function IL(s){return ge(s)&&s.nodeType===1&&!ks(s)}function RL(s){if(s==null)return!0;if(Ve(s)&&(Mt(s)||typeof s=="string"||typeof s.splice=="function"||En(s)||Hi(s)||Yn(s)))return!s.length;var o=Fe(s);if(o==gt||o==pt)return!s.size;if(Ps(s))return!uf(s).length;for(var g in s)if(te.call(s,g))return!1;return!0}function CL(s,o){return Rs(s,o)}function NL(s,o,g){g=typeof g=="function"?g:r;var T=g?g(s,o):r;return T===r?Rs(s,o,r,g):!!T}function Lf(s){if(!ge(s))return!1;var o=De(s);return o==ht||o==st||typeof s.message=="string"&&typeof s.name=="string"&&!ks(s)}function PL(s){return typeof s=="number"&&Iv(s)}function rn(s){if(!pe(s))return!1;var o=De(s);return o==yt||o==_t||o==V||o==ot}function Xg(s){return typeof s=="number"&&s==kt(s)}function Mo(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=nt}function pe(s){var o=typeof s;return s!=null&&(o=="object"||o=="function")}function ge(s){return s!=null&&typeof s=="object"}var Kg=uv?tr(uv):FP;function ML(s,o){return s===o||lf(s,o,Af(o))}function kL(s,o,g){return g=typeof g=="function"?g:r,lf(s,o,Af(o),g)}function LL(s){return Yg(s)&&s!=+s}function FL(s){if(_M(s))throw new Ct(a);return Gv(s)}function BL(s){return s===null}function UL(s){return s==null}function Yg(s){return typeof s=="number"||ge(s)&&De(s)==It}function ks(s){if(!ge(s)||De(s)!=$t)return!1;var o=so(s);if(o===null)return!0;var g=te.call(o,"constructor")&&o.constructor;return typeof g=="function"&&g instanceof g&&eo.call(g)==kN}var Ff=fv?tr(fv):BP;function DL(s){return Xg(s)&&s>=-nt&&s<=nt}var Zg=cv?tr(cv):UP;function ko(s){return typeof s=="string"||!Mt(s)&&ge(s)&&De(s)==ft}function rr(s){return typeof s=="symbol"||ge(s)&&De(s)==Nt}var Hi=hv?tr(hv):DP;function $L(s){return s===r}function GL(s){return ge(s)&&Fe(s)==Pt}function qL(s){return ge(s)&&De(s)==He}var jL=To(ff),HL=To(function(s,o){return s<=o});function Jg(s){if(!s)return[];if(Ve(s))return ko(s)?Ir(s):ze(s);if(xs&&s[xs])return EN(s[xs]());var o=Fe(s),g=o==gt?Yu:o==pt?Ja:zi;return g(s)}function nn(s){if(!s)return s===0?s:0;if(s=vr(s),s===H||s===-H){var o=s<0?-1:1;return o*Y}return s===s?s:0}function kt(s){var o=nn(s),g=o%1;return o===o?g?o-g:o:0}function Qg(s){return s?Vn(kt(s),0,M):0}function vr(s){if(typeof s=="number")return s;if(rr(s))return D;if(pe(s)){var o=typeof s.valueOf=="function"?s.valueOf():s;s=pe(o)?o+"":o}if(typeof s!="string")return s===0?s:+s;s=mv(s);var g=AC.test(s);return g||OC.test(s)?sN(s.slice(2),g?2:8):TC.test(s)?D:+s}function ty(s){return $r(s,We(s))}function zL(s){return s?Vn(kt(s),-nt,nt):s===0?s:0}function Yt(s){return s==null?"":er(s)}var VL=Gi(function(s,o){if(Ps(o)||Ve(o)){$r(o,Re(o),s);return}for(var g in o)te.call(o,g)&&Ss(s,g,o[g])}),ey=Gi(function(s,o){$r(o,We(o),s)}),Lo=Gi(function(s,o,g,T){$r(o,We(o),s,T)}),WL=Gi(function(s,o,g,T){$r(o,Re(o),s,T)}),XL=tn(rf);function KL(s,o){var g=$i(s);return o==null?g:Mv(g,o)}var YL=Bt(function(s,o){s=ne(s);var g=-1,T=o.length,P=T>2?o[2]:r;for(P&&$e(o[0],o[1],P)&&(T=1);++g<T;)for(var $=o[g],z=We($),X=-1,Q=z.length;++X<Q;){var lt=z[X],ut=s[lt];(ut===r||Cr(ut,Bi[lt])&&!te.call(s,lt))&&(s[lt]=$[lt])}return s}),ZL=Bt(function(s){return s.push(r,mg),Qe(ry,r,s)});function JL(s,o){return pv(s,At(o,3),Dr)}function QL(s,o){return pv(s,At(o,3),sf)}function t3(s,o){return s==null?s:nf(s,At(o,3),We)}function e3(s,o){return s==null?s:Uv(s,At(o,3),We)}function r3(s,o){return s&&Dr(s,At(o,3))}function n3(s,o){return s&&sf(s,At(o,3))}function i3(s){return s==null?[]:go(s,Re(s))}function s3(s){return s==null?[]:go(s,We(s))}function Bf(s,o,g){var T=s==null?r:Wn(s,o);return T===r?g:T}function a3(s,o){return s!=null&&xg(s,o,RP)}function Uf(s,o){return s!=null&&xg(s,o,CP)}var o3=dg(function(s,o,g){o!=null&&typeof o.toString!="function"&&(o=ro.call(o)),s[o]=g},$f(Xe)),l3=dg(function(s,o,g){o!=null&&typeof o.toString!="function"&&(o=ro.call(o)),te.call(s,o)?s[o].push(g):s[o]=[g]},At),u3=Bt(Is);function Re(s){return Ve(s)?Nv(s):uf(s)}function We(s){return Ve(s)?Nv(s,!0):$P(s)}function f3(s,o){var g={};return o=At(o,3),Dr(s,function(T,P,$){Jr(g,o(T,P,$),T)}),g}function c3(s,o){var g={};return o=At(o,3),Dr(s,function(T,P,$){Jr(g,P,o(T,P,$))}),g}var h3=Gi(function(s,o,g){yo(s,o,g)}),ry=Gi(function(s,o,g,T){yo(s,o,g,T)}),d3=tn(function(s,o){var g={};if(s==null)return g;var T=!1;o=fe(o,function($){return $=bn($,s),T||(T=$.length>1),$}),$r(s,wf(s),g),T&&(g=hr(g,p|c|v,oM));for(var P=o.length;P--;)vf(g,o[P]);return g});function p3(s,o){return ny(s,Po(At(o)))}var v3=tn(function(s,o){return s==null?{}:qP(s,o)});function ny(s,o){if(s==null)return{};var g=fe(wf(s),function(T){return[T]});return o=At(o),Xv(s,g,function(T,P){return o(T,P[0])})}function g3(s,o,g){o=bn(o,s);var T=-1,P=o.length;for(P||(P=1,s=r);++T<P;){var $=s==null?r:s[Gr(o[T])];$===r&&(T=P,$=g),s=rn($)?$.call(s):$}return s}function y3(s,o,g){return s==null?s:Cs(s,o,g)}function m3(s,o,g,T){return T=typeof T=="function"?T:r,s==null?s:Cs(s,o,g,T)}var iy=gg(Re),sy=gg(We);function _3(s,o,g){var T=Mt(s),P=T||En(s)||Hi(s);if(o=At(o,4),g==null){var $=s&&s.constructor;P?g=T?new $:[]:pe(s)?g=rn($)?$i(so(s)):{}:g={}}return(P?ur:Dr)(s,function(z,X,Q){return o(g,z,X,Q)}),g}function b3(s,o){return s==null?!0:vf(s,o)}function x3(s,o,g){return s==null?s:Qv(s,o,mf(g))}function E3(s,o,g,T){return T=typeof T=="function"?T:r,s==null?s:Qv(s,o,mf(g),T)}function zi(s){return s==null?[]:Ku(s,Re(s))}function w3(s){return s==null?[]:Ku(s,We(s))}function T3(s,o,g){return g===r&&(g=o,o=r),g!==r&&(g=vr(g),g=g===g?g:0),o!==r&&(o=vr(o),o=o===o?o:0),Vn(vr(s),o,g)}function A3(s,o,g){return o=nn(o),g===r?(g=o,o=0):g=nn(g),s=vr(s),NP(s,o,g)}function S3(s,o,g){if(g&&typeof g!="boolean"&&$e(s,o,g)&&(o=g=r),g===r&&(typeof o=="boolean"?(g=o,o=r):typeof s=="boolean"&&(g=s,s=r)),s===r&&o===r?(s=0,o=1):(s=nn(s),o===r?(o=s,s=0):o=nn(o)),s>o){var T=s;s=o,o=T}if(g||s%1||o%1){var P=Rv();return Le(s+P*(o-s+iN("1e-"+((P+"").length-1))),o)}return hf(s,o)}var O3=qi(function(s,o,g){return o=o.toLowerCase(),s+(g?ay(o):o)});function ay(s){return Df(Yt(s).toLowerCase())}function oy(s){return s=Yt(s),s&&s.replace(RC,yN).replace(XC,"")}function I3(s,o,g){s=Yt(s),o=er(o);var T=s.length;g=g===r?T:Vn(kt(g),0,T);var P=g;return g-=o.length,g>=0&&s.slice(g,P)==o}function R3(s){return s=Yt(s),s&&uC.test(s)?s.replace(Up,mN):s}function C3(s){return s=Yt(s),s&&vC.test(s)?s.replace(Mu,"\\$&"):s}var N3=qi(function(s,o,g){return s+(g?"-":"")+o.toLowerCase()}),P3=qi(function(s,o,g){return s+(g?" ":"")+o.toLowerCase()}),M3=fg("toLowerCase");function k3(s,o,g){s=Yt(s),o=kt(o);var T=o?Li(s):0;if(!o||T>=o)return s;var P=(o-T)/2;return wo(uo(P),g)+s+wo(lo(P),g)}function L3(s,o,g){s=Yt(s),o=kt(o);var T=o?Li(s):0;return o&&T<o?s+wo(o-T,g):s}function F3(s,o,g){s=Yt(s),o=kt(o);var T=o?Li(s):0;return o&&T<o?wo(o-T,g)+s:s}function B3(s,o,g){return g||o==null?o=0:o&&(o=+o),HN(Yt(s).replace(ku,""),o||0)}function U3(s,o,g){return(g?$e(s,o,g):o===r)?o=1:o=kt(o),df(Yt(s),o)}function D3(){var s=arguments,o=Yt(s[0]);return s.length<3?o:o.replace(s[1],s[2])}var $3=qi(function(s,o,g){return s+(g?"_":"")+o.toLowerCase()});function G3(s,o,g){return g&&typeof g!="number"&&$e(s,o,g)&&(o=g=r),g=g===r?M:g>>>0,g?(s=Yt(s),s&&(typeof o=="string"||o!=null&&!Ff(o))&&(o=er(o),!o&&ki(s))?xn(Ir(s),0,g):s.split(o,g)):[]}var q3=qi(function(s,o,g){return s+(g?" ":"")+Df(o)});function j3(s,o,g){return s=Yt(s),g=g==null?0:Vn(kt(g),0,s.length),o=er(o),s.slice(g,g+o.length)==o}function H3(s,o,g){var T=B.templateSettings;g&&$e(s,o,g)&&(o=r),s=Yt(s),o=Lo({},o,T,yg);var P=Lo({},o.imports,T.imports,yg),$=Re(P),z=Ku(P,$),X,Q,lt=0,ut=o.interpolate||Wa,ct="__p += '",vt=Zu((o.escape||Wa).source+"|"+ut.source+"|"+(ut===Dp?wC:Wa).source+"|"+(o.evaluate||Wa).source+"|$","g"),Et="//# sourceURL="+(te.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++QC+"]")+`
|
|
560
|
-
`;s.replace(
|
|
559
|
+
`)}function gM(s){return Mt(s)||Yn(s)||!!(Ov&&s&&s[Ov])}function en(s,o){var g=typeof s;return o=o??nt,!!o&&(g=="number"||g!="symbol"&&IC.test(s))&&s>-1&&s%1==0&&s<o}function $e(s,o,g){if(!pe(g))return!1;var T=typeof o;return(T=="number"?Ve(g)&&en(o,g.length):T=="string"&&o in g)?Cr(g[o],s):!1}function Of(s,o){if(Mt(s))return!1;var g=typeof s;return g=="number"||g=="symbol"||g=="boolean"||s==null||rr(s)?!0:dC.test(s)||!hC.test(s)||o!=null&&s in ne(o)}function yM(s){var o=typeof s;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?s!=="__proto__":s===null}function If(s){var o=Ao(s),g=B[o];if(typeof g!="function"||!(o in Gt.prototype))return!1;if(s===g)return!0;var T=Tf(g);return!!T&&s===T[0]}function mM(s){return!!wv&&wv in s}var _M=to?rn:zf;function Ps(s){var o=s&&s.constructor,g=typeof o=="function"&&o.prototype||Bi;return s===g}function wg(s){return s===s&&!pe(s)}function Tg(s,o){return function(g){return g==null?!1:g[s]===o&&(o!==r||s in ne(g))}}function bM(s){var o=No(s,function(T){return g.size===h&&g.clear(),T}),g=o.cache;return o}function xM(s,o){var g=s[1],T=o[1],P=g|T,$=P<(b|_|S),z=T==S&&g==w||T==S&&g==O&&s[7].length<=o[8]||T==(S|O)&&o[7].length<=o[8]&&g==w;if(!($||z))return s;T&b&&(s[2]=o[2],P|=g&b?0:E);var X=o[3];if(X){var Q=s[3];s[3]=Q?ag(Q,X,o[4]):X,s[4]=Q?gn(s[3],d):o[4]}return X=o[5],X&&(Q=s[5],s[5]=Q?og(Q,X,o[6]):X,s[6]=Q?gn(s[5],d):o[6]),X=o[7],X&&(s[7]=X),T&S&&(s[8]=s[8]==null?o[8]:Le(s[8],o[8])),s[9]==null&&(s[9]=o[9]),s[0]=o[0],s[1]=P,s}function EM(s){var o=[];if(s!=null)for(var g in ne(s))o.push(g);return o}function wM(s){return ro.call(s)}function Ag(s,o,g){return o=Te(o===r?s.length-1:o,0),function(){for(var T=arguments,P=-1,$=Te(T.length-o,0),z=rt($);++P<$;)z[P]=T[o+P];P=-1;for(var X=rt(o+1);++P<o;)X[P]=T[P];return X[o]=g(z),Qe(s,this,X)}}function Sg(s,o){return o.length<2?s:Wn(s,dr(o,0,-1))}function TM(s,o){for(var g=s.length,T=Le(o.length,g),P=ze(s);T--;){var $=o[T];s[T]=en($,g)?P[$]:r}return s}function Rf(s,o){if(!(o==="constructor"&&typeof s[o]=="function")&&o!="__proto__")return s[o]}var Og=Rg(Yv),Ms=DN||function(s,o){return Ne.setTimeout(s,o)},Cf=Rg(WP);function Ig(s,o,g){var T=o+"";return Cf(s,vM(T,AM(hM(T),g)))}function Rg(s){var o=0,g=0;return function(){var T=jN(),P=k-(T-g);if(g=T,P>0){if(++o>=N)return arguments[0]}else o=0;return s.apply(r,arguments)}}function Oo(s,o){var g=-1,T=s.length,P=T-1;for(o=o===r?T:o;++g<o;){var $=hf(g,P),z=s[$];s[$]=s[g],s[g]=z}return s.length=o,s}var Cg=bM(function(s){var o=[];return s.charCodeAt(0)===46&&o.push(""),s.replace(pC,function(g,T,P,$){o.push(P?$.replace(EC,"$1"):T||g)}),o});function Gr(s){if(typeof s=="string"||rr(s))return s;var o=s+"";return o=="0"&&1/s==-H?"-0":o}function Kn(s){if(s!=null){try{return eo.call(s)}catch{}try{return s+""}catch{}}return""}function AM(s,o){return ur(W,function(g){var T="_."+g[0];o&g[1]&&!Ya(s,T)&&s.push(T)}),s.sort()}function Ng(s){if(s instanceof Gt)return s.clone();var o=new cr(s.__wrapped__,s.__chain__);return o.__actions__=ze(s.__actions__),o.__index__=s.__index__,o.__values__=s.__values__,o}function SM(s,o,g){(g?$e(s,o,g):o===r)?o=1:o=Te(kt(o),0);var T=s==null?0:s.length;if(!T||o<1)return[];for(var P=0,$=0,z=rt(lo(T/o));P<T;)z[$++]=dr(s,P,P+=o);return z}function OM(s){for(var o=-1,g=s==null?0:s.length,T=0,P=[];++o<g;){var $=s[o];$&&(P[T++]=$)}return P}function IM(){var s=arguments.length;if(!s)return[];for(var o=rt(s-1),g=arguments[0],T=s;T--;)o[T-1]=arguments[T];return vn(Mt(g)?ze(g):[g],Pe(o,1))}var RM=Bt(function(s,o){return me(s)?Os(s,Pe(o,1,me,!0)):[]}),CM=Bt(function(s,o){var g=pr(o);return me(g)&&(g=r),me(s)?Os(s,Pe(o,1,me,!0),At(g,2)):[]}),NM=Bt(function(s,o){var g=pr(o);return me(g)&&(g=r),me(s)?Os(s,Pe(o,1,me,!0),r,g):[]});function PM(s,o,g){var T=s==null?0:s.length;return T?(o=g||o===r?1:kt(o),dr(s,o<0?0:o,T)):[]}function MM(s,o,g){var T=s==null?0:s.length;return T?(o=g||o===r?1:kt(o),o=T-o,dr(s,0,o<0?0:o)):[]}function kM(s,o){return s&&s.length?_o(s,At(o,3),!0,!0):[]}function LM(s,o){return s&&s.length?_o(s,At(o,3),!0):[]}function FM(s,o,g,T){var P=s==null?0:s.length;return P?(g&&typeof g!="number"&&$e(s,o,g)&&(g=0,T=P),IP(s,o,g,T)):[]}function Pg(s,o,g){var T=s==null?0:s.length;if(!T)return-1;var P=g==null?0:kt(g);return P<0&&(P=Te(T+P,0)),Za(s,At(o,3),P)}function Mg(s,o,g){var T=s==null?0:s.length;if(!T)return-1;var P=T-1;return g!==r&&(P=kt(g),P=g<0?Te(T+P,0):Le(P,T-1)),Za(s,At(o,3),P,!0)}function kg(s){var o=s==null?0:s.length;return o?Pe(s,1):[]}function BM(s){var o=s==null?0:s.length;return o?Pe(s,H):[]}function UM(s,o){var g=s==null?0:s.length;return g?(o=o===r?1:kt(o),Pe(s,o)):[]}function DM(s){for(var o=-1,g=s==null?0:s.length,T={};++o<g;){var P=s[o];T[P[0]]=P[1]}return T}function Lg(s){return s&&s.length?s[0]:r}function $M(s,o,g){var T=s==null?0:s.length;if(!T)return-1;var P=g==null?0:kt(g);return P<0&&(P=Te(T+P,0)),Mi(s,o,P)}function GM(s){var o=s==null?0:s.length;return o?dr(s,0,-1):[]}var qM=Bt(function(s){var o=fe(s,yf);return o.length&&o[0]===s[0]?of(o):[]}),jM=Bt(function(s){var o=pr(s),g=fe(s,yf);return o===pr(g)?o=r:g.pop(),g.length&&g[0]===s[0]?of(g,At(o,2)):[]}),HM=Bt(function(s){var o=pr(s),g=fe(s,yf);return o=typeof o=="function"?o:r,o&&g.pop(),g.length&&g[0]===s[0]?of(g,r,o):[]});function zM(s,o){return s==null?"":GN.call(s,o)}function pr(s){var o=s==null?0:s.length;return o?s[o-1]:r}function VM(s,o,g){var T=s==null?0:s.length;if(!T)return-1;var P=T;return g!==r&&(P=kt(g),P=P<0?Te(T+P,0):Le(P,T-1)),o===o?AN(s,o,P):Za(s,vv,P,!0)}function WM(s,o){return s&&s.length?Vv(s,kt(o)):r}var XM=Bt(Fg);function Fg(s,o){return s&&s.length&&o&&o.length?cf(s,o):s}function KM(s,o,g){return s&&s.length&&o&&o.length?cf(s,o,At(g,2)):s}function YM(s,o,g){return s&&s.length&&o&&o.length?cf(s,o,r,g):s}var ZM=tn(function(s,o){var g=s==null?0:s.length,T=rf(s,o);return Kv(s,fe(o,function(P){return en(P,g)?+P:P}).sort(sg)),T});function JM(s,o){var g=[];if(!(s&&s.length))return g;var T=-1,P=[],$=s.length;for(o=At(o,3);++T<$;){var z=s[T];o(z,T,s)&&(g.push(z),P.push(T))}return Kv(s,P),g}function Nf(s){return s==null?s:zN.call(s)}function QM(s,o,g){var T=s==null?0:s.length;return T?(g&&typeof g!="number"&&$e(s,o,g)?(o=0,g=T):(o=o==null?0:kt(o),g=g===r?T:kt(g)),dr(s,o,g)):[]}function tk(s,o){return mo(s,o)}function ek(s,o,g){return pf(s,o,At(g,2))}function rk(s,o){var g=s==null?0:s.length;if(g){var T=mo(s,o);if(T<g&&Cr(s[T],o))return T}return-1}function nk(s,o){return mo(s,o,!0)}function ik(s,o,g){return pf(s,o,At(g,2),!0)}function sk(s,o){var g=s==null?0:s.length;if(g){var T=mo(s,o,!0)-1;if(Cr(s[T],o))return T}return-1}function ak(s){return s&&s.length?Zv(s):[]}function ok(s,o){return s&&s.length?Zv(s,At(o,2)):[]}function lk(s){var o=s==null?0:s.length;return o?dr(s,1,o):[]}function uk(s,o,g){return s&&s.length?(o=g||o===r?1:kt(o),dr(s,0,o<0?0:o)):[]}function fk(s,o,g){var T=s==null?0:s.length;return T?(o=g||o===r?1:kt(o),o=T-o,dr(s,o<0?0:o,T)):[]}function ck(s,o){return s&&s.length?_o(s,At(o,3),!1,!0):[]}function hk(s,o){return s&&s.length?_o(s,At(o,3)):[]}var dk=Bt(function(s){return _n(Pe(s,1,me,!0))}),pk=Bt(function(s){var o=pr(s);return me(o)&&(o=r),_n(Pe(s,1,me,!0),At(o,2))}),vk=Bt(function(s){var o=pr(s);return o=typeof o=="function"?o:r,_n(Pe(s,1,me,!0),r,o)});function gk(s){return s&&s.length?_n(s):[]}function yk(s,o){return s&&s.length?_n(s,At(o,2)):[]}function mk(s,o){return o=typeof o=="function"?o:r,s&&s.length?_n(s,r,o):[]}function Pf(s){if(!(s&&s.length))return[];var o=0;return s=pn(s,function(g){if(me(g))return o=Te(g.length,o),!0}),Xu(o,function(g){return fe(s,zu(g))})}function Bg(s,o){if(!(s&&s.length))return[];var g=Pf(s);return o==null?g:fe(g,function(T){return Qe(o,r,T)})}var _k=Bt(function(s,o){return me(s)?Os(s,o):[]}),bk=Bt(function(s){return gf(pn(s,me))}),xk=Bt(function(s){var o=pr(s);return me(o)&&(o=r),gf(pn(s,me),At(o,2))}),Ek=Bt(function(s){var o=pr(s);return o=typeof o=="function"?o:r,gf(pn(s,me),r,o)}),wk=Bt(Pf);function Tk(s,o){return eg(s||[],o||[],Ss)}function Ak(s,o){return eg(s||[],o||[],Cs)}var Sk=Bt(function(s){var o=s.length,g=o>1?s[o-1]:r;return g=typeof g=="function"?(s.pop(),g):r,Bg(s,g)});function Ug(s){var o=B(s);return o.__chain__=!0,o}function Ok(s,o){return o(s),s}function Io(s,o){return o(s)}var Ik=tn(function(s){var o=s.length,g=o?s[0]:0,T=this.__wrapped__,P=function($){return rf($,s)};return o>1||this.__actions__.length||!(T instanceof Gt)||!en(g)?this.thru(P):(T=T.slice(g,+g+(o?1:0)),T.__actions__.push({func:Io,args:[P],thisArg:r}),new cr(T,this.__chain__).thru(function($){return o&&!$.length&&$.push(r),$}))});function Rk(){return Ug(this)}function Ck(){return new cr(this.value(),this.__chain__)}function Nk(){this.__values__===r&&(this.__values__=Jg(this.value()));var s=this.__index__>=this.__values__.length,o=s?r:this.__values__[this.__index__++];return{done:s,value:o}}function Pk(){return this}function Mk(s){for(var o,g=this;g instanceof ho;){var T=Ng(g);T.__index__=0,T.__values__=r,o?P.__wrapped__=T:o=T;var P=T;g=g.__wrapped__}return P.__wrapped__=s,o}function kk(){var s=this.__wrapped__;if(s instanceof Gt){var o=s;return this.__actions__.length&&(o=new Gt(this)),o=o.reverse(),o.__actions__.push({func:Io,args:[Nf],thisArg:r}),new cr(o,this.__chain__)}return this.thru(Nf)}function Lk(){return tg(this.__wrapped__,this.__actions__)}var Fk=bo(function(s,o,g){te.call(s,g)?++s[g]:Jr(s,g,1)});function Bk(s,o,g){var T=Mt(s)?dv:OP;return g&&$e(s,o,g)&&(o=r),T(s,At(o,3))}function Uk(s,o){var g=Mt(s)?pn:Bv;return g(s,At(o,3))}var Dk=cg(Pg),$k=cg(Mg);function Gk(s,o){return Pe(Ro(s,o),1)}function qk(s,o){return Pe(Ro(s,o),H)}function jk(s,o,g){return g=g===r?1:kt(g),Pe(Ro(s,o),g)}function Dg(s,o){var g=Mt(s)?ur:mn;return g(s,At(o,3))}function $g(s,o){var g=Mt(s)?lN:Fv;return g(s,At(o,3))}var Hk=bo(function(s,o,g){te.call(s,g)?s[g].push(o):Jr(s,g,[o])});function zk(s,o,g,T){s=Ve(s)?s:zi(s),g=g&&!T?kt(g):0;var P=s.length;return g<0&&(g=Te(P+g,0)),ko(s)?g<=P&&s.indexOf(o,g)>-1:!!P&&Mi(s,o,g)>-1}var Vk=Bt(function(s,o,g){var T=-1,P=typeof o=="function",$=Ve(s)?rt(s.length):[];return mn(s,function(z){$[++T]=P?Qe(o,z,g):Is(z,o,g)}),$}),Wk=bo(function(s,o,g){Jr(s,g,o)});function Ro(s,o){var g=Mt(s)?fe:jv;return g(s,At(o,3))}function Xk(s,o,g,T){return s==null?[]:(Mt(o)||(o=o==null?[]:[o]),g=T?r:g,Mt(g)||(g=g==null?[]:[g]),Wv(s,o,g))}var Kk=bo(function(s,o,g){s[g?0:1].push(o)},function(){return[[],[]]});function Yk(s,o,g){var T=Mt(s)?ju:yv,P=arguments.length<3;return T(s,At(o,4),g,P,mn)}function Zk(s,o,g){var T=Mt(s)?uN:yv,P=arguments.length<3;return T(s,At(o,4),g,P,Fv)}function Jk(s,o){var g=Mt(s)?pn:Bv;return g(s,Po(At(o,3)))}function Qk(s){var o=Mt(s)?Pv:zP;return o(s)}function tL(s,o,g){(g?$e(s,o,g):o===r)?o=1:o=kt(o);var T=Mt(s)?EP:VP;return T(s,o)}function eL(s){var o=Mt(s)?wP:XP;return o(s)}function rL(s){if(s==null)return 0;if(Ve(s))return ko(s)?Li(s):s.length;var o=Fe(s);return o==vt||o==pt?s.size:uf(s).length}function nL(s,o,g){var T=Mt(s)?Hu:KP;return g&&$e(s,o,g)&&(o=r),T(s,At(o,3))}var iL=Bt(function(s,o){if(s==null)return[];var g=o.length;return g>1&&$e(s,o[0],o[1])?o=[]:g>2&&$e(o[0],o[1],o[2])&&(o=[o[0]]),Wv(s,Pe(o,1),[])}),Co=UN||function(){return Ne.Date.now()};function sL(s,o){if(typeof o!="function")throw new fr(l);return s=kt(s),function(){if(--s<1)return o.apply(this,arguments)}}function Gg(s,o,g){return o=g?r:o,o=s&&o==null?s.length:o,Qr(s,S,r,r,r,r,o)}function qg(s,o){var g;if(typeof o!="function")throw new fr(l);return s=kt(s),function(){return--s>0&&(g=o.apply(this,arguments)),s<=1&&(o=r),g}}var Mf=Bt(function(s,o,g){var T=b;if(g.length){var P=gn(g,ji(Mf));T|=A}return Qr(s,T,o,g,P)}),jg=Bt(function(s,o,g){var T=b|_;if(g.length){var P=gn(g,ji(jg));T|=A}return Qr(o,T,s,g,P)});function Hg(s,o,g){o=g?r:o;var T=Qr(s,w,r,r,r,r,r,o);return T.placeholder=Hg.placeholder,T}function zg(s,o,g){o=g?r:o;var T=Qr(s,x,r,r,r,r,r,o);return T.placeholder=zg.placeholder,T}function Vg(s,o,g){var T,P,$,z,X,Q,lt=0,ut=!1,ct=!1,gt=!0;if(typeof s!="function")throw new fr(l);o=vr(o)||0,pe(g)&&(ut=!!g.leading,ct="maxWait"in g,$=ct?Te(vr(g.maxWait)||0,o):$,gt="trailing"in g?!!g.trailing:gt);function Et(_e){var Nr=T,sn=P;return T=P=r,lt=_e,z=s.apply(sn,Nr),z}function St(_e){return lt=_e,X=Ms(Ut,o),ut?Et(_e):z}function Ft(_e){var Nr=_e-Q,sn=_e-lt,cy=o-Nr;return ct?Le(cy,$-sn):cy}function Ot(_e){var Nr=_e-Q,sn=_e-lt;return Q===r||Nr>=o||Nr<0||ct&&sn>=$}function Ut(){var _e=Co();if(Ot(_e))return jt(_e);X=Ms(Ut,Ft(_e))}function jt(_e){return X=r,gt&&T?Et(_e):(T=P=r,z)}function nr(){X!==r&&rg(X),lt=0,T=Q=P=X=r}function Ge(){return X===r?z:jt(Co())}function ir(){var _e=Co(),Nr=Ot(_e);if(T=arguments,P=this,Q=_e,Nr){if(X===r)return St(Q);if(ct)return rg(X),X=Ms(Ut,o),Et(Q)}return X===r&&(X=Ms(Ut,o)),z}return ir.cancel=nr,ir.flush=Ge,ir}var aL=Bt(function(s,o){return Lv(s,1,o)}),oL=Bt(function(s,o,g){return Lv(s,vr(o)||0,g)});function lL(s){return Qr(s,L)}function No(s,o){if(typeof s!="function"||o!=null&&typeof o!="function")throw new fr(l);var g=function(){var T=arguments,P=o?o.apply(this,T):T[0],$=g.cache;if($.has(P))return $.get(P);var z=s.apply(this,T);return g.cache=$.set(P,z)||$,z};return g.cache=new(No.Cache||Zr),g}No.Cache=Zr;function Po(s){if(typeof s!="function")throw new fr(l);return function(){var o=arguments;switch(o.length){case 0:return!s.call(this);case 1:return!s.call(this,o[0]);case 2:return!s.call(this,o[0],o[1]);case 3:return!s.call(this,o[0],o[1],o[2])}return!s.apply(this,o)}}function uL(s){return qg(2,s)}var fL=YP(function(s,o){o=o.length==1&&Mt(o[0])?fe(o[0],tr(At())):fe(Pe(o,1),tr(At()));var g=o.length;return Bt(function(T){for(var P=-1,$=Le(T.length,g);++P<$;)T[P]=o[P].call(this,T[P]);return Qe(s,this,T)})}),kf=Bt(function(s,o){var g=gn(o,ji(kf));return Qr(s,A,r,o,g)}),Wg=Bt(function(s,o){var g=gn(o,ji(Wg));return Qr(s,C,r,o,g)}),cL=tn(function(s,o){return Qr(s,O,r,r,r,o)});function hL(s,o){if(typeof s!="function")throw new fr(l);return o=o===r?o:kt(o),Bt(s,o)}function dL(s,o){if(typeof s!="function")throw new fr(l);return o=o==null?0:Te(kt(o),0),Bt(function(g){var T=g[o],P=xn(g,0,o);return T&&vn(P,T),Qe(s,this,P)})}function pL(s,o,g){var T=!0,P=!0;if(typeof s!="function")throw new fr(l);return pe(g)&&(T="leading"in g?!!g.leading:T,P="trailing"in g?!!g.trailing:P),Vg(s,o,{leading:T,maxWait:o,trailing:P})}function vL(s){return Gg(s,1)}function gL(s,o){return kf(mf(o),s)}function yL(){if(!arguments.length)return[];var s=arguments[0];return Mt(s)?s:[s]}function mL(s){return hr(s,v)}function _L(s,o){return o=typeof o=="function"?o:r,hr(s,v,o)}function bL(s){return hr(s,p|v)}function xL(s,o){return o=typeof o=="function"?o:r,hr(s,p|v,o)}function EL(s,o){return o==null||kv(s,o,Re(o))}function Cr(s,o){return s===o||s!==s&&o!==o}var wL=To(af),TL=To(function(s,o){return s>=o}),Yn=$v(function(){return arguments}())?$v:function(s){return ge(s)&&te.call(s,"callee")&&!Sv.call(s,"callee")},Mt=rt.isArray,AL=ov?tr(ov):MP;function Ve(s){return s!=null&&Mo(s.length)&&!rn(s)}function me(s){return ge(s)&&Ve(s)}function SL(s){return s===!0||s===!1||ge(s)&&De(s)==tt}var En=$N||zf,OL=lv?tr(lv):kP;function IL(s){return ge(s)&&s.nodeType===1&&!ks(s)}function RL(s){if(s==null)return!0;if(Ve(s)&&(Mt(s)||typeof s=="string"||typeof s.splice=="function"||En(s)||Hi(s)||Yn(s)))return!s.length;var o=Fe(s);if(o==vt||o==pt)return!s.size;if(Ps(s))return!uf(s).length;for(var g in s)if(te.call(s,g))return!1;return!0}function CL(s,o){return Rs(s,o)}function NL(s,o,g){g=typeof g=="function"?g:r;var T=g?g(s,o):r;return T===r?Rs(s,o,r,g):!!T}function Lf(s){if(!ge(s))return!1;var o=De(s);return o==ht||o==st||typeof s.message=="string"&&typeof s.name=="string"&&!ks(s)}function PL(s){return typeof s=="number"&&Iv(s)}function rn(s){if(!pe(s))return!1;var o=De(s);return o==yt||o==_t||o==V||o==ot}function Xg(s){return typeof s=="number"&&s==kt(s)}function Mo(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=nt}function pe(s){var o=typeof s;return s!=null&&(o=="object"||o=="function")}function ge(s){return s!=null&&typeof s=="object"}var Kg=uv?tr(uv):FP;function ML(s,o){return s===o||lf(s,o,Af(o))}function kL(s,o,g){return g=typeof g=="function"?g:r,lf(s,o,Af(o),g)}function LL(s){return Yg(s)&&s!=+s}function FL(s){if(_M(s))throw new Ct(a);return Gv(s)}function BL(s){return s===null}function UL(s){return s==null}function Yg(s){return typeof s=="number"||ge(s)&&De(s)==It}function ks(s){if(!ge(s)||De(s)!=$t)return!1;var o=so(s);if(o===null)return!0;var g=te.call(o,"constructor")&&o.constructor;return typeof g=="function"&&g instanceof g&&eo.call(g)==kN}var Ff=fv?tr(fv):BP;function DL(s){return Xg(s)&&s>=-nt&&s<=nt}var Zg=cv?tr(cv):UP;function ko(s){return typeof s=="string"||!Mt(s)&&ge(s)&&De(s)==ft}function rr(s){return typeof s=="symbol"||ge(s)&&De(s)==Nt}var Hi=hv?tr(hv):DP;function $L(s){return s===r}function GL(s){return ge(s)&&Fe(s)==Pt}function qL(s){return ge(s)&&De(s)==He}var jL=To(ff),HL=To(function(s,o){return s<=o});function Jg(s){if(!s)return[];if(Ve(s))return ko(s)?Ir(s):ze(s);if(xs&&s[xs])return EN(s[xs]());var o=Fe(s),g=o==vt?Yu:o==pt?Ja:zi;return g(s)}function nn(s){if(!s)return s===0?s:0;if(s=vr(s),s===H||s===-H){var o=s<0?-1:1;return o*Y}return s===s?s:0}function kt(s){var o=nn(s),g=o%1;return o===o?g?o-g:o:0}function Qg(s){return s?Vn(kt(s),0,M):0}function vr(s){if(typeof s=="number")return s;if(rr(s))return D;if(pe(s)){var o=typeof s.valueOf=="function"?s.valueOf():s;s=pe(o)?o+"":o}if(typeof s!="string")return s===0?s:+s;s=mv(s);var g=AC.test(s);return g||OC.test(s)?sN(s.slice(2),g?2:8):TC.test(s)?D:+s}function ty(s){return $r(s,We(s))}function zL(s){return s?Vn(kt(s),-nt,nt):s===0?s:0}function Yt(s){return s==null?"":er(s)}var VL=Gi(function(s,o){if(Ps(o)||Ve(o)){$r(o,Re(o),s);return}for(var g in o)te.call(o,g)&&Ss(s,g,o[g])}),ey=Gi(function(s,o){$r(o,We(o),s)}),Lo=Gi(function(s,o,g,T){$r(o,We(o),s,T)}),WL=Gi(function(s,o,g,T){$r(o,Re(o),s,T)}),XL=tn(rf);function KL(s,o){var g=$i(s);return o==null?g:Mv(g,o)}var YL=Bt(function(s,o){s=ne(s);var g=-1,T=o.length,P=T>2?o[2]:r;for(P&&$e(o[0],o[1],P)&&(T=1);++g<T;)for(var $=o[g],z=We($),X=-1,Q=z.length;++X<Q;){var lt=z[X],ut=s[lt];(ut===r||Cr(ut,Bi[lt])&&!te.call(s,lt))&&(s[lt]=$[lt])}return s}),ZL=Bt(function(s){return s.push(r,mg),Qe(ry,r,s)});function JL(s,o){return pv(s,At(o,3),Dr)}function QL(s,o){return pv(s,At(o,3),sf)}function t3(s,o){return s==null?s:nf(s,At(o,3),We)}function e3(s,o){return s==null?s:Uv(s,At(o,3),We)}function r3(s,o){return s&&Dr(s,At(o,3))}function n3(s,o){return s&&sf(s,At(o,3))}function i3(s){return s==null?[]:go(s,Re(s))}function s3(s){return s==null?[]:go(s,We(s))}function Bf(s,o,g){var T=s==null?r:Wn(s,o);return T===r?g:T}function a3(s,o){return s!=null&&xg(s,o,RP)}function Uf(s,o){return s!=null&&xg(s,o,CP)}var o3=dg(function(s,o,g){o!=null&&typeof o.toString!="function"&&(o=ro.call(o)),s[o]=g},$f(Xe)),l3=dg(function(s,o,g){o!=null&&typeof o.toString!="function"&&(o=ro.call(o)),te.call(s,o)?s[o].push(g):s[o]=[g]},At),u3=Bt(Is);function Re(s){return Ve(s)?Nv(s):uf(s)}function We(s){return Ve(s)?Nv(s,!0):$P(s)}function f3(s,o){var g={};return o=At(o,3),Dr(s,function(T,P,$){Jr(g,o(T,P,$),T)}),g}function c3(s,o){var g={};return o=At(o,3),Dr(s,function(T,P,$){Jr(g,P,o(T,P,$))}),g}var h3=Gi(function(s,o,g){yo(s,o,g)}),ry=Gi(function(s,o,g,T){yo(s,o,g,T)}),d3=tn(function(s,o){var g={};if(s==null)return g;var T=!1;o=fe(o,function($){return $=bn($,s),T||(T=$.length>1),$}),$r(s,wf(s),g),T&&(g=hr(g,p|c|v,oM));for(var P=o.length;P--;)vf(g,o[P]);return g});function p3(s,o){return ny(s,Po(At(o)))}var v3=tn(function(s,o){return s==null?{}:qP(s,o)});function ny(s,o){if(s==null)return{};var g=fe(wf(s),function(T){return[T]});return o=At(o),Xv(s,g,function(T,P){return o(T,P[0])})}function g3(s,o,g){o=bn(o,s);var T=-1,P=o.length;for(P||(P=1,s=r);++T<P;){var $=s==null?r:s[Gr(o[T])];$===r&&(T=P,$=g),s=rn($)?$.call(s):$}return s}function y3(s,o,g){return s==null?s:Cs(s,o,g)}function m3(s,o,g,T){return T=typeof T=="function"?T:r,s==null?s:Cs(s,o,g,T)}var iy=gg(Re),sy=gg(We);function _3(s,o,g){var T=Mt(s),P=T||En(s)||Hi(s);if(o=At(o,4),g==null){var $=s&&s.constructor;P?g=T?new $:[]:pe(s)?g=rn($)?$i(so(s)):{}:g={}}return(P?ur:Dr)(s,function(z,X,Q){return o(g,z,X,Q)}),g}function b3(s,o){return s==null?!0:vf(s,o)}function x3(s,o,g){return s==null?s:Qv(s,o,mf(g))}function E3(s,o,g,T){return T=typeof T=="function"?T:r,s==null?s:Qv(s,o,mf(g),T)}function zi(s){return s==null?[]:Ku(s,Re(s))}function w3(s){return s==null?[]:Ku(s,We(s))}function T3(s,o,g){return g===r&&(g=o,o=r),g!==r&&(g=vr(g),g=g===g?g:0),o!==r&&(o=vr(o),o=o===o?o:0),Vn(vr(s),o,g)}function A3(s,o,g){return o=nn(o),g===r?(g=o,o=0):g=nn(g),s=vr(s),NP(s,o,g)}function S3(s,o,g){if(g&&typeof g!="boolean"&&$e(s,o,g)&&(o=g=r),g===r&&(typeof o=="boolean"?(g=o,o=r):typeof s=="boolean"&&(g=s,s=r)),s===r&&o===r?(s=0,o=1):(s=nn(s),o===r?(o=s,s=0):o=nn(o)),s>o){var T=s;s=o,o=T}if(g||s%1||o%1){var P=Rv();return Le(s+P*(o-s+iN("1e-"+((P+"").length-1))),o)}return hf(s,o)}var O3=qi(function(s,o,g){return o=o.toLowerCase(),s+(g?ay(o):o)});function ay(s){return Df(Yt(s).toLowerCase())}function oy(s){return s=Yt(s),s&&s.replace(RC,yN).replace(XC,"")}function I3(s,o,g){s=Yt(s),o=er(o);var T=s.length;g=g===r?T:Vn(kt(g),0,T);var P=g;return g-=o.length,g>=0&&s.slice(g,P)==o}function R3(s){return s=Yt(s),s&&uC.test(s)?s.replace(Up,mN):s}function C3(s){return s=Yt(s),s&&vC.test(s)?s.replace(Mu,"\\$&"):s}var N3=qi(function(s,o,g){return s+(g?"-":"")+o.toLowerCase()}),P3=qi(function(s,o,g){return s+(g?" ":"")+o.toLowerCase()}),M3=fg("toLowerCase");function k3(s,o,g){s=Yt(s),o=kt(o);var T=o?Li(s):0;if(!o||T>=o)return s;var P=(o-T)/2;return wo(uo(P),g)+s+wo(lo(P),g)}function L3(s,o,g){s=Yt(s),o=kt(o);var T=o?Li(s):0;return o&&T<o?s+wo(o-T,g):s}function F3(s,o,g){s=Yt(s),o=kt(o);var T=o?Li(s):0;return o&&T<o?wo(o-T,g)+s:s}function B3(s,o,g){return g||o==null?o=0:o&&(o=+o),HN(Yt(s).replace(ku,""),o||0)}function U3(s,o,g){return(g?$e(s,o,g):o===r)?o=1:o=kt(o),df(Yt(s),o)}function D3(){var s=arguments,o=Yt(s[0]);return s.length<3?o:o.replace(s[1],s[2])}var $3=qi(function(s,o,g){return s+(g?"_":"")+o.toLowerCase()});function G3(s,o,g){return g&&typeof g!="number"&&$e(s,o,g)&&(o=g=r),g=g===r?M:g>>>0,g?(s=Yt(s),s&&(typeof o=="string"||o!=null&&!Ff(o))&&(o=er(o),!o&&ki(s))?xn(Ir(s),0,g):s.split(o,g)):[]}var q3=qi(function(s,o,g){return s+(g?" ":"")+Df(o)});function j3(s,o,g){return s=Yt(s),g=g==null?0:Vn(kt(g),0,s.length),o=er(o),s.slice(g,g+o.length)==o}function H3(s,o,g){var T=B.templateSettings;g&&$e(s,o,g)&&(o=r),s=Yt(s),o=Lo({},o,T,yg);var P=Lo({},o.imports,T.imports,yg),$=Re(P),z=Ku(P,$),X,Q,lt=0,ut=o.interpolate||Wa,ct="__p += '",gt=Zu((o.escape||Wa).source+"|"+ut.source+"|"+(ut===Dp?wC:Wa).source+"|"+(o.evaluate||Wa).source+"|$","g"),Et="//# sourceURL="+(te.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++QC+"]")+`
|
|
560
|
+
`;s.replace(gt,function(Ot,Ut,jt,nr,Ge,ir){return jt||(jt=nr),ct+=s.slice(lt,ir).replace(CC,_N),Ut&&(X=!0,ct+=`' +
|
|
561
561
|
__e(`+Ut+`) +
|
|
562
562
|
'`),Ge&&(Q=!0,ct+=`';
|
|
563
563
|
`+Ge+`;
|
|
@@ -573,7 +573,7 @@ __p += '`),jt&&(ct+=`' +
|
|
|
573
573
|
function print() { __p += __j.call(arguments, '') }
|
|
574
574
|
`:`;
|
|
575
575
|
`)+ct+`return __p
|
|
576
|
-
}`;var Ft=uy(function(){return Xt($,Et+"return "+ct).apply(r,z)});if(Ft.source=ct,Lf(Ft))throw Ft;return Ft}function z3(s){return Yt(s).toLowerCase()}function V3(s){return Yt(s).toUpperCase()}function W3(s,o,g){if(s=Yt(s),s&&(g||o===r))return mv(s);if(!s||!(o=er(o)))return s;var T=Ir(s),P=Ir(o),$=_v(T,P),z=bv(T,P)+1;return xn(T,$,z).join("")}function X3(s,o,g){if(s=Yt(s),s&&(g||o===r))return s.slice(0,Ev(s)+1);if(!s||!(o=er(o)))return s;var T=Ir(s),P=bv(T,Ir(o))+1;return xn(T,0,P).join("")}function K3(s,o,g){if(s=Yt(s),s&&(g||o===r))return s.replace(ku,"");if(!s||!(o=er(o)))return s;var T=Ir(s),P=_v(T,Ir(o));return xn(T,P).join("")}function Y3(s,o){var g=R,T=I;if(pe(o)){var P="separator"in o?o.separator:P;g="length"in o?kt(o.length):g,T="omission"in o?er(o.omission):T}s=Yt(s);var $=s.length;if(ki(s)){var z=Ir(s);$=z.length}if(g>=$)return s;var X=g-Li(T);if(X<1)return T;var Q=z?xn(z,0,X).join(""):s.slice(0,X);if(P===r)return Q+T;if(z&&(X+=Q.length-X),Ff(P)){if(s.slice(X).search(P)){var lt,ut=Q;for(P.global||(P=Zu(P.source,Yt($p.exec(P))+"g")),P.lastIndex=0;lt=P.exec(ut);)var ct=lt.index;Q=Q.slice(0,ct===r?X:ct)}}else if(s.indexOf(er(P),X)!=X){var vt=Q.lastIndexOf(P);vt>-1&&(Q=Q.slice(0,vt))}return Q+T}function Z3(s){return s=Yt(s),s&&lC.test(s)?s.replace(Bp,SN):s}var J3=qi(function(s,o,g){return s+(g?" ":"")+o.toUpperCase()}),Df=fg("toUpperCase");function ly(s,o,g){return s=Yt(s),o=g?r:o,o===r?xN(s)?RN(s):hN(s):s.match(o)||[]}var uy=Bt(function(s,o){try{return Qe(s,r,o)}catch(g){return Lf(g)?g:new Ct(g)}}),Q3=tn(function(s,o){return ur(o,function(g){g=Gr(g),Jr(s,g,Mf(s[g],s))}),s});function tF(s){var o=s==null?0:s.length,g=At();return s=o?fe(s,function(T){if(typeof T[1]!="function")throw new fr(l);return[g(T[0]),T[1]]}):[],Bt(function(T){for(var P=-1;++P<o;){var $=s[P];if(Qe($[0],this,T))return Qe($[1],this,T)}})}function eF(s){return SP(hr(s,p))}function $f(s){return function(){return s}}function rF(s,o){return s==null||s!==s?o:s}var nF=hg(),iF=hg(!0);function Xe(s){return s}function Gf(s){return qv(typeof s=="function"?s:hr(s,p))}function sF(s){return Hv(hr(s,p))}function aF(s,o){return zv(s,hr(o,p))}var oF=Bt(function(s,o){return function(g){return Is(g,s,o)}}),lF=Bt(function(s,o){return function(g){return Is(s,g,o)}});function qf(s,o,g){var T=Re(o),P=go(o,T);g==null&&!(pe(o)&&(P.length||!T.length))&&(g=o,o=s,s=this,P=go(o,Re(o)));var $=!(pe(g)&&"chain"in g)||!!g.chain,z=rn(s);return ur(P,function(X){var Q=o[X];s[X]=Q,z&&(s.prototype[X]=function(){var lt=this.__chain__;if($||lt){var ut=s(this.__wrapped__),ct=ut.__actions__=ze(this.__actions__);return ct.push({func:Q,args:arguments,thisArg:s}),ut.__chain__=lt,ut}return Q.apply(s,vn([this.value()],arguments))})}),s}function uF(){return Ne._===this&&(Ne._=LN),this}function jf(){}function fF(s){return s=kt(s),Bt(function(o){return Vv(o,s)})}var cF=bf(fe),hF=bf(dv),dF=bf(Hu);function fy(s){return Of(s)?zu(Gr(s)):jP(s)}function pF(s){return function(o){return s==null?r:Wn(s,o)}}var vF=pg(),gF=pg(!0);function Hf(){return[]}function zf(){return!1}function yF(){return{}}function mF(){return""}function _F(){return!0}function bF(s,o){if(s=kt(s),s<1||s>nt)return[];var g=M,T=Le(s,M);o=At(o),s-=M;for(var P=Xu(T,o);++g<s;)o(g);return P}function xF(s){return Mt(s)?fe(s,Gr):rr(s)?[s]:ze(Cg(Yt(s)))}function EF(s){var o=++MN;return Yt(s)+o}var wF=Eo(function(s,o){return s+o},0),TF=xf("ceil"),AF=Eo(function(s,o){return s/o},1),SF=xf("floor");function OF(s){return s&&s.length?vo(s,Xe,af):r}function IF(s,o){return s&&s.length?vo(s,At(o,2),af):r}function RF(s){return gv(s,Xe)}function CF(s,o){return gv(s,At(o,2))}function NF(s){return s&&s.length?vo(s,Xe,ff):r}function PF(s,o){return s&&s.length?vo(s,At(o,2),ff):r}var MF=Eo(function(s,o){return s*o},1),kF=xf("round"),LF=Eo(function(s,o){return s-o},0);function FF(s){return s&&s.length?Wu(s,Xe):0}function BF(s,o){return s&&s.length?Wu(s,At(o,2)):0}return B.after=sL,B.ary=Gg,B.assign=VL,B.assignIn=ey,B.assignInWith=Lo,B.assignWith=WL,B.at=XL,B.before=qg,B.bind=Mf,B.bindAll=Q3,B.bindKey=jg,B.castArray=yL,B.chain=Ug,B.chunk=SM,B.compact=OM,B.concat=IM,B.cond=tF,B.conforms=eF,B.constant=$f,B.countBy=Fk,B.create=KL,B.curry=Hg,B.curryRight=zg,B.debounce=Vg,B.defaults=YL,B.defaultsDeep=ZL,B.defer=aL,B.delay=oL,B.difference=RM,B.differenceBy=CM,B.differenceWith=NM,B.drop=PM,B.dropRight=MM,B.dropRightWhile=kM,B.dropWhile=LM,B.fill=FM,B.filter=Uk,B.flatMap=Gk,B.flatMapDeep=qk,B.flatMapDepth=jk,B.flatten=kg,B.flattenDeep=BM,B.flattenDepth=UM,B.flip=lL,B.flow=nF,B.flowRight=iF,B.fromPairs=DM,B.functions=i3,B.functionsIn=s3,B.groupBy=Hk,B.initial=GM,B.intersection=qM,B.intersectionBy=jM,B.intersectionWith=HM,B.invert=o3,B.invertBy=l3,B.invokeMap=Vk,B.iteratee=Gf,B.keyBy=Wk,B.keys=Re,B.keysIn=We,B.map=Ro,B.mapKeys=f3,B.mapValues=c3,B.matches=sF,B.matchesProperty=aF,B.memoize=No,B.merge=h3,B.mergeWith=ry,B.method=oF,B.methodOf=lF,B.mixin=qf,B.negate=Po,B.nthArg=fF,B.omit=d3,B.omitBy=p3,B.once=uL,B.orderBy=Xk,B.over=cF,B.overArgs=fL,B.overEvery=hF,B.overSome=dF,B.partial=kf,B.partialRight=Wg,B.partition=Kk,B.pick=v3,B.pickBy=ny,B.property=fy,B.propertyOf=pF,B.pull=XM,B.pullAll=Fg,B.pullAllBy=KM,B.pullAllWith=YM,B.pullAt=ZM,B.range=vF,B.rangeRight=gF,B.rearg=cL,B.reject=Jk,B.remove=JM,B.rest=hL,B.reverse=Nf,B.sampleSize=tL,B.set=y3,B.setWith=m3,B.shuffle=eL,B.slice=QM,B.sortBy=iL,B.sortedUniq=ak,B.sortedUniqBy=ok,B.split=G3,B.spread=dL,B.tail=lk,B.take=uk,B.takeRight=fk,B.takeRightWhile=ck,B.takeWhile=hk,B.tap=Ok,B.throttle=pL,B.thru=Io,B.toArray=Jg,B.toPairs=iy,B.toPairsIn=sy,B.toPath=xF,B.toPlainObject=ty,B.transform=_3,B.unary=vL,B.union=dk,B.unionBy=pk,B.unionWith=vk,B.uniq=gk,B.uniqBy=yk,B.uniqWith=mk,B.unset=b3,B.unzip=Pf,B.unzipWith=Bg,B.update=x3,B.updateWith=E3,B.values=zi,B.valuesIn=w3,B.without=_k,B.words=ly,B.wrap=gL,B.xor=bk,B.xorBy=xk,B.xorWith=Ek,B.zip=wk,B.zipObject=Tk,B.zipObjectDeep=Ak,B.zipWith=Sk,B.entries=iy,B.entriesIn=sy,B.extend=ey,B.extendWith=Lo,qf(B,B),B.add=wF,B.attempt=uy,B.camelCase=O3,B.capitalize=ay,B.ceil=TF,B.clamp=T3,B.clone=mL,B.cloneDeep=bL,B.cloneDeepWith=xL,B.cloneWith=_L,B.conformsTo=EL,B.deburr=oy,B.defaultTo=rF,B.divide=AF,B.endsWith=I3,B.eq=Cr,B.escape=R3,B.escapeRegExp=C3,B.every=Bk,B.find=Dk,B.findIndex=Pg,B.findKey=JL,B.findLast=$k,B.findLastIndex=Mg,B.findLastKey=QL,B.floor=SF,B.forEach=Dg,B.forEachRight=$g,B.forIn=t3,B.forInRight=e3,B.forOwn=r3,B.forOwnRight=n3,B.get=Bf,B.gt=wL,B.gte=TL,B.has=a3,B.hasIn=Uf,B.head=Lg,B.identity=Xe,B.includes=zk,B.indexOf=$M,B.inRange=A3,B.invoke=u3,B.isArguments=Yn,B.isArray=Mt,B.isArrayBuffer=AL,B.isArrayLike=Ve,B.isArrayLikeObject=me,B.isBoolean=SL,B.isBuffer=En,B.isDate=OL,B.isElement=IL,B.isEmpty=RL,B.isEqual=CL,B.isEqualWith=NL,B.isError=Lf,B.isFinite=PL,B.isFunction=rn,B.isInteger=Xg,B.isLength=Mo,B.isMap=Kg,B.isMatch=ML,B.isMatchWith=kL,B.isNaN=LL,B.isNative=FL,B.isNil=UL,B.isNull=BL,B.isNumber=Yg,B.isObject=pe,B.isObjectLike=ge,B.isPlainObject=ks,B.isRegExp=Ff,B.isSafeInteger=DL,B.isSet=Zg,B.isString=ko,B.isSymbol=rr,B.isTypedArray=Hi,B.isUndefined=$L,B.isWeakMap=GL,B.isWeakSet=qL,B.join=zM,B.kebabCase=N3,B.last=pr,B.lastIndexOf=VM,B.lowerCase=P3,B.lowerFirst=M3,B.lt=jL,B.lte=HL,B.max=OF,B.maxBy=IF,B.mean=RF,B.meanBy=CF,B.min=NF,B.minBy=PF,B.stubArray=Hf,B.stubFalse=zf,B.stubObject=yF,B.stubString=mF,B.stubTrue=_F,B.multiply=MF,B.nth=WM,B.noConflict=uF,B.noop=jf,B.now=Co,B.pad=k3,B.padEnd=L3,B.padStart=F3,B.parseInt=B3,B.random=S3,B.reduce=Yk,B.reduceRight=Zk,B.repeat=U3,B.replace=D3,B.result=g3,B.round=kF,B.runInContext=J,B.sample=Qk,B.size=rL,B.snakeCase=$3,B.some=nL,B.sortedIndex=tk,B.sortedIndexBy=ek,B.sortedIndexOf=rk,B.sortedLastIndex=nk,B.sortedLastIndexBy=ik,B.sortedLastIndexOf=sk,B.startCase=q3,B.startsWith=j3,B.subtract=LF,B.sum=FF,B.sumBy=BF,B.template=H3,B.times=bF,B.toFinite=nn,B.toInteger=kt,B.toLength=Qg,B.toLower=z3,B.toNumber=vr,B.toSafeInteger=zL,B.toString=Yt,B.toUpper=V3,B.trim=W3,B.trimEnd=X3,B.trimStart=K3,B.truncate=Y3,B.unescape=Z3,B.uniqueId=EF,B.upperCase=J3,B.upperFirst=Df,B.each=Dg,B.eachRight=$g,B.first=Lg,qf(B,function(){var s={};return Dr(B,function(o,g){te.call(B.prototype,g)||(s[g]=o)}),s}(),{chain:!1}),B.VERSION=n,ur(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){B[s].placeholder=B}),ur(["drop","take"],function(s,o){Gt.prototype[s]=function(g){g=g===r?1:Te(kt(g),0);var T=this.__filtered__&&!o?new Gt(this):this.clone();return T.__filtered__?T.__takeCount__=Le(g,T.__takeCount__):T.__views__.push({size:Le(g,M),type:s+(T.__dir__<0?"Right":"")}),T},Gt.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),ur(["filter","map","takeWhile"],function(s,o){var g=o+1,T=g==F||g==Z;Gt.prototype[s]=function(P){var $=this.clone();return $.__iteratees__.push({iteratee:At(P,3),type:g}),$.__filtered__=$.__filtered__||T,$}}),ur(["head","last"],function(s,o){var g="take"+(o?"Right":"");Gt.prototype[s]=function(){return this[g](1).value()[0]}}),ur(["initial","tail"],function(s,o){var g="drop"+(o?"":"Right");Gt.prototype[s]=function(){return this.__filtered__?new Gt(this):this[g](1)}}),Gt.prototype.compact=function(){return this.filter(Xe)},Gt.prototype.find=function(s){return this.filter(s).head()},Gt.prototype.findLast=function(s){return this.reverse().find(s)},Gt.prototype.invokeMap=Bt(function(s,o){return typeof s=="function"?new Gt(this):this.map(function(g){return Is(g,s,o)})}),Gt.prototype.reject=function(s){return this.filter(Po(At(s)))},Gt.prototype.slice=function(s,o){s=kt(s);var g=this;return g.__filtered__&&(s>0||o<0)?new Gt(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),o!==r&&(o=kt(o),g=o<0?g.dropRight(-o):g.take(o-s)),g)},Gt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Gt.prototype.toArray=function(){return this.take(M)},Dr(Gt.prototype,function(s,o){var g=/^(?:filter|find|map|reject)|While$/.test(o),T=/^(?:head|last)$/.test(o),P=B[T?"take"+(o=="last"?"Right":""):o],$=T||/^find/.test(o);P&&(B.prototype[o]=function(){var z=this.__wrapped__,X=T?[1]:arguments,Q=z instanceof Gt,lt=X[0],ut=Q||Mt(z),ct=function(Ut){var jt=P.apply(B,vn([Ut],X));return T&&vt?jt[0]:jt};ut&&g&&typeof lt=="function"&<.length!=1&&(Q=ut=!1);var vt=this.__chain__,Et=!!this.__actions__.length,St=$&&!vt,Ft=Q&&!Et;if(!$&&ut){z=Ft?z:new Gt(this);var Ot=s.apply(z,X);return Ot.__actions__.push({func:Io,args:[ct],thisArg:r}),new cr(Ot,vt)}return St&&Ft?s.apply(this,X):(Ot=this.thru(ct),St?T?Ot.value()[0]:Ot.value():Ot)})}),ur(["pop","push","shift","sort","splice","unshift"],function(s){var o=Qa[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",T=/^(?:pop|shift)$/.test(s);B.prototype[s]=function(){var P=arguments;if(T&&!this.__chain__){var $=this.value();return o.apply(Mt($)?$:[],P)}return this[g](function(z){return o.apply(Mt(z)?z:[],P)})}}),Dr(Gt.prototype,function(s,o){var g=B[o];if(g){var T=g.name+"";te.call(Di,T)||(Di[T]=[]),Di[T].push({name:o,func:g})}}),Di[xo(r,_).name]=[{name:"wrapper",func:r}],Gt.prototype.clone=ZN,Gt.prototype.reverse=JN,Gt.prototype.value=QN,B.prototype.at=Ik,B.prototype.chain=Rk,B.prototype.commit=Ck,B.prototype.next=Nk,B.prototype.plant=Mk,B.prototype.reverse=kk,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Lk,B.prototype.first=B.prototype.head,xs&&(B.prototype[xs]=Pk),B},Fi=CN();qn?((qn.exports=Fi)._=Fi,$u._=Fi):Ne._=Fi}).call(Ke)}(Va,Va.exports);var Mp=Va.exports;const JR={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},QR=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState([]),[,i]=Tt.useState(0),[a,l]=Tt.useState([]),[,u]=bt.useState(0),[,f]=bt.useState(!1),[h,d]=qR({autoPlay:!1}),p=bt.useRef(null),c=bt.useRef(null),v=bt.useRef(JR),y=bt.useRef(),{tl:m,isDragging:b}=bt.useContext(mi),{frames:_,delays:E}=h,{src:w,startAt:x,endAt:A,frameStartAt:C,frameEndAt:S,loop:O,transformation:{width:L=0,height:R=0,x:I,y:N,animation:k}}=e,F=.1;YR(w,d),wr(je.PAUSE,U=>{console.log("pause event",U),p.current&&(p.current.stop(),v.current.isPlaying=!1)}),Tt.useEffect(()=>{v.current&&p.current&&(b?(p.current.stop(),v.current.isPlaying=!1,v.current.isDragging=!0):v.current.isDragging=!1)},[b]),Tt.useEffect(()=>{if(!xi(_)){const U=mR(_,K=>{const{data:G,width:V,height:tt}=K,et=new Uint8Array(G);return wn.Texture.fromBuffer(et,V,tt)}),q=U.map((K,G)=>({texture:K,time:E[G]}));n(U),l(q);let W=0;E.forEach(K=>{W+=K*10}),i(W),v.current.totalDuration=W,v.current.totalFrames=_.length}},[_,E]);const j=Mp.debounce(U=>{if(p.current){let q=U===0?0:U/F;const W=v.current.totalFrames;q=q>=W?W:q,p.current.gotoAndPlay(q||0),v.current.isPlaying=!0}},50),Z=Mp.debounce(()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},150),H=U=>{if(p.current){let q=U===0?0:U/F;const W=v.current.totalFrames;q=q>=W?W:q,p.current.gotoAndPlay(q||0),v.current.isPlaying=!0}},nt=()=>{console.log("local gif time complete"),p.current&&(p.current.stop(),v.current.isPlaying=!1)},Y=()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},D=U=>{var W;const q=U+((W=y.current)==null?void 0:W.time());p.current&&v.current.isDragging?(j(q),Z(),v.current.isPlaying=!1):p.current&&!v.current.isPlaying&&(j(q),v.current.isPlaying=!0)},M=()=>{f(!0)};return bt.useEffect(()=>{let U=xe.context(()=>{});if(c.current&&m.current){const q={duration:Number(S)-Number(C),onStart:H,onComplete:nt,onStartParams:[C,S],onCompleteParams:[],onInterrupt:Y,onUpdate:D,onUpdateParams:[C,S]};y.current&&y.current.kill(),U=xe.context(()=>{y.current=xe.from(c.current,q,C),m.current.add(y.current,x)})}return()=>{y.current&&(y.current.kill(),xe.killTweensOf(y.current)),U.revert(),c.current&&c.current.destroy()}},[k,x,A,C,S]),Zt.jsx(Ei,{...e,ref:t,ignoreTlForVideo:!0,children:Zt.jsx(ve.Container,{ref:c,children:r&&r.length>0&&Zt.jsx(Pp,{x:I,y:N,width:L,height:R,animationSpeed:1,loop:O,textures:a,onComplete:M,onFrameChange:U=>u(U),anchor:.5,forwardRef:p})})})});var kp={exports:{}};/*!
|
|
576
|
+
}`;var Ft=uy(function(){return Xt($,Et+"return "+ct).apply(r,z)});if(Ft.source=ct,Lf(Ft))throw Ft;return Ft}function z3(s){return Yt(s).toLowerCase()}function V3(s){return Yt(s).toUpperCase()}function W3(s,o,g){if(s=Yt(s),s&&(g||o===r))return mv(s);if(!s||!(o=er(o)))return s;var T=Ir(s),P=Ir(o),$=_v(T,P),z=bv(T,P)+1;return xn(T,$,z).join("")}function X3(s,o,g){if(s=Yt(s),s&&(g||o===r))return s.slice(0,Ev(s)+1);if(!s||!(o=er(o)))return s;var T=Ir(s),P=bv(T,Ir(o))+1;return xn(T,0,P).join("")}function K3(s,o,g){if(s=Yt(s),s&&(g||o===r))return s.replace(ku,"");if(!s||!(o=er(o)))return s;var T=Ir(s),P=_v(T,Ir(o));return xn(T,P).join("")}function Y3(s,o){var g=R,T=I;if(pe(o)){var P="separator"in o?o.separator:P;g="length"in o?kt(o.length):g,T="omission"in o?er(o.omission):T}s=Yt(s);var $=s.length;if(ki(s)){var z=Ir(s);$=z.length}if(g>=$)return s;var X=g-Li(T);if(X<1)return T;var Q=z?xn(z,0,X).join(""):s.slice(0,X);if(P===r)return Q+T;if(z&&(X+=Q.length-X),Ff(P)){if(s.slice(X).search(P)){var lt,ut=Q;for(P.global||(P=Zu(P.source,Yt($p.exec(P))+"g")),P.lastIndex=0;lt=P.exec(ut);)var ct=lt.index;Q=Q.slice(0,ct===r?X:ct)}}else if(s.indexOf(er(P),X)!=X){var gt=Q.lastIndexOf(P);gt>-1&&(Q=Q.slice(0,gt))}return Q+T}function Z3(s){return s=Yt(s),s&&lC.test(s)?s.replace(Bp,SN):s}var J3=qi(function(s,o,g){return s+(g?" ":"")+o.toUpperCase()}),Df=fg("toUpperCase");function ly(s,o,g){return s=Yt(s),o=g?r:o,o===r?xN(s)?RN(s):hN(s):s.match(o)||[]}var uy=Bt(function(s,o){try{return Qe(s,r,o)}catch(g){return Lf(g)?g:new Ct(g)}}),Q3=tn(function(s,o){return ur(o,function(g){g=Gr(g),Jr(s,g,Mf(s[g],s))}),s});function tF(s){var o=s==null?0:s.length,g=At();return s=o?fe(s,function(T){if(typeof T[1]!="function")throw new fr(l);return[g(T[0]),T[1]]}):[],Bt(function(T){for(var P=-1;++P<o;){var $=s[P];if(Qe($[0],this,T))return Qe($[1],this,T)}})}function eF(s){return SP(hr(s,p))}function $f(s){return function(){return s}}function rF(s,o){return s==null||s!==s?o:s}var nF=hg(),iF=hg(!0);function Xe(s){return s}function Gf(s){return qv(typeof s=="function"?s:hr(s,p))}function sF(s){return Hv(hr(s,p))}function aF(s,o){return zv(s,hr(o,p))}var oF=Bt(function(s,o){return function(g){return Is(g,s,o)}}),lF=Bt(function(s,o){return function(g){return Is(s,g,o)}});function qf(s,o,g){var T=Re(o),P=go(o,T);g==null&&!(pe(o)&&(P.length||!T.length))&&(g=o,o=s,s=this,P=go(o,Re(o)));var $=!(pe(g)&&"chain"in g)||!!g.chain,z=rn(s);return ur(P,function(X){var Q=o[X];s[X]=Q,z&&(s.prototype[X]=function(){var lt=this.__chain__;if($||lt){var ut=s(this.__wrapped__),ct=ut.__actions__=ze(this.__actions__);return ct.push({func:Q,args:arguments,thisArg:s}),ut.__chain__=lt,ut}return Q.apply(s,vn([this.value()],arguments))})}),s}function uF(){return Ne._===this&&(Ne._=LN),this}function jf(){}function fF(s){return s=kt(s),Bt(function(o){return Vv(o,s)})}var cF=bf(fe),hF=bf(dv),dF=bf(Hu);function fy(s){return Of(s)?zu(Gr(s)):jP(s)}function pF(s){return function(o){return s==null?r:Wn(s,o)}}var vF=pg(),gF=pg(!0);function Hf(){return[]}function zf(){return!1}function yF(){return{}}function mF(){return""}function _F(){return!0}function bF(s,o){if(s=kt(s),s<1||s>nt)return[];var g=M,T=Le(s,M);o=At(o),s-=M;for(var P=Xu(T,o);++g<s;)o(g);return P}function xF(s){return Mt(s)?fe(s,Gr):rr(s)?[s]:ze(Cg(Yt(s)))}function EF(s){var o=++MN;return Yt(s)+o}var wF=Eo(function(s,o){return s+o},0),TF=xf("ceil"),AF=Eo(function(s,o){return s/o},1),SF=xf("floor");function OF(s){return s&&s.length?vo(s,Xe,af):r}function IF(s,o){return s&&s.length?vo(s,At(o,2),af):r}function RF(s){return gv(s,Xe)}function CF(s,o){return gv(s,At(o,2))}function NF(s){return s&&s.length?vo(s,Xe,ff):r}function PF(s,o){return s&&s.length?vo(s,At(o,2),ff):r}var MF=Eo(function(s,o){return s*o},1),kF=xf("round"),LF=Eo(function(s,o){return s-o},0);function FF(s){return s&&s.length?Wu(s,Xe):0}function BF(s,o){return s&&s.length?Wu(s,At(o,2)):0}return B.after=sL,B.ary=Gg,B.assign=VL,B.assignIn=ey,B.assignInWith=Lo,B.assignWith=WL,B.at=XL,B.before=qg,B.bind=Mf,B.bindAll=Q3,B.bindKey=jg,B.castArray=yL,B.chain=Ug,B.chunk=SM,B.compact=OM,B.concat=IM,B.cond=tF,B.conforms=eF,B.constant=$f,B.countBy=Fk,B.create=KL,B.curry=Hg,B.curryRight=zg,B.debounce=Vg,B.defaults=YL,B.defaultsDeep=ZL,B.defer=aL,B.delay=oL,B.difference=RM,B.differenceBy=CM,B.differenceWith=NM,B.drop=PM,B.dropRight=MM,B.dropRightWhile=kM,B.dropWhile=LM,B.fill=FM,B.filter=Uk,B.flatMap=Gk,B.flatMapDeep=qk,B.flatMapDepth=jk,B.flatten=kg,B.flattenDeep=BM,B.flattenDepth=UM,B.flip=lL,B.flow=nF,B.flowRight=iF,B.fromPairs=DM,B.functions=i3,B.functionsIn=s3,B.groupBy=Hk,B.initial=GM,B.intersection=qM,B.intersectionBy=jM,B.intersectionWith=HM,B.invert=o3,B.invertBy=l3,B.invokeMap=Vk,B.iteratee=Gf,B.keyBy=Wk,B.keys=Re,B.keysIn=We,B.map=Ro,B.mapKeys=f3,B.mapValues=c3,B.matches=sF,B.matchesProperty=aF,B.memoize=No,B.merge=h3,B.mergeWith=ry,B.method=oF,B.methodOf=lF,B.mixin=qf,B.negate=Po,B.nthArg=fF,B.omit=d3,B.omitBy=p3,B.once=uL,B.orderBy=Xk,B.over=cF,B.overArgs=fL,B.overEvery=hF,B.overSome=dF,B.partial=kf,B.partialRight=Wg,B.partition=Kk,B.pick=v3,B.pickBy=ny,B.property=fy,B.propertyOf=pF,B.pull=XM,B.pullAll=Fg,B.pullAllBy=KM,B.pullAllWith=YM,B.pullAt=ZM,B.range=vF,B.rangeRight=gF,B.rearg=cL,B.reject=Jk,B.remove=JM,B.rest=hL,B.reverse=Nf,B.sampleSize=tL,B.set=y3,B.setWith=m3,B.shuffle=eL,B.slice=QM,B.sortBy=iL,B.sortedUniq=ak,B.sortedUniqBy=ok,B.split=G3,B.spread=dL,B.tail=lk,B.take=uk,B.takeRight=fk,B.takeRightWhile=ck,B.takeWhile=hk,B.tap=Ok,B.throttle=pL,B.thru=Io,B.toArray=Jg,B.toPairs=iy,B.toPairsIn=sy,B.toPath=xF,B.toPlainObject=ty,B.transform=_3,B.unary=vL,B.union=dk,B.unionBy=pk,B.unionWith=vk,B.uniq=gk,B.uniqBy=yk,B.uniqWith=mk,B.unset=b3,B.unzip=Pf,B.unzipWith=Bg,B.update=x3,B.updateWith=E3,B.values=zi,B.valuesIn=w3,B.without=_k,B.words=ly,B.wrap=gL,B.xor=bk,B.xorBy=xk,B.xorWith=Ek,B.zip=wk,B.zipObject=Tk,B.zipObjectDeep=Ak,B.zipWith=Sk,B.entries=iy,B.entriesIn=sy,B.extend=ey,B.extendWith=Lo,qf(B,B),B.add=wF,B.attempt=uy,B.camelCase=O3,B.capitalize=ay,B.ceil=TF,B.clamp=T3,B.clone=mL,B.cloneDeep=bL,B.cloneDeepWith=xL,B.cloneWith=_L,B.conformsTo=EL,B.deburr=oy,B.defaultTo=rF,B.divide=AF,B.endsWith=I3,B.eq=Cr,B.escape=R3,B.escapeRegExp=C3,B.every=Bk,B.find=Dk,B.findIndex=Pg,B.findKey=JL,B.findLast=$k,B.findLastIndex=Mg,B.findLastKey=QL,B.floor=SF,B.forEach=Dg,B.forEachRight=$g,B.forIn=t3,B.forInRight=e3,B.forOwn=r3,B.forOwnRight=n3,B.get=Bf,B.gt=wL,B.gte=TL,B.has=a3,B.hasIn=Uf,B.head=Lg,B.identity=Xe,B.includes=zk,B.indexOf=$M,B.inRange=A3,B.invoke=u3,B.isArguments=Yn,B.isArray=Mt,B.isArrayBuffer=AL,B.isArrayLike=Ve,B.isArrayLikeObject=me,B.isBoolean=SL,B.isBuffer=En,B.isDate=OL,B.isElement=IL,B.isEmpty=RL,B.isEqual=CL,B.isEqualWith=NL,B.isError=Lf,B.isFinite=PL,B.isFunction=rn,B.isInteger=Xg,B.isLength=Mo,B.isMap=Kg,B.isMatch=ML,B.isMatchWith=kL,B.isNaN=LL,B.isNative=FL,B.isNil=UL,B.isNull=BL,B.isNumber=Yg,B.isObject=pe,B.isObjectLike=ge,B.isPlainObject=ks,B.isRegExp=Ff,B.isSafeInteger=DL,B.isSet=Zg,B.isString=ko,B.isSymbol=rr,B.isTypedArray=Hi,B.isUndefined=$L,B.isWeakMap=GL,B.isWeakSet=qL,B.join=zM,B.kebabCase=N3,B.last=pr,B.lastIndexOf=VM,B.lowerCase=P3,B.lowerFirst=M3,B.lt=jL,B.lte=HL,B.max=OF,B.maxBy=IF,B.mean=RF,B.meanBy=CF,B.min=NF,B.minBy=PF,B.stubArray=Hf,B.stubFalse=zf,B.stubObject=yF,B.stubString=mF,B.stubTrue=_F,B.multiply=MF,B.nth=WM,B.noConflict=uF,B.noop=jf,B.now=Co,B.pad=k3,B.padEnd=L3,B.padStart=F3,B.parseInt=B3,B.random=S3,B.reduce=Yk,B.reduceRight=Zk,B.repeat=U3,B.replace=D3,B.result=g3,B.round=kF,B.runInContext=J,B.sample=Qk,B.size=rL,B.snakeCase=$3,B.some=nL,B.sortedIndex=tk,B.sortedIndexBy=ek,B.sortedIndexOf=rk,B.sortedLastIndex=nk,B.sortedLastIndexBy=ik,B.sortedLastIndexOf=sk,B.startCase=q3,B.startsWith=j3,B.subtract=LF,B.sum=FF,B.sumBy=BF,B.template=H3,B.times=bF,B.toFinite=nn,B.toInteger=kt,B.toLength=Qg,B.toLower=z3,B.toNumber=vr,B.toSafeInteger=zL,B.toString=Yt,B.toUpper=V3,B.trim=W3,B.trimEnd=X3,B.trimStart=K3,B.truncate=Y3,B.unescape=Z3,B.uniqueId=EF,B.upperCase=J3,B.upperFirst=Df,B.each=Dg,B.eachRight=$g,B.first=Lg,qf(B,function(){var s={};return Dr(B,function(o,g){te.call(B.prototype,g)||(s[g]=o)}),s}(),{chain:!1}),B.VERSION=n,ur(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){B[s].placeholder=B}),ur(["drop","take"],function(s,o){Gt.prototype[s]=function(g){g=g===r?1:Te(kt(g),0);var T=this.__filtered__&&!o?new Gt(this):this.clone();return T.__filtered__?T.__takeCount__=Le(g,T.__takeCount__):T.__views__.push({size:Le(g,M),type:s+(T.__dir__<0?"Right":"")}),T},Gt.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),ur(["filter","map","takeWhile"],function(s,o){var g=o+1,T=g==F||g==Z;Gt.prototype[s]=function(P){var $=this.clone();return $.__iteratees__.push({iteratee:At(P,3),type:g}),$.__filtered__=$.__filtered__||T,$}}),ur(["head","last"],function(s,o){var g="take"+(o?"Right":"");Gt.prototype[s]=function(){return this[g](1).value()[0]}}),ur(["initial","tail"],function(s,o){var g="drop"+(o?"":"Right");Gt.prototype[s]=function(){return this.__filtered__?new Gt(this):this[g](1)}}),Gt.prototype.compact=function(){return this.filter(Xe)},Gt.prototype.find=function(s){return this.filter(s).head()},Gt.prototype.findLast=function(s){return this.reverse().find(s)},Gt.prototype.invokeMap=Bt(function(s,o){return typeof s=="function"?new Gt(this):this.map(function(g){return Is(g,s,o)})}),Gt.prototype.reject=function(s){return this.filter(Po(At(s)))},Gt.prototype.slice=function(s,o){s=kt(s);var g=this;return g.__filtered__&&(s>0||o<0)?new Gt(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),o!==r&&(o=kt(o),g=o<0?g.dropRight(-o):g.take(o-s)),g)},Gt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Gt.prototype.toArray=function(){return this.take(M)},Dr(Gt.prototype,function(s,o){var g=/^(?:filter|find|map|reject)|While$/.test(o),T=/^(?:head|last)$/.test(o),P=B[T?"take"+(o=="last"?"Right":""):o],$=T||/^find/.test(o);P&&(B.prototype[o]=function(){var z=this.__wrapped__,X=T?[1]:arguments,Q=z instanceof Gt,lt=X[0],ut=Q||Mt(z),ct=function(Ut){var jt=P.apply(B,vn([Ut],X));return T&>?jt[0]:jt};ut&&g&&typeof lt=="function"&<.length!=1&&(Q=ut=!1);var gt=this.__chain__,Et=!!this.__actions__.length,St=$&&!gt,Ft=Q&&!Et;if(!$&&ut){z=Ft?z:new Gt(this);var Ot=s.apply(z,X);return Ot.__actions__.push({func:Io,args:[ct],thisArg:r}),new cr(Ot,gt)}return St&&Ft?s.apply(this,X):(Ot=this.thru(ct),St?T?Ot.value()[0]:Ot.value():Ot)})}),ur(["pop","push","shift","sort","splice","unshift"],function(s){var o=Qa[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",T=/^(?:pop|shift)$/.test(s);B.prototype[s]=function(){var P=arguments;if(T&&!this.__chain__){var $=this.value();return o.apply(Mt($)?$:[],P)}return this[g](function(z){return o.apply(Mt(z)?z:[],P)})}}),Dr(Gt.prototype,function(s,o){var g=B[o];if(g){var T=g.name+"";te.call(Di,T)||(Di[T]=[]),Di[T].push({name:o,func:g})}}),Di[xo(r,_).name]=[{name:"wrapper",func:r}],Gt.prototype.clone=ZN,Gt.prototype.reverse=JN,Gt.prototype.value=QN,B.prototype.at=Ik,B.prototype.chain=Rk,B.prototype.commit=Ck,B.prototype.next=Nk,B.prototype.plant=Mk,B.prototype.reverse=kk,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Lk,B.prototype.first=B.prototype.head,xs&&(B.prototype[xs]=Pk),B},Fi=CN();qn?((qn.exports=Fi)._=Fi,$u._=Fi):Ne._=Fi}).call(Ke)}(Va,Va.exports);var Mp=Va.exports;const JR={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},QR=Tt.forwardRef((e,t)=>{const[r,n]=Tt.useState([]),[,i]=Tt.useState(0),[a,l]=Tt.useState([]),[,u]=bt.useState(0),[,f]=bt.useState(!1),[h,d]=qR({autoPlay:!1}),p=bt.useRef(null),c=bt.useRef(null),v=bt.useRef(JR),y=bt.useRef(),{tl:m,isDragging:b}=bt.useContext(mi),{frames:_,delays:E}=h,{src:w,startAt:x,endAt:A,frameStartAt:C,frameEndAt:S,loop:O,transformation:{width:L=0,height:R=0,x:I,y:N,animation:k}}=e,F=.1;YR(w,d),wr(je.PAUSE,U=>{console.log("pause event",U),p.current&&(p.current.stop(),v.current.isPlaying=!1)}),Tt.useEffect(()=>{v.current&&p.current&&(b?(p.current.stop(),v.current.isPlaying=!1,v.current.isDragging=!0):v.current.isDragging=!1)},[b]),Tt.useEffect(()=>{if(!xi(_)){const U=mR(_,K=>{const{data:G,width:V,height:tt}=K,et=new Uint8Array(G);return wn.Texture.fromBuffer(et,V,tt)}),q=U.map((K,G)=>({texture:K,time:E[G]}));n(U),l(q);let W=0;E.forEach(K=>{W+=K*10}),i(W),v.current.totalDuration=W,v.current.totalFrames=_.length}},[_,E]);const j=Mp.debounce(U=>{if(p.current){let q=U===0?0:U/F;const W=v.current.totalFrames;q=q>=W?W:q,p.current.gotoAndPlay(q||0),v.current.isPlaying=!0}},50),Z=Mp.debounce(()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},150),H=U=>{if(p.current){let q=U===0?0:U/F;const W=v.current.totalFrames;q=q>=W?W:q,p.current.gotoAndPlay(q||0),v.current.isPlaying=!0}},nt=()=>{console.log("local gif time complete"),p.current&&(p.current.stop(),v.current.isPlaying=!1)},Y=()=>{p.current&&(p.current.stop(),v.current.isPlaying=!1)},D=U=>{var W;const q=U+((W=y.current)==null?void 0:W.time());p.current&&v.current.isDragging?(j(q),Z(),v.current.isPlaying=!1):p.current&&!v.current.isPlaying&&(j(q),v.current.isPlaying=!0)},M=()=>{f(!0)};return bt.useEffect(()=>{let U=xe.context(()=>{});if(c.current&&m.current){const q={duration:Number(S)-Number(C),onStart:H,onComplete:nt,onStartParams:[C,S],onCompleteParams:[],onInterrupt:Y,onUpdate:D,onUpdateParams:[C,S]};y.current&&y.current.kill(),U=xe.context(()=>{y.current=xe.from(c.current,q,C),m.current.add(y.current,x)})}return()=>{y.current&&(y.current.kill(),xe.killTweensOf(y.current)),U.revert(),c.current&&c.current.destroy()}},[k,x,A,C,S]),Zt.jsx(Ei,{...e,ref:t,ignoreTlForVideo:!0,children:Zt.jsx(ve.Container,{ref:c,children:r&&r.length>0&&Zt.jsx(Pp,{x:I,y:N,width:L,height:R,animationSpeed:1,loop:O,textures:a,onComplete:M,onFrameChange:U=>u(U),anchor:.5,forwardRef:p})})})});var kp={exports:{}};/*!
|
|
577
577
|
* Quill Editor v1.3.7
|
|
578
578
|
* https://quilljs.com/
|
|
579
579
|
* Copyright (c) 2014, Jason Chen
|
|
@@ -593,24 +593,24 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
593
593
|
`)||this.appendChild(p.default.create("text",`
|
|
594
594
|
`)),u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"optimize",this).call(this,I);var N=this.next;N!=null&&N.prev===this&&N.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===N.statics.formats(N.domNode)&&(N.optimize(I),N.moveChildren(this),N.remove())}},{key:"replace",value:function(I){u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"replace",this).call(this,I),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(N){var k=p.default.find(N);k==null?N.parentNode.removeChild(N):k instanceof p.default.Embed?k.remove():k.unwrap()})}}],[{key:"create",value:function(I){var N=u(L.__proto__||Object.getPrototypeOf(L),"create",this).call(this,I);return N.setAttribute("spellcheck",!1),N}},{key:"formats",value:function(){return!0}}]),L}(v.default);S.blotName="code-block",S.tagName="PRE",S.TAB=" ",n.Code=C,n.default=S},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},l=function(){function Y(D,M){var U=[],q=!0,W=!1,K=void 0;try{for(var G=D[Symbol.iterator](),V;!(q=(V=G.next()).done)&&(U.push(V.value),!(M&&U.length===M));q=!0);}catch(tt){W=!0,K=tt}finally{try{!q&&G.return&&G.return()}finally{if(W)throw K}}return U}return function(D,M){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return Y(D,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function Y(D,M){for(var U=0;U<M.length;U++){var q=M[U];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(D,q.key,q)}}return function(D,M,U){return M&&Y(D.prototype,M),U&&Y(D,U),D}}(),f=i(2),h=N(f),d=i(20),p=N(d),c=i(0),v=N(c),y=i(13),m=N(y),b=i(24),_=N(b),E=i(4),w=N(E),x=i(16),A=N(x),C=i(21),S=N(C),O=i(11),L=N(O),R=i(3),I=N(R);function N(Y){return Y&&Y.__esModule?Y:{default:Y}}function k(Y,D,M){return D in Y?Object.defineProperty(Y,D,{value:M,enumerable:!0,configurable:!0,writable:!0}):Y[D]=M,Y}function F(Y,D){if(!(Y instanceof D))throw new TypeError("Cannot call a class as a function")}var j=/^[ -~]*$/,Z=function(){function Y(D){F(this,Y),this.scroll=D,this.delta=this.getDelta()}return u(Y,[{key:"applyDelta",value:function(M){var U=this,q=!1;this.scroll.update();var W=this.scroll.length();return this.scroll.batchStart(),M=nt(M),M.reduce(function(K,G){var V=G.retain||G.delete||G.insert.length||1,tt=G.attributes||{};if(G.insert!=null){if(typeof G.insert=="string"){var et=G.insert;et.endsWith(`
|
|
595
595
|
`)&&q&&(q=!1,et=et.slice(0,-1)),K>=W&&!et.endsWith(`
|
|
596
|
-
`)&&(q=!0),U.scroll.insertAt(K,et);var st=U.scroll.line(K),ht=l(st,2),yt=ht[0],_t=ht[1],
|
|
596
|
+
`)&&(q=!0),U.scroll.insertAt(K,et);var st=U.scroll.line(K),ht=l(st,2),yt=ht[0],_t=ht[1],vt=(0,I.default)({},(0,E.bubbleFormats)(yt));if(yt instanceof w.default){var It=yt.descendant(v.default.Leaf,_t),re=l(It,1),$t=re[0];vt=(0,I.default)(vt,(0,E.bubbleFormats)($t))}tt=p.default.attributes.diff(vt,tt)||{}}else if(a(G.insert)==="object"){var it=Object.keys(G.insert)[0];if(it==null)return K;U.scroll.insertAt(K,it,G.insert[it])}W+=V}return Object.keys(tt).forEach(function(ot){U.scroll.formatAt(K,V,ot,tt[ot])}),K+V},0),M.reduce(function(K,G){return typeof G.delete=="number"?(U.scroll.deleteAt(K,G.delete),K):K+(G.retain||G.insert.length||1)},0),this.scroll.batchEnd(),this.update(M)}},{key:"deleteText",value:function(M,U){return this.scroll.deleteAt(M,U),this.update(new h.default().retain(M).delete(U))}},{key:"formatLine",value:function(M,U){var q=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(W).forEach(function(K){if(!(q.scroll.whitelist!=null&&!q.scroll.whitelist[K])){var G=q.scroll.lines(M,Math.max(U,1)),V=U;G.forEach(function(tt){var et=tt.length();if(!(tt instanceof m.default))tt.format(K,W[K]);else{var st=M-tt.offset(q.scroll),ht=tt.newlineIndex(st+V)-st+1;tt.formatAt(st,ht,K,W[K])}V-=et})}}),this.scroll.optimize(),this.update(new h.default().retain(M).retain(U,(0,S.default)(W)))}},{key:"formatText",value:function(M,U){var q=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(W).forEach(function(K){q.scroll.formatAt(M,U,K,W[K])}),this.update(new h.default().retain(M).retain(U,(0,S.default)(W)))}},{key:"getContents",value:function(M,U){return this.delta.slice(M,M+U)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(M,U){return M.concat(U.delta())},new h.default)}},{key:"getFormat",value:function(M){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,q=[],W=[];U===0?this.scroll.path(M).forEach(function(G){var V=l(G,1),tt=V[0];tt instanceof w.default?q.push(tt):tt instanceof v.default.Leaf&&W.push(tt)}):(q=this.scroll.lines(M,U),W=this.scroll.descendants(v.default.Leaf,M,U));var K=[q,W].map(function(G){if(G.length===0)return{};for(var V=(0,E.bubbleFormats)(G.shift());Object.keys(V).length>0;){var tt=G.shift();if(tt==null)return V;V=H((0,E.bubbleFormats)(tt),V)}return V});return I.default.apply(I.default,K)}},{key:"getText",value:function(M,U){return this.getContents(M,U).filter(function(q){return typeof q.insert=="string"}).map(function(q){return q.insert}).join("")}},{key:"insertEmbed",value:function(M,U,q){return this.scroll.insertAt(M,U,q),this.update(new h.default().retain(M).insert(k({},U,q)))}},{key:"insertText",value:function(M,U){var q=this,W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U=U.replace(/\r\n/g,`
|
|
597
597
|
`).replace(/\r/g,`
|
|
598
598
|
`),this.scroll.insertAt(M,U),Object.keys(W).forEach(function(K){q.scroll.formatAt(M,U.length,K,W[K])}),this.update(new h.default().retain(M).insert(U,(0,S.default)(W)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var M=this.scroll.children.head;return M.statics.blotName!==w.default.blotName||M.children.length>1?!1:M.children.head instanceof A.default}},{key:"removeFormat",value:function(M,U){var q=this.getText(M,U),W=this.scroll.line(M+U),K=l(W,2),G=K[0],V=K[1],tt=0,et=new h.default;G!=null&&(G instanceof m.default?tt=G.newlineIndex(V)-V+1:tt=G.length()-V,et=G.delta().slice(V,V+tt-1).insert(`
|
|
599
599
|
`));var st=this.getContents(M,U+tt),ht=st.diff(new h.default().insert(q).concat(et)),yt=new h.default().retain(M).concat(ht);return this.applyDelta(yt)}},{key:"update",value:function(M){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,W=this.delta;if(U.length===1&&U[0].type==="characterData"&&U[0].target.data.match(j)&&v.default.find(U[0].target)){var K=v.default.find(U[0].target),G=(0,E.bubbleFormats)(K),V=K.offset(this.scroll),tt=U[0].oldValue.replace(_.default.CONTENTS,""),et=new h.default().insert(tt),st=new h.default().insert(K.value()),ht=new h.default().retain(V).concat(et.diff(st,q));M=ht.reduce(function(yt,_t){return _t.insert?yt.insert(_t.insert,G):yt.push(_t)},new h.default),this.delta=W.compose(M)}else this.delta=this.getDelta(),(!M||!(0,L.default)(W.compose(M),this.delta))&&(M=W.diff(this.delta,q));return M}}]),Y}();function H(Y,D){return Object.keys(D).reduce(function(M,U){return Y[U]==null||(D[U]===Y[U]?M[U]=D[U]:Array.isArray(D[U])?D[U].indexOf(Y[U])<0&&(M[U]=D[U].concat([Y[U]])):M[U]=[D[U],Y[U]]),M},{})}function nt(Y){return Y.reduce(function(D,M){if(M.insert===1){var U=(0,S.default)(M.attributes);return delete U.image,D.insert({image:M.attributes.image},U)}if(M.attributes!=null&&(M.attributes.list===!0||M.attributes.bullet===!0)&&(M=(0,S.default)(M),M.attributes.list?M.attributes.list="ordered":(M.attributes.list="bullet",delete M.attributes.bullet)),typeof M.insert=="string"){var q=M.insert.replace(/\r\n/g,`
|
|
600
600
|
`).replace(/\r/g,`
|
|
601
601
|
`);return D.insert(q,M.attributes)}return D.push(M)},new h.default)}n.default=Z},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var a=function(){function O(L,R){var I=[],N=!0,k=!1,F=void 0;try{for(var j=L[Symbol.iterator](),Z;!(N=(Z=j.next()).done)&&(I.push(Z.value),!(R&&I.length===R));N=!0);}catch(H){k=!0,F=H}finally{try{!N&&j.return&&j.return()}finally{if(k)throw F}}return I}return function(L,R){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return O(L,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function O(L,R){for(var I=0;I<R.length;I++){var N=R[I];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(L,N.key,N)}}return function(L,R,I){return R&&O(L.prototype,R),I&&O(L,I),L}}(),u=i(0),f=_(u),h=i(21),d=_(h),p=i(11),c=_(p),v=i(8),y=_(v),m=i(10),b=_(m);function _(O){return O&&O.__esModule?O:{default:O}}function E(O){if(Array.isArray(O)){for(var L=0,R=Array(O.length);L<O.length;L++)R[L]=O[L];return R}else return Array.from(O)}function w(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}var x=(0,b.default)("quill:selection"),A=function O(L){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;w(this,O),this.index=L,this.length=R},C=function(){function O(L,R){var I=this;w(this,O),this.emitter=R,this.scroll=L,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new A(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){I.mouseDown||setTimeout(I.update.bind(I,y.default.sources.USER),1)}),this.emitter.on(y.default.events.EDITOR_CHANGE,function(N,k){N===y.default.events.TEXT_CHANGE&&k.length()>0&&I.update(y.default.sources.SILENT)}),this.emitter.on(y.default.events.SCROLL_BEFORE_UPDATE,function(){if(I.hasFocus()){var N=I.getNativeRange();N!=null&&N.start.node!==I.cursor.textNode&&I.emitter.once(y.default.events.SCROLL_UPDATE,function(){try{I.setNativeRange(N.start.node,N.start.offset,N.end.node,N.end.offset)}catch{}})}}),this.emitter.on(y.default.events.SCROLL_OPTIMIZE,function(N,k){if(k.range){var F=k.range,j=F.startNode,Z=F.startOffset,H=F.endNode,nt=F.endOffset;I.setNativeRange(j,Z,H,nt)}}),this.update(y.default.sources.SILENT)}return l(O,[{key:"handleComposition",value:function(){var R=this;this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){if(R.composing=!1,R.cursor.parent){var I=R.cursor.restore();if(!I)return;setTimeout(function(){R.setNativeRange(I.startNode,I.startOffset,I.endNode,I.endOffset)},1)}})}},{key:"handleDragging",value:function(){var R=this;this.emitter.listenDOM("mousedown",document.body,function(){R.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){R.mouseDown=!1,R.update(y.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(R,I){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[R])){this.scroll.update();var N=this.getNativeRange();if(!(N==null||!N.native.collapsed||f.default.query(R,f.default.Scope.BLOCK))){if(N.start.node!==this.cursor.textNode){var k=f.default.find(N.start.node,!1);if(k==null)return;if(k instanceof f.default.Leaf){var F=k.split(N.start.offset);k.parent.insertBefore(this.cursor,F)}else k.insertBefore(this.cursor,N.start.node);this.cursor.attach()}this.cursor.format(R,I),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(R){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=this.scroll.length();R=Math.min(R,N-1),I=Math.min(R+I,N-1)-R;var k=void 0,F=this.scroll.leaf(R),j=a(F,2),Z=j[0],H=j[1];if(Z==null)return null;var nt=Z.position(H,!0),Y=a(nt,2);k=Y[0],H=Y[1];var D=document.createRange();if(I>0){D.setStart(k,H);var M=this.scroll.leaf(R+I),U=a(M,2);if(Z=U[0],H=U[1],Z==null)return null;var q=Z.position(H,!0),W=a(q,2);return k=W[0],H=W[1],D.setEnd(k,H),D.getBoundingClientRect()}else{var K="left",G=void 0;return k instanceof Text?(H<k.data.length?(D.setStart(k,H),D.setEnd(k,H+1)):(D.setStart(k,H-1),D.setEnd(k,H),K="right"),G=D.getBoundingClientRect()):(G=Z.domNode.getBoundingClientRect(),H>0&&(K="right")),{bottom:G.top+G.height,height:G.height,left:G[K],right:G[K],top:G.top,width:0}}}},{key:"getNativeRange",value:function(){var R=document.getSelection();if(R==null||R.rangeCount<=0)return null;var I=R.getRangeAt(0);if(I==null)return null;var N=this.normalizeNative(I);return x.info("getNativeRange",N),N}},{key:"getRange",value:function(){var R=this.getNativeRange();if(R==null)return[null,null];var I=this.normalizedToRange(R);return[I,R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(R){var I=this,N=[[R.start.node,R.start.offset]];R.native.collapsed||N.push([R.end.node,R.end.offset]);var k=N.map(function(Z){var H=a(Z,2),nt=H[0],Y=H[1],D=f.default.find(nt,!0),M=D.offset(I.scroll);return Y===0?M:D instanceof f.default.Container?M+D.length():M+D.index(nt,Y)}),F=Math.min(Math.max.apply(Math,E(k)),this.scroll.length()-1),j=Math.min.apply(Math,[F].concat(E(k)));return new A(j,F-j)}},{key:"normalizeNative",value:function(R){if(!S(this.root,R.startContainer)||!R.collapsed&&!S(this.root,R.endContainer))return null;var I={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[I.start,I.end].forEach(function(N){for(var k=N.node,F=N.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>F)k=k.childNodes[F],F=0;else if(k.childNodes.length===F)k=k.lastChild,F=k instanceof Text?k.data.length:k.childNodes.length+1;else break;N.node=k,N.offset=F}),I}},{key:"rangeToNative",value:function(R){var I=this,N=R.collapsed?[R.index]:[R.index,R.index+R.length],k=[],F=this.scroll.length();return N.forEach(function(j,Z){j=Math.min(F-1,j);var H=void 0,nt=I.scroll.leaf(j),Y=a(nt,2),D=Y[0],M=Y[1],U=D.position(M,Z!==0),q=a(U,2);H=q[0],M=q[1],k.push(H,M)}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(R){var I=this.lastRange;if(I!=null){var N=this.getBounds(I.index,I.length);if(N!=null){var k=this.scroll.length()-1,F=this.scroll.line(Math.min(I.index,k)),j=a(F,1),Z=j[0],H=Z;if(I.length>0){var nt=this.scroll.line(Math.min(I.index+I.length,k)),Y=a(nt,1);H=Y[0]}if(!(Z==null||H==null)){var D=R.getBoundingClientRect();N.top<D.top?R.scrollTop-=D.top-N.top:N.bottom>D.bottom&&(R.scrollTop+=N.bottom-D.bottom)}}}}},{key:"setNativeRange",value:function(R,I){var N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:R,k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:I,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(x.info("setNativeRange",R,I,N,k),!(R!=null&&(this.root.parentNode==null||R.parentNode==null||N.parentNode==null))){var j=document.getSelection();if(j!=null)if(R!=null){this.hasFocus()||this.root.focus();var Z=(this.getNativeRange()||{}).native;if(Z==null||F||R!==Z.startContainer||I!==Z.startOffset||N!==Z.endContainer||k!==Z.endOffset){R.tagName=="BR"&&(I=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode),N.tagName=="BR"&&(k=[].indexOf.call(N.parentNode.childNodes,N),N=N.parentNode);var H=document.createRange();H.setStart(R,I),H.setEnd(N,k),j.removeAllRanges(),j.addRange(H)}}else j.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(R){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,N=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.default.sources.API;if(typeof I=="string"&&(N=I,I=!1),x.info("setRange",R),R!=null){var k=this.rangeToNative(R);this.setNativeRange.apply(this,E(k).concat([I]))}else this.setNativeRange(null);this.update(N)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y.default.sources.USER,I=this.lastRange,N=this.getRange(),k=a(N,2),F=k[0],j=k[1];if(this.lastRange=F,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,c.default)(I,this.lastRange)){var Z;!this.composing&&j!=null&&j.native.collapsed&&j.start.node!==this.cursor.textNode&&this.cursor.restore();var H=[y.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(I),R];if((Z=this.emitter).emit.apply(Z,[y.default.events.EDITOR_CHANGE].concat(H)),R!==y.default.sources.SILENT){var nt;(nt=this.emitter).emit.apply(nt,H)}}}}]),O}();function S(O,L){try{L.parentNode}catch{return!1}return L instanceof Text&&(L=L.parentNode),O.contains(L)}n.Range=A,n.default=C},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(0),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return d(this,m),p(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"insertInto",value:function(_,E){_.children.length===0?l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertInto",this).call(this,_,E):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),m}(f.default.Embed);v.blotName="break",v.tagName="BR",n.default=v},function(r,n,i){var a=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)v.hasOwnProperty(y)&&(c[y]=v[y])};return function(c,v){p(c,v);function y(){this.constructor=c}c.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(44),u=i(30),f=i(1),h=function(p){a(c,p);function c(v){var y=p.call(this,v)||this;return y.build(),y}return c.prototype.appendChild=function(v){this.insertBefore(v)},c.prototype.attach=function(){p.prototype.attach.call(this),this.children.forEach(function(v){v.attach()})},c.prototype.build=function(){var v=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(y){try{var m=d(y);v.insertBefore(m,v.children.head||void 0)}catch(b){if(b instanceof f.ParchmentError)return;throw b}})},c.prototype.deleteAt=function(v,y){if(v===0&&y===this.length())return this.remove();this.children.forEachAt(v,y,function(m,b,_){m.deleteAt(b,_)})},c.prototype.descendant=function(v,y){var m=this.children.find(y),b=m[0],_=m[1];return v.blotName==null&&v(b)||v.blotName!=null&&b instanceof v?[b,_]:b instanceof c?b.descendant(v,_):[null,-1]},c.prototype.descendants=function(v,y,m){y===void 0&&(y=0),m===void 0&&(m=Number.MAX_VALUE);var b=[],_=m;return this.children.forEachAt(y,m,function(E,w,x){(v.blotName==null&&v(E)||v.blotName!=null&&E instanceof v)&&b.push(E),E instanceof c&&(b=b.concat(E.descendants(v,w,_))),_-=x}),b},c.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),p.prototype.detach.call(this)},c.prototype.formatAt=function(v,y,m,b){this.children.forEachAt(v,y,function(_,E,w){_.formatAt(E,w,m,b)})},c.prototype.insertAt=function(v,y,m){var b=this.children.find(v),_=b[0],E=b[1];if(_)_.insertAt(E,y,m);else{var w=m==null?f.create("text",y):f.create(y,m);this.appendChild(w)}},c.prototype.insertBefore=function(v,y){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(m){return v instanceof m}))throw new f.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,y)},c.prototype.length=function(){return this.children.reduce(function(v,y){return v+y.length()},0)},c.prototype.moveChildren=function(v,y){this.children.forEach(function(m){v.insertBefore(m,y)})},c.prototype.optimize=function(v){if(p.prototype.optimize.call(this,v),this.children.length===0)if(this.statics.defaultChild!=null){var y=f.create(this.statics.defaultChild);this.appendChild(y),y.optimize(v)}else this.remove()},c.prototype.path=function(v,y){y===void 0&&(y=!1);var m=this.children.find(v,y),b=m[0],_=m[1],E=[[this,v]];return b instanceof c?E.concat(b.path(_,y)):(b!=null&&E.push([b,_]),E)},c.prototype.removeChild=function(v){this.children.remove(v)},c.prototype.replace=function(v){v instanceof c&&v.moveChildren(this),p.prototype.replace.call(this,v)},c.prototype.split=function(v,y){if(y===void 0&&(y=!1),!y){if(v===0)return this;if(v===this.length())return this.next}var m=this.clone();return this.parent.insertBefore(m,this.next),this.children.forEachAt(v,this.length(),function(b,_,E){b=b.split(_,y),m.appendChild(b)}),m},c.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},c.prototype.update=function(v,y){var m=this,b=[],_=[];v.forEach(function(E){E.target===m.domNode&&E.type==="childList"&&(b.push.apply(b,E.addedNodes),_.push.apply(_,E.removedNodes))}),_.forEach(function(E){if(!(E.parentNode!=null&&E.tagName!=="IFRAME"&&document.body.compareDocumentPosition(E)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var w=f.find(E);w!=null&&(w.domNode.parentNode==null||w.domNode.parentNode===m.domNode)&&w.detach()}}),b.filter(function(E){return E.parentNode==m.domNode}).sort(function(E,w){return E===w?0:E.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(E){var w=null;E.nextSibling!=null&&(w=f.find(E.nextSibling));var x=d(E);(x.next!=w||x.next==null)&&(x.parent!=null&&x.parent.removeChild(m),m.insertBefore(x,w||void 0))})},c}(u.default);function d(p){var c=f.find(p);if(c==null)try{c=f.create(p)}catch{c=f.create(f.Scope.INLINE),[].slice.call(p.childNodes).forEach(function(y){c.domNode.appendChild(y)}),p.parentNode&&p.parentNode.replaceChild(c.domNode,p),c.attach()}return c}n.default=h},function(r,n,i){var a=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)v.hasOwnProperty(y)&&(c[y]=v[y])};return function(c,v){p(c,v);function y(){this.constructor=c}c.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12),u=i(31),f=i(17),h=i(1),d=function(p){a(c,p);function c(v){var y=p.call(this,v)||this;return y.attributes=new u.default(y.domNode),y}return c.formats=function(v){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return v.tagName.toLowerCase()},c.prototype.format=function(v,y){var m=h.query(v);m instanceof l.default?this.attributes.attribute(m,y):y&&m!=null&&(v!==this.statics.blotName||this.formats()[v]!==y)&&this.replaceWith(v,y)},c.prototype.formats=function(){var v=this.attributes.values(),y=this.statics.formats(this.domNode);return y!=null&&(v[this.statics.blotName]=y),v},c.prototype.replaceWith=function(v,y){var m=p.prototype.replaceWith.call(this,v,y);return this.attributes.copy(m),m},c.prototype.update=function(v,y){var m=this;p.prototype.update.call(this,v,y),v.some(function(b){return b.target===m.domNode&&b.type==="attributes"})&&this.attributes.build()},c.prototype.wrap=function(v,y){var m=p.prototype.wrap.call(this,v,y);return m instanceof c&&m.statics.scope===this.statics.scope&&this.attributes.move(m),m},c}(f.default);n.default=d},function(r,n,i){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(30),u=i(1),f=function(h){a(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.value=function(p){return!0},d.prototype.index=function(p,c){return this.domNode===p||this.domNode.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(c,1):-1},d.prototype.position=function(p,c){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return p>0&&(v+=1),[this.parent.domNode,v]},d.prototype.value=function(){var p;return p={},p[this.statics.blotName]=this.statics.value(this.domNode)||!0,p},d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var a=i(11),l=i(3),u={attributes:{compose:function(h,d,p){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var c=l(!0,{},d);p||(c=Object.keys(c).reduce(function(y,m){return c[m]!=null&&(y[m]=c[m]),y},{}));for(var v in h)h[v]!==void 0&&d[v]===void 0&&(c[v]=h[v]);return Object.keys(c).length>0?c:void 0},diff:function(h,d){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var p=Object.keys(h).concat(Object.keys(d)).reduce(function(c,v){return a(h[v],d[v])||(c[v]=d[v]===void 0?null:d[v]),c},{});return Object.keys(p).length>0?p:void 0},transform:function(h,d,p){if(typeof h!="object")return d;if(typeof d=="object"){if(!p)return d;var c=Object.keys(d).reduce(function(v,y){return h[y]===void 0&&(v[y]=d[y]),v},{});return Object.keys(c).length>0?c:void 0}}},iterator:function(h){return new f(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function f(h){this.ops=h,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(h){h||(h=1/0);var d=this.ops[this.index];if(d){var p=this.offset,c=u.length(d);if(h>=c-p?(h=c-p,this.index+=1,this.offset=0):this.offset+=h,typeof d.delete=="number")return{delete:h};var v={};return d.attributes&&(v.attributes=d.attributes),typeof d.retain=="number"?v.retain=h:typeof d.insert=="string"?v.insert=d.insert.substr(p,h):v.insert=d.insert,v}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?u.length(this.ops[this.index])-this.offset:1/0},f.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,d=this.index,p=this.next(),c=this.ops.slice(this.index);return this.offset=h,this.index=d,[p].concat(c)}else return[]},r.exports=u},function(r,n){var i=function(){function a(m,b){return b!=null&&m instanceof b}var l;try{l=Map}catch{l=function(){}}var u;try{u=Set}catch{u=function(){}}var f;try{f=Promise}catch{f=function(){}}function h(m,b,_,E,w){typeof b=="object"&&(_=b.depth,E=b.prototype,w=b.includeNonEnumerable,b=b.circular);var x=[],A=[],C=typeof Buffer<"u";typeof b>"u"&&(b=!0),typeof _>"u"&&(_=1/0);function S(O,L){if(O===null)return null;if(L===0)return O;var R,I;if(typeof O!="object")return O;if(a(O,l))R=new l;else if(a(O,u))R=new u;else if(a(O,f))R=new f(function(D,M){O.then(function(U){D(S(U,L-1))},function(U){M(S(U,L-1))})});else if(h.__isArray(O))R=[];else if(h.__isRegExp(O))R=new RegExp(O.source,y(O)),O.lastIndex&&(R.lastIndex=O.lastIndex);else if(h.__isDate(O))R=new Date(O.getTime());else{if(C&&Buffer.isBuffer(O))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(O.length):R=new Buffer(O.length),O.copy(R),R;a(O,Error)?R=Object.create(O):typeof E>"u"?(I=Object.getPrototypeOf(O),R=Object.create(I)):(R=Object.create(E),I=E)}if(b){var N=x.indexOf(O);if(N!=-1)return A[N];x.push(O),A.push(R)}a(O,l)&&O.forEach(function(D,M){var U=S(M,L-1),q=S(D,L-1);R.set(U,q)}),a(O,u)&&O.forEach(function(D){var M=S(D,L-1);R.add(M)});for(var k in O){var F;I&&(F=Object.getOwnPropertyDescriptor(I,k)),!(F&&F.set==null)&&(R[k]=S(O[k],L-1))}if(Object.getOwnPropertySymbols)for(var j=Object.getOwnPropertySymbols(O),k=0;k<j.length;k++){var Z=j[k],H=Object.getOwnPropertyDescriptor(O,Z);H&&!H.enumerable&&!w||(R[Z]=S(O[Z],L-1),H.enumerable||Object.defineProperty(R,Z,{enumerable:!1}))}if(w)for(var nt=Object.getOwnPropertyNames(O),k=0;k<nt.length;k++){var Y=nt[k],H=Object.getOwnPropertyDescriptor(O,Y);H&&H.enumerable||(R[Y]=S(O[Y],L-1),Object.defineProperty(R,Y,{enumerable:!1}))}return R}return S(m,_)}h.clonePrototype=function(b){if(b===null)return null;var _=function(){};return _.prototype=b,new _};function d(m){return Object.prototype.toString.call(m)}h.__objToStr=d;function p(m){return typeof m=="object"&&d(m)==="[object Date]"}h.__isDate=p;function c(m){return typeof m=="object"&&d(m)==="[object Array]"}h.__isArray=c;function v(m){return typeof m=="object"&&d(m)==="[object RegExp]"}h.__isRegExp=v;function y(m){var b="";return m.global&&(b+="g"),m.ignoreCase&&(b+="i"),m.multiline&&(b+="m"),b}return h.__getRegExpFlags=y,h}();typeof r=="object"&&r.exports&&(r.exports=i)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function R(I,N){var k=[],F=!0,j=!1,Z=void 0;try{for(var H=I[Symbol.iterator](),nt;!(F=(nt=H.next()).done)&&(k.push(nt.value),!(N&&k.length===N));F=!0);}catch(Y){j=!0,Z=Y}finally{try{!F&&H.return&&H.return()}finally{if(j)throw Z}}return k}return function(I,N){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return R(I,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function R(I,N){for(var k=0;k<N.length;k++){var F=N[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,F.key,F)}}return function(I,N,k){return N&&R(I.prototype,N),k&&R(I,k),I}}(),u=function R(I,N,k){I===null&&(I=Function.prototype);var F=Object.getOwnPropertyDescriptor(I,N);if(F===void 0){var j=Object.getPrototypeOf(I);return j===null?void 0:R(j,N,k)}else{if("value"in F)return F.value;var Z=F.get;return Z===void 0?void 0:Z.call(k)}},f=i(0),h=x(f),d=i(8),p=x(d),c=i(4),v=x(c),y=i(16),m=x(y),b=i(13),_=x(b),E=i(25),w=x(E);function x(R){return R&&R.__esModule?R:{default:R}}function A(R,I){if(!(R instanceof I))throw new TypeError("Cannot call a class as a function")}function C(R,I){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:R}function S(R,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);R.prototype=Object.create(I&&I.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(R,I):R.__proto__=I)}function O(R){return R instanceof v.default||R instanceof c.BlockEmbed}var L=function(R){S(I,R);function I(N,k){A(this,I);var F=C(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,N));return F.emitter=k.emitter,Array.isArray(k.whitelist)&&(F.whitelist=k.whitelist.reduce(function(j,Z){return j[Z]=!0,j},{})),F.domNode.addEventListener("DOMNodeInserted",function(){}),F.optimize(),F.enable(),F}return l(I,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(k,F){var j=this.line(k),Z=a(j,2),H=Z[0],nt=Z[1],Y=this.line(k+F),D=a(Y,1),M=D[0];if(u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"deleteAt",this).call(this,k,F),M!=null&&H!==M&&nt>0){if(H instanceof c.BlockEmbed||M instanceof c.BlockEmbed){this.optimize();return}if(H instanceof _.default){var U=H.newlineIndex(H.length(),!0);if(U>-1&&(H=H.split(U+1),H===M)){this.optimize();return}}else if(M instanceof _.default){var q=M.newlineIndex(0);q>-1&&M.split(q+1)}var W=M.children.head instanceof m.default?null:M.children.head;H.moveChildren(M,W),H.remove()}this.optimize()}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",k)}},{key:"formatAt",value:function(k,F,j,Z){this.whitelist!=null&&!this.whitelist[j]||(u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"formatAt",this).call(this,k,F,j,Z),this.optimize())}},{key:"insertAt",value:function(k,F,j){if(!(j!=null&&this.whitelist!=null&&!this.whitelist[F])){if(k>=this.length())if(j==null||h.default.query(F,h.default.Scope.BLOCK)==null){var Z=h.default.create(this.statics.defaultChild);this.appendChild(Z),j==null&&F.endsWith(`
|
|
602
|
-
`)&&(F=F.slice(0,-1)),Z.insertAt(0,F,j)}else{var H=h.default.create(F,j);this.appendChild(H)}else u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertAt",this).call(this,k,F,j);this.optimize()}}},{key:"insertBefore",value:function(k,F){if(k.statics.scope===h.default.Scope.INLINE_BLOT){var j=h.default.create(this.statics.defaultChild);j.appendChild(k),k=j}u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertBefore",this).call(this,k,F)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(O,k)}},{key:"lines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,j=function Z(H,nt,Y){var D=[],M=Y;return H.children.forEachAt(nt,Y,function(U,q,W){O(U)?D.push(U):U instanceof h.default.Container&&(D=D.concat(Z(U,q,M))),M-=W}),D};return j(this,k,F)}},{key:"optimize",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,k,F),k.length>0&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,k,F))}},{key:"path",value:function(k){return u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(this.batch!==!0){var F=p.default.sources.USER;typeof k=="string"&&(F=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,F,k),u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(p.default.events.SCROLL_UPDATE,F,k)}}}]),I}(h.default.Scroll);L.blotName="scroll",L.className="ql-editor",L.tagName="DIV",L.defaultChild="block",L.allowedChildren=[v.default,c.BlockEmbed,w.default],n.default=L},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},l=function(){function G(V,tt){var et=[],st=!0,ht=!1,yt=void 0;try{for(var _t=V[Symbol.iterator](),
|
|
602
|
+
`)&&(F=F.slice(0,-1)),Z.insertAt(0,F,j)}else{var H=h.default.create(F,j);this.appendChild(H)}else u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertAt",this).call(this,k,F,j);this.optimize()}}},{key:"insertBefore",value:function(k,F){if(k.statics.scope===h.default.Scope.INLINE_BLOT){var j=h.default.create(this.statics.defaultChild);j.appendChild(k),k=j}u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertBefore",this).call(this,k,F)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(O,k)}},{key:"lines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,j=function Z(H,nt,Y){var D=[],M=Y;return H.children.forEachAt(nt,Y,function(U,q,W){O(U)?D.push(U):U instanceof h.default.Container&&(D=D.concat(Z(U,q,M))),M-=W}),D};return j(this,k,F)}},{key:"optimize",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,k,F),k.length>0&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,k,F))}},{key:"path",value:function(k){return u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(this.batch!==!0){var F=p.default.sources.USER;typeof k=="string"&&(F=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,F,k),u(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(p.default.events.SCROLL_UPDATE,F,k)}}}]),I}(h.default.Scroll);L.blotName="scroll",L.className="ql-editor",L.tagName="DIV",L.defaultChild="block",L.allowedChildren=[v.default,c.BlockEmbed,w.default],n.default=L},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},l=function(){function G(V,tt){var et=[],st=!0,ht=!1,yt=void 0;try{for(var _t=V[Symbol.iterator](),vt;!(st=(vt=_t.next()).done)&&(et.push(vt.value),!(tt&&et.length===tt));st=!0);}catch(It){ht=!0,yt=It}finally{try{!st&&_t.return&&_t.return()}finally{if(ht)throw yt}}return et}return function(V,tt){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return G(V,tt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function G(V,tt){for(var et=0;et<tt.length;et++){var st=tt[et];st.enumerable=st.enumerable||!1,st.configurable=!0,"value"in st&&(st.writable=!0),Object.defineProperty(V,st.key,st)}}return function(V,tt,et){return tt&&G(V.prototype,tt),et&&G(V,et),V}}(),f=i(21),h=R(f),d=i(11),p=R(d),c=i(3),v=R(c),y=i(2),m=R(y),b=i(20),_=R(b),E=i(0),w=R(E),x=i(5),A=R(x),C=i(10),S=R(C),O=i(9),L=R(O);function R(G){return G&&G.__esModule?G:{default:G}}function I(G,V,tt){return V in G?Object.defineProperty(G,V,{value:tt,enumerable:!0,configurable:!0,writable:!0}):G[V]=tt,G}function N(G,V){if(!(G instanceof V))throw new TypeError("Cannot call a class as a function")}function k(G,V){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:G}function F(G,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);G.prototype=Object.create(V&&V.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(G,V):G.__proto__=V)}var j=(0,S.default)("quill:keyboard"),Z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=function(G){F(V,G),u(V,null,[{key:"match",value:function(et,st){return st=K(st),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ht){return!!st[ht]!==et[ht]&&st[ht]!==null})?!1:st.key===(et.which||et.keyCode)}}]);function V(tt,et){N(this,V);var st=k(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,tt,et));return st.bindings={},Object.keys(st.options.bindings).forEach(function(ht){ht==="list autofill"&&tt.scroll.whitelist!=null&&!tt.scroll.whitelist.list||st.options.bindings[ht]&&st.addBinding(st.options.bindings[ht])}),st.addBinding({key:V.keys.ENTER,shiftKey:null},U),st.addBinding({key:V.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(st.addBinding({key:V.keys.BACKSPACE},{collapsed:!0},Y),st.addBinding({key:V.keys.DELETE},{collapsed:!0},D)):(st.addBinding({key:V.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},Y),st.addBinding({key:V.keys.DELETE},{collapsed:!0,suffix:/^.?$/},D)),st.addBinding({key:V.keys.BACKSPACE},{collapsed:!1},M),st.addBinding({key:V.keys.DELETE},{collapsed:!1},M),st.addBinding({key:V.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},Y),st.listen(),st}return u(V,[{key:"addBinding",value:function(et){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},yt=K(et);if(yt==null||yt.key==null)return j.warn("Attempted to add invalid keyboard binding",yt);typeof st=="function"&&(st={handler:st}),typeof ht=="function"&&(ht={handler:ht}),yt=(0,v.default)(yt,st,ht),this.bindings[yt.key]=this.bindings[yt.key]||[],this.bindings[yt.key].push(yt)}},{key:"listen",value:function(){var et=this;this.quill.root.addEventListener("keydown",function(st){if(!st.defaultPrevented){var ht=st.which||st.keyCode,yt=(et.bindings[ht]||[]).filter(function(ue){return V.match(st,ue)});if(yt.length!==0){var _t=et.quill.getSelection();if(!(_t==null||!et.quill.hasFocus())){var vt=et.quill.getLine(_t.index),It=l(vt,2),re=It[0],$t=It[1],it=et.quill.getLeaf(_t.index),ot=l(it,2),dt=ot[0],pt=ot[1],ft=_t.length===0?[dt,pt]:et.quill.getLeaf(_t.index+_t.length),Nt=l(ft,2),Lt=Nt[0],Pt=Nt[1],He=dt instanceof w.default.Text?dt.value().slice(0,pt):"",Ue=Lt instanceof w.default.Text?Lt.value().slice(Pt):"",Kt={collapsed:_t.length===0,empty:_t.length===0&&re.length()<=1,format:et.quill.getFormat(_t),offset:$t,prefix:He,suffix:Ue},_s=yt.some(function(ue){if(ue.collapsed!=null&&ue.collapsed!==Kt.collapsed||ue.empty!=null&&ue.empty!==Kt.empty||ue.offset!=null&&ue.offset!==Kt.offset)return!1;if(Array.isArray(ue.format)){if(ue.format.every(function(or){return Kt.format[or]==null}))return!1}else if(a(ue.format)==="object"&&!Object.keys(ue.format).every(function(or){return ue.format[or]===!0?Kt.format[or]!=null:ue.format[or]===!1?Kt.format[or]==null:(0,p.default)(ue.format[or],Kt.format[or])}))return!1;return ue.prefix!=null&&!ue.prefix.test(Kt.prefix)||ue.suffix!=null&&!ue.suffix.test(Kt.suffix)?!1:ue.handler.call(et,_t,Kt)!==!0});_s&&st.preventDefault()}}}})}}]),V}(L.default);H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:W("bold"),italic:W("italic"),underline:W("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function(V,tt){if(tt.collapsed&&tt.offset!==0)return!0;this.quill.format("indent","+1",A.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(V,tt){if(tt.collapsed&&tt.offset!==0)return!0;this.quill.format("indent","-1",A.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(V,tt){tt.format.indent!=null?this.quill.format("indent","-1",A.default.sources.USER):tt.format.list!=null&&this.quill.format("list",!1,A.default.sources.USER)}},"indent code-block":q(!0),"outdent code-block":q(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(V){this.quill.deleteText(V.index-1,1,A.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function(V){this.quill.history.cutoff();var tt=new m.default().retain(V.index).delete(V.length).insert(" ");this.quill.updateContents(tt,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index+1,A.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(V,tt){this.quill.format("list",!1,A.default.sources.USER),tt.format.indent&&this.quill.format("indent",!1,A.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(V){var tt=this.quill.getLine(V.index),et=l(tt,2),st=et[0],ht=et[1],yt=(0,v.default)({},st.formats(),{list:"checked"}),_t=new m.default().retain(V.index).insert(`
|
|
603
603
|
`,yt).retain(st.length()-ht-1).retain(1,{list:"unchecked"});this.quill.updateContents(_t,A.default.sources.USER),this.quill.setSelection(V.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(V,tt){var et=this.quill.getLine(V.index),st=l(et,2),ht=st[0],yt=st[1],_t=new m.default().retain(V.index).insert(`
|
|
604
|
-
`,tt.format).retain(ht.length()-yt-1).retain(1,{header:null});this.quill.updateContents(_t,A.default.sources.USER),this.quill.setSelection(V.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(V,tt){var et=tt.prefix.length,st=this.quill.getLine(V.index),ht=l(st,2),yt=ht[0],_t=ht[1];if(_t>et)return!0;var
|
|
605
|
-
`,et,A.default.sources.USER),this.quill.setSelection(G.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(V.format).forEach(function(st){et[st]==null&&(Array.isArray(V.format[st])||st!=="link"&&tt.quill.format(st,V.format[st],A.default.sources.USER))})}function q(G){return{key:H.keys.TAB,shiftKey:!G,format:{"code-block":!0},handler:function(tt){var et=w.default.query("code-block"),st=tt.index,ht=tt.length,yt=this.quill.scroll.descendant(et,st),_t=l(yt,2),
|
|
606
|
-
`);It=0,ot.forEach(function(dt,pt){G?(gt.insertAt($t+It,et.TAB),It+=et.TAB.length,pt===0?st+=et.TAB.length:ht+=et.TAB.length):dt.startsWith(et.TAB)&&(gt.deleteAt($t+It,et.TAB.length),It-=et.TAB.length,pt===0?st-=et.TAB.length:ht-=et.TAB.length),It+=dt.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(st,ht,A.default.sources.SILENT)}}}}function W(G){return{key:G[0].toUpperCase(),shortKey:!0,handler:function(tt,et){this.quill.format(G,!et.format[G],A.default.sources.USER)}}}function K(G){if(typeof G=="string"||typeof G=="number")return K({key:G});if((typeof G>"u"?"undefined":a(G))==="object"&&(G=(0,h.default)(G,!1)),typeof G.key=="string")if(H.keys[G.key.toUpperCase()]!=null)G.key=H.keys[G.key.toUpperCase()];else if(G.key.length===1)G.key=G.key.toUpperCase().charCodeAt(0);else return null;return G.shortKey&&(G[Z]=G.shortKey,delete G.shortKey),G}n.default=H,n.SHORTKEY=Z},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function _(E,w){var x=[],A=!0,C=!1,S=void 0;try{for(var O=E[Symbol.iterator](),L;!(A=(L=O.next()).done)&&(x.push(L.value),!(w&&x.length===w));A=!0);}catch(R){C=!0,S=R}finally{try{!A&&O.return&&O.return()}finally{if(C)throw S}}return x}return function(E,w){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return _(E,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function _(E,w,x){E===null&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,w);if(A===void 0){var C=Object.getPrototypeOf(E);return C===null?void 0:_(C,w,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=function(){function _(E,w){for(var x=0;x<w.length;x++){var A=w[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,w,x){return w&&_(E.prototype,w),x&&_(E,x),E}}(),f=i(0),h=c(f),d=i(7),p=c(d);function c(_){return _&&_.__esModule?_:{default:_}}function v(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function y(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function m(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var b=function(_){m(E,_),u(E,null,[{key:"value",value:function(){}}]);function E(w,x){v(this,E);var A=y(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w));return A.selection=x,A.textNode=document.createTextNode(E.CONTENTS),A.domNode.appendChild(A.textNode),A._length=0,A}return u(E,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(x,A){if(this._length!==0)return l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,x,A);for(var C=this,S=0;C!=null&&C.statics.scope!==h.default.Scope.BLOCK_BLOT;)S+=C.offset(C.parent),C=C.parent;C!=null&&(this._length=E.CONTENTS.length,C.optimize(),C.formatAt(S,E.CONTENTS.length,x,A),this._length=0)}},{key:"index",value:function(x,A){return x===this.textNode?0:l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"index",this).call(this,x,A)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var x=this.textNode,A=this.selection.getNativeRange(),C=void 0,S=void 0,O=void 0;if(A!=null&&A.start.node===x&&A.end.node===x){var L=[x,A.start.offset,A.end.offset];C=L[0],S=L[1],O=L[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==E.CONTENTS){var R=this.textNode.data.split(E.CONTENTS).join("");this.next instanceof p.default?(C=this.next.domNode,this.next.insertAt(0,R),this.textNode.data=E.CONTENTS):(this.textNode.data=R,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(E.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),S!=null){var I=[S,O].map(function(k){return Math.max(0,Math.min(C.data.length,k-1))}),N=a(I,2);return S=N[0],O=N[1],{startNode:C,startOffset:S,endNode:C,endOffset:O}}}}},{key:"update",value:function(x,A){var C=this;if(x.some(function(O){return O.type==="characterData"&&O.target===C.textNode})){var S=this.restore();S&&(A.range=S)}}},{key:"value",value:function(){return""}}]),E}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(0),l=h(a),u=i(4),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return d(this,m),p(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(l.default.Container);v.allowedChildren=[f.default,u.BlockEmbed,v],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var a=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),l=function b(_,E,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,E);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,E,w)}else{if("value"in x)return x.value;var C=x.get;return C===void 0?void 0:C.call(w)}},u=i(0),f=h(u);function h(b){return b&&b.__esModule?b:{default:b}}function d(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function p(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function c(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var v=function(b){c(_,b);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"value",value:function(w){var x=l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"value",this).call(this,w);return x.startsWith("rgb(")?(x=x.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+x.split(",").map(function(A){return("00"+parseInt(A).toString(16)).slice(-2)}).join("")):x}}]),_}(f.default.Attributor.Style),y=new f.default.Attributor.Class("color","ql-color",{scope:f.default.Scope.INLINE}),m=new v("color","color",{scope:f.default.Scope.INLINE});n.ColorAttributor=v,n.ColorClass=y,n.ColorStyle=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var a=function(){function m(b,_){for(var E=0;E<_.length;E++){var w=_[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,_,E){return _&&m(b.prototype,_),E&&m(b,E),b}}(),l=function m(b,_,E){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,_);if(w===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:m(x,_,E)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(E)}},u=i(6),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function p(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function c(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var v=function(m){c(b,m);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"format",value:function(E,w){if(E!==this.statics.blotName||!w)return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,E,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(E){var w=l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,E);return E=this.sanitize(E),w.setAttribute("href",E),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(E){return E.getAttribute("href")}},{key:"sanitize",value:function(E){return y(E,this.PROTOCOL_WHITELIST)?E:this.SANITIZED_URL}}]),b}(f.default);v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",v.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function y(m,b){var _=document.createElement("a");_.href=m;var E=_.href.slice(0,_.href.indexOf(":"));return b.indexOf(E)>-1}n.default=v,n.sanitize=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),u=i(23),f=p(u),h=i(107),d=p(h);function p(b){return b&&b.__esModule?b:{default:b}}function c(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}var v=0;function y(b,_){b.setAttribute(_,b.getAttribute(_)!=="true")}var m=function(){function b(_){var E=this;c(this,b),this.select=_,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){E.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case f.default.keys.ENTER:E.togglePicker();break;case f.default.keys.ESCAPE:E.escape(),w.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),y(this.label,"aria-expanded"),y(this.options,"aria-hidden")}},{key:"buildItem",value:function(E){var w=this,x=document.createElement("span");return x.tabIndex="0",x.setAttribute("role","button"),x.classList.add("ql-picker-item"),E.hasAttribute("value")&&x.setAttribute("data-value",E.getAttribute("value")),E.textContent&&x.setAttribute("data-label",E.textContent),x.addEventListener("click",function(){w.selectItem(x,!0)}),x.addEventListener("keydown",function(A){switch(A.keyCode){case f.default.keys.ENTER:w.selectItem(x,!0),A.preventDefault();break;case f.default.keys.ESCAPE:w.escape(),A.preventDefault();break}}),x}},{key:"buildLabel",value:function(){var E=document.createElement("span");return E.classList.add("ql-picker-label"),E.innerHTML=d.default,E.tabIndex="0",E.setAttribute("role","button"),E.setAttribute("aria-expanded","false"),this.container.appendChild(E),E}},{key:"buildOptions",value:function(){var E=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+v,v+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(x){var A=E.buildItem(x);w.appendChild(A),x.selected===!0&&E.selectItem(A)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var E=this;[].slice.call(this.select.attributes).forEach(function(w){E.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var E=this;this.close(),setTimeout(function(){return E.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=this.container.querySelector(".ql-selected");if(E!==x&&(x!=null&&x.classList.remove("ql-selected"),E!=null&&(E.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(E.parentNode.children,E),E.hasAttribute("data-value")?this.label.setAttribute("data-value",E.getAttribute("data-value")):this.label.removeAttribute("data-value"),E.hasAttribute("data-label")?this.label.setAttribute("data-label",E.getAttribute("data-label")):this.label.removeAttribute("data-label"),w))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var A=document.createEvent("Event");A.initEvent("change",!0,!0),this.select.dispatchEvent(A)}this.close()}}},{key:"update",value:function(){var E=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];E=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var x=E!=null&&E!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",x)}}]),b}();n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(0),l=j(a),u=i(5),f=j(u),h=i(4),d=j(h),p=i(16),c=j(p),v=i(25),y=j(v),m=i(24),b=j(m),_=i(35),E=j(_),w=i(6),x=j(w),A=i(22),C=j(A),S=i(7),O=j(S),L=i(55),R=j(L),I=i(42),N=j(I),k=i(23),F=j(k);function j(Z){return Z&&Z.__esModule?Z:{default:Z}}f.default.register({"blots/block":d.default,"blots/block/embed":h.BlockEmbed,"blots/break":c.default,"blots/container":y.default,"blots/cursor":b.default,"blots/embed":E.default,"blots/inline":x.default,"blots/scroll":C.default,"blots/text":O.default,"modules/clipboard":R.default,"modules/history":N.default,"modules/keyboard":F.default}),l.default.register(d.default,c.default,b.default,x.default,C.default,O.default),n.default=f.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(1),l=function(){function u(f){this.domNode=f,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(u.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),u.create=function(f){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof f=="string"&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),typeof f=="number"?h=document.createElement(this.tagName[f-1]):this.tagName.indexOf(f)>-1?h=document.createElement(f):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},u.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},u.prototype.clone=function(){var f=this.domNode.cloneNode(!1);return a.create(f)},u.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},u.prototype.deleteAt=function(f,h){var d=this.isolate(f,h);d.remove()},u.prototype.formatAt=function(f,h,d,p){var c=this.isolate(f,h);if(a.query(d,a.Scope.BLOT)!=null&&p)c.wrap(d,p);else if(a.query(d,a.Scope.ATTRIBUTE)!=null){var v=a.create(this.statics.scope);c.wrap(v),v.format(d,p)}},u.prototype.insertAt=function(f,h,d){var p=d==null?a.create("text",h):a.create(h,d),c=this.split(f);this.parent.insertBefore(p,c)},u.prototype.insertInto=function(f,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var d=null;f.children.insertBefore(this,h),h!=null&&(d=h.domNode),(this.domNode.parentNode!=f.domNode||this.domNode.nextSibling!=d)&&f.domNode.insertBefore(this.domNode,d),this.parent=f,this.attach()},u.prototype.isolate=function(f,h){var d=this.split(f);return d.split(h),d},u.prototype.length=function(){return 1},u.prototype.offset=function(f){return f===void 0&&(f=this.parent),this.parent==null||this==f?0:this.parent.children.offset(this)+this.parent.offset(f)},u.prototype.optimize=function(f){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},u.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},u.prototype.replace=function(f){f.parent!=null&&(f.parent.insertBefore(this,f.next),f.remove())},u.prototype.replaceWith=function(f,h){var d=typeof f=="string"?a.create(f,h):f;return d.replace(this),d},u.prototype.split=function(f,h){return f===0?this:this.next},u.prototype.update=function(f,h){},u.prototype.wrap=function(f,h){var d=typeof f=="string"?a.create(f,h):f;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},u.blotName="abstract",u}();n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(12),l=i(32),u=i(33),f=i(1),h=function(){function d(p){this.attributes={},this.domNode=p,this.build()}return d.prototype.attribute=function(p,c){c?p.add(this.domNode,c)&&(p.value(this.domNode)!=null?this.attributes[p.attrName]=p:delete this.attributes[p.attrName]):(p.remove(this.domNode),delete this.attributes[p.attrName])},d.prototype.build=function(){var p=this;this.attributes={};var c=a.default.keys(this.domNode),v=l.default.keys(this.domNode),y=u.default.keys(this.domNode);c.concat(v).concat(y).forEach(function(m){var b=f.query(m,f.Scope.ATTRIBUTE);b instanceof a.default&&(p.attributes[b.attrName]=b)})},d.prototype.copy=function(p){var c=this;Object.keys(this.attributes).forEach(function(v){var y=c.attributes[v].value(c.domNode);p.format(v,y)})},d.prototype.move=function(p){var c=this;this.copy(p),Object.keys(this.attributes).forEach(function(v){c.attributes[v].remove(c.domNode)}),this.attributes={}},d.prototype.values=function(){var p=this;return Object.keys(this.attributes).reduce(function(c,v){return c[v]=p.attributes[v].value(p.domNode),c},{})},d}();n.default=h},function(r,n,i){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h,d){var p=h.getAttribute("class")||"";return p.split(/\s+/).filter(function(c){return c.indexOf(d+"-")===0})}var f=function(h){a(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("class")||"").split(/\s+/).map(function(c){return c.split("-").slice(0,-1).join("-")})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(this.remove(p),p.classList.add(this.keyName+"-"+c),!0):!1},d.prototype.remove=function(p){var c=u(p,this.keyName);c.forEach(function(v){p.classList.remove(v)}),p.classList.length===0&&p.removeAttribute("class")},d.prototype.value=function(p){var c=u(p,this.keyName)[0]||"",v=c.slice(this.keyName.length+1);return this.canAdd(p,v)?v:""},d}(l.default);n.default=f},function(r,n,i){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h){var d=h.split("-"),p=d.slice(1).map(function(c){return c[0].toUpperCase()+c.slice(1)}).join("");return d[0]+p}var f=function(h){a(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("style")||"").split(";").map(function(c){var v=c.split(":");return v[0].trim()})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(p.style[u(this.keyName)]=c,!0):!1},d.prototype.remove=function(p){p.style[u(this.keyName)]="",p.getAttribute("style")||p.removeAttribute("style")},d.prototype.value=function(p){var c=p.style[u(this.keyName)];return this.canAdd(p,c)?c:""},d}(l.default);n.default=f},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){l(this,f),this.quill=h,this.options=d,this.modules={}}return a(f,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(p){d.modules[p]==null&&d.addModule(p)})}},{key:"addModule",value:function(d){var p=this.quill.constructor.import("modules/"+d);return this.modules[d]=new p(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),f}();u.DEFAULTS={modules:{}},u.themes={default:u},n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function _(E,w){for(var x=0;x<w.length;x++){var A=w[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,w,x){return w&&_(E.prototype,w),x&&_(E,x),E}}(),l=function _(E,w,x){E===null&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,w);if(A===void 0){var C=Object.getPrototypeOf(E);return C===null?void 0:_(C,w,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=i(0),f=p(u),h=i(7),d=p(h);function p(_){return _&&_.__esModule?_:{default:_}}function c(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function v(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function y(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var m="\uFEFF",b=function(_){y(E,_);function E(w){c(this,E);var x=v(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w));return x.contentNode=document.createElement("span"),x.contentNode.setAttribute("contenteditable",!1),[].slice.call(x.domNode.childNodes).forEach(function(A){x.contentNode.appendChild(A)}),x.leftGuard=document.createTextNode(m),x.rightGuard=document.createTextNode(m),x.domNode.appendChild(x.leftGuard),x.domNode.appendChild(x.contentNode),x.domNode.appendChild(x.rightGuard),x}return a(E,[{key:"index",value:function(x,A){return x===this.leftGuard?0:x===this.rightGuard?1:l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"index",this).call(this,x,A)}},{key:"restore",value:function(x){var A=void 0,C=void 0,S=x.data.split(m).join("");if(x===this.leftGuard)if(this.prev instanceof d.default){var O=this.prev.length();this.prev.insertAt(O,S),A={startNode:this.prev.domNode,startOffset:O+S.length}}else C=document.createTextNode(S),this.parent.insertBefore(f.default.create(C),this),A={startNode:C,startOffset:S.length};else x===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,S),A={startNode:this.next.domNode,startOffset:S.length}):(C=document.createTextNode(S),this.parent.insertBefore(f.default.create(C),this.next),A={startNode:C,startOffset:S.length}));return x.data=m,A}},{key:"update",value:function(x,A){var C=this;x.forEach(function(S){if(S.type==="characterData"&&(S.target===C.leftGuard||S.target===C.rightGuard)){var O=C.restore(S.target);O&&(A.range=O)}})}}]),E}(f.default.Embed);n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var a=i(0),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new l.default.Attributor.Attribute("align","align",f),d=new l.default.Attributor.Class("align","ql-align",f),p=new l.default.Attributor.Style("align","text-align",f);n.AlignAttribute=h,n.AlignClass=d,n.AlignStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var a=i(0),l=f(a),u=i(26);function f(p){return p&&p.__esModule?p:{default:p}}var h=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),d=new u.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});n.BackgroundClass=h,n.BackgroundStyle=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var a=i(0),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},h=new l.default.Attributor.Attribute("direction","dir",f),d=new l.default.Attributor.Class("direction","ql-direction",f),p=new l.default.Attributor.Style("direction","direction",f);n.DirectionAttribute=h,n.DirectionClass=d,n.DirectionStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var a=function(){function _(E,w){for(var x=0;x<w.length;x++){var A=w[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,w,x){return w&&_(E.prototype,w),x&&_(E,x),E}}(),l=function _(E,w,x){E===null&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,w);if(A===void 0){var C=Object.getPrototypeOf(E);return C===null?void 0:_(C,w,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=i(0),f=h(u);function h(_){return _&&_.__esModule?_:{default:_}}function d(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function p(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function c(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var v={scope:f.default.Scope.INLINE,whitelist:["serif","monospace"]},y=new f.default.Attributor.Class("font","ql-font",v),m=function(_){c(E,_);function E(){return d(this,E),p(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return a(E,[{key:"value",value:function(x){return l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"value",this).call(this,x).replace(/["']/g,"")}}]),E}(f.default.Attributor.Style),b=new m("font","font-family",v);n.FontStyle=b,n.FontClass=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var a=i(0),l=u(a);function u(d){return d&&d.__esModule?d:{default:d}}var f=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});n.SizeClass=f,n.SizeStyle=h},function(r,n,i){r.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var a=function(){function w(x,A){for(var C=0;C<A.length;C++){var S=A[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,C){return A&&w(x.prototype,A),C&&w(x,C),x}}(),l=i(0),u=c(l),f=i(5),h=c(f),d=i(9),p=c(d);function c(w){return w&&w.__esModule?w:{default:w}}function v(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function y(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function m(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var b=function(w){m(x,w);function x(A,C){v(this,x);var S=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,A,C));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(h.default.events.EDITOR_CHANGE,function(O,L,R,I){O!==h.default.events.TEXT_CHANGE||S.ignoreChange||(!S.options.userOnly||I===h.default.sources.USER?S.record(L,R):S.transform(L))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return a(x,[{key:"change",value:function(C,S){if(this.stack[C].length!==0){var O=this.stack[C].pop();this.stack[S].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[C],h.default.sources.USER),this.ignoreChange=!1;var L=E(O[C]);this.quill.setSelection(L)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(C,S){if(C.ops.length!==0){this.stack.redo=[];var O=this.quill.getContents().diff(S),L=Date.now();if(this.lastRecorded+this.options.delay>L&&this.stack.undo.length>0){var R=this.stack.undo.pop();O=O.compose(R.undo),C=R.redo.compose(C)}else this.lastRecorded=L;this.stack.undo.push({redo:C,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(C){this.stack.undo.forEach(function(S){S.undo=C.transform(S.undo,!0),S.redo=C.transform(S.redo,!0)}),this.stack.redo.forEach(function(S){S.undo=C.transform(S.undo,!0),S.redo=C.transform(S.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),x}(p.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function _(w){var x=w.ops[w.ops.length-1];return x==null?!1:x.insert!=null?typeof x.insert=="string"&&x.insert.endsWith(`
|
|
607
|
-
`):x.attributes!=null?Object.keys(x.attributes).some(function(A){return u.default.query(A,u.default.Scope.BLOCK)!=null}):!1}function E(w){var x=w.reduce(function(C,S){return C+=S.delete||0,C},0),A=w.length()-x;return _(w)&&(A-=1),A}n.default=b,n.getLastChangeIndex=E},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var a=function(){function U(q,W){for(var K=0;K<W.length;K++){var G=W[K];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(q,G.key,G)}}return function(q,W,K){return W&&U(q.prototype,W),K&&U(q,K),q}}(),l=function U(q,W,K){q===null&&(q=Function.prototype);var G=Object.getOwnPropertyDescriptor(q,W);if(G===void 0){var V=Object.getPrototypeOf(q);return V===null?void 0:U(V,W,K)}else{if("value"in G)return G.value;var tt=G.get;return tt===void 0?void 0:tt.call(K)}},u=i(3),f=L(u),h=i(2),d=L(h),p=i(8),c=L(p),v=i(23),y=L(v),m=i(34),b=L(m),_=i(59),E=L(_),w=i(60),x=L(w),A=i(28),C=L(A),S=i(61),O=L(S);function L(U){return U&&U.__esModule?U:{default:U}}function R(U,q){if(!(U instanceof q))throw new TypeError("Cannot call a class as a function")}function I(U,q){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:U}function N(U,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);U.prototype=Object.create(q&&q.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(U,q):U.__proto__=q)}var k=[!1,"center","right","justify"],F=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],j=[!1,"serif","monospace"],Z=["1","2","3",!1],H=["small",!1,"large","huge"],nt=function(U){N(q,U);function q(W,K){R(this,q);var G=I(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,W,K)),V=function tt(et){if(!document.body.contains(W.root))return document.body.removeEventListener("click",tt);G.tooltip!=null&&!G.tooltip.root.contains(et.target)&&document.activeElement!==G.tooltip.textbox&&!G.quill.hasFocus()&&G.tooltip.hide(),G.pickers!=null&&G.pickers.forEach(function(st){st.container.contains(et.target)||st.close()})};return W.emitter.listenDOM("click",document.body,V),G}return a(q,[{key:"addModule",value:function(K){var G=l(q.prototype.__proto__||Object.getPrototypeOf(q.prototype),"addModule",this).call(this,K);return K==="toolbar"&&this.extendToolbar(G),G}},{key:"buildButtons",value:function(K,G){K.forEach(function(V){var tt=V.getAttribute("class")||"";tt.split(/\s+/).forEach(function(et){if(et.startsWith("ql-")&&(et=et.slice(3),G[et]!=null))if(et==="direction")V.innerHTML=G[et][""]+G[et].rtl;else if(typeof G[et]=="string")V.innerHTML=G[et];else{var st=V.value||"";st!=null&&G[et][st]&&(V.innerHTML=G[et][st])}})})}},{key:"buildPickers",value:function(K,G){var V=this;this.pickers=K.map(function(et){if(et.classList.contains("ql-align"))return et.querySelector("option")==null&&M(et,k),new x.default(et,G.align);if(et.classList.contains("ql-background")||et.classList.contains("ql-color")){var st=et.classList.contains("ql-background")?"background":"color";return et.querySelector("option")==null&&M(et,F,st==="background"?"#ffffff":"#000000"),new E.default(et,G[st])}else return et.querySelector("option")==null&&(et.classList.contains("ql-font")?M(et,j):et.classList.contains("ql-header")?M(et,Z):et.classList.contains("ql-size")&&M(et,H)),new C.default(et)});var tt=function(){V.pickers.forEach(function(st){st.update()})};this.quill.on(c.default.events.EDITOR_CHANGE,tt)}}]),q}(b.default);nt.DEFAULTS=(0,f.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var q=this,W=this.container.querySelector("input.ql-image[type=file]");W==null&&(W=document.createElement("input"),W.setAttribute("type","file"),W.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),W.classList.add("ql-image"),W.addEventListener("change",function(){if(W.files!=null&&W.files[0]!=null){var K=new FileReader;K.onload=function(G){var V=q.quill.getSelection(!0);q.quill.updateContents(new d.default().retain(V.index).delete(V.length).insert({image:G.target.result}),c.default.sources.USER),q.quill.setSelection(V.index+1,c.default.sources.SILENT),W.value=""},K.readAsDataURL(W.files[0])}}),this.container.appendChild(W)),W.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Y=function(U){N(q,U);function q(W,K){R(this,q);var G=I(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,W,K));return G.textbox=G.root.querySelector('input[type="text"]'),G.listen(),G}return a(q,[{key:"listen",value:function(){var K=this;this.textbox.addEventListener("keydown",function(G){y.default.match(G,"enter")?(K.save(),G.preventDefault()):y.default.match(G,"escape")&&(K.cancel(),G.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),G!=null?this.textbox.value=G:K!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+K)||""),this.root.setAttribute("data-mode",K)}},{key:"restoreFocus",value:function(){var K=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=K}},{key:"save",value:function(){var K=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var G=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",K,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",K,c.default.sources.USER)),this.quill.root.scrollTop=G;break}case"video":K=D(K);case"formula":{if(!K)break;var V=this.quill.getSelection(!0);if(V!=null){var tt=V.index+V.length;this.quill.insertEmbed(tt,this.root.getAttribute("data-mode"),K,c.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(tt+1," ",c.default.sources.USER),this.quill.setSelection(tt+2,c.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),q}(O.default);function D(U){var q=U.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||U.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return q?(q[1]||"https")+"://www.youtube.com/embed/"+q[2]+"?showinfo=0":(q=U.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(q[1]||"https")+"://player.vimeo.com/video/"+q[2]+"/":U}function M(U,q){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;q.forEach(function(K){var G=document.createElement("option");K===W?G.setAttribute("selected","selected"):G.setAttribute("value",K),U.appendChild(G)})}n.BaseTooltip=Y,n.default=nt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function l(){this.head=this.tail=null,this.length=0}return l.prototype.append=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];this.insertBefore(u[0],null),u.length>1&&this.append.apply(this,u.slice(1))},l.prototype.contains=function(u){for(var f,h=this.iterator();f=h();)if(f===u)return!0;return!1},l.prototype.insertBefore=function(u,f){u&&(u.next=f,f!=null?(u.prev=f.prev,f.prev!=null&&(f.prev.next=u),f.prev=u,f===this.head&&(this.head=u)):this.tail!=null?(this.tail.next=u,u.prev=this.tail,this.tail=u):(u.prev=null,this.head=this.tail=u),this.length+=1)},l.prototype.offset=function(u){for(var f=0,h=this.head;h!=null;){if(h===u)return f;f+=h.length(),h=h.next}return-1},l.prototype.remove=function(u){this.contains(u)&&(u.prev!=null&&(u.prev.next=u.next),u.next!=null&&(u.next.prev=u.prev),u===this.head&&(this.head=u.next),u===this.tail&&(this.tail=u.prev),this.length-=1)},l.prototype.iterator=function(u){return u===void 0&&(u=this.head),function(){var f=u;return u!=null&&(u=u.next),f}},l.prototype.find=function(u,f){f===void 0&&(f=!1);for(var h,d=this.iterator();h=d();){var p=h.length();if(u<p||f&&u===p&&(h.next==null||h.next.length()!==0))return[h,u];u-=p}return[null,0]},l.prototype.forEach=function(u){for(var f,h=this.iterator();f=h();)u(f)},l.prototype.forEachAt=function(u,f,h){if(!(f<=0))for(var d=this.find(u),p=d[0],c=d[1],v,y=u-c,m=this.iterator(p);(v=m())&&y<u+f;){var b=v.length();u>y?h(v,u-y,Math.min(f,y+b-u)):h(v,0,Math.min(b,u+f-y)),y+=b}},l.prototype.map=function(u){return this.reduce(function(f,h){return f.push(u(h)),f},[])},l.prototype.reduce=function(u,f){for(var h,d=this.iterator();h=d();)f=u(f,h);return f},l}();n.default=a},function(r,n,i){var a=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)v.hasOwnProperty(y)&&(c[y]=v[y])};return function(c,v){p(c,v);function y(){this.constructor=c}c.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(17),u=i(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,d=function(p){a(c,p);function c(v){var y=p.call(this,v)||this;return y.scroll=y,y.observer=new MutationObserver(function(m){y.update(m)}),y.observer.observe(y.domNode,f),y.attach(),y}return c.prototype.detach=function(){p.prototype.detach.call(this),this.observer.disconnect()},c.prototype.deleteAt=function(v,y){this.update(),v===0&&y===this.length()?this.children.forEach(function(m){m.remove()}):p.prototype.deleteAt.call(this,v,y)},c.prototype.formatAt=function(v,y,m,b){this.update(),p.prototype.formatAt.call(this,v,y,m,b)},c.prototype.insertAt=function(v,y,m){this.update(),p.prototype.insertAt.call(this,v,y,m)},c.prototype.optimize=function(v,y){var m=this;v===void 0&&(v=[]),y===void 0&&(y={}),p.prototype.optimize.call(this,y);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)v.push(b.pop());for(var _=function(A,C){C===void 0&&(C=!0),!(A==null||A===m)&&A.domNode.parentNode!=null&&(A.domNode[u.DATA_KEY].mutations==null&&(A.domNode[u.DATA_KEY].mutations=[]),C&&_(A.parent))},E=function(A){A.domNode[u.DATA_KEY]==null||A.domNode[u.DATA_KEY].mutations==null||(A instanceof l.default&&A.children.forEach(E),A.optimize(y))},w=v,x=0;w.length>0;x+=1){if(x>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(w.forEach(function(A){var C=u.find(A.target,!0);C!=null&&(C.domNode===A.target&&(A.type==="childList"?(_(u.find(A.previousSibling,!1)),[].forEach.call(A.addedNodes,function(S){var O=u.find(S,!1);_(O,!1),O instanceof l.default&&O.children.forEach(function(L){_(L,!1)})})):A.type==="attributes"&&_(C.prev)),_(C))}),this.children.forEach(E),w=[].slice.call(this.observer.takeRecords()),b=w.slice();b.length>0;)v.push(b.pop())}},c.prototype.update=function(v,y){var m=this;y===void 0&&(y={}),v=v||this.observer.takeRecords(),v.map(function(b){var _=u.find(b.target,!0);return _==null?null:_.domNode[u.DATA_KEY].mutations==null?(_.domNode[u.DATA_KEY].mutations=[b],_):(_.domNode[u.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===m||b.domNode[u.DATA_KEY]==null||b.update(b.domNode[u.DATA_KEY].mutations||[],y)}),this.domNode[u.DATA_KEY].mutations!=null&&p.prototype.update.call(this,this.domNode[u.DATA_KEY].mutations,y),this.optimize(v,y)},c.blotName="scroll",c.defaultChild="block",c.scope=u.Scope.BLOCK_BLOT,c.tagName="DIV",c}(l.default);n.default=d},function(r,n,i){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var v in c)c.hasOwnProperty(v)&&(p[v]=c[v])};return function(p,c){d(p,c);function v(){this.constructor=p}p.prototype=c===null?Object.create(c):(v.prototype=c.prototype,new v)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1);function f(d,p){if(Object.keys(d).length!==Object.keys(p).length)return!1;for(var c in d)if(d[c]!==p[c])return!1;return!0}var h=function(d){a(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.formats=function(c){if(c.tagName!==p.tagName)return d.formats.call(this,c)},p.prototype.format=function(c,v){var y=this;c===this.statics.blotName&&!v?(this.children.forEach(function(m){m instanceof l.default||(m=m.wrap(p.blotName,!0)),y.attributes.copy(m)}),this.unwrap()):d.prototype.format.call(this,c,v)},p.prototype.formatAt=function(c,v,y,m){if(this.formats()[y]!=null||u.query(y,u.Scope.ATTRIBUTE)){var b=this.isolate(c,v);b.format(y,m)}else d.prototype.formatAt.call(this,c,v,y,m)},p.prototype.optimize=function(c){d.prototype.optimize.call(this,c);var v=this.formats();if(Object.keys(v).length===0)return this.unwrap();var y=this.next;y instanceof p&&y.prev===this&&f(v,y.formats())&&(y.moveChildren(this),y.remove())},p.blotName="inline",p.scope=u.Scope.INLINE_BLOT,p.tagName="SPAN",p}(l.default);n.default=h},function(r,n,i){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1),f=function(h){a(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.formats=function(p){var c=u.query(d.blotName).tagName;if(p.tagName!==c)return h.formats.call(this,p)},d.prototype.format=function(p,c){u.query(p,u.Scope.BLOCK)!=null&&(p===this.statics.blotName&&!c?this.replaceWith(d.blotName):h.prototype.format.call(this,p,c))},d.prototype.formatAt=function(p,c,v,y){u.query(v,u.Scope.BLOCK)!=null?this.format(v,y):h.prototype.formatAt.call(this,p,c,v,y)},d.prototype.insertAt=function(p,c,v){if(v==null||u.query(c,u.Scope.INLINE)!=null)h.prototype.insertAt.call(this,p,c,v);else{var y=this.split(p),m=u.create(c,v);y.parent.insertBefore(m,y)}},d.prototype.update=function(p,c){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,p,c)},d.blotName="block",d.scope=u.Scope.BLOCK_BLOT,d.tagName="P",d}(l.default);n.default=f},function(r,n,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var p in d)d.hasOwnProperty(p)&&(h[p]=d[p])};return function(h,d){f(h,d);function p(){this.constructor=h}h.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=function(f){a(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.formats=function(d){},h.prototype.format=function(d,p){f.prototype.formatAt.call(this,0,this.length(),d,p)},h.prototype.formatAt=function(d,p,c,v){d===0&&p===this.length()?this.format(c,v):f.prototype.formatAt.call(this,d,p,c,v)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(l.default);n.default=u},function(r,n,i){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=i(1),f=function(h){a(d,h);function d(p){var c=h.call(this,p)||this;return c.text=c.statics.value(c.domNode),c}return d.create=function(p){return document.createTextNode(p)},d.value=function(p){var c=p.data;return c.normalize&&(c=c.normalize()),c},d.prototype.deleteAt=function(p,c){this.domNode.data=this.text=this.text.slice(0,p)+this.text.slice(p+c)},d.prototype.index=function(p,c){return this.domNode===p?c:-1},d.prototype.insertAt=function(p,c,v){v==null?(this.text=this.text.slice(0,p)+c+this.text.slice(p),this.domNode.data=this.text):h.prototype.insertAt.call(this,p,c,v)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(p){h.prototype.optimize.call(this,p),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(p,c){return[this.domNode,p]},d.prototype.split=function(p,c){if(c===void 0&&(c=!1),!c){if(p===0)return this;if(p===this.length())return this.next}var v=u.create(this.domNode.splitText(p));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},d.prototype.update=function(p,c){var v=this;p.some(function(y){return y.type==="characterData"&&y.target===v.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(u,f){return arguments.length>1&&!this.contains(u)==!f?f:l.call(this,u)}}String.prototype.startsWith||(String.prototype.startsWith=function(u,f){return f=f||0,this.substr(f,u.length)===u}),String.prototype.endsWith||(String.prototype.endsWith=function(u,f){var h=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>h.length)&&(f=h.length),f-=u.length;var d=h.indexOf(u,f);return d!==-1&&d===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),d=h.length>>>0,p=arguments[1],c,v=0;v<d;v++)if(c=h[v],f.call(p,c,v,h))return c}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(r,n){var i=-1,a=1,l=0;function u(x,A,C){if(x==A)return x?[[l,x]]:[];(C<0||x.length<C)&&(C=null);var S=p(x,A),O=x.substring(0,S);x=x.substring(S),A=A.substring(S),S=c(x,A);var L=x.substring(x.length-S);x=x.substring(0,x.length-S),A=A.substring(0,A.length-S);var R=f(x,A);return O&&R.unshift([l,O]),L&&R.push([l,L]),y(R),C!=null&&(R=_(R,C)),R=E(R),R}function f(x,A){var C;if(!x)return[[a,A]];if(!A)return[[i,x]];var S=x.length>A.length?x:A,O=x.length>A.length?A:x,L=S.indexOf(O);if(L!=-1)return C=[[a,S.substring(0,L)],[l,O],[a,S.substring(L+O.length)]],x.length>A.length&&(C[0][0]=C[2][0]=i),C;if(O.length==1)return[[i,x],[a,A]];var R=v(x,A);if(R){var I=R[0],N=R[1],k=R[2],F=R[3],j=R[4],Z=u(I,k),H=u(N,F);return Z.concat([[l,j]],H)}return h(x,A)}function h(x,A){for(var C=x.length,S=A.length,O=Math.ceil((C+S)/2),L=O,R=2*O,I=new Array(R),N=new Array(R),k=0;k<R;k++)I[k]=-1,N[k]=-1;I[L+1]=0,N[L+1]=0;for(var F=C-S,j=F%2!=0,Z=0,H=0,nt=0,Y=0,D=0;D<O;D++){for(var M=-D+Z;M<=D-H;M+=2){var U=L+M,q;M==-D||M!=D&&I[U-1]<I[U+1]?q=I[U+1]:q=I[U-1]+1;for(var W=q-M;q<C&&W<S&&x.charAt(q)==A.charAt(W);)q++,W++;if(I[U]=q,q>C)H+=2;else if(W>S)Z+=2;else if(j){var K=L+F-M;if(K>=0&&K<R&&N[K]!=-1){var G=C-N[K];if(q>=G)return d(x,A,q,W)}}}for(var V=-D+nt;V<=D-Y;V+=2){var K=L+V,G;V==-D||V!=D&&N[K-1]<N[K+1]?G=N[K+1]:G=N[K-1]+1;for(var tt=G-V;G<C&&tt<S&&x.charAt(C-G-1)==A.charAt(S-tt-1);)G++,tt++;if(N[K]=G,G>C)Y+=2;else if(tt>S)nt+=2;else if(!j){var U=L+F-V;if(U>=0&&U<R&&I[U]!=-1){var q=I[U],W=L+q-U;if(G=C-G,q>=G)return d(x,A,q,W)}}}}return[[i,x],[a,A]]}function d(x,A,C,S){var O=x.substring(0,C),L=A.substring(0,S),R=x.substring(C),I=A.substring(S),N=u(O,L),k=u(R,I);return N.concat(k)}function p(x,A){if(!x||!A||x.charAt(0)!=A.charAt(0))return 0;for(var C=0,S=Math.min(x.length,A.length),O=S,L=0;C<O;)x.substring(L,O)==A.substring(L,O)?(C=O,L=C):S=O,O=Math.floor((S-C)/2+C);return O}function c(x,A){if(!x||!A||x.charAt(x.length-1)!=A.charAt(A.length-1))return 0;for(var C=0,S=Math.min(x.length,A.length),O=S,L=0;C<O;)x.substring(x.length-O,x.length-L)==A.substring(A.length-O,A.length-L)?(C=O,L=C):S=O,O=Math.floor((S-C)/2+C);return O}function v(x,A){var C=x.length>A.length?x:A,S=x.length>A.length?A:x;if(C.length<4||S.length*2<C.length)return null;function O(H,nt,Y){for(var D=H.substring(Y,Y+Math.floor(H.length/4)),M=-1,U="",q,W,K,G;(M=nt.indexOf(D,M+1))!=-1;){var V=p(H.substring(Y),nt.substring(M)),tt=c(H.substring(0,Y),nt.substring(0,M));U.length<tt+V&&(U=nt.substring(M-tt,M)+nt.substring(M,M+V),q=H.substring(0,Y-tt),W=H.substring(Y+V),K=nt.substring(0,M-tt),G=nt.substring(M+V))}return U.length*2>=H.length?[q,W,K,G,U]:null}var L=O(C,S,Math.ceil(C.length/4)),R=O(C,S,Math.ceil(C.length/2)),I;if(!L&&!R)return null;R?L?I=L[4].length>R[4].length?L:R:I=R:I=L;var N,k,F,j;x.length>A.length?(N=I[0],k=I[1],F=I[2],j=I[3]):(F=I[0],j=I[1],N=I[2],k=I[3]);var Z=I[4];return[N,k,F,j,Z]}function y(x){x.push([l,""]);for(var A=0,C=0,S=0,O="",L="",R;A<x.length;)switch(x[A][0]){case a:S++,L+=x[A][1],A++;break;case i:C++,O+=x[A][1],A++;break;case l:C+S>1?(C!==0&&S!==0&&(R=p(L,O),R!==0&&(A-C-S>0&&x[A-C-S-1][0]==l?x[A-C-S-1][1]+=L.substring(0,R):(x.splice(0,0,[l,L.substring(0,R)]),A++),L=L.substring(R),O=O.substring(R)),R=c(L,O),R!==0&&(x[A][1]=L.substring(L.length-R)+x[A][1],L=L.substring(0,L.length-R),O=O.substring(0,O.length-R))),C===0?x.splice(A-S,C+S,[a,L]):S===0?x.splice(A-C,C+S,[i,O]):x.splice(A-C-S,C+S,[i,O],[a,L]),A=A-C-S+(C?1:0)+(S?1:0)+1):A!==0&&x[A-1][0]==l?(x[A-1][1]+=x[A][1],x.splice(A,1)):A++,S=0,C=0,O="",L="";break}x[x.length-1][1]===""&&x.pop();var I=!1;for(A=1;A<x.length-1;)x[A-1][0]==l&&x[A+1][0]==l&&(x[A][1].substring(x[A][1].length-x[A-1][1].length)==x[A-1][1]?(x[A][1]=x[A-1][1]+x[A][1].substring(0,x[A][1].length-x[A-1][1].length),x[A+1][1]=x[A-1][1]+x[A+1][1],x.splice(A-1,1),I=!0):x[A][1].substring(0,x[A+1][1].length)==x[A+1][1]&&(x[A-1][1]+=x[A+1][1],x[A][1]=x[A][1].substring(x[A+1][1].length)+x[A+1][1],x.splice(A+1,1),I=!0)),A++;I&&y(x)}var m=u;m.INSERT=a,m.DELETE=i,m.EQUAL=l,r.exports=m;function b(x,A){if(A===0)return[l,x];for(var C=0,S=0;S<x.length;S++){var O=x[S];if(O[0]===i||O[0]===l){var L=C+O[1].length;if(A===L)return[S+1,x];if(A<L){x=x.slice();var R=A-C,I=[O[0],O[1].slice(0,R)],N=[O[0],O[1].slice(R)];return x.splice(S,1,I,N),[S+1,x]}else C=L}}throw new Error("cursor_pos is out of bounds!")}function _(x,A){var C=b(x,A),S=C[1],O=C[0],L=S[O],R=S[O+1];if(L==null)return x;if(L[0]!==l)return x;if(R!=null&&L[1]+R[1]===R[1]+L[1])return S.splice(O,2,R,L),w(S,O,2);if(R!=null&&R[1].indexOf(L[1])===0){S.splice(O,2,[R[0],L[1]],[0,L[1]]);var I=R[1].slice(L[1].length);return I.length>0&&S.splice(O+2,0,[R[0],I]),w(S,O,3)}else return x}function E(x){for(var A=!1,C=function(R){return R.charCodeAt(0)>=56320&&R.charCodeAt(0)<=57343},S=function(R){return R.charCodeAt(R.length-1)>=55296&&R.charCodeAt(R.length-1)<=56319},O=2;O<x.length;O+=1)x[O-2][0]===l&&S(x[O-2][1])&&x[O-1][0]===i&&C(x[O-1][1])&&x[O][0]===a&&C(x[O][1])&&(A=!0,x[O-1][1]=x[O-2][1].slice(-1)+x[O-1][1],x[O][1]=x[O-2][1].slice(-1)+x[O][1],x[O-2][1]=x[O-2][1].slice(0,-1));if(!A)return x;for(var L=[],O=0;O<x.length;O+=1)x[O][1].length>0&&L.push(x[O]);return L}function w(x,A,C){for(var S=A+C-1;S>=0&&S>=A-1;S--)if(S+1<x.length){var O=x[S],L=x[S+1];O[0]===L[1]&&x.splice(S,2,[O[0],O[1]+L[1]])}return x}},function(r,n){n=r.exports=typeof Object.keys=="function"?Object.keys:i,n.shim=i;function i(a){var l=[];for(var u in a)l.push(u);return l}},function(r,n){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";n=r.exports=i?a:l,n.supported=a;function a(u){return Object.prototype.toString.call(u)=="[object Arguments]"}n.unsupported=l;function l(u){return u&&typeof u=="object"&&typeof u.length=="number"&&Object.prototype.hasOwnProperty.call(u,"callee")&&!Object.prototype.propertyIsEnumerable.call(u,"callee")||!1}},function(r,n){var i=Object.prototype.hasOwnProperty,a="~";function l(){}Object.create&&(l.prototype=Object.create(null),new l().__proto__||(a=!1));function u(h,d,p){this.fn=h,this.context=d,this.once=p||!1}function f(){this._events=new l,this._eventsCount=0}f.prototype.eventNames=function(){var d=[],p,c;if(this._eventsCount===0)return d;for(c in p=this._events)i.call(p,c)&&d.push(a?c.slice(1):c);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},f.prototype.listeners=function(d,p){var c=a?a+d:d,v=this._events[c];if(p)return!!v;if(!v)return[];if(v.fn)return[v.fn];for(var y=0,m=v.length,b=new Array(m);y<m;y++)b[y]=v[y].fn;return b},f.prototype.emit=function(d,p,c,v,y,m){var b=a?a+d:d;if(!this._events[b])return!1;var _=this._events[b],E=arguments.length,w,x;if(_.fn){switch(_.once&&this.removeListener(d,_.fn,void 0,!0),E){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,p),!0;case 3:return _.fn.call(_.context,p,c),!0;case 4:return _.fn.call(_.context,p,c,v),!0;case 5:return _.fn.call(_.context,p,c,v,y),!0;case 6:return _.fn.call(_.context,p,c,v,y,m),!0}for(x=1,w=new Array(E-1);x<E;x++)w[x-1]=arguments[x];_.fn.apply(_.context,w)}else{var A=_.length,C;for(x=0;x<A;x++)switch(_[x].once&&this.removeListener(d,_[x].fn,void 0,!0),E){case 1:_[x].fn.call(_[x].context);break;case 2:_[x].fn.call(_[x].context,p);break;case 3:_[x].fn.call(_[x].context,p,c);break;case 4:_[x].fn.call(_[x].context,p,c,v);break;default:if(!w)for(C=1,w=new Array(E-1);C<E;C++)w[C-1]=arguments[C];_[x].fn.apply(_[x].context,w)}}return!0},f.prototype.on=function(d,p,c){var v=new u(p,c||this),y=a?a+d:d;return this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],v]:this._events[y].push(v):(this._events[y]=v,this._eventsCount++),this},f.prototype.once=function(d,p,c){var v=new u(p,c||this,!0),y=a?a+d:d;return this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],v]:this._events[y].push(v):(this._events[y]=v,this._eventsCount++),this},f.prototype.removeListener=function(d,p,c,v){var y=a?a+d:d;if(!this._events[y])return this;if(!p)return--this._eventsCount===0?this._events=new l:delete this._events[y],this;var m=this._events[y];if(m.fn)m.fn===p&&(!v||m.once)&&(!c||m.context===c)&&(--this._eventsCount===0?this._events=new l:delete this._events[y]);else{for(var b=0,_=[],E=m.length;b<E;b++)(m[b].fn!==p||v&&!m[b].once||c&&m[b].context!==c)&&_.push(m[b]);_.length?this._events[y]=_.length===1?_[0]:_:--this._eventsCount===0?this._events=new l:delete this._events[y]}return this},f.prototype.removeAllListeners=function(d){var p;return d?(p=a?a+d:d,this._events[p]&&(--this._eventsCount===0?this._events=new l:delete this._events[p])):(this._events=new l,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=a,f.EventEmitter=f,typeof r<"u"&&(r.exports=f)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(it){return typeof it}:function(it){return it&&typeof Symbol=="function"&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it},l=function(){function it(ot,dt){var pt=[],ft=!0,Nt=!1,Lt=void 0;try{for(var Pt=ot[Symbol.iterator](),He;!(ft=(He=Pt.next()).done)&&(pt.push(He.value),!(dt&&pt.length===dt));ft=!0);}catch(Ue){Nt=!0,Lt=Ue}finally{try{!ft&&Pt.return&&Pt.return()}finally{if(Nt)throw Lt}}return pt}return function(ot,dt){if(Array.isArray(ot))return ot;if(Symbol.iterator in Object(ot))return it(ot,dt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function it(ot,dt){for(var pt=0;pt<dt.length;pt++){var ft=dt[pt];ft.enumerable=ft.enumerable||!1,ft.configurable=!0,"value"in ft&&(ft.writable=!0),Object.defineProperty(ot,ft.key,ft)}}return function(ot,dt,pt){return dt&&it(ot.prototype,dt),pt&&it(ot,pt),ot}}(),f=i(3),h=N(f),d=i(2),p=N(d),c=i(0),v=N(c),y=i(5),m=N(y),b=i(10),_=N(b),E=i(9),w=N(E),x=i(36),A=i(37),C=i(13),S=N(C),O=i(26),L=i(38),R=i(39),I=i(40);function N(it){return it&&it.__esModule?it:{default:it}}function k(it,ot,dt){return ot in it?Object.defineProperty(it,ot,{value:dt,enumerable:!0,configurable:!0,writable:!0}):it[ot]=dt,it}function F(it,ot){if(!(it instanceof ot))throw new TypeError("Cannot call a class as a function")}function j(it,ot){if(!it)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ot&&(typeof ot=="object"||typeof ot=="function")?ot:it}function Z(it,ot){if(typeof ot!="function"&&ot!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ot);it.prototype=Object.create(ot&&ot.prototype,{constructor:{value:it,enumerable:!1,writable:!0,configurable:!0}}),ot&&(Object.setPrototypeOf?Object.setPrototypeOf(it,ot):it.__proto__=ot)}var H=(0,_.default)("quill:clipboard"),nt="__ql-matcher",Y=[[Node.TEXT_NODE,$t],[Node.TEXT_NODE,gt],["br",ht],[Node.ELEMENT_NODE,gt],[Node.ELEMENT_NODE,st],[Node.ELEMENT_NODE,It],[Node.ELEMENT_NODE,et],[Node.ELEMENT_NODE,re],["li",_t],["b",tt.bind(tt,"bold")],["i",tt.bind(tt,"italic")],["style",yt]],D=[x.AlignAttribute,L.DirectionAttribute].reduce(function(it,ot){return it[ot.keyName]=ot,it},{}),M=[x.AlignStyle,A.BackgroundStyle,O.ColorStyle,L.DirectionStyle,R.FontStyle,I.SizeStyle].reduce(function(it,ot){return it[ot.keyName]=ot,it},{}),U=function(it){Z(ot,it);function ot(dt,pt){F(this,ot);var ft=j(this,(ot.__proto__||Object.getPrototypeOf(ot)).call(this,dt,pt));return ft.quill.root.addEventListener("paste",ft.onPaste.bind(ft)),ft.container=ft.quill.addContainer("ql-clipboard"),ft.container.setAttribute("contenteditable",!0),ft.container.setAttribute("tabindex",-1),ft.matchers=[],Y.concat(ft.options.matchers).forEach(function(Nt){var Lt=l(Nt,2),Pt=Lt[0],He=Lt[1];!pt.matchVisual&&He===It||ft.addMatcher(Pt,He)}),ft}return u(ot,[{key:"addMatcher",value:function(pt,ft){this.matchers.push([pt,ft])}},{key:"convert",value:function(pt){if(typeof pt=="string")return this.container.innerHTML=pt.replace(/\>\r?\n +\</g,"><"),this.convert();var ft=this.quill.getFormat(this.quill.selection.savedRange.index);if(ft[S.default.blotName]){var Nt=this.container.innerText;return this.container.innerHTML="",new p.default().insert(Nt,k({},S.default.blotName,ft[S.default.blotName]))}var Lt=this.prepareMatching(),Pt=l(Lt,2),He=Pt[0],Ue=Pt[1],Kt=V(this.container,He,Ue);return K(Kt,`
|
|
604
|
+
`,tt.format).retain(ht.length()-yt-1).retain(1,{header:null});this.quill.updateContents(_t,A.default.sources.USER),this.quill.setSelection(V.index+1,A.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(V,tt){var et=tt.prefix.length,st=this.quill.getLine(V.index),ht=l(st,2),yt=ht[0],_t=ht[1];if(_t>et)return!0;var vt=void 0;switch(tt.prefix.trim()){case"[]":case"[ ]":vt="unchecked";break;case"[x]":vt="checked";break;case"-":case"*":vt="bullet";break;default:vt="ordered"}this.quill.insertText(V.index," ",A.default.sources.USER),this.quill.history.cutoff();var It=new m.default().retain(V.index-_t).delete(et+1).retain(yt.length()-2-_t).retain(1,{list:vt});this.quill.updateContents(It,A.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index-et,A.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(V){var tt=this.quill.getLine(V.index),et=l(tt,2),st=et[0],ht=et[1],yt=new m.default().retain(V.index+st.length()-ht-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(yt,A.default.sources.USER)}},"embed left":nt(H.keys.LEFT,!1),"embed left shift":nt(H.keys.LEFT,!0),"embed right":nt(H.keys.RIGHT,!1),"embed right shift":nt(H.keys.RIGHT,!0)}};function nt(G,V){var tt,et=G===H.keys.LEFT?"prefix":"suffix";return tt={key:G,shiftKey:V,altKey:null},I(tt,et,/^$/),I(tt,"handler",function(ht){var yt=ht.index;G===H.keys.RIGHT&&(yt+=ht.length+1);var _t=this.quill.getLeaf(yt),vt=l(_t,1),It=vt[0];return It instanceof w.default.Embed?(G===H.keys.LEFT?V?this.quill.setSelection(ht.index-1,ht.length+1,A.default.sources.USER):this.quill.setSelection(ht.index-1,A.default.sources.USER):V?this.quill.setSelection(ht.index,ht.length+1,A.default.sources.USER):this.quill.setSelection(ht.index+ht.length+1,A.default.sources.USER),!1):!0}),tt}function Y(G,V){if(!(G.index===0||this.quill.getLength()<=1)){var tt=this.quill.getLine(G.index),et=l(tt,1),st=et[0],ht={};if(V.offset===0){var yt=this.quill.getLine(G.index-1),_t=l(yt,1),vt=_t[0];if(vt!=null&&vt.length()>1){var It=st.formats(),re=this.quill.getFormat(G.index-1,1);ht=_.default.attributes.diff(It,re)||{}}}var $t=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(V.prefix)?2:1;this.quill.deleteText(G.index-$t,$t,A.default.sources.USER),Object.keys(ht).length>0&&this.quill.formatLine(G.index-$t,$t,ht,A.default.sources.USER),this.quill.focus()}}function D(G,V){var tt=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(V.suffix)?2:1;if(!(G.index>=this.quill.getLength()-tt)){var et={},st=0,ht=this.quill.getLine(G.index),yt=l(ht,1),_t=yt[0];if(V.offset>=_t.length()-1){var vt=this.quill.getLine(G.index+1),It=l(vt,1),re=It[0];if(re){var $t=_t.formats(),it=this.quill.getFormat(G.index,1);et=_.default.attributes.diff($t,it)||{},st=re.length()}}this.quill.deleteText(G.index,tt,A.default.sources.USER),Object.keys(et).length>0&&this.quill.formatLine(G.index+st-1,tt,et,A.default.sources.USER)}}function M(G){var V=this.quill.getLines(G),tt={};if(V.length>1){var et=V[0].formats(),st=V[V.length-1].formats();tt=_.default.attributes.diff(st,et)||{}}this.quill.deleteText(G,A.default.sources.USER),Object.keys(tt).length>0&&this.quill.formatLine(G.index,1,tt,A.default.sources.USER),this.quill.setSelection(G.index,A.default.sources.SILENT),this.quill.focus()}function U(G,V){var tt=this;G.length>0&&this.quill.scroll.deleteAt(G.index,G.length);var et=Object.keys(V.format).reduce(function(st,ht){return w.default.query(ht,w.default.Scope.BLOCK)&&!Array.isArray(V.format[ht])&&(st[ht]=V.format[ht]),st},{});this.quill.insertText(G.index,`
|
|
605
|
+
`,et,A.default.sources.USER),this.quill.setSelection(G.index+1,A.default.sources.SILENT),this.quill.focus(),Object.keys(V.format).forEach(function(st){et[st]==null&&(Array.isArray(V.format[st])||st!=="link"&&tt.quill.format(st,V.format[st],A.default.sources.USER))})}function q(G){return{key:H.keys.TAB,shiftKey:!G,format:{"code-block":!0},handler:function(tt){var et=w.default.query("code-block"),st=tt.index,ht=tt.length,yt=this.quill.scroll.descendant(et,st),_t=l(yt,2),vt=_t[0],It=_t[1];if(vt!=null){var re=this.quill.getIndex(vt),$t=vt.newlineIndex(It,!0)+1,it=vt.newlineIndex(re+It+ht),ot=vt.domNode.textContent.slice($t,it).split(`
|
|
606
|
+
`);It=0,ot.forEach(function(dt,pt){G?(vt.insertAt($t+It,et.TAB),It+=et.TAB.length,pt===0?st+=et.TAB.length:ht+=et.TAB.length):dt.startsWith(et.TAB)&&(vt.deleteAt($t+It,et.TAB.length),It-=et.TAB.length,pt===0?st-=et.TAB.length:ht-=et.TAB.length),It+=dt.length+1}),this.quill.update(A.default.sources.USER),this.quill.setSelection(st,ht,A.default.sources.SILENT)}}}}function W(G){return{key:G[0].toUpperCase(),shortKey:!0,handler:function(tt,et){this.quill.format(G,!et.format[G],A.default.sources.USER)}}}function K(G){if(typeof G=="string"||typeof G=="number")return K({key:G});if((typeof G>"u"?"undefined":a(G))==="object"&&(G=(0,h.default)(G,!1)),typeof G.key=="string")if(H.keys[G.key.toUpperCase()]!=null)G.key=H.keys[G.key.toUpperCase()];else if(G.key.length===1)G.key=G.key.toUpperCase().charCodeAt(0);else return null;return G.shortKey&&(G[Z]=G.shortKey,delete G.shortKey),G}n.default=H,n.SHORTKEY=Z},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function _(E,w){var x=[],A=!0,C=!1,S=void 0;try{for(var O=E[Symbol.iterator](),L;!(A=(L=O.next()).done)&&(x.push(L.value),!(w&&x.length===w));A=!0);}catch(R){C=!0,S=R}finally{try{!A&&O.return&&O.return()}finally{if(C)throw S}}return x}return function(E,w){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return _(E,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function _(E,w,x){E===null&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,w);if(A===void 0){var C=Object.getPrototypeOf(E);return C===null?void 0:_(C,w,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=function(){function _(E,w){for(var x=0;x<w.length;x++){var A=w[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,w,x){return w&&_(E.prototype,w),x&&_(E,x),E}}(),f=i(0),h=c(f),d=i(7),p=c(d);function c(_){return _&&_.__esModule?_:{default:_}}function v(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function y(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function m(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var b=function(_){m(E,_),u(E,null,[{key:"value",value:function(){}}]);function E(w,x){v(this,E);var A=y(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w));return A.selection=x,A.textNode=document.createTextNode(E.CONTENTS),A.domNode.appendChild(A.textNode),A._length=0,A}return u(E,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(x,A){if(this._length!==0)return l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,x,A);for(var C=this,S=0;C!=null&&C.statics.scope!==h.default.Scope.BLOCK_BLOT;)S+=C.offset(C.parent),C=C.parent;C!=null&&(this._length=E.CONTENTS.length,C.optimize(),C.formatAt(S,E.CONTENTS.length,x,A),this._length=0)}},{key:"index",value:function(x,A){return x===this.textNode?0:l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"index",this).call(this,x,A)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var x=this.textNode,A=this.selection.getNativeRange(),C=void 0,S=void 0,O=void 0;if(A!=null&&A.start.node===x&&A.end.node===x){var L=[x,A.start.offset,A.end.offset];C=L[0],S=L[1],O=L[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==E.CONTENTS){var R=this.textNode.data.split(E.CONTENTS).join("");this.next instanceof p.default?(C=this.next.domNode,this.next.insertAt(0,R),this.textNode.data=E.CONTENTS):(this.textNode.data=R,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(E.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),S!=null){var I=[S,O].map(function(k){return Math.max(0,Math.min(C.data.length,k-1))}),N=a(I,2);return S=N[0],O=N[1],{startNode:C,startOffset:S,endNode:C,endOffset:O}}}}},{key:"update",value:function(x,A){var C=this;if(x.some(function(O){return O.type==="characterData"&&O.target===C.textNode})){var S=this.restore();S&&(A.range=S)}}},{key:"value",value:function(){return""}}]),E}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(0),l=h(a),u=i(4),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return d(this,m),p(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(l.default.Container);v.allowedChildren=[f.default,u.BlockEmbed,v],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var a=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),l=function b(_,E,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,E);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,E,w)}else{if("value"in x)return x.value;var C=x.get;return C===void 0?void 0:C.call(w)}},u=i(0),f=h(u);function h(b){return b&&b.__esModule?b:{default:b}}function d(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function p(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function c(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var v=function(b){c(_,b);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"value",value:function(w){var x=l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"value",this).call(this,w);return x.startsWith("rgb(")?(x=x.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+x.split(",").map(function(A){return("00"+parseInt(A).toString(16)).slice(-2)}).join("")):x}}]),_}(f.default.Attributor.Style),y=new f.default.Attributor.Class("color","ql-color",{scope:f.default.Scope.INLINE}),m=new v("color","color",{scope:f.default.Scope.INLINE});n.ColorAttributor=v,n.ColorClass=y,n.ColorStyle=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var a=function(){function m(b,_){for(var E=0;E<_.length;E++){var w=_[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,_,E){return _&&m(b.prototype,_),E&&m(b,E),b}}(),l=function m(b,_,E){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,_);if(w===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:m(x,_,E)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(E)}},u=i(6),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function p(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function c(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var v=function(m){c(b,m);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"format",value:function(E,w){if(E!==this.statics.blotName||!w)return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,E,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(E){var w=l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,E);return E=this.sanitize(E),w.setAttribute("href",E),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(E){return E.getAttribute("href")}},{key:"sanitize",value:function(E){return y(E,this.PROTOCOL_WHITELIST)?E:this.SANITIZED_URL}}]),b}(f.default);v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",v.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function y(m,b){var _=document.createElement("a");_.href=m;var E=_.href.slice(0,_.href.indexOf(":"));return b.indexOf(E)>-1}n.default=v,n.sanitize=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),u=i(23),f=p(u),h=i(107),d=p(h);function p(b){return b&&b.__esModule?b:{default:b}}function c(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}var v=0;function y(b,_){b.setAttribute(_,b.getAttribute(_)!=="true")}var m=function(){function b(_){var E=this;c(this,b),this.select=_,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){E.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case f.default.keys.ENTER:E.togglePicker();break;case f.default.keys.ESCAPE:E.escape(),w.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),y(this.label,"aria-expanded"),y(this.options,"aria-hidden")}},{key:"buildItem",value:function(E){var w=this,x=document.createElement("span");return x.tabIndex="0",x.setAttribute("role","button"),x.classList.add("ql-picker-item"),E.hasAttribute("value")&&x.setAttribute("data-value",E.getAttribute("value")),E.textContent&&x.setAttribute("data-label",E.textContent),x.addEventListener("click",function(){w.selectItem(x,!0)}),x.addEventListener("keydown",function(A){switch(A.keyCode){case f.default.keys.ENTER:w.selectItem(x,!0),A.preventDefault();break;case f.default.keys.ESCAPE:w.escape(),A.preventDefault();break}}),x}},{key:"buildLabel",value:function(){var E=document.createElement("span");return E.classList.add("ql-picker-label"),E.innerHTML=d.default,E.tabIndex="0",E.setAttribute("role","button"),E.setAttribute("aria-expanded","false"),this.container.appendChild(E),E}},{key:"buildOptions",value:function(){var E=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+v,v+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(x){var A=E.buildItem(x);w.appendChild(A),x.selected===!0&&E.selectItem(A)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var E=this;[].slice.call(this.select.attributes).forEach(function(w){E.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var E=this;this.close(),setTimeout(function(){return E.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(E){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=this.container.querySelector(".ql-selected");if(E!==x&&(x!=null&&x.classList.remove("ql-selected"),E!=null&&(E.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(E.parentNode.children,E),E.hasAttribute("data-value")?this.label.setAttribute("data-value",E.getAttribute("data-value")):this.label.removeAttribute("data-value"),E.hasAttribute("data-label")?this.label.setAttribute("data-label",E.getAttribute("data-label")):this.label.removeAttribute("data-label"),w))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":a(Event))==="object"){var A=document.createEvent("Event");A.initEvent("change",!0,!0),this.select.dispatchEvent(A)}this.close()}}},{key:"update",value:function(){var E=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];E=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var x=E!=null&&E!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",x)}}]),b}();n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(0),l=j(a),u=i(5),f=j(u),h=i(4),d=j(h),p=i(16),c=j(p),v=i(25),y=j(v),m=i(24),b=j(m),_=i(35),E=j(_),w=i(6),x=j(w),A=i(22),C=j(A),S=i(7),O=j(S),L=i(55),R=j(L),I=i(42),N=j(I),k=i(23),F=j(k);function j(Z){return Z&&Z.__esModule?Z:{default:Z}}f.default.register({"blots/block":d.default,"blots/block/embed":h.BlockEmbed,"blots/break":c.default,"blots/container":y.default,"blots/cursor":b.default,"blots/embed":E.default,"blots/inline":x.default,"blots/scroll":C.default,"blots/text":O.default,"modules/clipboard":R.default,"modules/history":N.default,"modules/keyboard":F.default}),l.default.register(d.default,c.default,b.default,x.default,C.default,O.default),n.default=f.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(1),l=function(){function u(f){this.domNode=f,this.domNode[a.DATA_KEY]={blot:this}}return Object.defineProperty(u.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),u.create=function(f){if(this.tagName==null)throw new a.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof f=="string"&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),typeof f=="number"?h=document.createElement(this.tagName[f-1]):this.tagName.indexOf(f)>-1?h=document.createElement(f):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},u.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},u.prototype.clone=function(){var f=this.domNode.cloneNode(!1);return a.create(f)},u.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[a.DATA_KEY]},u.prototype.deleteAt=function(f,h){var d=this.isolate(f,h);d.remove()},u.prototype.formatAt=function(f,h,d,p){var c=this.isolate(f,h);if(a.query(d,a.Scope.BLOT)!=null&&p)c.wrap(d,p);else if(a.query(d,a.Scope.ATTRIBUTE)!=null){var v=a.create(this.statics.scope);c.wrap(v),v.format(d,p)}},u.prototype.insertAt=function(f,h,d){var p=d==null?a.create("text",h):a.create(h,d),c=this.split(f);this.parent.insertBefore(p,c)},u.prototype.insertInto=function(f,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var d=null;f.children.insertBefore(this,h),h!=null&&(d=h.domNode),(this.domNode.parentNode!=f.domNode||this.domNode.nextSibling!=d)&&f.domNode.insertBefore(this.domNode,d),this.parent=f,this.attach()},u.prototype.isolate=function(f,h){var d=this.split(f);return d.split(h),d},u.prototype.length=function(){return 1},u.prototype.offset=function(f){return f===void 0&&(f=this.parent),this.parent==null||this==f?0:this.parent.children.offset(this)+this.parent.offset(f)},u.prototype.optimize=function(f){this.domNode[a.DATA_KEY]!=null&&delete this.domNode[a.DATA_KEY].mutations},u.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},u.prototype.replace=function(f){f.parent!=null&&(f.parent.insertBefore(this,f.next),f.remove())},u.prototype.replaceWith=function(f,h){var d=typeof f=="string"?a.create(f,h):f;return d.replace(this),d},u.prototype.split=function(f,h){return f===0?this:this.next},u.prototype.update=function(f,h){},u.prototype.wrap=function(f,h){var d=typeof f=="string"?a.create(f,h):f;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},u.blotName="abstract",u}();n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(12),l=i(32),u=i(33),f=i(1),h=function(){function d(p){this.attributes={},this.domNode=p,this.build()}return d.prototype.attribute=function(p,c){c?p.add(this.domNode,c)&&(p.value(this.domNode)!=null?this.attributes[p.attrName]=p:delete this.attributes[p.attrName]):(p.remove(this.domNode),delete this.attributes[p.attrName])},d.prototype.build=function(){var p=this;this.attributes={};var c=a.default.keys(this.domNode),v=l.default.keys(this.domNode),y=u.default.keys(this.domNode);c.concat(v).concat(y).forEach(function(m){var b=f.query(m,f.Scope.ATTRIBUTE);b instanceof a.default&&(p.attributes[b.attrName]=b)})},d.prototype.copy=function(p){var c=this;Object.keys(this.attributes).forEach(function(v){var y=c.attributes[v].value(c.domNode);p.format(v,y)})},d.prototype.move=function(p){var c=this;this.copy(p),Object.keys(this.attributes).forEach(function(v){c.attributes[v].remove(c.domNode)}),this.attributes={}},d.prototype.values=function(){var p=this;return Object.keys(this.attributes).reduce(function(c,v){return c[v]=p.attributes[v].value(p.domNode),c},{})},d}();n.default=h},function(r,n,i){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h,d){var p=h.getAttribute("class")||"";return p.split(/\s+/).filter(function(c){return c.indexOf(d+"-")===0})}var f=function(h){a(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("class")||"").split(/\s+/).map(function(c){return c.split("-").slice(0,-1).join("-")})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(this.remove(p),p.classList.add(this.keyName+"-"+c),!0):!1},d.prototype.remove=function(p){var c=u(p,this.keyName);c.forEach(function(v){p.classList.remove(v)}),p.classList.length===0&&p.removeAttribute("class")},d.prototype.value=function(p){var c=u(p,this.keyName)[0]||"",v=c.slice(this.keyName.length+1);return this.canAdd(p,v)?v:""},d}(l.default);n.default=f},function(r,n,i){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h){var d=h.split("-"),p=d.slice(1).map(function(c){return c[0].toUpperCase()+c.slice(1)}).join("");return d[0]+p}var f=function(h){a(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("style")||"").split(";").map(function(c){var v=c.split(":");return v[0].trim()})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(p.style[u(this.keyName)]=c,!0):!1},d.prototype.remove=function(p){p.style[u(this.keyName)]="",p.getAttribute("style")||p.removeAttribute("style")},d.prototype.value=function(p){var c=p.style[u(this.keyName)];return this.canAdd(p,c)?c:""},d}(l.default);n.default=f},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){l(this,f),this.quill=h,this.options=d,this.modules={}}return a(f,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(p){d.modules[p]==null&&d.addModule(p)})}},{key:"addModule",value:function(d){var p=this.quill.constructor.import("modules/"+d);return this.modules[d]=new p(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),f}();u.DEFAULTS={modules:{}},u.themes={default:u},n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function _(E,w){for(var x=0;x<w.length;x++){var A=w[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,w,x){return w&&_(E.prototype,w),x&&_(E,x),E}}(),l=function _(E,w,x){E===null&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,w);if(A===void 0){var C=Object.getPrototypeOf(E);return C===null?void 0:_(C,w,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=i(0),f=p(u),h=i(7),d=p(h);function p(_){return _&&_.__esModule?_:{default:_}}function c(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function v(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function y(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var m="\uFEFF",b=function(_){y(E,_);function E(w){c(this,E);var x=v(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,w));return x.contentNode=document.createElement("span"),x.contentNode.setAttribute("contenteditable",!1),[].slice.call(x.domNode.childNodes).forEach(function(A){x.contentNode.appendChild(A)}),x.leftGuard=document.createTextNode(m),x.rightGuard=document.createTextNode(m),x.domNode.appendChild(x.leftGuard),x.domNode.appendChild(x.contentNode),x.domNode.appendChild(x.rightGuard),x}return a(E,[{key:"index",value:function(x,A){return x===this.leftGuard?0:x===this.rightGuard?1:l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"index",this).call(this,x,A)}},{key:"restore",value:function(x){var A=void 0,C=void 0,S=x.data.split(m).join("");if(x===this.leftGuard)if(this.prev instanceof d.default){var O=this.prev.length();this.prev.insertAt(O,S),A={startNode:this.prev.domNode,startOffset:O+S.length}}else C=document.createTextNode(S),this.parent.insertBefore(f.default.create(C),this),A={startNode:C,startOffset:S.length};else x===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,S),A={startNode:this.next.domNode,startOffset:S.length}):(C=document.createTextNode(S),this.parent.insertBefore(f.default.create(C),this.next),A={startNode:C,startOffset:S.length}));return x.data=m,A}},{key:"update",value:function(x,A){var C=this;x.forEach(function(S){if(S.type==="characterData"&&(S.target===C.leftGuard||S.target===C.rightGuard)){var O=C.restore(S.target);O&&(A.range=O)}})}}]),E}(f.default.Embed);n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var a=i(0),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new l.default.Attributor.Attribute("align","align",f),d=new l.default.Attributor.Class("align","ql-align",f),p=new l.default.Attributor.Style("align","text-align",f);n.AlignAttribute=h,n.AlignClass=d,n.AlignStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var a=i(0),l=f(a),u=i(26);function f(p){return p&&p.__esModule?p:{default:p}}var h=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),d=new u.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});n.BackgroundClass=h,n.BackgroundStyle=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var a=i(0),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},h=new l.default.Attributor.Attribute("direction","dir",f),d=new l.default.Attributor.Class("direction","ql-direction",f),p=new l.default.Attributor.Style("direction","direction",f);n.DirectionAttribute=h,n.DirectionClass=d,n.DirectionStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var a=function(){function _(E,w){for(var x=0;x<w.length;x++){var A=w[x];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(E,A.key,A)}}return function(E,w,x){return w&&_(E.prototype,w),x&&_(E,x),E}}(),l=function _(E,w,x){E===null&&(E=Function.prototype);var A=Object.getOwnPropertyDescriptor(E,w);if(A===void 0){var C=Object.getPrototypeOf(E);return C===null?void 0:_(C,w,x)}else{if("value"in A)return A.value;var S=A.get;return S===void 0?void 0:S.call(x)}},u=i(0),f=h(u);function h(_){return _&&_.__esModule?_:{default:_}}function d(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function p(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function c(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var v={scope:f.default.Scope.INLINE,whitelist:["serif","monospace"]},y=new f.default.Attributor.Class("font","ql-font",v),m=function(_){c(E,_);function E(){return d(this,E),p(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return a(E,[{key:"value",value:function(x){return l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"value",this).call(this,x).replace(/["']/g,"")}}]),E}(f.default.Attributor.Style),b=new m("font","font-family",v);n.FontStyle=b,n.FontClass=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var a=i(0),l=u(a);function u(d){return d&&d.__esModule?d:{default:d}}var f=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});n.SizeClass=f,n.SizeStyle=h},function(r,n,i){r.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var a=function(){function w(x,A){for(var C=0;C<A.length;C++){var S=A[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,C){return A&&w(x.prototype,A),C&&w(x,C),x}}(),l=i(0),u=c(l),f=i(5),h=c(f),d=i(9),p=c(d);function c(w){return w&&w.__esModule?w:{default:w}}function v(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function y(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function m(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var b=function(w){m(x,w);function x(A,C){v(this,x);var S=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,A,C));return S.lastRecorded=0,S.ignoreChange=!1,S.clear(),S.quill.on(h.default.events.EDITOR_CHANGE,function(O,L,R,I){O!==h.default.events.TEXT_CHANGE||S.ignoreChange||(!S.options.userOnly||I===h.default.sources.USER?S.record(L,R):S.transform(L))}),S.quill.keyboard.addBinding({key:"Z",shortKey:!0},S.undo.bind(S)),S.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},S.redo.bind(S)),/Win/i.test(navigator.platform)&&S.quill.keyboard.addBinding({key:"Y",shortKey:!0},S.redo.bind(S)),S}return a(x,[{key:"change",value:function(C,S){if(this.stack[C].length!==0){var O=this.stack[C].pop();this.stack[S].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[C],h.default.sources.USER),this.ignoreChange=!1;var L=E(O[C]);this.quill.setSelection(L)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(C,S){if(C.ops.length!==0){this.stack.redo=[];var O=this.quill.getContents().diff(S),L=Date.now();if(this.lastRecorded+this.options.delay>L&&this.stack.undo.length>0){var R=this.stack.undo.pop();O=O.compose(R.undo),C=R.redo.compose(C)}else this.lastRecorded=L;this.stack.undo.push({redo:C,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(C){this.stack.undo.forEach(function(S){S.undo=C.transform(S.undo,!0),S.redo=C.transform(S.redo,!0)}),this.stack.redo.forEach(function(S){S.undo=C.transform(S.undo,!0),S.redo=C.transform(S.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),x}(p.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function _(w){var x=w.ops[w.ops.length-1];return x==null?!1:x.insert!=null?typeof x.insert=="string"&&x.insert.endsWith(`
|
|
607
|
+
`):x.attributes!=null?Object.keys(x.attributes).some(function(A){return u.default.query(A,u.default.Scope.BLOCK)!=null}):!1}function E(w){var x=w.reduce(function(C,S){return C+=S.delete||0,C},0),A=w.length()-x;return _(w)&&(A-=1),A}n.default=b,n.getLastChangeIndex=E},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var a=function(){function U(q,W){for(var K=0;K<W.length;K++){var G=W[K];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(q,G.key,G)}}return function(q,W,K){return W&&U(q.prototype,W),K&&U(q,K),q}}(),l=function U(q,W,K){q===null&&(q=Function.prototype);var G=Object.getOwnPropertyDescriptor(q,W);if(G===void 0){var V=Object.getPrototypeOf(q);return V===null?void 0:U(V,W,K)}else{if("value"in G)return G.value;var tt=G.get;return tt===void 0?void 0:tt.call(K)}},u=i(3),f=L(u),h=i(2),d=L(h),p=i(8),c=L(p),v=i(23),y=L(v),m=i(34),b=L(m),_=i(59),E=L(_),w=i(60),x=L(w),A=i(28),C=L(A),S=i(61),O=L(S);function L(U){return U&&U.__esModule?U:{default:U}}function R(U,q){if(!(U instanceof q))throw new TypeError("Cannot call a class as a function")}function I(U,q){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q&&(typeof q=="object"||typeof q=="function")?q:U}function N(U,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof q);U.prototype=Object.create(q&&q.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),q&&(Object.setPrototypeOf?Object.setPrototypeOf(U,q):U.__proto__=q)}var k=[!1,"center","right","justify"],F=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],j=[!1,"serif","monospace"],Z=["1","2","3",!1],H=["small",!1,"large","huge"],nt=function(U){N(q,U);function q(W,K){R(this,q);var G=I(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,W,K)),V=function tt(et){if(!document.body.contains(W.root))return document.body.removeEventListener("click",tt);G.tooltip!=null&&!G.tooltip.root.contains(et.target)&&document.activeElement!==G.tooltip.textbox&&!G.quill.hasFocus()&&G.tooltip.hide(),G.pickers!=null&&G.pickers.forEach(function(st){st.container.contains(et.target)||st.close()})};return W.emitter.listenDOM("click",document.body,V),G}return a(q,[{key:"addModule",value:function(K){var G=l(q.prototype.__proto__||Object.getPrototypeOf(q.prototype),"addModule",this).call(this,K);return K==="toolbar"&&this.extendToolbar(G),G}},{key:"buildButtons",value:function(K,G){K.forEach(function(V){var tt=V.getAttribute("class")||"";tt.split(/\s+/).forEach(function(et){if(et.startsWith("ql-")&&(et=et.slice(3),G[et]!=null))if(et==="direction")V.innerHTML=G[et][""]+G[et].rtl;else if(typeof G[et]=="string")V.innerHTML=G[et];else{var st=V.value||"";st!=null&&G[et][st]&&(V.innerHTML=G[et][st])}})})}},{key:"buildPickers",value:function(K,G){var V=this;this.pickers=K.map(function(et){if(et.classList.contains("ql-align"))return et.querySelector("option")==null&&M(et,k),new x.default(et,G.align);if(et.classList.contains("ql-background")||et.classList.contains("ql-color")){var st=et.classList.contains("ql-background")?"background":"color";return et.querySelector("option")==null&&M(et,F,st==="background"?"#ffffff":"#000000"),new E.default(et,G[st])}else return et.querySelector("option")==null&&(et.classList.contains("ql-font")?M(et,j):et.classList.contains("ql-header")?M(et,Z):et.classList.contains("ql-size")&&M(et,H)),new C.default(et)});var tt=function(){V.pickers.forEach(function(st){st.update()})};this.quill.on(c.default.events.EDITOR_CHANGE,tt)}}]),q}(b.default);nt.DEFAULTS=(0,f.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var q=this,W=this.container.querySelector("input.ql-image[type=file]");W==null&&(W=document.createElement("input"),W.setAttribute("type","file"),W.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),W.classList.add("ql-image"),W.addEventListener("change",function(){if(W.files!=null&&W.files[0]!=null){var K=new FileReader;K.onload=function(G){var V=q.quill.getSelection(!0);q.quill.updateContents(new d.default().retain(V.index).delete(V.length).insert({image:G.target.result}),c.default.sources.USER),q.quill.setSelection(V.index+1,c.default.sources.SILENT),W.value=""},K.readAsDataURL(W.files[0])}}),this.container.appendChild(W)),W.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Y=function(U){N(q,U);function q(W,K){R(this,q);var G=I(this,(q.__proto__||Object.getPrototypeOf(q)).call(this,W,K));return G.textbox=G.root.querySelector('input[type="text"]'),G.listen(),G}return a(q,[{key:"listen",value:function(){var K=this;this.textbox.addEventListener("keydown",function(G){y.default.match(G,"enter")?(K.save(),G.preventDefault()):y.default.match(G,"escape")&&(K.cancel(),G.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),G!=null?this.textbox.value=G:K!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+K)||""),this.root.setAttribute("data-mode",K)}},{key:"restoreFocus",value:function(){var K=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=K}},{key:"save",value:function(){var K=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var G=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",K,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",K,c.default.sources.USER)),this.quill.root.scrollTop=G;break}case"video":K=D(K);case"formula":{if(!K)break;var V=this.quill.getSelection(!0);if(V!=null){var tt=V.index+V.length;this.quill.insertEmbed(tt,this.root.getAttribute("data-mode"),K,c.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(tt+1," ",c.default.sources.USER),this.quill.setSelection(tt+2,c.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),q}(O.default);function D(U){var q=U.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||U.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return q?(q[1]||"https")+"://www.youtube.com/embed/"+q[2]+"?showinfo=0":(q=U.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(q[1]||"https")+"://player.vimeo.com/video/"+q[2]+"/":U}function M(U,q){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;q.forEach(function(K){var G=document.createElement("option");K===W?G.setAttribute("selected","selected"):G.setAttribute("value",K),U.appendChild(G)})}n.BaseTooltip=Y,n.default=nt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function l(){this.head=this.tail=null,this.length=0}return l.prototype.append=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];this.insertBefore(u[0],null),u.length>1&&this.append.apply(this,u.slice(1))},l.prototype.contains=function(u){for(var f,h=this.iterator();f=h();)if(f===u)return!0;return!1},l.prototype.insertBefore=function(u,f){u&&(u.next=f,f!=null?(u.prev=f.prev,f.prev!=null&&(f.prev.next=u),f.prev=u,f===this.head&&(this.head=u)):this.tail!=null?(this.tail.next=u,u.prev=this.tail,this.tail=u):(u.prev=null,this.head=this.tail=u),this.length+=1)},l.prototype.offset=function(u){for(var f=0,h=this.head;h!=null;){if(h===u)return f;f+=h.length(),h=h.next}return-1},l.prototype.remove=function(u){this.contains(u)&&(u.prev!=null&&(u.prev.next=u.next),u.next!=null&&(u.next.prev=u.prev),u===this.head&&(this.head=u.next),u===this.tail&&(this.tail=u.prev),this.length-=1)},l.prototype.iterator=function(u){return u===void 0&&(u=this.head),function(){var f=u;return u!=null&&(u=u.next),f}},l.prototype.find=function(u,f){f===void 0&&(f=!1);for(var h,d=this.iterator();h=d();){var p=h.length();if(u<p||f&&u===p&&(h.next==null||h.next.length()!==0))return[h,u];u-=p}return[null,0]},l.prototype.forEach=function(u){for(var f,h=this.iterator();f=h();)u(f)},l.prototype.forEachAt=function(u,f,h){if(!(f<=0))for(var d=this.find(u),p=d[0],c=d[1],v,y=u-c,m=this.iterator(p);(v=m())&&y<u+f;){var b=v.length();u>y?h(v,u-y,Math.min(f,y+b-u)):h(v,0,Math.min(b,u+f-y)),y+=b}},l.prototype.map=function(u){return this.reduce(function(f,h){return f.push(u(h)),f},[])},l.prototype.reduce=function(u,f){for(var h,d=this.iterator();h=d();)f=u(f,h);return f},l}();n.default=a},function(r,n,i){var a=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var y in v)v.hasOwnProperty(y)&&(c[y]=v[y])};return function(c,v){p(c,v);function y(){this.constructor=c}c.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(17),u=i(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,d=function(p){a(c,p);function c(v){var y=p.call(this,v)||this;return y.scroll=y,y.observer=new MutationObserver(function(m){y.update(m)}),y.observer.observe(y.domNode,f),y.attach(),y}return c.prototype.detach=function(){p.prototype.detach.call(this),this.observer.disconnect()},c.prototype.deleteAt=function(v,y){this.update(),v===0&&y===this.length()?this.children.forEach(function(m){m.remove()}):p.prototype.deleteAt.call(this,v,y)},c.prototype.formatAt=function(v,y,m,b){this.update(),p.prototype.formatAt.call(this,v,y,m,b)},c.prototype.insertAt=function(v,y,m){this.update(),p.prototype.insertAt.call(this,v,y,m)},c.prototype.optimize=function(v,y){var m=this;v===void 0&&(v=[]),y===void 0&&(y={}),p.prototype.optimize.call(this,y);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)v.push(b.pop());for(var _=function(A,C){C===void 0&&(C=!0),!(A==null||A===m)&&A.domNode.parentNode!=null&&(A.domNode[u.DATA_KEY].mutations==null&&(A.domNode[u.DATA_KEY].mutations=[]),C&&_(A.parent))},E=function(A){A.domNode[u.DATA_KEY]==null||A.domNode[u.DATA_KEY].mutations==null||(A instanceof l.default&&A.children.forEach(E),A.optimize(y))},w=v,x=0;w.length>0;x+=1){if(x>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(w.forEach(function(A){var C=u.find(A.target,!0);C!=null&&(C.domNode===A.target&&(A.type==="childList"?(_(u.find(A.previousSibling,!1)),[].forEach.call(A.addedNodes,function(S){var O=u.find(S,!1);_(O,!1),O instanceof l.default&&O.children.forEach(function(L){_(L,!1)})})):A.type==="attributes"&&_(C.prev)),_(C))}),this.children.forEach(E),w=[].slice.call(this.observer.takeRecords()),b=w.slice();b.length>0;)v.push(b.pop())}},c.prototype.update=function(v,y){var m=this;y===void 0&&(y={}),v=v||this.observer.takeRecords(),v.map(function(b){var _=u.find(b.target,!0);return _==null?null:_.domNode[u.DATA_KEY].mutations==null?(_.domNode[u.DATA_KEY].mutations=[b],_):(_.domNode[u.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===m||b.domNode[u.DATA_KEY]==null||b.update(b.domNode[u.DATA_KEY].mutations||[],y)}),this.domNode[u.DATA_KEY].mutations!=null&&p.prototype.update.call(this,this.domNode[u.DATA_KEY].mutations,y),this.optimize(v,y)},c.blotName="scroll",c.defaultChild="block",c.scope=u.Scope.BLOCK_BLOT,c.tagName="DIV",c}(l.default);n.default=d},function(r,n,i){var a=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var v in c)c.hasOwnProperty(v)&&(p[v]=c[v])};return function(p,c){d(p,c);function v(){this.constructor=p}p.prototype=c===null?Object.create(c):(v.prototype=c.prototype,new v)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1);function f(d,p){if(Object.keys(d).length!==Object.keys(p).length)return!1;for(var c in d)if(d[c]!==p[c])return!1;return!0}var h=function(d){a(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.formats=function(c){if(c.tagName!==p.tagName)return d.formats.call(this,c)},p.prototype.format=function(c,v){var y=this;c===this.statics.blotName&&!v?(this.children.forEach(function(m){m instanceof l.default||(m=m.wrap(p.blotName,!0)),y.attributes.copy(m)}),this.unwrap()):d.prototype.format.call(this,c,v)},p.prototype.formatAt=function(c,v,y,m){if(this.formats()[y]!=null||u.query(y,u.Scope.ATTRIBUTE)){var b=this.isolate(c,v);b.format(y,m)}else d.prototype.formatAt.call(this,c,v,y,m)},p.prototype.optimize=function(c){d.prototype.optimize.call(this,c);var v=this.formats();if(Object.keys(v).length===0)return this.unwrap();var y=this.next;y instanceof p&&y.prev===this&&f(v,y.formats())&&(y.moveChildren(this),y.remove())},p.blotName="inline",p.scope=u.Scope.INLINE_BLOT,p.tagName="SPAN",p}(l.default);n.default=h},function(r,n,i){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1),f=function(h){a(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.formats=function(p){var c=u.query(d.blotName).tagName;if(p.tagName!==c)return h.formats.call(this,p)},d.prototype.format=function(p,c){u.query(p,u.Scope.BLOCK)!=null&&(p===this.statics.blotName&&!c?this.replaceWith(d.blotName):h.prototype.format.call(this,p,c))},d.prototype.formatAt=function(p,c,v,y){u.query(v,u.Scope.BLOCK)!=null?this.format(v,y):h.prototype.formatAt.call(this,p,c,v,y)},d.prototype.insertAt=function(p,c,v){if(v==null||u.query(c,u.Scope.INLINE)!=null)h.prototype.insertAt.call(this,p,c,v);else{var y=this.split(p),m=u.create(c,v);y.parent.insertBefore(m,y)}},d.prototype.update=function(p,c){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,p,c)},d.blotName="block",d.scope=u.Scope.BLOCK_BLOT,d.tagName="P",d}(l.default);n.default=f},function(r,n,i){var a=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var p in d)d.hasOwnProperty(p)&&(h[p]=d[p])};return function(h,d){f(h,d);function p(){this.constructor=h}h.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=function(f){a(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.formats=function(d){},h.prototype.format=function(d,p){f.prototype.formatAt.call(this,0,this.length(),d,p)},h.prototype.formatAt=function(d,p,c,v){d===0&&p===this.length()?this.format(c,v):f.prototype.formatAt.call(this,d,p,c,v)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(l.default);n.default=u},function(r,n,i){var a=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=i(1),f=function(h){a(d,h);function d(p){var c=h.call(this,p)||this;return c.text=c.statics.value(c.domNode),c}return d.create=function(p){return document.createTextNode(p)},d.value=function(p){var c=p.data;return c.normalize&&(c=c.normalize()),c},d.prototype.deleteAt=function(p,c){this.domNode.data=this.text=this.text.slice(0,p)+this.text.slice(p+c)},d.prototype.index=function(p,c){return this.domNode===p?c:-1},d.prototype.insertAt=function(p,c,v){v==null?(this.text=this.text.slice(0,p)+c+this.text.slice(p),this.domNode.data=this.text):h.prototype.insertAt.call(this,p,c,v)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(p){h.prototype.optimize.call(this,p),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(p,c){return[this.domNode,p]},d.prototype.split=function(p,c){if(c===void 0&&(c=!1),!c){if(p===0)return this;if(p===this.length())return this.next}var v=u.create(this.domNode.splitText(p));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},d.prototype.update=function(p,c){var v=this;p.some(function(y){return y.type==="characterData"&&y.target===v.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var a=document.createElement("div");if(a.classList.toggle("test-class",!1),a.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(u,f){return arguments.length>1&&!this.contains(u)==!f?f:l.call(this,u)}}String.prototype.startsWith||(String.prototype.startsWith=function(u,f){return f=f||0,this.substr(f,u.length)===u}),String.prototype.endsWith||(String.prototype.endsWith=function(u,f){var h=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>h.length)&&(f=h.length),f-=u.length;var d=h.indexOf(u,f);return d!==-1&&d===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),d=h.length>>>0,p=arguments[1],c,v=0;v<d;v++)if(c=h[v],f.call(p,c,v,h))return c}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(r,n){var i=-1,a=1,l=0;function u(x,A,C){if(x==A)return x?[[l,x]]:[];(C<0||x.length<C)&&(C=null);var S=p(x,A),O=x.substring(0,S);x=x.substring(S),A=A.substring(S),S=c(x,A);var L=x.substring(x.length-S);x=x.substring(0,x.length-S),A=A.substring(0,A.length-S);var R=f(x,A);return O&&R.unshift([l,O]),L&&R.push([l,L]),y(R),C!=null&&(R=_(R,C)),R=E(R),R}function f(x,A){var C;if(!x)return[[a,A]];if(!A)return[[i,x]];var S=x.length>A.length?x:A,O=x.length>A.length?A:x,L=S.indexOf(O);if(L!=-1)return C=[[a,S.substring(0,L)],[l,O],[a,S.substring(L+O.length)]],x.length>A.length&&(C[0][0]=C[2][0]=i),C;if(O.length==1)return[[i,x],[a,A]];var R=v(x,A);if(R){var I=R[0],N=R[1],k=R[2],F=R[3],j=R[4],Z=u(I,k),H=u(N,F);return Z.concat([[l,j]],H)}return h(x,A)}function h(x,A){for(var C=x.length,S=A.length,O=Math.ceil((C+S)/2),L=O,R=2*O,I=new Array(R),N=new Array(R),k=0;k<R;k++)I[k]=-1,N[k]=-1;I[L+1]=0,N[L+1]=0;for(var F=C-S,j=F%2!=0,Z=0,H=0,nt=0,Y=0,D=0;D<O;D++){for(var M=-D+Z;M<=D-H;M+=2){var U=L+M,q;M==-D||M!=D&&I[U-1]<I[U+1]?q=I[U+1]:q=I[U-1]+1;for(var W=q-M;q<C&&W<S&&x.charAt(q)==A.charAt(W);)q++,W++;if(I[U]=q,q>C)H+=2;else if(W>S)Z+=2;else if(j){var K=L+F-M;if(K>=0&&K<R&&N[K]!=-1){var G=C-N[K];if(q>=G)return d(x,A,q,W)}}}for(var V=-D+nt;V<=D-Y;V+=2){var K=L+V,G;V==-D||V!=D&&N[K-1]<N[K+1]?G=N[K+1]:G=N[K-1]+1;for(var tt=G-V;G<C&&tt<S&&x.charAt(C-G-1)==A.charAt(S-tt-1);)G++,tt++;if(N[K]=G,G>C)Y+=2;else if(tt>S)nt+=2;else if(!j){var U=L+F-V;if(U>=0&&U<R&&I[U]!=-1){var q=I[U],W=L+q-U;if(G=C-G,q>=G)return d(x,A,q,W)}}}}return[[i,x],[a,A]]}function d(x,A,C,S){var O=x.substring(0,C),L=A.substring(0,S),R=x.substring(C),I=A.substring(S),N=u(O,L),k=u(R,I);return N.concat(k)}function p(x,A){if(!x||!A||x.charAt(0)!=A.charAt(0))return 0;for(var C=0,S=Math.min(x.length,A.length),O=S,L=0;C<O;)x.substring(L,O)==A.substring(L,O)?(C=O,L=C):S=O,O=Math.floor((S-C)/2+C);return O}function c(x,A){if(!x||!A||x.charAt(x.length-1)!=A.charAt(A.length-1))return 0;for(var C=0,S=Math.min(x.length,A.length),O=S,L=0;C<O;)x.substring(x.length-O,x.length-L)==A.substring(A.length-O,A.length-L)?(C=O,L=C):S=O,O=Math.floor((S-C)/2+C);return O}function v(x,A){var C=x.length>A.length?x:A,S=x.length>A.length?A:x;if(C.length<4||S.length*2<C.length)return null;function O(H,nt,Y){for(var D=H.substring(Y,Y+Math.floor(H.length/4)),M=-1,U="",q,W,K,G;(M=nt.indexOf(D,M+1))!=-1;){var V=p(H.substring(Y),nt.substring(M)),tt=c(H.substring(0,Y),nt.substring(0,M));U.length<tt+V&&(U=nt.substring(M-tt,M)+nt.substring(M,M+V),q=H.substring(0,Y-tt),W=H.substring(Y+V),K=nt.substring(0,M-tt),G=nt.substring(M+V))}return U.length*2>=H.length?[q,W,K,G,U]:null}var L=O(C,S,Math.ceil(C.length/4)),R=O(C,S,Math.ceil(C.length/2)),I;if(!L&&!R)return null;R?L?I=L[4].length>R[4].length?L:R:I=R:I=L;var N,k,F,j;x.length>A.length?(N=I[0],k=I[1],F=I[2],j=I[3]):(F=I[0],j=I[1],N=I[2],k=I[3]);var Z=I[4];return[N,k,F,j,Z]}function y(x){x.push([l,""]);for(var A=0,C=0,S=0,O="",L="",R;A<x.length;)switch(x[A][0]){case a:S++,L+=x[A][1],A++;break;case i:C++,O+=x[A][1],A++;break;case l:C+S>1?(C!==0&&S!==0&&(R=p(L,O),R!==0&&(A-C-S>0&&x[A-C-S-1][0]==l?x[A-C-S-1][1]+=L.substring(0,R):(x.splice(0,0,[l,L.substring(0,R)]),A++),L=L.substring(R),O=O.substring(R)),R=c(L,O),R!==0&&(x[A][1]=L.substring(L.length-R)+x[A][1],L=L.substring(0,L.length-R),O=O.substring(0,O.length-R))),C===0?x.splice(A-S,C+S,[a,L]):S===0?x.splice(A-C,C+S,[i,O]):x.splice(A-C-S,C+S,[i,O],[a,L]),A=A-C-S+(C?1:0)+(S?1:0)+1):A!==0&&x[A-1][0]==l?(x[A-1][1]+=x[A][1],x.splice(A,1)):A++,S=0,C=0,O="",L="";break}x[x.length-1][1]===""&&x.pop();var I=!1;for(A=1;A<x.length-1;)x[A-1][0]==l&&x[A+1][0]==l&&(x[A][1].substring(x[A][1].length-x[A-1][1].length)==x[A-1][1]?(x[A][1]=x[A-1][1]+x[A][1].substring(0,x[A][1].length-x[A-1][1].length),x[A+1][1]=x[A-1][1]+x[A+1][1],x.splice(A-1,1),I=!0):x[A][1].substring(0,x[A+1][1].length)==x[A+1][1]&&(x[A-1][1]+=x[A+1][1],x[A][1]=x[A][1].substring(x[A+1][1].length)+x[A+1][1],x.splice(A+1,1),I=!0)),A++;I&&y(x)}var m=u;m.INSERT=a,m.DELETE=i,m.EQUAL=l,r.exports=m;function b(x,A){if(A===0)return[l,x];for(var C=0,S=0;S<x.length;S++){var O=x[S];if(O[0]===i||O[0]===l){var L=C+O[1].length;if(A===L)return[S+1,x];if(A<L){x=x.slice();var R=A-C,I=[O[0],O[1].slice(0,R)],N=[O[0],O[1].slice(R)];return x.splice(S,1,I,N),[S+1,x]}else C=L}}throw new Error("cursor_pos is out of bounds!")}function _(x,A){var C=b(x,A),S=C[1],O=C[0],L=S[O],R=S[O+1];if(L==null)return x;if(L[0]!==l)return x;if(R!=null&&L[1]+R[1]===R[1]+L[1])return S.splice(O,2,R,L),w(S,O,2);if(R!=null&&R[1].indexOf(L[1])===0){S.splice(O,2,[R[0],L[1]],[0,L[1]]);var I=R[1].slice(L[1].length);return I.length>0&&S.splice(O+2,0,[R[0],I]),w(S,O,3)}else return x}function E(x){for(var A=!1,C=function(R){return R.charCodeAt(0)>=56320&&R.charCodeAt(0)<=57343},S=function(R){return R.charCodeAt(R.length-1)>=55296&&R.charCodeAt(R.length-1)<=56319},O=2;O<x.length;O+=1)x[O-2][0]===l&&S(x[O-2][1])&&x[O-1][0]===i&&C(x[O-1][1])&&x[O][0]===a&&C(x[O][1])&&(A=!0,x[O-1][1]=x[O-2][1].slice(-1)+x[O-1][1],x[O][1]=x[O-2][1].slice(-1)+x[O][1],x[O-2][1]=x[O-2][1].slice(0,-1));if(!A)return x;for(var L=[],O=0;O<x.length;O+=1)x[O][1].length>0&&L.push(x[O]);return L}function w(x,A,C){for(var S=A+C-1;S>=0&&S>=A-1;S--)if(S+1<x.length){var O=x[S],L=x[S+1];O[0]===L[1]&&x.splice(S,2,[O[0],O[1]+L[1]])}return x}},function(r,n){n=r.exports=typeof Object.keys=="function"?Object.keys:i,n.shim=i;function i(a){var l=[];for(var u in a)l.push(u);return l}},function(r,n){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";n=r.exports=i?a:l,n.supported=a;function a(u){return Object.prototype.toString.call(u)=="[object Arguments]"}n.unsupported=l;function l(u){return u&&typeof u=="object"&&typeof u.length=="number"&&Object.prototype.hasOwnProperty.call(u,"callee")&&!Object.prototype.propertyIsEnumerable.call(u,"callee")||!1}},function(r,n){var i=Object.prototype.hasOwnProperty,a="~";function l(){}Object.create&&(l.prototype=Object.create(null),new l().__proto__||(a=!1));function u(h,d,p){this.fn=h,this.context=d,this.once=p||!1}function f(){this._events=new l,this._eventsCount=0}f.prototype.eventNames=function(){var d=[],p,c;if(this._eventsCount===0)return d;for(c in p=this._events)i.call(p,c)&&d.push(a?c.slice(1):c);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},f.prototype.listeners=function(d,p){var c=a?a+d:d,v=this._events[c];if(p)return!!v;if(!v)return[];if(v.fn)return[v.fn];for(var y=0,m=v.length,b=new Array(m);y<m;y++)b[y]=v[y].fn;return b},f.prototype.emit=function(d,p,c,v,y,m){var b=a?a+d:d;if(!this._events[b])return!1;var _=this._events[b],E=arguments.length,w,x;if(_.fn){switch(_.once&&this.removeListener(d,_.fn,void 0,!0),E){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,p),!0;case 3:return _.fn.call(_.context,p,c),!0;case 4:return _.fn.call(_.context,p,c,v),!0;case 5:return _.fn.call(_.context,p,c,v,y),!0;case 6:return _.fn.call(_.context,p,c,v,y,m),!0}for(x=1,w=new Array(E-1);x<E;x++)w[x-1]=arguments[x];_.fn.apply(_.context,w)}else{var A=_.length,C;for(x=0;x<A;x++)switch(_[x].once&&this.removeListener(d,_[x].fn,void 0,!0),E){case 1:_[x].fn.call(_[x].context);break;case 2:_[x].fn.call(_[x].context,p);break;case 3:_[x].fn.call(_[x].context,p,c);break;case 4:_[x].fn.call(_[x].context,p,c,v);break;default:if(!w)for(C=1,w=new Array(E-1);C<E;C++)w[C-1]=arguments[C];_[x].fn.apply(_[x].context,w)}}return!0},f.prototype.on=function(d,p,c){var v=new u(p,c||this),y=a?a+d:d;return this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],v]:this._events[y].push(v):(this._events[y]=v,this._eventsCount++),this},f.prototype.once=function(d,p,c){var v=new u(p,c||this,!0),y=a?a+d:d;return this._events[y]?this._events[y].fn?this._events[y]=[this._events[y],v]:this._events[y].push(v):(this._events[y]=v,this._eventsCount++),this},f.prototype.removeListener=function(d,p,c,v){var y=a?a+d:d;if(!this._events[y])return this;if(!p)return--this._eventsCount===0?this._events=new l:delete this._events[y],this;var m=this._events[y];if(m.fn)m.fn===p&&(!v||m.once)&&(!c||m.context===c)&&(--this._eventsCount===0?this._events=new l:delete this._events[y]);else{for(var b=0,_=[],E=m.length;b<E;b++)(m[b].fn!==p||v&&!m[b].once||c&&m[b].context!==c)&&_.push(m[b]);_.length?this._events[y]=_.length===1?_[0]:_:--this._eventsCount===0?this._events=new l:delete this._events[y]}return this},f.prototype.removeAllListeners=function(d){var p;return d?(p=a?a+d:d,this._events[p]&&(--this._eventsCount===0?this._events=new l:delete this._events[p])):(this._events=new l,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=a,f.EventEmitter=f,typeof r<"u"&&(r.exports=f)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.default=void 0;var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(it){return typeof it}:function(it){return it&&typeof Symbol=="function"&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it},l=function(){function it(ot,dt){var pt=[],ft=!0,Nt=!1,Lt=void 0;try{for(var Pt=ot[Symbol.iterator](),He;!(ft=(He=Pt.next()).done)&&(pt.push(He.value),!(dt&&pt.length===dt));ft=!0);}catch(Ue){Nt=!0,Lt=Ue}finally{try{!ft&&Pt.return&&Pt.return()}finally{if(Nt)throw Lt}}return pt}return function(ot,dt){if(Array.isArray(ot))return ot;if(Symbol.iterator in Object(ot))return it(ot,dt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function it(ot,dt){for(var pt=0;pt<dt.length;pt++){var ft=dt[pt];ft.enumerable=ft.enumerable||!1,ft.configurable=!0,"value"in ft&&(ft.writable=!0),Object.defineProperty(ot,ft.key,ft)}}return function(ot,dt,pt){return dt&&it(ot.prototype,dt),pt&&it(ot,pt),ot}}(),f=i(3),h=N(f),d=i(2),p=N(d),c=i(0),v=N(c),y=i(5),m=N(y),b=i(10),_=N(b),E=i(9),w=N(E),x=i(36),A=i(37),C=i(13),S=N(C),O=i(26),L=i(38),R=i(39),I=i(40);function N(it){return it&&it.__esModule?it:{default:it}}function k(it,ot,dt){return ot in it?Object.defineProperty(it,ot,{value:dt,enumerable:!0,configurable:!0,writable:!0}):it[ot]=dt,it}function F(it,ot){if(!(it instanceof ot))throw new TypeError("Cannot call a class as a function")}function j(it,ot){if(!it)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ot&&(typeof ot=="object"||typeof ot=="function")?ot:it}function Z(it,ot){if(typeof ot!="function"&&ot!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ot);it.prototype=Object.create(ot&&ot.prototype,{constructor:{value:it,enumerable:!1,writable:!0,configurable:!0}}),ot&&(Object.setPrototypeOf?Object.setPrototypeOf(it,ot):it.__proto__=ot)}var H=(0,_.default)("quill:clipboard"),nt="__ql-matcher",Y=[[Node.TEXT_NODE,$t],[Node.TEXT_NODE,vt],["br",ht],[Node.ELEMENT_NODE,vt],[Node.ELEMENT_NODE,st],[Node.ELEMENT_NODE,It],[Node.ELEMENT_NODE,et],[Node.ELEMENT_NODE,re],["li",_t],["b",tt.bind(tt,"bold")],["i",tt.bind(tt,"italic")],["style",yt]],D=[x.AlignAttribute,L.DirectionAttribute].reduce(function(it,ot){return it[ot.keyName]=ot,it},{}),M=[x.AlignStyle,A.BackgroundStyle,O.ColorStyle,L.DirectionStyle,R.FontStyle,I.SizeStyle].reduce(function(it,ot){return it[ot.keyName]=ot,it},{}),U=function(it){Z(ot,it);function ot(dt,pt){F(this,ot);var ft=j(this,(ot.__proto__||Object.getPrototypeOf(ot)).call(this,dt,pt));return ft.quill.root.addEventListener("paste",ft.onPaste.bind(ft)),ft.container=ft.quill.addContainer("ql-clipboard"),ft.container.setAttribute("contenteditable",!0),ft.container.setAttribute("tabindex",-1),ft.matchers=[],Y.concat(ft.options.matchers).forEach(function(Nt){var Lt=l(Nt,2),Pt=Lt[0],He=Lt[1];!pt.matchVisual&&He===It||ft.addMatcher(Pt,He)}),ft}return u(ot,[{key:"addMatcher",value:function(pt,ft){this.matchers.push([pt,ft])}},{key:"convert",value:function(pt){if(typeof pt=="string")return this.container.innerHTML=pt.replace(/\>\r?\n +\</g,"><"),this.convert();var ft=this.quill.getFormat(this.quill.selection.savedRange.index);if(ft[S.default.blotName]){var Nt=this.container.innerText;return this.container.innerHTML="",new p.default().insert(Nt,k({},S.default.blotName,ft[S.default.blotName]))}var Lt=this.prepareMatching(),Pt=l(Lt,2),He=Pt[0],Ue=Pt[1],Kt=V(this.container,He,Ue);return K(Kt,`
|
|
608
608
|
`)&&Kt.ops[Kt.ops.length-1].attributes==null&&(Kt=Kt.compose(new p.default().retain(Kt.length()-1).delete(1))),H.log("convert",this.container.innerHTML,Kt),this.container.innerHTML="",Kt}},{key:"dangerouslyPasteHTML",value:function(pt,ft){var Nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof pt=="string")this.quill.setContents(this.convert(pt),ft),this.quill.setSelection(0,m.default.sources.SILENT);else{var Lt=this.convert(ft);this.quill.updateContents(new p.default().retain(pt).concat(Lt),Nt),this.quill.setSelection(pt+Lt.length(),m.default.sources.SILENT)}}},{key:"onPaste",value:function(pt){var ft=this;if(!(pt.defaultPrevented||!this.quill.isEnabled())){var Nt=this.quill.getSelection(),Lt=new p.default().retain(Nt.index),Pt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(m.default.sources.SILENT),setTimeout(function(){Lt=Lt.concat(ft.convert()).delete(Nt.length),ft.quill.updateContents(Lt,m.default.sources.USER),ft.quill.setSelection(Lt.length()-Nt.length,m.default.sources.SILENT),ft.quill.scrollingContainer.scrollTop=Pt,ft.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var pt=this,ft=[],Nt=[];return this.matchers.forEach(function(Lt){var Pt=l(Lt,2),He=Pt[0],Ue=Pt[1];switch(He){case Node.TEXT_NODE:Nt.push(Ue);break;case Node.ELEMENT_NODE:ft.push(Ue);break;default:[].forEach.call(pt.container.querySelectorAll(He),function(Kt){Kt[nt]=Kt[nt]||[],Kt[nt].push(Ue)});break}}),[ft,Nt]}}]),ot}(w.default);U.DEFAULTS={matchers:[],matchVisual:!0};function q(it,ot,dt){return(typeof ot>"u"?"undefined":a(ot))==="object"?Object.keys(ot).reduce(function(pt,ft){return q(pt,ft,ot[ft])},it):it.reduce(function(pt,ft){return ft.attributes&&ft.attributes[ot]?pt.push(ft):pt.insert(ft.insert,(0,h.default)({},k({},ot,dt),ft.attributes))},new p.default)}function W(it){if(it.nodeType!==Node.ELEMENT_NODE)return{};var ot="__ql-computed-style";return it[ot]||(it[ot]=window.getComputedStyle(it))}function K(it,ot){for(var dt="",pt=it.ops.length-1;pt>=0&&dt.length<ot.length;--pt){var ft=it.ops[pt];if(typeof ft.insert!="string")break;dt=ft.insert+dt}return dt.slice(-1*ot.length)===ot}function G(it){if(it.childNodes.length===0)return!1;var ot=W(it);return["block","list-item"].indexOf(ot.display)>-1}function V(it,ot,dt){return it.nodeType===it.TEXT_NODE?dt.reduce(function(pt,ft){return ft(it,pt)},new p.default):it.nodeType===it.ELEMENT_NODE?[].reduce.call(it.childNodes||[],function(pt,ft){var Nt=V(ft,ot,dt);return ft.nodeType===it.ELEMENT_NODE&&(Nt=ot.reduce(function(Lt,Pt){return Pt(ft,Lt)},Nt),Nt=(ft[nt]||[]).reduce(function(Lt,Pt){return Pt(ft,Lt)},Nt)),pt.concat(Nt)},new p.default):new p.default}function tt(it,ot,dt){return q(dt,it,!0)}function et(it,ot){var dt=v.default.Attributor.Attribute.keys(it),pt=v.default.Attributor.Class.keys(it),ft=v.default.Attributor.Style.keys(it),Nt={};return dt.concat(pt).concat(ft).forEach(function(Lt){var Pt=v.default.query(Lt,v.default.Scope.ATTRIBUTE);Pt!=null&&(Nt[Pt.attrName]=Pt.value(it),Nt[Pt.attrName])||(Pt=D[Lt],Pt!=null&&(Pt.attrName===Lt||Pt.keyName===Lt)&&(Nt[Pt.attrName]=Pt.value(it)||void 0),Pt=M[Lt],Pt!=null&&(Pt.attrName===Lt||Pt.keyName===Lt)&&(Pt=M[Lt],Nt[Pt.attrName]=Pt.value(it)||void 0))}),Object.keys(Nt).length>0&&(ot=q(ot,Nt)),ot}function st(it,ot){var dt=v.default.query(it);if(dt==null)return ot;if(dt.prototype instanceof v.default.Embed){var pt={},ft=dt.value(it);ft!=null&&(pt[dt.blotName]=ft,ot=new p.default().insert(pt,dt.formats(it)))}else typeof dt.formats=="function"&&(ot=q(ot,dt.blotName,dt.formats(it)));return ot}function ht(it,ot){return K(ot,`
|
|
609
609
|
`)||ot.insert(`
|
|
610
610
|
`),ot}function yt(){return new p.default}function _t(it,ot){var dt=v.default.query(it);if(dt==null||dt.blotName!=="list-item"||!K(ot,`
|
|
611
|
-
`))return ot;for(var pt=-1,ft=it.parentNode;!ft.classList.contains("ql-clipboard");)(v.default.query(ft)||{}).blotName==="list"&&(pt+=1),ft=ft.parentNode;return pt<=0?ot:ot.compose(new p.default().retain(ot.length()-1).retain(1,{indent:pt}))}function
|
|
611
|
+
`))return ot;for(var pt=-1,ft=it.parentNode;!ft.classList.contains("ql-clipboard");)(v.default.query(ft)||{}).blotName==="list"&&(pt+=1),ft=ft.parentNode;return pt<=0?ot:ot.compose(new p.default().retain(ot.length()-1).retain(1,{indent:pt}))}function vt(it,ot){return K(ot,`
|
|
612
612
|
`)||(G(it)||ot.length()>0&&it.nextSibling&&G(it.nextSibling))&&ot.insert(`
|
|
613
613
|
`),ot}function It(it,ot){if(G(it)&&it.nextElementSibling!=null&&!K(ot,`
|
|
614
614
|
|
|
615
615
|
`)){var dt=it.offsetHeight+parseFloat(W(it).marginTop)+parseFloat(W(it).marginBottom);it.nextElementSibling.offsetTop>it.offsetTop+dt*1.5&&ot.insert(`
|
|
616
|
-
`)}return ot}function re(it,ot){var dt={},pt=it.style||{};return pt.fontStyle&&W(it).fontStyle==="italic"&&(dt.italic=!0),pt.fontWeight&&(W(it).fontWeight.startsWith("bold")||parseInt(W(it).fontWeight)>=700)&&(dt.bold=!0),Object.keys(dt).length>0&&(ot=q(ot,dt)),parseFloat(pt.textIndent||0)>0&&(ot=new p.default().insert(" ").concat(ot)),ot}function $t(it,ot){var dt=it.data;if(it.parentNode.tagName==="O:P")return ot.insert(dt.trim());if(dt.trim().length===0&&it.parentNode.classList.contains("ql-clipboard"))return ot;if(!W(it.parentNode).whiteSpace.startsWith("pre")){var pt=function(Nt,Lt){return Lt=Lt.replace(/[^\u00a0]/g,""),Lt.length<1&&Nt?" ":Lt};dt=dt.replace(/\r\n/g," ").replace(/\n/g," "),dt=dt.replace(/\s\s+/g,pt.bind(pt,!0)),(it.previousSibling==null&&G(it.parentNode)||it.previousSibling!=null&&G(it.previousSibling))&&(dt=dt.replace(/^\s+/,pt.bind(pt,!1))),(it.nextSibling==null&&G(it.parentNode)||it.nextSibling!=null&&G(it.nextSibling))&&(dt=dt.replace(/\s+$/,pt.bind(pt,!1)))}return ot.insert(dt)}n.default=U,n.matchAttributor=et,n.matchBlot=st,n.matchNewline=gt,n.matchSpacing=It,n.matchText=$t},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return d(this,m),p(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"optimize",value:function(_){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,_),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(f.default);v.blotName="bold",v.tagName=["STRONG","B"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var a=function(){function I(N,k){var F=[],j=!0,Z=!1,H=void 0;try{for(var nt=N[Symbol.iterator](),Y;!(j=(Y=nt.next()).done)&&(F.push(Y.value),!(k&&F.length===k));j=!0);}catch(D){Z=!0,H=D}finally{try{!j&&nt.return&&nt.return()}finally{if(Z)throw H}}return F}return function(N,k){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return I(N,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function I(N,k){for(var F=0;F<k.length;F++){var j=k[F];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}return function(N,k,F){return k&&I(N.prototype,k),F&&I(N,F),N}}(),u=i(2),f=_(u),h=i(0),d=_(h),p=i(5),c=_(p),v=i(10),y=_(v),m=i(9),b=_(m);function _(I){return I&&I.__esModule?I:{default:I}}function E(I,N,k){return N in I?Object.defineProperty(I,N,{value:k,enumerable:!0,configurable:!0,writable:!0}):I[N]=k,I}function w(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function x(I,N){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:I}function A(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(I,N):I.__proto__=N)}var C=(0,y.default)("quill:toolbar"),S=function(I){A(N,I);function N(k,F){w(this,N);var j=x(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,k,F));if(Array.isArray(j.options.container)){var Z=document.createElement("div");L(Z,j.options.container),k.container.parentNode.insertBefore(Z,k.container),j.container=Z}else typeof j.options.container=="string"?j.container=document.querySelector(j.options.container):j.container=j.options.container;if(!(j.container instanceof HTMLElement)){var H;return H=C.error("Container required for toolbar",j.options),x(j,H)}return j.container.classList.add("ql-toolbar"),j.controls=[],j.handlers={},Object.keys(j.options.handlers).forEach(function(nt){j.addHandler(nt,j.options.handlers[nt])}),[].forEach.call(j.container.querySelectorAll("button, select"),function(nt){j.attach(nt)}),j.quill.on(c.default.events.EDITOR_CHANGE,function(nt,Y){nt===c.default.events.SELECTION_CHANGE&&j.update(Y)}),j.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){var nt=j.quill.selection.getRange(),Y=a(nt,1),D=Y[0];j.update(D)}),j}return l(N,[{key:"addHandler",value:function(F,j){this.handlers[F]=j}},{key:"attach",value:function(F){var j=this,Z=[].find.call(F.classList,function(nt){return nt.indexOf("ql-")===0});if(Z){if(Z=Z.slice(3),F.tagName==="BUTTON"&&F.setAttribute("type","button"),this.handlers[Z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Z]==null){C.warn("ignoring attaching to disabled format",Z,F);return}if(d.default.query(Z)==null){C.warn("ignoring attaching to nonexistent format",Z,F);return}}var H=F.tagName==="SELECT"?"change":"click";F.addEventListener(H,function(nt){var Y=void 0;if(F.tagName==="SELECT"){if(F.selectedIndex<0)return;var D=F.options[F.selectedIndex];D.hasAttribute("selected")?Y=!1:Y=D.value||!1}else F.classList.contains("ql-active")?Y=!1:Y=F.value||!F.hasAttribute("value"),nt.preventDefault();j.quill.focus();var M=j.quill.selection.getRange(),U=a(M,1),q=U[0];if(j.handlers[Z]!=null)j.handlers[Z].call(j,Y);else if(d.default.query(Z).prototype instanceof d.default.Embed){if(Y=prompt("Enter "+Z),!Y)return;j.quill.updateContents(new f.default().retain(q.index).delete(q.length).insert(E({},Z,Y)),c.default.sources.USER)}else j.quill.format(Z,Y,c.default.sources.USER);j.update(q)}),this.controls.push([Z,F])}}},{key:"update",value:function(F){var j=F==null?{}:this.quill.getFormat(F);this.controls.forEach(function(Z){var H=a(Z,2),nt=H[0],Y=H[1];if(Y.tagName==="SELECT"){var D=void 0;if(F==null)D=null;else if(j[nt]==null)D=Y.querySelector("option[selected]");else if(!Array.isArray(j[nt])){var M=j[nt];typeof M=="string"&&(M=M.replace(/\"/g,'\\"')),D=Y.querySelector('option[value="'+M+'"]')}D==null?(Y.value="",Y.selectedIndex=-1):D.selected=!0}else if(F==null)Y.classList.remove("ql-active");else if(Y.hasAttribute("value")){var U=j[nt]===Y.getAttribute("value")||j[nt]!=null&&j[nt].toString()===Y.getAttribute("value")||j[nt]==null&&!Y.getAttribute("value");Y.classList.toggle("ql-active",U)}else Y.classList.toggle("ql-active",j[nt]!=null)})}}]),N}(b.default);S.DEFAULTS={};function O(I,N,k){var F=document.createElement("button");F.setAttribute("type","button"),F.classList.add("ql-"+N),k!=null&&(F.value=k),I.appendChild(F)}function L(I,N){Array.isArray(N[0])||(N=[N]),N.forEach(function(k){var F=document.createElement("span");F.classList.add("ql-formats"),k.forEach(function(j){if(typeof j=="string")O(F,j);else{var Z=Object.keys(j)[0],H=j[Z];Array.isArray(H)?R(F,Z,H):O(F,Z,H)}}),I.appendChild(F)})}function R(I,N,k){var F=document.createElement("select");F.classList.add("ql-"+N),k.forEach(function(j){var Z=document.createElement("option");j!==!1?Z.setAttribute("value",j):Z.setAttribute("selected","selected"),F.appendChild(Z)}),I.appendChild(F)}S.DEFAULTS={container:null,handlers:{clean:function(){var N=this,k=this.quill.getSelection();if(k!=null)if(k.length==0){var F=this.quill.getFormat();Object.keys(F).forEach(function(j){d.default.query(j,d.default.Scope.INLINE)!=null&&N.quill.format(j,!1)})}else this.quill.removeFormat(k,c.default.sources.USER)},direction:function(N){var k=this.quill.getFormat().align;N==="rtl"&&k==null?this.quill.format("align","right",c.default.sources.USER):!N&&k==="right"&&this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",N,c.default.sources.USER)},indent:function(N){var k=this.quill.getSelection(),F=this.quill.getFormat(k),j=parseInt(F.indent||0);if(N==="+1"||N==="-1"){var Z=N==="+1"?1:-1;F.direction==="rtl"&&(Z*=-1),this.quill.format("indent",j+Z,c.default.sources.USER)}},link:function(N){N===!0&&(N=prompt("Enter link URL:")),this.quill.format("link",N,c.default.sources.USER)},list:function(N){var k=this.quill.getSelection(),F=this.quill.getFormat(k);N==="check"?F.list==="checked"||F.list==="unchecked"?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",N,c.default.sources.USER)}}},n.default=S,n.addControls=L},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(b,_){d(this,m);var E=p(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return E.label.innerHTML=_,E.container.classList.add("ql-color-picker"),[].slice.call(E.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),E}return a(m,[{key:"buildItem",value:function(_){var E=l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,_);return E.style.backgroundColor=_.getAttribute("value")||"",E}},{key:"selectItem",value:function(_,E){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,_,E);var w=this.label.querySelector(".ql-color-label"),x=_&&_.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=x:w.style.fill=x)}}]),m}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(b,_){d(this,m);var E=p(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return E.container.classList.add("ql-icon-picker"),[].forEach.call(E.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=_[w.getAttribute("data-value")||""]}),E.defaultItem=E.container.querySelector(".ql-selected"),E.selectItem(E.defaultItem),E}return a(m,[{key:"selectItem",value:function(_,E){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,_,E),_=_||this.defaultItem,this.label.innerHTML=_.innerHTML}}]),m}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){var p=this;l(this,f),this.quill=h,this.boundsContainer=d||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){p.root.style.marginTop=-1*p.quill.root.scrollTop+"px"}),this.hide()}return a(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var p=d.left+d.width/2-this.root.offsetWidth/2,c=d.bottom+this.quill.root.scrollTop;this.root.style.left=p+"px",this.root.style.top=c+"px",this.root.classList.remove("ql-flip");var v=this.boundsContainer.getBoundingClientRect(),y=this.root.getBoundingClientRect(),m=0;if(y.right>v.right&&(m=v.right-y.right,this.root.style.left=p+m+"px"),y.left<v.left&&(m=v.left-y.left,this.root.style.left=p+m+"px"),y.bottom>v.bottom){var b=y.bottom-y.top,_=d.bottom-d.top+b;this.root.style.top=c-_+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function R(I,N){var k=[],F=!0,j=!1,Z=void 0;try{for(var H=I[Symbol.iterator](),nt;!(F=(nt=H.next()).done)&&(k.push(nt.value),!(N&&k.length===N));F=!0);}catch(Y){j=!0,Z=Y}finally{try{!F&&H.return&&H.return()}finally{if(j)throw Z}}return k}return function(I,N){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return R(I,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function R(I,N,k){I===null&&(I=Function.prototype);var F=Object.getOwnPropertyDescriptor(I,N);if(F===void 0){var j=Object.getPrototypeOf(I);return j===null?void 0:R(j,N,k)}else{if("value"in F)return F.value;var Z=F.get;return Z===void 0?void 0:Z.call(k)}},u=function(){function R(I,N){for(var k=0;k<N.length;k++){var F=N[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,F.key,F)}}return function(I,N,k){return N&&R(I.prototype,N),k&&R(I,k),I}}(),f=i(3),h=w(f),d=i(8),p=w(d),c=i(43),v=w(c),y=i(27),m=w(y),b=i(15),_=i(41),E=w(_);function w(R){return R&&R.__esModule?R:{default:R}}function x(R,I){if(!(R instanceof I))throw new TypeError("Cannot call a class as a function")}function A(R,I){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:R}function C(R,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);R.prototype=Object.create(I&&I.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(R,I):R.__proto__=I)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(R){C(I,R);function I(N,k){x(this,I),k.modules.toolbar!=null&&k.modules.toolbar.container==null&&(k.modules.toolbar.container=S);var F=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,N,k));return F.quill.container.classList.add("ql-snow"),F}return u(I,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),E.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),E.default),this.tooltip=new L(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(F,j){k.handlers.link.call(k,!j.format.link)})}}]),I}(v.default);O.DEFAULTS=(0,h.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(I){if(I){var N=this.quill.getSelection();if(N==null||N.length==0)return;var k=this.quill.getText(N);/^\S+@\S+\.\S+$/.test(k)&&k.indexOf("mailto:")!==0&&(k="mailto:"+k);var F=this.quill.theme.tooltip;F.edit("link",k)}else this.quill.format("link",!1)}}}}});var L=function(R){C(I,R);function I(N,k){x(this,I);var F=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,N,k));return F.preview=F.root.querySelector("a.ql-preview"),F}return u(I,[{key:"listen",value:function(){var k=this;l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(F){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),F.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(F){if(k.linkRange!=null){var j=k.linkRange;k.restoreFocus(),k.quill.formatText(j,"link",!1,p.default.sources.USER),delete k.linkRange}F.preventDefault(),k.hide()}),this.quill.on(p.default.events.SELECTION_CHANGE,function(F,j,Z){if(F!=null){if(F.length===0&&Z===p.default.sources.USER){var H=k.quill.scroll.descendant(m.default,F.index),nt=a(H,2),Y=nt[0],D=nt[1];if(Y!=null){k.linkRange=new b.Range(F.index-D,Y.length());var M=m.default.formats(Y.domNode);k.preview.textContent=M,k.preview.setAttribute("href",M),k.show(),k.position(k.quill.getBounds(k.linkRange));return}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),I}(c.BaseTooltip);L.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=O},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(29),l=ft(a),u=i(36),f=i(38),h=i(64),d=i(65),p=ft(d),c=i(66),v=ft(c),y=i(67),m=ft(y),b=i(37),_=i(26),E=i(39),w=i(40),x=i(56),A=ft(x),C=i(68),S=ft(C),O=i(27),L=ft(O),R=i(69),I=ft(R),N=i(70),k=ft(N),F=i(71),j=ft(F),Z=i(72),H=ft(Z),nt=i(73),Y=ft(nt),D=i(13),M=ft(D),U=i(74),q=ft(U),W=i(75),K=ft(W),G=i(57),V=ft(G),tt=i(41),et=ft(tt),st=i(28),ht=ft(st),yt=i(59),_t=ft(yt),gt=i(60),It=ft(gt),re=i(61),$t=ft(re),it=i(108),ot=ft(it),dt=i(62),pt=ft(dt);function ft(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}}l.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":u.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":_.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":E.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":u.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":_.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":E.FontStyle,"attributors/style/size":w.SizeStyle},!0),l.default.register({"formats/align":u.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":_.ColorStyle,"formats/font":E.FontClass,"formats/size":w.SizeClass,"formats/blockquote":p.default,"formats/code-block":M.default,"formats/header":v.default,"formats/list":m.default,"formats/bold":A.default,"formats/code":D.Code,"formats/italic":S.default,"formats/link":L.default,"formats/script":I.default,"formats/strike":k.default,"formats/underline":j.default,"formats/image":H.default,"formats/video":Y.default,"formats/list/item":y.ListItem,"modules/formula":q.default,"modules/syntax":K.default,"modules/toolbar":V.default,"themes/bubble":ot.default,"themes/snow":pt.default,"ui/icons":et.default,"ui/picker":ht.default,"ui/icon-picker":It.default,"ui/color-picker":_t.default,"ui/tooltip":$t.default},!0),n.default=l.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var a=function(){function m(b,_){for(var E=0;E<_.length;E++){var w=_[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,_,E){return _&&m(b.prototype,_),E&&m(b,E),b}}(),l=function m(b,_,E){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,_);if(w===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:m(x,_,E)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(E)}},u=i(0),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function p(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function c(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var v=function(m){c(b,m);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"add",value:function(E,w){if(w==="+1"||w==="-1"){var x=this.value(E)||0;w=w==="+1"?x+1:x-1}return w===0?(this.remove(E),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,E,w)}},{key:"canAdd",value:function(E,w){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,E,w)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,E,parseInt(w))}},{key:"value",value:function(E){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,E))||void 0}}]),b}(f.default.Attributor.Class),y=new v("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(4),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="blockquote",p.tagName="blockquote",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function v(y,m){for(var b=0;b<m.length;b++){var _=m[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,m,b){return m&&v(y.prototype,m),b&&v(y,b),y}}(),l=i(4),u=f(l);function f(v){return v&&v.__esModule?v:{default:v}}function h(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function d(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function p(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var c=function(v){p(y,v);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),y}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var a=function(){function x(A,C){for(var S=0;S<C.length;S++){var O=C[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,C,S){return C&&x(A.prototype,C),S&&x(A,S),A}}(),l=function x(A,C,S){A===null&&(A=Function.prototype);var O=Object.getOwnPropertyDescriptor(A,C);if(O===void 0){var L=Object.getPrototypeOf(A);return L===null?void 0:x(L,C,S)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(S)}},u=i(0),f=v(u),h=i(4),d=v(h),p=i(25),c=v(p);function v(x){return x&&x.__esModule?x:{default:x}}function y(x,A,C){return A in x?Object.defineProperty(x,A,{value:C,enumerable:!0,configurable:!0,writable:!0}):x[A]=C,x}function m(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}function b(x,A){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:x}function _(x,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);x.prototype=Object.create(A&&A.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(x,A):x.__proto__=A)}var E=function(x){_(A,x);function A(){return m(this,A),b(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return a(A,[{key:"format",value:function(S,O){S===w.blotName&&!O?this.replaceWith(f.default.create(this.statics.scope)):l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,S,O)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,O){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,O),this):(this.parent.unwrap(),l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,S,O))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:l(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,S)}}]),A}(d.default);E.blotName="list-item",E.tagName="LI";var w=function(x){_(A,x),a(A,null,[{key:"create",value:function(S){var O=S==="ordered"?"OL":"UL",L=l(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,O);return(S==="checked"||S==="unchecked")&&L.setAttribute("data-checked",S==="checked"),L}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(C){m(this,A);var S=b(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,C)),O=function(R){if(R.target.parentNode===C){var I=S.statics.formats(C),N=f.default.find(R.target);I==="checked"?N.format("list","unchecked"):I==="unchecked"&&N.format("list","checked")}};return C.addEventListener("touchstart",O),C.addEventListener("mousedown",O),S}return a(A,[{key:"format",value:function(S,O){this.children.length>0&&this.children.tail.format(S,O)}},{key:"formats",value:function(){return y({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,O){if(S instanceof E)l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,S,O);else{var L=O==null?this.length():O.offset(this),R=this.split(L);R.parent.insertBefore(S,R)}}},{key:"optimize",value:function(S){l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,S);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var O=f.default.create(this.statics.defaultChild);S.moveChildren(O),this.appendChild(O)}l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,S)}}]),A}(c.default);w.blotName="list",w.scope=f.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[E],n.ListItem=E,n.default=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(56),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="italic",p.tagName=["EM","I"],n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return d(this,m),p(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,null,[{key:"create",value:function(_){return _==="super"?document.createElement("sup"):_==="sub"?document.createElement("sub"):l(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_)}},{key:"formats",value:function(_){if(_.tagName==="SUB")return"sub";if(_.tagName==="SUP")return"super"}}]),m}(f.default);v.blotName="script",v.tagName=["SUB","SUP"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(6),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="strike",p.tagName="S",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(6),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="underline",p.tagName="U",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),l=function b(_,E,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,E);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,E,w)}else{if("value"in x)return x.value;var C=x.get;return C===void 0?void 0:C.call(w)}},u=i(0),f=d(u),h=i(27);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var y=["alt","height","width"],m=function(b){v(_,b);function _(){return p(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"format",value:function(w,x){y.indexOf(w)>-1?x?this.domNode.setAttribute(w,x):this.domNode.removeAttribute(w):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,w,x)}}],[{key:"create",value:function(w){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,w);return typeof w=="string"&&x.setAttribute("src",this.sanitize(w)),x}},{key:"formats",value:function(w){return y.reduce(function(x,A){return w.hasAttribute(A)&&(x[A]=w.getAttribute(A)),x},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,h.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),_}(f.default.Embed);m.blotName="image",m.tagName="IMG",n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),l=function b(_,E,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,E);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,E,w)}else{if("value"in x)return x.value;var C=x.get;return C===void 0?void 0:C.call(w)}},u=i(4),f=i(27),h=d(f);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var y=["height","width"],m=function(b){v(_,b);function _(){return p(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"format",value:function(w,x){y.indexOf(w)>-1?x?this.domNode.setAttribute(w,x):this.domNode.removeAttribute(w):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,w,x)}}],[{key:"create",value:function(w){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,w);return x.setAttribute("frameborder","0"),x.setAttribute("allowfullscreen",!0),x.setAttribute("src",this.sanitize(w)),x}},{key:"formats",value:function(w){return y.reduce(function(x,A){return w.hasAttribute(A)&&(x[A]=w.getAttribute(A)),x},{})}},{key:"sanitize",value:function(w){return h.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),_}(u.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var a=function(){function w(x,A){for(var C=0;C<A.length;C++){var S=A[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,C){return A&&w(x.prototype,A),C&&w(x,C),x}}(),l=function w(x,A,C){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,A);if(S===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:w(O,A,C)}else{if("value"in S)return S.value;var L=S.get;return L===void 0?void 0:L.call(C)}},u=i(35),f=v(u),h=i(5),d=v(h),p=i(9),c=v(p);function v(w){return w&&w.__esModule?w:{default:w}}function y(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function m(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function b(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var _=function(w){b(x,w);function x(){return y(this,x),m(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,null,[{key:"create",value:function(C){var S=l(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,C);return typeof C=="string"&&(window.katex.render(C,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",C)),S}},{key:"value",value:function(C){return C.getAttribute("data-value")}}]),x}(f.default);_.blotName="formula",_.className="ql-formula",_.tagName="SPAN";var E=function(w){b(x,w),a(x,null,[{key:"register",value:function(){d.default.register(_,!0)}}]);function x(){y(this,x);var A=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return x}(c.default);n.FormulaBlot=_,n.default=E},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var a=function(){function C(S,O){for(var L=0;L<O.length;L++){var R=O[L];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(S,R.key,R)}}return function(S,O,L){return O&&C(S.prototype,O),L&&C(S,L),S}}(),l=function C(S,O,L){S===null&&(S=Function.prototype);var R=Object.getOwnPropertyDescriptor(S,O);if(R===void 0){var I=Object.getPrototypeOf(S);return I===null?void 0:C(I,O,L)}else{if("value"in R)return R.value;var N=R.get;return N===void 0?void 0:N.call(L)}},u=i(0),f=m(u),h=i(5),d=m(h),p=i(9),c=m(p),v=i(13),y=m(v);function m(C){return C&&C.__esModule?C:{default:C}}function b(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}function _(C,S){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:C}function E(C,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(C,S):C.__proto__=S)}var w=function(C){E(S,C);function S(){return b(this,S),_(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return a(S,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),S}(y.default);w.className="ql-syntax";var x=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),A=function(C){E(S,C),a(S,null,[{key:"register",value:function(){d.default.register(x,!0),d.default.register(w,!0)}}]);function S(O,L){b(this,S);var R=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,O,L));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var I=null;return R.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(I),I=setTimeout(function(){R.highlight(),I=null},R.options.interval)}),R.highlight(),R}return a(S,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(I){I.highlight(L.options.highlight)}),this.quill.update(d.default.sources.SILENT),R!=null&&this.quill.setSelection(R,d.default.sources.SILENT)}}}]),S}(c.default);A.DEFAULTS={highlight:function(){return window.hljs==null?null:function(C){var S=window.hljs.highlightAuto(C);return S.value}}(),interval:1e3},n.CodeBlock=w,n.CodeToken=x,n.default=A},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var a=function S(O,L,R){O===null&&(O=Function.prototype);var I=Object.getOwnPropertyDescriptor(O,L);if(I===void 0){var N=Object.getPrototypeOf(O);return N===null?void 0:S(N,L,R)}else{if("value"in I)return I.value;var k=I.get;return k===void 0?void 0:k.call(R)}},l=function(){function S(O,L){for(var R=0;R<L.length;R++){var I=L[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}return function(O,L,R){return L&&S(O.prototype,L),R&&S(O,R),O}}(),u=i(3),f=b(u),h=i(8),d=b(h),p=i(43),c=b(p),v=i(15),y=i(41),m=b(y);function b(S){return S&&S.__esModule?S:{default:S}}function _(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}function E(S,O){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:S}function w(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(S,O):S.__proto__=O)}var x=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=function(S){w(O,S);function O(L,R){_(this,O),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=x);var I=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return I.quill.container.classList.add("ql-bubble"),I}return l(O,[{key:"extendToolbar",value:function(R){this.tooltip=new C(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),m.default)}}]),O}(c.default);A.DEFAULTS=(0,f.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var C=function(S){w(O,S);function O(L,R){_(this,O);var I=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return I.quill.on(d.default.events.EDITOR_CHANGE,function(N,k,F,j){if(N===d.default.events.SELECTION_CHANGE)if(k!=null&&k.length>0&&j===d.default.sources.USER){I.show(),I.root.style.left="0px",I.root.style.width="",I.root.style.width=I.root.offsetWidth+"px";var Z=I.quill.getLines(k.index,k.length);if(Z.length===1)I.position(I.quill.getBounds(k));else{var H=Z[Z.length-1],nt=I.quill.getIndex(H),Y=Math.min(H.length()-1,k.index+k.length-nt),D=I.quill.getBounds(new v.Range(nt,Y));I.position(D)}}else document.activeElement!==I.textbox&&I.quill.hasFocus()&&I.hide()}),I}return l(O,[{key:"listen",value:function(){var R=this;a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var I=R.quill.getSelection();I!=null&&R.position(R.quill.getBounds(I))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var I=a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,R),N=this.root.querySelector(".ql-tooltip-arrow");if(N.style.marginLeft="",I===0)return I;N.style.marginLeft=-1*I-N.offsetWidth/2+"px"}}]),O}(p.BaseTooltip);C.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=C,n.default=A},function(r,n,i){r.exports=i(63)}]).default})})(kp);var tC=kp.exports;const eC=Tn(tC),qF="",rC=Tt.forwardRef((e,t)=>{const[r,n]=bt.useState(!1);console.log("allProps",e);const i=bt.useRef(null),a=bt.useRef(null),l=bt.useRef(null),u=bt.useRef(null),f=bt.useRef(16),h=bt.useRef(null),{uniqueId:d,text:p,disabled:c,transformation:v,onTextUpdate:y,pointerdown:m}=e,{x:b,y:_,fontFamily:E="Arial",fontWeight:w="normal",fontStyle:x="normal",fontSize:A=16,fill:C="black",stroke:S,strokeThickness:O=0,blurRadius:L=0,blurEnabled:R=!1,dropShadowColor:I=null,wordWrapWidth:N=5e7,leading:k=0,letterSpacing:F}=v;Tt.useEffect(()=>{f.current=Number(A)},[A]);const j=["italic","oblique"].includes(x)?x:void 0,Z=["bold","lighter","100","200","300"].includes(w)?w:void 0,H=Number(F)>0?F:void 0,nt=Tt.useMemo(()=>new wn.TextStyle({fontFamily:E,fontSize:A,fill:C||"white",...S&&O>0&&{stroke:S,strokeThickness:O},...j&&{fontStyle:j},...Z&&{fontWeight:Z},...H&&{letterSpacing:H},...R&&{dropShadow:!0,dropShadowBlur:Number(L),dropShadowColor:(I==null?void 0:I.toString())||"black",dropShadowDistance:0},wordWrap:!0,breakWords:!0,wordWrapWidth:N||500,leading:k||0}),[R,L,C,E,A,k,j,Z,H,I,S,O,N]);Tt.useEffect(()=>{h.current={...v}},[v]);const Y=D=>{y&&y({text:D,uniqueId:d,droptype:"titles"})};return Tt.useEffect(()=>{if(r&&l.current){let M=document.getElementById("note-editor");if(M){M.style.position="absolute",M.style.zIndex="10",M.style.left=b+"px",M.style.top=_+"px",M.style.backgroundColor="var(--chakra-color-darkShark)",M.style.transform="scale(1.5)",M.style.width="300px",M.style.height="100px",M.style.color="#fff",M.style.fontSize="20px",M.style.border="1px solid #CBCEE0";const U={esc:{key:27,handler:function(){n(!1)}},enter:{key:13,handler:function(){n(!1)}}};var D=new eC("#note-editor",{modules:{toolbar:!1,keyboard:{bindings:{...U}}},placeholder:"Compose your text here...",theme:"snow"});D.on("text-change",function(){Y(D.root.innerText)}),D.setText(p),D.focus(),D.off("text-change",()=>{console.log("removed")}),D.hasFocus()||(M.style.display="none")}}},[b,_,r]),Zt.jsx(Ei,{...e,ref:t,isText:!0,children:Zt.jsxs(ve.Container,{ref:i,children:[r&&Zt.jsx(ve.Container,{ref:l}),Zt.jsx(ve.Container,{alpha:r?0:1,ref:u,children:Zt.jsx(ve.Text,{style:nt,x:b,y:_,anchor:.5,text:p,...!r&&!c&&{interactive:!0,buttonMode:!0,pointerdown:m},ref:a})})]})})}),nC={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},iC=Tt.forwardRef((e,t)=>{const[,r]=Tt.useState(!1),[,n]=Tt.useState({isWaiting:!1,isStalled:!1}),[i,a]=Tt.useState(),l=bt.useRef(null),u=bt.useRef(null),f=bt.useRef(null),h=bt.useRef(nC),d=bt.useRef(),{tl:p,isDragging:c}=bt.useContext(mi),{uniqueId:v,mute:y=!1,src:m,startAt:b,endAt:_,frameStartAt:E,frameEndAt:w,transformation:{x,y:A,width:C,height:S,animation:O},pointerdown:L,pointerup:R}=e,I=m||"",N=Tt.useMemo(()=>{const H=document.createElement("video");return H.src=m,H.crossOrigin="Anonymus",H.autoplay=!1,H.currentTime=E===0?.001:E,H},[m,E]);wr(je.PAUSE,()=>{if(f.current){const H=f.current;H.currentTime>0&&!H.paused&&!H.ended&&H.readyState>H.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}}),Tt.useEffect(()=>{f.current&&(c?(f.current.pause(),h.current.isPlaying=!1,h.current.isDragging=!0):h.current.isDragging=!1)},[c]);const k=H=>{f.current&&(f.current.currentTime=Number(H),c||(f.current.currentTime=Number(H),f.current.play(),h.current.isPlaying=!0))},F=()=>{if(f.current){const H=f.current;H.currentTime>0&&!H.paused&&!H.ended&&H.readyState>H.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}},j=()=>{},Z=()=>{var H;if(f.current&&d.current){const nt=E+((H=d.current)==null?void 0:H.time());Math.abs(f.current.currentTime-nt);const Y=f.current,D=Y.currentTime>0&&!Y.paused&&!Y.ended&&Y.readyState>Y.HAVE_CURRENT_DATA;h.current.isDragging?(f.current.currentTime=nt,f.current.play(),setTimeout(()=>{h.current.isPlaying=!1,f.current&&f.current.pause()},300),h.current.isPlaying=!1):h.current.isPlaying||(D||f.current.play(),h.current.isPlaying=!0)}};return bt.useEffect(()=>{let H=xe.context(()=>{});if(u.current&&p.current){console.log("timlinepixi",E,w);const nt={duration:Number(w)-Number(E),onStart:k,onComplete:F,onStartParams:[E,w],onCompleteParams:[],onInterrupt:j,onUpdate:Z,onUpdateParams:[E,w]};d.current&&d.current.kill(),H=xe.context(()=>{d.current=xe.from(u.current,nt,E),p.current.add(d.current,b)})}return()=>{d.current&&(d.current.kill(),xe.killTweensOf(d.current)),H.revert()}},[O,b,_,E,w]),Tt.useEffect(()=>{u.current&&r(!0)},[]),Tt.useEffect(()=>{f.current&&(f.current.muted=y)},[y]),Tt.useEffect(()=>{if(f.current){const H=f.current;H.currentTime>0&&!H.paused&&!H.ended&&H.readyState>H.HAVE_CURRENT_DATA&&c&&(f.current.pause(),h.current.isPlaying=!1)}},[c]),Tt.useEffect(()=>{const H=Math.round((Number(E)+Number.EPSILON)*100)/100,nt=function(){f.current&&(f.current.currentTime=H)},Y=function(){if(f.current){const G=f.current;G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>G.HAVE_CURRENT_DATA&&f.current.pause()}n({isWaiting:!1,isStalled:!1})},D=function(){f.current&&f.current.pause(),n({isWaiting:!0,isStalled:!1})},M=function(){n({isWaiting:!1,isStalled:!1})},U=function(){n({isWaiting:!1,isStalled:!0})},q=Math.round((Number(E)+Number.EPSILON)*100)/100,W=Math.round((Number(w)+Number.EPSILON)*100)/100,K=`${I}#t=${q},${W}`;return console.log("urlTimestap",K),wn.Texture.fromLoader(N,K,v,{pixiIdPrefix:v,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:30}}).then(G=>{G&&(a(G),f.current=G.baseTexture.resource.source,f.current.id=v,f.current.addEventListener("loadedmetadata",nt),f.current.addEventListener("ended",Y),f.current.addEventListener("loadstart",D),f.current.addEventListener("canplaythrough",M),f.current.addEventListener("stalled",U))}),()=>{f.current&&(f.current.pause(),f.current.removeEventListener("loadedmetadata",nt),f.current.removeEventListener("ended",Y),f.current.removeEventListener("loadstart",D),f.current.removeEventListener("canplaythrough",M),f.current.removeEventListener("stalled",U))}},[I,v,E,w,N]),Zt.jsx(Ei,{...e,ref:t,ignoreTlForVideo:!0,children:Zt.jsx(ve.Container,{ref:u,children:i&&Zt.jsx(ve.Sprite,{texture:i,width:C,height:S,anchor:.5,x,y:A,ref:l,interactive:!0,pointerdown:L,pointerup:R})})})});var Lp=(e=>(e.FADE_IN="FADE_IN",e.FADE_OUT="FADE_OUT",e.FADE_IN_OUT="FADE_IN_OUT",e.SLIDE_IN_LEFT="SLIDE_IN_LEFT",e.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",e.SLIDE_IN_TOP="SLIDE_IN_TOP",e.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",e.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",e.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",e.SLIDE_OUT_TOP="SLIDE_OUT_TOP",e.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.ZOOM_IN_OUT="ZOOM_IN_OUT",e.BOUNCE_IN="BOUNCE_IN",e.BOUNCE_OUT="BOUNCE_OUT",e.BOUNCE_IN_OUT="BOUNCE_IN_OUT",e.ELASTIC_IN="ELASTIC_IN",e.ELASTIC_OUT="ELASTIC_OUT",e.ELASTIC_IN_OUT="ELASTIC_IN_OUT",e.BACK_IN="BACK_IN",e.BACK_OUT="BACK_OUT",e.BACK_IN_OUT="BACK_IN_OUT",e.CIRCULAR_IN="CIRCULAR_IN",e.CIRCULAR_OUT="CIRCULAR_OUT",e.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",e.EXPO_IN="EXPO_IN",e.EXPO_OUT="EXPO_OUT",e.EXPO_IN_OUT="EXPO_IN_OUT",e.SINE_IN="SINE_IN",e.SINE_OUT="SINE_OUT",e.SINE_IN_OUT="SINE_IN_OUT",e.BOUNCE="BOUNCE",e.ELASTIC="ELASTIC",e.BACK="BACK",e.CIRCULAR="CIRCULAR",e.EXPO="EXPO",e.SINE="SINE",e))(Lp||{}),Fp=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e))(Fp||{});ie.Animations=Lp,ie.BlendModes=Fp,ie.Events=je,ie.GsapPixieContext=mi,ie.GsapPixieContextProvider=P1,ie.PixiAnimatedSprite=Pp,ie.PixiAudioSprite=yT,ie.PixiGifSprite=QR,ie.PixiImageSprite=CE,ie.PixiSvgPathSprite=qw,ie.PixiTextSprite=rC,ie.PixiVideoSprite=iC,ie.emitCustomEvent=Ea,ie.newCustomEventEmitter=N1,ie.useCustomEventListener=wr,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|
|
616
|
+
`)}return ot}function re(it,ot){var dt={},pt=it.style||{};return pt.fontStyle&&W(it).fontStyle==="italic"&&(dt.italic=!0),pt.fontWeight&&(W(it).fontWeight.startsWith("bold")||parseInt(W(it).fontWeight)>=700)&&(dt.bold=!0),Object.keys(dt).length>0&&(ot=q(ot,dt)),parseFloat(pt.textIndent||0)>0&&(ot=new p.default().insert(" ").concat(ot)),ot}function $t(it,ot){var dt=it.data;if(it.parentNode.tagName==="O:P")return ot.insert(dt.trim());if(dt.trim().length===0&&it.parentNode.classList.contains("ql-clipboard"))return ot;if(!W(it.parentNode).whiteSpace.startsWith("pre")){var pt=function(Nt,Lt){return Lt=Lt.replace(/[^\u00a0]/g,""),Lt.length<1&&Nt?" ":Lt};dt=dt.replace(/\r\n/g," ").replace(/\n/g," "),dt=dt.replace(/\s\s+/g,pt.bind(pt,!0)),(it.previousSibling==null&&G(it.parentNode)||it.previousSibling!=null&&G(it.previousSibling))&&(dt=dt.replace(/^\s+/,pt.bind(pt,!1))),(it.nextSibling==null&&G(it.parentNode)||it.nextSibling!=null&&G(it.nextSibling))&&(dt=dt.replace(/\s+$/,pt.bind(pt,!1)))}return ot.insert(dt)}n.default=U,n.matchAttributor=et,n.matchBlot=st,n.matchNewline=vt,n.matchSpacing=It,n.matchText=$t},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return d(this,m),p(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,[{key:"optimize",value:function(_){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,_),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(f.default);v.blotName="bold",v.tagName=["STRONG","B"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var a=function(){function I(N,k){var F=[],j=!0,Z=!1,H=void 0;try{for(var nt=N[Symbol.iterator](),Y;!(j=(Y=nt.next()).done)&&(F.push(Y.value),!(k&&F.length===k));j=!0);}catch(D){Z=!0,H=D}finally{try{!j&&nt.return&&nt.return()}finally{if(Z)throw H}}return F}return function(N,k){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return I(N,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function I(N,k){for(var F=0;F<k.length;F++){var j=k[F];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}return function(N,k,F){return k&&I(N.prototype,k),F&&I(N,F),N}}(),u=i(2),f=_(u),h=i(0),d=_(h),p=i(5),c=_(p),v=i(10),y=_(v),m=i(9),b=_(m);function _(I){return I&&I.__esModule?I:{default:I}}function E(I,N,k){return N in I?Object.defineProperty(I,N,{value:k,enumerable:!0,configurable:!0,writable:!0}):I[N]=k,I}function w(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function x(I,N){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N&&(typeof N=="object"||typeof N=="function")?N:I}function A(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof N);I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(I,N):I.__proto__=N)}var C=(0,y.default)("quill:toolbar"),S=function(I){A(N,I);function N(k,F){w(this,N);var j=x(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,k,F));if(Array.isArray(j.options.container)){var Z=document.createElement("div");L(Z,j.options.container),k.container.parentNode.insertBefore(Z,k.container),j.container=Z}else typeof j.options.container=="string"?j.container=document.querySelector(j.options.container):j.container=j.options.container;if(!(j.container instanceof HTMLElement)){var H;return H=C.error("Container required for toolbar",j.options),x(j,H)}return j.container.classList.add("ql-toolbar"),j.controls=[],j.handlers={},Object.keys(j.options.handlers).forEach(function(nt){j.addHandler(nt,j.options.handlers[nt])}),[].forEach.call(j.container.querySelectorAll("button, select"),function(nt){j.attach(nt)}),j.quill.on(c.default.events.EDITOR_CHANGE,function(nt,Y){nt===c.default.events.SELECTION_CHANGE&&j.update(Y)}),j.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){var nt=j.quill.selection.getRange(),Y=a(nt,1),D=Y[0];j.update(D)}),j}return l(N,[{key:"addHandler",value:function(F,j){this.handlers[F]=j}},{key:"attach",value:function(F){var j=this,Z=[].find.call(F.classList,function(nt){return nt.indexOf("ql-")===0});if(Z){if(Z=Z.slice(3),F.tagName==="BUTTON"&&F.setAttribute("type","button"),this.handlers[Z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Z]==null){C.warn("ignoring attaching to disabled format",Z,F);return}if(d.default.query(Z)==null){C.warn("ignoring attaching to nonexistent format",Z,F);return}}var H=F.tagName==="SELECT"?"change":"click";F.addEventListener(H,function(nt){var Y=void 0;if(F.tagName==="SELECT"){if(F.selectedIndex<0)return;var D=F.options[F.selectedIndex];D.hasAttribute("selected")?Y=!1:Y=D.value||!1}else F.classList.contains("ql-active")?Y=!1:Y=F.value||!F.hasAttribute("value"),nt.preventDefault();j.quill.focus();var M=j.quill.selection.getRange(),U=a(M,1),q=U[0];if(j.handlers[Z]!=null)j.handlers[Z].call(j,Y);else if(d.default.query(Z).prototype instanceof d.default.Embed){if(Y=prompt("Enter "+Z),!Y)return;j.quill.updateContents(new f.default().retain(q.index).delete(q.length).insert(E({},Z,Y)),c.default.sources.USER)}else j.quill.format(Z,Y,c.default.sources.USER);j.update(q)}),this.controls.push([Z,F])}}},{key:"update",value:function(F){var j=F==null?{}:this.quill.getFormat(F);this.controls.forEach(function(Z){var H=a(Z,2),nt=H[0],Y=H[1];if(Y.tagName==="SELECT"){var D=void 0;if(F==null)D=null;else if(j[nt]==null)D=Y.querySelector("option[selected]");else if(!Array.isArray(j[nt])){var M=j[nt];typeof M=="string"&&(M=M.replace(/\"/g,'\\"')),D=Y.querySelector('option[value="'+M+'"]')}D==null?(Y.value="",Y.selectedIndex=-1):D.selected=!0}else if(F==null)Y.classList.remove("ql-active");else if(Y.hasAttribute("value")){var U=j[nt]===Y.getAttribute("value")||j[nt]!=null&&j[nt].toString()===Y.getAttribute("value")||j[nt]==null&&!Y.getAttribute("value");Y.classList.toggle("ql-active",U)}else Y.classList.toggle("ql-active",j[nt]!=null)})}}]),N}(b.default);S.DEFAULTS={};function O(I,N,k){var F=document.createElement("button");F.setAttribute("type","button"),F.classList.add("ql-"+N),k!=null&&(F.value=k),I.appendChild(F)}function L(I,N){Array.isArray(N[0])||(N=[N]),N.forEach(function(k){var F=document.createElement("span");F.classList.add("ql-formats"),k.forEach(function(j){if(typeof j=="string")O(F,j);else{var Z=Object.keys(j)[0],H=j[Z];Array.isArray(H)?R(F,Z,H):O(F,Z,H)}}),I.appendChild(F)})}function R(I,N,k){var F=document.createElement("select");F.classList.add("ql-"+N),k.forEach(function(j){var Z=document.createElement("option");j!==!1?Z.setAttribute("value",j):Z.setAttribute("selected","selected"),F.appendChild(Z)}),I.appendChild(F)}S.DEFAULTS={container:null,handlers:{clean:function(){var N=this,k=this.quill.getSelection();if(k!=null)if(k.length==0){var F=this.quill.getFormat();Object.keys(F).forEach(function(j){d.default.query(j,d.default.Scope.INLINE)!=null&&N.quill.format(j,!1)})}else this.quill.removeFormat(k,c.default.sources.USER)},direction:function(N){var k=this.quill.getFormat().align;N==="rtl"&&k==null?this.quill.format("align","right",c.default.sources.USER):!N&&k==="right"&&this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",N,c.default.sources.USER)},indent:function(N){var k=this.quill.getSelection(),F=this.quill.getFormat(k),j=parseInt(F.indent||0);if(N==="+1"||N==="-1"){var Z=N==="+1"?1:-1;F.direction==="rtl"&&(Z*=-1),this.quill.format("indent",j+Z,c.default.sources.USER)}},link:function(N){N===!0&&(N=prompt("Enter link URL:")),this.quill.format("link",N,c.default.sources.USER)},list:function(N){var k=this.quill.getSelection(),F=this.quill.getFormat(k);N==="check"?F.list==="checked"||F.list==="unchecked"?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",N,c.default.sources.USER)}}},n.default=S,n.addControls=L},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(b,_){d(this,m);var E=p(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return E.label.innerHTML=_,E.container.classList.add("ql-color-picker"),[].slice.call(E.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),E}return a(m,[{key:"buildItem",value:function(_){var E=l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,_);return E.style.backgroundColor=_.getAttribute("value")||"",E}},{key:"selectItem",value:function(_,E){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,_,E);var w=this.label.querySelector(".ql-color-label"),x=_&&_.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=x:w.style.fill=x)}}]),m}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(28),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(b,_){d(this,m);var E=p(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return E.container.classList.add("ql-icon-picker"),[].forEach.call(E.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=_[w.getAttribute("data-value")||""]}),E.defaultItem=E.container.querySelector(".ql-selected"),E.selectItem(E.defaultItem),E}return a(m,[{key:"selectItem",value:function(_,E){l(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,_,E),_=_||this.defaultItem,this.label.innerHTML=_.innerHTML}}]),m}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){var p=this;l(this,f),this.quill=h,this.boundsContainer=d||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){p.root.style.marginTop=-1*p.quill.root.scrollTop+"px"}),this.hide()}return a(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var p=d.left+d.width/2-this.root.offsetWidth/2,c=d.bottom+this.quill.root.scrollTop;this.root.style.left=p+"px",this.root.style.top=c+"px",this.root.classList.remove("ql-flip");var v=this.boundsContainer.getBoundingClientRect(),y=this.root.getBoundingClientRect(),m=0;if(y.right>v.right&&(m=v.right-y.right,this.root.style.left=p+m+"px"),y.left<v.left&&(m=v.left-y.left,this.root.style.left=p+m+"px"),y.bottom>v.bottom){var b=y.bottom-y.top,_=d.bottom-d.top+b;this.root.style.top=c-_+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function R(I,N){var k=[],F=!0,j=!1,Z=void 0;try{for(var H=I[Symbol.iterator](),nt;!(F=(nt=H.next()).done)&&(k.push(nt.value),!(N&&k.length===N));F=!0);}catch(Y){j=!0,Z=Y}finally{try{!F&&H.return&&H.return()}finally{if(j)throw Z}}return k}return function(I,N){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return R(I,N);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function R(I,N,k){I===null&&(I=Function.prototype);var F=Object.getOwnPropertyDescriptor(I,N);if(F===void 0){var j=Object.getPrototypeOf(I);return j===null?void 0:R(j,N,k)}else{if("value"in F)return F.value;var Z=F.get;return Z===void 0?void 0:Z.call(k)}},u=function(){function R(I,N){for(var k=0;k<N.length;k++){var F=N[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(I,F.key,F)}}return function(I,N,k){return N&&R(I.prototype,N),k&&R(I,k),I}}(),f=i(3),h=w(f),d=i(8),p=w(d),c=i(43),v=w(c),y=i(27),m=w(y),b=i(15),_=i(41),E=w(_);function w(R){return R&&R.__esModule?R:{default:R}}function x(R,I){if(!(R instanceof I))throw new TypeError("Cannot call a class as a function")}function A(R,I){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:R}function C(R,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);R.prototype=Object.create(I&&I.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(R,I):R.__proto__=I)}var S=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(R){C(I,R);function I(N,k){x(this,I),k.modules.toolbar!=null&&k.modules.toolbar.container==null&&(k.modules.toolbar.container=S);var F=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,N,k));return F.quill.container.classList.add("ql-snow"),F}return u(I,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),E.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),E.default),this.tooltip=new L(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(F,j){k.handlers.link.call(k,!j.format.link)})}}]),I}(v.default);O.DEFAULTS=(0,h.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(I){if(I){var N=this.quill.getSelection();if(N==null||N.length==0)return;var k=this.quill.getText(N);/^\S+@\S+\.\S+$/.test(k)&&k.indexOf("mailto:")!==0&&(k="mailto:"+k);var F=this.quill.theme.tooltip;F.edit("link",k)}else this.quill.format("link",!1)}}}}});var L=function(R){C(I,R);function I(N,k){x(this,I);var F=A(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,N,k));return F.preview=F.root.querySelector("a.ql-preview"),F}return u(I,[{key:"listen",value:function(){var k=this;l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(F){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),F.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(F){if(k.linkRange!=null){var j=k.linkRange;k.restoreFocus(),k.quill.formatText(j,"link",!1,p.default.sources.USER),delete k.linkRange}F.preventDefault(),k.hide()}),this.quill.on(p.default.events.SELECTION_CHANGE,function(F,j,Z){if(F!=null){if(F.length===0&&Z===p.default.sources.USER){var H=k.quill.scroll.descendant(m.default,F.index),nt=a(H,2),Y=nt[0],D=nt[1];if(Y!=null){k.linkRange=new b.Range(F.index-D,Y.length());var M=m.default.formats(Y.domNode);k.preview.textContent=M,k.preview.setAttribute("href",M),k.show(),k.position(k.quill.getBounds(k.linkRange));return}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){l(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),I}(c.BaseTooltip);L.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=O},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(29),l=ft(a),u=i(36),f=i(38),h=i(64),d=i(65),p=ft(d),c=i(66),v=ft(c),y=i(67),m=ft(y),b=i(37),_=i(26),E=i(39),w=i(40),x=i(56),A=ft(x),C=i(68),S=ft(C),O=i(27),L=ft(O),R=i(69),I=ft(R),N=i(70),k=ft(N),F=i(71),j=ft(F),Z=i(72),H=ft(Z),nt=i(73),Y=ft(nt),D=i(13),M=ft(D),U=i(74),q=ft(U),W=i(75),K=ft(W),G=i(57),V=ft(G),tt=i(41),et=ft(tt),st=i(28),ht=ft(st),yt=i(59),_t=ft(yt),vt=i(60),It=ft(vt),re=i(61),$t=ft(re),it=i(108),ot=ft(it),dt=i(62),pt=ft(dt);function ft(Nt){return Nt&&Nt.__esModule?Nt:{default:Nt}}l.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":u.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":_.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":E.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":u.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":_.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":E.FontStyle,"attributors/style/size":w.SizeStyle},!0),l.default.register({"formats/align":u.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":_.ColorStyle,"formats/font":E.FontClass,"formats/size":w.SizeClass,"formats/blockquote":p.default,"formats/code-block":M.default,"formats/header":v.default,"formats/list":m.default,"formats/bold":A.default,"formats/code":D.Code,"formats/italic":S.default,"formats/link":L.default,"formats/script":I.default,"formats/strike":k.default,"formats/underline":j.default,"formats/image":H.default,"formats/video":Y.default,"formats/list/item":y.ListItem,"modules/formula":q.default,"modules/syntax":K.default,"modules/toolbar":V.default,"themes/bubble":ot.default,"themes/snow":pt.default,"ui/icons":et.default,"ui/picker":ht.default,"ui/icon-picker":It.default,"ui/color-picker":_t.default,"ui/tooltip":$t.default},!0),n.default=l.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var a=function(){function m(b,_){for(var E=0;E<_.length;E++){var w=_[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(b,w.key,w)}}return function(b,_,E){return _&&m(b.prototype,_),E&&m(b,E),b}}(),l=function m(b,_,E){b===null&&(b=Function.prototype);var w=Object.getOwnPropertyDescriptor(b,_);if(w===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:m(x,_,E)}else{if("value"in w)return w.value;var A=w.get;return A===void 0?void 0:A.call(E)}},u=i(0),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function p(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:m}function c(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}var v=function(m){c(b,m);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return a(b,[{key:"add",value:function(E,w){if(w==="+1"||w==="-1"){var x=this.value(E)||0;w=w==="+1"?x+1:x-1}return w===0?(this.remove(E),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,E,w)}},{key:"canAdd",value:function(E,w){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,E,w)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,E,parseInt(w))}},{key:"value",value:function(E){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,E))||void 0}}]),b}(f.default.Attributor.Class),y=new v("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(4),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="blockquote",p.tagName="blockquote",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function v(y,m){for(var b=0;b<m.length;b++){var _=m[b];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}return function(y,m,b){return m&&v(y.prototype,m),b&&v(y,b),y}}(),l=i(4),u=f(l);function f(v){return v&&v.__esModule?v:{default:v}}function h(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function d(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function p(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var c=function(v){p(y,v);function y(){return h(this,y),d(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return a(y,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),y}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var a=function(){function x(A,C){for(var S=0;S<C.length;S++){var O=C[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,C,S){return C&&x(A.prototype,C),S&&x(A,S),A}}(),l=function x(A,C,S){A===null&&(A=Function.prototype);var O=Object.getOwnPropertyDescriptor(A,C);if(O===void 0){var L=Object.getPrototypeOf(A);return L===null?void 0:x(L,C,S)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(S)}},u=i(0),f=v(u),h=i(4),d=v(h),p=i(25),c=v(p);function v(x){return x&&x.__esModule?x:{default:x}}function y(x,A,C){return A in x?Object.defineProperty(x,A,{value:C,enumerable:!0,configurable:!0,writable:!0}):x[A]=C,x}function m(x,A){if(!(x instanceof A))throw new TypeError("Cannot call a class as a function")}function b(x,A){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:x}function _(x,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);x.prototype=Object.create(A&&A.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(x,A):x.__proto__=A)}var E=function(x){_(A,x);function A(){return m(this,A),b(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return a(A,[{key:"format",value:function(S,O){S===w.blotName&&!O?this.replaceWith(f.default.create(this.statics.scope)):l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,S,O)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(S,O){return this.parent.isolate(this.offset(this.parent),this.length()),S===this.parent.statics.blotName?(this.parent.replaceWith(S,O),this):(this.parent.unwrap(),l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,S,O))}}],[{key:"formats",value:function(S){return S.tagName===this.tagName?void 0:l(A.__proto__||Object.getPrototypeOf(A),"formats",this).call(this,S)}}]),A}(d.default);E.blotName="list-item",E.tagName="LI";var w=function(x){_(A,x),a(A,null,[{key:"create",value:function(S){var O=S==="ordered"?"OL":"UL",L=l(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,O);return(S==="checked"||S==="unchecked")&&L.setAttribute("data-checked",S==="checked"),L}},{key:"formats",value:function(S){if(S.tagName==="OL")return"ordered";if(S.tagName==="UL")return S.hasAttribute("data-checked")?S.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function A(C){m(this,A);var S=b(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,C)),O=function(R){if(R.target.parentNode===C){var I=S.statics.formats(C),N=f.default.find(R.target);I==="checked"?N.format("list","unchecked"):I==="unchecked"&&N.format("list","checked")}};return C.addEventListener("touchstart",O),C.addEventListener("mousedown",O),S}return a(A,[{key:"format",value:function(S,O){this.children.length>0&&this.children.tail.format(S,O)}},{key:"formats",value:function(){return y({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(S,O){if(S instanceof E)l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"insertBefore",this).call(this,S,O);else{var L=O==null?this.length():O.offset(this),R=this.split(L);R.parent.insertBefore(S,R)}}},{key:"optimize",value:function(S){l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,S);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(S){if(S.statics.blotName!==this.statics.blotName){var O=f.default.create(this.statics.defaultChild);S.moveChildren(O),this.appendChild(O)}l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,S)}}]),A}(c.default);w.blotName="list",w.scope=f.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[E],n.ListItem=E,n.default=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(56),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="italic",p.tagName=["EM","I"],n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function y(m,b){for(var _=0;_<b.length;_++){var E=b[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(m,E.key,E)}}return function(m,b,_){return b&&y(m.prototype,b),_&&y(m,_),m}}(),l=function y(m,b,_){m===null&&(m=Function.prototype);var E=Object.getOwnPropertyDescriptor(m,b);if(E===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:y(w,b,_)}else{if("value"in E)return E.value;var x=E.get;return x===void 0?void 0:x.call(_)}},u=i(6),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function p(y,m){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:y}function c(y,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);y.prototype=Object.create(m&&m.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(y,m):y.__proto__=m)}var v=function(y){c(m,y);function m(){return d(this,m),p(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return a(m,null,[{key:"create",value:function(_){return _==="super"?document.createElement("sup"):_==="sub"?document.createElement("sub"):l(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_)}},{key:"formats",value:function(_){if(_.tagName==="SUB")return"sub";if(_.tagName==="SUP")return"super"}}]),m}(f.default);v.blotName="script",v.tagName=["SUB","SUP"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(6),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="strike",p.tagName="S",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=i(6),l=u(a);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="underline",p.tagName="U",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),l=function b(_,E,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,E);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,E,w)}else{if("value"in x)return x.value;var C=x.get;return C===void 0?void 0:C.call(w)}},u=i(0),f=d(u),h=i(27);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var y=["alt","height","width"],m=function(b){v(_,b);function _(){return p(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"format",value:function(w,x){y.indexOf(w)>-1?x?this.domNode.setAttribute(w,x):this.domNode.removeAttribute(w):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,w,x)}}],[{key:"create",value:function(w){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,w);return typeof w=="string"&&x.setAttribute("src",this.sanitize(w)),x}},{key:"formats",value:function(w){return y.reduce(function(x,A){return w.hasAttribute(A)&&(x[A]=w.getAttribute(A)),x},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,h.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),_}(f.default.Embed);m.blotName="image",m.tagName="IMG",n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function b(_,E){for(var w=0;w<E.length;w++){var x=E[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(_,x.key,x)}}return function(_,E,w){return E&&b(_.prototype,E),w&&b(_,w),_}}(),l=function b(_,E,w){_===null&&(_=Function.prototype);var x=Object.getOwnPropertyDescriptor(_,E);if(x===void 0){var A=Object.getPrototypeOf(_);return A===null?void 0:b(A,E,w)}else{if("value"in x)return x.value;var C=x.get;return C===void 0?void 0:C.call(w)}},u=i(4),f=i(27),h=d(f);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,_){if(!(b instanceof _))throw new TypeError("Cannot call a class as a function")}function c(b,_){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:b}function v(b,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);b.prototype=Object.create(_&&_.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(b,_):b.__proto__=_)}var y=["height","width"],m=function(b){v(_,b);function _(){return p(this,_),c(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,[{key:"format",value:function(w,x){y.indexOf(w)>-1?x?this.domNode.setAttribute(w,x):this.domNode.removeAttribute(w):l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"format",this).call(this,w,x)}}],[{key:"create",value:function(w){var x=l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,w);return x.setAttribute("frameborder","0"),x.setAttribute("allowfullscreen",!0),x.setAttribute("src",this.sanitize(w)),x}},{key:"formats",value:function(w){return y.reduce(function(x,A){return w.hasAttribute(A)&&(x[A]=w.getAttribute(A)),x},{})}},{key:"sanitize",value:function(w){return h.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),_}(u.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",n.default=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var a=function(){function w(x,A){for(var C=0;C<A.length;C++){var S=A[C];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(x,S.key,S)}}return function(x,A,C){return A&&w(x.prototype,A),C&&w(x,C),x}}(),l=function w(x,A,C){x===null&&(x=Function.prototype);var S=Object.getOwnPropertyDescriptor(x,A);if(S===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:w(O,A,C)}else{if("value"in S)return S.value;var L=S.get;return L===void 0?void 0:L.call(C)}},u=i(35),f=v(u),h=i(5),d=v(h),p=i(9),c=v(p);function v(w){return w&&w.__esModule?w:{default:w}}function y(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function m(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function b(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var _=function(w){b(x,w);function x(){return y(this,x),m(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return a(x,null,[{key:"create",value:function(C){var S=l(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,C);return typeof C=="string"&&(window.katex.render(C,S,{throwOnError:!1,errorColor:"#f00"}),S.setAttribute("data-value",C)),S}},{key:"value",value:function(C){return C.getAttribute("data-value")}}]),x}(f.default);_.blotName="formula",_.className="ql-formula",_.tagName="SPAN";var E=function(w){b(x,w),a(x,null,[{key:"register",value:function(){d.default.register(_,!0)}}]);function x(){y(this,x);var A=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return A}return x}(c.default);n.FormulaBlot=_,n.default=E},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var a=function(){function C(S,O){for(var L=0;L<O.length;L++){var R=O[L];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(S,R.key,R)}}return function(S,O,L){return O&&C(S.prototype,O),L&&C(S,L),S}}(),l=function C(S,O,L){S===null&&(S=Function.prototype);var R=Object.getOwnPropertyDescriptor(S,O);if(R===void 0){var I=Object.getPrototypeOf(S);return I===null?void 0:C(I,O,L)}else{if("value"in R)return R.value;var N=R.get;return N===void 0?void 0:N.call(L)}},u=i(0),f=m(u),h=i(5),d=m(h),p=i(9),c=m(p),v=i(13),y=m(v);function m(C){return C&&C.__esModule?C:{default:C}}function b(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}function _(C,S){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:C}function E(C,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);C.prototype=Object.create(S&&S.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(C,S):C.__proto__=S)}var w=function(C){E(S,C);function S(){return b(this,S),_(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return a(S,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),l(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),S}(y.default);w.className="ql-syntax";var x=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),A=function(C){E(S,C),a(S,null,[{key:"register",value:function(){d.default.register(x,!0),d.default.register(w,!0)}}]);function S(O,L){b(this,S);var R=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,O,L));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var I=null;return R.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(I),I=setTimeout(function(){R.highlight(),I=null},R.options.interval)}),R.highlight(),R}return a(S,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(I){I.highlight(L.options.highlight)}),this.quill.update(d.default.sources.SILENT),R!=null&&this.quill.setSelection(R,d.default.sources.SILENT)}}}]),S}(c.default);A.DEFAULTS={highlight:function(){return window.hljs==null?null:function(C){var S=window.hljs.highlightAuto(C);return S.value}}(),interval:1e3},n.CodeBlock=w,n.CodeToken=x,n.default=A},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var a=function S(O,L,R){O===null&&(O=Function.prototype);var I=Object.getOwnPropertyDescriptor(O,L);if(I===void 0){var N=Object.getPrototypeOf(O);return N===null?void 0:S(N,L,R)}else{if("value"in I)return I.value;var k=I.get;return k===void 0?void 0:k.call(R)}},l=function(){function S(O,L){for(var R=0;R<L.length;R++){var I=L[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(O,I.key,I)}}return function(O,L,R){return L&&S(O.prototype,L),R&&S(O,R),O}}(),u=i(3),f=b(u),h=i(8),d=b(h),p=i(43),c=b(p),v=i(15),y=i(41),m=b(y);function b(S){return S&&S.__esModule?S:{default:S}}function _(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}function E(S,O){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:S}function w(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(S,O):S.__proto__=O)}var x=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],A=function(S){w(O,S);function O(L,R){_(this,O),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=x);var I=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return I.quill.container.classList.add("ql-bubble"),I}return l(O,[{key:"extendToolbar",value:function(R){this.tooltip=new C(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),m.default)}}]),O}(c.default);A.DEFAULTS=(0,f.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var C=function(S){w(O,S);function O(L,R){_(this,O);var I=E(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return I.quill.on(d.default.events.EDITOR_CHANGE,function(N,k,F,j){if(N===d.default.events.SELECTION_CHANGE)if(k!=null&&k.length>0&&j===d.default.sources.USER){I.show(),I.root.style.left="0px",I.root.style.width="",I.root.style.width=I.root.offsetWidth+"px";var Z=I.quill.getLines(k.index,k.length);if(Z.length===1)I.position(I.quill.getBounds(k));else{var H=Z[Z.length-1],nt=I.quill.getIndex(H),Y=Math.min(H.length()-1,k.index+k.length-nt),D=I.quill.getBounds(new v.Range(nt,Y));I.position(D)}}else document.activeElement!==I.textbox&&I.quill.hasFocus()&&I.hide()}),I}return l(O,[{key:"listen",value:function(){var R=this;a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var I=R.quill.getSelection();I!=null&&R.position(R.quill.getBounds(I))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var I=a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,R),N=this.root.querySelector(".ql-tooltip-arrow");if(N.style.marginLeft="",I===0)return I;N.style.marginLeft=-1*I-N.offsetWidth/2+"px"}}]),O}(p.BaseTooltip);C.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=C,n.default=A},function(r,n,i){r.exports=i(63)}]).default})})(kp);var tC=kp.exports;const eC=Tn(tC),qF="",rC=Tt.forwardRef((e,t)=>{const[r,n]=bt.useState(!1);console.log("allProps",e);const i=bt.useRef(null),a=bt.useRef(null),l=bt.useRef(null),u=bt.useRef(null),f=bt.useRef(16),h=bt.useRef(null),{uniqueId:d,text:p,disabled:c,transformation:v,onTextUpdate:y,pointerdown:m}=e,{x:b,y:_,fontFamily:E="Arial",fontWeight:w="normal",fontStyle:x="normal",fontSize:A=16,fill:C="black",stroke:S,strokeThickness:O=0,blurRadius:L=0,blurEnabled:R=!1,dropShadowColor:I=null,wordWrapWidth:N=5e7,leading:k=0,letterSpacing:F}=v;Tt.useEffect(()=>{f.current=Number(A)},[A]);const j=["italic","oblique"].includes(x)?x:void 0,Z=["bold","lighter","100","200","300"].includes(w)?w:void 0,H=Number(F)>0?F:void 0,nt=Tt.useMemo(()=>new wn.TextStyle({fontFamily:E,fontSize:A,fill:C||"white",...S&&O>0&&{stroke:S,strokeThickness:O},...j&&{fontStyle:j},...Z&&{fontWeight:Z},...H&&{letterSpacing:H},...R&&{dropShadow:!0,dropShadowBlur:Number(L),dropShadowColor:(I==null?void 0:I.toString())||"black",dropShadowDistance:0},wordWrap:!0,breakWords:!0,wordWrapWidth:N||500,leading:k||0}),[R,L,C,E,A,k,j,Z,H,I,S,O,N]);Tt.useEffect(()=>{h.current={...v}},[v]);const Y=D=>{y&&y({text:D,uniqueId:d,droptype:"titles"})};return Tt.useEffect(()=>{if(r&&l.current){let M=document.getElementById("note-editor");if(M){M.style.position="absolute",M.style.zIndex="10",M.style.left=b+"px",M.style.top=_+"px",M.style.backgroundColor="var(--chakra-color-darkShark)",M.style.transform="scale(1.5)",M.style.width="300px",M.style.height="100px",M.style.color="#fff",M.style.fontSize="20px",M.style.border="1px solid #CBCEE0";const U={esc:{key:27,handler:function(){n(!1)}},enter:{key:13,handler:function(){n(!1)}}};var D=new eC("#note-editor",{modules:{toolbar:!1,keyboard:{bindings:{...U}}},placeholder:"Compose your text here...",theme:"snow"});D.on("text-change",function(){Y(D.root.innerText)}),D.setText(p),D.focus(),D.off("text-change",()=>{console.log("removed")}),D.hasFocus()||(M.style.display="none")}}},[b,_,r]),Zt.jsx(Ei,{...e,ref:t,isText:!0,children:Zt.jsxs(ve.Container,{ref:i,children:[r&&Zt.jsx(ve.Container,{ref:l}),Zt.jsx(ve.Container,{alpha:r?0:1,ref:u,children:Zt.jsx(ve.Text,{style:nt,x:b,y:_,anchor:.5,text:p,...!r&&!c&&{interactive:!0,buttonMode:!0,pointerdown:m},ref:a})})]})})}),nC={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},iC=Tt.forwardRef((e,t)=>{const[,r]=Tt.useState(!1),[,n]=Tt.useState({isWaiting:!1,isStalled:!1}),[i,a]=Tt.useState(),l=bt.useRef(null),u=bt.useRef(null),f=bt.useRef(null),h=bt.useRef(nC),d=bt.useRef(),{tl:p,isDragging:c}=bt.useContext(mi),{uniqueId:v,mute:y=!1,src:m,startAt:b,endAt:_,frameStartAt:E,frameEndAt:w,transformation:{x,y:A,width:C,height:S,animation:O},pointerdown:L,pointerup:R}=e,I=m||"",N=Tt.useMemo(()=>{const H=document.createElement("video");return H.src=m,H.crossOrigin="Anonymus",H.autoplay=!1,H.currentTime=E===0?.001:E,H},[m,E]);wr(je.PAUSE,()=>{if(f.current){const H=f.current;H.currentTime>0&&!H.paused&&!H.ended&&H.readyState>H.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}}),Tt.useEffect(()=>{f.current&&(c?(f.current.pause(),h.current.isPlaying=!1,h.current.isDragging=!0):h.current.isDragging=!1)},[c]);const k=H=>{f.current&&(f.current.currentTime=Number(H),c||(f.current.currentTime=Number(H),f.current.play(),h.current.isPlaying=!0))},F=()=>{if(f.current){const H=f.current;H.currentTime>0&&!H.paused&&!H.ended&&H.readyState>H.HAVE_CURRENT_DATA&&f.current.pause(),h.current.isPlaying=!1}},j=()=>{},Z=()=>{var H;if(f.current&&d.current){const nt=E+((H=d.current)==null?void 0:H.time());Math.abs(f.current.currentTime-nt);const Y=f.current,D=Y.currentTime>0&&!Y.paused&&!Y.ended&&Y.readyState>Y.HAVE_CURRENT_DATA;h.current.isDragging?(f.current.currentTime=nt,f.current.play(),setTimeout(()=>{h.current.isPlaying=!1,f.current&&f.current.pause()},300),h.current.isPlaying=!1):h.current.isPlaying||(D||f.current.play(),h.current.isPlaying=!0)}};return bt.useEffect(()=>{let H=xe.context(()=>{});if(u.current&&p.current){console.log("timlinepixi",E,w);const nt={duration:Number(w)-Number(E),onStart:k,onComplete:F,onStartParams:[E,w],onCompleteParams:[],onInterrupt:j,onUpdate:Z,onUpdateParams:[E,w]};d.current&&d.current.kill(),H=xe.context(()=>{d.current=xe.from(u.current,nt,E),p.current.add(d.current,b)})}return()=>{d.current&&(d.current.kill(),xe.killTweensOf(d.current)),H.revert()}},[O,b,_,E,w]),Tt.useEffect(()=>{u.current&&r(!0)},[]),Tt.useEffect(()=>{f.current&&(f.current.muted=y)},[y]),Tt.useEffect(()=>{if(f.current){const H=f.current;H.currentTime>0&&!H.paused&&!H.ended&&H.readyState>H.HAVE_CURRENT_DATA&&c&&(f.current.pause(),h.current.isPlaying=!1)}},[c]),Tt.useEffect(()=>{const H=Math.round((Number(E)+Number.EPSILON)*100)/100,nt=function(){f.current&&(f.current.currentTime=H)},Y=function(){if(f.current){const G=f.current;G.currentTime>0&&!G.paused&&!G.ended&&G.readyState>G.HAVE_CURRENT_DATA&&f.current.pause()}n({isWaiting:!1,isStalled:!1})},D=function(){f.current&&f.current.pause(),n({isWaiting:!0,isStalled:!1})},M=function(){n({isWaiting:!1,isStalled:!1})},U=function(){n({isWaiting:!1,isStalled:!0})},q=Math.round((Number(E)+Number.EPSILON)*100)/100,W=Math.round((Number(w)+Number.EPSILON)*100)/100,K=`${I}#t=${q},${W}`;return console.log("urlTimestap",K),wn.Texture.fromLoader(N,K,v,{pixiIdPrefix:v,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:30}}).then(G=>{G&&(a(G),f.current=G.baseTexture.resource.source,f.current.id=v,f.current.addEventListener("loadedmetadata",nt),f.current.addEventListener("ended",Y),f.current.addEventListener("loadstart",D),f.current.addEventListener("canplaythrough",M),f.current.addEventListener("stalled",U))}),()=>{f.current&&(f.current.pause(),f.current.removeEventListener("loadedmetadata",nt),f.current.removeEventListener("ended",Y),f.current.removeEventListener("loadstart",D),f.current.removeEventListener("canplaythrough",M),f.current.removeEventListener("stalled",U))}},[I,v,E,w,N]),Zt.jsx(Ei,{...e,ref:t,ignoreTlForVideo:!0,children:Zt.jsx(ve.Container,{ref:u,children:i&&Zt.jsx(ve.Sprite,{texture:i,width:C,height:S,anchor:.5,x,y:A,ref:l,interactive:!0,pointerdown:L,pointerup:R})})})});var Lp=(e=>(e.FADE_IN="FADE_IN",e.FADE_OUT="FADE_OUT",e.FADE_IN_OUT="FADE_IN_OUT",e.SLIDE_IN_LEFT="SLIDE_IN_LEFT",e.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",e.SLIDE_IN_TOP="SLIDE_IN_TOP",e.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",e.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",e.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",e.SLIDE_OUT_TOP="SLIDE_OUT_TOP",e.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.ZOOM_IN_OUT="ZOOM_IN_OUT",e.BOUNCE_IN="BOUNCE_IN",e.BOUNCE_OUT="BOUNCE_OUT",e.BOUNCE_IN_OUT="BOUNCE_IN_OUT",e.ELASTIC_IN="ELASTIC_IN",e.ELASTIC_OUT="ELASTIC_OUT",e.ELASTIC_IN_OUT="ELASTIC_IN_OUT",e.BACK_IN="BACK_IN",e.BACK_OUT="BACK_OUT",e.BACK_IN_OUT="BACK_IN_OUT",e.CIRCULAR_IN="CIRCULAR_IN",e.CIRCULAR_OUT="CIRCULAR_OUT",e.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",e.EXPO_IN="EXPO_IN",e.EXPO_OUT="EXPO_OUT",e.EXPO_IN_OUT="EXPO_IN_OUT",e.SINE_IN="SINE_IN",e.SINE_OUT="SINE_OUT",e.SINE_IN_OUT="SINE_IN_OUT",e.BOUNCE="BOUNCE",e.ELASTIC="ELASTIC",e.BACK="BACK",e.CIRCULAR="CIRCULAR",e.EXPO="EXPO",e.SINE="SINE",e))(Lp||{}),Fp=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e))(Fp||{});ie.Animations=Lp,ie.BlendModes=Fp,ie.Events=je,ie.GsapPixieContext=mi,ie.GsapPixieContextProvider=P1,ie.PixiAnimatedSprite=Pp,ie.PixiAudioSprite=yT,ie.PixiGifSprite=QR,ie.PixiImageSprite=CE,ie.PixiSvgPathSprite=qw,ie.PixiTextSprite=rC,ie.PixiVideoSprite=iC,ie.emitCustomEvent=Ea,ie.newCustomEventEmitter=N1,ie.useCustomEventListener=wr,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
|