/*! For license information please see vendor.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([[736],{48279:function(t){t.exports=function(){var t,e=["navigation","request","process","log","user","state","error","manual"],n=function(t,e,n){for(var r=n,i=0,o=t.length;i=t&&n<=e}},c=function(t){return"function"==typeof t||o(t)&&r(t,(function(t){return"function"==typeof t})).length===t.length},h=function(t){return"string"==typeof t&&!!t.length},f={},d=function(){return{unhandledExceptions:!0,unhandledRejections:!0}};f.schema={apiKey:{defaultValue:function(){return null},message:"is required",validate:h},appVersion:{defaultValue:function(){},message:"should be a string",validate:function(t){return void 0===t||h(t)}},appType:{defaultValue:function(){},message:"should be a string",validate:function(t){return void 0===t||h(t)}},autoDetectErrors:{defaultValue:function(){return!0},message:"should be true|false",validate:function(t){return!0===t||!1===t}},enabledErrorTypes:{defaultValue:function(){return d()},message:"should be an object containing the flags { unhandledExceptions:true|false, unhandledRejections:true|false }",allowPartialObject:!0,validate:function(t){if("object"!=typeof t||!t)return!1;var e=u(t),n=u(d());return!(r(e,(function(t){return i(n,t)})).length0)}},onError:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:c},onSession:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:c},onBreadcrumb:{defaultValue:function(){return[]},message:"should be a function or array of functions",validate:c},endpoints:{defaultValue:function(){return{notify:"https://notify.bugsnag.com",sessions:"https://sessions.bugsnag.com"}},message:"should be an object containing endpoint URLs { notify, sessions }",validate:function(t){return t&&"object"==typeof t&&h(t.notify)&&h(t.sessions)&&0===r(u(t),(function(t){return!i(["notify","sessions"],t)})).length}},autoTrackSessions:{defaultValue:function(t){return!0},message:"should be true|false",validate:function(t){return!0===t||!1===t}},enabledReleaseStages:{defaultValue:function(){return null},message:"should be an array of strings",validate:function(t){return null===t||o(t)&&r(t,(function(t){return"string"==typeof t})).length===t.length}},releaseStage:{defaultValue:function(){return"production"},message:"should be a string",validate:function(t){return"string"==typeof t&&t.length}},maxBreadcrumbs:{defaultValue:function(){return 25},message:"should be a number ≤100",validate:function(t){return l(0,100)(t)}},enabledBreadcrumbTypes:{defaultValue:function(){return e},message:"should be null or a list of available breadcrumb types ("+e.join(",")+")",validate:function(t){return null===t||o(t)&&n(t,(function(t,n){return!1===t?t:i(e,n)}),!0)}},context:{defaultValue:function(){},message:"should be a string",validate:function(t){return void 0===t||"string"==typeof t}},user:{defaultValue:function(){return{}},message:"should be an object with { id, email, name } properties",validate:function(t){return null===t||t&&n(u(t),(function(t,e){return t&&i(["id","email","name"],e)}),!0)}},metadata:{defaultValue:function(){return{}},message:"should be an object",validate:function(t){return"object"==typeof t&&null!==t}},logger:{defaultValue:function(){},message:"should be null or an object with methods { debug, info, warn, error }",validate:function(t){return!t||t&&n(["debug","info","warn","error"],(function(e,n){return e&&"function"==typeof t[n]}),!0)}},redactedKeys:{defaultValue:function(){return["password"]},message:"should be an array of strings|regexes",validate:function(t){return o(t)&&t.length===r(t,(function(t){return"string"==typeof t||t&&"function"==typeof t.test})).length}},plugins:{defaultValue:function(){return[]},message:"should be an array of plugin objects",validate:function(t){return o(t)&&t.length===r(t,(function(t){return t&&"object"==typeof t&&"function"==typeof t.load})).length}},featureFlags:{defaultValue:function(){return[]},message:'should be an array of objects that have a "name" property',validate:function(t){return o(t)&&t.length===r(t,(function(t){return t&&"object"==typeof t&&"string"==typeof t.name})).length}}};var p=function(t){for(var e=1;e-1&&(e=e.replace(/eval code/g,"eval").replace(/(\(eval at [^\()]*)|(\)\,.*$)/g,""));var n=e.replace(/^\s+/,"").replace(/\(eval code/g,"("),r=n.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(n=r?n.replace(r[0],""):n).split(/\s+/).slice(1),o=this.extractLocation(r?r[1]:i.pop()),s=i.join(" ")||void 0,a=["eval",""].indexOf(o[0])>-1?void 0:o[0];return new t({functionName:s,fileName:a,lineNumber:o[1],columnNumber:o[2],source:e})}),this)},parseFFOrSafari:function(e){return e.stack.split("\n").filter((function(t){return!t.match(r)}),this).map((function(e){if(e.indexOf(" > eval")>-1&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1")),-1===e.indexOf("@")&&-1===e.indexOf(":"))return new t({functionName:e});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=e.match(n),i=r&&r[1]?r[1]:void 0,o=this.extractLocation(e.replace(n,""));return new t({functionName:i,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:e})}),this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(e){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=e.message.split("\n"),i=[],o=2,s=r.length;o/,"$2").replace(/\([^\)]*\)/g,"")||void 0;o.match(/\(([^\)]*)\)/)&&(n=o.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var a=void 0===n||"[arguments not available]"===n?void 0:n.split(",");return new t({functionName:s,args:a,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:e})}),this)}}}));var T=E,w=function(t,e,n,r){var i=r&&r.redactedKeys?r.redactedKeys:[],o=r&&r.redactedPaths?r.redactedPaths:[];return JSON.stringify(k(t,i,o),e,n)},S=20,O=25e3,A=8,R="...";function I(t){return t instanceof Error||/^\[object (Error|(Dom)?Exception)\]$/.test(Object.prototype.toString.call(t))}function M(t){return"[Throws: "+(t?t.message:"?")+"]"}function C(t,e){for(var n=0,r=t.length;nA&&i>O}if(i++,s.length>S)return R;if(a())return R;if(null===t||"object"!=typeof t)return t;if(C(r,t))return"[Circular]";if(r.push(t),"function"==typeof t.toJSON)try{i--;var u=o(t.toJSON(),s);return r.pop(),u}catch(v){return M(v)}if(I(t)){i--;var l=o({name:t.name,message:t.message},s);return r.pop(),l}if(D(t)){for(var c=[],h=0,f=t.length;h-1&&!e.file&&!e.method&&(e.file="global code"),e},Q=function(t){return/^global code$/i.test(t)?"global code":t},J=function(){return{unhandled:!1,severity:"warning",severityReason:{type:"handledException"}}},Z=function(t){return"string"==typeof t?t:""};function tt(t,e,r,i){return{errorClass:Z(t),errorMessage:Z(e),type:r,stacktrace:n(i,(function(t,e){var n=K(e);try{return"{}"===JSON.stringify(n)?t:t.concat(n)}catch(r){return t}}),[])}}function et(t){return t.cause?[t].concat(et(t.cause)):[t]}$.getStacktrace=function(t,e,n){if(H(t))return T.parse(t).slice(e);try{return r(q.backtrace(),(function(t){return-1===(t.functionName||"").indexOf("StackGenerator$$")})).slice(1+n)}catch(i){return[]}},$.create=function(t,e,n,r,i,o){void 0===i&&(i=0);var s,a=rt(t,e,r,o),u=a[0],l=a[1];try{var c=$.getStacktrace(u,l>0?1+l+i:0,1+i);s=new $(u.name,u.message,c,n,t)}catch(p){s=new $(u.name,u.message,[],n,t)}if("InvalidError"===u.name&&s.addMetadata(""+r,"non-error parameter",nt(t)),u.cause){var h,f=et(u).slice(1),d=v(f,(function(t){var e=X(t)&&H(t)?T.parse(t):[],n=rt(t,!0,"error cause")[0];return"InvalidError"===n.name&&s.addMetadata("error cause",nt(t)),tt(n.name,n.message,$.__type,e)}));(h=s.errors).push.apply(h,d)}return s};var nt=function(t){return null===t?"null":void 0===t?"undefined":t},rt=function(t,e,n,r){var i,o=0,s=function(t){var e="error cause"===n?"was":"received";r&&r.warn(n+" "+e+' a non-error: "'+t+'"');var i=new Error(n+" "+e+' a non-error. See "'+n+'" tab for more detail.');return i.name="InvalidError",i};if(e)switch(typeof t){case"string":case"number":case"boolean":i=new Error(String(t)),o+=1;break;case"function":i=s("function"),o+=2;break;case"object":null!==t&&X(t)?i=t:null!==t&&it(t)?((i=new Error(t.message||t.errorMessage)).name=t.name||t.errorClass,o+=1):(i=s(null===t?"null":"unsupported object"),o+=2);break;default:i=s("nothing"),o+=2}else X(t)?i=t:(i=s(typeof t),o+=2);if(!H(i))try{throw i}catch(a){H(a)&&(i=a,o=1)}return[i,o]};$.__type="browserjs";var it=function(t){return!("string"!=typeof t.name&&"string"!=typeof t.errorClass||"string"!=typeof t.message&&"string"!=typeof t.errorMessage)},ot=$,st=function(t,e,n){var r=0,i=function(){if(r>=t.length)return n(null,!0);e(t[r],(function(t,e){return t?n(t):!1===e?n(null,!1):(r++,void i())}))};i()},at=function(t,e,n,r){var i=function(t,r){if("function"!=typeof t)return r(null);try{if(2!==t.length){var i=t(e);return i&&"function"==typeof i.then?i.then((function(t){return setTimeout((function(){return r(null,t)}))}),(function(t){setTimeout((function(){return n(t),r(null,!0)}))})):r(null,i)}t(e,(function(t,e){if(t)return n(t),r(null);r(null,e)}))}catch(o){n(o),r(null)}};st(t,i,r)},ut=function(t,e,n,r){for(var i=!1,o=t.slice();!i&&o.length;)try{i=!1===o.pop()(e)}catch(s){r.error("Error occurred in "+n+" callback, continuing anyway…"),r.error(s)}return i},lt=function(t,e){var n="000000000"+t;return n.substr(n.length-e)},ct="object"==typeof window?window:self,ht=0;for(var ft in ct)Object.hasOwnProperty.call(ct,ft)&&ht++;var dt=navigator.mimeTypes?navigator.mimeTypes.length:0,pt=lt((dt+navigator.userAgent.length).toString(36)+ht.toString(36),4),vt=function(){return pt},mt=0,gt=4,yt=36,_t=Math.pow(yt,gt);function bt(){return lt((Math.random()*_t<<0).toString(yt),gt)}function xt(){return mt=mt<_t?mt:0,++mt-1}function Et(){return"c"+(new Date).getTime().toString(yt)+lt(xt().toString(yt),gt)+vt()+(bt()+bt())}Et.fingerprint=vt;var Tt=Et,wt=function(){function t(){this.id=Tt(),this.startedAt=new Date,this._handled=0,this._unhandled=0,this._user={},this.app={},this.device={}}var e=t.prototype;return e.getUser=function(){return this._user},e.setUser=function(t,e,n){this._user={id:t,email:e,name:n}},e.toJSON=function(){return{id:this.id,startedAt:this.startedAt,events:{handled:this._handled,unhandled:this._unhandled}}},e._track=function(t){this[t._handledState.unhandled?"_unhandled":"_handled"]+=1},t}(),St=G.add,Ot=G.clear,At=G.merge,Rt=function(){},It=function(){function t(e,n,r,i){var o=this;void 0===n&&(n=f.schema),void 0===r&&(r=[]),this._notifier=i,this._config={},this._schema=n,this._delivery={sendSession:Rt,sendEvent:Rt},this._logger={debug:Rt,info:Rt,warn:Rt,error:Rt},this._plugins={},this._breadcrumbs=[],this._session=null,this._metadata={},this._featuresIndex={},this._features=[],this._context=void 0,this._user={},this._cbs={e:[],s:[],sp:[],b:[]},this.Client=t,this.Event=ot,this.Breadcrumb=b,this.Session=wt,this._config=this._configure(e,r),v(r.concat(this._config.plugins),(function(t){t&&o._loadPlugin(t)})),this._depth=1;var s=this,a=this.notify;this.notify=function(){return a.apply(s,arguments)}}var o=t.prototype;return o.addMetadata=function(t,e,n){return W.add(this._metadata,t,e,n)},o.getMetadata=function(t,e){return W.get(this._metadata,t,e)},o.clearMetadata=function(t,e){return W.clear(this._metadata,t,e)},o.addFeatureFlag=function(t,e){void 0===e&&(e=null),St(this._features,this._featuresIndex,t,e)},o.addFeatureFlags=function(t){At(this._features,t,this._featuresIndex)},o.clearFeatureFlag=function(t){Ot(this._features,this._featuresIndex,t)},o.clearFeatureFlags=function(){this._features=[],this._featuresIndex={}},o.getContext=function(){return this._context},o.setContext=function(t){this._context=t},o._configure=function(t,e){var r=n(e,(function(t,e){return e&&e.configSchema?p({},t,e.configSchema):t}),this._schema),i=n(u(r),(function(e,n){var i=r[n].defaultValue(t[n]);return void 0!==t[n]?r[n].validate(t[n])?r[n].allowPartialObject?e.config[n]=p(i,t[n]):e.config[n]=t[n]:(e.errors[n]=r[n].message,e.config[n]=i):e.config[n]=i,e}),{errors:{},config:{}}),o=i.errors,s=i.config;if(r.apiKey){if(!s.apiKey)throw new Error("No Bugsnag API Key set");/^[0-9a-f]{32}$/i.test(s.apiKey)||(o.apiKey="should be a string of 32 hexadecimal characters")}return this._metadata=p({},s.metadata),At(this._features,s.featureFlags,this._featuresIndex),this._user=p({},s.user),this._context=s.context,s.logger&&(this._logger=s.logger),s.onError&&(this._cbs.e=this._cbs.e.concat(s.onError)),s.onBreadcrumb&&(this._cbs.b=this._cbs.b.concat(s.onBreadcrumb)),s.onSession&&(this._cbs.s=this._cbs.s.concat(s.onSession)),u(o).length&&this._logger.warn(Mt(o,t)),s},o.getUser=function(){return this._user},o.setUser=function(t,e,n){this._user={id:t,email:e,name:n}},o._loadPlugin=function(t){var e=t.load(this);return t.name&&(this._plugins["~"+t.name+"~"]=e),this},o.getPlugin=function(t){return this._plugins["~"+t+"~"]},o._setDelivery=function(t){this._delivery=t(this)},o.startSession=function(){var t=new wt;return t.app.releaseStage=this._config.releaseStage,t.app.version=this._config.appVersion,t.app.type=this._config.appType,t._user=p({},this._user),ut(this._cbs.s,t,"onSession",this._logger)?(this._logger.debug("Session not started due to onSession callback"),this):this._sessionDelegate.startSession(this,t)},o.addOnError=function(t,e){void 0===e&&(e=!1),this._cbs.e[e?"unshift":"push"](t)},o.removeOnError=function(t){this._cbs.e=r(this._cbs.e,(function(e){return e!==t}))},o._addOnSessionPayload=function(t){this._cbs.sp.push(t)},o.addOnSession=function(t){this._cbs.s.push(t)},o.removeOnSession=function(t){this._cbs.s=r(this._cbs.s,(function(e){return e!==t}))},o.addOnBreadcrumb=function(t,e){void 0===e&&(e=!1),this._cbs.b[e?"unshift":"push"](t)},o.removeOnBreadcrumb=function(t){this._cbs.b=r(this._cbs.b,(function(e){return e!==t}))},o.pauseSession=function(){return this._sessionDelegate.pauseSession(this)},o.resumeSession=function(){return this._sessionDelegate.resumeSession(this)},o.leaveBreadcrumb=function(t,n,r){if(t="string"==typeof t?t:"",r="string"==typeof r&&i(e,r)?r:"manual",n="object"==typeof n&&null!==n?n:{},t){var o=new b(t,n,r);ut(this._cbs.b,o,"onBreadcrumb",this._logger)?this._logger.debug("Breadcrumb not attached due to onBreadcrumb callback"):(this._breadcrumbs.push(o),this._breadcrumbs.length>this._config.maxBreadcrumbs&&(this._breadcrumbs=this._breadcrumbs.slice(this._breadcrumbs.length-this._config.maxBreadcrumbs)))}},o._isBreadcrumbTypeEnabled=function(t){var e=this._config.enabledBreadcrumbTypes;return null===e||i(e,t)},o.notify=function(t,e,n){void 0===n&&(n=Rt);var r=ot.create(t,!0,void 0,"notify()",this._depth+1,this._logger);this._notify(r,e,n)},o._notify=function(e,n,r){var o=this;if(void 0===r&&(r=Rt),e.app=p({},e.app,{releaseStage:this._config.releaseStage,version:this._config.appVersion,type:this._config.appType}),e.context=e.context||this._context,e._metadata=p({},e._metadata,this._metadata),e._user=p({},e._user,this._user),e.breadcrumbs=this._breadcrumbs.slice(),At(e._features,this._features,e._featuresIndex),null!==this._config.enabledReleaseStages&&!i(this._config.enabledReleaseStages,this._config.releaseStage))return this._logger.warn("Event not sent due to releaseStage/enabledReleaseStages configuration"),r(null,e);var s=e.severity,a=function(t){o._logger.error("Error occurred in onError callback, continuing anyway…"),o._logger.error(t)},u=[].concat(this._cbs.e).concat(n);at(u,e,a,(function(n,i){if(n&&a(n),!i)return o._logger.debug("Event not sent due to onError callback"),r(null,e);o._isBreadcrumbTypeEnabled("error")&&t.prototype.leaveBreadcrumb.call(o,e.errors[0].errorClass,{errorClass:e.errors[0].errorClass,errorMessage:e.errors[0].errorMessage,severity:e.severity},"error"),s!==e.severity&&(e._handledState.severityReason={type:"userCallbackSetSeverity"}),e.unhandled!==e._handledState.unhandled&&(e._handledState.severityReason.unhandledOverridden=!0,e._handledState.unhandled=e.unhandled),o._session&&(o._session._track(e),e._session=o._session),o._delivery.sendEvent({apiKey:e.apiKey||o._config.apiKey,notifier:o._notifier,events:[e]},(function(t){return r(t,e)}))}))},t}(),Mt=function(t,e){return new Error("Invalid configuration\n"+v(u(t),(function(n){return" - "+n+" "+t[n]+", got "+Ct(e[n])})).join("\n\n"))},Ct=function(t){switch(typeof t){case"string":case"number":case"object":return JSON.stringify(t);default:return String(t)}},Pt=It,Nt={},Dt=["events.[].metaData","events.[].breadcrumbs.[].metaData","events.[].request"];Nt.event=function(t,e){var n=w(t,null,null,{redactedPaths:Dt,redactedKeys:e});return n.length>1e6&&(t.events[0]._metadata={notifier:"WARNING!\nSerialized payload was "+n.length/1e6+"MB (limit = 1MB)\nmetadata was removed"},n=w(t,null,null,{redactedPaths:Dt,redactedKeys:e})),n},Nt.session=function(t,e){return w(t,null,null)};var Lt={};Lt=function(t,e){return void 0===e&&(e=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});var i=kt(t._config,"notify","4",e),o=Nt.event(n,t._config.redactedKeys),s=new e.XDomainRequest;s.onload=function(){r(null)},s.onerror=function(){var e=new Error("Event failed to send");t._logger.error("Event failed to send…",e),o.length>1e6&&t._logger.warn("Event oversized ("+(o.length/1e6).toFixed(2)+" MB)"),r(e)},s.open("POST",i),setTimeout((function(){try{s.send(o)}catch(e){t._logger.error(e),r(e)}}),0)},sendSession:function(n,r){void 0===r&&(r=function(){});var i=kt(t._config,"sessions","1",e),o=new e.XDomainRequest;o.onload=function(){r(null)},o.open("POST",i),setTimeout((function(){try{o.send(Nt.session(n,t._config.redactedKeys))}catch(e){t._logger.error(e),r(e)}}),0)}}};var kt=function(t,e,n,r){var i=JSON.parse(JSON.stringify(new Date));return Ft(t.endpoints[e],r.location.protocol)+"?apiKey="+encodeURIComponent(t.apiKey)+"&payloadVersion="+n+"&sentAt="+encodeURIComponent(i)},Ft=Lt._matchPageProtocol=function(t,e){return"http:"===e?t.replace(/^https:/,"http:"):t},Ut=function(t,e){return void 0===e&&(e=window),{sendEvent:function(n,r){void 0===r&&(r=function(){});try{var i=t._config.endpoints.notify,o=new e.XMLHttpRequest,s=Nt.event(n,t._config.redactedKeys);o.onreadystatechange=function(){if(o.readyState===e.XMLHttpRequest.DONE){var n=o.status;if(0===n||n>=400){var i=new Error("Request failed with status "+n);t._logger.error("Event failed to send…",i),s.length>1e6&&t._logger.warn("Event oversized ("+(s.length/1e6).toFixed(2)+" MB)"),r(i)}else r(null)}},o.open("POST",i),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Bugsnag-Api-Key",n.apiKey||t._config.apiKey),o.setRequestHeader("Bugsnag-Payload-Version","4"),o.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),o.send(s)}catch(a){t._logger.error(a)}},sendSession:function(n,r){void 0===r&&(r=function(){});try{var i=t._config.endpoints.sessions,o=new e.XMLHttpRequest;o.onreadystatechange=function(){if(o.readyState===e.XMLHttpRequest.DONE){var n=o.status;if(0===n||n>=400){var i=new Error("Request failed with status "+n);t._logger.error("Session failed to send…",i),r(i)}else r(null)}},o.open("POST",i),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("Bugsnag-Api-Key",t._config.apiKey),o.setRequestHeader("Bugsnag-Payload-Version","1"),o.setRequestHeader("Bugsnag-Sent-At",(new Date).toISOString()),o.send(Nt.session(n,t._config.redactedKeys))}catch(s){t._logger.error(s)}}}},Bt=new Date,jt=function(){Bt=new Date},Gt={name:"appDuration",load:function(t){return t.addOnError((function(t){var e=new Date;t.app.duration=e-Bt}),!0),{reset:jt}}},Ht=function(t){return void 0===t&&(t=window),{load:function(e){e.addOnError((function(e){void 0===e.context&&(e.context=t.location.pathname)}),!0)}}},Yt=function(t,e){var n="000000000"+t;return n.substr(n.length-e)},Xt="object"==typeof window?window:self,zt=0;for(var Vt in Xt)Object.hasOwnProperty.call(Xt,Vt)&&zt++;var Wt=navigator.mimeTypes?navigator.mimeTypes.length:0,qt=Yt((Wt+navigator.userAgent.length).toString(36)+zt.toString(36),4),$t=function(){return qt},Kt=0,Qt=4,Jt=36,Zt=Math.pow(Jt,Qt);function te(){return Yt((Math.random()*Zt<<0).toString(Jt),Qt)}function ee(){return Kt=Kte.document.documentElement.clientHeight?"landscape":"portrait"),n._config.generateAnonymousId&&(r.id=oe(e)),n.addOnSession((function(t){t.device=p({},t.device,r),n._config.collectUserIp||ae(t)})),n.addOnError((function(t){t.device=p({},t.device,r,{time:new Date}),n._config.collectUserIp||ae(t)}),!0)},configSchema:{generateAnonymousId:{validate:function(t){return!0===t||!1===t},defaultValue:function(){return!0},message:"should be true|false"}}}},ae=function(t){var e=t.getUser();e&&e.id||t.setUser(t.device.id)},ue=function(t){return void 0===t&&(t=window),{load:function(e){e.addOnError((function(e){e.request&&e.request.url||(e.request=p({},e.request,{url:t.location.href}))}),!0)}}},le={load:function(t){t._sessionDelegate=ce}},ce={startSession:function(t,e){var n=t;return n._session=e,n._pausedSession=null,null===n._config.enabledReleaseStages||i(n._config.enabledReleaseStages,n._config.releaseStage)?(n._delivery.sendSession({notifier:n._notifier,device:e.device,app:e.app,sessions:[{id:e.id,startedAt:e.startedAt,user:e._user}]}),n):(n._logger.warn("Session not sent due to releaseStage/enabledReleaseStages configuration"),n)},resumeSession:function(t){return t._session?t:t._pausedSession?(t._session=t._pausedSession,t._pausedSession=null,t):t.startSession()},pauseSession:function(t){t._pausedSession=t._session,t._session=null}},he={load:function(t){t._config.collectUserIp||t.addOnError((function(t){t._user&&void 0===t._user.id&&delete t._user.id,t._user=p({id:"[REDACTED]"},t._user),t.request=p({clientIp:"[REDACTED]"},t.request)}))},configSchema:{collectUserIp:{defaultValue:function(){return!0},message:"should be true|false",validate:function(t){return!0===t||!1===t}}}},fe={load:function(t){!/^(local-)?dev(elopment)?$/.test(t._config.releaseStage)&&t._isBreadcrumbTypeEnabled("log")&&v(de,(function(e){var r=console[e];console[e]=function(){for(var i=arguments.length,o=new Array(i),s=0;s140?e.slice(0,135)+"(...)":e}function Te(t,e){var n=[t.tagName];if(t.id&&n.push("#"+t.id),t.className&&t.className.length&&n.push("."+t.className.split(" ").join(".")),!e.document.querySelectorAll||!Array.prototype.indexOf)return n.join("");try{if(1===e.document.querySelectorAll(n.join("")).length)return n.join("")}catch(i){return n.join("")}if(t.parentNode.childNodes.length>1){var r=Array.prototype.indexOf.call(t.parentNode.childNodes,t)+1;n.push(":nth-child("+r+")")}return 1===e.document.querySelectorAll(n.join("")).length?n.join(""):t.parentNode?Te(t.parentNode,e)+" > "+n.join(""):n.join("")}var we={};we=function(t){void 0===t&&(t=window);var e={load:function(e){if("addEventListener"in t&&e._isBreadcrumbTypeEnabled("navigation")){var n=function(t){return function(){return e.leaveBreadcrumb(t,{},"navigation")}};t.addEventListener("pagehide",n("Page hidden"),!0),t.addEventListener("pageshow",n("Page shown"),!0),t.addEventListener("load",n("Page loaded"),!0),t.document.addEventListener("DOMContentLoaded",n("DOMContentLoaded"),!0),t.addEventListener("load",(function(){return t.addEventListener("popstate",n("Navigated back"),!0)})),t.addEventListener("hashchange",(function(n){var r=n.oldURL?{from:Se(n.oldURL,t),to:Se(n.newURL,t),state:Re(t)}:{to:Se(t.location.href,t)};e.leaveBreadcrumb("Hash changed",r,"navigation")}),!0),t.history.replaceState&&Ae(e,t.history,"replaceState",t),t.history.pushState&&Ae(e,t.history,"pushState",t)}}};return e};var Se=function(t,e){var n=e.document.createElement("A");return n.href=t,""+n.pathname+n.search+n.hash},Oe=function(t,e,n,r){var i=Se(t.location.href,t);return{title:n,state:e,prevState:Re(t),to:r||i,from:i}},Ae=function(t,e,n,r){var i=e[n];e[n]=function(o,s,a){t.leaveBreadcrumb("History "+n,Oe(r,o,s,a),"navigation"),"function"==typeof t.resetEventCount&&t.resetEventCount(),t._config.autoTrackSessions&&t.startSession(),i.apply(e,[o,s].concat(void 0!==a?a:[]))}},Re=function(t){try{return t.history.state}catch(e){}},Ie="request",Me=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=window);var n={load:function(n){if(n._isBreadcrumbTypeEnabled("request")){var r=[n._config.endpoints.notify,n._config.endpoints.sessions].concat(t);a(),c();var o=function(t,e,r){var i={status:t.status,request:e+" "+r};t.status>=400?n.leaveBreadcrumb("fetch() failed",i,Ie):n.leaveBreadcrumb("fetch() succeeded",i,Ie)},s=function(t,e){n.leaveBreadcrumb("fetch() error",{request:t+" "+e},Ie)}}function a(){if("addEventListener"in e.XMLHttpRequest.prototype){var t=e.XMLHttpRequest.prototype.open;e.XMLHttpRequest.prototype.open=function(e,n){var r=this,i=!1,o=function(){return l(e,n)},s=function(){return u(e,n,r.status)};i&&(this.removeEventListener("load",s),this.removeEventListener("error",o)),this.addEventListener("load",s),this.addEventListener("error",o),i=!0,t.apply(this,arguments)}}}function u(t,e,o){if(void 0!==e){if("string"!=typeof e||!i(r,e.replace(/\?.*$/,""))){var s={status:o,request:t+" "+e};o>=400?n.leaveBreadcrumb("XMLHttpRequest failed",s,Ie):n.leaveBreadcrumb("XMLHttpRequest succeeded",s,Ie)}}else n._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function l(t,e){void 0!==e?"string"==typeof e&&i(r,e.replace(/\?.*$/,""))||n.leaveBreadcrumb("XMLHttpRequest error",{request:t+" "+e},Ie):n._logger.warn("The request URL is no longer present on this XMLHttpRequest. A breadcrumb cannot be left for this request.")}function c(){if("fetch"in e&&!e.fetch.polyfill){var t=e.fetch;e.fetch=function(){var e,n=arguments,r=arguments[0],i=arguments[1],a=null;return r&&"object"==typeof r?(a=r.url,i&&"method"in i?e=i.method:r&&"method"in r&&(e=r.method)):(a=r,i&&"method"in i&&(e=i.method)),void 0===e&&(e="GET"),new Promise((function(r,i){t.apply(void 0,n).then((function(t){o(t,e,a),r(t)})).catch((function(t){s(e,a),i(t)}))}))}}}}};return n},Ce={load:function(t){var e=0;t.addOnError((function(n){if(e>=t._config.maxEvents)return t._logger.warn("Cancelling event send due to maxEvents per session limit of "+t._config.maxEvents+" being reached"),!1;e++})),t.resetEventCount=function(){e=0}},configSchema:{maxEvents:{defaultValue:function(){return 10},message:"should be a positive integer ≤100",validate:function(t){return l(1,100)(t)}}}},Pe={},Ne=(Pe={load:function(t){t.addOnError((function(t){var e=n(t.errors,(function(t,e){return t.concat(e.stacktrace)}),[]);v(e,(function(t){t.file=Ne(t.file)}))}))}})._strip=function(t){return"string"==typeof t?t.replace(/\?.*$/,"").replace(/#.*$/,""):t},De=function(t,e){return void 0===t&&(t=window),void 0===e&&(e="window onerror"),{load:function(n){if(n._config.autoDetectErrors&&n._config.enabledErrorTypes.unhandledExceptions){var r=t.onerror;t.onerror=i}function i(t,i,o,s,a){if(0===o&&/Script error\.?/.test(t))n._logger.warn("Ignoring cross-domain or eval script error. See docs: https://tinyurl.com/yy3rn63z");else{var u,l={severity:"error",unhandled:!0,severityReason:{type:"unhandledException"}};if(a)u=n.Event.create(a,!0,l,e,1),Le(u.errors[0].stacktrace,i,o,s);else if("object"!=typeof t||null===t||i&&"string"==typeof i||o||s||a)u=n.Event.create(t,!0,l,e,1),Le(u.errors[0].stacktrace,i,o,s);else{var c=t.type?"Event: "+t.type:"Error",h=t.message||t.detail||"";(u=n.Event.create({name:c,message:h},!0,l,e,1)).originalError=t,u.addMetadata(e,{event:t,extraParameters:i})}n._notify(u)}"function"==typeof r&&r.apply(this,arguments)}}}},Le=function(t,e,n,r){t[0]||t.push({});var i=t[0];i.file||"string"!=typeof e||(i.file=e),!i.lineNumber&&ke(n)&&(i.lineNumber=n),i.columnNumber||(ke(r)?i.columnNumber=r:window.event&&ke(window.event.errorCharacter)&&(i.columnNumber=window.event.errorCharacter))},ke=function(t){return"number"==typeof t&&"NaN"!==String.call(t)},Fe=function(t){return void 0===t&&(t=window),{load:function(e){if(e._config.autoDetectErrors&&e._config.enabledErrorTypes.unhandledRejections){var n=function(t){var n=t.reason,r=!1;try{t.detail&&t.detail.reason&&(n=t.detail.reason,r=!0)}catch(o){}var i=e.Event.create(n,!1,{severity:"error",unhandled:!0,severityReason:{type:"unhandledPromiseRejection"}},"unhandledrejection handler",1,e._logger);r&&v(i.errors[0].stacktrace,Ue(n)),e._notify(i,(function(t){var e;X(t.originalError)&&!t.originalError.stack&&t.addMetadata("unhandledRejection handler",((e={})[Object.prototype.toString.call(t.originalError)]={name:t.originalError.name,message:t.originalError.message,code:t.originalError.code},e))}))};"addEventListener"in t?t.addEventListener("unhandledrejection",n):t.onunhandledrejection=function(t,e){n({detail:{reason:t,promise:e}})}}}}},Ue=function(t){return function(e){e.file!==t.toString()&&e.method&&(e.method=e.method.replace(/^\s+/,""))}},Be={},je="Bugsnag JavaScript",Ge="7.20.2",He="https://github.com/bugsnag/bugsnag-js",Ye=p({},f.schema,y),Xe={_client:null,createClient:function(t){"string"==typeof t&&(t={apiKey:t}),t||(t={});var e=[Gt,se(),Ht(),ue(),Ce,le,he,Pe,De(),Fe(),we(),_e(),Me(),fe,me()],n=new Pt(t,Ye,e,{name:je,version:Ge,url:He});return n._setDelivery(window.XDomainRequest?Lt:Ut),n._logger.debug("Loaded!"),n.leaveBreadcrumb("Bugsnag loaded",{},"state"),n._config.autoTrackSessions?n.startSession():n},start:function(t){return Xe._client?(Xe._client._logger.warn("Bugsnag.start() was called more than once. Ignoring."),Xe._client):(Xe._client=Xe.createClient(t),Xe._client)},isStarted:function(){return null!=Xe._client}};return v(["resetEventCount"].concat(u(Pt.prototype)),(function(t){/^_/.test(t)||(Xe[t]=function(){if(!Xe._client)return console.log("Bugsnag."+t+"() was called before Bugsnag.start()");Xe._client._depth+=1;var e=Xe._client[t].apply(Xe._client,arguments);return Xe._client._depth-=1,e})})),(Be=Xe).Client=Pt,Be.Event=ot,Be.Session=wt,Be.Breadcrumb=b,Be.default=Xe,Be}()},5780:function(t,e,n){t.exports=n(48279)},25994:function(t){t.exports=function(){var t={};function e(){return e=Object.assign||function(t){for(var e=1;e=0;--i){var o=l[i];if(o.test&&o.test(t,n))return new o(t,e)}throw new Error("Unrecognized source type to auto-detect Resource")}var h=function(t,e){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},h(t,e)};function f(t,e){function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var d=function(){return d=Object.assign||function(t){for(var e,n=arguments,r=1,i=arguments.length;r0&&d>0,s.textureCacheIds=[],s.destroyed=!1,s.resource=null,s._batchEnabled=0,s._batchLocation=0,s.parentTextureArray=null,s.setResource(e),s}return f(e,t),Object.defineProperty(e.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mipmap",{get:function(){return this._mipmap},set:function(t){this._mipmap!==t&&(this._mipmap=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(t){this._scaleMode!==t&&(this._scaleMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(t){this._wrapMode!==t&&(this._wrapMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),e.prototype.setStyle=function(t,e){var n;return void 0!==t&&t!==this.scaleMode&&(this.scaleMode=t,n=!0),void 0!==e&&e!==this.mipmap&&(this.mipmap=e,n=!0),n&&this.dirtyStyleId++,this},e.prototype.setSize=function(t,e,n){return n=n||this.resolution,this.setRealSize(t*n,e*n,n)},e.prototype.setRealSize=function(t,e,n){return this.resolution=n||this.resolution,this.width=Math.round(t)/this.resolution,this.height=Math.round(e)/this.resolution,this._refreshPOT(),this.update(),this},e.prototype._refreshPOT=function(){this.isPowerOfTwo=(0,o.isPow2)(this.realWidth)&&(0,o.isPow2)(this.realHeight)},e.prototype.setResolution=function(t){var e=this.resolution;return e===t||(this.resolution=t,this.valid&&(this.width=Math.round(this.width*e)/t,this.height=Math.round(this.height*e)/t,this.emit("update",this)),this._refreshPOT()),this},e.prototype.setResource=function(t){if(this.resource===t)return this;if(this.resource)throw new Error("Resource can be set only once");return t.bind(this),this.resource=t,this},e.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},e.prototype.onError=function(t){this.emit("error",this,t)},e.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete o.BaseTextureCache[this.cacheId],delete o.TextureCache[this.cacheId],this.cacheId=null),this.dispose(),e.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},e.prototype.dispose=function(){this.emit("dispose",this)},e.prototype.castToBaseTexture=function(){return this},e.from=function(t,n,i){void 0===i&&(i=r.X.STRICT_TEXTURE_CACHE);var s="string"==typeof t,a=null;if(s)a=t;else{if(!t._pixiId){var u=n&&n.pixiIdPrefix||"pixiid";t._pixiId=u+"_"+(0,o.uid)()}a=t._pixiId}var l=o.BaseTextureCache[a];if(s&&i&&!l)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return l||((l=new e(t,n)).cacheId=a,e.addToCache(l,a)),l},e.fromBuffer=function(t,n,r,o){t=t||new Float32Array(n*r*4);var s=new v(t,{width:n,height:r}),a=t instanceof Float32Array?i.vK.FLOAT:i.vK.UNSIGNED_BYTE;return new e(s,Object.assign(m,o||{width:n,height:r,type:a}))},e.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),o.BaseTextureCache[e]&&console.warn("BaseTexture added to the cache with an id ["+e+"] that already had an entry"),o.BaseTextureCache[e]=t)},e.removeFromCache=function(t){if("string"==typeof t){var e=o.BaseTextureCache[t];if(e){var n=e.textureCacheIds.indexOf(t);return n>-1&&e.textureCacheIds.splice(n,1),delete o.BaseTextureCache[t],e}}else if(t&&t.textureCacheIds){for(var r=0;r0){if(!t.resource)throw new Error("CubeResource does not support copying of renderTexture.");this.addResourceAt(t.resource,e)}else t.target=i.sp.TEXTURE_CUBE_MAP_POSITIVE_X+e,t.parentTextureArray=this.baseTexture,this.items[e]=t;return t.valid&&!this.valid&&this.resize(t.realWidth,t.realHeight),this.items[e]=t,this},e.prototype.upload=function(t,n,r){for(var i=this.itemDirtyIds,o=0;o)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,e}(b),S=function(t){function e(n,r){var i=this;if(r=r||{},!(n instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),"string"==typeof n&&(n=[n]);var s=n[0].src||n[0];b.crossOrigin(o,s,r.crossorigin);for(var a=0;a0&&!1===t.paused&&!1===t.ended&&t.readyState>2},e.prototype._isSourceReady=function(){var t=this.source;return 3===t.readyState||4===t.readyState},e.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(a.vB.shared.add(this.update,this),this._isConnectedToTicker=!0)},e.prototype._onPlayStop=function(){this._isConnectedToTicker&&(a.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1)},e.prototype._onCanPlay=function(){var t=this.source;t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay);var e=this.valid;this.resize(t.videoWidth,t.videoHeight),!e&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&t.play()},e.prototype.dispose=function(){this._isConnectedToTicker&&(a.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(a.vB.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(a.vB.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(t){t!==this._updateFPS&&(this._updateFPS=t)},enumerable:!1,configurable:!0}),e.test=function(t,n){return globalThis.HTMLVideoElement&&t instanceof HTMLVideoElement||e.TYPES.indexOf(n)>-1},e.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],e.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},e}(b),O=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.test=function(t){return!!globalThis.createImageBitmap&&t instanceof ImageBitmap},e}(b);l.push(T,O,x,S,w,v,E,_);var A={__proto__:null,Resource:p,BaseImageResource:b,INSTALLED:l,autoDetectResource:c,AbstractMultiResource:y,ArrayResource:_,BufferResource:v,CanvasResource:x,CubeResource:E,ImageResource:T,SVGResource:w,VideoResource:S,ImageBitmapResource:O},R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.upload=function(t,e,n){var r=t.gl;r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===i.iw.UNPACK);var o=e.realWidth,s=e.realHeight;return n.width===o&&n.height===s?r.texSubImage2D(e.target,0,0,0,o,s,e.format,n.type,this.data):(n.width=o,n.height=s,r.texImage2D(e.target,0,n.internalFormat,o,s,0,e.format,n.type,this.data)),!0},e}(v),I=function(){function t(t,e){this.width=Math.round(t||100),this.height=Math.round(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new s.R("disposeFramebuffer"),this.multisample=i.G5.NONE}return Object.defineProperty(t.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),t.prototype.addColorTexture=function(t,e){return void 0===t&&(t=0),this.colorTextures[t]=e||new g(null,{scaleMode:i.aH.NEAREST,resolution:1,mipmap:i.WB.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.addDepthTexture=function(t){return this.depthTexture=t||new g(new R(null,{width:this.width,height:this.height}),{scaleMode:i.aH.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:i.WB.OFF,format:i.I2.DEPTH_COMPONENT,type:i.vK.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),t!==this.width||e!==this.height){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&e.textureCacheIds.splice(n,1),delete o.TextureCache[t],e}}else if(t&&t.textureCacheIds){for(var r=0;rthis.baseTexture.width,s=n+i>this.baseTexture.height;if(o||s){var a=o&&s?"and":"or",u="X: "+e+" + "+r+" = "+(e+r)+" > "+this.baseTexture.width,l="Y: "+n+" + "+i+" = "+(n+i)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+u+" "+a+" "+l)}this.valid=r&&i&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=t),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this._rotate},set:function(t){this._rotate=t,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),e.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(e,"EMPTY",{get:function(){return e._EMPTY||(e._EMPTY=new e(new g),N(e._EMPTY),N(e._EMPTY.baseTexture)),e._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(e,"WHITE",{get:function(){if(!e._WHITE){var t=document.createElement("canvas"),n=t.getContext("2d");t.width=16,t.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),e._WHITE=new e(new g(new x(t))),N(e._WHITE),N(e._WHITE.baseTexture)}return e._WHITE},enumerable:!1,configurable:!0}),e}(o.EventEmitter),L=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.valid=!0,r.filterFrame=null,r.filterPoolKey=null,r.updateUvs(),r}return f(e,t),Object.defineProperty(e.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(t){this.framebuffer.multisample=t},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,e,n){void 0===n&&(n=!0);var r=this.baseTexture.resolution,i=Math.round(t*r)/r,o=Math.round(e*r)/r;this.valid=i>0&&o>0,this._frame.width=this.orig.width=i,this._frame.height=this.orig.height=o,n&&this.baseTexture.resize(i,o),this.updateUvs()},e.prototype.setResolution=function(t){var e=this.baseTexture;e.resolution!==t&&(e.setResolution(t),this.resize(e.width,e.height,!1))},e.create=function(t){for(var n=arguments,r=[],i=1;i1?-r:-1:(s=((65535&(t=(0,o.nextPow2)(t)))<<16|65535&(e=(0,o.nextPow2)(e)))>>>0,r>1&&(s+=4294967296*r)),this.texturePool[s]||(this.texturePool[s]=[]);var a=this.texturePool[s].pop();return a||(a=this.createTexture(t,e,r)),a.filterPoolKey=s,a.setResolution(n),a},t.prototype.getFilterTexture=function(t,e,n){var r=this.getOptimalTexture(t.width,t.height,e||t.resolution,n||i.G5.NONE);return r.filterFrame=t.filterFrame,r},t.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},t.prototype.returnFilterTexture=function(t){this.returnTexture(t)},t.prototype.clear=function(t){if(t=!1!==t)for(var e in this.texturePool){var n=this.texturePool[e];if(n)for(var r=0;r0&&t.height>0,this.texturePool)if(Number(e)<0){var n=this.texturePool[e];if(n)for(var r=0;r1){for(var l=0;l1&&((h=this.getOptimalFilterTexture(c.width,c.height,e.resolution)).filterFrame=c.filterFrame),n[f].apply(this,c,h,i.yl.CLEAR,e);var d=c;c=h,h=d}n[f].apply(this,c,l.renderTexture,i.yl.BLEND,e),f>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(h)}e.clear(),this.statePool.push(e)},t.prototype.bindAndClear=function(t,e){void 0===e&&(e=i.yl.CLEAR);var n=this.renderer,r=n.renderTexture,o=n.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,r.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var a=1&o.stateId||this.forceClear;(e===i.yl.CLEAR||e===i.yl.BLIT&&a)&&this.renderer.framebuffer.clear(0,0,0,0)},t.prototype.applyFilter=function(t,e,n,r){var o=this.renderer;o.state.set(t.state),this.bindAndClear(n,r),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(i.lg.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(i.lg.TRIANGLE_STRIP))},t.prototype.calculateSpriteMatrix=function(t,e){var n=this.activeState,r=n.sourceFrame,i=n.destinationFrame,o=e._texture.orig,s=t.set(i.width,0,0,i.height,r.x,r.y),a=e.worldTransform.copyTo(u.y3.TEMP_MATRIX);return a.invert(),s.prepend(a),s.scale(1/o.width,1/o.height),s.translate(e.anchor.x,e.anchor.y),s},t.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},t.prototype.getOptimalFilterTexture=function(t,e,n,r){return void 0===n&&(n=1),void 0===r&&(r=i.G5.NONE),this.texturePool.getOptimalTexture(t,e,n,r)},t.prototype.getFilterTexture=function(t,e,n){if("number"==typeof t){var r=t;t=e,e=r}t=t||this.activeState.renderTexture;var o=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,n||i.G5.NONE);return o.filterFrame=t.filterFrame,o},t.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},t.prototype.emptyPool=function(){this.texturePool.clear(!0)},t.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},t.prototype.transformAABB=function(t,e){var n=K[0],r=K[1],i=K[2],o=K[3];n.set(e.left,e.top),r.set(e.left,e.bottom),i.set(e.right,e.top),o.set(e.right,e.bottom),t.apply(n,n),t.apply(r,r),t.apply(i,i),t.apply(o,o);var s=Math.min(n.x,r.x,i.x,o.x),a=Math.min(n.y,r.y,i.y,o.y),u=Math.max(n.x,r.x,i.x,o.x),l=Math.max(n.y,r.y,i.y,o.y);e.x=s,e.y=a,e.width=u-s,e.height=l-a},t.prototype.roundFrame=function(t,e,n,r,i){if(!(t.width<=0||t.height<=0||n.width<=0||n.height<=0)){if(i){var o=i.a,s=i.b,a=i.c,u=i.d;if((Math.abs(s)>1e-4||Math.abs(a)>1e-4)&&(Math.abs(o)>1e-4||Math.abs(u)>1e-4))return}(i=i?Q.copyFrom(i):Q.identity()).translate(-n.x,-n.y).scale(r.width/n.width,r.height/n.height).translate(r.x,r.y),this.transformAABB(i,t),t.ceil(e),this.transformAABB(i.invert(),t)}},t}(),Z=function(){function t(t){this.renderer=t}return t.prototype.flush=function(){},t.prototype.destroy=function(){this.renderer=null},t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.render=function(t){},t}(),tt=function(){function t(t){this.renderer=t,this.emptyRenderer=new Z(t),this.currentRenderer=this.emptyRenderer}return t.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.copyBoundTextures=function(t,e){for(var n=this.renderer.texture.boundTextures,r=e-1;r>=0;--r)t[r]=n[r]||null,t[r]&&(t[r]._batchLocation=r)},t.prototype.boundArray=function(t,e,n,r){for(var i=t.elements,o=t.ids,s=t.count,a=0,u=0;u=0&&c=i.Vi.WEBGL2&&(n=t.getContext("webgl2",e)),n)this.webGLVersion=2;else if(this.webGLVersion=1,!(n=t.getContext("webgl",e)||t.getContext("experimental-webgl",e)))throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),this.gl},t.prototype.getExtensions=function(){var t=this.gl,e={anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};1===this.webGLVersion?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},t.prototype.handleContextLost=function(t){t.preventDefault()},t.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},t.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},t.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},t.prototype.validateContext=function(t){var e=t.getContextAttributes(),n="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;n&&(this.webGLVersion=2),e&&!e.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var r=n||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=r,r||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},t}(),rt=function(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=i.G5.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0},it=new u.Ae,ot=function(){function t(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new I(10,10),this.msaaSamples=null}return t.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new u.Ae,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),1===this.renderer.context.webGLVersion){var e=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;r.X.PREFER_ENV===i.Vi.WEBGL_LEGACY&&(e=null,n=null),e?t.drawBuffers=function(t){return e.drawBuffersWEBGL(t)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},t.prototype.bind=function(t,e,n){void 0===n&&(n=0);var r=this.gl;if(t){var i=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,r.bindFramebuffer(r.FRAMEBUFFER,i.framebuffer)),i.mipLevel!==n&&(t.dirtyId++,t.dirtyFormat++,i.mipLevel=n),i.dirtyId!==t.dirtyId&&(i.dirtyId=t.dirtyId,i.dirtyFormat!==t.dirtyFormat?(i.dirtyFormat=t.dirtyFormat,i.dirtySize=t.dirtySize,this.updateFramebuffer(t,n)):i.dirtySize!==t.dirtySize&&(i.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var o=0;o>n,u=e.height>>n,l=a/e.width;this.setViewport(e.x*l,e.y*l,a,u)}else{a=t.width>>n,u=t.height>>n;this.setViewport(0,0,a,u)}}else this.current&&(this.current=null,r.bindFramebuffer(r.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},t.prototype.setViewport=function(t,e,n,r){var i=this.viewport;t=Math.round(t),e=Math.round(e),n=Math.round(n),r=Math.round(r),i.width===n&&i.height===r&&i.x===t&&i.y===e||(i.x=t,i.y=e,i.width=n,i.height=r,this.gl.viewport(t,e,n,r))},Object.defineProperty(t.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),t.prototype.clear=function(t,e,n,r,o){void 0===o&&(o=i.V0.COLOR|i.V0.DEPTH);var s=this.gl;s.clearColor(t,e,n,r),s.clear(o)},t.prototype.initFramebuffer=function(t){var e=this.gl,n=new rt(e.createFramebuffer());return n.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=n,this.managedFramebuffers.push(t),t.disposeRunner.add(this),n},t.prototype.resizeFramebuffer=function(t){var e=this.gl,n=t.glFramebuffers[this.CONTEXT_UID];n.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,n.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,n.multisample,e.RGBA8,t.width,t.height)),n.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,n.stencil),n.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,n.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height));var r=t.colorTextures,i=r.length;e.drawBuffers||(i=Math.min(i,1));for(var o=0;o1&&this.canMultisampleFramebuffer(t)?(r.msaaBuffer=r.msaaBuffer||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,r.msaaBuffer),n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.RGBA8,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.RENDERBUFFER,r.msaaBuffer)):r.msaaBuffer&&(n.deleteRenderbuffer(r.msaaBuffer),r.msaaBuffer=null,r.blitFramebuffer&&(r.blitFramebuffer.dispose(),r.blitFramebuffer=null));for(var s=[],a=0;a1&&n.drawBuffers(s),t.depthTexture)&&this.writeDepthTexture){var c=t.depthTexture;this.renderer.texture.bind(c,0),n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,c._glTextures[this.CONTEXT_UID].texture,e)}!t.stencil&&!t.depth||t.depthTexture&&this.writeDepthTexture?r.stencil&&(n.deleteRenderbuffer(r.stencil),r.stencil=null):(r.stencil=r.stencil||n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_STENCIL_ATTACHMENT,n.RENDERBUFFER,r.stencil))},t.prototype.canMultisampleFramebuffer=function(t){return 1!==this.renderer.context.webGLVersion&&t.colorTextures.length<=1&&!t.depthTexture},t.prototype.detectSamples=function(t){var e=this.msaaSamples,n=i.G5.NONE;if(t<=1||null===e)return n;for(var r=0;r=0&&this.managedFramebuffers.splice(i,1),t.disposeRunner.remove(this),e||(r.deleteFramebuffer(n.framebuffer),n.msaaBuffer&&r.deleteRenderbuffer(n.msaaBuffer),n.stencil&&r.deleteRenderbuffer(n.stencil)),n.blitFramebuffer&&n.blitFramebuffer.dispose()}},t.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n=i.Vi.WEBGL2&&(e=t.getContext("webgl2",{})),e||((e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}))?e.getExtension("WEBGL_draw_buffers"):e=null),vt=e}return vt}();if(t&&t.getShaderPrecisionFormat){var e=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);dt=e.precision?i.cB.HIGH:i.cB.MEDIUM}}return dt}function gt(t,e,n){if("precision"!==t.substring(0,9)){var r=e;return e===i.cB.HIGH&&n!==i.cB.HIGH&&(r=i.cB.MEDIUM),"precision "+r+" float;\n"+t}return n!==i.cB.HIGH&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t}var yt={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function _t(t){return yt[t]}var bt=null,xt={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function Et(t,e){if(!bt){var n=Object.keys(xt);bt={};for(var r=0;r0&&(e+="\nelse "),n1e-4||Math.abs(r)>1e-4)&&(Math.abs(e)>1e-4||Math.abs(i)>1e-4)},e.prototype.testScissor=function(t){var n=t.maskObject;if(!n.isFastRect||!n.isFastRect())return!1;if(e.isMatrixRotated(n.worldTransform))return!1;if(e.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(t);var r=t._scissorRectLocal;return r.width>0&&r.height>0},e.prototype.roundFrameToPixels=function(t,n,r,i,o){e.isMatrixRotated(o)||((o=o?jt.copyFrom(o):jt.identity()).translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.renderer.filter.transformAABB(o,t),t.fit(i),t.x=Math.round(t.x*n),t.y=Math.round(t.y*n),t.width=Math.round(t.width*n),t.height=Math.round(t.height*n))},e.prototype.push=function(t){t._scissorRectLocal||this.calcScissorRect(t);var e=this.renderer.gl;t._scissorRect||e.enable(e.SCISSOR_TEST),t._scissorCounter++,t._scissorRect=t._scissorRectLocal,this._useCurrent()},e.prototype.pop=function(){var t=this.renderer.gl;this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)},e.prototype._useCurrent=function(){var t,e=this.maskStack[this.maskStack.length-1]._scissorRect;t=this.renderer.renderTexture.current?e.y:this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)},e}(Bt),Ht=function(t){function e(e){var n=t.call(this,e)||this;return n.glConst=WebGLRenderingContext.STENCIL_TEST,n}return f(e,t),e.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0},e.prototype.push=function(t){var e=t.maskObject,n=this.renderer.gl,r=t._stencilCounter;0===r&&(this.renderer.framebuffer.forceStencil(),n.clearStencil(0),n.clear(n.STENCIL_BUFFER_BIT),n.enable(n.STENCIL_TEST)),t._stencilCounter++,n.colorMask(!1,!1,!1,!1),n.stencilFunc(n.EQUAL,r,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.INCR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,this._useCurrent()},e.prototype.pop=function(t){var e=this.renderer.gl;0===this.getStackLength()?e.disable(e.STENCIL_TEST):(e.colorMask(!1,!1,!1,!1),e.stencilOp(e.KEEP,e.KEEP,e.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,this._useCurrent())},e.prototype._useCurrent=function(){var t=this.renderer.gl;t.colorMask(!0,!0,!0,!0),t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)},e}(Bt),Yt=function(){function t(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new u.y3,this.transform=null}return t.prototype.update=function(t,e,n,r){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,n,r),this.transform&&this.projectionMatrix.append(this.transform);var i=this.renderer;i.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,i.globalUniforms.update(),i.shader.shader&&i.shader.syncUniformGroup(i.shader.shader.uniforms.globals)},t.prototype.calculateProjection=function(t,e,n,r){var i=this.projectionMatrix,o=r?-1:1;i.identity(),i.a=1/e.width*2,i.d=o*(1/e.height*2),i.tx=-1-e.x*i.a,i.ty=-o-e.y*i.d},t.prototype.setTransform=function(t){},t.prototype.destroy=function(){this.renderer=null},t}(),Xt=new u.Ae,zt=new u.Ae,Vt=function(){function t(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new u.Ae,this.destinationFrame=new u.Ae,this.viewportFrame=new u.Ae}return t.prototype.bind=function(t,e,n){void 0===t&&(t=null);var r,i,o,s=this.renderer;this.current=t,t?(o=(r=t.baseTexture).resolution,e||(Xt.width=t.frame.width,Xt.height=t.frame.height,e=Xt),n||(zt.x=t.frame.x,zt.y=t.frame.y,zt.width=e.width,zt.height=e.height,n=zt),i=r.framebuffer):(o=s.resolution,e||(Xt.width=s.screen.width,Xt.height=s.screen.height,e=Xt),n||((n=Xt).width=e.width,n.height=e.height));var a=this.viewportFrame;a.x=n.x*o,a.y=n.y*o,a.width=n.width*o,a.height=n.height*o,t||(a.y=s.view.height-(a.y+a.height)),a.ceil(),this.renderer.framebuffer.bind(i,a),this.renderer.projection.update(n,e,o,!i),t?this.renderer.mask.setMaskStack(r.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(n)},t.prototype.clear=function(t,e){t=this.current?t||this.current.baseTexture.clearColor:t||this.clearColor;var n=this.destinationFrame,r=this.current?this.current.baseTexture:this.renderer.screen,i=n.width!==r.width||n.height!==r.height;if(i){var o=this.viewportFrame,s=o.x,a=o.y,u=o.width,l=o.height;s=Math.round(s),a=Math.round(a),u=Math.round(u),l=Math.round(l),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(s,a,u,l)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),i&&this.renderer.scissor.pop()},t.prototype.resize=function(){this.bind(null)},t.prototype.reset=function(){this.bind(null)},t.prototype.destroy=function(){this.renderer=null},t}();function Wt(t,e,n,r,i){n.buffer.update(i)}var qt={float:"\n data[offset] = v;\n ",vec2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n ",vec3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n ",vec4:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n data[offset+3] = v[3];\n ",mat2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n\n data[offset+4] = v[2];\n data[offset+5] = v[3];\n ",mat3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n data[offset + 4] = v[3];\n data[offset + 5] = v[4];\n data[offset + 6] = v[5];\n\n data[offset + 8] = v[6];\n data[offset + 9] = v[7];\n data[offset + 10] = v[8];\n ",mat4:"\n for(var i = 0; i < 16; i++)\n {\n data[offset + i] = v[i];\n }\n "},$t={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function Kt(t,e){if(!t.autoManage)return{size:0,syncFunc:Wt};for(var n=function(t,e){var n=[];for(var r in t)e[r]&&n.push(e[r]);return n.sort((function(t,e){return t.index-e.index})),n}(t.uniforms,e),r=function(t){for(var e=t.map((function(t){return{data:t,offset:0,dataLen:0,dirty:0}})),n=0,r=0,i=0,o=0;o1&&(n=Math.max(n,16)*s.data.size),s.dataLen=n,r%n!=0&&r<16){var a=r%n%16;r+=a,i+=a}r+n>16?(i=16*Math.ceil(i/16),s.offset=i,i+=n,r=n):(s.offset=i,r+=n,i+=n)}return{uboElements:e,size:i=16*Math.ceil(i/16)}}(n),i=r.uboElements,o=r.size,s=["\n var v = null;\n var v2 = null;\n var cv = null;\n var t = 0;\n var gl = renderer.gl\n var index = 0;\n var data = buffer.data;\n "],a=0;a1){var p=_t(u.data.type),v=Math.max($t[u.data.type]/16,1),m=p/v,g=(4-m%4)%4;s.push("\n cv = ud."+c+".value;\n v = uv."+c+";\n offset = "+u.offset/4+";\n\n t = 0;\n\n for(var i=0; i < "+u.data.size*v+"; i++)\n {\n for(var j = 0; j < "+m+"; j++)\n {\n data[offset++] = v[t++];\n }\n offset += "+g+";\n }\n\n ")}else{var y=qt[u.data.type];s.push("\n cv = ud."+c+".value;\n v = uv."+c+";\n offset = "+u.offset/4+";\n "+y+";\n ")}}return s.push("\n renderer.buffer.update(buffer);\n "),{size:o,syncFunc:new Function("ud","uv","renderer","syncData","buffer",s.join("\n"))}}var Qt=function(){function t(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return t.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},t}();function Jt(t,e){var n=lt(t,t.VERTEX_SHADER,e.vertexSrc),r=lt(t,t.FRAGMENT_SHADER,e.fragmentSrc),i=t.createProgram();if(t.attachShader(i,n),t.attachShader(i,r),t.linkProgram(i),t.getProgramParameter(i,t.LINK_STATUS)||function(t,e,n,r){t.getProgramParameter(e,t.LINK_STATUS)||(t.getShaderParameter(n,t.COMPILE_STATUS)||ct(t,n),t.getShaderParameter(r,t.COMPILE_STATUS)||ct(t,r),console.error("PixiJS Error: Could not initialize shader."),""!==t.getProgramInfoLog(e)&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(e)))}(t,i,n,r),e.attributeData=function(t,e){for(var n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),i=0;ie?1:-1}));for(var s=0;s>=1,n++;this.stateId=t.data}for(n=0;nthis.checkCountMax&&(this.checkCount=0,this.run())))},t.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,n=!1,r=0;rthis.maxIdle&&(t.destroyTexture(i,!0),e[r]=null,n=!0)}if(n){var o=0;for(r=0;r=0;r--)this.unload(t.children[r])},t.prototype.destroy=function(){this.renderer=null},t}();var ie=function(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=i.vK.UNSIGNED_BYTE,this.internalFormat=i.I2.RGBA,this.samplerType=0},oe=function(){function t(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new g,this.hasIntegerTextures=!1}return t.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=function(t){var e,n,r,o,s,a,u,l,c,h,f,d,p,v,m,g,y,_,b,x,E,T,w;return"WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext?((e={})[i.vK.UNSIGNED_BYTE]=((n={})[i.I2.RGBA]=t.RGBA8,n[i.I2.RGB]=t.RGB8,n[i.I2.RG]=t.RG8,n[i.I2.RED]=t.R8,n[i.I2.RGBA_INTEGER]=t.RGBA8UI,n[i.I2.RGB_INTEGER]=t.RGB8UI,n[i.I2.RG_INTEGER]=t.RG8UI,n[i.I2.RED_INTEGER]=t.R8UI,n[i.I2.ALPHA]=t.ALPHA,n[i.I2.LUMINANCE]=t.LUMINANCE,n[i.I2.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,n),e[i.vK.BYTE]=((r={})[i.I2.RGBA]=t.RGBA8_SNORM,r[i.I2.RGB]=t.RGB8_SNORM,r[i.I2.RG]=t.RG8_SNORM,r[i.I2.RED]=t.R8_SNORM,r[i.I2.RGBA_INTEGER]=t.RGBA8I,r[i.I2.RGB_INTEGER]=t.RGB8I,r[i.I2.RG_INTEGER]=t.RG8I,r[i.I2.RED_INTEGER]=t.R8I,r),e[i.vK.UNSIGNED_SHORT]=((o={})[i.I2.RGBA_INTEGER]=t.RGBA16UI,o[i.I2.RGB_INTEGER]=t.RGB16UI,o[i.I2.RG_INTEGER]=t.RG16UI,o[i.I2.RED_INTEGER]=t.R16UI,o[i.I2.DEPTH_COMPONENT]=t.DEPTH_COMPONENT16,o),e[i.vK.SHORT]=((s={})[i.I2.RGBA_INTEGER]=t.RGBA16I,s[i.I2.RGB_INTEGER]=t.RGB16I,s[i.I2.RG_INTEGER]=t.RG16I,s[i.I2.RED_INTEGER]=t.R16I,s),e[i.vK.UNSIGNED_INT]=((a={})[i.I2.RGBA_INTEGER]=t.RGBA32UI,a[i.I2.RGB_INTEGER]=t.RGB32UI,a[i.I2.RG_INTEGER]=t.RG32UI,a[i.I2.RED_INTEGER]=t.R32UI,a[i.I2.DEPTH_COMPONENT]=t.DEPTH_COMPONENT24,a),e[i.vK.INT]=((u={})[i.I2.RGBA_INTEGER]=t.RGBA32I,u[i.I2.RGB_INTEGER]=t.RGB32I,u[i.I2.RG_INTEGER]=t.RG32I,u[i.I2.RED_INTEGER]=t.R32I,u),e[i.vK.FLOAT]=((l={})[i.I2.RGBA]=t.RGBA32F,l[i.I2.RGB]=t.RGB32F,l[i.I2.RG]=t.RG32F,l[i.I2.RED]=t.R32F,l[i.I2.DEPTH_COMPONENT]=t.DEPTH_COMPONENT32F,l),e[i.vK.HALF_FLOAT]=((c={})[i.I2.RGBA]=t.RGBA16F,c[i.I2.RGB]=t.RGB16F,c[i.I2.RG]=t.RG16F,c[i.I2.RED]=t.R16F,c),e[i.vK.UNSIGNED_SHORT_5_6_5]=((h={})[i.I2.RGB]=t.RGB565,h),e[i.vK.UNSIGNED_SHORT_4_4_4_4]=((f={})[i.I2.RGBA]=t.RGBA4,f),e[i.vK.UNSIGNED_SHORT_5_5_5_1]=((d={})[i.I2.RGBA]=t.RGB5_A1,d),e[i.vK.UNSIGNED_INT_2_10_10_10_REV]=((p={})[i.I2.RGBA]=t.RGB10_A2,p[i.I2.RGBA_INTEGER]=t.RGB10_A2UI,p),e[i.vK.UNSIGNED_INT_10F_11F_11F_REV]=((v={})[i.I2.RGB]=t.R11F_G11F_B10F,v),e[i.vK.UNSIGNED_INT_5_9_9_9_REV]=((m={})[i.I2.RGB]=t.RGB9_E5,m),e[i.vK.UNSIGNED_INT_24_8]=((g={})[i.I2.DEPTH_STENCIL]=t.DEPTH24_STENCIL8,g),e[i.vK.FLOAT_32_UNSIGNED_INT_24_8_REV]=((y={})[i.I2.DEPTH_STENCIL]=t.DEPTH32F_STENCIL8,y),w=e):((_={})[i.vK.UNSIGNED_BYTE]=((b={})[i.I2.RGBA]=t.RGBA,b[i.I2.RGB]=t.RGB,b[i.I2.ALPHA]=t.ALPHA,b[i.I2.LUMINANCE]=t.LUMINANCE,b[i.I2.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,b),_[i.vK.UNSIGNED_SHORT_5_6_5]=((x={})[i.I2.RGB]=t.RGB,x),_[i.vK.UNSIGNED_SHORT_4_4_4_4]=((E={})[i.I2.RGBA]=t.RGBA,E),_[i.vK.UNSIGNED_SHORT_5_5_5_1]=((T={})[i.I2.RGBA]=t.RGBA,T),w=_),w}(t);var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var n=0;n=0;--s){var a=n[s];if(a)a._glTextures[o].samplerType!==i.oT.FLOAT&&this.renderer.texture.unbind(a)}},t.prototype.initTexture=function(t){var e=new ie(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},t.prototype.initTextureType=function(t,e){var n,r;e.internalFormat=null!==(r=null===(n=this.internalFormats[t.type])||void 0===n?void 0:n[t.format])&&void 0!==r?r:t.format,2===this.webGLVersion&&t.type===i.vK.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},t.prototype.updateTexture=function(t){var e=t._glTextures[this.CONTEXT_UID];if(e){var n=this.renderer;if(this.initTextureType(t,e),t.resource&&t.resource.upload(n,t,e))e.samplerType!==i.oT.FLOAT&&(this.hasIntegerTextures=!0);else{var r=t.realWidth,o=t.realHeight,s=n.gl;(e.width!==r||e.height!==o||e.dirtyId<0)&&(e.width=r,e.height=o,s.texImage2D(t.target,0,e.internalFormat,r,o,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}},t.prototype.destroyTexture=function(t,e){var n=this.gl;if((t=t.castToBaseTexture())._glTextures[this.CONTEXT_UID]&&(this.unbind(t),n.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){var r=this.managedTextures.indexOf(t);-1!==r&&(0,o.removeItems)(this.managedTextures,r,1)}},t.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];e&&(t.mipmap!==i.WB.POW2&&2===this.webGLVersion||t.isPowerOfTwo?e.mipmap=t.mipmap>=1:e.mipmap=!1,2===this.webGLVersion||t.isPowerOfTwo?e.wrapMode=t.wrapMode:e.wrapMode=i.Nt.CLAMP,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},t.prototype.setStyle=function(t,e){var n=this.gl;if(e.mipmap&&t.mipmap!==i.WB.ON_MANUAL&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,e.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===i.aH.LINEAR?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var r=this.renderer.context.extensions.anisotropicFiltering;if(r&&t.anisotropicLevel>0&&t.scaleMode===i.aH.LINEAR){var o=Math.min(t.anisotropicLevel,n.getParameter(r.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,r.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode===i.aH.LINEAR?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode===i.aH.LINEAR?n.LINEAR:n.NEAREST)},t.prototype.destroy=function(){this.renderer=null},t}(),se={__proto__:null,FilterSystem:J,BatchSystem:tt,ContextSystem:nt,FramebufferSystem:ot,GeometrySystem:at,MaskSystem:Ut,ScissorSystem:Gt,StencilSystem:Ht,ProjectionSystem:Yt,RenderTextureSystem:Vt,ShaderSystem:ee,StateSystem:ne,TextureGCSystem:re,TextureSystem:oe},ae=new u.y3,ue=function(t){function e(e,n){void 0===e&&(e=i.N3.UNKNOWN);var s=t.call(this)||this;return n=Object.assign({},r.X.RENDER_OPTIONS,n),s.options=n,s.type=e,s.screen=new u.Ae(0,0,n.width,n.height),s.view=n.view||document.createElement("canvas"),s.resolution=n.resolution||r.X.RESOLUTION,s.useContextAlpha=n.useContextAlpha,s.autoDensity=!!n.autoDensity,s.preserveDrawingBuffer=n.preserveDrawingBuffer,s.clearBeforeRender=n.clearBeforeRender,s._backgroundColor=0,s._backgroundColorRgba=[0,0,0,1],s._backgroundColorString="#000000",s.backgroundColor=n.backgroundColor||s._backgroundColor,s.backgroundAlpha=n.backgroundAlpha,void 0!==n.transparent&&((0,o.deprecation)("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),s.useContextAlpha=n.transparent,s.backgroundAlpha=n.transparent?0:1),s._lastObjectRendered=null,s.plugins={},s}return f(e,t),e.prototype.initPlugins=function(t){for(var e in t)this.plugins[e]=new t[e](this)},Object.defineProperty(e.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,e){this.view.width=Math.round(t*this.resolution),this.view.height=Math.round(e*this.resolution);var n=this.view.width/this.resolution,r=this.view.height/this.resolution;this.screen.width=n,this.screen.height=r,this.autoDensity&&(this.view.style.width=n+"px",this.view.style.height=r+"px"),this.emit("resize",n,r)},e.prototype.generateTexture=function(t,e,n,r){void 0===e&&(e={}),"number"==typeof e&&((0,o.deprecation)("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),e={scaleMode:e,resolution:n,region:r});var i=e.region,s=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i=t.data.byteLength)e.bufferSubData(t.type,0,t.data);else{var i=t.static?e.STATIC_DRAW:e.DYNAMIC_DRAW;r.byteLength=t.data.byteLength,e.bufferData(t.type,t.data,i)}},t.prototype.dispose=function(t,e){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var n=t._glBuffers[this.CONTEXT_UID],r=this.gl;t.disposeRunner.remove(this),n&&(e||r.deleteBuffer(n.buffer),delete t._glBuffers[this.CONTEXT_UID])}},t.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),n=0;n=i.G5.HIGH?this.multisample=i.G5.HIGH:t>=i.G5.MEDIUM?this.multisample=i.G5.MEDIUM:t>=i.G5.LOW?this.multisample=i.G5.LOW:this.multisample=i.G5.NONE},e.prototype.addSystem=function(t,e){var n=new t(this);if(this[e])throw new Error('Whoops! The name "'+e+'" is already in use');for(var r in this[e]=n,this.runners)this.runners[r].add(n);return this},e.prototype.render=function(t,e){var n,r,i,s;if(e&&(e instanceof L?((0,o.deprecation)("6.0.0","Renderer#render arguments changed, use options instead."),n=e,r=arguments[2],i=arguments[3],s=arguments[4]):(n=e.renderTexture,r=e.clear,i=e.transform,s=e.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=i,!this.context.isLost){if(n||(this._lastObjectRendered=t),!s){var a=t.enableTempParent();t.updateTransform(),t.disableTempParent(a)}this.renderTexture.bind(n),this.batch.currentRenderer.start(),(void 0!==r?r:this.clearBeforeRender)&&this.renderTexture.clear(),t.render(this),this.batch.currentRenderer.flush(),n&&n.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},e.prototype.generateTexture=function(e,n,r,i){void 0===n&&(n={});var o=t.prototype.generateTexture.call(this,e,n,r,i);return this.framebuffer.blit(),o},e.prototype.resize=function(e,n){t.prototype.resize.call(this,e,n),this.runners.resize.emit(this.screen.height,this.screen.width)},e.prototype.reset=function(){return this.runners.reset.emit(),this},e.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},e.prototype.destroy=function(e){for(var n in this.runners.destroy.emit(),this.runners)this.runners[n].destroy();t.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(e.prototype,"extract",{get:function(){return(0,o.deprecation)("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),e.registerPlugin=function(t,n){e.__plugins=e.__plugins||{},e.__plugins[t]=n},e}(ue);function fe(t){return he.create(t)}var de="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",pe="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",ve=(function(){function t(t){(0,o.deprecation)("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}t.prototype.destroy=function(){this.renderer=null}}(),function(){this.texArray=null,this.blend=0,this.type=i.lg.TRIANGLES,this.start=0,this.size=0,this.data=null}),me=function(){function t(){this.elements=[],this.ids=[],this.count=0}return t.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)},e.prototype.buildTexturesAndDrawCalls=function(){var t=this._bufferedTextures,n=this.MAX_TEXTURES,r=e._textureArrayPool,i=this.renderer.batch,o=this._tempBoundTextures,s=this.renderer.textureGC.count,a=++g._globalBatch,u=0,l=r[0],c=0;i.copyBoundTextures(o,n);for(var h=0;h=n&&(i.boundArray(l,o,a,n),this.buildDrawCalls(l,c,h),c=h,l=r[++u],++a),f._batchEnabled=a,f.touched=s,l.elements[l.count++]=f)}l.count>0&&(i.boundArray(l,o,a,n),this.buildDrawCalls(l,c,this._bufferSize),++u,++a);for(h=0;h0&&(e+="\nelse "),nthis.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?i.Ae.EMPTY:((t=t||new i.Ae(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},t.prototype.addPoint=function(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)},t.prototype.addPointMatrix=function(t,e){var n=t.a,r=t.b,i=t.c,o=t.d,s=t.tx,a=t.ty,u=n*e.x+i*e.y+s,l=r*e.x+o*e.y+a;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,l),this.maxY=Math.max(this.maxY,l)},t.prototype.addQuad=function(t){var e=this.minX,n=this.minY,r=this.maxX,i=this.maxY,o=t[0],s=t[1];e=or?o:r,i=s>i?s:i,e=(o=t[2])r?o:r,i=s>i?s:i,e=(o=t[4])r?o:r,i=s>i?s:i,e=(o=t[6])r?o:r,i=s>i?s:i,this.minX=e,this.minY=n,this.maxX=r,this.maxY=i},t.prototype.addFrame=function(t,e,n,r,i){this.addFrameMatrix(t.worldTransform,e,n,r,i)},t.prototype.addFrameMatrix=function(t,e,n,r,i){var o=t.a,s=t.b,a=t.c,u=t.d,l=t.tx,c=t.ty,h=this.minX,f=this.minY,d=this.maxX,p=this.maxY,v=o*e+a*n+l,m=s*e+u*n+c;h=vd?v:d,p=m>p?m:p,h=(v=o*r+a*n+l)d?v:d,p=m>p?m:p,h=(v=o*e+a*i+l)d?v:d,p=m>p?m:p,h=(v=o*r+a*i+l)d?v:d,p=m>p?m:p,this.minX=h,this.minY=f,this.maxX=d,this.maxY=p},t.prototype.addVertexData=function(t,e,n){for(var r=this.minX,i=this.minY,o=this.maxX,s=this.maxY,a=e;ao?u:o,s=l>s?l:s}this.minX=r,this.minY=i,this.maxX=o,this.maxY=s},t.prototype.addVertices=function(t,e,n,r){this.addVerticesMatrix(t.worldTransform,e,n,r)},t.prototype.addVerticesMatrix=function(t,e,n,r,i,o){void 0===i&&(i=0),void 0===o&&(o=i);for(var s=t.a,a=t.b,u=t.c,l=t.d,c=t.tx,h=t.ty,f=this.minX,d=this.minY,p=this.maxX,v=this.maxY,m=n;mr?t.maxX:r,this.maxY=t.maxY>i?t.maxY:i},t.prototype.addBoundsMask=function(t,e){var n=t.minX>e.minX?t.minX:e.minX,r=t.minY>e.minY?t.minY:e.minY,i=t.maxXu?i:u,this.maxY=o>l?o:l}},t.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},t.prototype.addBoundsArea=function(t,e){var n=t.minX>e.x?t.minX:e.x,r=t.minY>e.y?t.minY:e.y,i=t.maxXu?i:u,this.maxY=o>l?o:l}},t.prototype.pad=function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},t.prototype.addFramePad=function(t,e,n,r,i,o){t-=i,e-=o,n+=i,r+=o,this.minX=this.minXn?this.maxX:n,this.minY=this.minYr?this.maxY:r},t}(),a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},a(t,e)};function u(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var l,c,h,f,d,p,v,m,g,y,_,b,x,E,T,w,S,O,A,R=function(t){function e(){var e=t.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new i.wx,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new s,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return u(e,t),e.mixin=function(t){for(var n=Object.keys(t),r=0;r1)for(var r=0;rthis.children.length)throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit("childAdded",t,this,e),t},e.prototype.swapChildren=function(t,e){if(t!==e){var n=this.getChildIndex(t),r=this.getChildIndex(e);this.children[n]=e,this.children[r]=t,this.onChildrenChange(n=this.children.length)throw new Error("The index "+e+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(t);(0,o.removeItems)(this.children,n,1),this.children.splice(e,0,t),this.onChildrenChange(e)},e.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},e.prototype.removeChild=function(){for(var t=arguments,e=[],n=0;n1)for(var r=0;r0&&i<=e){n=this.children.splice(r,i);for(var o=0;o1&&this.children.sort(M),this.sortDirty=!1},e.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,e=this.children.length;t0&&n.height>0){var r,i;if(this.cullArea?(r=this.cullArea,i=this.worldTransform):this._render!==e.prototype._render&&(r=this.getBounds(!0)),r&&n.intersects(r,i))this._render(t);else if(this.cullArea)return;for(var o=0,s=this.children.length;o=o.maxStyles?-1:(s[l]=t,a[l]=e,u[2*l]=n,u[2*l+1]=r,this.count++,l)}}class d{constructor(){this.texArray=new s.Ie,this.styleArray=new f,this.shader=null,this.blend=a.T$.NORMAL,this.start=0,this.size=0,this.TICK=0,this.settings=null,this.data=null}clear(){this.texArray.clear(),this.styleArray.clear(),this.settings=null,this.data=null,this.shader=null}begin(t,e){this.TICK=++s.VL._globalBatch,this.settings=t,this.shader=e,this.start=0,this.size=0,this.data=null,e&&e.settings&&(this.settings=e.settings)}check(t){return 0===this.size?(this.shader=t,!0):this.shader===t}add(t,e,n,r,i){const{texArray:s,TICK:a,styleArray:u,settings:l}=this,{baseTexture:c}=t;if(c._batchEnabled!==a&&s.count===l.maxTextures)return-1;const h=c._batchEnabled!==a?s.count:c._batchLocation,f=u.add(h,e||o.y3.IDENTITY,n,r,i,l);return f>=0&&c._batchEnabled!==a&&(c._batchEnabled=a,c._batchLocation=s.count,s.elements[s.count++]=c),f}}class p{constructor(){this.reset()}begin(t,e,n){this.reset(),this.style=t,this.start=e,this.attribStart=n,this.jointEnd=0}end(t,e){this.attribSize=e-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0,this.styleId=-1,this.rgba=0,this.jointEnd=0}}class v{constructor(){this.reset()}toJSON(){return this.copyTo({})}clone(){return this.copyTo(new v)}copyTo(t){return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.shader=this.shader,t.visible=this.visible,t.smooth=this.smooth,t.matrixTex=null,t}packLineScale(){return 0}reset(){this.color=16777215,this.alpha=1,this.texture=s.xE.WHITE,this.matrix=null,this.shader=null,this.visible=!1,this.smooth=!1,this.matrixTex=null}destroy(){this.texture=null,this.matrix=null,this.matrixTex=null}getTextureMatrix(){const t=this.texture;return this.matrix?t.frame.width===t.baseTexture.width&&t.frame.height===t.baseTexture.height?this.matrix:(this.matrixTex?this.matrixTex.copyFrom(this.matrix):this.matrixTex=this.matrix.clone(),this.matrixTex.translate(Number(t.frame.x),Number(t.frame.y)),this.matrixTex):null}}!function(t){t.NONE="none";t.NORMAL="normal";t.HORIZONTAL="horizontal";t.VERTICAL="vertical"}(r||(r={}));class m extends v{clone(){return this.copyTo(new m)}copyTo(t){return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.shader=this.shader,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t.scaleMode=this.scaleMode,t}packLineScale(){switch(this.scaleMode){case r.NORMAL:return 1;case r.HORIZONTAL:return 2;case r.VERTICAL:return 3;default:return 0}}reset(){super.reset(),this.smooth=!0,this.color=0,this.width=0,this.alignment=.5,this.cap=u.$o.BUTT,this.join=u.S.MITER,this.miterLimit=10,this.scaleMode=r.NORMAL}}class g{constructor(){g.prototype.__init.call(this),g.prototype.__init2.call(this),g.prototype.__init3.call(this),g.prototype.__init4.call(this),g.prototype.__init5.call(this)}__init(){this.verts=[]}__init2(){this.joints=[]}__init3(){this.vertexSize=0}__init4(){this.indexSize=0}__init5(){this.closePointEps=1e-4}clear(){this.verts.length=0,this.joints.length=0,this.vertexSize=0,this.indexSize=0}destroy(){this.verts.length=0,this.joints.length=0}}!function(t){t[t.NONE=0]="NONE";t[t.FILL=1]="FILL";t[t.JOINT_BEVEL=4]="JOINT_BEVEL";t[t.JOINT_MITER=8]="JOINT_MITER";t[t.JOINT_ROUND=12]="JOINT_ROUND";t[t.JOINT_CAP_BUTT=16]="JOINT_CAP_BUTT";t[t.JOINT_CAP_SQUARE=18]="JOINT_CAP_SQUARE";t[t.JOINT_CAP_ROUND=20]="JOINT_CAP_ROUND";t[t.FILL_EXPAND=24]="FILL_EXPAND";t[t.CAP_BUTT=32]="CAP_BUTT";t[t.CAP_SQUARE=64]="CAP_SQUARE";t[t.CAP_ROUND=96]="CAP_ROUND";t[t.CAP_BUTT2=128]="CAP_BUTT2"}(i||(i={}));class y{constructor(){y.prototype.__init.call(this),y.prototype.__init2.call(this),y.prototype.__init3.call(this)}static __initStatic(){this.vertsByJoint=[]}__init(){this.strideFloats=12}updateBufferSize(t,e,n,r){const{joints:o}=r;let s=!1,a=0,u=0;for(let l=t;l=i.FILL_EXPAND){a+=3,u+=3;continue}const n=y.vertsByJoint[e]+y.vertsByJoint[t];n>=4&&(a+=n,u+=6+3*Math.max(n-6,0))}s&&(u+=n),r.vertexSize+=a,r.indexSize+=u}__init2(){this.bufferPos=0}__init3(){this.indexPos=0}beginPack(t,e,n,r,i=0,o=0){this.buildData=t,this.bufFloat=e,this.bufUint=n,this.indices=r,this.bufferPos=i,this.indexPos=o}endPack(){this.buildData=null,this.bufFloat=null,this.bufUint=null,this.indices=null}packInterleavedGeometry(t,e,n,r,o){const{bufFloat:s,bufUint:a,indices:u,buildData:l,strideFloats:c}=this,{joints:h,verts:f}=l;let d,p,v,m,g,_,b,x,E=this.bufferPos,T=this.indexPos,w=this.bufferPos/this.strideFloats,S=!1,O=0;for(let A=t;A=i.FILL_EXPAND){g=f[2*A],_=f[2*A+1],d=f[2*A+2],p=f[2*A+3],v=f[2*A+4],m=f[2*A+5];const e=A+3;for(let n=0;n<3;n++)s[E]=g,s[E+1]=_,s[E+2]=d,s[E+3]=p,s[E+4]=v,s[E+5]=m,s[E+6]=f[2*(e+n)],s[E+7]=f[2*(e+n)+1],s[E+8]=O,s[E+9]=16*t+n,s[E+10]=r,a[E+11]=o,E+=c;u[T]=w,u[T+1]=w+1,u[T+2]=w+2,T+=3,w+=3;continue}const l=y.vertsByJoint[n]+y.vertsByJoint[e];if(0===l)continue;d=f[2*A],p=f[2*A+1],v=f[2*A+2],m=f[2*A+3],g=f[2*A-2],_=f[2*A-1];const R=Math.sqrt((v-d)*(v-d)+(m-p)*(m-p));0===y.vertsByJoint[n]&&(O-=R),(-3&n)!==i.JOINT_CAP_BUTT?(b=f[2*A+4],x=f[2*A+5]):(b=d,x=p);for(let i=0;i=0&&l>=0&&s>=0&&a>=0))return void(n.length=0);const c=Math.ceil(2.3*Math.sqrt(u+l)),h=8*c+(s?4:0)+(a?4:0);if(n.length=h,0===h)return;if(0===c)return n.length=8,n[0]=n[6]=r+s,n[1]=n[3]=i+a,n[2]=n[4]=r-s,void(n[5]=n[7]=i-a);let f=0,d=4*c+(s?2:0)+2,p=d,v=h;{const t=s+u,e=a,o=r+t,l=r-t,c=i+e;if(n[f++]=o,n[f++]=c,n[--d]=c,n[--d]=l,a){const t=i-e;n[p++]=l,n[p++]=t,n[--v]=t,n[--v]=o}}for(let o=1;o0?(n.push(c),n.push(d)):(b=c,x=d),n.push(h),n.push(f),n.push(v),n.push(m),n.push(t),n.push(e),n.push(0),n.push(0),n.push(c),n.push(d),r.push(i.FILL_EXPAND+2),r.push(i.NONE),r.push(i.NONE),r.push(i.NONE),r.push(i.NONE),r.push(i.NONE),v=t,m=e,g=a,y=u}n.push(b),n.push(x)}line(t,e){const{verts:n,joints:r}=e,{points:o}=t,s=8===o.length?t.goodJointType():i.JOINT_MITER+3,a=o.length;if(0!==a){n.push(o[a-2],o[a-1]),r.push(i.NONE);for(let t=0;t0||e&&r<=0){const e=n/2;for(let r=e+e%2;r=o?n||(p=i.NONE):d+4>=o&&(n||(l===i.CAP_ROUND&&(p=i.JOINT_CAP_ROUND),l===i.CAP_BUTT&&(p=i.JOINT_CAP_BUTT),l===i.CAP_SQUARE&&(p=i.JOINT_CAP_SQUARE))),p+=f,f=0,s.push(t,e),a.push(p),c=t,h=e}n?(s.push(r[0],r[1]),a.push(i.NONE),s.push(r[2],r[3]),a.push(i.NONE)):(s.push(r[o-4],r[o-3]),a.push(i.NONE))}fill(t,e){let n=t.points;const r=t.holes,o=e.closePointEps,{verts:s,joints:a}=e;if(n.length<6)return;const u=[];let c=n.length;T(n,!1);for(let i=0;i0&&(t=i>1),h[2*f]=t-1,h[2*(t-1)+1]=f;for(let e=f;e+10&&(l=2);for(let c=0;c<3;c++){const t=d[i+c*l%3];s.push(n[2*t],n[2*t+1])}for(let n=0;n<3;n++){const t=d[i+n*l%3];s.push(h[2*t],h[2*t+1])}}}}class S{constructor(){S.prototype.__init.call(this)}__init(){this._polyBuilder=new w}path(t,e){const n=t.shape,r=n.x,i=n.y,o=n.width,s=n.height,a=t.points;a.length=0,a.push(r,i,r+o,i,r+o,i+s,r,i+s)}line(t,e){const{verts:n,joints:r}=e,{points:o}=t,s=t.goodJointType(),a=o.length;n.push(o[a-2],o[a-1]),r.push(i.NONE);for(let i=0;i=4&&Math.abs(r[0]-r[r.length-2])0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(t,e=null,n=null,r=null){const i=new b(t,e,n,r);return this.graphicsData.push(i),this.dirty++,this}drawHole(t,e=null){if(!this.graphicsData.length)return null;const n=new b(t,null,null,e),r=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=r.lineStyle,r.holes.push(n),this.dirty++,this}destroy(){super.destroy();for(let t=0;t=.99&&n.lineStyle.width*Math.min(n.lineStyle.alignment,1-n.lineStyle.alignment)>=.495),n.fillStart=e.joints.length,u.length?I[o.HS.POLY].fill(n,e):l.fill(n,e),n.fillLen=e.joints.length-n.fillStart),a.visible)){n.strokeStart=e.joints.length,l.line(n,e);for(let t=0;t0&&(i=this.batches[this.batches.length-1],o=i.style);for(let s=this.shapeBatchIndex;s65535&&this.pack32index?a.data=new Uint32Array(e):a.data=new Uint16Array(e)),r.beginPack(i,this._bufferFloats,this._bufferUint,a.data);let l=0;for(let c=0;c>16)+(65280&u)+((255&u)<<16);i.rgba=(0,l.premultiplyTint)(h,c),i.styleId=s}}processHoles(t){for(let e=0;e0&&(e+="\nelse "),n0&&t.alpha>0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:e},t)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const t=this.currentPath.points,e=this.currentPath.points.length;e>2&&(this.drawShape(this.currentPath),this.currentPath=new o.mg,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[e-2],t[e-1]))}else this.currentPath=new o.mg,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(t,e){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=e,this}lineTo(t,e){this.currentPath||this.moveTo(0,0);const n=this.currentPath.points,r=n[n.length-2],i=n[n.length-1];return r===t&&i===e||n.push(t,e),this}_initCurve(t=0,e=0){this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[t,e]):this.moveTo(t,e)}quadraticCurveTo(t,e,n,r){this._initCurve();const i=this.currentPath.points;return 0===i.length&&this.moveTo(0,0),H.curveTo(t,e,n,r,i),this}bezierCurveTo(t,e,n,r,i,o){return this._initCurve(),G.curveTo(t,e,n,r,i,o,this.currentPath.points),this}arcTo(t,e,n,r,i){this._initCurve(t,e);const o=this.currentPath.points,s=Y.curveTo(t,e,n,r,i,o);if(s){const{cx:t,cy:e,radius:n,startAngle:r,endAngle:i,anticlockwise:o}=s;this.arc(t,e,n,r,i,o)}return this}arc(t,e,n,r,i,s=!1){if(r===i)return this;!s&&i<=r?i+=o._b:s&&r<=i&&(r+=o._b);if(0===i-r)return this;const a=t+Math.cos(r)*n,u=e+Math.sin(r)*n,l=this._geometry.closePointEps;let c=this.currentPath?this.currentPath.points:null;if(c){const t=Math.abs(c[c.length-2]-a),e=Math.abs(c[c.length-1]-u);t0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:e},t)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(t,e,n,r){return this.drawShape(new o.Ae(t,e,n,r))}drawRoundedRect(t,e,n,r,i){return this.drawShape(new o.c9(t,e,n,r,i))}drawCircle(t,e,n){return this.drawShape(new o.Cd(t,e,n))}drawEllipse(t,e,n,r){return this.drawShape(new o.Pj(t,e,n,r))}drawPolygon(...t){let e,n=!0;const r=t[0];r.points?(n=r.closeStroke,e=r.points):e=Array.isArray(t[0])?t[0]:t;const i=new o.mg(e);return i.closeStroke=n,this.drawShape(i),this}drawShape(t){return this._holeMode?this._geometry.drawHole(t,this._matrix):this._geometry.drawShape(t,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 t=this._geometry.graphicsData;return!(1!==t.length||t[0].shape.type!==o.HS.RECT||t[0].matrix||t[0].holes.length||t[0].lineStyle.visible&&t[0].lineStyle.width)}_renderCanvas(t){j.prototype._renderCanvas.call(this,t)}_render(t){this.finishPoly();const e=this._geometry,n=t.context.supports.uint32Indices;e.checkInstancing(t.geometry.hasInstance,n),e.updateBatches(this.shaderSettings),e.batchable?(this.batchDirty!==e.batchDirty&&this._populateBatches(),this._renderBatched(t)):(t.batch.flush(),this._renderDirect(t))}_populateBatches(){const t=this._geometry,e=this.blendMode,n=t.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=t.batchDirty,this.batches.length=n,this.vertexData=new Float32Array(t.points);for(let r=0;r>16&255)/255*o,s.tint[1]=(i>>8&255)/255*o,s.tint[2]=(255&i)/255*o,s.tint[3]=o,s.resolution=t.renderTexture.current?t.renderTexture.current.resolution:t.resolution;const l=t.projection.transform;if(l){const t=Math.sqrt(l.a*l.a+l.b*l.b);s.resolution*=t}s.expand=(t.options.antialias?2:1)/s.resolution,t.shader.bind(n),t.geometry.bind(r,n),t.state.set(this.state),n=null;for(let c=0,h=u.length;c>16)+(65280&i)+((255&i)<<16)}}}calculateVertices(){const t=this.transform._worldID;if(this._transformID===t)return;this._transformID=t;const e=this.transform.worldTransform,n=e.a,r=e.b,i=e.c,o=e.d,s=e.tx,a=e.ty,u=this._geometry.points,l=this.vertexData;let c=0;for(let h=0;h 0.0) {\n float g = gap * vTravel.y;\n if (g > 0.0) {\n float t = mod(vTravel.x, d + g);\n alpha *= mix(\n min(0.5 * d + 0.5 - abs(t - 0.5 * d), 1.0),\n max(abs(t - 0.5 * g - d) - 0.5 * g + 0.5, 0.0),\n step(d, t)\n );\n }\n } else {\n alpha = 0.0;\n }\n\n vec4 texColor;\n float textureId = floor(vTextureId+0.5);\n %FOR_LOOP%\n\n gl_FragColor = vColor * texColor * alpha;\n}\n",t||{dash:8,gap:5})}}},83322:function(t,e,n){"use strict";n.d(e,{$o:function(){return i},S:function(){return r},TC:function(){return B},graphicsUtils:function(){return j}});var r,i,o=n(67586),s=n(45637),a=n(52867),u=n(64497),l=n(93830);!function(t){t.MITER="miter",t.BEVEL="bevel",t.ROUND="round"}(r||(r={})),function(t){t.BUTT="butt",t.ROUND="round",t.SQUARE="square"}(i||(i={}));var c={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){if(void 0===e&&(e=20),!this.adaptive||!t||isNaN(t))return e;var n=Math.ceil(t/this.maxLength);return nthis.maxSegments&&(n=this.maxSegments),n}},h=function(){function t(){this.color=16777215,this.alpha=1,this.texture=o.xE.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var e=new t;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=o.xE.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}(),f=function(t,e){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},f(t,e)};function d(t,e){function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function p(t,e){var n,r;void 0===e&&(e=!1);var i=t.length;if(!(i<6)){for(var o=0,s=0,a=t[i-2],u=t[i-1];s0||e&&o<=0){var h=i/2;for(s=h+h%2;s=6){p(n,!1);for(var s=[],u=0;u=0&&a>=0&&r>=0&&i>=0){var p=Math.ceil(2.3*Math.sqrt(o+a)),v=8*p+(r?4:0)+(i?4:0);if(u.length=v,0!==v){if(0===p)return u.length=8,u[0]=u[6]=e+r,u[1]=u[3]=n+i,u[2]=u[4]=e-r,void(u[5]=u[7]=n-i);var m=0,g=4*p+(r?2:0)+2,y=g,_=v,b=e+(O=r+o),x=e-O,E=n+(A=i);if(u[m++]=b,u[m++]=E,u[--g]=E,u[--g]=x,i){var T=n-A;u[y++]=x,u[y++]=T,u[--_]=T,u[--_]=b}for(var w=1;wh&&(h+=2*Math.PI);var f=c,d=h-c,p=Math.abs(d),v=Math.sqrt(u*u+l*l),m=1+(15*p*Math.sqrt(v)/Math.PI>>0),g=d/m;if(f+=g,a){s.push(t,e),s.push(n,r);for(var y=1,_=f;yw?(z?(m.push(Q,J),m.push(A+C*U,R+P*U),m.push(Q,J),m.push(A+N*U,R+D*U)):(m.push(A-C*F,R-P*F),m.push(Z,tt),m.push(A-N*F,R-D*F),m.push(Z,tt)),y+=2):u.join===r.ROUND?z?(m.push(Q,J),m.push(A+C*U,R+P*U),y+=E(A,R,A+C*U,R+P*U,A+N*U,R+D*U,m,!0)+4,m.push(Q,J),m.push(A+N*U,R+D*U)):(m.push(A-C*F,R-P*F),m.push(Z,tt),y+=E(A,R,A-C*F,R-P*F,A-N*F,R-D*F,m,!1)+4,m.push(A-N*F,R-D*F),m.push(Z,tt)):(m.push(Q,J),m.push(Z,tt)):(m.push(A-C*F,R-P*F),m.push(A+C*U,R+P*U),u.join===r.ROUND?y+=z?E(A,R,A+C*U,R+P*U,A+N*U,R+D*U,m,!0)+2:E(A,R,A-C*F,R-P*F,A-N*F,R-D*F,m,!1)+2:u.join===r.MITER&&K/T<=w&&(z?(m.push(Z,tt),m.push(Z,tt)):(m.push(Q,J),m.push(Q,J)),y+=2),m.push(A-N*F,R-D*F),m.push(A+N*U,R+D*U),y+=2)}}S=o[2*(g-2)],O=o[2*(g-2)+1],A=o[2*(g-1)],C=-(O-(R=o[2*(g-1)+1])),P=S-A,C/=L=Math.sqrt(C*C+P*P),P/=L,C*=b,P*=b,m.push(A-C*F,R-P*F),m.push(A+C*U,R+P*U),f||(u.cap===i.ROUND?y+=E(A-C*(F-U)*.5,R-P*(F-U)*.5,A-C*F,R-P*F,A+C*U,R+P*U,m,!1)+2:u.cap===i.SQUARE&&(y+=x(A,R,C,P,F,U,!1,m)));var nt=e.indices,rt=c.epsilon*c.epsilon;for(B=_;Bc*a}},t.arc=function(t,e,n,r,i,o,a,u,l){for(var h=a-o,f=c._segmentsCount(Math.abs(h)*i,40*Math.ceil(Math.abs(h)/s._b)),d=h/(2*f),p=2*d,v=Math.cos(d),m=Math.sin(d),g=f-1,y=g%1/g,_=0;_<=g;++_){var b=d+o+p*(_+y*_),x=Math.cos(b),E=-Math.sin(b);l.push((v*x+m*E)*i+n,(v*-E+m*x)*i+r)}},t}(),O=function(){function t(){}return t.curveLength=function(t,e,n,r,i,o,s,a){for(var u=0,l=0,c=0,h=0,f=0,d=0,p=0,v=0,m=0,g=0,y=0,_=t,b=e,x=1;x<=10;++x)g=_-(v=(p=(d=(f=1-(l=x/10))*f)*f)*t+3*d*l*n+3*f*(c=l*l)*i+(h=c*l)*s),y=b-(m=p*e+3*d*l*r+3*f*c*o+h*a),_=v,b=m,u+=Math.sqrt(g*g+y*y);return u},t.curveTo=function(e,n,r,i,o,s,a){var u=a[a.length-2],l=a[a.length-1];a.length-=2;var h=c._segmentsCount(t.curveLength(u,l,e,n,r,i,o,s)),f=0,d=0,p=0,v=0,m=0;a.push(u,l);for(var g=1,y=0;g<=h;++g)p=(d=(f=1-(y=g/h))*f)*f,m=(v=y*y)*y,a.push(p*u+3*d*y*e+3*f*v*r+m*o,p*l+3*d*y*n+3*f*v*i+m*s)},t}(),A=function(){function t(){}return t.curveLength=function(t,e,n,r,i,o){var s=t-2*n+i,a=e-2*r+o,u=2*n-2*t,l=2*r-2*e,c=4*(s*s+a*a),h=4*(s*u+a*l),f=u*u+l*l,d=2*Math.sqrt(c+h+f),p=Math.sqrt(c),v=2*c*p,m=2*Math.sqrt(f),g=h/p;return(v*d+p*h*(d-m)+(4*f*c-h*h)*Math.log((2*p+g+d)/(g+m)))/(4*v)},t.curveTo=function(e,n,r,i,o){for(var s=o[o.length-2],a=o[o.length-1],u=c._segmentsCount(t.curveLength(s,a,e,n,r,i)),l=0,h=0,f=1;f<=u;++f){var d=f/u;l=s+(e-s)*d,h=a+(n-a)*d,o.push(l+(e+(r-e)*d-l)*d,h+(n+(i-n)*d-h)*d)}},t}(),R=function(){function t(){this.reset()}return t.prototype.begin=function(t,e,n){this.reset(),this.style=t,this.start=e,this.attribStart=n},t.prototype.end=function(t,e){this.attribSize=e-this.attribStart,this.size=t-this.start},t.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},t}(),I=((w={})[s.HS.POLY]=v,w[s.HS.CIRC]=m,w[s.HS.ELIP]=m,w[s.HS.RECT]=g,w[s.HS.RREC]=b,w),M=[],C=[],P=function(){function t(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=e,this.matrix=r,this.type=t.type}return t.prototype.clone=function(){return new t(this.shape,this.fillStyle,this.lineStyle,this.matrix)},t.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},t}(),N=new s.E9,D=new l.YZ,L=function(t){function e(){var e=t.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new l.YZ,e.boundsDirty=-1,e}return d(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),e.prototype.invalidate=function(){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(var t=0;t0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},e.prototype.drawShape=function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null);var i=new P(t,e,n,r);return this.graphicsData.push(i),this.dirty++,this},e.prototype.drawHole=function(t,e){if(void 0===e&&(e=null),!this.graphicsData.length)return null;var n=new P(t,null,null,e),r=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=r.lineStyle,r.holes.push(n),this.dirty++,this},e.prototype.destroy=function(){t.prototype.destroy.call(this);for(var e=0;e0&&(i=(r=this.batches[this.batches.length-1]).style);for(var o=this.shapeIndex;o65535&&t;this.indicesUint16=y?new Uint32Array(this.indices):new Uint16Array(this.indices)}this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}else this.batchable=!0}}else this.batchable=!0},e.prototype._compareStyles=function(t,e){return!(!t||!e)&&(t.texture.baseTexture===e.texture.baseTexture&&(t.color+t.alpha===e.color+e.alpha&&!!t.native==!!e.native))},e.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var t=0,e=this.graphicsData.length;t131070)return!1;for(var t=this.batches,n=0;n0&&((i=C.pop())||((i=new o.a$).texArray=new o.Ie),this.drawCalls.push(i)),i.start=f,i.size=0,i.texArray.count=0,i.type=h),v.touched=1,v._batchEnabled=t,v._batchLocation=s,v.wrapMode=u.Nt.REPEAT,i.texArray.elements[i.texArray.count++]=v,s++)),i.size+=d.size,f+=d.size,l=v._batchLocation,this.addColors(n,p.color,p.alpha,d.attribSize,d.attribStart),this.addTextureIds(r,l,d.attribSize,d.attribStart)}o.VL._globalBatch=t,this.packAttributes()},e.prototype.packAttributes=function(){for(var t=this.points,e=this.uvs,n=this.colors,r=this.textureIds,i=new ArrayBuffer(3*t.length*4),o=new Float32Array(i),s=new Uint32Array(i),a=0,u=0;u>16)+(65280&e)+((255&e)<<16),s=(0,a.premultiplyTint)(o,n);t.length=Math.max(t.length,i+r);for(var u=0;u0&&t.alpha>0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:e},t)):this._lineStyle.reset(),this},e.prototype.startPoly=function(){if(this.currentPath){var t=this.currentPath.points,e=this.currentPath.points.length;e>2&&(this.drawShape(this.currentPath),this.currentPath=new s.mg,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[e-2],t[e-1]))}else this.currentPath=new s.mg,this.currentPath.closeStroke=!1},e.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},e.prototype.moveTo=function(t,e){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=e,this},e.prototype.lineTo=function(t,e){this.currentPath||this.moveTo(0,0);var n=this.currentPath.points,r=n[n.length-2],i=n[n.length-1];return r===t&&i===e||n.push(t,e),this},e.prototype._initCurve=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[t,e]):this.moveTo(t,e)},e.prototype.quadraticCurveTo=function(t,e,n,r){this._initCurve();var i=this.currentPath.points;return 0===i.length&&this.moveTo(0,0),A.curveTo(t,e,n,r,i),this},e.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._initCurve(),O.curveTo(t,e,n,r,i,o,this.currentPath.points),this},e.prototype.arcTo=function(t,e,n,r,i){this._initCurve(t,e);var o=this.currentPath.points,s=S.curveTo(t,e,n,r,i,o);if(s){var a=s.cx,u=s.cy,l=s.radius,c=s.startAngle,h=s.endAngle,f=s.anticlockwise;this.arc(a,u,l,c,h,f)}return this},e.prototype.arc=function(t,e,n,r,i,o){if(void 0===o&&(o=!1),r===i)return this;if(!o&&i<=r?i+=s._b:o&&r<=i&&(r+=s._b),0===i-r)return this;var a=t+Math.cos(r)*n,u=e+Math.sin(r)*n,l=this._geometry.closePointEps,c=this.currentPath?this.currentPath.points:null;if(c){var h=Math.abs(c[c.length-2]-a),f=Math.abs(c[c.length-1]-u);h0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:e},t)):this._fillStyle.reset(),this},e.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},e.prototype.drawRect=function(t,e,n,r){return this.drawShape(new s.Ae(t,e,n,r))},e.prototype.drawRoundedRect=function(t,e,n,r,i){return this.drawShape(new s.c9(t,e,n,r,i))},e.prototype.drawCircle=function(t,e,n){return this.drawShape(new s.Cd(t,e,n))},e.prototype.drawEllipse=function(t,e,n,r){return this.drawShape(new s.Pj(t,e,n,r))},e.prototype.drawPolygon=function(){for(var t,e=arguments,n=[],r=0;r>16&255)/255*i,o.tint[1]=(r>>8&255)/255*i,o.tint[2]=(255&r)/255*i,o.tint[3]=i,t.shader.bind(e),t.geometry.bind(n,e),t.state.set(this.state);for(var a=0,u=s.length;a>16)+(65280&i)+((255&i)<<16)}}},e.prototype.calculateVertices=function(){var t=this.transform._worldID;if(this._transformID!==t){this._transformID=t;for(var e=this.transform.worldTransform,n=e.a,r=e.b,i=e.c,o=e.d,s=e.tx,a=e.ty,u=this._geometry.points,l=this.vertexData,c=0,h=0;h=this.x&&t=this.y&&et.right?t.right:this.right)<=n)return!1;var r=this.yt.bottom?t.bottom:this.bottom)>r}var i=this.left,o=this.right,s=this.top,a=this.bottom;if(o<=i||a<=s)return!1;var l=u[0].set(t.left,t.top),c=u[1].set(t.left,t.bottom),h=u[2].set(t.right,t.top),f=u[3].set(t.right,t.bottom);if(h.x<=l.x||c.y<=l.y)return!1;var d=Math.sign(e.a*e.d-e.b*e.c);if(0===d)return!1;if(e.apply(l,l),e.apply(c,c),e.apply(h,h),e.apply(f,f),Math.max(l.x,c.x,h.x,f.x)<=i||Math.min(l.x,c.x,h.x,f.x)>=o||Math.max(l.y,c.y,h.y,f.y)<=s||Math.min(l.y,c.y,h.y,f.y)>=a)return!1;var p=d*(c.y-l.y),v=d*(l.x-c.x),m=p*i+v*s,g=p*o+v*s,y=p*i+v*a,_=p*o+v*a;if(Math.max(m,g,y,_)<=p*l.x+v*l.y||Math.min(m,g,y,_)>=p*f.x+v*f.y)return!1;var b=d*(l.y-h.y),x=d*(h.x-l.x),E=b*i+x*s,T=b*o+x*s,w=b*i+x*a,S=b*o+x*a;return!(Math.max(E,T,w,S)<=b*l.x+x*l.y||Math.min(E,T,w,S)>=b*f.x+x*f.y)},t.prototype.pad=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this},t.prototype.fit=function(t){var e=Math.max(this.x,t.x),n=Math.min(this.x+this.width,t.x+t.width),r=Math.max(this.y,t.y),i=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(n-e,0),this.y=r,this.height=Math.max(i-r,0),this},t.prototype.ceil=function(t,e){void 0===t&&(t=1),void 0===e&&(e=.001);var n=Math.ceil((this.x+this.width-e)*t)/t,r=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=n-this.x,this.height=r-this.y,this},t.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),n=Math.max(this.x+this.width,t.x+t.width),r=Math.min(this.y,t.y),i=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=n-e,this.y=r,this.height=i-r,this},t.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),c=function(){function t(t,e,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),this.x=t,this.y=e,this.radius=n,this.type=r.CIRC}return t.prototype.clone=function(){return new t(this.x,this.y,this.radius)},t.prototype.contains=function(t,e){if(this.radius<=0)return!1;var n=this.radius*this.radius,r=this.x-t,i=this.y-e;return(r*=r)+(i*=i)<=n},t.prototype.getBounds=function(){return new l(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},t.prototype.toString=function(){return"[@pixi/math:Circle x="+this.x+" y="+this.y+" radius="+this.radius+"]"},t}(),h=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=t,this.y=e,this.width=n,this.height=i,this.type=r.ELIP}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;var n=(t-this.x)/this.width,r=(e-this.y)/this.height;return(n*=n)+(r*=r)<=1},t.prototype.getBounds=function(){return new l(this.x-this.width,this.y-this.height,this.width,this.height)},t.prototype.toString=function(){return"[@pixi/math:Ellipse x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},t}(),f=function(){function t(){for(var t=arguments,e=[],n=0;ne!=l>e&&t<(e-a)/(l-a)*(u-s)+s&&(n=!n)}return n},t.prototype.toString=function(){return"[@pixi/math:PolygoncloseStroke="+this.closeStroke+"points="+this.points.reduce((function(t,e){return t+", "+e}),"")+"]"},t}(),d=function(){function t(t,e,n,i,o){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=20),this.x=t,this.y=e,this.width=n,this.height=i,this.radius=o,this.type=r.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){var n=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+n&&e<=this.y+this.height-n||t>=this.x+n&&t<=this.x+this.width-n)return!0;var r=t-(this.x+n),i=e-(this.y+n),o=n*n;if(r*r+i*i<=o)return!0;if((r=t-(this.x+this.width-n))*r+i*i<=o)return!0;if(r*r+(i=e-(this.y+this.height-n))*i<=o)return!0;if((r=t-(this.x+n))*r+i*i<=o)return!0}return!1},t.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+"width="+this.width+" height="+this.height+" radius="+this.radius+"]"},t}(),p=function(){function t(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),this._x=n,this._y=r,this.cb=t,this.scope=e}return t.prototype.clone=function(e,n){return void 0===e&&(e=this.cb),void 0===n&&(n=this.scope),new t(e,n,this._x,this._y)},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._x===t&&this._y===e||(this._x=t,this._y=e,this.cb.call(this.scope)),this},t.prototype.copyFrom=function(t){return this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},t.prototype.copyTo=function(t){return t.set(this._x,this._y),t},t.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},t.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),t}(),v=function(){function t(t,e,n,r,i,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=0),this.array=null,this.a=t,this.b=e,this.c=n,this.d=r,this.tx=i,this.ty=o}return t.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},t.prototype.set=function(t,e,n,r,i,o){return this.a=t,this.b=e,this.c=n,this.d=r,this.tx=i,this.ty=o,this},t.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var n=e||this.array;return t?(n[0]=this.a,n[1]=this.b,n[2]=0,n[3]=this.c,n[4]=this.d,n[5]=0,n[6]=this.tx,n[7]=this.ty,n[8]=1):(n[0]=this.a,n[1]=this.c,n[2]=this.tx,n[3]=this.b,n[4]=this.d,n[5]=this.ty,n[6]=0,n[7]=0,n[8]=1),n},t.prototype.apply=function(t,e){e=e||new a;var n=t.x,r=t.y;return e.x=this.a*n+this.c*r+this.tx,e.y=this.b*n+this.d*r+this.ty,e},t.prototype.applyInverse=function(t,e){e=e||new a;var n=1/(this.a*this.d+this.c*-this.b),r=t.x,i=t.y;return e.x=this.d*n*r+-this.c*n*i+(this.ty*this.c-this.tx*this.d)*n,e.y=this.a*n*i+-this.b*n*r+(-this.ty*this.a+this.tx*this.b)*n,e},t.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},t.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),n=Math.sin(t),r=this.a,i=this.c,o=this.tx;return this.a=r*e-this.b*n,this.b=r*n+this.b*e,this.c=i*e-this.d*n,this.d=i*n+this.d*e,this.tx=o*e-this.ty*n,this.ty=o*n+this.ty*e,this},t.prototype.append=function(t){var e=this.a,n=this.b,r=this.c,i=this.d;return this.a=t.a*e+t.b*r,this.b=t.a*n+t.b*i,this.c=t.c*e+t.d*r,this.d=t.c*n+t.d*i,this.tx=t.tx*e+t.ty*r+this.tx,this.ty=t.tx*n+t.ty*i+this.ty,this},t.prototype.setTransform=function(t,e,n,r,i,o,s,a,u){return this.a=Math.cos(s+u)*i,this.b=Math.sin(s+u)*i,this.c=-Math.sin(s-a)*o,this.d=Math.cos(s-a)*o,this.tx=t-(n*this.a+r*this.c),this.ty=e-(n*this.b+r*this.d),this},t.prototype.prepend=function(t){var e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){var n=this.a,r=this.c;this.a=n*t.a+this.b*t.c,this.b=n*t.b+this.b*t.d,this.c=r*t.a+this.d*t.c,this.d=r*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},t.prototype.decompose=function(t){var e=this.a,n=this.b,r=this.c,o=this.d,s=t.pivot,a=-Math.atan2(-r,o),u=Math.atan2(n,e),l=Math.abs(a+u);return l<1e-5||Math.abs(i-l)<1e-5?(t.rotation=u,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=a,t.skew.y=u),t.scale.x=Math.sqrt(e*e+n*n),t.scale.y=Math.sqrt(r*r+o*o),t.position.x=this.tx+(s.x*e+s.y*r),t.position.y=this.ty+(s.x*n+s.y*o),t},t.prototype.invert=function(){var t=this.a,e=this.b,n=this.c,r=this.d,i=this.tx,o=t*r-e*n;return this.a=r/o,this.b=-e/o,this.c=-n/o,this.d=t/o,this.tx=(n*this.ty-r*i)/o,this.ty=-(t*this.ty-e*i)/o,this},t.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},t.prototype.clone=function(){var e=new t;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},t.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},t.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},t.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(t,"IDENTITY",{get:function(){return new t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"TEMP_MATRIX",{get:function(){return new t},enumerable:!1,configurable:!0}),t}(),m=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],g=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],y=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],_=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],b=[],x=[],E=Math.sign;!function(){for(var t=0;t<16;t++){var e=[];b.push(e);for(var n=0;n<16;n++)for(var r=E(m[t]*m[n]+y[t]*g[n]),i=E(g[t]*m[n]+_[t]*g[n]),o=E(m[t]*y[n]+y[t]*_[n]),s=E(g[t]*y[n]+_[t]*_[n]),a=0;a<16;a++)if(m[a]===r&&g[a]===i&&y[a]===o&&_[a]===s){e.push(a);break}}for(t=0;t<16;t++){var u=new v;u.set(m[t],g[t],y[t],_[t],0,0),x.push(u)}}();var T={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(t){return m[t]},uY:function(t){return g[t]},vX:function(t){return y[t]},vY:function(t){return _[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return b[t][e]},sub:function(t,e){return b[t][T.inv(e)]},rotate180:function(t){return 4^t},isVertical:function(t){return 2==(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?e>=0?T.S:T.N:2*Math.abs(e)<=Math.abs(t)?t>0?T.E:T.W:e>0?t>0?T.SE:T.SW:t>0?T.NE:T.NW},matrixAppendRotationInv:function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0);var i=x[T.inv(e)];i.tx=n,i.ty=r,t.append(i)}},w=function(){function t(){this.worldTransform=new v,this.localTransform=new v,this.position=new p(this.onChange,this,0,0),this.scale=new p(this.onChange,this,1,1),this.pivot=new p(this.onChange,this,0,0),this.skew=new p(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return t.prototype.onChange=function(){this._localID++},t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},t.prototype.toString=function(){return"[@pixi/math:Transform position=("+this.position.x+", "+this.position.y+") rotation="+this.rotation+" scale=("+this.scale.x+", "+this.scale.y+") skew=("+this.skew.x+", "+this.skew.y+") ]"},t.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var n=t.worldTransform,r=this.worldTransform;r.a=e.a*n.a+e.b*n.c,r.b=e.a*n.b+e.b*n.d,r.c=e.c*n.a+e.d*n.c,r.d=e.c*n.b+e.d*n.d,r.tx=e.tx*n.a+e.ty*n.c+n.tx,r.ty=e.tx*n.b+e.ty*n.d+n.ty,this._parentID=t._worldID,this._worldID++}},t.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),t.IDENTITY=new t,t}()},63074:function(t,e,n){"use strict";n.d(e,{Kj:function(){return p},rY:function(){return v},xc:function(){return m}});var r=n(67586),i=n(45637),o=n(64497),s=n(93830),a=n(91147),u=n(52867),l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},l(t,e)};function c(t,e){function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var h=function(){function t(t,e){this.uvBuffer=t,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}return t.prototype.update=function(t){if(t||this._bufferUpdateId!==this.uvBuffer._updateID||this._textureUpdateId!==this.uvMatrix._updateID){this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;var e=this.uvBuffer.data;this.data&&this.data.length===e.length||(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++}},t}(),f=new i.E9,d=new i.mg,p=function(t){function e(e,n,i,s){void 0===s&&(s=o.lg.TRIANGLES);var u=t.call(this)||this;return u.geometry=e,u.shader=n,u.state=i||r.ZM.for2d(),u.drawMode=s,u.start=0,u.size=0,u.uvs=null,u.indices=null,u.vertexData=new Float32Array(1),u.vertexDirty=-1,u._transformID=-1,u._roundPixels=a.X.ROUND_PIXELS,u.batchUvs=null,u}return c(e,t),Object.defineProperty(e.prototype,"geometry",{get:function(){return this._geometry},set:function(t){this._geometry!==t&&(this._geometry&&(this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose()),this._geometry=t,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uvBuffer",{get:function(){return this.geometry.buffers[1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"verticesBuffer",{get:function(){return this.geometry.buffers[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"material",{get:function(){return this.shader},set:function(t){this.shader=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this.state.blendMode},set:function(t){this.state.blendMode=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"roundPixels",{get:function(){return this._roundPixels},set:function(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tint",{get:function(){return"tint"in this.shader?this.shader.tint:null},set:function(t){this.shader.tint=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return"texture"in this.shader?this.shader.texture:null},set:function(t){this.shader.texture=t},enumerable:!1,configurable:!0}),e.prototype._render=function(t){var n=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===o.lg.TRIANGLES&&n.length<2*e.BATCHABLE_SIZE?this._renderToBatch(t):this._renderDefault(t)},e.prototype._renderDefault=function(t){var e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),e.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),t.shader.bind(e),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)},e.prototype._renderToBatch=function(t){var e=this.geometry,n=this.shader;n.uvMatrix&&(n.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=e.indexBuffer.data,this._tintRGB=n._tintRGB,this._texture=n.texture;var r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)},e.prototype.calculateVertices=function(){var t=this.geometry.buffers[0],e=t.data,n=t._updateID;if(n!==this.vertexDirty||this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID,this.vertexData.length!==e.length&&(this.vertexData=new Float32Array(e.length));for(var r=this.transform.worldTransform,i=r.a,o=r.b,s=r.c,u=r.d,l=r.tx,c=r.ty,h=this.vertexData,f=0;f>16)+(65280&t)+((255&t)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),e.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var t=this.texture.baseTexture;(0,u.premultiplyTintToRgba)(this._tint,this._alpha,this.uniforms.uColor,t.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},e}(r.ex),m=function(t){function e(e,n,i){var s=t.call(this)||this,a=new r.lW(e),u=new r.lW(n,!0),l=new r.lW(i,!0,!0);return s.addAttribute("aVertexPosition",a,2,!1,o.vK.FLOAT).addAttribute("aTextureCoord",u,2,!1,o.vK.FLOAT).addIndex(l),s._updateId=-1,s}return c(e,t),Object.defineProperty(e.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),e}(r.ZX)},4223:function(t,e,n){"use strict";n.d(e,{R:function(){return r}});var r=function(){function t(t){this.items=[],this._name=t,this._aliasCount=0}return t.prototype.emit=function(t,e,n,r,i,o,s,a){if(arguments.length>8)throw new Error("max arguments reached");var u=this.name,l=this.items;this._aliasCount++;for(var c=0,h=l.length;c0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},t.prototype.remove=function(t){var e=this.items.indexOf(t);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},t.prototype.contains=function(t){return-1!==this.items.indexOf(t)},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(r.prototype,{dispatch:{value:r.prototype.emit},run:{value:r.prototype.emit}})},91147:function(t,e,n){"use strict";n.d(e,{t:function(){return U},X:function(){return B}});var r=/iPhone/i,i=/iPod/i,o=/iPad/i,s=/\biOS-universal(?:.+)Mac\b/i,a=/\bAndroid(?:.+)Mobile\b/i,u=/Android/i,l=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,c=/Silk/i,h=/Windows Phone/i,f=/\bWindows(?:.+)ARM\b/i,d=/BlackBerry/i,p=/BB10/i,v=/Opera Mini/i,m=/\b(CriOS|Chrome)(?:.+)Mobile/i,g=/Mobile(?:.+)Firefox\b/i,y=function(t){return void 0!==t&&"MacIntel"===t.platform&&"number"==typeof t.maxTouchPoints&&t.maxTouchPoints>1&&"undefined"==typeof MSStream};var _,b,x,E,T,w,S,O,A,R,I,M,C,P,N,D,L,k,F,U=function(t){var e={userAgent:"",platform:"",maxTouchPoints:0};t||"undefined"==typeof navigator?"string"==typeof t?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0}):e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=e.userAgent,_=n.split("[FBAN");void 0!==_[1]&&(n=_[0]),void 0!==(_=n.split("Twitter"))[1]&&(n=_[0]);var b=function(t){return function(e){return e.test(t)}}(n),x={apple:{phone:b(r)&&!b(h),ipod:b(i),tablet:!b(r)&&(b(o)||y(e))&&!b(h),universal:b(s),device:(b(r)||b(i)||b(o)||b(s)||y(e))&&!b(h)},amazon:{phone:b(l),tablet:!b(l)&&b(c),device:b(l)||b(c)},android:{phone:!b(h)&&b(l)||!b(h)&&b(a),tablet:!b(h)&&!b(l)&&!b(a)&&(b(c)||b(u)),device:!b(h)&&(b(l)||b(c)||b(a)||b(u))||b(/\bokhttp\b/i)},windows:{phone:b(h),tablet:b(f),device:b(h)||b(f)},other:{blackberry:b(d),blackberry10:b(p),opera:b(v),firefox:b(g),chrome:b(m),device:b(d)||b(p)||b(v)||b(g)||b(m)},any:!1,phone:!1,tablet:!1};return x.any=x.apple.device||x.android.device||x.windows.device||x.other.device,x.phone=x.apple.phone||x.android.phone||x.windows.phone,x.tablet=x.apple.tablet||x.android.tablet||x.windows.tablet,x}(globalThis.navigator);!function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(_||(_={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(b||(b={})),function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"}(x||(x={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}(E||(E={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(T||(T={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(w||(w={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(S||(S={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}(O||(O={})),function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"}(A||(A={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(R||(R={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(I||(I={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"}(M||(M={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"}(C||(C={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"}(P||(P={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(N||(N={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(D||(D={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"}(L||(L={})),function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"}(k||(k={})),function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(F||(F={}));var B={MIPMAP_TEXTURES:M.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:k.NONE,SPRITE_MAX_TEXTURES:function(t){var e=!0;if(U.tablet||U.phone){var n;if(U.apple.device)if(n=navigator.userAgent.match(/OS (\d+)_(\d+)?/))parseInt(n[1],10)<11&&(e=!1);if(U.android.device)if(n=navigator.userAgent.match(/Android\s([0-9.]*)/))parseInt(n[1],10)<7&&(e=!1)}return e?t:4}(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:N.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:I.CLAMP,SCALE_MODE:R.LINEAR,PRECISION_VERTEX:D.HIGH,PRECISION_FRAGMENT:U.apple.device?D.HIGH:D.MEDIUM,CAN_UPLOAD_SAME_BUFFER:!U.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1}},42973:function(t,e,n){"use strict";n.d(e,{Sb:function(){return a},uF:function(){return r},vB:function(){return s}});var r,i=n(91147);i.X.TARGET_FPMS=.06,function(t){t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY"}(r||(r={}));var o=function(){function t(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=0),void 0===r&&(r=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=n,this.once=r}return t.prototype.match=function(t,e){return void 0===e&&(e=null),this.fn===t&&this.context===e},t.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},t.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},t.prototype.destroy=function(t){void 0===t&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},t}(),s=function(){function t(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new o(null,null,1/0),this.deltaMS=1/i.X.TARGET_FPMS,this.elapsedMS=1/i.X.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return t.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(t,e,n){return void 0===n&&(n=r.NORMAL),this._addListener(new o(t,e,n))},t.prototype.addOnce=function(t,e,n){return void 0===n&&(n=r.NORMAL),this._addListener(new o(t,e,n,!0))},t.prototype._addListener=function(t){var e=this._head.next,n=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(n);break}n=e,e=e.next}t.previous||t.connect(n)}else t.connect(n);return this._startIfPossible(),this},t.prototype.remove=function(t,e){for(var n=this._head.next;n;)n=n.match(t,e)?n.destroy():n.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(t){var e;if(void 0===t&&(t=performance.now()),t>this.lastTime){if((e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var n=t-this._lastFrame|0;if(n-1){var n=["\n %c %c %c PixiJS "+d+" - ✰ "+t+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(e=globalThis.console).log.apply(e,n)}else globalThis.console&&globalThis.console.log("PixiJS "+d+" - "+t+" - http://www.pixijs.com/");f=!0}}function m(){return void 0===h&&(h=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:r.X.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),i=!(!n||!n.getContextAttributes().stencil);if(n){var o=n.getExtension("WEBGL_lose_context");o&&o.loseContext()}return n=null,i}catch(s){return!1}}()),h}var g={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function y(t,e){return void 0===e&&(e=[]),e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e}function _(t){var e=t.toString(16);return"#"+(e="000000".substring(0,6-e.length)+e)}function b(t){return"string"==typeof t&&"#"===(t=g[t.toLowerCase()]||t)[0]&&(t=t.slice(1)),parseInt(t,16)}function x(t){return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)}var E=function(){for(var t=[],e=[],n=0;n<32;n++)t[n]=n,e[n]=n;t[l.T$.NORMAL_NPM]=l.T$.NORMAL,t[l.T$.ADD_NPM]=l.T$.ADD,t[l.T$.SCREEN_NPM]=l.T$.SCREEN,e[l.T$.NORMAL]=l.T$.NORMAL_NPM,e[l.T$.ADD]=l.T$.ADD_NPM,e[l.T$.SCREEN]=l.T$.SCREEN_NPM;var r=[];return r.push(e),r.push(t),r}();function T(t,e){return E[e?1:0][t]}function w(t,e,n,r){return n=n||new Float32Array(4),r||void 0===r?(n[0]=t[0]*e,n[1]=t[1]*e,n[2]=t[2]*e):(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=e,n}function S(t,e){if(1===e)return(255*e<<24)+t;if(0===e)return 0;var n=t>>16&255,r=t>>8&255,i=255&t;return(255*e<<24)+((n=n*e+.5|0)<<16)+((r=r*e+.5|0)<<8)+(i=i*e+.5|0)}function O(t,e,n,r){return(n=n||new Float32Array(4))[0]=(t>>16&255)/255,n[1]=(t>>8&255)/255,n[2]=(255&t)/255,(r||void 0===r)&&(n[0]*=e,n[1]*=e,n[2]*=e),n[3]=e,n}function A(t,e){void 0===e&&(e=null);var n=6*t;if((e=e||new Uint16Array(n)).length!==n)throw new Error("Out buffer length is incorrect, got "+e.length+" and expected "+n);for(var r=0,i=0;r>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1}function P(t){return!(t&t-1||!t)}function N(t){var e=(t>65535?1:0)<<4,n=((t>>>=e)>255?1:0)<<3;return e|=n,e|=n=((t>>>=n)>15?1:0)<<2,(e|=n=((t>>>=n)>3?1:0)<<1)|(t>>>=n)>>1}function D(t,e,n){var r,i=t.length;if(!(e>=i||0===n)){var o=i-(n=e+n>i?i-e:n);for(r=e;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=200&&t.status<=299},C=function(t){return/ion\/(vnd\.api\+)?json/.test(t.get("content-type")||"")};function P(t){if(!(0,o.PO)(t))return t;for(var e=_({},t),n=0,r=Object.entries(e);n=c)}var p=(0,o.hg)(n+"/executeQuery",f,{getPendingMeta:function(){var t;return(t={startedTimeStamp:Date.now()})[o.s4]=!0,t},condition:function(t,e){var r,i,o,s=(0,e.getState)(),u=null==(i=null==(r=s[n])?void 0:r.queries)?void 0:i[t.queryCacheKey],l=null==u?void 0:u.fulfilledTimeStamp,c=t.originalArgs,h=null==u?void 0:u.originalArgs,f=a[t.endpointName];return!(!V(t)&&("pending"===(null==u?void 0:u.status)||!d(t,s)&&(!G(f)||!(null==(o=null==f?void 0:f.forceRefetch)?void 0:o.call(f,{currentArg:c,previousArg:h,endpointState:u,state:s})))&&l))},dispatchConditionRejection:!0}),v=(0,o.hg)(n+"/executeMutation",f,{getPendingMeta:function(){var t;return(t={startedTimeStamp:Date.now()})[o.s4]=!0,t}});function m(t){return function(e){var n,r;return(null==(r=null==(n=null==e?void 0:e.meta)?void 0:n.arg)?void 0:r.endpointName)===t}}return{queryThunk:p,mutationThunk:v,prefetch:function(t,e,n){return function(r,i){var o=function(t){return"force"in t}(n)&&n.force,s=function(t){return"ifOlderThan"in t}(n)&&n.ifOlderThan,a=function(n){return void 0===n&&(n=!0),l.endpoints[t].initiate(e,{forceRefetch:n})},u=l.endpoints[t].select(e)(i());if(o)r(a());else if(s){var c=null==u?void 0:u.fulfilledTimeStamp;if(!c)return void r(a());(Number(new Date)-Number(new Date(c)))/1e3>=s&&r(a())}else r(a(!1))}},updateQueryData:function(t,e,n,i){return void 0===i&&(i=!0),function(o,a){var u,c,h,f=l.endpoints[t].select(e)(a()),d={patches:[],inversePatches:[],undo:function(){return o(l.util.patchQueryData(t,e,d.inversePatches,i))}};if(f.status===r.uninitialized)return d;if("data"in f)if((0,s.o$)(f.data)){var p=(0,s.aS)(f.data,n),v=p[0],m=p[1],g=p[2];(u=d.patches).push.apply(u,m),(c=d.inversePatches).push.apply(c,g),h=v}else h=n(f.data),d.patches.push({op:"replace",path:[],value:h}),d.inversePatches.push({op:"replace",path:[],value:f.data});return o(l.util.patchQueryData(t,e,d.patches,i)),d}},upsertQueryData:function(t,e,n){return function(r){var i;return r(l.endpoints[t].initiate(e,((i={subscribe:!1,forceRefetch:!0})[z]=function(){return{data:n}},i)))}},patchQueryData:function(t,e,n,r){return function(i,o){var s=a[t],c=u({queryArgs:e,endpointDefinition:s,endpointName:t});if(i(l.internalActions.queryResultPatched({queryCacheKey:c,patches:n})),r){var f=l.endpoints[t].select(e)(o()),d=H(s.providesTags,f.data,void 0,e,{},h);i(l.internalActions.updateProvidedBy({queryCacheKey:c,providedTags:d}))}}},buildMatchThunkActions:function(t,e){return{matchPending:(0,o.A6)((0,o.zR)(t),m(e)),matchFulfilled:(0,o.A6)((0,o.KD)(t),m(e)),matchRejected:(0,o.A6)((0,o.Iv)(t),m(e))}}}}({baseQuery:i,reducerPath:a,context:n,api:t,serializeQueryArgs:u,assertTagType:v}),g=m.queryThunk,y=m.mutationThunk,_=m.patchQueryData,b=m.updateQueryData,x=m.upsertQueryData,T=m.prefetch,w=m.buildMatchThunkActions,S=Z({context:n,queryThunk:g,mutationThunk:y,reducerPath:a,assertTagType:v,config:{refetchOnFocus:d,refetchOnReconnect:p,refetchOnMountOrArgChange:f,keepUnusedDataFor:l,reducerPath:a}}),O=S.reducer,A=S.actions;_t(t.util,{patchQueryData:_,updateQueryData:b,upsertQueryData:x,prefetch:T,resetApiState:A.resetApiState}),_t(t.internalActions,A);var R=yt({reducerPath:a,context:n,queryThunk:g,mutationThunk:y,api:t,assertTagType:v}),I=R.middleware,M=R.actions;_t(t.util,M),_t(t,{reducer:O,middleware:I});var C=it({serializeQueryArgs:u,reducerPath:a}),P=C.buildQuerySelector,N=C.buildMutationSelector,k=C.selectInvalidatedBy;_t(t.util,{selectInvalidatedBy:k});var Y=function(t){var e=t.serializeQueryArgs,n=t.queryThunk,r=t.mutationThunk,i=t.api,o=t.context,s=new Map,a=new Map,u=i.internalActions,l=u.unsubscribeQueryResult,f=u.removeMutationResult,d=u.updateSubscriptionOptions;return{buildInitiateQuery:function(t,r){var o=function(a,u){var h=void 0===u?{}:u,f=h.subscribe,v=void 0===f||f,m=h.forceRefetch,g=h.subscriptionOptions,y=h[z];return function(u,h){var f,_,b=e({queryArgs:a,endpointDefinition:r,endpointName:t}),x=n(((f={type:"query",subscribe:v,forceRefetch:m,subscriptionOptions:g,endpointName:t,originalArgs:a,queryCacheKey:b})[z]=y,f)),T=i.endpoints[t].select(a),w=u(x),S=T(h());p(u);var O=w.requestId,A=w.abort,R=S.requestId!==O,I=null==(_=s.get(u))?void 0:_[b],M=function(){return T(h())},C=Object.assign(y?w.then(M):R&&!I?Promise.resolve(S):Promise.all([I,w]).then(M),{arg:a,requestId:O,subscriptionOptions:g,queryCacheKey:b,abort:A,unwrap:function(){return E(this,null,(function(){var t;return c(this,(function(e){switch(e.label){case 0:return[4,C];case 1:if((t=e.sent()).isError)throw t.error;return[2,t.data]}}))}))},refetch:function(){return u(o(a,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){v&&u(l({queryCacheKey:b,requestId:O}))},updateSubscriptionOptions:function(e){C.subscriptionOptions=e,u(d({endpointName:t,requestId:O,queryCacheKey:b,options:e}))}});if(!I&&!R&&!y){var P=s.get(u)||{};P[b]=C,s.set(u,P),C.then((function(){delete P[b],Object.keys(P).length||s.delete(u)}))}return C}};return o},buildInitiateMutation:function(t){return function(e,n){var i=void 0===n?{}:n,o=i.track,s=void 0===o||o,u=i.fixedCacheKey;return function(n,i){var o=r({type:"mutation",endpointName:t,originalArgs:e,track:s,fixedCacheKey:u}),l=n(o);p(n);var c=l.requestId,h=l.abort,d=l.unwrap,v=l.unwrap().then((function(t){return{data:t}})).catch((function(t){return{error:t}})),m=function(){n(f({requestId:c,fixedCacheKey:u}))},g=Object.assign(v,{arg:l.arg,requestId:c,abort:h,unwrap:d,unsubscribe:m,reset:m}),y=a.get(n)||{};return a.set(n,y),y[c]=g,g.then((function(){delete y[c],Object.keys(y).length||a.delete(n)})),u&&(y[u]=g,g.then((function(){y[u]===g&&(delete y[u],Object.keys(y).length||a.delete(n))}))),g}}},getRunningQueryThunk:function(t,n){return function(r){var i,a=o.endpointDefinitions[t],u=e({queryArgs:n,endpointDefinition:a,endpointName:t});return null==(i=s.get(r))?void 0:i[u]}},getRunningMutationThunk:function(t,e){return function(t){var n;return null==(n=a.get(t))?void 0:n[e]}},getRunningQueriesThunk:function(){return function(t){return Object.values(s.get(t)||{}).filter(X)}},getRunningMutationsThunk:function(){return function(t){return Object.values(a.get(t)||{}).filter(X)}},getRunningOperationPromises:function(){var t=function(t){return Array.from(t.values()).flatMap((function(t){return t?Object.values(t):[]}))};return h(h([],t(s)),t(a)).filter(X)},removalWarning:function(){throw new Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.")}};function p(t){}}({queryThunk:g,mutationThunk:y,api:t,serializeQueryArgs:u,context:n}),q=Y.buildInitiateQuery,$=Y.buildInitiateMutation,K=Y.getRunningMutationThunk,Q=Y.getRunningMutationsThunk,J=Y.getRunningQueriesThunk,tt=Y.getRunningQueryThunk,et=Y.getRunningOperationPromises,nt=Y.removalWarning;return _t(t.util,{getRunningOperationPromises:et,getRunningOperationPromise:nt,getRunningMutationThunk:K,getRunningMutationsThunk:Q,getRunningQueryThunk:tt,getRunningQueriesThunk:J}),{name:bt,injectEndpoint:function(e,n){var r,i=t;null!=(r=i.endpoints)[e]||(r[e]={}),G(n)?_t(i.endpoints[e],{name:e,select:P(e,n),initiate:q(e,n)},w(g,e)):n.type===L.mutation&&_t(i.endpoints[e],{name:e,select:N(),initiate:$(e)},w(y,e))}}}}};xt()},89631:function(t,e,n){"use strict";n.d(e,{s4:function(){return Z},xC:function(){return C},PH:function(){return S},hg:function(){return B},oM:function(){return N},A6:function(){return Y},Q:function(){return H},Gx:function(){return K},KD:function(){return $},zR:function(){return V},PO:function(){return T},Iv:function(){return W},h_:function(){return q},x0:function(){return D},cw:function(){return tt}});var r=n(65201),i=n(10755);function o(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(n,r,t):e(i)}}}}var s=o();s.withExtraArgument=o;var a,u=s,l=(a=function(t,e){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},a(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1;return n&&r}function z(t){return"function"==typeof t[0]&&"pending"in t[0]&&"fulfilled"in t[0]&&"rejected"in t[0]}function V(){for(var t=[],e=0;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function c(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?"multidrag":t.swapItem?"swap":"normal"}x(t.exports,"Sortable",(function(){return $882b6d93070905b3$re_export$Sortable})),x(t.exports,"Direction",(function(){return $882b6d93070905b3$re_export$Direction})),x(t.exports,"DOMRect",(function(){return $882b6d93070905b3$re_export$DOMRect})),x(t.exports,"GroupOptions",(function(){return $882b6d93070905b3$re_export$GroupOptions})),x(t.exports,"MoveEvent",(function(){return $882b6d93070905b3$re_export$MoveEvent})),x(t.exports,"Options",(function(){return $882b6d93070905b3$re_export$Options})),x(t.exports,"PullResult",(function(){return $882b6d93070905b3$re_export$PullResult})),x(t.exports,"PutResult",(function(){return $882b6d93070905b3$re_export$PutResult})),x(t.exports,"SortableEvent",(function(){return $882b6d93070905b3$re_export$SortableEvent})),x(t.exports,"SortableOptions",(function(){return $882b6d93070905b3$re_export$SortableOptions})),x(t.exports,"Utils",(function(){return $882b6d93070905b3$re_export$Utils})),x(t.exports,"ReactSortable",(function(){return M}));var I={dragging:null},M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(h,t);var e,n,i,u=a(h);function h(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=u.call(this,t)).ref=(0,y.createRef)();var n=c(t.list).map((function(t){return Object.assign(t,{chosen:!1,selected:!1})}));return t.setList(n,e.sortable,I),b(_)(!t.plugins,'\nPlugins prop is no longer supported.\nInstead, mount it with "Sortable.mount(new MultiDrag())"\nPlease read the updated README.md at https://github.com/SortableJS/react-sortablejs.\n '),e}return e=h,(n=[{key:"componentDidMount",value:function(){if(null!==this.ref.current){var t=this.makeOptions();b(m).create(this.ref.current,t)}}},{key:"componentDidUpdate",value:function(t){t.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}},{key:"render",value:function(){var t=this.props,e=t.tag,n={style:t.style,className:t.className,id:t.id},r=e&&null!==e?e:"div";return(0,y.createElement)(r,d({ref:this.ref},n),this.getChildren())}},{key:"getChildren",value:function(){var t=this.props,e=t.children,n=t.dataIdAttr,r=t.selectedClass,i=void 0===r?"sortable-selected":r,o=t.chosenClass,s=void 0===o?"sortable-chosen":o,a=(t.dragClass,t.fallbackClass,t.ghostClass,t.swapClass,t.filter),u=void 0===a?"sortable-filter":a,l=t.list;if(!e||null==e)return null;var c=n||"data-id";return y.Children.map(e,(function(t,e){var n,r;if(void 0!==t){var o=l[e]||{},a=t.props.className,h="string"==typeof u&&p({},u.replace(".",""),!!o.filtered),f=b(g)(a,d((p(n={},i,o.selected),p(n,s,o.chosen),n),h));return(0,y.cloneElement)(t,(p(r={},c,t.key),p(r,"className",f),r))}}))}},{key:"sortable",get:function(){var t=this.ref.current;if(null===t)return null;var e=Object.keys(t).find((function(t){return t.includes("Sortable")}));return e?t[e]:null}},{key:"makeOptions",value:function(){var t,e=this,n=((t=this.props).list,t.setList,t.children,t.tag,t.style,t.className,t.clone,t.onAdd,t.onChange,t.onChoose,t.onClone,t.onEnd,t.onFilter,t.onRemove,t.onSort,t.onStart,t.onUnchoose,t.onUpdate,t.onMove,t.onSpill,t.onSelect,t.onDeselect,l(t,r));return["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"].forEach((function(t){return n[t]=e.prepareOnHandlerPropAndDOM(t)})),["onChange","onClone","onFilter","onSort"].forEach((function(t){return n[t]=e.prepareOnHandlerProp(t)})),d(d({},n),{},{onMove:function(t,n){var r=e.props.onMove,i=t.willInsertAfter||-1;if(!r)return i;var o=r(t,n,e.sortable,I);return void 0!==o&&o}})}},{key:"prepareOnHandlerPropAndDOM",value:function(t){var e=this;return function(n){e.callOnHandlerProp(n,t),e[t](n)}}},{key:"prepareOnHandlerProp",value:function(t){var e=this;return function(n){e.callOnHandlerProp(n,t)}}},{key:"callOnHandlerProp",value:function(t,e){var n=this.props[e];n&&n(t,this.sortable,I)}},{key:"onAdd",value:function(t){var e=this.props,n=e.list,r=e.setList,i=e.clone,o=S(t,c(I.dragging.props.list));T(o),r(A(o,n,t,i).map((function(t){return Object.assign(t,{selected:!1})})),this.sortable,I)}},{key:"onRemove",value:function(t){var e=this,n=this.props,r=n.list,i=n.setList,o=R(t),s=S(t,r);w(s);var a=c(r);if("clone"!==t.pullMode)a=O(s,a);else{var u=s;switch(o){case"multidrag":u=s.map((function(e,n){return d(d({},e),{},{element:t.clones[n]})}));break;case"normal":u=s.map((function(e){return d(d({},e),{},{element:t.clone})}));break;default:b(_)(!0,'mode "'.concat(o,'" cannot clone. Please remove "props.clone" from when using the "').concat(o,'" plugin'))}T(u),s.forEach((function(n){var r=n.oldIndex,i=e.props.clone(n.item,t);a.splice(r,1,i)}))}i(a=a.map((function(t){return Object.assign(t,{selected:!1})})),this.sortable,I)}},{key:"onUpdate",value:function(t){var e=this.props,n=e.list,r=e.setList,i=S(t,n);return T(i),w(i),r(function(t,e){return A(t,O(t,e))}(i,n),this.sortable,I)}},{key:"onStart",value:function(){I.dragging=this}},{key:"onEnd",value:function(){I.dragging=null}},{key:"onChoose",value:function(t){var e=this.props,n=e.list;(0,e.setList)(n.map((function(e,n){var r=e;return n===t.oldIndex&&(r=Object.assign(e,{chosen:!0})),r})),this.sortable,I)}},{key:"onUnchoose",value:function(t){var e=this.props,n=e.list;(0,e.setList)(n.map((function(e,n){var r=e;return n===t.oldIndex&&(r=Object.assign(r,{chosen:!1})),r})),this.sortable,I)}},{key:"onSpill",value:function(t){var e=this.props,n=e.removeOnSpill,r=e.revertOnSpill;n&&!r&&E(t.item)}},{key:"onSelect",value:function(t){var e=this.props,n=e.list,r=e.setList,i=n.map((function(t){return Object.assign(t,{selected:!1})}));t.newIndicies.forEach((function(e){var n=e.index;if(-1===n)return console.log('"'.concat(t.type,'" had indice of "').concat(e.index,"\", which is probably -1 and doesn't usually happen here.")),void console.log(t);i[n].selected=!0})),r(i,this.sortable,I)}},{key:"onDeselect",value:function(t){var e=this.props,n=e.list,r=e.setList,i=n.map((function(t){return Object.assign(t,{selected:!1})}));t.newIndicies.forEach((function(t){var e=t.index;-1!==e&&(i[e].selected=!0)})),r(i,this.sortable,I)}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),h}(y.Component);p(M,"defaultProps",{clone:function(t){return t}});var C,P;C=t.exports,P={},Object.keys(P).forEach((function(t){"default"===t||"__esModule"===t||C.hasOwnProperty(t)||Object.defineProperty(C,t,{enumerable:!0,get:function(){return P[t]}})}))},60042:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e0&&!r.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(s,"\\$1")+'"'}function l(t){this.parameters=Object.create(null),this.type=t}e.Q=function(t){if(!t)throw new TypeError("argument string is required");var e="object"==typeof t?function(t){var e;"function"==typeof t.getHeader?e=t.getHeader("content-type"):"object"==typeof t.headers&&(e=t.headers&&t.headers["content-type"]);if("string"!=typeof e)throw new TypeError("content-type header is missing from object");return e}(t):t;if("string"!=typeof e)throw new TypeError("argument string is required to be a string");var r=e.indexOf(";"),i=-1!==r?e.slice(0,r).trim():e.trim();if(!a.test(i))throw new TypeError("invalid media type");var s=new l(i.toLowerCase());if(-1!==r){var u,c,h;for(n.lastIndex=r;c=n.exec(e);){if(c.index!==r)throw new TypeError("invalid parameter format");r+=c[0].length,u=c[1].toLowerCase(),34===(h=c[2]).charCodeAt(0)&&-1!==(h=h.slice(1,-1)).indexOf("\\")&&(h=h.replace(o,"$1")),s.parameters[u]=h}if(r!==e.length)throw new TypeError("invalid parameter format")}return s}},39861:function(t,e,n){"use strict";n.d(e,{I:function(){return i}});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;ni.endVal;i.frameVal=n?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),e1?i.options.decimal+a[1]:"",i.options.useGrouping){o="";for(var u=3,l=0,c=0,h=n.length;cwindow.scrollY&&t.paused?(t.paused=!1,setTimeout((function(){return t.start()}),t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>i||r>e)&&!t.paused&&t.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var e=t-this.startVal;if(Math.abs(e)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var n=this.countDown?1:-1;this.endVal=t+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var e;if(this.el){var n=this.formattingFn(t);(null===(e=this.options.plugin)||void 0===e?void 0:e.render)?this.options.plugin.render(this.el,n):"INPUT"===this.el.tagName?this.el.value=n:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=n:this.el.innerHTML=n}},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var e=Number(t);return this.ensureNumber(e)?e:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t}()},61106:function(t){"use strict";function e(t,e,o){o=o||2;var s,a,u,h,f,p,v,m=e&&e.length,g=m?e[0]*o:t.length,y=n(t,0,g,o,!0),_=[];if(!y||y.next===y.prev)return _;if(m&&(y=function(t,e,i,o){var s,a,u,h=[];for(s=0,a=e.length;s80*o){s=u=t[0],a=h=t[1];for(var b=o;bu&&(u=f),p>h&&(h=p);v=0!==(v=Math.max(u-s,h-a))?1/v:0}return i(y,_,o,s,a,v),_}function n(t,e,n,r,i){var o,s;if(i===O(t,e,n,r)>0)for(o=e;o=e;o-=r)s=T(o,t[o],t[o+1],s);return s&&g(s,s.next)&&(w(s),s=s.next),s}function r(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!g(r,r.next)&&0!==m(r.prev,r,r.next))r=r.next;else{if(w(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function i(t,e,n,l,c,h,d){if(t){!d&&h&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=f(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,s,a,u,l=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e0||u>0&&r;)0!==a&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,l*=2}while(s>1)}(i)}(t,l,c,h);for(var p,v,m=t;t.prev!==t.next;)if(p=t.prev,v=t.next,h?s(t,l,c,h):o(t))e.push(p.i/n),e.push(t.i/n),e.push(v.i/n),w(t),t=v.next,m=v.next;else if((t=v)===m){d?1===d?i(t=a(r(t),e,n),e,n,l,c,h,2):2===d&&u(t,e,n,l,c,h):i(r(t),e,n,l,c,h,1);break}}}function o(t){var e=t.prev,n=t,r=t.next;if(m(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(p(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&m(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function s(t,e,n,r){var i=t.prev,o=t,s=t.next;if(m(i,o,s)>=0)return!1;for(var a=i.xo.x?i.x>s.x?i.x:s.x:o.x>s.x?o.x:s.x,c=i.y>o.y?i.y>s.y?i.y:s.y:o.y>s.y?o.y:s.y,h=f(a,u,e,n,r),d=f(l,c,e,n,r),v=t.prevZ,g=t.nextZ;v&&v.z>=h&&g&&g.z<=d;){if(v!==t.prev&&v!==t.next&&p(i.x,i.y,o.x,o.y,s.x,s.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;if(v=v.prevZ,g!==t.prev&&g!==t.next&&p(i.x,i.y,o.x,o.y,s.x,s.y,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;v&&v.z>=h;){if(v!==t.prev&&v!==t.next&&p(i.x,i.y,o.x,o.y,s.x,s.y,v.x,v.y)&&m(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;g&&g.z<=d;){if(g!==t.prev&&g!==t.next&&p(i.x,i.y,o.x,o.y,s.x,s.y,g.x,g.y)&&m(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function a(t,e,n){var i=t;do{var o=i.prev,s=i.next.next;!g(o,s)&&y(o,i,i.next,s)&&x(o,s)&&x(s,o)&&(e.push(o.i/n),e.push(i.i/n),e.push(s.i/n),w(i),w(i.next),i=t=s),i=i.next}while(i!==t);return r(i)}function u(t,e,n,o,s,a){var u=t;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&v(u,l)){var c=E(u,l);return u=r(u,u.next),c=r(c,c.next),i(u,e,n,o,s,a),void i(c,e,n,o,s,a)}l=l.next}u=u.next}while(u!==t)}function l(t,e){return t.x-e.x}function c(t,e){var n=function(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>s){if(s=a,a===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x=r.x&&r.x>=c&&i!==r.x&&p(on.x||r.x===n.x&&h(n,r)))&&(n=r,d=u)),r=r.next}while(r!==l);return n}(t,e);if(!n)return e;var i=E(n,t),o=r(n,n.next);return r(i,i.next),e===n?o:e}function h(t,e){return m(t.prev,t,e.prev)<0&&m(e.next,t,t.next)<0}function f(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,n=t;do{(e.x=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(o-a)-(i-s)*(r-a)>=0}function v(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&y(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(x(t,e)&&x(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(m(t.prev,t,e.prev)||m(t,e.prev,e))||g(t,e)&&m(t.prev,t,t.next)>0&&m(e.prev,e,e.next)>0)}function m(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function g(t,e){return t.x===e.x&&t.y===e.y}function y(t,e,n,r){var i=b(m(t,e,n)),o=b(m(t,e,r)),s=b(m(n,r,t)),a=b(m(n,r,e));return i!==o&&s!==a||(!(0!==i||!_(t,n,e))||(!(0!==o||!_(t,r,e))||(!(0!==s||!_(n,t,r))||!(0!==a||!_(n,e,r)))))}function _(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function b(t){return t>0?1:t<0?-1:0}function x(t,e){return m(t.prev,t,t.next)<0?m(t,e,t.next)>=0&&m(t,t.prev,e)>=0:m(t,e,t.prev)<0||m(t,t.next,e)<0}function E(t,e){var n=new S(t.i,t.x,t.y),r=new S(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function T(t,e,n,r){var i=new S(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function w(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function S(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function O(t,e,n,r){for(var i=0,o=e,s=n-r;o0&&(r+=t[i-1].length,n.holes.push(r))}return n}},6659:function(t){"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||t,s),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],a]:t._events[u].push(a):(t._events[u]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i0&&e-1 in t)}function A(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}S.fn=S.prototype={jquery:T,constructor:S,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(S.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+C+")"+C+"*"),G=new RegExp(C+"|>"),H=new RegExp(F),Y=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+C+"*(even|odd|(([+-]|)(\\d*)n|)"+C+"*(?:([+-]|)"+C+"*(\\d+)|))"+C+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+C+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+C+"*((?:-\\d)?\\d*)"+C+"*\\)|)(?=[^-]|$)","i")},z=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,W=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,q=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+C+"?|\\\\([^\\r\\n\\f])","g"),K=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){ut()},J=ft((function(t){return!0===t.disabled&&A(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{v.apply(o=a.call(L.childNodes),L.childNodes),o[L.childNodes.length].nodeType}catch(_t){v={apply:function(t,e){k.apply(t,a.call(e))},call:function(t){k.apply(t,a.call(arguments,1))}}}function Z(t,e,n,r){var i,o,s,a,l,c,d,p=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!r&&(ut(e),e=e||u,h)){if(11!==y&&(l=W.exec(t)))if(i=l[1]){if(9===y){if(!(s=e.getElementById(i)))return n;if(s.id===i)return v.call(n,s),n}else if(p&&(s=p.getElementById(i))&&Z.contains(e,s)&&s.id===i)return v.call(n,s),n}else{if(l[2])return v.apply(n,e.getElementsByTagName(t)),n;if((i=l[3])&&e.getElementsByClassName)return v.apply(n,e.getElementsByClassName(i)),n}if(!(T[t+" "]||f&&f.test(t))){if(d=t,p=e,1===y&&(G.test(t)||j.test(t))){for((p=q.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=S.escapeSelector(a):e.setAttribute("id",a=g)),o=(c=ct(t)).length;o--;)c[o]=(a?"#"+a:":scope")+" "+ht(c[o]);d=c.join(",")}try{return v.apply(n,p.querySelectorAll(d)),n}catch(_){T(t,!0)}finally{a===g&&e.removeAttribute("id")}}}return yt(t.replace(P,"$1"),e,n,r)}function tt(){var t=[];return function n(r,i){return t.push(r+" ")>e.cacheLength&&delete n[t.shift()],n[r+" "]=i}}function et(t){return t[g]=!0,t}function nt(t){var e=u.createElement("fieldset");try{return!!t(e)}catch(_t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function rt(t){return function(e){return A(e,"input")&&e.type===t}}function it(t){return function(e){return(A(e,"input")||A(e,"button"))&&e.type===t}}function ot(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et((function(e){return e=+e,et((function(n,r){for(var i,o=t([],n.length,e),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function ut(t){var n,r=t?t.ownerDocument||t:L;return r!=u&&9===r.nodeType&&r.documentElement?(l=(u=r).documentElement,h=!S.isXMLDoc(u),p=l.matches||l.webkitMatchesSelector||l.msMatchesSelector,l.msMatchesSelector&&L!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),m.getById=nt((function(t){return l.appendChild(t).id=S.expando,!u.getElementsByName||!u.getElementsByName(S.expando).length})),m.disconnectedMatch=nt((function(t){return p.call(t,"*")})),m.scope=nt((function(){return u.querySelectorAll(":scope")})),m.cssHas=nt((function(){try{return u.querySelector(":has(*,:jqfake)"),!1}catch(_t){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace($,K);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace($,K);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&h){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&h)return e.getElementsByClassName(t)},f=[],nt((function(t){var e;l.appendChild(t).innerHTML="",t.querySelectorAll("[selected]").length||f.push("\\["+C+"*(?:value|"+O+")"),t.querySelectorAll("[id~="+g+"-]").length||f.push("~="),t.querySelectorAll("a#"+g+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll(":checked").length||f.push(":checked"),(e=u.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),l.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+C+"*name"+C+"*="+C+"*(?:''|\"\")")})),m.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),w=function(t,e){if(t===e)return s=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===u||t.ownerDocument==L&&Z.contains(L,t)?-1:e===u||e.ownerDocument==L&&Z.contains(L,e)?1:i?c.call(i,t)-c.call(i,e):0:4&n?-1:1)},u):u}for(t in Z.matches=function(t,e){return Z(t,null,null,e)},Z.matchesSelector=function(t,e){if(ut(t),h&&!T[e+" "]&&(!f||!f.test(e)))try{var n=p.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(_t){T(e,!0)}return Z(e,u,null,[t]).length>0},Z.contains=function(t,e){return(t.ownerDocument||t)!=u&&ut(t),S.contains(t,e)},Z.attr=function(t,n){(t.ownerDocument||t)!=u&&ut(t);var r=e.attrHandle[n.toLowerCase()],i=r&&d.call(e.attrHandle,n.toLowerCase())?r(t,n,!h):void 0;return void 0!==i?i:t.getAttribute(n)},Z.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},S.uniqueSort=function(t){var e,n=[],r=0,o=0;if(s=!m.sortStable,i=!m.sortStable&&a.call(t,0),I.call(t,w),s){for(;e=t[o++];)e===t[o]&&(r=n.push(o));for(;r--;)M.call(t,n[r],1)}return i=null,t},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(a.apply(this)))},e=S.expr={cacheLength:50,createPseudo:et,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace($,K),t[3]=(t[3]||t[4]||t[5]||"").replace($,K),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Z.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Z.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&H.test(n)&&(e=ct(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace($,K).toLowerCase();return"*"===t?function(){return!0}:function(t){return A(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+C+")"+t+"("+C+"|$)"))&&b(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=Z.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(U," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,h,f,d,p=o!==s?"nextSibling":"previousSibling",v=e.parentNode,m=a&&e.nodeName.toLowerCase(),_=!u&&!a,b=!1;if(v){if(o){for(;p;){for(h=e;h=h[p];)if(a?A(h,m):1===h.nodeType)return!1;d=p="only"===t&&!d&&"nextSibling"}return!0}if(d=[s?v.firstChild:v.lastChild],s&&_){for(b=(f=(l=(c=v[g]||(v[g]={}))[t]||[])[0]===y&&l[1])&&l[2],h=f&&v.childNodes[f];h=++f&&h&&h[p]||(b=f=0)||d.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[y,f,b];break}}else if(_&&(b=f=(l=(c=e[g]||(e[g]={}))[t]||[])[0]===y&&l[1]),!1===b)for(;(h=++f&&h&&h[p]||(b=f=0)||d.pop())&&(!(a?A(h,m):1===h.nodeType)||!++b||(_&&((c=h[g]||(h[g]={}))[t]=[y,b]),h!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,n){var r,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Z.error("unsupported pseudo: "+t);return i[g]?i(n):i.length>1?(r=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var r,o=i(t,n),s=o.length;s--;)t[r=c.call(t,o[s])]=!(e[r]=o[s])})):function(t){return i(t,0,r)}):i}},pseudos:{not:et((function(t){var e=[],n=[],r=gt(t.replace(P,"$1"));return r[g]?et((function(t,e,n,i){for(var o,s=r(t,null,i,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return Z(t,e).length>0}})),contains:et((function(t){return t=t.replace($,K),function(e){return(e.textContent||S.text(e)).indexOf(t)>-1}})),lang:et((function(t){return Y.test(t||"")||Z.error("unsupported lang: "+t),t=t.replace($,K).toLowerCase(),function(e){var n;do{if(n=h?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=r.location&&r.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===l},focus:function(t){return t===function(){try{return u.activeElement}catch(t){}}()&&u.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return A(t,"input")&&!!t.checked||A(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return V.test(t.nodeName)},input:function(t){return z.test(t.nodeName)},button:function(t){return A(t,"input")&&"button"===t.type||A(t,"button")},text:function(t){var e;return A(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st((function(){return[0]})),last:st((function(t,e){return[e-1]})),eq:st((function(t,e,n){return[n<0?n+e:n]})),even:st((function(t,e){for(var n=0;ne?e:n;--r>=0;)t.push(r);return t})),gt:st((function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function pt(t,e,n,r,i){for(var o,s=[],a=0,u=t.length,l=null!=e;a-1&&(o[l]=!(s[l]=f))}}else d=pt(d===s?d.splice(g,d.length):d),i?i(null,s,d,u):v.apply(s,d)}))}function mt(t){for(var r,i,o,s=t.length,a=e.relative[t[0].type],u=a||e.relative[" "],l=a?1:0,h=ft((function(t){return t===r}),u,!0),f=ft((function(t){return c.call(r,t)>-1}),u,!0),d=[function(t,e,i){var o=!a&&(i||e!=n)||((r=e).nodeType?h(t,e,i):f(t,e,i));return r=null,o}];l1&&dt(d),l>1&&ht(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(P,"$1"),i,l0,o=t.length>0,s=function(s,a,l,c,f){var d,p,m,g=0,_="0",b=s&&[],x=[],E=n,T=s||o&&e.find.TAG("*",f),w=y+=null==E?1:Math.random()||.1,O=T.length;for(f&&(n=a==u||a||f);_!==O&&null!=(d=T[_]);_++){if(o&&d){for(p=0,a||d.ownerDocument==u||(ut(d),l=!h);m=t[p++];)if(m(d,a||u,l)){v.call(c,d);break}f&&(y=w)}i&&((d=!m&&d)&&g--,s&&b.push(d))}if(g+=_,i&&_!==g){for(p=0;m=r[p++];)m(b,x,a,l);if(s){if(g>0)for(;_--;)b[_]||x[_]||(x[_]=R.call(c));x=pt(x)}v.apply(c,x),f&&!s&&x.length>0&&g+r.length>1&&S.uniqueSort(c)}return f&&(y=w,n=E),b};return i?et(s):s}(s,o)),a.selector=t}return a}function yt(t,n,r,i){var o,s,a,u,l,c="function"==typeof t&&t,f=!i&&ct(t=c.selector||t);if(r=r||[],1===f.length){if((s=f[0]=f[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&h&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace($,K),n)||[])[0]))return r;c&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(o=X.needsContext.test(t)?0:s.length;o--&&(a=s[o],!e.relative[u=a.type]);)if((l=e.find[u])&&(i=l(a.matches[0].replace($,K),q.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(o,1),!(t=i.length&&ht(s)))return v.apply(r,i),r;break}}return(c||gt(t,f))(i,n,!h,r,!n||q.test(t)&&at(n.parentNode)||n),r}lt.prototype=e.filters=e.pseudos,e.setFilters=new lt,m.sortStable=g.split("").sort(w).join("")===g,ut(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))})),S.find=Z,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,Z.compile=gt,Z.select=yt,Z.setDocument=ut,Z.tokenize=ct,Z.escape=S.escapeSelector,Z.getText=S.text,Z.isXML=S.isXMLDoc,Z.selectors=S.expr,Z.support=S.support,Z.uniqueSort=S.uniqueSort}();var F=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&S(t).is(n))break;r.push(t)}return r},U=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},B=S.expr.match.needsContext,j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function G(t,e,n){return g(e)?S.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?S.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?S.grep(t,(function(t){return c.call(e,t)>-1!==n})):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,(function(t){return 1===t.nodeType})))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(S(t).filter((function(){for(e=0;e1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(G(this,t||[],!1))},not:function(t){return this.pushStack(G(this,t||[],!0))},is:function(t){return!!G(this,"string"==typeof t&&B.test(t)?S(t):t||[],!1).length}});var H,Y=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||H,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Y.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:_,!0)),j.test(r[1])&&S.isPlainObject(e))for(r in e)g(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=_.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==n.ready?n.ready(t):t(S):S.makeArray(t,this)}).prototype=S.fn,H=S(_);var X=/^(?:parents|prev(?:Until|All))/,z={children:!0,contents:!0,next:!0,prev:!0};function V(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&S.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(S(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return F(t,"parentNode")},parentsUntil:function(t,e,n){return F(t,"parentNode",n)},next:function(t){return V(t,"nextSibling")},prev:function(t){return V(t,"previousSibling")},nextAll:function(t){return F(t,"nextSibling")},prevAll:function(t){return F(t,"previousSibling")},nextUntil:function(t,e,n){return F(t,"nextSibling",n)},prevUntil:function(t,e,n){return F(t,"previousSibling",n)},siblings:function(t){return U((t.parentNode||{}).firstChild,t)},children:function(t){return U(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(A(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},(function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(z[t]||S.uniqueSort(i),X.test(t)&&i.reverse()),this.pushStack(i)}}));var W=/[^\x20\t\r\n\f]+/g;function q(t){return t}function $(t){throw t}function K(t,e,n,r){var i;try{t&&g(i=t.promise)?i.call(t).done(e).fail(n):t&&g(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(W)||[],(function(t,n){e[n]=!0})),e}(t):S.extend({},t);var e,n,r,i,o=[],s=[],a=-1,u=function(){for(i=i||t.once,r=e=!0;s.length;a=-1)for(n=s.shift();++a-1;)o.splice(n,1),n<=a&&a--})),this},has:function(t){return t?S.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return S.Deferred((function(n){S.each(e,(function(e,r){var i=g(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&g(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,i){var o=0;function s(t,e,n,i){return function(){var a=this,u=arguments,l=function(){var r,l;if(!(t=o&&(n!==$&&(a=void 0,u=[r]),e.rejectWith(a,u))}};t?c():(S.Deferred.getErrorHook?c.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(c.error=S.Deferred.getStackHook()),r.setTimeout(c))}}return S.Deferred((function(r){e[0][3].add(s(0,r,g(i)?i:q,r.notifyWith)),e[1][3].add(s(0,r,g(t)?t:q)),e[2][3].add(s(0,r,g(n)?n:$))})).promise()},promise:function(t){return null!=t?S.extend(t,i):i}},o={};return S.each(e,(function(t,r){var s=r[2],a=r[5];i[r[1]]=s.add,a&&s.add((function(){n=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=s.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=a.call(arguments),o=S.Deferred(),s=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?a.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(K(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||g(i[n]&&i[n].then)))return o.then();for(;n--;)K(i[n],s(n),o.reject);return o.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&Q.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){r.setTimeout((function(){throw t}))};var J=S.Deferred();function Z(){_.removeEventListener("DOMContentLoaded",Z),r.removeEventListener("load",Z),S.ready()}S.fn.ready=function(t){return J.then(t).catch((function(t){S.readyException(t)})),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||J.resolveWith(_,[S]))}}),S.ready.then=J.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?r.setTimeout(S.ready):(_.addEventListener("DOMContentLoaded",Z),r.addEventListener("load",Z));var tt=function(t,e,n,r,i,o,s){var a=0,u=t.length,l=null==n;if("object"===E(n))for(a in i=!0,n)tt(t,e,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,g(r)||(s=!0),l&&(s?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(S(t),n)})),e))for(;a1,null,!0)},removeData:function(t){return this.each((function(){ut.remove(this,t)}))}}),S.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=at.get(t,e),n&&(!r||Array.isArray(n)?r=at.access(t,e,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),r=n.length,i=n.shift(),o=S._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){S.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:S.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,At=/^$|^module$|\/(?:java|ecma)script/i;Tt=_.createDocumentFragment().appendChild(_.createElement("div")),(wt=_.createElement("input")).setAttribute("type","radio"),wt.setAttribute("checked","checked"),wt.setAttribute("name","t"),Tt.appendChild(wt),m.checkClone=Tt.cloneNode(!0).cloneNode(!0).lastChild.checked,Tt.innerHTML="",m.noCloneChecked=!!Tt.cloneNode(!0).lastChild.defaultValue,Tt.innerHTML="",m.option=!!Tt.lastChild;var Rt={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function It(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&A(t,e)?S.merge([t],n):n}function Mt(t,e){for(var n=0,r=t.length;n",""]);var Ct=/<|&#?\w+;/;function Pt(t,e,n,r,i){for(var o,s,a,u,l,c,h=e.createDocumentFragment(),f=[],d=0,p=t.length;d-1)i&&i.push(o);else if(l=mt(o),s=It(h.appendChild(o),"script"),l&&Mt(s),n)for(c=0;o=s[c++];)At.test(o.type||"")&&n.push(o);return h}var Nt=/^([^.]*)(?:\.(.+)|)/;function Dt(){return!0}function Lt(){return!1}function kt(t,e,n,r,i,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(r=r||n,n=void 0),e)kt(t,a,n,r,e[a],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Lt;else if(!i)return t;return 1===o&&(s=i,i=function(t){return S().off(t),s.apply(this,arguments)},i.guid=s.guid||(s.guid=S.guid++)),t.each((function(){S.event.add(this,e,i,r,n)}))}function Ft(t,e,n){n?(at.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(S.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=a.call(arguments),at.set(this,e,r),this[e](),n=at.get(this,e),at.set(this,e,!1),r!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else r&&(at.set(this,e,S.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Dt)}})):void 0===at.get(t,e)&&S.event.add(t,e,Dt)}S.event={global:{},add:function(t,e,n,r,i){var o,s,a,u,l,c,h,f,d,p,v,m=at.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(vt,i),n.guid||(n.guid=S.guid++),(u=m.events)||(u=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(W)||[""]).length;l--;)d=v=(a=Nt.exec(e[l])||[])[1],p=(a[2]||"").split(".").sort(),d&&(h=S.event.special[d]||{},d=(i?h.delegateType:h.bindType)||d,h=S.event.special[d]||{},c=S.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:p.join(".")},o),(f=u[d])||((f=u[d]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,r,p,s)||t.addEventListener&&t.addEventListener(d,s)),h.add&&(h.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),S.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,s,a,u,l,c,h,f,d,p,v,m=at.hasData(t)&&at.get(t);if(m&&(u=m.events)){for(l=(e=(e||"").match(W)||[""]).length;l--;)if(d=v=(a=Nt.exec(e[l])||[])[1],p=(a[2]||"").split(".").sort(),d){for(h=S.event.special[d]||{},f=u[d=(r?h.delegateType:h.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)c=f[o],!i&&v!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,h.remove&&h.remove.call(t,c));s&&!f.length&&(h.teardown&&!1!==h.teardown.call(t,p,m.handle)||S.removeEvent(t,d,m.handle),delete u[d])}else for(d in u)S.event.remove(t,d+e[l],n,r,!0);S.isEmptyObject(u)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,s,a=new Array(arguments.length),u=S.event.fix(t),l=(at.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(a[0]=u,e=1;e=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],s={},n=0;n-1:S.find(i,this,null,[l]).length),s[i]&&o.push(r);o.length&&a.push({elem:l,handlers:o})}return l=this,u\s*$/g;function Gt(t,e){return A(t,"table")&&A(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function Ht(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Yt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Xt(t,e){var n,r,i,o,s,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(i in at.remove(e,"handle events"),a)for(n=0,r=a[i].length;n1&&"string"==typeof p&&!m.checkClone&&Bt.test(p))return t.each((function(i){var o=t.eq(i);v&&(e[0]=p.call(this,i,o.html())),Vt(o,e,n,r)}));if(f&&(o=(i=Pt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=(s=S.map(It(i,"script"),Ht)).length;h0&&Mt(s,!u&&It(t,"script")),a},cleanData:function(t){for(var e,n,r,i=S.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[at.expando]){if(e.events)for(r in e.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ut.expando]&&(n[ut.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Wt(this,t,!0)},remove:function(t){return Wt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?S.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Vt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Gt(this,t).appendChild(t)}))},prepend:function(){return Vt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Gt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Vt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Vt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(S.cleanData(It(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return S.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ut.test(t)&&!Rt[(Ot.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-a-.5))||0),u+l}function ce(t,e,n){var r=Kt(t),i=(!m.boxSizingReliable()||n)&&"border-box"===S.css(t,"boxSizing",!1,r),o=i,s=Zt(t,e,r),a="offset"+e[0].toUpperCase()+e.slice(1);if(qt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&A(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===S.css(t,"boxSizing",!1,r),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+le(t,e,n||(i?"border":"content"),o,r,s)+"px"}function he(t,e,n,r,i){return new he.prototype.init(t,e,n,r,i)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=it(e),u=$t.test(e),l=t.style;if(u||(e=ie(a)),s=S.cssHooks[e]||S.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(t,!1,r))?i:l[e];"string"===(o=typeof n)&&(i=dt.exec(n))&&i[1]&&(n=_t(t,e,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,r))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,r){var i,o,s,a=it(e);return $t.test(e)||(e=ie(a)),(s=S.cssHooks[e]||S.cssHooks[a])&&"get"in s&&(i=s.get(t,!0,n)),void 0===i&&(i=Zt(t,e,r)),"normal"===i&&e in ae&&(i=ae[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],(function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!oe.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,e,r):Qt(t,se,(function(){return ce(t,e,r)}))},set:function(t,n,r){var i,o=Kt(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===S.css(t,"boxSizing",!1,o),u=r?le(t,e,r,a,o):0;return a&&s&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-le(t,e,"border",!1,o)-.5)),u&&(i=dt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),ue(0,n,u)}}})),S.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Qt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(t,e){S.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+pt[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(S.cssHooks[t+e].set=ue)})),S.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var r,i,o={},s=0;if(Array.isArray(e)){for(r=Kt(t),i=e.length;s1)}}),S.Tween=he,he.prototype={constructor:he,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var t=he.propHooks[this.prop];return t&&t.get?t.get(this):he.propHooks._default.get(this)},run:function(t){var e,n=he.propHooks[this.prop];return this.options.duration?this.pos=e=S.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):he.propHooks._default.set(this),this}},he.prototype.init.prototype=he.prototype,he.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}},he.propHooks.scrollTop=he.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=he.prototype.init,S.fx.step={};var fe,de,pe=/^(?:toggle|show|hide)$/,ve=/queueHooks$/;function me(){de&&(!1===_.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(me):r.setTimeout(me,S.fx.interval),S.fx.tick())}function ge(){return r.setTimeout((function(){fe=void 0})),fe=Date.now()}function ye(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=pt[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function _e(t,e,n){for(var r,i=(be.tweeners[e]||[]).concat(be.tweeners["*"]),o=0,s=i.length;o1)},removeAttr:function(t){return this.each((function(){S.removeAttr(this,t)}))}}),S.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?S.prop(t,e,n):(1===o&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void S.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=S.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&A(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(W);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=Ee[e]||S.find.attr;Ee[e]=function(t,e,r){var i,o,s=e.toLowerCase();return r||(o=Ee[s],Ee[s]=i,i=null!=n(t,e,r)?s:null,Ee[s]=o),i}}));var Te=/^(?:input|select|textarea|button)$/i,we=/^(?:a|area)$/i;function Se(t){return(t.match(W)||[]).join(" ")}function Oe(t){return t.getAttribute&&t.getAttribute("class")||""}function Ae(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(W)||[]}S.fn.extend({prop:function(t,e){return tt(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[S.propFix[t]||t]}))}}),S.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(t)||(e=S.propFix[e]||e,i=S.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):Te.test(t.nodeName)||we.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(S.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(t){var e,n,r,i,o,s;return g(t)?this.each((function(e){S(this).addClass(t.call(this,e,Oe(this)))})):(e=Ae(t)).length?this.each((function(){if(r=Oe(this),n=1===this.nodeType&&" "+Se(r)+" "){for(o=0;o-1;)n=n.replace(" "+i+" "," ");s=Se(n),r!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,r,i,o,s=typeof t,a="string"===s||Array.isArray(t);return g(t)?this.each((function(n){S(this).toggleClass(t.call(this,n,Oe(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ae(t),this.each((function(){if(a)for(o=S(this),i=0;i-1)return!0;return!1}});var Re=/\r/g;S.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=g(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,S(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,(function(t){return null==t?"":t+""}))),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Re,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:Se(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],u=s?o+1:i.length;for(r=o<0?u:s?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},m.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ie=r.location,Me={guid:Date.now()},Ce=/\?/;S.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(i){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Pe=/^(?:focusinfocus|focusoutblur)$/,Ne=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,n,i){var o,s,a,u,l,c,h,f,p=[n||_],v=d.call(t,"type")?t.type:t,m=d.call(t,"namespace")?t.namespace.split("."):[];if(s=f=a=n=n||_,3!==n.nodeType&&8!==n.nodeType&&!Pe.test(v+S.event.triggered)&&(v.indexOf(".")>-1&&(m=v.split("."),v=m.shift(),m.sort()),l=v.indexOf(":")<0&&"on"+v,(t=t[S.expando]?t:new S.Event(v,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:S.makeArray(e,[t]),h=S.event.special[v]||{},i||!h.trigger||!1!==h.trigger.apply(n,e))){if(!i&&!h.noBubble&&!y(n)){for(u=h.delegateType||v,Pe.test(u+v)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(n.ownerDocument||_)&&p.push(a.defaultView||a.parentWindow||r)}for(o=0;(s=p[o++])&&!t.isPropagationStopped();)f=s,t.type=o>1?u:h.bindType||v,(c=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&c.apply(s,e),(c=l&&s[l])&&c.apply&&ot(s)&&(t.result=c.apply(s,e),!1===t.result&&t.preventDefault());return t.type=v,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),e)||!ot(n)||l&&g(n[v])&&!y(n)&&((a=n[l])&&(n[l]=null),S.event.triggered=v,t.isPropagationStopped()&&f.addEventListener(v,Ne),n[v](),t.isPropagationStopped()&&f.removeEventListener(v,Ne),S.event.triggered=void 0,a&&(n[l]=a)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each((function(){S.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}});var De=/\[\]$/,Le=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function Ue(t,e,n,r){var i;if(Array.isArray(e))S.each(e,(function(e,i){n||De.test(t)?r(t,i):Ue(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==E(e))r(t,e);else for(i in e)Ue(t+"["+i+"]",e[i],n,r)}S.param=function(t,e){var n,r=[],i=function(t,e){var n=g(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,(function(){i(this.name,this.value)}));else for(n in t)Ue(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Fe.test(this.nodeName)&&!ke.test(t)&&(this.checked||!St.test(t))})).map((function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(t){return{name:e.name,value:t.replace(Le,"\r\n")}})):{name:e.name,value:n.replace(Le,"\r\n")}})).get()}});var Be=/%20/g,je=/#.*$/,Ge=/([?&])_=[^&]*/,He=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ye=/^(?:GET|HEAD)$/,Xe=/^\/\//,ze={},Ve={},We="*/".concat("*"),qe=_.createElement("a");function $e(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(W)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Ke(t,e,n,r){var i={},o=t===Ve;function s(a){var u;return i[a]=!0,S.each(t[a]||[],(function(t,a){var l=a(e,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),s(l),!1)})),u}return s(e.dataTypes[0])||!i["*"]&&s("*")}function Qe(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}qe.href=Ie.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ie.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ie.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":We,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Qe(Qe(t,S.ajaxSettings),e):Qe(S.ajaxSettings,t)},ajaxPrefilter:$e(ze),ajaxTransport:$e(Ve),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,o,s,a,u,l,c,h,f,d=S.ajaxSetup({},e),p=d.context||d,v=d.context&&(p.nodeType||p.jquery)?S(p):S.event,m=S.Deferred(),g=S.Callbacks("once memory"),y=d.statusCode||{},b={},x={},E="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(l){if(!s)for(s={};e=He.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==l&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)T.always(t[T.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||E;return n&&n.abort(e),w(0,e),this}};if(m.promise(T),d.url=((t||d.url||Ie.href)+"").replace(Xe,Ie.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(W)||[""],null==d.crossDomain){u=_.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=qe.protocol+"//"+qe.host!=u.protocol+"//"+u.host}catch(O){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=S.param(d.data,d.traditional)),Ke(ze,d,e,T),l)return T;for(h in(c=S.event&&d.global)&&0==S.active++&&S.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ye.test(d.type),i=d.url.replace(je,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Be,"+")):(f=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Ce.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Ge,"$1"),f=(Ce.test(i)?"&":"?")+"_="+Me.guid+++f),d.url=i+f),d.ifModified&&(S.lastModified[i]&&T.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&T.setRequestHeader("If-None-Match",S.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+We+"; q=0.01":""):d.accepts["*"]),d.headers)T.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(!1===d.beforeSend.call(p,T,d)||l))return T.abort();if(E="abort",g.add(d.complete),T.done(d.success),T.fail(d.error),n=Ke(Ve,d,e,T)){if(T.readyState=1,c&&v.trigger("ajaxSend",[T,d]),l)return T;d.async&&d.timeout>0&&(a=r.setTimeout((function(){T.abort("timeout")}),d.timeout));try{l=!1,n.send(b,w)}catch(O){if(l)throw O;w(-1,O)}}else w(-1,"No Transport");function w(t,e,s,u){var h,f,_,b,x,E=e;l||(l=!0,a&&r.clearTimeout(a),n=void 0,o=u||"",T.readyState=t>0?4:0,h=t>=200&&t<300||304===t,s&&(b=function(t,e,n){for(var r,i,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}(d,T,s)),!h&&S.inArray("script",d.dataTypes)>-1&&S.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),b=function(t,e,n,r){var i,o,s,a,u,l={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if((a=i.split(" "))[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(O){return{state:"parsererror",error:s?O:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(d,b,T,h),h?(d.ifModified&&((x=T.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=x),(x=T.getResponseHeader("etag"))&&(S.etag[i]=x)),204===t||"HEAD"===d.type?E="nocontent":304===t?E="notmodified":(E=b.state,f=b.data,h=!(_=b.error))):(_=E,!t&&E||(E="error",t<0&&(t=0))),T.status=t,T.statusText=(e||E)+"",h?m.resolveWith(p,[f,E,T]):m.rejectWith(p,[T,E,_]),T.statusCode(y),y=void 0,c&&v.trigger(h?"ajaxSuccess":"ajaxError",[T,d,h?f:_]),g.fireWith(p,[T,E]),c&&(v.trigger("ajaxComplete",[T,d]),--S.active||S.event.trigger("ajaxStop")))}return T},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],(function(t,e){S[e]=function(t,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}})),S.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(g(t)&&(t=t.call(this[0])),e=S(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return g(t)?this.each((function(e){S(this).wrapInner(t.call(this,e))})):this.each((function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=g(t);return this.each((function(n){S(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ze=S.ajaxSettings.xhr();m.cors=!!Ze&&"withCredentials"in Ze,m.ajax=Ze=!!Ze,S.ajaxTransport((function(t){var e,n;if(m.cors||Ze&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Je[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout((function(){e&&n()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(u){if(e)throw u}},abort:function(){e&&e()}}})),S.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return S.globalEval(t),t}}}),S.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),S.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=S("