|
|
(self.webpackChunk=self.webpackChunk||[]).push([[6521],{40001:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},26227:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},41464:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},87169:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},73331:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},15277:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},52671:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},8657:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},56082:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},33853:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},15075:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},43531:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},61485:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},47472:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},87395:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(54476),gt=Ie(59301),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Te=a,be=Ie(7657),z=function(ee,le){return gt.createElement(be.Z,(0,ge.Z)({},ee,{ref:le,icon:Te}))},E=gt.forwardRef(z),ie=E},45559:function(){"use strict"},42313:function(){"use strict"},96408:function(Yt,Dt){"use strict";Dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},58e3:function(Yt,Dt){"use strict";Dt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},829:function(){"use strict"},93510:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Yt={},Dt="5.0",Ie={},ge=null,gt=!1,a=!1,Te=null,be=!1,z=null,E=null,ie=0;ie<arguments.length;ie++){var oe=arguments[ie];if(oe!==null)switch(typeof oe){case"number":Dt=oe.toFixed(1);break;case"string":oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Dt=oe:Te=oe;break;case"object":typeof oe.is3D!="undefined"?ge=oe:Ie=oe;break;case"boolean":gt=oe,a=!0;break}}ge===null&&(ge={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ie.material_id!==void 0&&!a&&(gt=!0)),Te!==null&&Ie.id===void 0&&(Ie.id=Te);var ee="",le="",x=!1,ne=null,re=null,ae=null,se=!1,ce=null,pe=null,me=null,he=null,ye=null;Ie.height!==void 0&&(Ie.height=Math.round(Ie.height)),Ie.width!==void 0&&(Ie.width=Math.round(Ie.width));var De=function($e){return parseFloat($e)>4?parseFloat($e):5};Yt.setHTML5Codebase=function($e,Xe){E=$e,it($e,Xe)},Yt.setJavaCodebase=Yt.setJavaCodebaseVersion=Yt.isCompiledInstalled=Yt.setPreCompiledScriptPath=Yt.setPreCompiledResourcePath=function(){},Yt.setHTML5CodebaseVersion=function($e,Xe){var Ve=parseFloat($e);if(Ve!==NaN&&Ve<5){console.log("The GeoGebra HTML5 codebase version "+Ve+" is deprecated. Using version latest instead.");return}z=$e,Ke($e,Xe)},Yt.getHTML5CodebaseVersion=function(){return re},Yt.getParameters=function(){return Ie},Yt.setFontsCSSURL=function($e){he=$e},Yt.setGiacJSURL=function($e){},Yt.setJNLPFile=function($e){ee=$e},Yt.setJNLPBaseDir=function($e){},Yt.inject=function(){function $e(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xe="auto",Ve=Ie.id,nt,Qe=!1,ct=0;ct<arguments.length;ct++){var ot=arguments[ct];typeof ot=="string"?(ot=ot.toLowerCase(),ot.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Xe=ot:Ve=arguments[ct]):typeof ot=="boolean"?Qe=ot:ot instanceof HTMLElement&&(nt=ot)}qe();function qe(){if(!be){setTimeout(qe,200);return}Xe=at(Xe);var _e=nt||document.getElementById(Ve);if(!_e){console.log("possibly bug on ajax loading? ");return}if(Yt.removeExistingApplet(_e,!1),Ie.width===void 0&&_e.clientWidth&&(Ie.width=_e.clientWidth),Ie.height===void 0&&_e.clientHeight&&(Ie.height=_e.clientHeight),!(Ie.width&&Ie.height)&&Xe==="html5"&&(delete Ie.width,delete Ie.height),ne=Xe,Xe==="screenshot")Ae(_e,Ie);else{var Re=!1;Ie.hasOwnProperty("playButton")&&Ie.playButton||Ie.hasOwnProperty("clickToLoad")&&Ie.clickToLoad?Re=!0:Ie.hasOwnProperty("playButtonAutoDecide")&&Ie.playButtonAutoDecide&&(Re=(!Me()||$e())&&Be()),Re?(ne="screenshot",Ge(_e,Ie,Qe,Xe)):Le(_e,Ie,Qe)}}};function Me(){try{return window.self!==window.top}catch($e){return!0}}function Be(){return Ie.hasOwnProperty("screenshotGenerator")&&Ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Yt.getViews=function(){return ge},Yt.isJavaInstalled=function(){return!1};var Pe=function($e){var Xe=function(ct){var ot=JSON.parse(ct),qe=function(te){return te.type=="G"||te.type=="E"},_e=ot.elements?ot.elements.filter(qe)[0]:ot;if(!_e||!_e.url){Ve();return}Ie.fileName=_e.url,Ce(_e.settings||{}),ge.is3D=!0;var Re="https://www.geogebra.org/images/";Yt.setPreviewImage(ce||_e.previewUrl,Re+"GeoGebra_loading.png",Re+"applet_play.png"),$e()},Ve=function(){Ie.onError&&Ie.onError(),rt("Error: Fetching material (id "+Ie.material_id+") failed.",Ie)},nt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+Ie.material_id+"?scope=basic";Ee("https://"+nt+"/api/proxy.php?path="+encodeURIComponent(Qe),Xe,Ve)};function Ce($e){var Xe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ve){$e[Ve]=!!$e[Ve]}),Xe.forEach(function(Ve){Ie[Ve]===void 0&&$e[Ve]!==void 0&&(Ie[Ve]=$e[Ve])}),Ie.showToolBarHelp===void 0&&(Ie.showToolBarHelp=Ie.showToolBar)}function Ee($e,Xe,Ve){var nt=new XMLHttpRequest;nt.open("GET",$e),nt.onload=function(){Xe(nt.responseText)},nt.onerror=Ve,nt.send()}Yt.isHTML5Installed=function(){return!0},Yt.getLoadedAppletType=function(){return ne},Yt.setPreviewImage=function($e,Xe,Ve){ce=$e,pe=Xe,me=Ve},Yt.removeExistingApplet=function($e,Xe){var Ve;typeof $e=="string"&&($e=document.getElementById($e)),ne=null;var nt=null;for(Ve=0;Ve<$e.childNodes.length;Ve++){var Qe=$e.childNodes[Ve],ct=Qe.className;ct==="applet_screenshot"?Xe?(Qe.style.display="block",ne="screenshot"):Qe.style.display="none":ct!=="applet_scaler prerender"&&($e.removeChild(Qe),nt=ct&&ct.indexOf("appletParameters")!=-1?Qe.id:null,Ve--)}var ot=Ie.id!==void 0?Ie.id:nt,qe=window[ot];qe&&typeof qe.getBase64=="function"&&(qe.remove(),window[ot]=null)},Yt.refreshHitPoints=function(){if(De(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var $e=Yt.getAppletObject();return $e&&typeof $e.recalculateEnvironments=="function"?($e.recalculateEnvironments(),!0):!1},Yt.startAnimation=function(){var $e=Yt.getAppletObject();return $e&&typeof $e.startAnimation=="function"?($e.startAnimation(),!0):!1},Yt.stopAnimation=function(){var $e=Yt.getAppletObject();return $e&&typeof $e.stopAnimation=="function"?($e.stopAnimation(),!0):!1},Yt.getAppletObject=function(){var $e=Ie.id!==void 0?Ie.id:"ggbApplet";return window[$e]},Yt.resize=function(){};var je=function($e,Xe,Ve){var nt=document.createElement("param");nt.setAttribute("name",Xe),nt.setAttribute("value",Ve),$e.appendChild(nt)},ke=function($e){return $e&&$e!=="false"},Le=function($e,Xe,Ve){De(re)<=4.2&&(Ve=!0);var nt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==re||ggbHTML5LoadedCodebaseIsWebSimple&&!se)&&(nt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var ct=Xe.width,ot=Xe.height;if(Xe.disableAutoScale=Xe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xe.disableAutoScale,Xe.width!==void 0)if(De(re)<=4.4)ke(Xe.showToolBar)&&(Xe.height-=7),ke(Xe.showAlgebraInput)&&(Xe.height-=37),Xe.width<605&&ke(Xe.showToolBar)&&(Xe.width=605,ct=605);else{var qe=100;(ke(Xe.showToolBar)||ke(Xe.showMenuBar))&&(Xe.hasOwnProperty("customToolBar")&&(Xe.customToolbar=Xe.customToolBar),qe=ke(Xe.showMenuBar)?245:155),ct<qe&&(Xe.width=qe,ct=qe)}Qe.style.border="none",Qe.style.display="inline-block";for(var _e in Xe)Xe.hasOwnProperty(_e)&&_e!=="appletOnLoad"&&Qe.setAttribute("data-param-"+_e,Xe[_e]);he&&Qe.setAttribute("data-param-fontscssurl",he),Yt.resize=function(){GGBAppletUtils.responsiveResize($e,Xe)},window.addEventListener("resize",function(lt){Yt.resize()});var Re=typeof Xe.appletOnLoad=="function"?Xe.appletOnLoad:function(){};if(!Ve&&Xe.width!==void 0){Xe.hasOwnProperty("showSplash")||Qe.setAttribute("data-param-showSplash","false");var te=$e.querySelector(".applet_scaler.prerender"),de=te!==null;if(de)var Ne=te.querySelector(".ggb_preview");else{var Ne=Je(ct,ot,Xe.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=ct+"px",te.style.height=ot+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),De(re)>=5?(Xe.appletOnLoad=function(lt){var ft=$e.querySelector(".ggb_preview");ft&&ft.parentNode.removeChild(ft),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),Re(lt)},de||te.appendChild(Ne)):Qe.appendChild(Ne),te.appendChild(Qe),de||$e.appendChild(te),setTimeout(function(){Yt.resize()},1)}else{var ze=document.createElement("div");ze.className="applet_scaler",ze.style.position="relative",ze.style.display="block",ze.appendChild(Qe),$e.appendChild(ze),Xe.appletOnLoad=function(lt){Yt.resize(),Re(lt)}}function xe(lt,ft){ft&&typeof ft.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(lt,ft.appletOnLoad):renderGGBElement(lt),rt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ft)}function ve(lt,ft){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:lt,params:ft}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Tt){xe(Tt.article,Tt.params)}),html5AppletsToProcess=null)},De(re)<5&&(lt.className+=" geogebraweb")):xe(lt,ft)}if(nt){scriptLoadStarted=!0;for(var Oe=0;Oe<Qe.childNodes.length;Oe++){var We=Qe.childNodes[Oe].tagName;We==="TABLE"&&(Qe.removeChild(Qe.childNodes[Oe]),Oe--)}if(ggbHTML5LoadedScript!==null){var Ue=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ue!=null&&Ue.parentNode.removeChild(Ue)}var Ye=document.createElement("script"),st=function(){ve(Qe,Xe)};Ye.src=le+ae,ggbHTML5LoadedCodebaseIsWebSimple=se,ggbHTML5LoadedCodebaseVersion=re,ggbHTML5LoadedScript=Ye.src,rt("GeoGebra HTML5 codebase loaded: '"+le+"'.",Xe),!E&&(!z||z=="5.0")?(se?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),st()):le.requirejs?__webpack_require__.e(3861).then(function(){var lt=[__webpack_require__(40341)];st.apply(null,lt)}.bind(this)).catch(__webpack_require__.oe):(Ye.onload=st,$e.appendChild(Ye))}else ve(Qe,Xe);Xe.height=ot,Xe.width=ct},Ae=function($e,Xe,Ve){var nt=Je(Xe.width,Xe.height,Xe.borderColor,Ve),Qe=document.createElement("div");Qe.style.position="relative",Qe.style.display="block",Qe.style.width=Xe.width+"px",Qe.style.height=Xe.height+"px",Qe.className="applet_screenshot applet_scaler"+(Ve?" applet_screenshot_play":""),Qe.appendChild(nt);var ct=GGBAppletUtils.getScale(Xe,$e,Ve);Ve?($e.appendChild(Ze()),window.GGBT_wsf_view||($e.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),$e.appendChild(Qe),ct!==1&&!isNaN(ct)&&(GGBAppletUtils.scaleElement(Qe,ct),Qe.style.width=Xe.width+"px",Qe.style.height=Xe.height+"px",Qe.parentNode.style.width=Xe.width*ct+"px",Qe.parentNode.style.height=Xe.height*ct+"px"),Yt.resize=function(){Se($e,nt,Qe,Ve)},window.addEventListener("resize",function(ot){Yt.resize()}),Yt.resize()};function Se($e,Xe,Ve,nt){if($e.contains(Xe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if($e.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition($e)}var Qe=GGBAppletUtils.getScale(Ie,$e,nt);Ve.parentNode!==null&&(!isNaN(Qe)&&Qe!==1?(GGBAppletUtils.scaleElement(Ve,Qe),Ve.parentNode.style.width=Ie.width*Qe+"px",Ve.parentNode.style.height=Ie.height*Qe+"px"):(GGBAppletUtils.scaleElement(Ve,1),Ve.parentNode.style.width=Ie.width+"px",Ve.parentNode.style.height=Ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter($e),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Yt.onExitFullscreen=function($e,Xe){Xe.appendChild($e)};var Ge=function($e,Xe,Ve,nt){Ae($e,Xe,!0);for(var Qe=function(){var qe=[];for(ot=0;ot<$e.childNodes.length;ot++)qe.push($e.childNodes[ot]);if(window.GGBT_wsf_view){var _e=window.GGBT_wsf_view.renderFullScreen($e,Xe.id),Re=document.getElementById("fullscreencontainer"),te=jQuery($e).find(".fullscreencontent");te.length>0?(_e.remove(),te.attr("id","fullscreencontent").show(),jQuery(Re).append(te),window.dispatchEvent(new Event("resize"))):Le(_e,Xe,!1),window.GGBT_wsf_view.launchFullScreen(Re)}else ne=nt,Le($e,Xe,!1);if(!window.GGBT_wsf_view)for(ot=0;ot<qe.length;ot++)$e.removeChild(qe[ot])},ct=$e.getElementsByClassName("ggb_preview_play"),ot=0;ot<ct.length;ot++)ct[ot].addEventListener("click",Qe,!1),ct[ot].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload($e),Be()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ze=function(){var $e=document.createElement("div");if($e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Xe='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ve=document.createElement("style");Ve.styleSheet?Ve.styleSheet.cssText=Xe:Ve.appendChild(document.createTextNode(Xe)),document.getElementsByTagName("head")[0].appendChild(Ve)}return $e},Je=function($e,Xe,Ve,nt){var Qe=document.createElement("div");Qe.className="ggb_preview",Qe.style.position="absolute",Qe.style.zIndex="90",Qe.style.width=$e-2+"px",Qe.style.height=Xe-2+"px",Qe.style.top="0px",Qe.style.left="0px",Qe.style.overflow="hidden",Qe.style.backgroundColor="white";var ct="lightgrey";Ve!==void 0&&(Ve==="none"?ct="transparent":ct=Ve),Qe.style.border="1px solid "+ct;var ot=document.createElement("img");if(ot.style.position="relative",ot.style.zIndex="1000",ot.style.top="-1px",ot.style.left="-1px",ce!==null&&ot.setAttribute("src",ce),ot.style.opacity=.7,pe!==null){var qe,_e,Re;if(!nt){qe=document.createElement("img"),qe.style.position="absolute",qe.style.zIndex="1001",qe.style.opacity=1,ot.style.opacity=.3,_e=360,_e>$e/4*3&&(_e=$e/4*3),Re=_e/5.8,qe.setAttribute("src",pe),qe.setAttribute("width",_e),qe.setAttribute("height",Re);var te=($e-_e)/2,de=(Xe-Re)/2;qe.style.left=te+"px",qe.style.top=de+"px",Qe.appendChild(qe)}}return Qe.appendChild(ot),Qe},at=function($e){return $e=$e.toLowerCase(),$e==="html5"||$e==="screenshot"?$e:"html5"},Fe=["web","webSimple","web3d","tablet","tablet3d","phone"],Ke=function($e,Xe){if(re=$e,Xe){it(re,!0);return}var Ve=!gt;if(Ve){var nt=De(re);!isNaN(nt)&&nt<4.4&&(Ve=!1)}var Qe,ct;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var ot=re.indexOf("//");ot>0?ct=re:ot===0?ct=Qe+re:ct="https://www.geogebra.org/apps/5.2.814.0/";for(var qe in Fe)if(re.slice(Fe[qe].length*-1)===Fe[qe]||re.slice((Fe[qe].length+1)*-1)===Fe[qe]+"/"){it(ct,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ve&&!ge.is3D&&!ge.AV&&!ge.SV&&!ge.CV&&!ge.EV2&&!ge.CP&&!ge.PC&&!ge.DA&&!ge.FI&&!ge.PV&&!ke(Ie.showToolBar)&&!ke(Ie.showMenuBar)&&!ke(Ie.showAlgebraInput)&&!ke(Ie.enableRightClick)&&(!Ie.appName||Ie.appName=="classic")?ct+="webSimple/":ct+="web3d/",it(ct,!1)},it=function($e,Xe){if($e.requirejs){le=$e;return}$e.slice(-1)!=="/"&&($e+="/"),le=$e,Xe===null&&(Xe=$e.indexOf("http")===-1),x=Xe,ae="web.nocache.js",se=!1;var Ve=le.split("/");Ve.length>1&&(!Xe&&Ve[Ve.length-2]==="webSimple"?(ae="webSimple.nocache.js",se=!0):Fe.indexOf(Ve[Ve.length-2])>=0&&(ae=Ve[Ve.length-2]+".nocache.js")),Ve=$e.split("/"),re=Ve[Ve.length-3],re.substr(0,4)==="test"?re=re.substr(4,1)+"."+re.substr(5,1):(re.substr(0,3)==="war"||re.substr(0,4)==="beta")&&(re="5.0");var nt=parseFloat(re);nt!==NaN&&nt<5&&$e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+nt+" is deprecated. Using version latest instead."),Ke("5.0",Xe))},rt=function($e,Xe){window.console&&window.console.log&&(!Xe||typeof Xe.showLogging=="undefined"||Xe.showLogging&&Xe.showLogging!=="false")&&console.log($e)};Ie.material_id!==void 0?Pe(et):et();function et(){var $e=Dt;z!==null?$e=z:parseFloat($e)<5&&($e="5.0"),Ke($e,!1),E!==null&&it(E,x),be=!0}return Yt},GGBAppletUtils=function(){"use strict";function Yt(){return window.GGBT_wsf_edit!==void 0}function Dt(be,z){z!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+z+","+z+")",be.style.webkitTransform="scale("+z+","+z+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function Ie(be,z,E,ie,oe,ee){var le=null;if(ee!=null&&ee!="")for(var x=be.parentNode;x!=null;)if((" "+x.className+" ").indexOf(" "+ee+" ")>-1){le=x;break}else x=x.parentNode;var ne=0,re=0,ae=0,se=0,ce=0,pe=0,me=0;if(le)ne=le.offsetWidth,re=Math.max(ie?le.offsetWidth:0,le.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ne=Math.min(window.innerWidth,document.documentElement.clientWidth),re=Math.min(window.innerHeight,document.documentElement.clientHeight),ae=ne):(ne=window.innerWidth,re=window.innerHeight,ae=window.innerWidth),be){var he=be.getBoundingClientRect();he.left>0&&he.left<=ne&&(oe===void 0||!oe)&&(document.dir==="rtl"?(ce=ne-he.width-he.left,pe=ae<=480?10:30):(pe=he.left,ce=ae<=480?10:30),se=pe+ce)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ye=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(se=40,me=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(se=0,me=40)}}return be&&((E===void 0||!E)&&z>0&&z+se<ne?ne=z:ne-=se,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(E===void 0||!E)&&(re-=me)),{width:ne,height:re}}function ge(be,z,E,ie,oe){if(be.isScreenshoGenerator)return 1;var ee=ie!==void 0&&ie,le=be.noScaleMargin!=null&&be.noScaleMargin,x=function(ye){return ye&&ye!=="false"},ne=x(be.autoHeight),re=Ie(z,be.width,E,ne,ee&&window.GGBT_wsf_view||le,oe),ae=parseInt(re.width),se=be.width,ce=be.height;if(se===void 0){var pe=z.querySelector(".appletParameters");pe&&(se=pe.offsetWidth,ce=pe.offsetHeight)}var me=ae/se,he=ee?1:re.height/ce;return E!==void 0&&!E&&(me=Math.min(1,me),he=Math.min(1,he)),Math.min(me,he)}function gt(be,z,E){var ie=1,oe,ee=!1;if(be.hasOwnProperty("allowUpscale")&&(ee=be.allowUpscale),be.hasOwnProperty("scale")&&(ie=parseFloat(be.scale),(isNaN(ie)||ie===null||ie===0)&&(ie=1),ie>1&&(ee=!0)),z&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))oe=ge(be,z,ee,E,be.scaleContainerClass);else return ie;return ee&&(!be.hasOwnProperty("scale")||ie===1)?oe:Math.min(ie,oe)}function a(be){var z=Math.min(window.innerWidth,document.documentElement.clientWidth),E=Math.min(window.innerHeight,document.documentElement.clientHeight),ie=be.getBoundingClientRect(),oe=(z-ie.width)/2,ee=(E-ie.height)/2;ee<0&&(ee=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(oe<40?be.style.left="40px":be.style.left=oe+"px",be.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?be.style.top="40px":be.style.top=ee+"px",be.style.left=oe+"px")}function Te(be,z){var E=be.querySelector(".appletParameters");if(E){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(z.id!==E.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(E.parentElement&&/fullscreen/.test(E.parentElement.className))return;var ie=gt(z,be);Yt()&&E.setAttribute("data-param-scale",ie);for(var oe=null,ee=0;ee<be.childNodes.length;ee++)if(be.childNodes[ee].className!==void 0&&be.childNodes[ee].className.match(/^applet_scaler/)){oe=be.childNodes[ee];break}if(oe!==null&&oe.querySelector(".noscale")!==null)return;var le=z.id!==void 0?z.id:"ggbApplet",x=window[le];(x==null||!x.recalculateEnvironments)&&oe!==null&&!oe.className.match(/fullscreen/)&&(oe.parentNode.style.transform="",!isNaN(ie)&&ie!==1?(oe.parentNode.style.width=z.width*ie+"px",oe.parentNode.style.height=z.height*ie+"px",Dt(oe,ie)):(Dt(oe,1),oe.parentNode.style.width=z.width+"px",oe.parentNode.style.height=z.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&a(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(E).parents(".content-added-content"))}}return{responsiveResize:Te,isFlexibleWorksheetEditor:Yt,positionCenter:a,getScale:gt,scaleElement:Dt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Yt=n.location.search;return Yt.indexOf(J)!=-1||Yt.indexOf(K)!=-1}function q(Yt,Dt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Yt){var Dt=s[L].bindings;s[L].bindings=function(){for(var Ie=Dt?Dt():{},ge=Yt[webModule.__softPermutationId],gt=O;gt<ge.length;gt++){var a=ge[gt];Ie[a[O]]=a[P]}return Ie}};var t;function u(){return v(),t}function v(){if(!t){var Yt=o.createElement(Q);if(Yt.id=L,Yt.style.cssText=R+S,Yt.tabIndex=-1,o.body.appendChild(Yt),t=Yt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Dt=document.compatMode==U?V:W;t.write(Dt+X),t.close()}}}function w(Yt){function Dt(ge){function gt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var a=gt();if(a){ge();return}function Te(){if(!a){if(!gt())return;a=!0,ge(),o.removeEventListener&&o.removeEventListener(Z,Te,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,Te,!1);var be=setInterval(function(){Te()},$)}function Ie(ge){var gt=u(),a=gt.body,Te=gt.createElement(_);Te.language=ab,Te.crossOrigin=W,Te.src=ge,webModule.__errFn&&(Te.onerror=function(){webModule.__errFn(L,new Error(bb+ge))}),a.appendChild(Te)}Dt(function(){Ie(Yt)})}webModule.__startLoadingFragment=function(Yt){return C(Yt)},webModule.__installRunAsyncCode=function(Yt){var Dt=u(),Ie=Dt.body,ge=Dt.createElement(_);ge.language=ab,ge.text=Yt,Ie.appendChild(ge),Ie.removeChild(ge)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Yt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Yt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Yt){var Dt=c[Yt];return Dt==null?null:Dt},r=d,webModule.__errFn=e}function B(){function Yt(be){var z=be.lastIndexOf(rb);z==-1&&(z=be.length);var E=be.indexOf(sb);E==-1&&(E=be.length);var ie=be.lastIndexOf(tb,Math.min(E,z));return ie>=O?be.substring(O,ie+P):W}function Dt(be){if(!be.match(/^\w+:\/\//)){var z=o.createElement(ub);z.src=be+vb,be=Yt(z.src)}return be}function Ie(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function ge(){for(var be=o.getElementsByTagName(_),z=O;z<be.length;++z)if(be[z].src.indexOf(xb)!=-1)return Yt(be[z].src);return W}function gt(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function a(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Te=Ie();return Te==W&&(Te=ge()),Te==W&&(Te=gt()),Te==W&&a()&&(Te=Yt(o.location.href)),Te=Dt(Te),Te}function C(Yt){return Yt.match(/^\//)||Yt.match(/^[a-zA-Z]+:\/\//)?Yt:webModule.__moduleBase+Yt}function D(){var Yt=[],Dt=O,Ie=[],ge=[];function gt(be){var z=ge[be](),E=Ie[be];if(z in E)return z;var ie=[];for(var oe in E)ie[E[oe]]=oe;throw r&&r(be,ie,z),null}if(__gwt_isKnownPropertyValue=function(be,z){return z in Ie[be]},webModule.__getPropMap=function(){var be={};for(var z in Ie)Ie.hasOwnProperty(z)&&(be[z]=gt(z));return be},webModule.__computePropValue=gt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var a;try{a=Cb;var Te=a.indexOf(Db);Te!=-1&&(Dt=parseInt(a.substring(Te+P),$),a=a.substring(O,Te))}catch(be){}return webModule.__softPermutationId=Dt,C(a+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},28735:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Ax:function(){return Te},Ds:function(){return be},KI:function(){return E},SI:function(){return a},f1:function(){return gt}});var ge=Ie(74128);function gt(ie){let oe=!0;if(ie.length>0){for(let ee=0;ee<ie.length;ee++)if(ie[ee].compile_success==0||!ie[ee].compile_success){oe=!1;break}}else oe=!1;return oe}function a(ie,oe=""){let ee=[];for(let le=0;le<ie.length;le++){let x=ie[le],ne=oe?`${oe}/${x.name}`:`${x.name}`;ee.push({title:x.name,type:x.type,isLeaf:x.type!=="tree",key:ne})}return ee}function Te(ie,oe,ee){for(let le=0;le<ie.length;le++){let x=ie[le];if(x.key===oe){x.children=ee;break}x.children&&Te(x.children,oe,ee)}return ie}function be(ie,oe,ee){let le;return function(){let x=this,ne=arguments,re=function(){le=null,ee||ie.apply(x,ne)},ae=ee&&!le;clearTimeout(le),le=setTimeout(re,oe),ae&&ie.apply(x,ne)}}const z=!0,E=ge.Z.API_SERVER},16750:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return le}});var ge=Ie(59301),gt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},a=Ie(92310),Te=Ie.n(a),be=Ie(29787),z=Ie(2859),E=Ie(38147),ie=Ie(65862),oe=(x,ne,re)=>new Promise((ae,se)=>{var ce=he=>{try{me(re.next(he))}catch(ye){se(ye)}},pe=he=>{try{me(re.throw(he))}catch(ye){se(ye)}},me=he=>he.done?ae(he.value):Promise.resolve(he.value).then(ce,pe);me((re=re.apply(x,ne)).next())}),le=({data:x,className:ne,fullWidth:re,style:ae={},onClose:se,onOk:ce,showFullTools:pe,noAssociationId:me})=>{const he=(0,ge.useRef)(null),ye=(0,ge.useRef)(null),De=(0,ge.useRef)(null),Me=(0,ge.useRef)(null),[Be,Pe]=(0,ge.useState)(!1),[Ce,Ee]=(0,ge.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ge.useEffect)(()=>(De.current||(De.current=document.createElement("style"),document.head.appendChild(De.current)),x!=null&&x.visible?(document.body.setAttribute("data-custom","y-hidden"),De.current.innerHTML=" html { overflow-y: hidden; }",x!=null&&x.src&&je()):(document.body.removeAttribute("data-custom"),De.current&&(document.head.removeChild(De.current),De.current=null)),()=>{document.body.removeAttribute("data-custom"),De.current&&(document.head.removeChild(De.current),De.current=null)}),[x==null?void 0:x.visible]);const je=()=>oe(void 0,null,function*(){Pe(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Se=yield(0,ie.ZJ)(x==null?void 0:x.src);he.current.src="",he.current.src=Se,he.current.onload=function(){Ae()},Pe(!1),Ee("")}),ke=Se=>oe(void 0,null,function*(){Pe(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ge=yield(0,E.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:x.title,file:Se.dataUrl}});Ge!=null&&Ge.id&&!me?(yield(0,E.ZP)(`/api/attachments/${x.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ge==null?void 0:Ge.id,settings:JSON.stringify(Se.state)}})).status===0&&ce():Ge!=null&&Ge.id&&ce(Ge),Pe(!1),Ee("")}),Le=()=>{const Se=document.querySelector('a[href="https://markerjs.com/"]');Se&&Se.parentNode&&(Se.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Ze=>{const Je=document.querySelector(Ze.name);Je&&Je.setAttribute("title",Ze.title)})},Ae=()=>{ye.current=new z.hP(he.current),ye.current.targetRoot=Me.current,ye.current.addEventListener("render",ke),ye.current.addEventListener("beforeclose",se),pe&&(ye.current.availableMarkerTypes=ye.current.ALL_MARKER_TYPES,ye.current.uiStyleSettings.redoButtonVisible=!0,ye.current.uiStyleSettings.notesButtonVisible=!0,ye.current.uiStyleSettings.zoomButtonVisible=!0,ye.current.uiStyleSettings.zoomOutButtonVisible=!0,ye.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ye.current.uiStyleSettings,ye.current.show(),x!=null&&x.snapshotData&&ye.current.restoreState(x.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Le()},300)};return ge.createElement(ge.Fragment,null,(x==null?void 0:x.visible)&&ge.createElement(be.Z,{spinning:Be,tip:Ce,style:{position:"absolute",width:"100vw"}},ge.createElement("div",{ref:Me,className:Te()(gt.imageDimensions,ne,re?gt.fullWidth:""),style:ae},ge.createElement("img",{className:gt.img,ref:he}))))}},99298:function(Yt,Dt,Ie){"use strict";var ge=Ie(59301),gt=Ie(77019),a=Ie(5269),Te=Ie(31691),be=Ie(7939),z=Ie(95097),E=Ie(96408),ie=Ie(48136),oe=Ie(59301);const ee=(0,ge.forwardRef)(({callback:le,showSaveButton:x,value:ne=""},re)=>{const ae=(0,ge.useRef)(),se=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ce=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],pe=ye=>{ae.current.setValue(ae.current.getValue()+" "+ye.value+" ")},me=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:oe.createElement(gt.Z,{className:E.Z.lists,gutter:[10,10]},se.map((ye,De)=>oe.createElement(a.Z,{flex:"110px",className:E.Z.item},oe.createElement("div",null,oe.createElement(z.Z,{value:`$$${ye.value}$$`}),ye.name),oe.createElement("div",{className:E.Z.children},ye.children.map((Me,Be)=>oe.createElement("div",{key:Be},oe.createElement("h1",null,Me.name),oe.createElement(gt.Z,{gutter:[10,10]},Me.data.map((Pe,Ce)=>oe.createElement(a.Z,{key:Ce,onClick:()=>pe(Pe),className:E.Z.diamond},oe.createElement(z.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:oe.createElement(gt.Z,{className:E.Z.lists,gutter:[10,10]},ce.map((ye,De)=>oe.createElement(a.Z,{flex:"110px",className:E.Z.item},oe.createElement("div",null,oe.createElement(z.Z,{value:"`$$"+ye.value+"$$`"}),ye.name),oe.createElement("div",{className:E.Z.children},ye.children.map((Me,Be)=>oe.createElement("div",{key:Be},Me.name&&oe.createElement("h1",null,Me.name),oe.createElement(gt.Z,{gutter:[10,10]},Me.data.map((Pe,Ce)=>oe.createElement(a.Z,{key:Ce,onClick:()=>pe(Pe),className:E.Z.diamond},oe.createElement(z.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))}],he=()=>{var ye=document.createElement("div");ye.innerHTML=ae.current.getValue();var De=ye.innerText;return le&&le(De),De};return(0,ge.useImperativeHandle)(re,()=>({getData:he})),oe.createElement("div",{className:E.Z.mathWrap},oe.createElement(Te.default,{defaultActiveKey:"1",items:me}),oe.createElement("math-field",{locale:"zh_cn",className:E.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ae,style:{width:800,marginTop:30,fontSize:18}},ne||""),x&&oe.createElement("div",{className:E.Z.button},oe.createElement(be.ZP,{size:"large",onClick:he,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Dt.Z=ee},2524:function(Yt,Dt,Ie){"use strict";var ge=Ie(59301),gt=Ie(93314),a=Ie(7939),Te=Object.defineProperty,be=Object.defineProperties,z=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ee=(re,ae,se)=>ae in re?Te(re,ae,{enumerable:!0,configurable:!0,writable:!0,value:se}):re[ae]=se,le=(re,ae)=>{for(var se in ae||(ae={}))ie.call(ae,se)&&ee(re,se,ae[se]);if(E)for(var se of E(ae))oe.call(ae,se)&&ee(re,se,ae[se]);return re},x=(re,ae)=>be(re,z(ae));const ne=({img:re,buttonProps:ae={},styles:se={},customText:ce,ButtonText:pe,ButtonClick:me,Buttonclass:he,ButtonTwo:ye,imgStyles:De,loading:Me=!1,className:Be=""})=>ge.createElement("section",{className:`tc animated fadeIn ${Be}`,style:le({color:"#999",margin:"100px auto",visibility:Me?"hidden":"visible"},se)},ge.createElement("img",{src:re||gt,style:x(le({},De),{pointerEvents:"none",userSelect:"none"})}),ge.createElement("p",{className:"mt20 font14"},ce||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),pe&&ge.createElement(a.ZP,le({className:he,onClick:me},ae),pe),ye&&ye);Dt.Z=ne},52918:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return he}});var ge=Ie(59301),gt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},a=Ie(7939),Te=Ie(70557),be=Ie(50258),z=Ie(25399),E=Ie(65862),ie=Ie(87513),oe=Ie(2524),ee=Ie(74128),le=Ie(7310),x=Ie(59301),ne=Object.defineProperty,re=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ce=(ye,De,Me)=>De in ye?ne(ye,De,{enumerable:!0,configurable:!0,writable:!0,value:Me}):ye[De]=Me,pe=(ye,De)=>{for(var Me in De||(De={}))ae.call(De,Me)&&ce(ye,Me,De[Me]);if(re)for(var Me of re(De))se.call(De,Me)&&ce(ye,Me,De[Me]);return ye},me=(ye,De,Me)=>new Promise((Be,Pe)=>{var Ce=ke=>{try{je(Me.next(ke))}catch(Le){Pe(Le)}},Ee=ke=>{try{je(Me.throw(ke))}catch(Le){Pe(Le)}},je=ke=>ke.done?Be(ke.value):Promise.resolve(ke.value).then(Ce,Ee);je((Me=Me.apply(ye,De)).next())}),he=({editOffice:ye="view",data:De,issaver:Me,onSaver:Be,theme:Pe,type:Ce,filename:Ee,monacoEditor:je,className:ke,style:Le,close:Ae,onClose:Se,hasMask:Ge,disabledDownload:Ze,onImgDimensions:Je,showNodata:at,recordInfo:Fe})=>{const[Ke,it]=(0,ge.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[rt,et]=(0,ge.useState)(""),[$e,Xe]=(0,ge.useState)(),Ve=window.ENV==="build"?"/react/build":"",nt=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,ct=10*(1024*1024),ot=(0,ge.useRef)();De!=null&&De.startsWith("/api")&&Ce!=="txt"&&(De=ee.Z.API_SERVER+De);const qe=Ne=>Ne.substring(Ne.lastIndexOf("/")+1).split(".").pop();Ee&&je&&(je.filename=Ee),(0,ge.useEffect)(()=>{var Ne,ze;const xe=(ze=(Ne=document.cookie)==null?void 0:Ne.replace(/\s/g,""))==null?void 0:ze.split(";");xe==null||xe.map(ve=>{let Oe=ve.split("=");Oe[0]==="_educoder_session"&&et(Oe[1])})},[]),(0,ge.useEffect)(()=>{Ce==="office"&&(De.indexOf("bigfilescdn.")>-1||De.indexOf("bigfiles1")>-1?Xe({url:De,fileType:qe(De),model:De.indexOf("model=edit")?"edit":"view"}):Re())},[Ce,De]);function _e(Ne){return me(this,null,function*(){Ne.data.type==="pdfdata"&&(Be(Ne.data.data),window.removeEventListener("message",_e,!1)),console.log("mess---:",Ne.data)})}const Re=()=>me(void 0,null,function*(){console.log("data:",De);let Ne=De;De.startsWith("http")||(Ne=location.origin+Ne);let ze=new URL(Ne).pathname.split("/").pop();const xe=yield(0,ie.gJ)({attachment_id:ze});xe.url=nt+xe.url,Xe(xe)}),te=()=>{if(De.startsWith("http")||De.startsWith("blob:")){de();return}(0,E.Sv)(Ee||"educoder",De,Ee)},de=()=>{Fe&&(0,le.fc)({id:Fe==null?void 0:Fe.id,watch_type:1,course_id:Fe==null?void 0:Fe.course_id}),(0,E.Nd)(Ee||"educoder",decodeURIComponent(De))};return x.createElement("div",{style:pe({},Le||{}),className:`${Ge&>.bgBlack} ${Ce?gt.wrp:"hide"}`},Ae&&x.createElement("div",{className:gt.close,ref:ot},!!Je&&x.createElement(z.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ot.current},x.createElement("span",{onClick:()=>{Se(),Je()}},x.createElement("i",{className:"icon-yulanpizhu"}))),!Ze&&x.createElement(z.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ot.current},x.createElement("span",{onClick:de},x.createElement("i",{className:"icon-quxiaozhiding"}))),Me&&x.createElement(z.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ot.current},x.createElement("span",{className:"",onClick:()=>{const Ne=document.getElementById("pdfiframe");window.addEventListener("message",_e,!1),setTimeout(()=>{Ne.contentWindow.postMessage("getData","*")},300)}},x.createElement("i",{className:"icon-baocun"}))),x.createElement(z.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ot.current},x.createElement("span",{className:"",onClick:()=>{Se()}},x.createElement("i",{className:"icon-guanbi1"})))),x.createElement("div",{className:`${gt[ke]} ${ke} ${gt.monaco} ${Ce==="txt"?"show":"hide"}`},Ce==="txt"&&x.createElement(x.Fragment,null,x.createElement(be.ZP,pe({},je)))),Ce==="audio"&&x.createElement("audio",{src:`${(De==null?void 0:De.indexOf("http://"))>-1||(De==null?void 0:De.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${De}`,autoPlay:!0}),Ce==="video"&&x.createElement(x.Fragment,null,(De==null?void 0:De.indexOf("http"))>-1?x.createElement("video",{controls:!0,src:`${De}`,autoPlay:!0}):x.createElement("video",{controls:!0,src:`data:video/mp4;base64,${De}`,autoPlay:!0})),Ce==="office"&&$e&&x.createElement("iframe",{src:`${Ve}/office.html?key=${$e.key}&url=${btoa($e.url)}&callbackUrl=${nt+($e.callbackUrl||"")}&fileType=${$e.fileType}&title=${$e.title||""}&model=${ye}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!Ze}`}),Ce==="html"&&x.createElement("iframe",{src:De+"&disposition=inline"}),Ce==="pdf"&&x.createElement("iframe",{id:"pdfiframe",src:`${Ve}/js/pdf/index.html?filename=${Ee||"educoder.pdf"}&url=${encodeURIComponent(De)}&disabledDownload=${!!Ze}&model=${ye}`}),Ce==="image"&&x.createElement("img",{src:`${(De==null?void 0:De.indexOf("http://"))>-1||(De==null?void 0:De.indexOf("https://"))>-1?"":"data:image/png;base64,"}${De}`}),(Ce==="other"||Ce==="download")&&x.createElement(x.Fragment,null,at?x.createElement(oe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:x.createElement(a.ZP,{icon:x.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Ze},"\u4E0B\u8F7D")}):x.createElement(a.ZP,{type:"primary",size:"middle",onClick:te,disabled:Ze},x.createElement(Te.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ce==="flowChart"&&x.createElement("div",{className:"embed"},x.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${De||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},3969:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{h:function(){return ae},x:function(){return se}});var ge=Ie(25374),gt=Ie(58e3),a=Ie(95097),Te=Ie(59301),be=Object.defineProperty,z=Object.defineProperties,E=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,le=(ce,pe,me)=>pe in ce?be(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:me}):ce[pe]=me,x=(ce,pe)=>{for(var me in pe||(pe={}))oe.call(pe,me)&&le(ce,me,pe[me]);if(ie)for(var me of ie(pe))ee.call(pe,me)&&le(ce,me,pe[me]);return ce},ne=(ce,pe)=>z(ce,E(pe)),re=(ce,pe)=>{var me={};for(var he in ce)oe.call(ce,he)&&pe.indexOf(he)<0&&(me[he]=ce[he]);if(ce!=null&&ie)for(var he of ie(ce))pe.indexOf(he)<0&&ee.call(ce,he)&&(me[he]=ce[he]);return me};const ae=ce=>{var pe=ce,{value:me,onChange:he,scrollId:ye}=pe,De=re(pe,["value","onChange","scrollId"]);return Te.createElement("div",{id:ye||""},Te.createElement(ge.Z,ne(x({},De),{defaultValue:me,onChange:(Me,Be)=>{Be!=null&&Be.length?he(Me,Be):he(Me)}})))},se=({value:ce,onChange:pe,placeholder:me,height:he=140,isEdit:ye,miniToolbar:De,watch:Me=!0})=>ye?Te.createElement(ge.Z,{watch:Me,isFocus:!0,height:he||void 0,placeholder:me,defaultValue:ce,onChange:pe,miniToolbar:De}):Te.createElement("div",{style:{cursor:"pointer"}},ce?Te.createElement(a.Z,{className:gt.Z.inputBorder,value:ce}):Te.createElement("div",{className:`${gt.Z.inputBorder} ${gt.Z.placeholder} inputBorderError`},me))},95097:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{z:function(){return je},Z:function(){return ke}});var ge=Ie(59301),gt=Ie(48850),a=Ie(49142),Te=Ie(64018),be=Ie(17030),z=Ie(74128),E=Ie(65862),ie=Ie(15342),oe=Ie(44104),ee=Ie(7939),le=Ie(1012),x=Ie(52918),ne=Ie(59301),ae=({html:Le})=>{const Ae=(0,ge.useRef)(null),Se=(0,ge.useRef)(null),Ge=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 56px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,ge.useEffect)(()=>{const Ze=Ae.current.attachShadow({mode:"open"});Se.current=document.createElement("div"),Se.current.className="markdown-body",Se.current.innerHTML=Le,Ze.appendChild(Se.current);const Je=document.createElement("style");return Je.textContent=Ge,Ze.appendChild(Je),()=>{Ze.innerHTML=""}},[]),(0,ge.useEffect)(()=>{Se.current&&(Se.current.innerHTML=Le)},[Le]),ne.createElement("div",{ref:Ae})};function se(Le){const Ae=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],Se=new RegExp(`\\b(${Ae.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Le.replace(Se,"").trim()}var ce={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},pe=Object.defineProperty,me=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,De=(Le,Ae,Se)=>Ae in Le?pe(Le,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Se}):Le[Ae]=Se,Me=(Le,Ae)=>{for(var Se in Ae||(Ae={}))he.call(Ae,Se)&&De(Le,Se,Ae[Se]);if(me)for(var Se of me(Ae))ye.call(Ae,Se)&&De(Le,Se,Ae[Se]);return Le};const Be="@\u2581\u2581@",Pe="@\u2581@",Ce=/<pre[^>]*>/g;function Ee(Le){let Ae=document.createElement("div");return Ae.innerHTML=Le,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const je=(Le,Ae)=>{Le=Le||"";const Se=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ge=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Je=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?Le.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Se,(at,Fe,Ke,it,rt,et,$e)=>{const Xe=Fe||it||et,Ve=Ke||rt||$e||"?";return z.Z.API_SERVER+"/api/attachments/"+Xe+Ve+"&t="+(0,E.Jn)(Xe,Date.now())+(at.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Le=Le.replace(Je,(at,Fe,Ke,it,rt,et,$e)=>{const Xe=Fe||it||et,Ve=Ke||rt||$e||"?";return z.Z.API_SERVER+"/attachments/download/"+Xe+Ve+"&t="+(0,E.Jn)(Xe,Date.now())+(at.indexOf(")")>-1?")":"&")}).replace(Se,(at,Fe,Ke,it,rt,et,$e)=>{const Xe=Fe||it||et,Ve=Ke||rt||$e||"?";return z.Z.API_SERVER+"/api/attachments/"+Xe+Ve+"&t="+(0,E.Jn)(Xe,Date.now())+(at.indexOf(")")>-1?")":"&")}).replace(Ge,(at,Fe,Ke,it,rt)=>{const et=Fe||it,$e=Ke||rt||"";return'"'+z.Z.API_SERVER+"/api/attachments/"+et+$e+et+$e+"&t="+(0,E.Jn)(et,Date.now())}).replace(Ze,(at,Fe,Ke,it,rt)=>{const et=Fe||it,$e=Ke||rt||"";return"("+z.Z.API_SERVER+"/files/uploads/"+et+$e+et+$e+"&t="+(0,E.Jn)(et,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),Le)};var ke=({value:Le="",edit:Ae=!1,className:Se,showTextOnly:Ge,showLines:Ze,style:Je={},stylesPrev:at={},highlightKeywords:Fe,showProgramFill:Ke,isProgramFill:it,disabledFill:rt=!1,programFillValue:et,openEditor:$e=()=>{},onFillChange:Xe=Qe=>{},onFillBlur:Ve=()=>{},onFillFocus:nt=()=>{}})=>{let Qe=se(String(Le||""));const ct=(0,ge.useRef)(),ot=(0,ge.useRef)(),[qe,_e]=(0,ge.useState)(""),[Re,te]=(0,ge.useState)("office"),[de,Ne]=(0,ge.useState)([]),ze=(0,ge.useRef)("a"+(0,le.Z)()),xe={},ve=xt=>/<style[\s\S]*?>/i.test(xt||""),Oe=(xt,jt,At)=>{const ht=document.createElement(xt===Pe?"input":"textarea");ht.style.width="100%",ht.style.height=xt===Pe?"40px":"151px",ht.rows=5,ht.spellcheck=!1,ht.name="edu-program-fill",ht.placeholder="\u8BF7\u8F93\u5165",ht.dataset.id=jt;const Ct=Object.keys(xe).length;return xe[Ct]=ht,`<span class="edu-program-fill-wrap ${xt===Pe?"":"show"}" style="width:${xt===Pe?"600px":"100%"}" title=${At||""}><span>${ht.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function We(xt){return xt=xt.replace(/!\[.*?\]\(.*?\)/g,""),xt=xt.replace(/\[.*?\]\(.*?\)/g,""),xt=xt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),xt=xt.replace(/<embed.*?>/g,""),xt=xt.replace(/<img.*?>/g,""),xt=xt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),xt=xt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),xt=xt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),xt=xt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),xt}const Ue=xt=>!Ge&&ve(Qe)?xt:xt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(jt,At){let ht=At.replace(/(\n|\r)/g,"").split("}"),Ct=[];return ht.map($t=>{$t!=""&&Ct.push(`.${ze.current} ${$t}`)}),`<style>${Ct.join("}")}</style>`}),Ye=(0,ge.useMemo)(()=>{try{const ht=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ct=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$t=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Xt=/\(\/attachments\/download\//g;Qe=Qe.replace(Xt,"("+z.Z.API_SERVER+"/attachments/download/").replace(ht,"("+z.Z.API_SERVER+"/api/attachments/").replace(Ct,'"'+z.Z.API_SERVER+"/api/attachments/").replace($t,'"'+z.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),ct.current.style.display="none"}catch(ht){}if(Ke){let ht=-1;return Qe=Qe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ct,$t,Xt){var vt;return++ht,Oe(Ct,ht,(vt=et==null?void 0:et[ht])==null?void 0:vt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ue(Qe||"")}</pre>`}let xt=Ue(Qe);xt=(0,a.ZP)(xt);const jt=(0,a.ez)();Qe.match(/\[TOC\]/)&&(xt=xt.replace("<p>[TOC]</p>",(0,a.Qv)()),(0,a.Iy)()),xt=xt.replace(/(__special_katext_id_\d+__)/g,(ht,Ct)=>{const{type:$t,expression:Xt}=jt[Ct];return(0,ie.renderToString)(Ee(Xt)||"",{displayMode:$t==="block",throwOnError:!1,output:"html"})}),xt=xt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,a.AL)();const At=document.createElement("div");if(At.innerHTML=xt,Ge)return At.innerText;if(Fe){const ht=Fe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Tt(At,ht),At.innerHTML}return setTimeout(()=>yt(),500),At.innerHTML},[Qe,Fe]);(0,ge.useEffect)(()=>{St.current&&St.current.querySelectorAll(["input","textarea"]).forEach(jt=>{jt.oninput=st,jt.onblur=lt,jt.onfocus=ft})},[de]),(0,ge.useEffect)(()=>{var xt,jt,At,ht,Ct;if(et!=null&&et.length)try{const $t=St.current.querySelectorAll(".edu-program-fill-score"),Xt=St.current.querySelectorAll('[name="edu-program-fill"]');for(const[vt,Pt]of Xt.entries())Pt.value=((xt=et==null?void 0:et[vt])==null?void 0:xt.value)||"",((jt=et==null?void 0:et[vt])==null?void 0:jt.type)==="warning"?Pt.className="program-fill-warning":((At=et==null?void 0:et[vt])==null?void 0:At.type)==="success"?Pt.className="program-fill-success":Pt.className="";for(const[vt,Pt]of $t.entries())Pt.innerHTML=(ht=et==null?void 0:et[vt])!=null&&ht.score?`${(Ct=et==null?void 0:et[vt])==null?void 0:Ct.score}\u5206`:"";Ne(et)}catch($t){console.log($t,"error")}},[et]);const st=xt=>{de[xt.target.dataset.id]=de[xt.target.dataset.id]||{},de[xt.target.dataset.id].value=xt.target.value,Ne([...de]),Xe(de,xt.target.dataset.id)},lt=xt=>{de[xt.target.dataset.id]=de[xt.target.dataset.id]||{},de[xt.target.dataset.id].value=xt.target.value,Ne([...de]),Ve(de,xt.target.dataset.id)},ft=xt=>{de[xt.target.dataset.id]=de[xt.target.dataset.id]||{},de[xt.target.dataset.id].value=xt.target.value,Ne([...de]),nt(de,xt.target.dataset.id)};function Tt(xt,jt){return xt.childNodes.forEach(At=>{var ht;if(At.childNodes.length>0)Tt(At,jt);else if(At.nodeName!=="IMG")if(At.innerHTML)At.innerHTML=(ht=At.innerHTML)==null?void 0:ht.replace(new RegExp(jt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Ct=document.createElement("span");Ct.innerHTML=At.textContent.replace(new RegExp(jt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),At.replaceWith(Ct)}})}const St=(0,ge.useRef)();a.jb.WebkitLineClamp=Ze,Ze&&(Je=Me(Me({},Je),a.jb));function Ot(xt){let jt=xt.target;if(jt.tagName.toUpperCase()==="A"){let At=jt.getAttribute("href");if(At.indexOf("office")>-1)xt.preventDefault(),_e(At),te("office");else if(At.indexOf("application/pdf")>-1)xt.preventDefault(),_e(At),te("pdf");else if(At.indexOf("text/html")>-1)xt.preventDefault(),_e(At),te("html");else if(At.startsWith("#")){xt.preventDefault();let ht=document.getElementById(At.replace("#",""));ht&&ht.scrollIntoView(!0)}}}const yt=()=>{var xt;const jt=(xt=St.current)==null?void 0:xt.querySelectorAll("video");jt==null||jt.forEach(At=>{if(At.oncontextmenu=()=>!1,At.src.indexOf(".m3u8")>-1&&!At.canPlayType("application/vnd.apple.mpegurl")){if(be.ZP.isSupported()){var ht=new be.ZP;ht.loadSource(At.src),ht.attachMedia(At)}}})};(0,ge.useEffect)(()=>{if(St.current&&Ye&&Ye.match(Ce)&&window.PR.prettyPrint(),St.current)return St.current.addEventListener("click",Ot),()=>{var xt;(xt=St.current)==null||xt.removeEventListener("click",Ot),(0,a.AL)(),(0,a.Iy)()}},[Ye,St.current,Ot]);const Mt=xt=>{xt.target.nodeName==="IMG"&&xt.target.className.indexOf("draw-flowchart")>-1?(ct.current.style.zIndex=1,ct.current.style.display="flex",ct.current.style.width=xt.target.clientWidth+"px",ct.current.style.height=xt.target.clientHeight+"px",ct.current.style.top=xt.target.offsetTop+"px",ct.current.style.left=xt.target.offsetLeft+"px",xt.target.id&&(ot.current=xt.target.id)):ct.current.style.display="none"},Et=()=>{ct.current.style.display="none"};return(0,ge.useEffect)(()=>{var xt;const jt=At=>{At.preventDefault(),At.clipboardData.setData("text",window.getSelection().toString())};return(xt=St.current)==null||xt.addEventListener("copy",jt),()=>{var At;(At=St.current)==null||At.removeEventListener("copy",jt)}},[St.current]),ge.createElement("div",{style:{position:"relative"},onMouseLeave:Et},Ge&&ge.createElement("div",{ref:St,className:`${ce.mdBody} `},Ye),!Ge&&!ve(Ye)&&ge.createElement("div",{ref:St,style:Me({},Je),onMouseOver:Mt,className:`${Se||""} ${rt?"disabled-fill":""} markdown-body ${ce.mdBody} ${ze.current}`,dangerouslySetInnerHTML:{__html:Ye}}),!Ge&&ve(Ye)&&ge.createElement(ae,{html:Ye}),ge.createElement("div",{ref:ct,className:`${ce.button} ${Ae?"":ce.previewFlowChart}`},ge.createElement(oe.Z,null,ge.createElement(ee.ZP,{onClick:()=>{Ae?$e(ot.current):(_e(ot.current),te("flowChart"))}},Ae?"\u7F16\u8F91":"\u9884\u89C8"))),ge.createElement(x.Z,{close:!0,data:qe,type:qe!=null&&qe.length?Re:"",style:Me({},at),onClose:()=>_e("")}))}},83845:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{cT:function(){return Ce},pe:function(){return Me}});var ge=Ie(59301),gt=Ie(94968),a=Ie(6767),Te=Ie(38147),be=Ie(28209),z=Ie.n(be),E=Ie(1012),ie=Ie(65582),oe=Ie(47257),ee=Ie.n(oe),le=Object.defineProperty,x=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ce=(je,ke,Le)=>ke in je?le(je,ke,{enumerable:!0,configurable:!0,writable:!0,value:Le}):je[ke]=Le,pe=(je,ke)=>{for(var Le in ke||(ke={}))ae.call(ke,Le)&&ce(je,Le,ke[Le]);if(re)for(var Le of re(ke))se.call(ke,Le)&&ce(je,Le,ke[Le]);return je},me=(je,ke)=>x(je,ne(ke)),he=(je,ke)=>{var Le={};for(var Ae in je)ae.call(je,Ae)&&ke.indexOf(Ae)<0&&(Le[Ae]=je[Ae]);if(je!=null&&re)for(var Ae of re(je))ke.indexOf(Ae)<0&&se.call(je,Ae)&&(Le[Ae]=je[Ae]);return Le},ye=(je,ke,Le)=>new Promise((Ae,Se)=>{var Ge=at=>{try{Je(Le.next(at))}catch(Fe){Se(Fe)}},Ze=at=>{try{Je(Le.throw(at))}catch(Fe){Se(Fe)}},Je=at=>at.done?Ae(at.value):Promise.resolve(at.value).then(Ge,Ze);Je((Le=Le.apply(je,ke)).next())});const{Dragger:De}=gt.default,Me=je=>{const ke="bf3c199c2470cb477d907b1e0917c17b",Le="5183666c72eec9e4";var Ae=z().enc.Utf8.parse(ke);let Se=z().enc.Utf8.parse(Le);var Ge=z().AES.decrypt(je,Ae,{iv:Se,mode:z().mode.CBC});return Ge.toString(z().enc.Utf8)};let Be;const Pe=je=>ye(void 0,[je],function*({identifier:ke,oldFilename:Le,newFilename:Ae}){var Se,Ge,Ze,Je,at,Fe;const Ke=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});Ke.data=JSON.parse(Me(Ke.data));const it=new OSS({endpoint:(Se=Ke==null?void 0:Ke.data)==null?void 0:Se.end_point,region:(Ge=Ke==null?void 0:Ke.data)==null?void 0:Ge.region,accessKeyId:(Ze=Ke==null?void 0:Ke.data)==null?void 0:Ze.access_key_id,accessKeySecret:(Je=Ke==null?void 0:Ke.data)==null?void 0:Je.access_key_secret,bucket:(at=Ke==null?void 0:Ke.data)==null?void 0:at.bucket,stsToken:(Fe=Ke==null?void 0:Ke.data)==null?void 0:Fe.security_token});return new Promise((rt,et)=>{console.log(11111,`${ke}/${Le}`,`${ke}/${Ae}`,Ke.data),it.copy(`/${ke}/${Le}`,`/${ke}/${Ae}`).then($e=>{console.log("\u62F7\u8D1D\u6210\u529F",$e)}).catch($e=>{console.log($e)})})}),Ce=(je,ke,Le)=>ye(void 0,null,function*(){var Ae,Se,Ge,Ze,Je,at;ke.file_name=je.name;const Fe=yield(0,Te.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Me(Fe.data)),Fe.data=JSON.parse(Me(Fe.data));const Ke=je.name.split(".");Ke.pop();const it=ke.realFileName?Ke.join(""):(0,E.Z)(),rt=new(ee())({endpoint:(Ae=Fe==null?void 0:Fe.data)==null?void 0:Ae.end_point,region:(Se=Fe==null?void 0:Fe.data)==null?void 0:Se.region,accessKeyId:(Ge=Fe==null?void 0:Fe.data)==null?void 0:Ge.access_key_id,accessKeySecret:(Ze=Fe==null?void 0:Fe.data)==null?void 0:Ze.access_key_secret,bucket:(Je=Fe==null?void 0:Fe.data)==null?void 0:Je.bucket,stsToken:(at=Fe==null?void 0:Fe.data)==null?void 0:at.security_token});return new Promise((et,$e)=>{var Xe;rt.multipartUpload(`${it}`,new Blob([je],{type:je.type}),me(pe({timeout:200*1e3,partSize:102400},Le),{callback:{url:(Xe=Fe==null?void 0:Fe.data)==null?void 0:Xe.callback_url,host:Fe==null?void 0:Fe.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Te.rz)(ke)}})).then(function(Ve){var nt;je.response=(nt=Ve.data)==null?void 0:nt.data,et(Ve==null?void 0:Ve.data)}).catch(function(Ve){$e(Ve),console.log("err:",Ve)})})}),Ee=je=>{var ke=je,{user:Le,cancelUpload:Ae}=ke,Se=he(ke,["user","cancelUpload"]);const[Ge,Ze]=(0,ge.useState)([]);let[Je,at]=(0,ge.useState)();const Fe={onRemove:it=>{Ze([...Ge.filter(rt=>rt.name!==it.name)]),Se.onChange(Ge.filter(rt=>rt.name!==it.name))},disabled:Se.disabled,multiple:!0,fileList:Ge==null?void 0:Ge.map(it=>it.file),customRequest:()=>{},beforeUpload:it=>ye(void 0,null,function*(){let rt=Se.maxSize||1073741824;if(Ge.filter(et=>et.name===it.name).length){a.ZP.info(`${it.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(it==null?void 0:it.size)>rt?(a.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${rt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ge.push({name:it.name,file:it}),Ze([...Ge]),Se.onChange(Ge),!1)})},Ke=(it,rt)=>ye(void 0,null,function*(){var et,$e,Xe,Ve,nt,Qe;rt.file_name=it.name;const ct=it.name,ot=yield(0,Te.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(ot.data=JSON.parse(Me(ot.data)),(ot==null?void 0:ot.status)!==0){Ge[Ge.findIndex(Re=>Re.name===ct)].status="error",Ge[Ge.findIndex(Re=>Re.name===ct)].file.status="error",Se.onChange(Ge),a.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Je=new(ee())({endpoint:(et=ot==null?void 0:ot.data)==null?void 0:et.end_point,region:($e=ot==null?void 0:ot.data)==null?void 0:$e.region,accessKeyId:(Xe=ot==null?void 0:ot.data)==null?void 0:Xe.access_key_id,accessKeySecret:(Ve=ot==null?void 0:ot.data)==null?void 0:Ve.access_key_secret,bucket:(nt=ot==null?void 0:ot.data)==null?void 0:nt.bucket,stsToken:(Qe=ot==null?void 0:ot.data)==null?void 0:Qe.security_token}),console.log(it,"file"),at(Je);const qe=it.name.split(".");qe.pop();const _e=ct.indexOf(".")>-1?rt.realFileName?qe.join("."):(0,E.Z)():ct;return new Promise((Re,te)=>{var de;try{Je.multipartUpload(`${Se.identifier}/${_e}${ct.indexOf(".")>-1?"."+ct.split(".").pop():""}`,new Blob([it.file],{type:it.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ne,ze,xe)=>{try{console.log("\u8FDB\u5EA6",Ne,ze,xe);const ve=Ge.findIndex(Oe=>Oe.name===ct);Ge[ve].file.percent=Ne*100,Ge[ve].tempCheckpoint=ze,Ze([...Ge])}catch(ve){}},checkpoint:Ge[Ge.findIndex(Ne=>Ne.name===ct)].tempCheckpoint,callback:{customValue:{id:ct+""},url:(de=ot==null?void 0:ot.data)==null?void 0:de.callback_url,host:ot==null?void 0:ot.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Te.rz)(rt)}}).then(function(Ne){var ze,xe,ve;const Oe=Ge.findIndex(Ue=>Ue.name===ct);let We="done";if(((ze=Ne.data)==null?void 0:ze.status)===0){it.response=(xe=Ne.data)==null?void 0:xe.data;const Ue=Ge.findIndex(Ye=>Ye.name===ct);Ge[Ue].status="done",Ge[Ue].file.status="done"}else a.ZP.warning((ve=Ne.data)==null?void 0:ve.message),We="error";Ge[Oe].status=We,Ge[Oe].file.status=We,Se.onChange(Ge),Re(Ne==null?void 0:Ne.data)}).catch(function(Ne){Ge[Ge.findIndex(ze=>ze.name===ct)].status="error",Ge[Ge.findIndex(ze=>ze.name===ct)].file.status="error",a.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Ze([...Ge]),Se.onChange(Ge),te(Ne),console.log("err:",Ne)})}catch(Ne){}})});return(0,ge.useEffect)(()=>{Ge.every(it=>it==="done"||it==="error")&&Se.onComplete(Ge)},[Ge]),(0,ge.useEffect)(()=>{Ae&&(Je==null||Je.cancel())},[Ae]),(0,ge.useEffect)(()=>{Se.uploading&&Ge.map(it=>ye(void 0,null,function*(){var rt;if((!it.status||it.status==="error")&&!Ae){it.status="uploading",it.file.status="uploading";const et=yield Ke(it,{login:(rt=Le==null?void 0:Le.userInfo)==null?void 0:rt.login,container_type:Se.container_type,container_id:Se.container_id,description:Se.description,realFileName:Se.realFileName})}}))},[Se.uploading]),ge.createElement(De,me(pe({},Fe),{height:Se.height,className:Se.className}),ge.createElement("p",{className:"ant-upload-hint"},Se.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Dt.ZP=(0,ie.connect)(({loading:je,globalSetting:ke,user:Le})=>({globalSetting:ke,loading:je.models.competitions,user:Le}))(Ee)},85533:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{h:function(){return ye}});var ge=Ie(59301),gt=Ie(82326),a=Ie(28284),Te=Ie(7939),be=Ie(89780),z=Ie.n(be),E=Ie(45559),ie=Ie(42313),oe=Object.defineProperty,ee=Object.defineProperties,le=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ae=(De,Me,Be)=>Me in De?oe(De,Me,{enumerable:!0,configurable:!0,writable:!0,value:Be}):De[Me]=Be,se=(De,Me)=>{for(var Be in Me||(Me={}))ne.call(Me,Be)&&ae(De,Be,Me[Be]);if(x)for(var Be of x(Me))re.call(Me,Be)&&ae(De,Be,Me[Be]);return De},ce=(De,Me)=>ee(De,le(Me));const pe=gt.default.Option,me={labelCol:{span:4},wrapperCol:{span:20}},he={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Dt.Z=({callback:De,onCancel:Me})=>{const[Be,Pe]=(0,ge.useState)("python");function Ce(je){Pe(he[je][1])}function Ee(je){De(je)}return ge.createElement(a.default,ce(se({},me),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),ge.createElement(a.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ge.createElement(gt.default,{getPopupContainer:je=>je.parentNode,onChange:Ce},Object.keys(he).map(je=>ge.createElement(pe,{key:je,value:je},he[je][0])))),ge.createElement(a.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ge.createElement(ye,{mode:Be})),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(Te.ZP,{type:"ghost",onClick:Me},"\u53D6\u6D88")))};function ye({value:De,onChange:Me,mode:Be,options:Pe={}}){const Ce=(0,ge.useRef)(),[Ee,je]=(0,ge.useState)();return(0,ge.useEffect)(()=>{if(Ee){let ke=function(Le){const Ae=Le.getValue();Me&&Me(Ae)};return Ee.on("change",ke),()=>{Ee.off("change",ke)}}},[Ee,Me]),(0,ge.useEffect)(()=>{Ee&&Ee.setOption("mode",Be)},[Ee,Be]),(0,ge.useEffect)(()=>{Ee&&(De!==Ee.getValue()||De==="")&&setTimeout(()=>{Ee.setValue(De||"")},300)},[Ee,De]),(0,ge.useEffect)(()=>{if(Ce.current&&!Ee){const ke=z().fromTextArea(Ce.current,se({mode:Be,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Pe));je(ke)}},[Ce.current,Ee]),ge.createElement("div",{className:"my-codemirror-container"},ge.createElement("textarea",{ref:Ce}))}},25374:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return Qt}});var ge=Ie(59301),gt=Ie(65582),a=Ie(89780),Te=Ie.n(a),be=Ie(76374),z=Ie(45559),E=Ie(6313),ie=Ie(25717),oe=Ie(99498),ee=Ie(25419),le=Ie(67549),x=Ie(95097),ne=({value:Vt="",className:rr,showTextOnly:ar,showLines:vr,style:hr={}})=>{const Ir=(0,ge.useMemo)(()=>"",[Vt]);return ge.createElement(ge.Fragment,null,ge.createElement("div",{dangerouslySetInnerHTML:{__html:Ir}}))},re=Object.defineProperty,ae=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,he=(Vt,rr,ar)=>rr in Vt?re(Vt,rr,{enumerable:!0,configurable:!0,writable:!0,value:ar}):Vt[rr]=ar,ye=(Vt,rr)=>{for(var ar in rr||(rr={}))pe.call(rr,ar)&&he(Vt,ar,rr[ar]);if(ce)for(var ar of ce(rr))me.call(rr,ar)&&he(Vt,ar,rr[ar]);return Vt},De=(Vt,rr)=>ae(Vt,se(rr));let Me=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Be({onActionCallback:Vt,title:rr,icon:ar,actionName:vr,className:hr="",children:Ir}){function Or(){Vt(vr)}return ge.createElement("a",{title:rr,className:hr,onClick:Or},ge.createElement("i",{className:`${ar}`}),Ir)}var Pe=({watch:Vt,showNullButton:rr,showNullProgramButton:ar,onActionCallback:vr,fullScreen:hr,insertTemp:Ir,hidetoolBar:Or,extraUse:Lr})=>{const Er=[...Me,{title:`${Vt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Vt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ge.createElement("ul",{className:"markdown-toolbar-container"},!Or&&Er.map((Zr,_r)=>ge.createElement("li",{key:_r},Zr.actionName?ge.createElement(Be,De(ye({},Zr),{onActionCallback:vr})):ge.createElement("span",{className:"v-line"}))),rr?ge.createElement("li",null,ge.createElement(Be,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:vr},ge.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,ar?ge.createElement(ge.Fragment,null,ge.createElement("li",null,ge.createElement(Be,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:vr},ge.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),ge.createElement("li",null,ge.createElement(Be,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:vr},ge.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Ir&&ge.createElement("li",null,ge.createElement(Be,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ir}`,onActionCallback:vr},ge.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Lr&&ge.createElement("li",null,Lr),ge.createElement("li",{className:"btn-full-screen"},ge.createElement(Be,{icon:`${hr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:hr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:vr})))},Ce=Ie(57261),Ee=Ie(28284),je=Ie(37568),ke=Ie(7939),Le=Object.defineProperty,Ae=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,at=(Vt,rr,ar)=>rr in Vt?Le(Vt,rr,{enumerable:!0,configurable:!0,writable:!0,value:ar}):Vt[rr]=ar,Fe=(Vt,rr)=>{for(var ar in rr||(rr={}))Ze.call(rr,ar)&&at(Vt,ar,rr[ar]);if(Ge)for(var ar of Ge(rr))Je.call(rr,ar)&&at(Vt,ar,rr[ar]);return Vt},Ke=(Vt,rr)=>Ae(Vt,Se(rr));const it={labelCol:{span:4},wrapperCol:{span:20}};var rt=({callback:Vt,onCancel:rr})=>{function ar(vr){Vt(vr)}return ge.createElement(Ee.default,Ke(Fe({},it),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ar,style:{width:500}}),ge.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ge.createElement(je.default,null)),ge.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ge.createElement(je.default,null)),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(ke.ZP,{type:"ghost",onClick:rr},"\u53D6\u6D88")))},et=Ie(85533),$e=Ie(45053),Xe=Ie(62957),Ve=Ie(77019),nt=Ie(16750),Qe=Ie(59301),ct=({callback:Vt,onCancel:rr})=>{const ar=document.createElement("canvas"),vr=ar.getContext("2d");ar.width=1e3,ar.height=800,vr.fillStyle="#ffffff",vr.fillRect(0,0,ar.width,ar.height);const hr=ar.toDataURL("image/png");return Qe.createElement(Xe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(Ve.Z,{style:{height:"100vh"}},Qe.createElement(nt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:hr,visible:!0,title:String(Date.now())},onOk:Ir=>{Vt({src:Ir.url})},onClose:rr})))},ot=Ie(36207),qe=Ie(5269),_e=Ie(6767),Re={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=Ie(59301),Ne=(0,ge.forwardRef)(({onCancel:Vt,editImgId:rr,callback:ar},vr)=>{let hr=(0,ge.useRef)(),Ir=(0,ge.useRef)(),Or=(0,ge.useRef)(),Lr=(0,ge.useRef)(!1);const Er=(0,ge.useRef)(!1);console.log("ref:",vr);const[Zr,_r]=(0,ge.useState)(0),[qt,nr]=(0,ge.useState)("100vh");return(0,ge.useEffect)(()=>{_r(1)},[]),(0,ge.useImperativeHandle)(vr,()=>({setHeight:nr})),te.createElement("div",{ref:Er,className:"body-overflow-initial"},te.createElement(ot.Z,{width:"100vw",height:qt,footer:null,closable:!0,placement:"bottom",open:!!Zr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Re.drawerWrap}`,onClose:()=>{window.saveDrawData(jr=>{ar({src:`/api/attachments/${jr}`,id:jr})})},title:te.createElement(Ve.Z,{align:"middle"},te.createElement(qe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(qe.Z,{onClick:()=>{nr(qt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(qe.Z,{onClick:()=>{window.saveDrawData(jr=>{if(jr===null){_e.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}_e.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),ar({src:`/api/attachments/${jr}`,id:jr,disabledClose:!0})})}},te.createElement(ke.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${rr||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Ir})))}),ze=Ie(74128),xe=Ie(47889),ve=Ie(4875);const Oe=xe.ZP.Group,We={margin:"0 8px"};var Ue=({callback:Vt,onCancel:rr})=>{function ar(vr){Vt(vr)}return ge.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ar},ge.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ge.createElement("span",{style:We},"\u5355\u5143\u683C\u6570\uFF1A"),ge.createElement("span",{style:We},"\u884C\u6570"),ge.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ge.createElement(ve.Z,null)),ge.createElement("span",{style:We},"\u5217\u6570"),ge.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ge.createElement(ve.Z,null))),ge.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ge.createElement("span",{style:We},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ge.createElement(Ee.default.Item,{name:"align"},ge.createElement(Oe,null,ge.createElement(xe.ZP,{value:"default"},ge.createElement("i",{className:"fa fa-align-justify"})),ge.createElement(xe.ZP,{value:"left"},ge.createElement("i",{className:"fa fa-align-left"})),ge.createElement(xe.ZP,{value:"center"},ge.createElement("i",{className:"fa fa-align-center"})),ge.createElement(xe.ZP,{value:"right"},ge.createElement("i",{className:"fa fa-align-right"}))))),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(ke.ZP,{type:"ghost",onClick:rr},"\u53D6\u6D88")))},Ye=Ie(58755),st=Ie(93510),lt=Ie.n(st),Tt=(0,ge.forwardRef)(({use3d:Vt,width:rr,height:ar,callback:vr,showSaveButton:hr},Ir)=>{const Or=(0,ge.useRef)(),Lr=(0,ge.useRef)(),[Er,Zr]=(0,ge.useState)(!1),_r=(0,ge.useRef)({id:Or,appName:"graphing",width:rr||1e3,height:ar||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ge.useEffect)(()=>{Lr.current=new(lt())(_r.current,!0),window.onload=function(){Lr.current.inject("applet_container")}},[]);const qt=()=>{var nr=window.ggbApplet.getPNGBase64(1,!0,72);return vr&&vr(nr),nr};return(0,ge.useEffect)(()=>{_r.current.appName=Er?"3D":"graphing",Lr.current.inject("applet_container")},[Er]),(0,ge.useEffect)(()=>{Zr(Vt)},[Vt]),(0,ge.useImperativeHandle)(Ir,()=>({getImgData:qt})),ge.createElement(ge.Fragment,null,ge.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Or}),ge.createElement(Ve.Z,{align:"middle"},ge.createElement(qe.Z,{flex:1},ge.createElement(Ye.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Er,onChange:nr=>Zr(nr)})),ge.createElement(qe.Z,null,ge.createElement(ke.ZP,{size:"large",onClick:qt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),St=Ie(99298);const Ot="link",yt="upload-image",Mt="add-flowchart",Et="draw-image",xt="add-flowchart",jt="code-block",At="add-table",ht="------------",Ct={default:ht,left:`:${ht}`,center:`:${ht}:`,right:`${ht}:`};var $t=Ie(31103),Xt=Ie(65862);function vt(){}let Pt=0;const _t=1e4,Kt="\u2581",er="@\u2581\u2581@",sr="@\u2581@",yr=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,xr=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ur(Vt){return/^\d+$/.test(Vt)?`${Vt}px`:Vt}const or=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",fr={[or+"-B"]:"bold",[or+"-I"]:"italic"},Jt={[Ot]:"\u6DFB\u52A0\u94FE\u63A5",[jt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[yt]:"\u6DFB\u52A0\u56FE\u7247",[Et]:"\u6DFB\u52A0\u753B\u56FE",[Mt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[At]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qt=({defaultValue:Vt="",onChange:rr,width:ar="100%",height:vr=400,miniToolbar:hr=!1,isFocus:Ir=!1,watch:Or,insertTemp:Lr,mode:Er="markdown",id:Zr="markdown-editor-id",showResizeBar:_r=!1,noStorage:qt=!1,showNullButton:nr=!1,showNullProgramButton:jr=!1,hidetoolBar:Tr=!1,fullScreen:It=!1,onBlur:Ft,onCMBeforeChange:bt,onFullScreen:kt,className:wt="",disablePaste:Rt=!1,disabled:pt=!1,disabledFill:Lt=!1,placeholder:zt="",values:Gt="",extraUse:Ht,onAddBlank:Nt})=>{const[Bt,Ut]=(0,ge.useState)(null),[cr,lr]=(0,ge.useState)(Vt),[dr,Br]=(0,ge.useState)(Or),[Wr,$r]=(0,ge.useState)(It),[Nr,Dr]=(0,ge.useState)(""),[Rr,Ur]=(0,ge.useState)(0),[Qr,Vr]=(0,ge.useState)(vr),[Jr,Pr]=(0,ge.useState)(!1),[tn,Gr]=(0,ge.useState)(0),[fn,pn]=(0,ge.useState)(0),ln=(0,ge.useRef)(),un=(0,ge.useRef)(),yn=(0,ge.useRef)(),sn=(0,ge.useRef)(),dn=(0,ge.useRef)(),en=(0,ge.useRef)(),mn=(0,gt.useDispatch)();(0,ge.useEffect)(()=>{const wr=window.scrollY||window.pageYOffset;lr(Gt),Bt==null||Bt.setValue(Gt),window.scrollTo(0,wr)},[Gt]),(0,ge.useEffect)(()=>{kt==null||kt(Wr)},[Wr]),(0,ge.useEffect)(()=>{if(ln.current){let wr=function(kr,Fr){var cn;if(Rt){Fr.preventDefault();return}const Dn=Fr.clipboardData;if(Dn){const Tn=Dn.types.toString(),Bn=Dn.items;if(Tn==="Files"||Dn.types.indexOf("Files")>-1){if(Fr.preventDefault(),Er=="stex")return;try{let Rn=Bn[1];((cn=Bn[0])==null?void 0:cn.kind)==="file"&&(Rn=Bn[0]);const Ln=Rn.getAsFile(),Zn=Ln.name.split(".").pop();(0,$e.I)(Ln,Wn=>{var Vn,ti,Ei;Wn.id?((Vn=Ln==null?void 0:Ln.type)==null?void 0:Vn.indexOf("image"))>-1?mr.replaceSelection(`<img width="100%" src="/api/attachments/${Wn.id}?type=${Wn.content_type})" alt="" />`):((ti=Ln==null?void 0:Ln.type)==null?void 0:ti.indexOf("video"))>-1?mr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Wn.id}"></video>`):((Ei=Ln==null?void 0:Ln.type)==null?void 0:Ei.indexOf("pdf"))>-1?mr.replaceSelection(`<a href="/api/attachments/${Wn.id}?type=${Ln.type}&disposition=inline" target="_blank">${Ln.name}</a>`):xr.includes(Zn)?mr.replaceSelection(`<a href="/api/attachments/${Wn.id}?type=office&disposition=inline" target="_blank">${Ln.name}</a>`):mr.replaceSelection(`[${Ln.name}](/api/attachments/${Wn.id}?type=${Wn.content_type})`):(Wn==null?void 0:Wn.status)===401&&(document.location.href="/user/login")})}catch(Rn){_e.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const mr=Te().fromTextArea(ln.current,{mode:Er,lineNumbers:!hr,lineWrapping:!0,value:Vt,autoCloseTags:!0,autoCloseBrackets:!0});return mr.on("keyup",function(kr,Fr){Fr.keyCode===8&&(kr.getValue()==""?mr.setOption("placeholder",zt):mr.setOption("placeholder",null))}),mr.on("keydown",function(kr,Fr){if(Fr.keyCode===8){var cn=_n(kr);cn&&Fr.preventDefault()}}),Ir&&mr.focus(),mr.on("paste",wr),pt&&mr.on("beforeChange",function(kr,Fr){(Fr.origin==="paste"||Fr.origin==="+input")&&Fr.cancel()}),Ut(mr),()=>{mr.off("paste",wr)}}},[]);const bn=(0,ge.useCallback)(()=>{if(un.current)try{}catch(wr){console.log(wr,"---- to set md editor body height")}},[Qr,un,Wr]);(0,ge.useEffect)(()=>{function wr(){let mr=new be.Z(kr=>{for(let Fr of kr)(Fr.target.offsetHeight>0||Fr.target.offsetWidth>0)&&(bn(),Bt.setSize("100%","100%"),Bt.refresh())});return mr.observe(ln.current.parentElement),mr}if(Bt){const mr=wr();return()=>{var kr,Fr;(kr=ln.current)!=null&&kr.parentElement&&mr.unobserve((Fr=ln.current)==null?void 0:Fr.parentElement)}}},[Bt,bn]),(0,ge.useEffect)(()=>{if(Bt){let wr=[];for(const[mr,kr]of Object.entries(fr)){let Fr={[mr]:()=>{En(kr)}};wr.push(Fr),Bt.addKeyMap(Fr)}return()=>{for(let mr of wr)Bt.removeKeyMap(mr)}}},[Bt]),(0,ge.useEffect)(()=>{It!==Wr&&$r(It)},[It]),(0,$t.Z)(()=>{if(!qt&&Rr>0){let wr=new Date().getTime(),mr=window.sessionStorage.getItem(Zr);wr>=Rr+_t&&(!mr||mr!==cr)&&(window.sessionStorage.setItem(Zr,cr),Pr(!0))}},_t),(0,ge.useEffect)(()=>{Br(Or)},[Bt,Or]),(0,ge.useEffect)(()=>{Bt&&Ir&&Bt.focus()},[Bt,Ir]),(0,ge.useEffect)(()=>{if(dr&&Bt){let wr=function(kr){let Fr=kr.target;if(sn.current){let cn=Fr.scrollTop/Fr.scrollHeight;sn.current.scrollTop=sn.current.scrollHeight*cn}};const mr=Bt.getScrollerElement();return mr.addEventListener("scroll",wr),()=>{mr.removeEventListener("scroll",wr)}}},[Bt,dr]),(0,ge.useEffect)(()=>{if(Bt&&bt){let wr=function(mr,kr){bt(mr,kr)};return Bt.on("beforeChange",wr),()=>{Bt.off("beforeChange",wr)}}},[Bt,bt]),(0,ge.useEffect)(()=>{if(Bt&&Ft){let wr=function(){Ft(Bt.getValue())};return Bt.on("blur",wr),()=>{Bt.off("blur",wr)}}},[Bt,Ft]);function _n(wr,mr){var kr=wr.getDoc(),Fr=kr.getCursor(),cn=kr.getLine(Fr.line),Dn=cn.charAt(Fr.ch-1),Tn=cn.lastIndexOf("@\u2581@",Fr.ch),Bn=cn.lastIndexOf("@\u2581\u2581@",Fr.ch),Rn=Tn>Bn?Tn:Bn,Ln=Tn>Bn?3:4;if(er.indexOf(Dn)===-1)return null;if(console.log("change1:",mr,wr,cn,Fr,Rn,Tn,Bn,Dn),Rn>=0&&Fr.ch-Rn<5){var Zn=Rn+Ln;return kr.replaceRange("",{line:Fr.line,ch:Rn},{line:Fr.line,ch:Zn}),{line:Fr.line,ch:Zn}}return null}(0,ge.useEffect)(()=>{if(Bt){let wr=function(mr,kr){const Fr=mr.getValue();lr(Fr),Ur(new Date().getTime()),mr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),rr&&(jr?rr(Fr,Ar(Fr)):rr(Fr))};return Bt.on("change",wr),()=>{Bt.off("change",wr)}}},[Bt,rr]),(0,ge.useEffect)(()=>{if(Bt)if(Vt==null)Bt.setValue(""),lr("");else{const wr=window.scrollY||window.pageYOffset;Vt!==Bt.getValue()&&(Bt.setValue(Vt),lr(Vt),Bt.setCursor(pt?1:Bt.lineCount(),0),window.scrollTo(0,wr))}},[Bt,Vt]);const En=(0,ge.useCallback)(wr=>{const mr=Bt.getCursor(),kr=Bt.getSelection();let Fr=kr.split(`
|
|
|
`);switch(wr){case"bold":return Bt.replaceSelection("**"+kr+"**"),kr===""&&Bt.setCursor(mr.line,mr.ch+2),Bt.focus();case"italic":return Bt.replaceSelection("*"+kr+"*"),kr===""&&Bt.setCursor(mr.line,mr.ch+1),Bt.focus();case"code":return Bt.replaceSelection("`"+kr+"`"),kr===""&&Bt.setCursor(mr.line,mr.ch+1),Bt.focus();case"inline-latex":return(0,Xt.Ye)(mn)?void 0:(Dr("inline-latex"),Bt.focus());case"latex":return Bt.replaceSelection("```latex\n"+kr+"\n```"),Bt.setCursor(mr.line+1,kr.length+1),Bt.focus();case"line-break":return Bt.replaceSelection(`<br/>
|
|
|
`),Bt.focus();case"list-ul":return kr===""?Bt.replaceSelection("- "+kr):Bt.replaceSelection(Fr.map(cn=>cn===""?"":`- ${cn}`).join(`
|
|
|
`)),Bt.focus();case"list-ol":return kr===""?Bt.replaceSelection("1. "+kr):Bt.replaceSelection(Fr.map((cn,Dn)=>cn===""?"":`${Dn+1}. ${cn}`).join(`
|
|
|
`)),Bt.focus();case"add-null-ch":Nt==null||Nt();return;case"add-signal":return kr===""&&Bt.setCursor(mr.line,mr.ch),Bt.replaceSelection(sr),Bt.focus();case"add-multiple":return kr===""&&Bt.setCursor(mr.line,mr.ch),Bt.replaceSelection(er),Bt.focus();case"inster-template-1":return kr===""&&Bt.setCursor(mr.line,mr.ch),Bt.replaceSelection(yr),Bt.focus();case"eraser":return Bt.setValue(""),Bt.focus();case"trigger-watch":return Br(!dr),Bt.focus();case"trigger-full-screen":return $r(!Wr),Bt.focus();case Ot:Dr(Ot);return;case jt:Dr(jt);return;case yt:Dr(yt);return;case Et:Dr(Et);return;case"maths-latex":if((0,Xt.Ye)(mn))return;Dr("maths-latex");return;case Mt:dn.current="",sessionStorage.removeItem("file_id"),Dr(Mt);return;case At:Dr(At);return;default:throw new Error}},[Bt,dr,Wr]),Mn=(0,ge.useCallback)((wr,mr)=>{var kr,Fr,cn,Dn,Tn,Bn;wr!=null&&wr.disabledClose||Dr("");const{src:Rn,alt:Ln,id:Zn}=wr||{};switch(Nr){case Ot:const{title:Ni,link:xi}=wr;return Bt.replaceSelection(`[${Ni}](${xi})`),Bt.focus();case jt:const{language:li,content:Bi}=wr;return Bt.replaceSelection(["```"+li,Bi,"```"].join(`
|
|
|
`)),Bt.focus();case"maths-latex":for(var Wn=atob(wr),Vn=new Uint8Array(Wn.length),ti=0;ti<Wn.length;ti++)Vn[ti]=Wn.charCodeAt(ti);var Ei=new Blob([Vn],{type:"image/png"});(0,$e.I)(Ei,Sn=>{Sn.id?Bt.replaceSelection(``):(Sn==null?void 0:Sn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,Xt.Ye)(mn))return;Bt.replaceSelection("`$$"+wr+"$$`");break;case xt:if(!Zn)return;Bt.getValue().indexOf(Rn)===-1?Bt.replaceSelection(`<center><img id="${Zn}" width="80%" src="${Rn}" class="draw-flowchart" alt="${Ln||""}" /></center>`):document.getElementById(Zn).src=ze.Z.API_SERVER+Rn+"?t="+Date.now();break;case yt:case Et:const zn=mr,Ki=(cn=(Fr=(kr=zn==null?void 0:zn.name)==null?void 0:kr.split("."))==null?void 0:Fr.pop)==null?void 0:cn.call(Fr);return((Dn=zn==null?void 0:zn.type)==null?void 0:Dn.indexOf("image"))>-1||!(zn!=null&&zn.type)?zn!=null&&zn.align||zn!=null&&zn.width?Bt.replaceSelection(`<p style="text-align:${zn.align||"initial"}"><img width="${zn.width?zn.width+"%":"initial"}" src="${Rn}" alt="${Ln||""}" /></p>`):Bt.replaceSelection(`<img width="100%" src="${Rn}" alt="${Ln||""}" />`):((Tn=zn==null?void 0:zn.type)==null?void 0:Tn.indexOf("video"))>-1?Bt.replaceSelection(`<video width="100%" controls src="${Rn}"></video>`):((Bn=zn==null?void 0:zn.type)==null?void 0:Bn.indexOf("pdf"))>-1?Bt.replaceSelection(`<a href="${Rn}?type=${zn.type}&disposition=inline" target="_blank">${zn.name}</a>`):xr.includes(Ki)?Bt.replaceSelection(`<a href="${Rn}?type=office&disposition=inline" target="_blank">${zn.name}</a>`):Bt.replaceSelection(`[${zn.name}](${Rn})`),Bt.focus();case At:const{row:qn,col:xn,align:Fn}=wr;let $n=`
|
|
|
`;for(let Sn=0;Sn<qn;Sn++){let Nn=[],Pn=[];for(let ui=0;ui<xn;ui++)Sn===1&&Pn.push(Ct[Fn]),Nn.push(" ");Sn===1&&($n+=`| ${Pn.join(" | ")} |
|
|
|
`),$n+=`| ${Nn.join(xn===1?"":" | ")} |
|
|
|
`}return Bt.replaceSelection($n+`
|
|
|
`),Bt.focus();default:throw new Error}},[Bt,Nr]),On=(0,ge.useMemo)(()=>{switch(Nr){case Ot:return ge.createElement(rt,{callback:Mn,onCancel:jn});case jt:return ge.createElement(et.Z,{callback:Mn,onCancel:jn});case yt:return ge.createElement($e.Z,{callback:Mn,onCancel:jn});case Mt:return ge.createElement(Ne,{editImgId:dn.current,callback:Mn,onCancel:jn});case At:return ge.createElement(Ue,{callback:Mn,onCancel:jn});case"maths-latex":return ge.createElement(Tt,{showSaveButton:!0,callback:Mn});case"inline-latex":return ge.createElement(St.Z,{showSaveButton:!0,callback:Mn});default:return null}},[Nr]);function jn(){Dr("")}(0,ge.useEffect)(()=>{if(yn.current){let wr=function(Tn){cn=!0,Dn=Tn.pageY},mr=function(){cn=!1},kr=function(Tn){if(cn){let Bn=Tn.pageY-Dn;Bn<0&&(Bn=0),Bn>300&&(Bn=300);let Rn=vr+Bn+"px";Vr(Rn)}},Fr=yn.current,cn=!1,Dn=0;return Fr.addEventListener("mousedown",wr),document.addEventListener("mousemove",kr),document.addEventListener("mouseup",mr),()=>{Fr.removeEventListener("mousedown",wr),document.removeEventListener("mousemove",kr),document.removeEventListener("mouseup",mr)}}},[Bt,yn]),(0,ge.useEffect)(()=>{Vr(vr)},[vr]);const on=ur(ar),nn=ur(Qr),qr={width:on,height:nn},gr=(0,ge.useMemo)(()=>{if(Rr){let wr=new Date(Rr),mr=wr.getHours(),kr=wr.getMinutes(),Fr=wr.getSeconds();return mr=mr<10?"0"+mr:mr,kr=kr<10?"0"+kr:kr,Fr=Fr<10?"0"+Fr:Fr,`${mr}:${kr}:${Fr}`}return 0},[Rr]),Ar=wr=>{const mr=[];if(jr){let kr=-1;wr=wr.replace(/(@▁▁@|@▁@)/g,function(Fr,cn,Dn){mr.push({multiLine:Fr!==sr})})}return mr};function Cr(){window.sessionStorage.removeItem(Zr),Pr(!1),Ur(0)}function pr(){Pr(!1),Ur(0),Bt.setValue(window.sessionStorage.getItem(Zr))}(0,ge.useEffect)(()=>{Jt[Nr]&&Nr!==Et&&Nr!==Mt&&setTimeout(()=>{const wr=document.getElementsByClassName("markdown-popup-form")[0],mr=window.innerWidth/2-wr.offsetWidth/2,kr=window.innerHeight/2-wr.offsetHeight/2;Gr(mr),pn(kr)},0)},[Nr]);const zr=wr=>{wr.preventDefault();const mr=wr.clientX-tn,kr=wr.clientY-fn;document.body.onmousemove=Fr=>{let cn=Fr.clientX-mr,Dn=Fr.clientY-kr;const Tn=document.getElementsByClassName("markdown-popup-form")[0],Bn=window.innerWidth-Tn.offsetWidth,Rn=window.innerHeight-Tn.offsetHeight;cn=Math.max(0,Math.min(cn,Bn)),Dn=Math.max(0,Math.min(Dn,Rn)),Kr(Fr.clientX,Fr.clientY,mr,kr)&&(Gr(cn),pn(Dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},Kr=(wr,mr,kr,Fr)=>{const cn=document.body.clientHeight,Dn=document.body.clientWidth;return wr<20&&kr>wr||wr>Dn-20&&kr<wr||mr<20&&Fr>mr||mr>cn-20&&Fr<mr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ge.createElement(ge.Fragment,null,ge.createElement("div",{className:"markdown-editor-wrapper",ref:un},ge.createElement("div",{className:`markdown-editor-container ${wt} ${dr?"on-preview":""} ${hr?"mini":""} ${Wr?"full-screen":""}`,style:qr},ge.createElement(Pe,{insertTemp:Lr,watch:dr,fullScreen:Wr,showNullButton:nr,showNullProgramButton:jr,onActionCallback:En,hidetoolBar:Tr,extraUse:Ht}),ge.createElement("div",{className:"markdown-editor-body"},ge.createElement("div",{className:"codemirror-container"},ge.createElement("textarea",{ref:ln,placeholder:zt})),dr?ge.createElement("div",{ref:sn,className:"preview-container"},Er==="stex"&&ge.createElement(ne,{value:cr}),Er!=="stex"&&ge.createElement(x.Z,{edit:!0,disabledFill:Lt,showProgramFill:jr,value:cr,openEditor:wr=>{var mr;dn.current=wr,(mr=en.current)==null||mr.setHeight("100vh"),setTimeout(()=>{Dr("add-flowchart")},150)}})):null))),_r?ge.createElement("a",{ref:yn,className:"editor-resize"}):null,Nr===Et&&ge.createElement(ct,{callback:Mn,onCancel:jn}),Nr===Mt&&ge.createElement(Ne,{ref:en,editImgId:dn.current,callback:Mn,onCancel:jn}),ge.createElement(Ce.Z,null,Jt[Nr]&&Nr!==Et&&Nr!==Mt?ge.createElement(Xe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:tn,top:fn},title:ge.createElement("div",{style:{cursor:"move"},onMouseDown:zr},Jt[Nr]),open:!0,onCancel:jn,footer:null,destroyOnClose:!0,width:Nr===Mt?"1200px":null,height:Nr===Mt?"80vh":null,className:"markdown-popup-form"},On):null))}},45053:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return Me},I:function(){return Pe}});var ge=Ie(28284),gt=Ie(6767),a=Ie(37568),Te=Ie(44104),be=Ie(4875),z=Ie(47889),E=Ie(7939),ie=Ie(28735),oe=Ie(59301),ee=Ie(59301),le=Object.defineProperty,x=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ce=(Ce,Ee,je)=>Ee in Ce?le(Ce,Ee,{enumerable:!0,configurable:!0,writable:!0,value:je}):Ce[Ee]=je,pe=(Ce,Ee)=>{for(var je in Ee||(Ee={}))ae.call(Ee,je)&&ce(Ce,je,Ee[je]);if(re)for(var je of re(Ee))se.call(Ee,je)&&ce(Ce,je,Ee[je]);return Ce},me=(Ce,Ee)=>x(Ce,ne(Ee));const{useForm:he}=ge.default,ye={width:280,marginRight:10},De={labelCol:{span:5},wrapperCol:{span:19}};var Me=({callback:Ce,onCancel:Ee})=>{const[je]=he();let ke=(0,oe.useRef)();function Le(Ge){ke.current.width=je.getFieldValue("width"),ke.current.align=je.getFieldValue("align"),Ce(Ge,ke.current)}function Ae(Ge,Ze){if(Ge.status===-1){gt.ZP.error(Ge.message);return}je.setFieldsValue({src:`/api/attachments/${Ge.id}`,type:Ze.type})}function Se(Ge){let Ze=Ge.target.files[0];ke.current=Ze,Pe(Ze,Ae)}return ee.createElement(ge.default,me(pe({form:je},De),{className:"upload-image-panel",onFinish:Le,style:{width:470,overflow:"hidden"}}),ee.createElement(ge.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(ge.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(a.default,{style:ye})),ee.createElement(Be,{onFileChange:Se}))),ee.createElement(ge.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(a.default,{style:{width:264}})),ee.createElement(ge.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(Te.Z,null,ee.createElement(ge.default.Item,{name:"width",style:{margin:0}},ee.createElement(be.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(ge.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ee.createElement(z.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ee.createElement("aside",null,ee.createElement(ge.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ee.createElement(E.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(E.ZP,{type:"default",onClick:Ee},"\u53D6\u6D88"))))};function Be({onFileChange:Ce}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:Ce}))}function Pe(Ce,Ee){if(!Ce)throw new String("\u6CA1\u6709\u6587\u4EF6");let je=new FormData;je.append("editormd-image-file",Ce),je.append("file_param_name","editormd-image-file"),je.append("byxhr","true");var ke=new window.XMLHttpRequest;ke.withCredentials=!0,ke.addEventListener("load",function(Le){Ee(JSON.parse(Le.target.responseText),Ce)},!1),ke.addEventListener("error",function(Le){console.error(Le)},!1),ke.open("POST",`${ie.KI}/api/attachments.json`),ke.send(je)}},57261:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return a}});var ge=Ie(59301),gt=Ie(4676);class a extends ge.Component{constructor(be){super(be);const z=window.document;this.node=z.createElement("div"),z.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,gt.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{SV:function(){return ct},ZP:function(){return Qe}});var ge=Ie(59301),gt=Ie(76374);const a={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Te={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},be={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std",content:["using namespace std"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},z={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},E={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var ie=Ie(53184),oe=Ie.n(ie),ee=(ot,qe,_e)=>new Promise((Re,te)=>{var de=xe=>{try{ze(_e.next(xe))}catch(ve){te(ve)}},Ne=xe=>{try{ze(_e.throw(xe))}catch(ve){te(ve)}},ze=xe=>xe.done?Re(xe.value):Promise.resolve(xe.value).then(de,Ne);ze((_e=_e.apply(ot,qe)).next())});const le={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},x=(ot,qe,_e,Re)=>{const te=qe.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:_e.lineNumber,endColumn:_e.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(Ne=>({label:Ne,kind:ot.languages.CompletionItemKind.Text,insertText:Ne,range:Re}))},ne=(ot,qe,_e,Re)=>{ot.languages.registerCompletionItemProvider(qe,{provideCompletionItems(te,de){const Ne=te.getWordUntilPosition(de),ze={startLineNumber:de.lineNumber,endLineNumber:de.lineNumber,startColumn:Ne.startColumn,endColumn:Ne.endColumn},xe=te.getLineContent(de.lineNumber).substring(Ne.startColumn-2,Ne.endColumn);return{suggestions:[...x(ot,te,de,ze),..._e.map(Oe=>({label:Oe,kind:ot.languages.CompletionItemKind.Keyword,documentation:Oe,insertText:Oe,insertTextRules:ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...Re.map(Oe=>({label:Oe.label,kind:ot.languages.CompletionItemKind.Snippet,documentation:Oe.content,insertText:xe.startsWith("#")?Oe.content.replace(/#/,""):Oe.content,insertTextRules:ot.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}})};var re=ot=>{le.languages.forEach(qe=>{ot.languages.registerDocumentFormattingEditProvider(qe,{provideDocumentFormattingEdits(_e){return ee(this,null,function*(){const Re=oe()(_e.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:_e.getFullModelRange(),text:Re}]})}})}),ne(ot,"java",Te.keywords,Te.quickKey),ne(ot,"cpp",be.keywords,be.quickKey),ne(ot,"c",a.keywords,[]),ne(ot,"python",z.keywords,z.quickKey),ne(ot,"scala",E.keywords,E.quickKey)};const ae="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var se=Object.defineProperty,ce=(ot,qe,_e)=>qe in ot?se(ot,qe,{enumerable:!0,configurable:!0,writable:!0,value:_e}):ot[qe]=_e,pe=(ot,qe,_e)=>ce(ot,typeof qe!="symbol"?qe+"":qe,_e);const me=class _l{constructor(qe,_e,Re){this.placeholder=qe,this.editor=_e,this.monaco=Re,_e.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return _l.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};pe(me,"ID","editor.widget.placeholderHint");var ye=me,De=Ie(96236),Me=Ie(6767),Be=Ie(25399),Pe=Ie(89392),Ce=Ie(77254),Ee=Ie(56102),je=Object.defineProperty,ke=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Ze=(ot,qe,_e)=>qe in ot?je(ot,qe,{enumerable:!0,configurable:!0,writable:!0,value:_e}):ot[qe]=_e,Je=(ot,qe)=>{for(var _e in qe||(qe={}))Se.call(qe,_e)&&Ze(ot,_e,qe[_e]);if(Ae)for(var _e of Ae(qe))Ge.call(qe,_e)&&Ze(ot,_e,qe[_e]);return ot},at=(ot,qe)=>ke(ot,Le(qe)),Fe=(ot,qe)=>{var _e={};for(var Re in ot)Se.call(ot,Re)&&qe.indexOf(Re)<0&&(_e[Re]=ot[Re]);if(ot!=null&&Ae)for(var Re of Ae(ot))qe.indexOf(Re)<0&&Ge.call(ot,Re)&&(_e[Re]=ot[Re]);return _e},Ke=(ot,qe,_e)=>new Promise((Re,te)=>{var de=xe=>{try{ze(_e.next(xe))}catch(ve){te(ve)}},Ne=xe=>{try{ze(_e.throw(xe))}catch(ve){te(ve)}},ze=xe=>xe.done?Re(xe.value):Promise.resolve(xe.value).then(de,Ne);ze((_e=_e.apply(ot,qe)).next())});function it(ot){return/^\d+$/.test(ot)?`${ot}px`:ot}function rt(){}let et=!1;const $e={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Xe(ot=[]){let qe=ot;if(Array.isArray(ot)){for(let _e=0;_e<ot.length;_e++){let Re=$e[ot[_e]];if(Re)return Re}return qe[0]}return $e[qe]||qe}let Ve=null;const nt=()=>Ke(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ot){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ot)}});var Qe=ot=>{var qe=ot,{width:_e="100%",height:Re="100%",value:te,language:de="javascript",style:Ne={},options:ze={},overrideServices:xe={},theme:ve="vs-dark",onEditBlur:Oe,isCopy:We=!1,onSave:Ue,autoHeight:Ye=!1,forbidCopy:st=!1,forbidCopyTips:lt,onChange:ft=rt,editorDidMount:Tt=rt,onFocus:St=rt,onBreakPoint:Ot=rt,breakPointValue:yt=[],filename:Mt="educoder.txt",errorLine:Et,errorContent:xt="",highlightLine:jt,openBreakPoint:At=!1,placeholder:ht="",showMiniMap:Ct=!0}=qe,$t=Fe(qe,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Xt=(0,ge.useRef)(),vt=(0,ge.useRef)({}),Pt=(0,ge.useRef)(),_t=(0,ge.useRef)(),Kt=(0,ge.useRef)([]),er=(0,ge.useRef)(!1),sr=(0,ge.useRef)(),yr=(0,ge.useRef)(),xr=(0,ge.useRef)(!1),[ur,br]=(0,ge.useState)(!1);function or(){let qt;return Xt.current&&(qt=new gt.Z(nr=>{for(let jr of nr)(jr.target.offsetHeight>0||jr.target.offsetWidth>0)&&vt.current.instance.layout()}),qt.observe(Xt.current)),qt}function fr(){Me.ZP.warning({content:decodeURIComponent(lt||ae),key:"monaco-editor-tip"})}const Jt=()=>{let qt=vt.current.instance;if(te!=null&&qt&&ur){const nr=qt.getModel();nr&&te!==nr.getValue()&&(et=!0,nr.setValue(te),qt.layout(),et=!1)}};(0,ge.useEffect)(()=>{const qt=Ce.Z.subscribe("formatDocument",nr=>{var jr;let Tr=vt.current.instance;(jr=Tr==null?void 0:Tr.getAction)==null||jr.call(Tr,"editor.action.formatDocument").run()});return window.updateMonacoValue=nr=>{ft(nr)},qt},[]),(0,ge.useEffect)(()=>{var qt;let nr=vt.current.instance;_t.current&&clearTimeout(_t.current),_t.current=setTimeout(()=>{Jt()},500),te&&(te!=null&&te.length)&&((qt=nr==null?void 0:nr.updateOptions)==null||qt.call(nr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,ur,vt.current]),(0,ge.useEffect)(()=>{if(Et&&vt.current&&vt.current.instance){let nr=vt.current.instance;nr.changeViewZones(function(jr){var Tr=document.createElement("div");Tr.style.padding="10px 20px",Tr.style.width="calc(100% - 20px)",Tr.className="my-error-line-wrp",Tr.innerHTML=xt,jr.addZone({afterLineNumber:Et||11,heightInLines:3,domNode:Tr})});var qt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};nr.addOverlayWidget(qt),nr.revealPositionInCenter({lineNumber:20,column:1})}},[Et,vt.current,ur]);const Qt=(qt="",nr)=>{if(!qt||qt.trim()==="")return!0;const Tr=vt.current.instance.getModel().getLineTokens(nr);let It=!1;for(let Ft=0;Ft<2;Ft++)Tr.getStandardTokenType(Ft)===1&&(It=!0);return It};(0,ge.useEffect)(()=>{var qt;const nr=(qt=vt.current)==null?void 0:qt.instance;if(nr&&ur&&st){const jr=nr.onDidBlurEditorWidget(()=>{xr.current=!1}),Tr=nr.onDidFocusEditorText(()=>{xr.current=!0});return()=>{jr.dispose(),Tr.dispose()}}},[vt.current,ur,st]),(0,ge.useEffect)(()=>{var qt;if((qt=vt.current)!=null&&qt.instance&&ur&&At){let nr=vt.current.instance,jr=nr.getModel();if(!jr)return;(()=>{var Ht;let Nt=[],Bt=[];const Ut=jr.getAllDecorations();for(let lr of Ut)lr.options.className==="highlighted-line"&&(Nt.push((Ht=lr==null?void 0:lr.range)==null?void 0:Ht.startLineNumber),Bt.push(lr==null?void 0:lr.id));if(jt===Nt[0])return;jr.deltaDecorations(Bt,[]);const cr=jr.getLineCount();jt&&jt<=cr&&(nr.deltaDecorations([],[{range:new Ve.Range(jt,1,jt,jr.getLineMaxColumn(jt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),nr.revealLineInCenter(jt))})();const It=(Ht=!1)=>{var Nt;let Bt=[],Ut=[];const cr=jr.getAllDecorations();for(let lr of cr)lr.options.linesDecorationsClassName==="breakpoints-select"&&(Bt.push((Nt=lr==null?void 0:lr.range)==null?void 0:Nt.startLineNumber),Ut.push(lr==null?void 0:lr.id));if(Ht)return{lines:Bt,ids:Ut};Ot(Bt)},Ft=Ht=>Ke(void 0,null,function*(){let Nt={range:new Ve.Range(Ht,1,Ht,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield jr.deltaDecorations([],[Nt]),It()}),bt=Ht=>Ke(void 0,null,function*(){let Nt=[];const Bt=nr.getLineDecorations(Ht);for(let Ut of Bt)Ut.options.linesDecorationsClassName==="breakpoints-select"&&Nt.push(Ut.id);yield jr.deltaDecorations(Nt,[]),It()}),kt=Ht=>{let Nt=nr.getLineDecorations(Ht);for(let Bt of Nt)if(Bt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Pe.isEqual)(yt,It(!0).lines)){jr.deltaDecorations(It(!0).ids,[]);const Ht=yt.map(Nt=>({range:new Ve.Range(Nt,1,Nt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));jr.deltaDecorations([],Ht)}const wt=nr.onDidChangeModelContent(Ht=>{let Nt=nr.getPosition();if(Nt){let Bt=Nt.lineNumber;clearTimeout(yr.current),yr.current=setTimeout(()=>{Qt(jr.getLineContent(Bt),Bt)?bt(Bt):kt(Bt)?(bt(Bt),Ft(Bt)):It()},100)}}),Rt=nr.onMouseDown(Ht=>{var Nt,Bt,Ut;if(Ht.target.detail&&((Ut=(Bt=(Nt=Ht.target)==null?void 0:Nt.element)==null?void 0:Bt.className)!=null&&Ut.includes("line-numbers"))){let cr=Ht.target.position.lineNumber;if(Qt(jr.getLineContent(cr),cr))return;kt(cr)?bt(cr):Ft(cr)}}),pt=Ht=>{let Nt={range:new Ve.Range(Ht,1,Ht,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Kt.current=nr.deltaDecorations(Kt.current,[Nt])},Lt=()=>{Kt.current=nr.deltaDecorations(Kt.current,[])},zt=nr.onMouseMove(Ht=>{var Nt,Bt,Ut;if(Lt(),Ht.target.detail&&((Ut=(Bt=(Nt=Ht.target)==null?void 0:Nt.element)==null?void 0:Bt.className)!=null&&Ut.includes("line-numbers"))){let cr=Ht.target.position.lineNumber;if(Qt(jr.getLineContent(cr),cr))return;pt(cr)}}),Gt=nr.onMouseLeave(()=>{Lt()});return()=>{wt.dispose(),Rt.dispose(),zt.dispose(),Gt.dispose()}}},[vt.current,ur,yt,jt,At,de]),(0,ge.useEffect)(()=>{var qt;(qt=vt.current)!=null&&qt.instance&&At&&vt.current.instance.setPosition({lineNumber:0,column:0})},[jt]);function Vt(){let qt=vt.current.instance;if(qt){const nr=qt.getSelection(),jr=vt.current.pastePos||{},Tr=new Ve.Range(jr.startLineNumber||nr.endLineNumber,jr.startColumn||nr.endColumn,jr.endLineNumber||nr.endLineNumber,jr.endColumn||nr.endColumn);setTimeout(()=>{qt.executeEdits("",[{range:Tr,text:""}])},300)}}function rr(qt){(window.navigator.platform.match("Mac")?qt.metaKey:qt.ctrlKey)&&qt.keyCode==83&&(qt.preventDefault(),Ue())}const ar=()=>{if(Ye&&vt.current.instance){const qt=vt.current.instance.getContentHeight();Zr(qt<Re?Re:qt)}else Zr(Re)};function vr(qt){var nr=document.createEvent("MouseEvents");nr.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),qt.dispatchEvent(nr)}const hr=qt=>{if(!xr.current)return;const{keyCode:nr,ctrlKey:jr,metaKey:Tr,target:It,type:Ft}=qt;return(Ft==="paste"||(nr===67||nr===86)&&(Tr||jr))&&It.nodeName==="TEXTAREA"&&(fr(),qt.preventDefault()),!1};function Ir(qt,nr){var jr=window.URL||window.webkitURL||window,Tr=new Blob([nr]),It=document.createElementNS("http://www.w3.org/1999/xhtml","a");It.href=jr.createObjectURL(Tr),It.download=qt,vr(It)}(0,ge.useEffect)(()=>{ar()},[ar]),(0,ge.useEffect)(()=>{Xt.current&&!ur&&Promise.all([Ie.e(8909),Ie.e(2460)]).then(Ie.bind(Ie,71448)).then(qt=>{try{Ve=qt,vt.current.instance=Ve.editor.create(Xt.current,{value:te,language:Xe(de),theme:ve,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ct||!1}},xe);const nr=vt.current.instance;let It=[...De.BH._menuItems].find(wt=>wt[0]._debugName=="EditorContext")[1],Ft=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],bt=(wt,Rt)=>{var pt,Lt;let zt=wt._first;do Rt.includes((Lt=(pt=zt.element)==null?void 0:pt.command)==null?void 0:Lt.id)&&wt._remove(zt);while(zt=zt.next)};if(Tt(nr,Ve),setTimeout(()=>{ar(),vt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ir(Mt||"educoder.txt",nr.getValue())}})},500),vt.current.subscription=nr.onDidChangeModelContent(wt=>{er.current?clearTimeout(sr.current):(ar(),ft(nr.getValue(),wt)),sr.current=setTimeout(()=>{er.current=!1},500)}),window.Monaco||re(Ve,Xe(de)),st&&(bt(It,Ft),Xt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",hr),window.removeEventListener("paste",hr),window.addEventListener("keydown",hr),window.addEventListener("paste",hr)),window.Monaco=Ve,Oe&&nr.onDidBlurEditorWidget(()=>{Oe(nr.getValue())}),St&&nr.onDidFocusEditorText(()=>{st&&nt(),St(nr.getValue())}),st){nt();try{nr.onDidPaste(wt=>{const Rt=nr.getSelection(),pt=vt.current.pastePos||{},Lt=new Ve.Range(pt.startLineNumber||Rt.endLineNumber,pt.startColumn||Rt.endColumn,pt.endLineNumber||Rt.endLineNumber,pt.endColumn||Rt.endColumn);nr.executeEdits("",[{range:wt.range,text:""}])})}catch(wt){}}let kt=or();return ht&&typeof ht=="string"&&new ye(ht,nr,Ve),br(!0),()=>{const wt=vt.current.instance;wt.dispose();const Rt=wt.getModel();Rt&&Rt.dispose(),vt.current.subscription&&vt.current.subscription.dispose(),kt.unobserve(Xt.current)}}catch(nr){}})},[]),(0,ge.useEffect)(()=>{if(vt.current.instance&&ur)return document.addEventListener("keydown",rr,!1),()=>{document.removeEventListener("keydown",rr)}},[Ue,ur]),(0,ge.useEffect)(()=>{let qt=vt.current.instance;if(qt&&ur){let nr=Xe(de);Ve.editor.setModelLanguage(qt.getModel(),nr)}},[de,ur]),(0,ge.useEffect)(()=>{vt.current.instance&&ur&&Ve.editor.setTheme(ve)},[ve,ur]),(0,ge.useEffect)(()=>{let qt=vt.current.instance;Pt.current=ze,qt&&ur&&(qt.updateOptions(Je({},ze)),setTimeout(()=>{qt.getModel().updateOptions(Je({},ze))},200))},[JSON.stringify(ze),ur]),(0,ge.useEffect)(()=>{let qt=vt.current.instance;qt&&ur&&qt.layout()},[_e,Re,ur]);const[Or,Lr]=(0,ge.useState)(it(_e)),[Er,Zr]=(0,ge.useState)(it(Re)),_r=at(Je({},Ne),{width:Or,height:Er,position:"relative"});return ge.createElement("div",{className:"my-monaco-editor",ref:Xt,style:_r,onFocus:()=>{st&&nt()}},We&&ge.createElement(Ee.CopyToClipboard,{text:te,onCopy:()=>Me.ZP.success("\u590D\u5236\u6210\u529F")},ge.createElement(Be.Z,{title:"\u590D\u5236\u4EE3\u7801"},ge.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ge.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ct({width:ot="100%",height:qe="100%",original:_e,modified:Re,language:te,options:de={}}){const Ne=(0,ge.useRef)(),[ze,xe]=(0,ge.useState)(null);function ve(Ye){let st;return Ne.current&&(st=new gt.Z(lt=>{for(let ft of lt)(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&Ye.layout()}),st.observe(Ne.current)),st}(0,ge.useEffect)(()=>(Ne.current&&Promise.all([Ie.e(8909),Ie.e(9404)]).then(Ie.bind(Ie,2550)).then(Ye=>{Ve=Ye;const st=Ve.editor.createDiffEditor(Ne.current,at(Je({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},de),{wordWrap:!0}));xe(st);let lt=ve(st);return()=>{st.dispose();const ft=st.getModel();ft&&ft.dispose(),lt.unobserve(Ne.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ge.useEffect)(()=>{ze&&ze.setModel({original:Ve.editor.createModel(_e,te),modified:Ve.editor.createModel(Re,te)})},[_e,Re,te,ze]);const Oe=it(ot),We=it(qe),Ue={width:Oe,height:We};return ge.createElement("div",{className:"my-diff-editor",ref:Ne,style:Ue})}},77825:function(Yt,Dt,Ie){"use strict";var ge=Ie(829),gt=Ie(82326),a=Ie(58755),Te=Ie(59301);const be=gt.default.Option;Dt.Z=({isTheoretical:z,onFontSizeChange:E,cmFontSize:ie,cmCodeMode:oe,autoFormat:ee,onCodeModeChange:le,onTabToSpace:x,onAutoFormat:ne,formatDocument:re,className:ae="",tabToSpace:se,children:ce,code_editor:pe,challenge:me,shixun_environment_id:he,shixun_environments:ye})=>{var De;const Me={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Be=(De=ye==null?void 0:ye.find(Pe=>Pe.shixun_environment_id===he))==null?void 0:De.program_language;return console.log("----",Be,ye,he,pe),Te.createElement("div",{className:`tpi-code-setting ${ae}`},Te.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),Te.createElement("section",null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),Te.createElement(gt.default,{bordered:!1,size:"small",value:oe,onChange:le},Te.createElement(be,{value:"vs"},"\u767D\u8272\u80CC\u666F"),Te.createElement(be,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!z&&Te.createElement(Te.Fragment,null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),Te.createElement(gt.default,{bordered:!1,size:"small",value:ie,onChange:E},Te.createElement(be,{value:12},"12px"),Te.createElement(be,{value:14},"14px"),Te.createElement(be,{value:16},"16px"),Te.createElement(be,{value:18},"18px"),Te.createElement(be,{value:20},"20px"),Te.createElement(be,{value:22},"22px"))),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"Tab\u8F6C\u6362"),Te.createElement(a.Z,{checked:se,onChange:x})),Te.createElement("div",{className:"file-item",onClick:re},Te.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!z&&Te.createElement(Te.Fragment,null,Te.createElement("h3",null,"\u5FEB\u6377\u952E"),Te.createElement("section",null,Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),Te.createElement("span",null,"Ctrl + S")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),Te.createElement("span",null,"F1 / Alt + F1")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),Te.createElement("span",null,"Ctrl + ]/[")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),Te.createElement("span",null,"Ctrl + Shift + \\")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),Te.createElement("span",null,"Home")),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),Te.createElement("span",null,"End"))),ce),!z&&Te.createElement(Te.Fragment,null,Te.createElement("h3",null,"\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"),Te.createElement("section",null,Be&&Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),Te.createElement("span",null,Be)),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),Te.createElement("span",null,Me[me==null?void 0:me.difficulty])),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Te.createElement("span",null,pe==null?void 0:pe.name)),Te.createElement("div",{className:"file-item"},Te.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),Te.createElement("span",null,pe!=null&&pe.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},61584:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return le}});var ge={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},gt=Ie(29787),a=Ie(25399),Te=Ie(89787),be=Ie(92310),z=Ie.n(be),E=Ie(65862),ie=Ie(2524),oe=Ie(59301),le=({className:x,dataSource:ne=[],col:re=4,right:ae,bottom:se=23,precision:ce=0,wrapWidth:pe=1200,trackEventItems:me,loading:he,onRemove:ye=()=>{},isCurrent:De=!0,showProgress:Me=!1,showAlias:Be=!1,category:Pe,hiddenClick:Ce})=>{const Ee=Math.floor((pe-(re-1)*ae)/re),je=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return oe.createElement(gt.Z,{spinning:he},oe.createElement("div",{className:z()(ge.list,x)},!!(ne!=null&&ne.length)&&(ne==null?void 0:ne.map((ke,Le)=>{var Ae,Se,Ge,Ze,Je,at,Fe,Ke,it,rt,et,$e,Xe;const{name:Ve,id:nt,identifier:Qe,featured:ct,school_name:ot,image_url:qe,excellent:_e,is_plan:Re}=ke;return oe.createElement("div",{key:nt,className:De&&Me?ge.wrapisCurrent:ge.wrap,style:{width:Ee,marginRight:(1+Le)%re===0?0:ae+ce,marginBottom:se}},oe.createElement("a",{className:ge.li,onClick:te=>{te.preventDefault(),te.stopPropagation(),me&&(0,E.L9)([me]),(0,E.xg)(`/paths/${Qe}`)}},oe.createElement("div",{className:ge.img},oe.createElement("img",{className:ge.cover,src:`${qe}`}),(Ae=ke==null?void 0:ke.subject_tags)==null?void 0:Ae.map((te,de)=>{var Ne,ze;if(de===0){const ve=(Ne=je.find(Oe=>Oe.name==te))==null?void 0:Ne.swimg;return oe.createElement("img",{className:ge.sign,src:ve,style:{left:"-4px"}})}const xe=(ze=je.find(ve=>ve.name==te))==null?void 0:ze.ptimg;return oe.createElement("img",{className:ge.sign,src:xe,style:{left:`${48+52*(de-1)+2*de}px`}})}),oe.createElement("div",{className:ge.tagsDom},oe.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(ke==null?void 0:ke.excellent)&&oe.createElement("div",{className:ge.bq},"\u5F00\u653E\u8BFE\u7A0B"),((Se=ke==null?void 0:ke.custom_tags)==null?void 0:Se.length)>0&&oe.createElement(a.Z,{title:(Je=(Ze=ke==null?void 0:ke.custom_tags)==null?void 0:Ze[((Ge=ke==null?void 0:ke.custom_tags)==null?void 0:Ge.length)-1])==null?void 0:Je.tag_name},oe.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},oe.createElement("span",{className:"multi-llipsis1e text-10px"},(Ke=(Fe=ke==null?void 0:ke.custom_tags)==null?void 0:Fe[((at=ke==null?void 0:ke.custom_tags)==null?void 0:at.length)-1])==null?void 0:Ke.tag_name))))),Pe=="hide"&&(ke==null?void 0:ke.studying)&&De&&oe.createElement("div",{className:`${ge.movebq} user-path-items`,onClick:te=>{te.stopPropagation(),ye(ke)}},oe.createElement("i",{className:"iconfont icon-yichu1 font12"}),oe.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(Pe)&&De&&oe.createElement("div",{className:`${ge.hiddenbq} user-path-items`,onClick:te=>{te.stopPropagation(),Ce(ke)}},oe.createElement("i",{className:`iconfont ${Pe=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),oe.createElement("span",null,Pe=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),oe.createElement("div",{className:ge.name},oe.createElement(a.Z,{title:Be&&(ke!=null&&ke.excellent_alias_name)?oe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ve}`,oe.createElement("br",null),oe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ke==null?void 0:ke.excellent_alias_name}`)):Ve},oe.createElement("span",{className:ge.e},Be&&(ke==null?void 0:ke.excellent_alias_name)||Ve))),De&&Me&&((it=ke==null?void 0:ke.progress)==null?void 0:it.all_score)!=0&&oe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},oe.createElement(Te.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((rt=ke==null?void 0:ke.progress)==null?void 0:rt.my_score)/((et=ke==null?void 0:ke.progress)==null?void 0:et.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",($e=ke==null?void 0:ke.progress)==null?void 0:$e.my_score,"/",(Xe=ke==null?void 0:ke.progress)==null?void 0:Xe.all_score),(!De||!Me)&&oe.createElement(a.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ot}`},oe.createElement("div",{className:ge.unit},oe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ot)),(!De||!Me)&&oe.createElement("div",{className:ge.tags},oe.createElement("div",null,oe.createElement(a.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),oe.createElement("span",null,ke.stages_count))),oe.createElement(a.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),oe.createElement("span",null,ke.members_count)))))))})),!ne.length&&oe.createElement(ie.Z,null)))}},82636:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{jL:function(){return be},w9:function(){return it},QD:function(){return Mt},cQ:function(){return Ze.Z},op:function(){return lt},O5:function(){return fr},_b:function(){return Ct},t7:function(){return pe},Gi:function(){return nt},YG:function(){return Xe},qp:function(){return le},vr:function(){return jt},qE:function(){return St},Je:function(){return ye},wb:function(){return Ge},cq:function(){return Re},tp:function(){return re}});var ge=Ie(59301),gt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",be=({dataSource:Jt=[],img:Qt,imgWidth:Vt=346,title:rr,sunTitle:ar,bannerExtraContent:vr})=>ge.createElement("div",{className:gt.banner},ge.createElement("div",{className:gt.content},ge.createElement("aside",null,ge.createElement("p",null,ge.createElement("b",null,rr),ge.createElement("span",null,ar)),Jt.length>0&&ge.createElement("div",{className:gt.btns},Jt.map((hr,Ir)=>ge.createElement("div",{key:Ir,onClick:hr.click},hr.name,hr.sign?ge.createElement("img",{src:a,width:39}):null))),vr),Qt&&ge.createElement("img",{style:{marginTop:33,marginRight:38},src:Qt,width:Vt}))),z={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},E=Ie(92310),ie=Ie.n(E),oe=Ie(89392),le=({dataSource:Jt=[],value:Qt,onChange:Vt,onTitleChange:rr,className:ar,title:vr,titleWidth:hr=41,style:Ir={},fontColor:Or="#6A7283",showCount:Lr})=>{const[Er,Zr]=(0,ge.useState)(1),[_r,qt]=(0,ge.useState)(!1),nr=(0,ge.useRef)(null),jr=(0,ge.useRef)(null);return(0,ge.useEffect)(()=>{var Tr;Jt.length!==0&&(((Tr=nr==null?void 0:nr.current)==null?void 0:Tr.clientHeight)>97?Zr(1):Zr(0)),Jt.length===0&&Zr(0),qt(!1)},[Jt]),ge.createElement("div",{className:ie()(z.row,ar,"fadeIn","animated"),style:Ir},ge.createElement("div",{onClick:(0,oe.throttle)(()=>rr==null?void 0:rr(),2e3),style:{width:hr,marginTop:_r?12:4},className:`${z.title} ${rr?"current":""}`},vr),ge.createElement("div",{className:_r?`${z.tagsWrap} ${z.tagsBorderWrap}`:z.tagsWrap},ge.createElement("div",{className:z.bar,ref:jr,style:Er>0?{height:Er===1?97:"auto",overflow:Er===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ge.createElement("div",{className:z.tag,ref:nr},Jt==null?void 0:Jt.map(Tr=>ge.createElement("span",{onClick:()=>Vt(Tr.id),key:Tr.id,style:{color:Or},className:Qt===Tr.id?z.active:""},ge.createElement("span",{title:Tr.name,className:z.name},Tr.name),!!Lr&&ge.createElement("span",{className:z.num},Tr.count))))),!!Er&&ge.createElement(ge.Fragment,null,Er===1?ge.createElement("div",{onClick:()=>{var Tr;Zr(2),((Tr=nr==null?void 0:nr.current)==null?void 0:Tr.clientHeight)>245?qt(!0):qt(!1)},className:z.action},"\u5C55\u5F00",ge.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ge.createElement("div",{onClick:()=>{jr.current.scrollTop=0,Zr(1),qt(!1)},className:z.action},"\u6536\u8D77",ge.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},x={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},re=({dataSource:Jt=[],value:Qt,onChange:Vt,className:rr,style:ar={}})=>ge.createElement("div",{style:ar,className:ie()(x.tabs,rr)},Jt.map(vr=>ge.createElement("span",{onClick:()=>Vt(vr.id),className:Qt===vr.id?x.active:"",key:vr.id},vr.name))),ae={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},se=Ie(37568),pe=({dataSource:Jt=[],value:Qt="",onChange:Vt,onInputChange:rr=()=>{},className:ar,style:vr={},placeholder:hr,allowClear:Ir=!1})=>{var Or;const[Lr,Er]=(0,ge.useState)(""),[Zr,_r]=(0,ge.useState)("");(0,ge.useEffect)(()=>{var jr;let Tr=Qt;(jr=JSON.stringify(Qt))!=null&&jr.includes("{")&&(Er(Qt.id),Tr=Qt.value||"");try{_r(decodeURIComponent(Tr||""))}catch(It){_r(decodeURIComponent(Tr||""))}},[Qt]);const qt=()=>{Vt(encodeURIComponent(Zr),Lr||null)},nr=jr=>{jr!==Lr&&(Er(jr),Vt(encodeURIComponent(Zr),jr))};return ge.createElement("div",{className:ie()(ae.input,ar),style:vr},!!Jt.length&&ge.createElement("div",{className:ae.dropdown},ge.createElement("div",{className:ae.text},(Or=Jt.find(jr=>jr.id===Lr))==null?void 0:Or.name,ge.createElement("i",{className:"iconfont icon-zhankai4"}),ge.createElement("b",{className:ae.b1}),ge.createElement("b",{className:ae.b2})),ge.createElement("div",{className:ae.menu},Jt.map((jr,Tr)=>ge.createElement("div",{key:Tr,onClick:()=>nr(jr.id)},jr.name)))),ge.createElement(se.default,{onPressEnter:qt,value:Zr,onChange:jr=>{_r(jr.target.value),rr(encodeURIComponent(jr.target.value),Lr||null)},placeholder:hr,variant:"borderless",allowClear:Ir,onClear:()=>Vt("",Lr||null)}),ge.createElement("i",{onClick:qt,className:"iconfont icon-sousuo9 font14 current"}))},me={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ye=({value:Jt,onChange:Qt,className:Vt,total:rr,pageSize:ar,style:vr={}})=>{const hr=Jt<2,Ir=Jt>=Math.ceil(rr/ar);return rr<=ar?ge.createElement(ge.Fragment,null):ge.createElement("div",{className:ie()(me.quickPager,Vt),style:vr},ge.createElement("div",{onClick:()=>{hr||Qt(Jt-1,"prev")},className:hr?me.disabled:""},"\u4E0A\u4E00\u9875"),ge.createElement("div",{onClick:()=>{Ir||Qt(Jt+1,"next")},className:Ir?me.disabled:""},"\u4E0B\u4E00\u9875"))},De={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Me=Ie(29787),Be=Ie(25399),Pe=Ie(63139),Ce=Ie(74128),Ee=Ie(65862),je=Ie(96908),ke=Ie(57177),Le=Ie(81378),Ae=Ie(2524),Ge=({className:Jt,dataSource:Qt=[],col:Vt=4,right:rr,bottom:ar=23,precision:vr=0,wrapWidth:hr=1200,trackEventItems:Ir,loading:Or})=>{const Lr=Math.floor((hr-(Vt-1)*rr)/Vt);return ge.createElement(Me.Z,{spinning:Or},ge.createElement("div",{className:ie()(De.list,Jt)},!!Qt.length&&Qt.map((Er,Zr)=>{const{name:_r,id:qt,identifier:nr,power:jr,cover_image_id:Tr,pic:It}=Er;return ge.createElement("div",{className:De.wrap,key:qt,style:{width:Lr,marginRight:(1+Zr)%Vt===0?0:rr+vr,marginBottom:ar}},ge.createElement("a",{target:"_blank",href:`/shixuns/${nr}/challenges`,className:De.li,onClick:Ft=>{Ft.preventDefault(),Ir&&(0,Ee.L9)([Ir]),jr&&(0,Ee.xg)(`/shixuns/${nr}/challenges`)}},ge.createElement("div",{className:De.img},ge.createElement("img",{className:De.cover,src:`${It}`}),Er.is_jupyter&&ge.createElement("img",{className:De.sign,src:je}),Er.is_jupyter_lab&&ge.createElement("img",{className:De.sign,src:ke}),Er.is_unity_3d&&ge.createElement("img",{className:De.sign,src:Le})),ge.createElement("div",{className:De.name},ge.createElement(Be.Z,{title:_r||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ge.createElement("span",{className:De.e},_r||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ge.createElement("div",{className:De.tags},ge.createElement(Be.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ge.createElement("span",null,Er.challenges_count))),!!Er.myshixuns_count&&ge.createElement(Be.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ge.createElement("span",null,Er.myshixuns_count))),ge.createElement(Be.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ge.createElement("span",null,ge.createElement("span",null,Er.level))),ge.createElement("div",{className:De.rate},ge.createElement(Pe.Z,{allowHalf:!0,disabled:!0,defaultValue:Er.score_info}),ge.createElement("span",null,"\xA0",Er.score_info?`${Er.score_info}\u5206`:"5\u5206")))),!jr&&ge.createElement("div",{className:De.lockWrap},ge.createElement("img",{src:`${Ce.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ge.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Qt.length&&ge.createElement(Ae.Z,null)))},Ze=Ie(61584),Je={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},at="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Fe=Ie(59301),it=({className:Jt,dataSource:Qt=[],col:Vt=4,right:rr,bottom:ar=23,precision:vr=0,wrapWidth:hr=1200,trackEventItems:Ir,loading:Or,category:Lr,hiddenClick:Er,handleVery:Zr=()=>!0,isCurrent:_r})=>{const qt=Math.floor((hr-(Vt-1)*rr)/Vt);return Fe.createElement(Me.Z,{spinning:Or},Fe.createElement("div",{className:ie()(Je.list,Jt)},!!Qt.length&&Qt.map((nr,jr)=>{const{subject_identifier:Tr,id:It,identifier:Ft,power:bt}=nr,kt=nr.is_public!=0&&nr.is_public;return Fe.createElement("div",{className:Je.wrap,key:It,style:{width:qt,marginRight:(1+jr)%Vt===0?0:rr+vr,marginBottom:ar}},Fe.createElement("a",{className:Je.li,onClick:wt=>{wt.preventDefault(),Zr(nr==null?void 0:nr.first_category_url)&&(Ir&&(0,Ee.L9)([Ir]),(0,Ee.xg)(nr.first_category_url))}},Fe.createElement("div",{className:Je.top},Fe.createElement(Be.Z,{title:nr.name},Fe.createElement("div",{className:Je.name},nr.name)),Fe.createElement("img",{className:Je.img,src:Ce.Z.IMG_SERVER+"/images/"+nr.avatar_url}),Fe.createElement("div",{className:Je.text,title:nr.creator},nr.creator),Tr&&Fe.createElement("div",{className:Je.btns},Fe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Fe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),kt&&Fe.createElement("div",{className:Je.sign},"\u516C\u5F00"),_r&&Fe.createElement("div",{className:Je.hidden,onClick:wt=>{wt.stopPropagation(),Er(nr)}},Fe.createElement("i",{className:`iconfont ${Lr=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Lr=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Fe.createElement("div",{className:Je.bottom},nr.visits>0&&Fe.createElement(Be.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Fe.createElement("span",null,Fe.createElement("i",{className:"iconfont icon-liulanyan"}),Fe.createElement("span",null,nr.visits))),nr.course_members_count>0&&Fe.createElement(Be.Z,{title:"\u6210\u5458",placement:"bottom"},Fe.createElement("span",null,Fe.createElement("i",{className:"iconfont icon-chengyuan"}),nr.course_members_count)),nr.tasks_count>0&&Fe.createElement(Be.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Fe.createElement("span",null,Fe.createElement("i",{className:"iconfont icon-zuoye"}),nr.tasks_count)),nr.is_end?Fe.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Fe.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!nr.is_accessible&&Fe.createElement("div",{className:Je.lockWrap},Fe.createElement("img",{src:`${Ce.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Fe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Qt.length&&Fe.createElement(Ae.Z,null)))},rt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},et=Ie(65582),Xe=({dataSource:Jt=[],value:Qt,onChange:Vt,className:rr,style:ar={},tabBarExtraContent:vr})=>ge.createElement("div",{className:ie()(rt.tabs,rr),style:ar},ge.createElement("div",{className:rt.tabsWrap},Jt.map((hr,Ir)=>!(hr!=null&&hr.hide)&&ge.createElement("aside",{className:rt.tab,onClick:()=>{Vt(hr.id),hr.link&&et.history.push(hr.link)},key:Ir},ge.createElement("div",{className:Qt===hr.id?rt.active:""},hr.name),(hr==null?void 0:hr.resetCount)==null&&(hr==null?void 0:hr.total)!==void 0&&ge.createElement("span",null,"\uFF08",hr==null?void 0:hr.total,"\uFF09"),(hr==null?void 0:hr.resetCount)!==void 0&&(hr==null?void 0:hr.total)!==void 0&&ge.createElement(Be.Z,{title:(hr==null?void 0:hr.tip)!=null?hr==null?void 0:hr.tip:""},ge.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ge.createElement("span",{style:{color:"#000"}},hr==null?void 0:hr.resetCount),"/",ge.createElement("span",null,hr==null?void 0:hr.total),"\uFF09"))))),ge.createElement("div",{className:rt.tabBar},vr)),nt=({className:Jt,style:Qt={},children:Vt})=>ge.createElement("div",{className:ie()(Jt),style:Qt},Vt),Qe={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},ct=Ie(75727),ot=Ie(93041);const qe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Re=({sortValue:Jt,dropValue:Qt,className:Vt,onSort:rr,onDrop:ar,dataSource:vr=qe})=>{var hr;return ge.createElement("div",{className:ie()(Qe.orderWrap,Vt)},ge.createElement(ct.Z,{dropdownRender:()=>ge.createElement(ot.default,null,vr.map((Ir,Or)=>ge.createElement(ot.default.Item,{key:Or,onClick:()=>ar(Ir.id)},Ir.name)))},ge.createElement("span",{className:Qe.orderTextWrap},(hr=vr.find(Ir=>Qt===Ir.id))==null?void 0:hr.name)),ge.createElement("span",{className:Qe.orderIconWrap},ge.createElement("span",{className:Qe.orderAsc},ge.createElement("i",{className:Jt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Qe.cursorPointer} ${Qe.active}`:`iconfont icon-sanjiaoxing-up font12 ${Qe.cursorPointer}`,onClick:()=>rr(Jt==="asc"?"desc":"asc")})),ge.createElement("span",{className:Qe.orderDesc},ge.createElement("i",{className:Jt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Qe.cursorPointer} ${Qe.active}`:`iconfont icon-sanjiaoxing-down font12 ${Qe.cursorPointer}`,onClick:()=>rr(Jt==="asc"?"desc":"asc")}))))},te={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},de=Ie(7939),Ne=Object.defineProperty,ze=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Oe=(Jt,Qt,Vt)=>Qt in Jt?Ne(Jt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Jt[Qt]=Vt,We=(Jt,Qt)=>{for(var Vt in Qt||(Qt={}))xe.call(Qt,Vt)&&Oe(Jt,Vt,Qt[Vt]);if(ze)for(var Vt of ze(Qt))ve.call(Qt,Vt)&&Oe(Jt,Vt,Qt[Vt]);return Jt},Ue=(Jt,Qt)=>{var Vt={};for(var rr in Jt)xe.call(Jt,rr)&&Qt.indexOf(rr)<0&&(Vt[rr]=Jt[rr]);if(Jt!=null&&ze)for(var rr of ze(Jt))Qt.indexOf(rr)<0&&ve.call(Jt,rr)&&(Vt[rr]=Jt[rr]);return Vt},Ye=(Jt,Qt,Vt)=>new Promise((rr,ar)=>{var vr=Or=>{try{Ir(Vt.next(Or))}catch(Lr){ar(Lr)}},hr=Or=>{try{Ir(Vt.throw(Or))}catch(Lr){ar(Lr)}},Ir=Or=>Or.done?rr(Or.value):Promise.resolve(Or.value).then(vr,hr);Ir((Vt=Vt.apply(Jt,Qt)).next())}),lt=Jt=>{var Qt=Jt,{className:Vt,style:rr,children:ar,loading:vr=!1,openLoading:hr,onClick:Ir=()=>{},size:Or="middle",shape:Lr="round"}=Qt,Er=Ue(Qt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Zr,_r]=(0,ge.useState)(!1);return ge.createElement(de.ZP,We({onClick:(0,oe.throttle)(qt=>Ye(void 0,null,function*(){hr&&_r(!0);try{yield Ir(qt)}catch(nr){console.log("error",nr)}hr&&_r(!1)}),2e3,{leading:!0,trailing:!1}),className:ie()(te.btn,te[`${Or}-${Lr}`],Vt),style:rr,size:Or,shape:Lr,loading:Zr||vr},Er),ar)},ft={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},St=({className:Jt,style:Qt,children:Vt=null,onClick:rr,title:ar})=>ge.createElement("div",{className:ie()(ft.head,Jt),style:Qt},ge.createElement("span",{className:"primary-hover",onClick:rr},ge.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ge.createElement("b",{title:ar},ar),ge.createElement("div",{className:ft.node},Vt)),Ot={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Mt=({confirmShow:Jt=!0,confirmTitle:Qt,confirmClick:Vt,cancelShow:rr=!0,cancelTitle:ar,cancelClick:vr,className:hr,style:Ir,confirmLoading:Or=!1})=>ge.createElement("div",{className:ie()(Ot.btns,hr),style:Ir},Jt&&ge.createElement(de.ZP,{loading:Or,onClick:Vt,type:"primary",className:Ot.confirm},Qt),rr&&ge.createElement(de.ZP,{onClick:vr,className:Ot.cancel},ar)),Et={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},jt=({className:Jt,style:Qt={},LeftContent:Vt,children:rr,RightContent:ar})=>ge.createElement("div",{className:ie()(Et.fixedBottom,Jt),style:Qt},ge.createElement("div",{className:Et.wrap},ge.createElement("div",{className:Et.left},Vt),ge.createElement("div",{className:Et.center},rr),ge.createElement("div",{className:Et.right},ar))),At={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Ct=({className:Jt,style:Qt={},dataSource:Vt=[]})=>ge.createElement("div",{className:ie()(At.crumbs,Jt),style:Qt},Vt.map((rr,ar)=>ar<Vt.length-1?ge.createElement(ge.Fragment,{key:ar},rr.path||rr.onClick?ge.createElement("span",{className:At.hover,onClick:rr!=null&&rr.onClick?rr.onClick:()=>et.history.push(rr.path)},rr.name):ge.createElement("span",null,rr.name),ge.createElement("span",null,"\xA0",">","\xA0")):ge.createElement("span",{key:ar,style:{color:"#5F6368"}},rr.name))),$t=Ie(11938),Xt=Object.defineProperty,vt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,_t=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,sr=(Jt,Qt,Vt)=>Qt in Jt?Xt(Jt,Qt,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Jt[Qt]=Vt,yr=(Jt,Qt)=>{for(var Vt in Qt||(Qt={}))Kt.call(Qt,Vt)&&sr(Jt,Vt,Qt[Vt]);if(_t)for(var Vt of _t(Qt))er.call(Qt,Vt)&&sr(Jt,Vt,Qt[Vt]);return Jt},xr=(Jt,Qt)=>vt(Jt,Pt(Qt)),ur=(Jt,Qt)=>{var Vt={};for(var rr in Jt)Kt.call(Jt,rr)&&Qt.indexOf(rr)<0&&(Vt[rr]=Jt[rr]);if(Jt!=null&&_t)for(var rr of _t(Jt))Qt.indexOf(rr)<0&&er.call(Jt,rr)&&(Vt[rr]=Jt[rr]);return Vt};const{Countdown:br}=$t.default;var fr=Jt=>{var Qt=Jt,{onChange:Vt}=Qt,rr=ur(Qt,["onChange"]);const[ar,vr]=(0,ge.useState)(null);(0,ge.useEffect)(()=>{typeof ar=="number"&&ar>=0&&Vt(ar)},[ar]);const hr=Ir=>{const Or=Math.floor(Ir/1e3);vr(Or)};return ge.createElement(br,xr(yr({},rr),{onChange:hr}))}},31103:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return gt}});var ge=Ie(59301);function gt(a,Te){const be=(0,ge.useRef)();(0,ge.useEffect)(()=>{be.current=a}),(0,ge.useEffect)(()=>{function z(){be.current()}if(Te!==null){let E=setInterval(z,Te);return()=>clearInterval(E)}},[Te])}},40758:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return je}});var ge=Ie(59301),gt=Ie(28284),a=Ie(36207),Te=Ie(62957),be=Ie(6767),z=Ie(62673),E=Ie(50258),ie=Ie(77825),oe=Ie(57261),ee=Ie(42926),le={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",ne=Ie(89392),re=Ie(82636),ae=Ie(59301),se=Object.defineProperty,ce=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,De=(Le,Ae,Se)=>Ae in Le?se(Le,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Se}):Le[Ae]=Se,Me=(Le,Ae)=>{for(var Se in Ae||(Ae={}))he.call(Ae,Se)&&De(Le,Se,Ae[Se]);if(me)for(var Se of me(Ae))ye.call(Ae,Se)&&De(Le,Se,Ae[Se]);return Le},Be=(Le,Ae)=>ce(Le,pe(Ae));const Pe={theme:(0,ee.G)("cmCodeMode","vs-dark"),fontSize:(0,ee.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,ee.G)("cmTabToSpace",!0)};var Ce=(Le=>(Le[Le.set_font_size=0]="set_font_size",Le[Le.set_theme=1]="set_theme",Le[Le.on_tab_to_space=2]="on_tab_to_space",Le[Le.set_show_editor_setting=3]="set_show_editor_setting",Le))(Ce||{});function Ee(Le,Ae){switch(Ae.type){case 3:return Be(Me({},Le),{showEditorSetting:Ae.payload});case 1:return Be(Me({},Le),{theme:Ae.payload});case 0:return Be(Me({},Le),{fontSize:Ae.payload});case 2:return Be(Me({},Le),{tabToSpace:Ae.payload});default:throw new Error}}var je=({isLoading:Le,value:Ae=[],onChange:Se,form:Ge})=>{var Ze;const[Je,at]=(0,ge.useReducer)(Ee,Pe),{theme:Fe,fontSize:Ke,showEditorSetting:it,tabToSpace:rt}=Je,[et,$e]=(0,ge.useState)("C"),[Xe,Ve]=(0,ge.useState)(!1),[nt,Qe]=(0,ge.useState)([]),ct=(0,ge.useRef)([]),ot=gt.default.useWatch(["hack","languages"],Ge);(0,ge.useEffect)(()=>{Ae!=null&&Ae.length&&(ct.current=(0,ne.cloneDeep)(Ae))},[Ae]),(0,ge.useEffect)(()=>{Xe&&Qe(ot)},[Xe]),(0,ge.useEffect)(()=>{$e(ot==null?void 0:ot[0])},[ot]);const qe={onFontSizeChange:ze=>{at({type:0,payload:ze}),(0,ee.t)("cmFontSize",ze)},tabToSpace:rt,cmFontSize:Ke,className:"oj",cmCodeMode:Fe,onTabToSpace:ze=>{at({type:2,payload:ze}),(0,ee.t)("cmTabToSpace",ze)},onCodeModeChange:ze=>{at({type:1,payload:ze}),(0,ee.t)("cmCodeMode",ze)}};function _e(){at({type:3,payload:!1})}function Re(){at({type:3,payload:!0})}function te(ze){var xe;const ve=(xe=ct.current)==null?void 0:xe.map(Oe=>(Oe.language===et&&(Oe.code=ze),Oe));ct.current=(0,ne.cloneDeep)(ve),Se(ve)}const de={key:et,value:(Ze=Ae==null?void 0:Ae.find(ze=>ze.language===et))==null?void 0:Ze.code,language:et,onChange:te,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:Ke,insertSpaces:rt}};console.log(888,Ae,ot);const Ne=Ae.filter(ze=>ot==null?void 0:ot.includes(ze.language));return ae.createElement(ge.Fragment,null,ae.createElement("div",{className:le["code-panel-container"]},ae.createElement(ke,{setVisible:Ve,languageItems:Ne,onLanguage:ze=>$e(ze),language:et,onShowCodeSetting:Re}),!Le&&ae.createElement(E.ZP,Me({},de))),ae.createElement(oe.Z,null,ae.createElement(a.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:it,onClose:_e},ae.createElement(ie.Z,Me({},qe)))),ae.createElement(Te.default,{centered:!0,open:Xe,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!nt.length){be.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}Ge.setFieldValue(["hack","languages"],nt),Ve(!1)},onCancel:()=>Ve(!1)},ae.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},ae.createElement(z.default.Group,{value:nt,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:ze=>{Qe(ze)}}))))};function ke({languageItems:Le,language:Ae,onShowCodeSetting:Se,onLanguage:Ge,setVisible:Ze}){return ae.createElement("div",{className:le["action-oj-bar"]},Le==null?void 0:Le.map(Je=>ae.createElement("aside",{className:Ae===(Je==null?void 0:Je.language)?le.active:"",onClick:()=>Ge(Je==null?void 0:Je.language),key:Je==null?void 0:Je.language},ae.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),ae.createElement("span",null,Je==null?void 0:Je.language))),ae.createElement("div",{className:le.tip},ae.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),ae.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),ae.createElement(re.op,{onClick:()=>Ze(!0),shape:"default"},ae.createElement("img",{src:x,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},12095:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{GM:function(){return ie},MK:function(){return E},PR:function(){return gt},ZS:function(){return ee},d1:function(){return a},fu:function(){return Te},j2:function(){return oe},l_:function(){return be},uE:function(){return le},zQ:function(){return z}});var ge=Ie(38147);function gt(){return(0,ge.U2)("problems/new.json")}function a(ne="question"){return(0,ge.U2)("disciplines.json",{source:ne})}function Te(ne){return(0,ge.U2)(`problems/${ne}/edit.json`)}function be(ne,re){return(0,ge.gz)(`problems/${ne}.json`,re)}function z(ne){return(0,ge.v_)("problems.json",ne)}function E(ne,re){return(0,ge.v_)(`exercises/${ne}/exercise_questions.json`,re)}function ie(ne,re){return(0,ge.gz)(`exercise_questions/${ne}.json`,re)}function oe(ne){return(0,ge.v_)(`problems/${ne}/publish.json`)}function ee(ne){return(0,ge.v_)(`problems/${ne}/cancel_publish.json`)}function le(ne){return(0,ge.U2)(`problems/${ne}/start.json`)}function x(ne,re){return post("tag_disciplines.json",{name:re,sub_discipline_id:ne})}},12088:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Y2:function(){return Ze},ZP:function(){return Je}});var ge=Ie(59301),gt=Ie(94968),a=Ie(6767),Te=Ie(62957),be=Ie(77019),z=Ie(47889),E=Ie(7939),ie=Ie(62673),oe=Ie(25399),ee=Ie(37568),le={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",ne=Ie(47257),re=Ie.n(ne),ae=Ie(83845),se=Ie(38147),ce=Ie(1012),pe=Ie(65862),me=Ie(52918),he=Ie(59301),ye=Object.defineProperty,De=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Be=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Ee=(at,Fe,Ke)=>Fe in at?ye(at,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):at[Fe]=Ke,je=(at,Fe)=>{for(var Ke in Fe||(Fe={}))Pe.call(Fe,Ke)&&Ee(at,Ke,Fe[Ke]);if(Be)for(var Ke of Be(Fe))Ce.call(Fe,Ke)&&Ee(at,Ke,Fe[Ke]);return at},ke=(at,Fe)=>De(at,Me(Fe)),Le=(at,Fe,Ke)=>new Promise((it,rt)=>{var et=Ve=>{try{Xe(Ke.next(Ve))}catch(nt){rt(nt)}},$e=Ve=>{try{Xe(Ke.throw(Ve))}catch(nt){rt(nt)}},Xe=Ve=>Ve.done?it(Ve.value):Promise.resolve(Ve.value).then(et,$e);Xe((Ke=Ke.apply(at,Fe)).next())});const{Dragger:Ae}=gt.default,Se=at=>{const Fe=nt=>nt&&nt.substring(0,nt.lastIndexOf("."));for(var Ke=[...at],it=0,rt=[],et=0;et<Ke.length;et++){for(var $e="",Xe=0;Xe<rt.length;Xe++)if(Fe(rt[Xe][0].name)==Fe(Ke[et].name)){it=1,$e=Xe;break}if(it==1)rt[$e].push(Ke[et]),it=0;else if(it==0){let nt=new Array;nt.push(Ke[et]),rt.push(nt)}}return rt.map(nt=>{if(nt.forEach(Qe=>{let ct=Qe.name.split(/\.(?=[^\.]+$)/);Qe.name=`${ct[0]}.${ct[1].toLowerCase()}`}),nt[0].name.includes(".in"))return nt.length===2?nt:[nt[0],{}];if(nt[0].name.includes(".out"))return nt.length===2?nt.reverse():[{},nt[0]]})},Ge=({onClose:at,onOK:Fe,visible:Ke,wrapClassName:it,rootIdentifier:rt,multiple:et=!1,defaultMultipleValue:$e=!0})=>{const[Xe,Ve]=(0,ge.useState)([]),[nt,Qe]=(0,ge.useState)({}),[ct,ot]=(0,ge.useState)(!1),[qe,_e]=(0,ge.useState)(!0),Re=(0,ge.useRef)([]),te=(0,ge.useRef)(0),de=()=>{at()};(0,ge.useEffect)(()=>{Ne()},[]),(0,ge.useEffect)(()=>{Ke&&(Re.current=[],te.current=0,Ve([]),_e($e))},[Ke]);const Ne=()=>Le(void 0,null,function*(){try{const st=yield(0,se.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),lt=JSON.parse((0,ae.pe)(st.data));Qe(lt)}catch(st){}}),ze=st=>st&&st.substring(0,st.lastIndexOf(".")),xe=st=>{var lt,ft;const Tt=ze((lt=st[0])==null?void 0:lt.name)||ze((ft=st[1])==null?void 0:ft.name),St=Xe.filter(Ot=>ze(Ot.name)!==Tt);Re.current=[...St],Ve([...St])},ve=st=>{if(!qe){const yt=new FormData;yt.append("file",st.file),(0,se.ZP)("/api/attachments/get_file_content.json",{method:"post",body:yt},!0).then(Et=>{if(Et.status===0){te.current=te.current+1;const xt=Re.current.map(jt=>{var At;if(jt.name===st.name){const ht=je({},jt);return(At=st==null?void 0:st.name)!=null&&At.includes(".in")?ht.input=Et==null?void 0:Et.content:ht.output=Et==null?void 0:Et.content,ht}return jt});if(Re.current=[...xt],Ve([...xt]),te.current>0&&te.current===Xe.length){ot(!1);let jt=Se(xt);jt=jt.filter(At=>{var ht,Ct;return!!((ht=At[0])!=null&&ht.name&&((Ct=At[1])!=null&&Ct.name))}),jt=jt.map(At=>ke(je(je({},At[0]),At[1]),{is_file:!1})),Fe(jt),at()}}else ot(!1),at()});return}const lt=new(re())({endpoint:nt.end_point,region:nt.region,accessKeyId:nt.access_key_id,accessKeySecret:nt.access_key_secret,bucket:nt.bucket,stsToken:nt.security_token}),ft=st.name,Tt={container_type:"TestSet",file_name:ft},St=(0,ce.Z)();let Ot=`testsets/${rt}/${St}${ft.indexOf(".")>-1?"."+ft.split(".").pop():""}`;rt===null&&(Ot=`testsets/${St}${ft.indexOf(".")>-1?"."+ft.split(".").pop():""}`),lt.multipartUpload(Ot,new Blob([st.file],{type:st.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:ft+""},url:nt==null?void 0:nt.callback_url,host:nt==null?void 0:nt.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,se.rz)(Tt)}}).then(function(yt){if(yt.data.status===0){te.current=te.current+1;const Mt=Re.current.map(Et=>{var xt,jt,At,ht,Ct,$t,Xt,vt,Pt,_t,Kt,er,sr,yr,xr,ur,br;if(Et.name===((jt=(xt=yt.data)==null?void 0:xt.data)==null?void 0:jt.file_name)){const or=je({},Et);return(Ct=(ht=(At=yt.data)==null?void 0:At.data)==null?void 0:ht.file_name)!=null&&Ct.includes(".in")?(or.in_object_key=(Xt=($t=yt.data)==null?void 0:$t.data)==null?void 0:Xt.object,or.in_object_size=(Pt=(vt=yt.data)==null?void 0:vt.data)==null?void 0:Pt.size,or.input=(Kt=(_t=yt.data)==null?void 0:_t.data)==null?void 0:Kt.file_name,or.in_file=st):(or.out_object_key=(sr=(er=yt.data)==null?void 0:er.data)==null?void 0:sr.object,or.out_object_size=(xr=(yr=yt.data)==null?void 0:yr.data)==null?void 0:xr.size,or.output=(br=(ur=yt.data)==null?void 0:ur.data)==null?void 0:br.file_name,or.out_file=st),or}return Et});if(Re.current=[...Mt],Ve([...Mt]),te.current>0&&te.current===Xe.length){ot(!1);let Et=Se(Mt);Et=Et.filter(xt=>{var jt,At;return!!((jt=xt[0])!=null&&jt.name&&((At=xt[1])!=null&&At.name))}),Et=Et.map(xt=>ke(je(je({},xt[0]),xt[1]),{is_file:!0})),Fe(Et),at()}}})},Oe=st=>new Promise((lt,ft)=>{let Tt=0,St=[];for(let Ot=0;Ot<st.length;Ot++)st[Ot].file.slice(0,1).arrayBuffer().then(()=>{Tt++,Tt===st.length&&(St.length?(a.ZP.warning(`${St.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),ft()):lt(st))}).catch(yt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",yt),Tt++,St.push(st[Ot].name),Tt===st.length&&(St.length?(a.ZP.warning(`${St.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),ft()):lt(st))})}),We=()=>Le(void 0,null,function*(){if(Xe.length===0){a.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Oe(Xe),ot(!0),Se(Xe).some(lt=>{var ft,Tt;return!((ft=lt[0])!=null&&ft.name&&((Tt=lt[1])!=null&&Tt.name))})){Te.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Le(void 0,null,function*(){Xe.map(lt=>Le(void 0,null,function*(){ve(lt)}))}),onCancel:()=>{ot(!1)}});return}Xe.map(lt=>Le(void 0,null,function*(){ve(lt)}))}),Ue={name:"file",fileList:Xe,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:st=>{if(Xe!=null&&Xe.some(ft=>ft.name===st.name))return a.ZP.info(`${st.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(st.size/1024/1024>100)return a.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(st.name))return a.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const lt={name:st.name,uid:st.uid,file:st,percent:0};return Xe.push(lt),Re.current=[...Xe],Ve([...Xe]),!1}},Ye=Se(Xe);return console.log(Xe,Ye,"fileList"),he.createElement(Te.default,{open:Ke,wrapClassName:it,onOk:We,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:ct},onCancel:de,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},he.createElement("div",{className:le.wrap},Xe.length?he.createElement("div",null,he.createElement(be.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},he.createElement("div",{style:{visibility:et?"visible":"hidden"}},he.createElement("span",{className:le.greyText},"\u7528\u4F8B\u7C7B\u578B"),he.createElement(z.ZP.Group,{className:`ml20 ${le.testCaseRadio}`,optionType:"button",value:qe,onChange:st=>_e(st.target.value)},he.createElement(z.ZP,{value:!1},"\u6587\u672C"),he.createElement(z.ZP,{value:!0},"\u6587\u4EF6"))),he.createElement(gt.default,je({},Ue),he.createElement(E.ZP,{type:"primary",className:le.btnS},he.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),he.createElement(Ze,{data:Ye,onRemove:xe})):he.createElement("div",{className:`${le.noData} mb30`},he.createElement(gt.default.Dragger,ke(je({},Ue),{className:le.dragger}),he.createElement("img",{src:x,alt:"",className:"mb20"}),he.createElement("div",null,he.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),he.createElement("span",{className:le.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),he.createElement("div",{className:le.text},he.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),he.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",he.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",he.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",he.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",he.createElement("br",null))))},Ze=({data:at=[],onRemove:Fe,width:Ke="auto",showScore:it=!1,disabled:rt=!1,inputChange:et,onEvaluatingChange:$e,onSelectAll:Xe,checkAll1:Ve,checkAll2:nt,checkAll3:Qe,checkAll4:ct,checkAll5:ot,showEvaluatingSetting:qe=!1,className:_e="",isProgramHomework:Re=!1})=>{const te={value:"",filename:"",dataUrl:""},[de,Ne]=(0,ge.useState)(je({},te)),ze=Oe=>{let We=document.createElement("a");document.body.appendChild(We);let Ue=URL.createObjectURL(Oe.file);We.href=Ue,We.download=Oe.name,We.click(),URL.revokeObjectURL(Ue),document.body.removeChild(We)},xe=(Oe,We)=>{(0,pe.LR)(Oe,We)},ve=(Oe,We)=>{Te.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:he.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Fe(Oe,We)},onCancel:()=>{}})};return at.length?he.createElement("div",{className:_e,style:{width:Ke}},he.createElement("div",{className:`${Re?le.headProgram:le.head}`},qe&&he.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},he.createElement(ie.default,{checked:Ve,onChange:Oe=>{Xe(Oe.target.checked,"hidden")}}),he.createElement(oe.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},he.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),he.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),he.createElement("div",{style:{width:Re?"25%":"15%"}},"\u7528\u4F8B"),he.createElement("div",{style:{width:it?Re?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),he.createElement("div",{style:{width:it?Re?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),it&&he.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),qe&&he.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},he.createElement(ie.default,{checked:ct,onChange:Oe=>{Xe(Oe.target.checked,"input_visible")}}),he.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},he.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),he.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),qe&&he.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},he.createElement(ie.default,{checked:nt,onChange:Oe=>{Xe(Oe.target.checked,"is_invisible")}}),he.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},he.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),he.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),qe&&he.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},he.createElement(ie.default,{checked:ot,onChange:Oe=>{Xe(Oe.target.checked,"actual_output_visible")}}),he.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},he.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),he.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),qe&&he.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},he.createElement(ie.default,{checked:Qe,onChange:Oe=>{Xe(Oe.target.checked,"last_match_rule")}}),he.createElement(oe.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},he.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),he.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),he.createElement("div",{className:le.operation,style:Re?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),he.createElement("div",{className:le.listWrapper,style:{boxShadow:Re?"0px 2px 4px 0px #EAEEF4":"unset"}},at.map((Oe,We)=>{var Ue,Ye,st,lt;return he.createElement("div",{key:We,className:le.list,style:Re?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},qe&&he.createElement("div",{style:{width:"15%"}},he.createElement(ie.default,{checked:!!Oe.hidden,onChange:ft=>{$e(ft.target.checked,We,"hidden")}})),he.createElement("div",{style:{width:Re?"25%":"15%",paddingLeft:Re?"5px":"0px",paddingRight:Re?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",We+1),he.createElement("div",{className:le.info,style:{width:it?Re?"20%":"15%":"25%"}},he.createElement("span",{title:Oe.input||((Ue=Oe[0])==null?void 0:Ue.name),onClick:()=>Le(void 0,null,function*(){let ft;Oe.input?Oe.input_file_url?ft=Oe.input_file_url:ft=Oe.in_file:ft=Oe[0];let Tt;typeof ft=="string"?(Tt=yield fetch(ft,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ne({value:yield Tt.text(),filename:"",dataUrl:ft})):(Tt=yield(0,pe.db)(ft.file),Ne({value:Tt.text,filename:ft.name,dataUrl:Tt.link}))})},Oe.input||((Ye=Oe[0])==null?void 0:Ye.name))),he.createElement("div",{className:le.info,style:{width:it?Re?"20%":"15%":"25%"}},he.createElement("span",{title:Oe.output||((st=Oe[1])==null?void 0:st.name),onClick:()=>Le(void 0,null,function*(){let ft;Oe.input?Oe.output_file_url?ft=Oe.output_file_url:ft=Oe.out_file:ft=Oe[1];let Tt;typeof ft=="string"?(Tt=yield fetch(ft,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ne({value:yield Tt.text(),filename:"",dataUrl:ft})):(Tt=yield(0,pe.db)(ft.file),Ne({value:Tt.text,filename:ft.name,dataUrl:Tt.link}))})},Oe.output||((lt=Oe[1])==null?void 0:lt.name))),it&&he.createElement("div",{style:{width:"20%"}},he.createElement(ee.default,{size:"large",addonAfter:Re?"%":null,disabled:rt,style:{width:"80%"},onChange:ft=>et(ft,We),value:Oe.score}),!Re&&he.createElement("span",null,"\xA0%")),qe&&he.createElement("div",{style:{width:"20%"}},he.createElement(ie.default,{checked:Oe.input_visible||!1,onChange:ft=>{$e(ft.target.checked,We,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),qe&&he.createElement("div",{style:{width:"20%"}},he.createElement(ie.default,{checked:Oe.is_invisible||!1,onChange:ft=>{$e(ft.target.checked,We,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),qe&&he.createElement("div",{style:{width:"20%"}},he.createElement(ie.default,{checked:Oe.actual_output_visible||!1,onChange:ft=>{$e(ft.target.checked,We,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),qe&&he.createElement("div",{style:{width:"20%"}},he.createElement(ie.default,{checked:Oe.last_match_rule||!1,onChange:ft=>{$e(ft.target.checked,We,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),he.createElement("div",{onClick:()=>ve(Oe,We),style:Re?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},he.createElement("span",{className:le.del},"\u5220\u9664")))})),he.createElement(me.Z,{close:!0,data:de.dataUrl,filename:de.filename,type:de.dataUrl.length?"txt":"",onClose:()=>Ne(je({},te)),monacoEditor:{value:de.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):he.createElement(he.Fragment,null)};var Je=Ge},40743:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{c:function(){return gt}});var ge=(a=>(a.FirstPage="firstPage",a.PrevPage="prevPage",a.NextPage="nextPage",a))(ge||{}),gt=(a=>(a[a.Single=0]="Single",a[a.Multiple=1]="Multiple",a[a.Judge=2]="Judge",a[a.Fill=3]="Fill",a[a.Subjective=4]="Subjective",a[a.Shixun=5]="Shixun",a[a.Program=6]="Program",a[a.Combine=7]="Combine",a))(gt||{})},49142:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{AL:function(){return ye},Iy:function(){return le},Qv:function(){return re},ez:function(){return he},jb:function(){return x}});var ge=Ie(32834),gt=Ie.n(ge),a=Ie(11690),Te=Ie.n(a);let be=1;function z(Ce,Ee){const je=Ce.match(/^(\s+)(?:```)/);if(je===null)return Ee;const ke=je[1];return Ee.split(`
|
|
|
`).map(Le=>{const Ae=Le.match(/^\s+/);if(Ae===null)return Le;const[Se]=Ae;return Se.length>=ke.length?Le.slice(ke.length):Le}).join(`
|
|
|
`)}let E=[],ie=["<ul>"];const oe=new(gt()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){E.length=0,ie=["<ul>"]}const x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ne(Ce,Ee,je,ke){if(Ee>=Ce.length||Ce[Ee].level<=je)return Ee;var Le=Ce[Ee];ke.push("<li><a href='#"+be+Le.anchor+"'>"+Le.text+"</a>"),Ee++;var Ae=[];return Ee=ne(Ce,Ee,Le.level,Ae),Ae.length>0&&(ke.push("<ul>"),Ae.forEach(function(Se){ke.push(Se)}),ke.push("</ul>")),ke.push("</li>"),Ee=ne(Ce,Ee,je,ke),Ee}function re(){return ne(E,0,0,ie),ie.push("</ul>"),ie.join("")}const ae={heading(Ce){const Ee=ee.exec(Ce);if(be+=1,Ee)return{type:"heading",raw:Ee[0],depth:Ee[1].length,text:Ee[2]}},fences(Ce){const Ee=this.rules.block.fences.exec(Ce);if(Ee){const je=Ee[0];let ke=z(je,Ee[3]||"");const Le=Ee[2]?Ee[2].trim():Ee[2];if(["latex","katex","math"].indexOf(Le)>=0){const Ae=pe(),Se=ke;ke=Ae,me[Ae]={type:"block",expression:Se}}return{type:"code",raw:je,lang:Le,text:ke}}}},se=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ce=0;const pe=()=>`__special_katext_id_${ce++}__`;let me={};function he(){return me}function ye(){ce=0,me={}}function De(Ce){return Ce=Ce.replace(se,(Ee,je)=>{const ke=pe();return me[ke]={type:"inline",expression:je},ke}),Ce}const Me=oe.listitem;oe.listitem=function(Ce){return Me(De(Ce))};const Be=oe.paragraph;oe.paragraph=function(Ce){return Be(De(Ce))};const Pe=oe.tablecell;oe.tablecell=function(Ce,Ee){return Pe(De(Ce),Ee)},oe.code=function(Ce,Ee,je){const ke=(Ee||"").match(/\S*/)[0];return ke?["latex","katex","math"].indexOf(ke)>=0?`<p class='editormd-tex'>${Ce}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ee}">${je?Ce:(0,a.escape)(Ce,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(je?Ce:(0,a.escape)(Ce,!0))+"</code></pre>"},oe.heading=function(Ce,Ee,je){let ke=this.options.headerPrefix+je.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return E.push({anchor:ke,level:Ee,text:Ce}),"<h"+Ee+' id="'+be+ke+'">'+Ce+"</h"+Ee+">"},gt().setOptions({silent:!0,gfm:!0,pedantic:!1}),gt().use({tokenizer:ae,renderer:oe}),Dt.ZP=gt()},42926:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{G:function(){return be},t:function(){return Te}});var ge=Ie(7062),gt=Ie.n(ge);const a=null;function Te(z,E){let ie=gt().get("__ec");ie||(ie={}),ie[z]=E,gt().set("__ec",ie)}function be(z,E){let ie=gt().get("__ec");return ie?ie[z]===void 0?E:ie[z]:E}},47257:function(Yt){(function(Dt){(function(Ie){if(1)Yt.exports=Ie();else var ge})(function(){var Ie,ge,gt;return function(){function a(Te,be,z){function E(ee,le){if(!be[ee]){if(!Te[ee]){var x=void 0;if(!le&&x)return require(ee,!0);if(ie)return ie(ee,!0);var ne=new Error("Cannot find module '"+ee+"'");throw ne.code="MODULE_NOT_FOUND",ne}var re=be[ee]={exports:{}};Te[ee][0].call(re.exports,function(ae){var se=Te[ee][1][ae];return E(se||ae)},re,re.exports,a,Te,be,z)}return be[ee].exports}for(var ie=void 0,oe=0;oe<z.length;oe++)E(z[oe]);return E}return a}()({1:[function(a,Te,be){"use strict";var z=a("./browser/client");z.Buffer=a("buffer").Buffer,z.urllib=a("../shims/xhr"),z.version=a("./browser/version").version,Te.exports=z},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.slice.js");var oe=a("assert"),ee=a("../common/utils/checkBucketName"),le=ee.checkBucketName,x=be;function ne(ae){return Array.isArray?Array.isArray(ae):Object.prototype.toString.call(ae)==="[object Array]"}function re(ae){return ae?ne(ae)?ae:[ae]:[]}x.useBucket=function(se){return le(se),this.options.bucket=se,this},x.setBucket=function(se){return le(se),this.options.bucket=se,this},x.getBucket=function(){return this.options.bucket},x.deleteBucket=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me){var he,ye;return E.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return he=this._bucketRequestParams("DELETE",pe,"",me),Me.next=3,this.request(he);case 3:if(ye=Me.sent,!(ye.status===200||ye.status===204)){Me.next=6;break}return Me.abrupt("return",{res:ye.res});case 6:return Me.next=8,this.requestError(ye);case 8:throw Me.sent;case 9:case"end":return Me.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.putBucketACL=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me,he){var ye,De;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return ye=this._bucketRequestParams("PUT",pe,"acl",he),ye.headers={"x-oss-acl":me},ye.successStatuses=[200],Be.next=5,this.request(ye);case 5:return De=Be.sent,Be.abrupt("return",{bucket:De.headers.location&&De.headers.location.substring(1)||null,res:De.res});case 7:case"end":return Be.stop()}},ce,this)}));function se(ce,pe,me){return ae.apply(this,arguments)}return se}(),x.getBucketACL=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me){var he,ye;return E.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return he=this._bucketRequestParams("GET",pe,"acl",me),he.successStatuses=[200],he.xmlResponse=!0,Me.next=5,this.request(he);case 5:return ye=Me.sent,Me.abrupt("return",{acl:ye.data.AccessControlList.Grant,owner:{id:ye.data.Owner.ID,displayName:ye.data.Owner.DisplayName},res:ye.res});case 7:case"end":return Me.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.putBucketLogging=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me,he){var ye,De,Me;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ye=this._bucketRequestParams("PUT",pe,"logging",he),De=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<BucketLoggingStatus>
|
|
|
<LoggingEnabled>
|
|
|
<TargetBucket>`.concat(pe,`</TargetBucket>
|
|
|
`),me&&(De+="<TargetPrefix>".concat(me,`</TargetPrefix>
|
|
|
`)),De+=`</LoggingEnabled>
|
|
|
</BucketLoggingStatus>`,ye.content=De,ye.mime="xml",ye.successStatuses=[200],Pe.next=9,this.request(ye);case 9:return Me=Pe.sent,Pe.abrupt("return",{res:Me.res});case 11:case"end":return Pe.stop()}},ce,this)}));function se(ce,pe,me){return ae.apply(this,arguments)}return se}(),x.getBucketLogging=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me){var he,ye,De;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return he=this._bucketRequestParams("GET",pe,"logging",me),he.successStatuses=[200],he.xmlResponse=!0,Be.next=5,this.request(he);case 5:return ye=Be.sent,De=ye.data.LoggingEnabled,Be.abrupt("return",{enable:!!De,prefix:De&&De.TargetPrefix||null,res:ye.res});case 8:case"end":return Be.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.deleteBucketLogging=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me){var he,ye;return E.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return he=this._bucketRequestParams("DELETE",pe,"logging",me),he.successStatuses=[204,200],Me.next=4,this.request(he);case 4:return ye=Me.sent,Me.abrupt("return",{res:ye.res});case 6:case"end":return Me.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.putBucketCORS=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me,he){var ye,De,Me,Be,Pe,Ce,Ee,je,ke,Le;return E.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:for(me=me||[],oe(me.length,"rules is required"),me.forEach(function(Ge){oe(Ge.allowedOrigin,"allowedOrigin is required"),oe(Ge.allowedMethod,"allowedMethod is required")}),ye=this._bucketRequestParams("PUT",pe,"cors",he),De=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CORSConfiguration>`,Me=function(Ze){De+="<AllowedOrigin>".concat(Ze,"</AllowedOrigin>")},Be=function(Ze){De+="<AllowedMethod>".concat(Ze,"</AllowedMethod>")},Pe=function(Ze){De+="<AllowedHeader>".concat(Ze,"</AllowedHeader>")},Ce=function(Ze){De+="<ExposeHeader>".concat(Ze,"</ExposeHeader>")},Ee=0,je=me.length;Ee<je;Ee++)ke=me[Ee],De+="<CORSRule>",re(ke.allowedOrigin).forEach(Me),re(ke.allowedMethod).forEach(Be),re(ke.allowedHeader).forEach(Pe),re(ke.exposeHeader).forEach(Ce),ke.maxAgeSeconds&&(De+="<MaxAgeSeconds>".concat(ke.maxAgeSeconds,"</MaxAgeSeconds>")),De+="</CORSRule>";return De+="</CORSConfiguration>",ye.content=De,ye.mime="xml",ye.successStatuses=[200],Se.next=16,this.request(ye);case 16:return Le=Se.sent,Se.abrupt("return",{res:Le.res});case 18:case"end":return Se.stop()}},ce,this)}));function se(ce,pe,me){return ae.apply(this,arguments)}return se}(),x.getBucketCORS=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me){var he,ye,De,Me;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return he=this._bucketRequestParams("GET",pe,"cors",me),he.successStatuses=[200],he.xmlResponse=!0,Pe.next=5,this.request(he);case 5:return ye=Pe.sent,De=[],ye.data&&ye.data.CORSRule&&(Me=ye.data.CORSRule,ne(Me)||(Me=[Me]),Me.forEach(function(Ce){var Ee={};Object.keys(Ce).forEach(function(je){Ee[je.slice(0,1).toLowerCase()+je.slice(1,je.length)]=Ce[je]}),De.push(Ee)})),Pe.abrupt("return",{rules:De,res:ye.res});case 9:case"end":return Pe.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.deleteBucketCORS=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me){var he,ye;return E.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return he=this._bucketRequestParams("DELETE",pe,"cors",me),he.successStatuses=[204],Me.next=4,this.request(he);case 4:return ye=Me.sent,Me.abrupt("return",{res:ye.res});case 6:case"end":return Me.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.putBucketReferer=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me,he,ye){var De,Me,Be,Pe;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(De=this._bucketRequestParams("PUT",pe,"referer",ye),Me=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<RefererConfiguration>
|
|
|
`,Me+=" <AllowEmptyReferer>".concat(me?"true":"false",`</AllowEmptyReferer>
|
|
|
`),he&&he.length>0){for(Me+=` <RefererList>
|
|
|
`,Be=0;Be<he.length;Be++)Me+=" <Referer>".concat(he[Be],`</Referer>
|
|
|
`);Me+=` </RefererList>
|
|
|
`}else Me+=` <RefererList />
|
|
|
`;return Me+="</RefererConfiguration>",De.content=Me,De.mime="xml",De.successStatuses=[200],Ee.next=10,this.request(De);case 10:return Pe=Ee.sent,Ee.abrupt("return",{res:Pe.res});case 12:case"end":return Ee.stop()}},ce,this)}));function se(ce,pe,me,he){return ae.apply(this,arguments)}return se}(),x.getBucketReferer=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me){var he,ye,De;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return he=this._bucketRequestParams("GET",pe,"referer",me),he.successStatuses=[200],he.xmlResponse=!0,Be.next=5,this.request(he);case 5:return ye=Be.sent,De=ye.data.RefererList.Referer||null,De&&(ne(De)||(De=[De])),Be.abrupt("return",{allowEmpty:ye.data.AllowEmptyReferer==="true",referers:De,res:ye.res});case 9:case"end":return Be.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x.deleteBucketReferer=function(){var ae=(0,ie.default)(E.default.mark(function ce(pe,me){return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.next=2,this.putBucketReferer(pe,!0,null,me);case 2:return ye.abrupt("return",ye.sent);case 3:case"end":return ye.stop()}},ce,this)}));function se(ce,pe){return ae.apply(this,arguments)}return se}(),x._bucketRequestParams=function(se,ce,pe,me){return{method:se,bucket:ce,subres:pe,timeout:me&&me.timeout,ctx:me&&me.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(a,Te,be){(function(z,E){(function(){"use strict";var ie=a("@babel/runtime/helpers/interopRequireDefault"),oe=ie(a("@babel/runtime/regenerator")),ee=ie(a("@babel/runtime/helpers/asyncToGenerator"));a("core-js/modules/es.function.name.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.symbol.js"),a("core-js/modules/es.symbol.description.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.to-string.js");var le=a("debug")("ali-oss"),x=a("xml2js"),ne=a("agentkeepalive"),re=a("merge-descriptors"),ae=a("platform"),se=a("utility"),ce=a("urllib"),pe=a("./version"),me=a("bowser"),he=a("../common/signUtils"),ye=a("../common/client/initOptions"),De=a("../common/utils/createRequest"),Me=De.createRequest,Be=a("../common/utils/encoder"),Pe=Be.encoder,Ce=a("../common/client/getReqUrl"),Ee=Ce.getReqUrl,je=a("../common/utils/setSTSToken"),ke=je.setSTSToken,Le=a("../common/utils/retry"),Ae=Le.retry,Se=a("../common/utils/isFunction"),Ge=Se.isFunction,Ze=new ne;function Je(){var et=ae.name,$e=ae.version;et&&et.toLowerCase&&et.toLowerCase()==="ie"&&$e.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function at(){return location&&location.protocol==="https:"}function Fe(et,$e){if(Je(),!(this instanceof Fe))return new Fe(et,$e);et&&et.inited?this.options=et:this.options=Fe.initOptions(et),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ce,this.agent=this.options.agent||Ze),this.ctx=$e,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Te.exports=Fe,Fe.initOptions=function($e){$e.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Xe=Object.assign({secure:at(),useFetch:!1},$e);return ye(Xe)};var Ke=Fe.prototype;Ke.debug=le,re(Ke,a("./object")),re(Ke,a("./bucket")),re(Ke,a("../common/bucket/getBucketWebsite")),re(Ke,a("../common/bucket/putBucketWebsite")),re(Ke,a("../common/bucket/deleteBucketWebsite")),re(Ke,a("../common/bucket/getBucketLifecycle")),re(Ke,a("../common/bucket/putBucketLifecycle")),re(Ke,a("../common/bucket/deleteBucketLifecycle")),re(Ke,a("../common/bucket/putBucketVersioning")),re(Ke,a("../common/bucket/getBucketVersioning")),re(Ke,a("../common/bucket/getBucketInventory")),re(Ke,a("../common/bucket/deleteBucketInventory")),re(Ke,a("../common/bucket/listBucketInventory")),re(Ke,a("../common/bucket/putBucketInventory")),re(Ke,a("../common/bucket/abortBucketWorm")),re(Ke,a("../common/bucket/completeBucketWorm")),re(Ke,a("../common/bucket/extendBucketWorm")),re(Ke,a("../common/bucket/getBucketWorm")),re(Ke,a("../common/bucket/initiateBucketWorm")),re(Ke,a("./managed-upload")),re(Ke,a("../common/multipart-copy")),re(Ke,a("../common/multipart")),re(Ke,a("../common/parallel")),Ke.signature=function($e){return this.debug("authorization stringToSign: %s",$e,"info"),he.computeSignature(this.options.accessKeySecret,$e,this.options.headerEncoding)},Ke._getReqUrl=Ee,Ke.authorization=function($e,Xe,Ve,nt){var Qe=he.buildCanonicalString($e.toUpperCase(),Xe,{headers:nt,parameters:Ve});return he.authorization(this.options.accessKeyId,this.options.accessKeySecret,Qe,this.options.headerEncoding)},Ke.request=function(){var et=(0,ee.default)(oe.default.mark(function $e(Xe){var Ve=this;return oe.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!this.options.retryMax){Qe.next=6;break}return Qe.next=3,Ae(it.bind(this),this.options.retryMax,{errorHandler:function(ot){var qe=function(Re){if(Xe.stream)return!1;var te=[-1,-2].includes(Re.status),de=Ve.options.requestErrorRetryHandle||function(){return!0};return te&&de(Re)};return!!qe(ot)}})(Xe);case 3:return Qe.abrupt("return",Qe.sent);case 6:return Qe.abrupt("return",it.call(this,Xe));case 7:case"end":return Qe.stop()}},$e,this)}));return function($e){return et.apply(this,arguments)}}();function it(et){return rt.apply(this,arguments)}function rt(){return rt=(0,ee.default)(oe.default.mark(function et($e){var Xe,Ve,nt,Qe,ct,ot;return oe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(!(this.options.stsToken&&Ge(this.options.refreshSTSToken))){_e.next=3;break}return _e.next=3,ke.call(this);case 3:return Xe=Me.call(this,$e),this.options.useFetch||(Xe.params.mode="disable-fetch"),Qe=!!$e.stream,_e.prev=6,_e.next=9,this.urllib.request(Xe.url,Xe.params);case 9:Ve=_e.sent,this.debug("response %s %s, got %s, headers: %j",$e.method,Xe.url,Ve.status,Ve.headers,"info"),_e.next=16;break;case 13:_e.prev=13,_e.t0=_e.catch(6),nt=_e.t0;case 16:if(!(Ve&&$e.successStatuses&&$e.successStatuses.indexOf(Ve.status)===-1)){_e.next=28;break}return _e.next=19,this.requestError(Ve);case 19:if(ct=_e.sent,!(ct.code==="RequestTimeTooSkewed"&&!Qe)){_e.next=25;break}return this.options.amendTimeSkewed=+new Date(ct.serverTime)-new Date,_e.next=24,this.request($e);case 24:return _e.abrupt("return",_e.sent);case 25:ct.params=$e,_e.next=32;break;case 28:if(!nt){_e.next=32;break}return _e.next=31,this.requestError(nt);case 31:ct=_e.sent;case 32:if(!ct){_e.next=34;break}throw ct;case 34:if(!$e.xmlResponse){_e.next=39;break}return _e.next=37,this.parseXML(Ve.data);case 37:ot=_e.sent,Ve.data=ot;case 39:return _e.abrupt("return",Ve);case 40:case"end":return _e.stop()}},et,this,[[6,13]])})),rt.apply(this,arguments)}Ke._getResource=function($e){var Xe="/";return $e.bucket&&(Xe+="".concat($e.bucket,"/")),$e.object&&(Xe+=Pe($e.object,this.options.headerEncoding)),Xe},Ke._escape=function($e){return se.encodeURIComponent($e).replace(/%2F/g,"/")},Ke._getUserAgent=function(){var $e=E&&E.browser?"js":"nodejs",Xe="aliyun-sdk-".concat($e,"/").concat(pe.version),Ve=ae.description;return!Ve&&E&&(Ve="Node.js ".concat(E.version.slice(1)," on ").concat(E.platform," ").concat(E.arch)),this._checkUserAgent("".concat(Xe," ").concat(Ve))},Ke._checkUserAgent=function($e){var Xe=$e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Xe},Ke.checkBrowserAndVersion=function($e,Xe){return me.name===$e&&me.version.split(".")[0]===Xe},Ke.parseXML=function($e){return new Promise(function(Xe,Ve){z.isBuffer($e)&&($e=$e.toString()),x.parseString($e,{explicitRoot:!1,explicitArray:!1},function(nt,Qe){nt?Ve(nt):Xe(Qe)})})},Ke.requestError=function(){var et=(0,ee.default)(oe.default.mark(function Xe(Ve){var nt,Qe,ct,ot;return oe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(nt=null,!(!Ve.data||!Ve.data.length)){_e.next=5;break}Ve.status===-1||Ve.status===-2?(nt=new Error(Ve.message),nt.name=Ve.name,nt.status=Ve.status,nt.code=Ve.name):(Ve.status===404?(nt=new Error("Object not exists"),nt.name="NoSuchKeyError",nt.status=404,nt.code="NoSuchKey"):Ve.status===412?(nt=new Error("Pre condition failed"),nt.name="PreconditionFailedError",nt.status=412,nt.code="PreconditionFailed"):(nt=new Error("Unknow error, status: ".concat(Ve.status)),nt.name="UnknownError",nt.status=Ve.status),nt.requestId=Ve.headers["x-oss-request-id"],nt.host=""),_e.next=32;break;case 5:return Qe=String(Ve.data),this.debug("request response error data: %s",Qe,"error"),_e.prev=7,_e.next=10,this.parseXML(Qe);case 10:if(_e.t0=_e.sent,_e.t0){_e.next=13;break}_e.t0={};case 13:ct=_e.t0,_e.next=23;break;case 16:return _e.prev=16,_e.t1=_e.catch(7),this.debug(Qe,"error"),_e.t1.message+=`
|
|
|
raw xml: `.concat(Qe),_e.t1.status=Ve.status,_e.t1.requestId=Ve.headers["x-oss-request-id"],_e.abrupt("return",_e.t1);case 23:ot=ct.Message||"unknow request error, status: ".concat(Ve.status),ct.Condition&&(ot+=" (condition: ".concat(ct.Condition,")")),nt=new Error(ot),nt.name=ct.Code?"".concat(ct.Code,"Error"):"UnknownError",nt.status=Ve.status,nt.code=ct.Code,nt.requestId=ct.RequestId,nt.hostId=ct.HostId,nt.serverTime=ct.ServerTime;case 32:return this.debug("generate error %j",nt,"error"),_e.abrupt("return",nt);case 34:case"end":return _e.stop()}},Xe,this,[[7,16]])}));function $e(Xe){return et.apply(this,arguments)}return $e}()}).call(this)}).call(this,{isBuffer:a("../../node_modules/is-buffer/index.js")},a("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(a,Te,be){(function(z){(function(){"use strict";var E=a("@babel/runtime/helpers/interopRequireDefault"),ie=E(a("@babel/runtime/regenerator"));a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.typed-array.uint8-array.js"),a("core-js/modules/es.typed-array.copy-within.js"),a("core-js/modules/es.typed-array.every.js"),a("core-js/modules/es.typed-array.fill.js"),a("core-js/modules/es.typed-array.filter.js"),a("core-js/modules/es.typed-array.find.js"),a("core-js/modules/es.typed-array.find-index.js"),a("core-js/modules/es.typed-array.for-each.js"),a("core-js/modules/es.typed-array.includes.js"),a("core-js/modules/es.typed-array.index-of.js"),a("core-js/modules/es.typed-array.iterator.js"),a("core-js/modules/es.typed-array.join.js"),a("core-js/modules/es.typed-array.last-index-of.js"),a("core-js/modules/es.typed-array.map.js"),a("core-js/modules/es.typed-array.reduce.js"),a("core-js/modules/es.typed-array.reduce-right.js"),a("core-js/modules/es.typed-array.reverse.js"),a("core-js/modules/es.typed-array.set.js"),a("core-js/modules/es.typed-array.slice.js"),a("core-js/modules/es.typed-array.some.js"),a("core-js/modules/es.typed-array.sort.js"),a("core-js/modules/es.typed-array.subarray.js"),a("core-js/modules/es.typed-array.to-locale-string.js"),a("core-js/modules/es.typed-array.to-string.js");var oe=E(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("util"),le=a("path"),x=a("mime"),ne=a("copy-to"),re=a("../common/utils/isBlob"),ae=re.isBlob,se=a("../common/utils/isFile"),ce=se.isFile,pe=a("../common/utils/isBuffer"),me=pe.isBuffer,he=be;he.multipartUpload=function(){var Pe=(0,oe.default)(ie.default.mark(function Ee(je,ke){var Le,Ae,Se,Ge,Ze,Je,at,Fe,Ke,it=arguments;return ie.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:if(Le=it.length>2&&it[2]!==void 0?it[2]:{},this.resetCancelFlag(),Le.disabledMD5=Le.disabledMD5===void 0?!0:!!Le.disabledMD5,!(Le.checkpoint&&Le.checkpoint.uploadId)){et.next=8;break}return ke&&ce(ke)&&(Le.checkpoint.file=ke),et.next=7,this._resumeMultipart(Le.checkpoint,Le);case 7:return et.abrupt("return",et.sent);case 8:return Ae=102400,Le.mime||(ce(ke)?Le.mime=x.getType(le.extname(ke.name)):ae(ke)?Le.mime=ke.type:me(ke)?Le.mime="":Le.mime=x.getType(le.extname(ke))),Le.headers=Le.headers||{},this._convertMetaToHeaders(Le.meta,Le.headers),et.next=14,this._getFileSize(ke);case 14:if(Se=et.sent,!(Se<Ae)){et.next=26;break}return Le.contentLength=Se,et.next=19,this.put(je,ke,Le);case 19:if(Ge=et.sent,!(Le&&Le.progress)){et.next=23;break}return et.next=23,Le.progress(1);case 23:return Ze={res:Ge.res,bucket:this.options.bucket,name:je,etag:Ge.res.headers.etag},(Le.headers&&Le.headers["x-oss-callback"]||Le.callback)&&(Ze.data=Ge.data),et.abrupt("return",Ze);case 26:if(!(Le.partSize&&parseInt(Le.partSize,10)!==Le.partSize)){et.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Le.partSize&&Le.partSize<Ae)){et.next=30;break}throw new Error("partSize must not be smaller than ".concat(Ae));case 30:return et.next=32,this.initMultipartUpload(je,Le);case 32:if(Je=et.sent,at=Je.uploadId,Fe=this._getPartSize(Se,Le.partSize),Ke={file:ke,name:je,fileSize:Se,partSize:Fe,uploadId:at,doneParts:[]},!(Le&&Le.progress)){et.next=39;break}return et.next=39,Le.progress(0,Ke,Je.res);case 39:return et.next=41,this._resumeMultipart(Ke,Le);case 41:return et.abrupt("return",et.sent);case 42:case"end":return et.stop()}},Ee,this)}));function Ce(Ee,je){return Pe.apply(this,arguments)}return Ce}(),he._resumeMultipart=function(){var Pe=(0,oe.default)(ie.default.mark(function Ee(je,ke){var Le,Ae,Se,Ge,Ze,Je,at,Fe,Ke,it,rt,et,$e,Xe,Ve,nt,Qe,ct,ot;return ie.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(Le=this,!this.isCancel()){_e.next=3;break}throw this._makeCancelEvent();case 3:return Ae=je.file,Se=je.fileSize,Ge=je.partSize,Ze=je.uploadId,Je=je.doneParts,at=je.name,Fe=[],Je.length>0&&ne(Je).to(Fe),Ke=this._divideParts(Se,Ge),it=Ke.length,rt=!1,et=function(te,de){return new Promise(function(){var Ne=(0,oe.default)(ie.default.mark(function ze(xe,ve){var Oe,We,Ue,Ye,st;return ie.default.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:if(ft.prev=0,te.isCancel()){ft.next=29;break}return Oe=Ke[de-1],ft.next=5,te._createBuffer(Ae,Oe.start,Oe.end);case 5:return We=ft.sent,Ue={content:We,size:Oe.end-Oe.start},ft.prev=7,ft.next=10,te._uploadPart(at,Ze,de,Ue,ke);case 10:Ye=ft.sent,ft.next=18;break;case 13:if(ft.prev=13,ft.t0=ft.catch(7),ft.t0.status!==404){ft.next=17;break}throw te._makeAbortEvent();case 17:throw ft.t0;case 18:if(!(!te.isCancel()&&!rt)){ft.next=26;break}if(je.doneParts.push({number:de,etag:Ye.res.headers.etag}),!ke.progress){ft.next=23;break}return ft.next=23,ke.progress(Je.length/(it+1),je,Ye.res);case 23:xe({number:de,etag:Ye.res.headers.etag}),ft.next=27;break;case 26:xe();case 27:ft.next=30;break;case 29:xe();case 30:ft.next=41;break;case 32:ft.prev=32,ft.t1=ft.catch(0),st=new Error,st.name=ft.t1.name,st.message=ft.t1.message,st.stack=ft.t1.stack,st.partNum=de,ne(ft.t1).to(st),ve(st);case 41:case"end":return ft.stop()}},ze,null,[[0,32],[7,13]])}));return function(ze,xe){return Ne.apply(this,arguments)}}())},$e=Array.from(new Array(it),function(Re,te){return te+1}),Xe=Fe.map(function(Re){return Re.number}),Ve=$e.filter(function(Re){return Xe.indexOf(Re)<0}),nt=5,Qe=ke.parallel||nt,_e.next=17,this._parallel(Ve,Qe,function(Re){return new Promise(function(te,de){et(Le,Re).then(function(Ne){Ne&&Fe.push(Ne),te()}).catch(function(Ne){de(Ne)})})});case 17:if(ct=_e.sent,rt=!0,ot=ct.find(function(Re){return Re.name==="abort"}),!ot){_e.next=22;break}throw ot;case 22:if(!this.isCancel()){_e.next=25;break}throw et=null,this._makeCancelEvent();case 25:if(!(ct&&ct.length>0)){_e.next=28;break}throw ct[0].message="Failed to upload some parts with error: ".concat(ct[0].toString()," part_num: ").concat(ct[0].partNum),ct[0];case 28:return _e.next=30,this.completeMultipartUpload(at,Ze,Fe,ke);case 30:return _e.abrupt("return",_e.sent);case 31:case"end":return _e.stop()}},Ee,this)}));function Ce(Ee,je){return Pe.apply(this,arguments)}return Ce}(),he._getFileSize=function(){var Pe=(0,oe.default)(ie.default.mark(function Ee(je){return ie.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(!me(je)){Le.next=4;break}return Le.abrupt("return",je.length);case 4:if(!(ae(je)||ce(je))){Le.next=6;break}return Le.abrupt("return",je.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Le.stop()}},Ee)}));function Ce(Ee){return Pe.apply(this,arguments)}return Ce}();var ye=a("stream"),De=ye.Readable;function Me(Pe,Ce){if(!(this instanceof Me))return new Me(Pe,Ce);De.call(this,Ce),this.file=Pe,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(Me,De),Me.prototype.readFileAndPush=function(Ce){if(this.fileBuffer)for(var Ee=!0;Ee&&this.fileBuffer&&this.start<this.fileBuffer.length;){var je=this.start,ke=je+Ce;ke=ke>this.fileBuffer.length?this.fileBuffer.length:ke,this.start=ke,Ee=this.push(this.fileBuffer.slice(je,ke))}},Me.prototype._read=function(Ce){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var Ee=16*1024;Ce=Ce||Ee;var je=this;this.reader.onload=function(Le){je.fileBuffer=z.from(new Uint8Array(Le.target.result)),je.file=null,je.readFileAndPush(Ce)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(Ce)};function Be(Pe){return Pe.arrayBuffer?Pe.arrayBuffer():new Promise(function(Ce,Ee){var je=new FileReader;je.onload=function(ke){Ce(ke.target.result)},je.onerror=function(ke){Ee(ke)},je.readAsArrayBuffer(Pe)})}he._createBuffer=function(){var Pe=(0,oe.default)(ie.default.mark(function Ee(je,ke,Le){var Ae,Se;return ie.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(!(ae(je)||ce(je))){Ze.next=8;break}return Ae=je.slice(ke,Le),Ze.next=4,Be(Ae);case 4:return Se=Ze.sent,Ze.abrupt("return",z.from(Se));case 8:if(!me(je)){Ze.next=12;break}return Ze.abrupt("return",je.subarray(ke,Le));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return Ze.stop()}},Ee)}));function Ce(Ee,je,ke){return Pe.apply(this,arguments)}return Ce}(),he._getPartSize=function(Ce,Ee){var je=1e4,ke=1*1024*1024;Ee||(Ee=ke);var Le=Math.ceil(Ce/je);return Ee<Le&&(Ee=Le,console.warn("partSize has been set to ".concat(Ee,", because the partSize you provided causes partNumber to be greater than 10,000"))),Ee},he._divideParts=function(Ce,Ee){for(var je=Math.ceil(Ce/Ee),ke=[],Le=0;Le<je;Le++){var Ae=Ee*Le,Se=Math.min(Ae+Ee,Ce);ke.push({start:Ae,end:Se})}return ke}}).call(this)}).call(this,a("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.number.constructor.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.promise.js");var E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("fs"),ee=a("copy-to"),le=a("path"),x=a("mime"),ne=a("../common/callback"),re=a("merge-descriptors"),ae=a("../common/utils/isBlob"),se=ae.isBlob,ce=a("../common/utils/isFile"),pe=ce.isFile,me=a("../common/utils/isBuffer"),he=me.isBuffer,ye=a("../common/utils/obj2xml"),De=ye.obj2xml,Me=be;Me.append=function(){var Be=(0,ie.default)(E.default.mark(function Ce(Ee,je,ke){var Le;return E.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return ke=ke||{},ke.position===void 0&&(ke.position="0"),ke.subres={append:"",position:ke.position},ke.method="POST",Se.next=6,this.put(Ee,je,ke);case 6:return Le=Se.sent,Le.nextAppendPosition=Le.res.headers["x-oss-next-append-position"],Se.abrupt("return",Le);case 9:case"end":return Se.stop()}},Ce,this)}));function Pe(Ce,Ee,je){return Be.apply(this,arguments)}return Pe}(),Me.put=function(){var Be=(0,ie.default)(E.default.mark(function Ce(Ee,je,ke){var Le,Ae,Se,Ge,Ze;return E.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(ke=ke||{},ke.disabledMD5=ke.disabledMD5===void 0?!0:!!ke.disabledMD5,ke.headers=ke.headers||{},Ee=this._objectName(Ee),!he(je)){at.next=8;break}Le=je,at.next=19;break;case 8:if(!(se(je)||pe(je))){at.next=18;break}return ke.mime||(pe(je)?ke.mime=x.getType(le.extname(je.name)):ke.mime=je.type),at.next=12,this._createBuffer(je,0,je.size);case 12:return Le=at.sent,at.next=15,this._getFileSize(je);case 15:ke.contentLength=at.sent,at.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(ke.meta,ke.headers),Ae=ke.method||"PUT",Se=this._objectRequestParams(Ae,Ee,ke),ne.encodeCallback(Se,ke),Se.mime=ke.mime,Se.disabledMD5=ke.disabledMD5,Se.content=Le,Se.successStatuses=[200],at.next=29,this.request(Se);case 29:return Ge=at.sent,Ze={name:Ee,url:this._objectUrl(Ee),res:Ge.res},Se.headers&&Se.headers["x-oss-callback"]&&(Ze.data=JSON.parse(Ge.data.toString())),at.abrupt("return",Ze);case 33:case"end":return at.stop()}},Ce,this)}));function Pe(Ce,Ee,je){return Be.apply(this,arguments)}return Pe}(),Me.putStream=function(){var Be=(0,ie.default)(E.default.mark(function Ce(Ee,je,ke){var Le,Ae,Se,Ge;return E.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return ke=ke||{},ke.headers=ke.headers||{},Ee=this._objectName(Ee),ke.contentLength?ke.headers["Content-Length"]=ke.contentLength:ke.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(ke.meta,ke.headers),Le=ke.method||"PUT",Ae=this._objectRequestParams(Le,Ee,ke),ne.encodeCallback(Ae,ke),Ae.mime=ke.mime,Ae.stream=je,Ae.successStatuses=[200],Je.next=13,this.request(Ae);case 13:return Se=Je.sent,Ge={name:Ee,url:this._objectUrl(Ee),res:Se.res},Ae.headers&&Ae.headers["x-oss-callback"]&&(Ge.data=JSON.parse(Se.data.toString())),Je.abrupt("return",Ge);case 17:case"end":return Je.stop()}},Ce,this)}));function Pe(Ce,Ee,je){return Be.apply(this,arguments)}return Pe}(),re(Me,a("../common/object/copyObject")),re(Me,a("../common/object/getObjectTagging")),re(Me,a("../common/object/putObjectTagging")),re(Me,a("../common/object/deleteObjectTagging")),re(Me,a("../common/image")),re(Me,a("../common/object/getBucketVersions")),re(Me,a("../common/object/getACL")),re(Me,a("../common/object/putACL")),re(Me,a("../common/object/head")),re(Me,a("../common/object/delete")),re(Me,a("../common/object/get")),re(Me,a("../common/object/putSymlink")),re(Me,a("../common/object/getSymlink")),re(Me,a("../common/object/deleteMulti")),re(Me,a("../common/object/getObjectMeta")),re(Me,a("../common/object/getObjectUrl")),re(Me,a("../common/object/generateObjectUrl")),re(Me,a("../common/object/signatureUrl")),re(Me,a("../common/object/asyncSignatureUrl")),Me.putMeta=function(){var Be=(0,ie.default)(E.default.mark(function Ce(Ee,je,ke){var Le;return E.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,this.copy(Ee,Ee,{meta:je||{},timeout:ke&&ke.timeout,ctx:ke&&ke.ctx});case 2:return Le=Se.sent,Se.abrupt("return",Le);case 4:case"end":return Se.stop()}},Ce,this)}));function Pe(Ce,Ee,je){return Be.apply(this,arguments)}return Pe}(),Me.list=function(){var Be=(0,ie.default)(E.default.mark(function Ce(Ee,je){var ke,Le,Ae,Se,Ge;return E.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:return ke=this._objectRequestParams("GET","",je),ke.query=Ee,ke.xmlResponse=!0,ke.successStatuses=[200],Je.next=6,this.request(ke);case 6:return Le=Je.sent,Ae=Le.data.Contents||[],Se=this,Ae&&(Array.isArray(Ae)||(Ae=[Ae]),Ae=Ae.map(function(at){return{name:at.Key,url:Se._objectUrl(at.Key),lastModified:at.LastModified,etag:at.ETag,type:at.Type,size:Number(at.Size),storageClass:at.StorageClass,owner:{id:at.Owner.ID,displayName:at.Owner.DisplayName}}})),Ge=Le.data.CommonPrefixes||null,Ge&&(Array.isArray(Ge)||(Ge=[Ge]),Ge=Ge.map(function(at){return at.Prefix})),Je.abrupt("return",{res:Le.res,objects:Ae,prefixes:Ge,nextMarker:Le.data.NextMarker||null,isTruncated:Le.data.IsTruncated==="true"});case 13:case"end":return Je.stop()}},Ce,this)}));function Pe(Ce,Ee){return Be.apply(this,arguments)}return Pe}(),Me.listV2=function(){var Be=(0,ie.default)(E.default.mark(function Ce(Ee){var je,ke,Le,Ae,Se,Ge,Ze,Je=arguments;return E.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return je=Je.length>1&&Je[1]!==void 0?Je[1]:{},ke=Ee["continuation-token"]||Ee.continuationToken,ke&&(je.subres=Object.assign({"continuation-token":ke},je.subres)),Le=this._objectRequestParams("GET","",je),Le.query=Object.assign({"list-type":2},Ee),delete Le.query["continuation-token"],delete Le.query.continuationToken,Le.xmlResponse=!0,Le.successStatuses=[200],Fe.next=11,this.request(Le);case 11:return Ae=Fe.sent,Se=Ae.data.Contents||[],Ge=this,Se&&(Array.isArray(Se)||(Se=[Se]),Se=Se.map(function(Ke){var it=null;return Ke.Owner&&(it={id:Ke.Owner.ID,displayName:Ke.Owner.DisplayName}),{name:Ke.Key,url:Ge._objectUrl(Ke.Key),lastModified:Ke.LastModified,etag:Ke.ETag,type:Ke.Type,size:Number(Ke.Size),storageClass:Ke.StorageClass,owner:it}})),Ze=Ae.data.CommonPrefixes||null,Ze&&(Array.isArray(Ze)||(Ze=[Ze]),Ze=Ze.map(function(Ke){return Ke.Prefix})),Fe.abrupt("return",{res:Ae.res,objects:Se,prefixes:Ze,isTruncated:Ae.data.IsTruncated==="true",keyCount:+Ae.data.KeyCount,continuationToken:Ae.data.ContinuationToken||null,nextContinuationToken:Ae.data.NextContinuationToken||null});case 18:case"end":return Fe.stop()}},Ce,this)}));function Pe(Ce){return Be.apply(this,arguments)}return Pe}(),Me.restore=function(){var Be=(0,ie.default)(E.default.mark(function Ce(Ee){var je,ke,Le,Ae,Se=arguments;return E.default.wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:return je=Se.length>1&&Se[1]!==void 0?Se[1]:{type:"Archive"},je=je||{},je.subres=Object.assign({restore:""},je.subres),je.versionId&&(je.subres.versionId=je.versionId),ke=this._objectRequestParams("POST",Ee,je),je.type==="ColdArchive"&&(Le={RestoreRequest:{Days:je.Days?je.Days:2,JobParameters:{Tier:je.JobParameters?je.JobParameters:"Standard"}}},ke.content=De(Le,{headers:!0}),ke.mime="xml"),ke.successStatuses=[202],Ze.next=9,this.request(ke);case 9:return Ae=Ze.sent,Ze.abrupt("return",{res:Ae.res});case 11:case"end":return Ze.stop()}},Ce,this)}));function Pe(Ce){return Be.apply(this,arguments)}return Pe}(),Me._objectUrl=function(Pe){return this._getReqUrl({bucket:this.options.bucket,object:Pe})},Me._objectRequestParams=function(Pe,Ce,Ee){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");Ee=Ee||{},Ce=this._objectName(Ce);var je={object:Ce,bucket:this.options.bucket,method:Pe,subres:Ee&&Ee.subres,timeout:Ee&&Ee.timeout,ctx:Ee&&Ee.ctx};return Ee.headers&&(je.headers={},ee(Ee.headers).to(je.headers)),je},Me._objectName=function(Pe){return Pe.replace(/^\/+/,"")},Me._convertMetaToHeaders=function(Pe,Ce){Pe&&Object.keys(Pe).forEach(function(Ee){Ce["x-oss-meta-".concat(Ee)]=Pe[Ee]})},Me._deleteFileSafe=function(Pe){var Ce=this;return new Promise(function(Ee){oe.exists(Pe,function(je){je?oe.unlink(Pe,function(ke){ke&&Ce.debug("unlink %j error: %s",Pe,ke,"error"),Ee()}):Ee()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(a,Te,be){"use strict";be.version="6.18.1"},{}],7:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.abortBucketWorm=void 0;var oe=a("../utils/checkBucketName");function ee(x,ne){return le.apply(this,arguments)}function le(){return le=(0,ie.default)(E.default.mark(function x(ne,re){var ae,se;return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return oe.checkBucketName(ne),ae=this._bucketRequestParams("DELETE",ne,"worm",re),pe.next=4,this.request(ae);case 4:return se=pe.sent,pe.abrupt("return",{res:se.res,status:se.status});case 6:case"end":return pe.stop()}},x,this)})),le.apply(this,arguments)}be.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.completeBucketWorm=void 0;var oe=a("../utils/checkBucketName");function ee(x,ne,re){return le.apply(this,arguments)}function le(){return le=(0,ie.default)(E.default.mark(function x(ne,re,ae){var se,ce;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return oe.checkBucketName(ne),se=this._bucketRequestParams("POST",ne,{wormId:re},ae),me.next=4,this.request(se);case 4:return ce=me.sent,me.abrupt("return",{res:ce.res,status:ce.status});case 6:case"end":return me.stop()}},x,this)})),le.apply(this,arguments)}be.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.deleteBucketInventory=void 0;var oe=a("../utils/checkBucketName");function ee(x,ne){return le.apply(this,arguments)}function le(){return le=(0,ie.default)(E.default.mark(function x(ne,re){var ae,se,ce,pe,me=arguments;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ae=me.length>2&&me[2]!==void 0?me[2]:{},se=Object.assign({inventory:"",inventoryId:re},ae.subres),oe.checkBucketName(ne),ce=this._bucketRequestParams("DELETE",ne,se,ae),ce.successStatuses=[204],ye.next=7,this.request(ce);case 7:return pe=ye.sent,ye.abrupt("return",{status:pe.status,res:pe.res});case 9:case"end":return ye.stop()}},x,this)})),le.apply(this,arguments)}be.deleteBucketInventory=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,le=be;le.deleteBucketLifecycle=function(){var x=(0,ie.default)(E.default.mark(function re(ae,se){var ce,pe;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ee(ae),ce=this._bucketRequestParams("DELETE",ae,"lifecycle",se),ce.successStatuses=[204],he.next=5,this.request(ce);case 5:return pe=he.sent,he.abrupt("return",{res:pe.res});case 7:case"end":return he.stop()}},re,this)}));function ne(re,ae){return x.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,le=be;le.deleteBucketWebsite=function(){var x=(0,ie.default)(E.default.mark(function re(ae,se){var ce,pe;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ee(ae),ce=this._bucketRequestParams("DELETE",ae,"website",se),ce.successStatuses=[204],he.next=5,this.request(ce);case 5:return pe=he.sent,he.abrupt("return",{res:pe.res});case 7:case"end":return he.stop()}},re,this)}));function ne(re,ae){return x.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.extendBucketWorm=void 0;var oe=a("../utils/checkBucketName"),ee=a("../utils/obj2xml");function le(ne,re,ae,se){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ne(re,ae,se,ce){var pe,me,he;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return oe.checkBucketName(re),pe=this._bucketRequestParams("POST",re,{wormExtend:"",wormId:ae},ce),me={ExtendWormConfiguration:{RetentionPeriodInDays:se}},pe.mime="xml",pe.content=ee.obj2xml(me,{headers:!0}),pe.successStatuses=[200],De.next=8,this.request(pe);case 8:return he=De.sent,De.abrupt("return",{res:he.res,status:he.status});case 10:case"end":return De.stop()}},ne,this)})),x.apply(this,arguments)}be.extendBucketWorm=le},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.getBucketInventory=void 0;var oe=a("../utils/checkBucketName"),ee=a("../utils/formatInventoryConfig");function le(ne,re){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ne(re,ae){var se,ce,pe,me,he=arguments;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return se=he.length>2&&he[2]!==void 0?he[2]:{},ce=Object.assign({inventory:"",inventoryId:ae},se.subres),oe.checkBucketName(re),pe=this._bucketRequestParams("GET",re,ce,se),pe.successStatuses=[200],pe.xmlResponse=!0,De.next=8,this.request(pe);case 8:return me=De.sent,De.abrupt("return",{status:me.status,res:me.res,inventory:ee.formatInventoryConfig(me.data)});case 10:case"end":return De.stop()}},ne,this)})),x.apply(this,arguments)}be.getBucketInventory=le},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.map.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,le=a("../utils/isArray"),x=le.isArray,ne=a("../utils/formatObjKey"),re=ne.formatObjKey,ae=be;ae.getBucketLifecycle=function(){var se=(0,ie.default)(E.default.mark(function pe(me,he){var ye,De,Me;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ee(me),ye=this._bucketRequestParams("GET",me,"lifecycle",he),ye.successStatuses=[200],ye.xmlResponse=!0,Pe.next=6,this.request(ye);case 6:return De=Pe.sent,Me=De.data.Rule||null,Me&&(x(Me)||(Me=[Me]),Me=Me.map(function(Ce){return Ce.ID&&(Ce.id=Ce.ID,delete Ce.ID),Ce.Tag&&!x(Ce.Tag)&&(Ce.Tag=[Ce.Tag]),re(Ce,"firstLowerCase")})),Pe.abrupt("return",{rules:Me,res:De.res});case 10:case"end":return Pe.stop()}},pe,this)}));function ce(pe,me){return se.apply(this,arguments)}return ce}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,le=be;le.getBucketVersioning=function(){var x=(0,ie.default)(E.default.mark(function re(ae,se){var ce,pe,me;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ee(ae),ce=this._bucketRequestParams("GET",ae,"versioning",se),ce.xmlResponse=!0,ce.successStatuses=[200],ye.next=6,this.request(ce);case 6:return pe=ye.sent,me=pe.data.Status,ye.abrupt("return",{status:pe.status,versionStatus:me,res:pe.res});case 9:case"end":return ye.stop()}},re,this)}));function ne(re,ae){return x.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,le=a("../utils/isObject"),x=le.isObject,ne=be;ne.getBucketWebsite=function(){var re=(0,ie.default)(E.default.mark(function se(ce,pe){var me,he,ye;return E.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ee(ce),me=this._bucketRequestParams("GET",ce,"website",pe),me.successStatuses=[200],me.xmlResponse=!0,Me.next=6,this.request(me);case 6:return he=Me.sent,ye=[],he.data.RoutingRules&&he.data.RoutingRules.RoutingRule&&(x(he.data.RoutingRules.RoutingRule)?ye=[he.data.RoutingRules.RoutingRule]:ye=he.data.RoutingRules.RoutingRule),Me.abrupt("return",{index:he.data.IndexDocument&&he.data.IndexDocument.Suffix||"",supportSubDir:he.data.IndexDocument&&he.data.IndexDocument.SupportSubDir||"false",type:he.data.IndexDocument&&he.data.IndexDocument.Type,routingRules:ye,error:he.data.ErrorDocument&&he.data.ErrorDocument.Key||null,res:he.res});case 10:case"end":return Me.stop()}},se,this)}));function ae(se,ce){return re.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.getBucketWorm=void 0;var oe=a("../utils/checkBucketName"),ee=a("../utils/dataFix");function le(ne,re){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ne(re,ae){var se,ce;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return oe.checkBucketName(re),se=this._bucketRequestParams("GET",re,"worm",ae),se.successStatuses=[200],se.xmlResponse=!0,me.next=6,this.request(se);case 6:return ce=me.sent,ee.dataFix(ce.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),me.abrupt("return",Object.assign(Object.assign({},ce.data),{res:ce.res,status:ce.status}));case 9:case"end":return me.stop()}},ne,this)})),x.apply(this,arguments)}be.getBucketWorm=le},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.initiateBucketWorm=void 0;var oe=a("../utils/obj2xml"),ee=a("../utils/checkBucketName");function le(ne,re,ae){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ne(re,ae,se){var ce,pe,me;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ee.checkBucketName(re),ce=this._bucketRequestParams("POST",re,"worm",se),pe={InitiateWormConfiguration:{RetentionPeriodInDays:ae}},ce.mime="xml",ce.content=oe.obj2xml(pe,{headers:!0}),ce.successStatuses=[200],ye.next=8,this.request(ce);case 8:return me=ye.sent,ye.abrupt("return",{res:me.res,wormId:me.res.headers["x-oss-worm-id"],status:me.status});case 10:case"end":return ye.stop()}},ne,this)})),x.apply(this,arguments)}be.initiateBucketWorm=le},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.listBucketInventory=void 0;var oe=a("../utils/checkBucketName"),ee=a("../utils/formatInventoryConfig");function le(ne){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ne(re){var ae,se,ce,pe,me,he,ye,De,Me=arguments;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ae=Me.length>1&&Me[1]!==void 0?Me[1]:{},se=ae.continuationToken,ce=Object.assign({inventory:""},se&&{"continuation-token":se},ae.subres),oe.checkBucketName(re),pe=this._bucketRequestParams("GET",re,ce,ae),pe.successStatuses=[200],pe.xmlResponse=!0,Pe.next=9,this.request(pe);case 9:return me=Pe.sent,he=me.data,ye=me.res,De=me.status,Pe.abrupt("return",{isTruncated:he.IsTruncated==="true",nextContinuationToken:he.NextContinuationToken,inventoryList:ee.formatInventoryConfig(he.InventoryConfiguration,!0),status:De,res:ye});case 12:case"end":return Pe.stop()}},ne,this)})),x.apply(this,arguments)}be.listBucketInventory=le},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.concat.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.putBucketInventory=void 0;var oe=a("../utils/checkBucketName"),ee=a("../utils/obj2xml");function le(ne,re){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function ne(re,ae){var se,ce,pe,me,he,ye,De,Me,Be,Pe,Ce,Ee=arguments;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return se=Ee.length>2&&Ee[2]!==void 0?Ee[2]:{},ce=Object.assign({inventory:"",inventoryId:ae.id},se.subres),oe.checkBucketName(re),pe=ae.OSSBucketDestination,me=ae.optionalFields,he=ae.includedObjectVersions,ye="acs:oss:::",De="acs:ram::".concat(pe.accountId,":role/"),Me={InventoryConfiguration:{Id:ae.id,IsEnabled:ae.isEnabled,Filter:{Prefix:ae.prefix||""},Destination:{OSSBucketDestination:{Format:pe.format,AccountId:pe.accountId,RoleArn:"".concat(De).concat(pe.rolename),Bucket:"".concat(ye).concat(pe.bucket),Prefix:pe.prefix||"",Encryption:pe.encryption||""}},Schedule:{Frequency:ae.frequency},IncludedObjectVersions:he,OptionalFields:{Field:(me==null?void 0:me.field)||[]}}},Be=ee.obj2xml(Me,{headers:!0,firstUpperCase:!0}),Pe=this._bucketRequestParams("PUT",re,ce,se),Pe.successStatuses=[200],Pe.mime="xml",Pe.content=Be,ke.next=14,this.request(Pe);case 14:return Ce=ke.sent,ke.abrupt("return",{status:Ce.status,res:Ce.res});case 16:case"end":return ke.stop()}},ne,this)})),x.apply(this,arguments)}be.putBucketInventory=le},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.array.includes.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,le=a("../utils/isArray"),x=le.isArray,ne=a("../utils/deepCopy"),re=ne.deepCopy,ae=a("../utils/isObject"),se=ae.isObject,ce=a("../utils/obj2xml"),pe=ce.obj2xml,me=a("../utils/checkObjectTag"),he=me.checkObjectTag,ye=a("../utils/getStrBytesCount"),De=ye.getStrBytesCount,Me=be;Me.putBucketLifecycle=function(){var je=(0,ie.default)(E.default.mark(function Le(Ae,Se,Ge){var Ze,Je,at,Fe,Ke;return E.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(ee(Ae),x(Se)){rt.next=3;break}throw new Error("rules must be Array");case 3:return Ze=this._bucketRequestParams("PUT",Ae,"lifecycle",Ge),Je=[],at={LifecycleConfiguration:{Rule:Je}},Se.forEach(function(et){Be(et),Ee(et),et.id&&(et.ID=et.id,delete et.id),Je.push(et)}),Fe=pe(at,{headers:!0,firstUpperCase:!0}),Ze.content=Fe,Ze.mime="xml",Ze.successStatuses=[200],rt.next=13,this.request(Ze);case 13:return Ke=rt.sent,rt.abrupt("return",{res:Ke.res});case 15:case"end":return rt.stop()}},Le,this)}));function ke(Le,Ae,Se){return je.apply(this,arguments)}return ke}();function Be(je){je.days&&(je.expiration={days:je.days}),je.date&&(je.expiration={createdBeforeDate:je.date})}function Pe(je,ke){var Le=je.days,Ae=je.createdBeforeDate;if(!Le&&!Ae)throw new Error("".concat(ke," must includes days or createdBeforeDate"));if(Le&&!/^[1-9][0-9]*$/.test(Le))throw new Error("days must be a positive integer");if(Ae&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Ae))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function Ce(je){if(!x(je)&&!se(je))throw new Error("tag must be Object or Array");je=se(je)?[je]:je;var ke={},Le=re(je);Le.forEach(function(Ae){ke[Ae.key]=Ae.value}),he(ke)}function Ee(je){if(je.id&&De(je.id)>255)throw new Error("ID is composed of 255 bytes at most");if(je.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(je.status))throw new Error("Status must be Enabled or Disabled");if(je.transition){if(!["IA","Archive"].includes(je.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Pe(je.transition,"Transition")}if(je.expiration){if(!je.expiration.expiredObjectDeleteMarker)Pe(je.expiration,"Expiration");else if(je.expiration.days||je.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(je.abortMultipartUpload&&Pe(je.abortMultipartUpload,"AbortMultipartUpload"),!je.expiration&&!je.abortMultipartUpload&&!je.transition&&!je.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(je.tag){if(je.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");Ce(je.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.includes.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,le=a("../utils/obj2xml"),x=le.obj2xml,ne=be;ne.putBucketVersioning=function(){var re=(0,ie.default)(E.default.mark(function se(ce,pe){var me,he,ye,De,Me=arguments;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:if(me=Me.length>2&&Me[2]!==void 0?Me[2]:{},ee(ce),["Enabled","Suspended"].includes(pe)){Pe.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return he=this._bucketRequestParams("PUT",ce,"versioning",me),ye={VersioningConfiguration:{Status:pe}},he.mime="xml",he.content=x(ye,{headers:!0}),Pe.next=10,this.request(he);case 10:return De=Pe.sent,Pe.abrupt("return",{res:De.res,status:De.status});case 12:case"end":return Pe.stop()}},se,this)}));function ae(se,ce){return re.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,le=a("../utils/obj2xml"),x=le.obj2xml,ne=a("../utils/isArray"),re=ne.isArray,ae=be;ae.putBucketWebsite=function(){var se=(0,ie.default)(E.default.mark(function pe(me){var he,ye,De,Me,Be,Pe,Ce,Ee=arguments;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(he=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},ye=Ee.length>2?Ee[2]:void 0,ee(me),De=this._bucketRequestParams("PUT",me,"website",ye),Me={Suffix:he.index||"index.html"},Be={IndexDocument:Me},Pe={WebsiteConfiguration:Be},he.supportSubDir&&(Me.SupportSubDir=he.supportSubDir),he.type&&(Me.Type=he.type),he.error&&(Be.ErrorDocument={Key:he.error}),he.routingRules===void 0){ke.next=14;break}if(re(he.routingRules)){ke.next=13;break}throw new Error("RoutingRules must be Array");case 13:Be.RoutingRules={RoutingRule:he.routingRules};case 14:return Pe=x(Pe),De.content=Pe,De.mime="xml",De.successStatuses=[200],ke.next=20,this.request(De);case 20:return Ce=ke.sent,ke.abrupt("return",{res:Ce.res});case 22:case"end":return ke.stop()}},pe,this)}));function ce(pe){return se.apply(this,arguments)}return ce}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(a,Te,be){(function(z){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),be.encodeCallback=function(ie,oe){if(ie.headers=ie.headers||{},!Object.prototype.hasOwnProperty.call(ie.headers,"x-oss-callback")&&oe.callback){var ee={callbackUrl:encodeURI(oe.callback.url),callbackBody:oe.callback.body};oe.callback.host&&(ee.callbackHost=oe.callback.host),oe.callback.contentType&&(ee.callbackBodyType=oe.callback.contentType);var le=z.from(JSON.stringify(ee)).toString("base64");if(ie.headers["x-oss-callback"]=le,oe.callback.customValue){var x={};Object.keys(oe.callback.customValue).forEach(function(ne){x["x:".concat(ne)]=oe.callback.customValue[ne].toString()}),ie.headers["x-oss-callback-var"]=z.from(JSON.stringify(x)).toString("base64")}}}}).call(this)}).call(this,a("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(a,Te,be){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js");var z=function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(be,"__esModule",{value:!0}),be.getReqUrl=void 0;var E=z(a("copy-to")),ie=z(a("url")),oe=z(a("merge-descriptors")),ee=z(a("is-type-of")),le=a("../utils/isIP"),x=a("../utils/checkConfigValid");function ne(re){var ae={},se=this.options.cname;x.checkConfigValid(this.options.endpoint,"endpoint"),E.default(this.options.endpoint,!1).to(ae),re.bucket&&!se&&!le.isIP(ae.hostname)&&!this.options.sldEnable&&(ae.host="".concat(re.bucket,".").concat(ae.host));var ce="/";re.bucket&&this.options.sldEnable&&(ce+="".concat(re.bucket,"/")),re.object&&(ce+=this._escape(re.object).replace(/\+/g,"%2B")),ae.pathname=ce;var pe={};if(re.query&&oe.default(pe,re.query),re.subres){var me={};ee.default.string(re.subres)?me[re.subres]="":ee.default.array(re.subres)?re.subres.forEach(function(he){me[he]=""}):me=re.subres,oe.default(pe,me)}return ae.query=pe,ie.default.format(ae)}be.getReqUrl=ne},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(a,Te,be){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.string.trim.js");var z=a("humanize-ms"),E=a("url"),ie=a("../utils/checkBucketName"),oe=ie.checkBucketName,ee=a("../utils/setRegion"),le=ee.setRegion,x=a("../utils/checkConfigValid"),ne=x.checkConfigValid;function re(ae,se){ne(ae,"endpoint");var ce=E.parse(ae);if(ce.protocol||(ce=E.parse("http".concat(se?"s":"","://").concat(ae))),ce.protocol!=="http:"&&ce.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ce}Te.exports=function(ae){if(!ae||!ae.accessKeyId||!ae.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");ae.stsToken&&!ae.refreshSTSToken&&!ae.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),ae.bucket&&oe(ae.bucket);var se=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},ae);if(se.accessKeyId=se.accessKeyId.trim(),se.accessKeySecret=se.accessKeySecret.trim(),se.timeout&&(se.timeout=z(se.timeout)),se.endpoint)se.endpoint=re(se.endpoint,se.secure);else if(se.region)se.endpoint=le(se.region,se.internal,se.secure);else throw new Error("require options.endpoint or options.region");return se.inited=!0,se}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(a,Te,be){"use strict";var z=a("merge-descriptors"),E=be;z(E,a("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.concat.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkBucketName"),ee=oe.checkBucketName,le=a("querystring"),x=a("js-base64"),ne=x.Base64.encode,re=be;re.processObjectSave=function(){var se=(0,ie.default)(E.default.mark(function pe(me,he,ye,De){var Me,Be,Pe,Ce;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ae(me,"sourceObject"),ae(he,"targetObject"),ae(ye,"process"),he=this._objectName(he),De&&ee(De),Me=this._objectRequestParams("POST",me,{subres:"x-oss-process"}),Be=De?",b_".concat(ne(De)):"",he=ne(he),Pe={"x-oss-process":"".concat(ye,"|sys/saveas,o_").concat(he).concat(Be)},Me.content=le.stringify(Pe),je.next=12,this.request(Me);case 12:return Ce=je.sent,je.abrupt("return",{res:Ce.res,status:Ce.res.status});case 14:case"end":return je.stop()}},pe,this)}));function ce(pe,me,he,ye){return se.apply(this,arguments)}return ce}();function ae(se,ce){if(!se)throw new Error("".concat(ce," is required"));if(typeof se!="string")throw new Error("".concat(ce," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.regexp.to-string.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("debug")("ali-oss:multipart-copy"),ee=a("copy-to"),le=be;le.uploadPartCopy=function(){var x=(0,ie.default)(E.default.mark(function re(ae,se,ce,pe,me){var he,ye,De,Me,Be,Pe=arguments;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return he=Pe.length>5&&Pe[5]!==void 0?Pe[5]:{},he.headers=he.headers||{},ye=he.versionId||he.subres&&he.subres.versionId||null,ye?De="/".concat(me.sourceBucketName,"/").concat(encodeURIComponent(me.sourceKey),"?versionId=").concat(ye):De="/".concat(me.sourceBucketName,"/").concat(encodeURIComponent(me.sourceKey)),he.headers["x-oss-copy-source"]=De,pe&&(he.headers["x-oss-copy-source-range"]="bytes=".concat(pe)),he.subres={partNumber:ce,uploadId:se},Me=this._objectRequestParams("PUT",ae,he),Me.mime=he.mime,Me.successStatuses=[200],Ee.next=12,this.request(Me);case 12:return Be=Ee.sent,Ee.abrupt("return",{name:ae,etag:Be.res.headers.etag,res:Be.res});case 14:case"end":return Ee.stop()}},re,this)}));function ne(re,ae,se,ce,pe){return x.apply(this,arguments)}return ne}(),le.multipartUploadCopy=function(){var x=(0,ie.default)(E.default.mark(function re(ae,se){var ce,pe,me,he,ye,De,Me,Be,Pe,Ce,Ee,je,ke=arguments;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ce=ke.length>2&&ke[2]!==void 0?ke[2]:{},this.resetCancelFlag(),pe=ce.versionId,me=pe===void 0?null:pe,he={versionId:me},Ae.next=6,this._getObjectMeta(se.sourceBucketName,se.sourceKey,he);case 6:if(ye=Ae.sent,De=ye.res.headers["content-length"],se.startOffset=se.startOffset||0,se.endOffset=se.endOffset||De,!(ce.checkpoint&&ce.checkpoint.uploadId)){Ae.next=14;break}return Ae.next=13,this._resumeMultipartCopy(ce.checkpoint,se,ce);case 13:return Ae.abrupt("return",Ae.sent);case 14:if(Me=102400,Be=se.endOffset-se.startOffset,!(Be<Me)){Ae.next=18;break}throw new Error("copySize must not be smaller than ".concat(Me));case 18:if(!(ce.partSize&&ce.partSize<Me)){Ae.next=20;break}throw new Error("partSize must not be smaller than ".concat(Me));case 20:return Ae.next=22,this.initMultipartUpload(ae,ce);case 22:if(Pe=Ae.sent,Ce=Pe.uploadId,Ee=this._getPartSize(Be,ce.partSize),je={name:ae,copySize:Be,partSize:Ee,uploadId:Ce,doneParts:[]},!(ce&&ce.progress)){Ae.next=29;break}return Ae.next=29,ce.progress(0,je,Pe.res);case 29:return Ae.next=31,this._resumeMultipartCopy(je,se,ce);case 31:return Ae.abrupt("return",Ae.sent);case 32:case"end":return Ae.stop()}},re,this)}));function ne(re,ae){return x.apply(this,arguments)}return ne}(),le._resumeMultipartCopy=function(){var x=(0,ie.default)(E.default.mark(function re(ae,se,ce){var pe,me,he,ye,De,Me,Be,Pe,Ce,Ee,je,ke,Le,Ae,Se,Ge,Ze,Je,at,Fe,Ke;return E.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(!this.isCancel()){rt.next=2;break}throw this._makeCancelEvent();case 2:if(pe=ce.versionId,me=pe===void 0?null:pe,he={versionId:me},ye=ae.copySize,De=ae.partSize,Me=ae.uploadId,Be=ae.doneParts,Pe=ae.name,Ce=this._divideMultipartCopyParts(ye,De,se.startOffset),Ee=Ce.length,je={headers:{}},ce.copyheaders&&ee(ce.copyheaders).to(je.headers),me&&ee(he).to(je),ke=function($e,Xe,Ve){return new Promise(function(){var nt=(0,ie.default)(E.default.mark(function Qe(ct,ot){var qe,_e,Re;return E.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(de.prev=0,$e.isCancel()){de.next=22;break}return qe=Ce[Xe-1],_e="".concat(qe.start,"-").concat(qe.end-1),de.prev=4,de.next=7,$e.uploadPartCopy(Pe,Me,Xe,_e,Ve,je);case 7:Re=de.sent,de.next=15;break;case 10:if(de.prev=10,de.t0=de.catch(4),de.t0.status!==404){de.next=14;break}throw $e._makeAbortEvent();case 14:throw de.t0;case 15:if($e.isCancel()){de.next=22;break}if(oe("content-range ".concat(Re.res.headers["content-range"])),Be.push({number:Xe,etag:Re.res.headers.etag}),ae.doneParts=Be,!(ce&&ce.progress)){de.next=22;break}return de.next=22,ce.progress(Be.length/Ee,ae,Re.res);case 22:ct(),de.next=29;break;case 25:de.prev=25,de.t1=de.catch(0),de.t1.partNum=Xe,ot(de.t1);case 29:case"end":return de.stop()}},Qe,null,[[0,25],[4,10]])}));return function(Qe,ct){return nt.apply(this,arguments)}}())},Le=Array.from(new Array(Ee),function(et,$e){return $e+1}),Ae=Be.map(function(et){return et.number}),Se=Le.filter(function(et){return Ae.indexOf(et)<0}),Ge=5,Ze=ce.parallel||Ge,!(this.checkBrowserAndVersion("Internet Explorer","10")||Ze===1)){rt.next=28;break}Je=0;case 18:if(!(Je<Se.length)){rt.next=26;break}if(!this.isCancel()){rt.next=21;break}throw this._makeCancelEvent();case 21:return rt.next=23,ke(this,Se[Je],se);case 23:Je++,rt.next=18;break;case 26:rt.next=40;break;case 28:return rt.next=30,this._parallelNode(Se,Ze,ke,se);case 30:if(at=rt.sent,Fe=at.find(function(et){return et.name==="abort"}),!Fe){rt.next=34;break}throw Fe;case 34:if(!this.isCancel()){rt.next=36;break}throw this._makeCancelEvent();case 36:if(!(at&&at.length>0)){rt.next=40;break}throw Ke=at[0],Ke.message="Failed to copy some parts with error: ".concat(Ke.toString()," part_num: ").concat(Ke.partNum),Ke;case 40:return rt.next=42,this.completeMultipartUpload(Pe,Me,Be,ce);case 42:return rt.abrupt("return",rt.sent);case 43:case"end":return rt.stop()}},re,this)}));function ne(re,ae,se){return x.apply(this,arguments)}return ne}(),le._divideMultipartCopyParts=function(ne,re,ae){for(var se=Math.ceil(ne/re),ce=[],pe=0;pe<se;pe++){var me=re*pe+ae,he=Math.min(me+re,ne+ae);ce.push({start:me,end:he})}return ce},le._getObjectMeta=function(){var x=(0,ie.default)(E.default.mark(function re(ae,se,ce){var pe,me;return E.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return pe=this.getBucket(),this.setBucket(ae),ye.next=4,this.head(se,ce);case 4:return me=ye.sent,this.setBucket(pe),ye.abrupt("return",me);case 7:case"end":return ye.stop()}},re,this)}));function ne(re,ae,se){return x.apply(this,arguments)}return ne}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(a,Te,be){(function(z){(function(){"use strict";var E=a("@babel/runtime/helpers/interopRequireDefault"),ie=E(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.map.js"),a("core-js/modules/es.array.filter.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.array.sort.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js");var oe=E(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("copy-to"),le=a("./callback"),x=a("./utils/deepCopy"),ne=x.deepCopyWith,re=a("./utils/isBuffer"),ae=re.isBuffer,se=a("./utils/omit"),ce=se.omit,pe=be;pe.listUploads=function(){var me=(0,oe.default)(ie.default.mark(function ye(De,Me){var Be,Pe,Ce,Ee;return ie.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return Me=Me||{},Be={},ee(Me).to(Be),Be.subres="uploads",Pe=this._objectRequestParams("GET","",Be),Pe.query=De,Pe.xmlResponse=!0,Pe.successStatuses=[200],ke.next=10,this.request(Pe);case 10:return Ce=ke.sent,Ee=Ce.data.Upload||[],Array.isArray(Ee)||(Ee=[Ee]),Ee=Ee.map(function(Le){return{name:Le.Key,uploadId:Le.UploadId,initiated:Le.Initiated}}),ke.abrupt("return",{res:Ce.res,uploads:Ee,bucket:Ce.data.Bucket,nextKeyMarker:Ce.data.NextKeyMarker,nextUploadIdMarker:Ce.data.NextUploadIdMarker,isTruncated:Ce.data.IsTruncated==="true"});case 15:case"end":return ke.stop()}},ye,this)}));function he(ye,De){return me.apply(this,arguments)}return he}(),pe.listParts=function(){var me=(0,oe.default)(ie.default.mark(function ye(De,Me,Be,Pe){var Ce,Ee,je;return ie.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Pe=Pe||{},Ce={},ee(Pe).to(Ce),Ce.subres={uploadId:Me},Ee=this._objectRequestParams("GET",De,Ce),Ee.query=Be,Ee.xmlResponse=!0,Ee.successStatuses=[200],Le.next=10,this.request(Ee);case 10:return je=Le.sent,Le.abrupt("return",{res:je.res,uploadId:je.data.UploadId,bucket:je.data.Bucket,name:je.data.Key,partNumberMarker:je.data.PartNumberMarker,nextPartNumberMarker:je.data.NextPartNumberMarker,maxParts:je.data.MaxParts,isTruncated:je.data.IsTruncated,parts:je.data.Part||[]});case 12:case"end":return Le.stop()}},ye,this)}));function he(ye,De,Me,Be){return me.apply(this,arguments)}return he}(),pe.abortMultipartUpload=function(){var me=(0,oe.default)(ie.default.mark(function ye(De,Me,Be){var Pe,Ce,Ee;return ie.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return this._stop(),Be=Be||{},Pe={},ee(Be).to(Pe),Pe.subres={uploadId:Me},Ce=this._objectRequestParams("DELETE",De,Pe),Ce.successStatuses=[204],ke.next=9,this.request(Ce);case 9:return Ee=ke.sent,ke.abrupt("return",{res:Ee.res});case 11:case"end":return ke.stop()}},ye,this)}));function he(ye,De,Me){return me.apply(this,arguments)}return he}(),pe.initMultipartUpload=function(){var me=(0,oe.default)(ie.default.mark(function ye(De,Me){var Be,Pe,Ce;return ie.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Me=Me||{},Be={},ee(Me).to(Be),Be.headers=Be.headers||{},this._convertMetaToHeaders(Me.meta,Be.headers),Be.subres="uploads",Pe=this._objectRequestParams("POST",De,Be),Pe.mime=Me.mime,Pe.xmlResponse=!0,Pe.successStatuses=[200],je.next=12,this.request(Pe);case 12:return Ce=je.sent,je.abrupt("return",{res:Ce.res,bucket:Ce.data.Bucket,name:Ce.data.Key,uploadId:Ce.data.UploadId});case 14:case"end":return je.stop()}},ye,this)}));function he(ye,De){return me.apply(this,arguments)}return he}(),pe.uploadPart=function(){var me=(0,oe.default)(ie.default.mark(function ye(De,Me,Be,Pe,Ce,Ee,je){var ke,Le;return ie.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(ke={size:Ee-Ce},Le=z&&z.browser,!Le){Se.next=8;break}return Se.next=5,this._createBuffer(Pe,Ce,Ee);case 5:ke.content=Se.sent,Se.next=11;break;case 8:return Se.next=10,this._createStream(Pe,Ce,Ee);case 10:ke.stream=Se.sent;case 11:return Se.next=13,this._uploadPart(De,Me,Be,ke,je);case 13:return Se.abrupt("return",Se.sent);case 14:case"end":return Se.stop()}},ye,this)}));function he(ye,De,Me,Be,Pe,Ce,Ee){return me.apply(this,arguments)}return he}(),pe.completeMultipartUpload=function(){var me=(0,oe.default)(ie.default.mark(function ye(De,Me,Be,Pe){var Ce,Ee,je,ke,Le,Ae,Se,Ge;return ie.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:for(Ce=Be.concat().sort(function(at,Fe){return at.number-Fe.number}).filter(function(at,Fe,Ke){return!Fe||at.number!==Ke[Fe-1].number}),Ee=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,je=0;je<Ce.length;je++)ke=Ce[je],Ee+=`<Part>
|
|
|
`,Ee+="<PartNumber>".concat(ke.number,`</PartNumber>
|
|
|
`),Ee+="<ETag>".concat(ke.etag,`</ETag>
|
|
|
`),Ee+=`</Part>
|
|
|
`;return Ee+="</CompleteMultipartUpload>",Pe=Pe||{},Le={},Le=ne(Pe,function(at){if(ae(at))return null}),Le.subres={uploadId:Me},Le.headers=ce(Le.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ae=this._objectRequestParams("POST",De,Le),le.encodeCallback(Ae,Le),Ae.mime="xml",Ae.content=Ee,Ae.headers&&Ae.headers["x-oss-callback"]||(Ae.xmlResponse=!0),Ae.successStatuses=[200],Je.next=17,this.request(Ae);case 17:if(Se=Je.sent,!Pe.progress){Je.next=21;break}return Je.next=21,Pe.progress(1,null,Se.res);case 21:return Ge={res:Se.res,bucket:Ae.bucket,name:De,etag:Se.res.headers.etag},Ae.headers&&Ae.headers["x-oss-callback"]&&(Ge.data=JSON.parse(Se.data.toString())),Je.abrupt("return",Ge);case 24:case"end":return Je.stop()}},ye,this)}));function he(ye,De,Me,Be){return me.apply(this,arguments)}return he}(),pe._uploadPart=function(){var me=(0,oe.default)(ie.default.mark(function ye(De,Me,Be,Pe,Ce){var Ee,je,ke,Le;return ie.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Ce=Ce||{},Ee={},ee(Ce).to(Ee),Ee.headers=Ee.headers||{},Ee.headers["Content-Length"]=Pe.size,Ee.headers=ce(Ee.headers,["x-oss-server-side-encryption"]),Ee.subres={partNumber:Be,uploadId:Me},je=this._objectRequestParams("PUT",De,Ee),je.mime=Ee.mime,ke=z&&z.browser,ke?je.content=Pe.content:je.stream=Pe.stream,je.successStatuses=[200],je.disabledMD5=Ce.disabledMD5,Se.next=15,this.request(je);case 15:if(Le=Se.sent,Le.res.headers.etag){Se.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
|
|
|
https://help.aliyun.com/document_detail/32069.html`);case 18:return Pe.stream&&(Pe.stream=null,je.stream=null),Se.abrupt("return",{name:De,etag:Le.res.headers.etag,res:Le.res});case 20:case"end":return Se.stop()}},ye,this)}));function he(ye,De,Me,Be,Pe){return me.apply(this,arguments)}return he}()}).call(this)}).call(this,a("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator")),ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("url"),ee=a("utility"),le=a("copy-to"),x=a("../../common/signUtils"),ne=a("../utils/isIP"),re=ne.isIP,ae=a("../utils/setSTSToken"),se=ae.setSTSToken,ce=a("../utils/isFunction"),pe=ce.isFunction,me=be;me.asyncSignatureUrl=function(){var he=(0,ie.default)(E.default.mark(function De(Me,Be){var Pe,Ce,Ee,je,ke;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(!re(this.options.endpoint.hostname)){Ae.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Be=Be||{},Me=this._objectName(Me),Be.method=Be.method||"GET",Pe=ee.timestamp()+(Be.expires||1800),Ce={bucket:this.options.bucket,object:Me},Ee=this._getResource(Ce),!(this.options.stsToken&&pe(this.options.refreshSTSToken))){Ae.next=11;break}return Ae.next=11,se.call(this);case 11:return this.options.stsToken&&(Be["security-token"]=this.options.stsToken),je=x._signatureForURL(this.options.accessKeySecret,Be,Ee,Pe),ke=oe.parse(this._getReqUrl(Ce)),ke.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Pe,Signature:je.Signature},le(je.subResource).to(ke.query),Ae.abrupt("return",ke.format());case 17:case"end":return Ae.stop()}},De,this)}));function ye(De,Me){return he.apply(this,arguments)}return ye}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js");var ie=z(a("@babel/runtime/helpers/typeof")),oe=z(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("../utils/checkBucketName"),le=ee.checkBucketName,x=be,ne=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];x.copy=function(){var re=(0,oe.default)(E.default.mark(function se(ce,pe,me,he){var ye,De,Me;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return(0,ie.default)(me)==="object"&&(he=me),he=he||{},he.headers=he.headers||{},Object.keys(he.headers).forEach(function(Ce){he.headers["x-oss-copy-source-".concat(Ce.toLowerCase())]=he.headers[Ce]}),(he.meta||Object.keys(he.headers).find(function(Ce){return ne.includes(Ce.toLowerCase())}))&&(he.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(he.meta,he.headers),pe=this._getSourceName(pe,me),he.versionId&&(pe="".concat(pe,"?versionId=").concat(he.versionId)),he.headers["x-oss-copy-source"]=pe,ye=this._objectRequestParams("PUT",ce,he),ye.xmlResponse=!0,ye.successStatuses=[200,304],Pe.next=14,this.request(ye);case 14:return De=Pe.sent,Me=De.data,Me&&(Me={etag:Me.ETag,lastModified:Me.LastModified}),Pe.abrupt("return",{data:Me,res:De.res});case 18:case"end":return Pe.stop()}},se,this)}));function ae(se,ce,pe,me){return re.apply(this,arguments)}return ae}(),x._getSourceName=function(ae,se){return typeof se=="string"?ae=this._objectName(ae):ae[0]!=="/"?se=this.options.bucket:(se=ae.replace(/\/(.+?)(\/.*)/,"$1"),ae=ae.replace(/(\/.+?\/)(.*)/,"$2")),le(se),ae=encodeURIComponent(ae),ae="/".concat(se,"/").concat(ae),ae}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.delete=function(){var ee=(0,ie.default)(E.default.mark(function x(ne){var re,ae,se,ce=arguments;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=ce.length>1&&ce[1]!==void 0?ce[1]:{},re.subres=Object.assign({},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ae=this._objectRequestParams("DELETE",ne,re),ae.successStatuses=[204],me.next=7,this.request(ae);case 7:return se=me.sent,me.abrupt("return",{res:se.res});case 9:case"end":return me.stop()}},x,this)}));function le(x){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("utility"),ee=a("../utils/obj2xml"),le=ee.obj2xml,x=be;x.deleteMulti=function(){var ne=(0,ie.default)(E.default.mark(function ae(se){var ce,pe,me,he,ye,De,Me,Be,Pe,Ce,Ee,je,ke,Le=arguments;return E.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(ce=Le.length>1&&Le[1]!==void 0?Le[1]:{},pe=[],!(!se||!se.length)){Se.next=4;break}throw new Error("names is required");case 4:for(me=0;me<se.length;me++)he={},typeof se[me]=="string"?he.Key=oe.escape(this._objectName(se[me])):(ye=se[me],De=ye.key,Me=ye.versionId,he.Key=oe.escape(this._objectName(De)),he.VersionId=Me),pe.push(he);return Be={Delete:{Quiet:!!ce.quiet,Object:pe}},Pe=le(Be,{headers:!0}),ce.subres=Object.assign({delete:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),Ce=this._objectRequestParams("POST","",ce),Ce.mime="xml",Ce.content=Pe,Ce.xmlResponse=!0,Ce.successStatuses=[200],Se.next=16,this.request(Ce);case 16:return Ee=Se.sent,je=Ee.data,ke=je&&je.Deleted||null,ke&&(Array.isArray(ke)||(ke=[ke])),Se.abrupt("return",{res:Ee.res,deleted:ke||[]});case 21:case"end":return Se.stop()}},ae,this)}));function re(ae){return ne.apply(this,arguments)}return re}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.deleteObjectTagging=function(){var ee=(0,ie.default)(E.default.mark(function x(ne){var re,ae,se,ce=arguments;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=ce.length>1&&ce[1]!==void 0?ce[1]:{},re.subres=Object.assign({tagging:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ne=this._objectName(ne),ae=this._objectRequestParams("DELETE",ne,re),ae.successStatuses=[204],me.next=8,this.request(ae);case 8:return se=me.sent,me.abrupt("return",{status:se.status,res:se.res});case 10:case"end":return me.stop()}},x,this)}));function le(x){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(a,Te,be){"use strict";a("core-js/modules/es.array.concat.js");var z=a("url"),E=a("../utils/isIP"),ie=E.isIP,oe=be;oe.generateObjectUrl=function(le,x){if(ie(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(x)x[x.length-1]!=="/"&&(x+="/");else{x=this.options.endpoint.format();var ne=z.parse(x),re=this.options.bucket;ne.hostname="".concat(re,".").concat(ne.hostname),ne.host="".concat(re,".").concat(ne.host),x=ne.format()}return x+this._escape(this._objectName(le))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(a,Te,be){(function(z){(function(){"use strict";var E=a("@babel/runtime/helpers/interopRequireDefault"),ie=E(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var oe=E(a("@babel/runtime/helpers/asyncToGenerator")),ee=a("fs"),le=a("is-type-of"),x=be;x.get=function(){var ne=(0,oe.default)(ie.default.mark(function ae(se,ce){var pe,me,he,ye,De,Me,Be,Pe,Ce=arguments;return ie.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return pe=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},me=null,he=!1,le.writableStream(ce)?me=ce:le.string(ce)?(me=ee.createWriteStream(ce),he=!0):pe=ce,pe=pe||{},ye=z&&z.browser,De=pe.responseCacheControl===null?"":"no-cache",Me=ye&&De?{"response-cache-control":De}:{},pe.subres=Object.assign(Me,pe.subres),pe.versionId&&(pe.subres.versionId=pe.versionId),pe.process&&(pe.subres["x-oss-process"]=pe.process),je.prev=11,Pe=this._objectRequestParams("GET",se,pe),Pe.writeStream=me,Pe.successStatuses=[200,206,304],je.next=17,this.request(Pe);case 17:Be=je.sent,he&&me.destroy(),je.next=28;break;case 21:if(je.prev=21,je.t0=je.catch(11),!he){je.next=27;break}return me.destroy(),je.next=27,this._deleteFileSafe(ce);case 27:throw je.t0;case 28:return je.abrupt("return",{res:Be.res,content:Be.data});case 29:case"end":return je.stop()}},ae,this,[[11,21]])}));function re(ae,se){return ne.apply(this,arguments)}return re}()}).call(this)}).call(this,a("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.getACL=function(){var ee=(0,ie.default)(E.default.mark(function x(ne){var re,ae,se,ce=arguments;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=ce.length>1&&ce[1]!==void 0?ce[1]:{},re.subres=Object.assign({acl:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ne=this._objectName(ne),ae=this._objectRequestParams("GET",ne,re),ae.successStatuses=[200],ae.xmlResponse=!0,me.next=9,this.request(ae);case 9:return se=me.sent,me.abrupt("return",{acl:se.data.AccessControlList.Grant,owner:{id:se.data.Owner.ID,displayName:se.data.Owner.DisplayName},res:se.res});case 11:case"end":return me.stop()}},x,this)}));function le(x){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.number.constructor.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=be,ee=a("../utils/isObject"),le=ee.isObject,x=a("../utils/isArray"),ne=x.isArray;oe.getBucketVersions=re,oe.listObjectVersions=re;function re(){return ae.apply(this,arguments)}function ae(){return ae=(0,ie.default)(E.default.mark(function pe(){var me,he,ye,De,Me,Be,Pe,Ce,Ee=arguments;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(me=Ee.length>0&&Ee[0]!==void 0?Ee[0]:{},he=Ee.length>1&&Ee[1]!==void 0?Ee[1]:{},!(me.versionIdMarker&&me.keyMarker===void 0)){ke.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return he.subres=Object.assign({versions:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),ye=this._objectRequestParams("GET","",he),ye.xmlResponse=!0,ye.successStatuses=[200],ye.query=ce(me),ke.next=12,this.request(ye);case 12:return De=ke.sent,Me=De.data.Version||[],Be=De.data.DeleteMarker||[],Pe=this,Me&&(Array.isArray(Me)||(Me=[Me]),Me=Me.map(function(Le){return{name:Le.Key,url:Pe._objectUrl(Le.Key),lastModified:Le.LastModified,isLatest:Le.IsLatest==="true",versionId:Le.VersionId,etag:Le.ETag,type:Le.Type,size:Number(Le.Size),storageClass:Le.StorageClass,owner:{id:Le.Owner.ID,displayName:Le.Owner.DisplayName}}})),Be&&(ne(Be)||(Be=[Be]),Be=Be.map(function(Le){return{name:Le.Key,lastModified:Le.LastModified,versionId:Le.VersionId,owner:{id:Le.Owner.ID,displayName:Le.Owner.DisplayName}}})),Ce=De.data.CommonPrefixes||null,Ce&&(ne(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Le){return Le.Prefix})),ke.abrupt("return",{res:De.res,objects:Me,deleteMarker:Be,prefixes:Ce,nextMarker:De.data.NextKeyMarker||null,NextVersionIdMarker:De.data.NextVersionIdMarker||null,nextKeyMarker:De.data.NextKeyMarker||null,nextVersionIdMarker:De.data.NextVersionIdMarker||null,isTruncated:De.data.IsTruncated==="true"});case 21:case"end":return ke.stop()}},pe,this)})),ae.apply(this,arguments)}function se(pe){return pe.replace(/([A-Z])/g,"-$1").toLowerCase()}function ce(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},me={};return le(pe)&&Object.keys(pe).forEach(function(he){me[se(he)]=pe[he]}),me}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.getObjectMeta=function(){var ee=(0,ie.default)(E.default.mark(function x(ne,re){var ae,se;return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return re=re||{},ne=this._objectName(ne),re.subres=Object.assign({objectMeta:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ae=this._objectRequestParams("HEAD",ne,re),ae.successStatuses=[200],pe.next=8,this.request(ae);case 8:return se=pe.sent,pe.abrupt("return",{status:se.status,res:se.res});case 10:case"end":return pe.stop()}},x,this)}));function le(x,ne){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=be,ee=a("../utils/isObject"),le=ee.isObject;oe.getObjectTagging=function(){var x=(0,ie.default)(E.default.mark(function re(ae){var se,ce,pe,me,he,ye,De=arguments;return E.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return se=De.length>1&&De[1]!==void 0?De[1]:{},se.subres=Object.assign({tagging:""},se.subres),se.versionId&&(se.subres.versionId=se.versionId),ae=this._objectName(ae),ce=this._objectRequestParams("GET",ae,se),ce.successStatuses=[200],Be.next=8,this.request(ce);case 8:return pe=Be.sent,Be.next=11,this.parseXML(pe.data);case 11:return me=Be.sent,he=me.TagSet.Tag,he=he&&le(he)?[he]:he||[],ye={},he.forEach(function(Pe){ye[Pe.Key]=Pe.Value}),Be.abrupt("return",{status:pe.status,res:pe.res,tag:ye});case 17:case"end":return Be.stop()}},re,this)}));function ne(re){return x.apply(this,arguments)}return ne}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(a,Te,be){"use strict";var z=a("../utils/isIP"),E=z.isIP,ie=be;ie.getObjectUrl=function(ee,le){if(E(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return le?le[le.length-1]!=="/"&&(le+="/"):le=this.options.endpoint.format(),le+this._escape(this._objectName(ee))}},{"../utils/isIP":69}],43:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.getSymlink=function(){var ee=(0,ie.default)(E.default.mark(function x(ne){var re,ae,se,ce,pe=arguments;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return re=pe.length>1&&pe[1]!==void 0?pe[1]:{},re.subres=Object.assign({symlink:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ne=this._objectName(ne),ae=this._objectRequestParams("GET",ne,re),ae.successStatuses=[200],he.next=8,this.request(ae);case 8:return se=he.sent,ce=se.res.headers["x-oss-symlink-target"],he.abrupt("return",{targetName:decodeURIComponent(ce),res:se.res});case 11:case"end":return he.stop()}},x,this)}));function le(x){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/checkEnv"),ee=oe.checkEnv,le=be;le.head=function(){var x=(0,ie.default)(E.default.mark(function re(ae){var se,ce,pe,me,he=arguments;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return se=he.length>1&&he[1]!==void 0?he[1]:{},ee("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),se.subres=Object.assign({},se.subres),se.versionId&&(se.subres.versionId=se.versionId),ce=this._objectRequestParams("HEAD",ae,se),ce.successStatuses=[200,304],De.next=8,this.request(ce);case 8:return pe=De.sent,me={meta:null,res:pe.res,status:pe.status},pe.status===200&&Object.keys(pe.headers).forEach(function(Me){Me.indexOf("x-oss-meta-")===0&&(me.meta||(me.meta={}),me.meta[Me.substring(11)]=pe.headers[Me])}),De.abrupt("return",me);case 12:case"end":return De.stop()}},re,this)}));function ne(re){return x.apply(this,arguments)}return ne}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.putACL=function(){var ee=(0,ie.default)(E.default.mark(function x(ne,re,ae){var se,ce;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ae=ae||{},ae.subres=Object.assign({acl:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),ae.headers=ae.headers||{},ae.headers["x-oss-object-acl"]=re,ne=this._objectName(ne),se=this._objectRequestParams("PUT",ne,ae),se.successStatuses=[200],me.next=10,this.request(se);case 10:return ce=me.sent,me.abrupt("return",{res:ce.res});case 12:case"end":return me.stop()}},x,this)}));function le(x,ne,re){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.object.keys.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("../utils/obj2xml"),ee=oe.obj2xml,le=a("../utils/checkObjectTag"),x=le.checkObjectTag,ne=be;ne.putObjectTagging=function(){var re=(0,ie.default)(E.default.mark(function se(ce,pe){var me,he,ye,De,Me=arguments;return E.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return me=Me.length>2&&Me[2]!==void 0?Me[2]:{},x(pe),me.subres=Object.assign({tagging:""},me.subres),me.versionId&&(me.subres.versionId=me.versionId),ce=this._objectName(ce),he=this._objectRequestParams("PUT",ce,me),he.successStatuses=[200],pe=Object.keys(pe).map(function(Ce){return{Key:Ce,Value:pe[Ce]}}),ye={Tagging:{TagSet:{Tag:pe}}},he.mime="xml",he.content=ee(ye),Pe.next=13,this.request(he);case 13:return De=Pe.sent,Pe.abrupt("return",{res:De.res,status:De.status});case 15:case"end":return Pe.stop()}},se,this)}));function ae(se,ce){return re.apply(this,arguments)}return ae}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.putSymlink=function(){var ee=(0,ie.default)(E.default.mark(function x(ne,re,ae){var se,ce;return E.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ae=ae||{},ae.headers=ae.headers||{},re=this._escape(this._objectName(re)),this._convertMetaToHeaders(ae.meta,ae.headers),ae.headers["x-oss-symlink-target"]=re,ae.subres=Object.assign({symlink:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),ae.storageClass&&(ae.headers["x-oss-storage-class"]=ae.storageClass),ne=this._objectName(ne),se=this._objectRequestParams("PUT",ne,ae),se.successStatuses=[200],me.next=13,this.request(se);case 13:return ce=me.sent,me.abrupt("return",{res:ce.res});case 15:case"end":return me.stop()}},x,this)}));function le(x,ne,re){return ee.apply(this,arguments)}return le}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(a,Te,be){"use strict";var z=a("url"),E=a("utility"),ie=a("copy-to"),oe=a("../../common/signUtils"),ee=a("../utils/isIP"),le=ee.isIP,x=be;x.signatureUrl=function(re,ae){if(le(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");ae=ae||{},re=this._objectName(re),ae.method=ae.method||"GET";var se=E.timestamp()+(ae.expires||1800),ce={bucket:this.options.bucket,object:re},pe=this._getResource(ce);this.options.stsToken&&(ae["security-token"]=this.options.stsToken);var me=oe._signatureForURL(this.options.accessKeySecret,ae,pe,se),he=z.parse(this._getReqUrl(ce));return he.query={OSSAccessKeyId:this.options.accessKeyId,Expires:se,Signature:me.Signature},ie(me.subResource).to(he.query),he.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/web.dom-collections.iterator.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.function.name.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator")),oe=a("./utils/isArray"),ee=oe.isArray,le=be;le._parallelNode=function(){var x=(0,ie.default)(E.default.mark(function re(ae,se,ce,pe){var me,he,ye,De,Me,Be,Pe,Ce;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:me=this,he=[],ye=[],De=ae.length/se,Me=ae.length%se,Be=Me===0?De:(ae.length-Me)/se+1,Pe=1,Ce=0;case 8:if(!(Ce<ae.length)){je.next=26;break}if(!me.isCancel()){je.next=11;break}return je.abrupt("break",26);case 11:if(pe?ye.push(ce(me,ae[Ce],pe)):ye.push(ce(me,ae[Ce])),!(ye.length===se||Pe===Be&&Ce===ae.length-1)){je.next=23;break}return je.prev=13,Pe+=1,je.next=17,Promise.all(ye);case 17:je.next=22;break;case 19:je.prev=19,je.t0=je.catch(13),he.push(je.t0);case 22:ye=[];case 23:Ce++,je.next=8;break;case 26:return je.abrupt("return",he);case 27:case"end":return je.stop()}},re,this,[[13,19]])}));function ne(re,ae,se,ce){return x.apply(this,arguments)}return ne}(),le._parallel=function(ne,re,ae){var se=this;return new Promise(function(ce){var pe=[];if(re<=0||!ne){ce(pe);return}function me(je){return function(){if(je===null)throw new Error("Callback was already called.");var ke=je;je=null;for(var Le=arguments.length,Ae=new Array(Le),Se=0;Se<Le;Se++)Ae[Se]=arguments[Se];ke.apply(this,Ae)}}function he(je){var ke=-1,Le=je.length;return function(){return++ke<Le&&!se.isCancel()?{value:je[ke],key:ke}:null}}var ye=he(ne),De=!1,Me=0,Be=!1;function Pe(je){Me-=1,je?(De=!0,pe.push(je),ce(pe)):De&&Me<=0?(De=!0,ce(pe)):Be||(se.isCancel()?ce(pe):Ee())}function Ce(je,ke){ae(je).then(function(Le){ke(null,Le)}).catch(function(Le){ke(Le)})}function Ee(){for(Be=!0;Me<re&&!De&&!se.isCancel();){var je=ye();if(je===null||pe.length>0){De=!0,Me<=0&&ce(pe);return}Me+=1,Ce(je.value,me(Pe))}Be=!1}Ee()})},le.cancel=function(ne){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(re){if(re.destroyed===!1){var ae={name:"cancel",message:"cancel"};re.destroy(ae)}}),this.multipartUploadStreams=[],ne&&this.abortMultipartUpload(ne.name,ne.uploadId,ne.options)},le.isCancel=function(){return this.options.cancelFlag},le.resetCancelFlag=function(){this.options.cancelFlag=!1},le._stop=function(){this.options.cancelFlag=!0},le._makeCancelEvent=function(){var ne={status:0,name:"cancel"};return ne},le._makeAbortEvent=function(){var ne={status:0,name:"abort",message:"upload task has been abort"};return ne}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(a,Te,be){(function(z){(function(){"use strict";a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.array.sort.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.regexp.to-string.js");var E=a("./../../shims/crypto/crypto.js"),ie=a("is-type-of"),oe=a("./utils/lowercaseKeyHeader"),ee=oe.lowercaseKeyHeader;be.buildCanonicalizedResource=function(x,ne){var re="".concat(x),ae="?";if(ie.string(ne)&&ne.trim()!=="")re+=ae+ne;else if(ie.array(ne))ne.sort(),re+=ae+ne.join("&");else if(ne){var se=function(me,he){return me[0]>he[0]?1:me[0]<he[0]?-1:0},ce=function(me){re+=ae+me,(ne[me]||ne[me]===0)&&(re+="=".concat(ne[me])),ae="&"};Object.keys(ne).sort(se).forEach(ce)}return re},be.buildCanonicalString=function(x,ne,re,ae){re=re||{};var se=ee(re.headers),ce="x-oss-",pe=[],me={},he=[x.toUpperCase(),se["content-md5"]||"",se["content-type"],ae||se["x-oss-date"]];return Object.keys(se).forEach(function(ye){var De=ye.toLowerCase();De.indexOf(ce)===0&&(me[De]=String(se[ye]).trim())}),Object.keys(me).sort().forEach(function(ye){pe.push("".concat(ye,":").concat(me[ye]))}),he=he.concat(pe),he.push(this.buildCanonicalizedResource(ne,re.parameters)),he.join(`
|
|
|
`)},be.computeSignature=function(x,ne){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",ae=E.createHmac("sha1",x);return ae.update(z.from(ne,re)).digest("base64")},be.authorization=function(x,ne,re,ae){return"OSS ".concat(x,":").concat(this.computeSignature(ne,re,ae))},be._signatureForURL=function(x){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2?arguments[2]:void 0,ae=arguments.length>3?arguments[3]:void 0,se=arguments.length>4?arguments[4]:void 0,ce={},pe=ne.subResource,me=pe===void 0?{}:pe;if(ne.process){var he="x-oss-process";me[he]=ne.process}if(ne.trafficLimit){var ye="x-oss-traffic-limit";me[ye]=ne.trafficLimit}if(ne.response&&Object.keys(ne.response).forEach(function(Pe){var Ce="response-".concat(Pe.toLowerCase());me[Ce]=ne.response[Pe]}),Object.keys(ne).forEach(function(Pe){var Ce=Pe.toLowerCase(),Ee=ne[Pe];Ce.indexOf("x-oss-")===0?ce[Ce]=Ee:(Ce.indexOf("content-md5")===0||Ce.indexOf("content-type")===0)&&(ce[Pe]=Ee)}),Object.prototype.hasOwnProperty.call(ne,"security-token")&&(me["security-token"]=ne["security-token"]),Object.prototype.hasOwnProperty.call(ne,"callback")){var De={callbackUrl:encodeURI(ne.callback.url),callbackBody:ne.callback.body};if(ne.callback.host&&(De.callbackHost=ne.callback.host),ne.callback.contentType&&(De.callbackBodyType=ne.callback.contentType),me.callback=z.from(JSON.stringify(De)).toString("base64"),ne.callback.customValue){var Me={};Object.keys(ne.callback.customValue).forEach(function(Pe){Me["x:".concat(Pe)]=ne.callback.customValue[Pe]}),me["callback-var"]=z.from(JSON.stringify(Me)).toString("base64")}}var Be=this.buildCanonicalString(ne.method,re,{headers:ce,parameters:me},ae.toString());return{Signature:this.computeSignature(x,Be,se),subResource:me}}}).call(this)}).call(this,a("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(a,Te,be){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.checkBucketName=void 0,be.checkBucketName=function(z){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=E?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ie.test(z))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(a,Te,be){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.checkConfigValid=void 0;var z={endpoint:E,region:/^[a-zA-Z0-9\-_]+$/};function E(ie){return typeof ie=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ie):ie.host?/^[a-zA-Z0-9._:/-]+$/.test(ie.host):!1}be.checkConfigValid=function(ie,oe){if(z[oe]){var ee=!0;if(z[oe]instanceof Function?ee=z[oe](ie):ee=z[oe].test(ie),!ee)throw new Error("The ".concat(oe," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(a,Te,be){(function(z){(function(){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.checkEnv=void 0;function E(ie){z.browser&&console.warn(ie)}be.checkEnv=E}).call(this)}).call(this,a("_process"))},{_process:467}],54:[function(a,Te,be){"use strict";a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.entries.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.checkObjectTag=void 0;var z=a("./checkValid"),E=z.checkValid,ie=a("./isObject"),oe=ie.isObject,ee=[{validator:function(re){if(typeof re!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],le={key:[].concat(ee,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(ee,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function x(ne){if(!oe(ne))throw new Error("tag must be Object");var re=Object.entries(ne);if(re.length>10)throw new Error("maximum of 10 tags for a object");var ae=["key","value"];re.forEach(function(se){se.forEach(function(ce,pe){E(ce,le[ae[pe]])})})}be.checkObjectTag=x},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(a,Te,be){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.checkValid=void 0;function z(E,ie){ie.forEach(function(oe){if(oe.validator)oe.validator(E);else if(oe.pattern&&!oe.pattern.test(E))throw new Error(oe.msg)})}be.checkValid=z},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(a,Te,be){(function(z){(function(){"use strict";a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),a("core-js/modules/es.object.assign.js"),a("core-js/modules/es.array.concat.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.createRequest=void 0;var E=a("./../../../shims/crypto/crypto.js"),ie=a("debug")("ali-oss"),oe=a("mime"),ee=a("dateformat"),le=a("copy-to"),x=a("path"),ne=a("./encoder"),re=ne.encoder,ae=a("./isIP"),se=ae.isIP,ce=a("./setRegion"),pe=ce.setRegion,me=a("../client/getReqUrl"),he=me.getReqUrl,ye=a("./isDingTalk"),De=ye.isDingTalk;function Me(Ce,Ee){return Ce[Ee]||Ce[Ee.toLowerCase()]}function Be(Ce,Ee){delete Ce[Ee],delete Ce[Ee.toLowerCase()]}function Pe(Ce){var Ee=new Date;this.options.amendTimeSkewed&&(Ee=+new Date+this.options.amendTimeSkewed);var je={"x-oss-date":ee(Ee,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(je["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(je["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(je,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(je["x-oss-security-token"]=this.options.stsToken),le(Ce.headers).to(je),Me(je,"Content-Type")||(Ce.mime&&Ce.mime.indexOf("/")>0?je["Content-Type"]=Ce.mime:De()?je["Content-Type"]="application/octet-stream":je["Content-Type"]=oe.getType(Ce.mime||x.extname(Ce.object||""))),Me(je,"Content-Type")||Be(je,"Content-Type"),Ce.content&&(Ce.disabledMD5||(!Ce.headers||!Ce.headers["Content-MD5"]?je["Content-MD5"]=E.createHash("md5").update(z.from(Ce.content,"utf8")).digest("base64"):je["Content-MD5"]=Ce.headers["Content-MD5"]),je["Content-Length"]||(je["Content-Length"]=Ce.content.length));var ke=Object.prototype.hasOwnProperty;for(var Le in je)je[Le]&&ke.call(je,Le)&&(je[Le]=re(String(je[Le]),this.options.headerEncoding));var Ae=this._getResource(Ce);if(je.authorization=this.authorization(Ce.method,Ae,Ce.subres,je,this.options.headerEncoding),se(this.options.endpoint.hostname)){var Se=this.options,Ge=Se.region,Ze=Se.internal,Je=Se.secure,at=pe(Ge,Ze,Je);je.host="".concat(Ce.bucket,".").concat(at.host)}var Fe=he.bind(this)(Ce);ie("request %s %s, with headers %j, !!stream: %s",Ce.method,Fe,je,!!Ce.stream);var Ke=Ce.timeout||this.options.timeout,it={method:Ce.method,content:Ce.content,stream:Ce.stream,headers:je,timeout:Ke,writeStream:Ce.writeStream,customResponse:Ce.customResponse,ctx:Ce.ctx||this.ctx};return this.agent&&(it.agent=this.agent),this.httpsAgent&&(it.httpsAgent=this.httpsAgent),it.enableProxy=!!this.options.enableProxy,it.proxy=this.options.proxy?this.options.proxy:null,{url:Fe,params:it}}be.createRequest=Pe}).call(this)}).call(this,a("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(a,Te,be){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.entries.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.object.keys.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.dataFix=void 0;var z=a("./isObject"),E=["true","TRUE","1",1],ie=["false","FALSE","0",0];function oe(x,ne,re){if(z.isObject(x)){var ae=ne.remove,se=ae===void 0?[]:ae,ce=ne.rename,pe=ce===void 0?{}:ce,me=ne.camel,he=me===void 0?[]:me,ye=ne.bool,De=ye===void 0?[]:ye,Me=ne.lowerFirst,Be=Me===void 0?!1:Me;return se.forEach(function(Pe){return delete x[Pe]}),Object.entries(pe).forEach(function(Pe){x[Pe[0]]&&(x[Pe[1]]||(x[Pe[1]]=x[Pe[0]],delete x[Pe[0]]))}),he.forEach(function(Pe){if(x[Pe]){var Ce=Pe.replace(/^(.)/,function(Ee){return Ee.toLowerCase()}).replace(/-(\w)/g,function(Ee,je){return je.toUpperCase()});x[Ce]||(x[Ce]=x[Pe])}}),De.forEach(function(Pe){x[Pe]=ee(x[Pe])}),typeof re=="function"&&re(x),le(x,Be),oe}}be.dataFix=oe;function ee(x){return x?E.includes(x)?!0:ie.includes(x)?!1:x:!1}function le(x,ne){ne&&Object.keys(x).forEach(function(re){var ae=re.replace(/^\w/,function(se){return se.toLowerCase()});typeof x[ae]=="undefined"&&(x[ae]=x[re],delete x[re])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js");var E=z(a("@babel/runtime/helpers/typeof"));Object.defineProperty(be,"__esModule",{value:!0}),be.deepCopyWith=be.deepCopy=void 0;var ie=a("./isBuffer");be.deepCopy=function(oe){if(oe===null||(0,E.default)(oe)!=="object")return oe;if(ie.isBuffer(oe))return oe.slice();var ee=Array.isArray(oe)?[]:{};return Object.keys(oe).forEach(function(le){ee[le]=be.deepCopy(oe[le])}),ee},be.deepCopyWith=function(oe,ee){function le(x,ne,re){var ae=ee(x,ne,re);if(ae!==void 0)return ae;if(x===null||(0,E.default)(x)!=="object")return x;if(ie.isBuffer(x))return x.slice();var se=Array.isArray(x)?[]:{};return Object.keys(x).forEach(function(ce){se[ce]=le(x[ce],ce,x)}),se}return ee?le(oe,"",null):be.deepCopy(oe)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(a,Te,be){(function(z){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.encoder=void 0;function E(ie){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return oe==="utf-8"?ie:z.from(ie).toString("latin1")}be.encoder=E}).call(this)}).call(this,a("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(a,Te,be){"use strict";a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.formatInventoryConfig=void 0;var z=a("../utils/dataFix"),E=a("../utils/isObject"),ie=a("../utils/isArray"),oe=a("../utils/formatObjKey");function ee(x){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ne&&E.isObject(x)&&(x=[x]),ie.isArray(x)?x=x.map(le):x=le(x),x}be.formatInventoryConfig=ee;function le(x){return z.dataFix(x,{bool:["IsEnabled"]},function(ne){var re,ae;ne.prefix=ne.Filter.Prefix,delete ne.Filter,ne.OSSBucketDestination=ne.Destination.OSSBucketDestination,ne.OSSBucketDestination.rolename=ne.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ne.OSSBucketDestination.RoleArn,ne.OSSBucketDestination.bucket=ne.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ne.OSSBucketDestination.Bucket,delete ne.Destination,ne.frequency=ne.Schedule.Frequency,delete ne.Schedule.Frequency,!((re=ne==null?void 0:ne.OptionalFields)===null||re===void 0)&&re.Field&&!ie.isArray((ae=ne.OptionalFields)===null||ae===void 0?void 0:ae.Field)&&(ne.OptionalFields.Field=[ne.OptionalFields.Field])}),x=oe.formatObjKey(x,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),x}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault");a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js");var E=z(a("@babel/runtime/helpers/typeof"));Object.defineProperty(be,"__esModule",{value:!0}),be.formatObjKey=void 0;function ie(ee,le,x){if(ee===null||(0,E.default)(ee)!=="object")return ee;var ne;if(Array.isArray(ee)){ne=[];for(var re=0;re<ee.length;re++)ne.push(ie(ee[re],le,x))}else ne={},Object.keys(ee).forEach(function(ae){ne[oe(ae,le,x)]=ie(ee[ae],le,x)});return ne}be.formatObjKey=ie;function oe(ee,le,x){return x&&x.exclude&&x.exclude.includes(ee)||(le==="firstUpperCase"?ee=ee.replace(/^./,function(ne){return ne.toUpperCase()}):le==="firstLowerCase"&&(ee=ee.replace(/^./,function(ne){return ne.toLowerCase()}))),ee}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(a,Te,be){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.getStrBytesCount=void 0;function z(E){for(var ie=0,oe=0;oe<E.length;oe++){var ee=E.charAt(oe);/^[\u00-\uff]$/.test(ee)?ie+=1:ie+=2}return ie}be.getStrBytesCount=z},{"core-js/modules/es.regexp.exec.js":300}],63:[function(a,Te,be){"use strict";a("core-js/modules/es.object.to-string.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isArray=void 0,be.isArray=function(z){return Object.prototype.toString.call(z)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(a,Te,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isBlob=void 0;function z(E){return typeof Blob!="undefined"&&E instanceof Blob}be.isBlob=z},{}],65:[function(a,Te,be){(function(z){(function(){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isBuffer=void 0;function E(ie){return z.isBuffer(ie)}be.isBuffer=E}).call(this)}).call(this,{isBuffer:a("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(a,Te,be){(function(z){(function(){"use strict";a("core-js/modules/es.array.includes.js"),a("core-js/modules/es.string.includes.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isDingTalk=void 0;function E(){return!!(z.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}be.isDingTalk=E}).call(this)}).call(this,a("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(a,Te,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isFile=void 0,be.isFile=function(z){return typeof File!="undefined"&&z instanceof File}},{}],68:[function(a,Te,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isFunction=void 0,be.isFunction=function(z){return typeof z=="function"}},{}],69:[function(a,Te,be){"use strict";a("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isIP=void 0,be.isIP=function(z){var E=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,ie=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return E.test(z)||ie.test(z)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(a,Te,be){"use strict";a("core-js/modules/es.object.to-string.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isObject=void 0,be.isObject=function(z){return Object.prototype.toString.call(z)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(a,Te,be){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.lowercaseKeyHeader=void 0;var z=a("./isObject");function E(ie){var oe={};return z.isObject(ie)&&Object.keys(ie).forEach(function(ee){oe[ee.toLowerCase()]=ie[ee]}),oe}be.lowercaseKeyHeader=E},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(a,Te,be){"use strict";a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.obj2xml=void 0;var z=a("./formatObjKey");function E(oe){return Object.prototype.toString.call(oe).replace(/(.*? |])/g,"").toLowerCase()}function ie(oe,ee){var le="";return ee&&ee.headers&&(le=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
`),ee&&ee.firstUpperCase&&(oe=z.formatObjKey(oe,"firstUpperCase")),E(oe)==="object"?Object.keys(oe).forEach(function(x){E(oe[x])!=="undefined"&&E(oe[x])!=="null"&&(E(oe[x])==="string"||E(oe[x])==="number"?le+="<".concat(x,">").concat(oe[x],"</").concat(x,">"):E(oe[x])==="object"?le+="<".concat(x,">").concat(ie(oe[x]),"</").concat(x,">"):E(oe[x])==="array"?le+=oe[x].map(function(ne){return"<".concat(x,">").concat(ie(ne),"</").concat(x,">")}).join(""):le+="<".concat(x,">").concat(oe[x].toString(),"</").concat(x,">"))}):le+=oe.toString(),le}be.obj2xml=ie},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(a,Te,be){"use strict";a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.array.from.js"),a("core-js/modules/es.string.iterator.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.symbol.js"),a("core-js/modules/es.symbol.description.js"),a("core-js/modules/es.symbol.iterator.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/web.dom-collections.iterator.js"),a("core-js/modules/es.object.assign.js");function z(ee,le){var x=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!x){if(Array.isArray(ee)||(x=E(ee))||le&&ee&&typeof ee.length=="number"){x&&(ee=x);var ne=0,re=function(){};return{s:re,n:function(){return ne>=ee.length?{done:!0}:{done:!1,value:ee[ne++]}},e:function(me){throw me},f:re}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ae=!0,se=!1,ce;return{s:function(){x=x.call(ee)},n:function(){var me=x.next();return ae=me.done,me},e:function(me){se=!0,ce=me},f:function(){try{!ae&&x.return!=null&&x.return()}finally{if(se)throw ce}}}}function E(ee,le){if(ee){if(typeof ee=="string")return ie(ee,le);var x=Object.prototype.toString.call(ee).slice(8,-1);if(x==="Object"&&ee.constructor&&(x=ee.constructor.name),x==="Map"||x==="Set")return Array.from(ee);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return ie(ee,le)}}function ie(ee,le){(le==null||le>ee.length)&&(le=ee.length);for(var x=0,ne=new Array(le);x<le;x++)ne[x]=ee[x];return ne}Object.defineProperty(be,"__esModule",{value:!0}),be.omit=void 0;function oe(ee,le){var x=Object.assign({},ee),ne=z(le),re;try{for(ne.s();!(re=ne.n()).done;){var ae=re.value;delete x[ae]}}catch(se){ne.e(se)}finally{ne.f()}return x}be.omit=oe},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(a,Te,be){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.retry=void 0;function z(E,ie){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,le=oe.retryDelay,x=le===void 0?500:le,ne=oe.errorHandler,re=ne===void 0?function(){return!0}:ne,ae=function se(){for(var ce=arguments.length,pe=new Array(ce),me=0;me<ce;me++)pe[me]=arguments[me];return new Promise(function(he,ye){E.apply(void 0,pe).then(function(De){ee=0,he(De)}).catch(function(De){ee<ie&&re(De)?(ee++,setTimeout(function(){he(se.apply(void 0,pe))},x)):(ee=0,ye(De))})})};return ae}be.retry=z},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(a,Te,be){"use strict";var z=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(be,"__esModule",{value:!0}),be.setRegion=void 0;var E=z(a("url")),ie=a("./checkConfigValid");function oe(ee){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ie.checkConfigValid(ee,"region");var ne=x?"https://":"http://",re=le?"-internal.aliyuncs.com":".aliyuncs.com",ae="vpc100-oss-cn-";return ee.substr(0,ae.length)===ae&&(re=".aliyuncs.com"),E.default.parse(ne+ee+re)}be.setRegion=oe},{"./checkConfigValid":52,url:472}],76:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/regenerator"));a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.array.find.js"),a("core-js/modules/es.object.assign.js");var ie=z(a("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.checkCredentials=be.setSTSToken=void 0;var oe=a("./formatObjKey");function ee(){return le.apply(this,arguments)}function le(){return le=(0,ie.default)(E.default.mark(function ne(){var re,ae;return E.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(this.options||(this.options={}),re=new Date,!this.stsTokenFreshTime){ce.next=14;break}if(!(+re-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ce.next=12;break}return this.stsTokenFreshTime=re,ce.next=7,this.options.refreshSTSToken();case 7:ae=ce.sent,ae=oe.formatObjKey(ae,"firstLowerCase"),ae.securityToken&&(ae.stsToken=ae.securityToken),x(ae),Object.assign(this.options,ae);case 12:ce.next=15;break;case 14:this.stsTokenFreshTime=re;case 15:return ce.abrupt("return",null);case 16:case"end":return ce.stop()}},ne,this)})),le.apply(this,arguments)}be.setSTSToken=ee;function x(ne){var re=["accessKeySecret","accessKeyId","stsToken"],ae=Object.keys(ne);re.forEach(function(se){if(!ae.find(function(ce){return ce===se}))throw Error("refreshSTSToken must return contains ".concat(se))})}be.checkCredentials=x},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(a,Te,be){function z(ie,oe,ee,le,x,ne,re){try{var ae=ie[ne](re),se=ae.value}catch(ce){ee(ce);return}ae.done?oe(se):Promise.resolve(se).then(le,x)}function E(ie){return function(){var oe=this,ee=arguments;return new Promise(function(le,x){var ne=ie.apply(oe,ee);function re(se){z(ne,le,x,re,ae,"next",se)}function ae(se){z(ne,le,x,re,ae,"throw",se)}re(void 0)})}}Te.exports=E,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],78:[function(a,Te,be){function z(E){return E&&E.__esModule?E:{default:E}}Te.exports=z,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],79:[function(a,Te,be){function z(E){"@babel/helpers - typeof";return Te.exports=z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Te.exports.__esModule=!0,Te.exports.default=Te.exports,z(E)}Te.exports=z,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],80:[function(a,Te,be){Te.exports=a("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(a,Te,be){Te.exports=z,Te.exports.HttpsAgent=z;function z(){}},{}],82:[function(a,Te,be){(function(z){(function(){"use strict";var E=a("object-assign");function ie(Ge,Ze){if(Ge===Ze)return 0;for(var Je=Ge.length,at=Ze.length,Fe=0,Ke=Math.min(Je,at);Fe<Ke;++Fe)if(Ge[Fe]!==Ze[Fe]){Je=Ge[Fe],at=Ze[Fe];break}return Je<at?-1:at<Je?1:0}function oe(Ge){return z.Buffer&&typeof z.Buffer.isBuffer=="function"?z.Buffer.isBuffer(Ge):!!(Ge!=null&&Ge._isBuffer)}var ee=a("util/"),le=Object.prototype.hasOwnProperty,x=Array.prototype.slice,ne=function(){return function(){}.name==="foo"}();function re(Ge){return Object.prototype.toString.call(Ge)}function ae(Ge){return oe(Ge)||typeof z.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ge):Ge?!!(Ge instanceof DataView||Ge.buffer&&Ge.buffer instanceof ArrayBuffer):!1}var se=Te.exports=Me,ce=/\s*function\s+([^\(\s]*)\s*/;function pe(Ge){if(ee.isFunction(Ge)){if(ne)return Ge.name;var Ze=Ge.toString(),Je=Ze.match(ce);return Je&&Je[1]}}se.AssertionError=function(Ze){this.name="AssertionError",this.actual=Ze.actual,this.expected=Ze.expected,this.operator=Ze.operator,Ze.message?(this.message=Ze.message,this.generatedMessage=!1):(this.message=ye(this),this.generatedMessage=!0);var Je=Ze.stackStartFunction||De;if(Error.captureStackTrace)Error.captureStackTrace(this,Je);else{var at=new Error;if(at.stack){var Fe=at.stack,Ke=pe(Je),it=Fe.indexOf(`
|
|
|
`+Ke);if(it>=0){var rt=Fe.indexOf(`
|
|
|
`,it+1);Fe=Fe.substring(rt+1)}this.stack=Fe}}},ee.inherits(se.AssertionError,Error);function me(Ge,Ze){return typeof Ge=="string"?Ge.length<Ze?Ge:Ge.slice(0,Ze):Ge}function he(Ge){if(ne||!ee.isFunction(Ge))return ee.inspect(Ge);var Ze=pe(Ge),Je=Ze?": "+Ze:"";return"[Function"+Je+"]"}function ye(Ge){return me(he(Ge.actual),128)+" "+Ge.operator+" "+me(he(Ge.expected),128)}function De(Ge,Ze,Je,at,Fe){throw new se.AssertionError({message:Je,actual:Ge,expected:Ze,operator:at,stackStartFunction:Fe})}se.fail=De;function Me(Ge,Ze){Ge||De(Ge,!0,Ze,"==",se.ok)}se.ok=Me,se.equal=function(Ze,Je,at){Ze!=Je&&De(Ze,Je,at,"==",se.equal)},se.notEqual=function(Ze,Je,at){Ze==Je&&De(Ze,Je,at,"!=",se.notEqual)},se.deepEqual=function(Ze,Je,at){Be(Ze,Je,!1)||De(Ze,Je,at,"deepEqual",se.deepEqual)},se.deepStrictEqual=function(Ze,Je,at){Be(Ze,Je,!0)||De(Ze,Je,at,"deepStrictEqual",se.deepStrictEqual)};function Be(Ge,Ze,Je,at){if(Ge===Ze)return!0;if(oe(Ge)&&oe(Ze))return ie(Ge,Ze)===0;if(ee.isDate(Ge)&&ee.isDate(Ze))return Ge.getTime()===Ze.getTime();if(ee.isRegExp(Ge)&&ee.isRegExp(Ze))return Ge.source===Ze.source&&Ge.global===Ze.global&&Ge.multiline===Ze.multiline&&Ge.lastIndex===Ze.lastIndex&&Ge.ignoreCase===Ze.ignoreCase;if((Ge===null||typeof Ge!="object")&&(Ze===null||typeof Ze!="object"))return Je?Ge===Ze:Ge==Ze;if(ae(Ge)&&ae(Ze)&&re(Ge)===re(Ze)&&!(Ge instanceof Float32Array||Ge instanceof Float64Array))return ie(new Uint8Array(Ge.buffer),new Uint8Array(Ze.buffer))===0;if(oe(Ge)!==oe(Ze))return!1;at=at||{actual:[],expected:[]};var Fe=at.actual.indexOf(Ge);return Fe!==-1&&Fe===at.expected.indexOf(Ze)?!0:(at.actual.push(Ge),at.expected.push(Ze),Ce(Ge,Ze,Je,at))}function Pe(Ge){return Object.prototype.toString.call(Ge)=="[object Arguments]"}function Ce(Ge,Ze,Je,at){if(Ge==null||Ze===null||Ze===void 0)return!1;if(ee.isPrimitive(Ge)||ee.isPrimitive(Ze))return Ge===Ze;if(Je&&Object.getPrototypeOf(Ge)!==Object.getPrototypeOf(Ze))return!1;var Fe=Pe(Ge),Ke=Pe(Ze);if(Fe&&!Ke||!Fe&&Ke)return!1;if(Fe)return Ge=x.call(Ge),Ze=x.call(Ze),Be(Ge,Ze,Je);var it=Se(Ge),rt=Se(Ze),et,$e;if(it.length!==rt.length)return!1;for(it.sort(),rt.sort(),$e=it.length-1;$e>=0;$e--)if(it[$e]!==rt[$e])return!1;for($e=it.length-1;$e>=0;$e--)if(et=it[$e],!Be(Ge[et],Ze[et],Je,at))return!1;return!0}se.notDeepEqual=function(Ze,Je,at){Be(Ze,Je,!1)&&De(Ze,Je,at,"notDeepEqual",se.notDeepEqual)},se.notDeepStrictEqual=Ee;function Ee(Ge,Ze,Je){Be(Ge,Ze,!0)&&De(Ge,Ze,Je,"notDeepStrictEqual",Ee)}se.strictEqual=function(Ze,Je,at){Ze!==Je&&De(Ze,Je,at,"===",se.strictEqual)},se.notStrictEqual=function(Ze,Je,at){Ze===Je&&De(Ze,Je,at,"!==",se.notStrictEqual)};function je(Ge,Ze){if(!Ge||!Ze)return!1;if(Object.prototype.toString.call(Ze)=="[object RegExp]")return Ze.test(Ge);try{if(Ge instanceof Ze)return!0}catch(Je){}return Error.isPrototypeOf(Ze)?!1:Ze.call({},Ge)===!0}function ke(Ge){var Ze;try{Ge()}catch(Je){Ze=Je}return Ze}function Le(Ge,Ze,Je,at){var Fe;if(typeof Ze!="function")throw new TypeError('"block" argument must be a function');typeof Je=="string"&&(at=Je,Je=null),Fe=ke(Ze),at=(Je&&Je.name?" ("+Je.name+").":".")+(at?" "+at:"."),Ge&&!Fe&&De(Fe,Je,"Missing expected exception"+at);var Ke=typeof at=="string",it=!Ge&&ee.isError(Fe),rt=!Ge&&Fe&&!Je;if((it&&Ke&&je(Fe,Je)||rt)&&De(Fe,Je,"Got unwanted exception"+at),Ge&&Fe&&Je&&!je(Fe,Je)||!Ge&&Fe)throw Fe}se.throws=function(Ge,Ze,Je){Le(!0,Ge,Ze,Je)},se.doesNotThrow=function(Ge,Ze,Je){Le(!1,Ge,Ze,Je)},se.ifError=function(Ge){if(Ge)throw Ge};function Ae(Ge,Ze){Ge||De(Ge,!0,Ze,"==",Ae)}se.strict=E(Ae,se,{equal:se.strictEqual,deepEqual:se.deepStrictEqual,notEqual:se.notStrictEqual,notDeepEqual:se.notDeepStrictEqual}),se.strict.strict=se.strict;var Se=Object.keys||function(Ge){var Ze=[];for(var Je in Ge)le.call(Ge,Je)&&Ze.push(Je);return Ze}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(a,Te,be){typeof Object.create=="function"?Te.exports=function(E,ie){E.super_=ie,E.prototype=Object.create(ie.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})}:Te.exports=function(E,ie){E.super_=ie;var oe=function(){};oe.prototype=ie.prototype,E.prototype=new oe,E.prototype.constructor=E}},{}],84:[function(a,Te,be){Te.exports=function(E){return E&&typeof E=="object"&&typeof E.copy=="function"&&typeof E.fill=="function"&&typeof E.readUInt8=="function"}},{}],85:[function(a,Te,be){(function(z,E){(function(){var ie=/%[sdj%]/g;be.format=function(rt){if(!Ce(rt)){for(var et=[],$e=0;$e<arguments.length;$e++)et.push(le(arguments[$e]));return et.join(" ")}for(var $e=1,Xe=arguments,Ve=Xe.length,nt=String(rt).replace(ie,function(ct){if(ct==="%%")return"%";if($e>=Ve)return ct;switch(ct){case"%s":return String(Xe[$e++]);case"%d":return Number(Xe[$e++]);case"%j":try{return JSON.stringify(Xe[$e++])}catch(ot){return"[Circular]"}default:return ct}}),Qe=Xe[$e];$e<Ve;Qe=Xe[++$e])Me(Qe)||!Le(Qe)?nt+=" "+Qe:nt+=" "+le(Qe);return nt},be.deprecate=function(rt,et){if(je(E.process))return function(){return be.deprecate(rt,et).apply(this,arguments)};if(z.noDeprecation===!0)return rt;var $e=!1;function Xe(){if(!$e){if(z.throwDeprecation)throw new Error(et);z.traceDeprecation?console.trace(et):console.error(et),$e=!0}return rt.apply(this,arguments)}return Xe};var oe={},ee;be.debuglog=function(rt){if(je(ee)&&(ee=z.env.NODE_DEBUG||""),rt=rt.toUpperCase(),!oe[rt])if(new RegExp("\\b"+rt+"\\b","i").test(ee)){var et=z.pid;oe[rt]=function(){var $e=be.format.apply(be,arguments);console.error("%s %d: %s",rt,et,$e)}}else oe[rt]=function(){};return oe[rt]};function le(rt,et){var $e={seen:[],stylize:ne};return arguments.length>=3&&($e.depth=arguments[2]),arguments.length>=4&&($e.colors=arguments[3]),De(et)?$e.showHidden=et:et&&be._extend($e,et),je($e.showHidden)&&($e.showHidden=!1),je($e.depth)&&($e.depth=2),je($e.colors)&&($e.colors=!1),je($e.customInspect)&&($e.customInspect=!0),$e.colors&&($e.stylize=x),ae($e,rt,$e.depth)}be.inspect=le,le.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},le.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function x(rt,et){var $e=le.styles[et];return $e?"\x1B["+le.colors[$e][0]+"m"+rt+"\x1B["+le.colors[$e][1]+"m":rt}function ne(rt,et){return rt}function re(rt){var et={};return rt.forEach(function($e,Xe){et[$e]=!0}),et}function ae(rt,et,$e){if(rt.customInspect&&et&&Ge(et.inspect)&&et.inspect!==be.inspect&&!(et.constructor&&et.constructor.prototype===et)){var Xe=et.inspect($e,rt);return Ce(Xe)||(Xe=ae(rt,Xe,$e)),Xe}var Ve=se(rt,et);if(Ve)return Ve;var nt=Object.keys(et),Qe=re(nt);if(rt.showHidden&&(nt=Object.getOwnPropertyNames(et)),Se(et)&&(nt.indexOf("message")>=0||nt.indexOf("description")>=0))return ce(et);if(nt.length===0){if(Ge(et)){var ct=et.name?": "+et.name:"";return rt.stylize("[Function"+ct+"]","special")}if(ke(et))return rt.stylize(RegExp.prototype.toString.call(et),"regexp");if(Ae(et))return rt.stylize(Date.prototype.toString.call(et),"date");if(Se(et))return ce(et)}var ot="",qe=!1,_e=["{","}"];if(ye(et)&&(qe=!0,_e=["[","]"]),Ge(et)){var Re=et.name?": "+et.name:"";ot=" [Function"+Re+"]"}if(ke(et)&&(ot=" "+RegExp.prototype.toString.call(et)),Ae(et)&&(ot=" "+Date.prototype.toUTCString.call(et)),Se(et)&&(ot=" "+ce(et)),nt.length===0&&(!qe||et.length==0))return _e[0]+ot+_e[1];if($e<0)return ke(et)?rt.stylize(RegExp.prototype.toString.call(et),"regexp"):rt.stylize("[Object]","special");rt.seen.push(et);var te;return qe?te=pe(rt,et,$e,Qe,nt):te=nt.map(function(de){return me(rt,et,$e,Qe,de,qe)}),rt.seen.pop(),he(te,ot,_e)}function se(rt,et){if(je(et))return rt.stylize("undefined","undefined");if(Ce(et)){var $e="'"+JSON.stringify(et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return rt.stylize($e,"string")}if(Pe(et))return rt.stylize(""+et,"number");if(De(et))return rt.stylize(""+et,"boolean");if(Me(et))return rt.stylize("null","null")}function ce(rt){return"["+Error.prototype.toString.call(rt)+"]"}function pe(rt,et,$e,Xe,Ve){for(var nt=[],Qe=0,ct=et.length;Qe<ct;++Qe)it(et,String(Qe))?nt.push(me(rt,et,$e,Xe,String(Qe),!0)):nt.push("");return Ve.forEach(function(ot){ot.match(/^\d+$/)||nt.push(me(rt,et,$e,Xe,ot,!0))}),nt}function me(rt,et,$e,Xe,Ve,nt){var Qe,ct,ot;if(ot=Object.getOwnPropertyDescriptor(et,Ve)||{value:et[Ve]},ot.get?ot.set?ct=rt.stylize("[Getter/Setter]","special"):ct=rt.stylize("[Getter]","special"):ot.set&&(ct=rt.stylize("[Setter]","special")),it(Xe,Ve)||(Qe="["+Ve+"]"),ct||(rt.seen.indexOf(ot.value)<0?(Me($e)?ct=ae(rt,ot.value,null):ct=ae(rt,ot.value,$e-1),ct.indexOf(`
|
|
|
`)>-1&&(nt?ct=ct.split(`
|
|
|
`).map(function(qe){return" "+qe}).join(`
|
|
|
`).substr(2):ct=`
|
|
|
`+ct.split(`
|
|
|
`).map(function(qe){return" "+qe}).join(`
|
|
|
`))):ct=rt.stylize("[Circular]","special")),je(Qe)){if(nt&&Ve.match(/^\d+$/))return ct;Qe=JSON.stringify(""+Ve),Qe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=rt.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=rt.stylize(Qe,"string"))}return Qe+": "+ct}function he(rt,et,$e){var Xe=0,Ve=rt.reduce(function(nt,Qe){return Xe++,Qe.indexOf(`
|
|
|
`)>=0&&Xe++,nt+Qe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ve>60?$e[0]+(et===""?"":et+`
|
|
|
`)+" "+rt.join(`,
|
|
|
`)+" "+$e[1]:$e[0]+et+" "+rt.join(", ")+" "+$e[1]}function ye(rt){return Array.isArray(rt)}be.isArray=ye;function De(rt){return typeof rt=="boolean"}be.isBoolean=De;function Me(rt){return rt===null}be.isNull=Me;function Be(rt){return rt==null}be.isNullOrUndefined=Be;function Pe(rt){return typeof rt=="number"}be.isNumber=Pe;function Ce(rt){return typeof rt=="string"}be.isString=Ce;function Ee(rt){return typeof rt=="symbol"}be.isSymbol=Ee;function je(rt){return rt===void 0}be.isUndefined=je;function ke(rt){return Le(rt)&&Je(rt)==="[object RegExp]"}be.isRegExp=ke;function Le(rt){return typeof rt=="object"&&rt!==null}be.isObject=Le;function Ae(rt){return Le(rt)&&Je(rt)==="[object Date]"}be.isDate=Ae;function Se(rt){return Le(rt)&&(Je(rt)==="[object Error]"||rt instanceof Error)}be.isError=Se;function Ge(rt){return typeof rt=="function"}be.isFunction=Ge;function Ze(rt){return rt===null||typeof rt=="boolean"||typeof rt=="number"||typeof rt=="string"||typeof rt=="symbol"||typeof rt=="undefined"}be.isPrimitive=Ze,be.isBuffer=a("./support/isBuffer");function Je(rt){return Object.prototype.toString.call(rt)}function at(rt){return rt<10?"0"+rt.toString(10):rt.toString(10)}var Fe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ke(){var rt=new Date,et=[at(rt.getHours()),at(rt.getMinutes()),at(rt.getSeconds())].join(":");return[rt.getDate(),Fe[rt.getMonth()],et].join(" ")}be.log=function(){console.log("%s - %s",Ke(),be.format.apply(be,arguments))},be.inherits=a("inherits"),be._extend=function(rt,et){if(!et||!Le(et))return rt;for(var $e=Object.keys(et),Xe=$e.length;Xe--;)rt[$e[Xe]]=et[$e[Xe]];return rt};function it(rt,et){return Object.prototype.hasOwnProperty.call(rt,et)}}).call(this)}).call(this,a("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(a,Te,be){(function(z){(function(){"use strict";var E=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ie=typeof globalThis=="undefined"?z:globalThis;Te.exports=function(){for(var ee=[],le=0;le<E.length;le++)typeof ie[E[le]]=="function"&&(ee[ee.length]=E[le]);return ee}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(a,Te,be){"use strict";be.byteLength=ne,be.toByteArray=ae,be.fromByteArray=pe;for(var z=[],E=[],ie=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,le=oe.length;ee<le;++ee)z[ee]=oe[ee],E[oe.charCodeAt(ee)]=ee;E[45]=62,E[95]=63;function x(me){var he=me.length;if(he%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ye=me.indexOf("=");ye===-1&&(ye=he);var De=ye===he?0:4-ye%4;return[ye,De]}function ne(me){var he=x(me),ye=he[0],De=he[1];return(ye+De)*3/4-De}function re(me,he,ye){return(he+ye)*3/4-ye}function ae(me){var he,ye=x(me),De=ye[0],Me=ye[1],Be=new ie(re(me,De,Me)),Pe=0,Ce=Me>0?De-4:De,Ee;for(Ee=0;Ee<Ce;Ee+=4)he=E[me.charCodeAt(Ee)]<<18|E[me.charCodeAt(Ee+1)]<<12|E[me.charCodeAt(Ee+2)]<<6|E[me.charCodeAt(Ee+3)],Be[Pe++]=he>>16&255,Be[Pe++]=he>>8&255,Be[Pe++]=he&255;return Me===2&&(he=E[me.charCodeAt(Ee)]<<2|E[me.charCodeAt(Ee+1)]>>4,Be[Pe++]=he&255),Me===1&&(he=E[me.charCodeAt(Ee)]<<10|E[me.charCodeAt(Ee+1)]<<4|E[me.charCodeAt(Ee+2)]>>2,Be[Pe++]=he>>8&255,Be[Pe++]=he&255),Be}function se(me){return z[me>>18&63]+z[me>>12&63]+z[me>>6&63]+z[me&63]}function ce(me,he,ye){for(var De,Me=[],Be=he;Be<ye;Be+=3)De=(me[Be]<<16&16711680)+(me[Be+1]<<8&65280)+(me[Be+2]&255),Me.push(se(De));return Me.join("")}function pe(me){for(var he,ye=me.length,De=ye%3,Me=[],Be=16383,Pe=0,Ce=ye-De;Pe<Ce;Pe+=Be)Me.push(ce(me,Pe,Pe+Be>Ce?Ce:Pe+Be));return De===1?(he=me[ye-1],Me.push(z[he>>2]+z[he<<4&63]+"==")):De===2&&(he=(me[ye-2]<<8)+me[ye-1],Me.push(z[he>>10]+z[he>>4&63]+z[he<<2&63]+"=")),Me.join("")}},{}],88:[function(a,Te,be){(function(z,E,ie){typeof Te!="undefined"&&Te.exports?Te.exports=ie():typeof Ie=="function"&&Ie.amd?Ie(E,ie):z[E]=ie()})(this,"bowser",function(){var z=!0;function E(re){function ae(et){var $e=re.match(et);return $e&&$e.length>1&&$e[1]||""}function se(et){var $e=re.match(et);return $e&&$e.length>1&&$e[2]||""}var ce=ae(/(ipod|iphone|ipad)/i).toLowerCase(),pe=/like android/i.test(re),me=!pe&&/android/i.test(re),he=/nexus\s*[0-6]\s*/i.test(re),ye=!he&&/nexus\s*[0-9]+/i.test(re),De=/CrOS/.test(re),Me=/silk/i.test(re),Be=/sailfish/i.test(re),Pe=/tizen/i.test(re),Ce=/(web|hpw)(o|0)s/i.test(re),Ee=/windows phone/i.test(re),je=/SamsungBrowser/i.test(re),ke=!Ee&&/windows/i.test(re),Le=!ce&&!Me&&/macintosh/i.test(re),Ae=!me&&!Be&&!Pe&&!Ce&&/linux/i.test(re),Se=se(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ge=ae(/version\/(\d+(\.\d+)?)/i),Ze=/tablet/i.test(re)&&!/tablet pc/i.test(re),Je=!Ze&&/[^-]mobi/i.test(re),at=/xbox/i.test(re),Fe;/opera/i.test(re)?Fe={name:"Opera",opera:z,version:Ge||ae(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(re)?Fe={name:"Opera",opera:z,version:ae(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ge}:/SamsungBrowser/i.test(re)?Fe={name:"Samsung Internet for Android",samsungBrowser:z,version:Ge||ae(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(re)?Fe={name:"NAVER Whale browser",whale:z,version:ae(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(re)?Fe={name:"MZ Browser",mzbrowser:z,version:ae(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(re)?Fe={name:"Opera Coast",coast:z,version:Ge||ae(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(re)?Fe={name:"Focus",focus:z,version:ae(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(re)?Fe={name:"Yandex Browser",yandexbrowser:z,version:Ge||ae(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(re)?Fe={name:"UC Browser",ucbrowser:z,version:ae(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(re)?Fe={name:"Maxthon",maxthon:z,version:ae(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(re)?Fe={name:"Epiphany",epiphany:z,version:ae(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(re)?Fe={name:"Puffin",puffin:z,version:ae(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(re)?Fe={name:"Sleipnir",sleipnir:z,version:ae(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(re)?Fe={name:"K-Meleon",kMeleon:z,version:ae(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Ee?(Fe={name:"Windows Phone",osname:"Windows Phone",windowsphone:z},Se?(Fe.msedge=z,Fe.version=Se):(Fe.msie=z,Fe.version=ae(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(re)?Fe={name:"Internet Explorer",msie:z,version:ae(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:De?Fe={name:"Chrome",osname:"Chrome OS",chromeos:z,chromeBook:z,chrome:z,version:ae(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(re)?Fe={name:"Microsoft Edge",msedge:z,version:Se}:/vivaldi/i.test(re)?Fe={name:"Vivaldi",vivaldi:z,version:ae(/vivaldi\/(\d+(\.\d+)?)/i)||Ge}:Be?Fe={name:"Sailfish",osname:"Sailfish OS",sailfish:z,version:ae(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(re)?Fe={name:"SeaMonkey",seamonkey:z,version:ae(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(re)?(Fe={name:"Firefox",firefox:z,version:ae(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(re)&&(Fe.firefoxos=z,Fe.osname="Firefox OS")):Me?Fe={name:"Amazon Silk",silk:z,version:ae(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(re)?Fe={name:"PhantomJS",phantom:z,version:ae(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(re)?Fe={name:"SlimerJS",slimer:z,version:ae(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(re)||/rim\stablet/i.test(re)?Fe={name:"BlackBerry",osname:"BlackBerry OS",blackberry:z,version:Ge||ae(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Ce?(Fe={name:"WebOS",osname:"WebOS",webos:z,version:Ge||ae(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(re)&&(Fe.touchpad=z)):/bada/i.test(re)?Fe={name:"Bada",osname:"Bada",bada:z,version:ae(/dolfin\/(\d+(\.\d+)?)/i)}:Pe?Fe={name:"Tizen",osname:"Tizen",tizen:z,version:ae(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ge}:/qupzilla/i.test(re)?Fe={name:"QupZilla",qupzilla:z,version:ae(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ge}:/chromium/i.test(re)?Fe={name:"Chromium",chromium:z,version:ae(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ge}:/chrome|crios|crmo/i.test(re)?Fe={name:"Chrome",chrome:z,version:ae(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:me?Fe={name:"Android",version:Ge}:/safari|applewebkit/i.test(re)?(Fe={name:"Safari",safari:z},Ge&&(Fe.version=Ge)):ce?(Fe={name:ce=="iphone"?"iPhone":ce=="ipad"?"iPad":"iPod"},Ge&&(Fe.version=Ge)):/googlebot/i.test(re)?Fe={name:"Googlebot",googlebot:z,version:ae(/googlebot\/(\d+(\.\d+))/i)||Ge}:Fe={name:ae(/^(.*)\/(.*) /),version:se(/^(.*)\/(.*) /)},!Fe.msedge&&/(apple)?webkit/i.test(re)?(/(apple)?webkit\/537\.36/i.test(re)?(Fe.name=Fe.name||"Blink",Fe.blink=z):(Fe.name=Fe.name||"Webkit",Fe.webkit=z),!Fe.version&&Ge&&(Fe.version=Ge)):!Fe.opera&&/gecko\//i.test(re)&&(Fe.name=Fe.name||"Gecko",Fe.gecko=z,Fe.version=Fe.version||ae(/gecko\/(\d+(\.\d+)?)/i)),!Fe.windowsphone&&(me||Fe.silk)?(Fe.android=z,Fe.osname="Android"):!Fe.windowsphone&&ce?(Fe[ce]=z,Fe.ios=z,Fe.osname="iOS"):Le?(Fe.mac=z,Fe.osname="macOS"):at?(Fe.xbox=z,Fe.osname="Xbox"):ke?(Fe.windows=z,Fe.osname="Windows"):Ae&&(Fe.linux=z,Fe.osname="Linux");function Ke(et){switch(et){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var it="";Fe.windows?it=Ke(ae(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Fe.windowsphone?it=ae(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Fe.mac?(it=ae(/Mac OS X (\d+([_\.\s]\d+)*)/i),it=it.replace(/[_\s]/g,".")):ce?(it=ae(/os (\d+([_\s]\d+)*) like mac os x/i),it=it.replace(/[_\s]/g,".")):me?it=ae(/android[ \/-](\d+(\.\d+)*)/i):Fe.webos?it=ae(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Fe.blackberry?it=ae(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Fe.bada?it=ae(/bada\/(\d+(\.\d+)*)/i):Fe.tizen&&(it=ae(/tizen[\/\s](\d+(\.\d+)*)/i)),it&&(Fe.osversion=it);var rt=!Fe.windows&&it.split(".")[0];return Ze||ye||ce=="ipad"||me&&(rt==3||rt>=4&&!Je)||Fe.silk?Fe.tablet=z:(Je||ce=="iphone"||ce=="ipod"||me||he||Fe.blackberry||Fe.webos||Fe.bada)&&(Fe.mobile=z),Fe.msedge||Fe.msie&&Fe.version>=10||Fe.yandexbrowser&&Fe.version>=15||Fe.vivaldi&&Fe.version>=1||Fe.chrome&&Fe.version>=20||Fe.samsungBrowser&&Fe.version>=4||Fe.whale&&le([Fe.version,"1.0"])===1||Fe.mzbrowser&&le([Fe.version,"6.0"])===1||Fe.focus&&le([Fe.version,"1.0"])===1||Fe.firefox&&Fe.version>=20||Fe.safari&&Fe.version>=6||Fe.opera&&Fe.version>=10||Fe.ios&&Fe.osversion&&Fe.osversion.split(".")[0]>=6||Fe.blackberry&&Fe.version>=10.1||Fe.chromium&&Fe.version>=20?Fe.a=z:Fe.msie&&Fe.version<10||Fe.chrome&&Fe.version<20||Fe.firefox&&Fe.version<20||Fe.safari&&Fe.version<6||Fe.opera&&Fe.version<10||Fe.ios&&Fe.osversion&&Fe.osversion.split(".")[0]<6||Fe.chromium&&Fe.version<20?Fe.c=z:Fe.x=z,Fe}var ie=E(typeof navigator!="undefined"&&navigator.userAgent||"");ie.test=function(re){for(var ae=0;ae<re.length;++ae){var se=re[ae];if(typeof se=="string"&&se in ie)return!0}return!1};function oe(re){return re.split(".").length}function ee(re,ae){var se=[],ce;if(Array.prototype.map)return Array.prototype.map.call(re,ae);for(ce=0;ce<re.length;ce++)se.push(ae(re[ce]));return se}function le(re){for(var ae=Math.max(oe(re[0]),oe(re[1])),se=ee(re,function(ce){var pe=ae-oe(ce);return ce=ce+new Array(pe+1).join(".0"),ee(ce.split("."),function(me){return new Array(20-me.length).join("0")+me}).reverse()});--ae>=0;){if(se[0][ae]>se[1][ae])return 1;if(se[0][ae]===se[1][ae]){if(ae===0)return 0}else return-1}}function x(re,ae,se){var ce=ie;typeof ae=="string"&&(se=ae,ae=void 0),ae===void 0&&(ae=!1),se&&(ce=E(se));var pe=""+ce.version;for(var me in re)if(re.hasOwnProperty(me)&&ce[me]){if(typeof re[me]!="string")throw new Error("Browser version in the minVersion map should be a string: "+me+": "+String(re));return le([pe,re[me]])<0}return ae}function ne(re,ae,se){return!x(re,ae,se)}return ie.isUnsupportedBrowser=x,ie.compareVersions=le,ie.check=ne,ie._detect=E,ie.detect=E,ie})},{}],89:[function(a,Te,be){},{}],90:[function(a,Te,be){(function(z){(function(){"use strict";var E=a("base64-js"),ie=a("ieee754");be.Buffer=x,be.SlowBuffer=De,be.INSPECT_MAX_BYTES=50;var oe=2147483647;be.kMaxLength=oe,x.TYPED_ARRAY_SUPPORT=ee(),!x.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ee(){try{var ve=new Uint8Array(1);return ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ve.foo()===42}catch(Oe){return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function le(ve){if(ve>oe)throw new RangeError('The value "'+ve+'" is invalid for option "size"');var Oe=new Uint8Array(ve);return Oe.__proto__=x.prototype,Oe}function x(ve,Oe,We){if(typeof ve=="number"){if(typeof Oe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return se(ve)}return ne(ve,Oe,We)}typeof Symbol!="undefined"&&Symbol.species!=null&&x[Symbol.species]===x&&Object.defineProperty(x,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),x.poolSize=8192;function ne(ve,Oe,We){if(typeof ve=="string")return ce(ve,Oe);if(ArrayBuffer.isView(ve))return pe(ve);if(ve==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ve);if(ze(ve,ArrayBuffer)||ve&&ze(ve.buffer,ArrayBuffer))return me(ve,Oe,We);if(typeof ve=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Ue=ve.valueOf&&ve.valueOf();if(Ue!=null&&Ue!==ve)return x.from(Ue,Oe,We);var Ye=he(ve);if(Ye)return Ye;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ve[Symbol.toPrimitive]=="function")return x.from(ve[Symbol.toPrimitive]("string"),Oe,We);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ve)}x.from=function(ve,Oe,We){return ne(ve,Oe,We)},x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array;function re(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be of type number');if(ve<0)throw new RangeError('The value "'+ve+'" is invalid for option "size"')}function ae(ve,Oe,We){return re(ve),ve<=0?le(ve):Oe!==void 0?typeof We=="string"?le(ve).fill(Oe,We):le(ve).fill(Oe):le(ve)}x.alloc=function(ve,Oe,We){return ae(ve,Oe,We)};function se(ve){return re(ve),le(ve<0?0:ye(ve)|0)}x.allocUnsafe=function(ve){return se(ve)},x.allocUnsafeSlow=function(ve){return se(ve)};function ce(ve,Oe){if((typeof Oe!="string"||Oe==="")&&(Oe="utf8"),!x.isEncoding(Oe))throw new TypeError("Unknown encoding: "+Oe);var We=Me(ve,Oe)|0,Ue=le(We),Ye=Ue.write(ve,Oe);return Ye!==We&&(Ue=Ue.slice(0,Ye)),Ue}function pe(ve){for(var Oe=ve.length<0?0:ye(ve.length)|0,We=le(Oe),Ue=0;Ue<Oe;Ue+=1)We[Ue]=ve[Ue]&255;return We}function me(ve,Oe,We){if(Oe<0||ve.byteLength<Oe)throw new RangeError('"offset" is outside of buffer bounds');if(ve.byteLength<Oe+(We||0))throw new RangeError('"length" is outside of buffer bounds');var Ue;return Oe===void 0&&We===void 0?Ue=new Uint8Array(ve):We===void 0?Ue=new Uint8Array(ve,Oe):Ue=new Uint8Array(ve,Oe,We),Ue.__proto__=x.prototype,Ue}function he(ve){if(x.isBuffer(ve)){var Oe=ye(ve.length)|0,We=le(Oe);return We.length===0||ve.copy(We,0,0,Oe),We}if(ve.length!==void 0)return typeof ve.length!="number"||xe(ve.length)?le(0):pe(ve);if(ve.type==="Buffer"&&Array.isArray(ve.data))return pe(ve.data)}function ye(ve){if(ve>=oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe.toString(16)+" bytes");return ve|0}function De(ve){return+ve!=ve&&(ve=0),x.alloc(+ve)}x.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==x.prototype},x.compare=function(Oe,We){if(ze(Oe,Uint8Array)&&(Oe=x.from(Oe,Oe.offset,Oe.byteLength)),ze(We,Uint8Array)&&(We=x.from(We,We.offset,We.byteLength)),!x.isBuffer(Oe)||!x.isBuffer(We))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===We)return 0;for(var Ue=Oe.length,Ye=We.length,st=0,lt=Math.min(Ue,Ye);st<lt;++st)if(Oe[st]!==We[st]){Ue=Oe[st],Ye=We[st];break}return Ue<Ye?-1:Ye<Ue?1:0},x.isEncoding=function(Oe){switch(String(Oe).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},x.concat=function(Oe,We){if(!Array.isArray(Oe))throw new TypeError('"list" argument must be an Array of Buffers');if(Oe.length===0)return x.alloc(0);var Ue;if(We===void 0)for(We=0,Ue=0;Ue<Oe.length;++Ue)We+=Oe[Ue].length;var Ye=x.allocUnsafe(We),st=0;for(Ue=0;Ue<Oe.length;++Ue){var lt=Oe[Ue];if(ze(lt,Uint8Array)&&(lt=x.from(lt)),!x.isBuffer(lt))throw new TypeError('"list" argument must be an Array of Buffers');lt.copy(Ye,st),st+=lt.length}return Ye};function Me(ve,Oe){if(x.isBuffer(ve))return ve.length;if(ArrayBuffer.isView(ve)||ze(ve,ArrayBuffer))return ve.byteLength;if(typeof ve!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ve);var We=ve.length,Ue=arguments.length>2&&arguments[2]===!0;if(!Ue&&We===0)return 0;for(var Ye=!1;;)switch(Oe){case"ascii":case"latin1":case"binary":return We;case"utf8":case"utf-8":return _e(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We*2;case"hex":return We>>>1;case"base64":return de(ve).length;default:if(Ye)return Ue?-1:_e(ve).length;Oe=(""+Oe).toLowerCase(),Ye=!0}}x.byteLength=Me;function Be(ve,Oe,We){var Ue=!1;if((Oe===void 0||Oe<0)&&(Oe=0),Oe>this.length||((We===void 0||We>this.length)&&(We=this.length),We<=0)||(We>>>=0,Oe>>>=0,We<=Oe))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return rt(this,Oe,We);case"utf8":case"utf-8":return Je(this,Oe,We);case"ascii":return Ke(this,Oe,We);case"latin1":case"binary":return it(this,Oe,We);case"base64":return Ze(this,Oe,We);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return et(this,Oe,We);default:if(Ue)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Ue=!0}}x.prototype._isBuffer=!0;function Pe(ve,Oe,We){var Ue=ve[Oe];ve[Oe]=ve[We],ve[We]=Ue}x.prototype.swap16=function(){var Oe=this.length;if(Oe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var We=0;We<Oe;We+=2)Pe(this,We,We+1);return this},x.prototype.swap32=function(){var Oe=this.length;if(Oe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var We=0;We<Oe;We+=4)Pe(this,We,We+3),Pe(this,We+1,We+2);return this},x.prototype.swap64=function(){var Oe=this.length;if(Oe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var We=0;We<Oe;We+=8)Pe(this,We,We+7),Pe(this,We+1,We+6),Pe(this,We+2,We+5),Pe(this,We+3,We+4);return this},x.prototype.toString=function(){var Oe=this.length;return Oe===0?"":arguments.length===0?Je(this,0,Oe):Be.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(Oe){if(!x.isBuffer(Oe))throw new TypeError("Argument must be a Buffer");return this===Oe?!0:x.compare(this,Oe)===0},x.prototype.inspect=function(){var Oe="",We=be.INSPECT_MAX_BYTES;return Oe=this.toString("hex",0,We).replace(/(.{2})/g,"$1 ").trim(),this.length>We&&(Oe+=" ... "),"<Buffer "+Oe+">"},x.prototype.compare=function(Oe,We,Ue,Ye,st){if(ze(Oe,Uint8Array)&&(Oe=x.from(Oe,Oe.offset,Oe.byteLength)),!x.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Oe);if(We===void 0&&(We=0),Ue===void 0&&(Ue=Oe?Oe.length:0),Ye===void 0&&(Ye=0),st===void 0&&(st=this.length),We<0||Ue>Oe.length||Ye<0||st>this.length)throw new RangeError("out of range index");if(Ye>=st&&We>=Ue)return 0;if(Ye>=st)return-1;if(We>=Ue)return 1;if(We>>>=0,Ue>>>=0,Ye>>>=0,st>>>=0,this===Oe)return 0;for(var lt=st-Ye,ft=Ue-We,Tt=Math.min(lt,ft),St=this.slice(Ye,st),Ot=Oe.slice(We,Ue),yt=0;yt<Tt;++yt)if(St[yt]!==Ot[yt]){lt=St[yt],ft=Ot[yt];break}return lt<ft?-1:ft<lt?1:0};function Ce(ve,Oe,We,Ue,Ye){if(ve.length===0)return-1;if(typeof We=="string"?(Ue=We,We=0):We>2147483647?We=2147483647:We<-2147483648&&(We=-2147483648),We=+We,xe(We)&&(We=Ye?0:ve.length-1),We<0&&(We=ve.length+We),We>=ve.length){if(Ye)return-1;We=ve.length-1}else if(We<0)if(Ye)We=0;else return-1;if(typeof Oe=="string"&&(Oe=x.from(Oe,Ue)),x.isBuffer(Oe))return Oe.length===0?-1:Ee(ve,Oe,We,Ue,Ye);if(typeof Oe=="number")return Oe=Oe&255,typeof Uint8Array.prototype.indexOf=="function"?Ye?Uint8Array.prototype.indexOf.call(ve,Oe,We):Uint8Array.prototype.lastIndexOf.call(ve,Oe,We):Ee(ve,[Oe],We,Ue,Ye);throw new TypeError("val must be string, number or Buffer")}function Ee(ve,Oe,We,Ue,Ye){var st=1,lt=ve.length,ft=Oe.length;if(Ue!==void 0&&(Ue=String(Ue).toLowerCase(),Ue==="ucs2"||Ue==="ucs-2"||Ue==="utf16le"||Ue==="utf-16le")){if(ve.length<2||Oe.length<2)return-1;st=2,lt/=2,ft/=2,We/=2}function Tt(Et,xt){return st===1?Et[xt]:Et.readUInt16BE(xt*st)}var St;if(Ye){var Ot=-1;for(St=We;St<lt;St++)if(Tt(ve,St)===Tt(Oe,Ot===-1?0:St-Ot)){if(Ot===-1&&(Ot=St),St-Ot+1===ft)return Ot*st}else Ot!==-1&&(St-=St-Ot),Ot=-1}else for(We+ft>lt&&(We=lt-ft),St=We;St>=0;St--){for(var yt=!0,Mt=0;Mt<ft;Mt++)if(Tt(ve,St+Mt)!==Tt(Oe,Mt)){yt=!1;break}if(yt)return St}return-1}x.prototype.includes=function(Oe,We,Ue){return this.indexOf(Oe,We,Ue)!==-1},x.prototype.indexOf=function(Oe,We,Ue){return Ce(this,Oe,We,Ue,!0)},x.prototype.lastIndexOf=function(Oe,We,Ue){return Ce(this,Oe,We,Ue,!1)};function je(ve,Oe,We,Ue){We=Number(We)||0;var Ye=ve.length-We;Ue?(Ue=Number(Ue),Ue>Ye&&(Ue=Ye)):Ue=Ye;var st=Oe.length;Ue>st/2&&(Ue=st/2);for(var lt=0;lt<Ue;++lt){var ft=parseInt(Oe.substr(lt*2,2),16);if(xe(ft))return lt;ve[We+lt]=ft}return lt}function ke(ve,Oe,We,Ue){return Ne(_e(Oe,ve.length-We),ve,We,Ue)}function Le(ve,Oe,We,Ue){return Ne(Re(Oe),ve,We,Ue)}function Ae(ve,Oe,We,Ue){return Le(ve,Oe,We,Ue)}function Se(ve,Oe,We,Ue){return Ne(de(Oe),ve,We,Ue)}function Ge(ve,Oe,We,Ue){return Ne(te(Oe,ve.length-We),ve,We,Ue)}x.prototype.write=function(Oe,We,Ue,Ye){if(We===void 0)Ye="utf8",Ue=this.length,We=0;else if(Ue===void 0&&typeof We=="string")Ye=We,Ue=this.length,We=0;else if(isFinite(We))We=We>>>0,isFinite(Ue)?(Ue=Ue>>>0,Ye===void 0&&(Ye="utf8")):(Ye=Ue,Ue=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var st=this.length-We;if((Ue===void 0||Ue>st)&&(Ue=st),Oe.length>0&&(Ue<0||We<0)||We>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ye||(Ye="utf8");for(var lt=!1;;)switch(Ye){case"hex":return je(this,Oe,We,Ue);case"utf8":case"utf-8":return ke(this,Oe,We,Ue);case"ascii":return Le(this,Oe,We,Ue);case"latin1":case"binary":return Ae(this,Oe,We,Ue);case"base64":return Se(this,Oe,We,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ge(this,Oe,We,Ue);default:if(lt)throw new TypeError("Unknown encoding: "+Ye);Ye=(""+Ye).toLowerCase(),lt=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ze(ve,Oe,We){return Oe===0&&We===ve.length?E.fromByteArray(ve):E.fromByteArray(ve.slice(Oe,We))}function Je(ve,Oe,We){We=Math.min(ve.length,We);for(var Ue=[],Ye=Oe;Ye<We;){var st=ve[Ye],lt=null,ft=st>239?4:st>223?3:st>191?2:1;if(Ye+ft<=We){var Tt,St,Ot,yt;switch(ft){case 1:st<128&&(lt=st);break;case 2:Tt=ve[Ye+1],(Tt&192)===128&&(yt=(st&31)<<6|Tt&63,yt>127&&(lt=yt));break;case 3:Tt=ve[Ye+1],St=ve[Ye+2],(Tt&192)===128&&(St&192)===128&&(yt=(st&15)<<12|(Tt&63)<<6|St&63,yt>2047&&(yt<55296||yt>57343)&&(lt=yt));break;case 4:Tt=ve[Ye+1],St=ve[Ye+2],Ot=ve[Ye+3],(Tt&192)===128&&(St&192)===128&&(Ot&192)===128&&(yt=(st&15)<<18|(Tt&63)<<12|(St&63)<<6|Ot&63,yt>65535&&yt<1114112&&(lt=yt))}}lt===null?(lt=65533,ft=1):lt>65535&&(lt-=65536,Ue.push(lt>>>10&1023|55296),lt=56320|lt&1023),Ue.push(lt),Ye+=ft}return Fe(Ue)}var at=4096;function Fe(ve){var Oe=ve.length;if(Oe<=at)return String.fromCharCode.apply(String,ve);for(var We="",Ue=0;Ue<Oe;)We+=String.fromCharCode.apply(String,ve.slice(Ue,Ue+=at));return We}function Ke(ve,Oe,We){var Ue="";We=Math.min(ve.length,We);for(var Ye=Oe;Ye<We;++Ye)Ue+=String.fromCharCode(ve[Ye]&127);return Ue}function it(ve,Oe,We){var Ue="";We=Math.min(ve.length,We);for(var Ye=Oe;Ye<We;++Ye)Ue+=String.fromCharCode(ve[Ye]);return Ue}function rt(ve,Oe,We){var Ue=ve.length;(!Oe||Oe<0)&&(Oe=0),(!We||We<0||We>Ue)&&(We=Ue);for(var Ye="",st=Oe;st<We;++st)Ye+=qe(ve[st]);return Ye}function et(ve,Oe,We){for(var Ue=ve.slice(Oe,We),Ye="",st=0;st<Ue.length;st+=2)Ye+=String.fromCharCode(Ue[st]+Ue[st+1]*256);return Ye}x.prototype.slice=function(Oe,We){var Ue=this.length;Oe=~~Oe,We=We===void 0?Ue:~~We,Oe<0?(Oe+=Ue,Oe<0&&(Oe=0)):Oe>Ue&&(Oe=Ue),We<0?(We+=Ue,We<0&&(We=0)):We>Ue&&(We=Ue),We<Oe&&(We=Oe);var Ye=this.subarray(Oe,We);return Ye.__proto__=x.prototype,Ye};function $e(ve,Oe,We){if(ve%1!==0||ve<0)throw new RangeError("offset is not uint");if(ve+Oe>We)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(Oe,We,Ue){Oe=Oe>>>0,We=We>>>0,Ue||$e(Oe,We,this.length);for(var Ye=this[Oe],st=1,lt=0;++lt<We&&(st*=256);)Ye+=this[Oe+lt]*st;return Ye},x.prototype.readUIntBE=function(Oe,We,Ue){Oe=Oe>>>0,We=We>>>0,Ue||$e(Oe,We,this.length);for(var Ye=this[Oe+--We],st=1;We>0&&(st*=256);)Ye+=this[Oe+--We]*st;return Ye},x.prototype.readUInt8=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,1,this.length),this[Oe]},x.prototype.readUInt16LE=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},x.prototype.readUInt16BE=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},x.prototype.readUInt32LE=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+this[Oe+3]*16777216},x.prototype.readUInt32BE=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,4,this.length),this[Oe]*16777216+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},x.prototype.readIntLE=function(Oe,We,Ue){Oe=Oe>>>0,We=We>>>0,Ue||$e(Oe,We,this.length);for(var Ye=this[Oe],st=1,lt=0;++lt<We&&(st*=256);)Ye+=this[Oe+lt]*st;return st*=128,Ye>=st&&(Ye-=Math.pow(2,8*We)),Ye},x.prototype.readIntBE=function(Oe,We,Ue){Oe=Oe>>>0,We=We>>>0,Ue||$e(Oe,We,this.length);for(var Ye=We,st=1,lt=this[Oe+--Ye];Ye>0&&(st*=256);)lt+=this[Oe+--Ye]*st;return st*=128,lt>=st&&(lt-=Math.pow(2,8*We)),lt},x.prototype.readInt8=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,1,this.length),this[Oe]&128?(255-this[Oe]+1)*-1:this[Oe]},x.prototype.readInt16LE=function(Oe,We){Oe=Oe>>>0,We||$e(Oe,2,this.length);var Ue=this[Oe]|this[Oe+1]<<8;return Ue&32768?Ue|4294901760:Ue},x.prototype.readInt16BE=function(Oe,We){Oe=Oe>>>0,We||$e(Oe,2,this.length);var Ue=this[Oe+1]|this[Oe]<<8;return Ue&32768?Ue|4294901760:Ue},x.prototype.readInt32LE=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},x.prototype.readInt32BE=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},x.prototype.readFloatLE=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,4,this.length),ie.read(this,Oe,!0,23,4)},x.prototype.readFloatBE=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,4,this.length),ie.read(this,Oe,!1,23,4)},x.prototype.readDoubleLE=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,8,this.length),ie.read(this,Oe,!0,52,8)},x.prototype.readDoubleBE=function(Oe,We){return Oe=Oe>>>0,We||$e(Oe,8,this.length),ie.read(this,Oe,!1,52,8)};function Xe(ve,Oe,We,Ue,Ye,st){if(!x.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(Oe>Ye||Oe<st)throw new RangeError('"value" argument is out of bounds');if(We+Ue>ve.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(Oe,We,Ue,Ye){if(Oe=+Oe,We=We>>>0,Ue=Ue>>>0,!Ye){var st=Math.pow(2,8*Ue)-1;Xe(this,Oe,We,Ue,st,0)}var lt=1,ft=0;for(this[We]=Oe&255;++ft<Ue&&(lt*=256);)this[We+ft]=Oe/lt&255;return We+Ue},x.prototype.writeUIntBE=function(Oe,We,Ue,Ye){if(Oe=+Oe,We=We>>>0,Ue=Ue>>>0,!Ye){var st=Math.pow(2,8*Ue)-1;Xe(this,Oe,We,Ue,st,0)}var lt=Ue-1,ft=1;for(this[We+lt]=Oe&255;--lt>=0&&(ft*=256);)this[We+lt]=Oe/ft&255;return We+Ue},x.prototype.writeUInt8=function(Oe,We,Ue){return Oe=+Oe,We=We>>>0,Ue||Xe(this,Oe,We,1,255,0),this[We]=Oe&255,We+1},x.prototype.writeUInt16LE=function(Oe,We,Ue){return Oe=+Oe,We=We>>>0,Ue||Xe(this,Oe,We,2,65535,0),this[We]=Oe&255,this[We+1]=Oe>>>8,We+2},x.prototype.writeUInt16BE=function(Oe,We,Ue){return Oe=+Oe,We=We>>>0,Ue||Xe(this,Oe,We,2,65535,0),this[We]=Oe>>>8,this[We+1]=Oe&255,We+2},x.prototype.writeUInt32LE=function(Oe,We,Ue){return Oe=+Oe,We=We>>>0,Ue||Xe(this,Oe,We,4,4294967295,0),this[We+3]=Oe>>>24,this[We+2]=Oe>>>16,this[We+1]=Oe>>>8,this[We]=Oe&255,We+4},x.prototype.writeUInt32BE=function(Oe,We,Ue){return Oe=+Oe,We=We>>>0,Ue||Xe(this,Oe,We,4,4294967295,0),this[We]=Oe>>>24,this[We+1]=Oe>>>16,this[We+2]=Oe>>>8,this[We+3]=Oe&255,We+4},x.prototype.writeIntLE=function(Oe,We,Ue,Ye){if(Oe=+Oe,We=We>>>0,!Ye){var st=Math.pow(2,8*Ue-1);Xe(this,Oe,We,Ue,st-1,-st)}var lt=0,ft=1,Tt=0;for(this[We]=Oe&255;++lt<Ue&&(ft*=256);)Oe<0&&Tt===0&&this[We+lt-1]!==0&&(Tt=1),this[We+lt]=(Oe/ft>>0)-Tt&255;return We+Ue},x.prototype.writeIntBE=function(Oe,We,Ue,Ye){if(Oe=+Oe,We=We>>>0,!Ye){var st=Math.pow(2,8*Ue-1);Xe(this,Oe,We,Ue,st-1,-st)}var lt=Ue-1,ft=1,Tt=0;for(this[We+lt]=Oe&255;--lt>=0&&(ft*=256);)Oe<0&&Tt===0&&this[We+lt+1]!==0&&(Tt=1),this[We+lt]=(Oe/ft>>0)-Tt&255;return We+Ue},x.prototype.writeInt8=function(Oe,We,Ue){return Oe=+Oe,We=We>>>0,Ue||Xe(this,Oe,We,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[We]=Oe&255,We+1},x.prototype.writeInt16LE=function(Oe,We,Ue){return Oe=+Oe,We=We>>>0,Ue||Xe(this,Oe,We,2,32767,-32768),this[We]=Oe&255,this[We+1]=Oe>>>8,We+2},x.prototype.writeInt16BE=function(Oe,We,Ue){return Oe=+Oe,We=We>>>0,Ue||Xe(this,Oe,We,2,32767,-32768),this[We]=Oe>>>8,this[We+1]=Oe&255,We+2},x.prototype.writeInt32LE=function(Oe,We,Ue){return Oe=+Oe,We=We>>>0,Ue||Xe(this,Oe,We,4,2147483647,-2147483648),this[We]=Oe&255,this[We+1]=Oe>>>8,this[We+2]=Oe>>>16,this[We+3]=Oe>>>24,We+4},x.prototype.writeInt32BE=function(Oe,We,Ue){return Oe=+Oe,We=We>>>0,Ue||Xe(this,Oe,We,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[We]=Oe>>>24,this[We+1]=Oe>>>16,this[We+2]=Oe>>>8,this[We+3]=Oe&255,We+4};function Ve(ve,Oe,We,Ue,Ye,st){if(We+Ue>ve.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("Index out of range")}function nt(ve,Oe,We,Ue,Ye){return Oe=+Oe,We=We>>>0,Ye||Ve(ve,Oe,We,4,34028234663852886e22,-34028234663852886e22),ie.write(ve,Oe,We,Ue,23,4),We+4}x.prototype.writeFloatLE=function(Oe,We,Ue){return nt(this,Oe,We,!0,Ue)},x.prototype.writeFloatBE=function(Oe,We,Ue){return nt(this,Oe,We,!1,Ue)};function Qe(ve,Oe,We,Ue,Ye){return Oe=+Oe,We=We>>>0,Ye||Ve(ve,Oe,We,8,17976931348623157e292,-17976931348623157e292),ie.write(ve,Oe,We,Ue,52,8),We+8}x.prototype.writeDoubleLE=function(Oe,We,Ue){return Qe(this,Oe,We,!0,Ue)},x.prototype.writeDoubleBE=function(Oe,We,Ue){return Qe(this,Oe,We,!1,Ue)},x.prototype.copy=function(Oe,We,Ue,Ye){if(!x.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(Ue||(Ue=0),!Ye&&Ye!==0&&(Ye=this.length),We>=Oe.length&&(We=Oe.length),We||(We=0),Ye>0&&Ye<Ue&&(Ye=Ue),Ye===Ue||Oe.length===0||this.length===0)return 0;if(We<0)throw new RangeError("targetStart out of bounds");if(Ue<0||Ue>=this.length)throw new RangeError("Index out of range");if(Ye<0)throw new RangeError("sourceEnd out of bounds");Ye>this.length&&(Ye=this.length),Oe.length-We<Ye-Ue&&(Ye=Oe.length-We+Ue);var st=Ye-Ue;if(this===Oe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(We,Ue,Ye);else if(this===Oe&&Ue<We&&We<Ye)for(var lt=st-1;lt>=0;--lt)Oe[lt+We]=this[lt+Ue];else Uint8Array.prototype.set.call(Oe,this.subarray(Ue,Ye),We);return st},x.prototype.fill=function(Oe,We,Ue,Ye){if(typeof Oe=="string"){if(typeof We=="string"?(Ye=We,We=0,Ue=this.length):typeof Ue=="string"&&(Ye=Ue,Ue=this.length),Ye!==void 0&&typeof Ye!="string")throw new TypeError("encoding must be a string");if(typeof Ye=="string"&&!x.isEncoding(Ye))throw new TypeError("Unknown encoding: "+Ye);if(Oe.length===1){var st=Oe.charCodeAt(0);(Ye==="utf8"&&st<128||Ye==="latin1")&&(Oe=st)}}else typeof Oe=="number"&&(Oe=Oe&255);if(We<0||this.length<We||this.length<Ue)throw new RangeError("Out of range index");if(Ue<=We)return this;We=We>>>0,Ue=Ue===void 0?this.length:Ue>>>0,Oe||(Oe=0);var lt;if(typeof Oe=="number")for(lt=We;lt<Ue;++lt)this[lt]=Oe;else{var ft=x.isBuffer(Oe)?Oe:x.from(Oe,Ye),Tt=ft.length;if(Tt===0)throw new TypeError('The value "'+Oe+'" is invalid for argument "value"');for(lt=0;lt<Ue-We;++lt)this[lt+We]=ft[lt%Tt]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function ot(ve){if(ve=ve.split("=")[0],ve=ve.trim().replace(ct,""),ve.length<2)return"";for(;ve.length%4!==0;)ve=ve+"=";return ve}function qe(ve){return ve<16?"0"+ve.toString(16):ve.toString(16)}function _e(ve,Oe){Oe=Oe||1/0;for(var We,Ue=ve.length,Ye=null,st=[],lt=0;lt<Ue;++lt){if(We=ve.charCodeAt(lt),We>55295&&We<57344){if(!Ye){if(We>56319){(Oe-=3)>-1&&st.push(239,191,189);continue}else if(lt+1===Ue){(Oe-=3)>-1&&st.push(239,191,189);continue}Ye=We;continue}if(We<56320){(Oe-=3)>-1&&st.push(239,191,189),Ye=We;continue}We=(Ye-55296<<10|We-56320)+65536}else Ye&&(Oe-=3)>-1&&st.push(239,191,189);if(Ye=null,We<128){if((Oe-=1)<0)break;st.push(We)}else if(We<2048){if((Oe-=2)<0)break;st.push(We>>6|192,We&63|128)}else if(We<65536){if((Oe-=3)<0)break;st.push(We>>12|224,We>>6&63|128,We&63|128)}else if(We<1114112){if((Oe-=4)<0)break;st.push(We>>18|240,We>>12&63|128,We>>6&63|128,We&63|128)}else throw new Error("Invalid code point")}return st}function Re(ve){for(var Oe=[],We=0;We<ve.length;++We)Oe.push(ve.charCodeAt(We)&255);return Oe}function te(ve,Oe){for(var We,Ue,Ye,st=[],lt=0;lt<ve.length&&!((Oe-=2)<0);++lt)We=ve.charCodeAt(lt),Ue=We>>8,Ye=We%256,st.push(Ye),st.push(Ue);return st}function de(ve){return E.toByteArray(ot(ve))}function Ne(ve,Oe,We,Ue){for(var Ye=0;Ye<Ue&&!(Ye+We>=Oe.length||Ye>=ve.length);++Ye)Oe[Ye+We]=ve[Ye];return Ye}function ze(ve,Oe){return ve instanceof Oe||ve!=null&&ve.constructor!=null&&ve.constructor.name!=null&&ve.constructor.name===Oe.name}function xe(ve){return ve!==ve}}).call(this)}).call(this,a("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(a,Te,be){Te.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(a,Te,be){"use strict";var z=a("get-intrinsic"),E=a("./"),ie=E(z("String.prototype.indexOf"));Te.exports=function(ee,le){var x=z(ee,!!le);return typeof x=="function"&&ie(ee,".prototype.")>-1?E(x):x}},{"./":93,"get-intrinsic":348}],93:[function(a,Te,be){"use strict";var z=a("function-bind"),E=a("get-intrinsic"),ie=E("%Function.prototype.apply%"),oe=E("%Function.prototype.call%"),ee=E("%Reflect.apply%",!0)||z.call(oe,ie),le=E("%Object.getOwnPropertyDescriptor%",!0),x=E("%Object.defineProperty%",!0),ne=E("%Math.max%");if(x)try{x({},"a",{value:1})}catch(ae){x=null}Te.exports=function(se){var ce=ee(z,oe,arguments);if(le&&x){var pe=le(ce,"length");pe.configurable&&x(ce,"length",{value:1+ne(0,se.length-(arguments.length-1))})}return ce};var re=function(){return ee(z,ie,arguments)};x?x(Te.exports,"apply",{value:re}):Te.exports.apply=re},{"function-bind":347,"get-intrinsic":348}],94:[function(a,Te,be){"use strict";var z=Array.prototype.slice;Te.exports=E;function E(oe,ee){if(!(this instanceof E))return new E(oe,ee);this.src=oe,this._withAccess=ee}E.prototype.withAccess=function(oe){return this._withAccess=oe!==!1,this},E.prototype.pick=function(oe){return Array.isArray(oe)||(oe=z.call(arguments)),oe.length&&(this.keys=oe),this},E.prototype.to=function(oe){if(oe=oe||{},!this.src)return oe;var ee=this.keys||Object.keys(this.src);if(!this._withAccess){for(var le=0;le<ee.length;le++)x=ee[le],oe[x]===void 0&&(oe[x]=this.src[x]);return oe}for(var le=0;le<ee.length;le++){var x=ee[le];if(ie(oe,x)){var ne=this.src.__lookupGetter__(x),re=this.src.__lookupSetter__(x);ne&&oe.__defineGetter__(x,ne),re&&oe.__defineSetter__(x,re),!ne&&!re&&(oe[x]=this.src[x])}}return oe},E.prototype.toCover=function(oe){for(var ee=this.keys||Object.keys(this.src),le=0;le<ee.length;le++){var x=ee[le];delete oe[x];var ne=this.src.__lookupGetter__(x),re=this.src.__lookupSetter__(x);ne&&oe.__defineGetter__(x,ne),re&&oe.__defineSetter__(x,re),!ne&&!re&&(oe[x]=this.src[x])}},E.prototype.override=E.prototype.toCover,E.prototype.and=function(oe){var ee={};return this.to(ee),this.src=oe,this.to(ee),this.src=ee,this};function ie(oe,ee){return oe[ee]===void 0&&oe.__lookupGetter__(ee)===void 0&&oe.__lookupSetter__(ee)===void 0}},{}],95:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/is-callable"),ie=a("../internals/try-to-string"),oe=z.TypeError;Te.exports=function(ee){if(E(ee))return ee;throw oe(ie(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/is-constructor"),ie=a("../internals/try-to-string"),oe=z.TypeError;Te.exports=function(ee){if(E(ee))return ee;throw oe(ie(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/is-callable"),ie=z.String,oe=z.TypeError;Te.exports=function(ee){if(typeof ee=="object"||E(ee))return ee;throw oe("Can't set "+ie(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(a,Te,be){var z=a("../internals/well-known-symbol"),E=a("../internals/object-create"),ie=a("../internals/object-define-property"),oe=z("unscopables"),ee=Array.prototype;ee[oe]==null&&ie.f(ee,oe,{configurable:!0,value:E(null)}),Te.exports=function(le){ee[oe][le]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(a,Te,be){"use strict";var z=a("../internals/string-multibyte").charAt;Te.exports=function(E,ie,oe){return ie+(oe?z(E,ie).length:1)}},{"../internals/string-multibyte":239}],100:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/object-is-prototype-of"),ie=z.TypeError;Te.exports=function(oe,ee){if(E(ee,oe))return oe;throw ie("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/is-object"),ie=z.String,oe=z.TypeError;Te.exports=function(ee){if(E(ee))return ee;throw oe(ie(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(a,Te,be){Te.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-native"),E=a("../internals/descriptors"),ie=a("../internals/global"),oe=a("../internals/is-callable"),ee=a("../internals/is-object"),le=a("../internals/has-own-property"),x=a("../internals/classof"),ne=a("../internals/try-to-string"),re=a("../internals/create-non-enumerable-property"),ae=a("../internals/redefine"),se=a("../internals/object-define-property").f,ce=a("../internals/object-is-prototype-of"),pe=a("../internals/object-get-prototype-of"),me=a("../internals/object-set-prototype-of"),he=a("../internals/well-known-symbol"),ye=a("../internals/uid"),De=ie.Int8Array,Me=De&&De.prototype,Be=ie.Uint8ClampedArray,Pe=Be&&Be.prototype,Ce=De&&pe(De),Ee=Me&&pe(Me),je=Object.prototype,ke=ie.TypeError,Le=he("toStringTag"),Ae=ye("TYPED_ARRAY_TAG"),Se=ye("TYPED_ARRAY_CONSTRUCTOR"),Ge=z&&!!me&&x(ie.opera)!=="Opera",Ze=!1,Je,at,Fe,Ke={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},it={BigInt64Array:8,BigUint64Array:8},rt=function(ct){if(!ee(ct))return!1;var ot=x(ct);return ot==="DataView"||le(Ke,ot)||le(it,ot)},et=function(Qe){if(!ee(Qe))return!1;var ct=x(Qe);return le(Ke,ct)||le(it,ct)},$e=function(Qe){if(et(Qe))return Qe;throw ke("Target is not a typed array")},Xe=function(Qe){if(oe(Qe)&&(!me||ce(Ce,Qe)))return Qe;throw ke(ne(Qe)+" is not a typed array constructor")},Ve=function(Qe,ct,ot,qe){if(E){if(ot)for(var _e in Ke){var Re=ie[_e];if(Re&&le(Re.prototype,Qe))try{delete Re.prototype[Qe]}catch(te){try{Re.prototype[Qe]=ct}catch(de){}}}(!Ee[Qe]||ot)&&ae(Ee,Qe,ot?ct:Ge&&Me[Qe]||ct,qe)}},nt=function(Qe,ct,ot){var qe,_e;if(E){if(me){if(ot){for(qe in Ke)if(_e=ie[qe],_e&&le(_e,Qe))try{delete _e[Qe]}catch(Re){}}if(!Ce[Qe]||ot)try{return ae(Ce,Qe,ot?ct:Ge&&Ce[Qe]||ct)}catch(Re){}else return}for(qe in Ke)_e=ie[qe],_e&&(!_e[Qe]||ot)&&ae(_e,Qe,ct)}};for(Je in Ke)at=ie[Je],Fe=at&&at.prototype,Fe?re(Fe,Se,at):Ge=!1;for(Je in it)at=ie[Je],Fe=at&&at.prototype,Fe&&re(Fe,Se,at);if((!Ge||!oe(Ce)||Ce===Function.prototype)&&(Ce=function(){throw ke("Incorrect invocation")},Ge))for(Je in Ke)ie[Je]&&me(ie[Je],Ce);if((!Ge||!Ee||Ee===je)&&(Ee=Ce.prototype,Ge))for(Je in Ke)ie[Je]&&me(ie[Je].prototype,Ee);if(Ge&&pe(Pe)!==Ee&&me(Pe,Ee),E&&!le(Ee,Le)){Ze=!0,se(Ee,Le,{get:function(){return ee(this)?this[Ae]:void 0}});for(Je in Ke)ie[Je]&&re(ie[Je],Ae,Je)}Te.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ge,TYPED_ARRAY_CONSTRUCTOR:Se,TYPED_ARRAY_TAG:Ze&&Ae,aTypedArray:$e,aTypedArrayConstructor:Xe,exportTypedArrayMethod:Ve,exportTypedArrayStaticMethod:nt,isView:rt,isTypedArray:et,TypedArray:Ce,TypedArrayPrototype:Ee}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(a,Te,be){"use strict";var z=a("../internals/global"),E=a("../internals/function-uncurry-this"),ie=a("../internals/descriptors"),oe=a("../internals/array-buffer-native"),ee=a("../internals/function-name"),le=a("../internals/create-non-enumerable-property"),x=a("../internals/redefine-all"),ne=a("../internals/fails"),re=a("../internals/an-instance"),ae=a("../internals/to-integer-or-infinity"),se=a("../internals/to-length"),ce=a("../internals/to-index"),pe=a("../internals/ieee754"),me=a("../internals/object-get-prototype-of"),he=a("../internals/object-set-prototype-of"),ye=a("../internals/object-get-own-property-names").f,De=a("../internals/object-define-property").f,Me=a("../internals/array-fill"),Be=a("../internals/array-slice-simple"),Pe=a("../internals/set-to-string-tag"),Ce=a("../internals/internal-state"),Ee=ee.PROPER,je=ee.CONFIGURABLE,ke=Ce.get,Le=Ce.set,Ae="ArrayBuffer",Se="DataView",Ge="prototype",Ze="Wrong length",Je="Wrong index",at=z[Ae],Fe=at,Ke=Fe&&Fe[Ge],it=z[Se],rt=it&&it[Ge],et=Object.prototype,$e=z.Array,Xe=z.RangeError,Ve=E(Me),nt=E([].reverse),Qe=pe.pack,ct=pe.unpack,ot=function(lt){return[lt&255]},qe=function(lt){return[lt&255,lt>>8&255]},_e=function(lt){return[lt&255,lt>>8&255,lt>>16&255,lt>>24&255]},Re=function(lt){return lt[3]<<24|lt[2]<<16|lt[1]<<8|lt[0]},te=function(lt){return Qe(lt,23,4)},de=function(lt){return Qe(lt,52,8)},Ne=function(lt,ft){De(lt[Ge],ft,{get:function(){return ke(this)[ft]}})},ze=function(lt,ft,Tt,St){var Ot=ce(Tt),yt=ke(lt);if(Ot+ft>yt.byteLength)throw Xe(Je);var Mt=ke(yt.buffer).bytes,Et=Ot+yt.byteOffset,xt=Be(Mt,Et,Et+ft);return St?xt:nt(xt)},xe=function(lt,ft,Tt,St,Ot,yt){var Mt=ce(Tt),Et=ke(lt);if(Mt+ft>Et.byteLength)throw Xe(Je);for(var xt=ke(Et.buffer).bytes,jt=Mt+Et.byteOffset,At=St(+Ot),ht=0;ht<ft;ht++)xt[jt+ht]=At[yt?ht:ft-ht-1]};if(!oe)Fe=function(ft){re(this,Ke);var Tt=ce(ft);Le(this,{bytes:Ve($e(Tt),0),byteLength:Tt}),ie||(this.byteLength=Tt)},Ke=Fe[Ge],it=function(ft,Tt,St){re(this,rt),re(ft,Ke);var Ot=ke(ft).byteLength,yt=ae(Tt);if(yt<0||yt>Ot)throw Xe("Wrong offset");if(St=St===void 0?Ot-yt:se(St),yt+St>Ot)throw Xe(Ze);Le(this,{buffer:ft,byteLength:St,byteOffset:yt}),ie||(this.buffer=ft,this.byteLength=St,this.byteOffset=yt)},rt=it[Ge],ie&&(Ne(Fe,"byteLength"),Ne(it,"buffer"),Ne(it,"byteLength"),Ne(it,"byteOffset")),x(rt,{getInt8:function(ft){return ze(this,1,ft)[0]<<24>>24},getUint8:function(ft){return ze(this,1,ft)[0]},getInt16:function(ft){var Tt=ze(this,2,ft,arguments.length>1?arguments[1]:void 0);return(Tt[1]<<8|Tt[0])<<16>>16},getUint16:function(ft){var Tt=ze(this,2,ft,arguments.length>1?arguments[1]:void 0);return Tt[1]<<8|Tt[0]},getInt32:function(ft){return Re(ze(this,4,ft,arguments.length>1?arguments[1]:void 0))},getUint32:function(ft){return Re(ze(this,4,ft,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(ft){return ct(ze(this,4,ft,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(ft){return ct(ze(this,8,ft,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(ft,Tt){xe(this,1,ft,ot,Tt)},setUint8:function(ft,Tt){xe(this,1,ft,ot,Tt)},setInt16:function(ft,Tt){xe(this,2,ft,qe,Tt,arguments.length>2?arguments[2]:void 0)},setUint16:function(ft,Tt){xe(this,2,ft,qe,Tt,arguments.length>2?arguments[2]:void 0)},setInt32:function(ft,Tt){xe(this,4,ft,_e,Tt,arguments.length>2?arguments[2]:void 0)},setUint32:function(ft,Tt){xe(this,4,ft,_e,Tt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(ft,Tt){xe(this,4,ft,te,Tt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(ft,Tt){xe(this,8,ft,de,Tt,arguments.length>2?arguments[2]:void 0)}});else{var ve=Ee&&at.name!==Ae;if(!ne(function(){at(1)})||!ne(function(){new at(-1)})||ne(function(){return new at,new at(1.5),new at(NaN),ve&&!je})){Fe=function(ft){return re(this,Ke),new at(ce(ft))},Fe[Ge]=Ke;for(var Oe=ye(at),We=0,Ue;Oe.length>We;)(Ue=Oe[We++])in Fe||le(Fe,Ue,at[Ue]);Ke.constructor=Fe}else ve&&je&&le(at,"name",Ae);he&&me(rt)!==et&&he(rt,et);var Ye=new it(new Fe(2)),st=E(rt.setInt8);Ye.setInt8(0,2147483648),Ye.setInt8(1,2147483649),(Ye.getInt8(0)||!Ye.getInt8(1))&&x(rt,{setInt8:function(ft,Tt){st(this,ft,Tt<<24>>24)},setUint8:function(ft,Tt){st(this,ft,Tt<<24>>24)}},{unsafe:!0})}Pe(Fe,Ae),Pe(it,Se),Te.exports={ArrayBuffer:Fe,DataView:it}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(a,Te,be){"use strict";var z=a("../internals/to-object"),E=a("../internals/to-absolute-index"),ie=a("../internals/length-of-array-like"),oe=Math.min;Te.exports=[].copyWithin||function(le,x){var ne=z(this),re=ie(ne),ae=E(le,re),se=E(x,re),ce=arguments.length>2?arguments[2]:void 0,pe=oe((ce===void 0?re:E(ce,re))-se,re-ae),me=1;for(se<ae&&ae<se+pe&&(me=-1,se+=pe-1,ae+=pe-1);pe-- >0;)se in ne?ne[ae]=ne[se]:delete ne[ae],ae+=me,se+=me;return ne}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(a,Te,be){"use strict";var z=a("../internals/to-object"),E=a("../internals/to-absolute-index"),ie=a("../internals/length-of-array-like");Te.exports=function(ee){for(var le=z(this),x=ie(le),ne=arguments.length,re=E(ne>1?arguments[1]:void 0,x),ae=ne>2?arguments[2]:void 0,se=ae===void 0?x:E(ae,x);se>re;)le[re++]=ee;return le}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(a,Te,be){"use strict";var z=a("../internals/array-iteration").forEach,E=a("../internals/array-method-is-strict"),ie=E("forEach");Te.exports=ie?[].forEach:function(ee){return z(this,ee,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(a,Te,be){var z=a("../internals/length-of-array-like");Te.exports=function(E,ie){for(var oe=0,ee=z(ie),le=new E(ee);ee>oe;)le[oe]=ie[oe++];return le}},{"../internals/length-of-array-like":188}],109:[function(a,Te,be){"use strict";var z=a("../internals/global"),E=a("../internals/function-bind-context"),ie=a("../internals/function-call"),oe=a("../internals/to-object"),ee=a("../internals/call-with-safe-iteration-closing"),le=a("../internals/is-array-iterator-method"),x=a("../internals/is-constructor"),ne=a("../internals/length-of-array-like"),re=a("../internals/create-property"),ae=a("../internals/get-iterator"),se=a("../internals/get-iterator-method"),ce=z.Array;Te.exports=function(me){var he=oe(me),ye=x(this),De=arguments.length,Me=De>1?arguments[1]:void 0,Be=Me!==void 0;Be&&(Me=E(Me,De>2?arguments[2]:void 0));var Pe=se(he),Ce=0,Ee,je,ke,Le,Ae,Se;if(Pe&&!(this==ce&&le(Pe)))for(Le=ae(he,Pe),Ae=Le.next,je=ye?new this:[];!(ke=ie(Ae,Le)).done;Ce++)Se=Be?ee(Le,Me,[ke.value,Ce],!0):ke.value,re(je,Ce,Se);else for(Ee=ne(he),je=ye?new this(Ee):ce(Ee);Ee>Ce;Ce++)Se=Be?Me(he[Ce],Ce):he[Ce],re(je,Ce,Se);return je.length=Ce,je}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(a,Te,be){var z=a("../internals/to-indexed-object"),E=a("../internals/to-absolute-index"),ie=a("../internals/length-of-array-like"),oe=function(ee){return function(le,x,ne){var re=z(le),ae=ie(re),se=E(ne,ae),ce;if(ee&&x!=x){for(;ae>se;)if(ce=re[se++],ce!=ce)return!0}else for(;ae>se;se++)if((ee||se in re)&&re[se]===x)return ee||se||0;return!ee&&-1}};Te.exports={includes:oe(!0),indexOf:oe(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(a,Te,be){var z=a("../internals/function-bind-context"),E=a("../internals/function-uncurry-this"),ie=a("../internals/indexed-object"),oe=a("../internals/to-object"),ee=a("../internals/length-of-array-like"),le=a("../internals/array-species-create"),x=E([].push),ne=function(re){var ae=re==1,se=re==2,ce=re==3,pe=re==4,me=re==6,he=re==7,ye=re==5||me;return function(De,Me,Be,Pe){for(var Ce=oe(De),Ee=ie(Ce),je=z(Me,Be),ke=ee(Ee),Le=0,Ae=Pe||le,Se=ae?Ae(De,ke):se||he?Ae(De,0):void 0,Ge,Ze;ke>Le;Le++)if((ye||Le in Ee)&&(Ge=Ee[Le],Ze=je(Ge,Le,Ce),re))if(ae)Se[Le]=Ze;else if(Ze)switch(re){case 3:return!0;case 5:return Ge;case 6:return Le;case 2:x(Se,Ge)}else switch(re){case 4:return!1;case 7:x(Se,Ge)}return me?-1:ce||pe?pe:Se}};Te.exports={forEach:ne(0),map:ne(1),filter:ne(2),some:ne(3),every:ne(4),find:ne(5),findIndex:ne(6),filterReject:ne(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(a,Te,be){"use strict";var z=a("../internals/function-apply"),E=a("../internals/to-indexed-object"),ie=a("../internals/to-integer-or-infinity"),oe=a("../internals/length-of-array-like"),ee=a("../internals/array-method-is-strict"),le=Math.min,x=[].lastIndexOf,ne=!!x&&1/[1].lastIndexOf(1,-0)<0,re=ee("lastIndexOf"),ae=ne||!re;Te.exports=ae?function(ce){if(ne)return z(x,this,arguments)||0;var pe=E(this),me=oe(pe),he=me-1;for(arguments.length>1&&(he=le(he,ie(arguments[1]))),he<0&&(he=me+he);he>=0;he--)if(he in pe&&pe[he]===ce)return he||0;return-1}:x},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(a,Te,be){var z=a("../internals/fails"),E=a("../internals/well-known-symbol"),ie=a("../internals/engine-v8-version"),oe=E("species");Te.exports=function(ee){return ie>=51||!z(function(){var le=[],x=le.constructor={};return x[oe]=function(){return{foo:1}},le[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(a,Te,be){"use strict";var z=a("../internals/fails");Te.exports=function(E,ie){var oe=[][E];return!!oe&&z(function(){oe.call(null,ie||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/a-callable"),ie=a("../internals/to-object"),oe=a("../internals/indexed-object"),ee=a("../internals/length-of-array-like"),le=z.TypeError,x=function(ne){return function(re,ae,se,ce){E(ae);var pe=ie(re),me=oe(pe),he=ee(pe),ye=ne?he-1:0,De=ne?-1:1;if(se<2)for(;;){if(ye in me){ce=me[ye],ye+=De;break}if(ye+=De,ne?ye<0:he<=ye)throw le("Reduce of empty array with no initial value")}for(;ne?ye>=0:he>ye;ye+=De)ye in me&&(ce=ae(ce,me[ye],ye,pe));return ce}};Te.exports={left:x(!1),right:x(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/to-absolute-index"),ie=a("../internals/length-of-array-like"),oe=a("../internals/create-property"),ee=z.Array,le=Math.max;Te.exports=function(x,ne,re){for(var ae=ie(x),se=E(ne,ae),ce=E(re===void 0?ae:re,ae),pe=ee(le(ce-se,0)),me=0;se<ce;se++,me++)oe(pe,me,x[se]);return pe.length=me,pe}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(a,Te,be){var z=a("../internals/function-uncurry-this");Te.exports=z([].slice)},{"../internals/function-uncurry-this":157}],118:[function(a,Te,be){var z=a("../internals/array-slice-simple"),E=Math.floor,ie=function(le,x){var ne=le.length,re=E(ne/2);return ne<8?oe(le,x):ee(le,ie(z(le,0,re),x),ie(z(le,re),x),x)},oe=function(le,x){for(var ne=le.length,re=1,ae,se;re<ne;){for(se=re,ae=le[re];se&&x(le[se-1],ae)>0;)le[se]=le[--se];se!==re++&&(le[se]=ae)}return le},ee=function(le,x,ne,re){for(var ae=x.length,se=ne.length,ce=0,pe=0;ce<ae||pe<se;)le[ce+pe]=ce<ae&&pe<se?re(x[ce],ne[pe])<=0?x[ce++]:ne[pe++]:ce<ae?x[ce++]:ne[pe++];return le};Te.exports=ie},{"../internals/array-slice-simple":116}],119:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/is-array"),ie=a("../internals/is-constructor"),oe=a("../internals/is-object"),ee=a("../internals/well-known-symbol"),le=ee("species"),x=z.Array;Te.exports=function(ne){var re;return E(ne)&&(re=ne.constructor,ie(re)&&(re===x||E(re.prototype))?re=void 0:oe(re)&&(re=re[le],re===null&&(re=void 0))),re===void 0?x:re}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(a,Te,be){var z=a("../internals/array-species-constructor");Te.exports=function(E,ie){return new(z(E))(ie===0?0:ie)}},{"../internals/array-species-constructor":119}],121:[function(a,Te,be){var z=a("../internals/an-object"),E=a("../internals/iterator-close");Te.exports=function(ie,oe,ee,le){try{return le?oe(z(ee)[0],ee[1]):oe(ee)}catch(x){E(ie,"throw",x)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(a,Te,be){var z=a("../internals/well-known-symbol"),E=z("iterator"),ie=!1;try{var oe=0,ee={next:function(){return{done:!!oe++}},return:function(){ie=!0}};ee[E]=function(){return this},Array.from(ee,function(){throw 2})}catch(le){}Te.exports=function(le,x){if(!x&&!ie)return!1;var ne=!1;try{var re={};re[E]=function(){return{next:function(){return{done:ne=!0}}}},le(re)}catch(ae){}return ne}},{"../internals/well-known-symbol":268}],123:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=z({}.toString),ie=z("".slice);Te.exports=function(oe){return ie(E(oe),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/to-string-tag-support"),ie=a("../internals/is-callable"),oe=a("../internals/classof-raw"),ee=a("../internals/well-known-symbol"),le=ee("toStringTag"),x=z.Object,ne=oe(function(){return arguments}())=="Arguments",re=function(ae,se){try{return ae[se]}catch(ce){}};Te.exports=E?oe:function(ae){var se,ce,pe;return ae===void 0?"Undefined":ae===null?"Null":typeof(ce=re(se=x(ae),le))=="string"?ce:ne?oe(se):(pe=oe(se))=="Object"&&ie(se.callee)?"Arguments":pe}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(a,Te,be){var z=a("../internals/has-own-property"),E=a("../internals/own-keys"),ie=a("../internals/object-get-own-property-descriptor"),oe=a("../internals/object-define-property");Te.exports=function(ee,le,x){for(var ne=E(le),re=oe.f,ae=ie.f,se=0;se<ne.length;se++){var ce=ne[se];!z(ee,ce)&&!(x&&z(x,ce))&&re(ee,ce,ae(le,ce))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(a,Te,be){var z=a("../internals/well-known-symbol"),E=z("match");Te.exports=function(ie){var oe=/./;try{"/./"[ie](oe)}catch(ee){try{return oe[E]=!1,"/./"[ie](oe)}catch(le){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(a,Te,be){var z=a("../internals/fails");Te.exports=!z(function(){function E(){}return E.prototype.constructor=null,Object.getPrototypeOf(new E)!==E.prototype})},{"../internals/fails":150}],128:[function(a,Te,be){"use strict";var z=a("../internals/iterators-core").IteratorPrototype,E=a("../internals/object-create"),ie=a("../internals/create-property-descriptor"),oe=a("../internals/set-to-string-tag"),ee=a("../internals/iterators"),le=function(){return this};Te.exports=function(x,ne,re,ae){var se=ne+" Iterator";return x.prototype=E(z,{next:ie(+!ae,re)}),oe(x,se,!1,!0),ee[se]=le,x}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(a,Te,be){var z=a("../internals/descriptors"),E=a("../internals/object-define-property"),ie=a("../internals/create-property-descriptor");Te.exports=z?function(oe,ee,le){return E.f(oe,ee,ie(1,le))}:function(oe,ee,le){return oe[ee]=le,oe}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(a,Te,be){Te.exports=function(z,E){return{enumerable:!(z&1),configurable:!(z&2),writable:!(z&4),value:E}}},{}],131:[function(a,Te,be){"use strict";var z=a("../internals/to-property-key"),E=a("../internals/object-define-property"),ie=a("../internals/create-property-descriptor");Te.exports=function(oe,ee,le){var x=z(ee);x in oe?E.f(oe,x,ie(0,le)):oe[x]=le}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/function-call"),ie=a("../internals/is-pure"),oe=a("../internals/function-name"),ee=a("../internals/is-callable"),le=a("../internals/create-iterator-constructor"),x=a("../internals/object-get-prototype-of"),ne=a("../internals/object-set-prototype-of"),re=a("../internals/set-to-string-tag"),ae=a("../internals/create-non-enumerable-property"),se=a("../internals/redefine"),ce=a("../internals/well-known-symbol"),pe=a("../internals/iterators"),me=a("../internals/iterators-core"),he=oe.PROPER,ye=oe.CONFIGURABLE,De=me.IteratorPrototype,Me=me.BUGGY_SAFARI_ITERATORS,Be=ce("iterator"),Pe="keys",Ce="values",Ee="entries",je=function(){return this};Te.exports=function(ke,Le,Ae,Se,Ge,Ze,Je){le(Ae,Le,Se);var at=function(Qe){if(Qe===Ge&&et)return et;if(!Me&&Qe in it)return it[Qe];switch(Qe){case Pe:return function(){return new Ae(this,Qe)};case Ce:return function(){return new Ae(this,Qe)};case Ee:return function(){return new Ae(this,Qe)}}return function(){return new Ae(this)}},Fe=Le+" Iterator",Ke=!1,it=ke.prototype,rt=it[Be]||it["@@iterator"]||Ge&&it[Ge],et=!Me&&rt||at(Ge),$e=Le=="Array"&&it.entries||rt,Xe,Ve,nt;if($e&&(Xe=x($e.call(new ke)),Xe!==Object.prototype&&Xe.next&&(!ie&&x(Xe)!==De&&(ne?ne(Xe,De):ee(Xe[Be])||se(Xe,Be,je)),re(Xe,Fe,!0,!0),ie&&(pe[Fe]=je))),he&&Ge==Ce&&rt&&rt.name!==Ce&&(!ie&&ye?ae(it,"name",Ce):(Ke=!0,et=function(){return E(rt,this)})),Ge)if(Ve={values:at(Ce),keys:Ze?et:at(Pe),entries:at(Ee)},Je)for(nt in Ve)(Me||Ke||!(nt in it))&&se(it,nt,Ve[nt]);else z({target:Le,proto:!0,forced:Me||Ke},Ve);return(!ie||Je)&&it[Be]!==et&&se(it,Be,et,{name:Ge}),pe[Le]=et,Ve}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(a,Te,be){var z=a("../internals/path"),E=a("../internals/has-own-property"),ie=a("../internals/well-known-symbol-wrapped"),oe=a("../internals/object-define-property").f;Te.exports=function(ee){var le=z.Symbol||(z.Symbol={});E(le,ee)||oe(le,ee,{value:ie.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(a,Te,be){var z=a("../internals/fails");Te.exports=!z(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/is-object"),ie=z.document,oe=E(ie)&&E(ie.createElement);Te.exports=function(ee){return oe?ie.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(a,Te,be){Te.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(a,Te,be){var z=a("../internals/document-create-element"),E=z("span").classList,ie=E&&E.constructor&&E.constructor.prototype;Te.exports=ie===Object.prototype?void 0:ie},{"../internals/document-create-element":135}],138:[function(a,Te,be){var z=a("../internals/engine-user-agent"),E=z.match(/firefox\/(\d+)/i);Te.exports=!!E&&+E[1]},{"../internals/engine-user-agent":145}],139:[function(a,Te,be){Te.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(a,Te,be){var z=a("../internals/engine-user-agent");Te.exports=/MSIE|Trident/.test(z)},{"../internals/engine-user-agent":145}],141:[function(a,Te,be){var z=a("../internals/engine-user-agent"),E=a("../internals/global");Te.exports=/ipad|iphone|ipod/i.test(z)&&E.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(a,Te,be){var z=a("../internals/engine-user-agent");Te.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(z)},{"../internals/engine-user-agent":145}],143:[function(a,Te,be){var z=a("../internals/classof-raw"),E=a("../internals/global");Te.exports=z(E.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(a,Te,be){var z=a("../internals/engine-user-agent");Te.exports=/web0s(?!.*chrome)/i.test(z)},{"../internals/engine-user-agent":145}],145:[function(a,Te,be){var z=a("../internals/get-built-in");Te.exports=z("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/engine-user-agent"),ie=z.process,oe=z.Deno,ee=ie&&ie.versions||oe&&oe.version,le=ee&&ee.v8,x,ne;le&&(x=le.split("."),ne=x[0]>0&&x[0]<4?1:+(x[0]+x[1])),!ne&&E&&(x=E.match(/Edge\/(\d+)/),(!x||x[1]>=74)&&(x=E.match(/Chrome\/(\d+)/),x&&(ne=+x[1]))),Te.exports=ne},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(a,Te,be){var z=a("../internals/engine-user-agent"),E=z.match(/AppleWebKit\/(\d+)\./);Te.exports=!!E&&+E[1]},{"../internals/engine-user-agent":145}],148:[function(a,Te,be){Te.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/object-get-own-property-descriptor").f,ie=a("../internals/create-non-enumerable-property"),oe=a("../internals/redefine"),ee=a("../internals/set-global"),le=a("../internals/copy-constructor-properties"),x=a("../internals/is-forced");Te.exports=function(ne,re){var ae=ne.target,se=ne.global,ce=ne.stat,pe,me,he,ye,De,Me;if(se?me=z:ce?me=z[ae]||ee(ae,{}):me=(z[ae]||{}).prototype,me)for(he in re){if(De=re[he],ne.noTargetGet?(Me=E(me,he),ye=Me&&Me.value):ye=me[he],pe=x(se?he:ae+(ce?".":"#")+he,ne.forced),!pe&&ye!==void 0){if(typeof De==typeof ye)continue;le(De,ye)}(ne.sham||ye&&ye.sham)&&ie(De,"sham",!0),oe(me,he,De,ne)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(a,Te,be){Te.exports=function(z){try{return!!z()}catch(E){return!0}}},{}],151:[function(a,Te,be){"use strict";a("../modules/es.regexp.exec");var z=a("../internals/function-uncurry-this"),E=a("../internals/redefine"),ie=a("../internals/regexp-exec"),oe=a("../internals/fails"),ee=a("../internals/well-known-symbol"),le=a("../internals/create-non-enumerable-property"),x=ee("species"),ne=RegExp.prototype;Te.exports=function(re,ae,se,ce){var pe=ee(re),me=!oe(function(){var Me={};return Me[pe]=function(){return 7},""[re](Me)!=7}),he=me&&!oe(function(){var Me=!1,Be=/a/;return re==="split"&&(Be={},Be.constructor={},Be.constructor[x]=function(){return Be},Be.flags="",Be[pe]=/./[pe]),Be.exec=function(){return Me=!0,null},Be[pe](""),!Me});if(!me||!he||se){var ye=z(/./[pe]),De=ae(pe,""[re],function(Me,Be,Pe,Ce,Ee){var je=z(Me),ke=Be.exec;return ke===ie||ke===ne.exec?me&&!Ee?{done:!0,value:ye(Be,Pe,Ce)}:{done:!0,value:je(Pe,Be,Ce)}:{done:!1}});E(String.prototype,re,De[0]),E(ne,pe,De[1])}ce&&le(ne[pe],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(a,Te,be){var z=a("../internals/function-bind-native"),E=Function.prototype,ie=E.apply,oe=E.call;Te.exports=typeof Reflect=="object"&&Reflect.apply||(z?oe.bind(ie):function(){return oe.apply(ie,arguments)})},{"../internals/function-bind-native":154}],153:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=a("../internals/a-callable"),ie=a("../internals/function-bind-native"),oe=z(z.bind);Te.exports=function(ee,le){return E(ee),le===void 0?ee:ie?oe(ee,le):function(){return ee.apply(le,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(a,Te,be){var z=a("../internals/fails");Te.exports=!z(function(){var E=function(){}.bind();return typeof E!="function"||E.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(a,Te,be){var z=a("../internals/function-bind-native"),E=Function.prototype.call;Te.exports=z?E.bind(E):function(){return E.apply(E,arguments)}},{"../internals/function-bind-native":154}],156:[function(a,Te,be){var z=a("../internals/descriptors"),E=a("../internals/has-own-property"),ie=Function.prototype,oe=z&&Object.getOwnPropertyDescriptor,ee=E(ie,"name"),le=ee&&function(){}.name==="something",x=ee&&(!z||z&&oe(ie,"name").configurable);Te.exports={EXISTS:ee,PROPER:le,CONFIGURABLE:x}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(a,Te,be){var z=a("../internals/function-bind-native"),E=Function.prototype,ie=E.bind,oe=E.call,ee=z&&ie.bind(oe,oe);Te.exports=z?function(le){return le&&ee(le)}:function(le){return le&&function(){return oe.apply(le,arguments)}}},{"../internals/function-bind-native":154}],158:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/is-callable"),ie=function(oe){return E(oe)?oe:void 0};Te.exports=function(oe,ee){return arguments.length<2?ie(z[oe]):z[oe]&&z[oe][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(a,Te,be){var z=a("../internals/classof"),E=a("../internals/get-method"),ie=a("../internals/iterators"),oe=a("../internals/well-known-symbol"),ee=oe("iterator");Te.exports=function(le){if(le!=null)return E(le,ee)||E(le,"@@iterator")||ie[z(le)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/function-call"),ie=a("../internals/a-callable"),oe=a("../internals/an-object"),ee=a("../internals/try-to-string"),le=a("../internals/get-iterator-method"),x=z.TypeError;Te.exports=function(ne,re){var ae=arguments.length<2?le(ne):re;if(ie(ae))return oe(E(ae,ne));throw x(ee(ne)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(a,Te,be){var z=a("../internals/a-callable");Te.exports=function(E,ie){var oe=E[ie];return oe==null?void 0:z(oe)}},{"../internals/a-callable":95}],162:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=a("../internals/to-object"),ie=Math.floor,oe=z("".charAt),ee=z("".replace),le=z("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ne=/\$([$&'`]|\d{1,2})/g;Te.exports=function(re,ae,se,ce,pe,me){var he=se+re.length,ye=ce.length,De=ne;return pe!==void 0&&(pe=E(pe),De=x),ee(me,De,function(Me,Be){var Pe;switch(oe(Be,0)){case"$":return"$";case"&":return re;case"`":return le(ae,0,se);case"'":return le(ae,he);case"<":Pe=pe[le(Be,1,-1)];break;default:var Ce=+Be;if(Ce===0)return Me;if(Ce>ye){var Ee=ie(Ce/10);return Ee===0?Me:Ee<=ye?ce[Ee-1]===void 0?oe(Be,1):ce[Ee-1]+oe(Be,1):Me}Pe=ce[Ce-1]}return Pe===void 0?"":Pe})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(a,Te,be){(function(z){(function(){var E=function(ie){return ie&&ie.Math==Math&&ie};Te.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof z=="object"&&z)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=a("../internals/to-object"),ie=z({}.hasOwnProperty);Te.exports=Object.hasOwn||function(ee,le){return ie(E(ee),le)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(a,Te,be){Te.exports={}},{}],166:[function(a,Te,be){var z=a("../internals/global");Te.exports=function(E,ie){var oe=z.console;oe&&oe.error&&(arguments.length==1?oe.error(E):oe.error(E,ie))}},{"../internals/global":163}],167:[function(a,Te,be){var z=a("../internals/get-built-in");Te.exports=z("document","documentElement")},{"../internals/get-built-in":158}],168:[function(a,Te,be){var z=a("../internals/descriptors"),E=a("../internals/fails"),ie=a("../internals/document-create-element");Te.exports=!z&&!E(function(){return Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(a,Te,be){var z=a("../internals/global"),E=z.Array,ie=Math.abs,oe=Math.pow,ee=Math.floor,le=Math.log,x=Math.LN2,ne=function(ae,se,ce){var pe=E(ce),me=ce*8-se-1,he=(1<<me)-1,ye=he>>1,De=se===23?oe(2,-24)-oe(2,-77):0,Me=ae<0||ae===0&&1/ae<0?1:0,Be=0,Pe,Ce,Ee;for(ae=ie(ae),ae!=ae||ae===1/0?(Ce=ae!=ae?1:0,Pe=he):(Pe=ee(le(ae)/x),Ee=oe(2,-Pe),ae*Ee<1&&(Pe--,Ee*=2),Pe+ye>=1?ae+=De/Ee:ae+=De*oe(2,1-ye),ae*Ee>=2&&(Pe++,Ee/=2),Pe+ye>=he?(Ce=0,Pe=he):Pe+ye>=1?(Ce=(ae*Ee-1)*oe(2,se),Pe=Pe+ye):(Ce=ae*oe(2,ye-1)*oe(2,se),Pe=0));se>=8;)pe[Be++]=Ce&255,Ce/=256,se-=8;for(Pe=Pe<<se|Ce,me+=se;me>0;)pe[Be++]=Pe&255,Pe/=256,me-=8;return pe[--Be]|=Me*128,pe},re=function(ae,se){var ce=ae.length,pe=ce*8-se-1,me=(1<<pe)-1,he=me>>1,ye=pe-7,De=ce-1,Me=ae[De--],Be=Me&127,Pe;for(Me>>=7;ye>0;)Be=Be*256+ae[De--],ye-=8;for(Pe=Be&(1<<-ye)-1,Be>>=-ye,ye+=se;ye>0;)Pe=Pe*256+ae[De--],ye-=8;if(Be===0)Be=1-he;else{if(Be===me)return Pe?NaN:Me?-1/0:1/0;Pe=Pe+oe(2,se),Be=Be-he}return(Me?-1:1)*Pe*oe(2,Be-se)};Te.exports={pack:ne,unpack:re}},{"../internals/global":163}],170:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/function-uncurry-this"),ie=a("../internals/fails"),oe=a("../internals/classof-raw"),ee=z.Object,le=E("".split);Te.exports=ie(function(){return!ee("z").propertyIsEnumerable(0)})?function(x){return oe(x)=="String"?le(x,""):ee(x)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(a,Te,be){var z=a("../internals/is-callable"),E=a("../internals/is-object"),ie=a("../internals/object-set-prototype-of");Te.exports=function(oe,ee,le){var x,ne;return ie&&z(x=ee.constructor)&&x!==le&&E(ne=x.prototype)&&ne!==le.prototype&&ie(oe,ne),oe}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=a("../internals/is-callable"),ie=a("../internals/shared-store"),oe=z(Function.toString);E(ie.inspectSource)||(ie.inspectSource=function(ee){return oe(ee)}),Te.exports=ie.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(a,Te,be){var z=a("../internals/native-weak-map"),E=a("../internals/global"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/is-object"),ee=a("../internals/create-non-enumerable-property"),le=a("../internals/has-own-property"),x=a("../internals/shared-store"),ne=a("../internals/shared-key"),re=a("../internals/hidden-keys"),ae="Object already initialized",se=E.TypeError,ce=E.WeakMap,pe,me,he,ye=function(je){return he(je)?me(je):pe(je,{})},De=function(je){return function(ke){var Le;if(!oe(ke)||(Le=me(ke)).type!==je)throw se("Incompatible receiver, "+je+" required");return Le}};if(z||x.state){var Me=x.state||(x.state=new ce),Be=ie(Me.get),Pe=ie(Me.has),Ce=ie(Me.set);pe=function(je,ke){if(Pe(Me,je))throw new se(ae);return ke.facade=je,Ce(Me,je,ke),ke},me=function(je){return Be(Me,je)||{}},he=function(je){return Pe(Me,je)}}else{var Ee=ne("state");re[Ee]=!0,pe=function(je,ke){if(le(je,Ee))throw new se(ae);return ke.facade=je,ee(je,Ee,ke),ke},me=function(je){return le(je,Ee)?je[Ee]:{}},he=function(je){return le(je,Ee)}}Te.exports={set:pe,get:me,has:he,enforce:ye,getterFor:De}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(a,Te,be){var z=a("../internals/well-known-symbol"),E=a("../internals/iterators"),ie=z("iterator"),oe=Array.prototype;Te.exports=function(ee){return ee!==void 0&&(E.Array===ee||oe[ie]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(a,Te,be){var z=a("../internals/classof-raw");Te.exports=Array.isArray||function(ie){return z(ie)=="Array"}},{"../internals/classof-raw":123}],176:[function(a,Te,be){Te.exports=function(z){return typeof z=="function"}},{}],177:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=a("../internals/fails"),ie=a("../internals/is-callable"),oe=a("../internals/classof"),ee=a("../internals/get-built-in"),le=a("../internals/inspect-source"),x=function(){},ne=[],re=ee("Reflect","construct"),ae=/^\s*(?:class|function)\b/,se=z(ae.exec),ce=!ae.exec(x),pe=function(ye){if(!ie(ye))return!1;try{return re(x,ne,ye),!0}catch(De){return!1}},me=function(ye){if(!ie(ye))return!1;switch(oe(ye)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ce||!!se(ae,le(ye))}catch(De){return!0}};me.sham=!0,Te.exports=!re||E(function(){var he;return pe(pe.call)||!pe(Object)||!pe(function(){he=!0})||he})?me:pe},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(a,Te,be){var z=a("../internals/fails"),E=a("../internals/is-callable"),ie=/#|\.prototype\./,oe=function(re,ae){var se=le[ee(re)];return se==ne?!0:se==x?!1:E(ae)?z(ae):!!ae},ee=oe.normalize=function(re){return String(re).replace(ie,".").toLowerCase()},le=oe.data={},x=oe.NATIVE="N",ne=oe.POLYFILL="P";Te.exports=oe},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(a,Te,be){var z=a("../internals/is-object"),E=Math.floor;Te.exports=Number.isInteger||function(oe){return!z(oe)&&isFinite(oe)&&E(oe)===oe}},{"../internals/is-object":180}],180:[function(a,Te,be){var z=a("../internals/is-callable");Te.exports=function(E){return typeof E=="object"?E!==null:z(E)}},{"../internals/is-callable":176}],181:[function(a,Te,be){Te.exports=!1},{}],182:[function(a,Te,be){var z=a("../internals/is-object"),E=a("../internals/classof-raw"),ie=a("../internals/well-known-symbol"),oe=ie("match");Te.exports=function(ee){var le;return z(ee)&&((le=ee[oe])!==void 0?!!le:E(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/get-built-in"),ie=a("../internals/is-callable"),oe=a("../internals/object-is-prototype-of"),ee=a("../internals/use-symbol-as-uid"),le=z.Object;Te.exports=ee?function(x){return typeof x=="symbol"}:function(x){var ne=E("Symbol");return ie(ne)&&oe(ne.prototype,le(x))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/function-bind-context"),ie=a("../internals/function-call"),oe=a("../internals/an-object"),ee=a("../internals/try-to-string"),le=a("../internals/is-array-iterator-method"),x=a("../internals/length-of-array-like"),ne=a("../internals/object-is-prototype-of"),re=a("../internals/get-iterator"),ae=a("../internals/get-iterator-method"),se=a("../internals/iterator-close"),ce=z.TypeError,pe=function(he,ye){this.stopped=he,this.result=ye},me=pe.prototype;Te.exports=function(he,ye,De){var Me=De&&De.that,Be=!!(De&&De.AS_ENTRIES),Pe=!!(De&&De.IS_ITERATOR),Ce=!!(De&&De.INTERRUPTED),Ee=E(ye,Me),je,ke,Le,Ae,Se,Ge,Ze,Je=function(Fe){return je&&se(je,"normal",Fe),new pe(!0,Fe)},at=function(Fe){return Be?(oe(Fe),Ce?Ee(Fe[0],Fe[1],Je):Ee(Fe[0],Fe[1])):Ce?Ee(Fe,Je):Ee(Fe)};if(Pe)je=he;else{if(ke=ae(he),!ke)throw ce(ee(he)+" is not iterable");if(le(ke)){for(Le=0,Ae=x(he);Ae>Le;Le++)if(Se=at(he[Le]),Se&&ne(me,Se))return Se;return new pe(!1)}je=re(he,ke)}for(Ge=je.next;!(Ze=ie(Ge,je)).done;){try{Se=at(Ze.value)}catch(Fe){se(je,"throw",Fe)}if(typeof Se=="object"&&Se&&ne(me,Se))return Se}return new pe(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(a,Te,be){var z=a("../internals/function-call"),E=a("../internals/an-object"),ie=a("../internals/get-method");Te.exports=function(oe,ee,le){var x,ne;E(oe);try{if(x=ie(oe,"return"),!x){if(ee==="throw")throw le;return le}x=z(x,oe)}catch(re){ne=!0,x=re}if(ee==="throw")throw le;if(ne)throw x;return E(x),le}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(a,Te,be){"use strict";var z=a("../internals/fails"),E=a("../internals/is-callable"),ie=a("../internals/object-create"),oe=a("../internals/object-get-prototype-of"),ee=a("../internals/redefine"),le=a("../internals/well-known-symbol"),x=a("../internals/is-pure"),ne=le("iterator"),re=!1,ae,se,ce;[].keys&&(ce=[].keys(),"next"in ce?(se=oe(oe(ce)),se!==Object.prototype&&(ae=se)):re=!0);var pe=ae==null||z(function(){var me={};return ae[ne].call(me)!==me});pe?ae={}:x&&(ae=ie(ae)),E(ae[ne])||ee(ae,ne,function(){return this}),Te.exports={IteratorPrototype:ae,BUGGY_SAFARI_ITERATORS:re}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(a,Te,be){arguments[4][165][0].apply(be,arguments)},{dup:165}],188:[function(a,Te,be){var z=a("../internals/to-length");Te.exports=function(E){return z(E.length)}},{"../internals/to-length":249}],189:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/function-bind-context"),ie=a("../internals/object-get-own-property-descriptor").f,oe=a("../internals/task").set,ee=a("../internals/engine-is-ios"),le=a("../internals/engine-is-ios-pebble"),x=a("../internals/engine-is-webos-webkit"),ne=a("../internals/engine-is-node"),re=z.MutationObserver||z.WebKitMutationObserver,ae=z.document,se=z.process,ce=z.Promise,pe=ie(z,"queueMicrotask"),me=pe&&pe.value,he,ye,De,Me,Be,Pe,Ce,Ee;me||(he=function(){var je,ke;for(ne&&(je=se.domain)&&je.exit();ye;){ke=ye.fn,ye=ye.next;try{ke()}catch(Le){throw ye?Me():De=void 0,Le}}De=void 0,je&&je.enter()},!ee&&!ne&&!x&&re&&ae?(Be=!0,Pe=ae.createTextNode(""),new re(he).observe(Pe,{characterData:!0}),Me=function(){Pe.data=Be=!Be}):!le&&ce&&ce.resolve?(Ce=ce.resolve(void 0),Ce.constructor=ce,Ee=E(Ce.then,Ce),Me=function(){Ee(he)}):ne?Me=function(){se.nextTick(he)}:(oe=E(oe,z),Me=function(){oe(he)})),Te.exports=me||function(je){var ke={fn:je,next:void 0};De&&(De.next=ke),ye||(ye=ke,Me()),De=ke}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(a,Te,be){var z=a("../internals/native-symbol");Te.exports=z&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(a,Te,be){var z=a("../internals/engine-v8-version"),E=a("../internals/fails");Te.exports=!!Object.getOwnPropertySymbols&&!E(function(){var ie=Symbol();return!String(ie)||!(Object(ie)instanceof Symbol)||!Symbol.sham&&z&&z<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/is-callable"),ie=a("../internals/inspect-source"),oe=z.WeakMap;Te.exports=E(oe)&&/native code/.test(ie(oe))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(a,Te,be){"use strict";var z=a("../internals/a-callable"),E=function(ie){var oe,ee;this.promise=new ie(function(le,x){if(oe!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");oe=le,ee=x}),this.resolve=z(oe),this.reject=z(ee)};Te.exports.f=function(ie){return new E(ie)}},{"../internals/a-callable":95}],194:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/is-regexp"),ie=z.TypeError;Te.exports=function(oe){if(E(oe))throw ie("The method doesn't accept regular expressions");return oe}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(a,Te,be){"use strict";var z=a("../internals/descriptors"),E=a("../internals/function-uncurry-this"),ie=a("../internals/function-call"),oe=a("../internals/fails"),ee=a("../internals/object-keys"),le=a("../internals/object-get-own-property-symbols"),x=a("../internals/object-property-is-enumerable"),ne=a("../internals/to-object"),re=a("../internals/indexed-object"),ae=Object.assign,se=Object.defineProperty,ce=E([].concat);Te.exports=!ae||oe(function(){if(z&&ae({b:1},ae(se({},"a",{enumerable:!0,get:function(){se(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var pe={},me={},he=Symbol(),ye="abcdefghijklmnopqrst";return pe[he]=7,ye.split("").forEach(function(De){me[De]=De}),ae({},pe)[he]!=7||ee(ae({},me)).join("")!=ye})?function(me,he){for(var ye=ne(me),De=arguments.length,Me=1,Be=le.f,Pe=x.f;De>Me;)for(var Ce=re(arguments[Me++]),Ee=Be?ce(ee(Ce),Be(Ce)):ee(Ce),je=Ee.length,ke=0,Le;je>ke;)Le=Ee[ke++],(!z||ie(Pe,Ce,Le))&&(ye[Le]=Ce[Le]);return ye}:ae},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(a,Te,be){var z=a("../internals/an-object"),E=a("../internals/object-define-properties"),ie=a("../internals/enum-bug-keys"),oe=a("../internals/hidden-keys"),ee=a("../internals/html"),le=a("../internals/document-create-element"),x=a("../internals/shared-key"),ne=">",re="<",ae="prototype",se="script",ce=x("IE_PROTO"),pe=function(){},me=function(Be){return re+se+ne+Be+re+"/"+se+ne},he=function(Be){Be.write(me("")),Be.close();var Pe=Be.parentWindow.Object;return Be=null,Pe},ye=function(){var Be=le("iframe"),Pe="java"+se+":",Ce;return Be.style.display="none",ee.appendChild(Be),Be.src=String(Pe),Ce=Be.contentWindow.document,Ce.open(),Ce.write(me("document.F=Object")),Ce.close(),Ce.F},De,Me=function(){try{De=new ActiveXObject("htmlfile")}catch(Pe){}Me=typeof document!="undefined"?document.domain&&De?he(De):ye():he(De);for(var Be=ie.length;Be--;)delete Me[ae][ie[Be]];return Me()};oe[ce]=!0,Te.exports=Object.create||function(Pe,Ce){var Ee;return Pe!==null?(pe[ae]=z(Pe),Ee=new pe,pe[ae]=null,Ee[ce]=Pe):Ee=Me(),Ce===void 0?Ee:E.f(Ee,Ce)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(a,Te,be){var z=a("../internals/descriptors"),E=a("../internals/v8-prototype-define-bug"),ie=a("../internals/object-define-property"),oe=a("../internals/an-object"),ee=a("../internals/to-indexed-object"),le=a("../internals/object-keys");be.f=z&&!E?Object.defineProperties:function(ne,re){oe(ne);for(var ae=ee(re),se=le(re),ce=se.length,pe=0,me;ce>pe;)ie.f(ne,me=se[pe++],ae[me]);return ne}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/descriptors"),ie=a("../internals/ie8-dom-define"),oe=a("../internals/v8-prototype-define-bug"),ee=a("../internals/an-object"),le=a("../internals/to-property-key"),x=z.TypeError,ne=Object.defineProperty,re=Object.getOwnPropertyDescriptor,ae="enumerable",se="configurable",ce="writable";be.f=E?oe?function(me,he,ye){if(ee(me),he=le(he),ee(ye),typeof me=="function"&&he==="prototype"&&"value"in ye&&ce in ye&&!ye[ce]){var De=re(me,he);De&&De[ce]&&(me[he]=ye.value,ye={configurable:se in ye?ye[se]:De[se],enumerable:ae in ye?ye[ae]:De[ae],writable:!1})}return ne(me,he,ye)}:ne:function(me,he,ye){if(ee(me),he=le(he),ee(ye),ie)try{return ne(me,he,ye)}catch(De){}if("get"in ye||"set"in ye)throw x("Accessors not supported");return"value"in ye&&(me[he]=ye.value),me}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(a,Te,be){var z=a("../internals/descriptors"),E=a("../internals/function-call"),ie=a("../internals/object-property-is-enumerable"),oe=a("../internals/create-property-descriptor"),ee=a("../internals/to-indexed-object"),le=a("../internals/to-property-key"),x=a("../internals/has-own-property"),ne=a("../internals/ie8-dom-define"),re=Object.getOwnPropertyDescriptor;be.f=z?re:function(se,ce){if(se=ee(se),ce=le(ce),ne)try{return re(se,ce)}catch(pe){}if(x(se,ce))return oe(!E(ie.f,se,ce),se[ce])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(a,Te,be){var z=a("../internals/classof-raw"),E=a("../internals/to-indexed-object"),ie=a("../internals/object-get-own-property-names").f,oe=a("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],le=function(x){try{return ie(x)}catch(ne){return oe(ee)}};Te.exports.f=function(ne){return ee&&z(ne)=="Window"?le(ne):ie(E(ne))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(a,Te,be){var z=a("../internals/object-keys-internal"),E=a("../internals/enum-bug-keys"),ie=E.concat("length","prototype");be.f=Object.getOwnPropertyNames||function(ee){return z(ee,ie)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(a,Te,be){be.f=Object.getOwnPropertySymbols},{}],203:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/has-own-property"),ie=a("../internals/is-callable"),oe=a("../internals/to-object"),ee=a("../internals/shared-key"),le=a("../internals/correct-prototype-getter"),x=ee("IE_PROTO"),ne=z.Object,re=ne.prototype;Te.exports=le?ne.getPrototypeOf:function(ae){var se=oe(ae);if(E(se,x))return se[x];var ce=se.constructor;return ie(ce)&&se instanceof ce?ce.prototype:se instanceof ne?re:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(a,Te,be){var z=a("../internals/function-uncurry-this");Te.exports=z({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=a("../internals/has-own-property"),ie=a("../internals/to-indexed-object"),oe=a("../internals/array-includes").indexOf,ee=a("../internals/hidden-keys"),le=z([].push);Te.exports=function(x,ne){var re=ie(x),ae=0,se=[],ce;for(ce in re)!E(ee,ce)&&E(re,ce)&&le(se,ce);for(;ne.length>ae;)E(re,ce=ne[ae++])&&(~oe(se,ce)||le(se,ce));return se}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(a,Te,be){var z=a("../internals/object-keys-internal"),E=a("../internals/enum-bug-keys");Te.exports=Object.keys||function(oe){return z(oe,E)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(a,Te,be){"use strict";var z={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,ie=E&&!z.call({1:2},1);be.f=ie?function(ee){var le=E(this,ee);return!!le&&le.enumerable}:z},{}],208:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=a("../internals/an-object"),ie=a("../internals/a-possible-prototype");Te.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var oe=!1,ee={},le;try{le=z(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),le(ee,[]),oe=ee instanceof Array}catch(x){}return function(ne,re){return E(ne),ie(re),oe?le(ne,re):ne.__proto__=re,ne}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(a,Te,be){var z=a("../internals/descriptors"),E=a("../internals/function-uncurry-this"),ie=a("../internals/object-keys"),oe=a("../internals/to-indexed-object"),ee=a("../internals/object-property-is-enumerable").f,le=E(ee),x=E([].push),ne=function(re){return function(ae){for(var se=oe(ae),ce=ie(se),pe=ce.length,me=0,he=[],ye;pe>me;)ye=ce[me++],(!z||le(se,ye))&&x(he,re?[ye,se[ye]]:se[ye]);return he}};Te.exports={entries:ne(!0),values:ne(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(a,Te,be){"use strict";var z=a("../internals/to-string-tag-support"),E=a("../internals/classof");Te.exports=z?{}.toString:function(){return"[object "+E(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/function-call"),ie=a("../internals/is-callable"),oe=a("../internals/is-object"),ee=z.TypeError;Te.exports=function(le,x){var ne,re;if(x==="string"&&ie(ne=le.toString)&&!oe(re=E(ne,le))||ie(ne=le.valueOf)&&!oe(re=E(ne,le))||x!=="string"&&ie(ne=le.toString)&&!oe(re=E(ne,le)))return re;throw ee("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(a,Te,be){var z=a("../internals/get-built-in"),E=a("../internals/function-uncurry-this"),ie=a("../internals/object-get-own-property-names"),oe=a("../internals/object-get-own-property-symbols"),ee=a("../internals/an-object"),le=E([].concat);Te.exports=z("Reflect","ownKeys")||function(ne){var re=ie.f(ee(ne)),ae=oe.f;return ae?le(re,ae(ne)):re}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(a,Te,be){var z=a("../internals/global");Te.exports=z},{"../internals/global":163}],214:[function(a,Te,be){Te.exports=function(z){try{return{error:!1,value:z()}}catch(E){return{error:!0,value:E}}}},{}],215:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/promise-native-constructor"),ie=a("../internals/is-callable"),oe=a("../internals/is-forced"),ee=a("../internals/inspect-source"),le=a("../internals/well-known-symbol"),x=a("../internals/engine-is-browser"),ne=a("../internals/is-pure"),re=a("../internals/engine-v8-version"),ae=E&&E.prototype,se=le("species"),ce=!1,pe=ie(z.PromiseRejectionEvent),me=oe("Promise",function(){var he=ee(E),ye=he!==String(E);if(!ye&&re===66||ne&&!(ae.catch&&ae.finally))return!0;if(re>=51&&/native code/.test(he))return!1;var De=new E(function(Pe){Pe(1)}),Me=function(Pe){Pe(function(){},function(){})},Be=De.constructor={};return Be[se]=Me,ce=De.then(function(){})instanceof Me,ce?!ye&&x&&!pe:!0});Te.exports={CONSTRUCTOR:me,REJECTION_EVENT:pe,SUBCLASSING:ce}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(a,Te,be){var z=a("../internals/global");Te.exports=z.Promise},{"../internals/global":163}],217:[function(a,Te,be){var z=a("../internals/an-object"),E=a("../internals/is-object"),ie=a("../internals/new-promise-capability");Te.exports=function(oe,ee){if(z(oe),E(ee)&&ee.constructor===oe)return ee;var le=ie.f(oe),x=le.resolve;return x(ee),le.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(a,Te,be){var z=a("../internals/promise-native-constructor"),E=a("../internals/check-correctness-of-iteration"),ie=a("../internals/promise-constructor-detection").CONSTRUCTOR;Te.exports=ie||!E(function(oe){z.all(oe).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(a,Te,be){var z=a("../internals/object-define-property").f;Te.exports=function(E,ie,oe){oe in E||z(E,oe,{configurable:!0,get:function(){return ie[oe]},set:function(ee){ie[oe]=ee}})}},{"../internals/object-define-property":198}],220:[function(a,Te,be){var z=function(){this.head=null,this.tail=null};z.prototype={add:function(E){var ie={item:E,next:null};this.head?this.tail.next=ie:this.head=ie,this.tail=ie},get:function(){var E=this.head;if(E)return this.head=E.next,this.tail===E&&(this.tail=null),E.item}},Te.exports=z},{}],221:[function(a,Te,be){var z=a("../internals/redefine");Te.exports=function(E,ie,oe){for(var ee in ie)z(E,ee,ie[ee],oe);return E}},{"../internals/redefine":222}],222:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/is-callable"),ie=a("../internals/has-own-property"),oe=a("../internals/create-non-enumerable-property"),ee=a("../internals/set-global"),le=a("../internals/inspect-source"),x=a("../internals/internal-state"),ne=a("../internals/function-name").CONFIGURABLE,re=x.get,ae=x.enforce,se=String(String).split("String");(Te.exports=function(ce,pe,me,he){var ye=he?!!he.unsafe:!1,De=he?!!he.enumerable:!1,Me=he?!!he.noTargetGet:!1,Be=he&&he.name!==void 0?he.name:pe,Pe;if(E(me)&&(String(Be).slice(0,7)==="Symbol("&&(Be="["+String(Be).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ie(me,"name")||ne&&me.name!==Be)&&oe(me,"name",Be),Pe=ae(me),Pe.source||(Pe.source=se.join(typeof Be=="string"?Be:""))),ce===z){De?ce[pe]=me:ee(pe,me);return}else ye?!Me&&ce[pe]&&(De=!0):delete ce[pe];De?ce[pe]=me:oe(ce,pe,me)})(Function.prototype,"toString",function(){return E(this)&&re(this).source||le(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/function-call"),ie=a("../internals/an-object"),oe=a("../internals/is-callable"),ee=a("../internals/classof-raw"),le=a("../internals/regexp-exec"),x=z.TypeError;Te.exports=function(ne,re){var ae=ne.exec;if(oe(ae)){var se=E(ae,ne,re);return se!==null&&ie(se),se}if(ee(ne)==="RegExp")return E(le,ne,re);throw x("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(a,Te,be){"use strict";var z=a("../internals/function-call"),E=a("../internals/function-uncurry-this"),ie=a("../internals/to-string"),oe=a("../internals/regexp-flags"),ee=a("../internals/regexp-sticky-helpers"),le=a("../internals/shared"),x=a("../internals/object-create"),ne=a("../internals/internal-state").get,re=a("../internals/regexp-unsupported-dot-all"),ae=a("../internals/regexp-unsupported-ncg"),se=le("native-string-replace",String.prototype.replace),ce=RegExp.prototype.exec,pe=ce,me=E("".charAt),he=E("".indexOf),ye=E("".replace),De=E("".slice),Me=function(){var Ee=/a/,je=/b*/g;return z(ce,Ee,"a"),z(ce,je,"a"),Ee.lastIndex!==0||je.lastIndex!==0}(),Be=ee.BROKEN_CARET,Pe=/()??/.exec("")[1]!==void 0,Ce=Me||Pe||Be||re||ae;Ce&&(pe=function(je){var ke=this,Le=ne(ke),Ae=ie(je),Se=Le.raw,Ge,Ze,Je,at,Fe,Ke,it;if(Se)return Se.lastIndex=ke.lastIndex,Ge=z(pe,Se,Ae),ke.lastIndex=Se.lastIndex,Ge;var rt=Le.groups,et=Be&&ke.sticky,$e=z(oe,ke),Xe=ke.source,Ve=0,nt=Ae;if(et&&($e=ye($e,"y",""),he($e,"g")===-1&&($e+="g"),nt=De(Ae,ke.lastIndex),ke.lastIndex>0&&(!ke.multiline||ke.multiline&&me(Ae,ke.lastIndex-1)!==`
|
|
|
`)&&(Xe="(?: "+Xe+")",nt=" "+nt,Ve++),Ze=new RegExp("^(?:"+Xe+")",$e)),Pe&&(Ze=new RegExp("^"+Xe+"$(?!\\s)",$e)),Me&&(Je=ke.lastIndex),at=z(ce,et?Ze:ke,nt),et?at?(at.input=De(at.input,Ve),at[0]=De(at[0],Ve),at.index=ke.lastIndex,ke.lastIndex+=at[0].length):ke.lastIndex=0:Me&&at&&(ke.lastIndex=ke.global?at.index+at[0].length:Je),Pe&&at&&at.length>1&&z(se,at[0],Ze,function(){for(Fe=1;Fe<arguments.length-2;Fe++)arguments[Fe]===void 0&&(at[Fe]=void 0)}),at&&rt)for(at.groups=Ke=x(null),Fe=0;Fe<rt.length;Fe++)it=rt[Fe],Ke[it[0]]=at[it[1]];return at}),Te.exports=pe},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(a,Te,be){"use strict";var z=a("../internals/an-object");Te.exports=function(){var E=z(this),ie="";return E.hasIndices&&(ie+="d"),E.global&&(ie+="g"),E.ignoreCase&&(ie+="i"),E.multiline&&(ie+="m"),E.dotAll&&(ie+="s"),E.unicode&&(ie+="u"),E.sticky&&(ie+="y"),ie}},{"../internals/an-object":101}],226:[function(a,Te,be){var z=a("../internals/function-call"),E=a("../internals/has-own-property"),ie=a("../internals/object-is-prototype-of"),oe=a("../internals/regexp-flags"),ee=RegExp.prototype;Te.exports=function(le){var x=le.flags;return x===void 0&&!("flags"in ee)&&!E(le,"flags")&&ie(ee,le)?z(oe,le):x}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(a,Te,be){var z=a("../internals/fails"),E=a("../internals/global"),ie=E.RegExp,oe=z(function(){var x=ie("a","y");return x.lastIndex=2,x.exec("abcd")!=null}),ee=oe||z(function(){return!ie("a","y").sticky}),le=oe||z(function(){var x=ie("^r","gy");return x.lastIndex=2,x.exec("str")!=null});Te.exports={BROKEN_CARET:le,MISSED_STICKY:ee,UNSUPPORTED_Y:oe}},{"../internals/fails":150,"../internals/global":163}],228:[function(a,Te,be){var z=a("../internals/fails"),E=a("../internals/global"),ie=E.RegExp;Te.exports=z(function(){var oe=ie(".","s");return!(oe.dotAll&&oe.exec(`
|
|
|
`)&&oe.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(a,Te,be){var z=a("../internals/fails"),E=a("../internals/global"),ie=E.RegExp;Te.exports=z(function(){var oe=ie("(?<a>b)","g");return oe.exec("b").groups.a!=="b"||"b".replace(oe,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(a,Te,be){var z=a("../internals/global"),E=z.TypeError;Te.exports=function(ie){if(ie==null)throw E("Can't call method on "+ie);return ie}},{"../internals/global":163}],231:[function(a,Te,be){Te.exports=Object.is||function(E,ie){return E===ie?E!==0||1/E===1/ie:E!=E&&ie!=ie}},{}],232:[function(a,Te,be){var z=a("../internals/global"),E=Object.defineProperty;Te.exports=function(ie,oe){try{E(z,ie,{value:oe,configurable:!0,writable:!0})}catch(ee){z[ie]=oe}return oe}},{"../internals/global":163}],233:[function(a,Te,be){"use strict";var z=a("../internals/get-built-in"),E=a("../internals/object-define-property"),ie=a("../internals/well-known-symbol"),oe=a("../internals/descriptors"),ee=ie("species");Te.exports=function(le){var x=z(le),ne=E.f;oe&&x&&!x[ee]&&ne(x,ee,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(a,Te,be){var z=a("../internals/object-define-property").f,E=a("../internals/has-own-property"),ie=a("../internals/well-known-symbol"),oe=ie("toStringTag");Te.exports=function(ee,le,x){ee&&!x&&(ee=ee.prototype),ee&&!E(ee,oe)&&z(ee,oe,{configurable:!0,value:le})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(a,Te,be){var z=a("../internals/shared"),E=a("../internals/uid"),ie=z("keys");Te.exports=function(oe){return ie[oe]||(ie[oe]=E(oe))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/set-global"),ie="__core-js_shared__",oe=z[ie]||E(ie,{});Te.exports=oe},{"../internals/global":163,"../internals/set-global":232}],237:[function(a,Te,be){var z=a("../internals/is-pure"),E=a("../internals/shared-store");(Te.exports=function(ie,oe){return E[ie]||(E[ie]=oe!==void 0?oe:{})})("versions",[]).push({version:"3.22.1",mode:z?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(a,Te,be){var z=a("../internals/an-object"),E=a("../internals/a-constructor"),ie=a("../internals/well-known-symbol"),oe=ie("species");Te.exports=function(ee,le){var x=z(ee).constructor,ne;return x===void 0||(ne=z(x)[oe])==null?le:E(ne)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=a("../internals/to-integer-or-infinity"),ie=a("../internals/to-string"),oe=a("../internals/require-object-coercible"),ee=z("".charAt),le=z("".charCodeAt),x=z("".slice),ne=function(re){return function(ae,se){var ce=ie(oe(ae)),pe=E(se),me=ce.length,he,ye;return pe<0||pe>=me?re?"":void 0:(he=le(ce,pe),he<55296||he>56319||pe+1===me||(ye=le(ce,pe+1))<56320||ye>57343?re?ee(ce,pe):he:re?x(ce,pe,pe+2):(he-55296<<10)+(ye-56320)+65536)}};Te.exports={codeAt:ne(!1),charAt:ne(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(a,Te,be){var z=a("../internals/function-name").PROPER,E=a("../internals/fails"),ie=a("../internals/whitespaces"),oe="\u200B\x85\u180E";Te.exports=function(ee){return E(function(){return!!ie[ee]()||oe[ee]()!==oe||z&&ie[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=a("../internals/require-object-coercible"),ie=a("../internals/to-string"),oe=a("../internals/whitespaces"),ee=z("".replace),le="["+oe+"]",x=RegExp("^"+le+le+"*"),ne=RegExp(le+le+"*$"),re=function(ae){return function(se){var ce=ie(E(se));return ae&1&&(ce=ee(ce,x,"")),ae&2&&(ce=ee(ce,ne,"")),ce}};Te.exports={start:re(1),end:re(2),trim:re(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(a,Te,be){var z=a("../internals/function-call"),E=a("../internals/get-built-in"),ie=a("../internals/well-known-symbol"),oe=a("../internals/redefine");Te.exports=function(){var ee=E("Symbol"),le=ee&&ee.prototype,x=le&&le.valueOf,ne=ie("toPrimitive");le&&!le[ne]&&oe(le,ne,function(re){return z(x,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/function-apply"),ie=a("../internals/function-bind-context"),oe=a("../internals/is-callable"),ee=a("../internals/has-own-property"),le=a("../internals/fails"),x=a("../internals/html"),ne=a("../internals/array-slice"),re=a("../internals/document-create-element"),ae=a("../internals/validate-arguments-length"),se=a("../internals/engine-is-ios"),ce=a("../internals/engine-is-node"),pe=z.setImmediate,me=z.clearImmediate,he=z.process,ye=z.Dispatch,De=z.Function,Me=z.MessageChannel,Be=z.String,Pe=0,Ce={},Ee="onreadystatechange",je,ke,Le,Ae;try{je=z.location}catch(at){}var Se=function(at){if(ee(Ce,at)){var Fe=Ce[at];delete Ce[at],Fe()}},Ge=function(at){return function(){Se(at)}},Ze=function(at){Se(at.data)},Je=function(at){z.postMessage(Be(at),je.protocol+"//"+je.host)};(!pe||!me)&&(pe=function(Fe){ae(arguments.length,1);var Ke=oe(Fe)?Fe:De(Fe),it=ne(arguments,1);return Ce[++Pe]=function(){E(Ke,void 0,it)},ke(Pe),Pe},me=function(Fe){delete Ce[Fe]},ce?ke=function(at){he.nextTick(Ge(at))}:ye&&ye.now?ke=function(at){ye.now(Ge(at))}:Me&&!se?(Le=new Me,Ae=Le.port2,Le.port1.onmessage=Ze,ke=ie(Ae.postMessage,Ae)):z.addEventListener&&oe(z.postMessage)&&!z.importScripts&&je&&je.protocol!=="file:"&&!le(Je)?(ke=Je,z.addEventListener("message",Ze,!1)):Ee in re("script")?ke=function(at){x.appendChild(re("script"))[Ee]=function(){x.removeChild(this),Se(at)}}:ke=function(at){setTimeout(Ge(at),0)}),Te.exports={set:pe,clear:me}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(a,Te,be){var z=a("../internals/function-uncurry-this");Te.exports=z(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(a,Te,be){var z=a("../internals/to-integer-or-infinity"),E=Math.max,ie=Math.min;Te.exports=function(oe,ee){var le=z(oe);return le<0?E(le+ee,0):ie(le,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/to-integer-or-infinity"),ie=a("../internals/to-length"),oe=z.RangeError;Te.exports=function(ee){if(ee===void 0)return 0;var le=E(ee),x=ie(le);if(le!==x)throw oe("Wrong length or index");return x}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(a,Te,be){var z=a("../internals/indexed-object"),E=a("../internals/require-object-coercible");Te.exports=function(ie){return z(E(ie))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(a,Te,be){var z=Math.ceil,E=Math.floor;Te.exports=function(ie){var oe=+ie;return oe!==oe||oe===0?0:(oe>0?E:z)(oe)}},{}],249:[function(a,Te,be){var z=a("../internals/to-integer-or-infinity"),E=Math.min;Te.exports=function(ie){return ie>0?E(z(ie),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/require-object-coercible"),ie=z.Object;Te.exports=function(oe){return ie(E(oe))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/to-positive-integer"),ie=z.RangeError;Te.exports=function(oe,ee){var le=E(oe);if(le%ee)throw ie("Wrong offset");return le}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/to-integer-or-infinity"),ie=z.RangeError;Te.exports=function(oe){var ee=E(oe);if(ee<0)throw ie("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/function-call"),ie=a("../internals/is-object"),oe=a("../internals/is-symbol"),ee=a("../internals/get-method"),le=a("../internals/ordinary-to-primitive"),x=a("../internals/well-known-symbol"),ne=z.TypeError,re=x("toPrimitive");Te.exports=function(ae,se){if(!ie(ae)||oe(ae))return ae;var ce=ee(ae,re),pe;if(ce){if(se===void 0&&(se="default"),pe=E(ce,ae,se),!ie(pe)||oe(pe))return pe;throw ne("Can't convert object to primitive value")}return se===void 0&&(se="number"),le(ae,se)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(a,Te,be){var z=a("../internals/to-primitive"),E=a("../internals/is-symbol");Te.exports=function(ie){var oe=z(ie,"string");return E(oe)?oe:oe+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(a,Te,be){var z=a("../internals/well-known-symbol"),E=z("toStringTag"),ie={};ie[E]="z",Te.exports=String(ie)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/classof"),ie=z.String;Te.exports=function(oe){if(E(oe)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ie(oe)}},{"../internals/classof":124,"../internals/global":163}],257:[function(a,Te,be){var z=a("../internals/global"),E=z.String;Te.exports=function(ie){try{return E(ie)}catch(oe){return"Object"}}},{"../internals/global":163}],258:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/global"),ie=a("../internals/function-call"),oe=a("../internals/descriptors"),ee=a("../internals/typed-array-constructors-require-wrappers"),le=a("../internals/array-buffer-view-core"),x=a("../internals/array-buffer"),ne=a("../internals/an-instance"),re=a("../internals/create-property-descriptor"),ae=a("../internals/create-non-enumerable-property"),se=a("../internals/is-integral-number"),ce=a("../internals/to-length"),pe=a("../internals/to-index"),me=a("../internals/to-offset"),he=a("../internals/to-property-key"),ye=a("../internals/has-own-property"),De=a("../internals/classof"),Me=a("../internals/is-object"),Be=a("../internals/is-symbol"),Pe=a("../internals/object-create"),Ce=a("../internals/object-is-prototype-of"),Ee=a("../internals/object-set-prototype-of"),je=a("../internals/object-get-own-property-names").f,ke=a("../internals/typed-array-from"),Le=a("../internals/array-iteration").forEach,Ae=a("../internals/set-species"),Se=a("../internals/object-define-property"),Ge=a("../internals/object-get-own-property-descriptor"),Ze=a("../internals/internal-state"),Je=a("../internals/inherit-if-required"),at=Ze.get,Fe=Ze.set,Ke=Se.f,it=Ge.f,rt=Math.round,et=E.RangeError,$e=x.ArrayBuffer,Xe=$e.prototype,Ve=x.DataView,nt=le.NATIVE_ARRAY_BUFFER_VIEWS,Qe=le.TYPED_ARRAY_CONSTRUCTOR,ct=le.TYPED_ARRAY_TAG,ot=le.TypedArray,qe=le.TypedArrayPrototype,_e=le.aTypedArrayConstructor,Re=le.isTypedArray,te="BYTES_PER_ELEMENT",de="Wrong length",Ne=function(Ue,Ye){_e(Ue);for(var st=0,lt=Ye.length,ft=new Ue(lt);lt>st;)ft[st]=Ye[st++];return ft},ze=function(Ue,Ye){Ke(Ue,Ye,{get:function(){return at(this)[Ye]}})},xe=function(Ue){var Ye;return Ce(Xe,Ue)||(Ye=De(Ue))=="ArrayBuffer"||Ye=="SharedArrayBuffer"},ve=function(Ue,Ye){return Re(Ue)&&!Be(Ye)&&Ye in Ue&&se(+Ye)&&Ye>=0},Oe=function(Ye,st){return st=he(st),ve(Ye,st)?re(2,Ye[st]):it(Ye,st)},We=function(Ye,st,lt){return st=he(st),ve(Ye,st)&&Me(lt)&&ye(lt,"value")&&!ye(lt,"get")&&!ye(lt,"set")&&!lt.configurable&&(!ye(lt,"writable")||lt.writable)&&(!ye(lt,"enumerable")||lt.enumerable)?(Ye[st]=lt.value,Ye):Ke(Ye,st,lt)};oe?(nt||(Ge.f=Oe,Se.f=We,ze(qe,"buffer"),ze(qe,"byteOffset"),ze(qe,"byteLength"),ze(qe,"length")),z({target:"Object",stat:!0,forced:!nt},{getOwnPropertyDescriptor:Oe,defineProperty:We}),Te.exports=function(Ue,Ye,st){var lt=Ue.match(/\d+$/)[0]/8,ft=Ue+(st?"Clamped":"")+"Array",Tt="get"+Ue,St="set"+Ue,Ot=E[ft],yt=Ot,Mt=yt&&yt.prototype,Et={},xt=function(ht,Ct){var $t=at(ht);return $t.view[Tt](Ct*lt+$t.byteOffset,!0)},jt=function(ht,Ct,$t){var Xt=at(ht);st&&($t=($t=rt($t))<0?0:$t>255?255:$t&255),Xt.view[St](Ct*lt+Xt.byteOffset,$t,!0)},At=function(ht,Ct){Ke(ht,Ct,{get:function(){return xt(this,Ct)},set:function($t){return jt(this,Ct,$t)},enumerable:!0})};nt?ee&&(yt=Ye(function(ht,Ct,$t,Xt){return ne(ht,Mt),Je(function(){return Me(Ct)?xe(Ct)?Xt!==void 0?new Ot(Ct,me($t,lt),Xt):$t!==void 0?new Ot(Ct,me($t,lt)):new Ot(Ct):Re(Ct)?Ne(yt,Ct):ie(ke,yt,Ct):new Ot(pe(Ct))}(),ht,yt)}),Ee&&Ee(yt,ot),Le(je(Ot),function(ht){ht in yt||ae(yt,ht,Ot[ht])}),yt.prototype=Mt):(yt=Ye(function(ht,Ct,$t,Xt){ne(ht,Mt);var vt=0,Pt=0,_t,Kt,er;if(!Me(Ct))er=pe(Ct),Kt=er*lt,_t=new $e(Kt);else if(xe(Ct)){_t=Ct,Pt=me($t,lt);var sr=Ct.byteLength;if(Xt===void 0){if(sr%lt||(Kt=sr-Pt,Kt<0))throw et(de)}else if(Kt=ce(Xt)*lt,Kt+Pt>sr)throw et(de);er=Kt/lt}else return Re(Ct)?Ne(yt,Ct):ie(ke,yt,Ct);for(Fe(ht,{buffer:_t,byteOffset:Pt,byteLength:Kt,length:er,view:new Ve(_t)});vt<er;)At(ht,vt++)}),Ee&&Ee(yt,ot),Mt=yt.prototype=Pe(qe)),Mt.constructor!==yt&&ae(Mt,"constructor",yt),ae(Mt,Qe,yt),ct&&ae(Mt,ct,ft),Et[ft]=yt,z({global:!0,forced:yt!=Ot,sham:!nt},Et),te in yt||ae(yt,te,lt),te in Mt||ae(Mt,te,lt),Ae(ft)}):Te.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/fails"),ie=a("../internals/check-correctness-of-iteration"),oe=a("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=z.ArrayBuffer,le=z.Int8Array;Te.exports=!oe||!E(function(){le(1)})||!E(function(){new le(-1)})||!ie(function(x){new le,new le(null),new le(1.5),new le(x)},!0)||E(function(){return new le(new ee(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(a,Te,be){var z=a("../internals/array-from-constructor-and-list"),E=a("../internals/typed-array-species-constructor");Te.exports=function(ie,oe){return z(E(ie),oe)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(a,Te,be){var z=a("../internals/function-bind-context"),E=a("../internals/function-call"),ie=a("../internals/a-constructor"),oe=a("../internals/to-object"),ee=a("../internals/length-of-array-like"),le=a("../internals/get-iterator"),x=a("../internals/get-iterator-method"),ne=a("../internals/is-array-iterator-method"),re=a("../internals/array-buffer-view-core").aTypedArrayConstructor;Te.exports=function(se){var ce=ie(this),pe=oe(se),me=arguments.length,he=me>1?arguments[1]:void 0,ye=he!==void 0,De=x(pe),Me,Be,Pe,Ce,Ee,je;if(De&&!ne(De))for(Ee=le(pe,De),je=Ee.next,pe=[];!(Ce=E(je,Ee)).done;)pe.push(Ce.value);for(ye&&me>2&&(he=z(he,arguments[2])),Be=ee(pe),Pe=new(re(ce))(Be),Me=0;Be>Me;Me++)Pe[Me]=ye?he(pe[Me],Me):pe[Me];return Pe}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(a,Te,be){var z=a("../internals/array-buffer-view-core"),E=a("../internals/species-constructor"),ie=z.TYPED_ARRAY_CONSTRUCTOR,oe=z.aTypedArrayConstructor;Te.exports=function(ee){return oe(E(ee,ee[ie]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(a,Te,be){var z=a("../internals/function-uncurry-this"),E=0,ie=Math.random(),oe=z(1 .toString);Te.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+oe(++E+ie,36)}},{"../internals/function-uncurry-this":157}],264:[function(a,Te,be){var z=a("../internals/native-symbol");Te.exports=z&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(a,Te,be){var z=a("../internals/descriptors"),E=a("../internals/fails");Te.exports=z&&E(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(a,Te,be){var z=a("../internals/global"),E=z.TypeError;Te.exports=function(ie,oe){if(ie<oe)throw E("Not enough arguments");return ie}},{"../internals/global":163}],267:[function(a,Te,be){var z=a("../internals/well-known-symbol");be.f=z},{"../internals/well-known-symbol":268}],268:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/shared"),ie=a("../internals/has-own-property"),oe=a("../internals/uid"),ee=a("../internals/native-symbol"),le=a("../internals/use-symbol-as-uid"),x=E("wks"),ne=z.Symbol,re=ne&&ne.for,ae=le?ne:ne&&ne.withoutSetter||oe;Te.exports=function(se){if(!ie(x,se)||!(ee||typeof x[se]=="string")){var ce="Symbol."+se;ee&&ie(ne,se)?x[se]=ne[se]:le&&re?x[se]=re(ce):x[se]=ae(ce)}return x[se]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(a,Te,be){Te.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/global"),ie=a("../internals/array-buffer"),oe=a("../internals/set-species"),ee="ArrayBuffer",le=ie[ee],x=E[ee];z({global:!0,forced:x!==le},{ArrayBuffer:le}),oe(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/function-uncurry-this"),ie=a("../internals/fails"),oe=a("../internals/array-buffer"),ee=a("../internals/an-object"),le=a("../internals/to-absolute-index"),x=a("../internals/to-length"),ne=a("../internals/species-constructor"),re=oe.ArrayBuffer,ae=oe.DataView,se=ae.prototype,ce=E(re.prototype.slice),pe=E(se.getUint8),me=E(se.setUint8),he=ie(function(){return!new re(2).slice(1,void 0).byteLength});z({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:he},{slice:function(De,Me){if(ce&&Me===void 0)return ce(ee(this),De);for(var Be=ee(this).byteLength,Pe=le(De,Be),Ce=le(Me===void 0?Be:Me,Be),Ee=new(ne(this,re))(x(Ce-Pe)),je=new ae(this),ke=new ae(Ee),Le=0;Pe<Ce;)me(ke,Le++,pe(je,Pe++));return Ee}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/global"),ie=a("../internals/fails"),oe=a("../internals/is-array"),ee=a("../internals/is-object"),le=a("../internals/to-object"),x=a("../internals/length-of-array-like"),ne=a("../internals/create-property"),re=a("../internals/array-species-create"),ae=a("../internals/array-method-has-species-support"),se=a("../internals/well-known-symbol"),ce=a("../internals/engine-v8-version"),pe=se("isConcatSpreadable"),me=9007199254740991,he="Maximum allowed index exceeded",ye=E.TypeError,De=ce>=51||!ie(function(){var Ce=[];return Ce[pe]=!1,Ce.concat()[0]!==Ce}),Me=ae("concat"),Be=function(Ce){if(!ee(Ce))return!1;var Ee=Ce[pe];return Ee!==void 0?!!Ee:oe(Ce)},Pe=!De||!Me;z({target:"Array",proto:!0,forced:Pe},{concat:function(Ee){var je=le(this),ke=re(je,0),Le=0,Ae,Se,Ge,Ze,Je;for(Ae=-1,Ge=arguments.length;Ae<Ge;Ae++)if(Je=Ae===-1?je:arguments[Ae],Be(Je)){if(Ze=x(Je),Le+Ze>me)throw ye(he);for(Se=0;Se<Ze;Se++,Le++)Se in Je&&ne(ke,Le,Je[Se])}else{if(Le>=me)throw ye(he);ne(ke,Le++,Je)}return ke.length=Le,ke}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(a,Te,be){var z=a("../internals/export"),E=a("../internals/array-fill"),ie=a("../internals/add-to-unscopables");z({target:"Array",proto:!0},{fill:E}),ie("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/array-iteration").filter,ie=a("../internals/array-method-has-species-support"),oe=ie("filter");z({target:"Array",proto:!0,forced:!oe},{filter:function(le){return E(this,le,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/array-iteration").find,ie=a("../internals/add-to-unscopables"),oe="find",ee=!0;oe in[]&&Array(1)[oe](function(){ee=!1}),z({target:"Array",proto:!0,forced:ee},{find:function(x){return E(this,x,arguments.length>1?arguments[1]:void 0)}}),ie(oe)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(a,Te,be){var z=a("../internals/export"),E=a("../internals/array-from"),ie=a("../internals/check-correctness-of-iteration"),oe=!ie(function(ee){Array.from(ee)});z({target:"Array",stat:!0,forced:oe},{from:E})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/array-includes").includes,ie=a("../internals/add-to-unscopables");z({target:"Array",proto:!0},{includes:function(ee){return E(this,ee,arguments.length>1?arguments[1]:void 0)}}),ie("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(a,Te,be){"use strict";var z=a("../internals/to-indexed-object"),E=a("../internals/add-to-unscopables"),ie=a("../internals/iterators"),oe=a("../internals/internal-state"),ee=a("../internals/object-define-property").f,le=a("../internals/define-iterator"),x=a("../internals/is-pure"),ne=a("../internals/descriptors"),re="Array Iterator",ae=oe.set,se=oe.getterFor(re);Te.exports=le(Array,"Array",function(pe,me){ae(this,{type:re,target:z(pe),index:0,kind:me})},function(){var pe=se(this),me=pe.target,he=pe.kind,ye=pe.index++;return!me||ye>=me.length?(pe.target=void 0,{value:void 0,done:!0}):he=="keys"?{value:ye,done:!1}:he=="values"?{value:me[ye],done:!1}:{value:[ye,me[ye]],done:!1}},"values");var ce=ie.Arguments=ie.Array;if(E("keys"),E("values"),E("entries"),!x&&ne&&ce.name!=="values")try{ee(ce,"name",{value:"values"})}catch(pe){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/function-uncurry-this"),ie=a("../internals/indexed-object"),oe=a("../internals/to-indexed-object"),ee=a("../internals/array-method-is-strict"),le=E([].join),x=ie!=Object,ne=ee("join",",");z({target:"Array",proto:!0,forced:x||!ne},{join:function(ae){return le(oe(this),ae===void 0?",":ae)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/array-iteration").map,ie=a("../internals/array-method-has-species-support"),oe=ie("map");z({target:"Array",proto:!0,forced:!oe},{map:function(le){return E(this,le,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/global"),ie=a("../internals/is-array"),oe=a("../internals/is-constructor"),ee=a("../internals/is-object"),le=a("../internals/to-absolute-index"),x=a("../internals/length-of-array-like"),ne=a("../internals/to-indexed-object"),re=a("../internals/create-property"),ae=a("../internals/well-known-symbol"),se=a("../internals/array-method-has-species-support"),ce=a("../internals/array-slice"),pe=se("slice"),me=ae("species"),he=E.Array,ye=Math.max;z({target:"Array",proto:!0,forced:!pe},{slice:function(Me,Be){var Pe=ne(this),Ce=x(Pe),Ee=le(Me,Ce),je=le(Be===void 0?Ce:Be,Ce),ke,Le,Ae;if(ie(Pe)&&(ke=Pe.constructor,oe(ke)&&(ke===he||ie(ke.prototype))?ke=void 0:ee(ke)&&(ke=ke[me],ke===null&&(ke=void 0)),ke===he||ke===void 0))return ce(Pe,Ee,je);for(Le=new(ke===void 0?he:ke)(ye(je-Ee,0)),Ae=0;Ee<je;Ee++,Ae++)Ee in Pe&&re(Le,Ae,Pe[Ee]);return Le.length=Ae,Le}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/function-uncurry-this"),ie=a("../internals/a-callable"),oe=a("../internals/to-object"),ee=a("../internals/length-of-array-like"),le=a("../internals/to-string"),x=a("../internals/fails"),ne=a("../internals/array-sort"),re=a("../internals/array-method-is-strict"),ae=a("../internals/engine-ff-version"),se=a("../internals/engine-is-ie-or-edge"),ce=a("../internals/engine-v8-version"),pe=a("../internals/engine-webkit-version"),me=[],he=E(me.sort),ye=E(me.push),De=x(function(){me.sort(void 0)}),Me=x(function(){me.sort(null)}),Be=re("sort"),Pe=!x(function(){if(ce)return ce<70;if(!(ae&&ae>3)){if(se)return!0;if(pe)return pe<603;var je="",ke,Le,Ae,Se;for(ke=65;ke<76;ke++){switch(Le=String.fromCharCode(ke),ke){case 66:case 69:case 70:case 72:Ae=3;break;case 68:case 71:Ae=4;break;default:Ae=2}for(Se=0;Se<47;Se++)me.push({k:Le+Se,v:Ae})}for(me.sort(function(Ge,Ze){return Ze.v-Ge.v}),Se=0;Se<me.length;Se++)Le=me[Se].k.charAt(0),je.charAt(je.length-1)!==Le&&(je+=Le);return je!=="DGBEFHACIJK"}}),Ce=De||!Me||!Be||!Pe,Ee=function(je){return function(ke,Le){return Le===void 0?-1:ke===void 0?1:je!==void 0?+je(ke,Le)||0:le(ke)>le(Le)?1:-1}};z({target:"Array",proto:!0,forced:Ce},{sort:function(ke){ke!==void 0&&ie(ke);var Le=oe(this);if(Pe)return ke===void 0?he(Le):he(Le,ke);var Ae=[],Se=ee(Le),Ge,Ze;for(Ze=0;Ze<Se;Ze++)Ze in Le&&ye(Ae,Le[Ze]);for(ne(Ae,Ee(ke)),Ge=Ae.length,Ze=0;Ze<Ge;)Le[Ze]=Ae[Ze++];for(;Ze<Se;)delete Le[Ze++];return Le}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/global"),ie=a("../internals/to-absolute-index"),oe=a("../internals/to-integer-or-infinity"),ee=a("../internals/length-of-array-like"),le=a("../internals/to-object"),x=a("../internals/array-species-create"),ne=a("../internals/create-property"),re=a("../internals/array-method-has-species-support"),ae=re("splice"),se=E.TypeError,ce=Math.max,pe=Math.min,me=9007199254740991,he="Maximum allowed length exceeded";z({target:"Array",proto:!0,forced:!ae},{splice:function(De,Me){var Be=le(this),Pe=ee(Be),Ce=ie(De,Pe),Ee=arguments.length,je,ke,Le,Ae,Se,Ge;if(Ee===0?je=ke=0:Ee===1?(je=0,ke=Pe-Ce):(je=Ee-2,ke=pe(ce(oe(Me),0),Pe-Ce)),Pe+je-ke>me)throw se(he);for(Le=x(Be,ke),Ae=0;Ae<ke;Ae++)Se=Ce+Ae,Se in Be&&ne(Le,Ae,Be[Se]);if(Le.length=ke,je<ke){for(Ae=Ce;Ae<Pe-ke;Ae++)Se=Ae+ke,Ge=Ae+je,Se in Be?Be[Ge]=Be[Se]:delete Be[Ge];for(Ae=Pe;Ae>Pe-ke+je;Ae--)delete Be[Ae-1]}else if(je>ke)for(Ae=Pe-ke;Ae>Ce;Ae--)Se=Ae+ke-1,Ge=Ae+je-1,Se in Be?Be[Ge]=Be[Se]:delete Be[Ge];for(Ae=0;Ae<je;Ae++)Be[Ae+Ce]=arguments[Ae+2];return Be.length=Pe-ke+je,Le}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(a,Te,be){var z=a("../internals/descriptors"),E=a("../internals/function-name").EXISTS,ie=a("../internals/function-uncurry-this"),oe=a("../internals/object-define-property").f,ee=Function.prototype,le=ie(ee.toString),x=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ne=ie(x.exec),re="name";z&&!E&&oe(ee,re,{configurable:!0,get:function(){try{return ne(x,le(this))[1]}catch(ae){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(a,Te,be){var z=a("../internals/export"),E=a("../internals/get-built-in"),ie=a("../internals/function-apply"),oe=a("../internals/function-call"),ee=a("../internals/function-uncurry-this"),le=a("../internals/fails"),x=a("../internals/is-array"),ne=a("../internals/is-callable"),re=a("../internals/is-object"),ae=a("../internals/is-symbol"),se=a("../internals/array-slice"),ce=a("../internals/native-symbol"),pe=E("JSON","stringify"),me=ee(/./.exec),he=ee("".charAt),ye=ee("".charCodeAt),De=ee("".replace),Me=ee(1 .toString),Be=/[\uD800-\uDFFF]/g,Pe=/^[\uD800-\uDBFF]$/,Ce=/^[\uDC00-\uDFFF]$/,Ee=!ce||le(function(){var Ae=E("Symbol")();return pe([Ae])!="[null]"||pe({a:Ae})!="{}"||pe(Object(Ae))!="{}"}),je=le(function(){return pe("\uDF06\uD834")!=='"\\udf06\\ud834"'||pe("\uDEAD")!=='"\\udead"'}),ke=function(Ae,Se){var Ge=se(arguments),Ze=Se;if(!(!re(Se)&&Ae===void 0||ae(Ae)))return x(Se)||(Se=function(Je,at){if(ne(Ze)&&(at=oe(Ze,this,Je,at)),!ae(at))return at}),Ge[1]=Se,ie(pe,null,Ge)},Le=function(Ae,Se,Ge){var Ze=he(Ge,Se-1),Je=he(Ge,Se+1);return me(Pe,Ae)&&!me(Ce,Je)||me(Ce,Ae)&&!me(Pe,Ze)?"\\u"+Me(ye(Ae,0),16):Ae};pe&&z({target:"JSON",stat:!0,forced:Ee||je},{stringify:function(Se,Ge,Ze){var Je=se(arguments),at=ie(Ee?ke:pe,null,Je);return je&&typeof at=="string"?De(at,Be,Le):at}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(a,Te,be){"use strict";var z=a("../internals/descriptors"),E=a("../internals/global"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/is-forced"),ee=a("../internals/redefine"),le=a("../internals/has-own-property"),x=a("../internals/inherit-if-required"),ne=a("../internals/object-is-prototype-of"),re=a("../internals/is-symbol"),ae=a("../internals/to-primitive"),se=a("../internals/fails"),ce=a("../internals/object-get-own-property-names").f,pe=a("../internals/object-get-own-property-descriptor").f,me=a("../internals/object-define-property").f,he=a("../internals/this-number-value"),ye=a("../internals/string-trim").trim,De="Number",Me=E[De],Be=Me.prototype,Pe=E.TypeError,Ce=ie("".slice),Ee=ie("".charCodeAt),je=function(Ze){var Je=ae(Ze,"number");return typeof Je=="bigint"?Je:ke(Je)},ke=function(Ze){var Je=ae(Ze,"number"),at,Fe,Ke,it,rt,et,$e,Xe;if(re(Je))throw Pe("Cannot convert a Symbol value to a number");if(typeof Je=="string"&&Je.length>2){if(Je=ye(Je),at=Ee(Je,0),at===43||at===45){if(Fe=Ee(Je,2),Fe===88||Fe===120)return NaN}else if(at===48){switch(Ee(Je,1)){case 66:case 98:Ke=2,it=49;break;case 79:case 111:Ke=8,it=55;break;default:return+Je}for(rt=Ce(Je,2),et=rt.length,$e=0;$e<et;$e++)if(Xe=Ee(rt,$e),Xe<48||Xe>it)return NaN;return parseInt(rt,Ke)}}return+Je};if(oe(De,!Me(" 0o1")||!Me("0b1")||Me("+0x1"))){for(var Le=function(Je){var at=arguments.length<1?0:Me(je(Je)),Fe=this;return ne(Be,Fe)&&se(function(){he(Fe)})?x(Object(at),Fe,Le):at},Ae=z?ce(Me):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Se=0,Ge;Ae.length>Se;Se++)le(Me,Ge=Ae[Se])&&!le(Le,Ge)&&me(Le,Ge,pe(Me,Ge));Le.prototype=Be,Be.constructor=Le,ee(E,De,Le)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(a,Te,be){var z=a("../internals/export"),E=a("../internals/object-assign");z({target:"Object",stat:!0,forced:Object.assign!==E},{assign:E})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(a,Te,be){var z=a("../internals/export"),E=a("../internals/object-to-array").entries;z({target:"Object",stat:!0},{entries:function(oe){return E(oe)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(a,Te,be){var z=a("../internals/export"),E=a("../internals/native-symbol"),ie=a("../internals/fails"),oe=a("../internals/object-get-own-property-symbols"),ee=a("../internals/to-object"),le=!E||ie(function(){oe.f(1)});z({target:"Object",stat:!0,forced:le},{getOwnPropertySymbols:function(ne){var re=oe.f;return re?re(ee(ne)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(a,Te,be){var z=a("../internals/export"),E=a("../internals/to-object"),ie=a("../internals/object-keys"),oe=a("../internals/fails"),ee=oe(function(){ie(1)});z({target:"Object",stat:!0,forced:ee},{keys:function(x){return ie(E(x))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(a,Te,be){var z=a("../internals/to-string-tag-support"),E=a("../internals/redefine"),ie=a("../internals/object-to-string");z||E(Object.prototype,"toString",ie,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/function-call"),ie=a("../internals/a-callable"),oe=a("../internals/new-promise-capability"),ee=a("../internals/perform"),le=a("../internals/iterate"),x=a("../internals/promise-statics-incorrect-iteration");z({target:"Promise",stat:!0,forced:x},{all:function(re){var ae=this,se=oe.f(ae),ce=se.resolve,pe=se.reject,me=ee(function(){var he=ie(ae.resolve),ye=[],De=0,Me=1;le(re,function(Be){var Pe=De++,Ce=!1;Me++,E(he,ae,Be).then(function(Ee){Ce||(Ce=!0,ye[Pe]=Ee,--Me||ce(ye))},pe)}),--Me||ce(ye)});return me.error&&pe(me.value),se.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/is-pure"),ie=a("../internals/promise-constructor-detection").CONSTRUCTOR,oe=a("../internals/promise-native-constructor"),ee=a("../internals/get-built-in"),le=a("../internals/is-callable"),x=a("../internals/redefine"),ne=oe&&oe.prototype;if(z({target:"Promise",proto:!0,forced:ie,real:!0},{catch:function(ae){return this.then(void 0,ae)}}),!E&&le(oe)){var re=ee("Promise").prototype.catch;ne.catch!==re&&x(ne,"catch",re,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/is-pure"),ie=a("../internals/engine-is-node"),oe=a("../internals/global"),ee=a("../internals/function-call"),le=a("../internals/redefine"),x=a("../internals/redefine-all"),ne=a("../internals/object-set-prototype-of"),re=a("../internals/set-to-string-tag"),ae=a("../internals/set-species"),se=a("../internals/a-callable"),ce=a("../internals/is-callable"),pe=a("../internals/is-object"),me=a("../internals/an-instance"),he=a("../internals/species-constructor"),ye=a("../internals/task").set,De=a("../internals/microtask"),Me=a("../internals/host-report-errors"),Be=a("../internals/perform"),Pe=a("../internals/queue"),Ce=a("../internals/internal-state"),Ee=a("../internals/promise-native-constructor"),je=a("../internals/promise-constructor-detection"),ke=a("../internals/new-promise-capability"),Le="Promise",Ae=je.CONSTRUCTOR,Se=je.REJECTION_EVENT,Ge=je.SUBCLASSING,Ze=Ce.getterFor(Le),Je=Ce.set,at=Ee&&Ee.prototype,Fe=Ee,Ke=at,it=oe.TypeError,rt=oe.document,et=oe.process,$e=ke.f,Xe=$e,Ve=!!(rt&&rt.createEvent&&oe.dispatchEvent),nt="unhandledrejection",Qe="rejectionhandled",ct=0,ot=1,qe=2,_e=1,Re=2,te,de,Ne,ze,xe=function(St){var Ot;return pe(St)&&ce(Ot=St.then)?Ot:!1},ve=function(St,Ot){var yt=Ot.value,Mt=Ot.state==ot,Et=Mt?St.ok:St.fail,xt=St.resolve,jt=St.reject,At=St.domain,ht,Ct,$t;try{Et?(Mt||(Ot.rejection===Re&&st(Ot),Ot.rejection=_e),Et===!0?ht=yt:(At&&At.enter(),ht=Et(yt),At&&(At.exit(),$t=!0)),ht===St.promise?jt(it("Promise-chain cycle")):(Ct=xe(ht))?ee(Ct,ht,xt,jt):xt(ht)):jt(yt)}catch(Xt){At&&!$t&&At.exit(),jt(Xt)}},Oe=function(St,Ot){St.notified||(St.notified=!0,De(function(){for(var yt=St.reactions,Mt;Mt=yt.get();)ve(Mt,St);St.notified=!1,Ot&&!St.rejection&&Ue(St)}))},We=function(St,Ot,yt){var Mt,Et;Ve?(Mt=rt.createEvent("Event"),Mt.promise=Ot,Mt.reason=yt,Mt.initEvent(St,!1,!0),oe.dispatchEvent(Mt)):Mt={promise:Ot,reason:yt},!Se&&(Et=oe["on"+St])?Et(Mt):St===nt&&Me("Unhandled promise rejection",yt)},Ue=function(St){ee(ye,oe,function(){var Ot=St.facade,yt=St.value,Mt=Ye(St),Et;if(Mt&&(Et=Be(function(){ie?et.emit("unhandledRejection",yt,Ot):We(nt,Ot,yt)}),St.rejection=ie||Ye(St)?Re:_e,Et.error))throw Et.value})},Ye=function(St){return St.rejection!==_e&&!St.parent},st=function(St){ee(ye,oe,function(){var Ot=St.facade;ie?et.emit("rejectionHandled",Ot):We(Qe,Ot,St.value)})},lt=function(St,Ot,yt){return function(Mt){St(Ot,Mt,yt)}},ft=function(St,Ot,yt){St.done||(St.done=!0,yt&&(St=yt),St.value=Ot,St.state=qe,Oe(St,!0))},Tt=function(St,Ot,yt){if(!St.done){St.done=!0,yt&&(St=yt);try{if(St.facade===Ot)throw it("Promise can't be resolved itself");var Mt=xe(Ot);Mt?De(function(){var Et={done:!1};try{ee(Mt,Ot,lt(Tt,Et,St),lt(ft,Et,St))}catch(xt){ft(Et,xt,St)}}):(St.value=Ot,St.state=ot,Oe(St,!1))}catch(Et){ft({done:!1},Et,St)}}};if(Ae&&(Fe=function(Ot){me(this,Ke),se(Ot),ee(te,this);var yt=Ze(this);try{Ot(lt(Tt,yt),lt(ft,yt))}catch(Mt){ft(yt,Mt)}},Ke=Fe.prototype,te=function(Ot){Je(this,{type:Le,done:!1,notified:!1,parent:!1,reactions:new Pe,rejection:!1,state:ct,value:void 0})},te.prototype=x(Ke,{then:function(Ot,yt){var Mt=Ze(this),Et=$e(he(this,Fe));return Mt.parent=!0,Et.ok=ce(Ot)?Ot:!0,Et.fail=ce(yt)&&yt,Et.domain=ie?et.domain:void 0,Mt.state==ct?Mt.reactions.add(Et):De(function(){ve(Et,Mt)}),Et.promise}}),de=function(){var St=new te,Ot=Ze(St);this.promise=St,this.resolve=lt(Tt,Ot),this.reject=lt(ft,Ot)},ke.f=$e=function(St){return St===Fe||St===Ne?new de(St):Xe(St)},!E&&ce(Ee)&&at!==Object.prototype)){ze=at.then,Ge||le(at,"then",function(Ot,yt){var Mt=this;return new Fe(function(Et,xt){ee(ze,Mt,Et,xt)}).then(Ot,yt)},{unsafe:!0});try{delete at.constructor}catch(St){}ne&&ne(at,Ke)}z({global:!0,wrap:!0,forced:Ae},{Promise:Fe}),re(Fe,Le,!1,!0),ae(Le)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(a,Te,be){a("../modules/es.promise.constructor"),a("../modules/es.promise.all"),a("../modules/es.promise.catch"),a("../modules/es.promise.race"),a("../modules/es.promise.reject"),a("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/function-call"),ie=a("../internals/a-callable"),oe=a("../internals/new-promise-capability"),ee=a("../internals/perform"),le=a("../internals/iterate"),x=a("../internals/promise-statics-incorrect-iteration");z({target:"Promise",stat:!0,forced:x},{race:function(re){var ae=this,se=oe.f(ae),ce=se.reject,pe=ee(function(){var me=ie(ae.resolve);le(re,function(he){E(me,ae,he).then(se.resolve,ce)})});return pe.error&&ce(pe.value),se.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/function-call"),ie=a("../internals/new-promise-capability"),oe=a("../internals/promise-constructor-detection").CONSTRUCTOR;z({target:"Promise",stat:!0,forced:oe},{reject:function(le){var x=ie.f(this);return E(x.reject,void 0,le),x.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/get-built-in"),ie=a("../internals/is-pure"),oe=a("../internals/promise-native-constructor"),ee=a("../internals/promise-constructor-detection").CONSTRUCTOR,le=a("../internals/promise-resolve"),x=E("Promise"),ne=ie&&!ee;z({target:"Promise",stat:!0,forced:ie||ee},{resolve:function(ae){return le(ne&&this===x?oe:this,ae)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(a,Te,be){var z=a("../internals/descriptors"),E=a("../internals/global"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/is-forced"),ee=a("../internals/inherit-if-required"),le=a("../internals/create-non-enumerable-property"),x=a("../internals/object-get-own-property-names").f,ne=a("../internals/object-is-prototype-of"),re=a("../internals/is-regexp"),ae=a("../internals/to-string"),se=a("../internals/regexp-get-flags"),ce=a("../internals/regexp-sticky-helpers"),pe=a("../internals/proxy-accessor"),me=a("../internals/redefine"),he=a("../internals/fails"),ye=a("../internals/has-own-property"),De=a("../internals/internal-state").enforce,Me=a("../internals/set-species"),Be=a("../internals/well-known-symbol"),Pe=a("../internals/regexp-unsupported-dot-all"),Ce=a("../internals/regexp-unsupported-ncg"),Ee=Be("match"),je=E.RegExp,ke=je.prototype,Le=E.SyntaxError,Ae=ie(ke.exec),Se=ie("".charAt),Ge=ie("".replace),Ze=ie("".indexOf),Je=ie("".slice),at=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Fe=/a/g,Ke=/a/g,it=new je(Fe)!==Fe,rt=ce.MISSED_STICKY,et=ce.UNSUPPORTED_Y,$e=z&&(!it||rt||Pe||Ce||he(function(){return Ke[Ee]=!1,je(Fe)!=Fe||je(Ke)==Ke||je(Fe,"i")!="/a/i"})),Xe=function(ot){for(var qe=ot.length,_e=0,Re="",te=!1,de;_e<=qe;_e++){if(de=Se(ot,_e),de==="\\"){Re+=de+Se(ot,++_e);continue}!te&&de==="."?Re+="[\\s\\S]":(de==="["?te=!0:de==="]"&&(te=!1),Re+=de)}return Re},Ve=function(ot){for(var qe=ot.length,_e=0,Re="",te=[],de={},Ne=!1,ze=!1,xe=0,ve="",Oe;_e<=qe;_e++){if(Oe=Se(ot,_e),Oe==="\\")Oe=Oe+Se(ot,++_e);else if(Oe==="]")Ne=!1;else if(!Ne)switch(!0){case Oe==="[":Ne=!0;break;case Oe==="(":Ae(at,Je(ot,_e+1))&&(_e+=2,ze=!0),Re+=Oe,xe++;continue;case(Oe===">"&&ze):if(ve===""||ye(de,ve))throw new Le("Invalid capture group name");de[ve]=!0,te[te.length]=[ve,xe],ze=!1,ve="";continue}ze?ve+=Oe:Re+=Oe}return[Re,te]};if(oe("RegExp",$e)){for(var nt=function(qe,_e){var Re=ne(ke,this),te=re(qe),de=_e===void 0,Ne=[],ze=qe,xe,ve,Oe,We,Ue,Ye;if(!Re&&te&&de&&qe.constructor===nt)return qe;if((te||ne(ke,qe))&&(qe=qe.source,de&&(_e=se(ze))),qe=qe===void 0?"":ae(qe),_e=_e===void 0?"":ae(_e),ze=qe,Pe&&"dotAll"in Fe&&(ve=!!_e&&Ze(_e,"s")>-1,ve&&(_e=Ge(_e,/s/g,""))),xe=_e,rt&&"sticky"in Fe&&(Oe=!!_e&&Ze(_e,"y")>-1,Oe&&et&&(_e=Ge(_e,/y/g,""))),Ce&&(We=Ve(qe),qe=We[0],Ne=We[1]),Ue=ee(je(qe,_e),Re?this:ke,nt),(ve||Oe||Ne.length)&&(Ye=De(Ue),ve&&(Ye.dotAll=!0,Ye.raw=nt(Xe(qe),xe)),Oe&&(Ye.sticky=!0),Ne.length&&(Ye.groups=Ne)),qe!==ze)try{le(Ue,"source",ze===""?"(?:)":ze)}catch(st){}return Ue},Qe=x(je),ct=0;Qe.length>ct;)pe(nt,je,Qe[ct++]);ke.constructor=nt,nt.prototype=ke,me(E,"RegExp",nt)}Me("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/regexp-exec");z({target:"RegExp",proto:!0,forced:/./.exec!==E},{exec:E})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(a,Te,be){"use strict";var z=a("../internals/function-name").PROPER,E=a("../internals/redefine"),ie=a("../internals/an-object"),oe=a("../internals/to-string"),ee=a("../internals/fails"),le=a("../internals/regexp-get-flags"),x="toString",ne=RegExp.prototype,re=ne[x],ae=ee(function(){return re.call({source:"a",flags:"b"})!="/a/b"}),se=z&&re.name!=x;(ae||se)&&E(RegExp.prototype,x,function(){var pe=ie(this),me=oe(pe.source),he=oe(le(pe));return"/"+me+"/"+he},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/function-uncurry-this"),ie=a("../internals/not-a-regexp"),oe=a("../internals/require-object-coercible"),ee=a("../internals/to-string"),le=a("../internals/correct-is-regexp-logic"),x=E("".indexOf);z({target:"String",proto:!0,forced:!le("includes")},{includes:function(re){return!!~x(ee(oe(this)),ee(ie(re)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(a,Te,be){"use strict";var z=a("../internals/string-multibyte").charAt,E=a("../internals/to-string"),ie=a("../internals/internal-state"),oe=a("../internals/define-iterator"),ee="String Iterator",le=ie.set,x=ie.getterFor(ee);oe(String,"String",function(ne){le(this,{type:ee,string:E(ne),index:0})},function(){var re=x(this),ae=re.string,se=re.index,ce;return se>=ae.length?{value:void 0,done:!0}:(ce=z(ae,se),re.index+=ce.length,{value:ce,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(a,Te,be){"use strict";var z=a("../internals/function-call"),E=a("../internals/fix-regexp-well-known-symbol-logic"),ie=a("../internals/an-object"),oe=a("../internals/to-length"),ee=a("../internals/to-string"),le=a("../internals/require-object-coercible"),x=a("../internals/get-method"),ne=a("../internals/advance-string-index"),re=a("../internals/regexp-exec-abstract");E("match",function(ae,se,ce){return[function(me){var he=le(this),ye=me==null?void 0:x(me,ae);return ye?z(ye,me,he):new RegExp(me)[ae](ee(he))},function(pe){var me=ie(this),he=ee(pe),ye=ce(se,me,he);if(ye.done)return ye.value;if(!me.global)return re(me,he);var De=me.unicode;me.lastIndex=0;for(var Me=[],Be=0,Pe;(Pe=re(me,he))!==null;){var Ce=ee(Pe[0]);Me[Be]=Ce,Ce===""&&(me.lastIndex=ne(he,oe(me.lastIndex),De)),Be++}return Be===0?null:Me}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(a,Te,be){"use strict";var z=a("../internals/function-apply"),E=a("../internals/function-call"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/fix-regexp-well-known-symbol-logic"),ee=a("../internals/fails"),le=a("../internals/an-object"),x=a("../internals/is-callable"),ne=a("../internals/to-integer-or-infinity"),re=a("../internals/to-length"),ae=a("../internals/to-string"),se=a("../internals/require-object-coercible"),ce=a("../internals/advance-string-index"),pe=a("../internals/get-method"),me=a("../internals/get-substitution"),he=a("../internals/regexp-exec-abstract"),ye=a("../internals/well-known-symbol"),De=ye("replace"),Me=Math.max,Be=Math.min,Pe=ie([].concat),Ce=ie([].push),Ee=ie("".indexOf),je=ie("".slice),ke=function(Ge){return Ge===void 0?Ge:String(Ge)},Le=function(){return"a".replace(/./,"$0")==="$0"}(),Ae=function(){return/./[De]?/./[De]("a","$0")==="":!1}(),Se=!ee(function(){var Ge=/./;return Ge.exec=function(){var Ze=[];return Ze.groups={a:"7"},Ze},"".replace(Ge,"$<a>")!=="7"});oe("replace",function(Ge,Ze,Je){var at=Ae?"$":"$0";return[function(Ke,it){var rt=se(this),et=Ke==null?void 0:pe(Ke,De);return et?E(et,Ke,rt,it):E(Ze,ae(rt),Ke,it)},function(Fe,Ke){var it=le(this),rt=ae(Fe);if(typeof Ke=="string"&&Ee(Ke,at)===-1&&Ee(Ke,"$<")===-1){var et=Je(Ze,it,rt,Ke);if(et.done)return et.value}var $e=x(Ke);$e||(Ke=ae(Ke));var Xe=it.global;if(Xe){var Ve=it.unicode;it.lastIndex=0}for(var nt=[];;){var Qe=he(it,rt);if(Qe===null||(Ce(nt,Qe),!Xe))break;var ct=ae(Qe[0]);ct===""&&(it.lastIndex=ce(rt,re(it.lastIndex),Ve))}for(var ot="",qe=0,_e=0;_e<nt.length;_e++){Qe=nt[_e];for(var Re=ae(Qe[0]),te=Me(Be(ne(Qe.index),rt.length),0),de=[],Ne=1;Ne<Qe.length;Ne++)Ce(de,ke(Qe[Ne]));var ze=Qe.groups;if($e){var xe=Pe([Re],de,te,rt);ze!==void 0&&Ce(xe,ze);var ve=ae(z(Ke,void 0,xe))}else ve=me(Re,rt,te,de,ze,Ke);te>=qe&&(ot+=je(rt,qe,te)+ve,qe=te+Re.length)}return ot+je(rt,qe)}]},!Se||!Le||Ae)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(a,Te,be){"use strict";var z=a("../internals/function-call"),E=a("../internals/fix-regexp-well-known-symbol-logic"),ie=a("../internals/an-object"),oe=a("../internals/require-object-coercible"),ee=a("../internals/same-value"),le=a("../internals/to-string"),x=a("../internals/get-method"),ne=a("../internals/regexp-exec-abstract");E("search",function(re,ae,se){return[function(pe){var me=oe(this),he=pe==null?void 0:x(pe,re);return he?z(he,pe,me):new RegExp(pe)[re](le(me))},function(ce){var pe=ie(this),me=le(ce),he=se(ae,pe,me);if(he.done)return he.value;var ye=pe.lastIndex;ee(ye,0)||(pe.lastIndex=0);var De=ne(pe,me);return ee(pe.lastIndex,ye)||(pe.lastIndex=ye),De===null?-1:De.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(a,Te,be){"use strict";var z=a("../internals/function-apply"),E=a("../internals/function-call"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/fix-regexp-well-known-symbol-logic"),ee=a("../internals/is-regexp"),le=a("../internals/an-object"),x=a("../internals/require-object-coercible"),ne=a("../internals/species-constructor"),re=a("../internals/advance-string-index"),ae=a("../internals/to-length"),se=a("../internals/to-string"),ce=a("../internals/get-method"),pe=a("../internals/array-slice-simple"),me=a("../internals/regexp-exec-abstract"),he=a("../internals/regexp-exec"),ye=a("../internals/regexp-sticky-helpers"),De=a("../internals/fails"),Me=ye.UNSUPPORTED_Y,Be=4294967295,Pe=Math.min,Ce=[].push,Ee=ie(/./.exec),je=ie(Ce),ke=ie("".slice),Le=!De(function(){var Ae=/(?:)/,Se=Ae.exec;Ae.exec=function(){return Se.apply(this,arguments)};var Ge="ab".split(Ae);return Ge.length!==2||Ge[0]!=="a"||Ge[1]!=="b"});oe("split",function(Ae,Se,Ge){var Ze;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Ze=function(Je,at){var Fe=se(x(this)),Ke=at===void 0?Be:at>>>0;if(Ke===0)return[];if(Je===void 0)return[Fe];if(!ee(Je))return E(Se,Fe,Je,Ke);for(var it=[],rt=(Je.ignoreCase?"i":"")+(Je.multiline?"m":"")+(Je.unicode?"u":"")+(Je.sticky?"y":""),et=0,$e=new RegExp(Je.source,rt+"g"),Xe,Ve,nt;(Xe=E(he,$e,Fe))&&(Ve=$e.lastIndex,!(Ve>et&&(je(it,ke(Fe,et,Xe.index)),Xe.length>1&&Xe.index<Fe.length&&z(Ce,it,pe(Xe,1)),nt=Xe[0].length,et=Ve,it.length>=Ke)));)$e.lastIndex===Xe.index&&$e.lastIndex++;return et===Fe.length?(nt||!Ee($e,""))&&je(it,""):je(it,ke(Fe,et)),it.length>Ke?pe(it,0,Ke):it}:"0".split(void 0,0).length?Ze=function(Je,at){return Je===void 0&&at===0?[]:E(Se,this,Je,at)}:Ze=Se,[function(at,Fe){var Ke=x(this),it=at==null?void 0:ce(at,Ae);return it?E(it,at,Ke,Fe):E(Ze,se(Ke),at,Fe)},function(Je,at){var Fe=le(this),Ke=se(Je),it=Ge(Ze,Fe,Ke,at,Ze!==Se);if(it.done)return it.value;var rt=ne(Fe,RegExp),et=Fe.unicode,$e=(Fe.ignoreCase?"i":"")+(Fe.multiline?"m":"")+(Fe.unicode?"u":"")+(Me?"g":"y"),Xe=new rt(Me?"^(?:"+Fe.source+")":Fe,$e),Ve=at===void 0?Be:at>>>0;if(Ve===0)return[];if(Ke.length===0)return me(Xe,Ke)===null?[Ke]:[];for(var nt=0,Qe=0,ct=[];Qe<Ke.length;){Xe.lastIndex=Me?0:Qe;var ot=me(Xe,Me?ke(Ke,Qe):Ke),qe;if(ot===null||(qe=Pe(ae(Xe.lastIndex+(Me?Qe:0)),Ke.length))===nt)Qe=re(Ke,Qe,et);else{if(je(ct,ke(Ke,nt,Qe)),ct.length===Ve)return ct;for(var _e=1;_e<=ot.length-1;_e++)if(je(ct,ot[_e]),ct.length===Ve)return ct;Qe=nt=qe}}return je(ct,ke(Ke,nt)),ct}]},!Le,Me)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/string-trim").trim,ie=a("../internals/string-trim-forced");z({target:"String",proto:!0,forced:ie("trim")},{trim:function(){return E(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/global"),ie=a("../internals/function-call"),oe=a("../internals/function-uncurry-this"),ee=a("../internals/is-pure"),le=a("../internals/descriptors"),x=a("../internals/native-symbol"),ne=a("../internals/fails"),re=a("../internals/has-own-property"),ae=a("../internals/object-is-prototype-of"),se=a("../internals/an-object"),ce=a("../internals/to-indexed-object"),pe=a("../internals/to-property-key"),me=a("../internals/to-string"),he=a("../internals/create-property-descriptor"),ye=a("../internals/object-create"),De=a("../internals/object-keys"),Me=a("../internals/object-get-own-property-names"),Be=a("../internals/object-get-own-property-names-external"),Pe=a("../internals/object-get-own-property-symbols"),Ce=a("../internals/object-get-own-property-descriptor"),Ee=a("../internals/object-define-property"),je=a("../internals/object-define-properties"),ke=a("../internals/object-property-is-enumerable"),Le=a("../internals/redefine"),Ae=a("../internals/shared"),Se=a("../internals/shared-key"),Ge=a("../internals/hidden-keys"),Ze=a("../internals/uid"),Je=a("../internals/well-known-symbol"),at=a("../internals/well-known-symbol-wrapped"),Fe=a("../internals/define-well-known-symbol"),Ke=a("../internals/symbol-define-to-primitive"),it=a("../internals/set-to-string-tag"),rt=a("../internals/internal-state"),et=a("../internals/array-iteration").forEach,$e=Se("hidden"),Xe="Symbol",Ve="prototype",nt=rt.set,Qe=rt.getterFor(Xe),ct=Object[Ve],ot=E.Symbol,qe=ot&&ot[Ve],_e=E.TypeError,Re=E.QObject,te=Ce.f,de=Ee.f,Ne=Be.f,ze=ke.f,xe=oe([].push),ve=Ae("symbols"),Oe=Ae("op-symbols"),We=Ae("wks"),Ue=!Re||!Re[Ve]||!Re[Ve].findChild,Ye=le&&ne(function(){return ye(de({},"a",{get:function(){return de(this,"a",{value:7}).a}})).a!=7})?function(Et,xt,jt){var At=te(ct,xt);At&&delete ct[xt],de(Et,xt,jt),At&&Et!==ct&&de(ct,xt,At)}:de,st=function(Et,xt){var jt=ve[Et]=ye(qe);return nt(jt,{type:Xe,tag:Et,description:xt}),le||(jt.description=xt),jt},lt=function(xt,jt,At){xt===ct&<(Oe,jt,At),se(xt);var ht=pe(jt);return se(At),re(ve,ht)?(At.enumerable?(re(xt,$e)&&xt[$e][ht]&&(xt[$e][ht]=!1),At=ye(At,{enumerable:he(0,!1)})):(re(xt,$e)||de(xt,$e,he(1,{})),xt[$e][ht]=!0),Ye(xt,ht,At)):de(xt,ht,At)},ft=function(xt,jt){se(xt);var At=ce(jt),ht=De(At).concat(Mt(At));return et(ht,function(Ct){(!le||ie(St,At,Ct))&<(xt,Ct,At[Ct])}),xt},Tt=function(xt,jt){return jt===void 0?ye(xt):ft(ye(xt),jt)},St=function(xt){var jt=pe(xt),At=ie(ze,this,jt);return this===ct&&re(ve,jt)&&!re(Oe,jt)?!1:At||!re(this,jt)||!re(ve,jt)||re(this,$e)&&this[$e][jt]?At:!0},Ot=function(xt,jt){var At=ce(xt),ht=pe(jt);if(!(At===ct&&re(ve,ht)&&!re(Oe,ht))){var Ct=te(At,ht);return Ct&&re(ve,ht)&&!(re(At,$e)&&At[$e][ht])&&(Ct.enumerable=!0),Ct}},yt=function(xt){var jt=Ne(ce(xt)),At=[];return et(jt,function(ht){!re(ve,ht)&&!re(Ge,ht)&&xe(At,ht)}),At},Mt=function(Et){var xt=Et===ct,jt=Ne(xt?Oe:ce(Et)),At=[];return et(jt,function(ht){re(ve,ht)&&(!xt||re(ct,ht))&&xe(At,ve[ht])}),At};x||(ot=function(){if(ae(qe,this))throw _e("Symbol is not a constructor");var xt=!arguments.length||arguments[0]===void 0?void 0:me(arguments[0]),jt=Ze(xt),At=function(ht){this===ct&&ie(At,Oe,ht),re(this,$e)&&re(this[$e],jt)&&(this[$e][jt]=!1),Ye(this,jt,he(1,ht))};return le&&Ue&&Ye(ct,jt,{configurable:!0,set:At}),st(jt,xt)},qe=ot[Ve],Le(qe,"toString",function(){return Qe(this).tag}),Le(ot,"withoutSetter",function(Et){return st(Ze(Et),Et)}),ke.f=St,Ee.f=lt,je.f=ft,Ce.f=Ot,Me.f=Be.f=yt,Pe.f=Mt,at.f=function(Et){return st(Je(Et),Et)},le&&(de(qe,"description",{configurable:!0,get:function(){return Qe(this).description}}),ee||Le(ct,"propertyIsEnumerable",St,{unsafe:!0}))),z({global:!0,wrap:!0,forced:!x,sham:!x},{Symbol:ot}),et(De(We),function(Et){Fe(Et)}),z({target:Xe,stat:!0,forced:!x},{useSetter:function(){Ue=!0},useSimple:function(){Ue=!1}}),z({target:"Object",stat:!0,forced:!x,sham:!le},{create:Tt,defineProperty:lt,defineProperties:ft,getOwnPropertyDescriptor:Ot}),z({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:yt}),Ke(),it(ot,Xe),Ge[$e]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(a,Te,be){"use strict";var z=a("../internals/export"),E=a("../internals/descriptors"),ie=a("../internals/global"),oe=a("../internals/function-uncurry-this"),ee=a("../internals/has-own-property"),le=a("../internals/is-callable"),x=a("../internals/object-is-prototype-of"),ne=a("../internals/to-string"),re=a("../internals/object-define-property").f,ae=a("../internals/copy-constructor-properties"),se=ie.Symbol,ce=se&&se.prototype;if(E&&le(se)&&(!("description"in ce)||se().description!==void 0)){var pe={},me=function(){var Ee=arguments.length<1||arguments[0]===void 0?void 0:ne(arguments[0]),je=x(ce,this)?new se(Ee):Ee===void 0?se():se(Ee);return Ee===""&&(pe[je]=!0),je};ae(me,se),me.prototype=ce,ce.constructor=me;var he=String(se("test"))=="Symbol(test)",ye=oe(ce.toString),De=oe(ce.valueOf),Me=/^Symbol\((.*)\)[^)]+$/,Be=oe("".replace),Pe=oe("".slice);re(ce,"description",{configurable:!0,get:function(){var Ee=De(this),je=ye(Ee);if(ee(pe,Ee))return"";var ke=he?Pe(je,7,-1):Be(je,Me,"$1");return ke===""?void 0:ke}}),z({global:!0,forced:!0},{Symbol:me})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(a,Te,be){var z=a("../internals/export"),E=a("../internals/get-built-in"),ie=a("../internals/has-own-property"),oe=a("../internals/to-string"),ee=a("../internals/shared"),le=a("../internals/native-symbol-registry"),x=ee("string-to-symbol-registry"),ne=ee("symbol-to-string-registry");z({target:"Symbol",stat:!0,forced:!le},{for:function(re){var ae=oe(re);if(ie(x,ae))return x[ae];var se=E("Symbol")(ae);return x[ae]=se,ne[se]=ae,se}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(a,Te,be){var z=a("../internals/define-well-known-symbol");z("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(a,Te,be){a("../modules/es.symbol.constructor"),a("../modules/es.symbol.for"),a("../modules/es.symbol.key-for"),a("../modules/es.json.stringify"),a("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(a,Te,be){var z=a("../internals/export"),E=a("../internals/has-own-property"),ie=a("../internals/is-symbol"),oe=a("../internals/try-to-string"),ee=a("../internals/shared"),le=a("../internals/native-symbol-registry"),x=ee("symbol-to-string-registry");z({target:"Symbol",stat:!0,forced:!le},{keyFor:function(re){if(!ie(re))throw TypeError(oe(re)+" is not a symbol");if(E(x,re))return x[re]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(a,Te,be){"use strict";var z=a("../internals/function-uncurry-this"),E=a("../internals/array-buffer-view-core"),ie=a("../internals/array-copy-within"),oe=z(ie),ee=E.aTypedArray,le=E.exportTypedArrayMethod;le("copyWithin",function(ne,re){return oe(ee(this),ne,re,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").every,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("every",function(le){return E(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/function-call"),ie=a("../internals/array-fill"),oe=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("fill",function(x){var ne=arguments.length;return E(ie,oe(this),x,ne>1?arguments[1]:void 0,ne>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").filter,ie=a("../internals/typed-array-from-species-and-list"),oe=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("filter",function(x){var ne=E(oe(this),x,arguments.length>1?arguments[1]:void 0);return ie(this,ne)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").findIndex,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("findIndex",function(le){return E(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").find,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("find",function(le){return E(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").forEach,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("forEach",function(le){E(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-includes").includes,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("includes",function(le){return E(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-includes").indexOf,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("indexOf",function(le){return E(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(a,Te,be){"use strict";var z=a("../internals/global"),E=a("../internals/fails"),ie=a("../internals/function-uncurry-this"),oe=a("../internals/array-buffer-view-core"),ee=a("../modules/es.array.iterator"),le=a("../internals/well-known-symbol"),x=le("iterator"),ne=z.Uint8Array,re=ie(ee.values),ae=ie(ee.keys),se=ie(ee.entries),ce=oe.aTypedArray,pe=oe.exportTypedArrayMethod,me=ne&&ne.prototype,he=!E(function(){me[x].call([1])}),ye=!!me&&me.values&&me[x]===me.values&&me.values.name==="values",De=function(){return re(ce(this))};pe("entries",function(){return se(ce(this))},he),pe("keys",function(){return ae(ce(this))},he),pe("values",De,he||!ye,{name:"values"}),pe(x,De,he||!ye,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/function-uncurry-this"),ie=z.aTypedArray,oe=z.exportTypedArrayMethod,ee=E([].join);oe("join",function(x){return ee(ie(this),x)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/function-apply"),ie=a("../internals/array-last-index-of"),oe=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("lastIndexOf",function(x){var ne=arguments.length;return E(ie,oe(this),ne>1?[x,arguments[1]]:[x])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").map,ie=a("../internals/typed-array-species-constructor"),oe=z.aTypedArray,ee=z.exportTypedArrayMethod;ee("map",function(x){return E(oe(this),x,arguments.length>1?arguments[1]:void 0,function(ne,re){return new(ie(ne))(re)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-reduce").right,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("reduceRight",function(le){var x=arguments.length;return E(ie(this),le,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-reduce").left,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("reduce",function(le){var x=arguments.length;return E(ie(this),le,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=z.aTypedArray,ie=z.exportTypedArrayMethod,oe=Math.floor;ie("reverse",function(){for(var le=this,x=E(le).length,ne=oe(x/2),re=0,ae;re<ne;)ae=le[re],le[re++]=le[--x],le[x]=ae;return le})},{"../internals/array-buffer-view-core":103}],331:[function(a,Te,be){"use strict";var z=a("../internals/global"),E=a("../internals/function-call"),ie=a("../internals/array-buffer-view-core"),oe=a("../internals/length-of-array-like"),ee=a("../internals/to-offset"),le=a("../internals/to-object"),x=a("../internals/fails"),ne=z.RangeError,re=z.Int8Array,ae=re&&re.prototype,se=ae&&ae.set,ce=ie.aTypedArray,pe=ie.exportTypedArrayMethod,me=!x(function(){var ye=new Uint8ClampedArray(2);return E(se,ye,{length:1,0:3},1),ye[1]!==3}),he=me&&ie.NATIVE_ARRAY_BUFFER_VIEWS&&x(function(){var ye=new re(2);return ye.set(1),ye.set("2",1),ye[0]!==0||ye[1]!==2});pe("set",function(De){ce(this);var Me=ee(arguments.length>1?arguments[1]:void 0,1),Be=le(De);if(me)return E(se,this,Be,Me);var Pe=this.length,Ce=oe(Be),Ee=0;if(Ce+Me>Pe)throw ne("Wrong length");for(;Ee<Ce;)this[Me+Ee]=Be[Ee++]},!me||he)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/typed-array-species-constructor"),ie=a("../internals/fails"),oe=a("../internals/array-slice"),ee=z.aTypedArray,le=z.exportTypedArrayMethod,x=ie(function(){new Int8Array(1).slice()});le("slice",function(re,ae){for(var se=oe(ee(this),re,ae),ce=E(this),pe=0,me=se.length,he=new ce(me);me>pe;)he[pe]=se[pe++];return he},x)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/array-iteration").some,ie=z.aTypedArray,oe=z.exportTypedArrayMethod;oe("some",function(le){return E(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(a,Te,be){"use strict";var z=a("../internals/global"),E=a("../internals/function-uncurry-this"),ie=a("../internals/fails"),oe=a("../internals/a-callable"),ee=a("../internals/array-sort"),le=a("../internals/array-buffer-view-core"),x=a("../internals/engine-ff-version"),ne=a("../internals/engine-is-ie-or-edge"),re=a("../internals/engine-v8-version"),ae=a("../internals/engine-webkit-version"),se=le.aTypedArray,ce=le.exportTypedArrayMethod,pe=z.Uint16Array,me=pe&&E(pe.prototype.sort),he=!!me&&!(ie(function(){me(new pe(2),null)})&&ie(function(){me(new pe(2),{})})),ye=!!me&&!ie(function(){if(re)return re<74;if(x)return x<67;if(ne)return!0;if(ae)return ae<602;var Me=new pe(516),Be=Array(516),Pe,Ce;for(Pe=0;Pe<516;Pe++)Ce=Pe%4,Me[Pe]=515-Pe,Be[Pe]=Pe-2*Ce+3;for(me(Me,function(Ee,je){return(Ee/4|0)-(je/4|0)}),Pe=0;Pe<516;Pe++)if(Me[Pe]!==Be[Pe])return!0}),De=function(Me){return function(Be,Pe){return Me!==void 0?+Me(Be,Pe)||0:Pe!==Pe?-1:Be!==Be?1:Be===0&&Pe===0?1/Be>0&&1/Pe<0?1:-1:Be>Pe}};ce("sort",function(Be){return Be!==void 0&&oe(Be),ye?me(this,Be):ee(se(this),De(Be))},!ye||he)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core"),E=a("../internals/to-length"),ie=a("../internals/to-absolute-index"),oe=a("../internals/typed-array-species-constructor"),ee=z.aTypedArray,le=z.exportTypedArrayMethod;le("subarray",function(ne,re){var ae=ee(this),se=ae.length,ce=ie(ne,se),pe=oe(ae);return new pe(ae.buffer,ae.byteOffset+ce*ae.BYTES_PER_ELEMENT,E((re===void 0?se:ie(re,se))-ce))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(a,Te,be){"use strict";var z=a("../internals/global"),E=a("../internals/function-apply"),ie=a("../internals/array-buffer-view-core"),oe=a("../internals/fails"),ee=a("../internals/array-slice"),le=z.Int8Array,x=ie.aTypedArray,ne=ie.exportTypedArrayMethod,re=[].toLocaleString,ae=!!le&&oe(function(){re.call(new le(1))}),se=oe(function(){return[1,2].toLocaleString()!=new le([1,2]).toLocaleString()})||!oe(function(){le.prototype.toLocaleString.call([1,2])});ne("toLocaleString",function(){return E(re,ae?ee(x(this)):x(this),ee(arguments))},se)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(a,Te,be){"use strict";var z=a("../internals/array-buffer-view-core").exportTypedArrayMethod,E=a("../internals/fails"),ie=a("../internals/global"),oe=a("../internals/function-uncurry-this"),ee=ie.Uint8Array,le=ee&&ee.prototype||{},x=[].toString,ne=oe([].join);E(function(){x.call({})})&&(x=function(){return ne(this)});var re=le.toString!=x;z("toString",x,re)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(a,Te,be){var z=a("../internals/typed-array-constructor");z("Uint8",function(E){return function(oe,ee,le){return E(this,oe,ee,le)}})},{"../internals/typed-array-constructor":258}],339:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/dom-iterables"),ie=a("../internals/dom-token-list-prototype"),oe=a("../internals/array-for-each"),ee=a("../internals/create-non-enumerable-property"),le=function(ne){if(ne&&ne.forEach!==oe)try{ee(ne,"forEach",oe)}catch(re){ne.forEach=oe}};for(var x in E)E[x]&&le(z[x]&&z[x].prototype);le(ie)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(a,Te,be){var z=a("../internals/global"),E=a("../internals/dom-iterables"),ie=a("../internals/dom-token-list-prototype"),oe=a("../modules/es.array.iterator"),ee=a("../internals/create-non-enumerable-property"),le=a("../internals/well-known-symbol"),x=le("iterator"),ne=le("toStringTag"),re=oe.values,ae=function(ce,pe){if(ce){if(ce[x]!==re)try{ee(ce,x,re)}catch(he){ce[x]=re}if(ce[ne]||ee(ce,ne,pe),E[pe]){for(var me in oe)if(ce[me]!==oe[me])try{ee(ce,me,oe[me])}catch(he){ce[me]=oe[me]}}}};for(var se in E)ae(z[se]&&z[se].prototype,se);ae(ie,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(a,Te,be){function z(ye){return Array.isArray?Array.isArray(ye):he(ye)==="[object Array]"}be.isArray=z;function E(ye){return typeof ye=="boolean"}be.isBoolean=E;function ie(ye){return ye===null}be.isNull=ie;function oe(ye){return ye==null}be.isNullOrUndefined=oe;function ee(ye){return typeof ye=="number"}be.isNumber=ee;function le(ye){return typeof ye=="string"}be.isString=le;function x(ye){return typeof ye=="symbol"}be.isSymbol=x;function ne(ye){return ye===void 0}be.isUndefined=ne;function re(ye){return he(ye)==="[object RegExp]"}be.isRegExp=re;function ae(ye){return typeof ye=="object"&&ye!==null}be.isObject=ae;function se(ye){return he(ye)==="[object Date]"}be.isDate=se;function ce(ye){return he(ye)==="[object Error]"||ye instanceof Error}be.isError=ce;function pe(ye){return typeof ye=="function"}be.isFunction=pe;function me(ye){return ye===null||typeof ye=="boolean"||typeof ye=="number"||typeof ye=="string"||typeof ye=="symbol"||typeof ye=="undefined"}be.isPrimitive=me,be.isBuffer=a("buffer").Buffer.isBuffer;function he(ye){return Object.prototype.toString.call(ye)}},{buffer:90}],342:[function(a,Te,be){(function(z){"use strict";var E=function(){var x=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ne=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,re=/[^-+\dA-Z]/g;return function(ae,se,ce,pe){if(arguments.length===1&&le(ae)==="string"&&!/\d/.test(ae)&&(se=ae,ae=void 0),ae=ae||new Date,ae instanceof Date||(ae=new Date(ae)),isNaN(ae))throw TypeError("Invalid date");se=String(E.masks[se]||se||E.masks.default);var me=se.slice(0,4);(me==="UTC:"||me==="GMT:")&&(se=se.slice(4),ce=!0,me==="GMT:"&&(pe=!0));var he=ce?"getUTC":"get",ye=ae[he+"Date"](),De=ae[he+"Day"](),Me=ae[he+"Month"](),Be=ae[he+"FullYear"](),Pe=ae[he+"Hours"](),Ce=ae[he+"Minutes"](),Ee=ae[he+"Seconds"](),je=ae[he+"Milliseconds"](),ke=ce?0:ae.getTimezoneOffset(),Le=oe(ae),Ae=ee(ae),Se={d:ye,dd:ie(ye),ddd:E.i18n.dayNames[De],dddd:E.i18n.dayNames[De+7],m:Me+1,mm:ie(Me+1),mmm:E.i18n.monthNames[Me],mmmm:E.i18n.monthNames[Me+12],yy:String(Be).slice(2),yyyy:Be,h:Pe%12||12,hh:ie(Pe%12||12),H:Pe,HH:ie(Pe),M:Ce,MM:ie(Ce),s:Ee,ss:ie(Ee),l:ie(je,3),L:ie(Math.round(je/10)),t:Pe<12?"a":"p",tt:Pe<12?"am":"pm",T:Pe<12?"A":"P",TT:Pe<12?"AM":"PM",Z:pe?"GMT":ce?"UTC":(String(ae).match(ne)||[""]).pop().replace(re,""),o:(ke>0?"-":"+")+ie(Math.floor(Math.abs(ke)/60)*100+Math.abs(ke)%60,4),S:["th","st","nd","rd"][ye%10>3?0:(ye%100-ye%10!=10)*ye%10],W:Le,N:Ae};return se.replace(x,function(Ge){return Ge in Se?Se[Ge]:Ge.slice(1,Ge.length-1)})}}();E.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},E.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function ie(x,ne){for(x=String(x),ne=ne||2;x.length<ne;)x="0"+x;return x}function oe(x){var ne=new Date(x.getFullYear(),x.getMonth(),x.getDate());ne.setDate(ne.getDate()-(ne.getDay()+6)%7+3);var re=new Date(ne.getFullYear(),0,4);re.setDate(re.getDate()-(re.getDay()+6)%7+3);var ae=ne.getTimezoneOffset()-re.getTimezoneOffset();ne.setHours(ne.getHours()-ae);var se=(ne-re)/(864e5*7);return 1+Math.floor(se)}function ee(x){var ne=x.getDay();return ne===0&&(ne=7),ne}function le(x){return x===null?"null":x===void 0?"undefined":typeof x!="object"?typeof x:Array.isArray(x)?"array":{}.toString.call(x).slice(8,-1).toLowerCase()}typeof Ie=="function"&&Ie.amd?Ie(function(){return E}):typeof be=="object"?Te.exports=E:z.dateFormat=E})(this)},{}],343:[function(a,Te,be){"use strict";var z=/["'&<>]/;Te.exports=E;function E(ie){var oe=""+ie,ee=z.exec(oe);if(!ee)return oe;var le,x="",ne=0,re=0;for(ne=ee.index;ne<oe.length;ne++){switch(oe.charCodeAt(ne)){case 34:le=""";break;case 38:le="&";break;case 39:le="'";break;case 60:le="<";break;case 62:le=">";break;default:continue}re!==ne&&(x+=oe.substring(re,ne)),re=ne+1,x+=le}return re!==ne?x+oe.substring(re,ne):x}},{}],344:[function(a,Te,be){"use strict";var z=typeof Reflect=="object"?Reflect:null,E=z&&typeof z.apply=="function"?z.apply:function(Ee,je,ke){return Function.prototype.apply.call(Ee,je,ke)},ie;z&&typeof z.ownKeys=="function"?ie=z.ownKeys:Object.getOwnPropertySymbols?ie=function(Ee){return Object.getOwnPropertyNames(Ee).concat(Object.getOwnPropertySymbols(Ee))}:ie=function(Ee){return Object.getOwnPropertyNames(Ee)};function oe(Ce){console&&console.warn&&console.warn(Ce)}var ee=Number.isNaN||function(Ee){return Ee!==Ee};function le(){le.init.call(this)}Te.exports=le,Te.exports.once=Me,le.EventEmitter=le,le.prototype._events=void 0,le.prototype._eventsCount=0,le.prototype._maxListeners=void 0;var x=10;function ne(Ce){if(typeof Ce!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Ce)}Object.defineProperty(le,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(Ce){if(typeof Ce!="number"||Ce<0||ee(Ce))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Ce+".");x=Ce}}),le.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},le.prototype.setMaxListeners=function(Ee){if(typeof Ee!="number"||Ee<0||ee(Ee))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ee+".");return this._maxListeners=Ee,this};function re(Ce){return Ce._maxListeners===void 0?le.defaultMaxListeners:Ce._maxListeners}le.prototype.getMaxListeners=function(){return re(this)},le.prototype.emit=function(Ee){for(var je=[],ke=1;ke<arguments.length;ke++)je.push(arguments[ke]);var Le=Ee==="error",Ae=this._events;if(Ae!==void 0)Le=Le&&Ae.error===void 0;else if(!Le)return!1;if(Le){var Se;if(je.length>0&&(Se=je[0]),Se instanceof Error)throw Se;var Ge=new Error("Unhandled error."+(Se?" ("+Se.message+")":""));throw Ge.context=Se,Ge}var Ze=Ae[Ee];if(Ze===void 0)return!1;if(typeof Ze=="function")E(Ze,this,je);else for(var Je=Ze.length,at=he(Ze,Je),ke=0;ke<Je;++ke)E(at[ke],this,je);return!0};function ae(Ce,Ee,je,ke){var Le,Ae,Se;if(ne(je),Ae=Ce._events,Ae===void 0?(Ae=Ce._events=Object.create(null),Ce._eventsCount=0):(Ae.newListener!==void 0&&(Ce.emit("newListener",Ee,je.listener?je.listener:je),Ae=Ce._events),Se=Ae[Ee]),Se===void 0)Se=Ae[Ee]=je,++Ce._eventsCount;else if(typeof Se=="function"?Se=Ae[Ee]=ke?[je,Se]:[Se,je]:ke?Se.unshift(je):Se.push(je),Le=re(Ce),Le>0&&Se.length>Le&&!Se.warned){Se.warned=!0;var Ge=new Error("Possible EventEmitter memory leak detected. "+Se.length+" "+String(Ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ge.name="MaxListenersExceededWarning",Ge.emitter=Ce,Ge.type=Ee,Ge.count=Se.length,oe(Ge)}return Ce}le.prototype.addListener=function(Ee,je){return ae(this,Ee,je,!1)},le.prototype.on=le.prototype.addListener,le.prototype.prependListener=function(Ee,je){return ae(this,Ee,je,!0)};function se(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ce(Ce,Ee,je){var ke={fired:!1,wrapFn:void 0,target:Ce,type:Ee,listener:je},Le=se.bind(ke);return Le.listener=je,ke.wrapFn=Le,Le}le.prototype.once=function(Ee,je){return ne(je),this.on(Ee,ce(this,Ee,je)),this},le.prototype.prependOnceListener=function(Ee,je){return ne(je),this.prependListener(Ee,ce(this,Ee,je)),this},le.prototype.removeListener=function(Ee,je){var ke,Le,Ae,Se,Ge;if(ne(je),Le=this._events,Le===void 0)return this;if(ke=Le[Ee],ke===void 0)return this;if(ke===je||ke.listener===je)--this._eventsCount===0?this._events=Object.create(null):(delete Le[Ee],Le.removeListener&&this.emit("removeListener",Ee,ke.listener||je));else if(typeof ke!="function"){for(Ae=-1,Se=ke.length-1;Se>=0;Se--)if(ke[Se]===je||ke[Se].listener===je){Ge=ke[Se].listener,Ae=Se;break}if(Ae<0)return this;Ae===0?ke.shift():ye(ke,Ae),ke.length===1&&(Le[Ee]=ke[0]),Le.removeListener!==void 0&&this.emit("removeListener",Ee,Ge||je)}return this},le.prototype.off=le.prototype.removeListener,le.prototype.removeAllListeners=function(Ee){var je,ke,Le;if(ke=this._events,ke===void 0)return this;if(ke.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ke[Ee]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ke[Ee]),this;if(arguments.length===0){var Ae=Object.keys(ke),Se;for(Le=0;Le<Ae.length;++Le)Se=Ae[Le],Se!=="removeListener"&&this.removeAllListeners(Se);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(je=ke[Ee],typeof je=="function")this.removeListener(Ee,je);else if(je!==void 0)for(Le=je.length-1;Le>=0;Le--)this.removeListener(Ee,je[Le]);return this};function pe(Ce,Ee,je){var ke=Ce._events;if(ke===void 0)return[];var Le=ke[Ee];return Le===void 0?[]:typeof Le=="function"?je?[Le.listener||Le]:[Le]:je?De(Le):he(Le,Le.length)}le.prototype.listeners=function(Ee){return pe(this,Ee,!0)},le.prototype.rawListeners=function(Ee){return pe(this,Ee,!1)},le.listenerCount=function(Ce,Ee){return typeof Ce.listenerCount=="function"?Ce.listenerCount(Ee):me.call(Ce,Ee)},le.prototype.listenerCount=me;function me(Ce){var Ee=this._events;if(Ee!==void 0){var je=Ee[Ce];if(typeof je=="function")return 1;if(je!==void 0)return je.length}return 0}le.prototype.eventNames=function(){return this._eventsCount>0?ie(this._events):[]};function he(Ce,Ee){for(var je=new Array(Ee),ke=0;ke<Ee;++ke)je[ke]=Ce[ke];return je}function ye(Ce,Ee){for(;Ee+1<Ce.length;Ee++)Ce[Ee]=Ce[Ee+1];Ce.pop()}function De(Ce){for(var Ee=new Array(Ce.length),je=0;je<Ee.length;++je)Ee[je]=Ce[je].listener||Ce[je];return Ee}function Me(Ce,Ee){return new Promise(function(je,ke){function Le(Se){Ce.removeListener(Ee,Ae),ke(Se)}function Ae(){typeof Ce.removeListener=="function"&&Ce.removeListener("error",Le),je([].slice.call(arguments))}Pe(Ce,Ee,Ae,{once:!0}),Ee!=="error"&&Be(Ce,Le,{once:!0})})}function Be(Ce,Ee,je){typeof Ce.on=="function"&&Pe(Ce,"error",Ee,je)}function Pe(Ce,Ee,je,ke){if(typeof Ce.on=="function")ke.once?Ce.once(Ee,je):Ce.on(Ee,je);else if(typeof Ce.addEventListener=="function")Ce.addEventListener(Ee,function Le(Ae){ke.once&&Ce.removeEventListener(Ee,Le),je(Ae)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Ce)}},{}],345:[function(a,Te,be){"use strict";var z=a("is-callable"),E=Object.prototype.toString,ie=Object.prototype.hasOwnProperty,oe=function(re,ae,se){for(var ce=0,pe=re.length;ce<pe;ce++)ie.call(re,ce)&&(se==null?ae(re[ce],ce,re):ae.call(se,re[ce],ce,re))},ee=function(re,ae,se){for(var ce=0,pe=re.length;ce<pe;ce++)se==null?ae(re.charAt(ce),ce,re):ae.call(se,re.charAt(ce),ce,re)},le=function(re,ae,se){for(var ce in re)ie.call(re,ce)&&(se==null?ae(re[ce],ce,re):ae.call(se,re[ce],ce,re))},x=function(re,ae,se){if(!z(ae))throw new TypeError("iterator must be a function");var ce;arguments.length>=3&&(ce=se),E.call(re)==="[object Array]"?oe(re,ae,ce):typeof re=="string"?ee(re,ae,ce):le(re,ae,ce)};Te.exports=x},{"is-callable":367}],346:[function(a,Te,be){"use strict";var z="Function.prototype.bind called on incompatible ",E=Array.prototype.slice,ie=Object.prototype.toString,oe="[object Function]";Te.exports=function(le){var x=this;if(typeof x!="function"||ie.call(x)!==oe)throw new TypeError(z+x);for(var ne=E.call(arguments,1),re,ae=function(){if(this instanceof re){var he=x.apply(this,ne.concat(E.call(arguments)));return Object(he)===he?he:this}else return x.apply(le,ne.concat(E.call(arguments)))},se=Math.max(0,x.length-ne.length),ce=[],pe=0;pe<se;pe++)ce.push("$"+pe);if(re=Function("binder","return function ("+ce.join(",")+"){ return binder.apply(this,arguments); }")(ae),x.prototype){var me=function(){};me.prototype=x.prototype,re.prototype=new me,me.prototype=null}return re}},{}],347:[function(a,Te,be){"use strict";var z=a("./implementation");Te.exports=Function.prototype.bind||z},{"./implementation":346}],348:[function(a,Te,be){"use strict";var z,E=SyntaxError,ie=Function,oe=TypeError,ee=function(Ze){try{return ie('"use strict"; return ('+Ze+").constructor;")()}catch(Je){}},le=Object.getOwnPropertyDescriptor;if(le)try{le({},"")}catch(Ze){le=null}var x=function(){throw new oe},ne=le?function(){try{return arguments.callee,x}catch(Ze){try{return le(arguments,"callee").get}catch(Je){return x}}}():x,re=a("has-symbols")(),ae=a("has-proto")(),se=Object.getPrototypeOf||(ae?function(Ze){return Ze.__proto__}:null),ce={},pe=typeof Uint8Array=="undefined"||!se?z:se(Uint8Array),me={"%AggregateError%":typeof AggregateError=="undefined"?z:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?z:ArrayBuffer,"%ArrayIteratorPrototype%":re&&se?se([][Symbol.iterator]()):z,"%AsyncFromSyncIteratorPrototype%":z,"%AsyncFunction%":ce,"%AsyncGenerator%":ce,"%AsyncGeneratorFunction%":ce,"%AsyncIteratorPrototype%":ce,"%Atomics%":typeof Atomics=="undefined"?z:Atomics,"%BigInt%":typeof BigInt=="undefined"?z:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?z:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?z:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?z:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?z:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?z:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?z:FinalizationRegistry,"%Function%":ie,"%GeneratorFunction%":ce,"%Int8Array%":typeof Int8Array=="undefined"?z:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?z:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?z:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&se?se(se([][Symbol.iterator]())):z,"%JSON%":typeof JSON=="object"?JSON:z,"%Map%":typeof Map=="undefined"?z:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!re||!se?z:se(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?z:Promise,"%Proxy%":typeof Proxy=="undefined"?z:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?z:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?z:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!re||!se?z:se(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?z:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&se?se(""[Symbol.iterator]()):z,"%Symbol%":re?Symbol:z,"%SyntaxError%":E,"%ThrowTypeError%":ne,"%TypedArray%":pe,"%TypeError%":oe,"%Uint8Array%":typeof Uint8Array=="undefined"?z:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?z:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?z:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?z:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?z:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?z:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?z:WeakSet};if(se)try{null.error}catch(Ze){var he=se(se(Ze));me["%Error.prototype%"]=he}var ye=function Ze(Je){var at;if(Je==="%AsyncFunction%")at=ee("async function () {}");else if(Je==="%GeneratorFunction%")at=ee("function* () {}");else if(Je==="%AsyncGeneratorFunction%")at=ee("async function* () {}");else if(Je==="%AsyncGenerator%"){var Fe=Ze("%AsyncGeneratorFunction%");Fe&&(at=Fe.prototype)}else if(Je==="%AsyncIteratorPrototype%"){var Ke=Ze("%AsyncGenerator%");Ke&&se&&(at=se(Ke.prototype))}return me[Je]=at,at},De={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Me=a("function-bind"),Be=a("has"),Pe=Me.call(Function.call,Array.prototype.concat),Ce=Me.call(Function.apply,Array.prototype.splice),Ee=Me.call(Function.call,String.prototype.replace),je=Me.call(Function.call,String.prototype.slice),ke=Me.call(Function.call,RegExp.prototype.exec),Le=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ae=/\\(\\)?/g,Se=function(Je){var at=je(Je,0,1),Fe=je(Je,-1);if(at==="%"&&Fe!=="%")throw new E("invalid intrinsic syntax, expected closing `%`");if(Fe==="%"&&at!=="%")throw new E("invalid intrinsic syntax, expected opening `%`");var Ke=[];return Ee(Je,Le,function(it,rt,et,$e){Ke[Ke.length]=et?Ee($e,Ae,"$1"):rt||it}),Ke},Ge=function(Je,at){var Fe=Je,Ke;if(Be(De,Fe)&&(Ke=De[Fe],Fe="%"+Ke[0]+"%"),Be(me,Fe)){var it=me[Fe];if(it===ce&&(it=ye(Fe)),typeof it=="undefined"&&!at)throw new oe("intrinsic "+Je+" exists, but is not available. Please file an issue!");return{alias:Ke,name:Fe,value:it}}throw new E("intrinsic "+Je+" does not exist!")};Te.exports=function(Je,at){if(typeof Je!="string"||Je.length===0)throw new oe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof at!="boolean")throw new oe('"allowMissing" argument must be a boolean');if(ke(/^%?[^%]*%?$/,Je)===null)throw new E("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Fe=Se(Je),Ke=Fe.length>0?Fe[0]:"",it=Ge("%"+Ke+"%",at),rt=it.name,et=it.value,$e=!1,Xe=it.alias;Xe&&(Ke=Xe[0],Ce(Fe,Pe([0,1],Xe)));for(var Ve=1,nt=!0;Ve<Fe.length;Ve+=1){var Qe=Fe[Ve],ct=je(Qe,0,1),ot=je(Qe,-1);if((ct==='"'||ct==="'"||ct==="`"||ot==='"'||ot==="'"||ot==="`")&&ct!==ot)throw new E("property names with quotes must have matching quotes");if((Qe==="constructor"||!nt)&&($e=!0),Ke+="."+Qe,rt="%"+Ke+"%",Be(me,rt))et=me[rt];else if(et!=null){if(!(Qe in et)){if(!at)throw new oe("base intrinsic for "+Je+" exists, but the property is not available.");return}if(le&&Ve+1>=Fe.length){var qe=le(et,Qe);nt=!!qe,nt&&"get"in qe&&!("originalValue"in qe.get)?et=qe.get:et=et[Qe]}else nt=Be(et,Qe),et=et[Qe];nt&&!$e&&(me[rt]=et)}}return et}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(a,Te,be){"use strict";var z=a("get-intrinsic"),E=z("%Object.getOwnPropertyDescriptor%",!0);if(E)try{E([],"length")}catch(ie){E=null}Te.exports=E},{"get-intrinsic":348}],350:[function(a,Te,be){"use strict";var z={foo:{}},E=Object;Te.exports=function(){return{__proto__:z}.foo===z.foo&&!({__proto__:null}instanceof E)}},{}],351:[function(a,Te,be){"use strict";var z=typeof Symbol!="undefined"&&Symbol,E=a("./shams");Te.exports=function(){return typeof z!="function"||typeof Symbol!="function"||typeof z("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:E()}},{"./shams":352}],352:[function(a,Te,be){"use strict";Te.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var E={},ie=Symbol("test"),oe=Object(ie);if(typeof ie=="string"||Object.prototype.toString.call(ie)!=="[object Symbol]"||Object.prototype.toString.call(oe)!=="[object Symbol]")return!1;var ee=42;E[ie]=ee;for(ie in E)return!1;if(typeof Object.keys=="function"&&Object.keys(E).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(E).length!==0)return!1;var le=Object.getOwnPropertySymbols(E);if(le.length!==1||le[0]!==ie||!Object.prototype.propertyIsEnumerable.call(E,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var x=Object.getOwnPropertyDescriptor(E,ie);if(x.value!==ee||x.enumerable!==!0)return!1}return!0}},{}],353:[function(a,Te,be){"use strict";var z=a("has-symbols/shams");Te.exports=function(){return z()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(a,Te,be){"use strict";var z=a("function-bind");Te.exports=z.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(a,Te,be){var z=a("http"),E=a("url"),ie=Te.exports;for(var oe in z)z.hasOwnProperty(oe)&&(ie[oe]=z[oe]);ie.request=function(le,x){return le=ee(le),z.request.call(this,le,x)},ie.get=function(le,x){return le=ee(le),z.get.call(this,le,x)};function ee(le){if(typeof le=="string"&&(le=E.parse(le)),le.protocol||(le.protocol="https:"),le.protocol!=="https:")throw new Error('Protocol "'+le.protocol+'" not supported. Expected "https:"');return le}},{http:468,url:472}],356:[function(a,Te,be){"use strict";var z=a("util"),E=a("ms");Te.exports=function(ie){if(typeof ie=="number")return ie;var oe=E(ie);if(oe===void 0){var ee=new Error(z.format("humanize-ms(%j) result undefined",ie));console.warn(ee.stack)}return oe}},{ms:376,util:419}],357:[function(a,Te,be){be.read=function(z,E,ie,oe,ee){var le,x,ne=ee*8-oe-1,re=(1<<ne)-1,ae=re>>1,se=-7,ce=ie?ee-1:0,pe=ie?-1:1,me=z[E+ce];for(ce+=pe,le=me&(1<<-se)-1,me>>=-se,se+=ne;se>0;le=le*256+z[E+ce],ce+=pe,se-=8);for(x=le&(1<<-se)-1,le>>=-se,se+=oe;se>0;x=x*256+z[E+ce],ce+=pe,se-=8);if(le===0)le=1-ae;else{if(le===re)return x?NaN:(me?-1:1)*(1/0);x=x+Math.pow(2,oe),le=le-ae}return(me?-1:1)*x*Math.pow(2,le-oe)},be.write=function(z,E,ie,oe,ee,le){var x,ne,re,ae=le*8-ee-1,se=(1<<ae)-1,ce=se>>1,pe=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,me=oe?0:le-1,he=oe?1:-1,ye=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===1/0?(ne=isNaN(E)?1:0,x=se):(x=Math.floor(Math.log(E)/Math.LN2),E*(re=Math.pow(2,-x))<1&&(x--,re*=2),x+ce>=1?E+=pe/re:E+=pe*Math.pow(2,1-ce),E*re>=2&&(x++,re/=2),x+ce>=se?(ne=0,x=se):x+ce>=1?(ne=(E*re-1)*Math.pow(2,ee),x=x+ce):(ne=E*Math.pow(2,ce-1)*Math.pow(2,ee),x=0));ee>=8;z[ie+me]=ne&255,me+=he,ne/=256,ee-=8);for(x=x<<ee|ne,ae+=ee;ae>0;z[ie+me]=x&255,me+=he,x/=256,ae-=8);z[ie+me-he]|=ye*128}},{}],358:[function(a,Te,be){"use strict";var z=[a("./nextTick"),a("./queueMicrotask"),a("./mutation.js"),a("./messageChannel"),a("./stateChange"),a("./timeout")],E,ie,oe=-1,ee=[],le=!1;function x(){!E||!ie||(E=!1,ie.length?ee=ie.concat(ee):oe=-1,ee.length&&ne())}function ne(){if(!E){le=!1,E=!0;for(var me=ee.length,he=setTimeout(x);me;){for(ie=ee,ee=[];ie&&++oe<me;)ie[oe].run();oe=-1,me=ee.length}ie=null,oe=-1,E=!1,clearTimeout(he)}}for(var re,ae=-1,se=z.length;++ae<se;)if(z[ae]&&z[ae].test&&z[ae].test()){re=z[ae].install(ne);break}function ce(me,he){this.fun=me,this.array=he}ce.prototype.run=function(){var me=this.fun,he=this.array;switch(he.length){case 0:return me();case 1:return me(he[0]);case 2:return me(he[0],he[1]);case 3:return me(he[0],he[1],he[2]);default:return me.apply(null,he)}},Te.exports=pe;function pe(me){var he=new Array(arguments.length-1);if(arguments.length>1)for(var ye=1;ye<arguments.length;ye++)he[ye-1]=arguments[ye];ee.push(new ce(me,he)),!le&&!E&&(le=!0,re())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(a,Te,be){(function(z){(function(){"use strict";be.test=function(){return z.setImmediate?!1:typeof z.MessageChannel!="undefined"},be.install=function(E){var ie=new z.MessageChannel;return ie.port1.onmessage=E,function(){ie.port2.postMessage(0)}}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(a,Te,be){(function(z){(function(){"use strict";var E=z.MutationObserver||z.WebKitMutationObserver;be.test=function(){return E},be.install=function(ie){var oe=0,ee=new E(ie),le=z.document.createTextNode("");return ee.observe(le,{characterData:!0}),function(){le.data=oe=++oe%2}}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(a,Te,be){(function(z){(function(){"use strict";be.test=function(){return typeof z.queueMicrotask=="function"},be.install=function(E){return function(){z.queueMicrotask(E)}}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(a,Te,be){(function(z){(function(){"use strict";be.test=function(){return"document"in z&&"onreadystatechange"in z.document.createElement("script")},be.install=function(E){return function(){var ie=z.document.createElement("script");return ie.onreadystatechange=function(){E(),ie.onreadystatechange=null,ie.parentNode.removeChild(ie),ie=null},z.document.documentElement.appendChild(ie),E}}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(a,Te,be){"use strict";be.test=function(){return!0},be.install=function(z){return function(){setTimeout(z,0)}}},{}],364:[function(a,Te,be){typeof Object.create=="function"?Te.exports=function(E,ie){ie&&(E.super_=ie,E.prototype=Object.create(ie.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:Te.exports=function(E,ie){if(ie){E.super_=ie;var oe=function(){};oe.prototype=ie.prototype,E.prototype=new oe,E.prototype.constructor=E}}},{}],365:[function(a,Te,be){"use strict";var z=a("has-tostringtag/shams")(),E=a("call-bind/callBound"),ie=E("Object.prototype.toString"),oe=function(ne){return z&&ne&&typeof ne=="object"&&Symbol.toStringTag in ne?!1:ie(ne)==="[object Arguments]"},ee=function(ne){return oe(ne)?!0:ne!==null&&typeof ne=="object"&&typeof ne.length=="number"&&ne.length>=0&&ie(ne)!=="[object Array]"&&ie(ne.callee)==="[object Function]"},le=function(){return oe(arguments)}();oe.isLegacyArguments=ee,Te.exports=le?oe:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(a,Te,be){Te.exports=function(ie){return ie!=null&&(z(ie)||E(ie)||!!ie._isBuffer)};function z(ie){return!!ie.constructor&&typeof ie.constructor.isBuffer=="function"&&ie.constructor.isBuffer(ie)}function E(ie){return typeof ie.readFloatLE=="function"&&typeof ie.slice=="function"&&z(ie.slice(0,0))}},{}],367:[function(a,Te,be){"use strict";var z=Function.prototype.toString,E=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ie,oe;if(typeof E=="function"&&typeof Object.defineProperty=="function")try{ie=Object.defineProperty({},"length",{get:function(){throw oe}}),oe={},E(function(){throw 42},null,ie)}catch(Be){Be!==oe&&(E=null)}else E=null;var ee=/^\s*class\b/,le=function(Pe){try{var Ce=z.call(Pe);return ee.test(Ce)}catch(Ee){return!1}},x=function(Pe){try{return le(Pe)?!1:(z.call(Pe),!0)}catch(Ce){return!1}},ne=Object.prototype.toString,re="[object Object]",ae="[object Function]",se="[object GeneratorFunction]",ce="[object HTMLAllCollection]",pe="[object HTML document.all class]",me="[object HTMLCollection]",he=typeof Symbol=="function"&&!!Symbol.toStringTag,ye=!(0 in[,]),De=function(){return!1};if(typeof document=="object"){var Me=document.all;ne.call(Me)===ne.call(document.all)&&(De=function(Pe){if((ye||!Pe)&&(typeof Pe=="undefined"||typeof Pe=="object"))try{var Ce=ne.call(Pe);return(Ce===ce||Ce===pe||Ce===me||Ce===re)&&Pe("")==null}catch(Ee){}return!1})}Te.exports=E?function(Pe){if(De(Pe))return!0;if(!Pe||typeof Pe!="function"&&typeof Pe!="object")return!1;try{E(Pe,null,ie)}catch(Ce){if(Ce!==oe)return!1}return!le(Pe)&&x(Pe)}:function(Pe){if(De(Pe))return!0;if(!Pe||typeof Pe!="function"&&typeof Pe!="object")return!1;if(he)return x(Pe);if(le(Pe))return!1;var Ce=ne.call(Pe);return Ce!==ae&&Ce!==se&&!/^\[object HTML/.test(Ce)?!1:x(Pe)}},{}],368:[function(a,Te,be){"use strict";var z=Object.prototype.toString,E=Function.prototype.toString,ie=/^\s*(?:function)?\*/,oe=a("has-tostringtag/shams")(),ee=Object.getPrototypeOf,le=function(){if(!oe)return!1;try{return Function("return function*() {}")()}catch(ne){}},x;Te.exports=function(re){if(typeof re!="function")return!1;if(ie.test(E.call(re)))return!0;if(!oe){var ae=z.call(re);return ae==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof x=="undefined"){var se=le();x=se?ee(se):!1}return ee(re)===x}},{"has-tostringtag/shams":353}],369:[function(a,Te,be){"use strict";var z=a("which-typed-array");Te.exports=function(ie){return!!z(ie)}},{"which-typed-array":420}],370:[function(a,Te,be){var z={}.toString;Te.exports=Array.isArray||function(E){return z.call(E)=="[object Array]"}},{}],371:[function(a,Te,be){(function(z){(function(){(function(E,ie){typeof be=="object"&&typeof Te!="undefined"?Te.exports=ie(E):typeof Ie=="function"&&Ie.amd?Ie(ie):ie(E)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof z!="undefined"?z:this,function(E){"use strict";E=E||{};var ie=E.Base64,oe="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",le=function(Je){for(var at={},Fe=0,Ke=Je.length;Fe<Ke;Fe++)at[Je.charAt(Fe)]=Fe;return at}(ee),x=String.fromCharCode,ne=function(Je){if(Je.length<2){var at=Je.charCodeAt(0);return at<128?Je:at<2048?x(192|at>>>6)+x(128|at&63):x(224|at>>>12&15)+x(128|at>>>6&63)+x(128|at&63)}else{var at=65536+(Je.charCodeAt(0)-55296)*1024+(Je.charCodeAt(1)-56320);return x(240|at>>>18&7)+x(128|at>>>12&63)+x(128|at>>>6&63)+x(128|at&63)}},re=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(Je){return Je.replace(re,ne)},se=function(Je){var at=[0,2,1][Je.length%3],Fe=Je.charCodeAt(0)<<16|(Je.length>1?Je.charCodeAt(1):0)<<8|(Je.length>2?Je.charCodeAt(2):0),Ke=[ee.charAt(Fe>>>18),ee.charAt(Fe>>>12&63),at>=2?"=":ee.charAt(Fe>>>6&63),at>=1?"=":ee.charAt(Fe&63)];return Ke.join("")},ce=E.btoa&&typeof E.btoa=="function"?function(Je){return E.btoa(Je)}:function(Je){if(Je.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Je.replace(/[\s\S]{1,3}/g,se)},pe=function(Je){return ce(ae(String(Je)))},me=function(Je){return Je.replace(/[+\/]/g,function(at){return at=="+"?"-":"_"}).replace(/=/g,"")},he=function(Je,at){return at?me(pe(Je)):pe(Je)},ye=function(Je){return he(Je,!0)},De;E.Uint8Array&&(De=function(Je,at){for(var Fe="",Ke=0,it=Je.length;Ke<it;Ke+=3){var rt=Je[Ke],et=Je[Ke+1],$e=Je[Ke+2],Xe=rt<<16|et<<8|$e;Fe+=ee.charAt(Xe>>>18)+ee.charAt(Xe>>>12&63)+(typeof et!="undefined"?ee.charAt(Xe>>>6&63):"=")+(typeof $e!="undefined"?ee.charAt(Xe&63):"=")}return at?me(Fe):Fe});var Me=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Be=function(Je){switch(Je.length){case 4:var at=(7&Je.charCodeAt(0))<<18|(63&Je.charCodeAt(1))<<12|(63&Je.charCodeAt(2))<<6|63&Je.charCodeAt(3),Fe=at-65536;return x((Fe>>>10)+55296)+x((Fe&1023)+56320);case 3:return x((15&Je.charCodeAt(0))<<12|(63&Je.charCodeAt(1))<<6|63&Je.charCodeAt(2));default:return x((31&Je.charCodeAt(0))<<6|63&Je.charCodeAt(1))}},Pe=function(Je){return Je.replace(Me,Be)},Ce=function(Je){var at=Je.length,Fe=at%4,Ke=(at>0?le[Je.charAt(0)]<<18:0)|(at>1?le[Je.charAt(1)]<<12:0)|(at>2?le[Je.charAt(2)]<<6:0)|(at>3?le[Je.charAt(3)]:0),it=[x(Ke>>>16),x(Ke>>>8&255),x(Ke&255)];return it.length-=[0,0,2,1][Fe],it.join("")},Ee=E.atob&&typeof E.atob=="function"?function(Je){return E.atob(Je)}:function(Je){return Je.replace(/\S{1,4}/g,Ce)},je=function(Je){return Ee(String(Je).replace(/[^A-Za-z0-9\+\/]/g,""))},ke=function(Je){return Pe(Ee(Je))},Le=function(Je){return String(Je).replace(/[-_]/g,function(at){return at=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ae=function(Je){return ke(Le(Je))},Se;E.Uint8Array&&(Se=function(Je){return Uint8Array.from(je(Le(Je)),function(at){return at.charCodeAt(0)})});var Ge=function(){var Je=E.Base64;return E.Base64=ie,Je};if(E.Base64={VERSION:oe,atob:je,btoa:ce,fromBase64:Ae,toBase64:he,utob:ae,encode:he,encodeURI:ye,btou:Pe,decode:Ae,noConflict:Ge,fromUint8Array:De,toUint8Array:Se},typeof Object.defineProperty=="function"){var Ze=function(Je){return{value:Je,enumerable:!1,writable:!0,configurable:!0}};E.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ze(function(){return Ae(this)})),Object.defineProperty(String.prototype,"toBase64",Ze(function(Je){return he(this,Je)})),Object.defineProperty(String.prototype,"toBase64URI",Ze(function(){return he(this,!0)}))}}return E.Meteor&&(Base64=E.Base64),typeof Te!="undefined"&&Te.exports?Te.exports.Base64=E.Base64:typeof Ie=="function"&&Ie.amd&&Ie([],function(){return E.Base64}),{Base64:E.Base64}})}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(a,Te,be){"use strict";Te.exports=E;var z=Object.prototype.hasOwnProperty;function E(ie,oe,ee){if(!ie)throw new TypeError("argument dest is required");if(!oe)throw new TypeError("argument src is required");return ee===void 0&&(ee=!0),Object.getOwnPropertyNames(oe).forEach(function(x){if(!(!ee&&z.call(ie,x))){var ne=Object.getOwnPropertyDescriptor(oe,x);Object.defineProperty(ie,x,ne)}}),ie}},{}],373:[function(a,Te,be){"use strict";a("core-js/modules/es.array.map.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.regexp.constructor.js"),a("core-js/modules/es.regexp.to-string.js");function z(){this._types=Object.create(null),this._extensions=Object.create(null);for(var E=0;E<arguments.length;E++)this.define(arguments[E]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}z.prototype.define=function(E,ie){for(var oe in E){var ee=E[oe].map(function(re){return re.toLowerCase()});oe=oe.toLowerCase();for(var le=0;le<ee.length;le++){var x=ee[le];if(x[0]!=="*"){if(!ie&&x in this._types)throw new Error('Attempt to change mapping for "'+x+'" extension from "'+this._types[x]+'" to "'+oe+'". Pass `force=true` to allow this, otherwise remove "'+x+'" from the list of extensions for "'+oe+'".');this._types[x]=oe}}if(ie||!this._extensions[oe]){var ne=ee[0];this._extensions[oe]=ne[0]!=="*"?ne:ne.substr(1)}}},z.prototype.getType=function(E){E=String(E);var ie=E.replace(/^.*[/\\]/,"").toLowerCase(),oe=ie.replace(/^.*\./,"").toLowerCase(),ee=ie.length<E.length,le=oe.length<ie.length-1;return(le||!ee)&&this._types[oe]||null},z.prototype.getExtension=function(E){return E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1,E&&this._extensions[E.toLowerCase()]||null},Te.exports=z},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(a,Te,be){"use strict";var z=a("./Mime");Te.exports=new z(a("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(a,Te,be){"use strict";Te.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(a,Te,be){var z=1e3,E=z*60,ie=E*60,oe=ie*24,ee=oe*7,le=oe*365.25;Te.exports=function(se,ce){ce=ce||{};var pe=typeof se;if(pe==="string"&&se.length>0)return x(se);if(pe==="number"&&isFinite(se))return ce.long?re(se):ne(se);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(se))};function x(se){if(se=String(se),!(se.length>100)){var ce=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(se);if(ce){var pe=parseFloat(ce[1]),me=(ce[2]||"ms").toLowerCase();switch(me){case"years":case"year":case"yrs":case"yr":case"y":return pe*le;case"weeks":case"week":case"w":return pe*ee;case"days":case"day":case"d":return pe*oe;case"hours":case"hour":case"hrs":case"hr":case"h":return pe*ie;case"minutes":case"minute":case"mins":case"min":case"m":return pe*E;case"seconds":case"second":case"secs":case"sec":case"s":return pe*z;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return pe;default:return}}}}function ne(se){var ce=Math.abs(se);return ce>=oe?Math.round(se/oe)+"d":ce>=ie?Math.round(se/ie)+"h":ce>=E?Math.round(se/E)+"m":ce>=z?Math.round(se/z)+"s":se+"ms"}function re(se){var ce=Math.abs(se);return ce>=oe?ae(se,ce,oe,"day"):ce>=ie?ae(se,ce,ie,"hour"):ce>=E?ae(se,ce,E,"minute"):ce>=z?ae(se,ce,z,"second"):se+" ms"}function ae(se,ce,pe,me){var he=ce>=pe*1.5;return Math.round(se/pe)+" "+me+(he?"s":"")}},{}],377:[function(a,Te,be){"use strict";var z=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function oe(le){if(le==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(le)}function ee(){try{if(!Object.assign)return!1;var le=new String("abc");if(le[5]="de",Object.getOwnPropertyNames(le)[0]==="5")return!1;for(var x={},ne=0;ne<10;ne++)x["_"+String.fromCharCode(ne)]=ne;var re=Object.getOwnPropertyNames(x).map(function(se){return x[se]});if(re.join("")!=="0123456789")return!1;var ae={};return"abcdefghijklmnopqrst".split("").forEach(function(se){ae[se]=se}),Object.keys(Object.assign({},ae)).join("")==="abcdefghijklmnopqrst"}catch(se){return!1}}Te.exports=ee()?Object.assign:function(le,x){for(var ne,re=oe(le),ae,se=1;se<arguments.length;se++){ne=Object(arguments[se]);for(var ce in ne)E.call(ne,ce)&&(re[ce]=ne[ce]);if(z){ae=z(ne);for(var pe=0;pe<ae.length;pe++)ie.call(ne,ae[pe])&&(re[ae[pe]]=ne[ae[pe]])}}return re}},{}],378:[function(a,Te,be){(function(z){(function(){"use strict";function E(le){if(typeof le!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(le))}function ie(le,x){for(var ne="",re=0,ae=-1,se=0,ce,pe=0;pe<=le.length;++pe){if(pe<le.length)ce=le.charCodeAt(pe);else{if(ce===47)break;ce=47}if(ce===47){if(!(ae===pe-1||se===1))if(ae!==pe-1&&se===2){if(ne.length<2||re!==2||ne.charCodeAt(ne.length-1)!==46||ne.charCodeAt(ne.length-2)!==46){if(ne.length>2){var me=ne.lastIndexOf("/");if(me!==ne.length-1){me===-1?(ne="",re=0):(ne=ne.slice(0,me),re=ne.length-1-ne.lastIndexOf("/")),ae=pe,se=0;continue}}else if(ne.length===2||ne.length===1){ne="",re=0,ae=pe,se=0;continue}}x&&(ne.length>0?ne+="/..":ne="..",re=2)}else ne.length>0?ne+="/"+le.slice(ae+1,pe):ne=le.slice(ae+1,pe),re=pe-ae-1;ae=pe,se=0}else ce===46&&se!==-1?++se:se=-1}return ne}function oe(le,x){var ne=x.dir||x.root,re=x.base||(x.name||"")+(x.ext||"");return ne?ne===x.root?ne+re:ne+le+re:re}var ee={resolve:function(){for(var x="",ne=!1,re,ae=arguments.length-1;ae>=-1&&!ne;ae--){var se;ae>=0?se=arguments[ae]:(re===void 0&&(re=z.cwd()),se=re),E(se),se.length!==0&&(x=se+"/"+x,ne=se.charCodeAt(0)===47)}return x=ie(x,!ne),ne?x.length>0?"/"+x:"/":x.length>0?x:"."},normalize:function(x){if(E(x),x.length===0)return".";var ne=x.charCodeAt(0)===47,re=x.charCodeAt(x.length-1)===47;return x=ie(x,!ne),x.length===0&&!ne&&(x="."),x.length>0&&re&&(x+="/"),ne?"/"+x:x},isAbsolute:function(x){return E(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,ne=0;ne<arguments.length;++ne){var re=arguments[ne];E(re),re.length>0&&(x===void 0?x=re:x+="/"+re)}return x===void 0?".":ee.normalize(x)},relative:function(x,ne){if(E(x),E(ne),x===ne||(x=ee.resolve(x),ne=ee.resolve(ne),x===ne))return"";for(var re=1;re<x.length&&x.charCodeAt(re)===47;++re);for(var ae=x.length,se=ae-re,ce=1;ce<ne.length&&ne.charCodeAt(ce)===47;++ce);for(var pe=ne.length,me=pe-ce,he=se<me?se:me,ye=-1,De=0;De<=he;++De){if(De===he){if(me>he){if(ne.charCodeAt(ce+De)===47)return ne.slice(ce+De+1);if(De===0)return ne.slice(ce+De)}else se>he&&(x.charCodeAt(re+De)===47?ye=De:De===0&&(ye=0));break}var Me=x.charCodeAt(re+De),Be=ne.charCodeAt(ce+De);if(Me!==Be)break;Me===47&&(ye=De)}var Pe="";for(De=re+ye+1;De<=ae;++De)(De===ae||x.charCodeAt(De)===47)&&(Pe.length===0?Pe+="..":Pe+="/..");return Pe.length>0?Pe+ne.slice(ce+ye):(ce+=ye,ne.charCodeAt(ce)===47&&++ce,ne.slice(ce))},_makeLong:function(x){return x},dirname:function(x){if(E(x),x.length===0)return".";for(var ne=x.charCodeAt(0),re=ne===47,ae=-1,se=!0,ce=x.length-1;ce>=1;--ce)if(ne=x.charCodeAt(ce),ne===47){if(!se){ae=ce;break}}else se=!1;return ae===-1?re?"/":".":re&&ae===1?"//":x.slice(0,ae)},basename:function(x,ne){if(ne!==void 0&&typeof ne!="string")throw new TypeError('"ext" argument must be a string');E(x);var re=0,ae=-1,se=!0,ce;if(ne!==void 0&&ne.length>0&&ne.length<=x.length){if(ne.length===x.length&&ne===x)return"";var pe=ne.length-1,me=-1;for(ce=x.length-1;ce>=0;--ce){var he=x.charCodeAt(ce);if(he===47){if(!se){re=ce+1;break}}else me===-1&&(se=!1,me=ce+1),pe>=0&&(he===ne.charCodeAt(pe)?--pe===-1&&(ae=ce):(pe=-1,ae=me))}return re===ae?ae=me:ae===-1&&(ae=x.length),x.slice(re,ae)}else{for(ce=x.length-1;ce>=0;--ce)if(x.charCodeAt(ce)===47){if(!se){re=ce+1;break}}else ae===-1&&(se=!1,ae=ce+1);return ae===-1?"":x.slice(re,ae)}},extname:function(x){E(x);for(var ne=-1,re=0,ae=-1,se=!0,ce=0,pe=x.length-1;pe>=0;--pe){var me=x.charCodeAt(pe);if(me===47){if(!se){re=pe+1;break}continue}ae===-1&&(se=!1,ae=pe+1),me===46?ne===-1?ne=pe:ce!==1&&(ce=1):ne!==-1&&(ce=-1)}return ne===-1||ae===-1||ce===0||ce===1&&ne===ae-1&&ne===re+1?"":x.slice(ne,ae)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return oe("/",x)},parse:function(x){E(x);var ne={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return ne;var re=x.charCodeAt(0),ae=re===47,se;ae?(ne.root="/",se=1):se=0;for(var ce=-1,pe=0,me=-1,he=!0,ye=x.length-1,De=0;ye>=se;--ye){if(re=x.charCodeAt(ye),re===47){if(!he){pe=ye+1;break}continue}me===-1&&(he=!1,me=ye+1),re===46?ce===-1?ce=ye:De!==1&&(De=1):ce!==-1&&(De=-1)}return ce===-1||me===-1||De===0||De===1&&ce===me-1&&ce===pe+1?me!==-1&&(pe===0&&ae?ne.base=ne.name=x.slice(1,me):ne.base=ne.name=x.slice(pe,me)):(pe===0&&ae?(ne.name=x.slice(1,ce),ne.base=x.slice(1,me)):(ne.name=x.slice(pe,ce),ne.base=x.slice(pe,me)),ne.ext=x.slice(ce,me)),pe>0?ne.dir=x.slice(0,pe-1):ae&&(ne.dir="/"),ne},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,Te.exports=ee}).call(this)}).call(this,a("_process"))},{_process:467}],379:[function(a,Te,be){(function(z){(function(){(function(){"use strict";var E={function:!0,object:!0},ie=E[typeof window]&&window||this,oe=ie,ee=E[typeof be]&&be,le=E[typeof Te]&&Te&&!Te.nodeType&&Te,x=ee&&le&&typeof z=="object"&&z;x&&(x.global===x||x.window===x||x.self===x)&&(ie=x);var ne=Math.pow(2,53)-1,re=/\bOpera/,ae=this,se=Object.prototype,ce=se.hasOwnProperty,pe=se.toString;function me(Ae){return Ae=String(Ae),Ae.charAt(0).toUpperCase()+Ae.slice(1)}function he(Ae,Se,Ge){var Ze={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Se&&Ge&&/^Win/i.test(Ae)&&!/^Windows Phone /i.test(Ae)&&(Ze=Ze[/[\d.]+$/.exec(Ae)])&&(Ae="Windows "+Ze),Ae=String(Ae),Se&&Ge&&(Ae=Ae.replace(RegExp(Se,"i"),Ge)),Ae=De(Ae.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),Ae}function ye(Ae,Se){var Ge=-1,Ze=Ae?Ae.length:0;if(typeof Ze=="number"&&Ze>-1&&Ze<=ne)for(;++Ge<Ze;)Se(Ae[Ge],Ge,Ae);else Me(Ae,Se)}function De(Ae){return Ae=je(Ae),/^(?:webOS|i(?:OS|P))/.test(Ae)?Ae:me(Ae)}function Me(Ae,Se){for(var Ge in Ae)ce.call(Ae,Ge)&&Se(Ae[Ge],Ge,Ae)}function Be(Ae){return Ae==null?me(Ae):pe.call(Ae).slice(8,-1)}function Pe(Ae,Se){var Ge=Ae!=null?typeof Ae[Se]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ge)&&(Ge=="object"?!!Ae[Se]:!0)}function Ce(Ae){return String(Ae).replace(/([ -])(?!$)/g,"$1?")}function Ee(Ae,Se){var Ge=null;return ye(Ae,function(Ze,Je){Ge=Se(Ge,Ze,Je,Ae)}),Ge}function je(Ae){return String(Ae).replace(/^ +| +$/g,"")}function ke(Ae){var Se=ie,Ge=Ae&&typeof Ae=="object"&&Be(Ae)!="String";Ge&&(Se=Ae,Ae=null);var Ze=Se.navigator||{},Je=Ze.userAgent||"";Ae||(Ae=Je);var at=Ge||ae==oe,Fe=Ge?!!Ze.likeChrome:/\bChrome\b/.test(Ae)&&!/internal|\n/i.test(pe.toString()),Ke="Object",it=Ge?Ke:"ScriptBridgingProxyObject",rt=Ge?Ke:"Environment",et=Ge&&Se.java?"JavaPackage":Be(Se.java),$e=Ge?Ke:"RuntimeObject",Xe=/\bJava/.test(et)&&Se.java,Ve=Xe&&Be(Se.environment)==rt,nt=Xe?"a":"\u03B1",Qe=Xe?"b":"\u03B2",ct=Se.document||{},ot=Se.operamini||Se.opera,qe=re.test(qe=Ge&&ot?ot["[[Class]]"]:Be(ot))?qe:ot=null,_e,Re=Ae,te=[],de=null,Ne=Ae==Je,ze=Ne&&ot&&typeof ot.version=="function"&&ot.version(),xe,ve=st([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Oe=ft(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),We=St([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Ue=lt({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),Ye=Tt(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function st(Et){return Ee(Et,function(xt,jt){return xt||RegExp("\\b"+(jt.pattern||Ce(jt))+"\\b","i").exec(Ae)&&(jt.label||jt)})}function lt(Et){return Ee(Et,function(xt,jt,At){return xt||(jt[We]||jt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(We)]||RegExp("\\b"+Ce(At)+"(?:\\b|\\w*\\d)","i").exec(Ae))&&At})}function ft(Et){return Ee(Et,function(xt,jt){return xt||RegExp("\\b"+(jt.pattern||Ce(jt))+"\\b","i").exec(Ae)&&(jt.label||jt)})}function Tt(Et){return Ee(Et,function(xt,jt){var At=jt.pattern||Ce(jt);return!xt&&(xt=RegExp("\\b"+At+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Ae))&&(xt=he(xt,At,jt.label||jt)),xt})}function St(Et){return Ee(Et,function(xt,jt){var At=jt.pattern||Ce(jt);return!xt&&(xt=RegExp("\\b"+At+" *\\d+[.\\w_]*","i").exec(Ae)||RegExp("\\b"+At+" *\\w+-[\\w]*","i").exec(Ae)||RegExp("\\b"+At+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Ae))&&((xt=String(jt.label&&!RegExp(At,"i").test(jt.label)?jt.label:xt).split("/"))[1]&&!/[\d.]+/.test(xt[0])&&(xt[0]+=" "+xt[1]),jt=jt.label||jt,xt=De(xt[0].replace(RegExp(At,"i"),jt).replace(RegExp("; *(?:"+jt+"[_-])?","i")," ").replace(RegExp("("+jt+")[-_.]?(\\w)","i"),"$1 $2"))),xt})}function Ot(Et){return Ee(Et,function(xt,jt){return xt||(RegExp(jt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Ae)||0)[1]||null})}function yt(){return this.description||""}if(ve&&(ve=[ve]),/\bAndroid\b/.test(Ye)&&!We&&(_e=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Ae))&&(We=je(_e[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),Ue&&!We?We=St([Ue]):Ue&&We&&(We=We.replace(RegExp("^("+Ce(Ue)+")[-_.\\s]","i"),Ue+" ").replace(RegExp("^("+Ce(Ue)+")[-_.]?(\\w)","i"),Ue+" $2")),(_e=/\bGoogle TV\b/.exec(We))&&(We=_e[0]),/\bSimulator\b/i.test(Ae)&&(We=(We?We+" ":"")+"Simulator"),Oe=="Opera Mini"&&/\bOPiOS\b/.test(Ae)&&te.push("running in Turbo/Uncompressed mode"),Oe=="IE"&&/\blike iPhone OS\b/.test(Ae)?(_e=ke(Ae.replace(/like iPhone OS/,"")),Ue=_e.manufacturer,We=_e.product):/^iP/.test(We)?(Oe||(Oe="Safari"),Ye="iOS"+((_e=/ OS ([\d_]+)/i.exec(Ae))?" "+_e[1].replace(/_/g,"."):"")):Oe=="Konqueror"&&/^Linux\b/i.test(Ye)?Ye="Kubuntu":Ue&&Ue!="Google"&&(/Chrome/.test(Oe)&&!/\bMobile Safari\b/i.test(Ae)||/\bVita\b/.test(We))||/\bAndroid\b/.test(Ye)&&/^Chrome/.test(Oe)&&/\bVersion\//i.test(Ae)?(Oe="Android Browser",Ye=/\bAndroid\b/.test(Ye)?Ye:"Android"):Oe=="Silk"?(/\bMobi/i.test(Ae)||(Ye="Android",te.unshift("desktop mode")),/Accelerated *= *true/i.test(Ae)&&te.unshift("accelerated")):Oe=="UC Browser"&&/\bUCWEB\b/.test(Ae)?te.push("speed mode"):Oe=="PaleMoon"&&(_e=/\bFirefox\/([\d.]+)\b/.exec(Ae))?te.push("identifying as Firefox "+_e[1]):Oe=="Firefox"&&(_e=/\b(Mobile|Tablet|TV)\b/i.exec(Ae))?(Ye||(Ye="Firefox OS"),We||(We=_e[1])):!Oe||(_e=!/\bMinefield\b/i.test(Ae)&&/\b(?:Firefox|Safari)\b/.exec(Oe))?(Oe&&!We&&/[\/,]|^[^(]+?\)/.test(Ae.slice(Ae.indexOf(_e+"/")+8))&&(Oe=null),(_e=We||Ue||Ye)&&(We||Ue||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ye))&&(Oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ye)?Ye:_e)+" Browser")):Oe=="Electron"&&(_e=(/\bChrome\/([\d.]+)\b/.exec(Ae)||0)[1])&&te.push("Chromium "+_e),ze||(ze=Ot(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",Ce(Oe),"(?:Firefox|Minefield|NetFront)"])),(_e=ve=="iCab"&&parseFloat(ze)>3&&"WebKit"||/\bOpera\b/.test(Oe)&&(/\bOPR\b/.test(Ae)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ae)&&!/^(?:Trident|EdgeHTML)$/.test(ve)&&"WebKit"||!ve&&/\bMSIE\b/i.test(Ae)&&(Ye=="Mac OS"?"Tasman":"Trident")||ve=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Oe)&&"NetFront")&&(ve=[_e]),Oe=="IE"&&(_e=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ae)||0)[1])?(Oe+=" Mobile",Ye="Windows Phone "+(/\+$/.test(_e)?_e:_e+".x"),te.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ae)?(Oe="IE Mobile",Ye="Windows Phone 8.x",te.unshift("desktop mode"),ze||(ze=(/\brv:([\d.]+)/.exec(Ae)||0)[1])):Oe!="IE"&&ve=="Trident"&&(_e=/\brv:([\d.]+)/.exec(Ae))&&(Oe&&te.push("identifying as "+Oe+(ze?" "+ze:"")),Oe="IE",ze=_e[1]),Ne){if(Pe(Se,"global"))if(Xe&&(_e=Xe.lang.System,Re=_e.getProperty("os.arch"),Ye=Ye||_e.getProperty("os.name")+" "+_e.getProperty("os.version")),Ve){try{ze=Se.require("ringo/engine").version.join("."),Oe="RingoJS"}catch(Et){(_e=Se.system)&&_e.global.system==Se.system&&(Oe="Narwhal",Ye||(Ye=_e[0].os||null))}Oe||(Oe="Rhino")}else typeof Se.process=="object"&&!Se.process.browser&&(_e=Se.process)&&(typeof _e.versions=="object"&&(typeof _e.versions.electron=="string"?(te.push("Node "+_e.versions.node),Oe="Electron",ze=_e.versions.electron):typeof _e.versions.nw=="string"&&(te.push("Chromium "+ze,"Node "+_e.versions.node),Oe="NW.js",ze=_e.versions.nw)),Oe||(Oe="Node.js",Re=_e.arch,Ye=_e.platform,ze=/[\d.]+/.exec(_e.version),ze=ze?ze[0]:null));else Be(_e=Se.runtime)==it?(Oe="Adobe AIR",Ye=_e.flash.system.Capabilities.os):Be(_e=Se.phantom)==$e?(Oe="PhantomJS",ze=(_e=_e.version||null)&&_e.major+"."+_e.minor+"."+_e.patch):typeof ct.documentMode=="number"&&(_e=/\bTrident\/(\d+)/i.exec(Ae))?(ze=[ze,ct.documentMode],(_e=+_e[1]+4)!=ze[1]&&(te.push("IE "+ze[1]+" mode"),ve&&(ve[1]=""),ze[1]=_e),ze=Oe=="IE"?String(ze[1].toFixed(1)):ze[0]):typeof ct.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Oe)&&(te.push("masking as "+Oe+" "+ze),Oe="IE",ze="11.0",ve=["Trident"],Ye="Windows");Ye=Ye&&De(Ye)}if(ze&&(_e=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(ze)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ae+";"+(Ne&&Ze.appMinorVersion))||/\bMinefield\b/i.test(Ae)&&"a")&&(de=/b/i.test(_e)?"beta":"alpha",ze=ze.replace(RegExp(_e+"\\+?$"),"")+(de=="beta"?Qe:nt)+(/\d+\+?/.exec(_e)||"")),Oe=="Fennec"||Oe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ye))Oe="Firefox Mobile";else if(Oe=="Maxthon"&&ze)ze=ze.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(We))We=="Xbox 360"&&(Ye=null),We=="Xbox 360"&&/\bIEMobile\b/.test(Ae)&&te.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Oe)||Oe&&!We&&!/Browser|Mobi/.test(Oe))&&(Ye=="Windows CE"||/Mobi/i.test(Ae)))Oe+=" Mobile";else if(Oe=="IE"&&Ne)try{Se.external===null&&te.unshift("platform preview")}catch(Et){te.unshift("embedded")}else(/\bBlackBerry\b/.test(We)||/\bBB10\b/.test(Ae))&&(_e=(RegExp(We.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ae)||0)[1]||ze)?(_e=[_e,/BB10/.test(Ae)],Ye=(_e[1]?(We=null,Ue="BlackBerry"):"Device Software")+" "+_e[0],ze=null):this!=Me&&We!="Wii"&&(Ne&&ot||/Opera/.test(Oe)&&/\b(?:MSIE|Firefox)\b/i.test(Ae)||Oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Ye)||Oe=="IE"&&(Ye&&!/^Win/.test(Ye)&&ze>5.5||/\bWindows XP\b/.test(Ye)&&ze>8||ze==8&&!/\bTrident\b/.test(Ae)))&&!re.test(_e=ke.call(Me,Ae.replace(re,"")+";"))&&_e.name&&(_e="ing as "+_e.name+((_e=_e.version)?" "+_e:""),re.test(Oe)?(/\bIE\b/.test(_e)&&Ye=="Mac OS"&&(Ye=null),_e="identify"+_e):(_e="mask"+_e,qe?Oe=De(qe.replace(/([a-z])([A-Z])/g,"$1 $2")):Oe="Opera",/\bIE\b/.test(_e)&&(Ye=null),Ne||(ze=null)),ve=["Presto"],te.push(_e));(_e=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ae)||0)[1])&&(_e=[parseFloat(_e.replace(/\.(\d)$/,".0$1")),_e],Oe=="Safari"&&_e[1].slice(-1)=="+"?(Oe="WebKit Nightly",de="alpha",ze=_e[1].slice(0,-1)):(ze==_e[1]||ze==(_e[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ae)||0)[1]))&&(ze=null),_e[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ae)||0)[1],_e[0]==537.36&&_e[2]==537.36&&parseFloat(_e[1])>=28&&ve=="WebKit"&&(ve=["Blink"]),!Ne||!Fe&&!_e[1]?(ve&&(ve[1]="like Safari"),_e=(_e=_e[0],_e<400?1:_e<500?2:_e<526?3:_e<533?4:_e<534?"4+":_e<535?5:_e<537?6:_e<538?7:_e<601?8:_e<602?9:_e<604?10:_e<606?11:_e<608?12:"12")):(ve&&(ve[1]="like Chrome"),_e=_e[1]||(_e=_e[0],_e<530?1:_e<532?2:_e<532.05?3:_e<533?4:_e<534.03?5:_e<534.07?6:_e<534.1?7:_e<534.13?8:_e<534.16?9:_e<534.24?10:_e<534.3?11:_e<535.01?12:_e<535.02?"13+":_e<535.07?15:_e<535.11?16:_e<535.19?17:_e<536.05?18:_e<536.1?19:_e<537.01?20:_e<537.11?"21+":_e<537.13?23:_e<537.18?24:_e<537.24?25:_e<537.36?26:ve!="Blink"?"27":"28")),ve&&(ve[1]+=" "+(_e+=typeof _e=="number"?".x":/[.+]/.test(_e)?"":"+")),Oe=="Safari"&&(!ze||parseInt(ze)>45)?ze=_e:Oe=="Chrome"&&/\bHeadlessChrome/i.test(Ae)&&te.unshift("headless")),Oe=="Opera"&&(_e=/\bzbov|zvav$/.exec(Ye))?(Oe+=" ",te.unshift("desktop mode"),_e=="zvav"?(Oe+="Mini",ze=null):Oe+="Mobile",Ye=Ye.replace(RegExp(" *"+_e+"$"),"")):Oe=="Safari"&&/\bChrome\b/.exec(ve&&ve[1])?(te.unshift("desktop mode"),Oe="Chrome Mobile",ze=null,/\bOS X\b/.test(Ye)?(Ue="Apple",Ye="iOS 4.3+"):Ye=null):/\bSRWare Iron\b/.test(Oe)&&!ze&&(ze=Ot("Chrome")),ze&&ze.indexOf(_e=/[\d.]+$/.exec(Ye))==0&&Ae.indexOf("/"+_e+"-")>-1&&(Ye=je(Ye.replace(_e,""))),Ye&&Ye.indexOf(Oe)!=-1&&!RegExp(Oe+" OS").test(Ye)&&(Ye=Ye.replace(RegExp(" *"+Ce(Oe)+" *"),"")),ve&&!/\b(?:Avant|Nook)\b/.test(Oe)&&(/Browser|Lunascape|Maxthon/.test(Oe)||Oe!="Safari"&&/^iOS/.test(Ye)&&/\bSafari\b/.test(ve[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Oe)&&ve[1])&&(_e=ve[ve.length-1])&&te.push(_e),te.length&&(te=["("+te.join("; ")+")"]),Ue&&We&&We.indexOf(Ue)<0&&te.push("on "+Ue),We&&te.push((/^on /.test(te[te.length-1])?"":"on ")+We),Ye&&(_e=/ ([\d.+]+)$/.exec(Ye),xe=_e&&Ye.charAt(Ye.length-_e[0].length-1)=="/",Ye={architecture:32,family:_e&&!xe?Ye.replace(_e[0],""):Ye,version:_e?_e[1]:null,toString:function(){var Et=this.version;return this.family+(Et&&!xe?" "+Et:"")+(this.architecture==64?" 64-bit":"")}}),(_e=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Re))&&!/\bi686\b/i.test(Re)?(Ye&&(Ye.architecture=64,Ye.family=Ye.family.replace(RegExp(" *"+_e),"")),Oe&&(/\bWOW64\b/i.test(Ae)||Ne&&/\w(?:86|32)$/.test(Ze.cpuClass||Ze.platform)&&!/\bWin64; x64\b/i.test(Ae))&&te.unshift("32-bit")):Ye&&/^OS X/.test(Ye.family)&&Oe=="Chrome"&&parseFloat(ze)>=39&&(Ye.architecture=64),Ae||(Ae=null);var Mt={};return Mt.description=Ae,Mt.layout=ve&&ve[0],Mt.manufacturer=Ue,Mt.name=Oe,Mt.prerelease=de,Mt.product=We,Mt.ua=Ae,Mt.version=Oe&&ze,Mt.os=Ye||{architecture:null,family:null,version:null,toString:function(){return"null"}},Mt.parse=ke,Mt.toString=yt,Mt.version&&te.unshift(ze),Mt.name&&te.unshift(Oe),Ye&&Oe&&!(Ye==String(Ye).split(" ")[0]&&(Ye==Oe.split(" ")[0]||We))&&te.push(We?"("+Ye+")":"on "+Ye),te.length&&(Mt.description=te.join(" ")),Mt}var Le=ke();typeof Ie=="function"&&typeof Ie.amd=="object"&&Ie.amd?(ie.platform=Le,Ie(function(){return Le})):ee&&le?Me(Le,function(Ae,Se){ee[Se]=Ae}):ie.platform=Le}).call(this)}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(a,Te,be){(function(z){(function(){"use strict";typeof z=="undefined"||!z.version||z.version.indexOf("v0.")===0||z.version.indexOf("v1.")===0&&z.version.indexOf("v1.8.")!==0?Te.exports={nextTick:E}:Te.exports=z;function E(ie,oe,ee,le){if(typeof ie!="function")throw new TypeError('"callback" argument must be a function');var x=arguments.length,ne,re;switch(x){case 0:case 1:return z.nextTick(ie);case 2:return z.nextTick(function(){ie.call(null,oe)});case 3:return z.nextTick(function(){ie.call(null,oe,ee)});case 4:return z.nextTick(function(){ie.call(null,oe,ee,le)});default:for(ne=new Array(x-1),re=0;re<ne.length;)ne[re++]=arguments[re];return z.nextTick(function(){ie.apply(null,ne)})}}}).call(this)}).call(this,a("_process"))},{_process:467}],381:[function(a,Te,be){var z=Te.exports={},E,ie;function oe(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=oe}catch(ye){E=oe}try{typeof clearTimeout=="function"?ie=clearTimeout:ie=ee}catch(ye){ie=ee}})();function le(ye){if(E===setTimeout)return setTimeout(ye,0);if((E===oe||!E)&&setTimeout)return E=setTimeout,setTimeout(ye,0);try{return E(ye,0)}catch(De){try{return E.call(null,ye,0)}catch(Me){return E.call(this,ye,0)}}}function x(ye){if(ie===clearTimeout)return clearTimeout(ye);if((ie===ee||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(ye);try{return ie(ye)}catch(De){try{return ie.call(null,ye)}catch(Me){return ie.call(this,ye)}}}var ne=[],re=!1,ae,se=-1;function ce(){!re||!ae||(re=!1,ae.length?ne=ae.concat(ne):se=-1,ne.length&&pe())}function pe(){if(!re){var ye=le(ce);re=!0;for(var De=ne.length;De;){for(ae=ne,ne=[];++se<De;)ae&&ae[se].run();se=-1,De=ne.length}ae=null,re=!1,x(ye)}}z.nextTick=function(ye){var De=new Array(arguments.length-1);if(arguments.length>1)for(var Me=1;Me<arguments.length;Me++)De[Me-1]=arguments[Me];ne.push(new me(ye,De)),ne.length===1&&!re&&le(pe)};function me(ye,De){this.fun=ye,this.array=De}me.prototype.run=function(){this.fun.apply(null,this.array)},z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function he(){}z.on=he,z.addListener=he,z.once=he,z.off=he,z.removeListener=he,z.removeAllListeners=he,z.emit=he,z.prependListener=he,z.prependOnceListener=he,z.listeners=function(ye){return[]},z.binding=function(ye){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(ye){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{}],382:[function(a,Te,be){(function(z){(function(){(function(E){var ie=typeof be=="object"&&be&&!be.nodeType&&be,oe=typeof Te=="object"&&Te&&!Te.nodeType&&Te,ee=typeof z=="object"&&z;(ee.global===ee||ee.window===ee||ee.self===ee)&&(E=ee);var le,x=2147483647,ne=36,re=1,ae=26,se=38,ce=700,pe=72,me=128,he="-",ye=/^xn--/,De=/[^\x20-\x7E]/,Me=/[\x2E\u3002\uFF0E\uFF61]/g,Be={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Pe=ne-re,Ce=Math.floor,Ee=String.fromCharCode,je;function ke(et){throw new RangeError(Be[et])}function Le(et,$e){for(var Xe=et.length,Ve=[];Xe--;)Ve[Xe]=$e(et[Xe]);return Ve}function Ae(et,$e){var Xe=et.split("@"),Ve="";Xe.length>1&&(Ve=Xe[0]+"@",et=Xe[1]),et=et.replace(Me,".");var nt=et.split("."),Qe=Le(nt,$e).join(".");return Ve+Qe}function Se(et){for(var $e=[],Xe=0,Ve=et.length,nt,Qe;Xe<Ve;)nt=et.charCodeAt(Xe++),nt>=55296&&nt<=56319&&Xe<Ve?(Qe=et.charCodeAt(Xe++),(Qe&64512)==56320?$e.push(((nt&1023)<<10)+(Qe&1023)+65536):($e.push(nt),Xe--)):$e.push(nt);return $e}function Ge(et){return Le(et,function($e){var Xe="";return $e>65535&&($e-=65536,Xe+=Ee($e>>>10&1023|55296),$e=56320|$e&1023),Xe+=Ee($e),Xe}).join("")}function Ze(et){return et-48<10?et-22:et-65<26?et-65:et-97<26?et-97:ne}function Je(et,$e){return et+22+75*(et<26)-(($e!=0)<<5)}function at(et,$e,Xe){var Ve=0;for(et=Xe?Ce(et/ce):et>>1,et+=Ce(et/$e);et>Pe*ae>>1;Ve+=ne)et=Ce(et/Pe);return Ce(Ve+(Pe+1)*et/(et+se))}function Fe(et){var $e=[],Xe=et.length,Ve,nt=0,Qe=me,ct=pe,ot,qe,_e,Re,te,de,Ne,ze,xe;for(ot=et.lastIndexOf(he),ot<0&&(ot=0),qe=0;qe<ot;++qe)et.charCodeAt(qe)>=128&&ke("not-basic"),$e.push(et.charCodeAt(qe));for(_e=ot>0?ot+1:0;_e<Xe;){for(Re=nt,te=1,de=ne;_e>=Xe&&ke("invalid-input"),Ne=Ze(et.charCodeAt(_e++)),(Ne>=ne||Ne>Ce((x-nt)/te))&&ke("overflow"),nt+=Ne*te,ze=de<=ct?re:de>=ct+ae?ae:de-ct,!(Ne<ze);de+=ne)xe=ne-ze,te>Ce(x/xe)&&ke("overflow"),te*=xe;Ve=$e.length+1,ct=at(nt-Re,Ve,Re==0),Ce(nt/Ve)>x-Qe&&ke("overflow"),Qe+=Ce(nt/Ve),nt%=Ve,$e.splice(nt++,0,Qe)}return Ge($e)}function Ke(et){var $e,Xe,Ve,nt,Qe,ct,ot,qe,_e,Re,te,de=[],Ne,ze,xe,ve;for(et=Se(et),Ne=et.length,$e=me,Xe=0,Qe=pe,ct=0;ct<Ne;++ct)te=et[ct],te<128&&de.push(Ee(te));for(Ve=nt=de.length,nt&&de.push(he);Ve<Ne;){for(ot=x,ct=0;ct<Ne;++ct)te=et[ct],te>=$e&&te<ot&&(ot=te);for(ze=Ve+1,ot-$e>Ce((x-Xe)/ze)&&ke("overflow"),Xe+=(ot-$e)*ze,$e=ot,ct=0;ct<Ne;++ct)if(te=et[ct],te<$e&&++Xe>x&&ke("overflow"),te==$e){for(qe=Xe,_e=ne;Re=_e<=Qe?re:_e>=Qe+ae?ae:_e-Qe,!(qe<Re);_e+=ne)ve=qe-Re,xe=ne-Re,de.push(Ee(Je(Re+ve%xe,0))),qe=Ce(ve/xe);de.push(Ee(Je(qe,0))),Qe=at(Xe,ze,Ve==nt),Xe=0,++Ve}++Xe,++$e}return de.join("")}function it(et){return Ae(et,function($e){return ye.test($e)?Fe($e.slice(4).toLowerCase()):$e})}function rt(et){return Ae(et,function($e){return De.test($e)?"xn--"+Ke($e):$e})}if(le={version:"1.4.1",ucs2:{decode:Se,encode:Ge},decode:Fe,encode:Ke,toASCII:rt,toUnicode:it},typeof Ie=="function"&&typeof Ie.amd=="object"&&Ie.amd)Ie("punycode",function(){return le});else if(ie&&oe)if(Te.exports==ie)oe.exports=le;else for(je in le)le.hasOwnProperty(je)&&(ie[je]=le[je]);else E.punycode=le})(this)}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(a,Te,be){"use strict";function z(ie,oe){return Object.prototype.hasOwnProperty.call(ie,oe)}Te.exports=function(ie,oe,ee,le){oe=oe||"&",ee=ee||"=";var x={};if(typeof ie!="string"||ie.length===0)return x;var ne=/\+/g;ie=ie.split(oe);var re=1e3;le&&typeof le.maxKeys=="number"&&(re=le.maxKeys);var ae=ie.length;re>0&&ae>re&&(ae=re);for(var se=0;se<ae;++se){var ce=ie[se].replace(ne,"%20"),pe=ce.indexOf(ee),me,he,ye,De;pe>=0?(me=ce.substr(0,pe),he=ce.substr(pe+1)):(me=ce,he=""),ye=decodeURIComponent(me),De=decodeURIComponent(he),z(x,ye)?E(x[ye])?x[ye].push(De):x[ye]=[x[ye],De]:x[ye]=De}return x};var E=Array.isArray||function(ie){return Object.prototype.toString.call(ie)==="[object Array]"}},{}],384:[function(a,Te,be){"use strict";var z=function(ee){switch(typeof ee){case"string":return ee;case"boolean":return ee?"true":"false";case"number":return isFinite(ee)?ee:"";default:return""}};Te.exports=function(ee,le,x,ne){return le=le||"&",x=x||"=",ee===null&&(ee=void 0),typeof ee=="object"?ie(oe(ee),function(re){var ae=encodeURIComponent(z(re))+x;return E(ee[re])?ie(ee[re],function(se){return ae+encodeURIComponent(z(se))}).join(le):ae+encodeURIComponent(z(ee[re]))}).join(le):ne?encodeURIComponent(z(ne))+x+encodeURIComponent(z(ee)):""};var E=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function ie(ee,le){if(ee.map)return ee.map(le);for(var x=[],ne=0;ne<ee.length;ne++)x.push(le(ee[ne],ne));return x}var oe=Object.keys||function(ee){var le=[];for(var x in ee)Object.prototype.hasOwnProperty.call(ee,x)&&le.push(x);return le}},{}],385:[function(a,Te,be){"use strict";be.decode=be.parse=a("./decode"),be.encode=be.stringify=a("./encode")},{"./decode":383,"./encode":384}],386:[function(a,Te,be){"use strict";var z=a("process-nextick-args"),E=Object.keys||function(ce){var pe=[];for(var me in ce)pe.push(me);return pe};Te.exports=re;var ie=Object.create(a("core-util-is"));ie.inherits=a("inherits");var oe=a("./_stream_readable"),ee=a("./_stream_writable");ie.inherits(re,oe);for(var le=E(ee.prototype),x=0;x<le.length;x++){var ne=le[x];re.prototype[ne]||(re.prototype[ne]=ee.prototype[ne])}function re(ce){if(!(this instanceof re))return new re(ce);oe.call(this,ce),ee.call(this,ce),ce&&ce.readable===!1&&(this.readable=!1),ce&&ce.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ce&&ce.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",ae)}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ae(){this.allowHalfOpen||this._writableState.ended||z.nextTick(se,this)}function se(ce){ce.end()}Object.defineProperty(re.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ce){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ce,this._writableState.destroyed=ce)}}),re.prototype._destroy=function(ce,pe){this.push(null),this.end(),z.nextTick(pe,ce)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(a,Te,be){"use strict";Te.exports=ie;var z=a("./_stream_transform"),E=Object.create(a("core-util-is"));E.inherits=a("inherits"),E.inherits(ie,z);function ie(oe){if(!(this instanceof ie))return new ie(oe);z.call(this,oe)}ie.prototype._transform=function(oe,ee,le){le(null,oe)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(a,Te,be){(function(z,E){(function(){"use strict";var ie=a("process-nextick-args");Te.exports=Ee;var oe=a("isarray"),ee;Ee.ReadableState=Ce;var le=a("events").EventEmitter,x=function(te,de){return te.listeners(de).length},ne=a("./internal/streams/stream"),re=a("safe-buffer").Buffer,ae=E.Uint8Array||function(){};function se(te){return re.from(te)}function ce(te){return re.isBuffer(te)||te instanceof ae}var pe=Object.create(a("core-util-is"));pe.inherits=a("inherits");var me=a("util"),he=void 0;me&&me.debuglog?he=me.debuglog("stream"):he=function(){};var ye=a("./internal/streams/BufferList"),De=a("./internal/streams/destroy"),Me;pe.inherits(Ee,ne);var Be=["error","close","destroy","pause","resume"];function Pe(te,de,Ne){if(typeof te.prependListener=="function")return te.prependListener(de,Ne);!te._events||!te._events[de]?te.on(de,Ne):oe(te._events[de])?te._events[de].unshift(Ne):te._events[de]=[Ne,te._events[de]]}function Ce(te,de){ee=ee||a("./_stream_duplex"),te=te||{};var Ne=de instanceof ee;this.objectMode=!!te.objectMode,Ne&&(this.objectMode=this.objectMode||!!te.readableObjectMode);var ze=te.highWaterMark,xe=te.readableHighWaterMark,ve=this.objectMode?16:16*1024;ze||ze===0?this.highWaterMark=ze:Ne&&(xe||xe===0)?this.highWaterMark=xe:this.highWaterMark=ve,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ye,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=te.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,te.encoding&&(Me||(Me=a("string_decoder/").StringDecoder),this.decoder=new Me(te.encoding),this.encoding=te.encoding)}function Ee(te){if(ee=ee||a("./_stream_duplex"),!(this instanceof Ee))return new Ee(te);this._readableState=new Ce(te,this),this.readable=!0,te&&(typeof te.read=="function"&&(this._read=te.read),typeof te.destroy=="function"&&(this._destroy=te.destroy)),ne.call(this)}Object.defineProperty(Ee.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){this._readableState&&(this._readableState.destroyed=te)}}),Ee.prototype.destroy=De.destroy,Ee.prototype._undestroy=De.undestroy,Ee.prototype._destroy=function(te,de){this.push(null),de(te)},Ee.prototype.push=function(te,de){var Ne=this._readableState,ze;return Ne.objectMode?ze=!0:typeof te=="string"&&(de=de||Ne.defaultEncoding,de!==Ne.encoding&&(te=re.from(te,de),de=""),ze=!0),je(this,te,de,!1,ze)},Ee.prototype.unshift=function(te){return je(this,te,null,!0,!1)};function je(te,de,Ne,ze,xe){var ve=te._readableState;if(de===null)ve.reading=!1,Je(te,ve);else{var Oe;xe||(Oe=Le(ve,de)),Oe?te.emit("error",Oe):ve.objectMode||de&&de.length>0?(typeof de!="string"&&!ve.objectMode&&Object.getPrototypeOf(de)!==re.prototype&&(de=se(de)),ze?ve.endEmitted?te.emit("error",new Error("stream.unshift() after end event")):ke(te,ve,de,!0):ve.ended?te.emit("error",new Error("stream.push() after EOF")):(ve.reading=!1,ve.decoder&&!Ne?(de=ve.decoder.write(de),ve.objectMode||de.length!==0?ke(te,ve,de,!1):Ke(te,ve)):ke(te,ve,de,!1))):ze||(ve.reading=!1)}return Ae(ve)}function ke(te,de,Ne,ze){de.flowing&&de.length===0&&!de.sync?(te.emit("data",Ne),te.read(0)):(de.length+=de.objectMode?1:Ne.length,ze?de.buffer.unshift(Ne):de.buffer.push(Ne),de.needReadable&&at(te)),Ke(te,de)}function Le(te,de){var Ne;return!ce(de)&&typeof de!="string"&&de!==void 0&&!te.objectMode&&(Ne=new TypeError("Invalid non-string/buffer chunk")),Ne}function Ae(te){return!te.ended&&(te.needReadable||te.length<te.highWaterMark||te.length===0)}Ee.prototype.isPaused=function(){return this._readableState.flowing===!1},Ee.prototype.setEncoding=function(te){return Me||(Me=a("string_decoder/").StringDecoder),this._readableState.decoder=new Me(te),this._readableState.encoding=te,this};var Se=8388608;function Ge(te){return te>=Se?te=Se:(te--,te|=te>>>1,te|=te>>>2,te|=te>>>4,te|=te>>>8,te|=te>>>16,te++),te}function Ze(te,de){return te<=0||de.length===0&&de.ended?0:de.objectMode?1:te!==te?de.flowing&&de.length?de.buffer.head.data.length:de.length:(te>de.highWaterMark&&(de.highWaterMark=Ge(te)),te<=de.length?te:de.ended?de.length:(de.needReadable=!0,0))}Ee.prototype.read=function(te){he("read",te),te=parseInt(te,10);var de=this._readableState,Ne=te;if(te!==0&&(de.emittedReadable=!1),te===0&&de.needReadable&&(de.length>=de.highWaterMark||de.ended))return he("read: emitReadable",de.length,de.ended),de.length===0&&de.ended?qe(this):at(this),null;if(te=Ze(te,de),te===0&&de.ended)return de.length===0&&qe(this),null;var ze=de.needReadable;he("need readable",ze),(de.length===0||de.length-te<de.highWaterMark)&&(ze=!0,he("length less than watermark",ze)),de.ended||de.reading?(ze=!1,he("reading or ended",ze)):ze&&(he("do read"),de.reading=!0,de.sync=!0,de.length===0&&(de.needReadable=!0),this._read(de.highWaterMark),de.sync=!1,de.reading||(te=Ze(Ne,de)));var xe;return te>0?xe=nt(te,de):xe=null,xe===null?(de.needReadable=!0,te=0):de.length-=te,de.length===0&&(de.ended||(de.needReadable=!0),Ne!==te&&de.ended&&qe(this)),xe!==null&&this.emit("data",xe),xe};function Je(te,de){if(!de.ended){if(de.decoder){var Ne=de.decoder.end();Ne&&Ne.length&&(de.buffer.push(Ne),de.length+=de.objectMode?1:Ne.length)}de.ended=!0,at(te)}}function at(te){var de=te._readableState;de.needReadable=!1,de.emittedReadable||(he("emitReadable",de.flowing),de.emittedReadable=!0,de.sync?ie.nextTick(Fe,te):Fe(te))}function Fe(te){he("emit readable"),te.emit("readable"),Ve(te)}function Ke(te,de){de.readingMore||(de.readingMore=!0,ie.nextTick(it,te,de))}function it(te,de){for(var Ne=de.length;!de.reading&&!de.flowing&&!de.ended&&de.length<de.highWaterMark&&(he("maybeReadMore read 0"),te.read(0),Ne!==de.length);)Ne=de.length;de.readingMore=!1}Ee.prototype._read=function(te){this.emit("error",new Error("_read() is not implemented"))},Ee.prototype.pipe=function(te,de){var Ne=this,ze=this._readableState;switch(ze.pipesCount){case 0:ze.pipes=te;break;case 1:ze.pipes=[ze.pipes,te];break;default:ze.pipes.push(te);break}ze.pipesCount+=1,he("pipe count=%d opts=%j",ze.pipesCount,de);var xe=(!de||de.end!==!1)&&te!==z.stdout&&te!==z.stderr,ve=xe?We:yt;ze.endEmitted?ie.nextTick(ve):Ne.once("end",ve),te.on("unpipe",Oe);function Oe(Mt,Et){he("onunpipe"),Mt===Ne&&Et&&Et.hasUnpiped===!1&&(Et.hasUnpiped=!0,st())}function We(){he("onend"),te.end()}var Ue=rt(Ne);te.on("drain",Ue);var Ye=!1;function st(){he("cleanup"),te.removeListener("close",St),te.removeListener("finish",Ot),te.removeListener("drain",Ue),te.removeListener("error",Tt),te.removeListener("unpipe",Oe),Ne.removeListener("end",We),Ne.removeListener("end",yt),Ne.removeListener("data",ft),Ye=!0,ze.awaitDrain&&(!te._writableState||te._writableState.needDrain)&&Ue()}var lt=!1;Ne.on("data",ft);function ft(Mt){he("ondata"),lt=!1;var Et=te.write(Mt);Et===!1&&!lt&&((ze.pipesCount===1&&ze.pipes===te||ze.pipesCount>1&&Re(ze.pipes,te)!==-1)&&!Ye&&(he("false write response, pause",Ne._readableState.awaitDrain),Ne._readableState.awaitDrain++,lt=!0),Ne.pause())}function Tt(Mt){he("onerror",Mt),yt(),te.removeListener("error",Tt),x(te,"error")===0&&te.emit("error",Mt)}Pe(te,"error",Tt);function St(){te.removeListener("finish",Ot),yt()}te.once("close",St);function Ot(){he("onfinish"),te.removeListener("close",St),yt()}te.once("finish",Ot);function yt(){he("unpipe"),Ne.unpipe(te)}return te.emit("pipe",Ne),ze.flowing||(he("pipe resume"),Ne.resume()),te};function rt(te){return function(){var de=te._readableState;he("pipeOnDrain",de.awaitDrain),de.awaitDrain&&de.awaitDrain--,de.awaitDrain===0&&x(te,"data")&&(de.flowing=!0,Ve(te))}}Ee.prototype.unpipe=function(te){var de=this._readableState,Ne={hasUnpiped:!1};if(de.pipesCount===0)return this;if(de.pipesCount===1)return te&&te!==de.pipes?this:(te||(te=de.pipes),de.pipes=null,de.pipesCount=0,de.flowing=!1,te&&te.emit("unpipe",this,Ne),this);if(!te){var ze=de.pipes,xe=de.pipesCount;de.pipes=null,de.pipesCount=0,de.flowing=!1;for(var ve=0;ve<xe;ve++)ze[ve].emit("unpipe",this,Ne);return this}var Oe=Re(de.pipes,te);return Oe===-1?this:(de.pipes.splice(Oe,1),de.pipesCount-=1,de.pipesCount===1&&(de.pipes=de.pipes[0]),te.emit("unpipe",this,Ne),this)},Ee.prototype.on=function(te,de){var Ne=ne.prototype.on.call(this,te,de);if(te==="data")this._readableState.flowing!==!1&&this.resume();else if(te==="readable"){var ze=this._readableState;!ze.endEmitted&&!ze.readableListening&&(ze.readableListening=ze.needReadable=!0,ze.emittedReadable=!1,ze.reading?ze.length&&at(this):ie.nextTick(et,this))}return Ne},Ee.prototype.addListener=Ee.prototype.on;function et(te){he("readable nexttick read 0"),te.read(0)}Ee.prototype.resume=function(){var te=this._readableState;return te.flowing||(he("resume"),te.flowing=!0,$e(this,te)),this};function $e(te,de){de.resumeScheduled||(de.resumeScheduled=!0,ie.nextTick(Xe,te,de))}function Xe(te,de){de.reading||(he("resume read 0"),te.read(0)),de.resumeScheduled=!1,de.awaitDrain=0,te.emit("resume"),Ve(te),de.flowing&&!de.reading&&te.read(0)}Ee.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ve(te){var de=te._readableState;for(he("flow",de.flowing);de.flowing&&te.read()!==null;);}Ee.prototype.wrap=function(te){var de=this,Ne=this._readableState,ze=!1;te.on("end",function(){if(he("wrapped end"),Ne.decoder&&!Ne.ended){var Oe=Ne.decoder.end();Oe&&Oe.length&&de.push(Oe)}de.push(null)}),te.on("data",function(Oe){if(he("wrapped data"),Ne.decoder&&(Oe=Ne.decoder.write(Oe)),!(Ne.objectMode&&Oe==null)&&!(!Ne.objectMode&&(!Oe||!Oe.length))){var We=de.push(Oe);We||(ze=!0,te.pause())}});for(var xe in te)this[xe]===void 0&&typeof te[xe]=="function"&&(this[xe]=function(Oe){return function(){return te[Oe].apply(te,arguments)}}(xe));for(var ve=0;ve<Be.length;ve++)te.on(Be[ve],this.emit.bind(this,Be[ve]));return this._read=function(Oe){he("wrapped _read",Oe),ze&&(ze=!1,te.resume())},this},Object.defineProperty(Ee.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Ee._fromList=nt;function nt(te,de){if(de.length===0)return null;var Ne;return de.objectMode?Ne=de.buffer.shift():!te||te>=de.length?(de.decoder?Ne=de.buffer.join(""):de.buffer.length===1?Ne=de.buffer.head.data:Ne=de.buffer.concat(de.length),de.buffer.clear()):Ne=Qe(te,de.buffer,de.decoder),Ne}function Qe(te,de,Ne){var ze;return te<de.head.data.length?(ze=de.head.data.slice(0,te),de.head.data=de.head.data.slice(te)):te===de.head.data.length?ze=de.shift():ze=Ne?ct(te,de):ot(te,de),ze}function ct(te,de){var Ne=de.head,ze=1,xe=Ne.data;for(te-=xe.length;Ne=Ne.next;){var ve=Ne.data,Oe=te>ve.length?ve.length:te;if(Oe===ve.length?xe+=ve:xe+=ve.slice(0,te),te-=Oe,te===0){Oe===ve.length?(++ze,Ne.next?de.head=Ne.next:de.head=de.tail=null):(de.head=Ne,Ne.data=ve.slice(Oe));break}++ze}return de.length-=ze,xe}function ot(te,de){var Ne=re.allocUnsafe(te),ze=de.head,xe=1;for(ze.data.copy(Ne),te-=ze.data.length;ze=ze.next;){var ve=ze.data,Oe=te>ve.length?ve.length:te;if(ve.copy(Ne,Ne.length-te,0,Oe),te-=Oe,te===0){Oe===ve.length?(++xe,ze.next?de.head=ze.next:de.head=de.tail=null):(de.head=ze,ze.data=ve.slice(Oe));break}++xe}return de.length-=xe,Ne}function qe(te){var de=te._readableState;if(de.length>0)throw new Error('"endReadable()" called on non-empty stream');de.endEmitted||(de.ended=!0,ie.nextTick(_e,de,te))}function _e(te,de){!te.endEmitted&&te.length===0&&(te.endEmitted=!0,de.readable=!1,de.emit("end"))}function Re(te,de){for(var Ne=0,ze=te.length;Ne<ze;Ne++)if(te[Ne]===de)return Ne;return-1}}).call(this)}).call(this,a("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(a,Te,be){"use strict";Te.exports=oe;var z=a("./_stream_duplex"),E=Object.create(a("core-util-is"));E.inherits=a("inherits"),E.inherits(oe,z);function ie(x,ne){var re=this._transformState;re.transforming=!1;var ae=re.writecb;if(!ae)return this.emit("error",new Error("write callback called multiple times"));re.writechunk=null,re.writecb=null,ne!=null&&this.push(ne),ae(x);var se=this._readableState;se.reading=!1,(se.needReadable||se.length<se.highWaterMark)&&this._read(se.highWaterMark)}function oe(x){if(!(this instanceof oe))return new oe(x);z.call(this,x),this._transformState={afterTransform:ie.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,x&&(typeof x.transform=="function"&&(this._transform=x.transform),typeof x.flush=="function"&&(this._flush=x.flush)),this.on("prefinish",ee)}function ee(){var x=this;typeof this._flush=="function"?this._flush(function(ne,re){le(x,ne,re)}):le(this,null,null)}oe.prototype.push=function(x,ne){return this._transformState.needTransform=!1,z.prototype.push.call(this,x,ne)},oe.prototype._transform=function(x,ne,re){throw new Error("_transform() is not implemented")},oe.prototype._write=function(x,ne,re){var ae=this._transformState;if(ae.writecb=re,ae.writechunk=x,ae.writeencoding=ne,!ae.transforming){var se=this._readableState;(ae.needTransform||se.needReadable||se.length<se.highWaterMark)&&this._read(se.highWaterMark)}},oe.prototype._read=function(x){var ne=this._transformState;ne.writechunk!==null&&ne.writecb&&!ne.transforming?(ne.transforming=!0,this._transform(ne.writechunk,ne.writeencoding,ne.afterTransform)):ne.needTransform=!0},oe.prototype._destroy=function(x,ne){var re=this;z.prototype._destroy.call(this,x,function(ae){ne(ae),re.emit("close")})};function le(x,ne,re){if(ne)return x.emit("error",ne);if(re!=null&&x.push(re),x._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(x._transformState.transforming)throw new Error("Calling transform done when still transforming");return x.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(a,Te,be){(function(z,E,ie){(function(){"use strict";var oe=a("process-nextick-args");Te.exports=Pe;function ee(Xe,Ve,nt){this.chunk=Xe,this.encoding=Ve,this.callback=nt,this.next=null}function le(Xe){var Ve=this;this.next=null,this.entry=null,this.finish=function(){$e(Ve,Xe)}}var x=!z.browser&&["v0.10","v0.9."].indexOf(z.version.slice(0,5))>-1?ie:oe.nextTick,ne;Pe.WritableState=Me;var re=Object.create(a("core-util-is"));re.inherits=a("inherits");var ae={deprecate:a("util-deprecate")},se=a("./internal/streams/stream"),ce=a("safe-buffer").Buffer,pe=E.Uint8Array||function(){};function me(Xe){return ce.from(Xe)}function he(Xe){return ce.isBuffer(Xe)||Xe instanceof pe}var ye=a("./internal/streams/destroy");re.inherits(Pe,se);function De(){}function Me(Xe,Ve){ne=ne||a("./_stream_duplex"),Xe=Xe||{};var nt=Ve instanceof ne;this.objectMode=!!Xe.objectMode,nt&&(this.objectMode=this.objectMode||!!Xe.writableObjectMode);var Qe=Xe.highWaterMark,ct=Xe.writableHighWaterMark,ot=this.objectMode?16:16*1024;Qe||Qe===0?this.highWaterMark=Qe:nt&&(ct||ct===0)?this.highWaterMark=ct:this.highWaterMark=ot,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var qe=Xe.decodeStrings===!1;this.decodeStrings=!qe,this.defaultEncoding=Xe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_e){Ge(Ve,_e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new le(this)}Me.prototype.getBuffer=function(){for(var Ve=this.bufferedRequest,nt=[];Ve;)nt.push(Ve),Ve=Ve.next;return nt},function(){try{Object.defineProperty(Me.prototype,"buffer",{get:ae.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Xe){}}();var Be;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Be=Function.prototype[Symbol.hasInstance],Object.defineProperty(Pe,Symbol.hasInstance,{value:function(Xe){return Be.call(this,Xe)?!0:this!==Pe?!1:Xe&&Xe._writableState instanceof Me}})):Be=function(Xe){return Xe instanceof this};function Pe(Xe){if(ne=ne||a("./_stream_duplex"),!Be.call(Pe,this)&&!(this instanceof ne))return new Pe(Xe);this._writableState=new Me(Xe,this),this.writable=!0,Xe&&(typeof Xe.write=="function"&&(this._write=Xe.write),typeof Xe.writev=="function"&&(this._writev=Xe.writev),typeof Xe.destroy=="function"&&(this._destroy=Xe.destroy),typeof Xe.final=="function"&&(this._final=Xe.final)),se.call(this)}Pe.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Ce(Xe,Ve){var nt=new Error("write after end");Xe.emit("error",nt),oe.nextTick(Ve,nt)}function Ee(Xe,Ve,nt,Qe){var ct=!0,ot=!1;return nt===null?ot=new TypeError("May not write null values to stream"):typeof nt!="string"&&nt!==void 0&&!Ve.objectMode&&(ot=new TypeError("Invalid non-string/buffer chunk")),ot&&(Xe.emit("error",ot),oe.nextTick(Qe,ot),ct=!1),ct}Pe.prototype.write=function(Xe,Ve,nt){var Qe=this._writableState,ct=!1,ot=!Qe.objectMode&&he(Xe);return ot&&!ce.isBuffer(Xe)&&(Xe=me(Xe)),typeof Ve=="function"&&(nt=Ve,Ve=null),ot?Ve="buffer":Ve||(Ve=Qe.defaultEncoding),typeof nt!="function"&&(nt=De),Qe.ended?Ce(this,nt):(ot||Ee(this,Qe,Xe,nt))&&(Qe.pendingcb++,ct=ke(this,Qe,ot,Xe,Ve,nt)),ct},Pe.prototype.cork=function(){var Xe=this._writableState;Xe.corked++},Pe.prototype.uncork=function(){var Xe=this._writableState;Xe.corked&&(Xe.corked--,!Xe.writing&&!Xe.corked&&!Xe.finished&&!Xe.bufferProcessing&&Xe.bufferedRequest&&at(this,Xe))},Pe.prototype.setDefaultEncoding=function(Ve){if(typeof Ve=="string"&&(Ve=Ve.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ve+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ve);return this._writableState.defaultEncoding=Ve,this};function je(Xe,Ve,nt){return!Xe.objectMode&&Xe.decodeStrings!==!1&&typeof Ve=="string"&&(Ve=ce.from(Ve,nt)),Ve}Object.defineProperty(Pe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ke(Xe,Ve,nt,Qe,ct,ot){if(!nt){var qe=je(Ve,Qe,ct);Qe!==qe&&(nt=!0,ct="buffer",Qe=qe)}var _e=Ve.objectMode?1:Qe.length;Ve.length+=_e;var Re=Ve.length<Ve.highWaterMark;if(Re||(Ve.needDrain=!0),Ve.writing||Ve.corked){var te=Ve.lastBufferedRequest;Ve.lastBufferedRequest={chunk:Qe,encoding:ct,isBuf:nt,callback:ot,next:null},te?te.next=Ve.lastBufferedRequest:Ve.bufferedRequest=Ve.lastBufferedRequest,Ve.bufferedRequestCount+=1}else Le(Xe,Ve,!1,_e,Qe,ct,ot);return Re}function Le(Xe,Ve,nt,Qe,ct,ot,qe){Ve.writelen=Qe,Ve.writecb=qe,Ve.writing=!0,Ve.sync=!0,nt?Xe._writev(ct,Ve.onwrite):Xe._write(ct,ot,Ve.onwrite),Ve.sync=!1}function Ae(Xe,Ve,nt,Qe,ct){--Ve.pendingcb,nt?(oe.nextTick(ct,Qe),oe.nextTick(rt,Xe,Ve),Xe._writableState.errorEmitted=!0,Xe.emit("error",Qe)):(ct(Qe),Xe._writableState.errorEmitted=!0,Xe.emit("error",Qe),rt(Xe,Ve))}function Se(Xe){Xe.writing=!1,Xe.writecb=null,Xe.length-=Xe.writelen,Xe.writelen=0}function Ge(Xe,Ve){var nt=Xe._writableState,Qe=nt.sync,ct=nt.writecb;if(Se(nt),Ve)Ae(Xe,nt,Qe,Ve,ct);else{var ot=Fe(nt);!ot&&!nt.corked&&!nt.bufferProcessing&&nt.bufferedRequest&&at(Xe,nt),Qe?x(Ze,Xe,nt,ot,ct):Ze(Xe,nt,ot,ct)}}function Ze(Xe,Ve,nt,Qe){nt||Je(Xe,Ve),Ve.pendingcb--,Qe(),rt(Xe,Ve)}function Je(Xe,Ve){Ve.length===0&&Ve.needDrain&&(Ve.needDrain=!1,Xe.emit("drain"))}function at(Xe,Ve){Ve.bufferProcessing=!0;var nt=Ve.bufferedRequest;if(Xe._writev&&nt&&nt.next){var Qe=Ve.bufferedRequestCount,ct=new Array(Qe),ot=Ve.corkedRequestsFree;ot.entry=nt;for(var qe=0,_e=!0;nt;)ct[qe]=nt,nt.isBuf||(_e=!1),nt=nt.next,qe+=1;ct.allBuffers=_e,Le(Xe,Ve,!0,Ve.length,ct,"",ot.finish),Ve.pendingcb++,Ve.lastBufferedRequest=null,ot.next?(Ve.corkedRequestsFree=ot.next,ot.next=null):Ve.corkedRequestsFree=new le(Ve),Ve.bufferedRequestCount=0}else{for(;nt;){var Re=nt.chunk,te=nt.encoding,de=nt.callback,Ne=Ve.objectMode?1:Re.length;if(Le(Xe,Ve,!1,Ne,Re,te,de),nt=nt.next,Ve.bufferedRequestCount--,Ve.writing)break}nt===null&&(Ve.lastBufferedRequest=null)}Ve.bufferedRequest=nt,Ve.bufferProcessing=!1}Pe.prototype._write=function(Xe,Ve,nt){nt(new Error("_write() is not implemented"))},Pe.prototype._writev=null,Pe.prototype.end=function(Xe,Ve,nt){var Qe=this._writableState;typeof Xe=="function"?(nt=Xe,Xe=null,Ve=null):typeof Ve=="function"&&(nt=Ve,Ve=null),Xe!=null&&this.write(Xe,Ve),Qe.corked&&(Qe.corked=1,this.uncork()),!Qe.ending&&!Qe.finished&&et(this,Qe,nt)};function Fe(Xe){return Xe.ending&&Xe.length===0&&Xe.bufferedRequest===null&&!Xe.finished&&!Xe.writing}function Ke(Xe,Ve){Xe._final(function(nt){Ve.pendingcb--,nt&&Xe.emit("error",nt),Ve.prefinished=!0,Xe.emit("prefinish"),rt(Xe,Ve)})}function it(Xe,Ve){!Ve.prefinished&&!Ve.finalCalled&&(typeof Xe._final=="function"?(Ve.pendingcb++,Ve.finalCalled=!0,oe.nextTick(Ke,Xe,Ve)):(Ve.prefinished=!0,Xe.emit("prefinish")))}function rt(Xe,Ve){var nt=Fe(Ve);return nt&&(it(Xe,Ve),Ve.pendingcb===0&&(Ve.finished=!0,Xe.emit("finish"))),nt}function et(Xe,Ve,nt){Ve.ending=!0,rt(Xe,Ve),nt&&(Ve.finished?oe.nextTick(nt):Xe.once("finish",nt)),Ve.ended=!0,Xe.writable=!1}function $e(Xe,Ve,nt){var Qe=Xe.entry;for(Xe.entry=null;Qe;){var ct=Qe.callback;Ve.pendingcb--,ct(nt),Qe=Qe.next}Ve.corkedRequestsFree?Ve.corkedRequestsFree.next=Xe:Ve.corkedRequestsFree=Xe}Object.defineProperty(Pe.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Xe){this._writableState&&(this._writableState.destroyed=Xe)}}),Pe.prototype.destroy=ye.destroy,Pe.prototype._undestroy=ye.undestroy,Pe.prototype._destroy=function(Xe,Ve){this.end(),Ve(Xe)}}).call(this)}).call(this,a("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(a,Te,be){"use strict";function z(ee,le){if(!(ee instanceof le))throw new TypeError("Cannot call a class as a function")}var E=a("safe-buffer").Buffer,ie=a("util");function oe(ee,le,x){ee.copy(le,x)}Te.exports=function(){function ee(){z(this,ee),this.head=null,this.tail=null,this.length=0}return ee.prototype.push=function(x){var ne={data:x,next:null};this.length>0?this.tail.next=ne:this.head=ne,this.tail=ne,++this.length},ee.prototype.unshift=function(x){var ne={data:x,next:this.head};this.length===0&&(this.tail=ne),this.head=ne,++this.length},ee.prototype.shift=function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}},ee.prototype.clear=function(){this.head=this.tail=null,this.length=0},ee.prototype.join=function(x){if(this.length===0)return"";for(var ne=this.head,re=""+ne.data;ne=ne.next;)re+=x+ne.data;return re},ee.prototype.concat=function(x){if(this.length===0)return E.alloc(0);if(this.length===1)return this.head.data;for(var ne=E.allocUnsafe(x>>>0),re=this.head,ae=0;re;)oe(re.data,ne,ae),ae+=re.data.length,re=re.next;return ne},ee}(),ie&&ie.inspect&&ie.inspect.custom&&(Te.exports.prototype[ie.inspect.custom]=function(){var ee=ie.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(a,Te,be){"use strict";var z=a("process-nextick-args");function E(ee,le){var x=this,ne=this._readableState&&this._readableState.destroyed,re=this._writableState&&this._writableState.destroyed;return ne||re?(le?le(ee):ee&&(!this._writableState||!this._writableState.errorEmitted)&&z.nextTick(oe,this,ee),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ee||null,function(ae){!le&&ae?(z.nextTick(oe,x,ae),x._writableState&&(x._writableState.errorEmitted=!0)):le&&le(ae)}),this)}function ie(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function oe(ee,le){ee.emit("error",le)}Te.exports={destroy:E,undestroy:ie}},{"process-nextick-args":380}],393:[function(a,Te,be){Te.exports=a("events").EventEmitter},{events:344}],394:[function(a,Te,be){be=Te.exports=a("./lib/_stream_readable.js"),be.Stream=be,be.Readable=be,be.Writable=a("./lib/_stream_writable.js"),be.Duplex=a("./lib/_stream_duplex.js"),be.Transform=a("./lib/_stream_transform.js"),be.PassThrough=a("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(a,Te,be){var z=function(E){"use strict";var ie=Object.prototype,oe=ie.hasOwnProperty,ee,le=typeof Symbol=="function"?Symbol:{},x=le.iterator||"@@iterator",ne=le.asyncIterator||"@@asyncIterator",re=le.toStringTag||"@@toStringTag";function ae(it,rt,et){return Object.defineProperty(it,rt,{value:et,enumerable:!0,configurable:!0,writable:!0}),it[rt]}try{ae({},"")}catch(it){ae=function(rt,et,$e){return rt[et]=$e}}function se(it,rt,et,$e){var Xe=rt&&rt.prototype instanceof Me?rt:Me,Ve=Object.create(Xe.prototype),nt=new at($e||[]);return Ve._invoke=Se(it,et,nt),Ve}E.wrap=se;function ce(it,rt,et){try{return{type:"normal",arg:it.call(rt,et)}}catch($e){return{type:"throw",arg:$e}}}var pe="suspendedStart",me="suspendedYield",he="executing",ye="completed",De={};function Me(){}function Be(){}function Pe(){}var Ce={};ae(Ce,x,function(){return this});var Ee=Object.getPrototypeOf,je=Ee&&Ee(Ee(Fe([])));je&&je!==ie&&oe.call(je,x)&&(Ce=je);var ke=Pe.prototype=Me.prototype=Object.create(Ce);Be.prototype=Pe,ae(ke,"constructor",Pe),ae(Pe,"constructor",Be),Be.displayName=ae(Pe,re,"GeneratorFunction");function Le(it){["next","throw","return"].forEach(function(rt){ae(it,rt,function(et){return this._invoke(rt,et)})})}E.isGeneratorFunction=function(it){var rt=typeof it=="function"&&it.constructor;return rt?rt===Be||(rt.displayName||rt.name)==="GeneratorFunction":!1},E.mark=function(it){return Object.setPrototypeOf?Object.setPrototypeOf(it,Pe):(it.__proto__=Pe,ae(it,re,"GeneratorFunction")),it.prototype=Object.create(ke),it},E.awrap=function(it){return{__await:it}};function Ae(it,rt){function et(Ve,nt,Qe,ct){var ot=ce(it[Ve],it,nt);if(ot.type==="throw")ct(ot.arg);else{var qe=ot.arg,_e=qe.value;return _e&&typeof _e=="object"&&oe.call(_e,"__await")?rt.resolve(_e.__await).then(function(Re){et("next",Re,Qe,ct)},function(Re){et("throw",Re,Qe,ct)}):rt.resolve(_e).then(function(Re){qe.value=Re,Qe(qe)},function(Re){return et("throw",Re,Qe,ct)})}}var $e;function Xe(Ve,nt){function Qe(){return new rt(function(ct,ot){et(Ve,nt,ct,ot)})}return $e=$e?$e.then(Qe,Qe):Qe()}this._invoke=Xe}Le(Ae.prototype),ae(Ae.prototype,ne,function(){return this}),E.AsyncIterator=Ae,E.async=function(it,rt,et,$e,Xe){Xe===void 0&&(Xe=Promise);var Ve=new Ae(se(it,rt,et,$e),Xe);return E.isGeneratorFunction(rt)?Ve:Ve.next().then(function(nt){return nt.done?nt.value:Ve.next()})};function Se(it,rt,et){var $e=pe;return function(Ve,nt){if($e===he)throw new Error("Generator is already running");if($e===ye){if(Ve==="throw")throw nt;return Ke()}for(et.method=Ve,et.arg=nt;;){var Qe=et.delegate;if(Qe){var ct=Ge(Qe,et);if(ct){if(ct===De)continue;return ct}}if(et.method==="next")et.sent=et._sent=et.arg;else if(et.method==="throw"){if($e===pe)throw $e=ye,et.arg;et.dispatchException(et.arg)}else et.method==="return"&&et.abrupt("return",et.arg);$e=he;var ot=ce(it,rt,et);if(ot.type==="normal"){if($e=et.done?ye:me,ot.arg===De)continue;return{value:ot.arg,done:et.done}}else ot.type==="throw"&&($e=ye,et.method="throw",et.arg=ot.arg)}}}function Ge(it,rt){var et=it.iterator[rt.method];if(et===ee){if(rt.delegate=null,rt.method==="throw"){if(it.iterator.return&&(rt.method="return",rt.arg=ee,Ge(it,rt),rt.method==="throw"))return De;rt.method="throw",rt.arg=new TypeError("The iterator does not provide a 'throw' method")}return De}var $e=ce(et,it.iterator,rt.arg);if($e.type==="throw")return rt.method="throw",rt.arg=$e.arg,rt.delegate=null,De;var Xe=$e.arg;if(!Xe)return rt.method="throw",rt.arg=new TypeError("iterator result is not an object"),rt.delegate=null,De;if(Xe.done)rt[it.resultName]=Xe.value,rt.next=it.nextLoc,rt.method!=="return"&&(rt.method="next",rt.arg=ee);else return Xe;return rt.delegate=null,De}Le(ke),ae(ke,re,"Generator"),ae(ke,x,function(){return this}),ae(ke,"toString",function(){return"[object Generator]"});function Ze(it){var rt={tryLoc:it[0]};1 in it&&(rt.catchLoc=it[1]),2 in it&&(rt.finallyLoc=it[2],rt.afterLoc=it[3]),this.tryEntries.push(rt)}function Je(it){var rt=it.completion||{};rt.type="normal",delete rt.arg,it.completion=rt}function at(it){this.tryEntries=[{tryLoc:"root"}],it.forEach(Ze,this),this.reset(!0)}E.keys=function(it){var rt=[];for(var et in it)rt.push(et);return rt.reverse(),function $e(){for(;rt.length;){var Xe=rt.pop();if(Xe in it)return $e.value=Xe,$e.done=!1,$e}return $e.done=!0,$e}};function Fe(it){if(it){var rt=it[x];if(rt)return rt.call(it);if(typeof it.next=="function")return it;if(!isNaN(it.length)){var et=-1,$e=function Xe(){for(;++et<it.length;)if(oe.call(it,et))return Xe.value=it[et],Xe.done=!1,Xe;return Xe.value=ee,Xe.done=!0,Xe};return $e.next=$e}}return{next:Ke}}E.values=Fe;function Ke(){return{value:ee,done:!0}}return at.prototype={constructor:at,reset:function(it){if(this.prev=0,this.next=0,this.sent=this._sent=ee,this.done=!1,this.delegate=null,this.method="next",this.arg=ee,this.tryEntries.forEach(Je),!it)for(var rt in this)rt.charAt(0)==="t"&&oe.call(this,rt)&&!isNaN(+rt.slice(1))&&(this[rt]=ee)},stop:function(){this.done=!0;var it=this.tryEntries[0],rt=it.completion;if(rt.type==="throw")throw rt.arg;return this.rval},dispatchException:function(it){if(this.done)throw it;var rt=this;function et(ct,ot){return Ve.type="throw",Ve.arg=it,rt.next=ct,ot&&(rt.method="next",rt.arg=ee),!!ot}for(var $e=this.tryEntries.length-1;$e>=0;--$e){var Xe=this.tryEntries[$e],Ve=Xe.completion;if(Xe.tryLoc==="root")return et("end");if(Xe.tryLoc<=this.prev){var nt=oe.call(Xe,"catchLoc"),Qe=oe.call(Xe,"finallyLoc");if(nt&&Qe){if(this.prev<Xe.catchLoc)return et(Xe.catchLoc,!0);if(this.prev<Xe.finallyLoc)return et(Xe.finallyLoc)}else if(nt){if(this.prev<Xe.catchLoc)return et(Xe.catchLoc,!0)}else if(Qe){if(this.prev<Xe.finallyLoc)return et(Xe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(it,rt){for(var et=this.tryEntries.length-1;et>=0;--et){var $e=this.tryEntries[et];if($e.tryLoc<=this.prev&&oe.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var Xe=$e;break}}Xe&&(it==="break"||it==="continue")&&Xe.tryLoc<=rt&&rt<=Xe.finallyLoc&&(Xe=null);var Ve=Xe?Xe.completion:{};return Ve.type=it,Ve.arg=rt,Xe?(this.method="next",this.next=Xe.finallyLoc,De):this.complete(Ve)},complete:function(it,rt){if(it.type==="throw")throw it.arg;return it.type==="break"||it.type==="continue"?this.next=it.arg:it.type==="return"?(this.rval=this.arg=it.arg,this.method="return",this.next="end"):it.type==="normal"&&rt&&(this.next=rt),De},finish:function(it){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var et=this.tryEntries[rt];if(et.finallyLoc===it)return this.complete(et.completion,et.afterLoc),Je(et),De}},catch:function(it){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var et=this.tryEntries[rt];if(et.tryLoc===it){var $e=et.completion;if($e.type==="throw"){var Xe=$e.arg;Je(et)}return Xe}}throw new Error("illegal catch attempt")},delegateYield:function(it,rt,et){return this.delegate={iterator:Fe(it),resultName:rt,nextLoc:et},this.method==="next"&&(this.arg=ee),De}},E}(typeof Te=="object"?Te.exports:{});try{regeneratorRuntime=z}catch(E){typeof globalThis=="object"?globalThis.regeneratorRuntime=z:Function("r","regeneratorRuntime = r")(z)}},{}],396:[function(a,Te,be){var z=a("buffer"),E=z.Buffer;function ie(ee,le){for(var x in ee)le[x]=ee[x]}E.from&&E.alloc&&E.allocUnsafe&&E.allocUnsafeSlow?Te.exports=z:(ie(z,be),be.Buffer=oe);function oe(ee,le,x){return E(ee,le,x)}ie(E,oe),oe.from=function(ee,le,x){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return E(ee,le,x)},oe.alloc=function(ee,le,x){if(typeof ee!="number")throw new TypeError("Argument must be a number");var ne=E(ee);return le!==void 0?typeof x=="string"?ne.fill(le,x):ne.fill(le):ne.fill(0),ne},oe.allocUnsafe=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return E(ee)},oe.allocUnsafeSlow=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return z.SlowBuffer(ee)}},{buffer:90}],397:[function(a,Te,be){(function(z){(function(){(function(E){E.parser=function(qe,_e){return new oe(qe,_e)},E.SAXParser=oe,E.SAXStream=se,E.createStream=ae,E.MAX_BUFFER_LENGTH=64*1024;var ie=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];E.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function oe(qe,_e){if(!(this instanceof oe))return new oe(qe,_e);var Re=this;le(Re),Re.q=Re.c="",Re.bufferCheckPosition=E.MAX_BUFFER_LENGTH,Re.opt=_e||{},Re.opt.lowercase=Re.opt.lowercase||Re.opt.lowercasetags,Re.looseCase=Re.opt.lowercase?"toLowerCase":"toUpperCase",Re.tags=[],Re.closed=Re.closedRoot=Re.sawRoot=!1,Re.tag=Re.error=null,Re.strict=!!qe,Re.noscript=!!(qe||Re.opt.noscript),Re.state=Ae.BEGIN,Re.strictEntities=Re.opt.strictEntities,Re.ENTITIES=Re.strictEntities?Object.create(E.XML_ENTITIES):Object.create(E.ENTITIES),Re.attribList=[],Re.opt.xmlns&&(Re.ns=Object.create(ye)),Re.trackPosition=Re.opt.position!==!1,Re.trackPosition&&(Re.position=Re.line=Re.column=0),Ge(Re,"onready")}Object.create||(Object.create=function(qe){function _e(){}_e.prototype=qe;var Re=new _e;return Re}),Object.keys||(Object.keys=function(qe){var _e=[];for(var Re in qe)qe.hasOwnProperty(Re)&&_e.push(Re);return _e});function ee(qe){for(var _e=Math.max(E.MAX_BUFFER_LENGTH,10),Re=0,te=0,de=ie.length;te<de;te++){var Ne=qe[ie[te]].length;if(Ne>_e)switch(ie[te]){case"textNode":Je(qe);break;case"cdata":Ze(qe,"oncdata",qe.cdata),qe.cdata="";break;case"script":Ze(qe,"onscript",qe.script),qe.script="";break;default:Fe(qe,"Max buffer length exceeded: "+ie[te])}Re=Math.max(Re,Ne)}var ze=E.MAX_BUFFER_LENGTH-Re;qe.bufferCheckPosition=ze+qe.position}function le(qe){for(var _e=0,Re=ie.length;_e<Re;_e++)qe[ie[_e]]=""}function x(qe){Je(qe),qe.cdata!==""&&(Ze(qe,"oncdata",qe.cdata),qe.cdata=""),qe.script!==""&&(Ze(qe,"onscript",qe.script),qe.script="")}oe.prototype={end:function(){Ke(this)},write:ot,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){x(this)}};var ne;try{ne=a("stream").Stream}catch(qe){ne=function(){}}var re=E.EVENTS.filter(function(qe){return qe!=="error"&&qe!=="end"});function ae(qe,_e){return new se(qe,_e)}function se(qe,_e){if(!(this instanceof se))return new se(qe,_e);ne.apply(this),this._parser=new oe(qe,_e),this.writable=!0,this.readable=!0;var Re=this;this._parser.onend=function(){Re.emit("end")},this._parser.onerror=function(te){Re.emit("error",te),Re._parser.error=null},this._decoder=null,re.forEach(function(te){Object.defineProperty(Re,"on"+te,{get:function(){return Re._parser["on"+te]},set:function(de){if(!de)return Re.removeAllListeners(te),Re._parser["on"+te]=de,de;Re.on(te,de)},enumerable:!0,configurable:!1})})}se.prototype=Object.create(ne.prototype,{constructor:{value:se}}),se.prototype.write=function(qe){if(typeof z=="function"&&typeof z.isBuffer=="function"&&z.isBuffer(qe)){if(!this._decoder){var _e=a("string_decoder").StringDecoder;this._decoder=new _e("utf8")}qe=this._decoder.write(qe)}return this._parser.write(qe.toString()),this.emit("data",qe),!0},se.prototype.end=function(qe){return qe&&qe.length&&this.write(qe),this._parser.end(),!0},se.prototype.on=function(qe,_e){var Re=this;return!Re._parser["on"+qe]&&re.indexOf(qe)!==-1&&(Re._parser["on"+qe]=function(){var te=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);te.splice(0,0,qe),Re.emit.apply(Re,te)}),ne.prototype.on.call(Re,qe,_e)};var ce="[CDATA[",pe="DOCTYPE",me="http://www.w3.org/XML/1998/namespace",he="http://www.w3.org/2000/xmlns/",ye={xml:me,xmlns:he},De=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Me=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Be=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Pe=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function Ce(qe){return qe===" "||qe===`
|
|
|
`||qe==="\r"||qe===" "}function Ee(qe){return qe==='"'||qe==="'"}function je(qe){return qe===">"||Ce(qe)}function ke(qe,_e){return qe.test(_e)}function Le(qe,_e){return!ke(qe,_e)}var Ae=0;E.STATE={BEGIN:Ae++,BEGIN_WHITESPACE:Ae++,TEXT:Ae++,TEXT_ENTITY:Ae++,OPEN_WAKA:Ae++,SGML_DECL:Ae++,SGML_DECL_QUOTED:Ae++,DOCTYPE:Ae++,DOCTYPE_QUOTED:Ae++,DOCTYPE_DTD:Ae++,DOCTYPE_DTD_QUOTED:Ae++,COMMENT_STARTING:Ae++,COMMENT:Ae++,COMMENT_ENDING:Ae++,COMMENT_ENDED:Ae++,CDATA:Ae++,CDATA_ENDING:Ae++,CDATA_ENDING_2:Ae++,PROC_INST:Ae++,PROC_INST_BODY:Ae++,PROC_INST_ENDING:Ae++,OPEN_TAG:Ae++,OPEN_TAG_SLASH:Ae++,ATTRIB:Ae++,ATTRIB_NAME:Ae++,ATTRIB_NAME_SAW_WHITE:Ae++,ATTRIB_VALUE:Ae++,ATTRIB_VALUE_QUOTED:Ae++,ATTRIB_VALUE_CLOSED:Ae++,ATTRIB_VALUE_UNQUOTED:Ae++,ATTRIB_VALUE_ENTITY_Q:Ae++,ATTRIB_VALUE_ENTITY_U:Ae++,CLOSE_TAG:Ae++,CLOSE_TAG_SAW_WHITE:Ae++,SCRIPT:Ae++,SCRIPT_ENDING:Ae++},E.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},E.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(E.ENTITIES).forEach(function(qe){var _e=E.ENTITIES[qe],Re=typeof _e=="number"?String.fromCharCode(_e):_e;E.ENTITIES[qe]=Re});for(var Se in E.STATE)E.STATE[E.STATE[Se]]=Se;Ae=E.STATE;function Ge(qe,_e,Re){qe[_e]&&qe[_e](Re)}function Ze(qe,_e,Re){qe.textNode&&Je(qe),Ge(qe,_e,Re)}function Je(qe){qe.textNode=at(qe.opt,qe.textNode),qe.textNode&&Ge(qe,"ontext",qe.textNode),qe.textNode=""}function at(qe,_e){return qe.trim&&(_e=_e.trim()),qe.normalize&&(_e=_e.replace(/\s+/g," ")),_e}function Fe(qe,_e){return Je(qe),qe.trackPosition&&(_e+=`
|
|
|
Line: `+qe.line+`
|
|
|
Column: `+qe.column+`
|
|
|
Char: `+qe.c),_e=new Error(_e),qe.error=_e,Ge(qe,"onerror",_e),qe}function Ke(qe){return qe.sawRoot&&!qe.closedRoot&&it(qe,"Unclosed root tag"),qe.state!==Ae.BEGIN&&qe.state!==Ae.BEGIN_WHITESPACE&&qe.state!==Ae.TEXT&&Fe(qe,"Unexpected end"),Je(qe),qe.c="",qe.closed=!0,Ge(qe,"onend"),oe.call(qe,qe.strict,qe.opt),qe}function it(qe,_e){if(typeof qe!="object"||!(qe instanceof oe))throw new Error("bad call to strictFail");qe.strict&&Fe(qe,_e)}function rt(qe){qe.strict||(qe.tagName=qe.tagName[qe.looseCase]());var _e=qe.tags[qe.tags.length-1]||qe,Re=qe.tag={name:qe.tagName,attributes:{}};qe.opt.xmlns&&(Re.ns=_e.ns),qe.attribList.length=0,Ze(qe,"onopentagstart",Re)}function et(qe,_e){var Re=qe.indexOf(":"),te=Re<0?["",qe]:qe.split(":"),de=te[0],Ne=te[1];return _e&&qe==="xmlns"&&(de="xmlns",Ne=""),{prefix:de,local:Ne}}function $e(qe){if(qe.strict||(qe.attribName=qe.attribName[qe.looseCase]()),qe.attribList.indexOf(qe.attribName)!==-1||qe.tag.attributes.hasOwnProperty(qe.attribName)){qe.attribName=qe.attribValue="";return}if(qe.opt.xmlns){var _e=et(qe.attribName,!0),Re=_e.prefix,te=_e.local;if(Re==="xmlns")if(te==="xml"&&qe.attribValue!==me)it(qe,"xml: prefix must be bound to "+me+`
|
|
|
Actual: `+qe.attribValue);else if(te==="xmlns"&&qe.attribValue!==he)it(qe,"xmlns: prefix must be bound to "+he+`
|
|
|
Actual: `+qe.attribValue);else{var de=qe.tag,Ne=qe.tags[qe.tags.length-1]||qe;de.ns===Ne.ns&&(de.ns=Object.create(Ne.ns)),de.ns[te]=qe.attribValue}qe.attribList.push([qe.attribName,qe.attribValue])}else qe.tag.attributes[qe.attribName]=qe.attribValue,Ze(qe,"onattribute",{name:qe.attribName,value:qe.attribValue});qe.attribName=qe.attribValue=""}function Xe(qe,_e){if(qe.opt.xmlns){var Re=qe.tag,te=et(qe.tagName);Re.prefix=te.prefix,Re.local=te.local,Re.uri=Re.ns[te.prefix]||"",Re.prefix&&!Re.uri&&(it(qe,"Unbound namespace prefix: "+JSON.stringify(qe.tagName)),Re.uri=te.prefix);var de=qe.tags[qe.tags.length-1]||qe;Re.ns&&de.ns!==Re.ns&&Object.keys(Re.ns).forEach(function(ft){Ze(qe,"onopennamespace",{prefix:ft,uri:Re.ns[ft]})});for(var Ne=0,ze=qe.attribList.length;Ne<ze;Ne++){var xe=qe.attribList[Ne],ve=xe[0],Oe=xe[1],We=et(ve,!0),Ue=We.prefix,Ye=We.local,st=Ue===""?"":Re.ns[Ue]||"",lt={name:ve,value:Oe,prefix:Ue,local:Ye,uri:st};Ue&&Ue!=="xmlns"&&!st&&(it(qe,"Unbound namespace prefix: "+JSON.stringify(Ue)),lt.uri=Ue),qe.tag.attributes[ve]=lt,Ze(qe,"onattribute",lt)}qe.attribList.length=0}qe.tag.isSelfClosing=!!_e,qe.sawRoot=!0,qe.tags.push(qe.tag),Ze(qe,"onopentag",qe.tag),_e||(!qe.noscript&&qe.tagName.toLowerCase()==="script"?qe.state=Ae.SCRIPT:qe.state=Ae.TEXT,qe.tag=null,qe.tagName=""),qe.attribName=qe.attribValue="",qe.attribList.length=0}function Ve(qe){if(!qe.tagName){it(qe,"Weird empty close tag."),qe.textNode+="</>",qe.state=Ae.TEXT;return}if(qe.script){if(qe.tagName!=="script"){qe.script+="</"+qe.tagName+">",qe.tagName="",qe.state=Ae.SCRIPT;return}Ze(qe,"onscript",qe.script),qe.script=""}var _e=qe.tags.length,Re=qe.tagName;qe.strict||(Re=Re[qe.looseCase]());for(var te=Re;_e--;){var de=qe.tags[_e];if(de.name!==te)it(qe,"Unexpected close tag");else break}if(_e<0){it(qe,"Unmatched closing tag: "+qe.tagName),qe.textNode+="</"+qe.tagName+">",qe.state=Ae.TEXT;return}qe.tagName=Re;for(var Ne=qe.tags.length;Ne-- >_e;){var ze=qe.tag=qe.tags.pop();qe.tagName=qe.tag.name,Ze(qe,"onclosetag",qe.tagName);var xe={};for(var ve in ze.ns)xe[ve]=ze.ns[ve];var Oe=qe.tags[qe.tags.length-1]||qe;qe.opt.xmlns&&ze.ns!==Oe.ns&&Object.keys(ze.ns).forEach(function(We){var Ue=ze.ns[We];Ze(qe,"onclosenamespace",{prefix:We,uri:Ue})})}_e===0&&(qe.closedRoot=!0),qe.tagName=qe.attribValue=qe.attribName="",qe.attribList.length=0,qe.state=Ae.TEXT}function nt(qe){var _e=qe.entity,Re=_e.toLowerCase(),te,de="";return qe.ENTITIES[_e]?qe.ENTITIES[_e]:qe.ENTITIES[Re]?qe.ENTITIES[Re]:(_e=Re,_e.charAt(0)==="#"&&(_e.charAt(1)==="x"?(_e=_e.slice(2),te=parseInt(_e,16),de=te.toString(16)):(_e=_e.slice(1),te=parseInt(_e,10),de=te.toString(10))),_e=_e.replace(/^0+/,""),isNaN(te)||de.toLowerCase()!==_e?(it(qe,"Invalid character entity"),"&"+qe.entity+";"):String.fromCodePoint(te))}function Qe(qe,_e){_e==="<"?(qe.state=Ae.OPEN_WAKA,qe.startTagPosition=qe.position):Ce(_e)||(it(qe,"Non-whitespace before first tag."),qe.textNode=_e,qe.state=Ae.TEXT)}function ct(qe,_e){var Re="";return _e<qe.length&&(Re=qe.charAt(_e)),Re}function ot(qe){var _e=this;if(this.error)throw this.error;if(_e.closed)return Fe(_e,"Cannot write after close. Assign an onready handler.");if(qe===null)return Ke(_e);typeof qe=="object"&&(qe=qe.toString());for(var Re=0,te="";te=ct(qe,Re++),_e.c=te,!!te;)switch(_e.trackPosition&&(_e.position++,te===`
|
|
|
`?(_e.line++,_e.column=0):_e.column++),_e.state){case Ae.BEGIN:if(_e.state=Ae.BEGIN_WHITESPACE,te==="\uFEFF")continue;Qe(_e,te);continue;case Ae.BEGIN_WHITESPACE:Qe(_e,te);continue;case Ae.TEXT:if(_e.sawRoot&&!_e.closedRoot){for(var de=Re-1;te&&te!=="<"&&te!=="&";)te=ct(qe,Re++),te&&_e.trackPosition&&(_e.position++,te===`
|
|
|
`?(_e.line++,_e.column=0):_e.column++);_e.textNode+=qe.substring(de,Re-1)}te==="<"&&!(_e.sawRoot&&_e.closedRoot&&!_e.strict)?(_e.state=Ae.OPEN_WAKA,_e.startTagPosition=_e.position):(!Ce(te)&&(!_e.sawRoot||_e.closedRoot)&&it(_e,"Text data outside of root node."),te==="&"?_e.state=Ae.TEXT_ENTITY:_e.textNode+=te);continue;case Ae.SCRIPT:te==="<"?_e.state=Ae.SCRIPT_ENDING:_e.script+=te;continue;case Ae.SCRIPT_ENDING:te==="/"?_e.state=Ae.CLOSE_TAG:(_e.script+="<"+te,_e.state=Ae.SCRIPT);continue;case Ae.OPEN_WAKA:if(te==="!")_e.state=Ae.SGML_DECL,_e.sgmlDecl="";else if(!Ce(te))if(ke(De,te))_e.state=Ae.OPEN_TAG,_e.tagName=te;else if(te==="/")_e.state=Ae.CLOSE_TAG,_e.tagName="";else if(te==="?")_e.state=Ae.PROC_INST,_e.procInstName=_e.procInstBody="";else{if(it(_e,"Unencoded <"),_e.startTagPosition+1<_e.position){var Ne=_e.position-_e.startTagPosition;te=new Array(Ne).join(" ")+te}_e.textNode+="<"+te,_e.state=Ae.TEXT}continue;case Ae.SGML_DECL:(_e.sgmlDecl+te).toUpperCase()===ce?(Ze(_e,"onopencdata"),_e.state=Ae.CDATA,_e.sgmlDecl="",_e.cdata=""):_e.sgmlDecl+te==="--"?(_e.state=Ae.COMMENT,_e.comment="",_e.sgmlDecl=""):(_e.sgmlDecl+te).toUpperCase()===pe?(_e.state=Ae.DOCTYPE,(_e.doctype||_e.sawRoot)&&it(_e,"Inappropriately located doctype declaration"),_e.doctype="",_e.sgmlDecl=""):te===">"?(Ze(_e,"onsgmldeclaration",_e.sgmlDecl),_e.sgmlDecl="",_e.state=Ae.TEXT):(Ee(te)&&(_e.state=Ae.SGML_DECL_QUOTED),_e.sgmlDecl+=te);continue;case Ae.SGML_DECL_QUOTED:te===_e.q&&(_e.state=Ae.SGML_DECL,_e.q=""),_e.sgmlDecl+=te;continue;case Ae.DOCTYPE:te===">"?(_e.state=Ae.TEXT,Ze(_e,"ondoctype",_e.doctype),_e.doctype=!0):(_e.doctype+=te,te==="["?_e.state=Ae.DOCTYPE_DTD:Ee(te)&&(_e.state=Ae.DOCTYPE_QUOTED,_e.q=te));continue;case Ae.DOCTYPE_QUOTED:_e.doctype+=te,te===_e.q&&(_e.q="",_e.state=Ae.DOCTYPE);continue;case Ae.DOCTYPE_DTD:_e.doctype+=te,te==="]"?_e.state=Ae.DOCTYPE:Ee(te)&&(_e.state=Ae.DOCTYPE_DTD_QUOTED,_e.q=te);continue;case Ae.DOCTYPE_DTD_QUOTED:_e.doctype+=te,te===_e.q&&(_e.state=Ae.DOCTYPE_DTD,_e.q="");continue;case Ae.COMMENT:te==="-"?_e.state=Ae.COMMENT_ENDING:_e.comment+=te;continue;case Ae.COMMENT_ENDING:te==="-"?(_e.state=Ae.COMMENT_ENDED,_e.comment=at(_e.opt,_e.comment),_e.comment&&Ze(_e,"oncomment",_e.comment),_e.comment=""):(_e.comment+="-"+te,_e.state=Ae.COMMENT);continue;case Ae.COMMENT_ENDED:te!==">"?(it(_e,"Malformed comment"),_e.comment+="--"+te,_e.state=Ae.COMMENT):_e.state=Ae.TEXT;continue;case Ae.CDATA:te==="]"?_e.state=Ae.CDATA_ENDING:_e.cdata+=te;continue;case Ae.CDATA_ENDING:te==="]"?_e.state=Ae.CDATA_ENDING_2:(_e.cdata+="]"+te,_e.state=Ae.CDATA);continue;case Ae.CDATA_ENDING_2:te===">"?(_e.cdata&&Ze(_e,"oncdata",_e.cdata),Ze(_e,"onclosecdata"),_e.cdata="",_e.state=Ae.TEXT):te==="]"?_e.cdata+="]":(_e.cdata+="]]"+te,_e.state=Ae.CDATA);continue;case Ae.PROC_INST:te==="?"?_e.state=Ae.PROC_INST_ENDING:Ce(te)?_e.state=Ae.PROC_INST_BODY:_e.procInstName+=te;continue;case Ae.PROC_INST_BODY:if(!_e.procInstBody&&Ce(te))continue;te==="?"?_e.state=Ae.PROC_INST_ENDING:_e.procInstBody+=te;continue;case Ae.PROC_INST_ENDING:te===">"?(Ze(_e,"onprocessinginstruction",{name:_e.procInstName,body:_e.procInstBody}),_e.procInstName=_e.procInstBody="",_e.state=Ae.TEXT):(_e.procInstBody+="?"+te,_e.state=Ae.PROC_INST_BODY);continue;case Ae.OPEN_TAG:ke(Me,te)?_e.tagName+=te:(rt(_e),te===">"?Xe(_e):te==="/"?_e.state=Ae.OPEN_TAG_SLASH:(Ce(te)||it(_e,"Invalid character in tag name"),_e.state=Ae.ATTRIB));continue;case Ae.OPEN_TAG_SLASH:te===">"?(Xe(_e,!0),Ve(_e)):(it(_e,"Forward-slash in opening tag not followed by >"),_e.state=Ae.ATTRIB);continue;case Ae.ATTRIB:if(Ce(te))continue;te===">"?Xe(_e):te==="/"?_e.state=Ae.OPEN_TAG_SLASH:ke(De,te)?(_e.attribName=te,_e.attribValue="",_e.state=Ae.ATTRIB_NAME):it(_e,"Invalid attribute name");continue;case Ae.ATTRIB_NAME:te==="="?_e.state=Ae.ATTRIB_VALUE:te===">"?(it(_e,"Attribute without value"),_e.attribValue=_e.attribName,$e(_e),Xe(_e)):Ce(te)?_e.state=Ae.ATTRIB_NAME_SAW_WHITE:ke(Me,te)?_e.attribName+=te:it(_e,"Invalid attribute name");continue;case Ae.ATTRIB_NAME_SAW_WHITE:if(te==="=")_e.state=Ae.ATTRIB_VALUE;else{if(Ce(te))continue;it(_e,"Attribute without value"),_e.tag.attributes[_e.attribName]="",_e.attribValue="",Ze(_e,"onattribute",{name:_e.attribName,value:""}),_e.attribName="",te===">"?Xe(_e):ke(De,te)?(_e.attribName=te,_e.state=Ae.ATTRIB_NAME):(it(_e,"Invalid attribute name"),_e.state=Ae.ATTRIB)}continue;case Ae.ATTRIB_VALUE:if(Ce(te))continue;Ee(te)?(_e.q=te,_e.state=Ae.ATTRIB_VALUE_QUOTED):(it(_e,"Unquoted attribute value"),_e.state=Ae.ATTRIB_VALUE_UNQUOTED,_e.attribValue=te);continue;case Ae.ATTRIB_VALUE_QUOTED:if(te!==_e.q){te==="&"?_e.state=Ae.ATTRIB_VALUE_ENTITY_Q:_e.attribValue+=te;continue}$e(_e),_e.q="",_e.state=Ae.ATTRIB_VALUE_CLOSED;continue;case Ae.ATTRIB_VALUE_CLOSED:Ce(te)?_e.state=Ae.ATTRIB:te===">"?Xe(_e):te==="/"?_e.state=Ae.OPEN_TAG_SLASH:ke(De,te)?(it(_e,"No whitespace between attributes"),_e.attribName=te,_e.attribValue="",_e.state=Ae.ATTRIB_NAME):it(_e,"Invalid attribute name");continue;case Ae.ATTRIB_VALUE_UNQUOTED:if(!je(te)){te==="&"?_e.state=Ae.ATTRIB_VALUE_ENTITY_U:_e.attribValue+=te;continue}$e(_e),te===">"?Xe(_e):_e.state=Ae.ATTRIB;continue;case Ae.CLOSE_TAG:if(_e.tagName)te===">"?Ve(_e):ke(Me,te)?_e.tagName+=te:_e.script?(_e.script+="</"+_e.tagName,_e.tagName="",_e.state=Ae.SCRIPT):(Ce(te)||it(_e,"Invalid tagname in closing tag"),_e.state=Ae.CLOSE_TAG_SAW_WHITE);else{if(Ce(te))continue;Le(De,te)?_e.script?(_e.script+="</"+te,_e.state=Ae.SCRIPT):it(_e,"Invalid tagname in closing tag."):_e.tagName=te}continue;case Ae.CLOSE_TAG_SAW_WHITE:if(Ce(te))continue;te===">"?Ve(_e):it(_e,"Invalid characters in closing tag");continue;case Ae.TEXT_ENTITY:case Ae.ATTRIB_VALUE_ENTITY_Q:case Ae.ATTRIB_VALUE_ENTITY_U:var ze,xe;switch(_e.state){case Ae.TEXT_ENTITY:ze=Ae.TEXT,xe="textNode";break;case Ae.ATTRIB_VALUE_ENTITY_Q:ze=Ae.ATTRIB_VALUE_QUOTED,xe="attribValue";break;case Ae.ATTRIB_VALUE_ENTITY_U:ze=Ae.ATTRIB_VALUE_UNQUOTED,xe="attribValue";break}te===";"?(_e[xe]+=nt(_e),_e.entity="",_e.state=ze):ke(_e.entity.length?Pe:Be,te)?_e.entity+=te:(it(_e,"Invalid character in entity name"),_e[xe]+="&"+_e.entity+te,_e.entity="",_e.state=ze);continue;default:throw new Error(_e,"Unknown state: "+_e.state)}return _e.position>=_e.bufferCheckPosition&&ee(_e),_e}String.fromCodePoint||function(){var qe=String.fromCharCode,_e=Math.floor,Re=function(){var te=16384,de=[],Ne,ze,xe=-1,ve=arguments.length;if(!ve)return"";for(var Oe="";++xe<ve;){var We=Number(arguments[xe]);if(!isFinite(We)||We<0||We>1114111||_e(We)!==We)throw RangeError("Invalid code point: "+We);We<=65535?de.push(We):(We-=65536,Ne=(We>>10)+55296,ze=We%1024+56320,de.push(Ne,ze)),(xe+1===ve||de.length>te)&&(Oe+=qe.apply(null,de),de.length=0)}return Oe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Re,configurable:!0,writable:!0}):String.fromCodePoint=Re}()})(typeof be=="undefined"?this.sax={}:be)}).call(this)}).call(this,a("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(a,Te,be){Te.exports=ie;var z=a("events").EventEmitter,E=a("inherits");E(ie,z),ie.Readable=a("readable-stream/lib/_stream_readable.js"),ie.Writable=a("readable-stream/lib/_stream_writable.js"),ie.Duplex=a("readable-stream/lib/_stream_duplex.js"),ie.Transform=a("readable-stream/lib/_stream_transform.js"),ie.PassThrough=a("readable-stream/lib/_stream_passthrough.js"),ie.finished=a("readable-stream/lib/internal/streams/end-of-stream.js"),ie.pipeline=a("readable-stream/lib/internal/streams/pipeline.js"),ie.Stream=ie;function ie(){z.call(this)}ie.prototype.pipe=function(oe,ee){var le=this;function x(me){oe.writable&&oe.write(me)===!1&&le.pause&&le.pause()}le.on("data",x);function ne(){le.readable&&le.resume&&le.resume()}oe.on("drain",ne),!oe._isStdio&&(!ee||ee.end!==!1)&&(le.on("end",ae),le.on("close",se));var re=!1;function ae(){re||(re=!0,oe.end())}function se(){re||(re=!0,typeof oe.destroy=="function"&&oe.destroy())}function ce(me){if(pe(),z.listenerCount(this,"error")===0)throw me}le.on("error",ce),oe.on("error",ce);function pe(){le.removeListener("data",x),oe.removeListener("drain",ne),le.removeListener("end",ae),le.removeListener("close",se),le.removeListener("error",ce),oe.removeListener("error",ce),le.removeListener("end",pe),le.removeListener("close",pe),oe.removeListener("close",pe)}return le.on("end",pe),le.on("close",pe),oe.on("close",pe),oe.emit("pipe",le),oe}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(a,Te,be){"use strict";function z(ne,re){ne.prototype=Object.create(re.prototype),ne.prototype.constructor=ne,ne.__proto__=re}var E={};function ie(ne,re,ae){ae||(ae=Error);function se(pe,me,he){return typeof re=="string"?re:re(pe,me,he)}var ce=function(pe){z(me,pe);function me(he,ye,De){return pe.call(this,se(he,ye,De))||this}return me}(ae);ce.prototype.name=ae.name,ce.prototype.code=ne,E[ne]=ce}function oe(ne,re){if(Array.isArray(ne)){var ae=ne.length;return ne=ne.map(function(se){return String(se)}),ae>2?"one of ".concat(re," ").concat(ne.slice(0,ae-1).join(", "),", or ")+ne[ae-1]:ae===2?"one of ".concat(re," ").concat(ne[0]," or ").concat(ne[1]):"of ".concat(re," ").concat(ne[0])}else return"of ".concat(re," ").concat(String(ne))}function ee(ne,re,ae){return ne.substr(!ae||ae<0?0:+ae,re.length)===re}function le(ne,re,ae){return(ae===void 0||ae>ne.length)&&(ae=ne.length),ne.substring(ae-re.length,ae)===re}function x(ne,re,ae){return typeof ae!="number"&&(ae=0),ae+re.length>ne.length?!1:ne.indexOf(re,ae)!==-1}ie("ERR_INVALID_OPT_VALUE",function(ne,re){return'The value "'+re+'" is invalid for option "'+ne+'"'},TypeError),ie("ERR_INVALID_ARG_TYPE",function(ne,re,ae){var se;typeof re=="string"&&ee(re,"not ")?(se="must not be",re=re.replace(/^not /,"")):se="must be";var ce;if(le(ne," argument"))ce="The ".concat(ne," ").concat(se," ").concat(oe(re,"type"));else{var pe=x(ne,".")?"property":"argument";ce='The "'.concat(ne,'" ').concat(pe," ").concat(se," ").concat(oe(re,"type"))}return ce+=". Received type ".concat(typeof ae),ce},TypeError),ie("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ie("ERR_METHOD_NOT_IMPLEMENTED",function(ne){return"The "+ne+" method is not implemented"}),ie("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ie("ERR_STREAM_DESTROYED",function(ne){return"Cannot call "+ne+" after a stream was destroyed"}),ie("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ie("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ie("ERR_STREAM_WRITE_AFTER_END","write after end"),ie("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ie("ERR_UNKNOWN_ENCODING",function(ne){return"Unknown encoding: "+ne},TypeError),ie("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Te.exports.codes=E},{}],400:[function(a,Te,be){(function(z){(function(){"use strict";var E=Object.keys||function(se){var ce=[];for(var pe in se)ce.push(pe);return ce};Te.exports=ne;var ie=a("./_stream_readable"),oe=a("./_stream_writable");a("inherits")(ne,ie);for(var ee=E(oe.prototype),le=0;le<ee.length;le++){var x=ee[le];ne.prototype[x]||(ne.prototype[x]=oe.prototype[x])}function ne(se){if(!(this instanceof ne))return new ne(se);ie.call(this,se),oe.call(this,se),this.allowHalfOpen=!0,se&&(se.readable===!1&&(this.readable=!1),se.writable===!1&&(this.writable=!1),se.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",re)))}Object.defineProperty(ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function re(){this._writableState.ended||z.nextTick(ae,this)}function ae(se){se.end()}Object.defineProperty(ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ce){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ce,this._writableState.destroyed=ce)}})}).call(this)}).call(this,a("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(a,Te,be){"use strict";Te.exports=E;var z=a("./_stream_transform");a("inherits")(E,z);function E(ie){if(!(this instanceof E))return new E(ie);z.call(this,ie)}E.prototype._transform=function(ie,oe,ee){ee(null,ie)}},{"./_stream_transform":403,inherits:364}],402:[function(a,Te,be){(function(z,E){(function(){"use strict";Te.exports=Ze;var ie;Ze.ReadableState=Ge;var oe=a("events").EventEmitter,ee=function(ve,Oe){return ve.listeners(Oe).length},le=a("./internal/streams/stream"),x=a("buffer").Buffer,ne=(typeof E!="undefined"?E:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function re(xe){return x.from(xe)}function ae(xe){return x.isBuffer(xe)||xe instanceof ne}var se=a("util"),ce;se&&se.debuglog?ce=se.debuglog("stream"):ce=function(){};var pe=a("./internal/streams/buffer_list"),me=a("./internal/streams/destroy"),he=a("./internal/streams/state"),ye=he.getHighWaterMark,De=a("../errors").codes,Me=De.ERR_INVALID_ARG_TYPE,Be=De.ERR_STREAM_PUSH_AFTER_EOF,Pe=De.ERR_METHOD_NOT_IMPLEMENTED,Ce=De.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Ee,je,ke;a("inherits")(Ze,le);var Le=me.errorOrDestroy,Ae=["error","close","destroy","pause","resume"];function Se(xe,ve,Oe){if(typeof xe.prependListener=="function")return xe.prependListener(ve,Oe);!xe._events||!xe._events[ve]?xe.on(ve,Oe):Array.isArray(xe._events[ve])?xe._events[ve].unshift(Oe):xe._events[ve]=[Oe,xe._events[ve]]}function Ge(xe,ve,Oe){ie=ie||a("./_stream_duplex"),xe=xe||{},typeof Oe!="boolean"&&(Oe=ve instanceof ie),this.objectMode=!!xe.objectMode,Oe&&(this.objectMode=this.objectMode||!!xe.readableObjectMode),this.highWaterMark=ye(this,xe,"readableHighWaterMark",Oe),this.buffer=new pe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=xe.emitClose!==!1,this.autoDestroy=!!xe.autoDestroy,this.destroyed=!1,this.defaultEncoding=xe.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,xe.encoding&&(Ee||(Ee=a("string_decoder/").StringDecoder),this.decoder=new Ee(xe.encoding),this.encoding=xe.encoding)}function Ze(xe){if(ie=ie||a("./_stream_duplex"),!(this instanceof Ze))return new Ze(xe);var ve=this instanceof ie;this._readableState=new Ge(xe,this,ve),this.readable=!0,xe&&(typeof xe.read=="function"&&(this._read=xe.read),typeof xe.destroy=="function"&&(this._destroy=xe.destroy)),le.call(this)}Object.defineProperty(Ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ve){this._readableState&&(this._readableState.destroyed=ve)}}),Ze.prototype.destroy=me.destroy,Ze.prototype._undestroy=me.undestroy,Ze.prototype._destroy=function(xe,ve){ve(xe)},Ze.prototype.push=function(xe,ve){var Oe=this._readableState,We;return Oe.objectMode?We=!0:typeof xe=="string"&&(ve=ve||Oe.defaultEncoding,ve!==Oe.encoding&&(xe=x.from(xe,ve),ve=""),We=!0),Je(this,xe,ve,!1,We)},Ze.prototype.unshift=function(xe){return Je(this,xe,null,!0,!1)};function Je(xe,ve,Oe,We,Ue){ce("readableAddChunk",ve);var Ye=xe._readableState;if(ve===null)Ye.reading=!1,et(xe,Ye);else{var st;if(Ue||(st=Fe(Ye,ve)),st)Le(xe,st);else if(Ye.objectMode||ve&&ve.length>0)if(typeof ve!="string"&&!Ye.objectMode&&Object.getPrototypeOf(ve)!==x.prototype&&(ve=re(ve)),We)Ye.endEmitted?Le(xe,new Ce):at(xe,Ye,ve,!0);else if(Ye.ended)Le(xe,new Be);else{if(Ye.destroyed)return!1;Ye.reading=!1,Ye.decoder&&!Oe?(ve=Ye.decoder.write(ve),Ye.objectMode||ve.length!==0?at(xe,Ye,ve,!1):Ve(xe,Ye)):at(xe,Ye,ve,!1)}else We||(Ye.reading=!1,Ve(xe,Ye))}return!Ye.ended&&(Ye.length<Ye.highWaterMark||Ye.length===0)}function at(xe,ve,Oe,We){ve.flowing&&ve.length===0&&!ve.sync?(ve.awaitDrain=0,xe.emit("data",Oe)):(ve.length+=ve.objectMode?1:Oe.length,We?ve.buffer.unshift(Oe):ve.buffer.push(Oe),ve.needReadable&&$e(xe)),Ve(xe,ve)}function Fe(xe,ve){var Oe;return!ae(ve)&&typeof ve!="string"&&ve!==void 0&&!xe.objectMode&&(Oe=new Me("chunk",["string","Buffer","Uint8Array"],ve)),Oe}Ze.prototype.isPaused=function(){return this._readableState.flowing===!1},Ze.prototype.setEncoding=function(xe){Ee||(Ee=a("string_decoder/").StringDecoder);var ve=new Ee(xe);this._readableState.decoder=ve,this._readableState.encoding=this._readableState.decoder.encoding;for(var Oe=this._readableState.buffer.head,We="";Oe!==null;)We+=ve.write(Oe.data),Oe=Oe.next;return this._readableState.buffer.clear(),We!==""&&this._readableState.buffer.push(We),this._readableState.length=We.length,this};var Ke=1073741824;function it(xe){return xe>=Ke?xe=Ke:(xe--,xe|=xe>>>1,xe|=xe>>>2,xe|=xe>>>4,xe|=xe>>>8,xe|=xe>>>16,xe++),xe}function rt(xe,ve){return xe<=0||ve.length===0&&ve.ended?0:ve.objectMode?1:xe!==xe?ve.flowing&&ve.length?ve.buffer.head.data.length:ve.length:(xe>ve.highWaterMark&&(ve.highWaterMark=it(xe)),xe<=ve.length?xe:ve.ended?ve.length:(ve.needReadable=!0,0))}Ze.prototype.read=function(xe){ce("read",xe),xe=parseInt(xe,10);var ve=this._readableState,Oe=xe;if(xe!==0&&(ve.emittedReadable=!1),xe===0&&ve.needReadable&&((ve.highWaterMark!==0?ve.length>=ve.highWaterMark:ve.length>0)||ve.ended))return ce("read: emitReadable",ve.length,ve.ended),ve.length===0&&ve.ended?de(this):$e(this),null;if(xe=rt(xe,ve),xe===0&&ve.ended)return ve.length===0&&de(this),null;var We=ve.needReadable;ce("need readable",We),(ve.length===0||ve.length-xe<ve.highWaterMark)&&(We=!0,ce("length less than watermark",We)),ve.ended||ve.reading?(We=!1,ce("reading or ended",We)):We&&(ce("do read"),ve.reading=!0,ve.sync=!0,ve.length===0&&(ve.needReadable=!0),this._read(ve.highWaterMark),ve.sync=!1,ve.reading||(xe=rt(Oe,ve)));var Ue;return xe>0?Ue=te(xe,ve):Ue=null,Ue===null?(ve.needReadable=ve.length<=ve.highWaterMark,xe=0):(ve.length-=xe,ve.awaitDrain=0),ve.length===0&&(ve.ended||(ve.needReadable=!0),Oe!==xe&&ve.ended&&de(this)),Ue!==null&&this.emit("data",Ue),Ue};function et(xe,ve){if(ce("onEofChunk"),!ve.ended){if(ve.decoder){var Oe=ve.decoder.end();Oe&&Oe.length&&(ve.buffer.push(Oe),ve.length+=ve.objectMode?1:Oe.length)}ve.ended=!0,ve.sync?$e(xe):(ve.needReadable=!1,ve.emittedReadable||(ve.emittedReadable=!0,Xe(xe)))}}function $e(xe){var ve=xe._readableState;ce("emitReadable",ve.needReadable,ve.emittedReadable),ve.needReadable=!1,ve.emittedReadable||(ce("emitReadable",ve.flowing),ve.emittedReadable=!0,z.nextTick(Xe,xe))}function Xe(xe){var ve=xe._readableState;ce("emitReadable_",ve.destroyed,ve.length,ve.ended),!ve.destroyed&&(ve.length||ve.ended)&&(xe.emit("readable"),ve.emittedReadable=!1),ve.needReadable=!ve.flowing&&!ve.ended&&ve.length<=ve.highWaterMark,Re(xe)}function Ve(xe,ve){ve.readingMore||(ve.readingMore=!0,z.nextTick(nt,xe,ve))}function nt(xe,ve){for(;!ve.reading&&!ve.ended&&(ve.length<ve.highWaterMark||ve.flowing&&ve.length===0);){var Oe=ve.length;if(ce("maybeReadMore read 0"),xe.read(0),Oe===ve.length)break}ve.readingMore=!1}Ze.prototype._read=function(xe){Le(this,new Pe("_read()"))},Ze.prototype.pipe=function(xe,ve){var Oe=this,We=this._readableState;switch(We.pipesCount){case 0:We.pipes=xe;break;case 1:We.pipes=[We.pipes,xe];break;default:We.pipes.push(xe);break}We.pipesCount+=1,ce("pipe count=%d opts=%j",We.pipesCount,ve);var Ue=(!ve||ve.end!==!1)&&xe!==z.stdout&&xe!==z.stderr,Ye=Ue?lt:xt;We.endEmitted?z.nextTick(Ye):Oe.once("end",Ye),xe.on("unpipe",st);function st(jt,At){ce("onunpipe"),jt===Oe&&At&&At.hasUnpiped===!1&&(At.hasUnpiped=!0,St())}function lt(){ce("onend"),xe.end()}var ft=Qe(Oe);xe.on("drain",ft);var Tt=!1;function St(){ce("cleanup"),xe.removeListener("close",Mt),xe.removeListener("finish",Et),xe.removeListener("drain",ft),xe.removeListener("error",yt),xe.removeListener("unpipe",st),Oe.removeListener("end",lt),Oe.removeListener("end",xt),Oe.removeListener("data",Ot),Tt=!0,We.awaitDrain&&(!xe._writableState||xe._writableState.needDrain)&&ft()}Oe.on("data",Ot);function Ot(jt){ce("ondata");var At=xe.write(jt);ce("dest.write",At),At===!1&&((We.pipesCount===1&&We.pipes===xe||We.pipesCount>1&&ze(We.pipes,xe)!==-1)&&!Tt&&(ce("false write response, pause",We.awaitDrain),We.awaitDrain++),Oe.pause())}function yt(jt){ce("onerror",jt),xt(),xe.removeListener("error",yt),ee(xe,"error")===0&&Le(xe,jt)}Se(xe,"error",yt);function Mt(){xe.removeListener("finish",Et),xt()}xe.once("close",Mt);function Et(){ce("onfinish"),xe.removeListener("close",Mt),xt()}xe.once("finish",Et);function xt(){ce("unpipe"),Oe.unpipe(xe)}return xe.emit("pipe",Oe),We.flowing||(ce("pipe resume"),Oe.resume()),xe};function Qe(xe){return function(){var Oe=xe._readableState;ce("pipeOnDrain",Oe.awaitDrain),Oe.awaitDrain&&Oe.awaitDrain--,Oe.awaitDrain===0&&ee(xe,"data")&&(Oe.flowing=!0,Re(xe))}}Ze.prototype.unpipe=function(xe){var ve=this._readableState,Oe={hasUnpiped:!1};if(ve.pipesCount===0)return this;if(ve.pipesCount===1)return xe&&xe!==ve.pipes?this:(xe||(xe=ve.pipes),ve.pipes=null,ve.pipesCount=0,ve.flowing=!1,xe&&xe.emit("unpipe",this,Oe),this);if(!xe){var We=ve.pipes,Ue=ve.pipesCount;ve.pipes=null,ve.pipesCount=0,ve.flowing=!1;for(var Ye=0;Ye<Ue;Ye++)We[Ye].emit("unpipe",this,{hasUnpiped:!1});return this}var st=ze(ve.pipes,xe);return st===-1?this:(ve.pipes.splice(st,1),ve.pipesCount-=1,ve.pipesCount===1&&(ve.pipes=ve.pipes[0]),xe.emit("unpipe",this,Oe),this)},Ze.prototype.on=function(xe,ve){var Oe=le.prototype.on.call(this,xe,ve),We=this._readableState;return xe==="data"?(We.readableListening=this.listenerCount("readable")>0,We.flowing!==!1&&this.resume()):xe==="readable"&&!We.endEmitted&&!We.readableListening&&(We.readableListening=We.needReadable=!0,We.flowing=!1,We.emittedReadable=!1,ce("on readable",We.length,We.reading),We.length?$e(this):We.reading||z.nextTick(ot,this)),Oe},Ze.prototype.addListener=Ze.prototype.on,Ze.prototype.removeListener=function(xe,ve){var Oe=le.prototype.removeListener.call(this,xe,ve);return xe==="readable"&&z.nextTick(ct,this),Oe},Ze.prototype.removeAllListeners=function(xe){var ve=le.prototype.removeAllListeners.apply(this,arguments);return(xe==="readable"||xe===void 0)&&z.nextTick(ct,this),ve};function ct(xe){var ve=xe._readableState;ve.readableListening=xe.listenerCount("readable")>0,ve.resumeScheduled&&!ve.paused?ve.flowing=!0:xe.listenerCount("data")>0&&xe.resume()}function ot(xe){ce("readable nexttick read 0"),xe.read(0)}Ze.prototype.resume=function(){var xe=this._readableState;return xe.flowing||(ce("resume"),xe.flowing=!xe.readableListening,qe(this,xe)),xe.paused=!1,this};function qe(xe,ve){ve.resumeScheduled||(ve.resumeScheduled=!0,z.nextTick(_e,xe,ve))}function _e(xe,ve){ce("resume",ve.reading),ve.reading||xe.read(0),ve.resumeScheduled=!1,xe.emit("resume"),Re(xe),ve.flowing&&!ve.reading&&xe.read(0)}Ze.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Re(xe){var ve=xe._readableState;for(ce("flow",ve.flowing);ve.flowing&&xe.read()!==null;);}Ze.prototype.wrap=function(xe){var ve=this,Oe=this._readableState,We=!1;xe.on("end",function(){if(ce("wrapped end"),Oe.decoder&&!Oe.ended){var st=Oe.decoder.end();st&&st.length&&ve.push(st)}ve.push(null)}),xe.on("data",function(st){if(ce("wrapped data"),Oe.decoder&&(st=Oe.decoder.write(st)),!(Oe.objectMode&&st==null)&&!(!Oe.objectMode&&(!st||!st.length))){var lt=ve.push(st);lt||(We=!0,xe.pause())}});for(var Ue in xe)this[Ue]===void 0&&typeof xe[Ue]=="function"&&(this[Ue]=function(lt){return function(){return xe[lt].apply(xe,arguments)}}(Ue));for(var Ye=0;Ye<Ae.length;Ye++)xe.on(Ae[Ye],this.emit.bind(this,Ae[Ye]));return this._read=function(st){ce("wrapped _read",st),We&&(We=!1,xe.resume())},this},typeof Symbol=="function"&&(Ze.prototype[Symbol.asyncIterator]=function(){return je===void 0&&(je=a("./internal/streams/async_iterator")),je(this)}),Object.defineProperty(Ze.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Ze.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Ze.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ve){this._readableState&&(this._readableState.flowing=ve)}}),Ze._fromList=te,Object.defineProperty(Ze.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function te(xe,ve){if(ve.length===0)return null;var Oe;return ve.objectMode?Oe=ve.buffer.shift():!xe||xe>=ve.length?(ve.decoder?Oe=ve.buffer.join(""):ve.buffer.length===1?Oe=ve.buffer.first():Oe=ve.buffer.concat(ve.length),ve.buffer.clear()):Oe=ve.buffer.consume(xe,ve.decoder),Oe}function de(xe){var ve=xe._readableState;ce("endReadable",ve.endEmitted),ve.endEmitted||(ve.ended=!0,z.nextTick(Ne,ve,xe))}function Ne(xe,ve){if(ce("endReadableNT",xe.endEmitted,xe.length),!xe.endEmitted&&xe.length===0&&(xe.endEmitted=!0,ve.readable=!1,ve.emit("end"),xe.autoDestroy)){var Oe=ve._writableState;(!Oe||Oe.autoDestroy&&Oe.finished)&&ve.destroy()}}typeof Symbol=="function"&&(Ze.from=function(xe,ve){return ke===void 0&&(ke=a("./internal/streams/from")),ke(Ze,xe,ve)});function ze(xe,ve){for(var Oe=0,We=xe.length;Oe<We;Oe++)if(xe[Oe]===ve)return Oe;return-1}}).call(this)}).call(this,a("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(a,Te,be){"use strict";Te.exports=ne;var z=a("../errors").codes,E=z.ERR_METHOD_NOT_IMPLEMENTED,ie=z.ERR_MULTIPLE_CALLBACK,oe=z.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=z.ERR_TRANSFORM_WITH_LENGTH_0,le=a("./_stream_duplex");a("inherits")(ne,le);function x(se,ce){var pe=this._transformState;pe.transforming=!1;var me=pe.writecb;if(me===null)return this.emit("error",new ie);pe.writechunk=null,pe.writecb=null,ce!=null&&this.push(ce),me(se);var he=this._readableState;he.reading=!1,(he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}function ne(se){if(!(this instanceof ne))return new ne(se);le.call(this,se),this._transformState={afterTransform:x.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,se&&(typeof se.transform=="function"&&(this._transform=se.transform),typeof se.flush=="function"&&(this._flush=se.flush)),this.on("prefinish",re)}function re(){var se=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ce,pe){ae(se,ce,pe)}):ae(this,null,null)}ne.prototype.push=function(se,ce){return this._transformState.needTransform=!1,le.prototype.push.call(this,se,ce)},ne.prototype._transform=function(se,ce,pe){pe(new E("_transform()"))},ne.prototype._write=function(se,ce,pe){var me=this._transformState;if(me.writecb=pe,me.writechunk=se,me.writeencoding=ce,!me.transforming){var he=this._readableState;(me.needTransform||he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}},ne.prototype._read=function(se){var ce=this._transformState;ce.writechunk!==null&&!ce.transforming?(ce.transforming=!0,this._transform(ce.writechunk,ce.writeencoding,ce.afterTransform)):ce.needTransform=!0},ne.prototype._destroy=function(se,ce){le.prototype._destroy.call(this,se,function(pe){ce(pe)})};function ae(se,ce,pe){if(ce)return se.emit("error",ce);if(pe!=null&&se.push(pe),se._writableState.length)throw new ee;if(se._transformState.transforming)throw new oe;return se.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(a,Te,be){(function(z,E){(function(){"use strict";Te.exports=Ge;function ie(Re,te,de){this.chunk=Re,this.encoding=te,this.callback=de,this.next=null}function oe(Re){var te=this;this.next=null,this.entry=null,this.finish=function(){_e(te,Re)}}var ee;Ge.WritableState=Ae;var le={deprecate:a("util-deprecate")},x=a("./internal/streams/stream"),ne=a("buffer").Buffer,re=(typeof E!="undefined"?E:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function ae(Re){return ne.from(Re)}function se(Re){return ne.isBuffer(Re)||Re instanceof re}var ce=a("./internal/streams/destroy"),pe=a("./internal/streams/state"),me=pe.getHighWaterMark,he=a("../errors").codes,ye=he.ERR_INVALID_ARG_TYPE,De=he.ERR_METHOD_NOT_IMPLEMENTED,Me=he.ERR_MULTIPLE_CALLBACK,Be=he.ERR_STREAM_CANNOT_PIPE,Pe=he.ERR_STREAM_DESTROYED,Ce=he.ERR_STREAM_NULL_VALUES,Ee=he.ERR_STREAM_WRITE_AFTER_END,je=he.ERR_UNKNOWN_ENCODING,ke=ce.errorOrDestroy;a("inherits")(Ge,x);function Le(){}function Ae(Re,te,de){ee=ee||a("./_stream_duplex"),Re=Re||{},typeof de!="boolean"&&(de=te instanceof ee),this.objectMode=!!Re.objectMode,de&&(this.objectMode=this.objectMode||!!Re.writableObjectMode),this.highWaterMark=me(this,Re,"writableHighWaterMark",de),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ne=Re.decodeStrings===!1;this.decodeStrings=!Ne,this.defaultEncoding=Re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ze){et(te,ze)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Re.emitClose!==!1,this.autoDestroy=!!Re.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new oe(this)}Ae.prototype.getBuffer=function(){for(var te=this.bufferedRequest,de=[];te;)de.push(te),te=te.next;return de},function(){try{Object.defineProperty(Ae.prototype,"buffer",{get:le.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Re){}}();var Se;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Se=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ge,Symbol.hasInstance,{value:function(te){return Se.call(this,te)?!0:this!==Ge?!1:te&&te._writableState instanceof Ae}})):Se=function(te){return te instanceof this};function Ge(Re){ee=ee||a("./_stream_duplex");var te=this instanceof ee;if(!te&&!Se.call(Ge,this))return new Ge(Re);this._writableState=new Ae(Re,this,te),this.writable=!0,Re&&(typeof Re.write=="function"&&(this._write=Re.write),typeof Re.writev=="function"&&(this._writev=Re.writev),typeof Re.destroy=="function"&&(this._destroy=Re.destroy),typeof Re.final=="function"&&(this._final=Re.final)),x.call(this)}Ge.prototype.pipe=function(){ke(this,new Be)};function Ze(Re,te){var de=new Ee;ke(Re,de),z.nextTick(te,de)}function Je(Re,te,de,Ne){var ze;return de===null?ze=new Ce:typeof de!="string"&&!te.objectMode&&(ze=new ye("chunk",["string","Buffer"],de)),ze?(ke(Re,ze),z.nextTick(Ne,ze),!1):!0}Ge.prototype.write=function(Re,te,de){var Ne=this._writableState,ze=!1,xe=!Ne.objectMode&&se(Re);return xe&&!ne.isBuffer(Re)&&(Re=ae(Re)),typeof te=="function"&&(de=te,te=null),xe?te="buffer":te||(te=Ne.defaultEncoding),typeof de!="function"&&(de=Le),Ne.ending?Ze(this,de):(xe||Je(this,Ne,Re,de))&&(Ne.pendingcb++,ze=Fe(this,Ne,xe,Re,te,de)),ze},Ge.prototype.cork=function(){this._writableState.corked++},Ge.prototype.uncork=function(){var Re=this._writableState;Re.corked&&(Re.corked--,!Re.writing&&!Re.corked&&!Re.bufferProcessing&&Re.bufferedRequest&&Ve(this,Re))},Ge.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=te.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((te+"").toLowerCase())>-1))throw new je(te);return this._writableState.defaultEncoding=te,this},Object.defineProperty(Ge.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function at(Re,te,de){return!Re.objectMode&&Re.decodeStrings!==!1&&typeof te=="string"&&(te=ne.from(te,de)),te}Object.defineProperty(Ge.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Fe(Re,te,de,Ne,ze,xe){if(!de){var ve=at(te,Ne,ze);Ne!==ve&&(de=!0,ze="buffer",Ne=ve)}var Oe=te.objectMode?1:Ne.length;te.length+=Oe;var We=te.length<te.highWaterMark;if(We||(te.needDrain=!0),te.writing||te.corked){var Ue=te.lastBufferedRequest;te.lastBufferedRequest={chunk:Ne,encoding:ze,isBuf:de,callback:xe,next:null},Ue?Ue.next=te.lastBufferedRequest:te.bufferedRequest=te.lastBufferedRequest,te.bufferedRequestCount+=1}else Ke(Re,te,!1,Oe,Ne,ze,xe);return We}function Ke(Re,te,de,Ne,ze,xe,ve){te.writelen=Ne,te.writecb=ve,te.writing=!0,te.sync=!0,te.destroyed?te.onwrite(new Pe("write")):de?Re._writev(ze,te.onwrite):Re._write(ze,xe,te.onwrite),te.sync=!1}function it(Re,te,de,Ne,ze){--te.pendingcb,de?(z.nextTick(ze,Ne),z.nextTick(ot,Re,te),Re._writableState.errorEmitted=!0,ke(Re,Ne)):(ze(Ne),Re._writableState.errorEmitted=!0,ke(Re,Ne),ot(Re,te))}function rt(Re){Re.writing=!1,Re.writecb=null,Re.length-=Re.writelen,Re.writelen=0}function et(Re,te){var de=Re._writableState,Ne=de.sync,ze=de.writecb;if(typeof ze!="function")throw new Me;if(rt(de),te)it(Re,de,Ne,te,ze);else{var xe=nt(de)||Re.destroyed;!xe&&!de.corked&&!de.bufferProcessing&&de.bufferedRequest&&Ve(Re,de),Ne?z.nextTick($e,Re,de,xe,ze):$e(Re,de,xe,ze)}}function $e(Re,te,de,Ne){de||Xe(Re,te),te.pendingcb--,Ne(),ot(Re,te)}function Xe(Re,te){te.length===0&&te.needDrain&&(te.needDrain=!1,Re.emit("drain"))}function Ve(Re,te){te.bufferProcessing=!0;var de=te.bufferedRequest;if(Re._writev&&de&&de.next){var Ne=te.bufferedRequestCount,ze=new Array(Ne),xe=te.corkedRequestsFree;xe.entry=de;for(var ve=0,Oe=!0;de;)ze[ve]=de,de.isBuf||(Oe=!1),de=de.next,ve+=1;ze.allBuffers=Oe,Ke(Re,te,!0,te.length,ze,"",xe.finish),te.pendingcb++,te.lastBufferedRequest=null,xe.next?(te.corkedRequestsFree=xe.next,xe.next=null):te.corkedRequestsFree=new oe(te),te.bufferedRequestCount=0}else{for(;de;){var We=de.chunk,Ue=de.encoding,Ye=de.callback,st=te.objectMode?1:We.length;if(Ke(Re,te,!1,st,We,Ue,Ye),de=de.next,te.bufferedRequestCount--,te.writing)break}de===null&&(te.lastBufferedRequest=null)}te.bufferedRequest=de,te.bufferProcessing=!1}Ge.prototype._write=function(Re,te,de){de(new De("_write()"))},Ge.prototype._writev=null,Ge.prototype.end=function(Re,te,de){var Ne=this._writableState;return typeof Re=="function"?(de=Re,Re=null,te=null):typeof te=="function"&&(de=te,te=null),Re!=null&&this.write(Re,te),Ne.corked&&(Ne.corked=1,this.uncork()),Ne.ending||qe(this,Ne,de),this},Object.defineProperty(Ge.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function nt(Re){return Re.ending&&Re.length===0&&Re.bufferedRequest===null&&!Re.finished&&!Re.writing}function Qe(Re,te){Re._final(function(de){te.pendingcb--,de&&ke(Re,de),te.prefinished=!0,Re.emit("prefinish"),ot(Re,te)})}function ct(Re,te){!te.prefinished&&!te.finalCalled&&(typeof Re._final=="function"&&!te.destroyed?(te.pendingcb++,te.finalCalled=!0,z.nextTick(Qe,Re,te)):(te.prefinished=!0,Re.emit("prefinish")))}function ot(Re,te){var de=nt(te);if(de&&(ct(Re,te),te.pendingcb===0&&(te.finished=!0,Re.emit("finish"),te.autoDestroy))){var Ne=Re._readableState;(!Ne||Ne.autoDestroy&&Ne.endEmitted)&&Re.destroy()}return de}function qe(Re,te,de){te.ending=!0,ot(Re,te),de&&(te.finished?z.nextTick(de):Re.once("finish",de)),te.ended=!0,Re.writable=!1}function _e(Re,te,de){var Ne=Re.entry;for(Re.entry=null;Ne;){var ze=Ne.callback;te.pendingcb--,ze(de),Ne=Ne.next}te.corkedRequestsFree.next=Re}Object.defineProperty(Ge.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(te){this._writableState&&(this._writableState.destroyed=te)}}),Ge.prototype.destroy=ce.destroy,Ge.prototype._undestroy=ce.undestroy,Ge.prototype._destroy=function(Re,te){te(Re)}}).call(this)}).call(this,a("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(a,Te,be){(function(z){(function(){"use strict";var E;function ie(Ce,Ee,je){return Ee=oe(Ee),Ee in Ce?Object.defineProperty(Ce,Ee,{value:je,enumerable:!0,configurable:!0,writable:!0}):Ce[Ee]=je,Ce}function oe(Ce){var Ee=ee(Ce,"string");return typeof Ee=="symbol"?Ee:String(Ee)}function ee(Ce,Ee){if(typeof Ce!="object"||Ce===null)return Ce;var je=Ce[Symbol.toPrimitive];if(je!==void 0){var ke=je.call(Ce,Ee||"default");if(typeof ke!="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Ee==="string"?String:Number)(Ce)}var le=a("./end-of-stream"),x=Symbol("lastResolve"),ne=Symbol("lastReject"),re=Symbol("error"),ae=Symbol("ended"),se=Symbol("lastPromise"),ce=Symbol("handlePromise"),pe=Symbol("stream");function me(Ce,Ee){return{value:Ce,done:Ee}}function he(Ce){var Ee=Ce[x];if(Ee!==null){var je=Ce[pe].read();je!==null&&(Ce[se]=null,Ce[x]=null,Ce[ne]=null,Ee(me(je,!1)))}}function ye(Ce){z.nextTick(he,Ce)}function De(Ce,Ee){return function(je,ke){Ce.then(function(){if(Ee[ae]){je(me(void 0,!0));return}Ee[ce](je,ke)},ke)}}var Me=Object.getPrototypeOf(function(){}),Be=Object.setPrototypeOf((E={get stream(){return this[pe]},next:function(){var Ee=this,je=this[re];if(je!==null)return Promise.reject(je);if(this[ae])return Promise.resolve(me(void 0,!0));if(this[pe].destroyed)return new Promise(function(Se,Ge){z.nextTick(function(){Ee[re]?Ge(Ee[re]):Se(me(void 0,!0))})});var ke=this[se],Le;if(ke)Le=new Promise(De(ke,this));else{var Ae=this[pe].read();if(Ae!==null)return Promise.resolve(me(Ae,!1));Le=new Promise(this[ce])}return this[se]=Le,Le}},ie(E,Symbol.asyncIterator,function(){return this}),ie(E,"return",function(){var Ee=this;return new Promise(function(je,ke){Ee[pe].destroy(null,function(Le){if(Le){ke(Le);return}je(me(void 0,!0))})})}),E),Me),Pe=function(Ee){var je,ke=Object.create(Be,(je={},ie(je,pe,{value:Ee,writable:!0}),ie(je,x,{value:null,writable:!0}),ie(je,ne,{value:null,writable:!0}),ie(je,re,{value:null,writable:!0}),ie(je,ae,{value:Ee._readableState.endEmitted,writable:!0}),ie(je,ce,{value:function(Ae,Se){var Ge=ke[pe].read();Ge?(ke[se]=null,ke[x]=null,ke[ne]=null,Ae(me(Ge,!1))):(ke[x]=Ae,ke[ne]=Se)},writable:!0}),je));return ke[se]=null,le(Ee,function(Le){if(Le&&Le.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ae=ke[ne];Ae!==null&&(ke[se]=null,ke[x]=null,ke[ne]=null,Ae(Le)),ke[re]=Le;return}var Se=ke[x];Se!==null&&(ke[se]=null,ke[x]=null,ke[ne]=null,Se(me(void 0,!0))),ke[ae]=!0}),Ee.on("readable",ye.bind(null,ke)),ke};Te.exports=Pe}).call(this)}).call(this,a("_process"))},{"./end-of-stream":408,_process:467}],406:[function(a,Te,be){"use strict";function z(he,ye){var De=Object.keys(he);if(Object.getOwnPropertySymbols){var Me=Object.getOwnPropertySymbols(he);ye&&(Me=Me.filter(function(Be){return Object.getOwnPropertyDescriptor(he,Be).enumerable})),De.push.apply(De,Me)}return De}function E(he){for(var ye=1;ye<arguments.length;ye++){var De=arguments[ye]!=null?arguments[ye]:{};ye%2?z(Object(De),!0).forEach(function(Me){ie(he,Me,De[Me])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(De)):z(Object(De)).forEach(function(Me){Object.defineProperty(he,Me,Object.getOwnPropertyDescriptor(De,Me))})}return he}function ie(he,ye,De){return ye=x(ye),ye in he?Object.defineProperty(he,ye,{value:De,enumerable:!0,configurable:!0,writable:!0}):he[ye]=De,he}function oe(he,ye){if(!(he instanceof ye))throw new TypeError("Cannot call a class as a function")}function ee(he,ye){for(var De=0;De<ye.length;De++){var Me=ye[De];Me.enumerable=Me.enumerable||!1,Me.configurable=!0,"value"in Me&&(Me.writable=!0),Object.defineProperty(he,x(Me.key),Me)}}function le(he,ye,De){return ye&&ee(he.prototype,ye),De&&ee(he,De),Object.defineProperty(he,"prototype",{writable:!1}),he}function x(he){var ye=ne(he,"string");return typeof ye=="symbol"?ye:String(ye)}function ne(he,ye){if(typeof he!="object"||he===null)return he;var De=he[Symbol.toPrimitive];if(De!==void 0){var Me=De.call(he,ye||"default");if(typeof Me!="object")return Me;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ye==="string"?String:Number)(he)}var re=a("buffer"),ae=re.Buffer,se=a("util"),ce=se.inspect,pe=ce&&ce.custom||"inspect";function me(he,ye,De){ae.prototype.copy.call(he,ye,De)}Te.exports=function(){function he(){oe(this,he),this.head=null,this.tail=null,this.length=0}return le(he,[{key:"push",value:function(De){var Me={data:De,next:null};this.length>0?this.tail.next=Me:this.head=Me,this.tail=Me,++this.length}},{key:"unshift",value:function(De){var Me={data:De,next:this.head};this.length===0&&(this.tail=Me),this.head=Me,++this.length}},{key:"shift",value:function(){if(this.length!==0){var De=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,De}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(De){if(this.length===0)return"";for(var Me=this.head,Be=""+Me.data;Me=Me.next;)Be+=De+Me.data;return Be}},{key:"concat",value:function(De){if(this.length===0)return ae.alloc(0);for(var Me=ae.allocUnsafe(De>>>0),Be=this.head,Pe=0;Be;)me(Be.data,Me,Pe),Pe+=Be.data.length,Be=Be.next;return Me}},{key:"consume",value:function(De,Me){var Be;return De<this.head.data.length?(Be=this.head.data.slice(0,De),this.head.data=this.head.data.slice(De)):De===this.head.data.length?Be=this.shift():Be=Me?this._getString(De):this._getBuffer(De),Be}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(De){var Me=this.head,Be=1,Pe=Me.data;for(De-=Pe.length;Me=Me.next;){var Ce=Me.data,Ee=De>Ce.length?Ce.length:De;if(Ee===Ce.length?Pe+=Ce:Pe+=Ce.slice(0,De),De-=Ee,De===0){Ee===Ce.length?(++Be,Me.next?this.head=Me.next:this.head=this.tail=null):(this.head=Me,Me.data=Ce.slice(Ee));break}++Be}return this.length-=Be,Pe}},{key:"_getBuffer",value:function(De){var Me=ae.allocUnsafe(De),Be=this.head,Pe=1;for(Be.data.copy(Me),De-=Be.data.length;Be=Be.next;){var Ce=Be.data,Ee=De>Ce.length?Ce.length:De;if(Ce.copy(Me,Me.length-De,0,Ee),De-=Ee,De===0){Ee===Ce.length?(++Pe,Be.next?this.head=Be.next:this.head=this.tail=null):(this.head=Be,Be.data=Ce.slice(Ee));break}++Pe}return this.length-=Pe,Me}},{key:pe,value:function(De,Me){return ce(this,E(E({},Me),{},{depth:0,customInspect:!1}))}}]),he}()},{buffer:90,util:89}],407:[function(a,Te,be){(function(z){(function(){"use strict";function E(ne,re){var ae=this,se=this._readableState&&this._readableState.destroyed,ce=this._writableState&&this._writableState.destroyed;return se||ce?(re?re(ne):ne&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,z.nextTick(le,this,ne)):z.nextTick(le,this,ne)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ne||null,function(pe){!re&&pe?ae._writableState?ae._writableState.errorEmitted?z.nextTick(oe,ae):(ae._writableState.errorEmitted=!0,z.nextTick(ie,ae,pe)):z.nextTick(ie,ae,pe):re?(z.nextTick(oe,ae),re(pe)):z.nextTick(oe,ae)}),this)}function ie(ne,re){le(ne,re),oe(ne)}function oe(ne){ne._writableState&&!ne._writableState.emitClose||ne._readableState&&!ne._readableState.emitClose||ne.emit("close")}function ee(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function le(ne,re){ne.emit("error",re)}function x(ne,re){var ae=ne._readableState,se=ne._writableState;ae&&ae.autoDestroy||se&&se.autoDestroy?ne.destroy(re):ne.emit("error",re)}Te.exports={destroy:E,undestroy:ee,errorOrDestroy:x}}).call(this)}).call(this,a("_process"))},{_process:467}],408:[function(a,Te,be){"use strict";var z=a("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function E(le){var x=!1;return function(){if(!x){x=!0;for(var ne=arguments.length,re=new Array(ne),ae=0;ae<ne;ae++)re[ae]=arguments[ae];le.apply(this,re)}}}function ie(){}function oe(le){return le.setHeader&&typeof le.abort=="function"}function ee(le,x,ne){if(typeof x=="function")return ee(le,null,x);x||(x={}),ne=E(ne||ie);var re=x.readable||x.readable!==!1&&le.readable,ae=x.writable||x.writable!==!1&&le.writable,se=function(){le.writable||pe()},ce=le._writableState&&le._writableState.finished,pe=function(){ae=!1,ce=!0,re||ne.call(le)},me=le._readableState&&le._readableState.endEmitted,he=function(){re=!1,me=!0,ae||ne.call(le)},ye=function(Pe){ne.call(le,Pe)},De=function(){var Pe;if(re&&!me)return(!le._readableState||!le._readableState.ended)&&(Pe=new z),ne.call(le,Pe);if(ae&&!ce)return(!le._writableState||!le._writableState.ended)&&(Pe=new z),ne.call(le,Pe)},Me=function(){le.req.on("finish",pe)};return oe(le)?(le.on("complete",pe),le.on("abort",De),le.req?Me():le.on("request",Me)):ae&&!le._writableState&&(le.on("end",se),le.on("close",se)),le.on("end",he),le.on("finish",pe),x.error!==!1&&le.on("error",ye),le.on("close",De),function(){le.removeListener("complete",pe),le.removeListener("abort",De),le.removeListener("request",Me),le.req&&le.req.removeListener("finish",pe),le.removeListener("end",se),le.removeListener("close",se),le.removeListener("finish",pe),le.removeListener("end",he),le.removeListener("error",ye),le.removeListener("close",De)}}Te.exports=ee},{"../../../errors":399}],409:[function(a,Te,be){Te.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(a,Te,be){"use strict";var z;function E(pe){var me=!1;return function(){me||(me=!0,pe.apply(void 0,arguments))}}var ie=a("../../../errors").codes,oe=ie.ERR_MISSING_ARGS,ee=ie.ERR_STREAM_DESTROYED;function le(pe){if(pe)throw pe}function x(pe){return pe.setHeader&&typeof pe.abort=="function"}function ne(pe,me,he,ye){ye=E(ye);var De=!1;pe.on("close",function(){De=!0}),z===void 0&&(z=a("./end-of-stream")),z(pe,{readable:me,writable:he},function(Be){if(Be)return ye(Be);De=!0,ye()});var Me=!1;return function(Be){if(!De&&!Me){if(Me=!0,x(pe))return pe.abort();if(typeof pe.destroy=="function")return pe.destroy();ye(Be||new ee("pipe"))}}}function re(pe){pe()}function ae(pe,me){return pe.pipe(me)}function se(pe){return!pe.length||typeof pe[pe.length-1]!="function"?le:pe.pop()}function ce(){for(var pe=arguments.length,me=new Array(pe),he=0;he<pe;he++)me[he]=arguments[he];var ye=se(me);if(Array.isArray(me[0])&&(me=me[0]),me.length<2)throw new oe("streams");var De,Me=me.map(function(Be,Pe){var Ce=Pe<me.length-1,Ee=Pe>0;return ne(Be,Ce,Ee,function(je){De||(De=je),je&&Me.forEach(re),!Ce&&(Me.forEach(re),ye(De))})});return me.reduce(ae)}Te.exports=ce},{"../../../errors":399,"./end-of-stream":408}],411:[function(a,Te,be){"use strict";var z=a("../../../errors").codes.ERR_INVALID_OPT_VALUE;function E(oe,ee,le){return oe.highWaterMark!=null?oe.highWaterMark:ee?oe[le]:null}function ie(oe,ee,le,x){var ne=E(ee,x,le);if(ne!=null){if(!(isFinite(ne)&&Math.floor(ne)===ne)||ne<0){var re=x?le:"highWaterMark";throw new z(re,ne)}return Math.floor(ne)}return oe.objectMode?16:16*1024}Te.exports={getHighWaterMark:ie}},{"../../../errors":399}],412:[function(a,Te,be){arguments[4][393][0].apply(be,arguments)},{dup:393,events:344}],413:[function(a,Te,be){"use strict";var z=a("safe-buffer").Buffer,E=z.isEncoding||function(Me){switch(Me=""+Me,Me&&Me.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ie(Me){if(!Me)return"utf8";for(var Be;;)switch(Me){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Me;default:if(Be)return;Me=(""+Me).toLowerCase(),Be=!0}}function oe(Me){var Be=ie(Me);if(typeof Be!="string"&&(z.isEncoding===E||!E(Me)))throw new Error("Unknown encoding: "+Me);return Be||Me}be.StringDecoder=ee;function ee(Me){this.encoding=oe(Me);var Be;switch(this.encoding){case"utf16le":this.text=ce,this.end=pe,Be=4;break;case"utf8":this.fillLast=re,Be=4;break;case"base64":this.text=me,this.end=he,Be=3;break;default:this.write=ye,this.end=De;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=z.allocUnsafe(Be)}ee.prototype.write=function(Me){if(Me.length===0)return"";var Be,Pe;if(this.lastNeed){if(Be=this.fillLast(Me),Be===void 0)return"";Pe=this.lastNeed,this.lastNeed=0}else Pe=0;return Pe<Me.length?Be?Be+this.text(Me,Pe):this.text(Me,Pe):Be||""},ee.prototype.end=se,ee.prototype.text=ae,ee.prototype.fillLast=function(Me){if(this.lastNeed<=Me.length)return Me.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Me.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Me.length),this.lastNeed-=Me.length};function le(Me){return Me<=127?0:Me>>5===6?2:Me>>4===14?3:Me>>3===30?4:Me>>6===2?-1:-2}function x(Me,Be,Pe){var Ce=Be.length-1;if(Ce<Pe)return 0;var Ee=le(Be[Ce]);return Ee>=0?(Ee>0&&(Me.lastNeed=Ee-1),Ee):--Ce<Pe||Ee===-2?0:(Ee=le(Be[Ce]),Ee>=0?(Ee>0&&(Me.lastNeed=Ee-2),Ee):--Ce<Pe||Ee===-2?0:(Ee=le(Be[Ce]),Ee>=0?(Ee>0&&(Ee===2?Ee=0:Me.lastNeed=Ee-3),Ee):0))}function ne(Me,Be,Pe){if((Be[0]&192)!==128)return Me.lastNeed=0,"\uFFFD";if(Me.lastNeed>1&&Be.length>1){if((Be[1]&192)!==128)return Me.lastNeed=1,"\uFFFD";if(Me.lastNeed>2&&Be.length>2&&(Be[2]&192)!==128)return Me.lastNeed=2,"\uFFFD"}}function re(Me){var Be=this.lastTotal-this.lastNeed,Pe=ne(this,Me,Be);if(Pe!==void 0)return Pe;if(this.lastNeed<=Me.length)return Me.copy(this.lastChar,Be,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Me.copy(this.lastChar,Be,0,Me.length),this.lastNeed-=Me.length}function ae(Me,Be){var Pe=x(this,Me,Be);if(!this.lastNeed)return Me.toString("utf8",Be);this.lastTotal=Pe;var Ce=Me.length-(Pe-this.lastNeed);return Me.copy(this.lastChar,0,Ce),Me.toString("utf8",Be,Ce)}function se(Me){var Be=Me&&Me.length?this.write(Me):"";return this.lastNeed?Be+"\uFFFD":Be}function ce(Me,Be){if((Me.length-Be)%2===0){var Pe=Me.toString("utf16le",Be);if(Pe){var Ce=Pe.charCodeAt(Pe.length-1);if(Ce>=55296&&Ce<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Me[Me.length-2],this.lastChar[1]=Me[Me.length-1],Pe.slice(0,-1)}return Pe}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Me[Me.length-1],Me.toString("utf16le",Be,Me.length-1)}function pe(Me){var Be=Me&&Me.length?this.write(Me):"";if(this.lastNeed){var Pe=this.lastTotal-this.lastNeed;return Be+this.lastChar.toString("utf16le",0,Pe)}return Be}function me(Me,Be){var Pe=(Me.length-Be)%3;return Pe===0?Me.toString("base64",Be):(this.lastNeed=3-Pe,this.lastTotal=3,Pe===1?this.lastChar[0]=Me[Me.length-1]:(this.lastChar[0]=Me[Me.length-2],this.lastChar[1]=Me[Me.length-1]),Me.toString("base64",Be,Me.length-Pe))}function he(Me){var Be=Me&&Me.length?this.write(Me):"";return this.lastNeed?Be+this.lastChar.toString("base64",0,3-this.lastNeed):Be}function ye(Me){return Me.toString(this.encoding)}function De(Me){return Me&&Me.length?this.write(Me):""}},{"safe-buffer":396}],414:[function(a,Te,be){(function(z,E){(function(){var ie=a("process/browser.js").nextTick,oe=Function.prototype.apply,ee=Array.prototype.slice,le={},x=0;be.setTimeout=function(){return new ne(oe.call(setTimeout,window,arguments),clearTimeout)},be.setInterval=function(){return new ne(oe.call(setInterval,window,arguments),clearInterval)},be.clearTimeout=be.clearInterval=function(re){re.close()};function ne(re,ae){this._id=re,this._clearFn=ae}ne.prototype.unref=ne.prototype.ref=function(){},ne.prototype.close=function(){this._clearFn.call(window,this._id)},be.enroll=function(re,ae){clearTimeout(re._idleTimeoutId),re._idleTimeout=ae},be.unenroll=function(re){clearTimeout(re._idleTimeoutId),re._idleTimeout=-1},be._unrefActive=be.active=function(re){clearTimeout(re._idleTimeoutId);var ae=re._idleTimeout;ae>=0&&(re._idleTimeoutId=setTimeout(function(){re._onTimeout&&re._onTimeout()},ae))},be.setImmediate=typeof z=="function"?z:function(re){var ae=x++,se=arguments.length<2?!1:ee.call(arguments,1);return le[ae]=!0,ie(function(){le[ae]&&(se?re.apply(null,se):re.call(null),be.clearImmediate(ae))}),ae},be.clearImmediate=typeof E=="function"?E:function(re){delete le[re]}}).call(this)}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(a,Te,be){var z=a("buffer").Buffer;Te.exports=function(E){if(E instanceof Uint8Array){if(E.byteOffset===0&&E.byteLength===E.buffer.byteLength)return E.buffer;if(typeof E.buffer.slice=="function")return E.buffer.slice(E.byteOffset,E.byteOffset+E.byteLength)}if(z.isBuffer(E)){for(var ie=new Uint8Array(E.length),oe=E.length,ee=0;ee<oe;ee++)ie[ee]=E[ee];return ie.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(a,Te,be){(function(z){(function(){Te.exports=E;function E(oe,ee){if(ie("noDeprecation"))return oe;var le=!1;function x(){if(!le){if(ie("throwDeprecation"))throw new Error(ee);ie("traceDeprecation")?console.trace(ee):console.warn(ee),le=!0}return oe.apply(this,arguments)}return x}function ie(oe){try{if(!z.localStorage)return!1}catch(le){return!1}var ee=z.localStorage[oe];return ee==null?!1:String(ee).toLowerCase()==="true"}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(a,Te,be){arguments[4][84][0].apply(be,arguments)},{dup:84}],418:[function(a,Te,be){"use strict";var z=a("is-arguments"),E=a("is-generator-function"),ie=a("which-typed-array"),oe=a("is-typed-array");function ee(Ue){return Ue.call.bind(Ue)}var le=typeof BigInt!="undefined",x=typeof Symbol!="undefined",ne=ee(Object.prototype.toString),re=ee(Number.prototype.valueOf),ae=ee(String.prototype.valueOf),se=ee(Boolean.prototype.valueOf);if(le)var ce=ee(BigInt.prototype.valueOf);if(x)var pe=ee(Symbol.prototype.valueOf);function me(Ue,Ye){if(typeof Ue!="object")return!1;try{return Ye(Ue),!0}catch(st){return!1}}be.isArgumentsObject=z,be.isGeneratorFunction=E,be.isTypedArray=oe;function he(Ue){return typeof Promise!="undefined"&&Ue instanceof Promise||Ue!==null&&typeof Ue=="object"&&typeof Ue.then=="function"&&typeof Ue.catch=="function"}be.isPromise=he;function ye(Ue){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(Ue):oe(Ue)||Ve(Ue)}be.isArrayBufferView=ye;function De(Ue){return ie(Ue)==="Uint8Array"}be.isUint8Array=De;function Me(Ue){return ie(Ue)==="Uint8ClampedArray"}be.isUint8ClampedArray=Me;function Be(Ue){return ie(Ue)==="Uint16Array"}be.isUint16Array=Be;function Pe(Ue){return ie(Ue)==="Uint32Array"}be.isUint32Array=Pe;function Ce(Ue){return ie(Ue)==="Int8Array"}be.isInt8Array=Ce;function Ee(Ue){return ie(Ue)==="Int16Array"}be.isInt16Array=Ee;function je(Ue){return ie(Ue)==="Int32Array"}be.isInt32Array=je;function ke(Ue){return ie(Ue)==="Float32Array"}be.isFloat32Array=ke;function Le(Ue){return ie(Ue)==="Float64Array"}be.isFloat64Array=Le;function Ae(Ue){return ie(Ue)==="BigInt64Array"}be.isBigInt64Array=Ae;function Se(Ue){return ie(Ue)==="BigUint64Array"}be.isBigUint64Array=Se;function Ge(Ue){return ne(Ue)==="[object Map]"}Ge.working=typeof Map!="undefined"&&Ge(new Map);function Ze(Ue){return typeof Map=="undefined"?!1:Ge.working?Ge(Ue):Ue instanceof Map}be.isMap=Ze;function Je(Ue){return ne(Ue)==="[object Set]"}Je.working=typeof Set!="undefined"&&Je(new Set);function at(Ue){return typeof Set=="undefined"?!1:Je.working?Je(Ue):Ue instanceof Set}be.isSet=at;function Fe(Ue){return ne(Ue)==="[object WeakMap]"}Fe.working=typeof WeakMap!="undefined"&&Fe(new WeakMap);function Ke(Ue){return typeof WeakMap=="undefined"?!1:Fe.working?Fe(Ue):Ue instanceof WeakMap}be.isWeakMap=Ke;function it(Ue){return ne(Ue)==="[object WeakSet]"}it.working=typeof WeakSet!="undefined"&&it(new WeakSet);function rt(Ue){return it(Ue)}be.isWeakSet=rt;function et(Ue){return ne(Ue)==="[object ArrayBuffer]"}et.working=typeof ArrayBuffer!="undefined"&&et(new ArrayBuffer);function $e(Ue){return typeof ArrayBuffer=="undefined"?!1:et.working?et(Ue):Ue instanceof ArrayBuffer}be.isArrayBuffer=$e;function Xe(Ue){return ne(Ue)==="[object DataView]"}Xe.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Xe(new DataView(new ArrayBuffer(1),0,1));function Ve(Ue){return typeof DataView=="undefined"?!1:Xe.working?Xe(Ue):Ue instanceof DataView}be.isDataView=Ve;var nt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Qe(Ue){return ne(Ue)==="[object SharedArrayBuffer]"}function ct(Ue){return typeof nt=="undefined"?!1:(typeof Qe.working=="undefined"&&(Qe.working=Qe(new nt)),Qe.working?Qe(Ue):Ue instanceof nt)}be.isSharedArrayBuffer=ct;function ot(Ue){return ne(Ue)==="[object AsyncFunction]"}be.isAsyncFunction=ot;function qe(Ue){return ne(Ue)==="[object Map Iterator]"}be.isMapIterator=qe;function _e(Ue){return ne(Ue)==="[object Set Iterator]"}be.isSetIterator=_e;function Re(Ue){return ne(Ue)==="[object Generator]"}be.isGeneratorObject=Re;function te(Ue){return ne(Ue)==="[object WebAssembly.Module]"}be.isWebAssemblyCompiledModule=te;function de(Ue){return me(Ue,re)}be.isNumberObject=de;function Ne(Ue){return me(Ue,ae)}be.isStringObject=Ne;function ze(Ue){return me(Ue,se)}be.isBooleanObject=ze;function xe(Ue){return le&&me(Ue,ce)}be.isBigIntObject=xe;function ve(Ue){return x&&me(Ue,pe)}be.isSymbolObject=ve;function Oe(Ue){return de(Ue)||Ne(Ue)||ze(Ue)||xe(Ue)||ve(Ue)}be.isBoxedPrimitive=Oe;function We(Ue){return typeof Uint8Array!="undefined"&&($e(Ue)||ct(Ue))}be.isAnyArrayBuffer=We,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Ue){Object.defineProperty(be,Ue,{enumerable:!1,value:function(){throw new Error(Ue+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(a,Te,be){(function(z){(function(){var E=Object.getOwnPropertyDescriptors||function(nt){for(var Qe=Object.keys(nt),ct={},ot=0;ot<Qe.length;ot++)ct[Qe[ot]]=Object.getOwnPropertyDescriptor(nt,Qe[ot]);return ct},ie=/%[sdj%]/g;be.format=function(Ve){if(!Ee(Ve)){for(var nt=[],Qe=0;Qe<arguments.length;Qe++)nt.push(x(arguments[Qe]));return nt.join(" ")}for(var Qe=1,ct=arguments,ot=ct.length,qe=String(Ve).replace(ie,function(Re){if(Re==="%%")return"%";if(Qe>=ot)return Re;switch(Re){case"%s":return String(ct[Qe++]);case"%d":return Number(ct[Qe++]);case"%j":try{return JSON.stringify(ct[Qe++])}catch(te){return"[Circular]"}default:return Re}}),_e=ct[Qe];Qe<ot;_e=ct[++Qe])Be(_e)||!Ae(_e)?qe+=" "+_e:qe+=" "+x(_e);return qe},be.deprecate=function(Ve,nt){if(typeof z!="undefined"&&z.noDeprecation===!0)return Ve;if(typeof z=="undefined")return function(){return be.deprecate(Ve,nt).apply(this,arguments)};var Qe=!1;function ct(){if(!Qe){if(z.throwDeprecation)throw new Error(nt);z.traceDeprecation?console.trace(nt):console.error(nt),Qe=!0}return Ve.apply(this,arguments)}return ct};var oe={},ee=/^$/;if(z.env.NODE_DEBUG){var le=z.env.NODE_DEBUG;le=le.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+le+"$","i")}be.debuglog=function(Ve){if(Ve=Ve.toUpperCase(),!oe[Ve])if(ee.test(Ve)){var nt=z.pid;oe[Ve]=function(){var Qe=be.format.apply(be,arguments);console.error("%s %d: %s",Ve,nt,Qe)}}else oe[Ve]=function(){};return oe[Ve]};function x(Ve,nt){var Qe={seen:[],stylize:re};return arguments.length>=3&&(Qe.depth=arguments[2]),arguments.length>=4&&(Qe.colors=arguments[3]),Me(nt)?Qe.showHidden=nt:nt&&be._extend(Qe,nt),ke(Qe.showHidden)&&(Qe.showHidden=!1),ke(Qe.depth)&&(Qe.depth=2),ke(Qe.colors)&&(Qe.colors=!1),ke(Qe.customInspect)&&(Qe.customInspect=!0),Qe.colors&&(Qe.stylize=ne),se(Qe,Ve,Qe.depth)}be.inspect=x,x.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},x.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ne(Ve,nt){var Qe=x.styles[nt];return Qe?"\x1B["+x.colors[Qe][0]+"m"+Ve+"\x1B["+x.colors[Qe][1]+"m":Ve}function re(Ve,nt){return Ve}function ae(Ve){var nt={};return Ve.forEach(function(Qe,ct){nt[Qe]=!0}),nt}function se(Ve,nt,Qe){if(Ve.customInspect&&nt&&Ze(nt.inspect)&&nt.inspect!==be.inspect&&!(nt.constructor&&nt.constructor.prototype===nt)){var ct=nt.inspect(Qe,Ve);return Ee(ct)||(ct=se(Ve,ct,Qe)),ct}var ot=ce(Ve,nt);if(ot)return ot;var qe=Object.keys(nt),_e=ae(qe);if(Ve.showHidden&&(qe=Object.getOwnPropertyNames(nt)),Ge(nt)&&(qe.indexOf("message")>=0||qe.indexOf("description")>=0))return pe(nt);if(qe.length===0){if(Ze(nt)){var Re=nt.name?": "+nt.name:"";return Ve.stylize("[Function"+Re+"]","special")}if(Le(nt))return Ve.stylize(RegExp.prototype.toString.call(nt),"regexp");if(Se(nt))return Ve.stylize(Date.prototype.toString.call(nt),"date");if(Ge(nt))return pe(nt)}var te="",de=!1,Ne=["{","}"];if(De(nt)&&(de=!0,Ne=["[","]"]),Ze(nt)){var ze=nt.name?": "+nt.name:"";te=" [Function"+ze+"]"}if(Le(nt)&&(te=" "+RegExp.prototype.toString.call(nt)),Se(nt)&&(te=" "+Date.prototype.toUTCString.call(nt)),Ge(nt)&&(te=" "+pe(nt)),qe.length===0&&(!de||nt.length==0))return Ne[0]+te+Ne[1];if(Qe<0)return Le(nt)?Ve.stylize(RegExp.prototype.toString.call(nt),"regexp"):Ve.stylize("[Object]","special");Ve.seen.push(nt);var xe;return de?xe=me(Ve,nt,Qe,_e,qe):xe=qe.map(function(ve){return he(Ve,nt,Qe,_e,ve,de)}),Ve.seen.pop(),ye(xe,te,Ne)}function ce(Ve,nt){if(ke(nt))return Ve.stylize("undefined","undefined");if(Ee(nt)){var Qe="'"+JSON.stringify(nt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ve.stylize(Qe,"string")}if(Ce(nt))return Ve.stylize(""+nt,"number");if(Me(nt))return Ve.stylize(""+nt,"boolean");if(Be(nt))return Ve.stylize("null","null")}function pe(Ve){return"["+Error.prototype.toString.call(Ve)+"]"}function me(Ve,nt,Qe,ct,ot){for(var qe=[],_e=0,Re=nt.length;_e<Re;++_e)rt(nt,String(_e))?qe.push(he(Ve,nt,Qe,ct,String(_e),!0)):qe.push("");return ot.forEach(function(te){te.match(/^\d+$/)||qe.push(he(Ve,nt,Qe,ct,te,!0))}),qe}function he(Ve,nt,Qe,ct,ot,qe){var _e,Re,te;if(te=Object.getOwnPropertyDescriptor(nt,ot)||{value:nt[ot]},te.get?te.set?Re=Ve.stylize("[Getter/Setter]","special"):Re=Ve.stylize("[Getter]","special"):te.set&&(Re=Ve.stylize("[Setter]","special")),rt(ct,ot)||(_e="["+ot+"]"),Re||(Ve.seen.indexOf(te.value)<0?(Be(Qe)?Re=se(Ve,te.value,null):Re=se(Ve,te.value,Qe-1),Re.indexOf(`
|
|
|
`)>-1&&(qe?Re=Re.split(`
|
|
|
`).map(function(de){return" "+de}).join(`
|
|
|
`).slice(2):Re=`
|
|
|
`+Re.split(`
|
|
|
`).map(function(de){return" "+de}).join(`
|
|
|
`))):Re=Ve.stylize("[Circular]","special")),ke(_e)){if(qe&&ot.match(/^\d+$/))return Re;_e=JSON.stringify(""+ot),_e.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(_e=_e.slice(1,-1),_e=Ve.stylize(_e,"name")):(_e=_e.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),_e=Ve.stylize(_e,"string"))}return _e+": "+Re}function ye(Ve,nt,Qe){var ct=0,ot=Ve.reduce(function(qe,_e){return ct++,_e.indexOf(`
|
|
|
`)>=0&&ct++,qe+_e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ot>60?Qe[0]+(nt===""?"":nt+`
|
|
|
`)+" "+Ve.join(`,
|
|
|
`)+" "+Qe[1]:Qe[0]+nt+" "+Ve.join(", ")+" "+Qe[1]}be.types=a("./support/types");function De(Ve){return Array.isArray(Ve)}be.isArray=De;function Me(Ve){return typeof Ve=="boolean"}be.isBoolean=Me;function Be(Ve){return Ve===null}be.isNull=Be;function Pe(Ve){return Ve==null}be.isNullOrUndefined=Pe;function Ce(Ve){return typeof Ve=="number"}be.isNumber=Ce;function Ee(Ve){return typeof Ve=="string"}be.isString=Ee;function je(Ve){return typeof Ve=="symbol"}be.isSymbol=je;function ke(Ve){return Ve===void 0}be.isUndefined=ke;function Le(Ve){return Ae(Ve)&&at(Ve)==="[object RegExp]"}be.isRegExp=Le,be.types.isRegExp=Le;function Ae(Ve){return typeof Ve=="object"&&Ve!==null}be.isObject=Ae;function Se(Ve){return Ae(Ve)&&at(Ve)==="[object Date]"}be.isDate=Se,be.types.isDate=Se;function Ge(Ve){return Ae(Ve)&&(at(Ve)==="[object Error]"||Ve instanceof Error)}be.isError=Ge,be.types.isNativeError=Ge;function Ze(Ve){return typeof Ve=="function"}be.isFunction=Ze;function Je(Ve){return Ve===null||typeof Ve=="boolean"||typeof Ve=="number"||typeof Ve=="string"||typeof Ve=="symbol"||typeof Ve=="undefined"}be.isPrimitive=Je,be.isBuffer=a("./support/isBuffer");function at(Ve){return Object.prototype.toString.call(Ve)}function Fe(Ve){return Ve<10?"0"+Ve.toString(10):Ve.toString(10)}var Ke=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function it(){var Ve=new Date,nt=[Fe(Ve.getHours()),Fe(Ve.getMinutes()),Fe(Ve.getSeconds())].join(":");return[Ve.getDate(),Ke[Ve.getMonth()],nt].join(" ")}be.log=function(){console.log("%s - %s",it(),be.format.apply(be,arguments))},be.inherits=a("inherits"),be._extend=function(Ve,nt){if(!nt||!Ae(nt))return Ve;for(var Qe=Object.keys(nt),ct=Qe.length;ct--;)Ve[Qe[ct]]=nt[Qe[ct]];return Ve};function rt(Ve,nt){return Object.prototype.hasOwnProperty.call(Ve,nt)}var et=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;be.promisify=function(nt){if(typeof nt!="function")throw new TypeError('The "original" argument must be of type Function');if(et&&nt[et]){var Qe=nt[et];if(typeof Qe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Qe,et,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Qe}function Qe(){for(var ct,ot,qe=new Promise(function(te,de){ct=te,ot=de}),_e=[],Re=0;Re<arguments.length;Re++)_e.push(arguments[Re]);_e.push(function(te,de){te?ot(te):ct(de)});try{nt.apply(this,_e)}catch(te){ot(te)}return qe}return Object.setPrototypeOf(Qe,Object.getPrototypeOf(nt)),et&&Object.defineProperty(Qe,et,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Qe,E(nt))},be.promisify.custom=et;function $e(Ve,nt){if(!Ve){var Qe=new Error("Promise was rejected with a falsy value");Qe.reason=Ve,Ve=Qe}return nt(Ve)}function Xe(Ve){if(typeof Ve!="function")throw new TypeError('The "original" argument must be of type Function');function nt(){for(var Qe=[],ct=0;ct<arguments.length;ct++)Qe.push(arguments[ct]);var ot=Qe.pop();if(typeof ot!="function")throw new TypeError("The last argument must be of type Function");var qe=this,_e=function(){return ot.apply(qe,arguments)};Ve.apply(this,Qe).then(function(Re){z.nextTick(_e.bind(null,null,Re))},function(Re){z.nextTick($e.bind(null,Re,_e))})}return Object.setPrototypeOf(nt,Object.getPrototypeOf(Ve)),Object.defineProperties(nt,E(Ve)),nt}be.callbackify=Xe}).call(this)}).call(this,a("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(a,Te,be){(function(z){(function(){"use strict";var E=a("for-each"),ie=a("available-typed-arrays"),oe=a("call-bind"),ee=a("call-bind/callBound"),le=a("gopd"),x=ee("Object.prototype.toString"),ne=a("has-tostringtag/shams")(),re=typeof globalThis=="undefined"?z:globalThis,ae=ie(),se=ee("String.prototype.slice"),ce=Object.getPrototypeOf,pe=ee("Array.prototype.indexOf",!0)||function(Me,Be){for(var Pe=0;Pe<Me.length;Pe+=1)if(Me[Pe]===Be)return Pe;return-1},me={__proto__:null};ne&&le&&ce?E(ae,function(De){var Me=new re[De];if(Symbol.toStringTag in Me){var Be=ce(Me),Pe=le(Be,Symbol.toStringTag);if(!Pe){var Ce=ce(Be);Pe=le(Ce,Symbol.toStringTag)}me["$"+De]=oe(Pe.get)}}):E(ae,function(De){var Me=new re[De];me["$"+De]=oe(Me.slice)});var he=function(Me){var Be=!1;return E(me,function(Pe,Ce){if(!Be)try{"$"+Pe(Me)===Ce&&(Be=se(Ce,1))}catch(Ee){}}),Be},ye=function(Me){var Be=!1;return E(me,function(Pe,Ce){if(!Be)try{Pe(Me),Be=se(Ce,1)}catch(Ee){}}),Be};Te.exports=function(Me){if(!Me||typeof Me!="object")return!1;if(!ne){var Be=se(x(Me),8,-1);return pe(ae,Be)>-1?Be:Be!=="Object"?!1:ye(Me)}return le?he(Me):null}}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(a,Te,be){(function(){"use strict";be.stripBOM=function(z){return z[0]==="\uFEFF"?z.substring(1):z}}).call(this)},{}],422:[function(a,Te,be){(function(){"use strict";var z,E,ie,oe,ee,le={}.hasOwnProperty;z=a("xmlbuilder"),E=a("./defaults").defaults,oe=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},ee=function(x){return"<![CDATA["+ie(x)+"]]>"},ie=function(x){return x.replace("]]>","]]]]><![CDATA[>")},be.Builder=function(){function x(ne){var re,ae,se;this.options={},ae=E["0.2"];for(re in ae)le.call(ae,re)&&(se=ae[re],this.options[re]=se);for(re in ne)le.call(ne,re)&&(se=ne[re],this.options[re]=se)}return x.prototype.buildObject=function(ne){var re,ae,se,ce,pe;return re=this.options.attrkey,ae=this.options.charkey,Object.keys(ne).length===1&&this.options.rootName===E["0.2"].rootName?(pe=Object.keys(ne)[0],ne=ne[pe]):pe=this.options.rootName,se=function(me){return function(he,ye){var De,Me,Be,Pe,Ce,Ee;if(typeof ye!="object")me.options.cdata&&oe(ye)?he.raw(ee(ye)):he.txt(ye);else if(Array.isArray(ye)){for(Pe in ye)if(le.call(ye,Pe)){Me=ye[Pe];for(Ce in Me)Be=Me[Ce],he=se(he.ele(Ce),Be).up()}}else for(Ce in ye)if(le.call(ye,Ce))if(Me=ye[Ce],Ce===re){if(typeof Me=="object")for(De in Me)Ee=Me[De],he=he.att(De,Ee)}else if(Ce===ae)me.options.cdata&&oe(Me)?he=he.raw(ee(Me)):he=he.txt(Me);else if(Array.isArray(Me))for(Pe in Me)le.call(Me,Pe)&&(Be=Me[Pe],typeof Be=="string"?me.options.cdata&&oe(Be)?he=he.ele(Ce).raw(ee(Be)).up():he=he.ele(Ce,Be).up():he=se(he.ele(Ce),Be).up());else typeof Me=="object"?he=se(he.ele(Ce),Me).up():typeof Me=="string"&&me.options.cdata&&oe(Me)?he=he.ele(Ce).raw(ee(Me)).up():(Me==null&&(Me=""),he=he.ele(Ce,Me.toString()).up());return he}}(this),ce=z.create(pe,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),se(ce,ne).end(this.options.renderOpts)},x}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(a,Te,be){(function(){be.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(a,Te,be){(function(){"use strict";var z,E,ie,oe,ee,le,x,ne,re,ae=function(pe,me){return function(){return pe.apply(me,arguments)}},se=function(pe,me){for(var he in me)ce.call(me,he)&&(pe[he]=me[he]);function ye(){this.constructor=pe}return ye.prototype=me.prototype,pe.prototype=new ye,pe.__super__=me.prototype,pe},ce={}.hasOwnProperty;ne=a("sax"),oe=a("events"),z=a("./bom"),x=a("./processors"),re=a("timers").setImmediate,E=a("./defaults").defaults,ee=function(pe){return typeof pe=="object"&&pe!=null&&Object.keys(pe).length===0},le=function(pe,me,he){var ye,De,Me;for(ye=0,De=pe.length;ye<De;ye++)Me=pe[ye],me=Me(me,he);return me},ie=function(pe,me,he){var ye;return ye=Object.create(null),ye.value=he,ye.writable=!0,ye.enumerable=!0,ye.configurable=!0,Object.defineProperty(pe,me,ye)},be.Parser=function(pe){se(me,pe);function me(he){this.parseStringPromise=ae(this.parseStringPromise,this),this.parseString=ae(this.parseString,this),this.reset=ae(this.reset,this),this.assignOrPush=ae(this.assignOrPush,this),this.processAsync=ae(this.processAsync,this);var ye,De,Me;if(!(this instanceof be.Parser))return new be.Parser(he);this.options={},De=E["0.2"];for(ye in De)ce.call(De,ye)&&(Me=De[ye],this.options[ye]=Me);for(ye in he)ce.call(he,ye)&&(Me=he[ye],this.options[ye]=Me);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(x.normalize)),this.reset()}return me.prototype.processAsync=function(){var he,ye;try{return this.remaining.length<=this.options.chunkSize?(he=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(he),this.saxParser.close()):(he=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(he),re(this.processAsync))}catch(De){if(ye=De,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(ye)}},me.prototype.assignOrPush=function(he,ye,De){return ye in he?(he[ye]instanceof Array||ie(he,ye,[he[ye]]),he[ye].push(De)):this.options.explicitArray?ie(he,ye,[De]):ie(he,ye,De)},me.prototype.reset=function(){var he,ye,De,Me;return this.removeAllListeners(),this.saxParser=ne.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Be){return function(Pe){if(Be.saxParser.resume(),!Be.saxParser.errThrown)return Be.saxParser.errThrown=!0,Be.emit("error",Pe)}}(this),this.saxParser.onend=function(Be){return function(){if(!Be.saxParser.ended)return Be.saxParser.ended=!0,Be.emit("end",Be.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Me=[],he=this.options.attrkey,ye=this.options.charkey,this.saxParser.onopentag=function(Be){return function(Pe){var Ce,Ee,je,ke,Le;if(je={},je[ye]="",!Be.options.ignoreAttrs){Le=Pe.attributes;for(Ce in Le)ce.call(Le,Ce)&&(!(he in je)&&!Be.options.mergeAttrs&&(je[he]={}),Ee=Be.options.attrValueProcessors?le(Be.options.attrValueProcessors,Pe.attributes[Ce],Ce):Pe.attributes[Ce],ke=Be.options.attrNameProcessors?le(Be.options.attrNameProcessors,Ce):Ce,Be.options.mergeAttrs?Be.assignOrPush(je,ke,Ee):ie(je[he],ke,Ee))}return je["#name"]=Be.options.tagNameProcessors?le(Be.options.tagNameProcessors,Pe.name):Pe.name,Be.options.xmlns&&(je[Be.options.xmlnskey]={uri:Pe.uri,local:Pe.local}),Me.push(je)}}(this),this.saxParser.onclosetag=function(Be){return function(){var Pe,Ce,Ee,je,ke,Le,Ae,Se,Ge,Ze;if(Le=Me.pop(),ke=Le["#name"],(!Be.options.explicitChildren||!Be.options.preserveChildrenOrder)&&delete Le["#name"],Le.cdata===!0&&(Pe=Le.cdata,delete Le.cdata),Ge=Me[Me.length-1],Le[ye].match(/^\s*$/)&&!Pe?(Ce=Le[ye],delete Le[ye]):(Be.options.trim&&(Le[ye]=Le[ye].trim()),Be.options.normalize&&(Le[ye]=Le[ye].replace(/\s{2,}/g," ").trim()),Le[ye]=Be.options.valueProcessors?le(Be.options.valueProcessors,Le[ye],ke):Le[ye],Object.keys(Le).length===1&&ye in Le&&!Be.EXPLICIT_CHARKEY&&(Le=Le[ye])),ee(Le)&&(typeof Be.options.emptyTag=="function"?Le=Be.options.emptyTag():Le=Be.options.emptyTag!==""?Be.options.emptyTag:Ce),Be.options.validator!=null&&(Ze="/"+function(){var Je,at,Fe;for(Fe=[],Je=0,at=Me.length;Je<at;Je++)je=Me[Je],Fe.push(je["#name"]);return Fe}().concat(ke).join("/"),function(){var Je;try{return Le=Be.options.validator(Ze,Ge&&Ge[ke],Le)}catch(at){return Je=at,Be.emit("error",Je)}}()),Be.options.explicitChildren&&!Be.options.mergeAttrs&&typeof Le=="object"){if(!Be.options.preserveChildrenOrder)je={},Be.options.attrkey in Le&&(je[Be.options.attrkey]=Le[Be.options.attrkey],delete Le[Be.options.attrkey]),!Be.options.charsAsChildren&&Be.options.charkey in Le&&(je[Be.options.charkey]=Le[Be.options.charkey],delete Le[Be.options.charkey]),Object.getOwnPropertyNames(Le).length>0&&(je[Be.options.childkey]=Le),Le=je;else if(Ge){Ge[Be.options.childkey]=Ge[Be.options.childkey]||[],Ae={};for(Ee in Le)ce.call(Le,Ee)&&ie(Ae,Ee,Le[Ee]);Ge[Be.options.childkey].push(Ae),delete Le["#name"],Object.keys(Le).length===1&&ye in Le&&!Be.EXPLICIT_CHARKEY&&(Le=Le[ye])}}return Me.length>0?Be.assignOrPush(Ge,ke,Le):(Be.options.explicitRoot&&(Se=Le,Le={},ie(Le,ke,Se)),Be.resultObject=Le,Be.saxParser.ended=!0,Be.emit("end",Be.resultObject))}}(this),De=function(Be){return function(Pe){var Ce,Ee;if(Ee=Me[Me.length-1],Ee)return Ee[ye]+=Pe,Be.options.explicitChildren&&Be.options.preserveChildrenOrder&&Be.options.charsAsChildren&&(Be.options.includeWhiteChars||Pe.replace(/\\n/g,"").trim()!=="")&&(Ee[Be.options.childkey]=Ee[Be.options.childkey]||[],Ce={"#name":"__text__"},Ce[ye]=Pe,Be.options.normalize&&(Ce[ye]=Ce[ye].replace(/\s{2,}/g," ").trim()),Ee[Be.options.childkey].push(Ce)),Ee}}(this),this.saxParser.ontext=De,this.saxParser.oncdata=function(Be){return function(Pe){var Ce;if(Ce=De(Pe),Ce)return Ce.cdata=!0}}(this)},me.prototype.parseString=function(he,ye){var De;ye!=null&&typeof ye=="function"&&(this.on("end",function(Me){return this.reset(),ye(null,Me)}),this.on("error",function(Me){return this.reset(),ye(Me)}));try{return he=he.toString(),he.trim()===""?(this.emit("end",null),!0):(he=z.stripBOM(he),this.options.async?(this.remaining=he,re(this.processAsync),this.saxParser):this.saxParser.write(he).close())}catch(Me){if(De=Me,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw De}else return this.emit("error",De),this.saxParser.errThrown=!0}},me.prototype.parseStringPromise=function(he){return new Promise(function(ye){return function(De,Me){return ye.parseString(he,function(Be,Pe){return Be?Me(Be):De(Pe)})}}(this))},me}(oe),be.parseString=function(pe,me,he){var ye,De,Me;return he!=null?(typeof he=="function"&&(ye=he),typeof me=="object"&&(De=me)):(typeof me=="function"&&(ye=me),De={}),Me=new be.Parser(De),Me.parseString(pe,ye)},be.parseStringPromise=function(pe,me){var he,ye;return typeof me=="object"&&(he=me),ye=new be.Parser(he),ye.parseStringPromise(pe)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(a,Te,be){(function(){"use strict";var z;z=new RegExp(/(?!xmlns)^.*:/),be.normalize=function(E){return E.toLowerCase()},be.firstCharLowerCase=function(E){return E.charAt(0).toLowerCase()+E.slice(1)},be.stripPrefix=function(E){return E.replace(z,"")},be.parseNumbers=function(E){return isNaN(E)||(E=E%1===0?parseInt(E,10):parseFloat(E)),E},be.parseBooleans=function(E){return/^(?:true|false)$/i.test(E)&&(E=E.toLowerCase()==="true"),E}}).call(this)},{}],426:[function(a,Te,be){(function(){"use strict";var z,E,ie,oe,ee=function(x,ne){for(var re in ne)le.call(ne,re)&&(x[re]=ne[re]);function ae(){this.constructor=x}return ae.prototype=ne.prototype,x.prototype=new ae,x.__super__=ne.prototype,x},le={}.hasOwnProperty;E=a("./defaults"),z=a("./builder"),ie=a("./parser"),oe=a("./processors"),be.defaults=E.defaults,be.processors=oe,be.ValidationError=function(x){ee(ne,x);function ne(re){this.message=re}return ne}(Error),be.Builder=z.Builder,be.Parser=ie.Parser,be.parseString=ie.parseString,be.parseStringPromise=ie.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(a,Te,be){(function(){Te.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(a,Te,be){(function(){Te.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(a,Te,be){(function(){var z,E,ie,oe,ee,le,x,ne=[].slice,re={}.hasOwnProperty;z=function(){var ae,se,ce,pe,me,he;if(he=arguments[0],me=2<=arguments.length?ne.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(ae=0,ce=me.length;ae<ce;ae++)if(pe=me[ae],pe!=null)for(se in pe)re.call(pe,se)&&(he[se]=pe[se]);return he},ee=function(ae){return!!ae&&Object.prototype.toString.call(ae)==="[object Function]"},le=function(ae){var se;return!!ae&&((se=typeof ae)=="function"||se==="object")},ie=function(ae){return ee(Array.isArray)?Array.isArray(ae):Object.prototype.toString.call(ae)==="[object Array]"},oe=function(ae){var se;if(ie(ae))return!ae.length;for(se in ae)if(re.call(ae,se))return!1;return!0},x=function(ae){var se,ce;return le(ae)&&(ce=Object.getPrototypeOf(ae))&&(se=ce.constructor)&&typeof se=="function"&&se instanceof se&&Function.prototype.toString.call(se)===Function.prototype.toString.call(Object)},E=function(ae){return ee(ae.valueOf)?ae.valueOf():ae},Te.exports.assign=z,Te.exports.isFunction=ee,Te.exports.isObject=le,Te.exports.isArray=ie,Te.exports.isEmpty=oe,Te.exports.isPlainObject=x,Te.exports.getValue=E}).call(this)},{}],430:[function(a,Te,be){(function(){Te.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(a,Te,be){(function(){var z,E,ie;z=a("./NodeType"),ie=a("./XMLNode"),Te.exports=E=function(){function oe(ee,le,x){if(this.parent=ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),le==null)throw new Error("Missing attribute name. "+this.debugInfo(le));this.name=this.stringify.name(le),this.value=this.stringify.attValue(x),this.type=z.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(oe.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(oe.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(oe.prototype,"textContent",{get:function(){return this.value},set:function(ee){return this.value=ee||""}}),Object.defineProperty(oe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(oe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(oe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(oe.prototype,"specified",{get:function(){return!0}}),oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(ee){return this.options.writer.attribute(this,this.options.writer.filterOptions(ee))},oe.prototype.debugInfo=function(ee){return ee=ee||this.name,ee==null?"parent: <"+this.parent.name+">":"attribute: {"+ee+"}, parent: <"+this.parent.name+">"},oe.prototype.isEqualNode=function(ee){return!(ee.namespaceURI!==this.namespaceURI||ee.prefix!==this.prefix||ee.localName!==this.localName||ee.value!==this.value)},oe}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(a,Te,be){(function(){var z,E,ie,oe=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;z=a("./NodeType"),ie=a("./XMLCharacterData"),Te.exports=E=function(le){oe(x,le);function x(ne,re){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=z.CData,this.value=this.stringify.cdata(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return this.options.writer.cdata(this,this.options.writer.filterOptions(ne))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(a,Te,be){(function(){var z,E,ie=function(ee,le){for(var x in le)oe.call(le,x)&&(ee[x]=le[x]);function ne(){this.constructor=ee}return ne.prototype=le.prototype,ee.prototype=new ne,ee.__super__=le.prototype,ee},oe={}.hasOwnProperty;E=a("./XMLNode"),Te.exports=z=function(ee){ie(le,ee);function le(x){le.__super__.constructor.call(this,x),this.value=""}return Object.defineProperty(le.prototype,"data",{get:function(){return this.value},set:function(x){return this.value=x||""}}),Object.defineProperty(le.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(le.prototype,"textContent",{get:function(){return this.value},set:function(x){return this.value=x||""}}),le.prototype.clone=function(){return Object.create(this)},le.prototype.substringData=function(x,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.appendData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.insertData=function(x,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.deleteData=function(x,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.replaceData=function(x,ne,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.isEqualNode=function(x){return!(!le.__super__.isEqualNode.apply(this,arguments).isEqualNode(x)||x.data!==this.data)},le}(E)}).call(this)},{"./XMLNode":450}],434:[function(a,Te,be){(function(){var z,E,ie,oe=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;z=a("./NodeType"),E=a("./XMLCharacterData"),Te.exports=ie=function(le){oe(x,le);function x(ne,re){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=z.Comment,this.value=this.stringify.comment(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return this.options.writer.comment(this,this.options.writer.filterOptions(ne))},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(a,Te,be){(function(){var z,E,ie;E=a("./XMLDOMErrorHandler"),ie=a("./XMLDOMStringList"),Te.exports=z=function(){function oe(){var ee;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new E,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ee=Object.create(this.defaultParams)}return Object.defineProperty(oe.prototype,"parameterNames",{get:function(){return new ie(Object.keys(this.defaultParams))}}),oe.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},oe.prototype.canSetParameter=function(ee,le){return!0},oe.prototype.setParameter=function(ee,le){return le!=null?this.params[ee]=le:delete this.params[ee]},oe}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(a,Te,be){(function(){var z;Te.exports=z=function(){function E(){}return E.prototype.handleError=function(ie){throw new Error(ie)},E}()}).call(this)},{}],437:[function(a,Te,be){(function(){var z;Te.exports=z=function(){function E(){}return E.prototype.hasFeature=function(ie,oe){return!0},E.prototype.createDocumentType=function(ie,oe,ee){throw new Error("This DOM method is not implemented.")},E.prototype.createDocument=function(ie,oe,ee){throw new Error("This DOM method is not implemented.")},E.prototype.createHTMLDocument=function(ie){throw new Error("This DOM method is not implemented.")},E.prototype.getFeature=function(ie,oe){throw new Error("This DOM method is not implemented.")},E}()}).call(this)},{}],438:[function(a,Te,be){(function(){var z;Te.exports=z=function(){function E(ie){this.arr=ie||[]}return Object.defineProperty(E.prototype,"length",{get:function(){return this.arr.length}}),E.prototype.item=function(ie){return this.arr[ie]||null},E.prototype.contains=function(ie){return this.arr.indexOf(ie)!==-1},E}()}).call(this)},{}],439:[function(a,Te,be){(function(){var z,E,ie,oe=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;ie=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(le){oe(x,le);function x(ne,re,ae,se,ce,pe){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(ae==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(re));if(!se)throw new Error("Missing DTD attribute type. "+this.debugInfo(re));if(!ce)throw new Error("Missing DTD attribute default. "+this.debugInfo(re));if(ce.indexOf("#")!==0&&(ce="#"+ce),!ce.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(re));if(pe&&!ce.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(re));this.elementName=this.stringify.name(re),this.type=z.AttributeDeclaration,this.attributeName=this.stringify.name(ae),this.attributeType=this.stringify.dtdAttType(se),pe&&(this.defaultValue=this.stringify.dtdAttDefault(pe)),this.defaultValueType=ce}return x.prototype.toString=function(ne){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ne))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(a,Te,be){(function(){var z,E,ie,oe=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;ie=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(le){oe(x,le);function x(ne,re,ae){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());ae||(ae="(#PCDATA)"),Array.isArray(ae)&&(ae="("+ae.join(",")+")"),this.name=this.stringify.name(re),this.type=z.ElementDeclaration,this.value=this.stringify.dtdElementValue(ae)}return x.prototype.toString=function(ne){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ne))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(a,Te,be){(function(){var z,E,ie,oe,ee=function(x,ne){for(var re in ne)le.call(ne,re)&&(x[re]=ne[re]);function ae(){this.constructor=x}return ae.prototype=ne.prototype,x.prototype=new ae,x.__super__=ne.prototype,x},le={}.hasOwnProperty;oe=a("./Utility").isObject,ie=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(x){ee(ne,x);function ne(re,ae,se,ce){if(ne.__super__.constructor.call(this,re),se==null)throw new Error("Missing DTD entity name. "+this.debugInfo(se));if(ce==null)throw new Error("Missing DTD entity value. "+this.debugInfo(se));if(this.pe=!!ae,this.name=this.stringify.name(se),this.type=z.EntityDeclaration,!oe(ce))this.value=this.stringify.dtdEntityValue(ce),this.internal=!0;else{if(!ce.pubID&&!ce.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(se));if(ce.pubID&&!ce.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(se));if(this.internal=!1,ce.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ce.pubID)),ce.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ce.sysID)),ce.nData!=null&&(this.nData=this.stringify.dtdNData(ce.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(se))}}return Object.defineProperty(ne.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ne.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ne.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ne.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ne.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ne.prototype,"xmlVersion",{get:function(){return null}}),ne.prototype.toString=function(re){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(re))},ne}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(a,Te,be){(function(){var z,E,ie,oe=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;ie=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(le){oe(x,le);function x(ne,re,ae){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing DTD notation name. "+this.debugInfo(re));if(!ae.pubID&&!ae.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(re));this.name=this.stringify.name(re),this.type=z.NotationDeclaration,ae.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ae.pubID)),ae.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ae.sysID))}return Object.defineProperty(x.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(x.prototype,"systemId",{get:function(){return this.sysID}}),x.prototype.toString=function(ne){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ne))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(a,Te,be){(function(){var z,E,ie,oe,ee=function(x,ne){for(var re in ne)le.call(ne,re)&&(x[re]=ne[re]);function ae(){this.constructor=x}return ae.prototype=ne.prototype,x.prototype=new ae,x.__super__=ne.prototype,x},le={}.hasOwnProperty;oe=a("./Utility").isObject,ie=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(x){ee(ne,x);function ne(re,ae,se,ce){var pe;ne.__super__.constructor.call(this,re),oe(ae)&&(pe=ae,ae=pe.version,se=pe.encoding,ce=pe.standalone),ae||(ae="1.0"),this.type=z.Declaration,this.version=this.stringify.xmlVersion(ae),se!=null&&(this.encoding=this.stringify.xmlEncoding(se)),ce!=null&&(this.standalone=this.stringify.xmlStandalone(ce))}return ne.prototype.toString=function(re){return this.options.writer.declaration(this,this.options.writer.filterOptions(re))},ne}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(a,Te,be){(function(){var z,E,ie,oe,ee,le,x,ne,re,ae=function(ce,pe){for(var me in pe)se.call(pe,me)&&(ce[me]=pe[me]);function he(){this.constructor=ce}return he.prototype=pe.prototype,ce.prototype=new he,ce.__super__=pe.prototype,ce},se={}.hasOwnProperty;re=a("./Utility").isObject,ne=a("./XMLNode"),z=a("./NodeType"),E=a("./XMLDTDAttList"),oe=a("./XMLDTDEntity"),ie=a("./XMLDTDElement"),ee=a("./XMLDTDNotation"),x=a("./XMLNamedNodeMap"),Te.exports=le=function(ce){ae(pe,ce);function pe(me,he,ye){var De,Me,Be,Pe,Ce,Ee;if(pe.__super__.constructor.call(this,me),this.type=z.DocType,me.children){for(Pe=me.children,Me=0,Be=Pe.length;Me<Be;Me++)if(De=Pe[Me],De.type===z.Element){this.name=De.name;break}}this.documentObject=me,re(he)&&(Ce=he,he=Ce.pubID,ye=Ce.sysID),ye==null&&(Ee=[he,ye],ye=Ee[0],he=Ee[1]),he!=null&&(this.pubID=this.stringify.dtdPubID(he)),ye!=null&&(this.sysID=this.stringify.dtdSysID(ye))}return Object.defineProperty(pe.prototype,"entities",{get:function(){var me,he,ye,De,Me;for(De={},Me=this.children,he=0,ye=Me.length;he<ye;he++)me=Me[he],me.type===z.EntityDeclaration&&!me.pe&&(De[me.name]=me);return new x(De)}}),Object.defineProperty(pe.prototype,"notations",{get:function(){var me,he,ye,De,Me;for(De={},Me=this.children,he=0,ye=Me.length;he<ye;he++)me=Me[he],me.type===z.NotationDeclaration&&(De[me.name]=me);return new x(De)}}),Object.defineProperty(pe.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(pe.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(pe.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),pe.prototype.element=function(me,he){var ye;return ye=new ie(this,me,he),this.children.push(ye),this},pe.prototype.attList=function(me,he,ye,De,Me){var Be;return Be=new E(this,me,he,ye,De,Me),this.children.push(Be),this},pe.prototype.entity=function(me,he){var ye;return ye=new oe(this,!1,me,he),this.children.push(ye),this},pe.prototype.pEntity=function(me,he){var ye;return ye=new oe(this,!0,me,he),this.children.push(ye),this},pe.prototype.notation=function(me,he){var ye;return ye=new ee(this,me,he),this.children.push(ye),this},pe.prototype.toString=function(me){return this.options.writer.docType(this,this.options.writer.filterOptions(me))},pe.prototype.ele=function(me,he){return this.element(me,he)},pe.prototype.att=function(me,he,ye,De,Me){return this.attList(me,he,ye,De,Me)},pe.prototype.ent=function(me,he){return this.entity(me,he)},pe.prototype.pent=function(me,he){return this.pEntity(me,he)},pe.prototype.not=function(me,he){return this.notation(me,he)},pe.prototype.up=function(){return this.root()||this.documentObject},pe.prototype.isEqualNode=function(me){return!(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.name!==this.name||me.publicId!==this.publicId||me.systemId!==this.systemId)},pe}(ne)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(a,Te,be){(function(){var z,E,ie,oe,ee,le,x,ne,re=function(se,ce){for(var pe in ce)ae.call(ce,pe)&&(se[pe]=ce[pe]);function me(){this.constructor=se}return me.prototype=ce.prototype,se.prototype=new me,se.__super__=ce.prototype,se},ae={}.hasOwnProperty;ne=a("./Utility").isPlainObject,ie=a("./XMLDOMImplementation"),E=a("./XMLDOMConfiguration"),ee=a("./XMLNode"),z=a("./NodeType"),x=a("./XMLStringifier"),le=a("./XMLStringWriter"),Te.exports=oe=function(se){re(ce,se);function ce(pe){ce.__super__.constructor.call(this,null),this.name="#document",this.type=z.Document,this.documentURI=null,this.domConfig=new E,pe||(pe={}),pe.writer||(pe.writer=new le),this.options=pe,this.stringify=new x(pe)}return Object.defineProperty(ce.prototype,"implementation",{value:new ie}),Object.defineProperty(ce.prototype,"doctype",{get:function(){var pe,me,he,ye;for(ye=this.children,me=0,he=ye.length;me<he;me++)if(pe=ye[me],pe.type===z.DocType)return pe;return null}}),Object.defineProperty(ce.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ce.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ce.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ce.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===z.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ce.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===z.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ce.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===z.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ce.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ce.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ce.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ce.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ce.prototype,"contentType",{get:function(){return null}}),ce.prototype.end=function(pe){var me;return me={},pe?ne(pe)&&(me=pe,pe=this.options.writer):pe=this.options.writer,pe.document(this,pe.filterOptions(me))},ce.prototype.toString=function(pe){return this.options.writer.document(this,this.options.writer.filterOptions(pe))},ce.prototype.createElement=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createTextNode=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createComment=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createCDATASection=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createProcessingInstruction=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createAttribute=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createEntityReference=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementsByTagName=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.importNode=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createElementNS=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createAttributeNS=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementsByTagNameNS=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementById=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.adoptNode=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.renameNode=function(pe,me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementsByClassName=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createEvent=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createNodeIterator=function(pe,me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createTreeWalker=function(pe,me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(a,Te,be){(function(){var z,E,ie,oe,ee,le,x,ne,re,ae,se,ce,pe,me,he,ye,De,Me,Be,Pe,Ce,Ee,je,ke,Le={}.hasOwnProperty;ke=a("./Utility"),Ee=ke.isObject,Ce=ke.isFunction,je=ke.isPlainObject,Pe=ke.getValue,z=a("./NodeType"),ce=a("./XMLDocument"),me=a("./XMLElement"),oe=a("./XMLCData"),ee=a("./XMLComment"),ye=a("./XMLRaw"),Be=a("./XMLText"),he=a("./XMLProcessingInstruction"),ae=a("./XMLDeclaration"),se=a("./XMLDocType"),le=a("./XMLDTDAttList"),ne=a("./XMLDTDEntity"),x=a("./XMLDTDElement"),re=a("./XMLDTDNotation"),ie=a("./XMLAttribute"),Me=a("./XMLStringifier"),De=a("./XMLStringWriter"),E=a("./WriterState"),Te.exports=pe=function(){function Ae(Se,Ge,Ze){var Je;this.name="?xml",this.type=z.Document,Se||(Se={}),Je={},Se.writer?je(Se.writer)&&(Je=Se.writer,Se.writer=new De):Se.writer=new De,this.options=Se,this.writer=Se.writer,this.writerOptions=this.writer.filterOptions(Je),this.stringify=new Me(Se),this.onDataCallback=Ge||function(){},this.onEndCallback=Ze||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ae.prototype.createChildNode=function(Se){var Ge,Ze,Je,at,Fe,Ke,it,rt;switch(Se.type){case z.CData:this.cdata(Se.value);break;case z.Comment:this.comment(Se.value);break;case z.Element:Je={},it=Se.attribs;for(Ze in it)Le.call(it,Ze)&&(Ge=it[Ze],Je[Ze]=Ge.value);this.node(Se.name,Je);break;case z.Dummy:this.dummy();break;case z.Raw:this.raw(Se.value);break;case z.Text:this.text(Se.value);break;case z.ProcessingInstruction:this.instruction(Se.target,Se.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Se.constructor.name)}for(rt=Se.children,Fe=0,Ke=rt.length;Fe<Ke;Fe++)at=rt[Fe],this.createChildNode(at),at.type===z.Element&&this.up();return this},Ae.prototype.dummy=function(){return this},Ae.prototype.node=function(Se,Ge,Ze){var Je;if(Se==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(Se));return this.openCurrent(),Se=Pe(Se),Ge==null&&(Ge={}),Ge=Pe(Ge),Ee(Ge)||(Je=[Ge,Ze],Ze=Je[0],Ge=Je[1]),this.currentNode=new me(this,Se,Ge),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Ze!=null&&this.text(Ze),this},Ae.prototype.element=function(Se,Ge,Ze){var Je,at,Fe,Ke,it,rt;if(this.currentNode&&this.currentNode.type===z.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Se)||Ee(Se)||Ce(Se))for(Ke=this.options.noValidation,this.options.noValidation=!0,rt=new ce(this.options).element("TEMP_ROOT"),rt.element(Se),this.options.noValidation=Ke,it=rt.children,at=0,Fe=it.length;at<Fe;at++)Je=it[at],this.createChildNode(Je),Je.type===z.Element&&this.up();else this.node(Se,Ge,Ze);return this},Ae.prototype.attribute=function(Se,Ge){var Ze,Je;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Se));if(Se!=null&&(Se=Pe(Se)),Ee(Se))for(Ze in Se)Le.call(Se,Ze)&&(Je=Se[Ze],this.attribute(Ze,Je));else Ce(Ge)&&(Ge=Ge.apply()),this.options.keepNullAttributes&&Ge==null?this.currentNode.attribs[Se]=new ie(this,Se,""):Ge!=null&&(this.currentNode.attribs[Se]=new ie(this,Se,Ge));return this},Ae.prototype.text=function(Se){var Ge;return this.openCurrent(),Ge=new Be(this,Se),this.onData(this.writer.text(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.cdata=function(Se){var Ge;return this.openCurrent(),Ge=new oe(this,Se),this.onData(this.writer.cdata(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.comment=function(Se){var Ge;return this.openCurrent(),Ge=new ee(this,Se),this.onData(this.writer.comment(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.raw=function(Se){var Ge;return this.openCurrent(),Ge=new ye(this,Se),this.onData(this.writer.raw(Ge,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.instruction=function(Se,Ge){var Ze,Je,at,Fe,Ke;if(this.openCurrent(),Se!=null&&(Se=Pe(Se)),Ge!=null&&(Ge=Pe(Ge)),Array.isArray(Se))for(Ze=0,Fe=Se.length;Ze<Fe;Ze++)Je=Se[Ze],this.instruction(Je);else if(Ee(Se))for(Je in Se)Le.call(Se,Je)&&(at=Se[Je],this.instruction(Je,at));else Ce(Ge)&&(Ge=Ge.apply()),Ke=new he(this,Se,Ge),this.onData(this.writer.processingInstruction(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ae.prototype.declaration=function(Se,Ge,Ze){var Je;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return Je=new ae(this,Se,Ge,Ze),this.onData(this.writer.declaration(Je,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.doctype=function(Se,Ge,Ze){if(this.openCurrent(),Se==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new se(this,Ge,Ze),this.currentNode.rootNodeName=Se,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ae.prototype.dtdElement=function(Se,Ge){var Ze;return this.openCurrent(),Ze=new x(this,Se,Ge),this.onData(this.writer.dtdElement(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.attList=function(Se,Ge,Ze,Je,at){var Fe;return this.openCurrent(),Fe=new le(this,Se,Ge,Ze,Je,at),this.onData(this.writer.dtdAttList(Fe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.entity=function(Se,Ge){var Ze;return this.openCurrent(),Ze=new ne(this,!1,Se,Ge),this.onData(this.writer.dtdEntity(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.pEntity=function(Se,Ge){var Ze;return this.openCurrent(),Ze=new ne(this,!0,Se,Ge),this.onData(this.writer.dtdEntity(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.notation=function(Se,Ge){var Ze;return this.openCurrent(),Ze=new re(this,Se,Ge),this.onData(this.writer.dtdNotation(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ae.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Ae.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ae.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ae.prototype.openNode=function(Se){var Ge,Ze,Je,at;if(!Se.isOpen){if(!this.root&&this.currentLevel===0&&Se.type===z.Element&&(this.root=Se),Ze="",Se.type===z.Element){this.writerOptions.state=E.OpenTag,Ze=this.writer.indent(Se,this.writerOptions,this.currentLevel)+"<"+Se.name,at=Se.attribs;for(Je in at)Le.call(at,Je)&&(Ge=at[Je],Ze+=this.writer.attribute(Ge,this.writerOptions,this.currentLevel));Ze+=(Se.children?">":"/>")+this.writer.endline(Se,this.writerOptions,this.currentLevel),this.writerOptions.state=E.InsideTag}else this.writerOptions.state=E.OpenTag,Ze=this.writer.indent(Se,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Se.rootNodeName,Se.pubID&&Se.sysID?Ze+=' PUBLIC "'+Se.pubID+'" "'+Se.sysID+'"':Se.sysID&&(Ze+=' SYSTEM "'+Se.sysID+'"'),Se.children?(Ze+=" [",this.writerOptions.state=E.InsideTag):(this.writerOptions.state=E.CloseTag,Ze+=">"),Ze+=this.writer.endline(Se,this.writerOptions,this.currentLevel);return this.onData(Ze,this.currentLevel),Se.isOpen=!0}},Ae.prototype.closeNode=function(Se){var Ge;if(!Se.isClosed)return Ge="",this.writerOptions.state=E.CloseTag,Se.type===z.Element?Ge=this.writer.indent(Se,this.writerOptions,this.currentLevel)+"</"+Se.name+">"+this.writer.endline(Se,this.writerOptions,this.currentLevel):Ge=this.writer.indent(Se,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Se,this.writerOptions,this.currentLevel),this.writerOptions.state=E.None,this.onData(Ge,this.currentLevel),Se.isClosed=!0},Ae.prototype.onData=function(Se,Ge){return this.documentStarted=!0,this.onDataCallback(Se,Ge+1)},Ae.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ae.prototype.debugInfo=function(Se){return Se==null?"":"node: <"+Se+">"},Ae.prototype.ele=function(){return this.element.apply(this,arguments)},Ae.prototype.nod=function(Se,Ge,Ze){return this.node(Se,Ge,Ze)},Ae.prototype.txt=function(Se){return this.text(Se)},Ae.prototype.dat=function(Se){return this.cdata(Se)},Ae.prototype.com=function(Se){return this.comment(Se)},Ae.prototype.ins=function(Se,Ge){return this.instruction(Se,Ge)},Ae.prototype.dec=function(Se,Ge,Ze){return this.declaration(Se,Ge,Ze)},Ae.prototype.dtd=function(Se,Ge,Ze){return this.doctype(Se,Ge,Ze)},Ae.prototype.e=function(Se,Ge,Ze){return this.element(Se,Ge,Ze)},Ae.prototype.n=function(Se,Ge,Ze){return this.node(Se,Ge,Ze)},Ae.prototype.t=function(Se){return this.text(Se)},Ae.prototype.d=function(Se){return this.cdata(Se)},Ae.prototype.c=function(Se){return this.comment(Se)},Ae.prototype.r=function(Se){return this.raw(Se)},Ae.prototype.i=function(Se,Ge){return this.instruction(Se,Ge)},Ae.prototype.att=function(){return this.currentNode&&this.currentNode.type===z.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ae.prototype.a=function(){return this.currentNode&&this.currentNode.type===z.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ae.prototype.ent=function(Se,Ge){return this.entity(Se,Ge)},Ae.prototype.pent=function(Se,Ge){return this.pEntity(Se,Ge)},Ae.prototype.not=function(Se,Ge){return this.notation(Se,Ge)},Ae}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(a,Te,be){(function(){var z,E,ie,oe=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;ie=a("./XMLNode"),z=a("./NodeType"),Te.exports=E=function(le){oe(x,le);function x(ne){x.__super__.constructor.call(this,ne),this.type=z.Dummy}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return""},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(a,Te,be){(function(){var z,E,ie,oe,ee,le,x,ne,re,ae=function(ce,pe){for(var me in pe)se.call(pe,me)&&(ce[me]=pe[me]);function he(){this.constructor=ce}return he.prototype=pe.prototype,ce.prototype=new he,ce.__super__=pe.prototype,ce},se={}.hasOwnProperty;re=a("./Utility"),ne=re.isObject,x=re.isFunction,le=re.getValue,ee=a("./XMLNode"),z=a("./NodeType"),E=a("./XMLAttribute"),oe=a("./XMLNamedNodeMap"),Te.exports=ie=function(ce){ae(pe,ce);function pe(me,he,ye){var De,Me,Be,Pe;if(pe.__super__.constructor.call(this,me),he==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(he),this.type=z.Element,this.attribs={},this.schemaTypeInfo=null,ye!=null&&this.attribute(ye),me.type===z.Document&&(this.isRoot=!0,this.documentObject=me,me.rootObject=this,me.children)){for(Pe=me.children,Me=0,Be=Pe.length;Me<Be;Me++)if(De=Pe[Me],De.type===z.DocType){De.name=this.name;break}}}return Object.defineProperty(pe.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(pe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(pe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(pe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(pe.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new oe(this.attribs)),this.attributeMap}}),pe.prototype.clone=function(){var me,he,ye,De;ye=Object.create(this),ye.isRoot&&(ye.documentObject=null),ye.attribs={},De=this.attribs;for(he in De)se.call(De,he)&&(me=De[he],ye.attribs[he]=me.clone());return ye.children=[],this.children.forEach(function(Me){var Be;return Be=Me.clone(),Be.parent=ye,ye.children.push(Be)}),ye},pe.prototype.attribute=function(me,he){var ye,De;if(me!=null&&(me=le(me)),ne(me))for(ye in me)se.call(me,ye)&&(De=me[ye],this.attribute(ye,De));else x(he)&&(he=he.apply()),this.options.keepNullAttributes&&he==null?this.attribs[me]=new E(this,me,""):he!=null&&(this.attribs[me]=new E(this,me,he));return this},pe.prototype.removeAttribute=function(me){var he,ye,De;if(me==null)throw new Error("Missing attribute name. "+this.debugInfo());if(me=le(me),Array.isArray(me))for(ye=0,De=me.length;ye<De;ye++)he=me[ye],delete this.attribs[he];else delete this.attribs[me];return this},pe.prototype.toString=function(me){return this.options.writer.element(this,this.options.writer.filterOptions(me))},pe.prototype.att=function(me,he){return this.attribute(me,he)},pe.prototype.a=function(me,he){return this.attribute(me,he)},pe.prototype.getAttribute=function(me){return this.attribs.hasOwnProperty(me)?this.attribs[me].value:null},pe.prototype.setAttribute=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNode=function(me){return this.attribs.hasOwnProperty(me)?this.attribs[me]:null},pe.prototype.setAttributeNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.removeAttributeNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setAttributeNS=function(me,he,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.removeAttributeNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNodeNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setAttributeNodeNS=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.hasAttribute=function(me){return this.attribs.hasOwnProperty(me)},pe.prototype.hasAttributeNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setIdAttribute=function(me,he){return this.attribs.hasOwnProperty(me)?this.attribs[me].isId:he},pe.prototype.setIdAttributeNS=function(me,he,ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setIdAttributeNode=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(me,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByClassName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.isEqualNode=function(me){var he,ye,De;if(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.namespaceURI!==this.namespaceURI||me.prefix!==this.prefix||me.localName!==this.localName||me.attribs.length!==this.attribs.length)return!1;for(he=ye=0,De=this.attribs.length-1;0<=De?ye<=De:ye>=De;he=0<=De?++ye:--ye)if(!this.attribs[he].isEqualNode(me.attribs[he]))return!1;return!0},pe}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(a,Te,be){(function(){var z;Te.exports=z=function(){function E(ie){this.nodes=ie}return Object.defineProperty(E.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.getNamedItem=function(ie){return this.nodes[ie]},E.prototype.setNamedItem=function(ie){var oe;return oe=this.nodes[ie.nodeName],this.nodes[ie.nodeName]=ie,oe||null},E.prototype.removeNamedItem=function(ie){var oe;return oe=this.nodes[ie],delete this.nodes[ie],oe||null},E.prototype.item=function(ie){return this.nodes[Object.keys(this.nodes)[ie]]||null},E.prototype.getNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},E.prototype.setNamedItemNS=function(ie){throw new Error("This DOM method is not implemented.")},E.prototype.removeNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},E}()}).call(this)},{}],450:[function(a,Te,be){(function(){var z,E,ie,oe,ee,le,x,ne,re,ae,se,ce,pe,me,he,ye,De,Me,Be,Pe={}.hasOwnProperty;Be=a("./Utility"),Me=Be.isObject,De=Be.isFunction,ye=Be.isEmpty,he=Be.getValue,ne=null,ie=null,oe=null,ee=null,le=null,pe=null,me=null,ce=null,x=null,E=null,se=null,re=null,z=null,Te.exports=ae=function(){function Ce(Ee){this.parent=Ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ne||(ne=a("./XMLElement"),ie=a("./XMLCData"),oe=a("./XMLComment"),ee=a("./XMLDeclaration"),le=a("./XMLDocType"),pe=a("./XMLRaw"),me=a("./XMLText"),ce=a("./XMLProcessingInstruction"),x=a("./XMLDummy"),E=a("./NodeType"),se=a("./XMLNodeList"),re=a("./XMLNamedNodeMap"),z=a("./DocumentPosition"))}return Object.defineProperty(Ce.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(Ce.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(Ce.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(Ce.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(Ce.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new se(this.children)),this.childNodeList}}),Object.defineProperty(Ce.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(Ce.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(Ce.prototype,"previousSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee-1]||null}}),Object.defineProperty(Ce.prototype,"nextSibling",{get:function(){var Ee;return Ee=this.parent.children.indexOf(this),this.parent.children[Ee+1]||null}}),Object.defineProperty(Ce.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(Ce.prototype,"textContent",{get:function(){var Ee,je,ke,Le,Ae;if(this.nodeType===E.Element||this.nodeType===E.DocumentFragment){for(Ae="",Le=this.children,je=0,ke=Le.length;je<ke;je++)Ee=Le[je],Ee.textContent&&(Ae+=Ee.textContent);return Ae}else return null},set:function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Ce.prototype.setParent=function(Ee){var je,ke,Le,Ae,Se;for(this.parent=Ee,Ee&&(this.options=Ee.options,this.stringify=Ee.stringify),Ae=this.children,Se=[],ke=0,Le=Ae.length;ke<Le;ke++)je=Ae[ke],Se.push(je.setParent(this));return Se},Ce.prototype.element=function(Ee,je,ke){var Le,Ae,Se,Ge,Ze,Je,at,Fe,Ke,it,rt;if(Je=null,je===null&&ke==null&&(Ke=[{},null],je=Ke[0],ke=Ke[1]),je==null&&(je={}),je=he(je),Me(je)||(it=[je,ke],ke=it[0],je=it[1]),Ee!=null&&(Ee=he(Ee)),Array.isArray(Ee))for(Se=0,at=Ee.length;Se<at;Se++)Ae=Ee[Se],Je=this.element(Ae);else if(De(Ee))Je=this.element(Ee.apply());else if(Me(Ee)){for(Ze in Ee)if(Pe.call(Ee,Ze))if(rt=Ee[Ze],De(rt)&&(rt=rt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Ze.indexOf(this.stringify.convertAttKey)===0)Je=this.attribute(Ze.substr(this.stringify.convertAttKey.length),rt);else if(!this.options.separateArrayItems&&Array.isArray(rt)&&ye(rt))Je=this.dummy();else if(Me(rt)&&ye(rt))Je=this.element(Ze);else if(!this.options.keepNullNodes&&rt==null)Je=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(rt))for(Ge=0,Fe=rt.length;Ge<Fe;Ge++)Ae=rt[Ge],Le={},Le[Ze]=Ae,Je=this.element(Le);else Me(rt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ze.indexOf(this.stringify.convertTextKey)===0?Je=this.element(rt):(Je=this.element(Ze),Je.element(rt)):Je=this.element(Ze,rt)}else!this.options.keepNullNodes&&ke===null?Je=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ee.indexOf(this.stringify.convertTextKey)===0?Je=this.text(ke):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&Ee.indexOf(this.stringify.convertCDataKey)===0?Je=this.cdata(ke):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&Ee.indexOf(this.stringify.convertCommentKey)===0?Je=this.comment(ke):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&Ee.indexOf(this.stringify.convertRawKey)===0?Je=this.raw(ke):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&Ee.indexOf(this.stringify.convertPIKey)===0?Je=this.instruction(Ee.substr(this.stringify.convertPIKey.length),ke):Je=this.node(Ee,je,ke);if(Je==null)throw new Error("Could not create any elements with: "+Ee+". "+this.debugInfo());return Je},Ce.prototype.insertBefore=function(Ee,je,ke){var Le,Ae,Se,Ge,Ze;if(Ee!=null&&Ee.type)return Se=Ee,Ge=je,Se.setParent(this),Ge?(Ae=children.indexOf(Ge),Ze=children.splice(Ae),children.push(Se),Array.prototype.push.apply(children,Ze)):children.push(Se),Se;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Ae=this.parent.children.indexOf(this),Ze=this.parent.children.splice(Ae),Le=this.parent.element(Ee,je,ke),Array.prototype.push.apply(this.parent.children,Ze),Le},Ce.prototype.insertAfter=function(Ee,je,ke){var Le,Ae,Se;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(Ee));return Ae=this.parent.children.indexOf(this),Se=this.parent.children.splice(Ae+1),Le=this.parent.element(Ee,je,ke),Array.prototype.push.apply(this.parent.children,Se),Le},Ce.prototype.remove=function(){var Ee,je;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return Ee=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[Ee,Ee-Ee+1].concat(je=[])),this.parent},Ce.prototype.node=function(Ee,je,ke){var Le,Ae;return Ee!=null&&(Ee=he(Ee)),je||(je={}),je=he(je),Me(je)||(Ae=[je,ke],ke=Ae[0],je=Ae[1]),Le=new ne(this,Ee,je),ke!=null&&Le.text(ke),this.children.push(Le),Le},Ce.prototype.text=function(Ee){var je;return Me(Ee)&&this.element(Ee),je=new me(this,Ee),this.children.push(je),this},Ce.prototype.cdata=function(Ee){var je;return je=new ie(this,Ee),this.children.push(je),this},Ce.prototype.comment=function(Ee){var je;return je=new oe(this,Ee),this.children.push(je),this},Ce.prototype.commentBefore=function(Ee){var je,ke,Le;return ke=this.parent.children.indexOf(this),Le=this.parent.children.splice(ke),je=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Le),this},Ce.prototype.commentAfter=function(Ee){var je,ke,Le;return ke=this.parent.children.indexOf(this),Le=this.parent.children.splice(ke+1),je=this.parent.comment(Ee),Array.prototype.push.apply(this.parent.children,Le),this},Ce.prototype.raw=function(Ee){var je;return je=new pe(this,Ee),this.children.push(je),this},Ce.prototype.dummy=function(){var Ee;return Ee=new x(this),Ee},Ce.prototype.instruction=function(Ee,je){var ke,Le,Ae,Se,Ge;if(Ee!=null&&(Ee=he(Ee)),je!=null&&(je=he(je)),Array.isArray(Ee))for(Se=0,Ge=Ee.length;Se<Ge;Se++)ke=Ee[Se],this.instruction(ke);else if(Me(Ee))for(ke in Ee)Pe.call(Ee,ke)&&(Le=Ee[ke],this.instruction(ke,Le));else De(je)&&(je=je.apply()),Ae=new ce(this,Ee,je),this.children.push(Ae);return this},Ce.prototype.instructionBefore=function(Ee,je){var ke,Le,Ae;return Le=this.parent.children.indexOf(this),Ae=this.parent.children.splice(Le),ke=this.parent.instruction(Ee,je),Array.prototype.push.apply(this.parent.children,Ae),this},Ce.prototype.instructionAfter=function(Ee,je){var ke,Le,Ae;return Le=this.parent.children.indexOf(this),Ae=this.parent.children.splice(Le+1),ke=this.parent.instruction(Ee,je),Array.prototype.push.apply(this.parent.children,Ae),this},Ce.prototype.declaration=function(Ee,je,ke){var Le,Ae;return Le=this.document(),Ae=new ee(Le,Ee,je,ke),Le.children.length===0?Le.children.unshift(Ae):Le.children[0].type===E.Declaration?Le.children[0]=Ae:Le.children.unshift(Ae),Le.root()||Le},Ce.prototype.dtd=function(Ee,je){var ke,Le,Ae,Se,Ge,Ze,Je,at,Fe,Ke;for(Le=this.document(),Ae=new le(Le,Ee,je),Fe=Le.children,Se=Ge=0,Je=Fe.length;Ge<Je;Se=++Ge)if(ke=Fe[Se],ke.type===E.DocType)return Le.children[Se]=Ae,Ae;for(Ke=Le.children,Se=Ze=0,at=Ke.length;Ze<at;Se=++Ze)if(ke=Ke[Se],ke.isRoot)return Le.children.splice(Se,0,Ae),Ae;return Le.children.push(Ae),Ae},Ce.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},Ce.prototype.root=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===E.Document)return Ee.rootObject;if(Ee.isRoot)return Ee;Ee=Ee.parent}},Ce.prototype.document=function(){var Ee;for(Ee=this;Ee;){if(Ee.type===E.Document)return Ee;Ee=Ee.parent}},Ce.prototype.end=function(Ee){return this.document().end(Ee)},Ce.prototype.prev=function(){var Ee;if(Ee=this.parent.children.indexOf(this),Ee<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[Ee-1]},Ce.prototype.next=function(){var Ee;if(Ee=this.parent.children.indexOf(this),Ee===-1||Ee===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[Ee+1]},Ce.prototype.importDocument=function(Ee){var je;return je=Ee.root().clone(),je.parent=this,je.isRoot=!1,this.children.push(je),this},Ce.prototype.debugInfo=function(Ee){var je,ke;return Ee=Ee||this.name,Ee==null&&!((je=this.parent)!=null&&je.name)?"":Ee==null?"parent: <"+this.parent.name+">":(ke=this.parent)!=null&&ke.name?"node: <"+Ee+">, parent: <"+this.parent.name+">":"node: <"+Ee+">"},Ce.prototype.ele=function(Ee,je,ke){return this.element(Ee,je,ke)},Ce.prototype.nod=function(Ee,je,ke){return this.node(Ee,je,ke)},Ce.prototype.txt=function(Ee){return this.text(Ee)},Ce.prototype.dat=function(Ee){return this.cdata(Ee)},Ce.prototype.com=function(Ee){return this.comment(Ee)},Ce.prototype.ins=function(Ee,je){return this.instruction(Ee,je)},Ce.prototype.doc=function(){return this.document()},Ce.prototype.dec=function(Ee,je,ke){return this.declaration(Ee,je,ke)},Ce.prototype.e=function(Ee,je,ke){return this.element(Ee,je,ke)},Ce.prototype.n=function(Ee,je,ke){return this.node(Ee,je,ke)},Ce.prototype.t=function(Ee){return this.text(Ee)},Ce.prototype.d=function(Ee){return this.cdata(Ee)},Ce.prototype.c=function(Ee){return this.comment(Ee)},Ce.prototype.r=function(Ee){return this.raw(Ee)},Ce.prototype.i=function(Ee,je){return this.instruction(Ee,je)},Ce.prototype.u=function(){return this.up()},Ce.prototype.importXMLBuilder=function(Ee){return this.importDocument(Ee)},Ce.prototype.replaceChild=function(Ee,je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.removeChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.appendChild=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.hasChildNodes=function(){return this.children.length!==0},Ce.prototype.cloneNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.isSupported=function(Ee,je){return!0},Ce.prototype.hasAttributes=function(){return this.attribs.length!==0},Ce.prototype.compareDocumentPosition=function(Ee){var je,ke;return je=this,je===Ee?0:this.document()!==Ee.document()?(ke=z.Disconnected|z.ImplementationSpecific,Math.random()<.5?ke|=z.Preceding:ke|=z.Following,ke):je.isAncestor(Ee)?z.Contains|z.Preceding:je.isDescendant(Ee)?z.Contains|z.Following:je.isPreceding(Ee)?z.Preceding:z.Following},Ce.prototype.isSameNode=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.lookupPrefix=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.isDefaultNamespace=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.lookupNamespaceURI=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.isEqualNode=function(Ee){var je,ke,Le;if(Ee.nodeType!==this.nodeType||Ee.children.length!==this.children.length)return!1;for(je=ke=0,Le=this.children.length-1;0<=Le?ke<=Le:ke>=Le;je=0<=Le?++ke:--ke)if(!this.children[je].isEqualNode(Ee.children[je]))return!1;return!0},Ce.prototype.getFeature=function(Ee,je){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.setUserData=function(Ee,je,ke){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.getUserData=function(Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},Ce.prototype.contains=function(Ee){return Ee?Ee===this||this.isDescendant(Ee):!1},Ce.prototype.isDescendant=function(Ee){var je,ke,Le,Ae,Se;for(Se=this.children,Le=0,Ae=Se.length;Le<Ae;Le++)if(je=Se[Le],Ee===je||(ke=je.isDescendant(Ee),ke))return!0;return!1},Ce.prototype.isAncestor=function(Ee){return Ee.isDescendant(this)},Ce.prototype.isPreceding=function(Ee){var je,ke;return je=this.treePosition(Ee),ke=this.treePosition(this),je===-1||ke===-1?!1:je<ke},Ce.prototype.isFollowing=function(Ee){var je,ke;return je=this.treePosition(Ee),ke=this.treePosition(this),je===-1||ke===-1?!1:je>ke},Ce.prototype.treePosition=function(Ee){var je,ke;return ke=0,je=!1,this.foreachTreeNode(this.document(),function(Le){if(ke++,!je&&Le===Ee)return je=!0}),je?ke:-1},Ce.prototype.foreachTreeNode=function(Ee,je){var ke,Le,Ae,Se,Ge;for(Ee||(Ee=this.document()),Se=Ee.children,Le=0,Ae=Se.length;Le<Ae;Le++){if(ke=Se[Le],Ge=je(ke))return Ge;if(Ge=this.foreachTreeNode(ke,je),Ge)return Ge}},Ce}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(a,Te,be){(function(){var z;Te.exports=z=function(){function E(ie){this.nodes=ie}return Object.defineProperty(E.prototype,"length",{get:function(){return this.nodes.length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.item=function(ie){return this.nodes[ie]||null},E}()}).call(this)},{}],452:[function(a,Te,be){(function(){var z,E,ie,oe=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;z=a("./NodeType"),E=a("./XMLCharacterData"),Te.exports=ie=function(le){oe(x,le);function x(ne,re,ae){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=z.ProcessingInstruction,this.target=this.stringify.insTarget(re),this.name=this.target,ae&&(this.value=this.stringify.insValue(ae))}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(ne))},x.prototype.isEqualNode=function(ne){return!(!x.__super__.isEqualNode.apply(this,arguments).isEqualNode(ne)||ne.target!==this.target)},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(a,Te,be){(function(){var z,E,ie,oe=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;z=a("./NodeType"),E=a("./XMLNode"),Te.exports=ie=function(le){oe(x,le);function x(ne,re){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=z.Raw,this.value=this.stringify.raw(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return this.options.writer.raw(this,this.options.writer.filterOptions(ne))},x}(E)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(a,Te,be){(function(){var z,E,ie,oe,ee=function(x,ne){for(var re in ne)le.call(ne,re)&&(x[re]=ne[re]);function ae(){this.constructor=x}return ae.prototype=ne.prototype,x.prototype=new ae,x.__super__=ne.prototype,x},le={}.hasOwnProperty;z=a("./NodeType"),oe=a("./XMLWriterBase"),E=a("./WriterState"),Te.exports=ie=function(x){ee(ne,x);function ne(re,ae){this.stream=re,ne.__super__.constructor.call(this,ae)}return ne.prototype.endline=function(re,ae,se){return re.isLastRootNode&&ae.state===E.CloseTag?"":ne.__super__.endline.call(this,re,ae,se)},ne.prototype.document=function(re,ae){var se,ce,pe,me,he,ye,De,Me,Be;for(De=re.children,ce=pe=0,he=De.length;pe<he;ce=++pe)se=De[ce],se.isLastRootNode=ce===re.children.length-1;for(ae=this.filterOptions(ae),Me=re.children,Be=[],me=0,ye=Me.length;me<ye;me++)se=Me[me],Be.push(this.writeChildNode(se,ae,0));return Be},ne.prototype.attribute=function(re,ae,se){return this.stream.write(ne.__super__.attribute.call(this,re,ae,se))},ne.prototype.cdata=function(re,ae,se){return this.stream.write(ne.__super__.cdata.call(this,re,ae,se))},ne.prototype.comment=function(re,ae,se){return this.stream.write(ne.__super__.comment.call(this,re,ae,se))},ne.prototype.declaration=function(re,ae,se){return this.stream.write(ne.__super__.declaration.call(this,re,ae,se))},ne.prototype.docType=function(re,ae,se){var ce,pe,me,he;if(se||(se=0),this.openNode(re,ae,se),ae.state=E.OpenTag,this.stream.write(this.indent(re,ae,se)),this.stream.write("<!DOCTYPE "+re.root().name),re.pubID&&re.sysID?this.stream.write(' PUBLIC "'+re.pubID+'" "'+re.sysID+'"'):re.sysID&&this.stream.write(' SYSTEM "'+re.sysID+'"'),re.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(re,ae,se)),ae.state=E.InsideTag,he=re.children,pe=0,me=he.length;pe<me;pe++)ce=he[pe],this.writeChildNode(ce,ae,se+1);ae.state=E.CloseTag,this.stream.write("]")}return ae.state=E.CloseTag,this.stream.write(ae.spaceBeforeSlash+">"),this.stream.write(this.endline(re,ae,se)),ae.state=E.None,this.closeNode(re,ae,se)},ne.prototype.element=function(re,ae,se){var ce,pe,me,he,ye,De,Me,Be,Pe,Ce;se||(se=0),this.openNode(re,ae,se),ae.state=E.OpenTag,this.stream.write(this.indent(re,ae,se)+"<"+re.name),Pe=re.attribs;for(Me in Pe)le.call(Pe,Me)&&(ce=Pe[Me],this.attribute(ce,ae,se));if(me=re.children.length,he=me===0?null:re.children[0],me===0||re.children.every(function(Ee){return(Ee.type===z.Text||Ee.type===z.Raw)&&Ee.value===""}))ae.allowEmpty?(this.stream.write(">"),ae.state=E.CloseTag,this.stream.write("</"+re.name+">")):(ae.state=E.CloseTag,this.stream.write(ae.spaceBeforeSlash+"/>"));else if(ae.pretty&&me===1&&(he.type===z.Text||he.type===z.Raw)&&he.value!=null)this.stream.write(">"),ae.state=E.InsideTag,ae.suppressPrettyCount++,Be=!0,this.writeChildNode(he,ae,se+1),ae.suppressPrettyCount--,Be=!1,ae.state=E.CloseTag,this.stream.write("</"+re.name+">");else{for(this.stream.write(">"+this.endline(re,ae,se)),ae.state=E.InsideTag,Ce=re.children,ye=0,De=Ce.length;ye<De;ye++)pe=Ce[ye],this.writeChildNode(pe,ae,se+1);ae.state=E.CloseTag,this.stream.write(this.indent(re,ae,se)+"</"+re.name+">")}return this.stream.write(this.endline(re,ae,se)),ae.state=E.None,this.closeNode(re,ae,se)},ne.prototype.processingInstruction=function(re,ae,se){return this.stream.write(ne.__super__.processingInstruction.call(this,re,ae,se))},ne.prototype.raw=function(re,ae,se){return this.stream.write(ne.__super__.raw.call(this,re,ae,se))},ne.prototype.text=function(re,ae,se){return this.stream.write(ne.__super__.text.call(this,re,ae,se))},ne.prototype.dtdAttList=function(re,ae,se){return this.stream.write(ne.__super__.dtdAttList.call(this,re,ae,se))},ne.prototype.dtdElement=function(re,ae,se){return this.stream.write(ne.__super__.dtdElement.call(this,re,ae,se))},ne.prototype.dtdEntity=function(re,ae,se){return this.stream.write(ne.__super__.dtdEntity.call(this,re,ae,se))},ne.prototype.dtdNotation=function(re,ae,se){return this.stream.write(ne.__super__.dtdNotation.call(this,re,ae,se))},ne}(oe)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(a,Te,be){(function(){var z,E,ie=function(ee,le){for(var x in le)oe.call(le,x)&&(ee[x]=le[x]);function ne(){this.constructor=ee}return ne.prototype=le.prototype,ee.prototype=new ne,ee.__super__=le.prototype,ee},oe={}.hasOwnProperty;E=a("./XMLWriterBase"),Te.exports=z=function(ee){ie(le,ee);function le(x){le.__super__.constructor.call(this,x)}return le.prototype.document=function(x,ne){var re,ae,se,ce,pe;for(ne=this.filterOptions(ne),ce="",pe=x.children,ae=0,se=pe.length;ae<se;ae++)re=pe[ae],ce+=this.writeChildNode(re,ne,0);return ne.pretty&&ce.slice(-ne.newline.length)===ne.newline&&(ce=ce.slice(0,-ne.newline.length)),ce},le}(E)}).call(this)},{"./XMLWriterBase":458}],456:[function(a,Te,be){(function(){var z,E=function(oe,ee){return function(){return oe.apply(ee,arguments)}},ie={}.hasOwnProperty;Te.exports=z=function(){function oe(ee){this.assertLegalName=E(this.assertLegalName,this),this.assertLegalChar=E(this.assertLegalChar,this);var le,x,ne;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),x=ee.stringify||{};for(le in x)ie.call(x,le)&&(ne=x[le],this[le]=ne)}return oe.prototype.name=function(ee){return this.options.noValidation?ee:this.assertLegalName(""+ee||"")},oe.prototype.text=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.textEscape(""+ee||""))},oe.prototype.cdata=function(ee){return this.options.noValidation?ee:(ee=""+ee||"",ee=ee.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ee))},oe.prototype.comment=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+ee);return this.assertLegalChar(ee)},oe.prototype.raw=function(ee){return this.options.noValidation?ee:""+ee||""},oe.prototype.attValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.attEscape(ee=""+ee||""))},oe.prototype.insTarget=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.insValue=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/\?>/))throw new Error("Invalid processing instruction value: "+ee);return this.assertLegalChar(ee)},oe.prototype.xmlVersion=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+ee);return ee},oe.prototype.xmlEncoding=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+ee);return this.assertLegalChar(ee)},oe.prototype.xmlStandalone=function(ee){return this.options.noValidation?ee:ee?"yes":"no"},oe.prototype.dtdPubID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdSysID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdElementValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdAttType=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdAttDefault=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdEntityValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdNData=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.convertAttKey="@",oe.prototype.convertPIKey="?",oe.prototype.convertTextKey="#text",oe.prototype.convertCDataKey="#cdata",oe.prototype.convertCommentKey="#comment",oe.prototype.convertRawKey="#raw",oe.prototype.assertLegalChar=function(ee){var le,x;if(this.options.noValidation)return ee;if(le="",this.options.version==="1.0"){if(le=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=ee.match(le))throw new Error("Invalid character in string: "+ee+" at index "+x.index)}else if(this.options.version==="1.1"&&(le=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=ee.match(le)))throw new Error("Invalid character in string: "+ee+" at index "+x.index);return ee},oe.prototype.assertLegalName=function(ee){var le;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),le=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!ee.match(le))throw new Error("Invalid character in name");return ee},oe.prototype.textEscape=function(ee){var le;return this.options.noValidation?ee:(le=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(le,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},oe.prototype.attEscape=function(ee){var le;return this.options.noValidation?ee:(le=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(le,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},oe}()}).call(this)},{}],457:[function(a,Te,be){(function(){var z,E,ie,oe=function(le,x){for(var ne in x)ee.call(x,ne)&&(le[ne]=x[ne]);function re(){this.constructor=le}return re.prototype=x.prototype,le.prototype=new re,le.__super__=x.prototype,le},ee={}.hasOwnProperty;z=a("./NodeType"),E=a("./XMLCharacterData"),Te.exports=ie=function(le){oe(x,le);function x(ne,re){if(x.__super__.constructor.call(this,ne),re==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=z.Text,this.value=this.stringify.text(re)}return Object.defineProperty(x.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(x.prototype,"wholeText",{get:function(){var ne,re,ae;for(ae="",re=this.previousSibling;re;)ae=re.data+ae,re=re.previousSibling;for(ae+=this.data,ne=this.nextSibling;ne;)ae=ae+ne.data,ne=ne.nextSibling;return ae}}),x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(ne){return this.options.writer.text(this,this.options.writer.filterOptions(ne))},x.prototype.splitText=function(ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.replaceWholeText=function(ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(a,Te,be){(function(){var z,E,ie,oe,ee,le,x,ne,re,ae,se,ce,pe,me,he,ye,De,Me={}.hasOwnProperty;De=a("./Utility").assign,z=a("./NodeType"),re=a("./XMLDeclaration"),ae=a("./XMLDocType"),ie=a("./XMLCData"),oe=a("./XMLComment"),ce=a("./XMLElement"),me=a("./XMLRaw"),he=a("./XMLText"),pe=a("./XMLProcessingInstruction"),se=a("./XMLDummy"),ee=a("./XMLDTDAttList"),le=a("./XMLDTDElement"),x=a("./XMLDTDEntity"),ne=a("./XMLDTDNotation"),E=a("./WriterState"),Te.exports=ye=function(){function Be(Pe){var Ce,Ee,je;Pe||(Pe={}),this.options=Pe,Ee=Pe.writer||{};for(Ce in Ee)Me.call(Ee,Ce)&&(je=Ee[Ce],this["_"+Ce]=this[Ce],this[Ce]=je)}return Be.prototype.filterOptions=function(Pe){var Ce,Ee,je,ke,Le,Ae,Se,Ge;return Pe||(Pe={}),Pe=De({},this.options,Pe),Ce={writer:this},Ce.pretty=Pe.pretty||!1,Ce.allowEmpty=Pe.allowEmpty||!1,Ce.indent=(Ee=Pe.indent)!=null?Ee:" ",Ce.newline=(je=Pe.newline)!=null?je:`
|
|
|
`,Ce.offset=(ke=Pe.offset)!=null?ke:0,Ce.dontPrettyTextNodes=(Le=(Ae=Pe.dontPrettyTextNodes)!=null?Ae:Pe.dontprettytextnodes)!=null?Le:0,Ce.spaceBeforeSlash=(Se=(Ge=Pe.spaceBeforeSlash)!=null?Ge:Pe.spacebeforeslash)!=null?Se:"",Ce.spaceBeforeSlash===!0&&(Ce.spaceBeforeSlash=" "),Ce.suppressPrettyCount=0,Ce.user={},Ce.state=E.None,Ce},Be.prototype.indent=function(Pe,Ce,Ee){var je;return!Ce.pretty||Ce.suppressPrettyCount?"":Ce.pretty&&(je=(Ee||0)+Ce.offset+1,je>0)?new Array(je).join(Ce.indent):""},Be.prototype.endline=function(Pe,Ce,Ee){return!Ce.pretty||Ce.suppressPrettyCount?"":Ce.newline},Be.prototype.attribute=function(Pe,Ce,Ee){var je;return this.openAttribute(Pe,Ce,Ee),je=" "+Pe.name+'="'+Pe.value+'"',this.closeAttribute(Pe,Ce,Ee),je},Be.prototype.cdata=function(Pe,Ce,Ee){var je;return this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(Pe,Ce,Ee)+"<![CDATA[",Ce.state=E.InsideTag,je+=Pe.value,Ce.state=E.CloseTag,je+="]]>"+this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),je},Be.prototype.comment=function(Pe,Ce,Ee){var je;return this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(Pe,Ce,Ee)+"<!-- ",Ce.state=E.InsideTag,je+=Pe.value,Ce.state=E.CloseTag,je+=" -->"+this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),je},Be.prototype.declaration=function(Pe,Ce,Ee){var je;return this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(Pe,Ce,Ee)+"<?xml",Ce.state=E.InsideTag,je+=' version="'+Pe.version+'"',Pe.encoding!=null&&(je+=' encoding="'+Pe.encoding+'"'),Pe.standalone!=null&&(je+=' standalone="'+Pe.standalone+'"'),Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+"?>",je+=this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),je},Be.prototype.docType=function(Pe,Ce,Ee){var je,ke,Le,Ae,Se;if(Ee||(Ee=0),this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,Ae=this.indent(Pe,Ce,Ee),Ae+="<!DOCTYPE "+Pe.root().name,Pe.pubID&&Pe.sysID?Ae+=' PUBLIC "'+Pe.pubID+'" "'+Pe.sysID+'"':Pe.sysID&&(Ae+=' SYSTEM "'+Pe.sysID+'"'),Pe.children.length>0){for(Ae+=" [",Ae+=this.endline(Pe,Ce,Ee),Ce.state=E.InsideTag,Se=Pe.children,ke=0,Le=Se.length;ke<Le;ke++)je=Se[ke],Ae+=this.writeChildNode(je,Ce,Ee+1);Ce.state=E.CloseTag,Ae+="]"}return Ce.state=E.CloseTag,Ae+=Ce.spaceBeforeSlash+">",Ae+=this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),Ae},Be.prototype.element=function(Pe,Ce,Ee){var je,ke,Le,Ae,Se,Ge,Ze,Je,at,Fe,Ke,it,rt,et;Ee||(Ee=0),Fe=!1,Ke="",this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,Ke+=this.indent(Pe,Ce,Ee)+"<"+Pe.name,it=Pe.attribs;for(at in it)Me.call(it,at)&&(je=it[at],Ke+=this.attribute(je,Ce,Ee));if(Le=Pe.children.length,Ae=Le===0?null:Pe.children[0],Le===0||Pe.children.every(function($e){return($e.type===z.Text||$e.type===z.Raw)&&$e.value===""}))Ce.allowEmpty?(Ke+=">",Ce.state=E.CloseTag,Ke+="</"+Pe.name+">"+this.endline(Pe,Ce,Ee)):(Ce.state=E.CloseTag,Ke+=Ce.spaceBeforeSlash+"/>"+this.endline(Pe,Ce,Ee));else if(Ce.pretty&&Le===1&&(Ae.type===z.Text||Ae.type===z.Raw)&&Ae.value!=null)Ke+=">",Ce.state=E.InsideTag,Ce.suppressPrettyCount++,Fe=!0,Ke+=this.writeChildNode(Ae,Ce,Ee+1),Ce.suppressPrettyCount--,Fe=!1,Ce.state=E.CloseTag,Ke+="</"+Pe.name+">"+this.endline(Pe,Ce,Ee);else{if(Ce.dontPrettyTextNodes){for(rt=Pe.children,Se=0,Ze=rt.length;Se<Ze;Se++)if(ke=rt[Se],(ke.type===z.Text||ke.type===z.Raw)&&ke.value!=null){Ce.suppressPrettyCount++,Fe=!0;break}}for(Ke+=">"+this.endline(Pe,Ce,Ee),Ce.state=E.InsideTag,et=Pe.children,Ge=0,Je=et.length;Ge<Je;Ge++)ke=et[Ge],Ke+=this.writeChildNode(ke,Ce,Ee+1);Ce.state=E.CloseTag,Ke+=this.indent(Pe,Ce,Ee)+"</"+Pe.name+">",Fe&&Ce.suppressPrettyCount--,Ke+=this.endline(Pe,Ce,Ee),Ce.state=E.None}return this.closeNode(Pe,Ce,Ee),Ke},Be.prototype.writeChildNode=function(Pe,Ce,Ee){switch(Pe.type){case z.CData:return this.cdata(Pe,Ce,Ee);case z.Comment:return this.comment(Pe,Ce,Ee);case z.Element:return this.element(Pe,Ce,Ee);case z.Raw:return this.raw(Pe,Ce,Ee);case z.Text:return this.text(Pe,Ce,Ee);case z.ProcessingInstruction:return this.processingInstruction(Pe,Ce,Ee);case z.Dummy:return"";case z.Declaration:return this.declaration(Pe,Ce,Ee);case z.DocType:return this.docType(Pe,Ce,Ee);case z.AttributeDeclaration:return this.dtdAttList(Pe,Ce,Ee);case z.ElementDeclaration:return this.dtdElement(Pe,Ce,Ee);case z.EntityDeclaration:return this.dtdEntity(Pe,Ce,Ee);case z.NotationDeclaration:return this.dtdNotation(Pe,Ce,Ee);default:throw new Error("Unknown XML node type: "+Pe.constructor.name)}},Be.prototype.processingInstruction=function(Pe,Ce,Ee){var je;return this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(Pe,Ce,Ee)+"<?",Ce.state=E.InsideTag,je+=Pe.target,Pe.value&&(je+=" "+Pe.value),Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+"?>",je+=this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),je},Be.prototype.raw=function(Pe,Ce,Ee){var je;return this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(Pe,Ce,Ee),Ce.state=E.InsideTag,je+=Pe.value,Ce.state=E.CloseTag,je+=this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),je},Be.prototype.text=function(Pe,Ce,Ee){var je;return this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(Pe,Ce,Ee),Ce.state=E.InsideTag,je+=Pe.value,Ce.state=E.CloseTag,je+=this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),je},Be.prototype.dtdAttList=function(Pe,Ce,Ee){var je;return this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(Pe,Ce,Ee)+"<!ATTLIST",Ce.state=E.InsideTag,je+=" "+Pe.elementName+" "+Pe.attributeName+" "+Pe.attributeType,Pe.defaultValueType!=="#DEFAULT"&&(je+=" "+Pe.defaultValueType),Pe.defaultValue&&(je+=' "'+Pe.defaultValue+'"'),Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+">"+this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),je},Be.prototype.dtdElement=function(Pe,Ce,Ee){var je;return this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(Pe,Ce,Ee)+"<!ELEMENT",Ce.state=E.InsideTag,je+=" "+Pe.name+" "+Pe.value,Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+">"+this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),je},Be.prototype.dtdEntity=function(Pe,Ce,Ee){var je;return this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(Pe,Ce,Ee)+"<!ENTITY",Ce.state=E.InsideTag,Pe.pe&&(je+=" %"),je+=" "+Pe.name,Pe.value?je+=' "'+Pe.value+'"':(Pe.pubID&&Pe.sysID?je+=' PUBLIC "'+Pe.pubID+'" "'+Pe.sysID+'"':Pe.sysID&&(je+=' SYSTEM "'+Pe.sysID+'"'),Pe.nData&&(je+=" NDATA "+Pe.nData)),Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+">"+this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),je},Be.prototype.dtdNotation=function(Pe,Ce,Ee){var je;return this.openNode(Pe,Ce,Ee),Ce.state=E.OpenTag,je=this.indent(Pe,Ce,Ee)+"<!NOTATION",Ce.state=E.InsideTag,je+=" "+Pe.name,Pe.pubID&&Pe.sysID?je+=' PUBLIC "'+Pe.pubID+'" "'+Pe.sysID+'"':Pe.pubID?je+=' PUBLIC "'+Pe.pubID+'"':Pe.sysID&&(je+=' SYSTEM "'+Pe.sysID+'"'),Ce.state=E.CloseTag,je+=Ce.spaceBeforeSlash+">"+this.endline(Pe,Ce,Ee),Ce.state=E.None,this.closeNode(Pe,Ce,Ee),je},Be.prototype.openNode=function(Pe,Ce,Ee){},Be.prototype.closeNode=function(Pe,Ce,Ee){},Be.prototype.openAttribute=function(Pe,Ce,Ee){},Be.prototype.closeAttribute=function(Pe,Ce,Ee){},Be}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(a,Te,be){(function(){var z,E,ie,oe,ee,le,x,ne,re,ae;ae=a("./Utility"),ne=ae.assign,re=ae.isFunction,ie=a("./XMLDOMImplementation"),oe=a("./XMLDocument"),ee=a("./XMLDocumentCB"),x=a("./XMLStringWriter"),le=a("./XMLStreamWriter"),z=a("./NodeType"),E=a("./WriterState"),Te.exports.create=function(se,ce,pe,me){var he,ye;if(se==null)throw new Error("Root element needs a name.");return me=ne({},ce,pe,me),he=new oe(me),ye=he.element(se),me.headless||(he.declaration(me),(me.pubID!=null||me.sysID!=null)&&he.dtd(me)),ye},Te.exports.begin=function(se,ce,pe){var me;return re(se)&&(me=[se,ce],ce=me[0],pe=me[1],se={}),ce?new ee(se,ce,pe):new oe(se)},Te.exports.stringWriter=function(se){return new x(se)},Te.exports.streamWriter=function(se,ce){return new le(se,ce)},Te.exports.implementation=new ie,Te.exports.nodeType=z,Te.exports.writerState=E}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(a,Te,be){Te.exports=E;var z=Object.prototype.hasOwnProperty;function E(){for(var ie={},oe=0;oe<arguments.length;oe++){var ee=arguments[oe];for(var le in ee)z.call(ee,le)&&(ie[le]=ee[le])}return ie}},{}],461:[function(a,Te,be){"use strict";a("core-js/modules/es.array.fill.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.array.slice.js");var z=a("buffer").Buffer,E=a("./sha"),ie=a("./md5"),oe={sha1:E,md5:ie},ee=64,le=z.alloc(ee);le.fill(0);function x(ae,se,ce){z.isBuffer(se)||(se=z.from(se)),z.isBuffer(ce)||(ce=z.from(ce)),se.length>ee?se=ae(se):se.length<ee&&(se=z.concat([se,le],ee));for(var pe=z.alloc(ee),me=z.alloc(ee),he=0;he<ee;he++)pe[he]=se[he]^54,me[he]=se[he]^92;var ye=ae(z.concat([pe,ce]));return ae(z.concat([me,ye]))}function ne(ae,se){ae=ae||"sha1";var ce=oe[ae],pe=[],me=0;return ce||re("algorithm:",ae,"is not yet supported"),{update:function(ye){return z.isBuffer(ye)||(ye=z.from(ye)),pe.push(ye),me+=ye.length,this},digest:function(ye){var De=z.concat(pe),Me=se?x(ce,se,De):ce(De);return pe=null,ye?Me.toString(ye):Me}}}function re(){var ae=[].slice.call(arguments).join(" ");throw new Error([ae,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}be.createHash=function(ae){return ne(ae)},be.createHmac=function(ae,se){return ne(ae,se)},be.createCredentials=function(){re("sorry,createCredentials is not implemented yet")},be.createCipher=function(){re("sorry,createCipher is not implemented yet")},be.createCipheriv=function(){re("sorry,createCipheriv is not implemented yet")},be.createDecipher=function(){re("sorry,createDecipher is not implemented yet")},be.createDecipheriv=function(){re("sorry,createDecipheriv is not implemented yet")},be.createSign=function(){re("sorry,createSign is not implemented yet")},be.createVerify=function(){re("sorry,createVerify is not implemented yet")},be.createDiffieHellman=function(){re("sorry,createDiffieHellman is not implemented yet")},be.pbkdf2=function(){re("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(a,Te,be){"use strict";a("core-js/modules/es.array.fill.js"),a("core-js/modules/es.array.concat.js");var z=a("buffer").Buffer,E=4,ie=z.alloc(E);ie.fill(0);var oe=8;function ee(ne,re){if(ne.length%E!==0){var ae=ne.length+(E-ne.length%E);ne=z.concat([ne,ie],ae)}for(var se=[],ce=re?ne.readInt32BE:ne.readInt32LE,pe=0;pe<ne.length;pe+=E)se.push(ce.call(ne,pe));return se}function le(ne,re,ae){for(var se=z.alloc(re),ce=ae?se.writeInt32BE:se.writeInt32LE,pe=0;pe<ne.length;pe++)ce.call(se,ne[pe],pe*4,!0);return se}function x(ne,re,ae,se){z.isBuffer(ne)||(ne=z.from(ne));var ce=re(ee(ne,se),ne.length*oe);return le(ce,ae,se)}Te.exports={hash:x}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(a,Te,be){"use strict";var z=a("./helpers");function E(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ie(se,ce){se[ce>>5]|=128<<ce%32,se[(ce+64>>>9<<4)+14]=ce;for(var pe=1732584193,me=-271733879,he=-1732584194,ye=271733878,De=0;De<se.length;De+=16){var Me=pe,Be=me,Pe=he,Ce=ye;pe=ee(pe,me,he,ye,se[De+0],7,-680876936),ye=ee(ye,pe,me,he,se[De+1],12,-389564586),he=ee(he,ye,pe,me,se[De+2],17,606105819),me=ee(me,he,ye,pe,se[De+3],22,-1044525330),pe=ee(pe,me,he,ye,se[De+4],7,-176418897),ye=ee(ye,pe,me,he,se[De+5],12,1200080426),he=ee(he,ye,pe,me,se[De+6],17,-1473231341),me=ee(me,he,ye,pe,se[De+7],22,-45705983),pe=ee(pe,me,he,ye,se[De+8],7,1770035416),ye=ee(ye,pe,me,he,se[De+9],12,-1958414417),he=ee(he,ye,pe,me,se[De+10],17,-42063),me=ee(me,he,ye,pe,se[De+11],22,-1990404162),pe=ee(pe,me,he,ye,se[De+12],7,1804603682),ye=ee(ye,pe,me,he,se[De+13],12,-40341101),he=ee(he,ye,pe,me,se[De+14],17,-1502002290),me=ee(me,he,ye,pe,se[De+15],22,1236535329),pe=le(pe,me,he,ye,se[De+1],5,-165796510),ye=le(ye,pe,me,he,se[De+6],9,-1069501632),he=le(he,ye,pe,me,se[De+11],14,643717713),me=le(me,he,ye,pe,se[De+0],20,-373897302),pe=le(pe,me,he,ye,se[De+5],5,-701558691),ye=le(ye,pe,me,he,se[De+10],9,38016083),he=le(he,ye,pe,me,se[De+15],14,-660478335),me=le(me,he,ye,pe,se[De+4],20,-405537848),pe=le(pe,me,he,ye,se[De+9],5,568446438),ye=le(ye,pe,me,he,se[De+14],9,-1019803690),he=le(he,ye,pe,me,se[De+3],14,-187363961),me=le(me,he,ye,pe,se[De+8],20,1163531501),pe=le(pe,me,he,ye,se[De+13],5,-1444681467),ye=le(ye,pe,me,he,se[De+2],9,-51403784),he=le(he,ye,pe,me,se[De+7],14,1735328473),me=le(me,he,ye,pe,se[De+12],20,-1926607734),pe=x(pe,me,he,ye,se[De+5],4,-378558),ye=x(ye,pe,me,he,se[De+8],11,-2022574463),he=x(he,ye,pe,me,se[De+11],16,1839030562),me=x(me,he,ye,pe,se[De+14],23,-35309556),pe=x(pe,me,he,ye,se[De+1],4,-1530992060),ye=x(ye,pe,me,he,se[De+4],11,1272893353),he=x(he,ye,pe,me,se[De+7],16,-155497632),me=x(me,he,ye,pe,se[De+10],23,-1094730640),pe=x(pe,me,he,ye,se[De+13],4,681279174),ye=x(ye,pe,me,he,se[De+0],11,-358537222),he=x(he,ye,pe,me,se[De+3],16,-722521979),me=x(me,he,ye,pe,se[De+6],23,76029189),pe=x(pe,me,he,ye,se[De+9],4,-640364487),ye=x(ye,pe,me,he,se[De+12],11,-421815835),he=x(he,ye,pe,me,se[De+15],16,530742520),me=x(me,he,ye,pe,se[De+2],23,-995338651),pe=ne(pe,me,he,ye,se[De+0],6,-198630844),ye=ne(ye,pe,me,he,se[De+7],10,1126891415),he=ne(he,ye,pe,me,se[De+14],15,-1416354905),me=ne(me,he,ye,pe,se[De+5],21,-57434055),pe=ne(pe,me,he,ye,se[De+12],6,1700485571),ye=ne(ye,pe,me,he,se[De+3],10,-1894986606),he=ne(he,ye,pe,me,se[De+10],15,-1051523),me=ne(me,he,ye,pe,se[De+1],21,-2054922799),pe=ne(pe,me,he,ye,se[De+8],6,1873313359),ye=ne(ye,pe,me,he,se[De+15],10,-30611744),he=ne(he,ye,pe,me,se[De+6],15,-1560198380),me=ne(me,he,ye,pe,se[De+13],21,1309151649),pe=ne(pe,me,he,ye,se[De+4],6,-145523070),ye=ne(ye,pe,me,he,se[De+11],10,-1120210379),he=ne(he,ye,pe,me,se[De+2],15,718787259),me=ne(me,he,ye,pe,se[De+9],21,-343485551),pe=re(pe,Me),me=re(me,Be),he=re(he,Pe),ye=re(ye,Ce)}return Array(pe,me,he,ye)}function oe(se,ce,pe,me,he,ye){return re(ae(re(re(ce,se),re(me,ye)),he),pe)}function ee(se,ce,pe,me,he,ye,De){return oe(ce&pe|~ce&me,se,ce,he,ye,De)}function le(se,ce,pe,me,he,ye,De){return oe(ce&me|pe&~me,se,ce,he,ye,De)}function x(se,ce,pe,me,he,ye,De){return oe(ce^pe^me,se,ce,he,ye,De)}function ne(se,ce,pe,me,he,ye,De){return oe(pe^(ce|~me),se,ce,he,ye,De)}function re(se,ce){var pe=(se&65535)+(ce&65535),me=(se>>16)+(ce>>16)+(pe>>16);return me<<16|pe&65535}function ae(se,ce){return se<<ce|se>>>32-ce}Te.exports=function(ce){return z.hash(ce,ie,16)}},{"./helpers":462}],464:[function(a,Te,be){"use strict";var z=a("./helpers");function E(x,ne){x[ne>>5]|=128<<24-ne%32,x[(ne+64>>9<<4)+15]=ne;for(var re=Array(80),ae=1732584193,se=-271733879,ce=-1732584194,pe=271733878,me=-1009589776,he=0;he<x.length;he+=16){for(var ye=ae,De=se,Me=ce,Be=pe,Pe=me,Ce=0;Ce<80;Ce++){Ce<16?re[Ce]=x[he+Ce]:re[Ce]=le(re[Ce-3]^re[Ce-8]^re[Ce-14]^re[Ce-16],1);var Ee=ee(ee(le(ae,5),ie(Ce,se,ce,pe)),ee(ee(me,re[Ce]),oe(Ce)));me=pe,pe=ce,ce=le(se,30),se=ae,ae=Ee}ae=ee(ae,ye),se=ee(se,De),ce=ee(ce,Me),pe=ee(pe,Be),me=ee(me,Pe)}return Array(ae,se,ce,pe,me)}function ie(x,ne,re,ae){return x<20?ne&re|~ne&ae:x<40?ne^re^ae:x<60?ne&re|ne&ae|re&ae:ne^re^ae}function oe(x){return x<20?1518500249:x<40?1859775393:x<60?-1894007588:-899497514}function ee(x,ne){var re=(x&65535)+(ne&65535),ae=(x>>16)+(ne>>16)+(re>>16);return ae<<16|re&65535}function le(x,ne){return x<<ne|x>>>32-ne}Te.exports=function(ne){return z.hash(ne,E,20,!0)}},{"./helpers":462}],465:[function(a,Te,be){"use strict";Te.exports=function(){return function(){}}},{}],466:[function(a,Te,be){(function(z){(function(){"use strict";var E=a("@babel/runtime/helpers/interopRequireDefault"),ie=E(a("@babel/runtime/helpers/typeof")),oe=a("stream"),ee=oe.Stream,le=a("../lib/common/utils/isArray"),x=le.isArray;Te.exports.string=function(ae){return typeof ae=="string"},Te.exports.array=x,Te.exports.buffer=z.isBuffer;function ne(re){return re instanceof ee}Te.exports.writableStream=function(ae){return ne(ae)&&typeof ae._write=="function"&&(0,ie.default)(ae._writableState)==="object"}}).call(this)}).call(this,{isBuffer:a("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(a,Te,be){"use strict";var z=a("immediate"),E=Te.exports={};E.nextTick=z,E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={};function ie(){}E.on=ie,E.addListener=ie,E.once=ie,E.off=ie,E.removeListener=ie,E.removeAllListeners=ie,E.emit=ie,E.prependListener=ie,E.prependOnceListener=ie,E.listeners=function(oe){return[]},E.binding=function(oe){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(oe){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}},{immediate:358}],468:[function(a,Te,be){(function(z){(function(){"use strict";a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.search.js");var E=a("./lib/request"),ie=a("./lib/response"),oe=a("xtend"),ee=a("builtin-status-codes"),le=a("url"),x=be;x.request=function(ne,re){typeof ne=="string"?ne=le.parse(ne):ne=oe(ne);var ae=z.location.protocol.search(/^https?:$/)===-1?"http:":"",se=ne.protocol||ae,ce=ne.hostname||ne.host,pe=ne.port,me=ne.path||"/";ce&&ce.indexOf(":")!==-1&&(ce="["+ce+"]"),ne.url=(ce?se+"//"+ce:"")+(pe?":"+pe:"")+me,ne.method=(ne.method||"GET").toUpperCase(),ne.headers=ne.headers||{};var he=new E(ne);return re&&he.on("response",re),he},x.get=function(re,ae){var se=x.request(re,ae);return se.end(),se},x.ClientRequest=E,x.IncomingMessage=ie.IncomingMessage,x.Agent=function(){},x.Agent.defaultMaxSockets=4,x.globalAgent=new x.Agent,x.STATUS_CODES=ee,x.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(a,Te,be){(function(z){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array-buffer.constructor.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.array.slice.js"),be.fetch=x(z.fetch)&&x(z.ReadableStream),be.writableStream=x(z.WritableStream),be.abortController=x(z.AbortController),be.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),be.blobConstructor=!0}catch(ne){}var E;function ie(){if(E!==void 0)return E;if(z.XMLHttpRequest){E=new z.XMLHttpRequest;try{E.open("GET",z.XDomainRequest?"/":"https://example.com")}catch(ne){E=null}}else E=null;return E}function oe(ne){var re=ie();if(!re)return!1;try{return re.responseType=ne,re.responseType===ne}catch(ae){}return!1}var ee=typeof z.ArrayBuffer!="undefined",le=ee&&x(z.ArrayBuffer.prototype.slice);be.arraybuffer=be.fetch||ee&&oe("arraybuffer"),be.msstream=!be.fetch&&le&&oe("ms-stream"),be.mozchunkedarraybuffer=!be.fetch&&ee&&oe("moz-chunked-arraybuffer"),be.overrideMimeType=be.fetch||(ie()?x(ie().overrideMimeType):!1),be.vbArray=x(z.VBArray);function x(ne){return typeof ne=="function"}E=null}).call(this)}).call(this,typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(a,Te,be){(function(z,E,ie){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.regexp.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.array.map.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js");var oe=a("./capability"),ee=a("inherits"),le=a("./response"),x=a("readable-stream"),ne=a("to-arraybuffer"),re=le.IncomingMessage,ae=le.readyStates;function se(he,ye){return oe.fetch&&ye?"fetch":oe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":oe.msstream?"ms-stream":oe.arraybuffer&&he?"arraybuffer":oe.vbArray&&he?"text:vbarray":"text"}var ce=Te.exports=function(he){var ye=this;x.Writable.call(ye),ye._opts=he,ye._body=[],ye._headers={},he.auth&&ye.setHeader("Authorization","Basic "+new ie(he.auth).toString("base64")),Object.keys(he.headers).forEach(function(Be){ye.setHeader(Be,he.headers[Be])});var De,Me=!0;if(he.mode==="disable-fetch"||"requestTimeout"in he&&!oe.abortController)Me=!1,De=!0;else if(he.mode==="prefer-streaming")De=!1;else if(he.mode==="allow-wrong-content-type")De=!oe.overrideMimeType;else if(!he.mode||he.mode==="default"||he.mode==="prefer-fast")De=!0;else throw new Error("Invalid value for opts.mode");ye._mode=se(De,Me),ye._fetchTimer=null,ye.on("finish",function(){ye._onFinish()})};ee(ce,x.Writable),ce.prototype.setHeader=function(he,ye){var De=this,Me=he.toLowerCase();me.indexOf(Me)===-1&&(De._headers[Me]={name:he,value:ye})},ce.prototype.getHeader=function(he){var ye=this._headers[he.toLowerCase()];return ye?ye.value:null},ce.prototype.removeHeader=function(he){var ye=this;delete ye._headers[he.toLowerCase()]},ce.prototype._onFinish=function(){var he=this;if(!he._destroyed){var ye=he._opts,De=he._headers,Me=null;ye.method!=="GET"&&ye.method!=="HEAD"&&(oe.arraybuffer?Me=ne(ie.concat(he._body)):oe.blobConstructor?Me=new E.Blob(he._body.map(function(ke){return ne(ke)}),{type:(De["content-type"]||{}).value||""}):Me=ie.concat(he._body).toString());var Be=[];if(Object.keys(De).forEach(function(ke){var Le=De[ke].name,Ae=De[ke].value;Array.isArray(Ae)?Ae.forEach(function(Se){Be.push([Le,Se])}):Be.push([Le,Ae])}),he._mode==="fetch"){var Pe=null,Ce=null;if(oe.abortController){var Ee=new AbortController;Pe=Ee.signal,he._fetchAbortController=Ee,"requestTimeout"in ye&&ye.requestTimeout!==0&&(he._fetchTimer=E.setTimeout(function(){he.emit("requestTimeout"),he._fetchAbortController&&he._fetchAbortController.abort()},ye.requestTimeout))}E.fetch(he._opts.url,{method:he._opts.method,headers:Be,body:Me||void 0,mode:"cors",credentials:ye.withCredentials?"include":"same-origin",signal:Pe}).then(function(ke){he._fetchResponse=ke,he._connect()},function(ke){E.clearTimeout(he._fetchTimer),he._destroyed||he.emit("error",ke)})}else{var je=he._xhr=new E.XMLHttpRequest;try{je.open(he._opts.method,he._opts.url,!0)}catch(ke){z.nextTick(function(){he.emit("error",ke)});return}"responseType"in je&&(je.responseType=he._mode.split(":")[0]),"withCredentials"in je&&(je.withCredentials=!!ye.withCredentials),he._mode==="text"&&"overrideMimeType"in je&&je.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in ye&&(je.timeout=ye.requestTimeout,je.ontimeout=function(){he.emit("requestTimeout")}),Be.forEach(function(ke){je.setRequestHeader(ke[0],ke[1])}),he._response=null,je.onreadystatechange=function(){switch(je.readyState){case ae.LOADING:case ae.DONE:he._onXHRProgress();break}},he._mode==="moz-chunked-arraybuffer"&&(je.onprogress=function(){he._onXHRProgress()}),je.onerror=function(){he._destroyed||he.emit("error",new Error("XHR error"))};try{je.send(Me)}catch(ke){z.nextTick(function(){he.emit("error",ke)});return}}}};function pe(he){try{var ye=he.status;return ye!==null&&ye!==0}catch(De){return!1}}ce.prototype._onXHRProgress=function(){var he=this;!pe(he._xhr)||he._destroyed||(he._response||he._connect(),he._response._onXHRProgress())},ce.prototype._connect=function(){var he=this;he._destroyed||(he._response=new re(he._xhr,he._fetchResponse,he._mode,he._fetchTimer),he._response.on("error",function(ye){he.emit("error",ye)}),he.emit("response",he._response))},ce.prototype._write=function(he,ye,De){var Me=this;Me._body.push(he),De()},ce.prototype.abort=ce.prototype.destroy=function(){var he=this;he._destroyed=!0,E.clearTimeout(he._fetchTimer),he._response&&(he._response._destroyed=!0),he._xhr?he._xhr.abort():he._fetchAbortController&&he._fetchAbortController.abort()},ce.prototype.end=function(he,ye,De){var Me=this;typeof he=="function"&&(De=he,he=void 0),x.Writable.prototype.end.call(Me,he,ye,De)},ce.prototype.flushHeaders=function(){},ce.prototype.setTimeout=function(){},ce.prototype.setNoDelay=function(){},ce.prototype.setSocketKeepAlive=function(){};var me=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,a("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(a,Te,be){(function(z,E,ie){(function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/web.dom-collections.for-each.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.string.match.js"),a("core-js/modules/es.array.iterator.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.typed-array.uint8-array.js"),a("core-js/modules/es.typed-array.copy-within.js"),a("core-js/modules/es.typed-array.every.js"),a("core-js/modules/es.typed-array.fill.js"),a("core-js/modules/es.typed-array.filter.js"),a("core-js/modules/es.typed-array.find.js"),a("core-js/modules/es.typed-array.find-index.js"),a("core-js/modules/es.typed-array.for-each.js"),a("core-js/modules/es.typed-array.includes.js"),a("core-js/modules/es.typed-array.index-of.js"),a("core-js/modules/es.typed-array.iterator.js"),a("core-js/modules/es.typed-array.join.js"),a("core-js/modules/es.typed-array.last-index-of.js"),a("core-js/modules/es.typed-array.map.js"),a("core-js/modules/es.typed-array.reduce.js"),a("core-js/modules/es.typed-array.reduce-right.js"),a("core-js/modules/es.typed-array.reverse.js"),a("core-js/modules/es.typed-array.set.js"),a("core-js/modules/es.typed-array.slice.js"),a("core-js/modules/es.typed-array.some.js"),a("core-js/modules/es.typed-array.sort.js"),a("core-js/modules/es.typed-array.subarray.js"),a("core-js/modules/es.typed-array.to-locale-string.js"),a("core-js/modules/es.typed-array.to-string.js"),a("core-js/modules/es.array.slice.js");var oe=a("./capability"),ee=a("inherits"),le=a("readable-stream"),x=be.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ne=be.IncomingMessage=function(re,ae,se,ce){var pe=this;if(le.Readable.call(pe),pe._mode=se,pe.headers={},pe.rawHeaders=[],pe.trailers={},pe.rawTrailers=[],pe.on("end",function(){z.nextTick(function(){pe.emit("close")})}),se==="fetch"){var me=function Pe(){ye.read().then(function(Ce){if(!pe._destroyed){if(Ce.done){E.clearTimeout(ce),pe.push(null);return}pe.push(new ie(Ce.value)),Pe()}}).catch(function(Ce){E.clearTimeout(ce),pe._destroyed||pe.emit("error",Ce)})};if(pe._fetchResponse=ae,pe.url=ae.url,pe.statusCode=ae.status,pe.statusMessage=ae.statusText,ae.headers.forEach(function(Pe,Ce){pe.headers[Ce.toLowerCase()]=Pe,pe.rawHeaders.push(Ce,Pe)}),oe.writableStream){var he=new WritableStream({write:function(Ce){return new Promise(function(Ee,je){pe._destroyed?je():pe.push(new ie(Ce))?Ee():pe._resumeFetch=Ee})},close:function(){E.clearTimeout(ce),pe._destroyed||pe.push(null)},abort:function(Ce){pe._destroyed||pe.emit("error",Ce)}});try{ae.body.pipeTo(he).catch(function(Pe){E.clearTimeout(ce),pe._destroyed||pe.emit("error",Pe)});return}catch(Pe){}}var ye=ae.body.getReader();me()}else{pe._xhr=re,pe._pos=0,pe.url=re.responseURL,pe.statusCode=re.status,pe.statusMessage=re.statusText;var De=re.getAllResponseHeaders().split(/\r?\n/);if(De.forEach(function(Pe){var Ce=Pe.match(/^([^:]+):\s*(.*)/);if(Ce){var Ee=Ce[1].toLowerCase();Ee==="set-cookie"?(pe.headers[Ee]===void 0&&(pe.headers[Ee]=[]),pe.headers[Ee].push(Ce[2])):pe.headers[Ee]!==void 0?pe.headers[Ee]+=", "+Ce[2]:pe.headers[Ee]=Ce[2],pe.rawHeaders.push(Ce[1],Ce[2])}}),pe._charset="x-user-defined",!oe.overrideMimeType){var Me=pe.rawHeaders["mime-type"];if(Me){var Be=Me.match(/;\s*charset=([^;])(;|$)/);Be&&(pe._charset=Be[1].toLowerCase())}pe._charset||(pe._charset="utf-8")}}};ee(ne,le.Readable),ne.prototype._read=function(){var re=this,ae=re._resumeFetch;ae&&(re._resumeFetch=null,ae())},ne.prototype._onXHRProgress=function(){var re=this,ae=re._xhr,se=null;switch(re._mode){case"text:vbarray":if(ae.readyState!==x.DONE)break;try{se=new E.VBArray(ae.responseBody).toArray()}catch(ye){}if(se!==null){re.push(new ie(se));break}case"text":try{se=ae.responseText}catch(ye){re._mode="text:vbarray";break}if(se.length>re._pos){var ce=se.substr(re._pos);if(re._charset==="x-user-defined"){for(var pe=new ie(ce.length),me=0;me<ce.length;me++)pe[me]=ce.charCodeAt(me)&255;re.push(pe)}else re.push(ce,re._charset);re._pos=se.length}break;case"arraybuffer":if(ae.readyState!==x.DONE||!ae.response)break;se=ae.response,re.push(new ie(new Uint8Array(se)));break;case"moz-chunked-arraybuffer":if(se=ae.response,ae.readyState!==x.LOADING||!se)break;re.push(new ie(new Uint8Array(se)));break;case"ms-stream":if(se=ae.response,ae.readyState!==x.LOADING)break;var he=new E.MSStreamReader;he.onprogress=function(){he.result.byteLength>re._pos&&(re.push(new ie(new Uint8Array(he.result.slice(re._pos)))),re._pos=he.result.byteLength)},he.onload=function(){re.push(null)},he.readAsArrayBuffer(se);break}re._xhr.readyState===x.DONE&&re._mode!=="ms-stream"&&re.push(null)}}).call(this)}).call(this,a("_process"),typeof Dt!="undefined"?Dt:typeof self!="undefined"?self:typeof window!="undefined"?window:{},a("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/helpers/typeof"));a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.search.js"),a("core-js/modules/es.array.concat.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.string.replace.js"),a("core-js/modules/es.array.join.js"),a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.string.match.js"),a("core-js/modules/es.array.slice.js"),a("core-js/modules/es.object.keys.js"),a("core-js/modules/es.array.splice.js");var ie=a("punycode"),oe=a("./util");be.parse=Ce,be.resolve=je,be.resolveObject=ke,be.format=Ee,be.Url=ee;function ee(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var le=/^([a-z0-9.+-]+:)/i,x=/:[0-9]*$/,ne=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,re=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],ae=["{","}","|","\\","^","`"].concat(re),se=["'"].concat(ae),ce=["%","/","?",";","#"].concat(se),pe=["/","?","#"],me=255,he=/^[+a-z0-9A-Z_-]{0,63}$/,ye=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,De={javascript:!0,"javascript:":!0},Me={javascript:!0,"javascript:":!0},Be={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Pe=a("querystring");function Ce(Le,Ae,Se){if(Le&&oe.isObject(Le)&&Le instanceof ee)return Le;var Ge=new ee;return Ge.parse(Le,Ae,Se),Ge}ee.prototype.parse=function(Le,Ae,Se){if(!oe.isString(Le))throw new TypeError("Parameter 'url' must be a string, not "+(0,E.default)(Le));var Ge=Le.indexOf("?"),Ze=Ge!==-1&&Ge<Le.indexOf("#")?"?":"#",Je=Le.split(Ze),at=/\\/g;Je[0]=Je[0].replace(at,"/"),Le=Je.join(Ze);var Fe=Le;if(Fe=Fe.trim(),!Se&&Le.split("#").length===1){var Ke=ne.exec(Fe);if(Ke)return this.path=Fe,this.href=Fe,this.pathname=Ke[1],Ke[2]?(this.search=Ke[2],Ae?this.query=Pe.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ae&&(this.search="",this.query={}),this}var it=le.exec(Fe);if(it){it=it[0];var rt=it.toLowerCase();this.protocol=rt,Fe=Fe.substr(it.length)}if(Se||it||Fe.match(/^\/\/[^@\/]+@[^@\/]+/)){var et=Fe.substr(0,2)==="//";et&&!(it&&Me[it])&&(Fe=Fe.substr(2),this.slashes=!0)}if(!Me[it]&&(et||it&&!Be[it])){for(var $e=-1,Xe=0;Xe<pe.length;Xe++){var Ve=Fe.indexOf(pe[Xe]);Ve!==-1&&($e===-1||Ve<$e)&&($e=Ve)}var nt,Qe;$e===-1?Qe=Fe.lastIndexOf("@"):Qe=Fe.lastIndexOf("@",$e),Qe!==-1&&(nt=Fe.slice(0,Qe),Fe=Fe.slice(Qe+1),this.auth=decodeURIComponent(nt)),$e=-1;for(var Xe=0;Xe<ce.length;Xe++){var Ve=Fe.indexOf(ce[Xe]);Ve!==-1&&($e===-1||Ve<$e)&&($e=Ve)}$e===-1&&($e=Fe.length),this.host=Fe.slice(0,$e),Fe=Fe.slice($e),this.parseHost(),this.hostname=this.hostname||"";var ct=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ct)for(var ot=this.hostname.split("."),Xe=0,qe=ot.length;Xe<qe;Xe++){var _e=ot[Xe];if(_e&&!_e.match(he)){for(var Re="",te=0,de=_e.length;te<de;te++)_e.charCodeAt(te)>127?Re+="x":Re+=_e[te];if(!Re.match(he)){var Ne=ot.slice(0,Xe),ze=ot.slice(Xe+1),xe=_e.match(ye);xe&&(Ne.push(xe[1]),ze.unshift(xe[2])),ze.length&&(Fe="/"+ze.join(".")+Fe),this.hostname=Ne.join(".");break}}}this.hostname.length>me?this.hostname="":this.hostname=this.hostname.toLowerCase(),ct||(this.hostname=ie.toASCII(this.hostname));var ve=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+ve,this.href+=this.host,ct&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Fe[0]!=="/"&&(Fe="/"+Fe))}if(!De[rt])for(var Xe=0,qe=se.length;Xe<qe;Xe++){var We=se[Xe];if(Fe.indexOf(We)!==-1){var Ue=encodeURIComponent(We);Ue===We&&(Ue=escape(We)),Fe=Fe.split(We).join(Ue)}}var Ye=Fe.indexOf("#");Ye!==-1&&(this.hash=Fe.substr(Ye),Fe=Fe.slice(0,Ye));var st=Fe.indexOf("?");if(st!==-1?(this.search=Fe.substr(st),this.query=Fe.substr(st+1),Ae&&(this.query=Pe.parse(this.query)),Fe=Fe.slice(0,st)):Ae&&(this.search="",this.query={}),Fe&&(this.pathname=Fe),Be[rt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var ve=this.pathname||"",lt=this.search||"";this.path=ve+lt}return this.href=this.format(),this};function Ee(Le){return oe.isString(Le)&&(Le=Ce(Le)),Le instanceof ee?Le.format():ee.prototype.format.call(Le)}ee.prototype.format=function(){var Le=this.auth||"";Le&&(Le=encodeURIComponent(Le),Le=Le.replace(/%3A/i,":"),Le+="@");var Ae=this.protocol||"",Se=this.pathname||"",Ge=this.hash||"",Ze=!1,Je="";this.host?Ze=Le+this.host:this.hostname&&(Ze=Le+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Ze+=":"+this.port)),this.query&&oe.isObject(this.query)&&Object.keys(this.query).length&&(Je=Pe.stringify(this.query));var at=this.search||Je&&"?"+Je||"";return Ae&&Ae.substr(-1)!==":"&&(Ae+=":"),this.slashes||(!Ae||Be[Ae])&&Ze!==!1?(Ze="//"+(Ze||""),Se&&Se.charAt(0)!=="/"&&(Se="/"+Se)):Ze||(Ze=""),Ge&&Ge.charAt(0)!=="#"&&(Ge="#"+Ge),at&&at.charAt(0)!=="?"&&(at="?"+at),Se=Se.replace(/[?#]/g,function(Fe){return encodeURIComponent(Fe)}),at=at.replace("#","%23"),Ae+Ze+Se+at+Ge};function je(Le,Ae){return Ce(Le,!1,!0).resolve(Ae)}ee.prototype.resolve=function(Le){return this.resolveObject(Ce(Le,!1,!0)).format()};function ke(Le,Ae){return Le?Ce(Le,!1,!0).resolveObject(Ae):Ae}ee.prototype.resolveObject=function(Le){if(oe.isString(Le)){var Ae=new ee;Ae.parse(Le,!1,!0),Le=Ae}for(var Se=new ee,Ge=Object.keys(this),Ze=0;Ze<Ge.length;Ze++){var Je=Ge[Ze];Se[Je]=this[Je]}if(Se.hash=Le.hash,Le.href==="")return Se.href=Se.format(),Se;if(Le.slashes&&!Le.protocol){for(var at=Object.keys(Le),Fe=0;Fe<at.length;Fe++){var Ke=at[Fe];Ke!=="protocol"&&(Se[Ke]=Le[Ke])}return Be[Se.protocol]&&Se.hostname&&!Se.pathname&&(Se.path=Se.pathname="/"),Se.href=Se.format(),Se}if(Le.protocol&&Le.protocol!==Se.protocol){if(!Be[Le.protocol]){for(var it=Object.keys(Le),rt=0;rt<it.length;rt++){var et=it[rt];Se[et]=Le[et]}return Se.href=Se.format(),Se}if(Se.protocol=Le.protocol,!Le.host&&!Me[Le.protocol]){for(var qe=(Le.pathname||"").split("/");qe.length&&!(Le.host=qe.shift()););Le.host||(Le.host=""),Le.hostname||(Le.hostname=""),qe[0]!==""&&qe.unshift(""),qe.length<2&&qe.unshift(""),Se.pathname=qe.join("/")}else Se.pathname=Le.pathname;if(Se.search=Le.search,Se.query=Le.query,Se.host=Le.host||"",Se.auth=Le.auth,Se.hostname=Le.hostname||Le.host,Se.port=Le.port,Se.pathname||Se.search){var $e=Se.pathname||"",Xe=Se.search||"";Se.path=$e+Xe}return Se.slashes=Se.slashes||Le.slashes,Se.href=Se.format(),Se}var Ve=Se.pathname&&Se.pathname.charAt(0)==="/",nt=Le.host||Le.pathname&&Le.pathname.charAt(0)==="/",Qe=nt||Ve||Se.host&&Le.pathname,ct=Qe,ot=Se.pathname&&Se.pathname.split("/")||[],qe=Le.pathname&&Le.pathname.split("/")||[],_e=Se.protocol&&!Be[Se.protocol];if(_e&&(Se.hostname="",Se.port=null,Se.host&&(ot[0]===""?ot[0]=Se.host:ot.unshift(Se.host)),Se.host="",Le.protocol&&(Le.hostname=null,Le.port=null,Le.host&&(qe[0]===""?qe[0]=Le.host:qe.unshift(Le.host)),Le.host=null),Qe=Qe&&(qe[0]===""||ot[0]==="")),nt)Se.host=Le.host||Le.host===""?Le.host:Se.host,Se.hostname=Le.hostname||Le.hostname===""?Le.hostname:Se.hostname,Se.search=Le.search,Se.query=Le.query,ot=qe;else if(qe.length)ot||(ot=[]),ot.pop(),ot=ot.concat(qe),Se.search=Le.search,Se.query=Le.query;else if(!oe.isNullOrUndefined(Le.search)){if(_e){Se.hostname=Se.host=ot.shift();var Re=Se.host&&Se.host.indexOf("@")>0?Se.host.split("@"):!1;Re&&(Se.auth=Re.shift(),Se.host=Se.hostname=Re.shift())}return Se.search=Le.search,Se.query=Le.query,(!oe.isNull(Se.pathname)||!oe.isNull(Se.search))&&(Se.path=(Se.pathname?Se.pathname:"")+(Se.search?Se.search:"")),Se.href=Se.format(),Se}if(!ot.length)return Se.pathname=null,Se.search?Se.path="/"+Se.search:Se.path=null,Se.href=Se.format(),Se;for(var te=ot.slice(-1)[0],de=(Se.host||Le.host||ot.length>1)&&(te==="."||te==="..")||te==="",Ne=0,ze=ot.length;ze>=0;ze--)te=ot[ze],te==="."?ot.splice(ze,1):te===".."?(ot.splice(ze,1),Ne++):Ne&&(ot.splice(ze,1),Ne--);if(!Qe&&!ct)for(;Ne--;Ne)ot.unshift("..");Qe&&ot[0]!==""&&(!ot[0]||ot[0].charAt(0)!=="/")&&ot.unshift(""),de&&ot.join("/").substr(-1)!=="/"&&ot.push("");var xe=ot[0]===""||ot[0]&&ot[0].charAt(0)==="/";if(_e){Se.hostname=Se.host=xe?"":ot.length?ot.shift():"";var Re=Se.host&&Se.host.indexOf("@")>0?Se.host.split("@"):!1;Re&&(Se.auth=Re.shift(),Se.host=Se.hostname=Re.shift())}return Qe=Qe||Se.host&&ot.length,Qe&&!xe&&ot.unshift(""),ot.length?Se.pathname=ot.join("/"):(Se.pathname=null,Se.path=null),(!oe.isNull(Se.pathname)||!oe.isNull(Se.search))&&(Se.path=(Se.pathname?Se.pathname:"")+(Se.search?Se.search:"")),Se.auth=Le.auth||Se.auth,Se.slashes=Se.slashes||Le.slashes,Se.href=Se.format(),Se},ee.prototype.parseHost=function(){var Le=this.host,Ae=x.exec(Le);Ae&&(Ae=Ae[0],Ae!==":"&&(this.port=Ae.substr(1)),Le=Le.substr(0,Le.length-Ae.length)),Le&&(this.hostname=Le)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(a,Te,be){"use strict";var z=a("@babel/runtime/helpers/interopRequireDefault"),E=z(a("@babel/runtime/helpers/typeof"));Te.exports={isString:function(oe){return typeof oe=="string"},isObject:function(oe){return(0,E.default)(oe)==="object"&&oe!==null},isNull:function(oe){return oe===null},isNullOrUndefined:function(oe){return oe==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(a,Te,be){"use strict";a("core-js/modules/es.number.constructor.js"),be.encodeURIComponent=function(z){try{return encodeURIComponent(z)}catch(E){return z}},be.escape=a("escape-html"),be.timestamp=function(E){if(E){var ie=E;return typeof ie=="string"&&(ie=Number(ie)),String(E).length===10&&(ie*=1e3),new Date(ie)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(a,Te,be){(function(z,E){(function(){"use strict";var ie=a("@babel/runtime/helpers/interopRequireDefault"),oe=ie(a("@babel/runtime/helpers/typeof"));a("core-js/modules/es.string.trim.js"),a("core-js/modules/es.regexp.exec.js"),a("core-js/modules/es.string.split.js"),a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.function.name.js"),a("core-js/modules/es.array.concat.js");var ee=a("util"),le=a("url"),x=a("http"),ne=a("https"),re=a("debug")("urllib"),ae=a("humanize-ms"),se=0,ce=Math.pow(2,31)-10,pe=/^https?:\/\//i;function me(Me,Be){return Me===void 0?Be:Me}function he(Me){return Me?Me.split(";")[0].trim().toLowerCase():""}function ye(Me,Be){return function(Pe,Ce,Ee){if(Pe)return Be(Pe);Me({data:Ce,status:Ee.statusCode,headers:Ee.headers,res:Ee})}}be.TIMEOUTS=[ae("300s"),ae("300s")];var De=["json","text"];be.request=function(Be,Pe,Ce){return arguments.length===2&&typeof Pe=="function"&&(Ce=Pe,Pe=null),typeof Ce=="function"?be.requestWithCallback(Be,Pe,Ce):new Promise(function(Ee,je){be.requestWithCallback(Be,Pe,ye(Ee,je))})},be.requestWithCallback=function(Be,Pe,Ce){if(!Be||typeof Be!="string"&&(0,oe.default)(Be)!=="object"){var Ee=ee.format("expect request url to be a string or a http request options, but got %j",Be);throw new Error(Ee)}arguments.length===2&&typeof Pe=="function"&&(Ce=Pe,Pe=null),Pe=Pe||{},se>=ce&&(se=0);var je=++se;Pe.requestUrls=Pe.requestUrls||[];var ke={requestId:je,url:Be,args:Pe,ctx:Pe.ctx};Pe.emitter&&Pe.emitter.emit("request",ke),Pe.timeout=Pe.timeout||be.TIMEOUTS,Pe.maxRedirects=Pe.maxRedirects||10,Pe.streaming=Pe.streaming||Pe.customResponse;var Le=Date.now(),Ae;typeof Be=="string"?(pe.test(Be)||(Be="https://"+Be),Ae=le.parse(Be)):Ae=Be;var Se=(Pe.type||Pe.method||Ae.method||"GET").toUpperCase(),Ge=Ae.port||80,Ze=x,Je=me(Pe.agent,be.agent),at=Pe.fixJSONCtlChars;Ae.protocol==="https:"&&(Ze=ne,Je=me(Pe.httpsAgent,be.httpsAgent),Ae.port||(Ge=443));var Fe={host:Ae.hostname||Ae.host||"localhost",path:Ae.path||"/",method:Se,port:Ge,agent:Je,headers:Pe.headers||{},lookup:Pe.lookup};Array.isArray(Pe.timeout)?Fe.requestTimeout=Pe.timeout[Pe.timeout.length-1]:typeof Pe.timeout!="undefined"&&(Fe.requestTimeout=Pe.timeout);var Ke=Pe.auth||Ae.auth;Ke&&(Fe.auth=Ke);var it=Pe.content||Pe.data,rt=Se==="GET"||Se==="HEAD"||Pe.dataAsQueryString;if(!Pe.content&&it&&!(typeof it=="string"||E.isBuffer(it)))if(rt)it=Pe.nestedQuerystring?qs.stringify(it):querystring.stringify(it);else{var et=Fe.headers["Content-Type"]||Fe.headers["content-type"];et||(Pe.contentType==="json"?et="application/json":et="application/x-www-form-urlencoded",Fe.headers["Content-Type"]=et),he(et)==="application/json"?it=JSON.stringify(it):it=Pe.nestedQuerystring?qs.stringify(it):querystring.stringify(it)}rt&&it&&(Fe.path+=(Ae.query?"&":"?")+it,it=null);var $e=0;if(it){var Xe=it.length;E.isBuffer(it)||(Xe=E.byteLength(it)),$e=Fe.headers["Content-Length"]=Xe}Pe.dataType==="json"&&(Fe.headers.Accept="application/json"),typeof Pe.beforeRequest=="function"&&Pe.beforeRequest(Fe);var Ve=null,nt=null,Qe=null,ct=!1,ot=!1,qe=0,_e=-1,Re=!1,te="",de="",Ne=null;Pe.timing&&(Ne={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function ze(){Ve&&(clearTimeout(Ve),Ve=null)}function xe(){nt&&(clearTimeout(nt),nt=null)}function ve(yt,Mt,Et){if(xe(),!Ce){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),je,z.pid,Fe.method,Be),yt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),je,z.pid,yt.name,yt.message,yt.stack);return}var xt=Ce;Ce=null;var jt={};Et&&(_e=Et.statusCode,jt=Et.headers);var At=Date.now()-Le;Ne&&(Ne.contentDownload=At),re("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",At,qe,_e,Fe.method,Fe.host,Fe.path,ot,Ne);var ht={status:_e,statusCode:_e,headers:jt,size:qe,aborted:Re,rt:At,keepAliveSocket:ot,data:Mt,requestUrls:Pe.requestUrls,timing:Ne,remoteAddress:te,remotePort:de};if(yt){var Ct="";Je&&typeof Je.getCurrentStatus=="function"&&(Ct=", agent status: "+JSON.stringify(Je.getCurrentStatus())),yt.message+=", "+Fe.method+" "+Be+" "+_e+" (connected: "+ct+", keepalive socket: "+ot+Ct+`)
|
|
|
headers: `+JSON.stringify(jt),yt.data=Mt,yt.path=Fe.path,yt.status=_e,yt.headers=jt,yt.res=ht}xt(yt,Mt,Pe.streaming?Et:ht),Pe.emitter&&(ke.url=Be,ke.socket=St&&St.connection,ke.options=Fe,ke.size=$e,Pe.emitter.emit("response",{requestId:je,error:yt,ctx:Pe.ctx,req:ke,res:ht}))}function Oe(yt){var Mt=null;if(Pe.followRedirect&&statuses.redirect[yt.statusCode]){Pe._followRedirectCount=(Pe._followRedirectCount||0)+1;var Et=yt.headers.location;if(!Et)Mt=new Error("Got statusCode "+yt.statusCode+" but cannot resolve next location from headers"),Mt.name="FollowRedirectError";else if(Pe._followRedirectCount>Pe.maxRedirects)Mt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Be),Mt.name="MaxRedirectError";else{var xt=Pe.formatRedirectUrl?Pe.formatRedirectUrl(Be,Et):le.resolve(Be,Et);re("Request#%d %s: `redirected` from %s to %s",je,Fe.path,Be,xt),xe(),Pe.headers&&Pe.headers.Host&&pe.test(Et)&&(Pe.headers.Host=null);var jt=Ce;return Ce=null,be.requestWithCallback(xt,Pe,jt),{redirect:!0,error:null}}}return{redirect:!1,error:Mt}}Pe.gzip&&!Fe.headers["Accept-Encoding"]&&!Fe.headers["accept-encoding"]&&(Fe.headers["Accept-Encoding"]="gzip");function We(yt,Mt,Et){var xt=yt.headers["content-encoding"];return Et(null,Mt,xt)}var Ue=Pe.writeStream;re("Request#%d %s %s with headers %j, options.path: %s",je,Se,Be,Fe.headers,Fe.path),Pe.requestUrls.push(Be);function Ye(yt){if(Ne&&(Ne.waiting=Date.now()-Le),re("Request#%d %s `req response` event emit: status %d, headers: %j",je,Be,yt.statusCode,yt.headers),Pe.streaming){var Mt=Oe(yt);if(Mt.redirect){yt.resume();return}return Mt.error?(yt.resume(),ve(Mt.error,null,yt)):ve(null,null,yt)}if(yt.on("close",function(){re("Request#%d %s: `res close` event emit, total size %d",je,Be,qe)}),yt.on("error",function(){re("Request#%d %s: `res error` event emit, total size %d",je,Be,qe)}),yt.on("aborted",function(){Re=!0,re("Request#%d %s: `res aborted` event emit, total size %d",je,Be,qe)}),Ue){var Et=Oe(yt);if(Et.redirect){yt.resume();return}return Et.error?(yt.resume(),Ue.end(),ve(Et.error,null,yt)):(Pe.consumeWriteStream===!1?yt.on("end",ve.bind(null,null,null,yt)):Ue.on("close",function(){re("Request#%d %s: writeStream close event emitted",je,Be),ve(Qe||null,null,yt)}),yt.pipe(Ue))}var xt=[];yt.on("data",function(jt){re("Request#%d %s: `res data` event emit, size %d",je,Be,jt.length),qe+=jt.length,xt.push(jt)}),yt.on("end",function(){var jt=E.concat(xt,qe);if(re("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",je,Be,qe,yt._dumped),Qe)return ve(Qe,jt,yt);var At=Oe(yt);if(At.error)return ve(At.error,jt,yt);At.redirect||We(yt,jt,function(ht,Ct,$t){if(ht)return ve(ht,jt,yt);if(!$t&&De.indexOf(Pe.dataType)>=0){try{Ct=decodeBodyByCharset(Ct,yt)}catch(vt){return re("decodeBodyByCharset error: %s",vt),ve(null,Ct,yt)}if(Pe.dataType==="json")if(qe===0)Ct=null;else{var Xt=parseJSON(Ct,at);Xt.error?ht=Xt.error:Ct=Xt.data}}Re&&re("Request#%d %s: Remote socket was terminated before `response.end()` was called",je,Be),ve(ht,Ct,yt)})})}var st,lt;Array.isArray(Pe.timeout)?(st=ae(Pe.timeout[0]),lt=ae(Pe.timeout[1])):st=lt=ae(Pe.timeout),re("ConnectTimeout: %d, ResponseTimeout: %d",st,lt);function ft(){re("Connect timer ticking, timeout: %d",st),Ve=setTimeout(function(){Ve=null,_e===-1&&(_e=-2);var yt="Connect timeout for "+st+"ms",Mt="ConnectionTimeoutError";St.socket||(Mt="SocketAssignTimeoutError",yt+=", working sockets is full"),Qe=new Error(yt),Qe.name=Mt,Qe.requestId=je,re("ConnectTimeout: Request#%d %s %s: %s, connected: %s",je,Be,Qe.name,yt,ct),Ot()},st)}function Tt(){re("Response timer ticking, timeout: %d",lt),nt=setTimeout(function(){nt=null;var yt="Response timeout for "+lt+"ms",Mt="ResponseTimeoutError";Qe=new Error(yt),Qe.name=Mt,Qe.requestId=je,re("ResponseTimeout: Request#%d %s %s: %s, connected: %s",je,Be,Qe.name,yt,ct),Ot()},lt)}var St;Fe.mode=Pe.mode?Pe.mode:"";try{St=Ze.request(Fe,Ye)}catch(yt){return ve(yt)}typeof window=="undefined"?ft():St.on("requestTimeout",function(){_e===-1&&(_e=-2);var yt="Connect timeout for "+st+"ms",Mt="ConnectionTimeoutError";Qe=new Error(yt),Qe.name=Mt,Qe.requestId=je,Ot()});function Ot(){re("Request#%d %s abort, connected: %s",je,Be,ct),St.socket||(Qe.noSocket=!0,ve(Qe)),St.abort()}return Ne&&St.on("finish",function(){Ne.requestSent=Date.now()-Le}),St.once("socket",function(yt){Ne&&(Ne.queuing=Date.now()-Le);var Mt=yt.readyState;if(Mt==="opening"){yt.once("lookup",function(Et,xt,jt){re("Request#%d %s lookup: %s, %s, %s",je,Be,Et,xt,jt),Ne&&(Ne.dnslookup=Date.now()-Le),xt&&(te=xt)}),yt.once("connect",function(){Ne&&(Ne.connected=Date.now()-Le),ze(),Tt(),re("Request#%d %s new socket connected",je,Be),ct=!0,te||(te=yt.remoteAddress),de=yt.remotePort});return}re("Request#%d %s reuse socket connected, readyState: %s",je,Be,Mt),ct=!0,ot=!0,te||(te=yt.remoteAddress),de=yt.remotePort,ze(),Tt()}),St.on("error",function(yt){(yt.name==="Error"||yt.name==="TypeError")&&(yt.name=ct?"ResponseError":"RequestError"),yt.message+=' (req "error")',re("Request#%d %s `req error` event emit, %s: %s",je,Be,yt.name,yt.message),ve(Qe||yt)}),Ue&&Ue.once("error",function(yt){yt.message+=' (writeStream "error")',Qe=yt,re("Request#%d %s `writeStream error` event emit, %s: %s",je,Be,yt.name,yt.message),Ot()}),Pe.stream?(Pe.stream.pipe(St),Pe.stream.once("error",function(yt){yt.message+=' (stream "error")',Qe=yt,re("Request#%d %s `readStream error` event emit, %s: %s",je,Be,yt.name,yt.message),Ot()})):St.end(it),St.requestId=je,St}}).call(this)}).call(this,a("_process"),a("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},86013:function(Yt,Dt,Ie){"use strict";var ge=Ie(59301),gt=Ie(19248);const a=Te=>{let be;return typeof Te=="object"&&(Te!=null&&Te.clearIcon)?be=Te:Te&&(be={clearIcon:ge.createElement(gt.Z,null)}),be};Dt.Z=a},54500:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ge}});const ge=gt=>gt?typeof gt=="function"?gt():gt:null},62673:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{default:function(){return Ce}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(16632),be=Ie(8654),z=Ie(12919),E=Ie(63872),ie=Ie(48755),oe=Ie(2171),ee=Ie(83397),le=Ie(56553),ne=ge.createContext(null),re=Ie(36170),ae=Ie(74632),se=function(Ee,je){var ke={};for(var Le in Ee)Object.prototype.hasOwnProperty.call(Ee,Le)&&je.indexOf(Le)<0&&(ke[Le]=Ee[Le]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Le=Object.getOwnPropertySymbols(Ee);Ae<Le.length;Ae++)je.indexOf(Le[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Le[Ae])&&(ke[Le[Ae]]=Ee[Le[Ae]]);return ke};const ce=(Ee,je)=>{var ke;const{prefixCls:Le,className:Ae,rootClassName:Se,children:Ge,indeterminate:Ze=!1,style:Je,onMouseEnter:at,onMouseLeave:Fe,skipGroup:Ke=!1,disabled:it}=Ee,rt=se(Ee,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:et,direction:$e,checkbox:Xe}=ge.useContext(ie.E_),Ve=ge.useContext(ne),{isFormItemInput:nt}=ge.useContext(le.aM),Qe=ge.useContext(oe.Z),ct=(ke=(Ve==null?void 0:Ve.disabled)||it)!==null&&ke!==void 0?ke:Qe,ot=ge.useRef(rt.value),qe=ge.useRef(null),_e=(0,be.sQ)(je,qe);ge.useEffect(()=>{Ve==null||Ve.registerValue(rt.value)},[]),ge.useEffect(()=>{if(!Ke)return rt.value!==ot.current&&(Ve==null||Ve.cancelValue(ot.current),Ve==null||Ve.registerValue(rt.value),ot.current=rt.value),()=>Ve==null?void 0:Ve.cancelValue(rt.value)},[rt.value]),ge.useEffect(()=>{var Ye;!((Ye=qe.current)===null||Ye===void 0)&&Ye.input&&(qe.current.input.indeterminate=Ze)},[Ze]);const Re=et("checkbox",Le),te=(0,ee.Z)(Re),[de,Ne,ze]=(0,re.ZP)(Re,te),xe=Object.assign({},rt);Ve&&!Ke&&(xe.onChange=function(){rt.onChange&&rt.onChange.apply(rt,arguments),Ve.toggleOption&&Ve.toggleOption({label:Ge,value:rt.value})},xe.name=Ve.name,xe.checked=Ve.value.includes(rt.value));const ve=a()(`${Re}-wrapper`,{[`${Re}-rtl`]:$e==="rtl",[`${Re}-wrapper-checked`]:xe.checked,[`${Re}-wrapper-disabled`]:ct,[`${Re}-wrapper-in-form-item`]:nt},Xe==null?void 0:Xe.className,Ae,Se,ze,te,Ne),Oe=a()({[`${Re}-indeterminate`]:Ze},E.A,Ne),[We,Ue]=(0,ae.Z)(xe.onClick);return de(ge.createElement(z.Z,{component:"Checkbox",disabled:ct},ge.createElement("label",{className:ve,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Je),onMouseEnter:at,onMouseLeave:Fe,onClick:We},ge.createElement(Te.Z,Object.assign({},xe,{onClick:Ue,prefixCls:Re,className:Oe,disabled:ct,ref:_e})),Ge!==void 0&&ge.createElement("span",{className:`${Re}-label`},Ge))))};var me=ge.forwardRef(ce),he=Ie(94480),ye=Ie(2738),De=function(Ee,je){var ke={};for(var Le in Ee)Object.prototype.hasOwnProperty.call(Ee,Le)&&je.indexOf(Le)<0&&(ke[Le]=Ee[Le]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Le=Object.getOwnPropertySymbols(Ee);Ae<Le.length;Ae++)je.indexOf(Le[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Le[Ae])&&(ke[Le[Ae]]=Ee[Le[Ae]]);return ke},Be=ge.forwardRef((Ee,je)=>{const{defaultValue:ke,children:Le,options:Ae=[],prefixCls:Se,className:Ge,rootClassName:Ze,style:Je,onChange:at}=Ee,Fe=De(Ee,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ke,direction:it}=ge.useContext(ie.E_),[rt,et]=ge.useState(Fe.value||ke||[]),[$e,Xe]=ge.useState([]);ge.useEffect(()=>{"value"in Fe&&et(Fe.value||[])},[Fe.value]);const Ve=ge.useMemo(()=>Ae.map(Oe=>typeof Oe=="string"||typeof Oe=="number"?{label:Oe,value:Oe}:Oe),[Ae]),nt=Oe=>{Xe(We=>We.filter(Ue=>Ue!==Oe))},Qe=Oe=>{Xe(We=>[].concat((0,he.Z)(We),[Oe]))},ct=Oe=>{const We=rt.indexOf(Oe.value),Ue=(0,he.Z)(rt);We===-1?Ue.push(Oe.value):Ue.splice(We,1),"value"in Fe||et(Ue),at==null||at(Ue.filter(Ye=>$e.includes(Ye)).sort((Ye,st)=>{const lt=Ve.findIndex(Tt=>Tt.value===Ye),ft=Ve.findIndex(Tt=>Tt.value===st);return lt-ft}))},ot=Ke("checkbox",Se),qe=`${ot}-group`,_e=(0,ee.Z)(ot),[Re,te,de]=(0,re.ZP)(ot,_e),Ne=(0,ye.Z)(Fe,["value","disabled"]),ze=Ae.length?Ve.map(Oe=>ge.createElement(me,{prefixCls:ot,key:Oe.value.toString(),disabled:"disabled"in Oe?Oe.disabled:Fe.disabled,value:Oe.value,checked:rt.includes(Oe.value),onChange:Oe.onChange,className:`${qe}-item`,style:Oe.style,title:Oe.title,id:Oe.id,required:Oe.required},Oe.label)):Le,xe={toggleOption:ct,value:rt,disabled:Fe.disabled,name:Fe.name,registerValue:Qe,cancelValue:nt},ve=a()(qe,{[`${qe}-rtl`]:it==="rtl"},Ge,Ze,de,_e,te);return Re(ge.createElement("div",Object.assign({className:ve,style:Je},Ne,{ref:je}),ge.createElement(ne.Provider,{value:xe},ze)))});const Pe=me;Pe.Group=Be,Pe.__ANT_CHECKBOX=!0;var Ce=Pe},36170:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{C2:function(){return z}});var ge=Ie(36237),gt=Ie(63356),a=Ie(51636),Te=Ie(16931);const be=E=>{const{checkboxCls:ie}=E,oe=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,gt.Wf)(E)),{display:"inline-flex",flexWrap:"wrap",columnGap:E.marginXS,[`> ${E.antCls}-row`]:{flex:1}}),[oe]:Object.assign(Object.assign({},(0,gt.Wf)(E)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${oe}`]:{marginInlineStart:0},[`&${oe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,gt.Wf)(E)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:E.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,gt.oN)(E))},[`${ie}-inner`]:{boxSizing:"border-box",display:"block",width:E.checkboxSize,height:E.checkboxSize,direction:"ltr",backgroundColor:E.colorBgContainer,border:`${(0,ge.unit)(E.lineWidth)} ${E.lineType} ${E.colorBorder}`,borderRadius:E.borderRadiusSM,borderCollapse:"separate",transition:`all ${E.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:E.calc(E.checkboxSize).div(14).mul(5).equal(),height:E.calc(E.checkboxSize).div(14).mul(8).equal(),border:`${(0,ge.unit)(E.lineWidthBold)} solid ${E.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${E.motionDurationFast} ${E.motionEaseInBack}, opacity ${E.motionDurationFast}`}},"& + span":{paddingInlineStart:E.paddingXS,paddingInlineEnd:E.paddingXS}})},{[`
|
|
|
${oe}:not(${oe}-disabled),
|
|
|
${ie}:not(${ie}-disabled)
|
|
|
`]:{[`&:hover ${ie}-inner`]:{borderColor:E.colorPrimary}},[`${oe}:not(${oe}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:E.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:E.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:E.colorPrimary,borderColor:E.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${E.motionDurationMid} ${E.motionEaseOutBack} ${E.motionDurationFast}`}}},[`
|
|
|
${oe}-checked:not(${oe}-disabled),
|
|
|
${ie}-checked:not(${ie}-disabled)
|
|
|
`]:{[`&:hover ${ie}-inner`]:{backgroundColor:E.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:`${E.colorBgContainer} !important`,borderColor:`${E.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:E.calc(E.fontSizeLG).div(2).equal(),height:E.calc(E.fontSizeLG).div(2).equal(),backgroundColor:E.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${ie}-inner`]:{backgroundColor:`${E.colorBgContainer} !important`,borderColor:`${E.colorPrimary} !important`}}}},{[`${oe}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:E.colorBgContainerDisabled,borderColor:E.colorBorder,"&:after":{borderColor:E.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:E.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:E.colorTextDisabled}}}]};function z(E,ie){const oe=(0,a.mergeToken)(ie,{checkboxCls:`.${E}`,checkboxSize:ie.controlInteractiveSize});return[be(oe)]}Dt.ZP=(0,Te.I$)("Checkbox",(E,ie)=>{let{prefixCls:oe}=ie;return[z(oe,E)]})},38406:function(Yt,Dt,Ie){"use strict";var ge=Ie(59301),gt=Ie(48755),a=Ie(584);const Te=be=>{const{componentName:z}=be,{getPrefixCls:E}=(0,ge.useContext)(gt.E_),ie=E("empty");switch(z){case"Table":case"List":return ge.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ge.createElement(a.Z,{image:a.Z.PRESENTED_IMAGE_SIMPLE,className:`${ie}-small`});case"Table.filter":return null;default:return ge.createElement(a.Z,null)}};Dt.Z=Te},36207:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return We}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(33885),be=Ie(42978),z=Ie(43403),E=Ie(34280),ie=ge.createContext(null),oe=ge.createContext({}),ee=ie,le=Ie(20068),x=Ie(54476),ne=Ie(77900),re=Ie(10228),ae=Ie(26112),se=Ie(75931),ce=Ie(8654),pe=["prefixCls","className","containerRef"],me=function(Ye){var st=Ye.prefixCls,lt=Ye.className,ft=Ye.containerRef,Tt=(0,se.Z)(Ye,pe),St=ge.useContext(oe),Ot=St.panel,yt=(0,ce.x1)(Ot,ft);return ge.createElement("div",(0,x.Z)({className:a()("".concat(st,"-content"),lt),role:"dialog",ref:yt},(0,ae.Z)(Ye,{aria:!0}),{"aria-modal":"true"},Tt))},he=me,ye=Ie(48736);function De(Ue){return typeof Ue=="string"&&String(Number(Ue))===Ue?((0,ye.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ue)):Ue}function Me(Ue){warning(!("wrapperClassName"in Ue),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ue.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Be={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Pe(Ue,Ye){var st,lt,ft,Tt=Ue.prefixCls,St=Ue.open,Ot=Ue.placement,yt=Ue.inline,Mt=Ue.push,Et=Ue.forceRender,xt=Ue.autoFocus,jt=Ue.keyboard,At=Ue.classNames,ht=Ue.rootClassName,Ct=Ue.rootStyle,$t=Ue.zIndex,Xt=Ue.className,vt=Ue.id,Pt=Ue.style,_t=Ue.motion,Kt=Ue.width,er=Ue.height,sr=Ue.children,yr=Ue.mask,xr=Ue.maskClosable,ur=Ue.maskMotion,br=Ue.maskClassName,or=Ue.maskStyle,fr=Ue.afterOpenChange,Jt=Ue.onClose,Qt=Ue.onMouseEnter,Vt=Ue.onMouseOver,rr=Ue.onMouseLeave,ar=Ue.onClick,vr=Ue.onKeyDown,hr=Ue.onKeyUp,Ir=Ue.styles,Or=Ue.drawerRender,Lr=ge.useRef(),Er=ge.useRef(),Zr=ge.useRef();ge.useImperativeHandle(Ye,function(){return Lr.current});var _r=function(Nt){var Bt=Nt.keyCode,Ut=Nt.shiftKey;switch(Bt){case re.Z.TAB:{if(Bt===re.Z.TAB){if(!Ut&&document.activeElement===Zr.current){var cr;(cr=Er.current)===null||cr===void 0||cr.focus({preventScroll:!0})}else if(Ut&&document.activeElement===Er.current){var lr;(lr=Zr.current)===null||lr===void 0||lr.focus({preventScroll:!0})}}break}case re.Z.ESC:{Jt&&jt&&(Nt.stopPropagation(),Jt(Nt));break}}};ge.useEffect(function(){if(St&&xt){var Ht;(Ht=Lr.current)===null||Ht===void 0||Ht.focus({preventScroll:!0})}},[St]);var qt=ge.useState(!1),nr=(0,be.Z)(qt,2),jr=nr[0],Tr=nr[1],It=ge.useContext(ee),Ft;typeof Mt=="boolean"?Ft=Mt?{}:{distance:0}:Ft=Mt||{};var bt=(st=(lt=(ft=Ft)===null||ft===void 0?void 0:ft.distance)!==null&<!==void 0?lt:It==null?void 0:It.pushDistance)!==null&&st!==void 0?st:180,kt=ge.useMemo(function(){return{pushDistance:bt,push:function(){Tr(!0)},pull:function(){Tr(!1)}}},[bt]);ge.useEffect(function(){if(St){var Ht;It==null||(Ht=It.push)===null||Ht===void 0||Ht.call(It)}else{var Nt;It==null||(Nt=It.pull)===null||Nt===void 0||Nt.call(It)}},[St]),ge.useEffect(function(){return function(){var Ht;It==null||(Ht=It.pull)===null||Ht===void 0||Ht.call(It)}},[]);var wt=yr&&ge.createElement(ne.default,(0,x.Z)({key:"mask"},ur,{visible:St}),function(Ht,Nt){var Bt=Ht.className,Ut=Ht.style;return ge.createElement("div",{className:a()("".concat(Tt,"-mask"),Bt,At==null?void 0:At.mask,br),style:(0,Te.Z)((0,Te.Z)((0,Te.Z)({},Ut),or),Ir==null?void 0:Ir.mask),onClick:xr&&St?Jt:void 0,ref:Nt})}),Rt=typeof _t=="function"?_t(Ot):_t,pt={};if(jr&&bt)switch(Ot){case"top":pt.transform="translateY(".concat(bt,"px)");break;case"bottom":pt.transform="translateY(".concat(-bt,"px)");break;case"left":pt.transform="translateX(".concat(bt,"px)");break;default:pt.transform="translateX(".concat(-bt,"px)");break}Ot==="left"||Ot==="right"?pt.width=De(Kt):pt.height=De(er);var Lt={onMouseEnter:Qt,onMouseOver:Vt,onMouseLeave:rr,onClick:ar,onKeyDown:vr,onKeyUp:hr},zt=ge.createElement(ne.default,(0,x.Z)({key:"panel"},Rt,{visible:St,forceRender:Et,onVisibleChanged:function(Nt){fr==null||fr(Nt)},removeOnLeave:!1,leavedClassName:"".concat(Tt,"-content-wrapper-hidden")}),function(Ht,Nt){var Bt=Ht.className,Ut=Ht.style,cr=ge.createElement(he,(0,x.Z)({id:vt,containerRef:Nt,prefixCls:Tt,className:a()(Xt,At==null?void 0:At.content),style:(0,Te.Z)((0,Te.Z)({},Pt),Ir==null?void 0:Ir.content)},(0,ae.Z)(Ue,{aria:!0}),Lt),sr);return ge.createElement("div",(0,x.Z)({className:a()("".concat(Tt,"-content-wrapper"),At==null?void 0:At.wrapper,Bt),style:(0,Te.Z)((0,Te.Z)((0,Te.Z)({},pt),Ut),Ir==null?void 0:Ir.wrapper)},(0,ae.Z)(Ue,{data:!0})),Or?Or(cr):cr)}),Gt=(0,Te.Z)({},Ct);return $t&&(Gt.zIndex=$t),ge.createElement(ee.Provider,{value:kt},ge.createElement("div",{className:a()(Tt,"".concat(Tt,"-").concat(Ot),ht,(0,le.Z)((0,le.Z)({},"".concat(Tt,"-open"),St),"".concat(Tt,"-inline"),yt)),style:Gt,tabIndex:-1,ref:Lr,onKeyDown:_r},wt,ge.createElement("div",{tabIndex:0,ref:Er,style:Be,"aria-hidden":"true","data-sentinel":"start"}),zt,ge.createElement("div",{tabIndex:0,ref:Zr,style:Be,"aria-hidden":"true","data-sentinel":"end"})))}var Ce=ge.forwardRef(Pe),Ee=Ce,je=function(Ye){var st=Ye.open,lt=st===void 0?!1:st,ft=Ye.prefixCls,Tt=ft===void 0?"rc-drawer":ft,St=Ye.placement,Ot=St===void 0?"right":St,yt=Ye.autoFocus,Mt=yt===void 0?!0:yt,Et=Ye.keyboard,xt=Et===void 0?!0:Et,jt=Ye.width,At=jt===void 0?378:jt,ht=Ye.mask,Ct=ht===void 0?!0:ht,$t=Ye.maskClosable,Xt=$t===void 0?!0:$t,vt=Ye.getContainer,Pt=Ye.forceRender,_t=Ye.afterOpenChange,Kt=Ye.destroyOnClose,er=Ye.onMouseEnter,sr=Ye.onMouseOver,yr=Ye.onMouseLeave,xr=Ye.onClick,ur=Ye.onKeyDown,br=Ye.onKeyUp,or=Ye.panelRef,fr=ge.useState(!1),Jt=(0,be.Z)(fr,2),Qt=Jt[0],Vt=Jt[1],rr=ge.useState(!1),ar=(0,be.Z)(rr,2),vr=ar[0],hr=ar[1];(0,E.Z)(function(){hr(!0)},[]);var Ir=vr?lt:!1,Or=ge.useRef(),Lr=ge.useRef();(0,E.Z)(function(){Ir&&(Lr.current=document.activeElement)},[Ir]);var Er=function(jr){var Tr;if(Vt(jr),_t==null||_t(jr),!jr&&Lr.current&&!((Tr=Or.current)!==null&&Tr!==void 0&&Tr.contains(Lr.current))){var It;(It=Lr.current)===null||It===void 0||It.focus({preventScroll:!0})}},Zr=ge.useMemo(function(){return{panel:or}},[or]);if(!Pt&&!Qt&&!Ir&&Kt)return null;var _r={onMouseEnter:er,onMouseOver:sr,onMouseLeave:yr,onClick:xr,onKeyDown:ur,onKeyUp:br},qt=(0,Te.Z)((0,Te.Z)({},Ye),{},{open:Ir,prefixCls:Tt,placement:Ot,autoFocus:Mt,keyboard:xt,width:At,mask:Ct,maskClosable:Xt,inline:vt===!1,afterOpenChange:Er,ref:Or},_r);return ge.createElement(oe.Provider,{value:Zr},ge.createElement(z.Z,{open:Ir||Pt||Qt,autoDestroy:!1,getContainer:vt,autoLock:Ct&&(Ir||Qt)},ge.createElement(Ee,qt)))},ke=je,Le=ke,Ae=Ie(62487),Se=Ie(75030),Ge=Ie(86641),Ze=Ie(55743),Je=Ie(48755),at=Ie(91190),Fe=Ie(78776),Ke=Ie(458),rt=Ue=>{var Ye,st;const{prefixCls:lt,title:ft,footer:Tt,extra:St,loading:Ot,onClose:yt,headerStyle:Mt,bodyStyle:Et,footerStyle:xt,children:jt,classNames:At,styles:ht}=Ue,Ct=(0,Je.dj)("drawer"),$t=ge.useCallback(Kt=>ge.createElement("button",{type:"button",onClick:yt,"aria-label":"Close",className:`${lt}-close`},Kt),[yt]),[Xt,vt]=(0,Fe.Z)((0,Fe.w)(Ue),(0,Fe.w)(Ct),{closable:!0,closeIconRender:$t}),Pt=ge.useMemo(()=>{var Kt,er;return!ft&&!Xt?null:ge.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Kt=Ct.styles)===null||Kt===void 0?void 0:Kt.header),Mt),ht==null?void 0:ht.header),className:a()(`${lt}-header`,{[`${lt}-header-close-only`]:Xt&&!ft&&!St},(er=Ct.classNames)===null||er===void 0?void 0:er.header,At==null?void 0:At.header)},ge.createElement("div",{className:`${lt}-header-title`},vt,ft&&ge.createElement("div",{className:`${lt}-title`},ft)),St&&ge.createElement("div",{className:`${lt}-extra`},St))},[Xt,vt,St,Mt,lt,ft]),_t=ge.useMemo(()=>{var Kt,er;if(!Tt)return null;const sr=`${lt}-footer`;return ge.createElement("div",{className:a()(sr,(Kt=Ct.classNames)===null||Kt===void 0?void 0:Kt.footer,At==null?void 0:At.footer),style:Object.assign(Object.assign(Object.assign({},(er=Ct.styles)===null||er===void 0?void 0:er.footer),xt),ht==null?void 0:ht.footer)},Tt)},[Tt,xt,lt]);return ge.createElement(ge.Fragment,null,Pt,ge.createElement("div",{className:a()(`${lt}-body`,At==null?void 0:At.body,(Ye=Ct.classNames)===null||Ye===void 0?void 0:Ye.body),style:Object.assign(Object.assign(Object.assign({},(st=Ct.styles)===null||st===void 0?void 0:st.body),Et),ht==null?void 0:ht.body)},Ot?ge.createElement(Ke.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${lt}-body-skeleton`}):jt),_t)},et=Ie(36237),$e=Ie(63356),Xe=Ie(16931),Ve=Ie(51636);const nt=Ue=>{const Ye="100%";return{left:`translateX(-${Ye})`,right:`translateX(${Ye})`,top:`translateY(-${Ye})`,bottom:`translateY(${Ye})`}[Ue]},Qe=(Ue,Ye)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ue),{"&-active":Ye}),"&-leave":Object.assign(Object.assign({},Ye),{"&-active":Ue})}),ct=(Ue,Ye)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ye}`}}},Qe({opacity:Ue},{opacity:1})),ot=(Ue,Ye)=>[ct(.7,Ye),Qe({transform:nt(Ue)},{transform:"none"})];var _e=Ue=>{const{componentCls:Ye,motionDurationSlow:st}=Ue;return{[Ye]:{[`${Ye}-mask-motion`]:ct(0,st),[`${Ye}-panel-motion`]:["left","right","top","bottom"].reduce((lt,ft)=>Object.assign(Object.assign({},lt),{[`&-${ft}`]:ot(ft,st)}),{})}}};const Re=Ue=>{const{borderRadiusSM:Ye,componentCls:st,zIndexPopup:lt,colorBgMask:ft,colorBgElevated:Tt,motionDurationSlow:St,motionDurationMid:Ot,paddingXS:yt,padding:Mt,paddingLG:Et,fontSizeLG:xt,lineHeightLG:jt,lineWidth:At,lineType:ht,colorSplit:Ct,marginXS:$t,colorIcon:Xt,colorIconHover:vt,colorBgTextHover:Pt,colorBgTextActive:_t,colorText:Kt,fontWeightStrong:er,footerPaddingBlock:sr,footerPaddingInline:yr,calc:xr}=Ue,ur=`${st}-content-wrapper`;return{[st]:{position:"fixed",inset:0,zIndex:lt,pointerEvents:"none",color:Kt,"&-pure":{position:"relative",background:Tt,display:"flex",flexDirection:"column",[`&${st}-left`]:{boxShadow:Ue.boxShadowDrawerLeft},[`&${st}-right`]:{boxShadow:Ue.boxShadowDrawerRight},[`&${st}-top`]:{boxShadow:Ue.boxShadowDrawerUp},[`&${st}-bottom`]:{boxShadow:Ue.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${st}-mask`]:{position:"absolute",inset:0,zIndex:lt,background:ft,pointerEvents:"auto"},[ur]:{position:"absolute",zIndex:lt,maxWidth:"100vw",transition:`all ${St}`,"&-hidden":{display:"none"}},[`&-left > ${ur}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ue.boxShadowDrawerLeft},[`&-right > ${ur}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ue.boxShadowDrawerRight},[`&-top > ${ur}`]:{top:0,insetInline:0,boxShadow:Ue.boxShadowDrawerUp},[`&-bottom > ${ur}`]:{bottom:0,insetInline:0,boxShadow:Ue.boxShadowDrawerDown},[`${st}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Tt,pointerEvents:"auto"},[`${st}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,et.unit)(Mt)} ${(0,et.unit)(Et)}`,fontSize:xt,lineHeight:jt,borderBottom:`${(0,et.unit)(At)} ${ht} ${Ct}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${st}-extra`]:{flex:"none"},[`${st}-close`]:Object.assign({display:"inline-flex",width:xr(xt).add(yt).equal(),height:xr(xt).add(yt).equal(),borderRadius:Ye,justifyContent:"center",alignItems:"center",marginInlineEnd:$t,color:Xt,fontWeight:er,fontSize:xt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ot}`,textRendering:"auto","&:hover":{color:vt,backgroundColor:Pt,textDecoration:"none"},"&:active":{backgroundColor:_t}},(0,$e.Qy)(Ue)),[`${st}-title`]:{flex:1,margin:0,fontWeight:Ue.fontWeightStrong,fontSize:xt,lineHeight:jt},[`${st}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Et,overflow:"auto",[`${st}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${st}-footer`]:{flexShrink:0,padding:`${(0,et.unit)(sr)} ${(0,et.unit)(yr)}`,borderTop:`${(0,et.unit)(At)} ${ht} ${Ct}`},"&-rtl":{direction:"rtl"}}}},te=Ue=>({zIndexPopup:Ue.zIndexPopupBase,footerPaddingBlock:Ue.paddingXS,footerPaddingInline:Ue.padding});var de=(0,Xe.I$)("Drawer",Ue=>{const Ye=(0,Ve.mergeToken)(Ue,{});return[Re(Ye),_e(Ye)]},te),Ne=function(Ue,Ye){var st={};for(var lt in Ue)Object.prototype.hasOwnProperty.call(Ue,lt)&&Ye.indexOf(lt)<0&&(st[lt]=Ue[lt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,lt=Object.getOwnPropertySymbols(Ue);ft<lt.length;ft++)Ye.indexOf(lt[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ue,lt[ft])&&(st[lt[ft]]=Ue[lt[ft]]);return st};const ze=null,xe={distance:180},ve=Ue=>{var Ye;const{rootClassName:st,width:lt,height:ft,size:Tt="default",mask:St=!0,push:Ot=xe,open:yt,afterOpenChange:Mt,onClose:Et,prefixCls:xt,getContainer:jt,style:At,className:ht,visible:Ct,afterVisibleChange:$t,maskStyle:Xt,drawerStyle:vt,contentWrapperStyle:Pt}=Ue,_t=Ne(Ue,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Kt,getPrefixCls:er,direction:sr,className:yr,style:xr,classNames:ur,styles:br}=(0,Je.dj)("drawer"),or=er("drawer",xt),[fr,Jt,Qt]=de(or),Vt=jt===void 0&&Kt?()=>Kt(document.body):jt,rr=a()({"no-mask":!St,[`${or}-rtl`]:sr==="rtl"},st,Jt,Qt),ar=ge.useMemo(()=>lt!=null?lt:Tt==="large"?736:378,[lt,Tt]),vr=ge.useMemo(()=>ft!=null?ft:Tt==="large"?736:378,[ft,Tt]),hr={motionName:(0,Ge.m)(or,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Ir=qt=>({motionName:(0,Ge.m)(or,`panel-motion-${qt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Or=(0,at.H)(),[Lr,Er]=(0,Se.Cn)("Drawer",_t.zIndex),{classNames:Zr={},styles:_r={}}=_t;return fr(ge.createElement(Ae.Z,{form:!0,space:!0},ge.createElement(Ze.Z.Provider,{value:Er},ge.createElement(Le,Object.assign({prefixCls:or,onClose:Et,maskMotion:hr,motion:Ir},_t,{classNames:{mask:a()(Zr.mask,ur.mask),content:a()(Zr.content,ur.content),wrapper:a()(Zr.wrapper,ur.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},_r.mask),Xt),br.mask),content:Object.assign(Object.assign(Object.assign({},_r.content),vt),br.content),wrapper:Object.assign(Object.assign(Object.assign({},_r.wrapper),Pt),br.wrapper)},open:yt!=null?yt:Ct,mask:St,push:Ot,width:ar,height:vr,style:Object.assign(Object.assign({},xr),At),className:a()(yr,ht),rootClassName:rr,getContainer:Vt,afterOpenChange:Mt!=null?Mt:$t,panelRef:Or,zIndex:Lr}),ge.createElement(rt,Object.assign({prefixCls:or},_t,{onClose:Et}))))))},Oe=Ue=>{const{prefixCls:Ye,style:st,className:lt,placement:ft="right"}=Ue,Tt=Ne(Ue,["prefixCls","style","className","placement"]),{getPrefixCls:St}=ge.useContext(Je.E_),Ot=St("drawer",Ye),[yt,Mt,Et]=de(Ot),xt=a()(Ot,`${Ot}-pure`,`${Ot}-${ft}`,Mt,Et,lt);return yt(ge.createElement("div",{className:xt,style:st},ge.createElement(rt,Object.assign({prefixCls:Ot},Tt))))};ve._InternalPanelDoNotUseOrYouWillBeFired=Oe;var We=ve},19563:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return et}});var ge=Ie(59301),gt=Ie(33853),a=Ie(38819),Te=Ie(92310),be=Ie.n(Te),z=Ie(96478),E=Ie(6089),ie=Ie(18929),oe=Ie(2738),ee=Ie(75030),x=$e=>typeof $e!="object"&&typeof $e!="function"||$e===null,ne=Ie(52838),re=Ie(45915),ae=Ie(22703),se=Ie(32383),ce=Ie(55743),pe=Ie(48755),me=Ie(83397),he=Ie(93041),ye=Ie(78857),De=Ie(57700),Me=Ie(36237),Be=Ie(63356),Pe=Ie(46e3),Ce=Ie(93873),Ee=Ie(34925),je=Ie(37645),ke=Ie(36305),Le=Ie(16931),Ae=Ie(51636),Ge=$e=>{const{componentCls:Xe,menuCls:Ve,colorError:nt,colorTextLightSolid:Qe}=$e,ct=`${Ve}-item`;return{[`${Xe}, ${Xe}-menu-submenu`]:{[`${Ve} ${ct}`]:{[`&${ct}-danger:not(${ct}-disabled)`]:{color:nt,"&:hover":{color:Qe,backgroundColor:nt}}}}}};const Ze=$e=>{const{componentCls:Xe,menuCls:Ve,zIndexPopup:nt,dropdownArrowDistance:Qe,sizePopupArrow:ct,antCls:ot,iconCls:qe,motionDurationMid:_e,paddingBlock:Re,fontSize:te,dropdownEdgeChildPadding:de,colorTextDisabled:Ne,fontSizeIcon:ze,controlPaddingHorizontal:xe,colorBgElevated:ve}=$e;return[{[Xe]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:nt,display:"block","&::before":{position:"absolute",insetBlock:$e.calc(ct).div(2).sub(Qe).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${ot}-btn`]:{[`& > ${qe}-down, & > ${ot}-btn-icon > ${qe}-down`]:{fontSize:ze}},[`${Xe}-wrap`]:{position:"relative",[`${ot}-btn > ${qe}-down`]:{fontSize:ze},[`${qe}-down::before`]:{transition:`transform ${_e}`}},[`${Xe}-wrap-open`]:{[`${qe}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ot}-slide-down-enter${ot}-slide-down-enter-active${Xe}-placement-bottomLeft,
|
|
|
&${ot}-slide-down-appear${ot}-slide-down-appear-active${Xe}-placement-bottomLeft,
|
|
|
&${ot}-slide-down-enter${ot}-slide-down-enter-active${Xe}-placement-bottom,
|
|
|
&${ot}-slide-down-appear${ot}-slide-down-appear-active${Xe}-placement-bottom,
|
|
|
&${ot}-slide-down-enter${ot}-slide-down-enter-active${Xe}-placement-bottomRight,
|
|
|
&${ot}-slide-down-appear${ot}-slide-down-appear-active${Xe}-placement-bottomRight`]:{animationName:Pe.fJ},[`&${ot}-slide-up-enter${ot}-slide-up-enter-active${Xe}-placement-topLeft,
|
|
|
&${ot}-slide-up-appear${ot}-slide-up-appear-active${Xe}-placement-topLeft,
|
|
|
&${ot}-slide-up-enter${ot}-slide-up-enter-active${Xe}-placement-top,
|
|
|
&${ot}-slide-up-appear${ot}-slide-up-appear-active${Xe}-placement-top,
|
|
|
&${ot}-slide-up-enter${ot}-slide-up-enter-active${Xe}-placement-topRight,
|
|
|
&${ot}-slide-up-appear${ot}-slide-up-appear-active${Xe}-placement-topRight`]:{animationName:Pe.Qt},[`&${ot}-slide-down-leave${ot}-slide-down-leave-active${Xe}-placement-bottomLeft,
|
|
|
&${ot}-slide-down-leave${ot}-slide-down-leave-active${Xe}-placement-bottom,
|
|
|
&${ot}-slide-down-leave${ot}-slide-down-leave-active${Xe}-placement-bottomRight`]:{animationName:Pe.Uw},[`&${ot}-slide-up-leave${ot}-slide-up-leave-active${Xe}-placement-topLeft,
|
|
|
&${ot}-slide-up-leave${ot}-slide-up-leave-active${Xe}-placement-top,
|
|
|
&${ot}-slide-up-leave${ot}-slide-up-leave-active${Xe}-placement-topRight`]:{animationName:Pe.ly}}},(0,je.ZP)($e,ve,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Xe} ${Ve}`]:{position:"relative",margin:0},[`${Ve}-submenu-popup`]:{position:"absolute",zIndex:nt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Xe}, ${Xe}-menu-submenu`]:Object.assign(Object.assign({},(0,Be.Wf)($e)),{[Ve]:Object.assign(Object.assign({padding:de,listStyleType:"none",backgroundColor:ve,backgroundClip:"padding-box",borderRadius:$e.borderRadiusLG,outline:"none",boxShadow:$e.boxShadowSecondary},(0,Be.Qy)($e)),{"&:empty":{padding:0,boxShadow:"none"},[`${Ve}-item-group-title`]:{padding:`${(0,Me.unit)(Re)} ${(0,Me.unit)(xe)}`,color:$e.colorTextDescription,transition:`all ${_e}`},[`${Ve}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ve}-item-icon`]:{minWidth:te,marginInlineEnd:$e.marginXS,fontSize:$e.fontSizeSM},[`${Ve}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${_e}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Ve}-item-extra`]:{paddingInlineStart:$e.padding,marginInlineStart:"auto",fontSize:$e.fontSizeSM,color:$e.colorTextDescription}},[`${Ve}-item, ${Ve}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Me.unit)(Re)} ${(0,Me.unit)(xe)}`,color:$e.colorText,fontWeight:"normal",fontSize:te,lineHeight:$e.lineHeight,cursor:"pointer",transition:`all ${_e}`,borderRadius:$e.borderRadiusSM,"&:hover, &-active":{backgroundColor:$e.controlItemBgHover}},(0,Be.Qy)($e)),{"&-selected":{color:$e.colorPrimary,backgroundColor:$e.controlItemBgActive,"&:hover, &-active":{backgroundColor:$e.controlItemBgActiveHover}},"&-disabled":{color:Ne,cursor:"not-allowed","&:hover":{color:Ne,backgroundColor:ve,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Me.unit)($e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:$e.colorSplit},[`${Xe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:$e.paddingXS,[`${Xe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:$e.colorTextDescription,fontSize:ze,fontStyle:"normal"}}}),[`${Ve}-item-group-list`]:{margin:`0 ${(0,Me.unit)($e.marginXS)}`,padding:0,listStyle:"none"},[`${Ve}-submenu-title`]:{paddingInlineEnd:$e.calc(xe).add($e.fontSizeSM).equal()},[`${Ve}-submenu-vertical`]:{position:"relative"},[`${Ve}-submenu${Ve}-submenu-disabled ${Xe}-menu-submenu-title`]:{[`&, ${Xe}-menu-submenu-arrow-icon`]:{color:Ne,backgroundColor:ve,cursor:"not-allowed"}},[`${Ve}-submenu-selected ${Xe}-menu-submenu-title`]:{color:$e.colorPrimary}})})},[(0,Pe.oN)($e,"slide-up"),(0,Pe.oN)($e,"slide-down"),(0,Ce.Fm)($e,"move-up"),(0,Ce.Fm)($e,"move-down"),(0,Ee._y)($e,"zoom-big")]]},Je=$e=>Object.assign(Object.assign({zIndexPopup:$e.zIndexPopupBase+50,paddingBlock:($e.controlHeight-$e.fontSize*$e.lineHeight)/2},(0,je.wZ)({contentRadius:$e.borderRadiusLG,limitVerticalRadius:!0})),(0,ke.w)($e));var at=(0,Le.I$)("Dropdown",$e=>{const{marginXXS:Xe,sizePopupArrow:Ve,paddingXXS:nt,componentCls:Qe}=$e,ct=(0,Ae.mergeToken)($e,{menuCls:`${Qe}-menu`,dropdownArrowDistance:$e.calc(Ve).div(2).add(Xe).equal(),dropdownEdgeChildPadding:nt});return[Ze(ct),Ge(ct)]},Je,{resetStyle:!1});const Fe=null,Ke=$e=>{var Xe;const{menu:Ve,arrow:nt,prefixCls:Qe,children:ct,trigger:ot,disabled:qe,dropdownRender:_e,getPopupContainer:Re,overlayClassName:te,rootClassName:de,overlayStyle:Ne,open:ze,onOpenChange:xe,visible:ve,onVisibleChange:Oe,mouseEnterDelay:We=.15,mouseLeaveDelay:Ue=.1,autoAdjustOverflow:Ye=!0,placement:st="",overlay:lt,transitionName:ft}=$e,{getPopupContainer:Tt,getPrefixCls:St,direction:Ot,dropdown:yt}=ge.useContext(pe.E_),Mt=(0,se.ln)("Dropdown"),Et=ge.useMemo(()=>{const Vt=St();return ft!==void 0?ft:st.includes("top")?`${Vt}-slide-down`:`${Vt}-slide-up`},[St,st,ft]),xt=ge.useMemo(()=>st?st.includes("Center")?st.slice(0,st.indexOf("Center")):st:Ot==="rtl"?"bottomRight":"bottomLeft",[st,Ot]),jt=St("dropdown",Qe),At=(0,me.Z)(jt),[ht,Ct,$t]=at(jt,At),[,Xt]=(0,De.ZP)(),vt=ge.Children.only(x(ct)?ge.createElement("span",null,ct):ct),Pt=(0,ae.Tm)(vt,{className:be()(`${jt}-trigger`,{[`${jt}-rtl`]:Ot==="rtl"},vt.props.className),disabled:(Xe=vt.props.disabled)!==null&&Xe!==void 0?Xe:qe}),_t=qe?[]:ot,Kt=!!(_t!=null&&_t.includes("contextMenu")),[er,sr]=(0,ie.Z)(!1,{value:ze!=null?ze:ve}),yr=(0,E.Z)(Vt=>{xe==null||xe(Vt,{source:"trigger"}),Oe==null||Oe(Vt),sr(Vt)}),xr=be()(te,de,Ct,$t,At,yt==null?void 0:yt.className,{[`${jt}-rtl`]:Ot==="rtl"}),ur=(0,ne.Z)({arrowPointAtCenter:typeof nt=="object"&&nt.pointAtCenter,autoAdjustOverflow:Ye,offset:Xt.marginXXS,arrowWidth:nt?Xt.sizePopupArrow:0,borderRadius:Xt.borderRadius}),br=ge.useCallback(()=>{Ve!=null&&Ve.selectable&&(Ve!=null&&Ve.multiple)||(xe==null||xe(!1,{source:"menu"}),sr(!1))},[Ve==null?void 0:Ve.selectable,Ve==null?void 0:Ve.multiple]),or=()=>{let Vt;return Ve!=null&&Ve.items?Vt=ge.createElement(he.default,Object.assign({},Ve)):typeof lt=="function"?Vt=lt():Vt=lt,_e&&(Vt=_e(Vt)),Vt=ge.Children.only(typeof Vt=="string"?ge.createElement("span",null,Vt):Vt),ge.createElement(ye.J,{prefixCls:`${jt}-menu`,rootClassName:be()($t,At),expandIcon:ge.createElement("span",{className:`${jt}-menu-submenu-arrow`},Ot==="rtl"?ge.createElement(gt.Z,{className:`${jt}-menu-submenu-arrow-icon`}):ge.createElement(a.Z,{className:`${jt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:br,validator:rr=>{let{mode:ar}=rr}},Vt)},[fr,Jt]=(0,ee.Cn)("Dropdown",Ne==null?void 0:Ne.zIndex);let Qt=ge.createElement(z.Z,Object.assign({alignPoint:Kt},(0,oe.Z)($e,["rootClassName"]),{mouseEnterDelay:We,mouseLeaveDelay:Ue,visible:er,builtinPlacements:ur,arrow:!!nt,overlayClassName:xr,prefixCls:jt,getPopupContainer:Re||Tt,transitionName:Et,trigger:_t,overlay:or,placement:xt,onVisibleChange:yr,overlayStyle:Object.assign(Object.assign(Object.assign({},yt==null?void 0:yt.style),Ne),{zIndex:fr})}),Pt);return fr&&(Qt=ge.createElement(ce.Z.Provider,{value:Jt},Qt)),ht(Qt)},it=(0,re.Z)(Ke,"align",void 0,"dropdown",$e=>$e),rt=$e=>ge.createElement(it,Object.assign({},$e),ge.createElement("span",null));Ke._InternalPanelDoNotUseOrYouWillBeFired=rt;var et=Ke},75727:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return re}});var ge=Ie(19563),gt=Ie(59301),a=Ie(18785),Te=Ie(92310),be=Ie.n(Te),z=Ie(7939),E=Ie(48755),ie=Ie(44104),oe=Ie(70045),ee=function(ae,se){var ce={};for(var pe in ae)Object.prototype.hasOwnProperty.call(ae,pe)&&se.indexOf(pe)<0&&(ce[pe]=ae[pe]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,pe=Object.getOwnPropertySymbols(ae);me<pe.length;me++)se.indexOf(pe[me])<0&&Object.prototype.propertyIsEnumerable.call(ae,pe[me])&&(ce[pe[me]]=ae[pe[me]]);return ce};const le=ae=>{const{getPopupContainer:se,getPrefixCls:ce,direction:pe}=gt.useContext(E.E_),{prefixCls:me,type:he="default",danger:ye,disabled:De,loading:Me,onClick:Be,htmlType:Pe,children:Ce,className:Ee,menu:je,arrow:ke,autoFocus:Le,overlay:Ae,trigger:Se,align:Ge,open:Ze,onOpenChange:Je,placement:at,getPopupContainer:Fe,href:Ke,icon:it=gt.createElement(a.Z,null),title:rt,buttonsRender:et=We=>We,mouseEnterDelay:$e,mouseLeaveDelay:Xe,overlayClassName:Ve,overlayStyle:nt,destroyPopupOnHide:Qe,dropdownRender:ct}=ae,ot=ee(ae,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),qe=ce("dropdown",me),_e=`${qe}-button`,Re={menu:je,arrow:ke,autoFocus:Le,align:Ge,disabled:De,trigger:De?[]:Se,onOpenChange:Je,getPopupContainer:Fe||se,mouseEnterDelay:$e,mouseLeaveDelay:Xe,overlayClassName:Ve,overlayStyle:nt,destroyPopupOnHide:Qe,dropdownRender:ct},{compactSize:te,compactItemClassnames:de}=(0,oe.ri)(qe,pe),Ne=be()(_e,de,Ee);"overlay"in ae&&(Re.overlay=Ae),"open"in ae&&(Re.open=Ze),"placement"in ae?Re.placement=at:Re.placement=pe==="rtl"?"bottomLeft":"bottomRight";const ze=gt.createElement(z.ZP,{type:he,danger:ye,disabled:De,loading:Me,onClick:Be,htmlType:Pe,href:Ke,title:rt},Ce),xe=gt.createElement(z.ZP,{type:he,danger:ye,icon:it}),[ve,Oe]=et([ze,xe]);return gt.createElement(ie.Z.Compact,Object.assign({className:Ne,size:te,block:!0},ot),ve,gt.createElement(ge.Z,Object.assign({},Re),Oe))};le.__ANT_BUTTON=!0;var x=le;const ne=ge.Z;ne.Button=x;var re=ne},584:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return he}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(9017),be=Ie(17835),z=Ie(57700),ie=()=>{const[,ye]=(0,z.ZP)(),[De]=(0,Te.Z)("Empty"),Be=new be.FastColor(ye.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return ge.createElement("svg",{style:Be,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},ge.createElement("title",null,(De==null?void 0:De.description)||"Empty"),ge.createElement("g",{fill:"none",fillRule:"evenodd"},ge.createElement("g",{transform:"translate(24 31.67)"},ge.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),ge.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),ge.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),ge.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),ge.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),ge.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),ge.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},ge.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),ge.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ee=()=>{const[,ye]=(0,z.ZP)(),[De]=(0,Te.Z)("Empty"),{colorFill:Me,colorFillTertiary:Be,colorFillQuaternary:Pe,colorBgContainer:Ce}=ye,{borderColor:Ee,shadowColor:je,contentColor:ke}=(0,ge.useMemo)(()=>({borderColor:new be.FastColor(Me).onBackground(Ce).toHexString(),shadowColor:new be.FastColor(Be).onBackground(Ce).toHexString(),contentColor:new be.FastColor(Pe).onBackground(Ce).toHexString()}),[Me,Be,Pe,Ce]);return ge.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},ge.createElement("title",null,(De==null?void 0:De.description)||"Empty"),ge.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},ge.createElement("ellipse",{fill:je,cx:"32",cy:"33",rx:"32",ry:"7"}),ge.createElement("g",{fillRule:"nonzero",stroke:Ee},ge.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),ge.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:ke}))))},le=Ie(16931),x=Ie(51636);const ne=ye=>{const{componentCls:De,margin:Me,marginXS:Be,marginXL:Pe,fontSize:Ce,lineHeight:Ee}=ye;return{[De]:{marginInline:Be,fontSize:Ce,lineHeight:Ee,textAlign:"center",[`${De}-image`]:{height:ye.emptyImgHeight,marginBottom:Be,opacity:ye.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${De}-description`]:{color:ye.colorTextDescription},[`${De}-footer`]:{marginTop:Me},"&-normal":{marginBlock:Pe,color:ye.colorTextDescription,[`${De}-description`]:{color:ye.colorTextDescription},[`${De}-image`]:{height:ye.emptyImgHeightMD}},"&-small":{marginBlock:Be,color:ye.colorTextDescription,[`${De}-image`]:{height:ye.emptyImgHeightSM}}}}};var re=(0,le.I$)("Empty",ye=>{const{componentCls:De,controlHeightLG:Me,calc:Be}=ye,Pe=(0,x.mergeToken)(ye,{emptyImgCls:`${De}-img`,emptyImgHeight:Be(Me).mul(2.5).equal(),emptyImgHeightMD:Me,emptyImgHeightSM:Be(Me).mul(.875).equal()});return[ne(Pe)]}),ae=Ie(48755),se=function(ye,De){var Me={};for(var Be in ye)Object.prototype.hasOwnProperty.call(ye,Be)&&De.indexOf(Be)<0&&(Me[Be]=ye[Be]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Be=Object.getOwnPropertySymbols(ye);Pe<Be.length;Pe++)De.indexOf(Be[Pe])<0&&Object.prototype.propertyIsEnumerable.call(ye,Be[Pe])&&(Me[Be[Pe]]=ye[Be[Pe]]);return Me};const ce=ge.createElement(ie,null),pe=ge.createElement(ee,null),me=ye=>{const{className:De,rootClassName:Me,prefixCls:Be,image:Pe=ce,description:Ce,children:Ee,imageStyle:je,style:ke,classNames:Le,styles:Ae}=ye,Se=se(ye,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Ge,direction:Ze,className:Je,style:at,classNames:Fe,styles:Ke}=(0,ae.dj)("empty"),it=Ge("empty",Be),[rt,et,$e]=re(it),[Xe]=(0,Te.Z)("Empty"),Ve=typeof Ce!="undefined"?Ce:Xe==null?void 0:Xe.description,nt=typeof Ve=="string"?Ve:"empty";let Qe=null;return typeof Pe=="string"?Qe=ge.createElement("img",{alt:nt,src:Pe}):Qe=Pe,rt(ge.createElement("div",Object.assign({className:a()(et,$e,it,Je,{[`${it}-normal`]:Pe===pe,[`${it}-rtl`]:Ze==="rtl"},De,Me,Fe.root,Le==null?void 0:Le.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},Ke.root),at),Ae==null?void 0:Ae.root),ke)},Se),ge.createElement("div",{className:a()(`${it}-image`,Fe.image,Le==null?void 0:Le.image),style:Object.assign(Object.assign(Object.assign({},je),Ke.image),Ae==null?void 0:Ae.image)},Qe),Ve&&ge.createElement("div",{className:a()(`${it}-description`,Fe.description,Le==null?void 0:Le.description),style:Object.assign(Object.assign({},Ke.description),Ae==null?void 0:Ae.description)},Ve),Ee&&ge.createElement("div",{className:a()(`${it}-footer`,Fe.footer,Le==null?void 0:Le.footer),style:Object.assign(Object.assign({},Ke.footer),Ae==null?void 0:Ae.footer)},Ee)))};me.PRESENTED_IMAGE_DEFAULT=ce,me.PRESENTED_IMAGE_SIMPLE=pe;var he=me},28284:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{default:function(){return Ft}});var ge=Ie(56553),gt=Ie(94480),a=Ie(59301),Te=Ie(92310),be=Ie.n(Te),z=Ie(77900),E=Ie(86641),ie=Ie(83397);function oe(bt){const[kt,wt]=a.useState(bt);return a.useEffect(()=>{const Rt=setTimeout(()=>{wt(bt)},bt.length?0:10);return()=>{clearTimeout(Rt)}},[bt]),kt}var ee=Ie(36237),le=Ie(63356),x=Ie(34925),ne=Ie(34961),re=Ie(51636),ae=Ie(16931),ce=bt=>{const{componentCls:kt}=bt,wt=`${kt}-show-help`,Rt=`${kt}-show-help-item`;return{[wt]:{transition:`opacity ${bt.motionDurationFast} ${bt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Rt]:{overflow:"hidden",transition:`height ${bt.motionDurationFast} ${bt.motionEaseInOut},
|
|
|
opacity ${bt.motionDurationFast} ${bt.motionEaseInOut},
|
|
|
transform ${bt.motionDurationFast} ${bt.motionEaseInOut} !important`,[`&${Rt}-appear, &${Rt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Rt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const pe=bt=>({legend:{display:"block",width:"100%",marginBottom:bt.marginLG,padding:0,color:bt.colorTextDescription,fontSize:bt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ee.unit)(bt.lineWidth)} ${bt.lineType} ${bt.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,ee.unit)(bt.controlOutlineWidth)} ${bt.controlOutline}`},output:{display:"block",paddingTop:15,color:bt.colorText,fontSize:bt.fontSize,lineHeight:bt.lineHeight}}),me=(bt,kt)=>{const{formItemCls:wt}=bt;return{[wt]:{[`${wt}-label > label`]:{height:kt},[`${wt}-control-input`]:{minHeight:kt}}}},he=bt=>{const{componentCls:kt}=bt;return{[bt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,le.Wf)(bt)),pe(bt)),{[`${kt}-text`]:{display:"inline-block",paddingInlineEnd:bt.paddingSM},"&-small":Object.assign({},me(bt,bt.controlHeightSM)),"&-large":Object.assign({},me(bt,bt.controlHeightLG))})}},ye=bt=>{const{formItemCls:kt,iconCls:wt,rootPrefixCls:Rt,antCls:pt,labelRequiredMarkColor:Lt,labelColor:zt,labelFontSize:Gt,labelHeight:Ht,labelColonMarginInlineStart:Nt,labelColonMarginInlineEnd:Bt,itemMarginBottom:Ut}=bt;return{[kt]:Object.assign(Object.assign({},(0,le.Wf)(bt)),{marginBottom:Ut,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${pt}-row`]:{display:"none"},"&-has-warning":{[`${kt}-split`]:{color:bt.colorError}},"&-has-error":{[`${kt}-split`]:{color:bt.colorWarning}},[`${kt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:bt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ht,color:zt,fontSize:Gt,[`> ${wt}`]:{fontSize:bt.fontSize,verticalAlign:"top"},[`&${kt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:bt.marginXXS,color:Lt,fontSize:bt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${kt}-required-mark-hidden, &${kt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${kt}-optional`]:{display:"inline-block",marginInlineStart:bt.marginXXS,color:bt.colorTextDescription,[`&${kt}-required-mark-hidden`]:{display:"none"}},[`${kt}-tooltip`]:{color:bt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:bt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Nt,marginInlineEnd:Bt},[`&${kt}-no-colon::after`]:{content:'"\\a0"'}}},[`${kt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Rt}-col-'"]):not([class*="' ${Rt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:bt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[kt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:bt.colorTextDescription,fontSize:bt.fontSize,lineHeight:bt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:bt.controlHeightSM,transition:`color ${bt.motionDurationMid} ${bt.motionEaseOut}`},"&-explain":{"&-error":{color:bt.colorError},"&-warning":{color:bt.colorWarning}}},[`&-with-help ${kt}-explain`]:{height:"auto",opacity:1},[`${kt}-feedback-icon`]:{fontSize:bt.fontSize,textAlign:"center",visibility:"visible",animationName:x.kr,animationDuration:bt.motionDurationMid,animationTimingFunction:bt.motionEaseOutBack,pointerEvents:"none","&-success":{color:bt.colorSuccess},"&-error":{color:bt.colorError},"&-warning":{color:bt.colorWarning},"&-validating":{color:bt.colorPrimary}}})}},De=(bt,kt)=>{const{formItemCls:wt}=bt;return{[`${kt}-horizontal`]:{[`${wt}-label`]:{flexGrow:0},[`${wt}-control`]:{flex:"1 1 0",minWidth:0},[`${wt}-label[class$='-24'], ${wt}-label[class*='-24 ']`]:{[`& + ${wt}-control`]:{minWidth:"unset"}}}}},Me=bt=>{const{componentCls:kt,formItemCls:wt,inlineItemMarginBottom:Rt}=bt;return{[`${kt}-inline`]:{display:"flex",flexWrap:"wrap",[wt]:{flex:"none",marginInlineEnd:bt.margin,marginBottom:Rt,"&-row":{flexWrap:"nowrap"},[`> ${wt}-label,
|
|
|
> ${wt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${wt}-label`]:{flex:"none"},[`${kt}-text`]:{display:"inline-block"},[`${wt}-has-feedback`]:{display:"inline-block"}}}}},Be=bt=>({padding:bt.verticalLabelPadding,margin:bt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Pe=bt=>{const{componentCls:kt,formItemCls:wt,rootPrefixCls:Rt}=bt;return{[`${wt} ${wt}-label`]:Be(bt),[`${kt}:not(${kt}-inline)`]:{[wt]:{flexWrap:"wrap",[`${wt}-label, ${wt}-control`]:{[`&:not([class*=" ${Rt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ce=bt=>{const{componentCls:kt,formItemCls:wt,antCls:Rt}=bt;return{[`${kt}-vertical`]:{[`${wt}:not(${wt}-horizontal)`]:{[`${wt}-row`]:{flexDirection:"column"},[`${wt}-label > label`]:{height:"auto"},[`${wt}-control`]:{width:"100%"},[`${wt}-label,
|
|
|
${Rt}-col-24${wt}-label,
|
|
|
${Rt}-col-xl-24${wt}-label`]:Be(bt)}},[`@media (max-width: ${(0,ee.unit)(bt.screenXSMax)})`]:[Pe(bt),{[kt]:{[`${wt}:not(${wt}-horizontal)`]:{[`${Rt}-col-xs-24${wt}-label`]:Be(bt)}}}],[`@media (max-width: ${(0,ee.unit)(bt.screenSMMax)})`]:{[kt]:{[`${wt}:not(${wt}-horizontal)`]:{[`${Rt}-col-sm-24${wt}-label`]:Be(bt)}}},[`@media (max-width: ${(0,ee.unit)(bt.screenMDMax)})`]:{[kt]:{[`${wt}:not(${wt}-horizontal)`]:{[`${Rt}-col-md-24${wt}-label`]:Be(bt)}}},[`@media (max-width: ${(0,ee.unit)(bt.screenLGMax)})`]:{[kt]:{[`${wt}:not(${wt}-horizontal)`]:{[`${Rt}-col-lg-24${wt}-label`]:Be(bt)}}}}},Ee=bt=>{const{formItemCls:kt,antCls:wt}=bt;return{[`${kt}-vertical`]:{[`${kt}-row`]:{flexDirection:"column"},[`${kt}-label > label`]:{height:"auto"},[`${kt}-control`]:{width:"100%"}},[`${kt}-vertical ${kt}-label,
|
|
|
${wt}-col-24${kt}-label,
|
|
|
${wt}-col-xl-24${kt}-label`]:Be(bt),[`@media (max-width: ${(0,ee.unit)(bt.screenXSMax)})`]:[Pe(bt),{[kt]:{[`${wt}-col-xs-24${kt}-label`]:Be(bt)}}],[`@media (max-width: ${(0,ee.unit)(bt.screenSMMax)})`]:{[kt]:{[`${wt}-col-sm-24${kt}-label`]:Be(bt)}},[`@media (max-width: ${(0,ee.unit)(bt.screenMDMax)})`]:{[kt]:{[`${wt}-col-md-24${kt}-label`]:Be(bt)}},[`@media (max-width: ${(0,ee.unit)(bt.screenLGMax)})`]:{[kt]:{[`${wt}-col-lg-24${kt}-label`]:Be(bt)}}}},je=bt=>({labelRequiredMarkColor:bt.colorError,labelColor:bt.colorTextHeading,labelFontSize:bt.fontSize,labelHeight:bt.controlHeight,labelColonMarginInlineStart:bt.marginXXS/2,labelColonMarginInlineEnd:bt.marginXS,itemMarginBottom:bt.marginLG,verticalLabelPadding:`0 0 ${bt.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),ke=(bt,kt)=>(0,re.mergeToken)(bt,{formItemCls:`${bt.componentCls}-item`,rootPrefixCls:kt});var Le=(0,ae.I$)("Form",(bt,kt)=>{let{rootPrefixCls:wt}=kt;const Rt=ke(bt,wt);return[he(Rt),ye(Rt),ce(Rt),De(Rt,Rt.componentCls),De(Rt,Rt.formItemCls),Me(Rt),Ce(Rt),Ee(Rt),(0,ne.Z)(Rt),x.kr]},je,{order:-1e3});const Ae=[];function Se(bt,kt,wt){let Rt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof bt=="string"?bt:`${kt}-${Rt}`,error:bt,errorStatus:wt}}var Ze=bt=>{let{help:kt,helpStatus:wt,errors:Rt=Ae,warnings:pt=Ae,className:Lt,fieldId:zt,onVisibleChanged:Gt}=bt;const{prefixCls:Ht}=a.useContext(ge.Rk),Nt=`${Ht}-item-explain`,Bt=(0,ie.Z)(Ht),[Ut,cr,lr]=Le(Ht,Bt),dr=a.useMemo(()=>(0,E.Z)(Ht),[Ht]),Br=oe(Rt),Wr=oe(pt),$r=a.useMemo(()=>kt!=null?[Se(kt,"help",wt)]:[].concat((0,gt.Z)(Br.map((Rr,Ur)=>Se(Rr,"error","error",Ur))),(0,gt.Z)(Wr.map((Rr,Ur)=>Se(Rr,"warning","warning",Ur)))),[kt,wt,Br,Wr]),Nr=a.useMemo(()=>{const Rr={};return $r.forEach(Ur=>{let{key:Qr}=Ur;Rr[Qr]=(Rr[Qr]||0)+1}),$r.map((Ur,Qr)=>Object.assign(Object.assign({},Ur),{key:Rr[Ur.key]>1?`${Ur.key}-fallback-${Qr}`:Ur.key}))},[$r]),Dr={};return zt&&(Dr.id=`${zt}_help`),Ut(a.createElement(z.default,{motionDeadline:dr.motionDeadline,motionName:`${Ht}-show-help`,visible:!!Nr.length,onVisibleChanged:Gt},Rr=>{const{className:Ur,style:Qr}=Rr;return a.createElement("div",Object.assign({},Dr,{className:be()(Nt,Ur,lr,Bt,Lt,cr),style:Qr}),a.createElement(z.CSSMotionList,Object.assign({keys:Nr},(0,E.Z)(Ht),{motionName:`${Ht}-show-help-item`,component:!1}),Vr=>{const{key:Jr,error:Pr,errorStatus:tn,className:Gr,style:fn}=Vr;return a.createElement("div",{key:Jr,className:be()(Gr,{[`${Nt}-${tn}`]:tn}),style:fn},Pr)}))}))},Je=Ie(22001),at=Ie(48755),Fe=Ie(2171),Ke=Ie(31756),it=Ie(23069),rt=Ie(76846),et=Ie(16722);const $e=["parentNode"],Xe="form_item";function Ve(bt){return bt===void 0||bt===!1?[]:Array.isArray(bt)?bt:[bt]}function nt(bt,kt){if(!bt.length)return;const wt=bt.join("_");return kt?`${kt}_${wt}`:$e.includes(wt)?`${Xe}_${wt}`:wt}function Qe(bt,kt,wt,Rt,pt,Lt){let zt=Rt;return Lt!==void 0?zt=Lt:wt.validating?zt="validating":bt.length?zt="error":kt.length?zt="warning":(wt.touched||pt&&wt.validated)&&(zt="success"),zt}var ct=function(bt,kt){var wt={};for(var Rt in bt)Object.prototype.hasOwnProperty.call(bt,Rt)&&kt.indexOf(Rt)<0&&(wt[Rt]=bt[Rt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Rt=Object.getOwnPropertySymbols(bt);pt<Rt.length;pt++)kt.indexOf(Rt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Rt[pt])&&(wt[Rt[pt]]=bt[Rt[pt]]);return wt};function ot(bt){return Ve(bt).join("_")}function qe(bt,kt){const wt=kt.getFieldInstance(bt),Rt=(0,rt.bn)(wt);if(Rt)return Rt;const pt=nt(Ve(bt),kt.__INTERNAL__.name);if(pt)return document.getElementById(pt)}function _e(bt){const[kt]=(0,Je.useForm)(),wt=a.useRef({}),Rt=a.useMemo(()=>bt!=null?bt:Object.assign(Object.assign({},kt),{__INTERNAL__:{itemRef:pt=>Lt=>{const zt=ot(pt);Lt?wt.current[zt]=Lt:delete wt.current[zt]}},scrollToField:function(pt){let Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:zt}=Lt,Gt=ct(Lt,["focus"]),Ht=qe(pt,Rt);Ht&&((0,et.Z)(Ht,Object.assign({scrollMode:"if-needed",block:"nearest"},Gt)),zt&&Rt.focusField(pt))},focusField:pt=>{var Lt,zt;const Gt=Rt.getFieldInstance(pt);typeof(Gt==null?void 0:Gt.focus)=="function"?Gt.focus():(zt=(Lt=qe(pt,Rt))===null||Lt===void 0?void 0:Lt.focus)===null||zt===void 0||zt.call(Lt)},getFieldInstance:pt=>{const Lt=ot(pt);return wt.current[Lt]}}),[bt,kt]);return[Rt]}var Re=Ie(98350),te=function(bt,kt){var wt={};for(var Rt in bt)Object.prototype.hasOwnProperty.call(bt,Rt)&&kt.indexOf(Rt)<0&&(wt[Rt]=bt[Rt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Rt=Object.getOwnPropertySymbols(bt);pt<Rt.length;pt++)kt.indexOf(Rt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Rt[pt])&&(wt[Rt[pt]]=bt[Rt[pt]]);return wt};const de=(bt,kt)=>{const wt=a.useContext(Fe.Z),{getPrefixCls:Rt,direction:pt,requiredMark:Lt,colon:zt,scrollToFirstError:Gt,className:Ht,style:Nt}=(0,at.dj)("form"),{prefixCls:Bt,className:Ut,rootClassName:cr,size:lr,disabled:dr=wt,form:Br,colon:Wr,labelAlign:$r,labelWrap:Nr,labelCol:Dr,wrapperCol:Rr,hideRequiredMark:Ur,layout:Qr="horizontal",scrollToFirstError:Vr,requiredMark:Jr,onFinishFailed:Pr,name:tn,style:Gr,feedbackIcons:fn,variant:pn}=bt,ln=te(bt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),un=(0,Ke.Z)(lr),yn=a.useContext(Re.Z),sn=a.useMemo(()=>Jr!==void 0?Jr:Ur?!1:Lt!==void 0?Lt:!0,[Ur,Jr,Lt]),dn=Wr!=null?Wr:zt,en=Rt("form",Bt),mn=(0,ie.Z)(en),[bn,_n,En]=Le(en,mn),Mn=be()(en,`${en}-${Qr}`,{[`${en}-hide-required-mark`]:sn===!1,[`${en}-rtl`]:pt==="rtl",[`${en}-${un}`]:un},En,mn,_n,Ht,Ut,cr),[On]=_e(Br),{__INTERNAL__:jn}=On;jn.name=tn;const on=a.useMemo(()=>({name:tn,labelAlign:$r,labelCol:Dr,labelWrap:Nr,wrapperCol:Rr,vertical:Qr==="vertical",colon:dn,requiredMark:sn,itemRef:jn.itemRef,form:On,feedbackIcons:fn}),[tn,$r,Dr,Rr,Qr,dn,sn,On,fn]),nn=a.useRef(null);a.useImperativeHandle(kt,()=>{var Ar;return Object.assign(Object.assign({},On),{nativeElement:(Ar=nn.current)===null||Ar===void 0?void 0:Ar.nativeElement})});const qr=(Ar,Cr)=>{if(Ar){let pr={block:"nearest"};typeof Ar=="object"&&(pr=Object.assign(Object.assign({},pr),Ar)),On.scrollToField(Cr,pr)}},gr=Ar=>{if(Pr==null||Pr(Ar),Ar.errorFields.length){const Cr=Ar.errorFields[0].name;if(Vr!==void 0){qr(Vr,Cr);return}Gt!==void 0&&qr(Gt,Cr)}};return bn(a.createElement(ge.pg.Provider,{value:pn},a.createElement(Fe.n,{disabled:dr},a.createElement(it.Z.Provider,{value:un},a.createElement(ge.RV,{validateMessages:yn},a.createElement(ge.q3.Provider,{value:on},a.createElement(Je.default,Object.assign({id:tn},ln,{name:tn,onFinishFailed:gr,form:On,ref:nn,style:Object.assign(Object.assign({},Nt),Gr),className:Mn}))))))))};var ze=a.forwardRef(de),xe=Ie(41799),ve=Ie(8654),Oe=Ie(22703),We=Ie(32383),Ue=Ie(11592);function Ye(bt){if(typeof bt=="function")return bt;const kt=(0,Ue.Z)(bt);return kt.length<=1?kt[0]:kt}const st=()=>{const{status:bt,errors:kt=[],warnings:wt=[]}=a.useContext(ge.aM);return{status:bt,errors:kt,warnings:wt}};st.Context=ge.aM;var lt=st,ft=Ie(16089);function Tt(bt){const[kt,wt]=a.useState(bt),Rt=a.useRef(null),pt=a.useRef([]),Lt=a.useRef(!1);a.useEffect(()=>(Lt.current=!1,()=>{Lt.current=!0,ft.Z.cancel(Rt.current),Rt.current=null}),[]);function zt(Gt){Lt.current||(Rt.current===null&&(pt.current=[],Rt.current=(0,ft.Z)(()=>{Rt.current=null,wt(Ht=>{let Nt=Ht;return pt.current.forEach(Bt=>{Nt=Bt(Nt)}),Nt})})),pt.current.push(Gt))}return[kt,zt]}function St(){const{itemRef:bt}=a.useContext(ge.q3),kt=a.useRef({});function wt(Rt,pt){const Lt=pt&&typeof pt=="object"&&(0,ve.C4)(pt),zt=Rt.join("_");return(kt.current.name!==zt||kt.current.originRef!==Lt)&&(kt.current.name=zt,kt.current.originRef=Lt,kt.current.ref=(0,ve.sQ)(bt(Rt),Lt)),kt.current.ref}return wt}var Ot=Ie(29194),yt=Ie(34280),Mt=Ie(2738),Et=Ie(65970),xt=Ie(70425),jt=Ie(5472);const At=bt=>{const{formItemCls:kt}=bt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${kt}-control`]:{display:"flex"}}}};var ht=(0,ae.bk)(["Form","item-item"],(bt,kt)=>{let{rootPrefixCls:wt}=kt;const Rt=ke(bt,wt);return[At(Rt)]}),Ct=function(bt,kt){var wt={};for(var Rt in bt)Object.prototype.hasOwnProperty.call(bt,Rt)&&kt.indexOf(Rt)<0&&(wt[Rt]=bt[Rt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Rt=Object.getOwnPropertySymbols(bt);pt<Rt.length;pt++)kt.indexOf(Rt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Rt[pt])&&(wt[Rt[pt]]=bt[Rt[pt]]);return wt};const $t=24;var vt=bt=>{const{prefixCls:kt,status:wt,labelCol:Rt,wrapperCol:pt,children:Lt,errors:zt,warnings:Gt,_internalItemRender:Ht,extra:Nt,help:Bt,fieldId:Ut,marginBottom:cr,onErrorVisibleChanged:lr,label:dr}=bt,Br=`${kt}-item`,Wr=a.useContext(ge.q3),$r=a.useMemo(()=>{let ln=Object.assign({},pt||Wr.wrapperCol||{});return dr===null&&!Rt&&!pt&&Wr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(yn=>{const sn=yn?[yn]:[],dn=(0,xt.U2)(Wr.labelCol,sn),en=typeof dn=="object"?dn:{},mn=(0,xt.U2)(ln,sn),bn=typeof mn=="object"?mn:{};"span"in en&&!("offset"in bn)&&en.span<$t&&(ln=(0,xt.t8)(ln,[].concat(sn,["offset"]),en.span))}),ln},[pt,Wr]),Nr=be()(`${Br}-control`,$r.className),Dr=a.useMemo(()=>{const{labelCol:ln,wrapperCol:un}=Wr;return Ct(Wr,["labelCol","wrapperCol"])},[Wr]),Rr=a.useRef(null),[Ur,Qr]=a.useState(0);(0,yt.Z)(()=>{Nt&&Rr.current?Qr(Rr.current.clientHeight):Qr(0)},[Nt]);const Vr=a.createElement("div",{className:`${Br}-control-input`},a.createElement("div",{className:`${Br}-control-input-content`},Lt)),Jr=a.useMemo(()=>({prefixCls:kt,status:wt}),[kt,wt]),Pr=cr!==null||zt.length||Gt.length?a.createElement(ge.Rk.Provider,{value:Jr},a.createElement(Ze,{fieldId:Ut,errors:zt,warnings:Gt,help:Bt,helpStatus:wt,className:`${Br}-explain-connected`,onVisibleChanged:lr})):null,tn={};Ut&&(tn.id=`${Ut}_extra`);const Gr=Nt?a.createElement("div",Object.assign({},tn,{className:`${Br}-extra`,ref:Rr}),Nt):null,fn=Pr||Gr?a.createElement("div",{className:`${Br}-additional`,style:cr?{minHeight:cr+Ur}:{}},Pr,Gr):null,pn=Ht&&Ht.mark==="pro_table_render"&&Ht.render?Ht.render(bt,{input:Vr,errorList:Pr,extra:Gr}):a.createElement(a.Fragment,null,Vr,fn);return a.createElement(ge.q3.Provider,{value:Dr},a.createElement(jt.Z,Object.assign({},$r,{className:Nr}),pn),a.createElement(ht,{prefixCls:kt}))},Pt=Ie(61485),_t=Ie(9017),Kt=Ie(85981),er=Ie(25399),sr=function(bt,kt){var wt={};for(var Rt in bt)Object.prototype.hasOwnProperty.call(bt,Rt)&&kt.indexOf(Rt)<0&&(wt[Rt]=bt[Rt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Rt=Object.getOwnPropertySymbols(bt);pt<Rt.length;pt++)kt.indexOf(Rt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Rt[pt])&&(wt[Rt[pt]]=bt[Rt[pt]]);return wt};function yr(bt){return bt?typeof bt=="object"&&!a.isValidElement(bt)?bt:{title:bt}:null}var ur=bt=>{let{prefixCls:kt,label:wt,htmlFor:Rt,labelCol:pt,labelAlign:Lt,colon:zt,required:Gt,requiredMark:Ht,tooltip:Nt,vertical:Bt}=bt;var Ut;const[cr]=(0,_t.Z)("Form"),{labelAlign:lr,labelCol:dr,labelWrap:Br,colon:Wr}=a.useContext(ge.q3);if(!wt)return null;const $r=pt||dr||{},Nr=Lt||lr,Dr=`${kt}-item-label`,Rr=be()(Dr,Nr==="left"&&`${Dr}-left`,$r.className,{[`${Dr}-wrap`]:!!Br});let Ur=wt;const Qr=zt===!0||Wr!==!1&&zt!==!1;Qr&&!Bt&&typeof wt=="string"&&wt.trim()&&(Ur=wt.replace(/[:|:]\s*$/,""));const Jr=yr(Nt);if(Jr){const{icon:ln=a.createElement(Pt.Z,null)}=Jr,un=sr(Jr,["icon"]),yn=a.createElement(er.Z,Object.assign({},un),a.cloneElement(ln,{className:`${kt}-item-tooltip`,title:"",onClick:sn=>{sn.preventDefault()},tabIndex:null}));Ur=a.createElement(a.Fragment,null,Ur,yn)}const Pr=Ht==="optional",tn=typeof Ht=="function",Gr=Ht===!1;tn?Ur=Ht(Ur,{required:!!Gt}):Pr&&!Gt&&(Ur=a.createElement(a.Fragment,null,Ur,a.createElement("span",{className:`${kt}-item-optional`,title:""},(cr==null?void 0:cr.optional)||((Ut=Kt.Z.Form)===null||Ut===void 0?void 0:Ut.optional))));let fn;Gr?fn="hidden":(Pr||tn)&&(fn="optional");const pn=be()({[`${kt}-item-required`]:Gt,[`${kt}-item-required-mark-${fn}`]:fn,[`${kt}-item-no-colon`]:!Qr});return a.createElement(jt.Z,Object.assign({},$r,{className:Rr}),a.createElement("label",{htmlFor:Rt,className:pn,title:typeof wt=="string"?wt:""},Ur))},br=Ie(29679),or=Ie(19248),fr=Ie(96512),Jt=Ie(58617);const Qt={success:br.Z,warning:fr.Z,error:or.Z,validating:Jt.Z};function Vt(bt){let{children:kt,errors:wt,warnings:Rt,hasFeedback:pt,validateStatus:Lt,prefixCls:zt,meta:Gt,noStyle:Ht}=bt;const Nt=`${zt}-item`,{feedbackIcons:Bt}=a.useContext(ge.q3),Ut=Qe(wt,Rt,Gt,null,!!pt,Lt),{isFormItemInput:cr,status:lr,hasFeedback:dr,feedbackIcon:Br}=a.useContext(ge.aM),Wr=a.useMemo(()=>{var $r;let Nr;if(pt){const Rr=pt!==!0&&pt.icons||Bt,Ur=Ut&&(($r=Rr==null?void 0:Rr({status:Ut,errors:wt,warnings:Rt}))===null||$r===void 0?void 0:$r[Ut]),Qr=Ut&&Qt[Ut];Nr=Ur!==!1&&Qr?a.createElement("span",{className:be()(`${Nt}-feedback-icon`,`${Nt}-feedback-icon-${Ut}`)},Ur||a.createElement(Qr,null)):null}const Dr={status:Ut||"",errors:wt,warnings:Rt,hasFeedback:!!pt,feedbackIcon:Nr,isFormItemInput:!0};return Ht&&(Dr.status=(Ut!=null?Ut:lr)||"",Dr.isFormItemInput=cr,Dr.hasFeedback=!!(pt!=null?pt:dr),Dr.feedbackIcon=pt!==void 0?Dr.feedbackIcon:Br),Dr},[Ut,pt,Ht,cr,lr]);return a.createElement(ge.aM.Provider,{value:Wr},kt)}var rr=function(bt,kt){var wt={};for(var Rt in bt)Object.prototype.hasOwnProperty.call(bt,Rt)&&kt.indexOf(Rt)<0&&(wt[Rt]=bt[Rt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Rt=Object.getOwnPropertySymbols(bt);pt<Rt.length;pt++)kt.indexOf(Rt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Rt[pt])&&(wt[Rt[pt]]=bt[Rt[pt]]);return wt};function ar(bt){const{prefixCls:kt,className:wt,rootClassName:Rt,style:pt,help:Lt,errors:zt,warnings:Gt,validateStatus:Ht,meta:Nt,hasFeedback:Bt,hidden:Ut,children:cr,fieldId:lr,required:dr,isRequired:Br,onSubItemMetaChange:Wr,layout:$r}=bt,Nr=rr(bt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Dr=`${kt}-item`,{requiredMark:Rr,vertical:Ur}=a.useContext(ge.q3),Qr=Ur||$r==="vertical",Vr=a.useRef(null),Jr=oe(zt),Pr=oe(Gt),tn=Lt!=null,Gr=!!(tn||zt.length||Gt.length),fn=!!Vr.current&&(0,Ot.Z)(Vr.current),[pn,ln]=a.useState(null);(0,yt.Z)(()=>{if(Gr&&Vr.current){const en=getComputedStyle(Vr.current);ln(parseInt(en.marginBottom,10))}},[Gr,fn]);const un=en=>{en||ln(null)},sn=function(){let en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mn=en?Jr:Nt.errors,bn=en?Pr:Nt.warnings;return Qe(mn,bn,Nt,"",!!Bt,Ht)}(),dn=be()(Dr,wt,Rt,{[`${Dr}-with-help`]:tn||Jr.length||Pr.length,[`${Dr}-has-feedback`]:sn&&Bt,[`${Dr}-has-success`]:sn==="success",[`${Dr}-has-warning`]:sn==="warning",[`${Dr}-has-error`]:sn==="error",[`${Dr}-is-validating`]:sn==="validating",[`${Dr}-hidden`]:Ut,[`${Dr}-${$r}`]:$r});return a.createElement("div",{className:dn,style:pt,ref:Vr},a.createElement(Et.Z,Object.assign({className:`${Dr}-row`},(0,Mt.Z)(Nr,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),a.createElement(ur,Object.assign({htmlFor:lr},bt,{requiredMark:Rr,required:dr!=null?dr:Br,prefixCls:kt,vertical:Qr})),a.createElement(vt,Object.assign({},bt,Nt,{errors:Jr,warnings:Pr,prefixCls:kt,status:sn,help:Lt,marginBottom:pn,onErrorVisibleChanged:un}),a.createElement(ge.qI.Provider,{value:Wr},a.createElement(Vt,{prefixCls:kt,meta:Nt,errors:Nt.errors,warnings:Nt.warnings,hasFeedback:Bt,validateStatus:sn},cr)))),!!pn&&a.createElement("div",{className:`${Dr}-margin-offset`,style:{marginBottom:-pn}}))}const vr="__SPLIT__",hr=null;function Ir(bt,kt){const wt=Object.keys(bt),Rt=Object.keys(kt);return wt.length===Rt.length&&wt.every(pt=>{const Lt=bt[pt],zt=kt[pt];return Lt===zt||typeof Lt=="function"||typeof zt=="function"})}const Or=a.memo(bt=>{let{children:kt}=bt;return kt},(bt,kt)=>Ir(bt.control,kt.control)&&bt.update===kt.update&&bt.childProps.length===kt.childProps.length&&bt.childProps.every((wt,Rt)=>wt===kt.childProps[Rt]));function Lr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Er(bt){const{name:kt,noStyle:wt,className:Rt,dependencies:pt,prefixCls:Lt,shouldUpdate:zt,rules:Gt,children:Ht,required:Nt,label:Bt,messageVariables:Ut,trigger:cr="onChange",validateTrigger:lr,hidden:dr,help:Br,layout:Wr}=bt,{getPrefixCls:$r}=a.useContext(at.E_),{name:Nr}=a.useContext(ge.q3),Dr=Ye(Ht),Rr=typeof Dr=="function",Ur=a.useContext(ge.qI),{validateTrigger:Qr}=a.useContext(Je.FieldContext),Vr=lr!==void 0?lr:Qr,Jr=kt!=null,Pr=$r("form",Lt),tn=(0,ie.Z)(Pr),[Gr,fn,pn]=Le(Pr,tn),ln=(0,We.ln)("Form.Item"),un=a.useContext(Je.ListContext),yn=a.useRef(null),[sn,dn]=Tt({}),[en,mn]=(0,xe.Z)(()=>Lr()),bn=nn=>{const qr=un==null?void 0:un.getKey(nn.name);if(mn(nn.destroy?Lr():nn,!0),wt&&Br!==!1&&Ur){let gr=nn.name;if(nn.destroy)gr=yn.current||gr;else if(qr!==void 0){const[Ar,Cr]=qr;gr=[Ar].concat((0,gt.Z)(Cr)),yn.current=gr}Ur(nn,gr)}},_n=(nn,qr)=>{dn(gr=>{const Ar=Object.assign({},gr),pr=[].concat((0,gt.Z)(nn.name.slice(0,-1)),(0,gt.Z)(qr)).join(vr);return nn.destroy?delete Ar[pr]:Ar[pr]=nn,Ar})},[En,Mn]=a.useMemo(()=>{const nn=(0,gt.Z)(en.errors),qr=(0,gt.Z)(en.warnings);return Object.values(sn).forEach(gr=>{nn.push.apply(nn,(0,gt.Z)(gr.errors||[])),qr.push.apply(qr,(0,gt.Z)(gr.warnings||[]))}),[nn,qr]},[sn,en.errors,en.warnings]),On=St();function jn(nn,qr,gr){return wt&&!dr?a.createElement(Vt,{prefixCls:Pr,hasFeedback:bt.hasFeedback,validateStatus:bt.validateStatus,meta:en,errors:En,warnings:Mn,noStyle:!0},nn):a.createElement(ar,Object.assign({key:"row"},bt,{className:be()(Rt,pn,tn,fn),prefixCls:Pr,fieldId:qr,isRequired:gr,errors:En,warnings:Mn,meta:en,onSubItemMetaChange:_n,layout:Wr}),nn)}if(!Jr&&!Rr&&!pt)return Gr(jn(Dr));let on={};return typeof Bt=="string"?on.label=Bt:kt&&(on.label=String(kt)),Ut&&(on=Object.assign(Object.assign({},on),Ut)),Gr(a.createElement(Je.Field,Object.assign({},bt,{messageVariables:on,trigger:cr,validateTrigger:Vr,onMetaChange:bn}),(nn,qr,gr)=>{const Ar=Ve(kt).length&&qr?qr.name:[],Cr=nt(Ar,Nr),pr=Nt!==void 0?Nt:!!(Gt!=null&&Gt.some(wr=>{if(wr&&typeof wr=="object"&&wr.required&&!wr.warningOnly)return!0;if(typeof wr=="function"){const mr=wr(gr);return(mr==null?void 0:mr.required)&&!(mr!=null&&mr.warningOnly)}return!1})),zr=Object.assign({},nn);let Kr=null;if(Array.isArray(Dr)&&Jr)Kr=Dr;else if(!(Rr&&(!(zt||pt)||Jr))){if(!(pt&&!Rr&&!Jr))if(a.isValidElement(Dr)){const wr=Object.assign(Object.assign({},Dr.props),zr);if(wr.id||(wr.id=Cr),Br||En.length>0||Mn.length>0||bt.extra){const Fr=[];(Br||En.length>0)&&Fr.push(`${Cr}_help`),bt.extra&&Fr.push(`${Cr}_extra`),wr["aria-describedby"]=Fr.join(" ")}En.length>0&&(wr["aria-invalid"]="true"),pr&&(wr["aria-required"]="true"),(0,ve.Yr)(Dr)&&(wr.ref=On(Ar,Dr)),new Set([].concat((0,gt.Z)(Ve(cr)),(0,gt.Z)(Ve(Vr)))).forEach(Fr=>{wr[Fr]=function(){for(var cn,Dn,Tn,Bn,Rn,Ln=arguments.length,Zn=new Array(Ln),Wn=0;Wn<Ln;Wn++)Zn[Wn]=arguments[Wn];(Tn=zr[Fr])===null||Tn===void 0||(cn=Tn).call.apply(cn,[zr].concat(Zn)),(Rn=(Bn=Dr.props)[Fr])===null||Rn===void 0||(Dn=Rn).call.apply(Dn,[Bn].concat(Zn))}});const kr=[wr["aria-required"],wr["aria-invalid"],wr["aria-describedby"]];Kr=a.createElement(Or,{control:zr,update:Dr,childProps:kr},(0,Oe.Tm)(Dr,wr))}else Rr&&(zt||pt)&&!Jr?Kr=Dr(gr):Kr=Dr}return jn(Kr,Cr,pr)}))}const Zr=Er;Zr.useStatus=lt;var _r=Zr,qt=function(bt,kt){var wt={};for(var Rt in bt)Object.prototype.hasOwnProperty.call(bt,Rt)&&kt.indexOf(Rt)<0&&(wt[Rt]=bt[Rt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Rt=Object.getOwnPropertySymbols(bt);pt<Rt.length;pt++)kt.indexOf(Rt[pt])<0&&Object.prototype.propertyIsEnumerable.call(bt,Rt[pt])&&(wt[Rt[pt]]=bt[Rt[pt]]);return wt},jr=bt=>{var{prefixCls:kt,children:wt}=bt,Rt=qt(bt,["prefixCls","children"]);const{getPrefixCls:pt}=a.useContext(at.E_),Lt=pt("form",kt),zt=a.useMemo(()=>({prefixCls:Lt,status:"error"}),[Lt]);return a.createElement(Je.List,Object.assign({},Rt),(Gt,Ht,Nt)=>a.createElement(ge.Rk.Provider,{value:zt},wt(Gt.map(Bt=>Object.assign(Object.assign({},Bt),{fieldKey:Bt.key})),Ht,{errors:Nt.errors,warnings:Nt.warnings})))};function Tr(){const{form:bt}=a.useContext(ge.q3);return bt}const It=ze;It.Item=_r,It.List=jr,It.ErrorList=Ze,It.useForm=_e,It.useFormInstance=Tr,It.useWatch=Je.useWatch,It.Provider=ge.RV,It.create=()=>{};var Ft=It},4875:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return Xt}});var ge=Ie(59301),gt=Ie(84105),a=Ie(87395),Te=Ie(92310),be=Ie.n(Te),z=Ie(54476),E=Ie(20068),ie=Ie(76190),oe=Ie(42978),ee=Ie(75931),le=Ie(67732),x=Ie(83652);function ne(){return typeof BigInt=="function"}function re(vt){return!vt&&vt!==0&&!Number.isNaN(vt)||!String(vt).trim()}function ae(vt){var Pt=vt.trim(),_t=Pt.startsWith("-");_t&&(Pt=Pt.slice(1)),Pt=Pt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Pt.startsWith(".")&&(Pt="0".concat(Pt));var Kt=Pt||"0",er=Kt.split("."),sr=er[0]||"0",yr=er[1]||"0";sr==="0"&&yr==="0"&&(_t=!1);var xr=_t?"-":"";return{negative:_t,negativeStr:xr,trimStr:Kt,integerStr:sr,decimalStr:yr,fullStr:"".concat(xr).concat(Kt)}}function se(vt){var Pt=String(vt);return!Number.isNaN(Number(Pt))&&Pt.includes("e")}function ce(vt){var Pt=String(vt);if(se(vt)){var _t=Number(Pt.slice(Pt.indexOf("e-")+2)),Kt=Pt.match(/\.(\d+)/);return Kt!=null&&Kt[1]&&(_t+=Kt[1].length),_t}return Pt.includes(".")&&me(Pt)?Pt.length-Pt.indexOf(".")-1:0}function pe(vt){var Pt=String(vt);if(se(vt)){if(vt>Number.MAX_SAFE_INTEGER)return String(ne()?BigInt(vt).toString():Number.MAX_SAFE_INTEGER);if(vt<Number.MIN_SAFE_INTEGER)return String(ne()?BigInt(vt).toString():Number.MIN_SAFE_INTEGER);Pt=vt.toFixed(ce(Pt))}return ae(Pt).fullStr}function me(vt){return typeof vt=="number"?!Number.isNaN(vt):vt?/^\s*-?\d+(\.\d+)?\s*$/.test(vt)||/^\s*-?\d+\.\s*$/.test(vt)||/^\s*-?\.\d+\s*$/.test(vt):!1}var he=function(){function vt(Pt){if((0,le.Z)(this,vt),(0,E.Z)(this,"origin",""),(0,E.Z)(this,"negative",void 0),(0,E.Z)(this,"integer",void 0),(0,E.Z)(this,"decimal",void 0),(0,E.Z)(this,"decimalLen",void 0),(0,E.Z)(this,"empty",void 0),(0,E.Z)(this,"nan",void 0),re(Pt)){this.empty=!0;return}if(this.origin=String(Pt),Pt==="-"||Number.isNaN(Pt)){this.nan=!0;return}var _t=Pt;if(se(_t)&&(_t=Number(_t)),_t=typeof _t=="string"?_t:pe(_t),me(_t)){var Kt=ae(_t);this.negative=Kt.negative;var er=Kt.trimStr.split(".");this.integer=BigInt(er[0]);var sr=er[1]||"0";this.decimal=BigInt(sr),this.decimalLen=sr.length}else this.nan=!0}return(0,x.Z)(vt,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(_t){var Kt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(_t,"0"));return BigInt(Kt)}},{key:"negate",value:function(){var _t=new vt(this.toString());return _t.negative=!_t.negative,_t}},{key:"cal",value:function(_t,Kt,er){var sr=Math.max(this.getDecimalStr().length,_t.getDecimalStr().length),yr=this.alignDecimal(sr),xr=_t.alignDecimal(sr),ur=Kt(yr,xr).toString(),br=er(sr),or=ae(ur),fr=or.negativeStr,Jt=or.trimStr,Qt="".concat(fr).concat(Jt.padStart(br+1,"0"));return new vt("".concat(Qt.slice(0,-br),".").concat(Qt.slice(-br)))}},{key:"add",value:function(_t){if(this.isInvalidate())return new vt(_t);var Kt=new vt(_t);return Kt.isInvalidate()?this:this.cal(Kt,function(er,sr){return er+sr},function(er){return er})}},{key:"multi",value:function(_t){var Kt=new vt(_t);return this.isInvalidate()||Kt.isInvalidate()?new vt(NaN):this.cal(Kt,function(er,sr){return er*sr},function(er){return er*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(_t){return this.toString()===(_t==null?void 0:_t.toString())}},{key:"lessEquals",value:function(_t){return this.add(_t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return _t?this.isInvalidate()?"":ae("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),vt}(),ye=function(){function vt(Pt){if((0,le.Z)(this,vt),(0,E.Z)(this,"origin",""),(0,E.Z)(this,"number",void 0),(0,E.Z)(this,"empty",void 0),re(Pt)){this.empty=!0;return}this.origin=String(Pt),this.number=Number(Pt)}return(0,x.Z)(vt,[{key:"negate",value:function(){return new vt(-this.toNumber())}},{key:"add",value:function(_t){if(this.isInvalidate())return new vt(_t);var Kt=Number(_t);if(Number.isNaN(Kt))return this;var er=this.number+Kt;if(er>Number.MAX_SAFE_INTEGER)return new vt(Number.MAX_SAFE_INTEGER);if(er<Number.MIN_SAFE_INTEGER)return new vt(Number.MIN_SAFE_INTEGER);var sr=Math.max(ce(this.number),ce(Kt));return new vt(er.toFixed(sr))}},{key:"multi",value:function(_t){var Kt=Number(_t);if(this.isInvalidate()||Number.isNaN(Kt))return new vt(NaN);var er=this.number*Kt;if(er>Number.MAX_SAFE_INTEGER)return new vt(Number.MAX_SAFE_INTEGER);if(er<Number.MIN_SAFE_INTEGER)return new vt(Number.MIN_SAFE_INTEGER);var sr=Math.max(ce(this.number),ce(Kt));return new vt(er.toFixed(sr))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(_t){return this.toNumber()===(_t==null?void 0:_t.toNumber())}},{key:"lessEquals",value:function(_t){return this.add(_t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return _t?this.isInvalidate()?"":pe(this.number):this.origin}}]),vt}();function De(vt){return ne()?new he(vt):new ye(vt)}function Me(vt,Pt,_t){var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(vt==="")return"";var er=ae(vt),sr=er.negativeStr,yr=er.integerStr,xr=er.decimalStr,ur="".concat(Pt).concat(xr),br="".concat(sr).concat(yr);if(_t>=0){var or=Number(xr[_t]);if(or>=5&&!Kt){var fr=De(vt).add("".concat(sr,"0.").concat("0".repeat(_t)).concat(10-or));return Me(fr.toString(),Pt,_t,Kt)}return _t===0?br:"".concat(br).concat(Pt).concat(xr.padEnd(_t,"0").slice(0,_t))}return ur===".0"?br:"".concat(br).concat(ur)}var Be=De,Pe=Ie(36901),Ce=Ie(34280);function Ee(vt,Pt){return typeof Proxy!="undefined"&&vt?new Proxy(vt,{get:function(Kt,er){if(Pt[er])return Pt[er];var sr=Kt[er];return typeof sr=="function"?sr.bind(Kt):sr}}):vt}var je=Ie(8654),ke=Ie(48736);function Le(vt,Pt){var _t=(0,ge.useRef)(null);function Kt(){try{var sr=vt.selectionStart,yr=vt.selectionEnd,xr=vt.value,ur=xr.substring(0,sr),br=xr.substring(yr);_t.current={start:sr,end:yr,value:xr,beforeTxt:ur,afterTxt:br}}catch(or){}}function er(){if(vt&&_t.current&&Pt)try{var sr=vt.value,yr=_t.current,xr=yr.beforeTxt,ur=yr.afterTxt,br=yr.start,or=sr.length;if(sr.startsWith(xr))or=xr.length;else if(sr.endsWith(ur))or=sr.length-_t.current.afterTxt.length;else{var fr=xr[br-1],Jt=sr.indexOf(fr,br-1);Jt!==-1&&(or=Jt+1)}vt.setSelectionRange(or,or)}catch(Qt){(0,ke.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Qt.message))}}return[Kt,er]}var Ae=Ie(49658),Se=function(){var Pt=(0,ge.useState)(!1),_t=(0,oe.Z)(Pt,2),Kt=_t[0],er=_t[1];return(0,Ce.Z)(function(){er((0,Ae.Z)())},[]),Kt},Ge=Se,Ze=Ie(16089),Je=200,at=600;function Fe(vt){var Pt=vt.prefixCls,_t=vt.upNode,Kt=vt.downNode,er=vt.upDisabled,sr=vt.downDisabled,yr=vt.onStep,xr=ge.useRef(),ur=ge.useRef([]),br=ge.useRef();br.current=yr;var or=function(){clearTimeout(xr.current)},fr=function(Ir,Or){Ir.preventDefault(),or(),br.current(Or);function Lr(){br.current(Or),xr.current=setTimeout(Lr,Je)}xr.current=setTimeout(Lr,at)};ge.useEffect(function(){return function(){or(),ur.current.forEach(function(hr){return Ze.Z.cancel(hr)})}},[]);var Jt=Ge();if(Jt)return null;var Qt="".concat(Pt,"-handler"),Vt=be()(Qt,"".concat(Qt,"-up"),(0,E.Z)({},"".concat(Qt,"-up-disabled"),er)),rr=be()(Qt,"".concat(Qt,"-down"),(0,E.Z)({},"".concat(Qt,"-down-disabled"),sr)),ar=function(){return ur.current.push((0,Ze.Z)(or))},vr={unselectable:"on",role:"button",onMouseUp:ar,onMouseLeave:ar};return ge.createElement("div",{className:"".concat(Qt,"-wrap")},ge.createElement("span",(0,z.Z)({},vr,{onMouseDown:function(Ir){fr(Ir,!0)},"aria-label":"Increase Value","aria-disabled":er,className:Vt}),_t||ge.createElement("span",{unselectable:"on",className:"".concat(Pt,"-handler-up-inner")})),ge.createElement("span",(0,z.Z)({},vr,{onMouseDown:function(Ir){fr(Ir,!1)},"aria-label":"Decrease Value","aria-disabled":sr,className:rr}),Kt||ge.createElement("span",{unselectable:"on",className:"".concat(Pt,"-handler-down-inner")})))}function Ke(vt){var Pt=typeof vt=="number"?pe(vt):ae(vt).fullStr,_t=Pt.includes(".");return _t?ae(Pt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:vt+"0"}var it=Ie(30292),rt=function(){var vt=(0,ge.useRef)(0),Pt=function(){Ze.Z.cancel(vt.current)};return(0,ge.useEffect)(function(){return Pt},[]),function(_t){Pt(),vt.current=(0,Ze.Z)(function(){_t()})}},et=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],$e=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Xe=function(Pt,_t){return Pt||_t.isEmpty()?_t.toString():_t.toNumber()},Ve=function(Pt){var _t=Be(Pt);return _t.isInvalidate()?null:_t},nt=ge.forwardRef(function(vt,Pt){var _t=vt.prefixCls,Kt=vt.className,er=vt.style,sr=vt.min,yr=vt.max,xr=vt.step,ur=xr===void 0?1:xr,br=vt.defaultValue,or=vt.value,fr=vt.disabled,Jt=vt.readOnly,Qt=vt.upHandler,Vt=vt.downHandler,rr=vt.keyboard,ar=vt.changeOnWheel,vr=ar===void 0?!1:ar,hr=vt.controls,Ir=hr===void 0?!0:hr,Or=vt.classNames,Lr=vt.stringMode,Er=vt.parser,Zr=vt.formatter,_r=vt.precision,qt=vt.decimalSeparator,nr=vt.onChange,jr=vt.onInput,Tr=vt.onPressEnter,It=vt.onStep,Ft=vt.changeOnBlur,bt=Ft===void 0?!0:Ft,kt=vt.domRef,wt=(0,ee.Z)(vt,et),Rt="".concat(_t,"-input"),pt=ge.useRef(null),Lt=ge.useState(!1),zt=(0,oe.Z)(Lt,2),Gt=zt[0],Ht=zt[1],Nt=ge.useRef(!1),Bt=ge.useRef(!1),Ut=ge.useRef(!1),cr=ge.useState(function(){return Be(or!=null?or:br)}),lr=(0,oe.Z)(cr,2),dr=lr[0],Br=lr[1];function Wr(Cr){or===void 0&&Br(Cr)}var $r=ge.useCallback(function(Cr,pr){if(!pr)return _r>=0?_r:Math.max(ce(Cr),ce(ur))},[_r,ur]),Nr=ge.useCallback(function(Cr){var pr=String(Cr);if(Er)return Er(pr);var zr=pr;return qt&&(zr=zr.replace(qt,".")),zr.replace(/[^\w.-]+/g,"")},[Er,qt]),Dr=ge.useRef(""),Rr=ge.useCallback(function(Cr,pr){if(Zr)return Zr(Cr,{userTyping:pr,input:String(Dr.current)});var zr=typeof Cr=="number"?pe(Cr):Cr;if(!pr){var Kr=$r(zr,pr);if(me(zr)&&(qt||Kr>=0)){var wr=qt||".";zr=Me(zr,wr,Kr)}}return zr},[Zr,$r,qt]),Ur=ge.useState(function(){var Cr=br!=null?br:or;return dr.isInvalidate()&&["string","number"].includes((0,ie.Z)(Cr))?Number.isNaN(Cr)?"":Cr:Rr(dr.toString(),!1)}),Qr=(0,oe.Z)(Ur,2),Vr=Qr[0],Jr=Qr[1];Dr.current=Vr;function Pr(Cr,pr){Jr(Rr(Cr.isInvalidate()?Cr.toString(!1):Cr.toString(!pr),pr))}var tn=ge.useMemo(function(){return Ve(yr)},[yr,_r]),Gr=ge.useMemo(function(){return Ve(sr)},[sr,_r]),fn=ge.useMemo(function(){return!tn||!dr||dr.isInvalidate()?!1:tn.lessEquals(dr)},[tn,dr]),pn=ge.useMemo(function(){return!Gr||!dr||dr.isInvalidate()?!1:dr.lessEquals(Gr)},[Gr,dr]),ln=Le(pt.current,Gt),un=(0,oe.Z)(ln,2),yn=un[0],sn=un[1],dn=function(pr){return tn&&!pr.lessEquals(tn)?tn:Gr&&!Gr.lessEquals(pr)?Gr:null},en=function(pr){return!dn(pr)},mn=function(pr,zr){var Kr=pr,wr=en(Kr)||Kr.isEmpty();if(!Kr.isEmpty()&&!zr&&(Kr=dn(Kr)||Kr,wr=!0),!Jt&&!fr&&wr){var mr=Kr.toString(),kr=$r(mr,zr);return kr>=0&&(Kr=Be(Me(mr,".",kr)),en(Kr)||(Kr=Be(Me(mr,".",kr,!0)))),Kr.equals(dr)||(Wr(Kr),nr==null||nr(Kr.isEmpty()?null:Xe(Lr,Kr)),or===void 0&&Pr(Kr,zr)),Kr}return dr},bn=rt(),_n=function Cr(pr){if(yn(),Dr.current=pr,Jr(pr),!Bt.current){var zr=Nr(pr),Kr=Be(zr);Kr.isNaN()||mn(Kr,!0)}jr==null||jr(pr),bn(function(){var wr=pr;Er||(wr=pr.replace(/。/g,".")),wr!==pr&&Cr(wr)})},En=function(){Bt.current=!0},Mn=function(){Bt.current=!1,_n(pt.current.value)},On=function(pr){_n(pr.target.value)},jn=function(pr){var zr;if(!(pr&&fn||!pr&&pn)){Nt.current=!1;var Kr=Be(Ut.current?Ke(ur):ur);pr||(Kr=Kr.negate());var wr=(dr||Be(0)).add(Kr.toString()),mr=mn(wr,!1);It==null||It(Xe(Lr,mr),{offset:Ut.current?Ke(ur):ur,type:pr?"up":"down"}),(zr=pt.current)===null||zr===void 0||zr.focus()}},on=function(pr){var zr=Be(Nr(Vr)),Kr;zr.isNaN()?Kr=mn(dr,pr):Kr=mn(zr,pr),or!==void 0?Pr(dr,!1):Kr.isNaN()||Pr(Kr,!1)},nn=function(){Nt.current=!0},qr=function(pr){var zr=pr.key,Kr=pr.shiftKey;Nt.current=!0,Ut.current=Kr,zr==="Enter"&&(Bt.current||(Nt.current=!1),on(!1),Tr==null||Tr(pr)),rr!==!1&&!Bt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(zr)&&(jn(zr==="Up"||zr==="ArrowUp"),pr.preventDefault())},gr=function(){Nt.current=!1,Ut.current=!1};ge.useEffect(function(){if(vr&&Gt){var Cr=function(Kr){jn(Kr.deltaY<0),Kr.preventDefault()},pr=pt.current;if(pr)return pr.addEventListener("wheel",Cr,{passive:!1}),function(){return pr.removeEventListener("wheel",Cr)}}});var Ar=function(){bt&&on(!1),Ht(!1),Nt.current=!1};return(0,Ce.o)(function(){dr.isInvalidate()||Pr(dr,!1)},[_r,Zr]),(0,Ce.o)(function(){var Cr=Be(or);Br(Cr);var pr=Be(Nr(Vr));(!Cr.equals(pr)||!Nt.current||Zr)&&Pr(Cr,Nt.current)},[or]),(0,Ce.o)(function(){Zr&&sn()},[Vr]),ge.createElement("div",{ref:kt,className:be()(_t,Kt,(0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)((0,E.Z)({},"".concat(_t,"-focused"),Gt),"".concat(_t,"-disabled"),fr),"".concat(_t,"-readonly"),Jt),"".concat(_t,"-not-a-number"),dr.isNaN()),"".concat(_t,"-out-of-range"),!dr.isInvalidate()&&!en(dr))),style:er,onFocus:function(){Ht(!0)},onBlur:Ar,onKeyDown:qr,onKeyUp:gr,onCompositionStart:En,onCompositionEnd:Mn,onBeforeInput:nn},Ir&&ge.createElement(Fe,{prefixCls:_t,upNode:Qt,downNode:Vt,upDisabled:fn,downDisabled:pn,onStep:jn}),ge.createElement("div",{className:"".concat(Rt,"-wrap")},ge.createElement("input",(0,z.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":sr,"aria-valuemax":yr,"aria-valuenow":dr.isInvalidate()?null:dr.toString(),step:ur},wt,{ref:(0,je.sQ)(pt,Pt),className:Rt,value:Vr,onChange:On,disabled:fr,readOnly:Jt}))))}),Qe=ge.forwardRef(function(vt,Pt){var _t=vt.disabled,Kt=vt.style,er=vt.prefixCls,sr=er===void 0?"rc-input-number":er,yr=vt.value,xr=vt.prefix,ur=vt.suffix,br=vt.addonBefore,or=vt.addonAfter,fr=vt.className,Jt=vt.classNames,Qt=(0,ee.Z)(vt,$e),Vt=ge.useRef(null),rr=ge.useRef(null),ar=ge.useRef(null),vr=function(Ir){ar.current&&(0,it.nH)(ar.current,Ir)};return ge.useImperativeHandle(Pt,function(){return Ee(ar.current,{focus:vr,nativeElement:Vt.current.nativeElement||rr.current})}),ge.createElement(Pe.BaseInput,{className:fr,triggerFocus:vr,prefixCls:sr,value:yr,disabled:_t,style:Kt,prefix:xr,suffix:ur,addonAfter:or,addonBefore:br,classNames:Jt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Vt},ge.createElement(nt,(0,z.Z)({prefixCls:sr,disabled:_t,ref:ar,domRef:rr,className:Jt==null?void 0:Jt.input},Qt)))}),ct=Qe,ot=ct,qe=Ie(62487),_e=Ie(82855),Re=Ie(48755),te=Ie(60840),de=Ie(2171),Ne=Ie(83397),ze=Ie(31756),xe=Ie(56553),ve=Ie(24971),Oe=Ie(70045),We=Ie(36237),Ue=Ie(53075),Ye=Ie(64910),st=Ie(39082),lt=Ie(63356),ft=Ie(56119),Tt=Ie(16931),St=Ie(51636),Ot=Ie(17835);const yt=vt=>{var Pt;const _t=(Pt=vt.handleVisible)!==null&&Pt!==void 0?Pt:"auto",Kt=vt.controlHeightSM-vt.lineWidth*2;return Object.assign(Object.assign({},(0,Ye.T)(vt)),{controlWidth:90,handleWidth:Kt,handleFontSize:vt.fontSize/2,handleVisible:_t,handleActiveBg:vt.colorFillAlter,handleBg:vt.colorBgContainer,filledHandleBg:new Ot.FastColor(vt.colorFillSecondary).onBackground(vt.colorBgContainer).toHexString(),handleHoverColor:vt.colorPrimary,handleBorderColor:vt.colorBorder,handleOpacity:_t===!0?1:0,handleVisibleWidth:_t===!0?Kt:0})},Mt=(vt,Pt)=>{let{componentCls:_t,borderRadiusSM:Kt,borderRadiusLG:er}=vt;const sr=Pt==="lg"?er:Kt;return{[`&-${Pt}`]:{[`${_t}-handler-wrap`]:{borderStartEndRadius:sr,borderEndEndRadius:sr},[`${_t}-handler-up`]:{borderStartEndRadius:sr},[`${_t}-handler-down`]:{borderEndEndRadius:sr}}}},Et=vt=>{const{componentCls:Pt,lineWidth:_t,lineType:Kt,borderRadius:er,inputFontSizeSM:sr,inputFontSizeLG:yr,controlHeightLG:xr,controlHeightSM:ur,colorError:br,paddingInlineSM:or,paddingBlockSM:fr,paddingBlockLG:Jt,paddingInlineLG:Qt,colorTextDescription:Vt,motionDurationMid:rr,handleHoverColor:ar,handleOpacity:vr,paddingInline:hr,paddingBlock:Ir,handleBg:Or,handleActiveBg:Lr,colorTextDisabled:Er,borderRadiusSM:Zr,borderRadiusLG:_r,controlWidth:qt,handleBorderColor:nr,filledHandleBg:jr,lineHeightLG:Tr,calc:It}=vt;return[{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(vt)),(0,Ue.ik)(vt)),{display:"inline-block",width:qt,margin:0,padding:0,borderRadius:er}),(0,st.qG)(vt,{[`${Pt}-handler-wrap`]:{background:Or,[`${Pt}-handler-down`]:{borderBlockStart:`${(0,We.unit)(_t)} ${Kt} ${nr}`}}})),(0,st.H8)(vt,{[`${Pt}-handler-wrap`]:{background:jr,[`${Pt}-handler-down`]:{borderBlockStart:`${(0,We.unit)(_t)} ${Kt} ${nr}`}},"&:focus-within":{[`${Pt}-handler-wrap`]:{background:Or}}})),(0,st.vc)(vt,{[`${Pt}-handler-wrap`]:{background:Or,[`${Pt}-handler-down`]:{borderBlockStart:`${(0,We.unit)(_t)} ${Kt} ${nr}`}}})),(0,st.Mu)(vt)),{"&-rtl":{direction:"rtl",[`${Pt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:yr,lineHeight:Tr,borderRadius:_r,[`input${Pt}-input`]:{height:It(xr).sub(It(_t).mul(2)).equal(),padding:`${(0,We.unit)(Jt)} ${(0,We.unit)(Qt)}`}},"&-sm":{padding:0,fontSize:sr,borderRadius:Zr,[`input${Pt}-input`]:{height:It(ur).sub(It(_t).mul(2)).equal(),padding:`${(0,We.unit)(fr)} ${(0,We.unit)(or)}`}},"&-out-of-range":{[`${Pt}-input-wrap`]:{input:{color:br}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(vt)),(0,Ue.s7)(vt)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Pt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Pt}-group-addon`]:{borderRadius:_r,fontSize:vt.fontSizeLG}},"&-sm":{[`${Pt}-group-addon`]:{borderRadius:Zr}}},(0,st.ir)(vt)),(0,st.S5)(vt)),{[`&:not(${Pt}-compact-first-item):not(${Pt}-compact-last-item)${Pt}-compact-item`]:{[`${Pt}, ${Pt}-group-addon`]:{borderRadius:0}},[`&:not(${Pt}-compact-last-item)${Pt}-compact-first-item`]:{[`${Pt}, ${Pt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Pt}-compact-first-item)${Pt}-compact-last-item`]:{[`${Pt}, ${Pt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Pt}-input`]:{cursor:"not-allowed"},[Pt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(vt)),{width:"100%",padding:`${(0,We.unit)(Ir)} ${(0,We.unit)(hr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:er,outline:0,transition:`all ${rr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ue.nz)(vt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Pt}-handler-wrap, &-focused ${Pt}-handler-wrap`]:{width:vt.handleWidth,opacity:1}})},{[Pt]:Object.assign(Object.assign(Object.assign({[`${Pt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:vt.handleVisibleWidth,opacity:vr,height:"100%",borderStartStartRadius:0,borderStartEndRadius:er,borderEndEndRadius:er,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${rr}`,overflow:"hidden",[`${Pt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Pt}-handler-up-inner,
|
|
|
${Pt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:vt.handleFontSize}}},[`${Pt}-handler`]:{height:"50%",overflow:"hidden",color:Vt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,We.unit)(_t)} ${Kt} ${nr}`,transition:`all ${rr} linear`,"&:active":{background:Lr},"&:hover":{height:"60%",[`
|
|
|
${Pt}-handler-up-inner,
|
|
|
${Pt}-handler-down-inner
|
|
|
`]:{color:ar}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,lt.Ro)()),{color:Vt,transition:`all ${rr} linear`,userSelect:"none"})},[`${Pt}-handler-up`]:{borderStartEndRadius:er},[`${Pt}-handler-down`]:{borderEndEndRadius:er}},Mt(vt,"lg")),Mt(vt,"sm")),{"&-disabled, &-readonly":{[`${Pt}-handler-wrap`]:{display:"none"},[`${Pt}-input`]:{color:"inherit"}},[`
|
|
|
${Pt}-handler-up-disabled,
|
|
|
${Pt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Pt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Pt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Er}})}]},xt=vt=>{const{componentCls:Pt,paddingBlock:_t,paddingInline:Kt,inputAffixPadding:er,controlWidth:sr,borderRadiusLG:yr,borderRadiusSM:xr,paddingInlineLG:ur,paddingInlineSM:br,paddingBlockLG:or,paddingBlockSM:fr,motionDurationMid:Jt}=vt;return{[`${Pt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Pt}-input`]:{padding:`${(0,We.unit)(_t)} 0`}},(0,Ue.ik)(vt)),{position:"relative",display:"inline-flex",alignItems:"center",width:sr,padding:0,paddingInlineStart:Kt,"&-lg":{borderRadius:yr,paddingInlineStart:ur,[`input${Pt}-input`]:{padding:`${(0,We.unit)(or)} 0`}},"&-sm":{borderRadius:xr,paddingInlineStart:br,[`input${Pt}-input`]:{padding:`${(0,We.unit)(fr)} 0`}},[`&:not(${Pt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Pt}-disabled`]:{background:"transparent"},[`> div${Pt}`]:{width:"100%",border:"none",outline:"none",[`&${Pt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Pt}-handler-wrap`]:{zIndex:2},[Pt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:er},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Kt,marginInlineStart:er,transition:`margin ${Jt}`}},[`&:hover ${Pt}-handler-wrap, &-focused ${Pt}-handler-wrap`]:{width:vt.handleWidth,opacity:1},[`&:not(${Pt}-affix-wrapper-without-controls):hover ${Pt}-suffix`]:{marginInlineEnd:vt.calc(vt.handleWidth).add(Kt).equal()}})}};var jt=(0,Tt.I$)("InputNumber",vt=>{const Pt=(0,St.mergeToken)(vt,(0,Ye.e)(vt));return[Et(Pt),xt(Pt),(0,ft.c)(Pt)]},yt,{unitless:{handleOpacity:!0}}),At=function(vt,Pt){var _t={};for(var Kt in vt)Object.prototype.hasOwnProperty.call(vt,Kt)&&Pt.indexOf(Kt)<0&&(_t[Kt]=vt[Kt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var er=0,Kt=Object.getOwnPropertySymbols(vt);er<Kt.length;er++)Pt.indexOf(Kt[er])<0&&Object.prototype.propertyIsEnumerable.call(vt,Kt[er])&&(_t[Kt[er]]=vt[Kt[er]]);return _t};const ht=ge.forwardRef((vt,Pt)=>{const{getPrefixCls:_t,direction:Kt}=ge.useContext(Re.E_),er=ge.useRef(null);ge.useImperativeHandle(Pt,()=>er.current);const{className:sr,rootClassName:yr,size:xr,disabled:ur,prefixCls:br,addonBefore:or,addonAfter:fr,prefix:Jt,suffix:Qt,bordered:Vt,readOnly:rr,status:ar,controls:vr,variant:hr}=vt,Ir=At(vt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Or=_t("input-number",br),Lr=(0,Ne.Z)(Or),[Er,Zr,_r]=jt(Or,Lr),{compactSize:qt,compactItemClassnames:nr}=(0,Oe.ri)(Or,Kt);let jr=ge.createElement(a.Z,{className:`${Or}-handler-up-inner`}),Tr=ge.createElement(gt.Z,{className:`${Or}-handler-down-inner`});const It=typeof vr=="boolean"?vr:void 0;typeof vr=="object"&&(jr=typeof vr.upIcon=="undefined"?jr:ge.createElement("span",{className:`${Or}-handler-up-inner`},vr.upIcon),Tr=typeof vr.downIcon=="undefined"?Tr:ge.createElement("span",{className:`${Or}-handler-down-inner`},vr.downIcon));const{hasFeedback:Ft,status:bt,isFormItemInput:kt,feedbackIcon:wt}=ge.useContext(xe.aM),Rt=(0,_e.F)(bt,ar),pt=(0,ze.Z)(lr=>{var dr;return(dr=xr!=null?xr:qt)!==null&&dr!==void 0?dr:lr}),Lt=ge.useContext(de.Z),zt=ur!=null?ur:Lt,[Gt,Ht]=(0,ve.Z)("inputNumber",hr,Vt),Nt=Ft&&ge.createElement(ge.Fragment,null,wt),Bt=be()({[`${Or}-lg`]:pt==="large",[`${Or}-sm`]:pt==="small",[`${Or}-rtl`]:Kt==="rtl",[`${Or}-in-form-item`]:kt},Zr),Ut=`${Or}-group`,cr=ge.createElement(ot,Object.assign({ref:er,disabled:zt,className:be()(_r,Lr,sr,yr,nr),upHandler:jr,downHandler:Tr,prefixCls:Or,readOnly:rr,controls:It,prefix:Jt,suffix:Nt||Qt,addonBefore:or&&ge.createElement(qe.Z,{form:!0,space:!0},or),addonAfter:fr&&ge.createElement(qe.Z,{form:!0,space:!0},fr),classNames:{input:Bt,variant:be()({[`${Or}-${Gt}`]:Ht},(0,_e.Z)(Or,Rt,Ft)),affixWrapper:be()({[`${Or}-affix-wrapper-sm`]:pt==="small",[`${Or}-affix-wrapper-lg`]:pt==="large",[`${Or}-affix-wrapper-rtl`]:Kt==="rtl",[`${Or}-affix-wrapper-without-controls`]:vr===!1||zt},Zr),wrapper:be()({[`${Ut}-rtl`]:Kt==="rtl"},Zr),groupWrapper:be()({[`${Or}-group-wrapper-sm`]:pt==="small",[`${Or}-group-wrapper-lg`]:pt==="large",[`${Or}-group-wrapper-rtl`]:Kt==="rtl",[`${Or}-group-wrapper-${Gt}`]:Ht},(0,_e.Z)(`${Or}-group-wrapper`,Rt,Ft),Zr)}},Ir));return Er(cr)}),Ct=ht,$t=vt=>ge.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},ge.createElement(ht,Object.assign({},vt)));Ct._InternalPanelDoNotUseOrYouWillBeFired=$t;var Xt=Ct},49397:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ye}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(36901),be=Ie(8654),z=Ie(62487),E=Ie(86013),ie=Ie(82855),oe=Ie(48755),ee=Ie(2171),le=Ie(83397),x=Ie(31756),ne=Ie(56553),re=Ie(24971),ae=Ie(70045),se=Ie(23826),ce=Ie(53075);function pe(De){return!!(De.prefix||De.suffix||De.allowClear||De.showCount)}var me=function(De,Me){var Be={};for(var Pe in De)Object.prototype.hasOwnProperty.call(De,Pe)&&Me.indexOf(Pe)<0&&(Be[Pe]=De[Pe]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Pe=Object.getOwnPropertySymbols(De);Ce<Pe.length;Ce++)Me.indexOf(Pe[Ce])<0&&Object.prototype.propertyIsEnumerable.call(De,Pe[Ce])&&(Be[Pe[Ce]]=De[Pe[Ce]]);return Be},ye=(0,ge.forwardRef)((De,Me)=>{const{prefixCls:Be,bordered:Pe=!0,status:Ce,size:Ee,disabled:je,onBlur:ke,onFocus:Le,suffix:Ae,allowClear:Se,addonAfter:Ge,addonBefore:Ze,className:Je,style:at,styles:Fe,rootClassName:Ke,onChange:it,classNames:rt,variant:et}=De,$e=me(De,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Xe,direction:Ve,allowClear:nt,autoComplete:Qe,className:ct,style:ot,classNames:qe,styles:_e}=(0,oe.dj)("input"),Re=Xe("input",Be),te=(0,ge.useRef)(null),de=(0,le.Z)(Re),[Ne,ze,xe]=(0,ce.TI)(Re,Ke),[ve]=(0,ce.ZP)(Re,de),{compactSize:Oe,compactItemClassnames:We}=(0,ae.ri)(Re,Ve),Ue=(0,x.Z)(Xt=>{var vt;return(vt=Ee!=null?Ee:Oe)!==null&&vt!==void 0?vt:Xt}),Ye=ge.useContext(ee.Z),st=je!=null?je:Ye,{status:lt,hasFeedback:ft,feedbackIcon:Tt}=(0,ge.useContext)(ne.aM),St=(0,ie.F)(lt,Ce),Ot=pe(De)||!!ft,yt=(0,ge.useRef)(Ot),Mt=(0,se.Z)(te,!0),Et=Xt=>{Mt(),ke==null||ke(Xt)},xt=Xt=>{Mt(),Le==null||Le(Xt)},jt=Xt=>{Mt(),it==null||it(Xt)},At=(ft||Ae)&&ge.createElement(ge.Fragment,null,Ae,ft&&Tt),ht=(0,E.Z)(Se!=null?Se:nt),[Ct,$t]=(0,re.Z)("input",et,Pe);return Ne(ve(ge.createElement(Te.default,Object.assign({ref:(0,be.sQ)(Me,te),prefixCls:Re,autoComplete:Qe},$e,{disabled:st,onBlur:Et,onFocus:xt,style:Object.assign(Object.assign({},ot),at),styles:Object.assign(Object.assign({},_e),Fe),suffix:At,allowClear:ht,className:a()(Je,Ke,xe,de,We,ct),onChange:jt,addonBefore:Ze&&ge.createElement(z.Z,{form:!0,space:!0},Ze),addonAfter:Ge&&ge.createElement(z.Z,{form:!0,space:!0},Ge),classNames:Object.assign(Object.assign(Object.assign({},rt),qe),{input:a()({[`${Re}-sm`]:Ue==="small",[`${Re}-lg`]:Ue==="large",[`${Re}-rtl`]:Ve==="rtl"},rt==null?void 0:rt.input,qe.input,ze),variant:a()({[`${Re}-${Ct}`]:$t},(0,ie.Z)(Re,St)),affixWrapper:a()({[`${Re}-affix-wrapper-sm`]:Ue==="small",[`${Re}-affix-wrapper-lg`]:Ue==="large",[`${Re}-affix-wrapper-rtl`]:Ve==="rtl"},ze),wrapper:a()({[`${Re}-group-rtl`]:Ve==="rtl"},ze),groupWrapper:a()({[`${Re}-group-wrapper-sm`]:Ue==="small",[`${Re}-group-wrapper-lg`]:Ue==="large",[`${Re}-group-wrapper-rtl`]:Ve==="rtl",[`${Re}-group-wrapper-${Ct}`]:$t},(0,ie.Z)(`${Re}-group-wrapper`,St,ft),ze)})}))))})},79809:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return Me}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(22711),be=Ie(86013),z=Ie(82855),E=Ie(48755),ie=Ie(2171),oe=Ie(83397),ee=Ie(31756),le=Ie(56553),x=Ie(24971),ne=Ie(70045),re=Ie(30292),ae=Ie(53075),se=Ie(16931),ce=Ie(51636),pe=Ie(64910);const me=Be=>{const{componentCls:Pe,paddingLG:Ce}=Be,Ee=`${Pe}-textarea`;return{[`textarea${Pe}`]:{maxWidth:"100%",height:"auto",minHeight:Be.controlHeight,lineHeight:Be.lineHeight,verticalAlign:"bottom",transition:`all ${Be.motionDurationSlow}`,resize:"vertical",[`&${Pe}-mouse-active`]:{transition:`all ${Be.motionDurationSlow}, height 0s, width 0s`}},[`${Pe}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ee]:{position:"relative","&-show-count":{[`> ${Pe}`]:{height:"100%"},[`${Pe}-data-count`]:{position:"absolute",bottom:Be.calc(Be.fontSize).mul(Be.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Be.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${Pe},
|
|
|
&-affix-wrapper${Ee}-has-feedback ${Pe}
|
|
|
`]:{paddingInlineEnd:Ce},[`&-affix-wrapper${Pe}-affix-wrapper`]:{padding:0,[`> textarea${Pe}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Be.calc(Be.controlHeight).sub(Be.calc(Be.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Pe}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Pe}-clear-icon`]:{position:"absolute",insetInlineEnd:Be.paddingInline,insetBlockStart:Be.paddingXS},[`${Ee}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Be.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Pe}-affix-wrapper-sm`]:{[`${Pe}-suffix`]:{[`${Pe}-clear-icon`]:{insetInlineEnd:Be.paddingInlineSM}}}}}};var he=(0,se.I$)(["Input","TextArea"],Be=>{const Pe=(0,ce.mergeToken)(Be,(0,pe.e)(Be));return[me(Pe)]},pe.T,{resetFont:!1}),ye=function(Be,Pe){var Ce={};for(var Ee in Be)Object.prototype.hasOwnProperty.call(Be,Ee)&&Pe.indexOf(Ee)<0&&(Ce[Ee]=Be[Ee]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ee=Object.getOwnPropertySymbols(Be);je<Ee.length;je++)Pe.indexOf(Ee[je])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ee[je])&&(Ce[Ee[je]]=Be[Ee[je]]);return Ce},Me=(0,ge.forwardRef)((Be,Pe)=>{var Ce;const{prefixCls:Ee,bordered:je=!0,size:ke,disabled:Le,status:Ae,allowClear:Se,classNames:Ge,rootClassName:Ze,className:Je,style:at,styles:Fe,variant:Ke,showCount:it,onMouseDown:rt,onResize:et}=Be,$e=ye(Be,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Xe,direction:Ve,allowClear:nt,autoComplete:Qe,className:ct,style:ot,classNames:qe,styles:_e}=(0,E.dj)("textArea"),Re=ge.useContext(ie.Z),te=Le!=null?Le:Re,{status:de,hasFeedback:Ne,feedbackIcon:ze}=ge.useContext(le.aM),xe=(0,z.F)(de,Ae),ve=ge.useRef(null);ge.useImperativeHandle(Pe,()=>{var $t;return{resizableTextArea:($t=ve.current)===null||$t===void 0?void 0:$t.resizableTextArea,focus:Xt=>{var vt,Pt;(0,re.nH)((Pt=(vt=ve.current)===null||vt===void 0?void 0:vt.resizableTextArea)===null||Pt===void 0?void 0:Pt.textArea,Xt)},blur:()=>{var Xt;return(Xt=ve.current)===null||Xt===void 0?void 0:Xt.blur()}}});const Oe=Xe("input",Ee),We=(0,oe.Z)(Oe),[Ue,Ye,st]=(0,ae.TI)(Oe,Ze),[lt]=he(Oe,We),{compactSize:ft,compactItemClassnames:Tt}=(0,ne.ri)(Oe,Ve),St=(0,ee.Z)($t=>{var Xt;return(Xt=ke!=null?ke:ft)!==null&&Xt!==void 0?Xt:$t}),[Ot,yt]=(0,x.Z)("textArea",Ke,je),Mt=(0,be.Z)(Se!=null?Se:nt),[Et,xt]=ge.useState(!1),[jt,At]=ge.useState(!1),ht=$t=>{xt(!0),rt==null||rt($t);const Xt=()=>{xt(!1),document.removeEventListener("mouseup",Xt)};document.addEventListener("mouseup",Xt)},Ct=$t=>{var Xt,vt;if(et==null||et($t),Et&&typeof getComputedStyle=="function"){const Pt=(vt=(Xt=ve.current)===null||Xt===void 0?void 0:Xt.nativeElement)===null||vt===void 0?void 0:vt.querySelector("textarea");Pt&&getComputedStyle(Pt).resize==="both"&&At(!0)}};return Ue(lt(ge.createElement(Te.default,Object.assign({autoComplete:Qe},$e,{style:Object.assign(Object.assign({},ot),at),styles:Object.assign(Object.assign({},_e),Fe),disabled:te,allowClear:Mt,className:a()(st,We,Je,Ze,Tt,ct,jt&&`${Oe}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Ge),qe),{textarea:a()({[`${Oe}-sm`]:St==="small",[`${Oe}-lg`]:St==="large"},Ye,Ge==null?void 0:Ge.textarea,qe.textarea,Et&&`${Oe}-mouse-active`),variant:a()({[`${Oe}-${Ot}`]:yt},(0,z.Z)(Oe,xe)),affixWrapper:a()(`${Oe}-textarea-affix-wrapper`,{[`${Oe}-affix-wrapper-rtl`]:Ve==="rtl",[`${Oe}-affix-wrapper-sm`]:St==="small",[`${Oe}-affix-wrapper-lg`]:St==="large",[`${Oe}-textarea-show-count`]:it||((Ce=Be.count)===null||Ce===void 0?void 0:Ce.show)},Ye)}),prefixCls:Oe,suffix:Ne&&ge.createElement("span",{className:`${Oe}-textarea-suffix`},ze),showCount:it,ref:ve,onResize:Ct,onMouseDown:ht}))))})},23826:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return gt}});var ge=Ie(59301);function gt(a,Te){const be=(0,ge.useRef)([]),z=()=>{be.current.push(setTimeout(()=>{var E,ie,oe,ee;!((E=a.current)===null||E===void 0)&&E.input&&((ie=a.current)===null||ie===void 0?void 0:ie.input.getAttribute("type"))==="password"&&(!((oe=a.current)===null||oe===void 0)&&oe.input.hasAttribute("value"))&&((ee=a.current)===null||ee===void 0||ee.input.removeAttribute("value"))}))};return(0,ge.useEffect)(()=>(Te&&z(),()=>be.current.forEach(E=>{E&&clearTimeout(E)})),[]),z}},37568:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{default:function(){return qe}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(48755),be=Ie(56553),z=Ie(53075),ie=_e=>{const{getPrefixCls:Re,direction:te}=(0,ge.useContext)(Te.E_),{prefixCls:de,className:Ne}=_e,ze=Re("input-group",de),xe=Re("input"),[ve,Oe,We]=(0,z.ZP)(xe),Ue=a()(ze,We,{[`${ze}-lg`]:_e.size==="large",[`${ze}-sm`]:_e.size==="small",[`${ze}-compact`]:_e.compact,[`${ze}-rtl`]:te==="rtl"},Oe,Ne),Ye=(0,ge.useContext)(be.aM),st=(0,ge.useMemo)(()=>Object.assign(Object.assign({},Ye),{isFormItemInput:!1}),[Ye]);return ve(ge.createElement("span",{className:Ue,style:_e.style,onMouseEnter:_e.onMouseEnter,onMouseLeave:_e.onMouseLeave,onFocus:_e.onFocus,onBlur:_e.onBlur},ge.createElement(be.aM.Provider,{value:st},_e.children)))},oe=Ie(49397),ee=Ie(94480),le=Ie(6089),x=Ie(26112),ne=Ie(82855),re=Ie(31756),ae=Ie(16931),se=Ie(51636),ce=Ie(64910);const pe=_e=>{const{componentCls:Re,paddingXS:te}=_e;return{[Re]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${Re}-input`]:{textAlign:"center",paddingInline:_e.paddingXXS},[`&${Re}-sm ${Re}-input`]:{paddingInline:_e.calc(_e.paddingXXS).div(2).equal()},[`&${Re}-lg ${Re}-input`]:{paddingInline:_e.paddingXS}}}};var me=(0,ae.I$)(["Input","OTP"],_e=>{const Re=(0,se.mergeToken)(_e,(0,ce.e)(_e));return[pe(Re)]},ce.T),he=Ie(16089),ye=function(_e,Re){var te={};for(var de in _e)Object.prototype.hasOwnProperty.call(_e,de)&&Re.indexOf(de)<0&&(te[de]=_e[de]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,de=Object.getOwnPropertySymbols(_e);Ne<de.length;Ne++)Re.indexOf(de[Ne])<0&&Object.prototype.propertyIsEnumerable.call(_e,de[Ne])&&(te[de[Ne]]=_e[de[Ne]]);return te},Me=ge.forwardRef((_e,Re)=>{const{value:te,onChange:de,onActiveChange:Ne,index:ze,mask:xe}=_e,ve=ye(_e,["value","onChange","onActiveChange","index","mask"]),Oe=te&&typeof xe=="string"?xe:te,We=ft=>{de(ze,ft.target.value)},Ue=ge.useRef(null);ge.useImperativeHandle(Re,()=>Ue.current);const Ye=()=>{(0,he.Z)(()=>{var ft;const Tt=(ft=Ue.current)===null||ft===void 0?void 0:ft.input;document.activeElement===Tt&&Tt&&Tt.select()})},st=ft=>{const{key:Tt,ctrlKey:St,metaKey:Ot}=ft;Tt==="ArrowLeft"?Ne(ze-1):Tt==="ArrowRight"?Ne(ze+1):Tt==="z"&&(St||Ot)&&ft.preventDefault(),Ye()},lt=ft=>{ft.key==="Backspace"&&!te&&Ne(ze-1),Ye()};return ge.createElement(oe.Z,Object.assign({type:xe===!0?"password":"text"},ve,{ref:Ue,value:Oe,onInput:We,onFocus:Ye,onKeyDown:st,onKeyUp:lt,onMouseDown:Ye,onMouseUp:Ye}))}),Be=function(_e,Re){var te={};for(var de in _e)Object.prototype.hasOwnProperty.call(_e,de)&&Re.indexOf(de)<0&&(te[de]=_e[de]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,de=Object.getOwnPropertySymbols(_e);Ne<de.length;Ne++)Re.indexOf(de[Ne])<0&&Object.prototype.propertyIsEnumerable.call(_e,de[Ne])&&(te[de[Ne]]=_e[de[Ne]]);return te};function Pe(_e){return(_e||"").split("")}const Ce=_e=>{const{index:Re,prefixCls:te,separator:de}=_e,Ne=typeof de=="function"?de(Re):de;return Ne?ge.createElement("span",{className:`${te}-separator`},Ne):null};var je=ge.forwardRef((_e,Re)=>{const{prefixCls:te,length:de=6,size:Ne,defaultValue:ze,value:xe,onChange:ve,formatter:Oe,separator:We,variant:Ue,disabled:Ye,status:st,autoFocus:lt,mask:ft,type:Tt,onInput:St,inputMode:Ot}=_e,yt=Be(_e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Mt,direction:Et}=ge.useContext(Te.E_),xt=Mt("otp",te),jt=(0,x.Z)(yt,{aria:!0,data:!0,attr:!0}),[At,ht,Ct]=me(xt),$t=(0,re.Z)(Jt=>Ne!=null?Ne:Jt),Xt=ge.useContext(be.aM),vt=(0,ne.F)(Xt.status,st),Pt=ge.useMemo(()=>Object.assign(Object.assign({},Xt),{status:vt,hasFeedback:!1,feedbackIcon:null}),[Xt,vt]),_t=ge.useRef(null),Kt=ge.useRef({});ge.useImperativeHandle(Re,()=>({focus:()=>{var Jt;(Jt=Kt.current[0])===null||Jt===void 0||Jt.focus()},blur:()=>{var Jt;for(let Qt=0;Qt<de;Qt+=1)(Jt=Kt.current[Qt])===null||Jt===void 0||Jt.blur()},nativeElement:_t.current}));const er=Jt=>Oe?Oe(Jt):Jt,[sr,yr]=ge.useState(()=>Pe(er(ze||"")));ge.useEffect(()=>{xe!==void 0&&yr(Pe(xe))},[xe]);const xr=(0,le.Z)(Jt=>{yr(Jt),St&&St(Jt),ve&&Jt.length===de&&Jt.every(Qt=>Qt)&&Jt.some((Qt,Vt)=>sr[Vt]!==Qt)&&ve(Jt.join(""))}),ur=(0,le.Z)((Jt,Qt)=>{let Vt=(0,ee.Z)(sr);for(let ar=0;ar<Jt;ar+=1)Vt[ar]||(Vt[ar]="");Qt.length<=1?Vt[Jt]=Qt:Vt=Vt.slice(0,Jt).concat(Pe(Qt)),Vt=Vt.slice(0,de);for(let ar=Vt.length-1;ar>=0&&!Vt[ar];ar-=1)Vt.pop();const rr=er(Vt.map(ar=>ar||" ").join(""));return Vt=Pe(rr).map((ar,vr)=>ar===" "&&!Vt[vr]?Vt[vr]:ar),Vt}),br=(Jt,Qt)=>{var Vt;const rr=ur(Jt,Qt),ar=Math.min(Jt+Qt.length,de-1);ar!==Jt&&rr[Jt]!==void 0&&((Vt=Kt.current[ar])===null||Vt===void 0||Vt.focus()),xr(rr)},or=Jt=>{var Qt;(Qt=Kt.current[Jt])===null||Qt===void 0||Qt.focus()},fr={variant:Ue,disabled:Ye,status:vt,mask:ft,type:Tt,inputMode:Ot};return At(ge.createElement("div",Object.assign({},jt,{ref:_t,className:a()(xt,{[`${xt}-sm`]:$t==="small",[`${xt}-lg`]:$t==="large",[`${xt}-rtl`]:Et==="rtl"},Ct,ht)}),ge.createElement(be.aM.Provider,{value:Pt},Array.from({length:de}).map((Jt,Qt)=>{const Vt=`otp-${Qt}`,rr=sr[Qt]||"";return ge.createElement(ge.Fragment,{key:Vt},ge.createElement(Me,Object.assign({ref:ar=>{Kt.current[Qt]=ar},index:Qt,size:$t,htmlSize:1,className:`${xt}-input`,onChange:br,value:rr,onActiveChange:or,autoFocus:Qt===0&<},fr)),Qt<de-1&&ge.createElement(Ce,{separator:We,index:Qt,prefixCls:xt}))}))))}),ke=Ie(73331),Le=Ie(15277),Ae=Ie(2738),Se=Ie(8654),Ge=Ie(2171),Ze=Ie(23826),Je=function(_e,Re){var te={};for(var de in _e)Object.prototype.hasOwnProperty.call(_e,de)&&Re.indexOf(de)<0&&(te[de]=_e[de]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,de=Object.getOwnPropertySymbols(_e);Ne<de.length;Ne++)Re.indexOf(de[Ne])<0&&Object.prototype.propertyIsEnumerable.call(_e,de[Ne])&&(te[de[Ne]]=_e[de[Ne]]);return te};const at=_e=>_e?ge.createElement(Le.Z,null):ge.createElement(ke.Z,null),Fe={click:"onClick",hover:"onMouseOver"};var it=ge.forwardRef((_e,Re)=>{const{disabled:te,action:de="click",visibilityToggle:Ne=!0,iconRender:ze=at}=_e,xe=ge.useContext(Ge.Z),ve=te!=null?te:xe,Oe=typeof Ne=="object"&&Ne.visible!==void 0,[We,Ue]=(0,ge.useState)(()=>Oe?Ne.visible:!1),Ye=(0,ge.useRef)(null);ge.useEffect(()=>{Oe&&Ue(Ne.visible)},[Oe,Ne]);const st=(0,Ze.Z)(Ye),lt=()=>{var $t;if(ve)return;We&&st();const Xt=!We;Ue(Xt),typeof Ne=="object"&&(($t=Ne.onVisibleChange)===null||$t===void 0||$t.call(Ne,Xt))},ft=$t=>{const Xt=Fe[de]||"",vt=ze(We),Pt={[Xt]:lt,className:`${$t}-icon`,key:"passwordIcon",onMouseDown:_t=>{_t.preventDefault()},onMouseUp:_t=>{_t.preventDefault()}};return ge.cloneElement(ge.isValidElement(vt)?vt:ge.createElement("span",null,vt),Pt)},{className:Tt,prefixCls:St,inputPrefixCls:Ot,size:yt}=_e,Mt=Je(_e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Et}=ge.useContext(Te.E_),xt=Et("input",Ot),jt=Et("input-password",St),At=Ne&&ft(jt),ht=a()(jt,Tt,{[`${jt}-${yt}`]:!!yt}),Ct=Object.assign(Object.assign({},(0,Ae.Z)(Mt,["suffix","iconRender","visibilityToggle"])),{type:We?"text":"password",className:ht,prefixCls:xt,suffix:At});return yt&&(Ct.size=yt),ge.createElement(oe.Z,Object.assign({ref:(0,Se.sQ)(Re,Ye)},Ct))}),rt=Ie(47472),et=Ie(22703),$e=Ie(7939),Xe=Ie(70045),Ve=function(_e,Re){var te={};for(var de in _e)Object.prototype.hasOwnProperty.call(_e,de)&&Re.indexOf(de)<0&&(te[de]=_e[de]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,de=Object.getOwnPropertySymbols(_e);Ne<de.length;Ne++)Re.indexOf(de[Ne])<0&&Object.prototype.propertyIsEnumerable.call(_e,de[Ne])&&(te[de[Ne]]=_e[de[Ne]]);return te},Qe=ge.forwardRef((_e,Re)=>{const{prefixCls:te,inputPrefixCls:de,className:Ne,size:ze,suffix:xe,enterButton:ve=!1,addonAfter:Oe,loading:We,disabled:Ue,onSearch:Ye,onChange:st,onCompositionStart:lt,onCompositionEnd:ft}=_e,Tt=Ve(_e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:St,direction:Ot}=ge.useContext(Te.E_),yt=ge.useRef(!1),Mt=St("input-search",te),Et=St("input",de),{compactSize:xt}=(0,Xe.ri)(Mt,Ot),jt=(0,re.Z)(br=>{var or;return(or=ze!=null?ze:xt)!==null&&or!==void 0?or:br}),At=ge.useRef(null),ht=br=>{br!=null&&br.target&&br.type==="click"&&Ye&&Ye(br.target.value,br,{source:"clear"}),st==null||st(br)},Ct=br=>{var or;document.activeElement===((or=At.current)===null||or===void 0?void 0:or.input)&&br.preventDefault()},$t=br=>{var or,fr;Ye&&Ye((fr=(or=At.current)===null||or===void 0?void 0:or.input)===null||fr===void 0?void 0:fr.value,br,{source:"input"})},Xt=br=>{yt.current||We||$t(br)},vt=typeof ve=="boolean"?ge.createElement(rt.Z,null):null,Pt=`${Mt}-button`;let _t;const Kt=ve||{},er=Kt.type&&Kt.type.__ANT_BUTTON===!0;er||Kt.type==="button"?_t=(0,et.Tm)(Kt,Object.assign({onMouseDown:Ct,onClick:br=>{var or,fr;(fr=(or=Kt==null?void 0:Kt.props)===null||or===void 0?void 0:or.onClick)===null||fr===void 0||fr.call(or,br),$t(br)},key:"enterButton"},er?{className:Pt,size:jt}:{})):_t=ge.createElement($e.ZP,{className:Pt,type:ve?"primary":void 0,size:jt,disabled:Ue,key:"enterButton",onMouseDown:Ct,onClick:$t,loading:We,icon:vt},ve),Oe&&(_t=[_t,(0,et.Tm)(Oe,{key:"addonAfter"})]);const sr=a()(Mt,{[`${Mt}-rtl`]:Ot==="rtl",[`${Mt}-${jt}`]:!!jt,[`${Mt}-with-button`]:!!ve},Ne),yr=Object.assign(Object.assign({},Tt),{className:sr,prefixCls:Et,type:"search"}),xr=br=>{yt.current=!0,lt==null||lt(br)},ur=br=>{yt.current=!1,ft==null||ft(br)};return ge.createElement(oe.Z,Object.assign({ref:(0,Se.sQ)(At,Re),onPressEnter:Xt},yr,{size:jt,onCompositionStart:xr,onCompositionEnd:ur,addonAfter:_t,suffix:xe,onChange:ht,disabled:Ue}))}),ct=Ie(79809);const ot=oe.Z;ot.Group=ie,ot.Search=Qe,ot.TextArea=ct.Z,ot.Password=it,ot.OTP=je;var qe=ot},24303:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{D:function(){return Be},Z:function(){return Ee}});var ge=Ie(59301),gt=Ie(54476),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Te=a,be=Ie(7657),z=function(ke,Le){return ge.createElement(be.Z,(0,gt.Z)({},ke,{ref:Le,icon:Te}))},E=ge.forwardRef(z),ie=E,oe=Ie(33853),ee=Ie(38819),le=Ie(92310),x=Ie.n(le),ne=Ie(2738),re=Ie(48755),ae=Ie(6989),se=Ie(36237),ce=Ie(48923),pe=Ie(16931);const me=je=>{const{componentCls:ke,siderBg:Le,motionDurationMid:Ae,motionDurationSlow:Se,antCls:Ge,triggerHeight:Ze,triggerColor:Je,triggerBg:at,headerHeight:Fe,zeroTriggerWidth:Ke,zeroTriggerHeight:it,borderRadiusLG:rt,lightSiderBg:et,lightTriggerColor:$e,lightTriggerBg:Xe,bodyBg:Ve}=je;return{[ke]:{position:"relative",minWidth:0,background:Le,transition:`all ${Ae}, background 0s`,"&-has-trigger":{paddingBottom:Ze},"&-right":{order:1},[`${ke}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ge}-menu${Ge}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${ke}-children`]:{overflow:"hidden"},[`${ke}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Ze,color:Je,lineHeight:(0,se.unit)(Ze),textAlign:"center",background:at,cursor:"pointer",transition:`all ${Ae}`},[`${ke}-zero-width-trigger`]:{position:"absolute",top:Fe,insetInlineEnd:je.calc(Ke).mul(-1).equal(),zIndex:1,width:Ke,height:it,color:Je,fontSize:je.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Le,borderRadius:`0 ${(0,se.unit)(rt)} ${(0,se.unit)(rt)} 0`,cursor:"pointer",transition:`background ${Se} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Se}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:je.calc(Ke).mul(-1).equal(),borderRadius:`${(0,se.unit)(rt)} 0 0 ${(0,se.unit)(rt)}`}},"&-light":{background:et,[`${ke}-trigger`]:{color:$e,background:Xe},[`${ke}-zero-width-trigger`]:{color:$e,background:Xe,border:`1px solid ${Ve}`,borderInlineStart:0}}}}};var he=(0,pe.I$)(["Layout","Sider"],je=>[me(je)],ce.eh,{deprecatedTokens:ce.jn}),ye=function(je,ke){var Le={};for(var Ae in je)Object.prototype.hasOwnProperty.call(je,Ae)&&ke.indexOf(Ae)<0&&(Le[Ae]=je[Ae]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Ae=Object.getOwnPropertySymbols(je);Se<Ae.length;Se++)ke.indexOf(Ae[Se])<0&&Object.prototype.propertyIsEnumerable.call(je,Ae[Se])&&(Le[Ae[Se]]=je[Ae[Se]]);return Le};const De={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Me=je=>!Number.isNaN(Number.parseFloat(je))&&isFinite(je),Be=ge.createContext({}),Pe=(()=>{let je=0;return function(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return je+=1,`${ke}${je}`}})();var Ee=ge.forwardRef((je,ke)=>{const{prefixCls:Le,className:Ae,trigger:Se,children:Ge,defaultCollapsed:Ze=!1,theme:Je="dark",style:at={},collapsible:Fe=!1,reverseArrow:Ke=!1,width:it=200,collapsedWidth:rt=80,zeroWidthTriggerStyle:et,breakpoint:$e,onCollapse:Xe,onBreakpoint:Ve}=je,nt=ye(je,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,ge.useContext)(ae.V),[ct,ot]=(0,ge.useState)("collapsed"in je?je.collapsed:Ze),[qe,_e]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in je&&ot(je.collapsed)},[je.collapsed]);const Re=(jt,At)=>{"collapsed"in je||ot(jt),Xe==null||Xe(jt,At)},{getPrefixCls:te,direction:de}=(0,ge.useContext)(re.E_),Ne=te("layout-sider",Le),[ze,xe,ve]=he(Ne),Oe=(0,ge.useRef)(null);Oe.current=jt=>{_e(jt.matches),Ve==null||Ve(jt.matches),ct!==jt.matches&&Re(jt.matches,"responsive")},(0,ge.useEffect)(()=>{function jt(ht){return Oe.current(ht)}let At;if(typeof window!="undefined"){const{matchMedia:ht}=window;if(ht&&$e&&$e in De){At=ht(`screen and (max-width: ${De[$e]})`);try{At.addEventListener("change",jt)}catch(Ct){At.addListener(jt)}jt(At)}}return()=>{try{At==null||At.removeEventListener("change",jt)}catch(ht){At==null||At.removeListener(jt)}}},[$e]),(0,ge.useEffect)(()=>{const jt=Pe("ant-sider-");return Qe.addSider(jt),()=>Qe.removeSider(jt)},[]);const We=()=>{Re(!ct,"clickTrigger")},Ue=(0,ne.Z)(nt,["collapsed"]),Ye=ct?rt:it,st=Me(Ye)?`${Ye}px`:String(Ye),lt=parseFloat(String(rt||0))===0?ge.createElement("span",{onClick:We,className:x()(`${Ne}-zero-width-trigger`,`${Ne}-zero-width-trigger-${Ke?"right":"left"}`),style:et},Se||ge.createElement(ie,null)):null,ft=de==="rtl"==!Ke,Ot={expanded:ft?ge.createElement(ee.Z,null):ge.createElement(oe.Z,null),collapsed:ft?ge.createElement(oe.Z,null):ge.createElement(ee.Z,null)}[ct?"collapsed":"expanded"],yt=Se!==null?lt||ge.createElement("div",{className:`${Ne}-trigger`,onClick:We,style:{width:st}},Se||Ot):null,Mt=Object.assign(Object.assign({},at),{flex:`0 0 ${st}`,maxWidth:st,minWidth:st,width:st}),Et=x()(Ne,`${Ne}-${Je}`,{[`${Ne}-collapsed`]:!!ct,[`${Ne}-has-trigger`]:Fe&&Se!==null&&!lt,[`${Ne}-below`]:!!qe,[`${Ne}-zero-width`]:parseFloat(st)===0},Ae,xe,ve),xt=ge.useMemo(()=>({siderCollapsed:ct}),[ct]);return ze(ge.createElement(Be.Provider,{value:xt},ge.createElement("aside",Object.assign({className:Et},Ue,{style:Mt,ref:ke}),ge.createElement("div",{className:`${Ne}-children`},Ge),Fe||qe&<?yt:null)))})},6989:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{V:function(){return gt}});var ge=Ie(59301);const gt=ge.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{eh:function(){return Te},jn:function(){return be}});var ge=Ie(36237),gt=Ie(16931);const a=z=>{const{antCls:E,componentCls:ie,colorText:oe,footerBg:ee,headerHeight:le,headerPadding:x,headerColor:ne,footerPadding:re,fontSize:ae,bodyBg:se,headerBg:ce}=z;return{[ie]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:se,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${ie}-header`]:{height:le,padding:x,color:ne,lineHeight:(0,ge.unit)(le),background:ce,[`${E}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:re,color:oe,fontSize:ae,background:ee},[`${ie}-content`]:{flex:"auto",color:oe,minHeight:0}}},Te=z=>{const{colorBgLayout:E,controlHeight:ie,controlHeightLG:oe,colorText:ee,controlHeightSM:le,marginXXS:x,colorTextLightSolid:ne,colorBgContainer:re}=z,ae=oe*1.25;return{colorBgHeader:"#001529",colorBgBody:E,colorBgTrigger:"#002140",bodyBg:E,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${ae}px`,headerColor:ee,footerPadding:`${le}px ${ae}px`,footerBg:E,siderBg:"#001529",triggerHeight:oe+x*2,triggerBg:"#002140",triggerColor:ne,zeroTriggerWidth:oe,zeroTriggerHeight:oe,lightSiderBg:re,lightTriggerBg:re,lightTriggerColor:ee}},be=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Dt.ZP=(0,gt.I$)("Layout",z=>[a(z)],Te,{deprecatedTokens:be})},78857:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{J:function(){return z}});var ge=Ie(59301),gt=Ie(8654),a=Ie(62487),Te=function(E,ie){var oe={};for(var ee in E)Object.prototype.hasOwnProperty.call(E,ee)&&ie.indexOf(ee)<0&&(oe[ee]=E[ee]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ee=Object.getOwnPropertySymbols(E);le<ee.length;le++)ie.indexOf(ee[le])<0&&Object.prototype.propertyIsEnumerable.call(E,ee[le])&&(oe[ee[le]]=E[ee[le]]);return oe};const be=ge.createContext(null),z=ge.forwardRef((E,ie)=>{const{children:oe}=E,ee=Te(E,["children"]),le=ge.useContext(be),x=ge.useMemo(()=>Object.assign(Object.assign({},le),ee),[le,ee.prefixCls,ee.mode,ee.selectable,ee.rootClassName]),ne=(0,gt.t4)(oe),re=(0,gt.x1)(ie,ne?(0,gt.C4)(oe):null);return ge.createElement(be.Provider,{value:x},ge.createElement(a.Z,{space:!0},ne?ge.cloneElement(oe,{ref:re}):oe))});Dt.Z=be},93041:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{default:function(){return ze}});var ge=Ie(59301),gt=Ie(28321),a=Ie(24303),Te=Ie(18785),be=Ie(92310),z=Ie.n(be),E=Ie(6089),ie=Ie(2738),oe=Ie(86641),ee=Ie(22703),le=Ie(48755),x=Ie(83397),re=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ae=function(xe,ve){var Oe={};for(var We in xe)Object.prototype.hasOwnProperty.call(xe,We)&&ve.indexOf(We)<0&&(Oe[We]=xe[We]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,We=Object.getOwnPropertySymbols(xe);Ue<We.length;Ue++)ve.indexOf(We[Ue])<0&&Object.prototype.propertyIsEnumerable.call(xe,We[Ue])&&(Oe[We[Ue]]=xe[We[Ue]]);return Oe},ce=xe=>{const{prefixCls:ve,className:Oe,dashed:We}=xe,Ue=ae(xe,["prefixCls","className","dashed"]),{getPrefixCls:Ye}=ge.useContext(le.E_),st=Ye("menu",ve),lt=z()({[`${st}-item-divider-dashed`]:!!We},Oe);return ge.createElement(gt.iz,Object.assign({className:lt},Ue))},pe=Ie(11592),me=Ie(25399),ye=xe=>{var ve;const{className:Oe,children:We,icon:Ue,title:Ye,danger:st,extra:lt}=xe,{prefixCls:ft,firstLevel:Tt,direction:St,disableMenuItemTitleTooltip:Ot,inlineCollapsed:yt}=ge.useContext(re),Mt=Ct=>{const $t=We==null?void 0:We[0],Xt=ge.createElement("span",{className:z()(`${ft}-title-content`,{[`${ft}-title-content-with-extra`]:!!lt||lt===0})},We);return(!Ue||ge.isValidElement(We)&&We.type==="span")&&We&&Ct&&Tt&&typeof $t=="string"?ge.createElement("div",{className:`${ft}-inline-collapsed-noicon`},$t.charAt(0)):Xt},{siderCollapsed:Et}=ge.useContext(a.D);let xt=Ye;typeof Ye=="undefined"?xt=Tt?We:"":Ye===!1&&(xt="");const jt={title:xt};!Et&&!yt&&(jt.title=null,jt.open=!1);const At=(0,pe.Z)(We).length;let ht=ge.createElement(gt.ck,Object.assign({},(0,ie.Z)(xe,["title","icon","danger"]),{className:z()({[`${ft}-item-danger`]:st,[`${ft}-item-only-child`]:(Ue?At+1:At)===1},Oe),title:typeof Ye=="string"?Ye:void 0}),(0,ee.Tm)(Ue,{className:z()(ge.isValidElement(Ue)?(ve=Ue.props)===null||ve===void 0?void 0:ve.className:"",`${ft}-item-icon`)}),Mt(yt));return Ot||(ht=ge.createElement(me.Z,Object.assign({},jt,{placement:St==="rtl"?"left":"right",classNames:{root:`${ft}-inline-collapsed-tooltip`}}),ht)),ht},De=Ie(78857),Me=Ie(36237),Be=Ie(17835),Pe=Ie(63356),Ce=Ie(34961),Ee=Ie(46e3),je=Ie(34925),ke=Ie(16931),Le=Ie(51636),Se=xe=>{const{componentCls:ve,motionDurationSlow:Oe,horizontalLineHeight:We,colorSplit:Ue,lineWidth:Ye,lineType:st,itemPaddingInline:lt}=xe;return{[`${ve}-horizontal`]:{lineHeight:We,border:0,borderBottom:`${(0,Me.unit)(Ye)} ${st} ${Ue}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:lt},[`> ${ve}-item:hover,
|
|
|
> ${ve}-item-active,
|
|
|
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${Oe}`,`background ${Oe}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},Ze=xe=>{let{componentCls:ve,menuArrowOffset:Oe,calc:We}=xe;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
|
|
|
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Me.unit)(We(Oe).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Me.unit)(Oe)})`}}}}};const Je=xe=>Object.assign({},(0,Pe.oN)(xe));var Fe=(xe,ve)=>{const{componentCls:Oe,itemColor:We,itemSelectedColor:Ue,subMenuItemSelectedColor:Ye,groupTitleColor:st,itemBg:lt,subMenuItemBg:ft,itemSelectedBg:Tt,activeBarHeight:St,activeBarWidth:Ot,activeBarBorderWidth:yt,motionDurationSlow:Mt,motionEaseInOut:Et,motionEaseOut:xt,itemPaddingInline:jt,motionDurationMid:At,itemHoverColor:ht,lineType:Ct,colorSplit:$t,itemDisabledColor:Xt,dangerItemColor:vt,dangerItemHoverColor:Pt,dangerItemSelectedColor:_t,dangerItemActiveBg:Kt,dangerItemSelectedBg:er,popupBg:sr,itemHoverBg:yr,itemActiveBg:xr,menuSubMenuBg:ur,horizontalItemSelectedColor:br,horizontalItemSelectedBg:or,horizontalItemBorderRadius:fr,horizontalItemHoverBg:Jt}=xe;return{[`${Oe}-${ve}, ${Oe}-${ve} > ${Oe}`]:{color:We,background:lt,[`&${Oe}-root:focus-visible`]:Object.assign({},Je(xe)),[`${Oe}-item`]:{"&-group-title, &-extra":{color:st}},[`${Oe}-submenu-selected > ${Oe}-submenu-title`]:{color:Ye},[`${Oe}-item, ${Oe}-submenu-title`]:{color:We,[`&:not(${Oe}-item-disabled):focus-visible`]:Object.assign({},Je(xe))},[`${Oe}-item-disabled, ${Oe}-submenu-disabled`]:{color:`${Xt} !important`},[`${Oe}-item:not(${Oe}-item-selected):not(${Oe}-submenu-selected)`]:{[`&:hover, > ${Oe}-submenu-title:hover`]:{color:ht}},[`&:not(${Oe}-horizontal)`]:{[`${Oe}-item:not(${Oe}-item-selected)`]:{"&:hover":{backgroundColor:yr},"&:active":{backgroundColor:xr}},[`${Oe}-submenu-title`]:{"&:hover":{backgroundColor:yr},"&:active":{backgroundColor:xr}}},[`${Oe}-item-danger`]:{color:vt,[`&${Oe}-item:hover`]:{[`&:not(${Oe}-item-selected):not(${Oe}-submenu-selected)`]:{color:Pt}},[`&${Oe}-item:active`]:{background:Kt}},[`${Oe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Oe}-item-selected`]:{color:Ue,[`&${Oe}-item-danger`]:{color:_t},"a, a:hover":{color:"inherit"}},[`& ${Oe}-item-selected`]:{backgroundColor:Tt,[`&${Oe}-item-danger`]:{backgroundColor:er}},[`&${Oe}-submenu > ${Oe}`]:{backgroundColor:ur},[`&${Oe}-popup > ${Oe}`]:{backgroundColor:sr},[`&${Oe}-submenu-popup > ${Oe}`]:{backgroundColor:sr},[`&${Oe}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${Oe}-item, > ${Oe}-submenu`]:{top:yt,marginTop:xe.calc(yt).mul(-1).equal(),marginBottom:0,borderRadius:fr,"&::after":{position:"absolute",insetInline:jt,bottom:0,borderBottom:`${(0,Me.unit)(St)} solid transparent`,transition:`border-color ${Mt} ${Et}`,content:'""'},"&:hover, &-active, &-open":{background:Jt,"&::after":{borderBottomWidth:St,borderBottomColor:br}},"&-selected":{color:br,backgroundColor:or,"&:hover":{backgroundColor:or},"&::after":{borderBottomWidth:St,borderBottomColor:br}}}}),[`&${Oe}-root`]:{[`&${Oe}-inline, &${Oe}-vertical`]:{borderInlineEnd:`${(0,Me.unit)(yt)} ${Ct} ${$t}`}},[`&${Oe}-inline`]:{[`${Oe}-sub${Oe}-inline`]:{background:ft},[`${Oe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Me.unit)(Ot)} solid ${Ue}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${At} ${xt}`,`opacity ${At} ${xt}`].join(","),content:'""'},[`&${Oe}-item-danger`]:{"&::after":{borderInlineEndColor:_t}}},[`${Oe}-selected, ${Oe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${At} ${Et}`,`opacity ${At} ${Et}`].join(",")}}}}}};const Ke=xe=>{const{componentCls:ve,itemHeight:Oe,itemMarginInline:We,padding:Ue,menuArrowSize:Ye,marginXS:st,itemMarginBlock:lt,itemWidth:ft,itemPaddingInline:Tt}=xe,St=xe.calc(Ye).add(Ue).add(st).equal();return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:Oe,lineHeight:(0,Me.unit)(Oe),paddingInline:Tt,overflow:"hidden",textOverflow:"ellipsis",marginInline:We,marginBlock:lt,width:ft},[`> ${ve}-item,
|
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{height:Oe,lineHeight:(0,Me.unit)(Oe)},[`${ve}-item-group-list ${ve}-submenu-title,
|
|
|
${ve}-submenu-title`]:{paddingInlineEnd:St}}};var rt=xe=>{const{componentCls:ve,iconCls:Oe,itemHeight:We,colorTextLightSolid:Ue,dropdownWidth:Ye,controlHeightLG:st,motionEaseOut:lt,paddingXL:ft,itemMarginInline:Tt,fontSizeLG:St,motionDurationFast:Ot,motionDurationSlow:yt,paddingXS:Mt,boxShadowSecondary:Et,collapsedWidth:xt,collapsedIconSize:jt}=xe,At={height:We,lineHeight:(0,Me.unit)(We),listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},Ke(xe))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},Ke(xe)),{boxShadow:Et})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:Ye,maxHeight:`calc(100vh - ${(0,Me.unit)(xe.calc(st).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${yt}`,`background ${yt}`,`padding ${Ot} ${lt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:At,[`& ${ve}-item-group-title`]:{paddingInlineStart:ft}},[`${ve}-item`]:At}},{[`${ve}-inline-collapsed`]:{width:xt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:St,textAlign:"center"}}},[`> ${ve}-item,
|
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
|
|
|
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
|
|
|
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Me.unit)(xe.calc(jt).div(2).equal())} - ${(0,Me.unit)(Tt)})`,textOverflow:"clip",[`
|
|
|
${ve}-submenu-arrow,
|
|
|
${ve}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${ve}-item-icon, ${Oe}`]:{margin:0,fontSize:jt,lineHeight:(0,Me.unit)(We),"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${Oe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${Oe}`]:{display:"none"},"a, a:hover":{color:Ue}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},Pe.vS),{paddingInline:Mt})}}]};const et=xe=>{const{componentCls:ve,motionDurationSlow:Oe,motionDurationMid:We,motionEaseInOut:Ue,motionEaseOut:Ye,iconCls:st,iconSize:lt,iconMarginInlineEnd:ft}=xe;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Oe}`,`background ${Oe}`,`padding calc(${Oe} + 0.1s) ${Ue}`].join(","),[`${ve}-item-icon, ${st}`]:{minWidth:lt,fontSize:lt,transition:[`font-size ${We} ${Ye}`,`margin ${Oe} ${Ue}`,`color ${Oe}`].join(","),"+ span":{marginInlineStart:ft,opacity:1,transition:[`opacity ${Oe} ${Ue}`,`margin ${Oe}`,`color ${Oe}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,Pe.Ro)()),[`&${ve}-item-only-child`]:{[`> ${st}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},$e=xe=>{const{componentCls:ve,motionDurationSlow:Oe,motionEaseInOut:We,borderRadius:Ue,menuArrowSize:Ye,menuArrowOffset:st}=xe;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:xe.margin,width:Ye,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Oe} ${We}, opacity ${Oe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:xe.calc(Ye).mul(.6).equal(),height:xe.calc(Ye).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ue,transition:[`background ${Oe} ${We}`,`transform ${Oe} ${We}`,`top ${Oe} ${We}`,`color ${Oe} ${We}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Me.unit)(xe.calc(st).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Me.unit)(st)})`}}}}},Xe=xe=>{const{antCls:ve,componentCls:Oe,fontSize:We,motionDurationSlow:Ue,motionDurationMid:Ye,motionEaseInOut:st,paddingXS:lt,padding:ft,colorSplit:Tt,lineWidth:St,zIndexPopup:Ot,borderRadiusLG:yt,subMenuItemBorderRadius:Mt,menuArrowSize:Et,menuArrowOffset:xt,lineType:jt,groupTitleLineHeight:At,groupTitleFontSize:ht}=xe;return[{"":{[Oe]:Object.assign(Object.assign({},(0,Pe.dF)()),{"&-hidden":{display:"none"}})},[`${Oe}-submenu-hidden`]:{display:"none"}},{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(xe)),(0,Pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:We,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ue} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Oe}-item`]:{flex:"none"}},[`${Oe}-item, ${Oe}-submenu, ${Oe}-submenu-title`]:{borderRadius:xe.itemBorderRadius},[`${Oe}-item-group-title`]:{padding:`${(0,Me.unit)(lt)} ${(0,Me.unit)(ft)}`,fontSize:ht,lineHeight:At,transition:`all ${Ue}`},[`&-horizontal ${Oe}-submenu`]:{transition:[`border-color ${Ue} ${st}`,`background ${Ue} ${st}`].join(",")},[`${Oe}-submenu, ${Oe}-submenu-inline`]:{transition:[`border-color ${Ue} ${st}`,`background ${Ue} ${st}`,`padding ${Ye} ${st}`].join(",")},[`${Oe}-submenu ${Oe}-sub`]:{cursor:"initial",transition:[`background ${Ue} ${st}`,`padding ${Ue} ${st}`].join(",")},[`${Oe}-title-content`]:{transition:`color ${Ue}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${ve}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Oe}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:xe.padding}},[`${Oe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Oe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Tt,borderStyle:jt,borderWidth:0,borderTopWidth:St,marginBlock:St,padding:0,"&-dashed":{borderStyle:"dashed"}}}),et(xe)),{[`${Oe}-item-group`]:{[`${Oe}-item-group-list`]:{margin:0,padding:0,[`${Oe}-item, ${Oe}-submenu-title`]:{paddingInline:`${(0,Me.unit)(xe.calc(We).mul(2).equal())} ${(0,Me.unit)(ft)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ot,borderRadius:yt,boxShadow:"none",transformOrigin:"0 0",[`&${Oe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Oe}`]:Object.assign(Object.assign(Object.assign({borderRadius:yt},et(xe)),$e(xe)),{[`${Oe}-item, ${Oe}-submenu > ${Oe}-submenu-title`]:{borderRadius:Mt},[`${Oe}-submenu-title::after`]:{transition:`transform ${Ue} ${st}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:xe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:xe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:xe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:xe.paddingXS}}}),$e(xe)),{[`&-inline-collapsed ${Oe}-submenu-arrow,
|
|
|
&-inline ${Oe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Me.unit)(xt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Me.unit)(xe.calc(xt).mul(-1).equal())})`}},[`${Oe}-submenu-open${Oe}-submenu-inline > ${Oe}-submenu-title > ${Oe}-submenu-arrow`]:{transform:`translateY(${(0,Me.unit)(xe.calc(Et).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Me.unit)(xe.calc(xt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Me.unit)(xt)})`}}})},{[`${ve}-layout-header`]:{[Oe]:{lineHeight:"inherit"}}}]},Ve=xe=>{var ve,Oe,We;const{colorPrimary:Ue,colorError:Ye,colorTextDisabled:st,colorErrorBg:lt,colorText:ft,colorTextDescription:Tt,colorBgContainer:St,colorFillAlter:Ot,colorFillContent:yt,lineWidth:Mt,lineWidthBold:Et,controlItemBgActive:xt,colorBgTextHover:jt,controlHeightLG:At,lineHeight:ht,colorBgElevated:Ct,marginXXS:$t,padding:Xt,fontSize:vt,controlHeightSM:Pt,fontSizeLG:_t,colorTextLightSolid:Kt,colorErrorHover:er}=xe,sr=(ve=xe.activeBarWidth)!==null&&ve!==void 0?ve:0,yr=(Oe=xe.activeBarBorderWidth)!==null&&Oe!==void 0?Oe:Mt,xr=(We=xe.itemMarginInline)!==null&&We!==void 0?We:xe.marginXXS,ur=new Be.FastColor(Kt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:xe.zIndexPopupBase+50,radiusItem:xe.borderRadiusLG,itemBorderRadius:xe.borderRadiusLG,radiusSubMenuItem:xe.borderRadiusSM,subMenuItemBorderRadius:xe.borderRadiusSM,colorItemText:ft,itemColor:ft,colorItemTextHover:ft,itemHoverColor:ft,colorItemTextHoverHorizontal:Ue,horizontalItemHoverColor:Ue,colorGroupTitle:Tt,groupTitleColor:Tt,colorItemTextSelected:Ue,itemSelectedColor:Ue,subMenuItemSelectedColor:Ue,colorItemTextSelectedHorizontal:Ue,horizontalItemSelectedColor:Ue,colorItemBg:St,itemBg:St,colorItemBgHover:jt,itemHoverBg:jt,colorItemBgActive:yt,itemActiveBg:xt,colorSubItemBg:Ot,subMenuItemBg:Ot,colorItemBgSelected:xt,itemSelectedBg:xt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:sr,colorActiveBarHeight:Et,activeBarHeight:Et,colorActiveBarBorderSize:Mt,activeBarBorderWidth:yr,colorItemTextDisabled:st,itemDisabledColor:st,colorDangerItemText:Ye,dangerItemColor:Ye,colorDangerItemTextHover:Ye,dangerItemHoverColor:Ye,colorDangerItemTextSelected:Ye,dangerItemSelectedColor:Ye,colorDangerItemBgActive:lt,dangerItemActiveBg:lt,colorDangerItemBgSelected:lt,dangerItemSelectedBg:lt,itemMarginInline:xr,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:At,groupTitleLineHeight:ht,collapsedWidth:At*2,popupBg:Ct,itemMarginBlock:$t,itemPaddingInline:Xt,horizontalLineHeight:`${At*1.15}px`,iconSize:vt,iconMarginInlineEnd:Pt-vt,collapsedIconSize:_t,groupTitleFontSize:vt,darkItemDisabledColor:new Be.FastColor(Kt).setA(.25).toRgbString(),darkItemColor:ur,darkDangerItemColor:Ye,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kt,darkItemSelectedBg:Ue,darkDangerItemSelectedBg:Ye,darkItemHoverBg:"transparent",darkGroupTitleColor:ur,darkItemHoverColor:Kt,darkDangerItemHoverColor:er,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:Ye,itemWidth:sr?`calc(100% + ${yr}px)`:`calc(100% - ${xr*2}px)`}};var nt=function(xe){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xe,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,ke.I$)("Menu",Ue=>{const{colorBgElevated:Ye,controlHeightLG:st,fontSize:lt,darkItemColor:ft,darkDangerItemColor:Tt,darkItemBg:St,darkSubMenuItemBg:Ot,darkItemSelectedColor:yt,darkItemSelectedBg:Mt,darkDangerItemSelectedBg:Et,darkItemHoverBg:xt,darkGroupTitleColor:jt,darkItemHoverColor:At,darkItemDisabledColor:ht,darkDangerItemHoverColor:Ct,darkDangerItemSelectedColor:$t,darkDangerItemActiveBg:Xt,popupBg:vt,darkPopupBg:Pt}=Ue,_t=Ue.calc(lt).div(7).mul(5).equal(),Kt=(0,Le.mergeToken)(Ue,{menuArrowSize:_t,menuHorizontalHeight:Ue.calc(st).mul(1.15).equal(),menuArrowOffset:Ue.calc(_t).mul(.25).equal(),menuSubMenuBg:Ye,calc:Ue.calc,popupBg:vt}),er=(0,Le.mergeToken)(Kt,{itemColor:ft,itemHoverColor:At,groupTitleColor:jt,itemSelectedColor:yt,subMenuItemSelectedColor:yt,itemBg:St,popupBg:Pt,subMenuItemBg:Ot,itemActiveBg:"transparent",itemSelectedBg:Mt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:xt,itemDisabledColor:ht,dangerItemColor:Tt,dangerItemHoverColor:Ct,dangerItemSelectedColor:$t,dangerItemActiveBg:Xt,dangerItemSelectedBg:Et,menuSubMenuBg:Ot,horizontalItemSelectedColor:yt,horizontalItemSelectedBg:Mt});return[Xe(Kt),Se(Kt),rt(Kt),Fe(Kt,"light"),Fe(er,"dark"),Ze(Kt),(0,Ce.Z)(Kt),(0,Ee.oN)(Kt,"slide-up"),(0,Ee.oN)(Kt,"slide-down"),(0,je._y)(Kt,"zoom-big")]},Ve,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:Oe,unitless:{groupTitleLineHeight:!0}})(xe,ve)},Qe=Ie(75030),ot=xe=>{var ve;const{popupClassName:Oe,icon:We,title:Ue,theme:Ye}=xe,st=ge.useContext(re),{prefixCls:lt,inlineCollapsed:ft,theme:Tt}=st,St=(0,gt.Xl)();let Ot;if(!We)Ot=ft&&!St.length&&Ue&&typeof Ue=="string"?ge.createElement("div",{className:`${lt}-inline-collapsed-noicon`},Ue.charAt(0)):ge.createElement("span",{className:`${lt}-title-content`},Ue);else{const Et=ge.isValidElement(Ue)&&Ue.type==="span";Ot=ge.createElement(ge.Fragment,null,(0,ee.Tm)(We,{className:z()(ge.isValidElement(We)?(ve=We.props)===null||ve===void 0?void 0:ve.className:"",`${lt}-item-icon`)}),Et?Ue:ge.createElement("span",{className:`${lt}-title-content`},Ue))}const yt=ge.useMemo(()=>Object.assign(Object.assign({},st),{firstLevel:!1}),[st]),[Mt]=(0,Qe.Cn)("Menu");return ge.createElement(re.Provider,{value:yt},ge.createElement(gt.Wd,Object.assign({},(0,ie.Z)(xe,["icon"]),{title:Ot,popupClassName:z()(lt,Oe,`${lt}-${Ye||Tt}`),popupStyle:Object.assign({zIndex:Mt},xe.popupStyle)})))},qe=function(xe,ve){var Oe={};for(var We in xe)Object.prototype.hasOwnProperty.call(xe,We)&&ve.indexOf(We)<0&&(Oe[We]=xe[We]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,We=Object.getOwnPropertySymbols(xe);Ue<We.length;Ue++)ve.indexOf(We[Ue])<0&&Object.prototype.propertyIsEnumerable.call(xe,We[Ue])&&(Oe[We[Ue]]=xe[We[Ue]]);return Oe};function _e(xe){return xe===null||xe===!1}const Re={item:ye,submenu:ot,divider:ce};var de=(0,ge.forwardRef)((xe,ve)=>{var Oe;const We=ge.useContext(De.Z),Ue=We||{},{getPrefixCls:Ye,getPopupContainer:st,direction:lt,menu:ft}=ge.useContext(le.E_),Tt=Ye(),{prefixCls:St,className:Ot,style:yt,theme:Mt="light",expandIcon:Et,_internalDisableMenuItemTitleTooltip:xt,inlineCollapsed:jt,siderCollapsed:At,rootClassName:ht,mode:Ct,selectable:$t,onClick:Xt,overflowedIndicatorPopupClassName:vt}=xe,Pt=qe(xe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),_t=(0,ie.Z)(Pt,["collapsedWidth"]);(Oe=Ue.validator)===null||Oe===void 0||Oe.call(Ue,{mode:Ct});const Kt=(0,E.Z)(function(){var ar;Xt==null||Xt.apply(void 0,arguments),(ar=Ue.onClick)===null||ar===void 0||ar.call(Ue)}),er=Ue.mode||Ct,sr=$t!=null?$t:Ue.selectable,yr=jt!=null?jt:At,xr={horizontal:{motionName:`${Tt}-slide-up`},inline:(0,oe.Z)(Tt),other:{motionName:`${Tt}-zoom-big`}},ur=Ye("menu",St||Ue.prefixCls),br=(0,x.Z)(ur),[or,fr,Jt]=nt(ur,br,!We),Qt=z()(`${ur}-${Mt}`,ft==null?void 0:ft.className,Ot),Vt=ge.useMemo(()=>{var ar,vr;if(typeof Et=="function"||_e(Et))return Et||null;if(typeof Ue.expandIcon=="function"||_e(Ue.expandIcon))return Ue.expandIcon||null;if(typeof(ft==null?void 0:ft.expandIcon)=="function"||_e(ft==null?void 0:ft.expandIcon))return(ft==null?void 0:ft.expandIcon)||null;const hr=(ar=Et!=null?Et:Ue==null?void 0:Ue.expandIcon)!==null&&ar!==void 0?ar:ft==null?void 0:ft.expandIcon;return(0,ee.Tm)(hr,{className:z()(`${ur}-submenu-expand-icon`,ge.isValidElement(hr)?(vr=hr.props)===null||vr===void 0?void 0:vr.className:void 0)})},[Et,Ue==null?void 0:Ue.expandIcon,ft==null?void 0:ft.expandIcon,ur]),rr=ge.useMemo(()=>({prefixCls:ur,inlineCollapsed:yr||!1,direction:lt,firstLevel:!0,theme:Mt,mode:er,disableMenuItemTitleTooltip:xt}),[ur,yr,lt,xt,Mt]);return or(ge.createElement(De.Z.Provider,{value:null},ge.createElement(re.Provider,{value:rr},ge.createElement(gt.ZP,Object.assign({getPopupContainer:st,overflowedIndicator:ge.createElement(Te.Z,null),overflowedIndicatorPopupClassName:z()(ur,`${ur}-${Mt}`,vt),mode:er,selectable:sr,onClick:Kt},_t,{inlineCollapsed:yr,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),yt),className:Qt,prefixCls:ur,direction:lt,defaultMotions:xr,expandIcon:Vt,ref:ve,rootClassName:z()(ht,fr,Ue.rootClassName,Jt,br),_internalComponents:Re})))))});const Ne=(0,ge.forwardRef)((xe,ve)=>{const Oe=(0,ge.useRef)(null),We=ge.useContext(a.D);return(0,ge.useImperativeHandle)(ve,()=>({menu:Oe.current,focus:Ue=>{var Ye;(Ye=Oe.current)===null||Ye===void 0||Ye.focus(Ue)}})),ge.createElement(de,Object.assign({ref:Oe},xe,We))});Ne.Item=ye,Ne.SubMenu=ot,Ne.Divider=ce,Ne.ItemGroup=gt.BW;var ze=Ne},93725:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return Ee}});var ge=Ie(59301),gt=Ie(96512),a=Ie(92310),Te=Ie.n(a),be=Ie(18929),z=Ie(2738),E=Ie(48755),ie=Ie(37639),oe=Ie(15565),ee=Ie(54500),le=Ie(7939),x=Ie(61670),ne=Ie(9017),re=Ie(85981),ae=Ie(69106),se=Ie(16931);const ce=je=>{const{componentCls:ke,iconCls:Le,antCls:Ae,zIndexPopup:Se,colorText:Ge,colorWarning:Ze,marginXXS:Je,marginXS:at,fontSize:Fe,fontWeightStrong:Ke,colorTextHeading:it}=je;return{[ke]:{zIndex:Se,[`&${Ae}-popover`]:{fontSize:Fe},[`${ke}-message`]:{marginBottom:at,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${ke}-message-icon ${Le}`]:{color:Ze,fontSize:Fe,lineHeight:1,marginInlineEnd:at},[`${ke}-title`]:{fontWeight:Ke,color:it,"&:only-child":{fontWeight:"normal"}},[`${ke}-description`]:{marginTop:Je,color:Ge}},[`${ke}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:at}}}}},pe=je=>{const{zIndexPopupBase:ke}=je;return{zIndexPopup:ke+60}};var me=(0,se.I$)("Popconfirm",je=>ce(je),pe,{resetStyle:!1}),he=function(je,ke){var Le={};for(var Ae in je)Object.prototype.hasOwnProperty.call(je,Ae)&&ke.indexOf(Ae)<0&&(Le[Ae]=je[Ae]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Ae=Object.getOwnPropertySymbols(je);Se<Ae.length;Se++)ke.indexOf(Ae[Se])<0&&Object.prototype.propertyIsEnumerable.call(je,Ae[Se])&&(Le[Ae[Se]]=je[Ae[Se]]);return Le};const ye=je=>{const{prefixCls:ke,okButtonProps:Le,cancelButtonProps:Ae,title:Se,description:Ge,cancelText:Ze,okText:Je,okType:at="primary",icon:Fe=ge.createElement(gt.Z,null),showCancel:Ke=!0,close:it,onConfirm:rt,onCancel:et,onPopupClick:$e}=je,{getPrefixCls:Xe}=ge.useContext(E.E_),[Ve]=(0,ne.Z)("Popconfirm",re.Z.Popconfirm),nt=(0,ee.Z)(Se),Qe=(0,ee.Z)(Ge);return ge.createElement("div",{className:`${ke}-inner-content`,onClick:$e},ge.createElement("div",{className:`${ke}-message`},Fe&&ge.createElement("span",{className:`${ke}-message-icon`},Fe),ge.createElement("div",{className:`${ke}-message-text`},nt&&ge.createElement("div",{className:`${ke}-title`},nt),Qe&&ge.createElement("div",{className:`${ke}-description`},Qe))),ge.createElement("div",{className:`${ke}-buttons`},Ke&&ge.createElement(le.ZP,Object.assign({onClick:et,size:"small"},Ae),Ze||(Ve==null?void 0:Ve.cancelText)),ge.createElement(oe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,x.nx)(at)),Le),actionFn:rt,close:it,prefixCls:Xe("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Je||(Ve==null?void 0:Ve.okText))))};var Me=je=>{const{prefixCls:ke,placement:Le,className:Ae,style:Se}=je,Ge=he(je,["prefixCls","placement","className","style"]),{getPrefixCls:Ze}=ge.useContext(E.E_),Je=Ze("popconfirm",ke),[at]=me(Je);return at(ge.createElement(ae.ZP,{placement:Le,className:Te()(Je,Ae),style:Se,content:ge.createElement(ye,Object.assign({prefixCls:Je},Ge))}))},Be=function(je,ke){var Le={};for(var Ae in je)Object.prototype.hasOwnProperty.call(je,Ae)&&ke.indexOf(Ae)<0&&(Le[Ae]=je[Ae]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Ae=Object.getOwnPropertySymbols(je);Se<Ae.length;Se++)ke.indexOf(Ae[Se])<0&&Object.prototype.propertyIsEnumerable.call(je,Ae[Se])&&(Le[Ae[Se]]=je[Ae[Se]]);return Le};const Ce=ge.forwardRef((je,ke)=>{var Le,Ae;const{prefixCls:Se,placement:Ge="top",trigger:Ze="click",okType:Je="primary",icon:at=ge.createElement(gt.Z,null),children:Fe,overlayClassName:Ke,onOpenChange:it,onVisibleChange:rt,overlayStyle:et,styles:$e,classNames:Xe}=je,Ve=Be(je,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:nt,className:Qe,style:ct,classNames:ot,styles:qe}=(0,E.dj)("popconfirm"),[_e,Re]=(0,be.Z)(!1,{value:(Le=je.open)!==null&&Le!==void 0?Le:je.visible,defaultValue:(Ae=je.defaultOpen)!==null&&Ae!==void 0?Ae:je.defaultVisible}),te=(Ye,st)=>{Re(Ye,!0),rt==null||rt(Ye),it==null||it(Ye,st)},de=Ye=>{te(!1,Ye)},Ne=Ye=>{var st;return(st=je.onConfirm)===null||st===void 0?void 0:st.call(void 0,Ye)},ze=Ye=>{var st;te(!1,Ye),(st=je.onCancel)===null||st===void 0||st.call(void 0,Ye)},xe=(Ye,st)=>{const{disabled:lt=!1}=je;lt||te(Ye,st)},ve=nt("popconfirm",Se),Oe=Te()(ve,Qe,Ke,ot.root,Xe==null?void 0:Xe.root),We=Te()(ot.body,Xe==null?void 0:Xe.body),[Ue]=me(ve);return Ue(ge.createElement(ie.Z,Object.assign({},(0,z.Z)(Ve,["title"]),{trigger:Ze,placement:Ge,onOpenChange:xe,open:_e,ref:ke,classNames:{root:Oe,body:We},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},qe.root),ct),et),$e==null?void 0:$e.root),body:Object.assign(Object.assign({},qe.body),$e==null?void 0:$e.body)},content:ge.createElement(ye,Object.assign({okType:Je,icon:at},je,{prefixCls:ve,close:de,onConfirm:Ne,onCancel:ze})),"data-popover-inject":!0}),Fe))});Ce._InternalPanelDoNotUseOrYouWillBeFired=Me;var Ee=Ce},69106:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{aV:function(){return oe},t5:function(){return ee}});var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(29125),be=Ie(54500),z=Ie(48755),E=Ie(85074),ie=function(x,ne){var re={};for(var ae in x)Object.prototype.hasOwnProperty.call(x,ae)&&ne.indexOf(ae)<0&&(re[ae]=x[ae]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ae=Object.getOwnPropertySymbols(x);se<ae.length;se++)ne.indexOf(ae[se])<0&&Object.prototype.propertyIsEnumerable.call(x,ae[se])&&(re[ae[se]]=x[ae[se]]);return re};const oe=x=>{let{title:ne,content:re,prefixCls:ae}=x;return!ne&&!re?null:ge.createElement(ge.Fragment,null,ne&&ge.createElement("div",{className:`${ae}-title`},ne),re&&ge.createElement("div",{className:`${ae}-inner-content`},re))},ee=x=>{const{hashId:ne,prefixCls:re,className:ae,style:se,placement:ce="top",title:pe,content:me,children:he}=x,ye=(0,be.Z)(pe),De=(0,be.Z)(me),Me=a()(ne,re,`${re}-pure`,`${re}-placement-${ce}`,ae);return ge.createElement("div",{className:Me,style:se},ge.createElement("div",{className:`${re}-arrow`}),ge.createElement(Te.G,Object.assign({},x,{className:ne,prefixCls:re}),he||ge.createElement(oe,{prefixCls:re,title:ye,content:De})))},le=x=>{const{prefixCls:ne,className:re}=x,ae=ie(x,["prefixCls","className"]),{getPrefixCls:se}=ge.useContext(z.E_),ce=se("popover",ne),[pe,me,he]=(0,E.Z)(ce);return pe(ge.createElement(ee,Object.assign({},ae,{prefixCls:ce,hashId:me,className:a()(re,he)})))};Dt.ZP=le},37639:function(Yt,Dt,Ie){"use strict";var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(18929),be=Ie(10228),z=Ie(54500),E=Ie(86641),ie=Ie(22703),oe=Ie(25399),ee=Ie(69106),le=Ie(48755),x=Ie(85074),ne=function(se,ce){var pe={};for(var me in se)Object.prototype.hasOwnProperty.call(se,me)&&ce.indexOf(me)<0&&(pe[me]=se[me]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,me=Object.getOwnPropertySymbols(se);he<me.length;he++)ce.indexOf(me[he])<0&&Object.prototype.propertyIsEnumerable.call(se,me[he])&&(pe[me[he]]=se[me[he]]);return pe};const ae=ge.forwardRef((se,ce)=>{var pe,me;const{prefixCls:he,title:ye,content:De,overlayClassName:Me,placement:Be="top",trigger:Pe="hover",children:Ce,mouseEnterDelay:Ee=.1,mouseLeaveDelay:je=.1,onOpenChange:ke,overlayStyle:Le={},styles:Ae,classNames:Se}=se,Ge=ne(se,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Ze,className:Je,style:at,classNames:Fe,styles:Ke}=(0,le.dj)("popover"),it=Ze("popover",he),[rt,et,$e]=(0,x.Z)(it),Xe=Ze(),Ve=a()(Me,et,$e,Je,Fe.root,Se==null?void 0:Se.root),nt=a()(Fe.body,Se==null?void 0:Se.body),[Qe,ct]=(0,Te.Z)(!1,{value:(pe=se.open)!==null&&pe!==void 0?pe:se.visible,defaultValue:(me=se.defaultOpen)!==null&&me!==void 0?me:se.defaultVisible}),ot=(de,Ne)=>{ct(de,!0),ke==null||ke(de,Ne)},qe=de=>{de.keyCode===be.Z.ESC&&ot(!1,de)},_e=de=>{ot(de)},Re=(0,z.Z)(ye),te=(0,z.Z)(De);return rt(ge.createElement(oe.Z,Object.assign({placement:Be,trigger:Pe,mouseEnterDelay:Ee,mouseLeaveDelay:je},Ge,{prefixCls:it,classNames:{root:Ve,body:nt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},Ke.root),at),Le),Ae==null?void 0:Ae.root),body:Object.assign(Object.assign({},Ke.body),Ae==null?void 0:Ae.body)},ref:ce,open:Qe,onOpenChange:_e,overlay:Re||te?ge.createElement(ee.aV,{prefixCls:it,title:Re,content:te}):null,transitionName:(0,E.m)(Xe,"zoom-big",Ge.transitionName),"data-popover-inject":!0}),(0,ie.Tm)(Ce,{onKeyDown:de=>{var Ne,ze;ge.isValidElement(Ce)&&((ze=Ce==null?void 0:(Ne=Ce.props).onKeyDown)===null||ze===void 0||ze.call(Ne,de)),qe(de)}})))});ae._InternalPanelDoNotUseOrYouWillBeFired=ee.ZP,Dt.Z=ae},85074:function(Yt,Dt,Ie){"use strict";var ge=Ie(63356),gt=Ie(34925),a=Ie(37645),Te=Ie(36305),be=Ie(34998),z=Ie(16931),E=Ie(51636);const ie=le=>{const{componentCls:x,popoverColor:ne,titleMinWidth:re,fontWeightStrong:ae,innerPadding:se,boxShadowSecondary:ce,colorTextHeading:pe,borderRadiusLG:me,zIndexPopup:he,titleMarginBottom:ye,colorBgElevated:De,popoverBg:Me,titleBorderBottom:Be,innerContentPadding:Pe,titlePadding:Ce}=le;return[{[x]:Object.assign(Object.assign({},(0,ge.Wf)(le)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:he,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":De,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${x}-content`]:{position:"relative"},[`${x}-inner`]:{backgroundColor:Me,backgroundClip:"padding-box",borderRadius:me,boxShadow:ce,padding:se},[`${x}-title`]:{minWidth:re,marginBottom:ye,color:pe,fontWeight:ae,borderBottom:Be,padding:Ce},[`${x}-inner-content`]:{color:ne,padding:Pe}})},(0,a.ZP)(le,"var(--antd-arrow-background-color)"),{[`${x}-pure`]:{position:"relative",maxWidth:"none",margin:le.sizePopupArrow,display:"inline-block",[`${x}-content`]:{display:"inline-block"}}}]},oe=le=>{const{componentCls:x}=le;return{[x]:be.i.map(ne=>{const re=le[`${ne}6`];return{[`&${x}-${ne}`]:{"--antd-arrow-background-color":re,[`${x}-inner`]:{backgroundColor:re},[`${x}-arrow`]:{background:"transparent"}}}})}},ee=le=>{const{lineWidth:x,controlHeight:ne,fontHeight:re,padding:ae,wireframe:se,zIndexPopupBase:ce,borderRadiusLG:pe,marginXS:me,lineType:he,colorSplit:ye,paddingSM:De}=le,Me=ne-re,Be=Me/2,Pe=Me/2-x,Ce=ae;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:ce+30},(0,Te.w)(le)),(0,a.wZ)({contentRadius:pe,limitVerticalRadius:!0})),{innerPadding:se?0:12,titleMarginBottom:se?0:me,titlePadding:se?`${Be}px ${Ce}px ${Pe}px`:0,titleBorderBottom:se?`${x}px ${he} ${ye}`:"none",innerContentPadding:se?`${De}px ${Ce}px`:0})};Dt.Z=(0,z.I$)("Popover",le=>{const{colorBgElevated:x,colorText:ne}=le,re=(0,E.mergeToken)(le,{popoverBg:x,popoverColor:ne});return[ie(re),oe(re),(0,gt._y)(re,"zoom-big")]},ee,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return At}});var ge=Ie(59301),gt=Ie(17835),a=Ie(29679),Te=Ie(40001),be=Ie(19248),z=Ie(99267),E=Ie(92310),ie=Ie.n(E),oe=Ie(2738),ee=Ie(48755),le=Ie(54476),x=Ie(33885),ne=Ie(75931),re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ct=(0,ge.useRef)([]),$t=(0,ge.useRef)(null);return(0,ge.useEffect)(function(){var Xt=Date.now(),vt=!1;Ct.current.forEach(function(Pt){if(Pt){vt=!0;var _t=Pt.style;_t.transitionDuration=".3s, .3s, .3s, .06s",$t.current&&Xt-$t.current<100&&(_t.transitionDuration="0s, 0s")}}),vt&&($t.current=Date.now())}),Ct.current},se=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ce=function(Ct){var $t=(0,x.Z)((0,x.Z)({},re),Ct),Xt=$t.className,vt=$t.percent,Pt=$t.prefixCls,_t=$t.strokeColor,Kt=$t.strokeLinecap,er=$t.strokeWidth,sr=$t.style,yr=$t.trailColor,xr=$t.trailWidth,ur=$t.transition,br=(0,ne.Z)($t,se);delete br.gapPosition;var or=Array.isArray(vt)?vt:[vt],fr=Array.isArray(_t)?_t:[_t],Jt=ae(),Qt=er/2,Vt=100-er/2,rr="M ".concat(Kt==="round"?Qt:0,",").concat(Qt,`
|
|
|
L `).concat(Kt==="round"?Vt:100,",").concat(Qt),ar="0 0 100 ".concat(er),vr=0;return ge.createElement("svg",(0,le.Z)({className:ie()("".concat(Pt,"-line"),Xt),viewBox:ar,preserveAspectRatio:"none",style:sr},br),ge.createElement("path",{className:"".concat(Pt,"-line-trail"),d:rr,strokeLinecap:Kt,stroke:yr,strokeWidth:xr||er,fillOpacity:"0"}),or.map(function(hr,Ir){var Or=1;switch(Kt){case"round":Or=1-er/100;break;case"square":Or=1-er/2/100;break;default:Or=1;break}var Lr={strokeDasharray:"".concat(hr*Or,"px, 100px"),strokeDashoffset:"-".concat(vr,"px"),transition:ur||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Er=fr[Ir]||fr[fr.length-1];return vr+=hr,ge.createElement("path",{key:Ir,className:"".concat(Pt,"-line-path"),d:rr,strokeLinecap:Kt,stroke:Er,strokeWidth:er,fillOpacity:"0",ref:function(_r){Jt[Ir]=_r},style:Lr})}))},pe=ce,me=Ie(76190),he=Ie(42978),ye=Ie(47273),De=0,Me=(0,ye.Z)();function Be(){var ht;return Me?(ht=De,De+=1):ht="TEST_OR_SSR",ht}var Pe=function(ht){var Ct=ge.useState(),$t=(0,he.Z)(Ct,2),Xt=$t[0],vt=$t[1];return ge.useEffect(function(){vt("rc_progress_".concat(Be()))},[]),ht||Xt},Ce=function(Ct){var $t=Ct.bg,Xt=Ct.children;return ge.createElement("div",{style:{width:"100%",height:"100%",background:$t}},Xt)};function Ee(ht,Ct){return Object.keys(ht).map(function($t){var Xt=parseFloat($t),vt="".concat(Math.floor(Xt*Ct),"%");return"".concat(ht[$t]," ").concat(vt)})}var je=ge.forwardRef(function(ht,Ct){var $t=ht.prefixCls,Xt=ht.color,vt=ht.gradientId,Pt=ht.radius,_t=ht.style,Kt=ht.ptg,er=ht.strokeLinecap,sr=ht.strokeWidth,yr=ht.size,xr=ht.gapDegree,ur=Xt&&(0,me.Z)(Xt)==="object",br=ur?"#FFF":void 0,or=yr/2,fr=ge.createElement("circle",{className:"".concat($t,"-circle-path"),r:Pt,cx:or,cy:or,stroke:br,strokeLinecap:er,strokeWidth:sr,opacity:Kt===0?0:1,style:_t,ref:Ct});if(!ur)return fr;var Jt="".concat(vt,"-conic"),Qt=xr?"".concat(180+xr/2,"deg"):"0deg",Vt=Ee(Xt,(360-xr)/360),rr=Ee(Xt,1),ar="conic-gradient(from ".concat(Qt,", ").concat(Vt.join(", "),")"),vr="linear-gradient(to ".concat(xr?"bottom":"top",", ").concat(rr.join(", "),")");return ge.createElement(ge.Fragment,null,ge.createElement("mask",{id:Jt},fr),ge.createElement("foreignObject",{x:0,y:0,width:yr,height:yr,mask:"url(#".concat(Jt,")")},ge.createElement(Ce,{bg:vr},ge.createElement(Ce,{bg:ar}))))}),ke=je,Le=100,Ae=function(Ct,$t,Xt,vt,Pt,_t,Kt,er,sr,yr){var xr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,ur=Xt/100*360*((360-_t)/360),br=_t===0?0:{bottom:0,top:180,left:90,right:-90}[Kt],or=(100-vt)/100*$t;sr==="round"&&vt!==100&&(or+=yr/2,or>=$t&&(or=$t-.01));var fr=Le/2;return{stroke:typeof er=="string"?er:void 0,strokeDasharray:"".concat($t,"px ").concat(Ct),strokeDashoffset:or+xr,transform:"rotate(".concat(Pt+ur+br,"deg)"),transformOrigin:"".concat(fr,"px ").concat(fr,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Se=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ge(ht){var Ct=ht!=null?ht:[];return Array.isArray(Ct)?Ct:[Ct]}var Ze=function(Ct){var $t=(0,x.Z)((0,x.Z)({},re),Ct),Xt=$t.id,vt=$t.prefixCls,Pt=$t.steps,_t=$t.strokeWidth,Kt=$t.trailWidth,er=$t.gapDegree,sr=er===void 0?0:er,yr=$t.gapPosition,xr=$t.trailColor,ur=$t.strokeLinecap,br=$t.style,or=$t.className,fr=$t.strokeColor,Jt=$t.percent,Qt=(0,ne.Z)($t,Se),Vt=Le/2,rr=Pe(Xt),ar="".concat(rr,"-gradient"),vr=Vt-_t/2,hr=Math.PI*2*vr,Ir=sr>0?90+sr/2:-90,Or=hr*((360-sr)/360),Lr=(0,me.Z)(Pt)==="object"?Pt:{count:Pt,gap:2},Er=Lr.count,Zr=Lr.gap,_r=Ge(Jt),qt=Ge(fr),nr=qt.find(function(wt){return wt&&(0,me.Z)(wt)==="object"}),jr=nr&&(0,me.Z)(nr)==="object",Tr=jr?"butt":ur,It=Ae(hr,Or,0,100,Ir,sr,yr,xr,Tr,_t),Ft=ae(),bt=function(){var Rt=0;return _r.map(function(pt,Lt){var zt=qt[Lt]||qt[qt.length-1],Gt=Ae(hr,Or,Rt,pt,Ir,sr,yr,zt,Tr,_t);return Rt+=pt,ge.createElement(ke,{key:Lt,color:zt,ptg:pt,radius:vr,prefixCls:vt,gradientId:ar,style:Gt,strokeLinecap:Tr,strokeWidth:_t,gapDegree:sr,ref:function(Nt){Ft[Lt]=Nt},size:Le})}).reverse()},kt=function(){var Rt=Math.round(Er*(_r[0]/100)),pt=100/Er,Lt=0;return new Array(Er).fill(null).map(function(zt,Gt){var Ht=Gt<=Rt-1?qt[0]:xr,Nt=Ht&&(0,me.Z)(Ht)==="object"?"url(#".concat(ar,")"):void 0,Bt=Ae(hr,Or,Lt,pt,Ir,sr,yr,Ht,"butt",_t,Zr);return Lt+=(Or-Bt.strokeDashoffset+Zr)*100/Or,ge.createElement("circle",{key:Gt,className:"".concat(vt,"-circle-path"),r:vr,cx:Vt,cy:Vt,stroke:Nt,strokeWidth:_t,opacity:1,style:Bt,ref:function(cr){Ft[Gt]=cr}})})};return ge.createElement("svg",(0,le.Z)({className:ie()("".concat(vt,"-circle"),or),viewBox:"0 0 ".concat(Le," ").concat(Le),style:br,id:Xt,role:"presentation"},Qt),!Er&&ge.createElement("circle",{className:"".concat(vt,"-circle-trail"),r:vr,cx:Vt,cy:Vt,stroke:xr,strokeLinecap:Tr,strokeWidth:Kt||_t,style:It}),Er?kt():bt())},Je=Ze,at={Line:pe,Circle:Je},Fe=Ie(25399),Ke=Ie(68361);function it(ht){return!ht||ht<0?0:ht>100?100:ht}function rt(ht){let{success:Ct,successPercent:$t}=ht,Xt=$t;return Ct&&"progress"in Ct&&(Xt=Ct.progress),Ct&&"percent"in Ct&&(Xt=Ct.percent),Xt}const et=ht=>{let{percent:Ct,success:$t,successPercent:Xt}=ht;const vt=it(rt({success:$t,successPercent:Xt}));return[vt,it(it(Ct)-vt)]},$e=ht=>{let{success:Ct={},strokeColor:$t}=ht;const{strokeColor:Xt}=Ct;return[Xt||Ke.presetPrimaryColors.green,$t||null]},Xe=(ht,Ct,$t)=>{var Xt,vt,Pt,_t;let Kt=-1,er=-1;if(Ct==="step"){const sr=$t.steps,yr=$t.strokeWidth;typeof ht=="string"||typeof ht=="undefined"?(Kt=ht==="small"?2:14,er=yr!=null?yr:8):typeof ht=="number"?[Kt,er]=[ht,ht]:[Kt=14,er=8]=Array.isArray(ht)?ht:[ht.width,ht.height],Kt*=sr}else if(Ct==="line"){const sr=$t==null?void 0:$t.strokeWidth;typeof ht=="string"||typeof ht=="undefined"?er=sr||(ht==="small"?6:8):typeof ht=="number"?[Kt,er]=[ht,ht]:[Kt=-1,er=8]=Array.isArray(ht)?ht:[ht.width,ht.height]}else(Ct==="circle"||Ct==="dashboard")&&(typeof ht=="string"||typeof ht=="undefined"?[Kt,er]=ht==="small"?[60,60]:[120,120]:typeof ht=="number"?[Kt,er]=[ht,ht]:Array.isArray(ht)&&(Kt=(vt=(Xt=ht[0])!==null&&Xt!==void 0?Xt:ht[1])!==null&&vt!==void 0?vt:120,er=(_t=(Pt=ht[0])!==null&&Pt!==void 0?Pt:ht[1])!==null&&_t!==void 0?_t:120));return[Kt,er]},Ve=3,nt=ht=>Ve/ht*100;var ct=ht=>{const{prefixCls:Ct,trailColor:$t=null,strokeLinecap:Xt="round",gapPosition:vt,gapDegree:Pt,width:_t=120,type:Kt,children:er,success:sr,size:yr=_t,steps:xr}=ht,[ur,br]=Xe(yr,"circle");let{strokeWidth:or}=ht;or===void 0&&(or=Math.max(nt(ur),6));const fr={width:ur,height:br,fontSize:ur*.15+6},Jt=ge.useMemo(()=>{if(Pt||Pt===0)return Pt;if(Kt==="dashboard")return 75},[Pt,Kt]),Qt=et(ht),Vt=vt||Kt==="dashboard"&&"bottom"||void 0,rr=Object.prototype.toString.call(ht.strokeColor)==="[object Object]",ar=$e({success:sr,strokeColor:ht.strokeColor}),vr=ie()(`${Ct}-inner`,{[`${Ct}-circle-gradient`]:rr}),hr=ge.createElement(Je,{steps:xr,percent:xr?Qt[1]:Qt,strokeWidth:or,trailWidth:or,strokeColor:xr?ar[1]:ar,strokeLinecap:Xt,trailColor:$t,prefixCls:Ct,gapDegree:Jt,gapPosition:Vt}),Ir=ur<=20,Or=ge.createElement("div",{className:vr,style:fr},hr,!Ir&&er);return Ir?ge.createElement(Fe.Z,{title:er},Or):Or},ot=Ie(36237),qe=Ie(63356),_e=Ie(16931),Re=Ie(51636);const te="--progress-line-stroke-color",de="--progress-percent",Ne=ht=>{const Ct=ht?"100%":"-100%";return new ot.Keyframes(`antProgress${ht?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ct}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ct}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ze=ht=>{const{componentCls:Ct,iconCls:$t}=ht;return{[Ct]:Object.assign(Object.assign({},(0,qe.Wf)(ht)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ht.fontSize},[`${Ct}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${Ct}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:ht.remainingColor,borderRadius:ht.lineBorderRadius},[`${Ct}-inner:not(${Ct}-circle-gradient)`]:{[`${Ct}-circle-path`]:{stroke:ht.defaultColor}},[`${Ct}-success-bg, ${Ct}-bg`]:{position:"relative",background:ht.defaultColor,borderRadius:ht.lineBorderRadius,transition:`all ${ht.motionDurationSlow} ${ht.motionEaseInOutCirc}`},[`${Ct}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Ct}-text`]:{width:"max-content",marginInlineStart:0,marginTop:ht.marginXXS}},[`${Ct}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${de}) * 100%)`,display:"block"},[`&${Ct}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${Ct}-text-inner`]:{color:ht.colorWhite,[`&${Ct}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Ct}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ht.colorSuccess},[`${Ct}-text`]:{display:"inline-block",marginInlineStart:ht.marginXS,color:ht.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[$t]:{fontSize:ht.fontSize},[`&${Ct}-text-outer`]:{width:"max-content"},[`&${Ct}-text-outer${Ct}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:ht.marginXS}},[`${Ct}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ot.unit)(ht.paddingXXS)}`,[`&${Ct}-text-start`]:{justifyContent:"start"},[`&${Ct}-text-end`]:{justifyContent:"end"}},[`&${Ct}-status-active`]:{[`${Ct}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ht.colorBgContainer,borderRadius:ht.lineBorderRadius,opacity:0,animationName:Ne(),animationDuration:ht.progressActiveMotionDuration,animationTimingFunction:ht.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ct}-rtl${Ct}-status-active`]:{[`${Ct}-bg::before`]:{animationName:Ne(!0)}},[`&${Ct}-status-exception`]:{[`${Ct}-bg`]:{backgroundColor:ht.colorError},[`${Ct}-text`]:{color:ht.colorError}},[`&${Ct}-status-exception ${Ct}-inner:not(${Ct}-circle-gradient)`]:{[`${Ct}-circle-path`]:{stroke:ht.colorError}},[`&${Ct}-status-success`]:{[`${Ct}-bg`]:{backgroundColor:ht.colorSuccess},[`${Ct}-text`]:{color:ht.colorSuccess}},[`&${Ct}-status-success ${Ct}-inner:not(${Ct}-circle-gradient)`]:{[`${Ct}-circle-path`]:{stroke:ht.colorSuccess}}})}},xe=ht=>{const{componentCls:Ct,iconCls:$t}=ht;return{[Ct]:{[`${Ct}-circle-trail`]:{stroke:ht.remainingColor},[`&${Ct}-circle ${Ct}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ct}-circle ${Ct}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ht.circleTextColor,fontSize:ht.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[$t]:{fontSize:ht.circleIconFontSize}},[`${Ct}-circle&-status-exception`]:{[`${Ct}-text`]:{color:ht.colorError}},[`${Ct}-circle&-status-success`]:{[`${Ct}-text`]:{color:ht.colorSuccess}}},[`${Ct}-inline-circle`]:{lineHeight:1,[`${Ct}-inner`]:{verticalAlign:"bottom"}}}},ve=ht=>{const{componentCls:Ct}=ht;return{[Ct]:{[`${Ct}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ht.progressStepMinWidth,marginInlineEnd:ht.progressStepMarginInlineEnd,backgroundColor:ht.remainingColor,transition:`all ${ht.motionDurationSlow}`,"&-active":{backgroundColor:ht.defaultColor}}}}}},Oe=ht=>{const{componentCls:Ct,iconCls:$t}=ht;return{[Ct]:{[`${Ct}-small&-line, ${Ct}-small&-line ${Ct}-text ${$t}`]:{fontSize:ht.fontSizeSM}}}},We=ht=>({circleTextColor:ht.colorText,defaultColor:ht.colorInfo,remainingColor:ht.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${ht.fontSize/ht.fontSizeSM}em`});var Ue=(0,_e.I$)("Progress",ht=>{const Ct=ht.calc(ht.marginXXS).div(2).equal(),$t=(0,Re.mergeToken)(ht,{progressStepMarginInlineEnd:Ct,progressStepMinWidth:Ct,progressActiveMotionDuration:"2.4s"});return[ze($t),xe($t),ve($t),Oe($t)]},We),Ye=function(ht,Ct){var $t={};for(var Xt in ht)Object.prototype.hasOwnProperty.call(ht,Xt)&&Ct.indexOf(Xt)<0&&($t[Xt]=ht[Xt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Xt=Object.getOwnPropertySymbols(ht);vt<Xt.length;vt++)Ct.indexOf(Xt[vt])<0&&Object.prototype.propertyIsEnumerable.call(ht,Xt[vt])&&($t[Xt[vt]]=ht[Xt[vt]]);return $t};const st=ht=>{let Ct=[];return Object.keys(ht).forEach($t=>{const Xt=parseFloat($t.replace(/%/g,""));Number.isNaN(Xt)||Ct.push({key:Xt,value:ht[$t]})}),Ct=Ct.sort(($t,Xt)=>$t.key-Xt.key),Ct.map($t=>{let{key:Xt,value:vt}=$t;return`${vt} ${Xt}%`}).join(", ")},lt=(ht,Ct)=>{const{from:$t=Ke.presetPrimaryColors.blue,to:Xt=Ke.presetPrimaryColors.blue,direction:vt=Ct==="rtl"?"to left":"to right"}=ht,Pt=Ye(ht,["from","to","direction"]);if(Object.keys(Pt).length!==0){const Kt=st(Pt),er=`linear-gradient(${vt}, ${Kt})`;return{background:er,[te]:er}}const _t=`linear-gradient(${vt}, ${$t}, ${Xt})`;return{background:_t,[te]:_t}};var Tt=ht=>{const{prefixCls:Ct,direction:$t,percent:Xt,size:vt,strokeWidth:Pt,strokeColor:_t,strokeLinecap:Kt="round",children:er,trailColor:sr=null,percentPosition:yr,success:xr}=ht,{align:ur,type:br}=yr,or=_t&&typeof _t!="string"?lt(_t,$t):{[te]:_t,background:_t},fr=Kt==="square"||Kt==="butt"?0:void 0,Jt=vt!=null?vt:[-1,Pt||(vt==="small"?6:8)],[Qt,Vt]=Xe(Jt,"line",{strokeWidth:Pt}),rr={backgroundColor:sr||void 0,borderRadius:fr},ar=Object.assign(Object.assign({width:`${it(Xt)}%`,height:Vt,borderRadius:fr},or),{[de]:it(Xt)/100}),vr=rt(ht),hr={width:`${it(vr)}%`,height:Vt,borderRadius:fr,backgroundColor:xr==null?void 0:xr.strokeColor},Ir={width:Qt<0?"100%":Qt},Or=ge.createElement("div",{className:`${Ct}-inner`,style:rr},ge.createElement("div",{className:ie()(`${Ct}-bg`,`${Ct}-bg-${br}`),style:ar},br==="inner"&&er),vr!==void 0&&ge.createElement("div",{className:`${Ct}-success-bg`,style:hr})),Lr=br==="outer"&&ur==="start",Er=br==="outer"&&ur==="end";return br==="outer"&&ur==="center"?ge.createElement("div",{className:`${Ct}-layout-bottom`},Or,er):ge.createElement("div",{className:`${Ct}-outer`,style:Ir},Lr&&er,Or,Er&&er)},Ot=ht=>{const{size:Ct,steps:$t,rounding:Xt=Math.round,percent:vt=0,strokeWidth:Pt=8,strokeColor:_t,trailColor:Kt=null,prefixCls:er,children:sr}=ht,yr=Xt($t*(vt/100)),xr=Ct==="small"?2:14,ur=Ct!=null?Ct:[xr,Pt],[br,or]=Xe(ur,"step",{steps:$t,strokeWidth:Pt}),fr=br/$t,Jt=Array.from({length:$t});for(let Qt=0;Qt<$t;Qt++){const Vt=Array.isArray(_t)?_t[Qt]:_t;Jt[Qt]=ge.createElement("div",{key:Qt,className:ie()(`${er}-steps-item`,{[`${er}-steps-item-active`]:Qt<=yr-1}),style:{backgroundColor:Qt<=yr-1?Vt:Kt,width:fr,height:or}})}return ge.createElement("div",{className:`${er}-steps-outer`},Jt,sr)},yt=function(ht,Ct){var $t={};for(var Xt in ht)Object.prototype.hasOwnProperty.call(ht,Xt)&&Ct.indexOf(Xt)<0&&($t[Xt]=ht[Xt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Xt=Object.getOwnPropertySymbols(ht);vt<Xt.length;vt++)Ct.indexOf(Xt[vt])<0&&Object.prototype.propertyIsEnumerable.call(ht,Xt[vt])&&($t[Xt[vt]]=ht[Xt[vt]]);return $t};const Mt=null,Et=["normal","exception","active","success"];var jt=ge.forwardRef((ht,Ct)=>{const{prefixCls:$t,className:Xt,rootClassName:vt,steps:Pt,strokeColor:_t,percent:Kt=0,size:er="default",showInfo:sr=!0,type:yr="line",status:xr,format:ur,style:br,percentPosition:or={}}=ht,fr=yt(ht,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Jt="end",type:Qt="outer"}=or,Vt=Array.isArray(_t)?_t[0]:_t,rr=typeof _t=="string"||Array.isArray(_t)?_t:void 0,ar=ge.useMemo(()=>{if(Vt){const bt=typeof Vt=="string"?Vt:Object.values(Vt)[0];return new gt.FastColor(bt).isLight()}return!1},[_t]),vr=ge.useMemo(()=>{var bt,kt;const wt=rt(ht);return parseInt(wt!==void 0?(bt=wt!=null?wt:0)===null||bt===void 0?void 0:bt.toString():(kt=Kt!=null?Kt:0)===null||kt===void 0?void 0:kt.toString(),10)},[Kt,ht.success,ht.successPercent]),hr=ge.useMemo(()=>!Et.includes(xr)&&vr>=100?"success":xr||"normal",[xr,vr]),{getPrefixCls:Ir,direction:Or,progress:Lr}=ge.useContext(ee.E_),Er=Ir("progress",$t),[Zr,_r,qt]=Ue(Er),nr=yr==="line",jr=nr&&!Pt,Tr=ge.useMemo(()=>{if(!sr)return null;const bt=rt(ht);let kt;const wt=ur||(pt=>`${pt}%`),Rt=nr&&ar&&Qt==="inner";return Qt==="inner"||ur||hr!=="exception"&&hr!=="success"?kt=wt(it(Kt),it(bt)):hr==="exception"?kt=nr?ge.createElement(be.Z,null):ge.createElement(z.Z,null):hr==="success"&&(kt=nr?ge.createElement(a.Z,null):ge.createElement(Te.Z,null)),ge.createElement("span",{className:ie()(`${Er}-text`,{[`${Er}-text-bright`]:Rt,[`${Er}-text-${Jt}`]:jr,[`${Er}-text-${Qt}`]:jr}),title:typeof kt=="string"?kt:void 0},kt)},[sr,Kt,vr,hr,yr,Er,ur]);let It;yr==="line"?It=Pt?ge.createElement(Ot,Object.assign({},ht,{strokeColor:rr,prefixCls:Er,steps:typeof Pt=="object"?Pt.count:Pt}),Tr):ge.createElement(Tt,Object.assign({},ht,{strokeColor:Vt,prefixCls:Er,direction:Or,percentPosition:{align:Jt,type:Qt}}),Tr):(yr==="circle"||yr==="dashboard")&&(It=ge.createElement(ct,Object.assign({},ht,{strokeColor:Vt,prefixCls:Er,progressStatus:hr}),Tr));const Ft=ie()(Er,`${Er}-status-${hr}`,{[`${Er}-${yr==="dashboard"&&"circle"||yr}`]:yr!=="line",[`${Er}-inline-circle`]:yr==="circle"&&Xe(er,"circle")[0]<=20,[`${Er}-line`]:jr,[`${Er}-line-align-${Jt}`]:jr,[`${Er}-line-position-${Qt}`]:jr,[`${Er}-steps`]:Pt,[`${Er}-show-info`]:sr,[`${Er}-${er}`]:typeof er=="string",[`${Er}-rtl`]:Or==="rtl"},Lr==null?void 0:Lr.className,Xt,vt,_r,qt);return Zr(ge.createElement("div",Object.assign({ref:Ct,style:Object.assign(Object.assign({},Lr==null?void 0:Lr.style),br),className:Ft,role:"progressbar","aria-valuenow":vr,"aria-valuemin":0,"aria-valuemax":100},(0,oe.Z)(fr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),It))}),At=jt},63139:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return et}});var ge=Ie(59301),gt=Ie(54476),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Te=a,be=Ie(7657),z=function(Xe,Ve){return ge.createElement(be.Z,(0,gt.Z)({},Xe,{ref:Ve,icon:Te}))},E=ge.forwardRef(z),ie=E,oe=Ie(92310),ee=Ie.n(oe),le=Ie(20068),x=Ie(42978),ne=Ie(75931),re=Ie(18929),ae=Ie(10228),se=Ie(26112);function ce($e,Xe){var Ve=$e.disabled,nt=$e.prefixCls,Qe=$e.character,ct=$e.characterRender,ot=$e.index,qe=$e.count,_e=$e.value,Re=$e.allowHalf,te=$e.focused,de=$e.onHover,Ne=$e.onClick,ze=function(lt){de(lt,ot)},xe=function(lt){Ne(lt,ot)},ve=function(lt){lt.keyCode===ae.Z.ENTER&&Ne(lt,ot)},Oe=ot+1,We=new Set([nt]);_e===0&&ot===0&&te?We.add("".concat(nt,"-focused")):Re&&_e+.5>=Oe&&_e<Oe?(We.add("".concat(nt,"-half")),We.add("".concat(nt,"-active")),te&&We.add("".concat(nt,"-focused"))):(Oe<=_e?We.add("".concat(nt,"-full")):We.add("".concat(nt,"-zero")),Oe===_e&&te&&We.add("".concat(nt,"-focused")));var Ue=typeof Qe=="function"?Qe($e):Qe,Ye=ge.createElement("li",{className:ee()(Array.from(We)),ref:Xe},ge.createElement("div",{onClick:Ve?null:xe,onKeyDown:Ve?null:ve,onMouseMove:Ve?null:ze,role:"radio","aria-checked":_e>ot?"true":"false","aria-posinset":ot+1,"aria-setsize":qe,tabIndex:Ve?-1:0},ge.createElement("div",{className:"".concat(nt,"-first")},Ue),ge.createElement("div",{className:"".concat(nt,"-second")},Ue)));return ct&&(Ye=ct(Ye,$e)),Ye}var pe=ge.forwardRef(ce);function me(){var $e=ge.useRef({});function Xe(nt){return $e.current[nt]}function Ve(nt){return function(Qe){$e.current[nt]=Qe}}return[Xe,Ve]}function he($e){var Xe=$e.pageXOffset,Ve="scrollLeft";if(typeof Xe!="number"){var nt=$e.document;Xe=nt.documentElement[Ve],typeof Xe!="number"&&(Xe=nt.body[Ve])}return Xe}function ye($e){var Xe,Ve,nt=$e.ownerDocument,Qe=nt.body,ct=nt&&nt.documentElement,ot=$e.getBoundingClientRect();return Xe=ot.left,Ve=ot.top,Xe-=ct.clientLeft||Qe.clientLeft||0,Ve-=ct.clientTop||Qe.clientTop||0,{left:Xe,top:Ve}}function De($e){var Xe=ye($e),Ve=$e.ownerDocument,nt=Ve.defaultView||Ve.parentWindow;return Xe.left+=he(nt),Xe.left}var Me=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Be($e,Xe){var Ve=$e.prefixCls,nt=Ve===void 0?"rc-rate":Ve,Qe=$e.className,ct=$e.defaultValue,ot=$e.value,qe=$e.count,_e=qe===void 0?5:qe,Re=$e.allowHalf,te=Re===void 0?!1:Re,de=$e.allowClear,Ne=de===void 0?!0:de,ze=$e.keyboard,xe=ze===void 0?!0:ze,ve=$e.character,Oe=ve===void 0?"\u2605":ve,We=$e.characterRender,Ue=$e.disabled,Ye=$e.direction,st=Ye===void 0?"ltr":Ye,lt=$e.tabIndex,ft=lt===void 0?0:lt,Tt=$e.autoFocus,St=$e.onHoverChange,Ot=$e.onChange,yt=$e.onFocus,Mt=$e.onBlur,Et=$e.onKeyDown,xt=$e.onMouseLeave,jt=(0,ne.Z)($e,Me),At=me(),ht=(0,x.Z)(At,2),Ct=ht[0],$t=ht[1],Xt=ge.useRef(null),vt=function(){if(!Ue){var Tr;(Tr=Xt.current)===null||Tr===void 0||Tr.focus()}};ge.useImperativeHandle(Xe,function(){return{focus:vt,blur:function(){if(!Ue){var Tr;(Tr=Xt.current)===null||Tr===void 0||Tr.blur()}}}});var Pt=(0,re.Z)(ct||0,{value:ot}),_t=(0,x.Z)(Pt,2),Kt=_t[0],er=_t[1],sr=(0,re.Z)(null),yr=(0,x.Z)(sr,2),xr=yr[0],ur=yr[1],br=function(Tr,It){var Ft=st==="rtl",bt=Tr+1;if(te){var kt=Ct(Tr),wt=De(kt),Rt=kt.clientWidth;(Ft&&It-wt>Rt/2||!Ft&&It-wt<Rt/2)&&(bt-=.5)}return bt},or=function(Tr){er(Tr),Ot==null||Ot(Tr)},fr=ge.useState(!1),Jt=(0,x.Z)(fr,2),Qt=Jt[0],Vt=Jt[1],rr=function(){Vt(!0),yt==null||yt()},ar=function(){Vt(!1),Mt==null||Mt()},vr=ge.useState(null),hr=(0,x.Z)(vr,2),Ir=hr[0],Or=hr[1],Lr=function(Tr,It){var Ft=br(It,Tr.pageX);Ft!==xr&&(Or(Ft),ur(null)),St==null||St(Ft)},Er=function(Tr){Ue||(Or(null),ur(null),St==null||St(void 0)),Tr&&(xt==null||xt(Tr))},Zr=function(Tr,It){var Ft=br(It,Tr.pageX),bt=!1;Ne&&(bt=Ft===Kt),Er(),or(bt?0:Ft),ur(bt?Ft:null)},_r=function(Tr){var It=Tr.keyCode,Ft=st==="rtl",bt=te?.5:1;xe&&(It===ae.Z.RIGHT&&Kt<_e&&!Ft?(or(Kt+bt),Tr.preventDefault()):It===ae.Z.LEFT&&Kt>0&&!Ft||It===ae.Z.RIGHT&&Kt>0&&Ft?(or(Kt-bt),Tr.preventDefault()):It===ae.Z.LEFT&&Kt<_e&&Ft&&(or(Kt+bt),Tr.preventDefault())),Et==null||Et(Tr)};ge.useEffect(function(){Tt&&!Ue&&vt()},[]);var qt=new Array(_e).fill(0).map(function(jr,Tr){return ge.createElement(pe,{ref:$t(Tr),index:Tr,count:_e,disabled:Ue,prefixCls:"".concat(nt,"-star"),allowHalf:te,value:Ir===null?Kt:Ir,onClick:Zr,onHover:Lr,key:jr||Tr,character:Oe,characterRender:We,focused:Qt})}),nr=ee()(nt,Qe,(0,le.Z)((0,le.Z)({},"".concat(nt,"-disabled"),Ue),"".concat(nt,"-rtl"),st==="rtl"));return ge.createElement("ul",(0,gt.Z)({className:nr,onMouseLeave:Er,tabIndex:Ue?-1:ft,onFocus:Ue?null:rr,onBlur:Ue?null:ar,onKeyDown:Ue?null:_r,ref:Xt},(0,se.Z)(jt,{aria:!0,data:!0,attr:!0})),qt)}var Pe=ge.forwardRef(Be),Ce=Pe,Ee=Ie(48755),je=Ie(25399),ke=Ie(36237),Le=Ie(63356),Ae=Ie(16931),Se=Ie(51636);const Ge=$e=>{const{componentCls:Xe}=$e;return{[`${Xe}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:$e.marginXS},"> div":{transition:`all ${$e.motionDurationMid}, outline 0s`,"&:hover":{transform:$e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,ke.unit)($e.lineWidth)} dashed ${$e.starColor}`,transform:$e.starHoverScale}},"&-first, &-second":{color:$e.starBg,transition:`all ${$e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Xe}-star-first, &-half ${Xe}-star-second`]:{opacity:1},[`&-half ${Xe}-star-first, &-full ${Xe}-star-second`]:{color:"inherit"}}}},Ze=$e=>({[`&-rtl${$e.componentCls}`]:{direction:"rtl"}}),Je=$e=>{const{componentCls:Xe}=$e;return{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Le.Wf)($e)),{display:"inline-block",margin:0,padding:0,color:$e.starColor,fontSize:$e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Xe} ${Xe}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ge($e)),Ze($e))}},at=$e=>({starColor:$e.yellow6,starSize:$e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:$e.colorFillContent});var Fe=(0,Ae.I$)("Rate",$e=>{const Xe=(0,Se.mergeToken)($e,{});return[Je(Xe)]},at),Ke=Ie(2171),it=function($e,Xe){var Ve={};for(var nt in $e)Object.prototype.hasOwnProperty.call($e,nt)&&Xe.indexOf(nt)<0&&(Ve[nt]=$e[nt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,nt=Object.getOwnPropertySymbols($e);Qe<nt.length;Qe++)Xe.indexOf(nt[Qe])<0&&Object.prototype.propertyIsEnumerable.call($e,nt[Qe])&&(Ve[nt[Qe]]=$e[nt[Qe]]);return Ve},et=ge.forwardRef(($e,Xe)=>{const{prefixCls:Ve,className:nt,rootClassName:Qe,style:ct,tooltips:ot,character:qe=ge.createElement(ie,null),disabled:_e}=$e,Re=it($e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),te=(lt,ft)=>{let{index:Tt}=ft;return ot?ge.createElement(je.Z,{title:ot[Tt]},lt):lt},{getPrefixCls:de,direction:Ne,rate:ze}=ge.useContext(Ee.E_),xe=de("rate",Ve),[ve,Oe,We]=Fe(xe),Ue=Object.assign(Object.assign({},ze==null?void 0:ze.style),ct),Ye=ge.useContext(Ke.Z),st=_e!=null?_e:Ye;return ve(ge.createElement(Ce,Object.assign({ref:Xe,character:qe,characterRender:te,disabled:st},Re,{className:ee()(nt,Qe,Oe,We,ze==null?void 0:ze.className),style:Ue,prefixCls:xe,direction:Ne})))})},82326:function(Yt,Dt,Ie){"use strict";var ge=Ie(59301),gt=Ie(92310),a=Ie.n(gt),Te=Ie(37463),be=Ie(2738),z=Ie(75030),E=Ie(86641),ie=Ie(45915),oe=Ie(82855),ee=Ie(48755),le=Ie(38406),x=Ie(2171),ne=Ie(83397),re=Ie(31756),ae=Ie(56553),se=Ie(24971),ce=Ie(70045),pe=Ie(57700),me=Ie(1722),he=Ie(90376),ye=Ie(68525),De=Ie(90005),Me=function(je,ke){var Le={};for(var Ae in je)Object.prototype.hasOwnProperty.call(je,Ae)&&ke.indexOf(Ae)<0&&(Le[Ae]=je[Ae]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Ae=Object.getOwnPropertySymbols(je);Se<Ae.length;Se++)ke.indexOf(Ae[Se])<0&&Object.prototype.propertyIsEnumerable.call(je,Ae[Se])&&(Le[Ae[Se]]=je[Ae[Se]]);return Le};const Be="SECRET_COMBOBOX_MODE_DO_NOT_USE",Pe=(je,ke)=>{var Le;const{prefixCls:Ae,bordered:Se,className:Ge,rootClassName:Ze,getPopupContainer:Je,popupClassName:at,dropdownClassName:Fe,listHeight:Ke=256,placement:it,listItemHeight:rt,size:et,disabled:$e,notFoundContent:Xe,status:Ve,builtinPlacements:nt,dropdownMatchSelectWidth:Qe,popupMatchSelectWidth:ct,direction:ot,style:qe,allowClear:_e,variant:Re,dropdownStyle:te,transitionName:de,tagRender:Ne,maxCount:ze,prefix:xe}=je,ve=Me(je,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Oe,getPrefixCls:We,renderEmpty:Ue,direction:Ye,virtual:st,popupMatchSelectWidth:lt,popupOverflow:ft}=ge.useContext(ee.E_),Tt=(0,ee.dj)("select"),[,St]=(0,pe.ZP)(),Ot=rt!=null?rt:St==null?void 0:St.controlHeight,yt=We("select",Ae),Mt=We(),Et=ot!=null?ot:Ye,{compactSize:xt,compactItemClassnames:jt}=(0,ce.ri)(yt,Et),[At,ht]=(0,se.Z)("select",Re,Se),Ct=(0,ne.Z)(yt),[$t,Xt,vt]=(0,he.Z)(yt,Ct),Pt=ge.useMemo(()=>{const{mode:_r}=je;if(_r!=="combobox")return _r===Be?"combobox":_r},[je.mode]),_t=Pt==="multiple"||Pt==="tags",Kt=(0,De.Z)(je.suffixIcon,je.showArrow),er=(Le=ct!=null?ct:Qe)!==null&&Le!==void 0?Le:lt,{status:sr,hasFeedback:yr,isFormItemInput:xr,feedbackIcon:ur}=ge.useContext(ae.aM),br=(0,oe.F)(sr,Ve);let or;Xe!==void 0?or=Xe:Pt==="combobox"?or=null:or=(Ue==null?void 0:Ue("Select"))||ge.createElement(le.Z,{componentName:"Select"});const{suffixIcon:fr,itemIcon:Jt,removeIcon:Qt,clearIcon:Vt}=(0,ye.Z)(Object.assign(Object.assign({},ve),{multiple:_t,hasFeedback:yr,feedbackIcon:ur,showSuffixIcon:Kt,prefixCls:yt,componentName:"Select"})),rr=_e===!0?{clearIcon:Vt}:_e,ar=(0,be.Z)(ve,["suffixIcon","itemIcon"]),vr=a()(at||Fe,{[`${yt}-dropdown-${Et}`]:Et==="rtl"},Ze,vt,Ct,Xt),hr=(0,re.Z)(_r=>{var qt;return(qt=et!=null?et:xt)!==null&&qt!==void 0?qt:_r}),Ir=ge.useContext(x.Z),Or=$e!=null?$e:Ir,Lr=a()({[`${yt}-lg`]:hr==="large",[`${yt}-sm`]:hr==="small",[`${yt}-rtl`]:Et==="rtl",[`${yt}-${At}`]:ht,[`${yt}-in-form-item`]:xr},(0,oe.Z)(yt,br,yr),jt,Tt.className,Ge,Ze,vt,Ct,Xt),Er=ge.useMemo(()=>it!==void 0?it:Et==="rtl"?"bottomRight":"bottomLeft",[it,Et]),[Zr]=(0,z.Cn)("SelectLike",te==null?void 0:te.zIndex);return $t(ge.createElement(Te.ZP,Object.assign({ref:ke,virtual:st,showSearch:Tt.showSearch},ar,{style:Object.assign(Object.assign({},Tt.style),qe),dropdownMatchSelectWidth:er,transitionName:(0,E.m)(Mt,"slide-up",de),builtinPlacements:(0,me.Z)(nt,ft),listHeight:Ke,listItemHeight:Ot,mode:Pt,prefixCls:yt,placement:Er,direction:Et,prefix:xe,suffixIcon:fr,menuItemSelectedIcon:Jt,removeIcon:Qt,allowClear:rr,notFoundContent:or,className:Lr,getPopupContainer:Je||Oe,dropdownClassName:vr,disabled:Or,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:Zr}),maxCount:_t?ze:void 0,tagRender:_t?Ne:void 0})))},Ce=ge.forwardRef(Pe),Ee=(0,ie.Z)(Ce,"dropdownAlign");Ce.SECRET_COMBOBOX_MODE_DO_NOT_USE=Be,Ce.Option=Te.Wx,Ce.OptGroup=Te.Xo,Ce._InternalPanelDoNotUseOrYouWillBeFired=Ee,Dt.default=Ce},1722:function(Yt,Dt){"use strict";const Ie=gt=>{const Te={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:gt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Te),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Te),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Te),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Te),{points:["br","tr"],offset:[0,-4]})}};function ge(gt,a){return gt||Ie(a)}Dt.Z=ge},90376:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return Ae}});var ge=Ie(63356),gt=Ie(56119),a=Ie(16931),Te=Ie(51636),be=Ie(46e3),z=Ie(93873);const E=Se=>{const{optionHeight:Ge,optionFontSize:Ze,optionLineHeight:Je,optionPadding:at}=Se;return{position:"relative",display:"block",minHeight:Ge,padding:at,color:Se.colorText,fontWeight:"normal",fontSize:Ze,lineHeight:Je,boxSizing:"border-box"}};var oe=Se=>{const{antCls:Ge,componentCls:Ze}=Se,Je=`${Ze}-item`,at=`&${Ge}-slide-up-enter${Ge}-slide-up-enter-active`,Fe=`&${Ge}-slide-up-appear${Ge}-slide-up-appear-active`,Ke=`&${Ge}-slide-up-leave${Ge}-slide-up-leave-active`,it=`${Ze}-dropdown-placement-`,rt=`${Je}-option-selected`;return[{[`${Ze}-dropdown`]:Object.assign(Object.assign({},(0,ge.Wf)(Se)),{position:"absolute",top:-9999,zIndex:Se.zIndexPopup,boxSizing:"border-box",padding:Se.paddingXXS,overflow:"hidden",fontSize:Se.fontSize,fontVariant:"initial",backgroundColor:Se.colorBgElevated,borderRadius:Se.borderRadiusLG,outline:"none",boxShadow:Se.boxShadowSecondary,[`
|
|
|
${at}${it}bottomLeft,
|
|
|
${Fe}${it}bottomLeft
|
|
|
`]:{animationName:be.fJ},[`
|
|
|
${at}${it}topLeft,
|
|
|
${Fe}${it}topLeft,
|
|
|
${at}${it}topRight,
|
|
|
${Fe}${it}topRight
|
|
|
`]:{animationName:be.Qt},[`${Ke}${it}bottomLeft`]:{animationName:be.Uw},[`
|
|
|
${Ke}${it}topLeft,
|
|
|
${Ke}${it}topRight
|
|
|
`]:{animationName:be.ly},"&-hidden":{display:"none"},[Je]:Object.assign(Object.assign({},E(Se)),{cursor:"pointer",transition:`background ${Se.motionDurationSlow} ease`,borderRadius:Se.borderRadiusSM,"&-group":{color:Se.colorTextDescription,fontSize:Se.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ge.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Je}-option-disabled)`]:{backgroundColor:Se.optionActiveBg},[`&-selected:not(${Je}-option-disabled)`]:{color:Se.optionSelectedColor,fontWeight:Se.optionSelectedFontWeight,backgroundColor:Se.optionSelectedBg,[`${Je}-option-state`]:{color:Se.colorPrimary}},"&-disabled":{[`&${Je}-option-selected`]:{backgroundColor:Se.colorBgContainerDisabled},color:Se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Se.calc(Se.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},E(Se)),{color:Se.colorTextDisabled})}),[`${rt}:has(+ ${rt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${rt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,be.oN)(Se,"slide-up"),(0,be.oN)(Se,"slide-down"),(0,z.Fm)(Se,"move-up"),(0,z.Fm)(Se,"move-down")]},ee=Ie(26743),le=Ie(36237);function x(Se,Ge){const{componentCls:Ze,inputPaddingHorizontalBase:Je,borderRadius:at}=Se,Fe=Se.calc(Se.controlHeight).sub(Se.calc(Se.lineWidth).mul(2)).equal(),Ke=Ge?`${Ze}-${Ge}`:"";return{[`${Ze}-single${Ke}`]:{fontSize:Se.fontSize,height:Se.controlHeight,[`${Ze}-selector`]:Object.assign(Object.assign({},(0,ge.Wf)(Se,!0)),{display:"flex",borderRadius:at,flex:"1 1 auto",[`${Ze}-selection-wrap:after`]:{lineHeight:(0,le.unit)(Fe)},[`${Ze}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${Ze}-selection-item,
|
|
|
${Ze}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,le.unit)(Fe),transition:`all ${Se.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Ze}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ze}-selection-item:empty:after`,`${Ze}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ze}-show-arrow ${Ze}-selection-item,
|
|
|
&${Ze}-show-arrow ${Ze}-selection-search,
|
|
|
&${Ze}-show-arrow ${Ze}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Se.showArrowPaddingInlineEnd},[`&${Ze}-open ${Ze}-selection-item`]:{color:Se.colorTextPlaceholder},[`&:not(${Ze}-customize-input)`]:{[`${Ze}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,le.unit)(Je)}`,[`${Ze}-selection-search-input`]:{height:Fe,fontSize:Se.fontSize},"&:after":{lineHeight:(0,le.unit)(Fe)}}},[`&${Ze}-customize-input`]:{[`${Ze}-selector`]:{"&:after":{display:"none"},[`${Ze}-selection-search`]:{position:"static",width:"100%"},[`${Ze}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,le.unit)(Je)}`,"&:after":{display:"none"}}}}}}}function ne(Se){const{componentCls:Ge}=Se,Ze=Se.calc(Se.controlPaddingHorizontalSM).sub(Se.lineWidth).equal();return[x(Se),x((0,Te.mergeToken)(Se,{controlHeight:Se.controlHeightSM,borderRadius:Se.borderRadiusSM}),"sm"),{[`${Ge}-single${Ge}-sm`]:{[`&:not(${Ge}-customize-input)`]:{[`${Ge}-selector`]:{padding:`0 ${(0,le.unit)(Ze)}`},[`&${Ge}-show-arrow ${Ge}-selection-search`]:{insetInlineEnd:Se.calc(Ze).add(Se.calc(Se.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Ge}-show-arrow ${Ge}-selection-item,
|
|
|
&${Ge}-show-arrow ${Ge}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Se.calc(Se.fontSize).mul(1.5).equal()}}}},x((0,Te.mergeToken)(Se,{controlHeight:Se.singleItemHeightLG,fontSize:Se.fontSizeLG,borderRadius:Se.borderRadiusLG}),"lg")]}const re=Se=>{const{fontSize:Ge,lineHeight:Ze,lineWidth:Je,controlHeight:at,controlHeightSM:Fe,controlHeightLG:Ke,paddingXXS:it,controlPaddingHorizontal:rt,zIndexPopupBase:et,colorText:$e,fontWeightStrong:Xe,controlItemBgActive:Ve,controlItemBgHover:nt,colorBgContainer:Qe,colorFillSecondary:ct,colorBgContainerDisabled:ot,colorTextDisabled:qe,colorPrimaryHover:_e,colorPrimary:Re,controlOutline:te}=Se,de=it*2,Ne=Je*2,ze=Math.min(at-de,at-Ne),xe=Math.min(Fe-de,Fe-Ne),ve=Math.min(Ke-de,Ke-Ne);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(it/2),zIndexPopup:et+50,optionSelectedColor:$e,optionSelectedFontWeight:Xe,optionSelectedBg:Ve,optionActiveBg:nt,optionPadding:`${(at-Ge*Ze)/2}px ${rt}px`,optionFontSize:Ge,optionLineHeight:Ze,optionHeight:at,selectorBg:Qe,clearBg:Qe,singleItemHeightLG:Ke,multipleItemBg:ct,multipleItemBorderColor:"transparent",multipleItemHeight:ze,multipleItemHeightSM:xe,multipleItemHeightLG:ve,multipleSelectorBgDisabled:ot,multipleItemColorDisabled:qe,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(Se.fontSize*1.25),hoverBorderColor:_e,activeBorderColor:Re,activeOutlineColor:te,selectAffixPadding:it}},ae=(Se,Ge)=>{const{componentCls:Ze,antCls:Je,controlOutlineWidth:at}=Se;return{[`&:not(${Ze}-customize-input) ${Ze}-selector`]:{border:`${(0,le.unit)(Se.lineWidth)} ${Se.lineType} ${Ge.borderColor}`,background:Se.selectorBg},[`&:not(${Ze}-disabled):not(${Ze}-customize-input):not(${Je}-pagination-size-changer)`]:{[`&:hover ${Ze}-selector`]:{borderColor:Ge.hoverBorderHover},[`${Ze}-focused& ${Ze}-selector`]:{borderColor:Ge.activeBorderColor,boxShadow:`0 0 0 ${(0,le.unit)(at)} ${Ge.activeOutlineColor}`,outline:0},[`${Ze}-prefix`]:{color:Ge.color}}}},se=(Se,Ge)=>({[`&${Se.componentCls}-status-${Ge.status}`]:Object.assign({},ae(Se,Ge))}),ce=Se=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ae(Se,{borderColor:Se.colorBorder,hoverBorderHover:Se.hoverBorderColor,activeBorderColor:Se.activeBorderColor,activeOutlineColor:Se.activeOutlineColor,color:Se.colorText})),se(Se,{status:"error",borderColor:Se.colorError,hoverBorderHover:Se.colorErrorHover,activeBorderColor:Se.colorError,activeOutlineColor:Se.colorErrorOutline,color:Se.colorError})),se(Se,{status:"warning",borderColor:Se.colorWarning,hoverBorderHover:Se.colorWarningHover,activeBorderColor:Se.colorWarning,activeOutlineColor:Se.colorWarningOutline,color:Se.colorWarning})),{[`&${Se.componentCls}-disabled`]:{[`&:not(${Se.componentCls}-customize-input) ${Se.componentCls}-selector`]:{background:Se.colorBgContainerDisabled,color:Se.colorTextDisabled}},[`&${Se.componentCls}-multiple ${Se.componentCls}-selection-item`]:{background:Se.multipleItemBg,border:`${(0,le.unit)(Se.lineWidth)} ${Se.lineType} ${Se.multipleItemBorderColor}`}})}),pe=(Se,Ge)=>{const{componentCls:Ze,antCls:Je}=Se;return{[`&:not(${Ze}-customize-input) ${Ze}-selector`]:{background:Ge.bg,border:`${(0,le.unit)(Se.lineWidth)} ${Se.lineType} transparent`,color:Ge.color},[`&:not(${Ze}-disabled):not(${Ze}-customize-input):not(${Je}-pagination-size-changer)`]:{[`&:hover ${Ze}-selector`]:{background:Ge.hoverBg},[`${Ze}-focused& ${Ze}-selector`]:{background:Se.selectorBg,borderColor:Ge.activeBorderColor,outline:0}}}},me=(Se,Ge)=>({[`&${Se.componentCls}-status-${Ge.status}`]:Object.assign({},pe(Se,Ge))}),he=Se=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},pe(Se,{bg:Se.colorFillTertiary,hoverBg:Se.colorFillSecondary,activeBorderColor:Se.activeBorderColor,color:Se.colorText})),me(Se,{status:"error",bg:Se.colorErrorBg,hoverBg:Se.colorErrorBgHover,activeBorderColor:Se.colorError,color:Se.colorError})),me(Se,{status:"warning",bg:Se.colorWarningBg,hoverBg:Se.colorWarningBgHover,activeBorderColor:Se.colorWarning,color:Se.colorWarning})),{[`&${Se.componentCls}-disabled`]:{[`&:not(${Se.componentCls}-customize-input) ${Se.componentCls}-selector`]:{borderColor:Se.colorBorder,background:Se.colorBgContainerDisabled,color:Se.colorTextDisabled}},[`&${Se.componentCls}-multiple ${Se.componentCls}-selection-item`]:{background:Se.colorBgContainer,border:`${(0,le.unit)(Se.lineWidth)} ${Se.lineType} ${Se.colorSplit}`}})}),ye=Se=>({"&-borderless":{[`${Se.componentCls}-selector`]:{background:"transparent",border:`${(0,le.unit)(Se.lineWidth)} ${Se.lineType} transparent`},[`&${Se.componentCls}-disabled`]:{[`&:not(${Se.componentCls}-customize-input) ${Se.componentCls}-selector`]:{color:Se.colorTextDisabled}},[`&${Se.componentCls}-multiple ${Se.componentCls}-selection-item`]:{background:Se.multipleItemBg,border:`${(0,le.unit)(Se.lineWidth)} ${Se.lineType} ${Se.multipleItemBorderColor}`},[`&${Se.componentCls}-status-error`]:{[`${Se.componentCls}-prefix, ${Se.componentCls}-selection-item`]:{color:Se.colorError}},[`&${Se.componentCls}-status-warning`]:{[`${Se.componentCls}-prefix, ${Se.componentCls}-selection-item`]:{color:Se.colorWarning}}}}),De=(Se,Ge)=>{const{componentCls:Ze,antCls:Je}=Se;return{[`&:not(${Ze}-customize-input) ${Ze}-selector`]:{borderWidth:`0 0 ${(0,le.unit)(Se.lineWidth)} 0`,borderStyle:`none none ${Se.lineType} none`,borderColor:Ge.borderColor,background:Se.selectorBg,borderRadius:0},[`&:not(${Ze}-disabled):not(${Ze}-customize-input):not(${Je}-pagination-size-changer)`]:{[`&:hover ${Ze}-selector`]:{borderColor:Ge.hoverBorderHover},[`${Ze}-focused& ${Ze}-selector`]:{borderColor:Ge.activeBorderColor,outline:0},[`${Ze}-prefix`]:{color:Ge.color}}}},Me=(Se,Ge)=>({[`&${Se.componentCls}-status-${Ge.status}`]:Object.assign({},De(Se,Ge))}),Be=Se=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},De(Se,{borderColor:Se.colorBorder,hoverBorderHover:Se.hoverBorderColor,activeBorderColor:Se.activeBorderColor,activeOutlineColor:Se.activeOutlineColor,color:Se.colorText})),Me(Se,{status:"error",borderColor:Se.colorError,hoverBorderHover:Se.colorErrorHover,activeBorderColor:Se.colorError,activeOutlineColor:Se.colorErrorOutline,color:Se.colorError})),Me(Se,{status:"warning",borderColor:Se.colorWarning,hoverBorderHover:Se.colorWarningHover,activeBorderColor:Se.colorWarning,activeOutlineColor:Se.colorWarningOutline,color:Se.colorWarning})),{[`&${Se.componentCls}-disabled`]:{[`&:not(${Se.componentCls}-customize-input) ${Se.componentCls}-selector`]:{color:Se.colorTextDisabled}},[`&${Se.componentCls}-multiple ${Se.componentCls}-selection-item`]:{background:Se.multipleItemBg,border:`${(0,le.unit)(Se.lineWidth)} ${Se.lineType} ${Se.multipleItemBorderColor}`}})});var Ce=Se=>({[Se.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ce(Se)),he(Se)),ye(Se)),Be(Se))});const Ee=Se=>{const{componentCls:Ge}=Se;return{position:"relative",transition:`all ${Se.motionDurationMid} ${Se.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ge}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Ge}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},je=Se=>{const{componentCls:Ge}=Se;return{[`${Ge}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},ke=Se=>{const{antCls:Ge,componentCls:Ze,inputPaddingHorizontalBase:Je,iconCls:at}=Se;return{[Ze]:Object.assign(Object.assign({},(0,ge.Wf)(Se)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Ze}-customize-input) ${Ze}-selector`]:Object.assign(Object.assign({},Ee(Se)),je(Se)),[`${Ze}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},ge.vS),{[`> ${Ge}-typography`]:{display:"inline"}}),[`${Ze}-selection-placeholder`]:Object.assign(Object.assign({},ge.vS),{flex:1,color:Se.colorTextPlaceholder,pointerEvents:"none"}),[`${Ze}-arrow`]:Object.assign(Object.assign({},(0,ge.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Je,height:Se.fontSizeIcon,marginTop:Se.calc(Se.fontSizeIcon).mul(-1).div(2).equal(),color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${Se.motionDurationSlow} ease`,[at]:{verticalAlign:"top",transition:`transform ${Se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ze}-suffix)`]:{pointerEvents:"auto"}},[`${Ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ze}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Ze}-prefix`]:{flex:"none",marginInlineEnd:Se.selectAffixPadding},[`${Ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Je,zIndex:1,display:"inline-block",width:Se.fontSizeIcon,height:Se.fontSizeIcon,marginTop:Se.calc(Se.fontSizeIcon).mul(-1).div(2).equal(),color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${Se.motionDurationMid} ease, opacity ${Se.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Se.colorTextTertiary}},[`&:hover ${Ze}-clear`]:{opacity:1,background:Se.colorBgBase,borderRadius:"50%"}}),[`${Ze}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Ze}-has-feedback`]:{[`${Ze}-clear`]:{insetInlineEnd:Se.calc(Je).add(Se.fontSize).add(Se.paddingXS).equal()}}}}}},Le=Se=>{const{componentCls:Ge}=Se;return[{[Ge]:{[`&${Ge}-in-form-item`]:{width:"100%"}}},ke(Se),ne(Se),(0,ee.ZP)(Se),oe(Se),{[`${Ge}-rtl`]:{direction:"rtl"}},(0,gt.c)(Se,{borderElCls:`${Ge}-selector`,focusElCls:`${Ge}-focused`})]};var Ae=(0,a.I$)("Select",(Se,Ge)=>{let{rootPrefixCls:Ze}=Ge;const Je=(0,Te.mergeToken)(Se,{rootPrefixCls:Ze,inputPaddingHorizontalBase:Se.calc(Se.paddingSM).sub(1).equal(),multipleSelectItemHeight:Se.multipleItemHeight,selectHeight:Se.controlHeight});return[Le(Je),Ce(Je)]},re,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{_z:function(){return z},gp:function(){return Te}});var ge=Ie(36237),gt=Ie(63356),a=Ie(51636);const Te=ee=>{const{multipleSelectItemHeight:le,paddingXXS:x,lineWidth:ne,INTERNAL_FIXED_ITEM_MARGIN:re}=ee,ae=ee.max(ee.calc(x).sub(ne).equal(),0),se=ee.max(ee.calc(ae).sub(re).equal(),0);return{basePadding:ae,containerPadding:se,itemHeight:(0,ge.unit)(le),itemLineHeight:(0,ge.unit)(ee.calc(le).sub(ee.calc(ee.lineWidth).mul(2)).equal())}},be=ee=>{const{multipleSelectItemHeight:le,selectHeight:x,lineWidth:ne}=ee;return ee.calc(x).sub(le).div(2).sub(ne).equal()},z=ee=>{const{componentCls:le,iconCls:x,borderRadiusSM:ne,motionDurationSlow:re,paddingXS:ae,multipleItemColorDisabled:se,multipleItemBorderColorDisabled:ce,colorIcon:pe,colorIconHover:me,INTERNAL_FIXED_ITEM_MARGIN:he}=ee;return{[`${le}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${le}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:he,borderRadius:ne,cursor:"default",transition:`font-size ${re}, line-height ${re}, height ${re}`,marginInlineEnd:ee.calc(he).mul(2).equal(),paddingInlineStart:ae,paddingInlineEnd:ee.calc(ae).div(2).equal(),[`${le}-disabled&`]:{color:se,borderColor:ce,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ee.calc(ae).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,gt.Ro)()),{display:"inline-flex",alignItems:"center",color:pe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${x}`]:{verticalAlign:"-0.2em"},"&:hover":{color:me}})}}}},E=(ee,le)=>{const{componentCls:x,INTERNAL_FIXED_ITEM_MARGIN:ne}=ee,re=`${x}-selection-overflow`,ae=ee.multipleSelectItemHeight,se=be(ee),ce=le?`${x}-${le}`:"",pe=Te(ee);return{[`${x}-multiple${ce}`]:Object.assign(Object.assign({},z(ee)),{[`${x}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:pe.basePadding,paddingBlock:pe.containerPadding,borderRadius:ee.borderRadius,[`${x}-disabled&`]:{background:ee.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,ge.unit)(ne)} 0`,lineHeight:(0,ge.unit)(ae),visibility:"hidden",content:'"\\a0"'}},[`${x}-selection-item`]:{height:pe.itemHeight,lineHeight:(0,ge.unit)(pe.itemLineHeight)},[`${x}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,ge.unit)(ae),marginBlock:ne}},[`${x}-prefix`]:{marginInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(pe.basePadding).equal()},[`${re}-item + ${re}-item,
|
|
|
${x}-prefix + ${x}-selection-wrap
|
|
|
`]:{[`${x}-selection-search`]:{marginInlineStart:0},[`${x}-selection-placeholder`]:{insetInlineStart:0}},[`${re}-item-suffix`]:{minHeight:pe.itemHeight,marginBlock:ne},[`${x}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(se).equal(),"\n &-input,\n &-mirror\n ":{height:ae,fontFamily:ee.fontFamily,lineHeight:(0,ge.unit)(ae),transition:`all ${ee.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${x}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ee.calc(ee.inputPaddingHorizontalBase).sub(pe.basePadding).equal(),insetInlineEnd:ee.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ee.motionDurationSlow}`}})}};function ie(ee,le){const{componentCls:x}=ee,ne=le?`${x}-${le}`:"",re={[`${x}-multiple${ne}`]:{fontSize:ee.fontSize,[`${x}-selector`]:{[`${x}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${x}-show-arrow ${x}-selector,
|
|
|
&${x}-allow-clear ${x}-selector
|
|
|
`]:{paddingInlineEnd:ee.calc(ee.fontSizeIcon).add(ee.controlPaddingHorizontal).equal()}}};return[E(ee,le),re]}const oe=ee=>{const{componentCls:le}=ee,x=(0,a.mergeToken)(ee,{selectHeight:ee.controlHeightSM,multipleSelectItemHeight:ee.multipleItemHeightSM,borderRadius:ee.borderRadiusSM,borderRadiusSM:ee.borderRadiusXS}),ne=(0,a.mergeToken)(ee,{fontSize:ee.fontSizeLG,selectHeight:ee.controlHeightLG,multipleSelectItemHeight:ee.multipleItemHeightLG,borderRadius:ee.borderRadiusLG,borderRadiusSM:ee.borderRadius});return[ie(ee),ie(x,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:ee.calc(ee.controlPaddingHorizontalSM).sub(ee.lineWidth).equal()},[`${le}-selection-search`]:{marginInlineStart:2}}},ie(ne,"lg")]};Dt.ZP=oe},68525:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});var ge=Ie(59301),gt=Ie(40001),a=Ie(19248),Te=Ie(99267),be=Ie(84105),z=Ie(58617),E=Ie(47472);function ie(oe){let{suffixIcon:ee,clearIcon:le,menuItemSelectedIcon:x,removeIcon:ne,loading:re,multiple:ae,hasFeedback:se,prefixCls:ce,showSuffixIcon:pe,feedbackIcon:me,showArrow:he,componentName:ye}=oe;const De=le!=null?le:ge.createElement(a.Z,null),Me=Ee=>ee===null&&!se&&!he?null:ge.createElement(ge.Fragment,null,pe!==!1&&Ee,se&&me);let Be=null;if(ee!==void 0)Be=Me(ee);else if(re)Be=Me(ge.createElement(z.Z,{spin:!0}));else{const Ee=`${ce}-suffix`;Be=je=>{let{open:ke,showSearch:Le}=je;return Me(ke&&Le?ge.createElement(E.Z,{className:Ee}):ge.createElement(be.Z,{className:Ee}))}}let Pe=null;x!==void 0?Pe=x:ae?Pe=ge.createElement(gt.Z,null):Pe=null;let Ce=null;return ne!==void 0?Ce=ne:Ce=ge.createElement(Te.Z,null),{clearIcon:De,suffixIcon:Be,itemIcon:Pe,removeIcon:Ce}}},90005:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ge}});function ge(gt,a){return a!==void 0?a:gt!==null}},11938:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{default:function(){return je}});var ge=Ie(59301),gt=Ie(40192),a=Ie(22703),Te=Ie(92310),be=Ie.n(Te),z=Ie(26112),E=Ie(48755),ie=Ie(458),ee=ke=>{const{value:Le,formatter:Ae,precision:Se,decimalSeparator:Ge,groupSeparator:Ze="",prefixCls:Je}=ke;let at;if(typeof Ae=="function")at=Ae(Le);else{const Fe=String(Le),Ke=Fe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ke||Fe==="-")at=Fe;else{const it=Ke[1];let rt=Ke[2]||"0",et=Ke[4]||"";rt=rt.replace(/\B(?=(\d{3})+(?!\d))/g,Ze),typeof Se=="number"&&(et=et.padEnd(Se,"0").slice(0,Se>0?Se:0)),et&&(et=`${Ge}${et}`),at=[ge.createElement("span",{key:"int",className:`${Je}-content-value-int`},it,rt),et&&ge.createElement("span",{key:"decimal",className:`${Je}-content-value-decimal`},et)]}}return ge.createElement("span",{className:`${Je}-content-value`},at)},le=Ie(63356),x=Ie(16931),ne=Ie(51636);const re=ke=>{const{componentCls:Le,marginXXS:Ae,padding:Se,colorTextDescription:Ge,titleFontSize:Ze,colorTextHeading:Je,contentFontSize:at,fontFamily:Fe}=ke;return{[Le]:Object.assign(Object.assign({},(0,le.Wf)(ke)),{[`${Le}-title`]:{marginBottom:Ae,color:Ge,fontSize:Ze},[`${Le}-skeleton`]:{paddingTop:Se},[`${Le}-content`]:{color:Je,fontSize:at,fontFamily:Fe,[`${Le}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Le}-content-prefix, ${Le}-content-suffix`]:{display:"inline-block"},[`${Le}-content-prefix`]:{marginInlineEnd:Ae},[`${Le}-content-suffix`]:{marginInlineStart:Ae}}})}},ae=ke=>{const{fontSizeHeading3:Le,fontSize:Ae}=ke;return{titleFontSize:Ae,contentFontSize:Le}};var se=(0,x.I$)("Statistic",ke=>{const Le=(0,ne.mergeToken)(ke,{});return[re(Le)]},ae),ce=function(ke,Le){var Ae={};for(var Se in ke)Object.prototype.hasOwnProperty.call(ke,Se)&&Le.indexOf(Se)<0&&(Ae[Se]=ke[Se]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Se=Object.getOwnPropertySymbols(ke);Ge<Se.length;Ge++)Le.indexOf(Se[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ke,Se[Ge])&&(Ae[Se[Ge]]=ke[Se[Ge]]);return Ae},me=ke=>{const{prefixCls:Le,className:Ae,rootClassName:Se,style:Ge,valueStyle:Ze,value:Je=0,title:at,valueRender:Fe,prefix:Ke,suffix:it,loading:rt=!1,formatter:et,precision:$e,decimalSeparator:Xe=".",groupSeparator:Ve=",",onMouseEnter:nt,onMouseLeave:Qe}=ke,ct=ce(ke,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:ot,direction:qe,className:_e,style:Re}=(0,E.dj)("statistic"),te=ot("statistic",Le),[de,Ne,ze]=se(te),xe=ge.createElement(ee,{decimalSeparator:Xe,groupSeparator:Ve,prefixCls:te,formatter:et,precision:$e,value:Je}),ve=be()(te,{[`${te}-rtl`]:qe==="rtl"},_e,Ae,Se,Ne,ze),Oe=(0,z.Z)(ct,{aria:!0,data:!0});return de(ge.createElement("div",Object.assign({},Oe,{className:ve,style:Object.assign(Object.assign({},Re),Ge),onMouseEnter:nt,onMouseLeave:Qe}),at&&ge.createElement("div",{className:`${te}-title`},at),ge.createElement(ie.Z,{paragraph:!1,loading:rt,className:`${te}-skeleton`},ge.createElement("div",{style:Ze,className:`${te}-content`},Ke&&ge.createElement("span",{className:`${te}-content-prefix`},Ke),Fe?Fe(xe):xe,it&&ge.createElement("span",{className:`${te}-content-suffix`},it)))))};const he=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function ye(ke,Le){let Ae=ke;const Se=/\[[^\]]*]/g,Ge=(Le.match(Se)||[]).map(Fe=>Fe.slice(1,-1)),Ze=Le.replace(Se,"[]"),Je=he.reduce((Fe,Ke)=>{let[it,rt]=Ke;if(Fe.includes(it)){const et=Math.floor(Ae/rt);return Ae-=et*rt,Fe.replace(new RegExp(`${it}+`,"g"),$e=>{const Xe=$e.length;return et.toString().padStart(Xe,"0")})}return Fe},Ze);let at=0;return Je.replace(Se,()=>{const Fe=Ge[at];return at+=1,Fe})}function De(ke,Le){const{format:Ae=""}=Le,Se=new Date(ke).getTime(),Ge=Date.now(),Ze=Math.max(Se-Ge,0);return ye(Ze,Ae)}var Me=function(ke,Le){var Ae={};for(var Se in ke)Object.prototype.hasOwnProperty.call(ke,Se)&&Le.indexOf(Se)<0&&(Ae[Se]=ke[Se]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Se=Object.getOwnPropertySymbols(ke);Ge<Se.length;Ge++)Le.indexOf(Se[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ke,Se[Ge])&&(Ae[Se[Ge]]=ke[Se[Ge]]);return Ae};const Be=1e3/30;function Pe(ke){return new Date(ke).getTime()}const Ce=ke=>{const{value:Le,format:Ae="HH:mm:ss",onChange:Se,onFinish:Ge}=ke,Ze=Me(ke,["value","format","onChange","onFinish"]),Je=(0,gt.Z)(),at=ge.useRef(null),Fe=()=>{Ge==null||Ge(),at.current&&(clearInterval(at.current),at.current=null)},Ke=()=>{const et=Pe(Le);et>=Date.now()&&(at.current=setInterval(()=>{Je(),Se==null||Se(et-Date.now()),et<Date.now()&&Fe()},Be))};ge.useEffect(()=>(Ke(),()=>{at.current&&(clearInterval(at.current),at.current=null)}),[Le]);const it=(et,$e)=>De(et,Object.assign(Object.assign({},$e),{format:Ae})),rt=et=>(0,a.Tm)(et,{title:void 0});return ge.createElement(me,Object.assign({},Ze,{value:Le,valueRender:rt,formatter:it}))};var Ee=ge.memo(Ce);me.Countdown=Ee;var je=me},58755:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return Ge}});var ge=Ie(59301),gt=Ie(58617),a=Ie(92310),Te=Ie.n(a),be=Ie(54476),z=Ie(20068),E=Ie(42978),ie=Ie(75931),oe=Ie(18929),ee=Ie(10228),le=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],x=ge.forwardRef(function(Ze,Je){var at,Fe=Ze.prefixCls,Ke=Fe===void 0?"rc-switch":Fe,it=Ze.className,rt=Ze.checked,et=Ze.defaultChecked,$e=Ze.disabled,Xe=Ze.loadingIcon,Ve=Ze.checkedChildren,nt=Ze.unCheckedChildren,Qe=Ze.onClick,ct=Ze.onChange,ot=Ze.onKeyDown,qe=(0,ie.Z)(Ze,le),_e=(0,oe.Z)(!1,{value:rt,defaultValue:et}),Re=(0,E.Z)(_e,2),te=Re[0],de=Re[1];function Ne(Oe,We){var Ue=te;return $e||(Ue=Oe,de(Ue),ct==null||ct(Ue,We)),Ue}function ze(Oe){Oe.which===ee.Z.LEFT?Ne(!1,Oe):Oe.which===ee.Z.RIGHT&&Ne(!0,Oe),ot==null||ot(Oe)}function xe(Oe){var We=Ne(!te,Oe);Qe==null||Qe(We,Oe)}var ve=Te()(Ke,it,(at={},(0,z.Z)(at,"".concat(Ke,"-checked"),te),(0,z.Z)(at,"".concat(Ke,"-disabled"),$e),at));return ge.createElement("button",(0,be.Z)({},qe,{type:"button",role:"switch","aria-checked":te,disabled:$e,className:ve,ref:Je,onKeyDown:ze,onClick:xe}),Xe,ge.createElement("span",{className:"".concat(Ke,"-inner")},ge.createElement("span",{className:"".concat(Ke,"-inner-checked")},Ve),ge.createElement("span",{className:"".concat(Ke,"-inner-unchecked")},nt)))});x.displayName="Switch";var ne=x,re=Ie(12919),ae=Ie(48755),se=Ie(2171),ce=Ie(31756),pe=Ie(36237),me=Ie(17835),he=Ie(63356),ye=Ie(16931),De=Ie(51636);const Me=Ze=>{const{componentCls:Je,trackHeightSM:at,trackPadding:Fe,trackMinWidthSM:Ke,innerMinMarginSM:it,innerMaxMarginSM:rt,handleSizeSM:et,calc:$e}=Ze,Xe=`${Je}-inner`,Ve=(0,pe.unit)($e(et).add($e(Fe).mul(2)).equal()),nt=(0,pe.unit)($e(rt).mul(2).equal());return{[Je]:{[`&${Je}-small`]:{minWidth:Ke,height:at,lineHeight:(0,pe.unit)(at),[`${Je}-inner`]:{paddingInlineStart:rt,paddingInlineEnd:it,[`${Xe}-checked, ${Xe}-unchecked`]:{minHeight:at},[`${Xe}-checked`]:{marginInlineStart:`calc(-100% + ${Ve} - ${nt})`,marginInlineEnd:`calc(100% - ${Ve} + ${nt})`},[`${Xe}-unchecked`]:{marginTop:$e(at).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Je}-handle`]:{width:et,height:et},[`${Je}-loading-icon`]:{top:$e($e(et).sub(Ze.switchLoadingIconSize)).div(2).equal(),fontSize:Ze.switchLoadingIconSize},[`&${Je}-checked`]:{[`${Je}-inner`]:{paddingInlineStart:it,paddingInlineEnd:rt,[`${Xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Xe}-unchecked`]:{marginInlineStart:`calc(100% - ${Ve} + ${nt})`,marginInlineEnd:`calc(-100% + ${Ve} - ${nt})`}},[`${Je}-handle`]:{insetInlineStart:`calc(100% - ${(0,pe.unit)($e(et).add(Fe).equal())})`}},[`&:not(${Je}-disabled):active`]:{[`&:not(${Je}-checked) ${Xe}`]:{[`${Xe}-unchecked`]:{marginInlineStart:$e(Ze.marginXXS).div(2).equal(),marginInlineEnd:$e(Ze.marginXXS).mul(-1).div(2).equal()}},[`&${Je}-checked ${Xe}`]:{[`${Xe}-checked`]:{marginInlineStart:$e(Ze.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:$e(Ze.marginXXS).div(2).equal()}}}}}}},Be=Ze=>{const{componentCls:Je,handleSize:at,calc:Fe}=Ze;return{[Je]:{[`${Je}-loading-icon${Ze.iconCls}`]:{position:"relative",top:Fe(Fe(at).sub(Ze.fontSize)).div(2).equal(),color:Ze.switchLoadingIconColor,verticalAlign:"top"},[`&${Je}-checked ${Je}-loading-icon`]:{color:Ze.switchColor}}}},Pe=Ze=>{const{componentCls:Je,trackPadding:at,handleBg:Fe,handleShadow:Ke,handleSize:it,calc:rt}=Ze,et=`${Je}-handle`;return{[Je]:{[et]:{position:"absolute",top:at,insetInlineStart:at,width:it,height:it,transition:`all ${Ze.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Fe,borderRadius:rt(it).div(2).equal(),boxShadow:Ke,transition:`all ${Ze.switchDuration} ease-in-out`,content:'""'}},[`&${Je}-checked ${et}`]:{insetInlineStart:`calc(100% - ${(0,pe.unit)(rt(it).add(at).equal())})`},[`&:not(${Je}-disabled):active`]:{[`${et}::before`]:{insetInlineEnd:Ze.switchHandleActiveInset,insetInlineStart:0},[`&${Je}-checked ${et}::before`]:{insetInlineEnd:0,insetInlineStart:Ze.switchHandleActiveInset}}}}},Ce=Ze=>{const{componentCls:Je,trackHeight:at,trackPadding:Fe,innerMinMargin:Ke,innerMaxMargin:it,handleSize:rt,calc:et}=Ze,$e=`${Je}-inner`,Xe=(0,pe.unit)(et(rt).add(et(Fe).mul(2)).equal()),Ve=(0,pe.unit)(et(it).mul(2).equal());return{[Je]:{[$e]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:it,paddingInlineEnd:Ke,transition:`padding-inline-start ${Ze.switchDuration} ease-in-out, padding-inline-end ${Ze.switchDuration} ease-in-out`,[`${$e}-checked, ${$e}-unchecked`]:{display:"block",color:Ze.colorTextLightSolid,fontSize:Ze.fontSizeSM,transition:`margin-inline-start ${Ze.switchDuration} ease-in-out, margin-inline-end ${Ze.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:at},[`${$e}-checked`]:{marginInlineStart:`calc(-100% + ${Xe} - ${Ve})`,marginInlineEnd:`calc(100% - ${Xe} + ${Ve})`},[`${$e}-unchecked`]:{marginTop:et(at).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Je}-checked ${$e}`]:{paddingInlineStart:Ke,paddingInlineEnd:it,[`${$e}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${$e}-unchecked`]:{marginInlineStart:`calc(100% - ${Xe} + ${Ve})`,marginInlineEnd:`calc(-100% + ${Xe} - ${Ve})`}},[`&:not(${Je}-disabled):active`]:{[`&:not(${Je}-checked) ${$e}`]:{[`${$e}-unchecked`]:{marginInlineStart:et(Fe).mul(2).equal(),marginInlineEnd:et(Fe).mul(-1).mul(2).equal()}},[`&${Je}-checked ${$e}`]:{[`${$e}-checked`]:{marginInlineStart:et(Fe).mul(-1).mul(2).equal(),marginInlineEnd:et(Fe).mul(2).equal()}}}}}},Ee=Ze=>{const{componentCls:Je,trackHeight:at,trackMinWidth:Fe}=Ze;return{[Je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(Ze)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Fe,height:at,lineHeight:(0,pe.unit)(at),verticalAlign:"middle",background:Ze.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ze.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Je}-disabled)`]:{background:Ze.colorTextTertiary}}),(0,he.Qy)(Ze)),{[`&${Je}-checked`]:{background:Ze.switchColor,[`&:hover:not(${Je}-disabled)`]:{background:Ze.colorPrimaryHover}},[`&${Je}-loading, &${Je}-disabled`]:{cursor:"not-allowed",opacity:Ze.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Je}-rtl`]:{direction:"rtl"}})}},je=Ze=>{const{fontSize:Je,lineHeight:at,controlHeight:Fe,colorWhite:Ke}=Ze,it=Je*at,rt=Fe/2,et=2,$e=it-et*2,Xe=rt-et*2;return{trackHeight:it,trackHeightSM:rt,trackMinWidth:$e*2+et*4,trackMinWidthSM:Xe*2+et*2,trackPadding:et,handleBg:Ke,handleSize:$e,handleSizeSM:Xe,handleShadow:`0 2px 4px 0 ${new me.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:$e/2,innerMaxMargin:$e+et+et*2,innerMinMarginSM:Xe/2,innerMaxMarginSM:Xe+et+et*2}};var ke=(0,ye.I$)("Switch",Ze=>{const Je=(0,De.mergeToken)(Ze,{switchDuration:Ze.motionDurationMid,switchColor:Ze.colorPrimary,switchDisabledOpacity:Ze.opacityLoading,switchLoadingIconSize:Ze.calc(Ze.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Ze.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ee(Je),Ce(Je),Pe(Je),Be(Je),Me(Je)]},je),Le=function(Ze,Je){var at={};for(var Fe in Ze)Object.prototype.hasOwnProperty.call(Ze,Fe)&&Je.indexOf(Fe)<0&&(at[Fe]=Ze[Fe]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Fe=Object.getOwnPropertySymbols(Ze);Ke<Fe.length;Ke++)Je.indexOf(Fe[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Fe[Ke])&&(at[Fe[Ke]]=Ze[Fe[Ke]]);return at};const Se=ge.forwardRef((Ze,Je)=>{const{prefixCls:at,size:Fe,disabled:Ke,loading:it,className:rt,rootClassName:et,style:$e,checked:Xe,value:Ve,defaultChecked:nt,defaultValue:Qe,onChange:ct}=Ze,ot=Le(Ze,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[qe,_e]=(0,oe.Z)(!1,{value:Xe!=null?Xe:Ve,defaultValue:nt!=null?nt:Qe}),{getPrefixCls:Re,direction:te,switch:de}=ge.useContext(ae.E_),Ne=ge.useContext(se.Z),ze=(Ke!=null?Ke:Ne)||it,xe=Re("switch",at),ve=ge.createElement("div",{className:`${xe}-handle`},it&&ge.createElement(gt.Z,{className:`${xe}-loading-icon`})),[Oe,We,Ue]=ke(xe),Ye=(0,ce.Z)(Fe),st=Te()(de==null?void 0:de.className,{[`${xe}-small`]:Ye==="small",[`${xe}-loading`]:it,[`${xe}-rtl`]:te==="rtl"},rt,et,We,Ue),lt=Object.assign(Object.assign({},de==null?void 0:de.style),$e),ft=function(){_e(arguments.length<=0?void 0:arguments[0]),ct==null||ct.apply(void 0,arguments)};return Oe(ge.createElement(re.Z,{component:"Switch"},ge.createElement(ne,Object.assign({},ot,{checked:qe,onChange:ft,prefixCls:xe,className:st,style:lt,disabled:ze,ref:Je,loadingIcon:ve}))))});Se.__ANT_SWITCH=!0;var Ge=Se},18287:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{default:function(){return et}});var ge=Ie(3741),gt=Ie(94480),a=Ie(59301),Te=Ie(52671),be=Ie(8657),z=Ie(54476),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ie=E,oe=Ie(7657),ee=function(Xe,Ve){return a.createElement(oe.Z,(0,z.Z)({},Xe,{ref:Ve,icon:ie}))},le=a.forwardRef(ee),x=le,ne=Ie(92310),re=Ie.n(ne),ae=Ie(82661),se=Ie(34061),ce=Ie(48755),pe=Ie(56082),me=Ie(86641),he=Ie(57700),ye=Ie(12425);const De=4;function Me($e){const{dropPosition:Xe,dropLevelOffset:Ve,prefixCls:nt,indent:Qe,direction:ct="ltr"}=$e,ot=ct==="ltr"?"left":"right",qe=ct==="ltr"?"right":"left",_e={[ot]:-Ve*Qe+De,[qe]:0};switch(Xe){case-1:_e.top=-3;break;case 1:_e.bottom=-3;break;default:_e.bottom=-3,_e[ot]=Qe+De;break}return a.createElement("div",{style:_e,className:`${nt}-drop-indicator`})}var Be=Me,Pe=Ie(85278),Ee=a.forwardRef(($e,Xe)=>{var Ve;const{getPrefixCls:nt,direction:Qe,virtual:ct,tree:ot}=a.useContext(ce.E_),{prefixCls:qe,className:_e,showIcon:Re=!1,showLine:te,switcherIcon:de,switcherLoadingIcon:Ne,blockNode:ze=!1,children:xe,checkable:ve=!1,selectable:Oe=!0,draggable:We,motion:Ue,style:Ye}=$e,st=nt("tree",qe),lt=nt(),ft=Ue!=null?Ue:Object.assign(Object.assign({},(0,me.Z)(lt)),{motionAppear:!1}),Tt=Object.assign(Object.assign({},$e),{checkable:ve,selectable:Oe,showIcon:Re,motion:ft,blockNode:ze,showLine:!!te,dropIndicatorRender:Be}),[St,Ot,yt]=(0,ye.ZP)(st),[,Mt]=(0,he.ZP)(),Et=Mt.paddingXS/2+(((Ve=Mt.Tree)===null||Ve===void 0?void 0:Ve.titleHeight)||Mt.controlHeightSM),xt=a.useMemo(()=>{if(!We)return!1;let At={};switch(typeof We){case"function":At.nodeDraggable=We;break;case"object":At=Object.assign({},We);break;default:break}return At.icon!==!1&&(At.icon=At.icon||a.createElement(pe.Z,null)),At},[We]),jt=At=>a.createElement(Pe.Z,{prefixCls:st,switcherIcon:de,switcherLoadingIcon:Ne,treeNodeProps:At,showLine:te});return St(a.createElement(ge.ZP,Object.assign({itemHeight:Et,ref:Xe,virtual:ct},Tt,{style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Ye),prefixCls:st,className:re()({[`${st}-icon-hide`]:!Re,[`${st}-block-node`]:ze,[`${st}-unselectable`]:!Oe,[`${st}-rtl`]:Qe==="rtl"},ot==null?void 0:ot.className,_e,Ot,yt),direction:Qe,checkable:ve&&a.createElement("span",{className:`${st}-checkbox-inner`}),selectable:Oe,switcherIcon:jt,draggable:xt}),xe))});const je=0,ke=1,Le=2;function Ae($e,Xe,Ve){const{key:nt,children:Qe}=Ve;function ct(ot){const qe=ot[nt],_e=ot[Qe];Xe(qe,ot)!==!1&&Ae(_e||[],Xe,Ve)}$e.forEach(ct)}function Se($e){let{treeData:Xe,expandedKeys:Ve,startKey:nt,endKey:Qe,fieldNames:ct}=$e;const ot=[];let qe=je;if(nt&&nt===Qe)return[nt];if(!nt||!Qe)return[];function _e(Re){return Re===nt||Re===Qe}return Ae(Xe,Re=>{if(qe===Le)return!1;if(_e(Re)){if(ot.push(Re),qe===je)qe=ke;else if(qe===ke)return qe=Le,!1}else qe===ke&&ot.push(Re);return Ve.includes(Re)},(0,se.w$)(ct)),ot}function Ge($e,Xe,Ve){const nt=(0,gt.Z)(Xe),Qe=[];return Ae($e,(ct,ot)=>{const qe=nt.indexOf(ct);return qe!==-1&&(Qe.push(ot),nt.splice(qe,1)),!!nt.length},(0,se.w$)(Ve)),Qe}var Ze=function($e,Xe){var Ve={};for(var nt in $e)Object.prototype.hasOwnProperty.call($e,nt)&&Xe.indexOf(nt)<0&&(Ve[nt]=$e[nt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,nt=Object.getOwnPropertySymbols($e);Qe<nt.length;Qe++)Xe.indexOf(nt[Qe])<0&&Object.prototype.propertyIsEnumerable.call($e,nt[Qe])&&(Ve[nt[Qe]]=$e[nt[Qe]]);return Ve};function Je($e){const{isLeaf:Xe,expanded:Ve}=$e;return Xe?a.createElement(Te.Z,null):Ve?a.createElement(be.Z,null):a.createElement(x,null)}function at($e){let{treeData:Xe,children:Ve}=$e;return Xe||(0,se.zn)(Ve)}const Fe=($e,Xe)=>{var{defaultExpandAll:Ve,defaultExpandParent:nt,defaultExpandedKeys:Qe}=$e,ct=Ze($e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const ot=a.useRef(null),qe=a.useRef(null),_e=()=>{const{keyEntities:St}=(0,se.I8)(at(ct));let Ot;return Ve?Ot=Object.keys(St):nt?Ot=(0,ae.r7)(ct.expandedKeys||Qe||[],St):Ot=ct.expandedKeys||Qe||[],Ot},[Re,te]=a.useState(ct.selectedKeys||ct.defaultSelectedKeys||[]),[de,Ne]=a.useState(()=>_e());a.useEffect(()=>{"selectedKeys"in ct&&te(ct.selectedKeys)},[ct.selectedKeys]),a.useEffect(()=>{"expandedKeys"in ct&&Ne(ct.expandedKeys)},[ct.expandedKeys]);const ze=(St,Ot)=>{var yt;return"expandedKeys"in ct||Ne(St),(yt=ct.onExpand)===null||yt===void 0?void 0:yt.call(ct,St,Ot)},xe=(St,Ot)=>{var yt;const{multiple:Mt,fieldNames:Et}=ct,{node:xt,nativeEvent:jt}=Ot,{key:At=""}=xt,ht=at(ct),Ct=Object.assign(Object.assign({},Ot),{selected:!0}),$t=(jt==null?void 0:jt.ctrlKey)||(jt==null?void 0:jt.metaKey),Xt=jt==null?void 0:jt.shiftKey;let vt;Mt&&$t?(vt=St,ot.current=At,qe.current=vt,Ct.selectedNodes=Ge(ht,vt,Et)):Mt&&Xt?(vt=Array.from(new Set([].concat((0,gt.Z)(qe.current||[]),(0,gt.Z)(Se({treeData:ht,expandedKeys:de,startKey:At,endKey:ot.current,fieldNames:Et}))))),Ct.selectedNodes=Ge(ht,vt,Et)):(vt=[At],ot.current=At,qe.current=vt,Ct.selectedNodes=Ge(ht,vt,Et)),(yt=ct.onSelect)===null||yt===void 0||yt.call(ct,vt,Ct),"selectedKeys"in ct||te(vt)},{getPrefixCls:ve,direction:Oe}=a.useContext(ce.E_),{prefixCls:We,className:Ue,showIcon:Ye=!0,expandAction:st="click"}=ct,lt=Ze(ct,["prefixCls","className","showIcon","expandAction"]),ft=ve("tree",We),Tt=re()(`${ft}-directory`,{[`${ft}-directory-rtl`]:Oe==="rtl"},Ue);return a.createElement(Ee,Object.assign({icon:Je,ref:Xe,blockNode:!0},lt,{showIcon:Ye,expandAction:st,prefixCls:ft,className:Tt,expandedKeys:de,selectedKeys:Re,onSelect:xe,onExpand:ze}))};var it=a.forwardRef(Fe);const rt=Ee;rt.DirectoryTree=it,rt.TreeNode=ge.OF;var et=rt},12425:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{ZP:function(){return ae},Yk:function(){return x},TM:function(){return ne}});var ge=Ie(36237),gt=Ie(36170),a=Ie(63356),Te=Ie(34961),be=Ie(51636),z=Ie(16931);const E=se=>{let{treeCls:ce,treeNodeCls:pe,directoryNodeSelectedBg:me,directoryNodeSelectedColor:he,motionDurationMid:ye,borderRadius:De,controlItemBgHover:Me}=se;return{[`${ce}${ce}-directory ${pe}`]:{[`${ce}-node-content-wrapper`]:{position:"static",[`> *:not(${ce}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${ye}`,content:'""',borderRadius:De},"&:hover:before":{background:Me}},[`${ce}-switcher, ${ce}-checkbox, ${ce}-draggable-icon`]:{zIndex:1},"&-selected":{[`${ce}-switcher, ${ce}-draggable-icon`]:{color:he},[`${ce}-node-content-wrapper`]:{color:he,background:"transparent","&:before, &:hover:before":{background:me}}}}}},ie=new ge.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),oe=(se,ce)=>({[`.${se}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ce.motionDurationSlow}`}}}),ee=(se,ce)=>({[`.${se}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ce.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,ge.unit)(ce.lineWidthBold)} solid ${ce.colorPrimary}`,borderRadius:"50%",content:'""'}}}),le=(se,ce)=>{const{treeCls:pe,treeNodeCls:me,treeNodePadding:he,titleHeight:ye,indentSize:De,nodeSelectedBg:Me,nodeHoverBg:Be,colorTextQuaternary:Pe,controlItemBgActiveDisabled:Ce}=ce;return{[pe]:Object.assign(Object.assign({},(0,a.Wf)(ce)),{background:ce.colorBgContainer,borderRadius:ce.borderRadius,transition:`background-color ${ce.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${pe}-rtl ${pe}-switcher_close ${pe}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${pe}-active-focused)`]:Object.assign({},(0,a.oN)(ce)),[`${pe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${pe}-block-node`]:{[`${pe}-list-holder-inner`]:{alignItems:"stretch",[`${pe}-node-content-wrapper`]:{flex:"auto"},[`${me}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${ce.colorPrimary}`,opacity:0,animationName:ie,animationDuration:ce.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:ce.borderRadius}}},[me]:{display:"flex",alignItems:"flex-start",marginBottom:he,lineHeight:(0,ge.unit)(ye),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:he},[`&-disabled ${pe}-node-content-wrapper`]:{color:ce.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${pe}-checkbox-disabled + ${pe}-node-selected,&${me}-disabled${me}-selected ${pe}-node-content-wrapper`]:{backgroundColor:Ce},[`${pe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${me}-disabled)`]:{[`${pe}-node-content-wrapper`]:{"&:hover":{color:ce.nodeHoverColor}}},[`&-active ${pe}-node-content-wrapper`]:{background:ce.controlItemBgHover},[`&:not(${me}-disabled).filter-node ${pe}-title`]:{color:ce.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${pe}-draggable-icon`]:{flexShrink:0,width:ye,textAlign:"center",visibility:"visible",color:Pe},[`&${me}-disabled ${pe}-draggable-icon`]:{visibility:"hidden"}}},[`${pe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:De}},[`${pe}-draggable-icon`]:{visibility:"hidden"},[`${pe}-switcher, ${pe}-checkbox`]:{marginInlineEnd:ce.calc(ce.calc(ye).sub(ce.controlInteractiveSize)).div(2).equal()},[`${pe}-switcher`]:Object.assign(Object.assign({},oe(se,ce)),{position:"relative",flex:"none",alignSelf:"stretch",width:ye,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${ce.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:ye,height:ye,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:ce.borderRadius,transition:`all ${ce.motionDurationSlow}`},[`&:not(${pe}-switcher-noop):hover:before`]:{backgroundColor:ce.colorBgTextHover},[`&_close ${pe}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:ce.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ce.calc(ye).div(2).equal(),bottom:ce.calc(he).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${ce.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ce.calc(ce.calc(ye).div(2).equal()).mul(.8).equal(),height:ce.calc(ye).div(2).equal(),borderBottom:`1px solid ${ce.colorBorder}`,content:'""'}}}),[`${pe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:ye,paddingBlock:0,paddingInline:ce.paddingXS,background:"transparent",borderRadius:ce.borderRadius,cursor:"pointer",transition:`all ${ce.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ee(se,ce)),{"&:hover":{backgroundColor:Be},[`&${pe}-node-selected`]:{color:ce.nodeSelectedColor,backgroundColor:Me},[`${pe}-iconEle`]:{display:"inline-block",width:ye,height:ye,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${pe}-unselectable ${pe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${me}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${ce.colorPrimary}`},"&-show-line":{[`${pe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ce.calc(ye).div(2).equal(),bottom:ce.calc(he).mul(-1).equal(),borderInlineEnd:`1px solid ${ce.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${pe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${me}-leaf-last ${pe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,ge.unit)(ce.calc(ye).div(2).equal())} !important`}})}},x=function(se,ce){let pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const me=`.${se}`,he=`${me}-treenode`,ye=ce.calc(ce.paddingXS).div(2).equal(),De=(0,be.mergeToken)(ce,{treeCls:me,treeNodeCls:he,treeNodePadding:ye});return[le(se,De),pe&&E(De)].filter(Boolean)},ne=se=>{const{controlHeightSM:ce,controlItemBgHover:pe,controlItemBgActive:me}=se,he=ce;return{titleHeight:he,indentSize:he,nodeHoverBg:pe,nodeHoverColor:se.colorText,nodeSelectedBg:me,nodeSelectedColor:se.colorText}},re=se=>{const{colorTextLightSolid:ce,colorPrimary:pe}=se;return Object.assign(Object.assign({},ne(se)),{directoryNodeSelectedColor:ce,directoryNodeSelectedBg:pe})};var ae=(0,z.I$)("Tree",(se,ce)=>{let{prefixCls:pe}=ce;return[{[se.componentCls]:(0,gt.C2)(`${pe}-checkbox`,se)},x(pe,se),(0,Te.Z)(se)]},re)},85278:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ce}});var ge=Ie(59301),gt=Ie(54476),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Te=a,be=Ie(7657),z=function(me,he){return ge.createElement(be.Z,(0,gt.Z)({},me,{ref:he,icon:Te}))},E=ge.forwardRef(z),ie=E,oe=Ie(52671),ee=Ie(58617),le=Ie(15075),x=Ie(43531),ne=Ie(92310),re=Ie.n(ne),ae=Ie(22703),ce=pe=>{const{prefixCls:me,switcherIcon:he,treeNodeProps:ye,showLine:De,switcherLoadingIcon:Me}=pe,{isLeaf:Be,expanded:Pe,loading:Ce}=ye;if(Ce)return ge.isValidElement(Me)?Me:ge.createElement(ee.Z,{className:`${me}-switcher-loading-icon`});let Ee;if(De&&typeof De=="object"&&(Ee=De.showLeafIcon),Be){if(!De)return null;if(typeof Ee!="boolean"&&Ee){const Le=typeof Ee=="function"?Ee(ye):Ee,Ae=`${me}-switcher-line-custom-icon`;return ge.isValidElement(Le)?(0,ae.Tm)(Le,{className:re()(Le.props.className||"",Ae)}):Le}return Ee?ge.createElement(oe.Z,{className:`${me}-switcher-line-icon`}):ge.createElement("span",{className:`${me}-switcher-leaf-line`})}const je=`${me}-switcher-icon`,ke=typeof he=="function"?he(ye):he;return ge.isValidElement(ke)?(0,ae.Tm)(ke,{className:re()(ke.props.className||"",je)}):ke!==void 0?ke:De?Pe?ge.createElement(le.Z,{className:`${me}-switcher-line-icon`}):ge.createElement(x.Z,{className:`${me}-switcher-line-icon`}):ge.createElement(ie,{className:je})}},94968:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{default:function(){return Rt}});var ge=Ie(59301),gt=Ie(94480),a=Ie(4676),Te=Ie(92310),be=Ie.n(Te),z=Ie(54476),E=Ie(67732),ie=Ie(83652),oe=Ie(31226),ee=Ie(42403),le=Ie(158),x=Ie(20068),ne=Ie(33885),re=Ie(75931),ae=Ie(76190),se=Ie(75044),ce=Ie(3202),pe=Ie(26112),me=Ie(48736),he=function(pt,Lt){if(pt&&Lt){var zt=Array.isArray(Lt)?Lt:Lt.split(","),Gt=pt.name||"",Ht=pt.type||"",Nt=Ht.replace(/\/.*$/,"");return zt.some(function(Bt){var Ut=Bt.trim();if(/^\*(\/\*)?$/.test(Bt))return!0;if(Ut.charAt(0)==="."){var cr=Gt.toLowerCase(),lr=Ut.toLowerCase(),dr=[lr];return(lr===".jpg"||lr===".jpeg")&&(dr=[".jpg",".jpeg"]),dr.some(function(Br){return cr.endsWith(Br)})}return/\/\*$/.test(Ut)?Nt===Ut.replace(/\/.*$/,""):Ht===Ut?!0:/^\w+$/.test(Ut)?((0,me.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ut,"'.Skip for check.")),!0):!1})}return!0};function ye(pt,Lt){var zt="cannot ".concat(pt.method," ").concat(pt.action," ").concat(Lt.status,"'"),Gt=new Error(zt);return Gt.status=Lt.status,Gt.method=pt.method,Gt.url=pt.action,Gt}function De(pt){var Lt=pt.responseText||pt.response;if(!Lt)return Lt;try{return JSON.parse(Lt)}catch(zt){return Lt}}function Me(pt){var Lt=new XMLHttpRequest;pt.onProgress&&Lt.upload&&(Lt.upload.onprogress=function(Nt){Nt.total>0&&(Nt.percent=Nt.loaded/Nt.total*100),pt.onProgress(Nt)});var zt=new FormData;pt.data&&Object.keys(pt.data).forEach(function(Ht){var Nt=pt.data[Ht];if(Array.isArray(Nt)){Nt.forEach(function(Bt){zt.append("".concat(Ht,"[]"),Bt)});return}zt.append(Ht,Nt)}),pt.file instanceof Blob?zt.append(pt.filename,pt.file,pt.file.name):zt.append(pt.filename,pt.file),Lt.onerror=function(Nt){pt.onError(Nt)},Lt.onload=function(){return Lt.status<200||Lt.status>=300?pt.onError(ye(pt,Lt),De(Lt)):pt.onSuccess(De(Lt),Lt)},Lt.open(pt.method,pt.action,!0),pt.withCredentials&&"withCredentials"in Lt&&(Lt.withCredentials=!0);var Gt=pt.headers||{};return Gt["X-Requested-With"]!==null&&Lt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Gt).forEach(function(Ht){Gt[Ht]!==null&&Lt.setRequestHeader(Ht,Gt[Ht])}),Lt.send(zt),{abort:function(){Lt.abort()}}}var Be=function(){var pt=(0,ce.Z)((0,se.Z)().mark(function Lt(zt,Gt){var Ht,Nt,Bt,Ut,cr,lr,dr,Br;return(0,se.Z)().wrap(function($r){for(;;)switch($r.prev=$r.next){case 0:lr=function(){return lr=(0,ce.Z)((0,se.Z)().mark(function Dr(Rr){return(0,se.Z)().wrap(function(Qr){for(;;)switch(Qr.prev=Qr.next){case 0:return Qr.abrupt("return",new Promise(function(Vr){Rr.file(function(Jr){Gt(Jr)?(Rr.fullPath&&!Jr.webkitRelativePath&&(Object.defineProperties(Jr,{webkitRelativePath:{writable:!0}}),Jr.webkitRelativePath=Rr.fullPath.replace(/^\//,""),Object.defineProperties(Jr,{webkitRelativePath:{writable:!1}})),Vr(Jr)):Vr(null)})}));case 1:case"end":return Qr.stop()}},Dr)})),lr.apply(this,arguments)},cr=function(Dr){return lr.apply(this,arguments)},Ut=function(){return Ut=(0,ce.Z)((0,se.Z)().mark(function Dr(Rr){var Ur,Qr,Vr,Jr,Pr;return(0,se.Z)().wrap(function(Gr){for(;;)switch(Gr.prev=Gr.next){case 0:Ur=Rr.createReader(),Qr=[];case 2:return Gr.next=5,new Promise(function(fn){Ur.readEntries(fn,function(){return fn([])})});case 5:if(Vr=Gr.sent,Jr=Vr.length,Jr){Gr.next=9;break}return Gr.abrupt("break",12);case 9:for(Pr=0;Pr<Jr;Pr++)Qr.push(Vr[Pr]);Gr.next=2;break;case 12:return Gr.abrupt("return",Qr);case 13:case"end":return Gr.stop()}},Dr)})),Ut.apply(this,arguments)},Bt=function(Dr){return Ut.apply(this,arguments)},Ht=[],Nt=[],zt.forEach(function(Nr){return Nt.push(Nr.webkitGetAsEntry())}),dr=function(){var Nr=(0,ce.Z)((0,se.Z)().mark(function Dr(Rr,Ur){var Qr,Vr;return(0,se.Z)().wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:if(Rr){Pr.next=2;break}return Pr.abrupt("return");case 2:if(Rr.path=Ur||"",!Rr.isFile){Pr.next=10;break}return Pr.next=6,cr(Rr);case 6:Qr=Pr.sent,Qr&&Ht.push(Qr),Pr.next=15;break;case 10:if(!Rr.isDirectory){Pr.next=15;break}return Pr.next=13,Bt(Rr);case 13:Vr=Pr.sent,Nt.push.apply(Nt,(0,gt.Z)(Vr));case 15:case"end":return Pr.stop()}},Dr)}));return function(Rr,Ur){return Nr.apply(this,arguments)}}(),Br=0;case 9:if(!(Br<Nt.length)){$r.next=15;break}return $r.next=12,dr(Nt[Br]);case 12:Br++,$r.next=9;break;case 15:return $r.abrupt("return",Ht);case 16:case"end":return $r.stop()}},Lt)}));return function(zt,Gt){return pt.apply(this,arguments)}}(),Pe=Be,Ce=+new Date,Ee=0;function je(){return"rc-upload-".concat(Ce,"-").concat(++Ee)}var ke=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Le=function(pt){(0,ee.Z)(zt,pt);var Lt=(0,le.Z)(zt);function zt(){var Gt;(0,E.Z)(this,zt);for(var Ht=arguments.length,Nt=new Array(Ht),Bt=0;Bt<Ht;Bt++)Nt[Bt]=arguments[Bt];return Gt=Lt.call.apply(Lt,[this].concat(Nt)),(0,x.Z)((0,oe.Z)(Gt),"state",{uid:je()}),(0,x.Z)((0,oe.Z)(Gt),"reqs",{}),(0,x.Z)((0,oe.Z)(Gt),"fileInput",void 0),(0,x.Z)((0,oe.Z)(Gt),"_isMounted",void 0),(0,x.Z)((0,oe.Z)(Gt),"onChange",function(Ut){var cr=Gt.props,lr=cr.accept,dr=cr.directory,Br=Ut.target.files,Wr=(0,gt.Z)(Br).filter(function($r){return!dr||he($r,lr)});Gt.uploadFiles(Wr),Gt.reset()}),(0,x.Z)((0,oe.Z)(Gt),"onClick",function(Ut){var cr=Gt.fileInput;if(cr){var lr=Ut.target,dr=Gt.props.onClick;if(lr&&lr.tagName==="BUTTON"){var Br=cr.parentNode;Br.focus(),lr.blur()}cr.click(),dr&&dr(Ut)}}),(0,x.Z)((0,oe.Z)(Gt),"onKeyDown",function(Ut){Ut.key==="Enter"&&Gt.onClick(Ut)}),(0,x.Z)((0,oe.Z)(Gt),"onFileDrop",function(){var Ut=(0,ce.Z)((0,se.Z)().mark(function cr(lr){var dr,Br,Wr;return(0,se.Z)().wrap(function(Nr){for(;;)switch(Nr.prev=Nr.next){case 0:if(dr=Gt.props.multiple,lr.preventDefault(),lr.type!=="dragover"){Nr.next=4;break}return Nr.abrupt("return");case 4:if(!Gt.props.directory){Nr.next=11;break}return Nr.next=7,Pe(Array.prototype.slice.call(lr.dataTransfer.items),function(Dr){return he(Dr,Gt.props.accept)});case 7:Br=Nr.sent,Gt.uploadFiles(Br),Nr.next=14;break;case 11:Wr=(0,gt.Z)(lr.dataTransfer.files).filter(function(Dr){return he(Dr,Gt.props.accept)}),dr===!1&&(Wr=Wr.slice(0,1)),Gt.uploadFiles(Wr);case 14:case"end":return Nr.stop()}},cr)}));return function(cr){return Ut.apply(this,arguments)}}()),(0,x.Z)((0,oe.Z)(Gt),"uploadFiles",function(Ut){var cr=(0,gt.Z)(Ut),lr=cr.map(function(dr){return dr.uid=je(),Gt.processFile(dr,cr)});Promise.all(lr).then(function(dr){var Br=Gt.props.onBatchStart;Br==null||Br(dr.map(function(Wr){var $r=Wr.origin,Nr=Wr.parsedFile;return{file:$r,parsedFile:Nr}})),dr.filter(function(Wr){return Wr.parsedFile!==null}).forEach(function(Wr){Gt.post(Wr)})})}),(0,x.Z)((0,oe.Z)(Gt),"processFile",function(){var Ut=(0,ce.Z)((0,se.Z)().mark(function cr(lr,dr){var Br,Wr,$r,Nr,Dr,Rr,Ur,Qr,Vr;return(0,se.Z)().wrap(function(Pr){for(;;)switch(Pr.prev=Pr.next){case 0:if(Br=Gt.props.beforeUpload,Wr=lr,!Br){Pr.next=14;break}return Pr.prev=3,Pr.next=6,Br(lr,dr);case 6:Wr=Pr.sent,Pr.next=12;break;case 9:Pr.prev=9,Pr.t0=Pr.catch(3),Wr=!1;case 12:if(Wr!==!1){Pr.next=14;break}return Pr.abrupt("return",{origin:lr,parsedFile:null,action:null,data:null});case 14:if($r=Gt.props.action,typeof $r!="function"){Pr.next=21;break}return Pr.next=18,$r(lr);case 18:Nr=Pr.sent,Pr.next=22;break;case 21:Nr=$r;case 22:if(Dr=Gt.props.data,typeof Dr!="function"){Pr.next=29;break}return Pr.next=26,Dr(lr);case 26:Rr=Pr.sent,Pr.next=30;break;case 29:Rr=Dr;case 30:return Ur=((0,ae.Z)(Wr)==="object"||typeof Wr=="string")&&Wr?Wr:lr,Ur instanceof File?Qr=Ur:Qr=new File([Ur],lr.name,{type:lr.type}),Vr=Qr,Vr.uid=lr.uid,Pr.abrupt("return",{origin:lr,data:Rr,parsedFile:Vr,action:Nr});case 35:case"end":return Pr.stop()}},cr,null,[[3,9]])}));return function(cr,lr){return Ut.apply(this,arguments)}}()),(0,x.Z)((0,oe.Z)(Gt),"saveFileInput",function(Ut){Gt.fileInput=Ut}),Gt}return(0,ie.Z)(zt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ht){var Nt=this,Bt=Ht.data,Ut=Ht.origin,cr=Ht.action,lr=Ht.parsedFile;if(this._isMounted){var dr=this.props,Br=dr.onStart,Wr=dr.customRequest,$r=dr.name,Nr=dr.headers,Dr=dr.withCredentials,Rr=dr.method,Ur=Ut.uid,Qr=Wr||Me,Vr={action:cr,filename:$r,data:Bt,file:lr,headers:Nr,withCredentials:Dr,method:Rr||"post",onProgress:function(Pr){var tn=Nt.props.onProgress;tn==null||tn(Pr,lr)},onSuccess:function(Pr,tn){var Gr=Nt.props.onSuccess;Gr==null||Gr(Pr,lr,tn),delete Nt.reqs[Ur]},onError:function(Pr,tn){var Gr=Nt.props.onError;Gr==null||Gr(Pr,tn,lr),delete Nt.reqs[Ur]}};Br(Ut),this.reqs[Ur]=Qr(Vr)}}},{key:"reset",value:function(){this.setState({uid:je()})}},{key:"abort",value:function(Ht){var Nt=this.reqs;if(Ht){var Bt=Ht.uid?Ht.uid:Ht;Nt[Bt]&&Nt[Bt].abort&&Nt[Bt].abort(),delete Nt[Bt]}else Object.keys(Nt).forEach(function(Ut){Nt[Ut]&&Nt[Ut].abort&&Nt[Ut].abort(),delete Nt[Ut]})}},{key:"render",value:function(){var Ht=this.props,Nt=Ht.component,Bt=Ht.prefixCls,Ut=Ht.className,cr=Ht.classNames,lr=cr===void 0?{}:cr,dr=Ht.disabled,Br=Ht.id,Wr=Ht.name,$r=Ht.style,Nr=Ht.styles,Dr=Nr===void 0?{}:Nr,Rr=Ht.multiple,Ur=Ht.accept,Qr=Ht.capture,Vr=Ht.children,Jr=Ht.directory,Pr=Ht.openFileDialogOnClick,tn=Ht.onMouseEnter,Gr=Ht.onMouseLeave,fn=Ht.hasControlInside,pn=(0,re.Z)(Ht,ke),ln=be()((0,x.Z)((0,x.Z)((0,x.Z)({},Bt,!0),"".concat(Bt,"-disabled"),dr),Ut,Ut)),un=Jr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},yn=dr?{}:{onClick:Pr?this.onClick:function(){},onKeyDown:Pr?this.onKeyDown:function(){},onMouseEnter:tn,onMouseLeave:Gr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:fn?void 0:"0"};return ge.createElement(Nt,(0,z.Z)({},yn,{className:ln,role:fn?void 0:"button",style:$r}),ge.createElement("input",(0,z.Z)({},(0,pe.Z)(pn,{aria:!0,data:!0}),{id:Br,name:Wr,disabled:dr,type:"file",ref:this.saveFileInput,onClick:function(dn){return dn.stopPropagation()},key:this.state.uid,style:(0,ne.Z)({display:"none"},Dr.input),className:lr.input,accept:Ur},un,{multiple:Rr,onChange:this.onChange},Qr!=null?{capture:Qr}:{})),Vr)}}]),zt}(ge.Component),Ae=Le;function Se(){}var Ge=function(pt){(0,ee.Z)(zt,pt);var Lt=(0,le.Z)(zt);function zt(){var Gt;(0,E.Z)(this,zt);for(var Ht=arguments.length,Nt=new Array(Ht),Bt=0;Bt<Ht;Bt++)Nt[Bt]=arguments[Bt];return Gt=Lt.call.apply(Lt,[this].concat(Nt)),(0,x.Z)((0,oe.Z)(Gt),"uploader",void 0),(0,x.Z)((0,oe.Z)(Gt),"saveUploader",function(Ut){Gt.uploader=Ut}),Gt}return(0,ie.Z)(zt,[{key:"abort",value:function(Ht){this.uploader.abort(Ht)}},{key:"render",value:function(){return ge.createElement(Ae,(0,z.Z)({},this.props,{ref:this.saveUploader}))}}]),zt}(ge.Component);(0,x.Z)(Ge,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Se,onError:Se,onSuccess:Se,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Ze=Ge,Je=Ze,at=Ie(18929),Fe=Ie(48755),Ke=Ie(2171),it=Ie(9017),rt=Ie(85981),et=Ie(63356),$e=Ie(34961),Xe=Ie(16931),Ve=Ie(51636),nt=Ie(36237),ct=pt=>{const{componentCls:Lt,iconCls:zt}=pt;return{[`${Lt}-wrapper`]:{[`${Lt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:pt.colorFillAlter,border:`${(0,nt.unit)(pt.lineWidth)} dashed ${pt.colorBorder}`,borderRadius:pt.borderRadiusLG,cursor:"pointer",transition:`border-color ${pt.motionDurationSlow}`,[Lt]:{padding:pt.padding},[`${Lt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:pt.borderRadiusLG,"&:focus-visible":{outline:`${(0,nt.unit)(pt.lineWidthFocus)} solid ${pt.colorPrimaryBorder}`}},[`${Lt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
|
&:not(${Lt}-disabled):hover,
|
|
|
&-hover:not(${Lt}-disabled)
|
|
|
`]:{borderColor:pt.colorPrimaryHover},[`p${Lt}-drag-icon`]:{marginBottom:pt.margin,[zt]:{color:pt.colorPrimary,fontSize:pt.uploadThumbnailSize}},[`p${Lt}-text`]:{margin:`0 0 ${(0,nt.unit)(pt.marginXXS)}`,color:pt.colorTextHeading,fontSize:pt.fontSizeLG},[`p${Lt}-hint`]:{color:pt.colorTextDescription,fontSize:pt.fontSize},[`&${Lt}-disabled`]:{[`p${Lt}-drag-icon ${zt},
|
|
|
p${Lt}-text,
|
|
|
p${Lt}-hint
|
|
|
`]:{color:pt.colorTextDisabled}}}}}},qe=pt=>{const{componentCls:Lt,iconCls:zt,fontSize:Gt,lineHeight:Ht,calc:Nt}=pt,Bt=`${Lt}-list-item`,Ut=`${Bt}-actions`,cr=`${Bt}-action`;return{[`${Lt}-wrapper`]:{[`${Lt}-list`]:Object.assign(Object.assign({},(0,et.dF)()),{lineHeight:pt.lineHeight,[Bt]:{position:"relative",height:Nt(pt.lineHeight).mul(Gt).equal(),marginTop:pt.marginXS,fontSize:Gt,display:"flex",alignItems:"center",transition:`background-color ${pt.motionDurationSlow}`,borderRadius:pt.borderRadiusSM,"&:hover":{backgroundColor:pt.controlItemBgHover},[`${Bt}-name`]:Object.assign(Object.assign({},et.vS),{padding:`0 ${(0,nt.unit)(pt.paddingXS)}`,lineHeight:Ht,flex:"auto",transition:`all ${pt.motionDurationSlow}`}),[Ut]:{whiteSpace:"nowrap",[cr]:{opacity:0},[zt]:{color:pt.actionsColor,transition:`all ${pt.motionDurationSlow}`},[`
|
|
|
${cr}:focus-visible,
|
|
|
&.picture ${cr}
|
|
|
`]:{opacity:1}},[`${Lt}-icon ${zt}`]:{color:pt.colorTextDescription,fontSize:Gt},[`${Bt}-progress`]:{position:"absolute",bottom:pt.calc(pt.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Nt(Gt).add(pt.paddingXS).equal(),fontSize:Gt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Bt}:hover ${cr}`]:{opacity:1},[`${Bt}-error`]:{color:pt.colorError,[`${Bt}-name, ${Lt}-icon ${zt}`]:{color:pt.colorError},[Ut]:{[`${zt}, ${zt}:hover`]:{color:pt.colorError},[cr]:{opacity:1}}},[`${Lt}-list-item-container`]:{transition:`opacity ${pt.motionDurationSlow}, height ${pt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},_e=Ie(99495),te=pt=>{const{componentCls:Lt}=pt,zt=new nt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:pt.calc(pt.marginXS).div(-2).equal()}}),Gt=new nt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:pt.calc(pt.marginXS).div(-2).equal()}}),Ht=`${Lt}-animate-inline`;return[{[`${Lt}-wrapper`]:{[`${Ht}-appear, ${Ht}-enter, ${Ht}-leave`]:{animationDuration:pt.motionDurationSlow,animationTimingFunction:pt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ht}-appear, ${Ht}-enter`]:{animationName:zt},[`${Ht}-leave`]:{animationName:Gt}}},{[`${Lt}-wrapper`]:(0,_e.J$)(pt)},zt,Gt]},de=Ie(68361);const Ne=pt=>{const{componentCls:Lt,iconCls:zt,uploadThumbnailSize:Gt,uploadProgressOffset:Ht,calc:Nt}=pt,Bt=`${Lt}-list`,Ut=`${Bt}-item`;return{[`${Lt}-wrapper`]:{[`
|
|
|
${Bt}${Bt}-picture,
|
|
|
${Bt}${Bt}-picture-card,
|
|
|
${Bt}${Bt}-picture-circle
|
|
|
`]:{[Ut]:{position:"relative",height:Nt(Gt).add(Nt(pt.lineWidth).mul(2)).add(Nt(pt.paddingXS).mul(2)).equal(),padding:pt.paddingXS,border:`${(0,nt.unit)(pt.lineWidth)} ${pt.lineType} ${pt.colorBorder}`,borderRadius:pt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ut}-thumbnail`]:Object.assign(Object.assign({},et.vS),{width:Gt,height:Gt,lineHeight:(0,nt.unit)(Nt(Gt).add(pt.paddingSM).equal()),textAlign:"center",flex:"none",[zt]:{fontSize:pt.fontSizeHeading2,color:pt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ut}-progress`]:{bottom:Ht,width:`calc(100% - ${(0,nt.unit)(Nt(pt.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Nt(Gt).add(pt.paddingXS).equal()}},[`${Ut}-error`]:{borderColor:pt.colorError,[`${Ut}-thumbnail ${zt}`]:{[`svg path[fill='${de.blue[0]}']`]:{fill:pt.colorErrorBg},[`svg path[fill='${de.blue.primary}']`]:{fill:pt.colorError}}},[`${Ut}-uploading`]:{borderStyle:"dashed",[`${Ut}-name`]:{marginBottom:Ht}}},[`${Bt}${Bt}-picture-circle ${Ut}`]:{[`&, &::before, ${Ut}-thumbnail`]:{borderRadius:"50%"}}}}},ze=pt=>{const{componentCls:Lt,iconCls:zt,fontSizeLG:Gt,colorTextLightSolid:Ht,calc:Nt}=pt,Bt=`${Lt}-list`,Ut=`${Bt}-item`,cr=pt.uploadPicCardSize;return{[`
|
|
|
${Lt}-wrapper${Lt}-picture-card-wrapper,
|
|
|
${Lt}-wrapper${Lt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,et.dF)()),{display:"block",[`${Lt}${Lt}-select`]:{width:cr,height:cr,textAlign:"center",verticalAlign:"top",backgroundColor:pt.colorFillAlter,border:`${(0,nt.unit)(pt.lineWidth)} dashed ${pt.colorBorder}`,borderRadius:pt.borderRadiusLG,cursor:"pointer",transition:`border-color ${pt.motionDurationSlow}`,[`> ${Lt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Lt}-disabled):hover`]:{borderColor:pt.colorPrimary}},[`${Bt}${Bt}-picture-card, ${Bt}${Bt}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:pt.marginXS,marginInlineEnd:pt.marginXS}},"@supports (gap: 1px)":{gap:pt.marginXS},[`${Bt}-item-container`]:{display:"inline-block",width:cr,height:cr,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Ut]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,nt.unit)(Nt(pt.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,nt.unit)(Nt(pt.paddingXS).mul(2).equal())})`,backgroundColor:pt.colorBgMask,opacity:0,transition:`all ${pt.motionDurationSlow}`,content:'" "'}},[`${Ut}:hover`]:{[`&::before, ${Ut}-actions`]:{opacity:1}},[`${Ut}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${pt.motionDurationSlow}`,[`
|
|
|
${zt}-eye,
|
|
|
${zt}-download,
|
|
|
${zt}-delete
|
|
|
`]:{zIndex:10,width:Gt,margin:`0 ${(0,nt.unit)(pt.marginXXS)}`,fontSize:Gt,cursor:"pointer",transition:`all ${pt.motionDurationSlow}`,color:Ht,"&:hover":{color:Ht},svg:{verticalAlign:"baseline"}}},[`${Ut}-thumbnail, ${Ut}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ut}-name`]:{display:"none",textAlign:"center"},[`${Ut}-file + ${Ut}-name`]:{position:"absolute",bottom:pt.margin,display:"block",width:`calc(100% - ${(0,nt.unit)(Nt(pt.paddingXS).mul(2).equal())})`},[`${Ut}-uploading`]:{[`&${Ut}`]:{backgroundColor:pt.colorFillAlter},[`&::before, ${zt}-eye, ${zt}-download, ${zt}-delete`]:{display:"none"}},[`${Ut}-progress`]:{bottom:pt.marginXL,width:`calc(100% - ${(0,nt.unit)(Nt(pt.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Lt}-wrapper${Lt}-picture-circle-wrapper`]:{[`${Lt}${Lt}-select`]:{borderRadius:"50%"}}}};var ve=pt=>{const{componentCls:Lt}=pt;return{[`${Lt}-rtl`]:{direction:"rtl"}}};const Oe=pt=>{const{componentCls:Lt,colorTextDisabled:zt}=pt;return{[`${Lt}-wrapper`]:Object.assign(Object.assign({},(0,et.Wf)(pt)),{[Lt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Lt}-select`]:{display:"inline-block"},[`${Lt}-hidden`]:{display:"none"},[`${Lt}-disabled`]:{color:zt,cursor:"not-allowed"}})}},We=pt=>({actionsColor:pt.colorTextDescription});var Ue=(0,Xe.I$)("Upload",pt=>{const{fontSizeHeading3:Lt,fontHeight:zt,lineWidth:Gt,controlHeightLG:Ht,calc:Nt}=pt,Bt=(0,Ve.mergeToken)(pt,{uploadThumbnailSize:Nt(Lt).mul(2).equal(),uploadProgressOffset:Nt(Nt(zt).div(2)).add(Gt).equal(),uploadPicCardSize:Nt(Ht).mul(2.55).equal()});return[Oe(Bt),ct(Bt),Ne(Bt),ze(Bt),qe(Bt),te(Bt),ve(Bt),(0,$e.Z)(Bt)]},We),Ye={icon:function(Lt,zt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:zt}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Lt}}]}},name:"file",theme:"twotone"},st=Ye,lt=Ie(7657),ft=function(Lt,zt){return ge.createElement(lt.Z,(0,z.Z)({},Lt,{ref:zt,icon:st}))},Tt=ge.forwardRef(ft),St=Tt,Ot=Ie(58617),yt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Mt=yt,Et=function(Lt,zt){return ge.createElement(lt.Z,(0,z.Z)({},Lt,{ref:zt,icon:Mt}))},xt=ge.forwardRef(Et),jt=xt,At={icon:function(Lt,zt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Lt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:zt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:zt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:zt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Lt}}]}},name:"picture",theme:"twotone"},ht=At,Ct=function(Lt,zt){return ge.createElement(lt.Z,(0,z.Z)({},Lt,{ref:zt,icon:ht}))},$t=ge.forwardRef(Ct),Xt=$t,vt=Ie(77900),Pt=Ie(2738),_t=Ie(40192),Kt=Ie(86641),er=Ie(22703),sr=Ie(7939);function yr(pt){return Object.assign(Object.assign({},pt),{lastModified:pt.lastModified,lastModifiedDate:pt.lastModifiedDate,name:pt.name,size:pt.size,type:pt.type,uid:pt.uid,percent:0,originFileObj:pt})}function xr(pt,Lt){const zt=(0,gt.Z)(Lt),Gt=zt.findIndex(Ht=>{let{uid:Nt}=Ht;return Nt===pt.uid});return Gt===-1?zt.push(pt):zt[Gt]=pt,zt}function ur(pt,Lt){const zt=pt.uid!==void 0?"uid":"name";return Lt.filter(Gt=>Gt[zt]===pt[zt])[0]}function br(pt,Lt){const zt=pt.uid!==void 0?"uid":"name",Gt=Lt.filter(Ht=>Ht[zt]!==pt[zt]);return Gt.length===Lt.length?null:Gt}const or=function(){const Lt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Gt=Lt[Lt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Gt)||[""])[0]},fr=pt=>pt.indexOf("image/")===0,Jt=pt=>{if(pt.type&&!pt.thumbUrl)return fr(pt.type);const Lt=pt.thumbUrl||pt.url||"",zt=or(Lt);return/^data:image\//.test(Lt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(zt)?!0:!(/^data:/.test(Lt)||zt)},Qt=200;function Vt(pt){return new Promise(Lt=>{if(!pt.type||!fr(pt.type)){Lt("");return}const zt=document.createElement("canvas");zt.width=Qt,zt.height=Qt,zt.style.cssText=`position: fixed; left: 0; top: 0; width: ${Qt}px; height: ${Qt}px; z-index: 9999; display: none;`,document.body.appendChild(zt);const Gt=zt.getContext("2d"),Ht=new Image;if(Ht.onload=()=>{const{width:Nt,height:Bt}=Ht;let Ut=Qt,cr=Qt,lr=0,dr=0;Nt>Bt?(cr=Bt*(Qt/Nt),dr=-(cr-Ut)/2):(Ut=Nt*(Qt/Bt),lr=-(Ut-cr)/2),Gt.drawImage(Ht,lr,dr,Ut,cr);const Br=zt.toDataURL();document.body.removeChild(zt),window.URL.revokeObjectURL(Ht.src),Lt(Br)},Ht.crossOrigin="anonymous",pt.type.startsWith("image/svg+xml")){const Nt=new FileReader;Nt.onload=()=>{Nt.result&&typeof Nt.result=="string"&&(Ht.src=Nt.result)},Nt.readAsDataURL(pt)}else if(pt.type.startsWith("image/gif")){const Nt=new FileReader;Nt.onload=()=>{Nt.result&&Lt(Nt.result)},Nt.readAsDataURL(pt)}else Ht.src=window.URL.createObjectURL(pt)})}var rr=Ie(26227),ar=Ie(41464),vr=Ie(15277),hr=Ie(89787),Ir=Ie(25399),Lr=ge.forwardRef((pt,Lt)=>{let{prefixCls:zt,className:Gt,style:Ht,locale:Nt,listType:Bt,file:Ut,items:cr,progress:lr,iconRender:dr,actionIconRender:Br,itemRender:Wr,isImgUrl:$r,showPreviewIcon:Nr,showRemoveIcon:Dr,showDownloadIcon:Rr,previewIcon:Ur,removeIcon:Qr,downloadIcon:Vr,extra:Jr,onPreview:Pr,onDownload:tn,onClose:Gr}=pt;var fn,pn;const{status:ln}=Ut,[un,yn]=ge.useState(ln);ge.useEffect(()=>{ln!=="removed"&&yn(ln)},[ln]);const[sn,dn]=ge.useState(!1);ge.useEffect(()=>{const mr=setTimeout(()=>{dn(!0)},300);return()=>{clearTimeout(mr)}},[]);const en=dr(Ut);let mn=ge.createElement("div",{className:`${zt}-icon`},en);if(Bt==="picture"||Bt==="picture-card"||Bt==="picture-circle")if(un==="uploading"||!Ut.thumbUrl&&!Ut.url){const mr=be()(`${zt}-list-item-thumbnail`,{[`${zt}-list-item-file`]:un!=="uploading"});mn=ge.createElement("div",{className:mr},en)}else{const mr=$r!=null&&$r(Ut)?ge.createElement("img",{src:Ut.thumbUrl||Ut.url,alt:Ut.name,className:`${zt}-list-item-image`,crossOrigin:Ut.crossOrigin}):en,kr=be()(`${zt}-list-item-thumbnail`,{[`${zt}-list-item-file`]:$r&&!$r(Ut)});mn=ge.createElement("a",{className:kr,onClick:Fr=>Pr(Ut,Fr),href:Ut.url||Ut.thumbUrl,target:"_blank",rel:"noopener noreferrer"},mr)}const bn=be()(`${zt}-list-item`,`${zt}-list-item-${un}`),_n=typeof Ut.linkProps=="string"?JSON.parse(Ut.linkProps):Ut.linkProps,En=(typeof Dr=="function"?Dr(Ut):Dr)?Br((typeof Qr=="function"?Qr(Ut):Qr)||ge.createElement(rr.Z,null),()=>Gr(Ut),zt,Nt.removeFile,!0):null,Mn=(typeof Rr=="function"?Rr(Ut):Rr)&&un==="done"?Br((typeof Vr=="function"?Vr(Ut):Vr)||ge.createElement(ar.Z,null),()=>tn(Ut),zt,Nt.downloadFile):null,On=Bt!=="picture-card"&&Bt!=="picture-circle"&&ge.createElement("span",{key:"download-delete",className:be()(`${zt}-list-item-actions`,{picture:Bt==="picture"})},Mn,En),jn=typeof Jr=="function"?Jr(Ut):Jr,on=jn&&ge.createElement("span",{className:`${zt}-list-item-extra`},jn),nn=be()(`${zt}-list-item-name`),qr=Ut.url?ge.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:nn,title:Ut.name},_n,{href:Ut.url,onClick:mr=>Pr(Ut,mr)}),Ut.name,on):ge.createElement("span",{key:"view",className:nn,onClick:mr=>Pr(Ut,mr),title:Ut.name},Ut.name,on),gr=(typeof Nr=="function"?Nr(Ut):Nr)&&(Ut.url||Ut.thumbUrl)?ge.createElement("a",{href:Ut.url||Ut.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:mr=>Pr(Ut,mr),title:Nt.previewFile},typeof Ur=="function"?Ur(Ut):Ur||ge.createElement(vr.Z,null)):null,Ar=(Bt==="picture-card"||Bt==="picture-circle")&&un!=="uploading"&&ge.createElement("span",{className:`${zt}-list-item-actions`},gr,un==="done"&&Mn,En),{getPrefixCls:Cr}=ge.useContext(Fe.E_),pr=Cr(),zr=ge.createElement("div",{className:bn},mn,qr,On,Ar,sn&&ge.createElement(vt.default,{motionName:`${pr}-fade`,visible:un==="uploading",motionDeadline:2e3},mr=>{let{className:kr}=mr;const Fr="percent"in Ut?ge.createElement(hr.Z,Object.assign({},lr,{type:"line",percent:Ut.percent,"aria-label":Ut["aria-label"],"aria-labelledby":Ut["aria-labelledby"]})):null;return ge.createElement("div",{className:be()(`${zt}-list-item-progress`,kr)},Fr)})),Kr=Ut.response&&typeof Ut.response=="string"?Ut.response:((fn=Ut.error)===null||fn===void 0?void 0:fn.statusText)||((pn=Ut.error)===null||pn===void 0?void 0:pn.message)||Nt.uploadError,wr=un==="error"?ge.createElement(Ir.Z,{title:Kr,getPopupContainer:mr=>mr.parentNode},zr):zr;return ge.createElement("div",{className:be()(`${zt}-list-item-container`,Gt),style:Ht,ref:Lt},Wr?Wr(wr,Ut,cr,{download:tn.bind(null,Ut),preview:Pr.bind(null,Ut),remove:Gr.bind(null,Ut)}):wr)});const Er=(pt,Lt)=>{const{listType:zt="text",previewFile:Gt=Vt,onPreview:Ht,onDownload:Nt,onRemove:Bt,locale:Ut,iconRender:cr,isImageUrl:lr=Jt,prefixCls:dr,items:Br=[],showPreviewIcon:Wr=!0,showRemoveIcon:$r=!0,showDownloadIcon:Nr=!1,removeIcon:Dr,previewIcon:Rr,downloadIcon:Ur,extra:Qr,progress:Vr={size:[-1,2],showInfo:!1},appendAction:Jr,appendActionVisible:Pr=!0,itemRender:tn,disabled:Gr}=pt,fn=(0,_t.Z)(),[pn,ln]=ge.useState(!1),un=["picture-card","picture-circle"].includes(zt);ge.useEffect(()=>{zt.startsWith("picture")&&(Br||[]).forEach(on=>{!(on.originFileObj instanceof File||on.originFileObj instanceof Blob)||on.thumbUrl!==void 0||(on.thumbUrl="",Gt==null||Gt(on.originFileObj).then(nn=>{on.thumbUrl=nn||"",fn()}))})},[zt,Br,Gt]),ge.useEffect(()=>{ln(!0)},[]);const yn=(on,nn)=>{if(Ht)return nn==null||nn.preventDefault(),Ht(on)},sn=on=>{typeof Nt=="function"?Nt(on):on.url&&window.open(on.url)},dn=on=>{Bt==null||Bt(on)},en=on=>{if(cr)return cr(on,zt);const nn=on.status==="uploading";if(zt.startsWith("picture")){const qr=zt==="picture"?ge.createElement(Ot.Z,null):Ut.uploading,gr=lr!=null&&lr(on)?ge.createElement(Xt,null):ge.createElement(St,null);return nn?qr:gr}return nn?ge.createElement(Ot.Z,null):ge.createElement(jt,null)},mn=(on,nn,qr,gr,Ar)=>{const Cr={type:"text",size:"small",title:gr,onClick:pr=>{var zr,Kr;nn(),ge.isValidElement(on)&&((Kr=(zr=on.props).onClick)===null||Kr===void 0||Kr.call(zr,pr))},className:`${qr}-list-item-action`};return Ar&&(Cr.disabled=Gr),ge.isValidElement(on)?ge.createElement(sr.ZP,Object.assign({},Cr,{icon:(0,er.Tm)(on,Object.assign(Object.assign({},on.props),{onClick:()=>{}}))})):ge.createElement(sr.ZP,Object.assign({},Cr),ge.createElement("span",null,on))};ge.useImperativeHandle(Lt,()=>({handlePreview:yn,handleDownload:sn}));const{getPrefixCls:bn}=ge.useContext(Fe.E_),_n=bn("upload",dr),En=bn(),Mn=be()(`${_n}-list`,`${_n}-list-${zt}`),On=ge.useMemo(()=>(0,Pt.Z)((0,Kt.Z)(En),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[En]),jn=Object.assign(Object.assign({},un?{}:On),{motionDeadline:2e3,motionName:`${_n}-${un?"animate-inline":"animate"}`,keys:(0,gt.Z)(Br.map(on=>({key:on.uid,file:on}))),motionAppear:pn});return ge.createElement("div",{className:Mn},ge.createElement(vt.CSSMotionList,Object.assign({},jn,{component:!1}),on=>{let{key:nn,file:qr,className:gr,style:Ar}=on;return ge.createElement(Lr,{key:nn,locale:Ut,prefixCls:_n,className:gr,style:Ar,file:qr,items:Br,progress:Vr,listType:zt,isImgUrl:lr,showPreviewIcon:Wr,showRemoveIcon:$r,showDownloadIcon:Nr,removeIcon:Dr,previewIcon:Rr,downloadIcon:Ur,extra:Qr,iconRender:en,actionIconRender:mn,itemRender:tn,onPreview:yn,onDownload:sn,onClose:dn})}),Jr&&ge.createElement(vt.default,Object.assign({},jn,{visible:Pr,forceRender:!0}),on=>{let{className:nn,style:qr}=on;return(0,er.Tm)(Jr,gr=>({className:be()(gr.className,nn),style:Object.assign(Object.assign(Object.assign({},qr),{pointerEvents:nn?"none":void 0}),gr.style)}))}))};var _r=ge.forwardRef(Er),qt=function(pt,Lt,zt,Gt){function Ht(Nt){return Nt instanceof zt?Nt:new zt(function(Bt){Bt(Nt)})}return new(zt||(zt=Promise))(function(Nt,Bt){function Ut(dr){try{lr(Gt.next(dr))}catch(Br){Bt(Br)}}function cr(dr){try{lr(Gt.throw(dr))}catch(Br){Bt(Br)}}function lr(dr){dr.done?Nt(dr.value):Ht(dr.value).then(Ut,cr)}lr((Gt=Gt.apply(pt,Lt||[])).next())})};const nr=`__LIST_IGNORE_${Date.now()}__`,jr=(pt,Lt)=>{const{fileList:zt,defaultFileList:Gt,onRemove:Ht,showUploadList:Nt=!0,listType:Bt="text",onPreview:Ut,onDownload:cr,onChange:lr,onDrop:dr,previewFile:Br,disabled:Wr,locale:$r,iconRender:Nr,isImageUrl:Dr,progress:Rr,prefixCls:Ur,className:Qr,type:Vr="select",children:Jr,style:Pr,itemRender:tn,maxCount:Gr,data:fn={},multiple:pn=!1,hasControlInside:ln=!0,action:un="",accept:yn="",supportServerRender:sn=!0,rootClassName:dn}=pt,en=ge.useContext(Ke.Z),mn=Wr!=null?Wr:en,[bn,_n]=(0,at.Z)(Gt||[],{value:zt,postState:xn=>xn!=null?xn:[]}),[En,Mn]=ge.useState("drop"),On=ge.useRef(null),jn=ge.useRef(null);ge.useMemo(()=>{const xn=Date.now();(zt||[]).forEach((Fn,$n)=>{!Fn.uid&&!Object.isFrozen(Fn)&&(Fn.uid=`__AUTO__${xn}_${$n}__`)})},[zt]);const on=(xn,Fn,$n)=>{let Sn=(0,gt.Z)(Fn),Nn=!1;Gr===1?Sn=Sn.slice(-1):Gr&&(Nn=Sn.length>Gr,Sn=Sn.slice(0,Gr)),(0,a.flushSync)(()=>{_n(Sn)});const Pn={file:xn,fileList:Sn};$n&&(Pn.event=$n),(!Nn||xn.status==="removed"||Sn.some(ui=>ui.uid===xn.uid))&&(0,a.flushSync)(()=>{lr==null||lr(Pn)})},nn=(xn,Fn)=>qt(void 0,void 0,void 0,function*(){const{beforeUpload:$n,transformFile:Sn}=pt;let Nn=xn;if($n){const Pn=yield $n(xn,Fn);if(Pn===!1)return!1;if(delete xn[nr],Pn===nr)return Object.defineProperty(xn,nr,{value:!0,configurable:!0}),!1;typeof Pn=="object"&&Pn&&(Nn=Pn)}return Sn&&(Nn=yield Sn(Nn)),Nn}),qr=xn=>{const Fn=xn.filter(Nn=>!Nn.file[nr]);if(!Fn.length)return;const $n=Fn.map(Nn=>yr(Nn.file));let Sn=(0,gt.Z)(bn);$n.forEach(Nn=>{Sn=xr(Nn,Sn)}),$n.forEach((Nn,Pn)=>{let ui=Nn;if(Fn[Pn].parsedFile)Nn.status="uploading";else{const{originFileObj:ji}=Nn;let di;try{di=new File([ji],ji.name,{type:ji.type})}catch(ri){di=new Blob([ji],{type:ji.type}),di.name=ji.name,di.lastModifiedDate=new Date,di.lastModified=new Date().getTime()}di.uid=Nn.uid,ui=di}on(ui,Sn)})},gr=(xn,Fn,$n)=>{try{typeof xn=="string"&&(xn=JSON.parse(xn))}catch(Pn){}if(!ur(Fn,bn))return;const Sn=yr(Fn);Sn.status="done",Sn.percent=100,Sn.response=xn,Sn.xhr=$n;const Nn=xr(Sn,bn);on(Sn,Nn)},Ar=(xn,Fn)=>{if(!ur(Fn,bn))return;const $n=yr(Fn);$n.status="uploading",$n.percent=xn.percent;const Sn=xr($n,bn);on($n,Sn,xn)},Cr=(xn,Fn,$n)=>{if(!ur($n,bn))return;const Sn=yr($n);Sn.error=xn,Sn.response=Fn,Sn.status="error";const Nn=xr(Sn,bn);on(Sn,Nn)},pr=xn=>{let Fn;Promise.resolve(typeof Ht=="function"?Ht(xn):Ht).then($n=>{var Sn;if($n===!1)return;const Nn=br(xn,bn);Nn&&(Fn=Object.assign(Object.assign({},xn),{status:"removed"}),bn==null||bn.forEach(Pn=>{const ui=Fn.uid!==void 0?"uid":"name";Pn[ui]===Fn[ui]&&!Object.isFrozen(Pn)&&(Pn.status="removed")}),(Sn=On.current)===null||Sn===void 0||Sn.abort(Fn),on(Fn,Nn))})},zr=xn=>{Mn(xn.type),xn.type==="drop"&&(dr==null||dr(xn))};ge.useImperativeHandle(Lt,()=>({onBatchStart:qr,onSuccess:gr,onProgress:Ar,onError:Cr,fileList:bn,upload:On.current,nativeElement:jn.current}));const{getPrefixCls:Kr,direction:wr,upload:mr}=ge.useContext(Fe.E_),kr=Kr("upload",Ur),Fr=Object.assign(Object.assign({onBatchStart:qr,onError:Cr,onProgress:Ar,onSuccess:gr},pt),{data:fn,multiple:pn,action:un,accept:yn,supportServerRender:sn,prefixCls:kr,disabled:mn,beforeUpload:nn,onChange:void 0,hasControlInside:ln});delete Fr.className,delete Fr.style,(!Jr||mn)&&delete Fr.id;const cn=`${kr}-wrapper`,[Dn,Tn,Bn]=Ue(kr,cn),[Rn]=(0,it.Z)("Upload",rt.Z.Upload),{showRemoveIcon:Ln,showPreviewIcon:Zn,showDownloadIcon:Wn,removeIcon:Vn,previewIcon:ti,downloadIcon:Ei,extra:Ni}=typeof Nt=="boolean"?{}:Nt,xi=typeof Ln=="undefined"?!mn:Ln,li=(xn,Fn)=>Nt?ge.createElement(_r,{prefixCls:kr,listType:Bt,items:bn,previewFile:Br,onPreview:Ut,onDownload:cr,onRemove:pr,showRemoveIcon:xi,showPreviewIcon:Zn,showDownloadIcon:Wn,removeIcon:Vn,previewIcon:ti,downloadIcon:Ei,iconRender:Nr,extra:Ni,locale:Object.assign(Object.assign({},Rn),$r),isImageUrl:Dr,progress:Rr,appendAction:xn,appendActionVisible:Fn,itemRender:tn,disabled:mn}):xn,Bi=be()(cn,Qr,dn,Tn,Bn,mr==null?void 0:mr.className,{[`${kr}-rtl`]:wr==="rtl",[`${kr}-picture-card-wrapper`]:Bt==="picture-card",[`${kr}-picture-circle-wrapper`]:Bt==="picture-circle"}),zn=Object.assign(Object.assign({},mr==null?void 0:mr.style),Pr);if(Vr==="drag"){const xn=be()(Tn,kr,`${kr}-drag`,{[`${kr}-drag-uploading`]:bn.some(Fn=>Fn.status==="uploading"),[`${kr}-drag-hover`]:En==="dragover",[`${kr}-disabled`]:mn,[`${kr}-rtl`]:wr==="rtl"});return Dn(ge.createElement("span",{className:Bi,ref:jn},ge.createElement("div",{className:xn,style:zn,onDrop:zr,onDragOver:zr,onDragLeave:zr},ge.createElement(Je,Object.assign({},Fr,{ref:On,className:`${kr}-btn`}),ge.createElement("div",{className:`${kr}-drag-container`},Jr))),li()))}const Ki=be()(kr,`${kr}-select`,{[`${kr}-disabled`]:mn,[`${kr}-hidden`]:!Jr}),qn=ge.createElement("div",{className:Ki},ge.createElement(Je,Object.assign({},Fr,{ref:On})));return Dn(Bt==="picture-card"||Bt==="picture-circle"?ge.createElement("span",{className:Bi,ref:jn},li(qn,!!Jr)):ge.createElement("span",{className:Bi,ref:jn},qn,li()))};var It=ge.forwardRef(jr),Ft=function(pt,Lt){var zt={};for(var Gt in pt)Object.prototype.hasOwnProperty.call(pt,Gt)&&Lt.indexOf(Gt)<0&&(zt[Gt]=pt[Gt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,Gt=Object.getOwnPropertySymbols(pt);Ht<Gt.length;Ht++)Lt.indexOf(Gt[Ht])<0&&Object.prototype.propertyIsEnumerable.call(pt,Gt[Ht])&&(zt[Gt[Ht]]=pt[Gt[Ht]]);return zt},kt=ge.forwardRef((pt,Lt)=>{var{style:zt,height:Gt,hasControlInside:Ht=!1}=pt,Nt=Ft(pt,["style","height","hasControlInside"]);return ge.createElement(It,Object.assign({ref:Lt,hasControlInside:Ht},Nt,{type:"drag",style:Object.assign(Object.assign({},zt),{height:Gt})}))});const wt=It;wt.Dragger=kt,wt.LIST_IGNORE=nr;var Rt=wt},99498:function(Yt,Dt,Ie){(function(ge){ge(Ie(89780))})(function(ge){ge.defineOption("placeholder","",function(ie,oe,ee){var le=ee&&ee!=ge.Init;if(oe&&!le)ie.on("blur",be),ie.on("change",z),ie.on("swapDoc",z),ge.on(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose=function(){Te(ie)}),z(ie);else if(!oe&&le){ie.off("blur",be),ie.off("change",z),ie.off("swapDoc",z),ge.off(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose),gt(ie);var x=ie.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}oe&&!ie.hasFocus()&&be(ie)});function gt(ie){ie.state.placeholder&&(ie.state.placeholder.parentNode.removeChild(ie.state.placeholder),ie.state.placeholder=null)}function a(ie){gt(ie);var oe=ie.state.placeholder=document.createElement("pre");oe.style.cssText="height: 0; overflow: visible",oe.style.direction=ie.getOption("direction"),oe.className="CodeMirror-placeholder CodeMirror-line-like";var ee=ie.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),oe.appendChild(ee),ie.display.lineSpace.insertBefore(oe,ie.display.lineSpace.firstChild)}function Te(ie){setTimeout(function(){var oe=!1,ee=ie.getInputField();ee.nodeName=="TEXTAREA"?oe=!ee.value:ie.lineCount()==1&&(oe=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),oe?a(ie):gt(ie)},20)}function be(ie){E(ie)&&a(ie)}function z(ie){var oe=ie.getWrapperElement(),ee=E(ie);oe.className=oe.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?a(ie):gt(ie)}function E(ie){return ie.lineCount()===1&&ie.getLine(0)===""}})},25717:function(Yt,Dt,Ie){(function(ge){ge(Ie(89780))})(function(ge){var gt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},a=ge.Pos;ge.defineOption("autoCloseBrackets",!1,function(ae,se,ce){ce&&ce!=ge.Init&&(ae.removeKeyMap(be),ae.state.closeBrackets=null),se&&(z(Te(se,"pairs")),ae.state.closeBrackets=se,ae.addKeyMap(be))});function Te(ae,se){return se=="pairs"&&typeof ae=="string"?ae:typeof ae=="object"&&ae[se]!=null?ae[se]:gt[se]}var be={Backspace:oe,Enter:ee};function z(ae){for(var se=0;se<ae.length;se++){var ce=ae.charAt(se),pe="'"+ce+"'";be[pe]||(be[pe]=E(ce))}}z(gt.pairs+"`");function E(ae){return function(se){return x(se,ae)}}function ie(ae){var se=ae.state.closeBrackets;if(!se||se.override)return se;var ce=ae.getModeAt(ae.getCursor());return ce.closeBrackets||se}function oe(ae){var se=ie(ae);if(!se||ae.getOption("disableInput"))return ge.Pass;for(var ce=Te(se,"pairs"),pe=ae.listSelections(),me=0;me<pe.length;me++){if(!pe[me].empty())return ge.Pass;var he=ne(ae,pe[me].head);if(!he||ce.indexOf(he)%2!=0)return ge.Pass}for(var me=pe.length-1;me>=0;me--){var ye=pe[me].head;ae.replaceRange("",a(ye.line,ye.ch-1),a(ye.line,ye.ch+1),"+delete")}}function ee(ae){var se=ie(ae),ce=se&&Te(se,"explode");if(!ce||ae.getOption("disableInput"))return ge.Pass;for(var pe=ae.listSelections(),me=0;me<pe.length;me++){if(!pe[me].empty())return ge.Pass;var he=ne(ae,pe[me].head);if(!he||ce.indexOf(he)%2!=0)return ge.Pass}ae.operation(function(){var ye=ae.lineSeparator()||`
|
|
|
`;ae.replaceSelection(ye+ye,null),ae.execCommand("goCharLeft"),pe=ae.listSelections();for(var De=0;De<pe.length;De++){var Me=pe[De].head.line;ae.indentLine(Me,null,!0),ae.indentLine(Me+1,null,!0)}})}function le(ae){var se=ge.cmpPos(ae.anchor,ae.head)>0;return{anchor:new a(ae.anchor.line,ae.anchor.ch+(se?-1:1)),head:new a(ae.head.line,ae.head.ch+(se?1:-1))}}function x(ae,se){var ce=ie(ae);if(!ce||ae.getOption("disableInput"))return ge.Pass;var pe=Te(ce,"pairs"),me=pe.indexOf(se);if(me==-1)return ge.Pass;for(var he=Te(ce,"closeBefore"),ye=Te(ce,"triples"),De=pe.charAt(me+1)==se,Me=ae.listSelections(),Be=me%2==0,Pe,Ce=0;Ce<Me.length;Ce++){var Ee=Me[Ce],je=Ee.head,ke,Le=ae.getRange(je,a(je.line,je.ch+1));if(Be&&!Ee.empty())ke="surround";else if((De||!Be)&&Le==se)De&&re(ae,je)?ke="both":ye.indexOf(se)>=0&&ae.getRange(je,a(je.line,je.ch+3))==se+se+se?ke="skipThree":ke="skip";else if(De&&je.ch>1&&ye.indexOf(se)>=0&&ae.getRange(a(je.line,je.ch-2),je)==se+se){if(je.ch>2&&/\bstring/.test(ae.getTokenTypeAt(a(je.line,je.ch-2))))return ge.Pass;ke="addFour"}else if(De){var Ae=je.ch==0?" ":ae.getRange(a(je.line,je.ch-1),je);if(!ge.isWordChar(Le)&&Ae!=se&&!ge.isWordChar(Ae))ke="both";else return ge.Pass}else if(Be&&(Le.length===0||/\s/.test(Le)||he.indexOf(Le)>-1))ke="both";else return ge.Pass;if(!Pe)Pe=ke;else if(Pe!=ke)return ge.Pass}var Se=me%2?pe.charAt(me-1):se,Ge=me%2?se:pe.charAt(me+1);ae.operation(function(){if(Pe=="skip")ae.execCommand("goCharRight");else if(Pe=="skipThree")for(var Ze=0;Ze<3;Ze++)ae.execCommand("goCharRight");else if(Pe=="surround"){for(var Je=ae.getSelections(),Ze=0;Ze<Je.length;Ze++)Je[Ze]=Se+Je[Ze]+Ge;ae.replaceSelections(Je,"around"),Je=ae.listSelections().slice();for(var Ze=0;Ze<Je.length;Ze++)Je[Ze]=le(Je[Ze]);ae.setSelections(Je)}else Pe=="both"?(ae.replaceSelection(Se+Ge,null),ae.triggerElectric(Se+Ge),ae.execCommand("goCharLeft")):Pe=="addFour"&&(ae.replaceSelection(Se+Se+Se+Se,"before"),ae.execCommand("goCharRight"))})}function ne(ae,se){var ce=ae.getRange(a(se.line,se.ch-1),a(se.line,se.ch+1));return ce.length==2?ce:null}function re(ae,se){var ce=ae.getTokenAt(a(se.line,se.ch+1));return/\bstring/.test(ce.type)&&ce.start==se.ch&&(se.ch==0||!/\bstring/.test(ae.getTokenTypeAt(se)))}})},6313:function(Yt,Dt,Ie){(function(ge){ge(Ie(89780),Ie(32855))})(function(ge){ge.defineOption("autoCloseTags",!1,function(oe,ee,le){if(le!=ge.Init&&le&&oe.removeKeyMap("autoCloseTags"),!!ee){var x={name:"autoCloseTags"};(typeof ee!="object"||ee.whenClosing!==!1)&&(x["'/'"]=function(ne){return z(ne)}),(typeof ee!="object"||ee.whenOpening!==!1)&&(x["'>'"]=function(ne){return Te(ne)}),oe.addKeyMap(x)}});var gt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],a=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Te(oe){if(oe.getOption("disableInput"))return ge.Pass;for(var ee=oe.listSelections(),le=[],x=oe.getOption("autoCloseTags"),ne=0;ne<ee.length;ne++){if(!ee[ne].empty())return ge.Pass;var re=ee[ne].head,ae=oe.getTokenAt(re),se=ge.innerMode(oe.getMode(),ae.state),ce=se.state,pe=se.mode.xmlCurrentTag&&se.mode.xmlCurrentTag(ce),me=pe&&pe.name;if(!me)return ge.Pass;var he=se.mode.configuration=="html",ye=typeof x=="object"&&x.dontCloseTags||he&>,De=typeof x=="object"&&x.indentTags||he&&a;ae.end>re.ch&&(me=me.slice(0,me.length-ae.end+re.ch));var Me=me.toLowerCase();if(!me||ae.type=="string"&&(ae.end!=re.ch||!/[\"\']/.test(ae.string.charAt(ae.string.length-1))||ae.string.length==1)||ae.type=="tag"&&pe.close||ae.string.indexOf("/")==re.ch-ae.start-1||ye&&E(ye,Me)>-1||ie(oe,se.mode.xmlCurrentContext&&se.mode.xmlCurrentContext(ce)||[],me,re,!0))return ge.Pass;var Be=typeof x=="object"&&x.emptyTags;if(Be&&E(Be,me)>-1){le[ne]={text:"/>",newPos:ge.Pos(re.line,re.ch+2)};continue}var Pe=De&&E(De,Me)>-1;le[ne]={indent:Pe,text:">"+(Pe?`
|
|
|
|
|
|
`:"")+"</"+me+">",newPos:Pe?ge.Pos(re.line+1,0):ge.Pos(re.line,re.ch+1)}}for(var Ce=typeof x=="object"&&x.dontIndentOnAutoClose,ne=ee.length-1;ne>=0;ne--){var Ee=le[ne];oe.replaceRange(Ee.text,ee[ne].head,ee[ne].anchor,"+insert");var je=oe.listSelections().slice(0);je[ne]={head:Ee.newPos,anchor:Ee.newPos},oe.setSelections(je),!Ce&&Ee.indent&&(oe.indentLine(Ee.newPos.line,null,!0),oe.indentLine(Ee.newPos.line+1,null,!0))}}function be(oe,ee){for(var le=oe.listSelections(),x=[],ne=ee?"/":"</",re=oe.getOption("autoCloseTags"),ae=typeof re=="object"&&re.dontIndentOnSlash,se=0;se<le.length;se++){if(!le[se].empty())return ge.Pass;var ce=le[se].head,pe=oe.getTokenAt(ce),me=ge.innerMode(oe.getMode(),pe.state),he=me.state;if(ee&&(pe.type=="string"||pe.string.charAt(0)!="<"||pe.start!=ce.ch-1))return ge.Pass;var ye,De=me.mode.name!="xml"&&oe.getMode().name=="htmlmixed";if(De&&me.mode.name=="javascript")ye=ne+"script";else if(De&&me.mode.name=="css")ye=ne+"style";else{var Me=me.mode.xmlCurrentContext&&me.mode.xmlCurrentContext(he);if(!Me||Me.length&&ie(oe,Me,Me[Me.length-1],ce))return ge.Pass;ye=ne+Me[Me.length-1]}oe.getLine(ce.line).charAt(pe.end)!=">"&&(ye+=">"),x[se]=ye}if(oe.replaceSelections(x),le=oe.listSelections(),!ae)for(var se=0;se<le.length;se++)(se==le.length-1||le[se].head.line<le[se+1].head.line)&&oe.indentLine(le[se].head.line)}function z(oe){return oe.getOption("disableInput")?ge.Pass:be(oe,!0)}ge.commands.closeTag=function(oe){return be(oe)};function E(oe,ee){if(oe.indexOf)return oe.indexOf(ee);for(var le=0,x=oe.length;le<x;++le)if(oe[le]==ee)return le;return-1}function ie(oe,ee,le,x,ne){if(!ge.scanForClosingTag)return!1;var re=Math.min(oe.lastLine()+1,x.line+500),ae=ge.scanForClosingTag(oe,x,null,re);if(!ae||ae.tag!=le)return!1;for(var se=ne?1:0,ce=ee.length-1;ce>=0&&ee[ce]==le;ce--)++se;x=ae.to;for(var ce=1;ce<se;ce++){var pe=ge.scanForClosingTag(oe,x,null,re);if(!pe||pe.tag!=le)return!1;x=pe.to}return!0}})},32855:function(Yt,Dt,Ie){(function(ge){ge(Ie(89780))})(function(ge){"use strict";var gt=ge.Pos;function a(ce,pe){return ce.line-pe.line||ce.ch-pe.ch}var Te="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",be=Te+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",z=new RegExp("<(/?)(["+Te+"]["+be+"]*)","g");function E(ce,pe,me,he){this.line=pe,this.ch=me,this.cm=ce,this.text=ce.getLine(pe),this.min=he?Math.max(he.from,ce.firstLine()):ce.firstLine(),this.max=he?Math.min(he.to-1,ce.lastLine()):ce.lastLine()}function ie(ce,pe){var me=ce.cm.getTokenTypeAt(gt(ce.line,pe));return me&&/\btag\b/.test(me)}function oe(ce){if(!(ce.line>=ce.max))return ce.ch=0,ce.text=ce.cm.getLine(++ce.line),!0}function ee(ce){if(!(ce.line<=ce.min))return ce.text=ce.cm.getLine(--ce.line),ce.ch=ce.text.length,!0}function le(ce){for(;;){var pe=ce.text.indexOf(">",ce.ch);if(pe==-1){if(oe(ce))continue;return}if(!ie(ce,pe+1)){ce.ch=pe+1;continue}var me=ce.text.lastIndexOf("/",pe),he=me>-1&&!/\S/.test(ce.text.slice(me+1,pe));return ce.ch=pe+1,he?"selfClose":"regular"}}function x(ce){for(;;){var pe=ce.ch?ce.text.lastIndexOf("<",ce.ch-1):-1;if(pe==-1){if(ee(ce))continue;return}if(!ie(ce,pe+1)){ce.ch=pe;continue}z.lastIndex=pe,ce.ch=pe;var me=z.exec(ce.text);if(me&&me.index==pe)return me}}function ne(ce){for(;;){z.lastIndex=ce.ch;var pe=z.exec(ce.text);if(!pe){if(oe(ce))continue;return}if(!ie(ce,pe.index+1)){ce.ch=pe.index+1;continue}return ce.ch=pe.index+pe[0].length,pe}}function re(ce){for(;;){var pe=ce.ch?ce.text.lastIndexOf(">",ce.ch-1):-1;if(pe==-1){if(ee(ce))continue;return}if(!ie(ce,pe+1)){ce.ch=pe;continue}var me=ce.text.lastIndexOf("/",pe),he=me>-1&&!/\S/.test(ce.text.slice(me+1,pe));return ce.ch=pe+1,he?"selfClose":"regular"}}function ae(ce,pe){for(var me=[];;){var he=ne(ce),ye,De=ce.line,Me=ce.ch-(he?he[0].length:0);if(!he||!(ye=le(ce)))return;if(ye!="selfClose")if(he[1]){for(var Be=me.length-1;Be>=0;--Be)if(me[Be]==he[2]){me.length=Be;break}if(Be<0&&(!pe||pe==he[2]))return{tag:he[2],from:gt(De,Me),to:gt(ce.line,ce.ch)}}else me.push(he[2])}}function se(ce,pe){for(var me=[];;){var he=re(ce);if(!he)return;if(he=="selfClose"){x(ce);continue}var ye=ce.line,De=ce.ch,Me=x(ce);if(!Me)return;if(Me[1])me.push(Me[2]);else{for(var Be=me.length-1;Be>=0;--Be)if(me[Be]==Me[2]){me.length=Be;break}if(Be<0&&(!pe||pe==Me[2]))return{tag:Me[2],from:gt(ce.line,ce.ch),to:gt(ye,De)}}}}ge.registerHelper("fold","xml",function(ce,pe){for(var me=new E(ce,pe.line,0);;){var he=ne(me);if(!he||me.line!=pe.line)return;var ye=le(me);if(!ye)return;if(!he[1]&&ye!="selfClose"){var De=gt(me.line,me.ch),Me=ae(me,he[2]);return Me&&a(Me.from,De)>0?{from:De,to:Me.from}:null}}}),ge.findMatchingTag=function(ce,pe,me){var he=new E(ce,pe.line,pe.ch,me);if(!(he.text.indexOf(">")==-1&&he.text.indexOf("<")==-1)){var ye=le(he),De=ye&>(he.line,he.ch),Me=ye&&x(he);if(!(!ye||!Me||a(he,pe)>0)){var Be={from:gt(he.line,he.ch),to:De,tag:Me[2]};return ye=="selfClose"?{open:Be,close:null,at:"open"}:Me[1]?{open:se(he,Me[2]),close:Be,at:"close"}:(he=new E(ce,De.line,De.ch,me),{open:Be,close:ae(he,Me[2]),at:"open"})}}},ge.findEnclosingTag=function(ce,pe,me,he){for(var ye=new E(ce,pe.line,pe.ch,me);;){var De=se(ye,he);if(!De)break;var Me=new E(ce,pe.line,pe.ch,me),Be=ae(Me,De.tag);if(Be)return{open:De,close:Be}}},ge.scanForClosingTag=function(ce,pe,me,he){var ye=new E(ce,pe.line,pe.ch,he?{from:0,to:he}:null);return ae(ye,me)}})},89780:function(Yt){(function(Dt,Ie){Yt.exports=Ie()})(this,function(){"use strict";var Dt=navigator.userAgent,Ie=navigator.platform,ge=/gecko\/\d/i.test(Dt),gt=/MSIE \d/.test(Dt),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Dt),Te=/Edge\/(\d+)/.exec(Dt),be=gt||a||Te,z=be&&(gt?document.documentMode||6:+(Te||a)[1]),E=!Te&&/WebKit\//.test(Dt),ie=E&&/Qt\/\d+\.\d+/.test(Dt),oe=!Te&&/Chrome\//.test(Dt),ee=/Opera\//.test(Dt),le=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Dt),ne=/PhantomJS/.test(Dt),re=!Te&&/AppleWebKit/.test(Dt)&&/Mobile\/\w+/.test(Dt),ae=/Android/.test(Dt),se=re||ae||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Dt),ce=re||/Mac/.test(Ie),pe=/\bCrOS\b/.test(Dt),me=/win/i.test(Ie),he=ee&&Dt.match(/Version\/(\d*\.\d*)/);he&&(he=Number(he[1])),he&&he>=15&&(ee=!1,E=!0);var ye=ce&&(ie||ee&&(he==null||he<12.11)),De=ge||be&&z>=9;function Me(y){return new RegExp("(^|\\s)"+y+"(?:$|\\s)\\s*")}var Be=function(y,b){var fe=y.className,ue=Me(b).exec(fe);if(ue){var we=fe.slice(ue.index+ue[0].length);y.className=fe.slice(0,ue.index)+(we?ue[1]+we:"")}};function Pe(y){for(var b=y.childNodes.length;b>0;--b)y.removeChild(y.firstChild);return y}function Ce(y,b){return Pe(y).appendChild(b)}function Ee(y,b,fe,ue){var we=document.createElement(y);if(fe&&(we.className=fe),ue&&(we.style.cssText=ue),typeof b=="string")we.appendChild(document.createTextNode(b));else if(b)for(var He=0;He<b.length;++He)we.appendChild(b[He]);return we}function je(y,b,fe,ue){var we=Ee(y,b,fe,ue);return we.setAttribute("role","presentation"),we}var ke;document.createRange?ke=function(y,b,fe,ue){var we=document.createRange();return we.setEnd(ue||y,fe),we.setStart(y,b),we}:ke=function(y,b,fe){var ue=document.body.createTextRange();try{ue.moveToElementText(y.parentNode)}catch(we){return ue}return ue.collapse(!0),ue.moveEnd("character",fe),ue.moveStart("character",b),ue};function Le(y,b){if(b.nodeType==3&&(b=b.parentNode),y.contains)return y.contains(b);do if(b.nodeType==11&&(b=b.host),b==y)return!0;while(b=b.parentNode)}function Ae(){var y;try{y=document.activeElement}catch(b){y=document.body||null}for(;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;return y}function Se(y,b){var fe=y.className;Me(b).test(fe)||(y.className+=(fe?" ":"")+b)}function Ge(y,b){for(var fe=y.split(" "),ue=0;ue<fe.length;ue++)fe[ue]&&!Me(fe[ue]).test(b)&&(b+=" "+fe[ue]);return b}var Ze=function(y){y.select()};re?Ze=function(y){y.selectionStart=0,y.selectionEnd=y.value.length}:be&&(Ze=function(y){try{y.select()}catch(b){}});function Je(y){var b=Array.prototype.slice.call(arguments,1);return function(){return y.apply(null,b)}}function at(y,b,fe){b||(b={});for(var ue in y)y.hasOwnProperty(ue)&&(fe!==!1||!b.hasOwnProperty(ue))&&(b[ue]=y[ue]);return b}function Fe(y,b,fe,ue,we){b==null&&(b=y.search(/[^\s\u00a0]/),b==-1&&(b=y.length));for(var He=ue||0,tt=we||0;;){var ut=y.indexOf(" ",He);if(ut<0||ut>=b)return tt+(b-He);tt+=ut-He,tt+=fe-tt%fe,He=ut+1}}var Ke=function(){this.id=null,this.f=null,this.time=0,this.handler=Je(this.onTimeout,this)};Ke.prototype.onTimeout=function(y){y.id=0,y.time<=+new Date?y.f():setTimeout(y.handler,y.time-+new Date)},Ke.prototype.set=function(y,b){this.f=b;var fe=+new Date+y;(!this.id||fe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,y),this.time=fe)};function it(y,b){for(var fe=0;fe<y.length;++fe)if(y[fe]==b)return fe;return-1}var rt=50,et={toString:function(){return"CodeMirror.Pass"}},$e={scroll:!1},Xe={origin:"*mouse"},Ve={origin:"+move"};function nt(y,b,fe){for(var ue=0,we=0;;){var He=y.indexOf(" ",ue);He==-1&&(He=y.length);var tt=He-ue;if(He==y.length||we+tt>=b)return ue+Math.min(tt,b-we);if(we+=He-ue,we+=fe-we%fe,ue=He+1,we>=b)return ue}}var Qe=[""];function ct(y){for(;Qe.length<=y;)Qe.push(ot(Qe)+" ");return Qe[y]}function ot(y){return y[y.length-1]}function qe(y,b){for(var fe=[],ue=0;ue<y.length;ue++)fe[ue]=b(y[ue],ue);return fe}function _e(y,b,fe){for(var ue=0,we=fe(b);ue<y.length&&fe(y[ue])<=we;)ue++;y.splice(ue,0,b)}function Re(){}function te(y,b){var fe;return Object.create?fe=Object.create(y):(Re.prototype=y,fe=new Re),b&&at(b,fe),fe}var de=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ne(y){return/\w/.test(y)||y>"\x80"&&(y.toUpperCase()!=y.toLowerCase()||de.test(y))}function ze(y,b){return b?b.source.indexOf("\\w")>-1&&Ne(y)?!0:b.test(y):Ne(y)}function xe(y){for(var b in y)if(y.hasOwnProperty(b)&&y[b])return!1;return!0}var ve=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Oe(y){return y.charCodeAt(0)>=768&&ve.test(y)}function We(y,b,fe){for(;(fe<0?b>0:b<y.length)&&Oe(y.charAt(b));)b+=fe;return b}function Ue(y,b,fe){for(var ue=b>fe?-1:1;;){if(b==fe)return b;var we=(b+fe)/2,He=ue<0?Math.ceil(we):Math.floor(we);if(He==b)return y(He)?b:fe;y(He)?fe=He:b=He+ue}}function Ye(y,b,fe,ue){if(!y)return ue(b,fe,"ltr",0);for(var we=!1,He=0;He<y.length;++He){var tt=y[He];(tt.from<fe&&tt.to>b||b==fe&&tt.to==b)&&(ue(Math.max(tt.from,b),Math.min(tt.to,fe),tt.level==1?"rtl":"ltr",He),we=!0)}we||ue(b,fe,"ltr")}var st=null;function lt(y,b,fe){var ue;st=null;for(var we=0;we<y.length;++we){var He=y[we];if(He.from<b&&He.to>b)return we;He.to==b&&(He.from!=He.to&&fe=="before"?ue=we:st=we),He.from==b&&(He.from!=He.to&&fe!="before"?ue=we:st=we)}return ue!=null?ue:st}var ft=function(){var y="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function fe(mt){return mt<=247?y.charAt(mt):1424<=mt&&mt<=1524?"R":1536<=mt&&mt<=1785?b.charAt(mt-1536):1774<=mt&&mt<=2220?"r":8192<=mt&&mt<=8203?"w":mt==8204?"b":"L"}var ue=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,we=/[stwN]/,He=/[LRr]/,tt=/[Lb1n]/,ut=/[1n]/;function dt(mt,Wt,Zt){this.level=mt,this.from=Wt,this.to=Zt}return function(mt,Wt){var Zt=Wt=="ltr"?"L":"R";if(mt.length==0||Wt=="ltr"&&!ue.test(mt))return!1;for(var ir=mt.length,tr=[],Sr=0;Sr<ir;++Sr)tr.push(fe(mt.charCodeAt(Sr)));for(var Mr=0,Hr=Zt;Mr<ir;++Mr){var Xr=tr[Mr];Xr=="m"?tr[Mr]=Hr:Hr=Xr}for(var rn=0,Yr=Zt;rn<ir;++rn){var an=tr[rn];an=="1"&&Yr=="r"?tr[rn]="n":He.test(an)&&(Yr=an,an=="r"&&(tr[rn]="R"))}for(var gn=1,hn=tr[0];gn<ir-1;++gn){var kn=tr[gn];kn=="+"&&hn=="1"&&tr[gn+1]=="1"?tr[gn]="1":kn==","&&hn==tr[gn+1]&&(hn=="1"||hn=="n")&&(tr[gn]=hn),hn=kn}for(var Yn=0;Yn<ir;++Yn){var mi=tr[Yn];if(mi==",")tr[Yn]="N";else if(mi=="%"){var Qn=void 0;for(Qn=Yn+1;Qn<ir&&tr[Qn]=="%";++Qn);for(var zi=Yn&&tr[Yn-1]=="!"||Qn<ir&&tr[Qn]=="1"?"1":"N",ki=Yn;ki<Qn;++ki)tr[ki]=zi;Yn=Qn-1}}for(var ai=0,Mi=Zt;ai<ir;++ai){var bi=tr[ai];Mi=="L"&&bi=="1"?tr[ai]="L":He.test(bi)&&(Mi=bi)}for(var fi=0;fi<ir;++fi)if(we.test(tr[fi])){var si=void 0;for(si=fi+1;si<ir&&we.test(tr[si]);++si);for(var ei=(fi?tr[fi-1]:Zt)=="L",Ri=(si<ir?tr[si]:Zt)=="L",Zo=ei==Ri?ei?"L":"R":Zt,bo=fi;bo<si;++bo)tr[bo]=Zo;fi=si-1}for(var Ci=[],no,vi=0;vi<ir;)if(tt.test(tr[vi])){var bs=vi;for(++vi;vi<ir&&tt.test(tr[vi]);++vi);Ci.push(new dt(0,bs,vi))}else{var so=vi,jo=Ci.length,Io=Wt=="rtl"?1:0;for(++vi;vi<ir&&tr[vi]!="L";++vi);for(var Ai=so;Ai<vi;)if(ut.test(tr[Ai])){so<Ai&&(Ci.splice(jo,0,new dt(1,so,Ai)),jo+=Io);var Go=Ai;for(++Ai;Ai<vi&&ut.test(tr[Ai]);++Ai);Ci.splice(jo,0,new dt(2,Go,Ai)),jo+=Io,so=Ai}else++Ai;so<vi&&Ci.splice(jo,0,new dt(1,so,vi))}return Wt=="ltr"&&(Ci[0].level==1&&(no=mt.match(/^\s+/))&&(Ci[0].from=no[0].length,Ci.unshift(new dt(0,0,no[0].length))),ot(Ci).level==1&&(no=mt.match(/\s+$/))&&(ot(Ci).to-=no[0].length,Ci.push(new dt(0,ir-no[0].length,ir)))),Wt=="rtl"?Ci.reverse():Ci}}();function Tt(y,b){var fe=y.order;return fe==null&&(fe=y.order=ft(y.text,b)),fe}var St=[],Ot=function(y,b,fe){if(y.addEventListener)y.addEventListener(b,fe,!1);else if(y.attachEvent)y.attachEvent("on"+b,fe);else{var ue=y._handlers||(y._handlers={});ue[b]=(ue[b]||St).concat(fe)}};function yt(y,b){return y._handlers&&y._handlers[b]||St}function Mt(y,b,fe){if(y.removeEventListener)y.removeEventListener(b,fe,!1);else if(y.detachEvent)y.detachEvent("on"+b,fe);else{var ue=y._handlers,we=ue&&ue[b];if(we){var He=it(we,fe);He>-1&&(ue[b]=we.slice(0,He).concat(we.slice(He+1)))}}}function Et(y,b){var fe=yt(y,b);if(fe.length)for(var ue=Array.prototype.slice.call(arguments,2),we=0;we<fe.length;++we)fe[we].apply(null,ue)}function xt(y,b,fe){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),Et(y,fe||b.type,y,b),Xt(b)||b.codemirrorIgnore}function jt(y){var b=y._handlers&&y._handlers.cursorActivity;if(b)for(var fe=y.curOp.cursorActivityHandlers||(y.curOp.cursorActivityHandlers=[]),ue=0;ue<b.length;++ue)it(fe,b[ue])==-1&&fe.push(b[ue])}function At(y,b){return yt(y,b).length>0}function ht(y){y.prototype.on=function(b,fe){Ot(this,b,fe)},y.prototype.off=function(b,fe){Mt(this,b,fe)}}function Ct(y){y.preventDefault?y.preventDefault():y.returnValue=!1}function $t(y){y.stopPropagation?y.stopPropagation():y.cancelBubble=!0}function Xt(y){return y.defaultPrevented!=null?y.defaultPrevented:y.returnValue==!1}function vt(y){Ct(y),$t(y)}function Pt(y){return y.target||y.srcElement}function _t(y){var b=y.which;return b==null&&(y.button&1?b=1:y.button&2?b=3:y.button&4&&(b=2)),ce&&y.ctrlKey&&b==1&&(b=3),b}var Kt=function(){if(be&&z<9)return!1;var y=Ee("div");return"draggable"in y||"dragDrop"in y}(),er;function sr(y){if(er==null){var b=Ee("span","\u200B");Ce(y,Ee("span",[b,document.createTextNode("x")])),y.firstChild.offsetHeight!=0&&(er=b.offsetWidth<=1&&b.offsetHeight>2&&!(be&&z<8))}var fe=er?Ee("span","\u200B"):Ee("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return fe.setAttribute("cm-text",""),fe}var yr;function xr(y){if(yr!=null)return yr;var b=Ce(y,document.createTextNode("A\u062EA")),fe=ke(b,0,1).getBoundingClientRect(),ue=ke(b,1,2).getBoundingClientRect();return Pe(y),!fe||fe.left==fe.right?!1:yr=ue.right-fe.right<3}var ur=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(y){for(var b=0,fe=[],ue=y.length;b<=ue;){var we=y.indexOf(`
|
|
|
`,b);we==-1&&(we=y.length);var He=y.slice(b,y.charAt(we-1)=="\r"?we-1:we),tt=He.indexOf("\r");tt!=-1?(fe.push(He.slice(0,tt)),b+=tt+1):(fe.push(He),b=we+1)}return fe}:function(y){return y.split(/\r\n?|\n/)},br=window.getSelection?function(y){try{return y.selectionStart!=y.selectionEnd}catch(b){return!1}}:function(y){var b;try{b=y.ownerDocument.selection.createRange()}catch(fe){}return!b||b.parentElement()!=y?!1:b.compareEndPoints("StartToEnd",b)!=0},or=function(){var y=Ee("div");return"oncopy"in y?!0:(y.setAttribute("oncopy","return;"),typeof y.oncopy=="function")}(),fr=null;function Jt(y){if(fr!=null)return fr;var b=Ce(y,Ee("span","x")),fe=b.getBoundingClientRect(),ue=ke(b,0,1).getBoundingClientRect();return fr=Math.abs(fe.left-ue.left)>1}var Qt={},Vt={};function rr(y,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),Qt[y]=b}function ar(y,b){Vt[y]=b}function vr(y){if(typeof y=="string"&&Vt.hasOwnProperty(y))y=Vt[y];else if(y&&typeof y.name=="string"&&Vt.hasOwnProperty(y.name)){var b=Vt[y.name];typeof b=="string"&&(b={name:b}),y=te(b,y),y.name=b.name}else{if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(y))return vr("application/xml");if(typeof y=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(y))return vr("application/json")}return typeof y=="string"?{name:y}:y||{name:"null"}}function hr(y,b){b=vr(b);var fe=Qt[b.name];if(!fe)return hr(y,"text/plain");var ue=fe(y,b);if(Ir.hasOwnProperty(b.name)){var we=Ir[b.name];for(var He in we)we.hasOwnProperty(He)&&(ue.hasOwnProperty(He)&&(ue["_"+He]=ue[He]),ue[He]=we[He])}if(ue.name=b.name,b.helperType&&(ue.helperType=b.helperType),b.modeProps)for(var tt in b.modeProps)ue[tt]=b.modeProps[tt];return ue}var Ir={};function Or(y,b){var fe=Ir.hasOwnProperty(y)?Ir[y]:Ir[y]={};at(b,fe)}function Lr(y,b){if(b===!0)return b;if(y.copyState)return y.copyState(b);var fe={};for(var ue in b){var we=b[ue];we instanceof Array&&(we=we.concat([])),fe[ue]=we}return fe}function Er(y,b){for(var fe;y.innerMode&&(fe=y.innerMode(b),!(!fe||fe.mode==y));)b=fe.state,y=fe.mode;return fe||{mode:y,state:b}}function Zr(y,b,fe){return y.startState?y.startState(b,fe):!0}var _r=function(y,b,fe){this.pos=this.start=0,this.string=y,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=fe};_r.prototype.eol=function(){return this.pos>=this.string.length},_r.prototype.sol=function(){return this.pos==this.lineStart},_r.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},_r.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},_r.prototype.eat=function(y){var b=this.string.charAt(this.pos),fe;if(typeof y=="string"?fe=b==y:fe=b&&(y.test?y.test(b):y(b)),fe)return++this.pos,b},_r.prototype.eatWhile=function(y){for(var b=this.pos;this.eat(y););return this.pos>b},_r.prototype.eatSpace=function(){for(var y=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>y},_r.prototype.skipToEnd=function(){this.pos=this.string.length},_r.prototype.skipTo=function(y){var b=this.string.indexOf(y,this.pos);if(b>-1)return this.pos=b,!0},_r.prototype.backUp=function(y){this.pos-=y},_r.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Fe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Fe(this.string,this.lineStart,this.tabSize):0)},_r.prototype.indentation=function(){return Fe(this.string,null,this.tabSize)-(this.lineStart?Fe(this.string,this.lineStart,this.tabSize):0)},_r.prototype.match=function(y,b,fe){if(typeof y=="string"){var ue=function(tt){return fe?tt.toLowerCase():tt},we=this.string.substr(this.pos,y.length);if(ue(we)==ue(y))return b!==!1&&(this.pos+=y.length),!0}else{var He=this.string.slice(this.pos).match(y);return He&&He.index>0?null:(He&&b!==!1&&(this.pos+=He[0].length),He)}},_r.prototype.current=function(){return this.string.slice(this.start,this.pos)},_r.prototype.hideFirstChars=function(y,b){this.lineStart+=y;try{return b()}finally{this.lineStart-=y}},_r.prototype.lookAhead=function(y){var b=this.lineOracle;return b&&b.lookAhead(y)},_r.prototype.baseToken=function(){var y=this.lineOracle;return y&&y.baseToken(this.pos)};function qt(y,b){if(b-=y.first,b<0||b>=y.size)throw new Error("There is no line "+(b+y.first)+" in the document.");for(var fe=y;!fe.lines;)for(var ue=0;;++ue){var we=fe.children[ue],He=we.chunkSize();if(b<He){fe=we;break}b-=He}return fe.lines[b]}function nr(y,b,fe){var ue=[],we=b.line;return y.iter(b.line,fe.line+1,function(He){var tt=He.text;we==fe.line&&(tt=tt.slice(0,fe.ch)),we==b.line&&(tt=tt.slice(b.ch)),ue.push(tt),++we}),ue}function jr(y,b,fe){var ue=[];return y.iter(b,fe,function(we){ue.push(we.text)}),ue}function Tr(y,b){var fe=b-y.height;if(fe)for(var ue=y;ue;ue=ue.parent)ue.height+=fe}function It(y){if(y.parent==null)return null;for(var b=y.parent,fe=it(b.lines,y),ue=b.parent;ue;b=ue,ue=ue.parent)for(var we=0;ue.children[we]!=b;++we)fe+=ue.children[we].chunkSize();return fe+b.first}function Ft(y,b){var fe=y.first;e:do{for(var ue=0;ue<y.children.length;++ue){var we=y.children[ue],He=we.height;if(b<He){y=we;continue e}b-=He,fe+=we.chunkSize()}return fe}while(!y.lines);for(var tt=0;tt<y.lines.length;++tt){var ut=y.lines[tt],dt=ut.height;if(b<dt)break;b-=dt}return fe+tt}function bt(y,b){return b>=y.first&&b<y.first+y.size}function kt(y,b){return String(y.lineNumberFormatter(b+y.firstLineNumber))}function wt(y,b,fe){if(fe===void 0&&(fe=null),!(this instanceof wt))return new wt(y,b,fe);this.line=y,this.ch=b,this.sticky=fe}function Rt(y,b){return y.line-b.line||y.ch-b.ch}function pt(y,b){return y.sticky==b.sticky&&Rt(y,b)==0}function Lt(y){return wt(y.line,y.ch)}function zt(y,b){return Rt(y,b)<0?b:y}function Gt(y,b){return Rt(y,b)<0?y:b}function Ht(y,b){return Math.max(y.first,Math.min(b,y.first+y.size-1))}function Nt(y,b){if(b.line<y.first)return wt(y.first,0);var fe=y.first+y.size-1;return b.line>fe?wt(fe,qt(y,fe).text.length):Bt(b,qt(y,b.line).text.length)}function Bt(y,b){var fe=y.ch;return fe==null||fe>b?wt(y.line,b):fe<0?wt(y.line,0):y}function Ut(y,b){for(var fe=[],ue=0;ue<b.length;ue++)fe[ue]=Nt(y,b[ue]);return fe}var cr=function(y,b){this.state=y,this.lookAhead=b},lr=function(y,b,fe,ue){this.state=b,this.doc=y,this.line=fe,this.maxLookAhead=ue||0,this.baseTokens=null,this.baseTokenPos=1};lr.prototype.lookAhead=function(y){var b=this.doc.getLine(this.line+y);return b!=null&&y>this.maxLookAhead&&(this.maxLookAhead=y),b},lr.prototype.baseToken=function(y){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=y;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-y}},lr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},lr.fromSaved=function(y,b,fe){return b instanceof cr?new lr(y,Lr(y.mode,b.state),fe,b.lookAhead):new lr(y,Lr(y.mode,b),fe)},lr.prototype.save=function(y){var b=y!==!1?Lr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new cr(b,this.maxLookAhead):b};function dr(y,b,fe,ue){var we=[y.state.modeGen],He={};Vr(y,b.text,y.doc.mode,fe,function(mt,Wt){return we.push(mt,Wt)},He,ue);for(var tt=fe.state,ut=function(mt){fe.baseTokens=we;var Wt=y.state.overlays[mt],Zt=1,ir=0;fe.state=!0,Vr(y,b.text,Wt.mode,fe,function(tr,Sr){for(var Mr=Zt;ir<tr;){var Hr=we[Zt];Hr>tr&&we.splice(Zt,1,tr,we[Zt+1],Hr),Zt+=2,ir=Math.min(tr,Hr)}if(Sr)if(Wt.opaque)we.splice(Mr,Zt-Mr,tr,"overlay "+Sr),Zt=Mr+2;else for(;Mr<Zt;Mr+=2){var Xr=we[Mr+1];we[Mr+1]=(Xr?Xr+" ":"")+"overlay "+Sr}},He),fe.state=tt,fe.baseTokens=null,fe.baseTokenPos=1},dt=0;dt<y.state.overlays.length;++dt)ut(dt);return{styles:we,classes:He.bgClass||He.textClass?He:null}}function Br(y,b,fe){if(!b.styles||b.styles[0]!=y.state.modeGen){var ue=Wr(y,It(b)),we=b.text.length>y.options.maxHighlightLength&&Lr(y.doc.mode,ue.state),He=dr(y,b,ue);we&&(ue.state=we),b.stateAfter=ue.save(!we),b.styles=He.styles,He.classes?b.styleClasses=He.classes:b.styleClasses&&(b.styleClasses=null),fe===y.doc.highlightFrontier&&(y.doc.modeFrontier=Math.max(y.doc.modeFrontier,++y.doc.highlightFrontier))}return b.styles}function Wr(y,b,fe){var ue=y.doc,we=y.display;if(!ue.mode.startState)return new lr(ue,!0,b);var He=Jr(y,b,fe),tt=He>ue.first&&qt(ue,He-1).stateAfter,ut=tt?lr.fromSaved(ue,tt,He):new lr(ue,Zr(ue.mode),He);return ue.iter(He,b,function(dt){$r(y,dt.text,ut);var mt=ut.line;dt.stateAfter=mt==b-1||mt%5==0||mt>=we.viewFrom&&mt<we.viewTo?ut.save():null,ut.nextLine()}),fe&&(ue.modeFrontier=ut.line),ut}function $r(y,b,fe,ue){var we=y.doc.mode,He=new _r(b,y.options.tabSize,fe);for(He.start=He.pos=ue||0,b==""&&Nr(we,fe.state);!He.eol();)Dr(we,He,fe.state),He.start=He.pos}function Nr(y,b){if(y.blankLine)return y.blankLine(b);if(y.innerMode){var fe=Er(y,b);if(fe.mode.blankLine)return fe.mode.blankLine(fe.state)}}function Dr(y,b,fe,ue){for(var we=0;we<10;we++){ue&&(ue[0]=Er(y,fe).mode);var He=y.token(b,fe);if(b.pos>b.start)return He}throw new Error("Mode "+y.name+" failed to advance stream.")}var Rr=function(y,b,fe){this.start=y.start,this.end=y.pos,this.string=y.current(),this.type=b||null,this.state=fe};function Ur(y,b,fe,ue){var we=y.doc,He=we.mode,tt;b=Nt(we,b);var ut=qt(we,b.line),dt=Wr(y,b.line,fe),mt=new _r(ut.text,y.options.tabSize,dt),Wt;for(ue&&(Wt=[]);(ue||mt.pos<b.ch)&&!mt.eol();)mt.start=mt.pos,tt=Dr(He,mt,dt.state),ue&&Wt.push(new Rr(mt,tt,Lr(we.mode,dt.state)));return ue?Wt:new Rr(mt,tt,dt.state)}function Qr(y,b){if(y)for(;;){var fe=y.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!fe)break;y=y.slice(0,fe.index)+y.slice(fe.index+fe[0].length);var ue=fe[1]?"bgClass":"textClass";b[ue]==null?b[ue]=fe[2]:new RegExp("(?:^|\\s)"+fe[2]+"(?:$|\\s)").test(b[ue])||(b[ue]+=" "+fe[2])}return y}function Vr(y,b,fe,ue,we,He,tt){var ut=fe.flattenSpans;ut==null&&(ut=y.options.flattenSpans);var dt=0,mt=null,Wt=new _r(b,y.options.tabSize,ue),Zt,ir=y.options.addModeClass&&[null];for(b==""&&Qr(Nr(fe,ue.state),He);!Wt.eol();){if(Wt.pos>y.options.maxHighlightLength?(ut=!1,tt&&$r(y,b,ue,Wt.pos),Wt.pos=b.length,Zt=null):Zt=Qr(Dr(fe,Wt,ue.state,ir),He),ir){var tr=ir[0].name;tr&&(Zt="m-"+(Zt?tr+" "+Zt:tr))}if(!ut||mt!=Zt){for(;dt<Wt.start;)dt=Math.min(Wt.start,dt+5e3),we(dt,mt);mt=Zt}Wt.start=Wt.pos}for(;dt<Wt.pos;){var Sr=Math.min(Wt.pos,dt+5e3);we(Sr,mt),dt=Sr}}function Jr(y,b,fe){for(var ue,we,He=y.doc,tt=fe?-1:b-(y.doc.mode.innerMode?1e3:100),ut=b;ut>tt;--ut){if(ut<=He.first)return He.first;var dt=qt(He,ut-1),mt=dt.stateAfter;if(mt&&(!fe||ut+(mt instanceof cr?mt.lookAhead:0)<=He.modeFrontier))return ut;var Wt=Fe(dt.text,null,y.options.tabSize);(we==null||ue>Wt)&&(we=ut-1,ue=Wt)}return we}function Pr(y,b){if(y.modeFrontier=Math.min(y.modeFrontier,b),!(y.highlightFrontier<b-10)){for(var fe=y.first,ue=b-1;ue>fe;ue--){var we=qt(y,ue).stateAfter;if(we&&(!(we instanceof cr)||ue+we.lookAhead<b)){fe=ue+1;break}}y.highlightFrontier=Math.min(y.highlightFrontier,fe)}}var tn=!1,Gr=!1;function fn(){tn=!0}function pn(){Gr=!0}function ln(y,b,fe){this.marker=y,this.from=b,this.to=fe}function un(y,b){if(y)for(var fe=0;fe<y.length;++fe){var ue=y[fe];if(ue.marker==b)return ue}}function yn(y,b){for(var fe,ue=0;ue<y.length;++ue)y[ue]!=b&&(fe||(fe=[])).push(y[ue]);return fe}function sn(y,b){y.markedSpans=y.markedSpans?y.markedSpans.concat([b]):[b],b.marker.attachLine(y)}function dn(y,b,fe){var ue;if(y)for(var we=0;we<y.length;++we){var He=y[we],tt=He.marker,ut=He.from==null||(tt.inclusiveLeft?He.from<=b:He.from<b);if(ut||He.from==b&&tt.type=="bookmark"&&(!fe||!He.marker.insertLeft)){var dt=He.to==null||(tt.inclusiveRight?He.to>=b:He.to>b);(ue||(ue=[])).push(new ln(tt,He.from,dt?null:He.to))}}return ue}function en(y,b,fe){var ue;if(y)for(var we=0;we<y.length;++we){var He=y[we],tt=He.marker,ut=He.to==null||(tt.inclusiveRight?He.to>=b:He.to>b);if(ut||He.from==b&&tt.type=="bookmark"&&(!fe||He.marker.insertLeft)){var dt=He.from==null||(tt.inclusiveLeft?He.from<=b:He.from<b);(ue||(ue=[])).push(new ln(tt,dt?null:He.from-b,He.to==null?null:He.to-b))}}return ue}function mn(y,b){if(b.full)return null;var fe=bt(y,b.from.line)&&qt(y,b.from.line).markedSpans,ue=bt(y,b.to.line)&&qt(y,b.to.line).markedSpans;if(!fe&&!ue)return null;var we=b.from.ch,He=b.to.ch,tt=Rt(b.from,b.to)==0,ut=dn(fe,we,tt),dt=en(ue,He,tt),mt=b.text.length==1,Wt=ot(b.text).length+(mt?we:0);if(ut)for(var Zt=0;Zt<ut.length;++Zt){var ir=ut[Zt];if(ir.to==null){var tr=un(dt,ir.marker);tr?mt&&(ir.to=tr.to==null?null:tr.to+Wt):ir.to=we}}if(dt)for(var Sr=0;Sr<dt.length;++Sr){var Mr=dt[Sr];if(Mr.to!=null&&(Mr.to+=Wt),Mr.from==null){var Hr=un(ut,Mr.marker);Hr||(Mr.from=Wt,mt&&(ut||(ut=[])).push(Mr))}else Mr.from+=Wt,mt&&(ut||(ut=[])).push(Mr)}ut&&(ut=bn(ut)),dt&&dt!=ut&&(dt=bn(dt));var Xr=[ut];if(!mt){var rn=b.text.length-2,Yr;if(rn>0&&ut)for(var an=0;an<ut.length;++an)ut[an].to==null&&(Yr||(Yr=[])).push(new ln(ut[an].marker,null,null));for(var gn=0;gn<rn;++gn)Xr.push(Yr);Xr.push(dt)}return Xr}function bn(y){for(var b=0;b<y.length;++b){var fe=y[b];fe.from!=null&&fe.from==fe.to&&fe.marker.clearWhenEmpty!==!1&&y.splice(b--,1)}return y.length?y:null}function _n(y,b,fe){var ue=null;if(y.iter(b.line,fe.line+1,function(tr){if(tr.markedSpans)for(var Sr=0;Sr<tr.markedSpans.length;++Sr){var Mr=tr.markedSpans[Sr].marker;Mr.readOnly&&(!ue||it(ue,Mr)==-1)&&(ue||(ue=[])).push(Mr)}}),!ue)return null;for(var we=[{from:b,to:fe}],He=0;He<ue.length;++He)for(var tt=ue[He],ut=tt.find(0),dt=0;dt<we.length;++dt){var mt=we[dt];if(!(Rt(mt.to,ut.from)<0||Rt(mt.from,ut.to)>0)){var Wt=[dt,1],Zt=Rt(mt.from,ut.from),ir=Rt(mt.to,ut.to);(Zt<0||!tt.inclusiveLeft&&!Zt)&&Wt.push({from:mt.from,to:ut.from}),(ir>0||!tt.inclusiveRight&&!ir)&&Wt.push({from:ut.to,to:mt.to}),we.splice.apply(we,Wt),dt+=Wt.length-3}}return we}function En(y){var b=y.markedSpans;if(b){for(var fe=0;fe<b.length;++fe)b[fe].marker.detachLine(y);y.markedSpans=null}}function Mn(y,b){if(b){for(var fe=0;fe<b.length;++fe)b[fe].marker.attachLine(y);y.markedSpans=b}}function On(y){return y.inclusiveLeft?-1:0}function jn(y){return y.inclusiveRight?1:0}function on(y,b){var fe=y.lines.length-b.lines.length;if(fe!=0)return fe;var ue=y.find(),we=b.find(),He=Rt(ue.from,we.from)||On(y)-On(b);if(He)return-He;var tt=Rt(ue.to,we.to)||jn(y)-jn(b);return tt||b.id-y.id}function nn(y,b){var fe=Gr&&y.markedSpans,ue;if(fe)for(var we=void 0,He=0;He<fe.length;++He)we=fe[He],we.marker.collapsed&&(b?we.from:we.to)==null&&(!ue||on(ue,we.marker)<0)&&(ue=we.marker);return ue}function qr(y){return nn(y,!0)}function gr(y){return nn(y,!1)}function Ar(y,b){var fe=Gr&&y.markedSpans,ue;if(fe)for(var we=0;we<fe.length;++we){var He=fe[we];He.marker.collapsed&&(He.from==null||He.from<b)&&(He.to==null||He.to>b)&&(!ue||on(ue,He.marker)<0)&&(ue=He.marker)}return ue}function Cr(y,b,fe,ue,we){var He=qt(y,b),tt=Gr&&He.markedSpans;if(tt)for(var ut=0;ut<tt.length;++ut){var dt=tt[ut];if(dt.marker.collapsed){var mt=dt.marker.find(0),Wt=Rt(mt.from,fe)||On(dt.marker)-On(we),Zt=Rt(mt.to,ue)||jn(dt.marker)-jn(we);if(!(Wt>=0&&Zt<=0||Wt<=0&&Zt>=0)&&(Wt<=0&&(dt.marker.inclusiveRight&&we.inclusiveLeft?Rt(mt.to,fe)>=0:Rt(mt.to,fe)>0)||Wt>=0&&(dt.marker.inclusiveRight&&we.inclusiveLeft?Rt(mt.from,ue)<=0:Rt(mt.from,ue)<0)))return!0}}}function pr(y){for(var b;b=qr(y);)y=b.find(-1,!0).line;return y}function zr(y){for(var b;b=gr(y);)y=b.find(1,!0).line;return y}function Kr(y){for(var b,fe;b=gr(y);)y=b.find(1,!0).line,(fe||(fe=[])).push(y);return fe}function wr(y,b){var fe=qt(y,b),ue=pr(fe);return fe==ue?b:It(ue)}function mr(y,b){if(b>y.lastLine())return b;var fe=qt(y,b),ue;if(!kr(y,fe))return b;for(;ue=gr(fe);)fe=ue.find(1,!0).line;return It(fe)+1}function kr(y,b){var fe=Gr&&b.markedSpans;if(fe){for(var ue=void 0,we=0;we<fe.length;++we)if(ue=fe[we],!!ue.marker.collapsed){if(ue.from==null)return!0;if(!ue.marker.widgetNode&&ue.from==0&&ue.marker.inclusiveLeft&&Fr(y,b,ue))return!0}}}function Fr(y,b,fe){if(fe.to==null){var ue=fe.marker.find(1,!0);return Fr(y,ue.line,un(ue.line.markedSpans,fe.marker))}if(fe.marker.inclusiveRight&&fe.to==b.text.length)return!0;for(var we=void 0,He=0;He<b.markedSpans.length;++He)if(we=b.markedSpans[He],we.marker.collapsed&&!we.marker.widgetNode&&we.from==fe.to&&(we.to==null||we.to!=fe.from)&&(we.marker.inclusiveLeft||fe.marker.inclusiveRight)&&Fr(y,b,we))return!0}function cn(y){y=pr(y);for(var b=0,fe=y.parent,ue=0;ue<fe.lines.length;++ue){var we=fe.lines[ue];if(we==y)break;b+=we.height}for(var He=fe.parent;He;fe=He,He=fe.parent)for(var tt=0;tt<He.children.length;++tt){var ut=He.children[tt];if(ut==fe)break;b+=ut.height}return b}function Dn(y){if(y.height==0)return 0;for(var b=y.text.length,fe,ue=y;fe=qr(ue);){var we=fe.find(0,!0);ue=we.from.line,b+=we.from.ch-we.to.ch}for(ue=y;fe=gr(ue);){var He=fe.find(0,!0);b-=ue.text.length-He.from.ch,ue=He.to.line,b+=ue.text.length-He.to.ch}return b}function Tn(y){var b=y.display,fe=y.doc;b.maxLine=qt(fe,fe.first),b.maxLineLength=Dn(b.maxLine),b.maxLineChanged=!0,fe.iter(function(ue){var we=Dn(ue);we>b.maxLineLength&&(b.maxLineLength=we,b.maxLine=ue)})}var Bn=function(y,b,fe){this.text=y,Mn(this,b),this.height=fe?fe(this):1};Bn.prototype.lineNo=function(){return It(this)},ht(Bn);function Rn(y,b,fe,ue){y.text=b,y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null),y.order!=null&&(y.order=null),En(y),Mn(y,fe);var we=ue?ue(y):1;we!=y.height&&Tr(y,we)}function Ln(y){y.parent=null,En(y)}var Zn={},Wn={};function Vn(y,b){if(!y||/^\s*$/.test(y))return null;var fe=b.addModeClass?Wn:Zn;return fe[y]||(fe[y]=y.replace(/\S+/g,"cm-$&"))}function ti(y,b){var fe=je("span",null,null,E?"padding-right: .1px":null),ue={pre:je("pre",[fe],"CodeMirror-line"),content:fe,col:0,pos:0,cm:y,trailingSpace:!1,splitSpaces:y.getOption("lineWrapping")};b.measure={};for(var we=0;we<=(b.rest?b.rest.length:0);we++){var He=we?b.rest[we-1]:b.line,tt=void 0;ue.pos=0,ue.addToken=Ni,xr(y.display.measure)&&(tt=Tt(He,y.doc.direction))&&(ue.addToken=li(ue.addToken,tt)),ue.map=[];var ut=b!=y.display.externalMeasured&&It(He);zn(He,ue,Br(y,He,ut)),He.styleClasses&&(He.styleClasses.bgClass&&(ue.bgClass=Ge(He.styleClasses.bgClass,ue.bgClass||"")),He.styleClasses.textClass&&(ue.textClass=Ge(He.styleClasses.textClass,ue.textClass||""))),ue.map.length==0&&ue.map.push(0,0,ue.content.appendChild(sr(y.display.measure))),we==0?(b.measure.map=ue.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(ue.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(E){var dt=ue.content.lastChild;(/\bcm-tab\b/.test(dt.className)||dt.querySelector&&dt.querySelector(".cm-tab"))&&(ue.content.className="cm-tab-wrap-hack")}return Et(y,"renderLine",y,b.line,ue.pre),ue.pre.className&&(ue.textClass=Ge(ue.pre.className,ue.textClass||"")),ue}function Ei(y){var b=Ee("span","\u2022","cm-invalidchar");return b.title="\\u"+y.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function Ni(y,b,fe,ue,we,He,tt){if(b){var ut=y.splitSpaces?xi(b,y.trailingSpace):b,dt=y.cm.state.specialChars,mt=!1,Wt;if(!dt.test(b))y.col+=b.length,Wt=document.createTextNode(ut),y.map.push(y.pos,y.pos+b.length,Wt),be&&z<9&&(mt=!0),y.pos+=b.length;else{Wt=document.createDocumentFragment();for(var Zt=0;;){dt.lastIndex=Zt;var ir=dt.exec(b),tr=ir?ir.index-Zt:b.length-Zt;if(tr){var Sr=document.createTextNode(ut.slice(Zt,Zt+tr));be&&z<9?Wt.appendChild(Ee("span",[Sr])):Wt.appendChild(Sr),y.map.push(y.pos,y.pos+tr,Sr),y.col+=tr,y.pos+=tr}if(!ir)break;Zt+=tr+1;var Mr=void 0;if(ir[0]==" "){var Hr=y.cm.options.tabSize,Xr=Hr-y.col%Hr;Mr=Wt.appendChild(Ee("span",ct(Xr),"cm-tab")),Mr.setAttribute("role","presentation"),Mr.setAttribute("cm-text"," "),y.col+=Xr}else ir[0]=="\r"||ir[0]==`
|
|
|
`?(Mr=Wt.appendChild(Ee("span",ir[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Mr.setAttribute("cm-text",ir[0]),y.col+=1):(Mr=y.cm.options.specialCharPlaceholder(ir[0]),Mr.setAttribute("cm-text",ir[0]),be&&z<9?Wt.appendChild(Ee("span",[Mr])):Wt.appendChild(Mr),y.col+=1);y.map.push(y.pos,y.pos+1,Mr),y.pos++}}if(y.trailingSpace=ut.charCodeAt(b.length-1)==32,fe||ue||we||mt||He||tt){var rn=fe||"";ue&&(rn+=ue),we&&(rn+=we);var Yr=Ee("span",[Wt],rn,He);if(tt)for(var an in tt)tt.hasOwnProperty(an)&&an!="style"&&an!="class"&&Yr.setAttribute(an,tt[an]);return y.content.appendChild(Yr)}y.content.appendChild(Wt)}}function xi(y,b){if(y.length>1&&!/ /.test(y))return y;for(var fe=b,ue="",we=0;we<y.length;we++){var He=y.charAt(we);He==" "&&fe&&(we==y.length-1||y.charCodeAt(we+1)==32)&&(He="\xA0"),ue+=He,fe=He==" "}return ue}function li(y,b){return function(fe,ue,we,He,tt,ut,dt){we=we?we+" cm-force-border":"cm-force-border";for(var mt=fe.pos,Wt=mt+ue.length;;){for(var Zt=void 0,ir=0;ir<b.length&&(Zt=b[ir],!(Zt.to>mt&&Zt.from<=mt));ir++);if(Zt.to>=Wt)return y(fe,ue,we,He,tt,ut,dt);y(fe,ue.slice(0,Zt.to-mt),we,He,null,ut,dt),He=null,ue=ue.slice(Zt.to-mt),mt=Zt.to}}}function Bi(y,b,fe,ue){var we=!ue&&fe.widgetNode;we&&y.map.push(y.pos,y.pos+b,we),!ue&&y.cm.display.input.needsContentAttribute&&(we||(we=y.content.appendChild(document.createElement("span"))),we.setAttribute("cm-marker",fe.id)),we&&(y.cm.display.input.setUneditable(we),y.content.appendChild(we)),y.pos+=b,y.trailingSpace=!1}function zn(y,b,fe){var ue=y.markedSpans,we=y.text,He=0;if(!ue){for(var tt=1;tt<fe.length;tt+=2)b.addToken(b,we.slice(He,He=fe[tt]),Vn(fe[tt+1],b.cm.options));return}for(var ut=we.length,dt=0,mt=1,Wt="",Zt,ir,tr=0,Sr,Mr,Hr,Xr,rn;;){if(tr==dt){Sr=Mr=Hr=ir="",rn=null,Xr=null,tr=1/0;for(var Yr=[],an=void 0,gn=0;gn<ue.length;++gn){var hn=ue[gn],kn=hn.marker;if(kn.type=="bookmark"&&hn.from==dt&&kn.widgetNode)Yr.push(kn);else if(hn.from<=dt&&(hn.to==null||hn.to>dt||kn.collapsed&&hn.to==dt&&hn.from==dt)){if(hn.to!=null&&hn.to!=dt&&tr>hn.to&&(tr=hn.to,Mr=""),kn.className&&(Sr+=" "+kn.className),kn.css&&(ir=(ir?ir+";":"")+kn.css),kn.startStyle&&hn.from==dt&&(Hr+=" "+kn.startStyle),kn.endStyle&&hn.to==tr&&(an||(an=[])).push(kn.endStyle,hn.to),kn.title&&((rn||(rn={})).title=kn.title),kn.attributes)for(var Yn in kn.attributes)(rn||(rn={}))[Yn]=kn.attributes[Yn];kn.collapsed&&(!Xr||on(Xr.marker,kn)<0)&&(Xr=hn)}else hn.from>dt&&tr>hn.from&&(tr=hn.from)}if(an)for(var mi=0;mi<an.length;mi+=2)an[mi+1]==tr&&(Mr+=" "+an[mi]);if(!Xr||Xr.from==dt)for(var Qn=0;Qn<Yr.length;++Qn)Bi(b,0,Yr[Qn]);if(Xr&&(Xr.from||0)==dt){if(Bi(b,(Xr.to==null?ut+1:Xr.to)-dt,Xr.marker,Xr.from==null),Xr.to==null)return;Xr.to==dt&&(Xr=!1)}}if(dt>=ut)break;for(var zi=Math.min(ut,tr);;){if(Wt){var ki=dt+Wt.length;if(!Xr){var ai=ki>zi?Wt.slice(0,zi-dt):Wt;b.addToken(b,ai,Zt?Zt+Sr:Sr,Hr,dt+ai.length==tr?Mr:"",ir,rn)}if(ki>=zi){Wt=Wt.slice(zi-dt),dt=zi;break}dt=ki,Hr=""}Wt=we.slice(He,He=fe[mt++]),Zt=Vn(fe[mt++],b.cm.options)}}}function Ki(y,b,fe){this.line=b,this.rest=Kr(b),this.size=this.rest?It(ot(this.rest))-fe+1:1,this.node=this.text=null,this.hidden=kr(y,b)}function qn(y,b,fe){for(var ue=[],we,He=b;He<fe;He=we){var tt=new Ki(y.doc,qt(y.doc,He),He);we=He+tt.size,ue.push(tt)}return ue}var xn=null;function Fn(y){xn?xn.ops.push(y):y.ownsGroup=xn={ops:[y],delayedCallbacks:[]}}function $n(y){var b=y.delayedCallbacks,fe=0;do{for(;fe<b.length;fe++)b[fe].call(null);for(var ue=0;ue<y.ops.length;ue++){var we=y.ops[ue];if(we.cursorActivityHandlers)for(;we.cursorActivityCalled<we.cursorActivityHandlers.length;)we.cursorActivityHandlers[we.cursorActivityCalled++].call(null,we.cm)}}while(fe<b.length)}function Sn(y,b){var fe=y.ownsGroup;if(fe)try{$n(fe)}finally{xn=null,b(fe)}}var Nn=null;function Pn(y,b){var fe=yt(y,b);if(fe.length){var ue=Array.prototype.slice.call(arguments,2),we;xn?we=xn.delayedCallbacks:Nn?we=Nn:(we=Nn=[],setTimeout(ui,0));for(var He=function(ut){we.push(function(){return fe[ut].apply(null,ue)})},tt=0;tt<fe.length;++tt)He(tt)}}function ui(){var y=Nn;Nn=null;for(var b=0;b<y.length;++b)y[b]()}function ji(y,b,fe,ue){for(var we=0;we<b.changes.length;we++){var He=b.changes[we];He=="text"?lo(y,b):He=="gutter"?An(y,b,fe,ue):He=="class"?vn(y,b):He=="widget"&&wn(y,b,ue)}b.changes=null}function di(y){return y.node==y.text&&(y.node=Ee("div",null,null,"position: relative"),y.text.parentNode&&y.text.parentNode.replaceChild(y.node,y.text),y.node.appendChild(y.text),be&&z<8&&(y.node.style.zIndex=2)),y.node}function ri(y,b){var fe=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(fe&&(fe+=" CodeMirror-linebackground"),b.background)fe?b.background.className=fe:(b.background.parentNode.removeChild(b.background),b.background=null);else if(fe){var ue=di(b);b.background=ue.insertBefore(Ee("div",null,fe),ue.firstChild),y.display.input.setUneditable(b.background)}}function xo(y,b){var fe=y.display.externalMeasured;return fe&&fe.line==b.line?(y.display.externalMeasured=null,b.measure=fe.measure,fe.built):ti(y,b)}function lo(y,b){var fe=b.text.className,ue=xo(y,b);b.text==b.node&&(b.node=ue.pre),b.text.parentNode.replaceChild(ue.pre,b.text),b.text=ue.pre,ue.bgClass!=b.bgClass||ue.textClass!=b.textClass?(b.bgClass=ue.bgClass,b.textClass=ue.textClass,vn(y,b)):fe&&(b.text.className=fe)}function vn(y,b){ri(y,b),b.line.wrapClass?di(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var fe=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=fe||""}function An(y,b,fe,ue){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var we=di(b);b.gutterBackground=Ee("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(y.options.fixedGutter?ue.fixedPos:-ue.gutterTotalWidth)+"px; width: "+ue.gutterTotalWidth+"px"),y.display.input.setUneditable(b.gutterBackground),we.insertBefore(b.gutterBackground,b.text)}var He=b.line.gutterMarkers;if(y.options.lineNumbers||He){var tt=di(b),ut=b.gutter=Ee("div",null,"CodeMirror-gutter-wrapper","left: "+(y.options.fixedGutter?ue.fixedPos:-ue.gutterTotalWidth)+"px");if(y.display.input.setUneditable(ut),tt.insertBefore(ut,b.text),b.line.gutterClass&&(ut.className+=" "+b.line.gutterClass),y.options.lineNumbers&&(!He||!He["CodeMirror-linenumbers"])&&(b.lineNumber=ut.appendChild(Ee("div",kt(y.options,fe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ue.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+y.display.lineNumInnerWidth+"px"))),He)for(var dt=0;dt<y.display.gutterSpecs.length;++dt){var mt=y.display.gutterSpecs[dt].className,Wt=He.hasOwnProperty(mt)&&He[mt];Wt&&ut.appendChild(Ee("div",[Wt],"CodeMirror-gutter-elt","left: "+ue.gutterLeft[mt]+"px; width: "+ue.gutterWidth[mt]+"px"))}}}function wn(y,b,fe){b.alignable&&(b.alignable=null);for(var ue=Me("CodeMirror-linewidget"),we=b.node.firstChild,He=void 0;we;we=He)He=we.nextSibling,ue.test(we.className)&&b.node.removeChild(we);Un(y,b,fe)}function Cn(y,b,fe,ue){var we=xo(y,b);return b.text=b.node=we.pre,we.bgClass&&(b.bgClass=we.bgClass),we.textClass&&(b.textClass=we.textClass),vn(y,b),An(y,b,fe,ue),Un(y,b,ue),b.node}function Un(y,b,fe){if(Xn(y,b.line,b,fe,!0),b.rest)for(var ue=0;ue<b.rest.length;ue++)Xn(y,b.rest[ue],b,fe,!1)}function Xn(y,b,fe,ue,we){if(b.widgets)for(var He=di(fe),tt=0,ut=b.widgets;tt<ut.length;++tt){var dt=ut[tt],mt=Ee("div",[dt.node],"CodeMirror-linewidget"+(dt.className?" "+dt.className:""));dt.handleMouseEvents||mt.setAttribute("cm-ignore-events","true"),Vi(dt,mt,fe,ue),y.display.input.setUneditable(mt),we&&dt.above?He.insertBefore(mt,fe.gutter||fe.text):He.appendChild(mt),Pn(dt,"redraw")}}function Vi(y,b,fe,ue){if(y.noHScroll){(fe.alignable||(fe.alignable=[])).push(b);var we=ue.wrapperWidth;b.style.left=ue.fixedPos+"px",y.coverGutter||(we-=ue.gutterTotalWidth,b.style.paddingLeft=ue.gutterTotalWidth+"px"),b.style.width=we+"px"}y.coverGutter&&(b.style.zIndex=5,b.style.position="relative",y.noHScroll||(b.style.marginLeft=-ue.gutterTotalWidth+"px"))}function Oi(y){if(y.height!=null)return y.height;var b=y.doc.cm;if(!b)return 0;if(!Le(document.body,y.node)){var fe="position: relative;";y.coverGutter&&(fe+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),y.noHScroll&&(fe+="width: "+b.display.wrapper.clientWidth+"px;"),Ce(b.display.measure,Ee("div",[y.node],null,fe))}return y.height=y.node.parentNode.offsetHeight}function gi(y,b){for(var fe=Pt(b);fe!=y.wrapper;fe=fe.parentNode)if(!fe||fe.nodeType==1&&fe.getAttribute("cm-ignore-events")=="true"||fe.parentNode==y.sizer&&fe!=y.mover)return!0}function ni(y){return y.lineSpace.offsetTop}function $i(y){return y.mover.offsetHeight-y.lineSpace.offsetHeight}function eo(y){if(y.cachedPaddingH)return y.cachedPaddingH;var b=Ce(y.measure,Ee("pre","x","CodeMirror-line-like")),fe=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,ue={left:parseInt(fe.paddingLeft),right:parseInt(fe.paddingRight)};return!isNaN(ue.left)&&!isNaN(ue.right)&&(y.cachedPaddingH=ue),ue}function Li(y){return rt-y.display.nativeBarWidth}function to(y){return y.display.scroller.clientWidth-Li(y)-y.display.barWidth}function io(y){return y.display.scroller.clientHeight-Li(y)-y.display.barHeight}function Xi(y,b,fe){var ue=y.options.lineWrapping,we=ue&&to(y);if(!b.measure.heights||ue&&b.measure.width!=we){var He=b.measure.heights=[];if(ue){b.measure.width=we;for(var tt=b.text.firstChild.getClientRects(),ut=0;ut<tt.length-1;ut++){var dt=tt[ut],mt=tt[ut+1];Math.abs(dt.bottom-mt.bottom)>2&&He.push((dt.bottom+mt.top)/2-fe.top)}}He.push(fe.bottom-fe.top)}}function Do(y,b,fe){if(y.line==b)return{map:y.measure.map,cache:y.measure.cache};for(var ue=0;ue<y.rest.length;ue++)if(y.rest[ue]==b)return{map:y.measure.maps[ue],cache:y.measure.caches[ue]};for(var we=0;we<y.rest.length;we++)if(It(y.rest[we])>fe)return{map:y.measure.maps[we],cache:y.measure.caches[we],before:!0}}function $a(y,b){b=pr(b);var fe=It(b),ue=y.display.externalMeasured=new Ki(y.doc,b,fe);ue.lineN=fe;var we=ue.built=ti(y,ue);return ue.text=we.pre,Ce(y.display.lineMeasure,we.pre),ue}function ya(y,b,fe,ue){return Zi(y,uo(y,b),fe,ue)}function ro(y,b){if(b>=y.display.viewFrom&&b<y.display.viewTo)return y.display.view[Co(y,b)];var fe=y.display.externalMeasured;if(fe&&b>=fe.lineN&&b<fe.lineN+fe.size)return fe}function uo(y,b){var fe=It(b),ue=ro(y,fe);ue&&!ue.text?ue=null:ue&&ue.changes&&(ji(y,ue,fe,co(y)),y.curOp.forceUpdate=!0),ue||(ue=$a(y,b));var we=Do(ue,b,fe);return{line:b,view:ue,rect:null,map:we.map,cache:we.cache,before:we.before,hasHeights:!1}}function Zi(y,b,fe,ue,we){b.before&&(fe=-1);var He=fe+(ue||""),tt;return b.cache.hasOwnProperty(He)?tt=b.cache[He]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(Xi(y,b.view,b.rect),b.hasHeights=!0),tt=wa(y,b,fe,ue),tt.bogus||(b.cache[He]=tt)),{left:tt.left,right:tt.right,top:we?tt.rtop:tt.top,bottom:we?tt.rbottom:tt.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(y,b,fe){for(var ue,we,He,tt,ut,dt,mt=0;mt<y.length;mt+=3)if(ut=y[mt],dt=y[mt+1],b<ut?(we=0,He=1,tt="left"):b<dt?(we=b-ut,He=we+1):(mt==y.length-3||b==dt&&y[mt+3]>b)&&(He=dt-ut,we=He-1,b>=dt&&(tt="right")),we!=null){if(ue=y[mt+2],ut==dt&&fe==(ue.insertLeft?"left":"right")&&(tt=fe),fe=="left"&&we==0)for(;mt&&y[mt-2]==y[mt-3]&&y[mt-1].insertLeft;)ue=y[(mt-=3)+2],tt="left";if(fe=="right"&&we==dt-ut)for(;mt<y.length-3&&y[mt+3]==y[mt+4]&&!y[mt+5].insertLeft;)ue=y[(mt+=3)+2],tt="right";break}return{node:ue,start:we,end:He,collapse:tt,coverStart:ut,coverEnd:dt}}function Za(y,b){var fe=ba;if(b=="left")for(var ue=0;ue<y.length&&(fe=y[ue]).left==fe.right;ue++);else for(var we=y.length-1;we>=0&&(fe=y[we]).left==fe.right;we--);return fe}function wa(y,b,fe,ue){var we=xa(b.map,fe,ue),He=we.node,tt=we.start,ut=we.end,dt=we.collapse,mt;if(He.nodeType==3){for(var Wt=0;Wt<4;Wt++){for(;tt&&Oe(b.line.text.charAt(we.coverStart+tt));)--tt;for(;we.coverStart+ut<we.coverEnd&&Oe(b.line.text.charAt(we.coverStart+ut));)++ut;if(be&&z<9&&tt==0&&ut==we.coverEnd-we.coverStart?mt=He.parentNode.getBoundingClientRect():mt=Za(ke(He,tt,ut).getClientRects(),ue),mt.left||mt.right||tt==0)break;ut=tt,tt=tt-1,dt="right"}be&&z<11&&(mt=Ga(y.display.measure,mt))}else{tt>0&&(dt=ue="right");var Zt;y.options.lineWrapping&&(Zt=He.getClientRects()).length>1?mt=Zt[ue=="right"?Zt.length-1:0]:mt=He.getBoundingClientRect()}if(be&&z<9&&!tt&&(!mt||!mt.left&&!mt.right)){var ir=He.parentNode.getClientRects()[0];ir?mt={left:ir.left,right:ir.left+Ji(y.display),top:ir.top,bottom:ir.bottom}:mt=ba}for(var tr=mt.top-b.rect.top,Sr=mt.bottom-b.rect.top,Mr=(tr+Sr)/2,Hr=b.view.measure.heights,Xr=0;Xr<Hr.length-1&&!(Mr<Hr[Xr]);Xr++);var rn=Xr?Hr[Xr-1]:0,Yr=Hr[Xr],an={left:(dt=="right"?mt.right:mt.left)-b.rect.left,right:(dt=="left"?mt.left:mt.right)-b.rect.left,top:rn,bottom:Yr};return!mt.left&&!mt.right&&(an.bogus=!0),y.options.singleCursorHeightPerLine||(an.rtop=tr,an.rbottom=Sr),an}function Ga(y,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Jt(y))return b;var fe=screen.logicalXDPI/screen.deviceXDPI,ue=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*fe,right:b.right*fe,top:b.top*ue,bottom:b.bottom*ue}}function Ko(y){if(y.measure&&(y.measure.cache={},y.measure.heights=null,y.rest))for(var b=0;b<y.rest.length;b++)y.measure.caches[b]={}}function Vo(y){y.display.externalMeasure=null,Pe(y.display.lineMeasure);for(var b=0;b<y.display.view.length;b++)Ko(y.display.view[b])}function wo(y){Vo(y),y.display.cachedCharWidth=y.display.cachedTextHeight=y.display.cachedPaddingH=null,y.options.lineWrapping||(y.display.maxLineChanged=!0),y.display.lineNumChars=null}function Xo(){return oe&&ae?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return oe&&ae?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yo(y){var b=0;if(y.widgets)for(var fe=0;fe<y.widgets.length;++fe)y.widgets[fe].above&&(b+=Oi(y.widgets[fe]));return b}function Po(y,b,fe,ue,we){if(!we){var He=Yo(b);fe.top+=He,fe.bottom+=He}if(ue=="line")return fe;ue||(ue="local");var tt=cn(b);if(ue=="local"?tt+=ni(y.display):tt-=y.display.viewOffset,ue=="page"||ue=="window"){var ut=y.display.lineSpace.getBoundingClientRect();tt+=ut.top+(ue=="window"?0:Sa());var dt=ut.left+(ue=="window"?0:Xo());fe.left+=dt,fe.right+=dt}return fe.top+=tt,fe.bottom+=tt,fe}function Ca(y,b,fe){if(fe=="div")return b;var ue=b.left,we=b.top;if(fe=="page")ue-=Xo(),we-=Sa();else if(fe=="local"||!fe){var He=y.display.sizer.getBoundingClientRect();ue+=He.left,we+=He.top}var tt=y.display.lineSpace.getBoundingClientRect();return{left:ue-tt.left,top:we-tt.top}}function ko(y,b,fe,ue,we){return ue||(ue=qt(y.doc,b.line)),Po(y,ue,ya(y,ue,b.ch,we),fe)}function Ii(y,b,fe,ue,we,He){ue=ue||qt(y.doc,b.line),we||(we=uo(y,ue));function tt(Sr,Mr){var Hr=Zi(y,we,Sr,Mr?"right":"left",He);return Mr?Hr.left=Hr.right:Hr.right=Hr.left,Po(y,ue,Hr,fe)}var ut=Tt(ue,y.doc.direction),dt=b.ch,mt=b.sticky;if(dt>=ue.text.length?(dt=ue.text.length,mt="before"):dt<=0&&(dt=0,mt="after"),!ut)return tt(mt=="before"?dt-1:dt,mt=="before");function Wt(Sr,Mr,Hr){var Xr=ut[Mr],rn=Xr.level==1;return tt(Hr?Sr-1:Sr,rn!=Hr)}var Zt=lt(ut,dt,mt),ir=st,tr=Wt(dt,Zt,mt=="before");return ir!=null&&(tr.other=Wt(dt,ir,mt!="before")),tr}function Hn(y,b){var fe=0;b=Nt(y.doc,b),y.options.lineWrapping||(fe=Ji(y.display)*b.ch);var ue=qt(y.doc,b.line),we=cn(ue)+ni(y.display);return{left:fe,right:fe,top:we,bottom:we+ue.height}}function In(y,b,fe,ue,we){var He=wt(y,b,fe);return He.xRel=we,ue&&(He.outside=ue),He}function yi(y,b,fe){var ue=y.doc;if(fe+=y.display.viewOffset,fe<0)return In(ue.first,0,null,-1,-1);var we=Ft(ue,fe),He=ue.first+ue.size-1;if(we>He)return In(ue.first+ue.size-1,qt(ue,He).text.length,null,1,1);b<0&&(b=0);for(var tt=qt(ue,we);;){var ut=Yi(y,tt,we,b,fe),dt=Ar(tt,ut.ch+(ut.xRel>0||ut.outside>0?1:0));if(!dt)return ut;var mt=dt.find(1);if(mt.line==we)return mt;tt=qt(ue,we=mt.line)}}function wi(y,b,fe,ue){ue-=Yo(b);var we=b.text.length,He=Ue(function(tt){return Zi(y,fe,tt-1).bottom<=ue},we,0);return we=Ue(function(tt){return Zi(y,fe,tt).top>ue},He,we),{begin:He,end:we}}function ii(y,b,fe,ue){fe||(fe=uo(y,b));var we=Po(y,b,Zi(y,fe,ue),"line").top;return wi(y,b,fe,we)}function ci(y,b,fe,ue){return y.bottom<=fe?!1:y.top>fe?!0:(ue?y.left:y.right)>b}function Yi(y,b,fe,ue,we){we-=cn(b);var He=uo(y,b),tt=Yo(b),ut=0,dt=b.text.length,mt=!0,Wt=Tt(b,y.doc.direction);if(Wt){var Zt=(y.options.lineWrapping?oo:Gi)(y,b,fe,He,Wt,ue,we);mt=Zt.level!=1,ut=mt?Zt.from:Zt.to-1,dt=mt?Zt.to:Zt.from-1}var ir=null,tr=null,Sr=Ue(function(gn){var hn=Zi(y,He,gn);return hn.top+=tt,hn.bottom+=tt,ci(hn,ue,we,!1)?(hn.top<=we&&hn.left<=ue&&(ir=gn,tr=hn),!0):!1},ut,dt),Mr,Hr,Xr=!1;if(tr){var rn=ue-tr.left<tr.right-ue,Yr=rn==mt;Sr=ir+(Yr?0:1),Hr=Yr?"after":"before",Mr=rn?tr.left:tr.right}else{!mt&&(Sr==dt||Sr==ut)&&Sr++,Hr=Sr==0?"after":Sr==b.text.length?"before":Zi(y,He,Sr-(mt?1:0)).bottom+tt<=we==mt?"after":"before";var an=Ii(y,wt(fe,Sr,Hr),"line",b,He);Mr=an.left,Xr=we<an.top?-1:we>=an.bottom?1:0}return Sr=We(b.text,Sr,1),In(fe,Sr,Hr,Xr,ue-Mr)}function Gi(y,b,fe,ue,we,He,tt){var ut=Ue(function(Zt){var ir=we[Zt],tr=ir.level!=1;return ci(Ii(y,wt(fe,tr?ir.to:ir.from,tr?"before":"after"),"line",b,ue),He,tt,!0)},0,we.length-1),dt=we[ut];if(ut>0){var mt=dt.level!=1,Wt=Ii(y,wt(fe,mt?dt.from:dt.to,mt?"after":"before"),"line",b,ue);ci(Wt,He,tt,!0)&&Wt.top>tt&&(dt=we[ut-1])}return dt}function oo(y,b,fe,ue,we,He,tt){var ut=wi(y,b,ue,tt),dt=ut.begin,mt=ut.end;/\s/.test(b.text.charAt(mt-1))&&mt--;for(var Wt=null,Zt=null,ir=0;ir<we.length;ir++){var tr=we[ir];if(!(tr.from>=mt||tr.to<=dt)){var Sr=tr.level!=1,Mr=Zi(y,ue,Sr?Math.min(mt,tr.to)-1:Math.max(dt,tr.from)).right,Hr=Mr<He?He-Mr+1e9:Mr-He;(!Wt||Zt>Hr)&&(Wt=tr,Zt=Hr)}}return Wt||(Wt=we[we.length-1]),Wt.from<dt&&(Wt={from:dt,to:Wt.to,level:Wt.level}),Wt.to>mt&&(Wt={from:Wt.from,to:mt,level:Wt.level}),Wt}var Fi;function _i(y){if(y.cachedTextHeight!=null)return y.cachedTextHeight;if(Fi==null){Fi=Ee("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)Fi.appendChild(document.createTextNode("x")),Fi.appendChild(Ee("br"));Fi.appendChild(document.createTextNode("x"))}Ce(y.measure,Fi);var fe=Fi.offsetHeight/50;return fe>3&&(y.cachedTextHeight=fe),Pe(y.measure),fe||1}function Ji(y){if(y.cachedCharWidth!=null)return y.cachedCharWidth;var b=Ee("span","xxxxxxxxxx"),fe=Ee("pre",[b],"CodeMirror-line-like");Ce(y.measure,fe);var ue=b.getBoundingClientRect(),we=(ue.right-ue.left)/10;return we>2&&(y.cachedCharWidth=we),we||10}function co(y){for(var b=y.display,fe={},ue={},we=b.gutters.clientLeft,He=b.gutters.firstChild,tt=0;He;He=He.nextSibling,++tt){var ut=y.display.gutterSpecs[tt].className;fe[ut]=He.offsetLeft+He.clientLeft+we,ue[ut]=He.clientWidth}return{fixedPos:Ka(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:fe,gutterWidth:ue,wrapperWidth:b.wrapper.clientWidth}}function Ka(y){return y.scroller.getBoundingClientRect().left-y.sizer.getBoundingClientRect().left}function ws(y){var b=_i(y.display),fe=y.options.lineWrapping,ue=fe&&Math.max(5,y.display.scroller.clientWidth/Ji(y.display)-3);return function(we){if(kr(y.doc,we))return 0;var He=0;if(we.widgets)for(var tt=0;tt<we.widgets.length;tt++)we.widgets[tt].height&&(He+=we.widgets[tt].height);return fe?He+(Math.ceil(we.text.length/ue)||1)*b:He+b}}function Va(y){var b=y.doc,fe=ws(y);b.iter(function(ue){var we=fe(ue);we!=ue.height&&Tr(ue,we)})}function So(y,b,fe,ue){var we=y.display;if(!fe&&Pt(b).getAttribute("cm-not-content")=="true")return null;var He,tt,ut=we.lineSpace.getBoundingClientRect();try{He=b.clientX-ut.left,tt=b.clientY-ut.top}catch(Zt){return null}var dt=yi(y,He,tt),mt;if(ue&&dt.xRel>0&&(mt=qt(y.doc,dt.line).text).length==dt.ch){var Wt=Fe(mt,mt.length,y.options.tabSize)-mt.length;dt=wt(dt.line,Math.max(0,Math.round((He-eo(y.display).left)/Ji(y.display))-Wt))}return dt}function Co(y,b){if(b>=y.display.viewTo||(b-=y.display.viewFrom,b<0))return null;for(var fe=y.display.view,ue=0;ue<fe.length;ue++)if(b-=fe[ue].size,b<0)return ue}function Di(y,b,fe,ue){b==null&&(b=y.doc.first),fe==null&&(fe=y.doc.first+y.doc.size),ue||(ue=0);var we=y.display;if(ue&&fe<we.viewTo&&(we.updateLineNumbers==null||we.updateLineNumbers>b)&&(we.updateLineNumbers=b),y.curOp.viewChanged=!0,b>=we.viewTo)Gr&&wr(y.doc,b)<we.viewTo&&ho(y);else if(fe<=we.viewFrom)Gr&&mr(y.doc,fe+ue)>we.viewFrom?ho(y):(we.viewFrom+=ue,we.viewTo+=ue);else if(b<=we.viewFrom&&fe>=we.viewTo)ho(y);else if(b<=we.viewFrom){var He=Ea(y,fe,fe+ue,1);He?(we.view=we.view.slice(He.index),we.viewFrom=He.lineN,we.viewTo+=ue):ho(y)}else if(fe>=we.viewTo){var tt=Ea(y,b,b,-1);tt?(we.view=we.view.slice(0,tt.index),we.viewTo=tt.lineN):ho(y)}else{var ut=Ea(y,b,b,-1),dt=Ea(y,fe,fe+ue,1);ut&&dt?(we.view=we.view.slice(0,ut.index).concat(qn(y,ut.lineN,dt.lineN)).concat(we.view.slice(dt.index)),we.viewTo+=ue):ho(y)}var mt=we.externalMeasured;mt&&(fe<mt.lineN?mt.lineN+=ue:b<mt.lineN+mt.size&&(we.externalMeasured=null))}function fo(y,b,fe){y.curOp.viewChanged=!0;var ue=y.display,we=y.display.externalMeasured;if(we&&b>=we.lineN&&b<we.lineN+we.size&&(ue.externalMeasured=null),!(b<ue.viewFrom||b>=ue.viewTo)){var He=ue.view[Co(y,b)];if(He.node!=null){var tt=He.changes||(He.changes=[]);it(tt,fe)==-1&&tt.push(fe)}}}function ho(y){y.display.viewFrom=y.display.viewTo=y.doc.first,y.display.view=[],y.display.viewOffset=0}function Ea(y,b,fe,ue){var we=Co(y,b),He,tt=y.display.view;if(!Gr||fe==y.doc.first+y.doc.size)return{index:we,lineN:fe};for(var ut=y.display.viewFrom,dt=0;dt<we;dt++)ut+=tt[dt].size;if(ut!=b){if(ue>0){if(we==tt.length-1)return null;He=ut+tt[we].size-b,we++}else He=ut-b;b+=He,fe+=He}for(;wr(y.doc,fe)!=fe;){if(we==(ue<0?0:tt.length-1))return null;fe+=ue*tt[we-(ue<0?1:0)].size,we+=ue}return{index:we,lineN:fe}}function Wl(y,b,fe){var ue=y.display,we=ue.view;we.length==0||b>=ue.viewTo||fe<=ue.viewFrom?(ue.view=qn(y,b,fe),ue.viewFrom=b):(ue.viewFrom>b?ue.view=qn(y,b,ue.viewFrom).concat(ue.view):ue.viewFrom<b&&(ue.view=ue.view.slice(Co(y,b))),ue.viewFrom=b,ue.viewTo<fe?ue.view=ue.view.concat(qn(y,ue.viewTo,fe)):ue.viewTo>fe&&(ue.view=ue.view.slice(0,Co(y,fe)))),ue.viewTo=fe}function Ss(y){for(var b=y.display.view,fe=0,ue=0;ue<b.length;ue++){var we=b[ue];!we.hidden&&(!we.node||we.changes)&&++fe}return fe}function Jo(y){y.display.input.showSelection(y.display.input.prepareSelection())}function Cs(y,b){b===void 0&&(b=!0);for(var fe=y.doc,ue={},we=ue.cursors=document.createDocumentFragment(),He=ue.selection=document.createDocumentFragment(),tt=0;tt<fe.sel.ranges.length;tt++)if(!(!b&&tt==fe.sel.primIndex)){var ut=fe.sel.ranges[tt];if(!(ut.from().line>=y.display.viewTo||ut.to().line<y.display.viewFrom)){var dt=ut.empty();(dt||y.options.showCursorWhenSelecting)&&Es(y,ut.head,we),dt||zl(y,ut,He)}}return ue}function Es(y,b,fe){var ue=Ii(y,b,"div",null,null,!y.options.singleCursorHeightPerLine),we=fe.appendChild(Ee("div","\xA0","CodeMirror-cursor"));if(we.style.left=ue.left+"px",we.style.top=ue.top+"px",we.style.height=Math.max(0,ue.bottom-ue.top)*y.options.cursorHeight+"px",ue.other){var He=fe.appendChild(Ee("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));He.style.display="",He.style.left=ue.other.left+"px",He.style.top=ue.other.top+"px",He.style.height=(ue.other.bottom-ue.other.top)*.85+"px"}}function Oa(y,b){return y.top-b.top||y.left-b.left}function zl(y,b,fe){var ue=y.display,we=y.doc,He=document.createDocumentFragment(),tt=eo(y.display),ut=tt.left,dt=Math.max(ue.sizerWidth,to(y)-ue.sizer.offsetLeft)-tt.right,mt=we.direction=="ltr";function Wt(Yr,an,gn,hn){an<0&&(an=0),an=Math.round(an),hn=Math.round(hn),He.appendChild(Ee("div",null,"CodeMirror-selected","position: absolute; left: "+Yr+`px;
|
|
|
top: `+an+"px; width: "+(gn==null?dt-Yr:gn)+`px;
|
|
|
height: `+(hn-an)+"px"))}function Zt(Yr,an,gn){var hn=qt(we,Yr),kn=hn.text.length,Yn,mi;function Qn(ai,Mi){return ko(y,wt(Yr,ai),"div",hn,Mi)}function zi(ai,Mi,bi){var fi=ii(y,hn,null,ai),si=Mi=="ltr"==(bi=="after")?"left":"right",ei=bi=="after"?fi.begin:fi.end-(/\s/.test(hn.text.charAt(fi.end-1))?2:1);return Qn(ei,si)[si]}var ki=Tt(hn,we.direction);return Ye(ki,an||0,gn==null?kn:gn,function(ai,Mi,bi,fi){var si=bi=="ltr",ei=Qn(ai,si?"left":"right"),Ri=Qn(Mi-1,si?"right":"left"),Zo=an==null&&ai==0,bo=gn==null&&Mi==kn,Ci=fi==0,no=!ki||fi==ki.length-1;if(Ri.top-ei.top<=3){var vi=(mt?Zo:bo)&&Ci,bs=(mt?bo:Zo)&&no,so=vi?ut:(si?ei:Ri).left,jo=bs?dt:(si?Ri:ei).right;Wt(so,ei.top,jo-so,ei.bottom)}else{var Io,Ai,Go,xs;si?(Io=mt&&Zo&&Ci?ut:ei.left,Ai=mt?dt:zi(ai,bi,"before"),Go=mt?ut:zi(Mi,bi,"after"),xs=mt&&bo&&no?dt:Ri.right):(Io=mt?zi(ai,bi,"before"):ut,Ai=!mt&&Zo&&Ci?dt:ei.right,Go=!mt&&bo&&no?ut:Ri.left,xs=mt?zi(Mi,bi,"after"):dt),Wt(Io,ei.top,Ai-Io,ei.bottom),ei.bottom<Ri.top&&Wt(ut,ei.bottom,null,Ri.top),Wt(Go,Ri.top,xs-Go,Ri.bottom)}(!Yn||Oa(ei,Yn)<0)&&(Yn=ei),Oa(Ri,Yn)<0&&(Yn=Ri),(!mi||Oa(ei,mi)<0)&&(mi=ei),Oa(Ri,mi)<0&&(mi=Ri)}),{start:Yn,end:mi}}var ir=b.from(),tr=b.to();if(ir.line==tr.line)Zt(ir.line,ir.ch,tr.ch);else{var Sr=qt(we,ir.line),Mr=qt(we,tr.line),Hr=pr(Sr)==pr(Mr),Xr=Zt(ir.line,ir.ch,Hr?Sr.text.length+1:null).end,rn=Zt(tr.line,Hr?0:null,tr.ch).start;Hr&&(Xr.top<rn.top-2?(Wt(Xr.right,Xr.top,null,Xr.bottom),Wt(ut,rn.top,rn.left,rn.bottom)):Wt(Xr.right,Xr.top,rn.left-Xr.right,Xr.bottom)),Xr.bottom<rn.top&&Wt(ut,Xr.bottom,null,rn.top)}fe.appendChild(He)}function Xa(y){if(y.state.focused){var b=y.display;clearInterval(b.blinker);var fe=!0;b.cursorDiv.style.visibility="",y.options.cursorBlinkRate>0?b.blinker=setInterval(function(){y.hasFocus()||Mo(y),b.cursorDiv.style.visibility=(fe=!fe)?"":"hidden"},y.options.cursorBlinkRate):y.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function Os(y){y.state.focused||(y.display.input.focus(),Ya(y))}function Ts(y){y.state.delayingBlurEvent=!0,setTimeout(function(){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1,Mo(y))},100)}function Ya(y,b){y.state.delayingBlurEvent&&(y.state.delayingBlurEvent=!1),y.options.readOnly!="nocursor"&&(y.state.focused||(Et(y,"focus",y,b),y.state.focused=!0,Se(y.display.wrapper,"CodeMirror-focused"),!y.curOp&&y.display.selForContextMenu!=y.doc.sel&&(y.display.input.reset(),E&&setTimeout(function(){return y.display.input.reset(!0)},20)),y.display.input.receivedFocus()),Xa(y))}function Mo(y,b){y.state.delayingBlurEvent||(y.state.focused&&(Et(y,"blur",y,b),y.state.focused=!1,Be(y.display.wrapper,"CodeMirror-focused")),clearInterval(y.display.blinker),setTimeout(function(){y.state.focused||(y.display.shift=!1)},150))}function Ta(y){for(var b=y.display,fe=b.lineDiv.offsetTop,ue=0;ue<b.view.length;ue++){var we=b.view[ue],He=y.options.lineWrapping,tt=void 0,ut=0;if(!we.hidden){if(be&&z<8){var dt=we.node.offsetTop+we.node.offsetHeight;tt=dt-fe,fe=dt}else{var mt=we.node.getBoundingClientRect();tt=mt.bottom-mt.top,!He&&we.text.firstChild&&(ut=we.text.firstChild.getBoundingClientRect().right-mt.left-1)}var Wt=we.line.height-tt;if((Wt>.005||Wt<-.005)&&(Tr(we.line,tt),As(we.line),we.rest))for(var Zt=0;Zt<we.rest.length;Zt++)As(we.rest[Zt]);if(ut>y.display.sizerWidth){var ir=Math.ceil(ut/Ji(y.display));ir>y.display.maxLineLength&&(y.display.maxLineLength=ir,y.display.maxLine=we.line,y.display.maxLineChanged=!0)}}}}function As(y){if(y.widgets)for(var b=0;b<y.widgets.length;++b){var fe=y.widgets[b],ue=fe.node.parentNode;ue&&(fe.height=ue.offsetHeight)}}function Aa(y,b,fe){var ue=fe&&fe.top!=null?Math.max(0,fe.top):y.scroller.scrollTop;ue=Math.floor(ue-ni(y));var we=fe&&fe.bottom!=null?fe.bottom:ue+y.wrapper.clientHeight,He=Ft(b,ue),tt=Ft(b,we);if(fe&&fe.ensure){var ut=fe.ensure.from.line,dt=fe.ensure.to.line;ut<He?(He=ut,tt=Ft(b,cn(qt(b,ut))+y.wrapper.clientHeight)):Math.min(dt,b.lastLine())>=tt&&(He=Ft(b,cn(qt(b,dt))-y.wrapper.clientHeight),tt=dt)}return{from:He,to:Math.max(tt,He+1)}}function Hl(y,b){if(!xt(y,"scrollCursorIntoView")){var fe=y.display,ue=fe.sizer.getBoundingClientRect(),we=null;if(b.top+ue.top<0?we=!0:b.bottom+ue.top>(window.innerHeight||document.documentElement.clientHeight)&&(we=!1),we!=null&&!ne){var He=Ee("div","\u200B",null,`position: absolute;
|
|
|
top: `+(b.top-fe.viewOffset-ni(y.display))+`px;
|
|
|
height: `+(b.bottom-b.top+Li(y)+fe.barHeight)+`px;
|
|
|
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");y.display.lineSpace.appendChild(He),He.scrollIntoView(we),y.display.lineSpace.removeChild(He)}}}function Ul(y,b,fe,ue){ue==null&&(ue=0);var we;!y.options.lineWrapping&&b==fe&&(b=b.ch?wt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,fe=b.sticky=="before"?wt(b.line,b.ch+1,"before"):b);for(var He=0;He<5;He++){var tt=!1,ut=Ii(y,b),dt=!fe||fe==b?ut:Ii(y,fe);we={left:Math.min(ut.left,dt.left),top:Math.min(ut.top,dt.top)-ue,right:Math.max(ut.left,dt.left),bottom:Math.max(ut.bottom,dt.bottom)+ue};var mt=Ja(y,we),Wt=y.doc.scrollTop,Zt=y.doc.scrollLeft;if(mt.scrollTop!=null&&(qo(y,mt.scrollTop),Math.abs(y.doc.scrollTop-Wt)>1&&(tt=!0)),mt.scrollLeft!=null&&(Eo(y,mt.scrollLeft),Math.abs(y.doc.scrollLeft-Zt)>1&&(tt=!0)),!tt)break}return we}function $l(y,b){var fe=Ja(y,b);fe.scrollTop!=null&&qo(y,fe.scrollTop),fe.scrollLeft!=null&&Eo(y,fe.scrollLeft)}function Ja(y,b){var fe=y.display,ue=_i(y.display);b.top<0&&(b.top=0);var we=y.curOp&&y.curOp.scrollTop!=null?y.curOp.scrollTop:fe.scroller.scrollTop,He=io(y),tt={};b.bottom-b.top>He&&(b.bottom=b.top+He);var ut=y.doc.height+$i(fe),dt=b.top<ue,mt=b.bottom>ut-ue;if(b.top<we)tt.scrollTop=dt?0:b.top;else if(b.bottom>we+He){var Wt=Math.min(b.top,(mt?ut:b.bottom)-He);Wt!=we&&(tt.scrollTop=Wt)}var Zt=y.options.fixedGutter?0:fe.gutters.offsetWidth,ir=y.curOp&&y.curOp.scrollLeft!=null?y.curOp.scrollLeft:fe.scroller.scrollLeft-Zt,tr=to(y)-fe.gutters.offsetWidth,Sr=b.right-b.left>tr;return Sr&&(b.right=b.left+tr),b.left<10?tt.scrollLeft=0:b.left<ir?tt.scrollLeft=Math.max(0,b.left+Zt-(Sr?0:10)):b.right>tr+ir-3&&(tt.scrollLeft=b.right+(Sr?0:10)-tr),tt}function Qa(y,b){b!=null&&(ja(y),y.curOp.scrollTop=(y.curOp.scrollTop==null?y.doc.scrollTop:y.curOp.scrollTop)+b)}function Ro(y){ja(y);var b=y.getCursor();y.curOp.scrollToPos={from:b,to:b,margin:y.options.cursorScrollMargin}}function Qo(y,b,fe){(b!=null||fe!=null)&&ja(y),b!=null&&(y.curOp.scrollLeft=b),fe!=null&&(y.curOp.scrollTop=fe)}function Zl(y,b){ja(y),y.curOp.scrollToPos=b}function ja(y){var b=y.curOp.scrollToPos;if(b){y.curOp.scrollToPos=null;var fe=Hn(y,b.from),ue=Hn(y,b.to);js(y,fe,ue,b.margin)}}function js(y,b,fe,ue){var we=Ja(y,{left:Math.min(b.left,fe.left),top:Math.min(b.top,fe.top)-ue,right:Math.max(b.right,fe.right),bottom:Math.max(b.bottom,fe.bottom)+ue});Qo(y,we.scrollLeft,we.scrollTop)}function qo(y,b){Math.abs(y.doc.scrollTop-b)<2||(ge||es(y,{top:b}),Is(y,b,!0),ge&&es(y),ra(y,100))}function Is(y,b,fe){b=Math.max(0,Math.min(y.display.scroller.scrollHeight-y.display.scroller.clientHeight,b)),!(y.display.scroller.scrollTop==b&&!fe)&&(y.doc.scrollTop=b,y.display.scrollbars.setScrollTop(b),y.display.scroller.scrollTop!=b&&(y.display.scroller.scrollTop=b))}function Eo(y,b,fe,ue){b=Math.max(0,Math.min(b,y.display.scroller.scrollWidth-y.display.scroller.clientWidth)),!((fe?b==y.doc.scrollLeft:Math.abs(y.doc.scrollLeft-b)<2)&&!ue)&&(y.doc.scrollLeft=b,Rs(y),y.display.scroller.scrollLeft!=b&&(y.display.scroller.scrollLeft=b),y.display.scrollbars.setScrollLeft(b))}function ea(y){var b=y.display,fe=b.gutters.offsetWidth,ue=Math.round(y.doc.height+$i(y.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:y.options.fixedGutter?fe:0,docHeight:ue,scrollHeight:ue+Li(y)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:fe}}var Oo=function(y,b,fe){this.cm=fe;var ue=this.vert=Ee("div",[Ee("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),we=this.horiz=Ee("div",[Ee("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ue.tabIndex=we.tabIndex=-1,y(ue),y(we),Ot(ue,"scroll",function(){ue.clientHeight&&b(ue.scrollTop,"vertical")}),Ot(we,"scroll",function(){we.clientWidth&&b(we.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&z<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Oo.prototype.update=function(y){var b=y.scrollWidth>y.clientWidth+1,fe=y.scrollHeight>y.clientHeight+1,ue=y.nativeBarWidth;if(fe){this.vert.style.display="block",this.vert.style.bottom=b?ue+"px":"0";var we=y.viewHeight-(b?ue:0);this.vert.firstChild.style.height=Math.max(0,y.scrollHeight-y.clientHeight+we)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=fe?ue+"px":"0",this.horiz.style.left=y.barLeft+"px";var He=y.viewWidth-y.barLeft-(fe?ue:0);this.horiz.firstChild.style.width=Math.max(0,y.scrollWidth-y.clientWidth+He)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&y.clientHeight>0&&(ue==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:fe?ue:0,bottom:b?ue:0}},Oo.prototype.setScrollLeft=function(y){this.horiz.scrollLeft!=y&&(this.horiz.scrollLeft=y),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Oo.prototype.setScrollTop=function(y){this.vert.scrollTop!=y&&(this.vert.scrollTop=y),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Oo.prototype.zeroWidthHack=function(){var y=ce&&!x?"12px":"18px";this.horiz.style.height=this.vert.style.width=y,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ke,this.disableVert=new Ke},Oo.prototype.enableZeroWidthBar=function(y,b,fe){y.style.pointerEvents="auto";function ue(){var we=y.getBoundingClientRect(),He=fe=="vert"?document.elementFromPoint(we.right-1,(we.top+we.bottom)/2):document.elementFromPoint((we.right+we.left)/2,we.bottom-1);He!=y?y.style.pointerEvents="none":b.set(1e3,ue)}b.set(1e3,ue)},Oo.prototype.clear=function(){var y=this.horiz.parentNode;y.removeChild(this.horiz),y.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(y,b){b||(b=ea(y));var fe=y.display.barWidth,ue=y.display.barHeight;Ds(y,b);for(var we=0;we<4&&fe!=y.display.barWidth||ue!=y.display.barHeight;we++)fe!=y.display.barWidth&&y.options.lineWrapping&&Ta(y),Ds(y,ea(y)),fe=y.display.barWidth,ue=y.display.barHeight}function Ds(y,b){var fe=y.display,ue=fe.scrollbars.update(b);fe.sizer.style.paddingRight=(fe.barWidth=ue.right)+"px",fe.sizer.style.paddingBottom=(fe.barHeight=ue.bottom)+"px",fe.heightForcer.style.borderBottom=ue.bottom+"px solid transparent",ue.right&&ue.bottom?(fe.scrollbarFiller.style.display="block",fe.scrollbarFiller.style.height=ue.bottom+"px",fe.scrollbarFiller.style.width=ue.right+"px"):fe.scrollbarFiller.style.display="",ue.bottom&&y.options.coverGutterNextToScrollbar&&y.options.fixedGutter?(fe.gutterFiller.style.display="block",fe.gutterFiller.style.height=ue.bottom+"px",fe.gutterFiller.style.width=b.gutterWidth+"px"):fe.gutterFiller.style.display=""}var Ps={native:Oo,null:ta};function ks(y){y.display.scrollbars&&(y.display.scrollbars.clear(),y.display.scrollbars.addClass&&Be(y.display.wrapper,y.display.scrollbars.addClass)),y.display.scrollbars=new Ps[y.options.scrollbarStyle](function(b){y.display.wrapper.insertBefore(b,y.display.scrollbarFiller),Ot(b,"mousedown",function(){y.state.focused&&setTimeout(function(){return y.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,fe){fe=="horizontal"?Eo(y,b):qo(y,b)},y),y.display.scrollbars.addClass&&Se(y.display.wrapper,y.display.scrollbars.addClass)}var Gl=0;function To(y){y.curOp={cm:y,viewChanged:!1,startHeight:y.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Gl},Fn(y.curOp)}function Ao(y){var b=y.curOp;b&&Sn(b,function(fe){for(var ue=0;ue<fe.ops.length;ue++)fe.ops[ue].cm.curOp=null;Kl(fe)})}function Kl(y){for(var b=y.ops,fe=0;fe<b.length;fe++)Vl(b[fe]);for(var ue=0;ue<b.length;ue++)Xl(b[ue]);for(var we=0;we<b.length;we++)Yl(b[we]);for(var He=0;He<b.length;He++)Jl(b[He]);for(var tt=0;tt<b.length;tt++)Ql(b[tt])}function Vl(y){var b=y.cm,fe=b.display;eu(b),y.updateMaxLine&&Tn(b),y.mustUpdate=y.viewChanged||y.forceUpdate||y.scrollTop!=null||y.scrollToPos&&(y.scrollToPos.from.line<fe.viewFrom||y.scrollToPos.to.line>=fe.viewTo)||fe.maxLineChanged&&b.options.lineWrapping,y.update=y.mustUpdate&&new Ia(b,y.mustUpdate&&{top:y.scrollTop,ensure:y.scrollToPos},y.forceUpdate)}function Xl(y){y.updatedDisplay=y.mustUpdate&&qa(y.cm,y.update)}function Yl(y){var b=y.cm,fe=b.display;y.updatedDisplay&&Ta(b),y.barMeasure=ea(b),fe.maxLineChanged&&!b.options.lineWrapping&&(y.adjustWidthTo=ya(b,fe.maxLine,fe.maxLine.text.length).left+3,b.display.sizerWidth=y.adjustWidthTo,y.barMeasure.scrollWidth=Math.max(fe.scroller.clientWidth,fe.sizer.offsetLeft+y.adjustWidthTo+Li(b)+b.display.barWidth),y.maxScrollLeft=Math.max(0,fe.sizer.offsetLeft+y.adjustWidthTo-to(b))),(y.updatedDisplay||y.selectionChanged)&&(y.preparedSelection=fe.input.prepareSelection())}function Jl(y){var b=y.cm;y.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=y.adjustWidthTo+"px",y.maxScrollLeft<b.doc.scrollLeft&&Eo(b,Math.min(b.display.scroller.scrollLeft,y.maxScrollLeft),!0),b.display.maxLineChanged=!1);var fe=y.focus&&y.focus==Ae();y.preparedSelection&&b.display.input.showSelection(y.preparedSelection,fe),(y.updatedDisplay||y.startHeight!=b.doc.height)&&No(b,y.barMeasure),y.updatedDisplay&&rs(b,y.barMeasure),y.selectionChanged&&Xa(b),b.state.focused&&y.updateInput&&b.display.input.reset(y.typing),fe&&Os(y.cm)}function Ql(y){var b=y.cm,fe=b.display,ue=b.doc;if(y.updatedDisplay&&Ms(b,y.update),fe.wheelStartX!=null&&(y.scrollTop!=null||y.scrollLeft!=null||y.scrollToPos)&&(fe.wheelStartX=fe.wheelStartY=null),y.scrollTop!=null&&Is(b,y.scrollTop,y.forceScroll),y.scrollLeft!=null&&Eo(b,y.scrollLeft,!0,!0),y.scrollToPos){var we=Ul(b,Nt(ue,y.scrollToPos.from),Nt(ue,y.scrollToPos.to),y.scrollToPos.margin);Hl(b,we)}var He=y.maybeHiddenMarkers,tt=y.maybeUnhiddenMarkers;if(He)for(var ut=0;ut<He.length;++ut)He[ut].lines.length||Et(He[ut],"hide");if(tt)for(var dt=0;dt<tt.length;++dt)tt[dt].lines.length&&Et(tt[dt],"unhide");fe.wrapper.offsetHeight&&(ue.scrollTop=b.display.scroller.scrollTop),y.changeObjs&&Et(b,"changes",b,y.changeObjs),y.update&&y.update.finish()}function Wi(y,b){if(y.curOp)return b();To(y);try{return b()}finally{Ao(y)}}function hi(y,b){return function(){if(y.curOp)return b.apply(y,arguments);To(y);try{return b.apply(y,arguments)}finally{Ao(y)}}}function Ti(y){return function(){if(this.curOp)return y.apply(this,arguments);To(this);try{return y.apply(this,arguments)}finally{Ao(this)}}}function pi(y){return function(){var b=this.cm;if(!b||b.curOp)return y.apply(this,arguments);To(b);try{return y.apply(this,arguments)}finally{Ao(b)}}}function ra(y,b){y.doc.highlightFrontier<y.display.viewTo&&y.state.highlight.set(b,Je(ql,y))}function ql(y){var b=y.doc;if(!(b.highlightFrontier>=y.display.viewTo)){var fe=+new Date+y.options.workTime,ue=Wr(y,b.highlightFrontier),we=[];b.iter(ue.line,Math.min(b.first+b.size,y.display.viewTo+500),function(He){if(ue.line>=y.display.viewFrom){var tt=He.styles,ut=He.text.length>y.options.maxHighlightLength?Lr(b.mode,ue.state):null,dt=dr(y,He,ue,!0);ut&&(ue.state=ut),He.styles=dt.styles;var mt=He.styleClasses,Wt=dt.classes;Wt?He.styleClasses=Wt:mt&&(He.styleClasses=null);for(var Zt=!tt||tt.length!=He.styles.length||mt!=Wt&&(!mt||!Wt||mt.bgClass!=Wt.bgClass||mt.textClass!=Wt.textClass),ir=0;!Zt&&ir<tt.length;++ir)Zt=tt[ir]!=He.styles[ir];Zt&&we.push(ue.line),He.stateAfter=ue.save(),ue.nextLine()}else He.text.length<=y.options.maxHighlightLength&&$r(y,He.text,ue),He.stateAfter=ue.line%5==0?ue.save():null,ue.nextLine();if(+new Date>fe)return ra(y,y.options.workDelay),!0}),b.highlightFrontier=ue.line,b.modeFrontier=Math.max(b.modeFrontier,ue.line),we.length&&Wi(y,function(){for(var He=0;He<we.length;He++)fo(y,we[He],"text")})}}var Ia=function(y,b,fe){var ue=y.display;this.viewport=b,this.visible=Aa(ue,y.doc,b),this.editorIsHidden=!ue.wrapper.offsetWidth,this.wrapperHeight=ue.wrapper.clientHeight,this.wrapperWidth=ue.wrapper.clientWidth,this.oldDisplayWidth=to(y),this.force=fe,this.dims=co(y),this.events=[]};Ia.prototype.signal=function(y,b){At(y,b)&&this.events.push(arguments)},Ia.prototype.finish=function(){for(var y=0;y<this.events.length;y++)Et.apply(null,this.events[y])};function eu(y){var b=y.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=Li(y)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=Li(y)+"px",b.scrollbarsClipped=!0)}function tu(y){if(y.hasFocus())return null;var b=Ae();if(!b||!Le(y.display.lineDiv,b))return null;var fe={activeElt:b};if(window.getSelection){var ue=window.getSelection();ue.anchorNode&&ue.extend&&Le(y.display.lineDiv,ue.anchorNode)&&(fe.anchorNode=ue.anchorNode,fe.anchorOffset=ue.anchorOffset,fe.focusNode=ue.focusNode,fe.focusOffset=ue.focusOffset)}return fe}function ru(y){if(!(!y||!y.activeElt||y.activeElt==Ae())&&(y.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(y.activeElt.nodeName)&&y.anchorNode&&Le(document.body,y.anchorNode)&&Le(document.body,y.focusNode))){var b=window.getSelection(),fe=document.createRange();fe.setEnd(y.anchorNode,y.anchorOffset),fe.collapse(!1),b.removeAllRanges(),b.addRange(fe),b.extend(y.focusNode,y.focusOffset)}}function qa(y,b){var fe=y.display,ue=y.doc;if(b.editorIsHidden)return ho(y),!1;if(!b.force&&b.visible.from>=fe.viewFrom&&b.visible.to<=fe.viewTo&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo)&&fe.renderedView==fe.view&&Ss(y)==0)return!1;Ns(y)&&(ho(y),b.dims=co(y));var we=ue.first+ue.size,He=Math.max(b.visible.from-y.options.viewportMargin,ue.first),tt=Math.min(we,b.visible.to+y.options.viewportMargin);fe.viewFrom<He&&He-fe.viewFrom<20&&(He=Math.max(ue.first,fe.viewFrom)),fe.viewTo>tt&&fe.viewTo-tt<20&&(tt=Math.min(we,fe.viewTo)),Gr&&(He=wr(y.doc,He),tt=mr(y.doc,tt));var ut=He!=fe.viewFrom||tt!=fe.viewTo||fe.lastWrapHeight!=b.wrapperHeight||fe.lastWrapWidth!=b.wrapperWidth;Wl(y,He,tt),fe.viewOffset=cn(qt(y.doc,fe.viewFrom)),y.display.mover.style.top=fe.viewOffset+"px";var dt=Ss(y);if(!ut&&dt==0&&!b.force&&fe.renderedView==fe.view&&(fe.updateLineNumbers==null||fe.updateLineNumbers>=fe.viewTo))return!1;var mt=tu(y);return dt>4&&(fe.lineDiv.style.display="none"),nu(y,fe.updateLineNumbers,b.dims),dt>4&&(fe.lineDiv.style.display=""),fe.renderedView=fe.view,ru(mt),Pe(fe.cursorDiv),Pe(fe.selectionDiv),fe.gutters.style.height=fe.sizer.style.minHeight=0,ut&&(fe.lastWrapHeight=b.wrapperHeight,fe.lastWrapWidth=b.wrapperWidth,ra(y,400)),fe.updateLineNumbers=null,!0}function Ms(y,b){for(var fe=b.viewport,ue=!0;;ue=!1){if(!ue||!y.options.lineWrapping||b.oldDisplayWidth==to(y)){if(fe&&fe.top!=null&&(fe={top:Math.min(y.doc.height+$i(y.display)-io(y),fe.top)}),b.visible=Aa(y.display,y.doc,fe),b.visible.from>=y.display.viewFrom&&b.visible.to<=y.display.viewTo)break}else ue&&(b.visible=Aa(y.display,y.doc,fe));if(!qa(y,b))break;Ta(y);var we=ea(y);Jo(y),No(y,we),rs(y,we),b.force=!1}b.signal(y,"update",y),(y.display.viewFrom!=y.display.reportedViewFrom||y.display.viewTo!=y.display.reportedViewTo)&&(b.signal(y,"viewportChange",y,y.display.viewFrom,y.display.viewTo),y.display.reportedViewFrom=y.display.viewFrom,y.display.reportedViewTo=y.display.viewTo)}function es(y,b){var fe=new Ia(y,b);if(qa(y,fe)){Ta(y),Ms(y,fe);var ue=ea(y);Jo(y),No(y,ue),rs(y,ue),fe.finish()}}function nu(y,b,fe){var ue=y.display,we=y.options.lineNumbers,He=ue.lineDiv,tt=He.firstChild;function ut(Sr){var Mr=Sr.nextSibling;return E&&ce&&y.display.currentWheelTarget==Sr?Sr.style.display="none":Sr.parentNode.removeChild(Sr),Mr}for(var dt=ue.view,mt=ue.viewFrom,Wt=0;Wt<dt.length;Wt++){var Zt=dt[Wt];if(!Zt.hidden)if(!Zt.node||Zt.node.parentNode!=He){var ir=Cn(y,Zt,mt,fe);He.insertBefore(ir,tt)}else{for(;tt!=Zt.node;)tt=ut(tt);var tr=we&&b!=null&&b<=mt&&Zt.lineNumber;Zt.changes&&(it(Zt.changes,"gutter")>-1&&(tr=!1),ji(y,Zt,mt,fe)),tr&&(Pe(Zt.lineNumber),Zt.lineNumber.appendChild(document.createTextNode(kt(y.options,mt)))),tt=Zt.node.nextSibling}mt+=Zt.size}for(;tt;)tt=ut(tt)}function ts(y){var b=y.gutters.offsetWidth;y.sizer.style.marginLeft=b+"px"}function rs(y,b){y.display.sizer.style.minHeight=b.docHeight+"px",y.display.heightForcer.style.top=b.docHeight+"px",y.display.gutters.style.height=b.docHeight+y.display.barHeight+Li(y)+"px"}function Rs(y){var b=y.display,fe=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!y.options.fixedGutter))){for(var ue=Ka(b)-b.scroller.scrollLeft+y.doc.scrollLeft,we=b.gutters.offsetWidth,He=ue+"px",tt=0;tt<fe.length;tt++)if(!fe[tt].hidden){y.options.fixedGutter&&(fe[tt].gutter&&(fe[tt].gutter.style.left=He),fe[tt].gutterBackground&&(fe[tt].gutterBackground.style.left=He));var ut=fe[tt].alignable;if(ut)for(var dt=0;dt<ut.length;dt++)ut[dt].style.left=He}y.options.fixedGutter&&(b.gutters.style.left=ue+we+"px")}}function Ns(y){if(!y.options.lineNumbers)return!1;var b=y.doc,fe=kt(y.options,b.first+b.size-1),ue=y.display;if(fe.length!=ue.lineNumChars){var we=ue.measure.appendChild(Ee("div",[Ee("div",fe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),He=we.firstChild.offsetWidth,tt=we.offsetWidth-He;return ue.lineGutter.style.width="",ue.lineNumInnerWidth=Math.max(He,ue.lineGutter.offsetWidth-tt)+1,ue.lineNumWidth=ue.lineNumInnerWidth+tt,ue.lineNumChars=ue.lineNumInnerWidth?fe.length:-1,ue.lineGutter.style.width=ue.lineNumWidth+"px",ts(y.display),!0}return!1}function ns(y,b){for(var fe=[],ue=!1,we=0;we<y.length;we++){var He=y[we],tt=null;if(typeof He!="string"&&(tt=He.style,He=He.className),He=="CodeMirror-linenumbers")if(b)ue=!0;else continue;fe.push({className:He,style:tt})}return b&&!ue&&fe.push({className:"CodeMirror-linenumbers",style:null}),fe}function Bs(y){var b=y.gutters,fe=y.gutterSpecs;Pe(b),y.lineGutter=null;for(var ue=0;ue<fe.length;++ue){var we=fe[ue],He=we.className,tt=we.style,ut=b.appendChild(Ee("div",null,"CodeMirror-gutter "+He));tt&&(ut.style.cssText=tt),He=="CodeMirror-linenumbers"&&(y.lineGutter=ut,ut.style.width=(y.lineNumWidth||1)+"px")}b.style.display=fe.length?"":"none",ts(y)}function na(y){Bs(y.display),Di(y),Rs(y)}function iu(y,b,fe,ue){var we=this;this.input=fe,we.scrollbarFiller=Ee("div",null,"CodeMirror-scrollbar-filler"),we.scrollbarFiller.setAttribute("cm-not-content","true"),we.gutterFiller=Ee("div",null,"CodeMirror-gutter-filler"),we.gutterFiller.setAttribute("cm-not-content","true"),we.lineDiv=je("div",null,"CodeMirror-code"),we.selectionDiv=Ee("div",null,null,"position: relative; z-index: 1"),we.cursorDiv=Ee("div",null,"CodeMirror-cursors"),we.measure=Ee("div",null,"CodeMirror-measure"),we.lineMeasure=Ee("div",null,"CodeMirror-measure"),we.lineSpace=je("div",[we.measure,we.lineMeasure,we.selectionDiv,we.cursorDiv,we.lineDiv],null,"position: relative; outline: none");var He=je("div",[we.lineSpace],"CodeMirror-lines");we.mover=Ee("div",[He],null,"position: relative"),we.sizer=Ee("div",[we.mover],"CodeMirror-sizer"),we.sizerWidth=null,we.heightForcer=Ee("div",null,null,"position: absolute; height: "+rt+"px; width: 1px;"),we.gutters=Ee("div",null,"CodeMirror-gutters"),we.lineGutter=null,we.scroller=Ee("div",[we.sizer,we.heightForcer,we.gutters],"CodeMirror-scroll"),we.scroller.setAttribute("tabIndex","-1"),we.wrapper=Ee("div",[we.scrollbarFiller,we.gutterFiller,we.scroller],"CodeMirror"),be&&z<8&&(we.gutters.style.zIndex=-1,we.scroller.style.paddingRight=0),!E&&!(ge&&se)&&(we.scroller.draggable=!0),y&&(y.appendChild?y.appendChild(we.wrapper):y(we.wrapper)),we.viewFrom=we.viewTo=b.first,we.reportedViewFrom=we.reportedViewTo=b.first,we.view=[],we.renderedView=null,we.externalMeasured=null,we.viewOffset=0,we.lastWrapHeight=we.lastWrapWidth=0,we.updateLineNumbers=null,we.nativeBarWidth=we.barHeight=we.barWidth=0,we.scrollbarsClipped=!1,we.lineNumWidth=we.lineNumInnerWidth=we.lineNumChars=null,we.alignWidgets=!1,we.cachedCharWidth=we.cachedTextHeight=we.cachedPaddingH=null,we.maxLine=null,we.maxLineLength=0,we.maxLineChanged=!1,we.wheelDX=we.wheelDY=we.wheelStartX=we.wheelStartY=null,we.shift=!1,we.selForContextMenu=null,we.activeTouch=null,we.gutterSpecs=ns(ue.gutters,ue.lineNumbers),Bs(we),fe.init(we)}var Da=0,Hi=null;be?Hi=-.53:ge?Hi=15:oe?Hi=-.7:le&&(Hi=-1/3);function Ls(y){var b=y.wheelDeltaX,fe=y.wheelDeltaY;return b==null&&y.detail&&y.axis==y.HORIZONTAL_AXIS&&(b=y.detail),fe==null&&y.detail&&y.axis==y.VERTICAL_AXIS?fe=y.detail:fe==null&&(fe=y.wheelDelta),{x:b,y:fe}}function ou(y){var b=Ls(y);return b.x*=Hi,b.y*=Hi,b}function Fs(y,b){var fe=Ls(b),ue=fe.x,we=fe.y,He=y.display,tt=He.scroller,ut=tt.scrollWidth>tt.clientWidth,dt=tt.scrollHeight>tt.clientHeight;if(ue&&ut||we&&dt){if(we&&ce&&E){e:for(var mt=b.target,Wt=He.view;mt!=tt;mt=mt.parentNode)for(var Zt=0;Zt<Wt.length;Zt++)if(Wt[Zt].node==mt){y.display.currentWheelTarget=mt;break e}}if(ue&&!ge&&!ee&&Hi!=null){we&&dt&&qo(y,Math.max(0,tt.scrollTop+we*Hi)),Eo(y,Math.max(0,tt.scrollLeft+ue*Hi)),(!we||we&&dt)&&Ct(b),He.wheelStartX=null;return}if(we&&Hi!=null){var ir=we*Hi,tr=y.doc.scrollTop,Sr=tr+He.wrapper.clientHeight;ir<0?tr=Math.max(0,tr+ir-50):Sr=Math.min(y.doc.height,Sr+ir+50),es(y,{top:tr,bottom:Sr})}Da<20&&(He.wheelStartX==null?(He.wheelStartX=tt.scrollLeft,He.wheelStartY=tt.scrollTop,He.wheelDX=ue,He.wheelDY=we,setTimeout(function(){if(He.wheelStartX!=null){var Mr=tt.scrollLeft-He.wheelStartX,Hr=tt.scrollTop-He.wheelStartY,Xr=Hr&&He.wheelDY&&Hr/He.wheelDY||Mr&&He.wheelDX&&Mr/He.wheelDX;He.wheelStartX=He.wheelStartY=null,Xr&&(Hi=(Hi*Da+Xr)/(Da+1),++Da)}},200)):(He.wheelDX+=ue,He.wheelDY+=we))}}var Ui=function(y,b){this.ranges=y,this.primIndex=b};Ui.prototype.primary=function(){return this.ranges[this.primIndex]},Ui.prototype.equals=function(y){if(y==this)return!0;if(y.primIndex!=this.primIndex||y.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var fe=this.ranges[b],ue=y.ranges[b];if(!pt(fe.anchor,ue.anchor)||!pt(fe.head,ue.head))return!1}return!0},Ui.prototype.deepCopy=function(){for(var y=[],b=0;b<this.ranges.length;b++)y[b]=new Gn(Lt(this.ranges[b].anchor),Lt(this.ranges[b].head));return new Ui(y,this.primIndex)},Ui.prototype.somethingSelected=function(){for(var y=0;y<this.ranges.length;y++)if(!this.ranges[y].empty())return!0;return!1},Ui.prototype.contains=function(y,b){b||(b=y);for(var fe=0;fe<this.ranges.length;fe++){var ue=this.ranges[fe];if(Rt(b,ue.from())>=0&&Rt(y,ue.to())<=0)return fe}return-1};var Gn=function(y,b){this.anchor=y,this.head=b};Gn.prototype.from=function(){return Gt(this.anchor,this.head)},Gn.prototype.to=function(){return zt(this.anchor,this.head)},Gn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qi(y,b,fe){var ue=y&&y.options.selectionsMayTouch,we=b[fe];b.sort(function(ir,tr){return Rt(ir.from(),tr.from())}),fe=it(b,we);for(var He=1;He<b.length;He++){var tt=b[He],ut=b[He-1],dt=Rt(ut.to(),tt.from());if(ue&&!tt.empty()?dt>0:dt>=0){var mt=Gt(ut.from(),tt.from()),Wt=zt(ut.to(),tt.to()),Zt=ut.empty()?tt.from()==tt.head:ut.from()==ut.head;He<=fe&&--fe,b.splice(--He,2,new Gn(Zt?Wt:mt,Zt?mt:Wt))}}return new Ui(b,fe)}function po(y,b){return new Ui([new Gn(y,b||y)],0)}function mo(y){return y.text?wt(y.from.line+y.text.length-1,ot(y.text).length+(y.text.length==1?y.from.ch:0)):y.to}function _s(y,b){if(Rt(y,b.from)<0)return y;if(Rt(y,b.to)<=0)return mo(b);var fe=y.line+b.text.length-(b.to.line-b.from.line)-1,ue=y.ch;return y.line==b.to.line&&(ue+=mo(b).ch-b.to.ch),wt(fe,ue)}function is(y,b){for(var fe=[],ue=0;ue<y.sel.ranges.length;ue++){var we=y.sel.ranges[ue];fe.push(new Gn(_s(we.anchor,b),_s(we.head,b)))}return Qi(y.cm,fe,y.sel.primIndex)}function Ws(y,b,fe){return y.line==b.line?wt(fe.line,y.ch-b.ch+fe.ch):wt(fe.line+(y.line-b.line),y.ch)}function au(y,b,fe){for(var ue=[],we=wt(y.first,0),He=we,tt=0;tt<b.length;tt++){var ut=b[tt],dt=Ws(ut.from,we,He),mt=Ws(mo(ut),we,He);if(we=ut.to,He=mt,fe=="around"){var Wt=y.sel.ranges[tt],Zt=Rt(Wt.head,Wt.anchor)<0;ue[tt]=new Gn(Zt?mt:dt,Zt?dt:mt)}else ue[tt]=new Gn(dt,dt)}return new Ui(ue,y.sel.primIndex)}function os(y){y.doc.mode=hr(y.options,y.doc.modeOption),ia(y)}function ia(y){y.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),y.doc.modeFrontier=y.doc.highlightFrontier=y.doc.first,ra(y,100),y.state.modeGen++,y.curOp&&Di(y)}function zs(y,b){return b.from.ch==0&&b.to.ch==0&&ot(b.text)==""&&(!y.cm||y.cm.options.wholeLineUpdateBefore)}function as(y,b,fe,ue){function we(rn){return fe?fe[rn]:null}function He(rn,Yr,an){Rn(rn,Yr,an,ue),Pn(rn,"change",rn,b)}function tt(rn,Yr){for(var an=[],gn=rn;gn<Yr;++gn)an.push(new Bn(mt[gn],we(gn),ue));return an}var ut=b.from,dt=b.to,mt=b.text,Wt=qt(y,ut.line),Zt=qt(y,dt.line),ir=ot(mt),tr=we(mt.length-1),Sr=dt.line-ut.line;if(b.full)y.insert(0,tt(0,mt.length)),y.remove(mt.length,y.size-mt.length);else if(zs(y,b)){var Mr=tt(0,mt.length-1);He(Zt,Zt.text,tr),Sr&&y.remove(ut.line,Sr),Mr.length&&y.insert(ut.line,Mr)}else if(Wt==Zt)if(mt.length==1)He(Wt,Wt.text.slice(0,ut.ch)+ir+Wt.text.slice(dt.ch),tr);else{var Hr=tt(1,mt.length-1);Hr.push(new Bn(ir+Wt.text.slice(dt.ch),tr,ue)),He(Wt,Wt.text.slice(0,ut.ch)+mt[0],we(0)),y.insert(ut.line+1,Hr)}else if(mt.length==1)He(Wt,Wt.text.slice(0,ut.ch)+mt[0]+Zt.text.slice(dt.ch),we(0)),y.remove(ut.line+1,Sr);else{He(Wt,Wt.text.slice(0,ut.ch)+mt[0],we(0)),He(Zt,ir+Zt.text.slice(dt.ch),tr);var Xr=tt(1,mt.length-1);Sr>1&&y.remove(ut.line+1,Sr-1),y.insert(ut.line+1,Xr)}Pn(y,"change",y,b)}function vo(y,b,fe){function ue(we,He,tt){if(we.linked)for(var ut=0;ut<we.linked.length;++ut){var dt=we.linked[ut];if(dt.doc!=He){var mt=tt&&dt.sharedHist;fe&&!mt||(b(dt.doc,mt),ue(dt.doc,we,mt))}}}ue(y,null,!0)}function Hs(y,b){if(b.cm)throw new Error("This document is already in use.");y.doc=b,b.cm=y,Va(y),os(y),Us(y),y.options.lineWrapping||Tn(y),y.options.mode=b.modeOption,Di(y)}function Us(y){(y.doc.direction=="rtl"?Se:Be)(y.display.lineDiv,"CodeMirror-rtl")}function su(y){Wi(y,function(){Us(y),Di(y)})}function Pa(y){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=y||1}function ss(y,b){var fe={from:Lt(b.from),to:mo(b),text:nr(y,b.from,b.to)};return Gs(y,fe,b.from.line,b.to.line+1),vo(y,function(ue){return Gs(ue,fe,b.from.line,b.to.line+1)},!0),fe}function $s(y){for(;y.length;){var b=ot(y);if(b.ranges)y.pop();else break}}function lu(y,b){if(b)return $s(y.done),ot(y.done);if(y.done.length&&!ot(y.done).ranges)return ot(y.done);if(y.done.length>1&&!y.done[y.done.length-2].ranges)return y.done.pop(),ot(y.done)}function Zs(y,b,fe,ue){var we=y.history;we.undone.length=0;var He=+new Date,tt,ut;if((we.lastOp==ue||we.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&we.lastModTime>He-(y.cm?y.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(tt=lu(we,we.lastOp==ue)))ut=ot(tt.changes),Rt(b.from,b.to)==0&&Rt(b.from,ut.to)==0?ut.to=mo(b):tt.changes.push(ss(y,b));else{var dt=ot(we.done);for((!dt||!dt.ranges)&&ka(y.sel,we.done),tt={changes:[ss(y,b)],generation:we.generation},we.done.push(tt);we.done.length>we.undoDepth;)we.done.shift(),we.done[0].ranges||we.done.shift()}we.done.push(fe),we.generation=++we.maxGeneration,we.lastModTime=we.lastSelTime=He,we.lastOp=we.lastSelOp=ue,we.lastOrigin=we.lastSelOrigin=b.origin,ut||Et(y,"historyAdded")}function uu(y,b,fe,ue){var we=b.charAt(0);return we=="*"||we=="+"&&fe.ranges.length==ue.ranges.length&&fe.somethingSelected()==ue.somethingSelected()&&new Date-y.history.lastSelTime<=(y.cm?y.cm.options.historyEventDelay:500)}function cu(y,b,fe,ue){var we=y.history,He=ue&&ue.origin;fe==we.lastSelOp||He&&we.lastSelOrigin==He&&(we.lastModTime==we.lastSelTime&&we.lastOrigin==He||uu(y,He,ot(we.done),b))?we.done[we.done.length-1]=b:ka(b,we.done),we.lastSelTime=+new Date,we.lastSelOrigin=He,we.lastSelOp=fe,ue&&ue.clearRedo!==!1&&$s(we.undone)}function ka(y,b){var fe=ot(b);fe&&fe.ranges&&fe.equals(y)||b.push(y)}function Gs(y,b,fe,ue){var we=b["spans_"+y.id],He=0;y.iter(Math.max(y.first,fe),Math.min(y.first+y.size,ue),function(tt){tt.markedSpans&&((we||(we=b["spans_"+y.id]={}))[He]=tt.markedSpans),++He})}function fu(y){if(!y)return null;for(var b,fe=0;fe<y.length;++fe)y[fe].marker.explicitlyCleared?b||(b=y.slice(0,fe)):b&&b.push(y[fe]);return b?b.length?b:null:y}function du(y,b){var fe=b["spans_"+y.id];if(!fe)return null;for(var ue=[],we=0;we<b.text.length;++we)ue.push(fu(fe[we]));return ue}function Ks(y,b){var fe=du(y,b),ue=mn(y,b);if(!fe)return ue;if(!ue)return fe;for(var we=0;we<fe.length;++we){var He=fe[we],tt=ue[we];if(He&&tt)e:for(var ut=0;ut<tt.length;++ut){for(var dt=tt[ut],mt=0;mt<He.length;++mt)if(He[mt].marker==dt.marker)continue e;He.push(dt)}else tt&&(fe[we]=tt)}return fe}function Bo(y,b,fe){for(var ue=[],we=0;we<y.length;++we){var He=y[we];if(He.ranges){ue.push(fe?Ui.prototype.deepCopy.call(He):He);continue}var tt=He.changes,ut=[];ue.push({changes:ut});for(var dt=0;dt<tt.length;++dt){var mt=tt[dt],Wt=void 0;if(ut.push({from:mt.from,to:mt.to,text:mt.text}),b)for(var Zt in mt)(Wt=Zt.match(/^spans_(\d+)$/))&&it(b,Number(Wt[1]))>-1&&(ot(ut)[Zt]=mt[Zt],delete mt[Zt])}}return ue}function ls(y,b,fe,ue){if(ue){var we=y.anchor;if(fe){var He=Rt(b,we)<0;He!=Rt(fe,we)<0?(we=b,b=fe):He!=Rt(b,fe)<0&&(b=fe)}return new Gn(we,b)}else return new Gn(fe||b,b)}function Ma(y,b,fe,ue,we){we==null&&(we=y.cm&&(y.cm.display.shift||y.extend)),Si(y,new Ui([ls(y.sel.primary(),b,fe,we)],0),ue)}function Vs(y,b,fe){for(var ue=[],we=y.cm&&(y.cm.display.shift||y.extend),He=0;He<y.sel.ranges.length;He++)ue[He]=ls(y.sel.ranges[He],b[He],null,we);var tt=Qi(y.cm,ue,y.sel.primIndex);Si(y,tt,fe)}function us(y,b,fe,ue){var we=y.sel.ranges.slice(0);we[b]=fe,Si(y,Qi(y.cm,we,y.sel.primIndex),ue)}function Xs(y,b,fe,ue){Si(y,po(b,fe),ue)}function hu(y,b,fe){var ue={ranges:b.ranges,update:function(we){this.ranges=[];for(var He=0;He<we.length;He++)this.ranges[He]=new Gn(Nt(y,we[He].anchor),Nt(y,we[He].head))},origin:fe&&fe.origin};return Et(y,"beforeSelectionChange",y,ue),y.cm&&Et(y.cm,"beforeSelectionChange",y.cm,ue),ue.ranges!=b.ranges?Qi(y.cm,ue.ranges,ue.ranges.length-1):b}function Ys(y,b,fe){var ue=y.history.done,we=ot(ue);we&&we.ranges?(ue[ue.length-1]=b,Ra(y,b,fe)):Si(y,b,fe)}function Si(y,b,fe){Ra(y,b,fe),cu(y,y.sel,y.cm?y.cm.curOp.id:NaN,fe)}function Ra(y,b,fe){(At(y,"beforeSelectionChange")||y.cm&&At(y.cm,"beforeSelectionChange"))&&(b=hu(y,b,fe));var ue=fe&&fe.bias||(Rt(b.primary().head,y.sel.primary().head)<0?-1:1);Js(y,el(y,b,ue,!0)),!(fe&&fe.scroll===!1)&&y.cm&&Ro(y.cm)}function Js(y,b){b.equals(y.sel)||(y.sel=b,y.cm&&(y.cm.curOp.updateInput=1,y.cm.curOp.selectionChanged=!0,jt(y.cm)),Pn(y,"cursorActivity",y))}function Qs(y){Js(y,el(y,y.sel,null,!1))}function el(y,b,fe,ue){for(var we,He=0;He<b.ranges.length;He++){var tt=b.ranges[He],ut=b.ranges.length==y.sel.ranges.length&&y.sel.ranges[He],dt=Na(y,tt.anchor,ut&&ut.anchor,fe,ue),mt=Na(y,tt.head,ut&&ut.head,fe,ue);(we||dt!=tt.anchor||mt!=tt.head)&&(we||(we=b.ranges.slice(0,He)),we[He]=new Gn(dt,mt))}return we?Qi(y.cm,we,b.primIndex):b}function Lo(y,b,fe,ue,we){var He=qt(y,b.line);if(He.markedSpans)for(var tt=0;tt<He.markedSpans.length;++tt){var ut=He.markedSpans[tt],dt=ut.marker,mt="selectLeft"in dt?!dt.selectLeft:dt.inclusiveLeft,Wt="selectRight"in dt?!dt.selectRight:dt.inclusiveRight;if((ut.from==null||(mt?ut.from<=b.ch:ut.from<b.ch))&&(ut.to==null||(Wt?ut.to>=b.ch:ut.to>b.ch))){if(we&&(Et(dt,"beforeCursorEnter"),dt.explicitlyCleared))if(He.markedSpans){--tt;continue}else break;if(!dt.atomic)continue;if(fe){var Zt=dt.find(ue<0?1:-1),ir=void 0;if((ue<0?Wt:mt)&&(Zt=tl(y,Zt,-ue,Zt&&Zt.line==b.line?He:null)),Zt&&Zt.line==b.line&&(ir=Rt(Zt,fe))&&(ue<0?ir<0:ir>0))return Lo(y,Zt,b,ue,we)}var tr=dt.find(ue<0?-1:1);return(ue<0?mt:Wt)&&(tr=tl(y,tr,ue,tr.line==b.line?He:null)),tr?Lo(y,tr,b,ue,we):null}}return b}function Na(y,b,fe,ue,we){var He=ue||1,tt=Lo(y,b,fe,He,we)||!we&&Lo(y,b,fe,He,!0)||Lo(y,b,fe,-He,we)||!we&&Lo(y,b,fe,-He,!0);return tt||(y.cantEdit=!0,wt(y.first,0))}function tl(y,b,fe,ue){return fe<0&&b.ch==0?b.line>y.first?Nt(y,wt(b.line-1)):null:fe>0&&b.ch==(ue||qt(y,b.line)).text.length?b.line<y.first+y.size-1?wt(b.line+1,0):null:new wt(b.line,b.ch+fe)}function rl(y){y.setSelection(wt(y.firstLine(),0),wt(y.lastLine()),$e)}function nl(y,b,fe){var ue={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return ue.canceled=!0}};return fe&&(ue.update=function(we,He,tt,ut){we&&(ue.from=Nt(y,we)),He&&(ue.to=Nt(y,He)),tt&&(ue.text=tt),ut!==void 0&&(ue.origin=ut)}),Et(y,"beforeChange",y,ue),y.cm&&Et(y.cm,"beforeChange",y.cm,ue),ue.canceled?(y.cm&&(y.cm.curOp.updateInput=2),null):{from:ue.from,to:ue.to,text:ue.text,origin:ue.origin}}function Fo(y,b,fe){if(y.cm){if(!y.cm.curOp)return hi(y.cm,Fo)(y,b,fe);if(y.cm.state.suppressEdits)return}if(!((At(y,"beforeChange")||y.cm&&At(y.cm,"beforeChange"))&&(b=nl(y,b,!0),!b))){var ue=tn&&!fe&&_n(y,b.from,b.to);if(ue)for(var we=ue.length-1;we>=0;--we)il(y,{from:ue[we].from,to:ue[we].to,text:we?[""]:b.text,origin:b.origin});else il(y,b)}}function il(y,b){if(!(b.text.length==1&&b.text[0]==""&&Rt(b.from,b.to)==0)){var fe=is(y,b);Zs(y,b,fe,y.cm?y.cm.curOp.id:NaN),oa(y,b,fe,mn(y,b));var ue=[];vo(y,function(we,He){!He&&it(ue,we.history)==-1&&(ll(we.history,b),ue.push(we.history)),oa(we,b,null,mn(we,b))})}}function Ba(y,b,fe){var ue=y.cm&&y.cm.state.suppressEdits;if(!(ue&&!fe)){for(var we=y.history,He,tt=y.sel,ut=b=="undo"?we.done:we.undone,dt=b=="undo"?we.undone:we.done,mt=0;mt<ut.length&&(He=ut[mt],!(fe?He.ranges&&!He.equals(y.sel):!He.ranges));mt++);if(mt!=ut.length){for(we.lastOrigin=we.lastSelOrigin=null;;)if(He=ut.pop(),He.ranges){if(ka(He,dt),fe&&!He.equals(y.sel)){Si(y,He,{clearRedo:!1});return}tt=He}else if(ue){ut.push(He);return}else break;var Wt=[];ka(tt,dt),dt.push({changes:Wt,generation:we.generation}),we.generation=He.generation||++we.maxGeneration;for(var Zt=At(y,"beforeChange")||y.cm&&At(y.cm,"beforeChange"),ir=function(Mr){var Hr=He.changes[Mr];if(Hr.origin=b,Zt&&!nl(y,Hr,!1))return ut.length=0,{};Wt.push(ss(y,Hr));var Xr=Mr?is(y,Hr):ot(ut);oa(y,Hr,Xr,Ks(y,Hr)),!Mr&&y.cm&&y.cm.scrollIntoView({from:Hr.from,to:mo(Hr)});var rn=[];vo(y,function(Yr,an){!an&&it(rn,Yr.history)==-1&&(ll(Yr.history,Hr),rn.push(Yr.history)),oa(Yr,Hr,null,Ks(Yr,Hr))})},tr=He.changes.length-1;tr>=0;--tr){var Sr=ir(tr);if(Sr)return Sr.v}}}}function ol(y,b){if(b!=0&&(y.first+=b,y.sel=new Ui(qe(y.sel.ranges,function(we){return new Gn(wt(we.anchor.line+b,we.anchor.ch),wt(we.head.line+b,we.head.ch))}),y.sel.primIndex),y.cm)){Di(y.cm,y.first,y.first-b,b);for(var fe=y.cm.display,ue=fe.viewFrom;ue<fe.viewTo;ue++)fo(y.cm,ue,"gutter")}}function oa(y,b,fe,ue){if(y.cm&&!y.cm.curOp)return hi(y.cm,oa)(y,b,fe,ue);if(b.to.line<y.first){ol(y,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>y.lastLine())){if(b.from.line<y.first){var we=b.text.length-1-(y.first-b.from.line);ol(y,we),b={from:wt(y.first,0),to:wt(b.to.line+we,b.to.ch),text:[ot(b.text)],origin:b.origin}}var He=y.lastLine();b.to.line>He&&(b={from:b.from,to:wt(He,qt(y,He).text.length),text:[b.text[0]],origin:b.origin}),b.removed=nr(y,b.from,b.to),fe||(fe=is(y,b)),y.cm?pu(y.cm,b,ue):as(y,b,ue),Ra(y,fe,$e),y.cantEdit&&Na(y,wt(y.firstLine(),0))&&(y.cantEdit=!1)}}function pu(y,b,fe){var ue=y.doc,we=y.display,He=b.from,tt=b.to,ut=!1,dt=He.line;y.options.lineWrapping||(dt=It(pr(qt(ue,He.line))),ue.iter(dt,tt.line+1,function(tr){if(tr==we.maxLine)return ut=!0,!0})),ue.sel.contains(b.from,b.to)>-1&&jt(y),as(ue,b,fe,ws(y)),y.options.lineWrapping||(ue.iter(dt,He.line+b.text.length,function(tr){var Sr=Dn(tr);Sr>we.maxLineLength&&(we.maxLine=tr,we.maxLineLength=Sr,we.maxLineChanged=!0,ut=!1)}),ut&&(y.curOp.updateMaxLine=!0)),Pr(ue,He.line),ra(y,400);var mt=b.text.length-(tt.line-He.line)-1;b.full?Di(y):He.line==tt.line&&b.text.length==1&&!zs(y.doc,b)?fo(y,He.line,"text"):Di(y,He.line,tt.line+1,mt);var Wt=At(y,"changes"),Zt=At(y,"change");if(Zt||Wt){var ir={from:He,to:tt,text:b.text,removed:b.removed,origin:b.origin};Zt&&Pn(y,"change",y,ir),Wt&&(y.curOp.changeObjs||(y.curOp.changeObjs=[])).push(ir)}y.display.selForContextMenu=null}function _o(y,b,fe,ue,we){var He;ue||(ue=fe),Rt(ue,fe)<0&&(He=[ue,fe],fe=He[0],ue=He[1]),typeof b=="string"&&(b=y.splitLines(b)),Fo(y,{from:fe,to:ue,text:b,origin:we})}function al(y,b,fe,ue){fe<y.line?y.line+=ue:b<y.line&&(y.line=b,y.ch=0)}function sl(y,b,fe,ue){for(var we=0;we<y.length;++we){var He=y[we],tt=!0;if(He.ranges){He.copied||(He=y[we]=He.deepCopy(),He.copied=!0);for(var ut=0;ut<He.ranges.length;ut++)al(He.ranges[ut].anchor,b,fe,ue),al(He.ranges[ut].head,b,fe,ue);continue}for(var dt=0;dt<He.changes.length;++dt){var mt=He.changes[dt];if(fe<mt.from.line)mt.from=wt(mt.from.line+ue,mt.from.ch),mt.to=wt(mt.to.line+ue,mt.to.ch);else if(b<=mt.to.line){tt=!1;break}}tt||(y.splice(0,we+1),we=0)}}function ll(y,b){var fe=b.from.line,ue=b.to.line,we=b.text.length-(ue-fe)-1;sl(y.done,fe,ue,we),sl(y.undone,fe,ue,we)}function aa(y,b,fe,ue){var we=b,He=b;return typeof b=="number"?He=qt(y,Ht(y,b)):we=It(b),we==null?null:(ue(He,we)&&y.cm&&fo(y.cm,we,fe),He)}function sa(y){this.lines=y,this.parent=null;for(var b=0,fe=0;fe<y.length;++fe)y[fe].parent=this,b+=y[fe].height;this.height=b}sa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(y,b){for(var fe=y,ue=y+b;fe<ue;++fe){var we=this.lines[fe];this.height-=we.height,Ln(we),Pn(we,"delete")}this.lines.splice(y,b)},collapse:function(y){y.push.apply(y,this.lines)},insertInner:function(y,b,fe){this.height+=fe,this.lines=this.lines.slice(0,y).concat(b).concat(this.lines.slice(y));for(var ue=0;ue<b.length;++ue)b[ue].parent=this},iterN:function(y,b,fe){for(var ue=y+b;y<ue;++y)if(fe(this.lines[y]))return!0}};function la(y){this.children=y;for(var b=0,fe=0,ue=0;ue<y.length;++ue){var we=y[ue];b+=we.chunkSize(),fe+=we.height,we.parent=this}this.size=b,this.height=fe,this.parent=null}la.prototype={chunkSize:function(){return this.size},removeInner:function(y,b){this.size-=b;for(var fe=0;fe<this.children.length;++fe){var ue=this.children[fe],we=ue.chunkSize();if(y<we){var He=Math.min(b,we-y),tt=ue.height;if(ue.removeInner(y,He),this.height-=tt-ue.height,we==He&&(this.children.splice(fe--,1),ue.parent=null),(b-=He)==0)break;y=0}else y-=we}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof sa))){var ut=[];this.collapse(ut),this.children=[new sa(ut)],this.children[0].parent=this}},collapse:function(y){for(var b=0;b<this.children.length;++b)this.children[b].collapse(y)},insertInner:function(y,b,fe){this.size+=b.length,this.height+=fe;for(var ue=0;ue<this.children.length;++ue){var we=this.children[ue],He=we.chunkSize();if(y<=He){if(we.insertInner(y,b,fe),we.lines&&we.lines.length>50){for(var tt=we.lines.length%25+25,ut=tt;ut<we.lines.length;){var dt=new sa(we.lines.slice(ut,ut+=25));we.height-=dt.height,this.children.splice(++ue,0,dt),dt.parent=this}we.lines=we.lines.slice(0,tt),this.maybeSpill()}break}y-=He}},maybeSpill:function(){if(!(this.children.length<=10)){var y=this;do{var b=y.children.splice(y.children.length-5,5),fe=new la(b);if(y.parent){y.size-=fe.size,y.height-=fe.height;var we=it(y.parent.children,y);y.parent.children.splice(we+1,0,fe)}else{var ue=new la(y.children);ue.parent=y,y.children=[ue,fe],y=ue}fe.parent=y.parent}while(y.children.length>10);y.parent.maybeSpill()}},iterN:function(y,b,fe){for(var ue=0;ue<this.children.length;++ue){var we=this.children[ue],He=we.chunkSize();if(y<He){var tt=Math.min(b,He-y);if(we.iterN(y,tt,fe))return!0;if((b-=tt)==0)break;y=0}else y-=He}}};var ua=function(y,b,fe){if(fe)for(var ue in fe)fe.hasOwnProperty(ue)&&(this[ue]=fe[ue]);this.doc=y,this.node=b};ua.prototype.clear=function(){var y=this.doc.cm,b=this.line.widgets,fe=this.line,ue=It(fe);if(!(ue==null||!b)){for(var we=0;we<b.length;++we)b[we]==this&&b.splice(we--,1);b.length||(fe.widgets=null);var He=Oi(this);Tr(fe,Math.max(0,fe.height-He)),y&&(Wi(y,function(){ul(y,fe,-He),fo(y,ue,"widget")}),Pn(y,"lineWidgetCleared",y,this,ue))}},ua.prototype.changed=function(){var y=this,b=this.height,fe=this.doc.cm,ue=this.line;this.height=null;var we=Oi(this)-b;we&&(kr(this.doc,ue)||Tr(ue,ue.height+we),fe&&Wi(fe,function(){fe.curOp.forceUpdate=!0,ul(fe,ue,we),Pn(fe,"lineWidgetChanged",fe,y,It(ue))}))},ht(ua);function ul(y,b,fe){cn(b)<(y.curOp&&y.curOp.scrollTop||y.doc.scrollTop)&&Qa(y,fe)}function mu(y,b,fe,ue){var we=new ua(y,fe,ue),He=y.cm;return He&&we.noHScroll&&(He.display.alignWidgets=!0),aa(y,b,"widget",function(tt){var ut=tt.widgets||(tt.widgets=[]);if(we.insertAt==null?ut.push(we):ut.splice(Math.min(ut.length-1,Math.max(0,we.insertAt)),0,we),we.line=tt,He&&!kr(y,tt)){var dt=cn(tt)<y.scrollTop;Tr(tt,tt.height+Oi(we)),dt&&Qa(He,we.height),He.curOp.forceUpdate=!0}return!0}),He&&Pn(He,"lineWidgetAdded",He,we,typeof b=="number"?b:It(b)),we}var cl=0,go=function(y,b){this.lines=[],this.type=b,this.doc=y,this.id=++cl};go.prototype.clear=function(){if(!this.explicitlyCleared){var y=this.doc.cm,b=y&&!y.curOp;if(b&&To(y),At(this,"clear")){var fe=this.find();fe&&Pn(this,"clear",fe.from,fe.to)}for(var ue=null,we=null,He=0;He<this.lines.length;++He){var tt=this.lines[He],ut=un(tt.markedSpans,this);y&&!this.collapsed?fo(y,It(tt),"text"):y&&(ut.to!=null&&(we=It(tt)),ut.from!=null&&(ue=It(tt))),tt.markedSpans=yn(tt.markedSpans,ut),ut.from==null&&this.collapsed&&!kr(this.doc,tt)&&y&&Tr(tt,_i(y.display))}if(y&&this.collapsed&&!y.options.lineWrapping)for(var dt=0;dt<this.lines.length;++dt){var mt=pr(this.lines[dt]),Wt=Dn(mt);Wt>y.display.maxLineLength&&(y.display.maxLine=mt,y.display.maxLineLength=Wt,y.display.maxLineChanged=!0)}ue!=null&&y&&this.collapsed&&Di(y,ue,we+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,y&&Qs(y.doc)),y&&Pn(y,"markerCleared",y,this,ue,we),b&&Ao(y),this.parent&&this.parent.clear()}},go.prototype.find=function(y,b){y==null&&this.type=="bookmark"&&(y=1);for(var fe,ue,we=0;we<this.lines.length;++we){var He=this.lines[we],tt=un(He.markedSpans,this);if(tt.from!=null&&(fe=wt(b?He:It(He),tt.from),y==-1))return fe;if(tt.to!=null&&(ue=wt(b?He:It(He),tt.to),y==1))return ue}return fe&&{from:fe,to:ue}},go.prototype.changed=function(){var y=this,b=this.find(-1,!0),fe=this,ue=this.doc.cm;!b||!ue||Wi(ue,function(){var we=b.line,He=It(b.line),tt=ro(ue,He);if(tt&&(Ko(tt),ue.curOp.selectionChanged=ue.curOp.forceUpdate=!0),ue.curOp.updateMaxLine=!0,!kr(fe.doc,we)&&fe.height!=null){var ut=fe.height;fe.height=null;var dt=Oi(fe)-ut;dt&&Tr(we,we.height+dt)}Pn(ue,"markerChanged",ue,y)})},go.prototype.attachLine=function(y){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||it(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(y)},go.prototype.detachLine=function(y){if(this.lines.splice(it(this.lines,y),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},ht(go);function Wo(y,b,fe,ue,we){if(ue&&ue.shared)return vu(y,b,fe,ue,we);if(y.cm&&!y.cm.curOp)return hi(y.cm,Wo)(y,b,fe,ue,we);var He=new go(y,we),tt=Rt(b,fe);if(ue&&at(ue,He,!1),tt>0||tt==0&&He.clearWhenEmpty!==!1)return He;if(He.replacedWith&&(He.collapsed=!0,He.widgetNode=je("span",[He.replacedWith],"CodeMirror-widget"),ue.handleMouseEvents||He.widgetNode.setAttribute("cm-ignore-events","true"),ue.insertLeft&&(He.widgetNode.insertLeft=!0)),He.collapsed){if(Cr(y,b.line,b,fe,He)||b.line!=fe.line&&Cr(y,fe.line,b,fe,He))throw new Error("Inserting collapsed marker partially overlapping an existing one");pn()}He.addToHistory&&Zs(y,{from:b,to:fe,origin:"markText"},y.sel,NaN);var ut=b.line,dt=y.cm,mt;if(y.iter(ut,fe.line+1,function(Zt){dt&&He.collapsed&&!dt.options.lineWrapping&&pr(Zt)==dt.display.maxLine&&(mt=!0),He.collapsed&&ut!=b.line&&Tr(Zt,0),sn(Zt,new ln(He,ut==b.line?b.ch:null,ut==fe.line?fe.ch:null)),++ut}),He.collapsed&&y.iter(b.line,fe.line+1,function(Zt){kr(y,Zt)&&Tr(Zt,0)}),He.clearOnEnter&&Ot(He,"beforeCursorEnter",function(){return He.clear()}),He.readOnly&&(fn(),(y.history.done.length||y.history.undone.length)&&y.clearHistory()),He.collapsed&&(He.id=++cl,He.atomic=!0),dt){if(mt&&(dt.curOp.updateMaxLine=!0),He.collapsed)Di(dt,b.line,fe.line+1);else if(He.className||He.startStyle||He.endStyle||He.css||He.attributes||He.title)for(var Wt=b.line;Wt<=fe.line;Wt++)fo(dt,Wt,"text");He.atomic&&Qs(dt.doc),Pn(dt,"markerAdded",dt,He)}return He}var ca=function(y,b){this.markers=y,this.primary=b;for(var fe=0;fe<y.length;++fe)y[fe].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var y=0;y<this.markers.length;++y)this.markers[y].clear();Pn(this,"clear")}},ca.prototype.find=function(y,b){return this.primary.find(y,b)},ht(ca);function vu(y,b,fe,ue,we){ue=at(ue),ue.shared=!1;var He=[Wo(y,b,fe,ue,we)],tt=He[0],ut=ue.widgetNode;return vo(y,function(dt){ut&&(ue.widgetNode=ut.cloneNode(!0)),He.push(Wo(dt,Nt(dt,b),Nt(dt,fe),ue,we));for(var mt=0;mt<dt.linked.length;++mt)if(dt.linked[mt].isParent)return;tt=ot(He)}),new ca(He,tt)}function fl(y){return y.findMarks(wt(y.first,0),y.clipPos(wt(y.lastLine())),function(b){return b.parent})}function gu(y,b){for(var fe=0;fe<b.length;fe++){var ue=b[fe],we=ue.find(),He=y.clipPos(we.from),tt=y.clipPos(we.to);if(Rt(He,tt)){var ut=Wo(y,He,tt,ue.primary,ue.primary.type);ue.markers.push(ut),ut.parent=ue}}}function yu(y){for(var b=function(ue){var we=y[ue],He=[we.primary.doc];vo(we.primary.doc,function(dt){return He.push(dt)});for(var tt=0;tt<we.markers.length;tt++){var ut=we.markers[tt];it(He,ut.doc)==-1&&(ut.parent=null,we.markers.splice(tt--,1))}},fe=0;fe<y.length;fe++)b(fe)}var bu=0,Pi=function(y,b,fe,ue,we){if(!(this instanceof Pi))return new Pi(y,b,fe,ue,we);fe==null&&(fe=0),la.call(this,[new sa([new Bn("",null)])]),this.first=fe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=fe;var He=wt(fe,0);this.sel=po(He),this.history=new Pa(null),this.id=++bu,this.modeOption=b,this.lineSep=ue,this.direction=we=="rtl"?"rtl":"ltr",this.extend=!1,typeof y=="string"&&(y=this.splitLines(y)),as(this,{from:He,to:He,text:y}),Si(this,po(He),$e)};Pi.prototype=te(la.prototype,{constructor:Pi,iter:function(y,b,fe){fe?this.iterN(y-this.first,b-y,fe):this.iterN(this.first,this.first+this.size,y)},insert:function(y,b){for(var fe=0,ue=0;ue<b.length;++ue)fe+=b[ue].height;this.insertInner(y-this.first,b,fe)},remove:function(y,b){this.removeInner(y-this.first,b)},getValue:function(y){var b=jr(this,this.first,this.first+this.size);return y===!1?b:b.join(y||this.lineSeparator())},setValue:pi(function(y){var b=wt(this.first,0),fe=this.first+this.size-1;Fo(this,{from:b,to:wt(fe,qt(this,fe).text.length),text:this.splitLines(y),origin:"setValue",full:!0},!0),this.cm&&Qo(this.cm,0,0),Si(this,po(b),$e)}),replaceRange:function(y,b,fe,ue){b=Nt(this,b),fe=fe?Nt(this,fe):b,_o(this,y,b,fe,ue)},getRange:function(y,b,fe){var ue=nr(this,Nt(this,y),Nt(this,b));return fe===!1?ue:ue.join(fe||this.lineSeparator())},getLine:function(y){var b=this.getLineHandle(y);return b&&b.text},getLineHandle:function(y){if(bt(this,y))return qt(this,y)},getLineNumber:function(y){return It(y)},getLineHandleVisualStart:function(y){return typeof y=="number"&&(y=qt(this,y)),pr(y)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(y){return Nt(this,y)},getCursor:function(y){var b=this.sel.primary(),fe;return y==null||y=="head"?fe=b.head:y=="anchor"?fe=b.anchor:y=="end"||y=="to"||y===!1?fe=b.to():fe=b.from(),fe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:pi(function(y,b,fe){Xs(this,Nt(this,typeof y=="number"?wt(y,b||0):y),null,fe)}),setSelection:pi(function(y,b,fe){Xs(this,Nt(this,y),Nt(this,b||y),fe)}),extendSelection:pi(function(y,b,fe){Ma(this,Nt(this,y),b&&Nt(this,b),fe)}),extendSelections:pi(function(y,b){Vs(this,Ut(this,y),b)}),extendSelectionsBy:pi(function(y,b){var fe=qe(this.sel.ranges,y);Vs(this,Ut(this,fe),b)}),setSelections:pi(function(y,b,fe){if(y.length){for(var ue=[],we=0;we<y.length;we++)ue[we]=new Gn(Nt(this,y[we].anchor),Nt(this,y[we].head));b==null&&(b=Math.min(y.length-1,this.sel.primIndex)),Si(this,Qi(this.cm,ue,b),fe)}}),addSelection:pi(function(y,b,fe){var ue=this.sel.ranges.slice(0);ue.push(new Gn(Nt(this,y),Nt(this,b||y))),Si(this,Qi(this.cm,ue,ue.length-1),fe)}),getSelection:function(y){for(var b=this.sel.ranges,fe,ue=0;ue<b.length;ue++){var we=nr(this,b[ue].from(),b[ue].to());fe=fe?fe.concat(we):we}return y===!1?fe:fe.join(y||this.lineSeparator())},getSelections:function(y){for(var b=[],fe=this.sel.ranges,ue=0;ue<fe.length;ue++){var we=nr(this,fe[ue].from(),fe[ue].to());y!==!1&&(we=we.join(y||this.lineSeparator())),b[ue]=we}return b},replaceSelection:function(y,b,fe){for(var ue=[],we=0;we<this.sel.ranges.length;we++)ue[we]=y;this.replaceSelections(ue,b,fe||"+input")},replaceSelections:pi(function(y,b,fe){for(var ue=[],we=this.sel,He=0;He<we.ranges.length;He++){var tt=we.ranges[He];ue[He]={from:tt.from(),to:tt.to(),text:this.splitLines(y[He]),origin:fe}}for(var ut=b&&b!="end"&&au(this,ue,b),dt=ue.length-1;dt>=0;dt--)Fo(this,ue[dt]);ut?Ys(this,ut):this.cm&&Ro(this.cm)}),undo:pi(function(){Ba(this,"undo")}),redo:pi(function(){Ba(this,"redo")}),undoSelection:pi(function(){Ba(this,"undo",!0)}),redoSelection:pi(function(){Ba(this,"redo",!0)}),setExtending:function(y){this.extend=y},getExtending:function(){return this.extend},historySize:function(){for(var y=this.history,b=0,fe=0,ue=0;ue<y.done.length;ue++)y.done[ue].ranges||++b;for(var we=0;we<y.undone.length;we++)y.undone[we].ranges||++fe;return{undo:b,redo:fe}},clearHistory:function(){var y=this;this.history=new Pa(this.history.maxGeneration),vo(this,function(b){return b.history=y.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(y){return y&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(y){return this.history.generation==(y||this.cleanGeneration)},getHistory:function(){return{done:Bo(this.history.done),undone:Bo(this.history.undone)}},setHistory:function(y){var b=this.history=new Pa(this.history.maxGeneration);b.done=Bo(y.done.slice(0),null,!0),b.undone=Bo(y.undone.slice(0),null,!0)},setGutterMarker:pi(function(y,b,fe){return aa(this,y,"gutter",function(ue){var we=ue.gutterMarkers||(ue.gutterMarkers={});return we[b]=fe,!fe&&xe(we)&&(ue.gutterMarkers=null),!0})}),clearGutter:pi(function(y){var b=this;this.iter(function(fe){fe.gutterMarkers&&fe.gutterMarkers[y]&&aa(b,fe,"gutter",function(){return fe.gutterMarkers[y]=null,xe(fe.gutterMarkers)&&(fe.gutterMarkers=null),!0})})}),lineInfo:function(y){var b;if(typeof y=="number"){if(!bt(this,y)||(b=y,y=qt(this,y),!y))return null}else if(b=It(y),b==null)return null;return{line:b,handle:y,text:y.text,gutterMarkers:y.gutterMarkers,textClass:y.textClass,bgClass:y.bgClass,wrapClass:y.wrapClass,widgets:y.widgets}},addLineClass:pi(function(y,b,fe){return aa(this,y,b=="gutter"?"gutter":"class",function(ue){var we=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!ue[we])ue[we]=fe;else{if(Me(fe).test(ue[we]))return!1;ue[we]+=" "+fe}return!0})}),removeLineClass:pi(function(y,b,fe){return aa(this,y,b=="gutter"?"gutter":"class",function(ue){var we=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",He=ue[we];if(He)if(fe==null)ue[we]=null;else{var tt=He.match(Me(fe));if(!tt)return!1;var ut=tt.index+tt[0].length;ue[we]=He.slice(0,tt.index)+(!tt.index||ut==He.length?"":" ")+He.slice(ut)||null}else return!1;return!0})}),addLineWidget:pi(function(y,b,fe){return mu(this,y,b,fe)}),removeLineWidget:function(y){y.clear()},markText:function(y,b,fe){return Wo(this,Nt(this,y),Nt(this,b),fe,fe&&fe.type||"range")},setBookmark:function(y,b){var fe={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return y=Nt(this,y),Wo(this,y,y,fe,"bookmark")},findMarksAt:function(y){y=Nt(this,y);var b=[],fe=qt(this,y.line).markedSpans;if(fe)for(var ue=0;ue<fe.length;++ue){var we=fe[ue];(we.from==null||we.from<=y.ch)&&(we.to==null||we.to>=y.ch)&&b.push(we.marker.parent||we.marker)}return b},findMarks:function(y,b,fe){y=Nt(this,y),b=Nt(this,b);var ue=[],we=y.line;return this.iter(y.line,b.line+1,function(He){var tt=He.markedSpans;if(tt)for(var ut=0;ut<tt.length;ut++){var dt=tt[ut];!(dt.to!=null&&we==y.line&&y.ch>=dt.to||dt.from==null&&we!=y.line||dt.from!=null&&we==b.line&&dt.from>=b.ch)&&(!fe||fe(dt.marker))&&ue.push(dt.marker.parent||dt.marker)}++we}),ue},getAllMarks:function(){var y=[];return this.iter(function(b){var fe=b.markedSpans;if(fe)for(var ue=0;ue<fe.length;++ue)fe[ue].from!=null&&y.push(fe[ue].marker)}),y},posFromIndex:function(y){var b,fe=this.first,ue=this.lineSeparator().length;return this.iter(function(we){var He=we.text.length+ue;if(He>y)return b=y,!0;y-=He,++fe}),Nt(this,wt(fe,b))},indexFromPos:function(y){y=Nt(this,y);var b=y.ch;if(y.line<this.first||y.ch<0)return 0;var fe=this.lineSeparator().length;return this.iter(this.first,y.line,function(ue){b+=ue.text.length+fe}),b},copy:function(y){var b=new Pi(jr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,y&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(y){y||(y={});var b=this.first,fe=this.first+this.size;y.from!=null&&y.from>b&&(b=y.from),y.to!=null&&y.to<fe&&(fe=y.to);var ue=new Pi(jr(this,b,fe),y.mode||this.modeOption,b,this.lineSep,this.direction);return y.sharedHist&&(ue.history=this.history),(this.linked||(this.linked=[])).push({doc:ue,sharedHist:y.sharedHist}),ue.linked=[{doc:this,isParent:!0,sharedHist:y.sharedHist}],gu(ue,fl(this)),ue},unlinkDoc:function(y){if(y instanceof Jn&&(y=y.doc),this.linked)for(var b=0;b<this.linked.length;++b){var fe=this.linked[b];if(fe.doc==y){this.linked.splice(b,1),y.unlinkDoc(this),yu(fl(this));break}}if(y.history==this.history){var ue=[y.id];vo(y,function(we){return ue.push(we.id)},!0),y.history=new Pa(null),y.history.done=Bo(this.history.done,ue),y.history.undone=Bo(this.history.undone,ue)}},iterLinkedDocs:function(y){vo(this,y)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(y){return this.lineSep?y.split(this.lineSep):ur(y)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:pi(function(y){y!="rtl"&&(y="ltr"),y!=this.direction&&(this.direction=y,this.iter(function(b){return b.order=null}),this.cm&&su(this.cm))})}),Pi.prototype.eachLine=Pi.prototype.iter;var dl=0;function xu(y){var b=this;if(hl(b),!(xt(b,y)||gi(b.display,y))){Ct(y),be&&(dl=+new Date);var fe=So(b,y,!0),ue=y.dataTransfer.files;if(!(!fe||b.isReadOnly()))if(ue&&ue.length&&window.FileReader&&window.File)for(var we=ue.length,He=Array(we),tt=0,ut=function(){++tt==we&&hi(b,function(){fe=Nt(b.doc,fe);var tr={from:fe,to:fe,text:b.doc.splitLines(He.filter(function(Sr){return Sr!=null}).join(b.doc.lineSeparator())),origin:"paste"};Fo(b.doc,tr),Ys(b.doc,po(Nt(b.doc,fe),Nt(b.doc,mo(tr))))})()},dt=function(tr,Sr){if(b.options.allowDropFileTypes&&it(b.options.allowDropFileTypes,tr.type)==-1){ut();return}var Mr=new FileReader;Mr.onerror=function(){return ut()},Mr.onload=function(){var Hr=Mr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Hr)){ut();return}He[Sr]=Hr,ut()},Mr.readAsText(tr)},mt=0;mt<ue.length;mt++)dt(ue[mt],mt);else{if(b.state.draggingText&&b.doc.sel.contains(fe)>-1){b.state.draggingText(y),setTimeout(function(){return b.display.input.focus()},20);return}try{var Wt=y.dataTransfer.getData("Text");if(Wt){var Zt;if(b.state.draggingText&&!b.state.draggingText.copy&&(Zt=b.listSelections()),Ra(b.doc,po(fe,fe)),Zt)for(var ir=0;ir<Zt.length;++ir)_o(b.doc,"",Zt[ir].anchor,Zt[ir].head,"drag");b.replaceSelection(Wt,"around","paste"),b.display.input.focus()}}catch(tr){}}}}function wu(y,b){if(be&&(!y.state.draggingText||+new Date-dl<100)){vt(b);return}if(!(xt(y,b)||gi(y.display,b))&&(b.dataTransfer.setData("Text",y.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!le)){var fe=Ee("img",null,null,"position: fixed; left: 0; top: 0;");fe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ee&&(fe.width=fe.height=1,y.display.wrapper.appendChild(fe),fe._top=fe.offsetTop),b.dataTransfer.setDragImage(fe,0,0),ee&&fe.parentNode.removeChild(fe)}}function Su(y,b){var fe=So(y,b);if(fe){var ue=document.createDocumentFragment();Es(y,fe,ue),y.display.dragCursor||(y.display.dragCursor=Ee("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),y.display.lineSpace.insertBefore(y.display.dragCursor,y.display.cursorDiv)),Ce(y.display.dragCursor,ue)}}function hl(y){y.display.dragCursor&&(y.display.lineSpace.removeChild(y.display.dragCursor),y.display.dragCursor=null)}function pl(y){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),fe=[],ue=0;ue<b.length;ue++){var we=b[ue].CodeMirror;we&&fe.push(we)}fe.length&&fe[0].operation(function(){for(var He=0;He<fe.length;He++)y(fe[He])})}}var ml=!1;function Cu(){ml||(Eu(),ml=!0)}function Eu(){var y;Ot(window,"resize",function(){y==null&&(y=setTimeout(function(){y=null,pl(Ou)},100))}),Ot(window,"blur",function(){return pl(Mo)})}function Ou(y){var b=y.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,y.setSize()}for(var yo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},fa=0;fa<10;fa++)yo[fa+48]=yo[fa+96]=String(fa);for(var La=65;La<=90;La++)yo[La]=String.fromCharCode(La);for(var da=1;da<=12;da++)yo[da+111]=yo[da+63235]="F"+da;var ao={};ao.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ao.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ao.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ao.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ao.default=ce?ao.macDefault:ao.pcDefault;function Tu(y){var b=y.split(/-(?!$)/);y=b[b.length-1];for(var fe,ue,we,He,tt=0;tt<b.length-1;tt++){var ut=b[tt];if(/^(cmd|meta|m)$/i.test(ut))He=!0;else if(/^a(lt)?$/i.test(ut))fe=!0;else if(/^(c|ctrl|control)$/i.test(ut))ue=!0;else if(/^s(hift)?$/i.test(ut))we=!0;else throw new Error("Unrecognized modifier name: "+ut)}return fe&&(y="Alt-"+y),ue&&(y="Ctrl-"+y),He&&(y="Cmd-"+y),we&&(y="Shift-"+y),y}function Au(y){var b={};for(var fe in y)if(y.hasOwnProperty(fe)){var ue=y[fe];if(/^(name|fallthrough|(de|at)tach)$/.test(fe))continue;if(ue=="..."){delete y[fe];continue}for(var we=qe(fe.split(" "),Tu),He=0;He<we.length;He++){var tt=void 0,ut=void 0;He==we.length-1?(ut=we.join(" "),tt=ue):(ut=we.slice(0,He+1).join(" "),tt="...");var dt=b[ut];if(!dt)b[ut]=tt;else if(dt!=tt)throw new Error("Inconsistent bindings for "+ut)}delete y[fe]}for(var mt in b)y[mt]=b[mt];return y}function zo(y,b,fe,ue){b=Fa(b);var we=b.call?b.call(y,ue):b[y];if(we===!1)return"nothing";if(we==="...")return"multi";if(we!=null&&fe(we))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return zo(y,b.fallthrough,fe,ue);for(var He=0;He<b.fallthrough.length;He++){var tt=zo(y,b.fallthrough[He],fe,ue);if(tt)return tt}}}function vl(y){var b=typeof y=="string"?y:yo[y.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function gl(y,b,fe){var ue=y;return b.altKey&&ue!="Alt"&&(y="Alt-"+y),(ye?b.metaKey:b.ctrlKey)&&ue!="Ctrl"&&(y="Ctrl-"+y),(ye?b.ctrlKey:b.metaKey)&&ue!="Mod"&&(y="Cmd-"+y),!fe&&b.shiftKey&&ue!="Shift"&&(y="Shift-"+y),y}function yl(y,b){if(ee&&y.keyCode==34&&y.char)return!1;var fe=yo[y.keyCode];return fe==null||y.altGraphKey?!1:(y.keyCode==3&&y.code&&(fe=y.code),gl(fe,y,b))}function Fa(y){return typeof y=="string"?ao[y]:y}function Ho(y,b){for(var fe=y.doc.sel.ranges,ue=[],we=0;we<fe.length;we++){for(var He=b(fe[we]);ue.length&&Rt(He.from,ot(ue).to)<=0;){var tt=ue.pop();if(Rt(tt.from,He.from)<0){He.from=tt.from;break}}ue.push(He)}Wi(y,function(){for(var ut=ue.length-1;ut>=0;ut--)_o(y.doc,"",ue[ut].from,ue[ut].to,"+delete");Ro(y)})}function cs(y,b,fe){var ue=We(y.text,b+fe,fe);return ue<0||ue>y.text.length?null:ue}function fs(y,b,fe){var ue=cs(y,b.ch,fe);return ue==null?null:new wt(b.line,ue,fe<0?"after":"before")}function ds(y,b,fe,ue,we){if(y){b.doc.direction=="rtl"&&(we=-we);var He=Tt(fe,b.doc.direction);if(He){var tt=we<0?ot(He):He[0],ut=we<0==(tt.level==1),dt=ut?"after":"before",mt;if(tt.level>0||b.doc.direction=="rtl"){var Wt=uo(b,fe);mt=we<0?fe.text.length-1:0;var Zt=Zi(b,Wt,mt).top;mt=Ue(function(ir){return Zi(b,Wt,ir).top==Zt},we<0==(tt.level==1)?tt.from:tt.to-1,mt),dt=="before"&&(mt=cs(fe,mt,1))}else mt=we<0?tt.to:tt.from;return new wt(ue,mt,dt)}}return new wt(ue,we<0?fe.text.length:0,we<0?"before":"after")}function ju(y,b,fe,ue){var we=Tt(b,y.doc.direction);if(!we)return fs(b,fe,ue);fe.ch>=b.text.length?(fe.ch=b.text.length,fe.sticky="before"):fe.ch<=0&&(fe.ch=0,fe.sticky="after");var He=lt(we,fe.ch,fe.sticky),tt=we[He];if(y.doc.direction=="ltr"&&tt.level%2==0&&(ue>0?tt.to>fe.ch:tt.from<fe.ch))return fs(b,fe,ue);var ut=function(Xr,rn){return cs(b,Xr instanceof wt?Xr.ch:Xr,rn)},dt,mt=function(Xr){return y.options.lineWrapping?(dt=dt||uo(y,b),ii(y,b,dt,Xr)):{begin:0,end:b.text.length}},Wt=mt(fe.sticky=="before"?ut(fe,-1):fe.ch);if(y.doc.direction=="rtl"||tt.level==1){var Zt=tt.level==1==ue<0,ir=ut(fe,Zt?1:-1);if(ir!=null&&(Zt?ir<=tt.to&&ir<=Wt.end:ir>=tt.from&&ir>=Wt.begin)){var tr=Zt?"before":"after";return new wt(fe.line,ir,tr)}}var Sr=function(Xr,rn,Yr){for(var an=function(Yn,mi){return mi?new wt(fe.line,ut(Yn,1),"before"):new wt(fe.line,Yn,"after")};Xr>=0&&Xr<we.length;Xr+=rn){var gn=we[Xr],hn=rn>0==(gn.level!=1),kn=hn?Yr.begin:ut(Yr.end,-1);if(gn.from<=kn&&kn<gn.to||(kn=hn?gn.from:ut(gn.to,-1),Yr.begin<=kn&&kn<Yr.end))return an(kn,hn)}},Mr=Sr(He+ue,ue,Wt);if(Mr)return Mr;var Hr=ue>0?Wt.end:ut(Wt.begin,-1);return Hr!=null&&!(ue>0&&Hr==b.text.length)&&(Mr=Sr(ue>0?0:we.length-1,ue,mt(Hr)),Mr)?Mr:null}var ha={selectAll:rl,singleSelection:function(y){return y.setSelection(y.getCursor("anchor"),y.getCursor("head"),$e)},killLine:function(y){return Ho(y,function(b){if(b.empty()){var fe=qt(y.doc,b.head.line).text.length;return b.head.ch==fe&&b.head.line<y.lastLine()?{from:b.head,to:wt(b.head.line+1,0)}:{from:b.head,to:wt(b.head.line,fe)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(y){return Ho(y,function(b){return{from:wt(b.from().line,0),to:Nt(y.doc,wt(b.to().line+1,0))}})},delLineLeft:function(y){return Ho(y,function(b){return{from:wt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(y){return Ho(y,function(b){var fe=y.charCoords(b.head,"div").top+5,ue=y.coordsChar({left:0,top:fe},"div");return{from:ue,to:b.from()}})},delWrappedLineRight:function(y){return Ho(y,function(b){var fe=y.charCoords(b.head,"div").top+5,ue=y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:fe},"div");return{from:b.from(),to:ue}})},undo:function(y){return y.undo()},redo:function(y){return y.redo()},undoSelection:function(y){return y.undoSelection()},redoSelection:function(y){return y.redoSelection()},goDocStart:function(y){return y.extendSelection(wt(y.firstLine(),0))},goDocEnd:function(y){return y.extendSelection(wt(y.lastLine()))},goLineStart:function(y){return y.extendSelectionsBy(function(b){return bl(y,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(y){return y.extendSelectionsBy(function(b){return xl(y,b.head)},{origin:"+move",bias:1})},goLineEnd:function(y){return y.extendSelectionsBy(function(b){return Iu(y,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(y){return y.extendSelectionsBy(function(b){var fe=y.cursorCoords(b.head,"div").top+5;return y.coordsChar({left:y.display.lineDiv.offsetWidth+100,top:fe},"div")},Ve)},goLineLeft:function(y){return y.extendSelectionsBy(function(b){var fe=y.cursorCoords(b.head,"div").top+5;return y.coordsChar({left:0,top:fe},"div")},Ve)},goLineLeftSmart:function(y){return y.extendSelectionsBy(function(b){var fe=y.cursorCoords(b.head,"div").top+5,ue=y.coordsChar({left:0,top:fe},"div");return ue.ch<y.getLine(ue.line).search(/\S/)?xl(y,b.head):ue},Ve)},goLineUp:function(y){return y.moveV(-1,"line")},goLineDown:function(y){return y.moveV(1,"line")},goPageUp:function(y){return y.moveV(-1,"page")},goPageDown:function(y){return y.moveV(1,"page")},goCharLeft:function(y){return y.moveH(-1,"char")},goCharRight:function(y){return y.moveH(1,"char")},goColumnLeft:function(y){return y.moveH(-1,"column")},goColumnRight:function(y){return y.moveH(1,"column")},goWordLeft:function(y){return y.moveH(-1,"word")},goGroupRight:function(y){return y.moveH(1,"group")},goGroupLeft:function(y){return y.moveH(-1,"group")},goWordRight:function(y){return y.moveH(1,"word")},delCharBefore:function(y){return y.deleteH(-1,"codepoint")},delCharAfter:function(y){return y.deleteH(1,"char")},delWordBefore:function(y){return y.deleteH(-1,"word")},delWordAfter:function(y){return y.deleteH(1,"word")},delGroupBefore:function(y){return y.deleteH(-1,"group")},delGroupAfter:function(y){return y.deleteH(1,"group")},indentAuto:function(y){return y.indentSelection("smart")},indentMore:function(y){return y.indentSelection("add")},indentLess:function(y){return y.indentSelection("subtract")},insertTab:function(y){return y.replaceSelection(" ")},insertSoftTab:function(y){for(var b=[],fe=y.listSelections(),ue=y.options.tabSize,we=0;we<fe.length;we++){var He=fe[we].from(),tt=Fe(y.getLine(He.line),He.ch,ue);b.push(ct(ue-tt%ue))}y.replaceSelections(b)},defaultTab:function(y){y.somethingSelected()?y.indentSelection("add"):y.execCommand("insertTab")},transposeChars:function(y){return Wi(y,function(){for(var b=y.listSelections(),fe=[],ue=0;ue<b.length;ue++)if(b[ue].empty()){var we=b[ue].head,He=qt(y.doc,we.line).text;if(He){if(we.ch==He.length&&(we=new wt(we.line,we.ch-1)),we.ch>0)we=new wt(we.line,we.ch+1),y.replaceRange(He.charAt(we.ch-1)+He.charAt(we.ch-2),wt(we.line,we.ch-2),we,"+transpose");else if(we.line>y.doc.first){var tt=qt(y.doc,we.line-1).text;tt&&(we=new wt(we.line,1),y.replaceRange(He.charAt(0)+y.doc.lineSeparator()+tt.charAt(tt.length-1),wt(we.line-1,tt.length-1),we,"+transpose"))}}fe.push(new Gn(we,we))}y.setSelections(fe)})},newlineAndIndent:function(y){return Wi(y,function(){for(var b=y.listSelections(),fe=b.length-1;fe>=0;fe--)y.replaceRange(y.doc.lineSeparator(),b[fe].anchor,b[fe].head,"+input");b=y.listSelections();for(var ue=0;ue<b.length;ue++)y.indentLine(b[ue].from().line,null,!0);Ro(y)})},openLine:function(y){return y.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(y){return y.toggleOverwrite()}};function bl(y,b){var fe=qt(y.doc,b),ue=pr(fe);return ue!=fe&&(b=It(ue)),ds(!0,y,ue,b,1)}function Iu(y,b){var fe=qt(y.doc,b),ue=zr(fe);return ue!=fe&&(b=It(ue)),ds(!0,y,fe,b,-1)}function xl(y,b){var fe=bl(y,b.line),ue=qt(y.doc,fe.line),we=Tt(ue,y.doc.direction);if(!we||we[0].level==0){var He=Math.max(fe.ch,ue.text.search(/\S/)),tt=b.line==fe.line&&b.ch<=He&&b.ch;return wt(fe.line,tt?0:He,fe.sticky)}return fe}function _a(y,b,fe){if(typeof b=="string"&&(b=ha[b],!b))return!1;y.display.input.ensurePolled();var ue=y.display.shift,we=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),fe&&(y.display.shift=!1),we=b(y)!=et}finally{y.display.shift=ue,y.state.suppressEdits=!1}return we}function Du(y,b,fe){for(var ue=0;ue<y.state.keyMaps.length;ue++){var we=zo(b,y.state.keyMaps[ue],fe,y);if(we)return we}return y.options.extraKeys&&zo(b,y.options.extraKeys,fe,y)||zo(b,y.options.keyMap,fe,y)}var Pu=new Ke;function pa(y,b,fe,ue){var we=y.state.keySeq;if(we){if(vl(b))return"handled";if(/\'$/.test(b)?y.state.keySeq=null:Pu.set(50,function(){y.state.keySeq==we&&(y.state.keySeq=null,y.display.input.reset())}),wl(y,we+" "+b,fe,ue))return!0}return wl(y,b,fe,ue)}function wl(y,b,fe,ue){var we=Du(y,b,ue);return we=="multi"&&(y.state.keySeq=b),we=="handled"&&Pn(y,"keyHandled",y,b,fe),(we=="handled"||we=="multi")&&(Ct(fe),Xa(y)),!!we}function Sl(y,b){var fe=yl(b,!0);return fe?b.shiftKey&&!y.state.keySeq?pa(y,"Shift-"+fe,b,function(ue){return _a(y,ue,!0)})||pa(y,fe,b,function(ue){if(typeof ue=="string"?/^go[A-Z]/.test(ue):ue.motion)return _a(y,ue)}):pa(y,fe,b,function(ue){return _a(y,ue)}):!1}function ku(y,b,fe){return pa(y,"'"+fe+"'",b,function(ue){return _a(y,ue,!0)})}var hs=null;function Cl(y){var b=this;if(!(y.target&&y.target!=b.display.input.getField())&&(b.curOp.focus=Ae(),!xt(b,y))){be&&z<11&&y.keyCode==27&&(y.returnValue=!1);var fe=y.keyCode;b.display.shift=fe==16||y.shiftKey;var ue=Sl(b,y);ee&&(hs=ue?fe:null,!ue&&fe==88&&!or&&(ce?y.metaKey:y.ctrlKey)&&b.replaceSelection("",null,"cut")),ge&&!ce&&!ue&&fe==46&&y.shiftKey&&!y.ctrlKey&&document.execCommand&&document.execCommand("cut"),fe==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&Mu(b)}}function Mu(y){var b=y.display.lineDiv;Se(b,"CodeMirror-crosshair");function fe(ue){(ue.keyCode==18||!ue.altKey)&&(Be(b,"CodeMirror-crosshair"),Mt(document,"keyup",fe),Mt(document,"mouseover",fe))}Ot(document,"keyup",fe),Ot(document,"mouseover",fe)}function El(y){y.keyCode==16&&(this.doc.sel.shift=!1),xt(this,y)}function Ol(y){var b=this;if(!(y.target&&y.target!=b.display.input.getField())&&!(gi(b.display,y)||xt(b,y)||y.ctrlKey&&!y.altKey||ce&&y.metaKey)){var fe=y.keyCode,ue=y.charCode;if(ee&&fe==hs){hs=null,Ct(y);return}if(!(ee&&(!y.which||y.which<10)&&Sl(b,y))){var we=String.fromCharCode(ue==null?fe:ue);we!="\b"&&(ku(b,y,we)||b.display.input.onKeyPress(y))}}}var Ru=400,ps=function(y,b,fe){this.time=y,this.pos=b,this.button=fe};ps.prototype.compare=function(y,b,fe){return this.time+Ru>y&&Rt(b,this.pos)==0&&fe==this.button};var ma,va;function Nu(y,b){var fe=+new Date;return va&&va.compare(fe,y,b)?(ma=va=null,"triple"):ma&&ma.compare(fe,y,b)?(va=new ps(fe,y,b),ma=null,"double"):(ma=new ps(fe,y,b),va=null,"single")}function Tl(y){var b=this,fe=b.display;if(!(xt(b,y)||fe.activeTouch&&fe.input.supportsTouch())){if(fe.input.ensurePolled(),fe.shift=y.shiftKey,gi(fe,y)){E||(fe.scroller.draggable=!1,setTimeout(function(){return fe.scroller.draggable=!0},100));return}if(!ms(b,y)){var ue=So(b,y),we=_t(y),He=ue?Nu(ue,we):"single";window.focus(),we==1&&b.state.selectingText&&b.state.selectingText(y),!(ue&&Bu(b,we,ue,He,y))&&(we==1?ue?Fu(b,ue,He,y):Pt(y)==fe.scroller&&Ct(y):we==2?(ue&&Ma(b.doc,ue),setTimeout(function(){return fe.input.focus()},20)):we==3&&(De?b.display.input.onContextMenu(y):Ts(b)))}}}function Bu(y,b,fe,ue,we){var He="Click";return ue=="double"?He="Double"+He:ue=="triple"&&(He="Triple"+He),He=(b==1?"Left":b==2?"Middle":"Right")+He,pa(y,gl(He,we),we,function(tt){if(typeof tt=="string"&&(tt=ha[tt]),!tt)return!1;var ut=!1;try{y.isReadOnly()&&(y.state.suppressEdits=!0),ut=tt(y,fe)!=et}finally{y.state.suppressEdits=!1}return ut})}function Lu(y,b,fe){var ue=y.getOption("configureMouse"),we=ue?ue(y,b,fe):{};if(we.unit==null){var He=pe?fe.shiftKey&&fe.metaKey:fe.altKey;we.unit=He?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(we.extend==null||y.doc.extend)&&(we.extend=y.doc.extend||fe.shiftKey),we.addNew==null&&(we.addNew=ce?fe.metaKey:fe.ctrlKey),we.moveOnDrag==null&&(we.moveOnDrag=!(ce?fe.altKey:fe.ctrlKey)),we}function Fu(y,b,fe,ue){be?setTimeout(Je(Os,y),0):y.curOp.focus=Ae();var we=Lu(y,fe,ue),He=y.doc.sel,tt;y.options.dragDrop&&Kt&&!y.isReadOnly()&&fe=="single"&&(tt=He.contains(b))>-1&&(Rt((tt=He.ranges[tt]).from(),b)<0||b.xRel>0)&&(Rt(tt.to(),b)>0||b.xRel<0)?_u(y,ue,b,we):Wu(y,ue,b,we)}function _u(y,b,fe,ue){var we=y.display,He=!1,tt=hi(y,function(mt){E&&(we.scroller.draggable=!1),y.state.draggingText=!1,Mt(we.wrapper.ownerDocument,"mouseup",tt),Mt(we.wrapper.ownerDocument,"mousemove",ut),Mt(we.scroller,"dragstart",dt),Mt(we.scroller,"drop",tt),He||(Ct(mt),ue.addNew||Ma(y.doc,fe,null,null,ue.extend),E&&!le||be&&z==9?setTimeout(function(){we.wrapper.ownerDocument.body.focus({preventScroll:!0}),we.input.focus()},20):we.input.focus())}),ut=function(mt){He=He||Math.abs(b.clientX-mt.clientX)+Math.abs(b.clientY-mt.clientY)>=10},dt=function(){return He=!0};E&&(we.scroller.draggable=!0),y.state.draggingText=tt,tt.copy=!ue.moveOnDrag,we.scroller.dragDrop&&we.scroller.dragDrop(),Ot(we.wrapper.ownerDocument,"mouseup",tt),Ot(we.wrapper.ownerDocument,"mousemove",ut),Ot(we.scroller,"dragstart",dt),Ot(we.scroller,"drop",tt),Ts(y),setTimeout(function(){return we.input.focus()},20)}function Al(y,b,fe){if(fe=="char")return new Gn(b,b);if(fe=="word")return y.findWordAt(b);if(fe=="line")return new Gn(wt(b.line,0),Nt(y.doc,wt(b.line+1,0)));var ue=fe(y,b);return new Gn(ue.from,ue.to)}function Wu(y,b,fe,ue){var we=y.display,He=y.doc;Ct(b);var tt,ut,dt=He.sel,mt=dt.ranges;if(ue.addNew&&!ue.extend?(ut=He.sel.contains(fe),ut>-1?tt=mt[ut]:tt=new Gn(fe,fe)):(tt=He.sel.primary(),ut=He.sel.primIndex),ue.unit=="rectangle")ue.addNew||(tt=new Gn(fe,fe)),fe=So(y,b,!0,!0),ut=-1;else{var Wt=Al(y,fe,ue.unit);ue.extend?tt=ls(tt,Wt.anchor,Wt.head,ue.extend):tt=Wt}ue.addNew?ut==-1?(ut=mt.length,Si(He,Qi(y,mt.concat([tt]),ut),{scroll:!1,origin:"*mouse"})):mt.length>1&&mt[ut].empty()&&ue.unit=="char"&&!ue.extend?(Si(He,Qi(y,mt.slice(0,ut).concat(mt.slice(ut+1)),0),{scroll:!1,origin:"*mouse"}),dt=He.sel):us(He,ut,tt,Xe):(ut=0,Si(He,new Ui([tt],0),Xe),dt=He.sel);var Zt=fe;function ir(Yr){if(Rt(Zt,Yr)!=0)if(Zt=Yr,ue.unit=="rectangle"){for(var an=[],gn=y.options.tabSize,hn=Fe(qt(He,fe.line).text,fe.ch,gn),kn=Fe(qt(He,Yr.line).text,Yr.ch,gn),Yn=Math.min(hn,kn),mi=Math.max(hn,kn),Qn=Math.min(fe.line,Yr.line),zi=Math.min(y.lastLine(),Math.max(fe.line,Yr.line));Qn<=zi;Qn++){var ki=qt(He,Qn).text,ai=nt(ki,Yn,gn);Yn==mi?an.push(new Gn(wt(Qn,ai),wt(Qn,ai))):ki.length>ai&&an.push(new Gn(wt(Qn,ai),wt(Qn,nt(ki,mi,gn))))}an.length||an.push(new Gn(fe,fe)),Si(He,Qi(y,dt.ranges.slice(0,ut).concat(an),ut),{origin:"*mouse",scroll:!1}),y.scrollIntoView(Yr)}else{var Mi=tt,bi=Al(y,Yr,ue.unit),fi=Mi.anchor,si;Rt(bi.anchor,fi)>0?(si=bi.head,fi=Gt(Mi.from(),bi.anchor)):(si=bi.anchor,fi=zt(Mi.to(),bi.head));var ei=dt.ranges.slice(0);ei[ut]=zu(y,new Gn(Nt(He,fi),si)),Si(He,Qi(y,ei,ut),Xe)}}var tr=we.wrapper.getBoundingClientRect(),Sr=0;function Mr(Yr){var an=++Sr,gn=So(y,Yr,!0,ue.unit=="rectangle");if(gn)if(Rt(gn,Zt)!=0){y.curOp.focus=Ae(),ir(gn);var hn=Aa(we,He);(gn.line>=hn.to||gn.line<hn.from)&&setTimeout(hi(y,function(){Sr==an&&Mr(Yr)}),150)}else{var kn=Yr.clientY<tr.top?-20:Yr.clientY>tr.bottom?20:0;kn&&setTimeout(hi(y,function(){Sr==an&&(we.scroller.scrollTop+=kn,Mr(Yr))}),50)}}function Hr(Yr){y.state.selectingText=!1,Sr=1/0,Yr&&(Ct(Yr),we.input.focus()),Mt(we.wrapper.ownerDocument,"mousemove",Xr),Mt(we.wrapper.ownerDocument,"mouseup",rn),He.history.lastSelOrigin=null}var Xr=hi(y,function(Yr){Yr.buttons===0||!_t(Yr)?Hr(Yr):Mr(Yr)}),rn=hi(y,Hr);y.state.selectingText=rn,Ot(we.wrapper.ownerDocument,"mousemove",Xr),Ot(we.wrapper.ownerDocument,"mouseup",rn)}function zu(y,b){var fe=b.anchor,ue=b.head,we=qt(y.doc,fe.line);if(Rt(fe,ue)==0&&fe.sticky==ue.sticky)return b;var He=Tt(we);if(!He)return b;var tt=lt(He,fe.ch,fe.sticky),ut=He[tt];if(ut.from!=fe.ch&&ut.to!=fe.ch)return b;var dt=tt+(ut.from==fe.ch==(ut.level!=1)?0:1);if(dt==0||dt==He.length)return b;var mt;if(ue.line!=fe.line)mt=(ue.line-fe.line)*(y.doc.direction=="ltr"?1:-1)>0;else{var Wt=lt(He,ue.ch,ue.sticky),Zt=Wt-tt||(ue.ch-fe.ch)*(ut.level==1?-1:1);Wt==dt-1||Wt==dt?mt=Zt<0:mt=Zt>0}var ir=He[dt+(mt?-1:0)],tr=mt==(ir.level==1),Sr=tr?ir.from:ir.to,Mr=tr?"after":"before";return fe.ch==Sr&&fe.sticky==Mr?b:new Gn(new wt(fe.line,Sr,Mr),ue)}function jl(y,b,fe,ue){var we,He;if(b.touches)we=b.touches[0].clientX,He=b.touches[0].clientY;else try{we=b.clientX,He=b.clientY}catch(ir){return!1}if(we>=Math.floor(y.display.gutters.getBoundingClientRect().right))return!1;ue&&Ct(b);var tt=y.display,ut=tt.lineDiv.getBoundingClientRect();if(He>ut.bottom||!At(y,fe))return Xt(b);He-=ut.top-tt.viewOffset;for(var dt=0;dt<y.display.gutterSpecs.length;++dt){var mt=tt.gutters.childNodes[dt];if(mt&&mt.getBoundingClientRect().right>=we){var Wt=Ft(y.doc,He),Zt=y.display.gutterSpecs[dt];return Et(y,fe,y,Wt,Zt.className,b),Xt(b)}}}function ms(y,b){return jl(y,b,"gutterClick",!0)}function Il(y,b){gi(y.display,b)||Hu(y,b)||xt(y,b,"contextmenu")||De||y.display.input.onContextMenu(b)}function Hu(y,b){return At(y,"gutterContextMenu")?jl(y,b,"gutterContextMenu",!1):!1}function Dl(y){y.display.wrapper.className=y.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+y.options.theme.replace(/(^|\s)\s*/g," cm-s-"),wo(y)}var Uo={toString:function(){return"CodeMirror.Init"}},Pl={},Wa={};function Uu(y){var b=y.optionHandlers;function fe(ue,we,He,tt){y.defaults[ue]=we,He&&(b[ue]=tt?function(ut,dt,mt){mt!=Uo&&He(ut,dt,mt)}:He)}y.defineOption=fe,y.Init=Uo,fe("value","",function(ue,we){return ue.setValue(we)},!0),fe("mode",null,function(ue,we){ue.doc.modeOption=we,os(ue)},!0),fe("indentUnit",2,os,!0),fe("indentWithTabs",!1),fe("smartIndent",!0),fe("tabSize",4,function(ue){ia(ue),wo(ue),Di(ue)},!0),fe("lineSeparator",null,function(ue,we){if(ue.doc.lineSep=we,!!we){var He=[],tt=ue.doc.first;ue.doc.iter(function(dt){for(var mt=0;;){var Wt=dt.text.indexOf(we,mt);if(Wt==-1)break;mt=Wt+we.length,He.push(wt(tt,Wt))}tt++});for(var ut=He.length-1;ut>=0;ut--)_o(ue.doc,we,He[ut],wt(He[ut].line,He[ut].ch+we.length))}}),fe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ue,we,He){ue.state.specialChars=new RegExp(we.source+(we.test(" ")?"":"| "),"g"),He!=Uo&&ue.refresh()}),fe("specialCharPlaceholder",Ei,function(ue){return ue.refresh()},!0),fe("electricChars",!0),fe("inputStyle",se?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),fe("spellcheck",!1,function(ue,we){return ue.getInputField().spellcheck=we},!0),fe("autocorrect",!1,function(ue,we){return ue.getInputField().autocorrect=we},!0),fe("autocapitalize",!1,function(ue,we){return ue.getInputField().autocapitalize=we},!0),fe("rtlMoveVisually",!me),fe("wholeLineUpdateBefore",!0),fe("theme","default",function(ue){Dl(ue),na(ue)},!0),fe("keyMap","default",function(ue,we,He){var tt=Fa(we),ut=He!=Uo&&Fa(He);ut&&ut.detach&&ut.detach(ue,tt),tt.attach&&tt.attach(ue,ut||null)}),fe("extraKeys",null),fe("configureMouse",null),fe("lineWrapping",!1,Zu,!0),fe("gutters",[],function(ue,we){ue.display.gutterSpecs=ns(we,ue.options.lineNumbers),na(ue)},!0),fe("fixedGutter",!0,function(ue,we){ue.display.gutters.style.left=we?Ka(ue.display)+"px":"0",ue.refresh()},!0),fe("coverGutterNextToScrollbar",!1,function(ue){return No(ue)},!0),fe("scrollbarStyle","native",function(ue){ks(ue),No(ue),ue.display.scrollbars.setScrollTop(ue.doc.scrollTop),ue.display.scrollbars.setScrollLeft(ue.doc.scrollLeft)},!0),fe("lineNumbers",!1,function(ue,we){ue.display.gutterSpecs=ns(ue.options.gutters,we),na(ue)},!0),fe("firstLineNumber",1,na,!0),fe("lineNumberFormatter",function(ue){return ue},na,!0),fe("showCursorWhenSelecting",!1,Jo,!0),fe("resetSelectionOnContextMenu",!0),fe("lineWiseCopyCut",!0),fe("pasteLinesPerSelection",!0),fe("selectionsMayTouch",!1),fe("readOnly",!1,function(ue,we){we=="nocursor"&&(Mo(ue),ue.display.input.blur()),ue.display.input.readOnlyChanged(we)}),fe("screenReaderLabel",null,function(ue,we){we=we===""?null:we,ue.display.input.screenReaderLabelChanged(we)}),fe("disableInput",!1,function(ue,we){we||ue.display.input.reset()},!0),fe("dragDrop",!0,$u),fe("allowDropFileTypes",null),fe("cursorBlinkRate",530),fe("cursorScrollMargin",0),fe("cursorHeight",1,Jo,!0),fe("singleCursorHeightPerLine",!0,Jo,!0),fe("workTime",100),fe("workDelay",100),fe("flattenSpans",!0,ia,!0),fe("addModeClass",!1,ia,!0),fe("pollInterval",100),fe("undoDepth",200,function(ue,we){return ue.doc.history.undoDepth=we}),fe("historyEventDelay",1250),fe("viewportMargin",10,function(ue){return ue.refresh()},!0),fe("maxHighlightLength",1e4,ia,!0),fe("moveInputWithCursor",!0,function(ue,we){we||ue.display.input.resetPosition()}),fe("tabindex",null,function(ue,we){return ue.display.input.getField().tabIndex=we||""}),fe("autofocus",null),fe("direction","ltr",function(ue,we){return ue.doc.setDirection(we)},!0),fe("phrases",null)}function $u(y,b,fe){var ue=fe&&fe!=Uo;if(!b!=!ue){var we=y.display.dragFunctions,He=b?Ot:Mt;He(y.display.scroller,"dragstart",we.start),He(y.display.scroller,"dragenter",we.enter),He(y.display.scroller,"dragover",we.over),He(y.display.scroller,"dragleave",we.leave),He(y.display.scroller,"drop",we.drop)}}function Zu(y){y.options.lineWrapping?(Se(y.display.wrapper,"CodeMirror-wrap"),y.display.sizer.style.minWidth="",y.display.sizerWidth=null):(Be(y.display.wrapper,"CodeMirror-wrap"),Tn(y)),Va(y),Di(y),wo(y),setTimeout(function(){return No(y)},100)}function Jn(y,b){var fe=this;if(!(this instanceof Jn))return new Jn(y,b);this.options=b=b?at(b):{},at(Pl,b,!1);var ue=b.value;typeof ue=="string"?ue=new Pi(ue,b.mode,null,b.lineSeparator,b.direction):b.mode&&(ue.modeOption=b.mode),this.doc=ue;var we=new Jn.inputStyles[b.inputStyle](this),He=this.display=new iu(y,ue,we,b);He.wrapper.CodeMirror=this,Dl(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ks(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ke,keySeq:null,specialChars:null},b.autofocus&&!se&&He.input.focus(),be&&z<11&&setTimeout(function(){return fe.display.input.reset(!0)},20),Gu(this),Cu(),To(this),this.curOp.forceUpdate=!0,Hs(this,ue),b.autofocus&&!se||this.hasFocus()?setTimeout(function(){fe.hasFocus()&&!fe.state.focused&&Ya(fe)},20):Mo(this);for(var tt in Wa)Wa.hasOwnProperty(tt)&&Wa[tt](this,b[tt],Uo);Ns(this),b.finishInit&&b.finishInit(this);for(var ut=0;ut<vs.length;++ut)vs[ut](this);Ao(this),E&&b.lineWrapping&&getComputedStyle(He.lineDiv).textRendering=="optimizelegibility"&&(He.lineDiv.style.textRendering="auto")}Jn.defaults=Pl,Jn.optionHandlers=Wa;function Gu(y){var b=y.display;Ot(b.scroller,"mousedown",hi(y,Tl)),be&&z<11?Ot(b.scroller,"dblclick",hi(y,function(dt){if(!xt(y,dt)){var mt=So(y,dt);if(!(!mt||ms(y,dt)||gi(y.display,dt))){Ct(dt);var Wt=y.findWordAt(mt);Ma(y.doc,Wt.anchor,Wt.head)}}})):Ot(b.scroller,"dblclick",function(dt){return xt(y,dt)||Ct(dt)}),Ot(b.scroller,"contextmenu",function(dt){return Il(y,dt)}),Ot(b.input.getField(),"contextmenu",function(dt){b.scroller.contains(dt.target)||Il(y,dt)});var fe,ue={end:0};function we(){b.activeTouch&&(fe=setTimeout(function(){return b.activeTouch=null},1e3),ue=b.activeTouch,ue.end=+new Date)}function He(dt){if(dt.touches.length!=1)return!1;var mt=dt.touches[0];return mt.radiusX<=1&&mt.radiusY<=1}function tt(dt,mt){if(mt.left==null)return!0;var Wt=mt.left-dt.left,Zt=mt.top-dt.top;return Wt*Wt+Zt*Zt>20*20}Ot(b.scroller,"touchstart",function(dt){if(!xt(y,dt)&&!He(dt)&&!ms(y,dt)){b.input.ensurePolled(),clearTimeout(fe);var mt=+new Date;b.activeTouch={start:mt,moved:!1,prev:mt-ue.end<=300?ue:null},dt.touches.length==1&&(b.activeTouch.left=dt.touches[0].pageX,b.activeTouch.top=dt.touches[0].pageY)}}),Ot(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Ot(b.scroller,"touchend",function(dt){var mt=b.activeTouch;if(mt&&!gi(b,dt)&&mt.left!=null&&!mt.moved&&new Date-mt.start<300){var Wt=y.coordsChar(b.activeTouch,"page"),Zt;!mt.prev||tt(mt,mt.prev)?Zt=new Gn(Wt,Wt):!mt.prev.prev||tt(mt,mt.prev.prev)?Zt=y.findWordAt(Wt):Zt=new Gn(wt(Wt.line,0),Nt(y.doc,wt(Wt.line+1,0))),y.setSelection(Zt.anchor,Zt.head),y.focus(),Ct(dt)}we()}),Ot(b.scroller,"touchcancel",we),Ot(b.scroller,"scroll",function(){b.scroller.clientHeight&&(qo(y,b.scroller.scrollTop),Eo(y,b.scroller.scrollLeft,!0),Et(y,"scroll",y))}),Ot(b.scroller,"mousewheel",function(dt){return Fs(y,dt)}),Ot(b.scroller,"DOMMouseScroll",function(dt){return Fs(y,dt)}),Ot(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(dt){xt(y,dt)||vt(dt)},over:function(dt){xt(y,dt)||(Su(y,dt),vt(dt))},start:function(dt){return wu(y,dt)},drop:hi(y,xu),leave:function(dt){xt(y,dt)||hl(y)}};var ut=b.input.getField();Ot(ut,"keyup",function(dt){return El.call(y,dt)}),Ot(ut,"keydown",hi(y,Cl)),Ot(ut,"keypress",hi(y,Ol)),Ot(ut,"focus",function(dt){return Ya(y,dt)}),Ot(ut,"blur",function(dt){return Mo(y,dt)})}var vs=[];Jn.defineInitHook=function(y){return vs.push(y)};function ga(y,b,fe,ue){var we=y.doc,He;fe==null&&(fe="add"),fe=="smart"&&(we.mode.indent?He=Wr(y,b).state:fe="prev");var tt=y.options.tabSize,ut=qt(we,b),dt=Fe(ut.text,null,tt);ut.stateAfter&&(ut.stateAfter=null);var mt=ut.text.match(/^\s*/)[0],Wt;if(!ue&&!/\S/.test(ut.text))Wt=0,fe="not";else if(fe=="smart"&&(Wt=we.mode.indent(He,ut.text.slice(mt.length),ut.text),Wt==et||Wt>150)){if(!ue)return;fe="prev"}fe=="prev"?b>we.first?Wt=Fe(qt(we,b-1).text,null,tt):Wt=0:fe=="add"?Wt=dt+y.options.indentUnit:fe=="subtract"?Wt=dt-y.options.indentUnit:typeof fe=="number"&&(Wt=dt+fe),Wt=Math.max(0,Wt);var Zt="",ir=0;if(y.options.indentWithTabs)for(var tr=Math.floor(Wt/tt);tr;--tr)ir+=tt,Zt+=" ";if(ir<Wt&&(Zt+=ct(Wt-ir)),Zt!=mt)return _o(we,Zt,wt(b,0),wt(b,mt.length),"+input"),ut.stateAfter=null,!0;for(var Sr=0;Sr<we.sel.ranges.length;Sr++){var Mr=we.sel.ranges[Sr];if(Mr.head.line==b&&Mr.head.ch<mt.length){var Hr=wt(b,mt.length);us(we,Sr,new Gn(Hr,Hr));break}}}var qi=null;function za(y){qi=y}function gs(y,b,fe,ue,we){var He=y.doc;y.display.shift=!1,ue||(ue=He.sel);var tt=+new Date-200,ut=we=="paste"||y.state.pasteIncoming>tt,dt=ur(b),mt=null;if(ut&&ue.ranges.length>1)if(qi&&qi.text.join(`
|
|
|
`)==b){if(ue.ranges.length%qi.text.length==0){mt=[];for(var Wt=0;Wt<qi.text.length;Wt++)mt.push(He.splitLines(qi.text[Wt]))}}else dt.length==ue.ranges.length&&y.options.pasteLinesPerSelection&&(mt=qe(dt,function(Xr){return[Xr]}));for(var Zt=y.curOp.updateInput,ir=ue.ranges.length-1;ir>=0;ir--){var tr=ue.ranges[ir],Sr=tr.from(),Mr=tr.to();tr.empty()&&(fe&&fe>0?Sr=wt(Sr.line,Sr.ch-fe):y.state.overwrite&&!ut?Mr=wt(Mr.line,Math.min(qt(He,Mr.line).text.length,Mr.ch+ot(dt).length)):ut&&qi&&qi.lineWise&&qi.text.join(`
|
|
|
`)==dt.join(`
|
|
|
`)&&(Sr=Mr=wt(Sr.line,0)));var Hr={from:Sr,to:Mr,text:mt?mt[ir%mt.length]:dt,origin:we||(ut?"paste":y.state.cutIncoming>tt?"cut":"+input")};Fo(y.doc,Hr),Pn(y,"inputRead",y,Hr)}b&&!ut&&Ml(y,b),Ro(y),y.curOp.updateInput<2&&(y.curOp.updateInput=Zt),y.curOp.typing=!0,y.state.pasteIncoming=y.state.cutIncoming=-1}function kl(y,b){var fe=y.clipboardData&&y.clipboardData.getData("Text");if(fe)return y.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&Wi(b,function(){return gs(b,fe,0,null,"paste")}),!0}function Ml(y,b){if(!(!y.options.electricChars||!y.options.smartIndent))for(var fe=y.doc.sel,ue=fe.ranges.length-1;ue>=0;ue--){var we=fe.ranges[ue];if(!(we.head.ch>100||ue&&fe.ranges[ue-1].head.line==we.head.line)){var He=y.getModeAt(we.head),tt=!1;if(He.electricChars){for(var ut=0;ut<He.electricChars.length;ut++)if(b.indexOf(He.electricChars.charAt(ut))>-1){tt=ga(y,we.head.line,"smart");break}}else He.electricInput&&He.electricInput.test(qt(y.doc,we.head.line).text.slice(0,we.head.ch))&&(tt=ga(y,we.head.line,"smart"));tt&&Pn(y,"electricInput",y,we.head.line)}}}function Rl(y){for(var b=[],fe=[],ue=0;ue<y.doc.sel.ranges.length;ue++){var we=y.doc.sel.ranges[ue].head.line,He={anchor:wt(we,0),head:wt(we+1,0)};fe.push(He),b.push(y.getRange(He.anchor,He.head))}return{text:b,ranges:fe}}function Nl(y,b,fe,ue){y.setAttribute("autocorrect",fe?"":"off"),y.setAttribute("autocapitalize",ue?"":"off"),y.setAttribute("spellcheck",!!b)}function Bl(){var y=Ee("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=Ee("div",[y],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return E?y.style.width="1000px":y.setAttribute("wrap","off"),re&&(y.style.border="1px solid black"),Nl(y),b}function Ku(y){var b=y.optionHandlers,fe=y.helpers={};y.prototype={constructor:y,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ue,we){var He=this.options,tt=He[ue];He[ue]==we&&ue!="mode"||(He[ue]=we,b.hasOwnProperty(ue)&&hi(this,b[ue])(this,we,tt),Et(this,"optionChange",this,ue))},getOption:function(ue){return this.options[ue]},getDoc:function(){return this.doc},addKeyMap:function(ue,we){this.state.keyMaps[we?"push":"unshift"](Fa(ue))},removeKeyMap:function(ue){for(var we=this.state.keyMaps,He=0;He<we.length;++He)if(we[He]==ue||we[He].name==ue)return we.splice(He,1),!0},addOverlay:Ti(function(ue,we){var He=ue.token?ue:y.getMode(this.options,ue);if(He.startState)throw new Error("Overlays may not be stateful.");_e(this.state.overlays,{mode:He,modeSpec:ue,opaque:we&&we.opaque,priority:we&&we.priority||0},function(tt){return tt.priority}),this.state.modeGen++,Di(this)}),removeOverlay:Ti(function(ue){for(var we=this.state.overlays,He=0;He<we.length;++He){var tt=we[He].modeSpec;if(tt==ue||typeof ue=="string"&&tt.name==ue){we.splice(He,1),this.state.modeGen++,Di(this);return}}}),indentLine:Ti(function(ue,we,He){typeof we!="string"&&typeof we!="number"&&(we==null?we=this.options.smartIndent?"smart":"prev":we=we?"add":"subtract"),bt(this.doc,ue)&&ga(this,ue,we,He)}),indentSelection:Ti(function(ue){for(var we=this.doc.sel.ranges,He=-1,tt=0;tt<we.length;tt++){var ut=we[tt];if(ut.empty())ut.head.line>He&&(ga(this,ut.head.line,ue,!0),He=ut.head.line,tt==this.doc.sel.primIndex&&Ro(this));else{var dt=ut.from(),mt=ut.to(),Wt=Math.max(He,dt.line);He=Math.min(this.lastLine(),mt.line-(mt.ch?0:1))+1;for(var Zt=Wt;Zt<He;++Zt)ga(this,Zt,ue);var ir=this.doc.sel.ranges;dt.ch==0&&we.length==ir.length&&ir[tt].from().ch>0&&us(this.doc,tt,new Gn(dt,ir[tt].to()),$e)}}}),getTokenAt:function(ue,we){return Ur(this,ue,we)},getLineTokens:function(ue,we){return Ur(this,wt(ue),we,!0)},getTokenTypeAt:function(ue){ue=Nt(this.doc,ue);var we=Br(this,qt(this.doc,ue.line)),He=0,tt=(we.length-1)/2,ut=ue.ch,dt;if(ut==0)dt=we[2];else for(;;){var mt=He+tt>>1;if((mt?we[mt*2-1]:0)>=ut)tt=mt;else if(we[mt*2+1]<ut)He=mt+1;else{dt=we[mt*2+2];break}}var Wt=dt?dt.indexOf("overlay "):-1;return Wt<0?dt:Wt==0?null:dt.slice(0,Wt-1)},getModeAt:function(ue){var we=this.doc.mode;return we.innerMode?y.innerMode(we,this.getTokenAt(ue).state).mode:we},getHelper:function(ue,we){return this.getHelpers(ue,we)[0]},getHelpers:function(ue,we){var He=[];if(!fe.hasOwnProperty(we))return He;var tt=fe[we],ut=this.getModeAt(ue);if(typeof ut[we]=="string")tt[ut[we]]&&He.push(tt[ut[we]]);else if(ut[we])for(var dt=0;dt<ut[we].length;dt++){var mt=tt[ut[we][dt]];mt&&He.push(mt)}else ut.helperType&&tt[ut.helperType]?He.push(tt[ut.helperType]):tt[ut.name]&&He.push(tt[ut.name]);for(var Wt=0;Wt<tt._global.length;Wt++){var Zt=tt._global[Wt];Zt.pred(ut,this)&&it(He,Zt.val)==-1&&He.push(Zt.val)}return He},getStateAfter:function(ue,we){var He=this.doc;return ue=Ht(He,ue==null?He.first+He.size-1:ue),Wr(this,ue+1,we).state},cursorCoords:function(ue,we){var He,tt=this.doc.sel.primary();return ue==null?He=tt.head:typeof ue=="object"?He=Nt(this.doc,ue):He=ue?tt.from():tt.to(),Ii(this,He,we||"page")},charCoords:function(ue,we){return ko(this,Nt(this.doc,ue),we||"page")},coordsChar:function(ue,we){return ue=Ca(this,ue,we||"page"),yi(this,ue.left,ue.top)},lineAtHeight:function(ue,we){return ue=Ca(this,{top:ue,left:0},we||"page").top,Ft(this.doc,ue+this.display.viewOffset)},heightAtLine:function(ue,we,He){var tt=!1,ut;if(typeof ue=="number"){var dt=this.doc.first+this.doc.size-1;ue<this.doc.first?ue=this.doc.first:ue>dt&&(ue=dt,tt=!0),ut=qt(this.doc,ue)}else ut=ue;return Po(this,ut,{top:0,left:0},we||"page",He||tt).top+(tt?this.doc.height-cn(ut):0)},defaultTextHeight:function(){return _i(this.display)},defaultCharWidth:function(){return Ji(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ue,we,He,tt,ut){var dt=this.display;ue=Ii(this,Nt(this.doc,ue));var mt=ue.bottom,Wt=ue.left;if(we.style.position="absolute",we.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(we),dt.sizer.appendChild(we),tt=="over")mt=ue.top;else if(tt=="above"||tt=="near"){var Zt=Math.max(dt.wrapper.clientHeight,this.doc.height),ir=Math.max(dt.sizer.clientWidth,dt.lineSpace.clientWidth);(tt=="above"||ue.bottom+we.offsetHeight>Zt)&&ue.top>we.offsetHeight?mt=ue.top-we.offsetHeight:ue.bottom+we.offsetHeight<=Zt&&(mt=ue.bottom),Wt+we.offsetWidth>ir&&(Wt=ir-we.offsetWidth)}we.style.top=mt+"px",we.style.left=we.style.right="",ut=="right"?(Wt=dt.sizer.clientWidth-we.offsetWidth,we.style.right="0px"):(ut=="left"?Wt=0:ut=="middle"&&(Wt=(dt.sizer.clientWidth-we.offsetWidth)/2),we.style.left=Wt+"px"),He&&$l(this,{left:Wt,top:mt,right:Wt+we.offsetWidth,bottom:mt+we.offsetHeight})},triggerOnKeyDown:Ti(Cl),triggerOnKeyPress:Ti(Ol),triggerOnKeyUp:El,triggerOnMouseDown:Ti(Tl),execCommand:function(ue){if(ha.hasOwnProperty(ue))return ha[ue].call(null,this)},triggerElectric:Ti(function(ue){Ml(this,ue)}),findPosH:function(ue,we,He,tt){var ut=1;we<0&&(ut=-1,we=-we);for(var dt=Nt(this.doc,ue),mt=0;mt<we&&(dt=ys(this.doc,dt,ut,He,tt),!dt.hitSide);++mt);return dt},moveH:Ti(function(ue,we){var He=this;this.extendSelectionsBy(function(tt){return He.display.shift||He.doc.extend||tt.empty()?ys(He.doc,tt.head,ue,we,He.options.rtlMoveVisually):ue<0?tt.from():tt.to()},Ve)}),deleteH:Ti(function(ue,we){var He=this.doc.sel,tt=this.doc;He.somethingSelected()?tt.replaceSelection("",null,"+delete"):Ho(this,function(ut){var dt=ys(tt,ut.head,ue,we,!1);return ue<0?{from:dt,to:ut.head}:{from:ut.head,to:dt}})}),findPosV:function(ue,we,He,tt){var ut=1,dt=tt;we<0&&(ut=-1,we=-we);for(var mt=Nt(this.doc,ue),Wt=0;Wt<we;++Wt){var Zt=Ii(this,mt,"div");if(dt==null?dt=Zt.left:Zt.left=dt,mt=Ll(this,Zt,ut,He),mt.hitSide)break}return mt},moveV:Ti(function(ue,we){var He=this,tt=this.doc,ut=[],dt=!this.display.shift&&!tt.extend&&tt.sel.somethingSelected();if(tt.extendSelectionsBy(function(Wt){if(dt)return ue<0?Wt.from():Wt.to();var Zt=Ii(He,Wt.head,"div");Wt.goalColumn!=null&&(Zt.left=Wt.goalColumn),ut.push(Zt.left);var ir=Ll(He,Zt,ue,we);return we=="page"&&Wt==tt.sel.primary()&&Qa(He,ko(He,ir,"div").top-Zt.top),ir},Ve),ut.length)for(var mt=0;mt<tt.sel.ranges.length;mt++)tt.sel.ranges[mt].goalColumn=ut[mt]}),findWordAt:function(ue){var we=this.doc,He=qt(we,ue.line).text,tt=ue.ch,ut=ue.ch;if(He){var dt=this.getHelper(ue,"wordChars");(ue.sticky=="before"||ut==He.length)&&tt?--tt:++ut;for(var mt=He.charAt(tt),Wt=ze(mt,dt)?function(Zt){return ze(Zt,dt)}:/\s/.test(mt)?function(Zt){return/\s/.test(Zt)}:function(Zt){return!/\s/.test(Zt)&&!ze(Zt)};tt>0&&Wt(He.charAt(tt-1));)--tt;for(;ut<He.length&&Wt(He.charAt(ut));)++ut}return new Gn(wt(ue.line,tt),wt(ue.line,ut))},toggleOverwrite:function(ue){ue!=null&&ue==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Se(this.display.cursorDiv,"CodeMirror-overwrite"):Be(this.display.cursorDiv,"CodeMirror-overwrite"),Et(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ti(function(ue,we){Qo(this,ue,we)}),getScrollInfo:function(){var ue=this.display.scroller;return{left:ue.scrollLeft,top:ue.scrollTop,height:ue.scrollHeight-Li(this)-this.display.barHeight,width:ue.scrollWidth-Li(this)-this.display.barWidth,clientHeight:io(this),clientWidth:to(this)}},scrollIntoView:Ti(function(ue,we){ue==null?(ue={from:this.doc.sel.primary().head,to:null},we==null&&(we=this.options.cursorScrollMargin)):typeof ue=="number"?ue={from:wt(ue,0),to:null}:ue.from==null&&(ue={from:ue,to:null}),ue.to||(ue.to=ue.from),ue.margin=we||0,ue.from.line!=null?Zl(this,ue):js(this,ue.from,ue.to,ue.margin)}),setSize:Ti(function(ue,we){var He=this,tt=function(dt){return typeof dt=="number"||/^\d+$/.test(String(dt))?dt+"px":dt};ue!=null&&(this.display.wrapper.style.width=tt(ue)),we!=null&&(this.display.wrapper.style.height=tt(we)),this.options.lineWrapping&&Vo(this);var ut=this.display.viewFrom;this.doc.iter(ut,this.display.viewTo,function(dt){if(dt.widgets){for(var mt=0;mt<dt.widgets.length;mt++)if(dt.widgets[mt].noHScroll){fo(He,ut,"widget");break}}++ut}),this.curOp.forceUpdate=!0,Et(this,"refresh",this)}),operation:function(ue){return Wi(this,ue)},startOperation:function(){return To(this)},endOperation:function(){return Ao(this)},refresh:Ti(function(){var ue=this.display.cachedTextHeight;Di(this),this.curOp.forceUpdate=!0,wo(this),Qo(this,this.doc.scrollLeft,this.doc.scrollTop),ts(this.display),(ue==null||Math.abs(ue-_i(this.display))>.5||this.options.lineWrapping)&&Va(this),Et(this,"refresh",this)}),swapDoc:Ti(function(ue){var we=this.doc;return we.cm=null,this.state.selectingText&&this.state.selectingText(),Hs(this,ue),wo(this),this.display.input.reset(),Qo(this,ue.scrollLeft,ue.scrollTop),this.curOp.forceScroll=!0,Pn(this,"swapDoc",this,we),we}),phrase:function(ue){var we=this.options.phrases;return we&&Object.prototype.hasOwnProperty.call(we,ue)?we[ue]:ue},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ht(y),y.registerHelper=function(ue,we,He){fe.hasOwnProperty(ue)||(fe[ue]=y[ue]={_global:[]}),fe[ue][we]=He},y.registerGlobalHelper=function(ue,we,He,tt){y.registerHelper(ue,we,tt),fe[ue]._global.push({pred:He,val:tt})}}function ys(y,b,fe,ue,we){var He=b,tt=fe,ut=qt(y,b.line),dt=we&&y.direction=="rtl"?-fe:fe;function mt(){var rn=b.line+dt;return rn<y.first||rn>=y.first+y.size?!1:(b=new wt(rn,b.ch,b.sticky),ut=qt(y,rn))}function Wt(rn){var Yr;if(ue=="codepoint"){var an=ut.text.charCodeAt(b.ch+(ue>0?0:-1));isNaN(an)?Yr=null:Yr=new wt(b.line,Math.max(0,Math.min(ut.text.length,b.ch+fe*(an>=55296&&an<56320?2:1))),-fe)}else we?Yr=ju(y.cm,ut,b,fe):Yr=fs(ut,b,fe);if(Yr==null)if(!rn&&mt())b=ds(we,y.cm,ut,b.line,dt);else return!1;else b=Yr;return!0}if(ue=="char"||ue=="codepoint")Wt();else if(ue=="column")Wt(!0);else if(ue=="word"||ue=="group")for(var Zt=null,ir=ue=="group",tr=y.cm&&y.cm.getHelper(b,"wordChars"),Sr=!0;!(fe<0&&!Wt(!Sr));Sr=!1){var Mr=ut.text.charAt(b.ch)||`
|
|
|
`,Hr=ze(Mr,tr)?"w":ir&&Mr==`
|
|
|
`?"n":!ir||/\s/.test(Mr)?null:"p";if(ir&&!Sr&&!Hr&&(Hr="s"),Zt&&Zt!=Hr){fe<0&&(fe=1,Wt(),b.sticky="after");break}if(Hr&&(Zt=Hr),fe>0&&!Wt(!Sr))break}var Xr=Na(y,b,He,tt,!0);return pt(He,Xr)&&(Xr.hitSide=!0),Xr}function Ll(y,b,fe,ue){var we=y.doc,He=b.left,tt;if(ue=="page"){var ut=Math.min(y.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),dt=Math.max(ut-.5*_i(y.display),3);tt=(fe>0?b.bottom:b.top)+fe*dt}else ue=="line"&&(tt=fe>0?b.bottom+3:b.top-3);for(var mt;mt=yi(y,He,tt),!!mt.outside;){if(fe<0?tt<=0:tt>=we.height){mt.hitSide=!0;break}tt+=fe*5}return mt}var Kn=function(y){this.cm=y,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ke,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Kn.prototype.init=function(y){var b=this,fe=this,ue=fe.cm,we=fe.div=y.lineDiv;Nl(we,ue.options.spellcheck,ue.options.autocorrect,ue.options.autocapitalize);function He(ut){for(var dt=ut.target;dt;dt=dt.parentNode){if(dt==we)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(dt.className))break}return!1}Ot(we,"paste",function(ut){!He(ut)||xt(ue,ut)||kl(ut,ue)||z<=11&&setTimeout(hi(ue,function(){return b.updateFromDOM()}),20)}),Ot(we,"compositionstart",function(ut){b.composing={data:ut.data,done:!1}}),Ot(we,"compositionupdate",function(ut){b.composing||(b.composing={data:ut.data,done:!1})}),Ot(we,"compositionend",function(ut){b.composing&&(ut.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Ot(we,"touchstart",function(){return fe.forceCompositionEnd()}),Ot(we,"input",function(){b.composing||b.readFromDOMSoon()});function tt(ut){if(!(!He(ut)||xt(ue,ut))){if(ue.somethingSelected())za({lineWise:!1,text:ue.getSelections()}),ut.type=="cut"&&ue.replaceSelection("",null,"cut");else if(ue.options.lineWiseCopyCut){var dt=Rl(ue);za({lineWise:!0,text:dt.text}),ut.type=="cut"&&ue.operation(function(){ue.setSelections(dt.ranges,0,$e),ue.replaceSelection("",null,"cut")})}else return;if(ut.clipboardData){ut.clipboardData.clearData();var mt=qi.text.join(`
|
|
|
`);if(ut.clipboardData.setData("Text",mt),ut.clipboardData.getData("Text")==mt){ut.preventDefault();return}}var Wt=Bl(),Zt=Wt.firstChild;ue.display.lineSpace.insertBefore(Wt,ue.display.lineSpace.firstChild),Zt.value=qi.text.join(`
|
|
|
`);var ir=document.activeElement;Ze(Zt),setTimeout(function(){ue.display.lineSpace.removeChild(Wt),ir.focus(),ir==we&&fe.showPrimarySelection()},50)}}Ot(we,"copy",tt),Ot(we,"cut",tt)},Kn.prototype.screenReaderLabelChanged=function(y){y?this.div.setAttribute("aria-label",y):this.div.removeAttribute("aria-label")},Kn.prototype.prepareSelection=function(){var y=Cs(this.cm,!1);return y.focus=document.activeElement==this.div,y},Kn.prototype.showSelection=function(y,b){!y||!this.cm.display.view.length||((y.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(y))},Kn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Kn.prototype.showPrimarySelection=function(){var y=this.getSelection(),b=this.cm,fe=b.doc.sel.primary(),ue=fe.from(),we=fe.to();if(b.display.viewTo==b.display.viewFrom||ue.line>=b.display.viewTo||we.line<b.display.viewFrom){y.removeAllRanges();return}var He=Ha(b,y.anchorNode,y.anchorOffset),tt=Ha(b,y.focusNode,y.focusOffset);if(!(He&&!He.bad&&tt&&!tt.bad&&Rt(Gt(He,tt),ue)==0&&Rt(zt(He,tt),we)==0)){var ut=b.display.view,dt=ue.line>=b.display.viewFrom&&Fl(b,ue)||{node:ut[0].measure.map[2],offset:0},mt=we.line<b.display.viewTo&&Fl(b,we);if(!mt){var Wt=ut[ut.length-1].measure,Zt=Wt.maps?Wt.maps[Wt.maps.length-1]:Wt.map;mt={node:Zt[Zt.length-1],offset:Zt[Zt.length-2]-Zt[Zt.length-3]}}if(!dt||!mt){y.removeAllRanges();return}var ir=y.rangeCount&&y.getRangeAt(0),tr;try{tr=ke(dt.node,dt.offset,mt.offset,mt.node)}catch(Sr){}tr&&(!ge&&b.state.focused?(y.collapse(dt.node,dt.offset),tr.collapsed||(y.removeAllRanges(),y.addRange(tr))):(y.removeAllRanges(),y.addRange(tr)),ir&&y.anchorNode==null?y.addRange(ir):ge&&this.startGracePeriod()),this.rememberSelection()}},Kn.prototype.startGracePeriod=function(){var y=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){y.gracePeriod=!1,y.selectionChanged()&&y.cm.operation(function(){return y.cm.curOp.selectionChanged=!0})},20)},Kn.prototype.showMultipleSelections=function(y){Ce(this.cm.display.cursorDiv,y.cursors),Ce(this.cm.display.selectionDiv,y.selection)},Kn.prototype.rememberSelection=function(){var y=this.getSelection();this.lastAnchorNode=y.anchorNode,this.lastAnchorOffset=y.anchorOffset,this.lastFocusNode=y.focusNode,this.lastFocusOffset=y.focusOffset},Kn.prototype.selectionInEditor=function(){var y=this.getSelection();if(!y.rangeCount)return!1;var b=y.getRangeAt(0).commonAncestorContainer;return Le(this.div,b)},Kn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Kn.prototype.blur=function(){this.div.blur()},Kn.prototype.getField=function(){return this.div},Kn.prototype.supportsTouch=function(){return!0},Kn.prototype.receivedFocus=function(){var y=this;this.selectionInEditor()?this.pollSelection():Wi(this.cm,function(){return y.cm.curOp.selectionChanged=!0});function b(){y.cm.state.focused&&(y.pollSelection(),y.polling.set(y.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},Kn.prototype.selectionChanged=function(){var y=this.getSelection();return y.anchorNode!=this.lastAnchorNode||y.anchorOffset!=this.lastAnchorOffset||y.focusNode!=this.lastFocusNode||y.focusOffset!=this.lastFocusOffset},Kn.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var y=this.getSelection(),b=this.cm;if(ae&&oe&&this.cm.display.gutterSpecs.length&&Vu(y.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var fe=Ha(b,y.anchorNode,y.anchorOffset),ue=Ha(b,y.focusNode,y.focusOffset);fe&&ue&&Wi(b,function(){Si(b.doc,po(fe,ue),$e),(fe.bad||ue.bad)&&(b.curOp.selectionChanged=!0)})}}},Kn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var y=this.cm,b=y.display,fe=y.doc.sel.primary(),ue=fe.from(),we=fe.to();if(ue.ch==0&&ue.line>y.firstLine()&&(ue=wt(ue.line-1,qt(y.doc,ue.line-1).length)),we.ch==qt(y.doc,we.line).text.length&&we.line<y.lastLine()&&(we=wt(we.line+1,0)),ue.line<b.viewFrom||we.line>b.viewTo-1)return!1;var He,tt,ut;ue.line==b.viewFrom||(He=Co(y,ue.line))==0?(tt=It(b.view[0].line),ut=b.view[0].node):(tt=It(b.view[He].line),ut=b.view[He-1].node.nextSibling);var dt=Co(y,we.line),mt,Wt;if(dt==b.view.length-1?(mt=b.viewTo-1,Wt=b.lineDiv.lastChild):(mt=It(b.view[dt+1].line)-1,Wt=b.view[dt+1].node.previousSibling),!ut)return!1;for(var Zt=y.doc.splitLines(Xu(y,ut,Wt,tt,mt)),ir=nr(y.doc,wt(tt,0),wt(mt,qt(y.doc,mt).text.length));Zt.length>1&&ir.length>1;)if(ot(Zt)==ot(ir))Zt.pop(),ir.pop(),mt--;else if(Zt[0]==ir[0])Zt.shift(),ir.shift(),tt++;else break;for(var tr=0,Sr=0,Mr=Zt[0],Hr=ir[0],Xr=Math.min(Mr.length,Hr.length);tr<Xr&&Mr.charCodeAt(tr)==Hr.charCodeAt(tr);)++tr;for(var rn=ot(Zt),Yr=ot(ir),an=Math.min(rn.length-(Zt.length==1?tr:0),Yr.length-(ir.length==1?tr:0));Sr<an&&rn.charCodeAt(rn.length-Sr-1)==Yr.charCodeAt(Yr.length-Sr-1);)++Sr;if(Zt.length==1&&ir.length==1&&tt==ue.line)for(;tr&&tr>ue.ch&&rn.charCodeAt(rn.length-Sr-1)==Yr.charCodeAt(Yr.length-Sr-1);)tr--,Sr++;Zt[Zt.length-1]=rn.slice(0,rn.length-Sr).replace(/^\u200b+/,""),Zt[0]=Zt[0].slice(tr).replace(/\u200b+$/,"");var gn=wt(tt,tr),hn=wt(mt,ir.length?ot(ir).length-Sr:0);if(Zt.length>1||Zt[0]||Rt(gn,hn))return _o(y.doc,Zt,gn,hn,"+input"),!0},Kn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Kn.prototype.reset=function(){this.forceCompositionEnd()},Kn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Kn.prototype.readFromDOMSoon=function(){var y=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(y.readDOMTimeout=null,y.composing)if(y.composing.done)y.composing=null;else return;y.updateFromDOM()},80))},Kn.prototype.updateFromDOM=function(){var y=this;(this.cm.isReadOnly()||!this.pollContent())&&Wi(this.cm,function(){return Di(y.cm)})},Kn.prototype.setUneditable=function(y){y.contentEditable="false"},Kn.prototype.onKeyPress=function(y){y.charCode==0||this.composing||(y.preventDefault(),this.cm.isReadOnly()||hi(this.cm,gs)(this.cm,String.fromCharCode(y.charCode==null?y.keyCode:y.charCode),0))},Kn.prototype.readOnlyChanged=function(y){this.div.contentEditable=String(y!="nocursor")},Kn.prototype.onContextMenu=function(){},Kn.prototype.resetPosition=function(){},Kn.prototype.needsContentAttribute=!0;function Fl(y,b){var fe=ro(y,b.line);if(!fe||fe.hidden)return null;var ue=qt(y.doc,b.line),we=Do(fe,ue,b.line),He=Tt(ue,y.doc.direction),tt="left";if(He){var ut=lt(He,b.ch);tt=ut%2?"right":"left"}var dt=xa(we.map,b.ch,tt);return dt.offset=dt.collapse=="right"?dt.end:dt.start,dt}function Vu(y){for(var b=y;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function $o(y,b){return b&&(y.bad=!0),y}function Xu(y,b,fe,ue,we){var He="",tt=!1,ut=y.doc.lineSeparator(),dt=!1;function mt(tr){return function(Sr){return Sr.id==tr}}function Wt(){tt&&(He+=ut,dt&&(He+=ut),tt=dt=!1)}function Zt(tr){tr&&(Wt(),He+=tr)}function ir(tr){if(tr.nodeType==1){var Sr=tr.getAttribute("cm-text");if(Sr){Zt(Sr);return}var Mr=tr.getAttribute("cm-marker"),Hr;if(Mr){var Xr=y.findMarks(wt(ue,0),wt(we+1,0),mt(+Mr));Xr.length&&(Hr=Xr[0].find(0))&&Zt(nr(y.doc,Hr.from,Hr.to).join(ut));return}if(tr.getAttribute("contenteditable")=="false")return;var rn=/^(pre|div|p|li|table|br)$/i.test(tr.nodeName);if(!/^br$/i.test(tr.nodeName)&&tr.textContent.length==0)return;rn&&Wt();for(var Yr=0;Yr<tr.childNodes.length;Yr++)ir(tr.childNodes[Yr]);/^(pre|p)$/i.test(tr.nodeName)&&(dt=!0),rn&&(tt=!0)}else tr.nodeType==3&&Zt(tr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ir(b),b!=fe;)b=b.nextSibling,dt=!1;return He}function Ha(y,b,fe){var ue;if(b==y.display.lineDiv){if(ue=y.display.lineDiv.childNodes[fe],!ue)return $o(y.clipPos(wt(y.display.viewTo-1)),!0);b=null,fe=0}else for(ue=b;;ue=ue.parentNode){if(!ue||ue==y.display.lineDiv)return null;if(ue.parentNode&&ue.parentNode==y.display.lineDiv)break}for(var we=0;we<y.display.view.length;we++){var He=y.display.view[we];if(He.node==ue)return Yu(He,b,fe)}}function Yu(y,b,fe){var ue=y.text.firstChild,we=!1;if(!b||!Le(ue,b))return $o(wt(It(y.line),0),!0);if(b==ue&&(we=!0,b=ue.childNodes[fe],fe=0,!b)){var He=y.rest?ot(y.rest):y.line;return $o(wt(It(He),He.text.length),we)}var tt=b.nodeType==3?b:null,ut=b;for(!tt&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(tt=b.firstChild,fe&&(fe=tt.nodeValue.length));ut.parentNode!=ue;)ut=ut.parentNode;var dt=y.measure,mt=dt.maps;function Wt(Hr,Xr,rn){for(var Yr=-1;Yr<(mt?mt.length:0);Yr++)for(var an=Yr<0?dt.map:mt[Yr],gn=0;gn<an.length;gn+=3){var hn=an[gn+2];if(hn==Hr||hn==Xr){var kn=It(Yr<0?y.line:y.rest[Yr]),Yn=an[gn]+rn;return(rn<0||hn!=Hr)&&(Yn=an[gn+(rn?1:0)]),wt(kn,Yn)}}}var Zt=Wt(tt,ut,fe);if(Zt)return $o(Zt,we);for(var ir=ut.nextSibling,tr=tt?tt.nodeValue.length-fe:0;ir;ir=ir.nextSibling){if(Zt=Wt(ir,ir.firstChild,0),Zt)return $o(wt(Zt.line,Zt.ch-tr),we);tr+=ir.textContent.length}for(var Sr=ut.previousSibling,Mr=fe;Sr;Sr=Sr.previousSibling){if(Zt=Wt(Sr,Sr.firstChild,-1),Zt)return $o(wt(Zt.line,Zt.ch+Mr),we);Mr+=Sr.textContent.length}}var oi=function(y){this.cm=y,this.prevInput="",this.pollingFast=!1,this.polling=new Ke,this.hasSelection=!1,this.composing=null};oi.prototype.init=function(y){var b=this,fe=this,ue=this.cm;this.createField(y);var we=this.textarea;y.wrapper.insertBefore(this.wrapper,y.wrapper.firstChild),re&&(we.style.width="0px"),Ot(we,"input",function(){be&&z>=9&&b.hasSelection&&(b.hasSelection=null),fe.poll()}),Ot(we,"paste",function(tt){xt(ue,tt)||kl(tt,ue)||(ue.state.pasteIncoming=+new Date,fe.fastPoll())});function He(tt){if(!xt(ue,tt)){if(ue.somethingSelected())za({lineWise:!1,text:ue.getSelections()});else if(ue.options.lineWiseCopyCut){var ut=Rl(ue);za({lineWise:!0,text:ut.text}),tt.type=="cut"?ue.setSelections(ut.ranges,null,$e):(fe.prevInput="",we.value=ut.text.join(`
|
|
|
`),Ze(we))}else return;tt.type=="cut"&&(ue.state.cutIncoming=+new Date)}}Ot(we,"cut",He),Ot(we,"copy",He),Ot(y.scroller,"paste",function(tt){if(!(gi(y,tt)||xt(ue,tt))){if(!we.dispatchEvent){ue.state.pasteIncoming=+new Date,fe.focus();return}var ut=new Event("paste");ut.clipboardData=tt.clipboardData,we.dispatchEvent(ut)}}),Ot(y.lineSpace,"selectstart",function(tt){gi(y,tt)||Ct(tt)}),Ot(we,"compositionstart",function(){var tt=ue.getCursor("from");fe.composing&&fe.composing.range.clear(),fe.composing={start:tt,range:ue.markText(tt,ue.getCursor("to"),{className:"CodeMirror-composing"})}}),Ot(we,"compositionend",function(){fe.composing&&(fe.poll(),fe.composing.range.clear(),fe.composing=null)})},oi.prototype.createField=function(y){this.wrapper=Bl(),this.textarea=this.wrapper.firstChild},oi.prototype.screenReaderLabelChanged=function(y){y?this.textarea.setAttribute("aria-label",y):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var y=this.cm,b=y.display,fe=y.doc,ue=Cs(y);if(y.options.moveInputWithCursor){var we=Ii(y,fe.sel.primary().head,"div"),He=b.wrapper.getBoundingClientRect(),tt=b.lineDiv.getBoundingClientRect();ue.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,we.top+tt.top-He.top)),ue.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,we.left+tt.left-He.left))}return ue},oi.prototype.showSelection=function(y){var b=this.cm,fe=b.display;Ce(fe.cursorDiv,y.cursors),Ce(fe.selectionDiv,y.selection),y.teTop!=null&&(this.wrapper.style.top=y.teTop+"px",this.wrapper.style.left=y.teLeft+"px")},oi.prototype.reset=function(y){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var fe=b.getSelection();this.textarea.value=fe,b.state.focused&&Ze(this.textarea),be&&z>=9&&(this.hasSelection=fe)}else y||(this.prevInput=this.textarea.value="",be&&z>=9&&(this.hasSelection=null))}},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!se||Ae()!=this.textarea))try{this.textarea.focus()}catch(y){}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.prototype.slowPoll=function(){var y=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){y.poll(),y.cm.state.focused&&y.slowPoll()})},oi.prototype.fastPoll=function(){var y=!1,b=this;b.pollingFast=!0;function fe(){var ue=b.poll();!ue&&!y?(y=!0,b.polling.set(60,fe)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,fe)},oi.prototype.poll=function(){var y=this,b=this.cm,fe=this.textarea,ue=this.prevInput;if(this.contextMenuPending||!b.state.focused||br(fe)&&!ue&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var we=fe.value;if(we==ue&&!b.somethingSelected())return!1;if(be&&z>=9&&this.hasSelection===we||ce&&/[\uf700-\uf7ff]/.test(we))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var He=we.charCodeAt(0);if(He==8203&&!ue&&(ue="\u200B"),He==8666)return this.reset(),this.cm.execCommand("undo")}for(var tt=0,ut=Math.min(ue.length,we.length);tt<ut&&ue.charCodeAt(tt)==we.charCodeAt(tt);)++tt;return Wi(b,function(){gs(b,we.slice(tt),ue.length-tt,null,y.composing?"*compose":null),we.length>1e3||we.indexOf(`
|
|
|
`)>-1?fe.value=y.prevInput="":y.prevInput=we,y.composing&&(y.composing.range.clear(),y.composing.range=b.markText(y.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){be&&z>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(y){var b=this,fe=b.cm,ue=fe.display,we=b.textarea;b.contextMenuPending&&b.contextMenuPending();var He=So(fe,y),tt=ue.scroller.scrollTop;if(!He||ee)return;var ut=fe.options.resetSelectionOnContextMenu;ut&&fe.doc.sel.contains(He)==-1&&hi(fe,Si)(fe.doc,po(He),$e);var dt=we.style.cssText,mt=b.wrapper.style.cssText,Wt=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",we.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(y.clientY-Wt.top-5)+"px; left: "+(y.clientX-Wt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Zt;E&&(Zt=window.scrollY),ue.input.focus(),E&&window.scrollTo(null,Zt),ue.input.reset(),fe.somethingSelected()||(we.value=b.prevInput=" "),b.contextMenuPending=tr,ue.selForContextMenu=fe.doc.sel,clearTimeout(ue.detectingSelectAll);function ir(){if(we.selectionStart!=null){var Mr=fe.somethingSelected(),Hr="\u200B"+(Mr?we.value:"");we.value="\u21DA",we.value=Hr,b.prevInput=Mr?"":"\u200B",we.selectionStart=1,we.selectionEnd=Hr.length,ue.selForContextMenu=fe.doc.sel}}function tr(){if(b.contextMenuPending==tr&&(b.contextMenuPending=!1,b.wrapper.style.cssText=mt,we.style.cssText=dt,be&&z<9&&ue.scrollbars.setScrollTop(ue.scroller.scrollTop=tt),we.selectionStart!=null)){(!be||be&&z<9)&&ir();var Mr=0,Hr=function(){ue.selForContextMenu==fe.doc.sel&&we.selectionStart==0&&we.selectionEnd>0&&b.prevInput=="\u200B"?hi(fe,rl)(fe):Mr++<10?ue.detectingSelectAll=setTimeout(Hr,500):(ue.selForContextMenu=null,ue.input.reset())};ue.detectingSelectAll=setTimeout(Hr,200)}}if(be&&z>=9&&ir(),De){vt(y);var Sr=function(){Mt(window,"mouseup",Sr),setTimeout(tr,20)};Ot(window,"mouseup",Sr)}else setTimeout(tr,50)},oi.prototype.readOnlyChanged=function(y){y||this.reset(),this.textarea.disabled=y=="nocursor",this.textarea.readOnly=!!y},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function Ju(y,b){if(b=b?at(b):{},b.value=y.value,!b.tabindex&&y.tabIndex&&(b.tabindex=y.tabIndex),!b.placeholder&&y.placeholder&&(b.placeholder=y.placeholder),b.autofocus==null){var fe=Ae();b.autofocus=fe==y||y.getAttribute("autofocus")!=null&&fe==document.body}function ue(){y.value=ut.getValue()}var we;if(y.form&&(Ot(y.form,"submit",ue),!b.leaveSubmitMethodAlone)){var He=y.form;we=He.submit;try{var tt=He.submit=function(){ue(),He.submit=we,He.submit(),He.submit=tt}}catch(dt){}}b.finishInit=function(dt){dt.save=ue,dt.getTextArea=function(){return y},dt.toTextArea=function(){dt.toTextArea=isNaN,ue(),y.parentNode.removeChild(dt.getWrapperElement()),y.style.display="",y.form&&(Mt(y.form,"submit",ue),!b.leaveSubmitMethodAlone&&typeof y.form.submit=="function"&&(y.form.submit=we))}},y.style.display="none";var ut=Jn(function(dt){return y.parentNode.insertBefore(dt,y.nextSibling)},b);return ut}function Qu(y){y.off=Mt,y.on=Ot,y.wheelEventPixels=ou,y.Doc=Pi,y.splitLines=ur,y.countColumn=Fe,y.findColumn=nt,y.isWordChar=Ne,y.Pass=et,y.signal=Et,y.Line=Bn,y.changeEnd=mo,y.scrollbarModel=Ps,y.Pos=wt,y.cmpPos=Rt,y.modes=Qt,y.mimeModes=Vt,y.resolveMode=vr,y.getMode=hr,y.modeExtensions=Ir,y.extendMode=Or,y.copyState=Lr,y.startState=Zr,y.innerMode=Er,y.commands=ha,y.keyMap=ao,y.keyName=yl,y.isModifierKey=vl,y.lookupKey=zo,y.normalizeKeyMap=Au,y.StringStream=_r,y.SharedTextMarker=ca,y.TextMarker=go,y.LineWidget=ua,y.e_preventDefault=Ct,y.e_stopPropagation=$t,y.e_stop=vt,y.addClass=Se,y.contains=Le,y.rmClass=Be,y.keyNames=yo}Uu(Jn),Ku(Jn);var qu="iter insert remove copy getEditor constructor".split(" ");for(var Ua in Pi.prototype)Pi.prototype.hasOwnProperty(Ua)&&it(qu,Ua)<0&&(Jn.prototype[Ua]=function(y){return function(){return y.apply(this.doc,arguments)}}(Pi.prototype[Ua]));return ht(Pi),Jn.inputStyles={textarea:oi,contenteditable:Kn},Jn.defineMode=function(y){!Jn.defaults.mode&&y!="null"&&(Jn.defaults.mode=y),rr.apply(this,arguments)},Jn.defineMIME=ar,Jn.defineMode("null",function(){return{token:function(y){return y.skipToEnd()}}}),Jn.defineMIME("text/plain","null"),Jn.defineExtension=function(y,b){Jn.prototype[y]=b},Jn.defineDocExtension=function(y,b){Pi.prototype[y]=b},Jn.fromTextArea=Ju,Qu(Jn),Jn.version="5.58.2",Jn})},25419:function(Yt,Dt,Ie){(function(ge){ge(Ie(89780),Ie(15525),Ie(98101))})(function(ge){"use strict";ge.defineMode("markdown",function(gt,a){var Te=ge.getMode(gt,"text/html"),be=Te.name=="null";function z(Fe){if(ge.findModeByName){var Ke=ge.findModeByName(Fe);Ke&&(Fe=Ke.mime||Ke.mimes[0])}var it=ge.getMode(gt,Fe);return it.name=="null"?null:it}a.highlightFormatting===void 0&&(a.highlightFormatting=!1),a.maxBlockquoteDepth===void 0&&(a.maxBlockquoteDepth=0),a.taskLists===void 0&&(a.taskLists=!1),a.strikethrough===void 0&&(a.strikethrough=!1),a.emoji===void 0&&(a.emoji=!1),a.fencedCodeBlockHighlighting===void 0&&(a.fencedCodeBlockHighlighting=!0),a.fencedCodeBlockDefaultMode===void 0&&(a.fencedCodeBlockDefaultMode="text/plain"),a.xml===void 0&&(a.xml=!0),a.tokenTypeOverrides===void 0&&(a.tokenTypeOverrides={});var E={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var ie in E)E.hasOwnProperty(ie)&&a.tokenTypeOverrides[ie]&&(E[ie]=a.tokenTypeOverrides[ie]);var oe=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,le=/^\[(x| )\](?=\s)/i,x=a.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ne=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,ae=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,se=/^\s*\[[^\]]+?\]:.*$/,ce=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,pe=" ";function me(Fe,Ke,it){return Ke.f=Ke.inline=it,it(Fe,Ke)}function he(Fe,Ke,it){return Ke.f=Ke.block=it,it(Fe,Ke)}function ye(Fe){return!Fe||!/\S/.test(Fe.string)}function De(Fe){if(Fe.linkTitle=!1,Fe.linkHref=!1,Fe.linkText=!1,Fe.em=!1,Fe.strong=!1,Fe.strikethrough=!1,Fe.quote=0,Fe.indentedCode=!1,Fe.f==Be){var Ke=be;if(!Ke){var it=ge.innerMode(Te,Fe.htmlState);Ke=it.mode.name=="xml"&&it.state.tagStart===null&&!it.state.context&&it.state.tokenize.isInText}Ke&&(Fe.f=je,Fe.block=Me,Fe.htmlState=null)}return Fe.trailingSpace=0,Fe.trailingSpaceNewLine=!1,Fe.prevLine=Fe.thisLine,Fe.thisLine={stream:null},null}function Me(Fe,Ke){var it=Fe.column()===Ke.indentation,rt=ye(Ke.prevLine.stream),et=Ke.indentedCode,$e=Ke.prevLine.hr,Xe=Ke.list!==!1,Ve=(Ke.listStack[Ke.listStack.length-1]||0)+3;Ke.indentedCode=!1;var nt=Ke.indentation;if(Ke.indentationDiff===null&&(Ke.indentationDiff=Ke.indentation,Xe)){for(Ke.list=null;nt<Ke.listStack[Ke.listStack.length-1];)Ke.listStack.pop(),Ke.listStack.length?Ke.indentation=Ke.listStack[Ke.listStack.length-1]:Ke.list=!1;Ke.list!==!1&&(Ke.indentationDiff=nt-Ke.listStack[Ke.listStack.length-1])}var Qe=!rt&&!$e&&!Ke.prevLine.header&&(!Xe||!et)&&!Ke.prevLine.fencedCodeEnd,ct=(Ke.list===!1||$e||rt)&&Ke.indentation<=Ve&&Fe.match(oe),ot=null;if(Ke.indentationDiff>=4&&(et||Ke.prevLine.fencedCodeEnd||Ke.prevLine.header||rt))return Fe.skipToEnd(),Ke.indentedCode=!0,E.code;if(Fe.eatSpace())return null;if(it&&Ke.indentation<=Ve&&(ot=Fe.match(x))&&ot[1].length<=6)return Ke.quote=0,Ke.header=ot[1].length,Ke.thisLine.header=!0,a.highlightFormatting&&(Ke.formatting="header"),Ke.f=Ke.inline,Ce(Ke);if(Ke.indentation<=Ve&&Fe.eat(">"))return Ke.quote=it?1:Ke.quote+1,a.highlightFormatting&&(Ke.formatting="quote"),Fe.eatSpace(),Ce(Ke);if(!ct&&!Ke.setext&&it&&Ke.indentation<=Ve&&(ot=Fe.match(ee))){var qe=ot[1]?"ol":"ul";return Ke.indentation=nt+Fe.current().length,Ke.list=!0,Ke.quote=0,Ke.listStack.push(Ke.indentation),Ke.em=!1,Ke.strong=!1,Ke.code=!1,Ke.strikethrough=!1,a.taskLists&&Fe.match(le,!1)&&(Ke.taskList=!0),Ke.f=Ke.inline,a.highlightFormatting&&(Ke.formatting=["list","list-"+qe]),Ce(Ke)}else{if(it&&Ke.indentation<=Ve&&(ot=Fe.match(ae,!0)))return Ke.quote=0,Ke.fencedEndRE=new RegExp(ot[1]+"+ *$"),Ke.localMode=a.fencedCodeBlockHighlighting&&z(ot[2]||a.fencedCodeBlockDefaultMode),Ke.localMode&&(Ke.localState=ge.startState(Ke.localMode)),Ke.f=Ke.block=Pe,a.highlightFormatting&&(Ke.formatting="code-block"),Ke.code=-1,Ce(Ke);if(Ke.setext||(!Qe||!Xe)&&!Ke.quote&&Ke.list===!1&&!Ke.code&&!ct&&!se.test(Fe.string)&&(ot=Fe.lookAhead(1))&&(ot=ot.match(ne)))return Ke.setext?(Ke.header=Ke.setext,Ke.setext=0,Fe.skipToEnd(),a.highlightFormatting&&(Ke.formatting="header")):(Ke.header=ot[0].charAt(0)=="="?1:2,Ke.setext=Ke.header),Ke.thisLine.header=!0,Ke.f=Ke.inline,Ce(Ke);if(ct)return Fe.skipToEnd(),Ke.hr=!0,Ke.thisLine.hr=!0,E.hr;if(Fe.peek()==="[")return me(Fe,Ke,Ge)}return me(Fe,Ke,Ke.inline)}function Be(Fe,Ke){var it=Te.token(Fe,Ke.htmlState);if(!be){var rt=ge.innerMode(Te,Ke.htmlState);(rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText||Ke.md_inside&&Fe.current().indexOf(">")>-1)&&(Ke.f=je,Ke.block=Me,Ke.htmlState=null)}return it}function Pe(Fe,Ke){var it=Ke.listStack[Ke.listStack.length-1]||0,rt=Ke.indentation<it,et=it+3;if(Ke.fencedEndRE&&Ke.indentation<=et&&(rt||Fe.match(Ke.fencedEndRE))){a.highlightFormatting&&(Ke.formatting="code-block");var $e;return rt||($e=Ce(Ke)),Ke.localMode=Ke.localState=null,Ke.block=Me,Ke.f=je,Ke.fencedEndRE=null,Ke.code=0,Ke.thisLine.fencedCodeEnd=!0,rt?he(Fe,Ke,Ke.block):$e}else return Ke.localMode?Ke.localMode.token(Fe,Ke.localState):(Fe.skipToEnd(),E.code)}function Ce(Fe){var Ke=[];if(Fe.formatting){Ke.push(E.formatting),typeof Fe.formatting=="string"&&(Fe.formatting=[Fe.formatting]);for(var it=0;it<Fe.formatting.length;it++)Ke.push(E.formatting+"-"+Fe.formatting[it]),Fe.formatting[it]==="header"&&Ke.push(E.formatting+"-"+Fe.formatting[it]+"-"+Fe.header),Fe.formatting[it]==="quote"&&(!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=Fe.quote?Ke.push(E.formatting+"-"+Fe.formatting[it]+"-"+Fe.quote):Ke.push("error"))}if(Fe.taskOpen)return Ke.push("meta"),Ke.length?Ke.join(" "):null;if(Fe.taskClosed)return Ke.push("property"),Ke.length?Ke.join(" "):null;if(Fe.linkHref?Ke.push(E.linkHref,"url"):(Fe.strong&&Ke.push(E.strong),Fe.em&&Ke.push(E.em),Fe.strikethrough&&Ke.push(E.strikethrough),Fe.emoji&&Ke.push(E.emoji),Fe.linkText&&Ke.push(E.linkText),Fe.code&&Ke.push(E.code),Fe.image&&Ke.push(E.image),Fe.imageAltText&&Ke.push(E.imageAltText,"link"),Fe.imageMarker&&Ke.push(E.imageMarker)),Fe.header&&Ke.push(E.header,E.header+"-"+Fe.header),Fe.quote&&(Ke.push(E.quote),!a.maxBlockquoteDepth||a.maxBlockquoteDepth>=Fe.quote?Ke.push(E.quote+"-"+Fe.quote):Ke.push(E.quote+"-"+a.maxBlockquoteDepth)),Fe.list!==!1){var rt=(Fe.listStack.length-1)%3;rt?rt===1?Ke.push(E.list2):Ke.push(E.list3):Ke.push(E.list1)}return Fe.trailingSpaceNewLine?Ke.push("trailing-space-new-line"):Fe.trailingSpace&&Ke.push("trailing-space-"+(Fe.trailingSpace%2?"a":"b")),Ke.length?Ke.join(" "):null}function Ee(Fe,Ke){if(Fe.match(re,!0))return Ce(Ke)}function je(Fe,Ke){var it=Ke.text(Fe,Ke);if(typeof it!="undefined")return it;if(Ke.list)return Ke.list=null,Ce(Ke);if(Ke.taskList){var rt=Fe.match(le,!0)[1]===" ";return rt?Ke.taskOpen=!0:Ke.taskClosed=!0,a.highlightFormatting&&(Ke.formatting="task"),Ke.taskList=!1,Ce(Ke)}if(Ke.taskOpen=!1,Ke.taskClosed=!1,Ke.header&&Fe.match(/^#+$/,!0))return a.highlightFormatting&&(Ke.formatting="header"),Ce(Ke);var et=Fe.next();if(Ke.linkTitle){Ke.linkTitle=!1;var $e=et;et==="("&&($e=")"),$e=($e+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Xe="^\\s*(?:[^"+$e+"\\\\]+|\\\\\\\\|\\\\.)"+$e;if(Fe.match(new RegExp(Xe),!0))return E.linkHref}if(et==="`"){var Ve=Ke.formatting;a.highlightFormatting&&(Ke.formatting="code"),Fe.eatWhile("`");var nt=Fe.current().length;if(Ke.code==0&&(!Ke.quote||nt==1))return Ke.code=nt,Ce(Ke);if(nt==Ke.code){var Qe=Ce(Ke);return Ke.code=0,Qe}else return Ke.formatting=Ve,Ce(Ke)}else if(Ke.code)return Ce(Ke);if(et==="\\"&&(Fe.next(),a.highlightFormatting)){var ct=Ce(Ke),ot=E.formatting+"-escape";return ct?ct+" "+ot:ot}if(et==="!"&&Fe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ke.imageMarker=!0,Ke.image=!0,a.highlightFormatting&&(Ke.formatting="image"),Ce(Ke);if(et==="["&&Ke.imageMarker&&Fe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ke.imageMarker=!1,Ke.imageAltText=!0,a.highlightFormatting&&(Ke.formatting="image"),Ce(Ke);if(et==="]"&&Ke.imageAltText){a.highlightFormatting&&(Ke.formatting="image");var ct=Ce(Ke);return Ke.imageAltText=!1,Ke.image=!1,Ke.inline=Ke.f=Le,ct}if(et==="["&&!Ke.image)return Ke.linkText&&Fe.match(/^.*?\]/)||(Ke.linkText=!0,a.highlightFormatting&&(Ke.formatting="link")),Ce(Ke);if(et==="]"&&Ke.linkText){a.highlightFormatting&&(Ke.formatting="link");var ct=Ce(Ke);return Ke.linkText=!1,Ke.inline=Ke.f=Fe.match(/\(.*?\)| ?\[.*?\]/,!1)?Le:je,ct}if(et==="<"&&Fe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ke.f=Ke.inline=ke,a.highlightFormatting&&(Ke.formatting="link");var ct=Ce(Ke);return ct?ct+=" ":ct="",ct+E.linkInline}if(et==="<"&&Fe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ke.f=Ke.inline=ke,a.highlightFormatting&&(Ke.formatting="link");var ct=Ce(Ke);return ct?ct+=" ":ct="",ct+E.linkEmail}if(a.xml&&et==="<"&&Fe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var qe=Fe.string.indexOf(">",Fe.pos);if(qe!=-1){var _e=Fe.string.substring(Fe.start,qe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(_e)&&(Ke.md_inside=!0)}return Fe.backUp(1),Ke.htmlState=ge.startState(Te),he(Fe,Ke,Be)}if(a.xml&&et==="<"&&Fe.match(/^\/\w*?>/))return Ke.md_inside=!1,"tag";if(et==="*"||et==="_"){for(var Re=1,te=Fe.pos==1?" ":Fe.string.charAt(Fe.pos-2);Re<3&&Fe.eat(et);)Re++;var de=Fe.peek()||" ",Ne=!/\s/.test(de)&&(!ce.test(de)||/\s/.test(te)||ce.test(te)),ze=!/\s/.test(te)&&(!ce.test(te)||/\s/.test(de)||ce.test(de)),xe=null,ve=null;if(Re%2&&(!Ke.em&&Ne&&(et==="*"||!ze||ce.test(te))?xe=!0:Ke.em==et&&ze&&(et==="*"||!Ne||ce.test(de))&&(xe=!1)),Re>1&&(!Ke.strong&&Ne&&(et==="*"||!ze||ce.test(te))?ve=!0:Ke.strong==et&&ze&&(et==="*"||!Ne||ce.test(de))&&(ve=!1)),ve!=null||xe!=null){a.highlightFormatting&&(Ke.formatting=xe==null?"strong":ve==null?"em":"strong em"),xe===!0&&(Ke.em=et),ve===!0&&(Ke.strong=et);var Qe=Ce(Ke);return xe===!1&&(Ke.em=!1),ve===!1&&(Ke.strong=!1),Qe}}else if(et===" "&&(Fe.eat("*")||Fe.eat("_"))){if(Fe.peek()===" ")return Ce(Ke);Fe.backUp(1)}if(a.strikethrough){if(et==="~"&&Fe.eatWhile(et)){if(Ke.strikethrough){a.highlightFormatting&&(Ke.formatting="strikethrough");var Qe=Ce(Ke);return Ke.strikethrough=!1,Qe}else if(Fe.match(/^[^\s]/,!1))return Ke.strikethrough=!0,a.highlightFormatting&&(Ke.formatting="strikethrough"),Ce(Ke)}else if(et===" "&&Fe.match(/^~~/,!0)){if(Fe.peek()===" ")return Ce(Ke);Fe.backUp(2)}}if(a.emoji&&et===":"&&Fe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ke.emoji=!0,a.highlightFormatting&&(Ke.formatting="emoji");var Oe=Ce(Ke);return Ke.emoji=!1,Oe}return et===" "&&(Fe.match(/^ +$/,!1)?Ke.trailingSpace++:Ke.trailingSpace&&(Ke.trailingSpaceNewLine=!0)),Ce(Ke)}function ke(Fe,Ke){var it=Fe.next();if(it===">"){Ke.f=Ke.inline=je,a.highlightFormatting&&(Ke.formatting="link");var rt=Ce(Ke);return rt?rt+=" ":rt="",rt+E.linkInline}return Fe.match(/^[^>]+/,!0),E.linkInline}function Le(Fe,Ke){if(Fe.eatSpace())return null;var it=Fe.next();return it==="("||it==="["?(Ke.f=Ke.inline=Se(it==="("?")":"]"),a.highlightFormatting&&(Ke.formatting="link-string"),Ke.linkHref=!0,Ce(Ke)):"error"}var Ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Se(Fe){return function(Ke,it){var rt=Ke.next();if(rt===Fe){it.f=it.inline=je,a.highlightFormatting&&(it.formatting="link-string");var et=Ce(it);return it.linkHref=!1,et}return Ke.match(Ae[Fe]),it.linkHref=!0,Ce(it)}}function Ge(Fe,Ke){return Fe.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ke.f=Ze,Fe.next(),a.highlightFormatting&&(Ke.formatting="link"),Ke.linkText=!0,Ce(Ke)):me(Fe,Ke,je)}function Ze(Fe,Ke){if(Fe.match(/^\]:/,!0)){Ke.f=Ke.inline=Je,a.highlightFormatting&&(Ke.formatting="link");var it=Ce(Ke);return Ke.linkText=!1,it}return Fe.match(/^([^\]\\]|\\.)+/,!0),E.linkText}function Je(Fe,Ke){return Fe.eatSpace()?null:(Fe.match(/^[^\s]+/,!0),Fe.peek()===void 0?Ke.linkTitle=!0:Fe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ke.f=Ke.inline=je,E.linkHref+" url")}var at={startState:function(){return{f:Me,prevLine:{stream:null},thisLine:{stream:null},block:Me,htmlState:null,indentation:0,inline:je,text:Ee,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Fe){return{f:Fe.f,prevLine:Fe.prevLine,thisLine:Fe.thisLine,block:Fe.block,htmlState:Fe.htmlState&&ge.copyState(Te,Fe.htmlState),indentation:Fe.indentation,localMode:Fe.localMode,localState:Fe.localMode?ge.copyState(Fe.localMode,Fe.localState):null,inline:Fe.inline,text:Fe.text,formatting:!1,linkText:Fe.linkText,linkTitle:Fe.linkTitle,linkHref:Fe.linkHref,code:Fe.code,em:Fe.em,strong:Fe.strong,strikethrough:Fe.strikethrough,emoji:Fe.emoji,header:Fe.header,setext:Fe.setext,hr:Fe.hr,taskList:Fe.taskList,list:Fe.list,listStack:Fe.listStack.slice(0),quote:Fe.quote,indentedCode:Fe.indentedCode,trailingSpace:Fe.trailingSpace,trailingSpaceNewLine:Fe.trailingSpaceNewLine,md_inside:Fe.md_inside,fencedEndRE:Fe.fencedEndRE}},token:function(Fe,Ke){if(Ke.formatting=!1,Fe!=Ke.thisLine.stream){if(Ke.header=0,Ke.hr=!1,Fe.match(/^\s*$/,!0))return De(Ke),null;if(Ke.prevLine=Ke.thisLine,Ke.thisLine={stream:Fe},Ke.taskList=!1,Ke.trailingSpace=0,Ke.trailingSpaceNewLine=!1,!Ke.localState&&(Ke.f=Ke.block,Ke.f!=Be)){var it=Fe.match(/^\s*/,!0)[0].replace(/\t/g,pe).length;if(Ke.indentation=it,Ke.indentationDiff=null,it>0)return null}}return Ke.f(Fe,Ke)},innerMode:function(Fe){return Fe.block==Be?{state:Fe.htmlState,mode:Te}:Fe.localState?{state:Fe.localState,mode:Fe.localMode}:{state:Fe,mode:at}},indent:function(Fe,Ke,it){return Fe.block==Be&&Te.indent?Te.indent(Fe.htmlState,Ke,it):Fe.localState&&Fe.localMode.indent?Fe.localMode.indent(Fe.localState,Ke,it):ge.Pass},blankLine:De,getType:Ce,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return at},"xml"),ge.defineMIME("text/markdown","markdown"),ge.defineMIME("text/x-markdown","markdown")})},98101:function(Yt,Dt,Ie){(function(ge){ge(Ie(89780))})(function(ge){"use strict";ge.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var gt=0;gt<ge.modeInfo.length;gt++){var a=ge.modeInfo[gt];a.mimes&&(a.mime=a.mimes[0])}ge.findModeByMIME=function(Te){Te=Te.toLowerCase();for(var be=0;be<ge.modeInfo.length;be++){var z=ge.modeInfo[be];if(z.mime==Te)return z;if(z.mimes){for(var E=0;E<z.mimes.length;E++)if(z.mimes[E]==Te)return z}}if(/\+xml$/.test(Te))return ge.findModeByMIME("application/xml");if(/\+json$/.test(Te))return ge.findModeByMIME("application/json")},ge.findModeByExtension=function(Te){Te=Te.toLowerCase();for(var be=0;be<ge.modeInfo.length;be++){var z=ge.modeInfo[be];if(z.ext){for(var E=0;E<z.ext.length;E++)if(z.ext[E]==Te)return z}}},ge.findModeByFileName=function(Te){for(var be=0;be<ge.modeInfo.length;be++){var z=ge.modeInfo[be];if(z.file&&z.file.test(Te))return z}var E=Te.lastIndexOf("."),ie=E>-1&&Te.substring(E+1,Te.length);if(ie)return ge.findModeByExtension(ie)},ge.findModeByName=function(Te){Te=Te.toLowerCase();for(var be=0;be<ge.modeInfo.length;be++){var z=ge.modeInfo[be];if(z.name.toLowerCase()==Te)return z;if(z.alias){for(var E=0;E<z.alias.length;E++)if(z.alias[E].toLowerCase()==Te)return z}}}})},67549:function(Yt,Dt,Ie){(function(ge){ge(Ie(89780))})(function(ge){"use strict";ge.defineMode("stex",function(gt,a){"use strict";function Te(re,ae){re.cmdState.push(ae)}function be(re){return re.cmdState.length>0?re.cmdState[re.cmdState.length-1]:null}function z(re){var ae=re.cmdState.pop();ae&&ae.closeBracket()}function E(re){for(var ae=re.cmdState,se=ae.length-1;se>=0;se--){var ce=ae[se];if(ce.name!="DEFAULT")return ce}return{styleIdentifier:function(){return null}}}function ie(re,ae,se){return function(){this.name=re,this.bracketNo=0,this.style=ae,this.styles=se,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var oe={};oe.importmodule=ie("importmodule","tag",["string","builtin"]),oe.documentclass=ie("documentclass","tag",["","atom"]),oe.usepackage=ie("usepackage","tag",["atom"]),oe.begin=ie("begin","tag",["atom"]),oe.end=ie("end","tag",["atom"]),oe.label=ie("label","tag",["atom"]),oe.ref=ie("ref","tag",["atom"]),oe.eqref=ie("eqref","tag",["atom"]),oe.cite=ie("cite","tag",["atom"]),oe.bibitem=ie("bibitem","tag",["atom"]),oe.Bibitem=ie("Bibitem","tag",["atom"]),oe.RBibitem=ie("RBibitem","tag",["atom"]),oe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(re,ae){re.f=ae}function le(re,ae){var se;if(re.match(/^\\[a-zA-Z@]+/)){var ce=re.current().slice(1);return se=oe.hasOwnProperty(ce)?oe[ce]:oe.DEFAULT,se=new se,Te(ae,se),ee(ae,ne),se.style}if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/\\]/))return"tag";if(re.match("\\["))return ee(ae,function(me,he){return x(me,he,"\\]")}),"keyword";if(re.match("\\("))return ee(ae,function(me,he){return x(me,he,"\\)")}),"keyword";if(re.match("$$"))return ee(ae,function(me,he){return x(me,he,"$$")}),"keyword";if(re.match("$"))return ee(ae,function(me,he){return x(me,he,"$")}),"keyword";var pe=re.next();if(pe=="%")return re.skipToEnd(),"comment";if(pe=="}"||pe=="]"){if(se=be(ae),se)se.closeBracket(pe),ee(ae,ne);else return"error";return"bracket"}else return pe=="{"||pe=="["?(se=oe.DEFAULT,se=new se,Te(ae,se),"bracket"):/\d/.test(pe)?(re.eatWhile(/[\w.%]/),"atom"):(re.eatWhile(/[\w\-_]/),se=E(ae),se.name=="begin"&&(se.argument=re.current()),se.styleIdentifier())}function x(re,ae,se){if(re.eatSpace())return null;if(se&&re.match(se))return ee(ae,le),"keyword";if(re.match(/^\\[a-zA-Z@]+/))return"tag";if(re.match(/^[a-zA-Z]+/))return"variable-2";if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/]/)||re.match(/^[\^_&]/))return"tag";if(re.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(re.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ce=re.next();return ce=="{"||ce=="}"||ce=="["||ce=="]"||ce=="("||ce==")"?"bracket":ce=="%"?(re.skipToEnd(),"comment"):"error"}function ne(re,ae){var se=re.peek(),ce;return se=="{"||se=="["?(ce=be(ae),ce.openBracket(se),re.eat(se),ee(ae,le),"bracket"):/[ \t\r]/.test(se)?(re.eat(se),null):(ee(ae,le),z(ae),le(re,ae))}return{startState:function(){var re=a.inMathMode?function(ae,se){return x(ae,se)}:le;return{cmdState:[],f:re}},copyState:function(re){return{cmdState:re.cmdState.slice(),f:re.f}},token:function(re,ae){return ae.f(re,ae)},blankLine:function(re){re.f=le,re.cmdState.length=0},lineComment:"%"}}),ge.defineMIME("text/x-stex","stex"),ge.defineMIME("text/x-latex","stex")})},15525:function(Yt,Dt,Ie){(function(ge){ge(Ie(89780))})(function(ge){"use strict";var gt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},a={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ge.defineMode("xml",function(Te,be){var z=Te.indentUnit,E={},ie=be.htmlMode?gt:a;for(var oe in ie)E[oe]=ie[oe];for(var oe in be)E[oe]=be[oe];var ee,le;function x(ke,Le){function Ae(Ze){return Le.tokenize=Ze,Ze(ke,Le)}var Se=ke.next();if(Se=="<")return ke.eat("!")?ke.eat("[")?ke.match("CDATA[")?Ae(ae("atom","]]>")):null:ke.match("--")?Ae(ae("comment","-->")):ke.match("DOCTYPE",!0,!0)?(ke.eatWhile(/[\w\._\-]/),Ae(se(1))):null:ke.eat("?")?(ke.eatWhile(/[\w\._\-]/),Le.tokenize=ae("meta","?>"),"meta"):(ee=ke.eat("/")?"closeTag":"openTag",Le.tokenize=ne,"tag bracket");if(Se=="&"){var Ge;return ke.eat("#")?ke.eat("x")?Ge=ke.eatWhile(/[a-fA-F\d]/)&&ke.eat(";"):Ge=ke.eatWhile(/[\d]/)&&ke.eat(";"):Ge=ke.eatWhile(/[\w\.\-:]/)&&ke.eat(";"),Ge?"atom":"error"}else return ke.eatWhile(/[^&<]/),null}x.isInText=!0;function ne(ke,Le){var Ae=ke.next();if(Ae==">"||Ae=="/"&&ke.eat(">"))return Le.tokenize=x,ee=Ae==">"?"endTag":"selfcloseTag","tag bracket";if(Ae=="=")return ee="equals",null;if(Ae=="<"){Le.tokenize=x,Le.state=he,Le.tagName=Le.tagStart=null;var Se=Le.tokenize(ke,Le);return Se?Se+" tag error":"tag error"}else return/[\'\"]/.test(Ae)?(Le.tokenize=re(Ae),Le.stringStartCol=ke.column(),Le.tokenize(ke,Le)):(ke.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(ke){var Le=function(Ae,Se){for(;!Ae.eol();)if(Ae.next()==ke){Se.tokenize=ne;break}return"string"};return Le.isInAttribute=!0,Le}function ae(ke,Le){return function(Ae,Se){for(;!Ae.eol();){if(Ae.match(Le)){Se.tokenize=x;break}Ae.next()}return ke}}function se(ke){return function(Le,Ae){for(var Se;(Se=Le.next())!=null;){if(Se=="<")return Ae.tokenize=se(ke+1),Ae.tokenize(Le,Ae);if(Se==">")if(ke==1){Ae.tokenize=x;break}else return Ae.tokenize=se(ke-1),Ae.tokenize(Le,Ae)}return"meta"}}function ce(ke,Le,Ae){this.prev=ke.context,this.tagName=Le,this.indent=ke.indented,this.startOfLine=Ae,(E.doNotIndent.hasOwnProperty(Le)||ke.context&&ke.context.noIndent)&&(this.noIndent=!0)}function pe(ke){ke.context&&(ke.context=ke.context.prev)}function me(ke,Le){for(var Ae;;){if(!ke.context||(Ae=ke.context.tagName,!E.contextGrabbers.hasOwnProperty(Ae)||!E.contextGrabbers[Ae].hasOwnProperty(Le)))return;pe(ke)}}function he(ke,Le,Ae){return ke=="openTag"?(Ae.tagStart=Le.column(),ye):ke=="closeTag"?De:he}function ye(ke,Le,Ae){return ke=="word"?(Ae.tagName=Le.current(),le="tag",Pe):E.allowMissingTagName&&ke=="endTag"?(le="tag bracket",Pe(ke,Le,Ae)):(le="error",ye)}function De(ke,Le,Ae){if(ke=="word"){var Se=Le.current();return Ae.context&&Ae.context.tagName!=Se&&E.implicitlyClosed.hasOwnProperty(Ae.context.tagName)&&pe(Ae),Ae.context&&Ae.context.tagName==Se||E.matchClosing===!1?(le="tag",Me):(le="tag error",Be)}else return E.allowMissingTagName&&ke=="endTag"?(le="tag bracket",Me(ke,Le,Ae)):(le="error",Be)}function Me(ke,Le,Ae){return ke!="endTag"?(le="error",Me):(pe(Ae),he)}function Be(ke,Le,Ae){return le="error",Me(ke,Le,Ae)}function Pe(ke,Le,Ae){if(ke=="word")return le="attribute",Ce;if(ke=="endTag"||ke=="selfcloseTag"){var Se=Ae.tagName,Ge=Ae.tagStart;return Ae.tagName=Ae.tagStart=null,ke=="selfcloseTag"||E.autoSelfClosers.hasOwnProperty(Se)?me(Ae,Se):(me(Ae,Se),Ae.context=new ce(Ae,Se,Ge==Ae.indented)),he}return le="error",Pe}function Ce(ke,Le,Ae){return ke=="equals"?Ee:(E.allowMissing||(le="error"),Pe(ke,Le,Ae))}function Ee(ke,Le,Ae){return ke=="string"?je:ke=="word"&&E.allowUnquoted?(le="string",Pe):(le="error",Pe(ke,Le,Ae))}function je(ke,Le,Ae){return ke=="string"?je:Pe(ke,Le,Ae)}return{startState:function(ke){var Le={tokenize:x,state:he,indented:ke||0,tagName:null,tagStart:null,context:null};return ke!=null&&(Le.baseIndent=ke),Le},token:function(ke,Le){if(!Le.tagName&&ke.sol()&&(Le.indented=ke.indentation()),ke.eatSpace())return null;ee=null;var Ae=Le.tokenize(ke,Le);return(Ae||ee)&&Ae!="comment"&&(le=null,Le.state=Le.state(ee||Ae,ke,Le),le&&(Ae=le=="error"?Ae+" error":le)),Ae},indent:function(ke,Le,Ae){var Se=ke.context;if(ke.tokenize.isInAttribute)return ke.tagStart==ke.indented?ke.stringStartCol+1:ke.indented+z;if(Se&&Se.noIndent)return ge.Pass;if(ke.tokenize!=ne&&ke.tokenize!=x)return Ae?Ae.match(/^(\s*)/)[0].length:0;if(ke.tagName)return E.multilineTagIndentPastTag!==!1?ke.tagStart+ke.tagName.length+2:ke.tagStart+z*(E.multilineTagIndentFactor||1);if(E.alignCDATA&&/<!\[CDATA\[/.test(Le))return 0;var Ge=Le&&/^<(\/)?([\w_:\.-]*)/.exec(Le);if(Ge&&Ge[1])for(;Se;)if(Se.tagName==Ge[2]){Se=Se.prev;break}else if(E.implicitlyClosed.hasOwnProperty(Se.tagName))Se=Se.prev;else break;else if(Ge)for(;Se;){var Ze=E.contextGrabbers[Se.tagName];if(Ze&&Ze.hasOwnProperty(Ge[2]))Se=Se.prev;else break}for(;Se&&Se.prev&&!Se.startOfLine;)Se=Se.prev;return Se?Se.indent+z:ke.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:E.htmlMode?"html":"xml",helperType:E.htmlMode?"html":"xml",skipAttribute:function(ke){ke.state==Ee&&(ke.state=Pe)},xmlCurrentTag:function(ke){return ke.tagName?{name:ke.tagName,close:ke.type=="closeTag"}:null},xmlCurrentContext:function(ke){for(var Le=[],Ae=ke.context;Ae;Ae=Ae.prev)Ae.tagName&&Le.push(Ae.tagName);return Le.reverse()}}}),ge.defineMIME("text/xml","xml"),ge.defineMIME("application/xml","xml"),ge.mimeModes.hasOwnProperty("text/html")||ge.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Yt,Dt,Ie){var ge,gt;(function(a,Te){Yt.exports=Te(a)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ie.g!="undefined"?Ie.g:this,function(a){"use strict";a=a||{};var Te=a.Base64,be="2.6.4",z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=function(Ae){for(var Se={},Ge=0,Ze=Ae.length;Ge<Ze;Ge++)Se[Ae.charAt(Ge)]=Ge;return Se}(z),ie=String.fromCharCode,oe=function(Ae){if(Ae.length<2){var Se=Ae.charCodeAt(0);return Se<128?Ae:Se<2048?ie(192|Se>>>6)+ie(128|Se&63):ie(224|Se>>>12&15)+ie(128|Se>>>6&63)+ie(128|Se&63)}else{var Se=65536+(Ae.charCodeAt(0)-55296)*1024+(Ae.charCodeAt(1)-56320);return ie(240|Se>>>18&7)+ie(128|Se>>>12&63)+ie(128|Se>>>6&63)+ie(128|Se&63)}},ee=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,le=function(Ae){return Ae.replace(ee,oe)},x=function(Ae){var Se=[0,2,1][Ae.length%3],Ge=Ae.charCodeAt(0)<<16|(Ae.length>1?Ae.charCodeAt(1):0)<<8|(Ae.length>2?Ae.charCodeAt(2):0),Ze=[z.charAt(Ge>>>18),z.charAt(Ge>>>12&63),Se>=2?"=":z.charAt(Ge>>>6&63),Se>=1?"=":z.charAt(Ge&63)];return Ze.join("")},ne=a.btoa&&typeof a.btoa=="function"?function(Ae){return a.btoa(Ae)}:function(Ae){if(Ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ae.replace(/[\s\S]{1,3}/g,x)},re=function(Ae){return ne(le(String(Ae)))},ae=function(Ae){return Ae.replace(/[+\/]/g,function(Se){return Se=="+"?"-":"_"}).replace(/=/g,"")},se=function(Ae,Se){return Se?ae(re(Ae)):re(Ae)},ce=function(Ae){return se(Ae,!0)},pe;a.Uint8Array&&(pe=function(Ae,Se){for(var Ge="",Ze=0,Je=Ae.length;Ze<Je;Ze+=3){var at=Ae[Ze],Fe=Ae[Ze+1],Ke=Ae[Ze+2],it=at<<16|Fe<<8|Ke;Ge+=z.charAt(it>>>18)+z.charAt(it>>>12&63)+(typeof Fe!="undefined"?z.charAt(it>>>6&63):"=")+(typeof Ke!="undefined"?z.charAt(it&63):"=")}return Se?ae(Ge):Ge});var me=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,he=function(Ae){switch(Ae.length){case 4:var Se=(7&Ae.charCodeAt(0))<<18|(63&Ae.charCodeAt(1))<<12|(63&Ae.charCodeAt(2))<<6|63&Ae.charCodeAt(3),Ge=Se-65536;return ie((Ge>>>10)+55296)+ie((Ge&1023)+56320);case 3:return ie((15&Ae.charCodeAt(0))<<12|(63&Ae.charCodeAt(1))<<6|63&Ae.charCodeAt(2));default:return ie((31&Ae.charCodeAt(0))<<6|63&Ae.charCodeAt(1))}},ye=function(Ae){return Ae.replace(me,he)},De=function(Ae){var Se=Ae.length,Ge=Se%4,Ze=(Se>0?E[Ae.charAt(0)]<<18:0)|(Se>1?E[Ae.charAt(1)]<<12:0)|(Se>2?E[Ae.charAt(2)]<<6:0)|(Se>3?E[Ae.charAt(3)]:0),Je=[ie(Ze>>>16),ie(Ze>>>8&255),ie(Ze&255)];return Je.length-=[0,0,2,1][Ge],Je.join("")},Me=a.atob&&typeof a.atob=="function"?function(Ae){return a.atob(Ae)}:function(Ae){return Ae.replace(/\S{1,4}/g,De)},Be=function(Ae){return Me(String(Ae).replace(/[^A-Za-z0-9\+\/]/g,""))},Pe=function(Ae){return ye(Me(Ae))},Ce=function(Ae){return String(Ae).replace(/[-_]/g,function(Se){return Se=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Ae){return Pe(Ce(Ae))},je;a.Uint8Array&&(je=function(Ae){return Uint8Array.from(Be(Ce(Ae)),function(Se){return Se.charCodeAt(0)})});var ke=function(){var Ae=a.Base64;return a.Base64=Te,Ae};if(a.Base64={VERSION:be,atob:Be,btoa:ne,fromBase64:Ee,toBase64:se,utob:le,encode:se,encodeURI:ce,btou:ye,decode:Ee,noConflict:ke,fromUint8Array:pe,toUint8Array:je},typeof Object.defineProperty=="function"){var Le=function(Ae){return{value:Ae,enumerable:!1,writable:!0,configurable:!0}};a.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Le(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",Le(function(Ae){return se(this,Ae)})),Object.defineProperty(String.prototype,"toBase64URI",Le(function(){return se(this,!0)}))}}return a.Meteor&&(Base64=a.Base64),Yt.exports?Yt.exports.Base64=a.Base64:(ge=[],gt=function(){return a.Base64}.apply(Dt,ge),gt!==void 0&&(Yt.exports=gt)),{Base64:a.Base64}})},2859:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{hP:function(){return _e}});var ge=function(Re,te){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,Ne){de.__proto__=Ne}||function(de,Ne){for(var ze in Ne)Object.prototype.hasOwnProperty.call(Ne,ze)&&(de[ze]=Ne[ze])})(Re,te)};function gt(Re,te){function de(){this.constructor=Re}ge(Re,te),Re.prototype=te===null?Object.create(te):(de.prototype=te.prototype,new de)}function a(Re,te,de,Ne){return new(de||(de=Promise))(function(ze,xe){function ve(Ue){try{We(Ne.next(Ue))}catch(Ye){xe(Ye)}}function Oe(Ue){try{We(Ne.throw(Ue))}catch(Ye){xe(Ye)}}function We(Ue){var Ye;Ue.done?ze(Ue.value):(Ye=Ue.value,Ye instanceof de?Ye:new de(function(st){st(Ye)})).then(ve,Oe)}We((Ne=Ne.apply(Re,te||[])).next())})}function Te(Re,te){var de,Ne,ze,xe,ve={label:0,sent:function(){if(1&ze[0])throw ze[1];return ze[1]},trys:[],ops:[]};return xe={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(xe[Symbol.iterator]=function(){return this}),xe;function Oe(We){return function(Ue){return function(Ye){if(de)throw new TypeError("Generator is already executing.");for(;ve;)try{if(de=1,Ne&&(ze=2&Ye[0]?Ne.return:Ye[0]?Ne.throw||((ze=Ne.return)&&ze.call(Ne),0):Ne.next)&&!(ze=ze.call(Ne,Ye[1])).done)return ze;switch(Ne=0,ze&&(Ye=[2&Ye[0],ze.value]),Ye[0]){case 0:case 1:ze=Ye;break;case 4:return ve.label++,{value:Ye[1],done:!1};case 5:ve.label++,Ne=Ye[1],Ye=[0];continue;case 7:Ye=ve.ops.pop(),ve.trys.pop();continue;default:if(ze=ve.trys,!((ze=ze.length>0&&ze[ze.length-1])||Ye[0]!==6&&Ye[0]!==2)){ve=0;continue}if(Ye[0]===3&&(!ze||Ye[1]>ze[0]&&Ye[1]<ze[3])){ve.label=Ye[1];break}if(Ye[0]===6&&ve.label<ze[1]){ve.label=ze[1],ze=Ye;break}if(ze&&ve.label<ze[2]){ve.label=ze[2],ve.ops.push(Ye);break}ze[2]&&ve.ops.pop(),ve.trys.pop();continue}Ye=te.call(Re,ve)}catch(st){Ye=[6,st],Ne=0}finally{de=ze=0}if(5&Ye[0])throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}([We,Ue])}}}function be(){for(var Re=0,te=0,de=arguments.length;te<de;te++)Re+=arguments[te].length;var Ne=Array(Re),ze=0;for(te=0;te<de;te++)for(var xe=arguments[te],ve=0,Oe=xe.length;ve<Oe;ve++,ze++)Ne[ze]=xe[ve];return Ne}var z=function(){function Re(){}return Re.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Re.setAttributes=function(te,de){for(var Ne=0,ze=de;Ne<ze.length;Ne++){var xe=ze[Ne],ve=xe[0],Oe=xe[1];te.setAttribute(ve,Oe)}},Re.createRect=function(te,de,Ne){var ze=document.createElementNS("http://www.w3.org/2000/svg","rect");return ze.setAttribute("width",te.toString()),ze.setAttribute("height",de.toString()),Ne&&Re.setAttributes(ze,Ne),ze},Re.createLine=function(te,de,Ne,ze,xe){var ve=document.createElementNS("http://www.w3.org/2000/svg","line");return ve.setAttribute("x1",te.toString()),ve.setAttribute("y1",de.toString()),ve.setAttribute("x2",Ne.toString()),ve.setAttribute("y2",ze.toString()),xe&&Re.setAttributes(ve,xe),ve},Re.createPolygon=function(te,de){var Ne=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ne.setAttribute("points",te),de&&Re.setAttributes(Ne,de),Ne},Re.createCircle=function(te,de){var Ne=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ne.setAttribute("cx",(te/2).toString()),Ne.setAttribute("cy",(te/2).toString()),Ne.setAttribute("r",te.toString()),de&&Re.setAttributes(Ne,de),Ne},Re.createEllipse=function(te,de,Ne){var ze=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ze.setAttribute("cx",(te/2).toString()),ze.setAttribute("cy",(de/2).toString()),ze.setAttribute("rx",(te/2).toString()),ze.setAttribute("ry",(de/2).toString()),Ne&&Re.setAttributes(ze,Ne),ze},Re.createGroup=function(te){var de=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&Re.setAttributes(de,te),de},Re.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Re.createMarker=function(te,de,Ne,ze,xe,ve,Oe){var We=document.createElementNS("http://www.w3.org/2000/svg","marker");return Re.setAttributes(We,[["id",te],["orient",de],["markerWidth",Ne.toString()],["markerHeight",ze.toString()],["refX",xe.toString()],["refY",ve.toString()]]),We.appendChild(Oe),We},Re.createText=function(te){var de=document.createElementNS("http://www.w3.org/2000/svg","text");return de.setAttribute("x","0"),de.setAttribute("y","0"),te&&Re.setAttributes(de,te),de},Re.createTSpan=function(te,de){var Ne=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ne.textContent=te,de&&Re.setAttributes(Ne,de),Ne},Re.createImage=function(te){var de=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&Re.setAttributes(de,te),de},Re.createPoint=function(te,de){var Ne=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ne.x=te,Ne.y=de,Ne},Re.createPath=function(te,de){var Ne=document.createElementNS("http://www.w3.org/2000/svg","path");return Ne.setAttribute("d",te),de&&Re.setAttributes(Ne,de),Ne},Re}(),E=function(){function Re(){}return Re.addKey=function(te){Re.key=te},Object.defineProperty(Re,"isLicensed",{get:function(){return!!Re.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Re.key)},enumerable:!1,configurable:!0}),Re}(),ie=function(){function Re(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Re.prototype.rasterize=function(te,de,Ne){var ze=this;return new Promise(function(xe){var ve=Ne!==void 0?Ne:document.createElement("canvas");te===null&&(ze.markersOnly=!0,ze.naturalSize=!1);var Oe=document.createElementNS("http://www.w3.org/2000/svg","svg");Oe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Oe.setAttribute("width",de.width.baseVal.valueAsString),Oe.setAttribute("height",de.height.baseVal.valueAsString),Oe.setAttribute("viewBox","0 0 "+de.viewBox.baseVal.width.toString()+" "+de.viewBox.baseVal.height.toString()),Oe.innerHTML=de.innerHTML,ze.naturalSize===!0?(Oe.width.baseVal.value=te.naturalWidth,Oe.height.baseVal.value=te.naturalHeight):ze.width!==void 0&&ze.height!==void 0&&(Oe.width.baseVal.value=ze.width,Oe.height.baseVal.value=ze.height),ve.width=Oe.width.baseVal.value,ve.height=Oe.height.baseVal.value;var We=Oe.outerHTML,Ue=ve.getContext("2d");ze.markersOnly!==!0&&Ue.drawImage(te,0,0,ve.width,ve.height);var Ye=window.URL,st=new Image(ve.width,ve.height);st.setAttribute("crossOrigin","anonymous");var lt=new Blob([We],{type:"image/svg+xml"}),ft=Ye.createObjectURL(lt);st.onload=function(){Ue.drawImage(st,0,0),Ye.revokeObjectURL(ft);var Tt=ve.toDataURL(ze.imageType,ze.imageQuality);xe(Tt)},st.src=ft})},Re}(),oe=function(){},ee=function(){function Re(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}return Object.defineProperty(Re.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Re.prototype.addClass=function(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},Re.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},Re.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new le("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new le("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new le("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new x("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new x("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Re.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Re}(),le=function(Re,te){this.selector=Re,this.style=te},x=function(Re,te){this.localName=Re,this.style=te},ne=function(){function Re(te,de,Ne,ze,xe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=de,this.markerItems=Ne,this.uiStyleSettings=ze,this.styles=xe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Re.prototype.show=function(te){var de=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ne=document.createElement("div");Ne.className=this.toolbarBlockStyleClass.name,Ne.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ne),this.addActionButton(Ne,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Ne,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Ne,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Ne,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Ne,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Ne,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Ne,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Ne,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(xe){var ve=document.createElement("div");ve.className=""+de.toolbarButtonStyleClass.name,ve.setAttribute("data-type-name",xe.typeName),ve.innerHTML=xe.icon,ve.addEventListener("click",function(){de.markerToolbarButtonClicked(ve,xe)}),de.buttons.push(ve),de.markerButtons.push(ve)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ze=document.createElement("div");ze.className=this.toolbarBlockStyleClass.name,ze.style.whiteSpace="nowrap",ze.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ze),this.addActionButton(ze,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ze,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},Re.prototype.addButtonClickListener=function(te){this.buttonClickListeners.push(te)},Re.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},Re.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Re.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var de=0;de<this.markerButtons.length;de++)de<te||de===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[de]):(de===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[de]))}},Re.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},Re.prototype.resetButtonStyles=function(){var te=this;this.buttons.forEach(function(de){de.className=de.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),de.className=de.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),de.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},Re.prototype.addActionButton=function(te,de,Ne){var ze=this,xe=document.createElement("div");switch(xe.className=""+this.toolbarButtonStyleClass.name,xe.innerHTML=de,xe.setAttribute("data-action",Ne),xe.addEventListener("click",function(){ze.actionToolbarButtonClicked(xe,Ne)}),Ne){case"select":xe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":xe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":xe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":xe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":xe.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(xe),this.buttons.push(xe)},Re.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new x("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new x("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new x("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new x("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new x("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new x("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
|
|
|
padding: `+te+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new x("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new x("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new le("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new le("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Re.prototype.markerToolbarButtonClicked=function(te,de){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("marker",de)}),this.markerButtonOverflowBlock.style.display="none"},Re.prototype.actionToolbarButtonClicked=function(te,de){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ne){return Ne("action",de)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Re.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Re.prototype.setActiveMarkerButton=function(te){var de=this.markerButtons.find(function(Ne){return Ne.getAttribute("data-type-name")===te});de&&this.setActiveButton(de)},Re.prototype.setCurrentMarker=function(te){var de=this;this.currentMarker=te,this.buttons.filter(function(Ne){return/delete|notes/.test(Ne.getAttribute("data-action"))}).forEach(function(Ne){de.currentMarker===void 0?(Ne.style.fillOpacity="0.4",Ne.style.pointerEvents="none"):(Ne.style.fillOpacity="1",Ne.style.pointerEvents="all")})},Re}(),re=function(){function Re(te,de,Ne,ze){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=de,this.uiStyleSettings=Ne,this.styles=ze,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Re.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new x("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new x("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var de=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new x("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new x("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new x("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new x("toolbox-panel-row_colors",`
|
|
|
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new x("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*de)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*de)+`px;
|
|
|
padding: `+de+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new x("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new x("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new le("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new le("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Re.prototype.show=function(te){var de;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((de=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&de!==void 0?de:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Re.prototype.setPanelButtons=function(te){var de,Ne,ze=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((de=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&de!==void 0?de:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ne=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ne!==void 0?Ne:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(xe){var ve;xe.uiStyleSettings=ze.uiStyleSettings;var Oe=document.createElement("div");Oe.className=ze.toolboxButtonStyleClass.name+" "+((ve=ze.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ve!==void 0?ve:ze.toolboxButtonStyleColorsClass.name),Oe.innerHTML=xe.icon,Oe.title=xe.title,Oe.addEventListener("click",function(){ze.panelButtonClick(xe)}),ze.panelButtons.push(Oe),ze.buttonRow.appendChild(Oe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Re.prototype.panelButtonClick=function(te){var de=this,Ne=-1;if(te!==this.activePanel){Ne=this.panels.indexOf(te),this.panelRow.innerHTML="";var ze=te.getUi();ze.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ze),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){de.displayMode==="inline"?de.panelRow.style.display="none":de.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(xe,ve){var Oe,We;xe.className=de.toolboxButtonStyleClass.name+" "+(ve===Ne?""+((Oe=de.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Oe!==void 0?Oe:de.toolboxActiveButtonStyleColorsClass.name):""+((We=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&We!==void 0?We:de.toolboxButtonStyleColorsClass.name))})},Re}(),ae=function(Re,te){this.title=Re,this.icon=te},se=function(Re){function te(de,Ne,ze,xe){var ve=Re.call(this,de,xe||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ve.colors=[],ve.addTransparent=!1,ve.colorBoxes=[],ve.colors=Ne,ve.currentColor=ze,ve.setCurrentColor=ve.setCurrentColor.bind(ve),ve.getColorBox=ve.getColorBox.bind(ve),ve}return gt(te,Re),te.prototype.getUi=function(){var de=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.whiteSpace="nowrap",this.colors.forEach(function(ze){var xe=de.getColorBox(ze);Ne.appendChild(xe),de.colorBoxes.push(xe)}),Ne},te.prototype.getColorBox=function(de){var Ne=this,ze=this.uiStyleSettings.toolbarHeight/4,xe=this.uiStyleSettings.toolbarHeight-ze,ve=document.createElement("div");ve.style.display="inline-block",ve.style.boxSizing="content-box",ve.style.width=xe-2+"px",ve.style.height=xe-2+"px",ve.style.padding="1px",ve.style.marginRight="2px",ve.style.marginBottom="2px",ve.style.borderWidth="2px",ve.style.borderStyle="solid",ve.style.borderRadius=(xe+2)/2+"px",ve.style.borderColor=de===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ve.addEventListener("click",function(){Ne.setCurrentColor(de,ve)});var Oe=document.createElement("div");return Oe.style.display="inline-block",Oe.style.width=xe-2+"px",Oe.style.height=xe-2+"px",Oe.style.backgroundColor=de,Oe.style.borderRadius=xe/2+"px",de==="transparent"&&(Oe.style.fill=this.uiStyleSettings.toolboxAccentColor,Oe.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),ve.appendChild(Oe),ve},te.prototype.setCurrentColor=function(de,Ne){var ze=this;this.currentColor=de,this.colorBoxes.forEach(function(xe){xe.style.borderColor=xe===Ne?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(de)},te}(ae),ce=function(){function Re(te,de,Ne){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=de,this.globalSettings=Ne,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Re.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Re.prototype.ownsTarget=function(te){return!1},Object.defineProperty(Re.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Re.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Re.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Re.prototype.pointerDown=function(te,de){},Re.prototype.dblClick=function(te,de){},Re.prototype.manipulate=function(te){},Re.prototype.pointerUp=function(te){this.stateChanged()},Re.prototype.dispose=function(){},Re.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},Re.prototype.getState=function(){return{typeName:Re.typeName,state:this.state,notes:this.notes}},Re.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},Re.prototype.scale=function(te,de){},Re.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},Re.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},Re.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},Re.typeName="MarkerBase",Re}(),pe=function(){function Re(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Re.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},Re}(),me=function(){function Re(){this.GRIP_SIZE=10,this.visual=z.createGroup(),this.visual.appendChild(z.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(z.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Re.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},Re}(),he=function(){function Re(){}return Re.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},Re.toSVGMatrix=function(te,de){return te.a=de.a,te.b=de.b,te.c=de.c,te.d=de.d,te.e=de.e,te.f=de.f,te},Re}(),ye=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.left=0,xe.top=0,xe.width=0,xe.height=0,xe.defaultSize={x:50,y:20},xe.offsetX=0,xe.offsetY=0,xe.rotationAngle=0,xe.CB_DISTANCE=10,xe._suppressMarkerCreateEvent=!1,xe.container.transform.baseVal.appendItem(z.createTransform()),xe.setupControlBox(),xe}return gt(te,Re),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(de){this._visual=de;var Ne=z.createTransform();this._visual.transform.baseVal.appendItem(Ne)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(de){return!!Re.prototype.ownsTarget.call(this,de)||!!(this.controlGrips.findGripByVisual(de)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(de))},te.prototype.pointerDown=function(de,Ne){Re.prototype.pointerDown.call(this,de,Ne),this.state==="new"&&(this.left=de.x,this.top=de.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ze=this.unrotatePoint(de);if(this.manipulationStartX=ze.x,this.manipulationStartY=ze.y,this.offsetX=ze.x-this.left,this.offsetY=ze.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ne),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ne)){this.activeGrip=this.rotatorGrip;var xe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=xe.x-this.width/2,this.top=xe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ve=this.container.transform.baseVal.getItem(0);ve.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ve,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(de){var Ne=this.state;Re.prototype.pointerUp.call(this,de),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(de),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(de){this.visual.style.transform="translate("+de.x+"px, "+de.y+"px)"},te.prototype.manipulate=function(de){var Ne=this.unrotatePoint(de);this.state==="creating"?this.resize(de):this.state==="move"?(this.left=this.manipulationStartLeft+(Ne.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ne.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ne):this.state==="rotate"&&this.rotate(de)},te.prototype.resize=function(de){var Ne=this.manipulationStartLeft,ze=this.manipulationStartWidth,xe=this.manipulationStartTop,ve=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ne=this.manipulationStartLeft+de.x-this.manipulationStartX,ze=this.manipulationStartWidth+this.manipulationStartLeft-Ne;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ze=this.manipulationStartWidth+de.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:xe=this.manipulationStartTop+de.y-this.manipulationStartY,ve=this.manipulationStartHeight+this.manipulationStartTop-xe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ve=this.manipulationStartHeight+de.y-this.manipulationStartY}ze>=0?(this.left=Ne,this.width=ze):(this.left=Ne+ze,this.width=-ze),ve>=0?(this.top=xe,this.height=ve):(this.top=xe+ve,this.height=-ve),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(de){if(Math.abs(de.x-this.centerX)>.1){var Ne=Math.sign(de.x-this.centerX);this.rotationAngle=180*Math.atan((de.y-this.centerY)/(de.x-this.centerX))/Math.PI+90*Ne,this.applyRotation()}},te.prototype.applyRotation=function(){var de=this.container.transform.baseVal.getItem(0);de.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(de,0)},te.prototype.rotatePoint=function(de){if(this.rotationAngle===0)return de;var Ne=this.container.getCTM(),ze=z.createPoint(de.x,de.y);return{x:(ze=ze.matrixTransform(Ne)).x,y:ze.y}},te.prototype.unrotatePoint=function(de){if(this.rotationAngle===0)return de;var Ne=this.container.getCTM();Ne=Ne.inverse();var ze=z.createPoint(de.x,de.y);return{x:(ze=ze.matrixTransform(Ne)).x,y:ze.y}},te.prototype.select=function(){Re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){Re.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=z.createGroup();var de=z.createTransform();de.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(de),this.container.appendChild(this.controlBox),this.controlRect=z.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=z.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new pe,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var de=this.controlBox.transform.baseVal.getItem(0);de.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(de,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},te.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},te.prototype.createGrip=function(){var de=new me;return de.visual.transform.baseVal.appendItem(z.createTransform()),this.controlBox.appendChild(de.visual),de},te.prototype.positionGrips=function(){var de=this.controlGrips.topLeft.GRIP_SIZE,Ne=-de/2,ze=Ne,xe=(this.width+this.CB_DISTANCE)/2-de/2,ve=(this.height+this.CB_DISTANCE)/2-de/2,Oe=this.height+this.CB_DISTANCE-de/2,We=this.width+this.CB_DISTANCE-de/2;this.positionGrip(this.controlGrips.topLeft.visual,Ne,ze),this.positionGrip(this.controlGrips.topCenter.visual,xe,ze),this.positionGrip(this.controlGrips.topRight.visual,We,ze),this.positionGrip(this.controlGrips.centerLeft.visual,Ne,ve),this.positionGrip(this.controlGrips.centerRight.visual,We,ve),this.positionGrip(this.controlGrips.bottomLeft.visual,Ne,Oe),this.positionGrip(this.controlGrips.bottomCenter.visual,xe,Oe),this.positionGrip(this.controlGrips.bottomRight.visual,We,Oe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,xe,ze-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(de,Ne,ze){var xe=de.transform.baseVal.getItem(0);xe.setTranslate(Ne,ze),de.transform.baseVal.replaceItem(xe,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:he.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:he.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Re.prototype.getState.call(this))},te.prototype.restoreState=function(de){Re.prototype.restoreState.call(this,de);var Ne=de;this.left=Ne.left,this.top=Ne.top,this.width=Ne.width,this.height=Ne.height,this.rotationAngle=Ne.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(he.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ne.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(he.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ne.containerTransformMatrix))},te.prototype.scale=function(de,Ne){Re.prototype.scale.call(this,de,Ne);var ze=this.rotatePoint({x:this.left,y:this.top}),xe=this.unrotatePoint({x:ze.x*de,y:ze.y*Ne});this.left=xe.x,this.top=xe.y,this.width=this.width*de,this.height=this.height*Ne,this.adjustControlBox()},te}(ce),De=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.opacity=1,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe}return gt(te,Re),te.prototype.ownsTarget=function(de){return!(!Re.prototype.ownsTarget.call(this,de)&&de!==this.visual)},te.prototype.createVisual=function(){this.visual=z.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(de,Ne){Re.prototype.pointerDown.call(this,de,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(de),this._state="creating")},te.prototype.manipulate=function(de){Re.prototype.manipulate.call(this,de)},te.prototype.resize=function(de){Re.prototype.resize.call(this,de),this.setSize()},te.prototype.setSize=function(){Re.prototype.setSize.call(this),z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(de){Re.prototype.pointerUp.call(this,de),this.setSize()},te.prototype.setStrokeColor=function(de){this.strokeColor=de,this.visual&&z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(de),this.stateChanged()},te.prototype.setFillColor=function(de){this.fillColor=de,this.visual&&z.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(de){this.strokeWidth=de,this.visual&&z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(de){this.strokeDasharray=de,this.visual&&z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Re.prototype.getState.call(this))},te.prototype.restoreState=function(de){var Ne=de;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),Re.prototype.restoreState.call(this,de),this.setSize()},te.prototype.scale=function(de,Ne){Re.prototype.scale.call(this,de,Ne),this.setSize()},te.title="Rectangle marker",te}(ye),Me=function(Re){function te(de,Ne,ze,xe){var ve=Re.call(this,de,xe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ve.widths=[],ve.widthBoxes=[],ve.widths=Ne,ve.currentWidth=ze,ve.setCurrentWidth=ve.setCurrentWidth.bind(ve),ve}return gt(te,Re),te.prototype.getUi=function(){var de=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.widths.forEach(function(ze){var xe=document.createElement("div");xe.style.display="flex",xe.style.flexGrow="2",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.borderColor=ze===de.currentWidth?de.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){de.setCurrentWidth(ze,xe)}),Ne.appendChild(xe);var ve=document.createElement("div");ve.innerText=ze.toString(),ve.style.marginRight="5px",xe.appendChild(ve);var Oe=document.createElement("div");Oe.style.minHeight="20px",Oe.style.flexGrow="2",Oe.style.display="flex",Oe.style.alignItems="center";var We=document.createElement("hr");We.style.minWidth="20px",We.style.border="0px",We.style.borderTop=ze+"px solid "+de.uiStyleSettings.toolboxColor,We.style.flexGrow="2",Oe.appendChild(We),xe.appendChild(Oe),de.widthBoxes.push(xe)}),Ne},te.prototype.setCurrentWidth=function(de,Ne){var ze=this;this.currentWidth=de,this.widthBoxes.forEach(function(xe){xe.style.borderColor=xe===Ne?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(ae),Be=function(Re){function te(de,Ne,ze,xe){var ve=Re.call(this,de,xe||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ve.styles=[],ve.styleBoxes=[],ve.styles=Ne,ve.currentStyle=ze,ve.setCurrentStyle=ve.setCurrentStyle.bind(ve),ve}return gt(te,Re),te.prototype.getUi=function(){var de=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.styles.forEach(function(ze){var xe=document.createElement("div");xe.style.display="flex",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.overflow="hidden",xe.style.maxWidth=100/de.styles.length-5+"%",xe.style.borderColor=ze===de.currentStyle?de.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){de.setCurrentStyle(ze,xe)}),Ne.appendChild(xe);var ve=document.createElement("div");ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.overflow="hidden";var Oe=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+de.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ze!==""?'stroke-dasharray="'+ze+'"':"")+` />
|
|
|
</svg>`;ve.innerHTML=Oe,xe.appendChild(ve),de.styleBoxes.push(xe)}),Ne},te.prototype.setCurrentStyle=function(de,Ne){var ze=this;this.currentStyle=de,this.styleBoxes.forEach(function(xe){xe.style.borderColor=xe===Ne?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(ae),Pe=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.strokeColor=ze.defaultColor,xe.strokeWidth=ze.defaultStrokeWidth,xe.strokeDasharray=ze.defaultStrokeDasharray,xe.strokePanel=new se("Line color",ze.defaultColorSet,ze.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new Me("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Be("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return gt(te,Re),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Re.prototype.getState.call(this);return de.typeName=te.typeName,de},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(De),Ce=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Ee=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.x1=0,xe.y1=0,xe.x2=0,xe.y2=0,xe.defaultLength=50,xe.manipulationStartX=0,xe.manipulationStartY=0,xe.manipulationStartX1=0,xe.manipulationStartY1=0,xe.manipulationStartX2=0,xe.manipulationStartY2=0,xe.setupControlBox(),xe}return gt(te,Re),te.prototype.ownsTarget=function(de){return!!Re.prototype.ownsTarget.call(this,de)||!(!this.grip1.ownsTarget(de)&&!this.grip2.ownsTarget(de))},te.prototype.pointerDown=function(de,Ne){Re.prototype.pointerDown.call(this,de,Ne),this.manipulationStartX=de.x,this.manipulationStartY=de.y,this.state==="new"&&(this.x1=de.x,this.y1=de.y,this.x2=de.x,this.y2=de.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Ne)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ne)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(de){var Ne=this.state;Re.prototype.pointerUp.call(this,de),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(de),this._state="select",Ne==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(de){this.state==="creating"?this.resize(de):this.state==="move"?(this.x1=this.manipulationStartX1+de.x-this.manipulationStartX,this.y1=this.manipulationStartY1+de.y-this.manipulationStartY,this.x2=this.manipulationStartX2+de.x-this.manipulationStartX,this.y2=this.manipulationStartY2+de.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(de)},te.prototype.resize=function(de){switch(this.activeGrip){case this.grip1:this.x1=de.x,this.y1=de.y;break;case this.grip2:case void 0:this.x2=de.x,this.y2=de.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){Re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){Re.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=z.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var de=new me;return de.visual.transform.baseVal.appendItem(z.createTransform()),this.controlBox.appendChild(de.visual),de},te.prototype.positionGrips=function(){var de=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-de/2,this.y1-de/2),this.positionGrip(this.grip2.visual,this.x2-de/2,this.y2-de/2)},te.prototype.positionGrip=function(de,Ne,ze){var xe=de.transform.baseVal.getItem(0);xe.setTranslate(Ne,ze),de.transform.baseVal.replaceItem(xe,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Re.prototype.getState.call(this))},te.prototype.restoreState=function(de){Re.prototype.restoreState.call(this,de);var Ne=de;this.x1=Ne.x1,this.y1=Ne.y1,this.x2=Ne.x2,this.y2=Ne.y2},te.prototype.scale=function(de,Ne){Re.prototype.scale.call(this,de,Ne),this.x1=this.x1*de,this.y1=this.y1*Ne,this.x2=this.x2*de,this.y2=this.y2*Ne,this.adjustVisual(),this.adjustControlBox()},te}(ce),je=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.strokeColor=ze.defaultColor,xe.strokeWidth=ze.defaultStrokeWidth,xe.strokeDasharray=ze.defaultStrokeDasharray,xe.strokePanel=new se("Line color",ze.defaultColorSet,ze.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new Me("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Be("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return gt(te,Re),te.prototype.ownsTarget=function(de){return!(!Re.prototype.ownsTarget.call(this,de)&&de!==this.visual&&de!==this.selectorLine&&de!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=z.createGroup(),this.selectorLine=z.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=z.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(de,Ne){Re.prototype.pointerDown.call(this,de,Ne),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),z.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),z.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),z.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(de){this.strokeColor=de,this.adjustVisual(),this.colorChanged(de)},te.prototype.setStrokeWidth=function(de){this.strokeWidth=de,this.adjustVisual()},te.prototype.setStrokeDasharray=function(de){this.strokeDasharray=de,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Re.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){Re.prototype.restoreState.call(this,de);var Ne=de;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(Ee),ke=function(Re){function te(de,Ne,ze,xe){var ve=Re.call(this,de,xe||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ve.fonts=[],ve.fontBoxes=[],ve.fonts=Ne,ve.currentFont=ze,ve.setCurrentFont=ve.setCurrentFont.bind(ve),ve}return gt(te,Re),te.prototype.getUi=function(){var de=this,Ne=document.createElement("div");return Ne.style.overflow="hidden",Ne.style.flexGrow="2",this.fonts.forEach(function(ze){var xe=document.createElement("div");xe.style.display="inline-block",xe.style.alignItems="center",xe.style.justifyContent="space-between",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.overflow="hidden",xe.style.maxWidth=100/de.fonts.length-5+"%",xe.style.borderColor=ze===de.currentFont?de.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){de.setCurrentFont(ze,xe)}),Ne.appendChild(xe);var ve=document.createElement("div");ve.style.display="flex",ve.style.minHeight="20px",ve.style.flexGrow="2",ve.style.fontFamily=ze,ve.style.overflow="hidden";var Oe=document.createElement("div");Oe.style.whiteSpace="nowrap",Oe.style.overflow="hidden",Oe.style.textOverflow="ellipsis",Oe.innerHTML="The quick brown fox jumps over the lazy dog",ve.appendChild(Oe),xe.appendChild(ve),de.fontBoxes.push(xe)}),Ne},te.prototype.setCurrentFont=function(de,Ne){var ze=this;this.currentFont=de,this.fontBoxes.forEach(function(xe){xe.style.borderColor=xe===Ne?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(ae),Le=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.color="transparent",xe.padding=5,xe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",xe.text=xe.DEFAULT_TEXT,xe.isMoved=!1,xe.color=ze.defaultColor,xe.fontFamily=ze.defaultFontFamily,xe.defaultSize={x:100,y:30},xe.setColor=xe.setColor.bind(xe),xe.setFont=xe.setFont.bind(xe),xe.renderText=xe.renderText.bind(xe),xe.sizeText=xe.sizeText.bind(xe),xe.textEditDivClicked=xe.textEditDivClicked.bind(xe),xe.showTextEditor=xe.showTextEditor.bind(xe),xe.setSize=xe.setSize.bind(xe),xe.positionTextEditor=xe.positionTextEditor.bind(xe),xe.colorPanel=new se("Color",ze.defaultColorSet,ze.defaultColor),xe.colorPanel.onColorChanged=xe.setColor,xe.fontFamilyPanel=new ke("Font",ze.defaultFontFamilies,ze.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe}return gt(te,Re),te.prototype.ownsTarget=function(de){if(Re.prototype.ownsTarget.call(this,de)||de===this.visual||de===this.textElement||de===this.bgRectangle)return!0;var Ne=!1;return this.textElement.childNodes.forEach(function(ze){ze===de&&(Ne=!0)}),Ne},te.prototype.createVisual=function(){this.visual=z.createGroup(),this.bgRectangle=z.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=z.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(z.createTransform()),this.textElement.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(de,Ne){Re.prototype.pointerDown.call(this,de,Ne),this.isMoved=!1,this.pointerDownPoint=de,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(de),this._state="creating")},te.prototype.renderText=function(){var de=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Ne){de.textElement.appendChild(z.createTSpan(Ne.trim()===""?" ":Ne.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var de=this.textElement.getBBox(),Ne=1;if(de.width>0&&de.height>0){var ze=(1*this.width-this.width*this.padding*2/100)/de.width,xe=(1*this.height-this.height*this.padding*2/100)/de.height;Ne=Math.min(ze,xe)}return Ne},te.prototype.getTextPosition=function(de){var Ne=this.textElement.getBBox(),ze=0,xe=0;return Ne.width>0&&Ne.height>0&&(ze=(this.width-Ne.width*de)/2,xe=this.height/2-Ne.height*de/2),{x:ze,y:xe}},te.prototype.sizeText=function(){var de=this.textElement.getBBox(),Ne=this.getTextScale(),ze=this.getTextPosition(Ne);ze.y-=de.y*Ne,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ze.x+"px, "+ze.y+"px) scale("+Ne+", "+Ne+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ze.x,ze.y),this.textElement.transform.baseVal.getItem(1).setScale(Ne,Ne))},te.prototype.manipulate=function(de){Re.prototype.manipulate.call(this,de),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(de.x-this.pointerDownPoint.x)>5||Math.abs(de.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(de){Re.prototype.resize.call(this,de),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){Re.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(de){var Ne=this.state;Ne==="creating"&&(this._suppressMarkerCreateEvent=!0),Re.prototype.pointerUp.call(this,de),this.setSize(),(Ne==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var de=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Ne){Ne.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ne=Number.parseFloat(de.textEditor.style.fontSize);de.textEditor.clientWidth>=Number.parseInt(de.textEditor.style.maxWidth)&&Ne>.9;)Ne-=.1,de.textEditor.style.fontSize=Math.max(Ne,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ne){if(Ne.clipboardData){var ze=Ne.clipboardData.getData("text"),xe=window.getSelection();if(!xe.rangeCount)return!1;xe.deleteFromDocument(),xe.getRangeAt(0).insertNode(document.createTextNode(ze)),Ne.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){de.textEditDivClicked(de.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var de=this.getTextScale(),Ne=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ze=this.textElement.getBBox(),xe={x:ze.width*de,y:ze.height*de};Ne.x-=xe.x/2,Ne.y-=xe.y/2,this.textEditor.style.top=Ne.y+"px",this.textEditor.style.left=Ne.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ne.x+"px",this.textEditor.style.fontSize=Math.max(16*de,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(de){this.text=de.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){Re.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Re.prototype.deselect.call(this)},te.prototype.dblClick=function(de,Ne){Re.prototype.dblClick.call(this,de,Ne),this.showTextEditor()},te.prototype.setColor=function(de){this.textElement&&z.setAttributes(this.textElement,[["fill",de]]),this.color=de,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(de)},te.prototype.setFont=function(de){this.textElement&&z.setAttributes(this.textElement,[["font-family",de]]),this.fontFamily=de,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Re.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){var Ne=de;this.color=Ne.color,this.fontFamily=Ne.fontFamily,this.padding=Ne.padding,this.text=Ne.text,this.createVisual(),Re.prototype.restoreState.call(this,de),this.setSize()},te.prototype.scale=function(de,Ne){Re.prototype.scale.call(this,de,Ne),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',te}(ye),Ae=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.color="transparent",xe.lineWidth=3,xe.drawing=!1,xe.pixelRatio=1,xe.color=ze.defaultColor,xe.lineWidth=ze.defaultStrokeWidth,xe.pixelRatio=ze.freehandPixelRatio,xe.setColor=xe.setColor.bind(xe),xe.addCanvas=xe.addCanvas.bind(xe),xe.finishCreation=xe.finishCreation.bind(xe),xe.setLineWidth=xe.setLineWidth.bind(xe),xe.colorPanel=new se("Color",ze.defaultColorSet,ze.defaultColor),xe.colorPanel.onColorChanged=xe.setColor,xe.lineWidthPanel=new Me("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),xe.lineWidthPanel.onWidthChanged=xe.setLineWidth,xe}return gt(te,Re),te.prototype.ownsTarget=function(de){return!(!Re.prototype.ownsTarget.call(this,de)&&de!==this.visual&&de!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=z.createGroup(),this.drawingImage=z.createImage(),this.visual.appendChild(this.drawingImage);var de=z.createTransform();this.visual.transform.baseVal.appendItem(de),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(de,Ne){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(de.x,de.y),this.drawing=!0):Re.prototype.pointerDown.call(this,de,Ne)},te.prototype.manipulate=function(de){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(de.x,de.y),this.canvasContext.stroke()):Re.prototype.manipulate.call(this,de)},te.prototype.resize=function(de){Re.prototype.resize.call(this,de),z.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(de){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Re.prototype.pointerUp.call(this,de)},te.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Re.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Re.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var de=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ne=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ze=Ne[0],xe=Ne[1],ve=Ne[2],Oe=Ne[3],We=!1,Ue=0;Ue<this.canvasElement.height;Ue++)for(var Ye=0;Ye<this.canvasElement.width;Ye++)de.data[Ue*this.canvasElement.width*4+4*Ye+3]>0&&(We=!0,Ue<xe&&(xe=Ue),Ye<ze&&(ze=Ye),Ue>Oe&&(Oe=Ue),Ye>ve&&(ve=Ye));if(We){this.left=ze/this.pixelRatio,this.top=xe/this.pixelRatio,this.width=(ve-ze)/this.pixelRatio,this.height=(Oe-xe)/this.pixelRatio;var st=document.createElement("canvas");st.width=ve-ze,st.height=Oe-xe,st.getContext("2d").putImageData(this.canvasContext.getImageData(ze,xe,ve-ze,Oe-xe),0,0),this.drawingImgUrl=st.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){z.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),z.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(de){this.color=de,this.colorChanged(de)},te.prototype.setLineWidth=function(de){this.lineWidth=de},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({drawingImgUrl:this.drawingImgUrl},Re.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){this.createVisual(),Re.prototype.restoreState.call(this,de),this.drawingImgUrl=de.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(de,Ne){Re.prototype.scale.call(this,de,Ne),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',te}(ye),Se=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,ze||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return xe.typeBoxes=[],xe.currentType=Ne,xe.setCurrentType=xe.setCurrentType.bind(xe),xe}return gt(te,Re),te.prototype.getUi=function(){var de=this,Ne=document.createElement("div");Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2";for(var ze=function(Oe){var We="both";switch(Oe){case 0:We="both";break;case 1:We="start";break;case 2:We="end";break;case 3:We="none"}var Ue=document.createElement("div");if(Ue.style.display="flex",Ue.style.flexGrow="2",Ue.style.alignItems="center",Ue.style.justifyContent="space-between",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.borderColor=We===xe.currentType?xe.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){de.setCurrentType(We,Ue)}),Ne.appendChild(Ue),We==="both"||We==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ye.style.marginLeft="5px",Ue.appendChild(Ye)}var st=document.createElement("div");st.style.display="flex",st.style.alignItems="center",st.style.minHeight="20px",st.style.flexGrow="2";var lt=document.createElement("hr");if(lt.style.minWidth="20px",lt.style.border="0px",lt.style.borderTop="3px solid "+(xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxColor:"#eeeeee"),lt.style.flexGrow="2",st.appendChild(lt),Ue.appendChild(st),We==="both"||We==="end"){var ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(xe.uiStyleSettings!==void 0?xe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ft.style.marginRight="5px",Ue.appendChild(ft)}xe.typeBoxes.push(Ue)},xe=this,ve=0;ve<4;ve++)ze(ve);return Ne},te.prototype.setCurrentType=function(de,Ne){var ze=this;this.currentType=de,this.typeBoxes.forEach(function(xe){xe.style.borderColor=xe===Ne?ze.uiStyleSettings!==void 0?ze.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(ae),Ge=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.arrowType="end",xe.arrowBaseHeight=10,xe.arrowBaseWidth=10,xe.getArrowPoints=xe.getArrowPoints.bind(xe),xe.setArrowType=xe.setArrowType.bind(xe),xe.arrowTypePanel=new Se("Arrow type","end"),xe.arrowTypePanel.onArrowTypeChanged=xe.setArrowType,xe}return gt(te,Re),te.prototype.ownsTarget=function(de){return!(!Re.prototype.ownsTarget.call(this,de)&&de!==this.arrow1&&de!==this.arrow2)},te.prototype.getArrowPoints=function(de,Ne){var ze=this.arrowBaseWidth+2*this.strokeWidth,xe=this.arrowBaseHeight+2*this.strokeWidth;return de-ze/2+","+(Ne+xe/2)+" "+de+","+(Ne-xe/2)+" "+(de+ze/2)+","+(Ne+xe/2)},te.prototype.createTips=function(){this.arrow1=z.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=z.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(de,Ne){Re.prototype.pointerDown.call(this,de,Ne),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(Re.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",z.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),z.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var de=0;Math.abs(this.x1-this.x2)>.1&&(de=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ne=this.arrow1.transform.baseVal.getItem(0);Ne.setRotate(de,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ne,0);var ze=this.arrow2.transform.baseVal.getItem(0);ze.setRotate(de+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ze,0)}},te.prototype.setArrowType=function(de){this.arrowType=de,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({arrowType:this.arrowType},Re.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){Re.prototype.restoreState.call(this,de);var Ne=de;this.arrowType=Ne.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(je),Ze=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.fillColor=ze.defaultFillColor,xe.strokeWidth=0,xe.fillPanel=new se("Color",ze.defaultColorSet,ze.defaultFillColor),xe.fillPanel.onColorChanged=xe.setFillColor,xe}return gt(te,Re),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Re.prototype.getState.call(this);return de.typeName=te.typeName,de},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(De),Je=function(Re){function te(de,Ne,ze,xe){var ve=Re.call(this,de,xe||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ve.opacities=[],ve.opacityBoxes=[],ve.opacities=Ne,ve.currentOpacity=ze,ve.setCurrentOpacity=ve.setCurrentOpacity.bind(ve),ve}return gt(te,Re),te.prototype.getUi=function(){var de=this,Ne=document.createElement("div");return Ne.style.display="flex",Ne.style.overflow="hidden",Ne.style.flexGrow="2",Ne.style.justifyContent="space-between",this.opacities.forEach(function(ze){var xe=document.createElement("div");xe.style.display="flex",xe.style.alignItems="center",xe.style.justifyContent="center",xe.style.padding="5px",xe.style.borderWidth="2px",xe.style.borderStyle="solid",xe.style.borderColor=ze===de.currentOpacity?de.uiStyleSettings.toolboxAccentColor:"transparent",xe.addEventListener("click",function(){de.setCurrentOpacity(ze,xe)}),Ne.appendChild(xe);var ve=document.createElement("div");ve.innerText=100*ze+"%",xe.appendChild(ve),de.opacityBoxes.push(xe)}),Ne},te.prototype.setCurrentOpacity=function(de,Ne){var ze=this;this.currentOpacity=de,this.opacityBoxes.forEach(function(xe){xe.style.borderColor=xe===Ne?ze.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(ae),at=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.setOpacity=xe.setOpacity.bind(xe),xe.fillColor=ze.defaultHighlightColor,xe.strokeWidth=0,xe.opacity=ze.defaultHighlightOpacity,xe.fillPanel=new se("Color",ze.defaultColorSet,xe.fillColor),xe.fillPanel.onColorChanged=xe.setFillColor,xe.opacityPanel=new Je("Opacity",ze.defaultOpacitySteps,xe.opacity),xe.opacityPanel.onOpacityChanged=xe.setOpacity,xe}return gt(te,Re),te.prototype.setOpacity=function(de){this.opacity=de,this.visual&&z.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Re.prototype.getState.call(this);return de.typeName=te.typeName,de},te.typeName="HighlightMarker",te.title="Highlight marker",te.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',te}(Ze),Fe='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Ke='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',it=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.bgColor="transparent",xe.tipPosition={x:0,y:0},xe.tipBase1Position={x:0,y:0},xe.tipBase2Position={x:0,y:0},xe.tipMoving=!1,xe.color=ze.defaultStrokeColor,xe.bgColor=ze.defaultFillColor,xe.fontFamily=ze.defaultFontFamily,xe.defaultSize={x:100,y:30},xe.setBgColor=xe.setBgColor.bind(xe),xe.getTipPoints=xe.getTipPoints.bind(xe),xe.positionTip=xe.positionTip.bind(xe),xe.setTipPoints=xe.setTipPoints.bind(xe),xe.colorPanel=new se("Text color",ze.defaultColorSet,xe.color,Fe),xe.colorPanel.onColorChanged=xe.setColor,xe.bgColorPanel=new se("Fill color",ze.defaultColorSet,xe.bgColor,Ke),xe.bgColorPanel.onColorChanged=xe.setBgColor,xe.fontFamilyPanel=new ke("Font",ze.defaultFontFamilies,ze.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe.tipGrip=new me,xe.tipGrip.visual.transform.baseVal.appendItem(z.createTransform()),xe.controlBox.appendChild(xe.tipGrip.visual),xe}return gt(te,Re),te.prototype.ownsTarget=function(de){return Re.prototype.ownsTarget.call(this,de)||this.tipGrip.ownsTarget(de)||this.tip===de},te.prototype.createTip=function(){z.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=z.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(de,Ne){this.state==="new"&&Re.prototype.pointerDown.call(this,de,Ne),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ne)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Re.prototype.pointerDown.call(this,de,Ne)},te.prototype.pointerUp=function(de){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Re.prototype.pointerUp.call(this,de);else{var Ne=this.state==="creating";Re.prototype.pointerUp.call(this,de),this.setTipPoints(Ne),this.positionTip()}},te.prototype.manipulate=function(de){if(this.tipMoving){var Ne=this.unrotatePoint(de);this.tipPosition={x:Ne.x-this.manipulationStartLeft,y:Ne.y-this.manipulationStartTop},this.positionTip()}else Re.prototype.manipulate.call(this,de)},te.prototype.setBgColor=function(de){this.bgRectangle&&this.tip&&(z.setAttributes(this.bgRectangle,[["fill",de]]),z.setAttributes(this.tip,[["fill",de]])),this.bgColor=de,this.fillColorChanged(de)},te.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},te.prototype.setTipPoints=function(de){de===void 0&&(de=!1);var Ne=Math.min(this.height/2,15),ze=this.height/5;de&&(this.tipPosition={x:Ne+ze/2,y:this.height+20});var xe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?xe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ze=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:0},this.tipBase2Position={x:Ne+ze,y:0}):(this.tipBase1Position={x:0,y:Ne},this.tipBase2Position={x:0,y:Ne+ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?xe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ze=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-ze,y:0},this.tipBase2Position={x:this.width-Ne,y:0}):(this.tipBase1Position={x:this.width,y:Ne},this.tipBase2Position={x:this.width,y:Ne+ze}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?xe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ze=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ne-ze,y:this.height},this.tipBase2Position={x:this.width-Ne,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ne-ze},this.tipBase2Position={x:this.width,y:this.height-Ne}):xe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ze=this.width/5,Ne=Math.min(this.width/2,15),this.tipBase1Position={x:Ne,y:this.height},this.tipBase2Position={x:Ne+ze,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ne},this.tipBase2Position={x:0,y:this.height-Ne-ze})},te.prototype.resize=function(de){Re.prototype.resize.call(this,de),this.positionTip()},te.prototype.positionTip=function(){z.setAttributes(this.tip,[["points",this.getTipPoints()]]);var de=this.tipGrip.visual.transform.baseVal.getItem(0);de.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(de,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),Re.prototype.select.call(this)},te.prototype.getState=function(){var de=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Re.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){var Ne=de;this.bgColor=Ne.bgColor,this.tipPosition=Ne.tipPosition,Re.prototype.restoreState.call(this,de),this.createTip(),this.setTipPoints()},te.prototype.scale=function(de,Ne){Re.prototype.scale.call(this,de,Ne),this.tipPosition={x:this.tipPosition.x*de,y:this.tipPosition.y*Ne},this.positionTip()},te.typeName="CalloutMarker",te.title="Callout marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',te}(Le),rt=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.opacity=1,xe.strokeColor=ze.defaultColor,xe.strokeWidth=ze.defaultStrokeWidth,xe.strokeDasharray=ze.defaultStrokeDasharray,xe.fillColor=ze.defaultFillColor,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.setOpacity=xe.setOpacity.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe.strokePanel=new se("Line color",be(ze.defaultColorSet,["transparent"]),ze.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.fillPanel=new se("Fill color",be(ze.defaultColorSet,["transparent"]),xe.fillColor,Ke),xe.fillPanel.onColorChanged=xe.setFillColor,xe.strokeWidthPanel=new Me("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Be("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe.opacityPanel=new Je("Opacity",ze.defaultOpacitySteps,xe.opacity),xe.opacityPanel.onOpacityChanged=xe.setOpacity,xe}return gt(te,Re),te.prototype.ownsTarget=function(de){return!(!Re.prototype.ownsTarget.call(this,de)&&de!==this.visual)},te.prototype.createVisual=function(){this.visual=z.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(de,Ne){Re.prototype.pointerDown.call(this,de,Ne),this.state==="new"&&(this.createVisual(),this.moveVisual(de),this._state="creating")},te.prototype.manipulate=function(de){Re.prototype.manipulate.call(this,de)},te.prototype.resize=function(de){Re.prototype.resize.call(this,de),this.setSize()},te.prototype.setSize=function(){Re.prototype.setSize.call(this),z.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},te.prototype.pointerUp=function(de){Re.prototype.pointerUp.call(this,de),this.setSize()},te.prototype.setStrokeColor=function(de){this.strokeColor=de,this.visual&&z.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(de),this.stateChanged()},te.prototype.setFillColor=function(de){this.fillColor=de,this.visual&&z.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(de),this.stateChanged()},te.prototype.setStrokeWidth=function(de){this.strokeWidth=de,this.visual&&z.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(de){this.strokeDasharray=de,this.visual&&z.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(de){this.opacity=de,this.visual&&z.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Re.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){var Ne=de;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.opacity=Ne.opacity,this.createVisual(),Re.prototype.restoreState.call(this,de),this.setSize()},te.prototype.scale=function(de,Ne){Re.prototype.scale.call(this,de,Ne),this.setSize()},te.typeName="EllipseMarker",te.title="Ellipse marker",te.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',te}(ye),et=function(Re){function te(de,Ne,ze){return Re.call(this,de,Ne,ze)||this}return gt(te,Re),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(de){return!(!Re.prototype.ownsTarget.call(this,de)&&de!==this.tip1&&de!==this.tip2)},te.prototype.createTips=function(){this.tip1=z.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.tip1),this.tip2=z.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(z.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(de,Ne){Re.prototype.pointerDown.call(this,de,Ne),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(Re.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(z.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),z.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var de=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ne=this.tip1.transform.baseVal.getItem(0);Ne.setRotate(de,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ne,0);var ze=this.tip2.transform.baseVal.getItem(0);ze.setRotate(de+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ze,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Re.prototype.getState.call(this);return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){Re.prototype.restoreState.call(this,de),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',te}(je),$e=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.strokePanel.colors=ze.defaultColorSet,xe.fillColor="transparent",xe}return gt(te,Re),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Re.prototype.getState.call(this);return de.typeName=te.typeName,de},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',te}(rt),Xe=function(){function Re(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Re.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Re.prototype.addUndoStep=function(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},Re.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},Re.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Re.prototype.undo=function(){if(this.undoStack.length>1){var te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Re.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Re}(),Ve=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.curveX=0,xe.curveY=0,xe.manipulationStartCurveX=0,xe.manipulationStartCurveY=0,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.positionGrips=xe.positionGrips.bind(xe),xe.addControlGrips=xe.addControlGrips.bind(xe),xe.adjustVisual=xe.adjustVisual.bind(xe),xe.setupControlBox=xe.setupControlBox.bind(xe),xe.resize=xe.resize.bind(xe),xe.strokeColor=ze.defaultColor,xe.strokeWidth=ze.defaultStrokeWidth,xe.strokeDasharray=ze.defaultStrokeDasharray,xe.strokePanel=new se("Line color",ze.defaultColorSet,ze.defaultColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.strokeWidthPanel=new Me("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Be("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe}return gt(te,Re),te.prototype.ownsTarget=function(de){return!(!Re.prototype.ownsTarget.call(this,de)&&de!==this.visual&&de!==this.selectorCurve&&de!==this.visibleCurve&&!this.curveGrip.ownsTarget(de))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=z.createGroup(),this.selectorCurve=z.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=z.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(de,Ne){Re.prototype.pointerDown.call(this,de,Ne),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=de.x,this.curveY=de.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ne)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),z.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),z.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),z.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){Re.prototype.setupControlBox.call(this),this.curveControlLine1=z.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=z.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Re.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){Re.prototype.positionGrips.call(this);var de=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-de/2,this.curveY-de/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},te.prototype.manipulate=function(de){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+de.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+de.y-this.manipulationStartY),Re.prototype.manipulate.call(this,de)},te.prototype.resize=function(de){this.activeGrip===this.curveGrip&&(this.curveX=de.x,this.curveY=de.y),Re.prototype.resize.call(this,de),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(de){this.strokeColor=de,this.adjustVisual(),this.colorChanged(de)},te.prototype.setStrokeWidth=function(de){this.strokeWidth=de,this.adjustVisual()},te.prototype.setStrokeDasharray=function(de){this.strokeDasharray=de,this.adjustVisual()},te.prototype.scale=function(de,Ne){this.curveX=this.curveX*de,this.curveY=this.curveY*Ne,Re.prototype.scale.call(this,de,Ne)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Re.prototype.getState.call(this));return de.typeName=te.typeName,de},te.prototype.restoreState=function(de){Re.prototype.restoreState.call(this,de);var Ne=de;this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.curveX=Ne.curveX,this.curveY=Ne.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',te}(Ee),nt=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,Ne,ze)||this;return xe.fillColor="transparent",xe.strokeColor="transparent",xe.strokeWidth=0,xe.strokeDasharray="",xe.textColor="transparent",xe.fontSize="1rem",xe.isMoved=!1,xe.captionText="Caption",xe.PADDING=5,xe.captionBoxWidth=0,xe.captionBoxHeight=0,xe.strokeColor=ze.defaultColor,xe.strokeWidth=ze.defaultStrokeWidth,xe.strokeDasharray=ze.defaultStrokeDasharray,xe.fillColor=ze.defaultFillColor,xe.textColor=ze.defaultStrokeColor,xe.fontFamily=ze.defaultFontFamily,xe.fontSize=ze.defaultCaptionFontSize,xe.captionText=ze.defaultCaptionText,xe.setStrokeColor=xe.setStrokeColor.bind(xe),xe.setFillColor=xe.setFillColor.bind(xe),xe.setStrokeWidth=xe.setStrokeWidth.bind(xe),xe.setStrokeDasharray=xe.setStrokeDasharray.bind(xe),xe.createVisual=xe.createVisual.bind(xe),xe.sizeCaption=xe.sizeCaption.bind(xe),xe.setCaptionText=xe.setCaptionText.bind(xe),xe.showTextEditor=xe.showTextEditor.bind(xe),xe.positionTextEditor=xe.positionTextEditor.bind(xe),xe.finishTextEditing=xe.finishTextEditing.bind(xe),xe.setFont=xe.setFont.bind(xe),xe.setTextColor=xe.setTextColor.bind(xe),xe.strokePanel=new se("Line color",be(ze.defaultColorSet,["transparent"]),xe.strokeColor),xe.strokePanel.onColorChanged=xe.setStrokeColor,xe.fillPanel=new se("Fill color",be(ze.defaultColorSet,["transparent"]),xe.fillColor,Ke),xe.fillPanel.onColorChanged=xe.setFillColor,xe.strokeWidthPanel=new Me("Line width",ze.defaultStrokeWidths,ze.defaultStrokeWidth),xe.strokeWidthPanel.onWidthChanged=xe.setStrokeWidth,xe.strokeStylePanel=new Be("Line style",ze.defaultStrokeDasharrays,ze.defaultStrokeDasharray),xe.strokeStylePanel.onStyleChanged=xe.setStrokeDasharray,xe.fontFamilyPanel=new ke("Font",ze.defaultFontFamilies,ze.defaultFontFamily),xe.fontFamilyPanel.onFontChanged=xe.setFont,xe.textColorPanel=new se("Text color",ze.defaultColorSet,xe.textColor,Fe),xe.textColorPanel.onColorChanged=xe.setTextColor,xe}return gt(te,Re),te.prototype.ownsTarget=function(de){return!(!Re.prototype.ownsTarget.call(this,de)&&de!==this.visual&&de!==this.frame&&de!==this.captionBg&&de!==this.captionElement)},te.prototype.createVisual=function(){this.visual=z.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=z.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=z.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=z.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},te.prototype.setCaptionText=function(de){this.captionText=de,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(de,Ne){Re.prototype.pointerDown.call(this,de,Ne),this.isMoved=!1,this.pointerDownPoint=de,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(de),this._state="creating")},te.prototype.manipulate=function(de){Re.prototype.manipulate.call(this,de),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(de.x-this.pointerDownPoint.x)>5||Math.abs(de.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(de){Re.prototype.resize.call(this,de),this.setSize()},te.prototype.sizeCaption=function(){var de=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=de.width+2*this.PADDING,this.captionBoxHeight=de.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),z.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),z.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},te.prototype.showTextEditor=function(){var de=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Ne){Ne.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ne){Ne.key==="Enter"&&de.finishTextEditing(de.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ne){Ne.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){de.finishTextEditing(de.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){de.finishTextEditing(de.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},te.prototype.finishTextEditing=function(de){this.setCaptionText(de.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(de){this.captionElement&&z.setAttributes(this.captionElement,[["font-family",de]]),this.fontFamily=de,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(de){this.captionElement&&z.setAttributes(this.captionElement,[["fill",de]]),this.textColor=de,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){Re.prototype.setSize.call(this),z.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(de){Re.prototype.pointerUp.call(this,de),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(de,Ne){Re.prototype.dblClick.call(this,de,Ne),this.showTextEditor()},te.prototype.setStrokeColor=function(de){this.strokeColor=de,this.frame&&z.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(de),this.stateChanged()},te.prototype.setFillColor=function(de){this.fillColor=de,this.captionBg&&z.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(de),this.stateChanged()},te.prototype.setStrokeWidth=function(de){this.strokeWidth=de,this.frame&&z.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(de){this.strokeDasharray=de,this.frame&&z.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var de=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Re.prototype.getState.call(this));return de.typeName=this.typeName,de},te.prototype.restoreState=function(de){var Ne=de;this.fillColor=Ne.fillColor,this.strokeColor=Ne.strokeColor,this.strokeWidth=Ne.strokeWidth,this.strokeDasharray=Ne.strokeDasharray,this.textColor=Ne.textColor,this.fontFamily=Ne.fontFamily,this.captionText=Ne.captionText,this.fontSize=Ne.fontSize,this.createVisual(),Re.prototype.restoreState.call(this,de),this.setSize()},te.prototype.scale=function(de,Ne){Re.prototype.scale.call(this,de,Ne),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',te}(ye),Qe=function(){function Re(te,de){de===void 0&&(de=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=de}return Object.defineProperty(Re.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Re.prototype.preventDefault=function(){this._defaultPrevented=!0},Re}(),ct=function(Re){function te(de,Ne,ze){var xe=Re.call(this,de,!1)||this;return xe.dataUrl=Ne,xe.state=ze,xe}return gt(te,Re),te}(Qe),ot=function(Re){function te(de,Ne,ze){ze===void 0&&(ze=!1);var xe=Re.call(this,de,ze)||this;return xe.marker=Ne,xe}return gt(te,Re),te}(Qe),qe=function(){function Re(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return Re.prototype.addEventListener=function(te,de){this[te].push(de)},Re.prototype.removeEventListener=function(te,de){var Ne=this[te].indexOf(de);Ne>-1&&this[te].splice(Ne,1)},Re}(),_e=function(){function Re(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ce,this._isOpen=!1,this.undoRedoManager=new Xe,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new qe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Re.instanceCounter++,this.styles=new ee(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(Re.prototype,"ALL_MARKER_TYPES",{get:function(){return[Pe,Ae,Ge,Le,$e,rt,at,it,et,Ze,je,Ve,nt]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Pe,Ae,Ge,Le,rt,at,it]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Pe,Ae,Ge,Le,at]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var de=this;this._availableMarkerTypes.splice(0),te.forEach(function(Ne){if(typeof Ne=="string"){var ze=de.ALL_MARKER_TYPES.find(function(xe){return xe.typeName===Ne});ze!==void 0&&de._availableMarkerTypes.push(ze)}else de._availableMarkerTypes.push(Ne)})},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(te){this._zoomLevel=te,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Re.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),E.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Re.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&oe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=oe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(de){return de(new Qe(te))})},Re.prototype.render=function(){return a(this,void 0,void 0,function(){var te;return Te(this,function(de){switch(de.label){case 0:return this.setCurrentMarker(),(te=new ie).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return de.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,de.sent()]}})})},Re.prototype.close=function(te){var de=this;if(te===void 0&&(te=!1),this.isOpen){var Ne=!1;te||this.eventListeners.beforeclose.forEach(function(ze){var xe=new Qe(de,!0);ze(xe),xe.defaultPrevented&&(Ne=!0)}),Ne||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ze){return ze(new Qe(de))}),this.detachEvents(),this._isOpen=!1)}},Re.prototype.addMarkersToToolbar=function(){for(var te,de=[],Ne=0;Ne<arguments.length;Ne++)de[Ne]=arguments[Ne];(te=this._availableMarkerTypes).push.apply(te,de)},Re.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(de){te(de.dataUrl,de.state)})},Re.prototype.removeRenderEventListener=function(te){},Re.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},Re.prototype.removeCloseEventListener=function(te){},Re.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Re.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,de=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,Ne=de<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(de,Ne)},Re.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Re.prototype.resize=function(te,de){this._isResizing=!0;var Ne=te/this.imageWidth,ze=de/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(de),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Ne,ze),this._isResizing=!1},Re.prototype.scaleMarkers=function(te,de){var Ne,ze=this;this._currentMarker&&this._currentMarker instanceof Le?this._currentMarker.scale(te,de):(Ne=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(xe){xe!==ze._currentMarker&&xe.scale(te,de)}),Ne!==void 0&&this.setCurrentMarker(Ne)},Re.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},Re.prototype.setTopLeft=function(){var te=this.editingTarget.getBoundingClientRect(),de=this.editorCanvas.getBoundingClientRect();this.left=te.left-de.left,this.top=te.top-de.top},Re.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},Re.prototype.addDefs=function(){for(var te,de=[],Ne=0;Ne<arguments.length;Ne++)de[Ne]=arguments[Ne];this.defs=z.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,de)},Re.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Re.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},Re.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Re.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Re.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},Re.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Re.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},Re.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var te=document.createElement("a");te.href="https://markerjs.com/",te.target="_blank",te.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Re.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},Re.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},Re.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Re.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var te=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new ne(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new re(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Re.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Re.prototype.removeMarker=function(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.dispose()},Re.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},Re.prototype.toolbarButtonClicked=function(te,de){if(te==="marker"&&de!==void 0)this.createNewMarker(de);else if(te==="action")switch(de){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Re.prototype.deleteSelectedMarker=function(){var te=this;if(this._currentMarker!==void 0){var de=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ze){var xe=new ot(te,te._currentMarker,!0);ze(xe),xe.defaultPrevented&&(de=!0)}),!de){var Ne=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ze){return ze(new ot(te,Ne))})}}},Re.prototype.clear=function(){var te=this,de=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ve){var Oe=new ot(te,void 0,!0);ve(Oe),Oe.defaultPrevented&&(de=!0)}),!de)){this.setCurrentMarker();for(var Ne=function(ve){var Oe=ze.markers[ve];ze.setCurrentMarker(ze.markers[ve]),ze._currentMarker.dispose(),ze.markerImage.removeChild(ze._currentMarker.container),ze.markers.splice(ze.markers.indexOf(ze._currentMarker),1),ze.eventListeners.markerdelete.forEach(function(We){return We(new ot(te,Oe))})},ze=this,xe=this.markers.length-1;xe>=0;xe--)Ne(xe);this.addUndoStep()}},Object.defineProperty(Re.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Re.prototype.showNotesEditor=function(){var te;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",this.overlayContainer.appendChild(this.notesArea))},Re.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},Re.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Re.prototype.addUndoStep=function(){var te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var de=this.getState(),Ne=this.undoRedoManager.getLastUndoStep();if(!Ne||Ne.width===de.width&&Ne.height===de.height){var ze=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(de),ze<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(xe){return xe(new Qe(te))})}else this.undoRedoManager.replaceLastUndoStep(de),this.eventListeners.statechange.forEach(function(xe){return xe(new Qe(te))})}},Re.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Re.prototype.undoStep=function(){var te=this,de=this.undoRedoManager.undo();de!==void 0&&(this.restoreState(de),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(new Qe(te))}))},Re.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Re.prototype.redoStep=function(){var te=this,de=this.undoRedoManager.redo();de!==void 0&&(this.restoreState(de),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ne){return Ne(new Qe(te))}))},Re.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},Re.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},Re.prototype.startRenderAndClose=function(){return a(this,void 0,void 0,function(){var te,de,Ne=this;return Te(this,function(ze){switch(ze.label){case 0:return[4,this.render()];case 1:return te=ze.sent(),de=this.getState(),this.eventListeners.render.forEach(function(xe){return xe(new ct(Ne,te,de))}),this.close(!0),[2]}})})},Re.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var de={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ne){return de.markers.push(Ne.getState())}),de},Re.prototype.restoreState=function(te){var de=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(Ne){var ze=de._availableMarkerTypes.find(function(ve){return ve.typeName===Ne.typeName});if(ze!==void 0){var xe=de.addNewMarker(ze);xe.restoreState(Ne),de.markers.push(xe)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(Ne){return Ne(new Qe(de))})},Re.prototype.addNewMarker=function(te){var de=z.createGroup();return this.markerImage.appendChild(de),new te(de,this.overlayContainer,this.settings)},Re.prototype.createNewMarker=function(te){var de,Ne=this;(de=typeof te=="string"?this._availableMarkerTypes.find(function(ze){return ze.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(de),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(de.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ze){return ze(new ot(Ne,Ne._currentMarker))}))},Re.prototype.markerCreated=function(te){var de=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof Ae&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ae):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ne){return Ne(new ot(de,de._currentMarker))})},Re.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},Re.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},Re.prototype.markerStateChanged=function(te){var de=this;this.eventListeners.markerchange.forEach(function(Ne){return Ne(new ot(de,te))})},Re.prototype.setCurrentMarker=function(te){var de=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ne){return Ne(new ot(de,de._currentMarker))})),this._currentMarker=te,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Ne){return Ne(new ot(de,de._currentMarker))}))},Re.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var de=this.markers.find(function(Ne){return Ne.ownsTarget(te.target)});de!==void 0?(this.setCurrentMarker(de),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},Re.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var de=this.markers.find(function(Ne){return Ne.ownsTarget(te.target)});de!==void 0&&de!==this._currentMarker&&this.setCurrentMarker(de),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},Re.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},Re.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},Re.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Re.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},Re.prototype.clientToLocalCoordinates=function(te,de){var Ne=this.markerImage.getBoundingClientRect();return{x:(te-Ne.left)/this.zoomLevel,y:(de-Ne.top)/this.zoomLevel}},Re.prototype.onWindowResize=function(){this.positionUI()},Re.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},Re.prototype.addLicenseKey=function(te){E.addKey(te)},Re.prototype.addEventListener=function(te,de){this.eventListeners.addEventListener(te,de)},Re.prototype.removeEventListener=function(te,de){this.eventListeners.removeEventListener(te,de)},Re.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Re.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Re.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(de){return de(new Qe(te))}))},Re.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(de){return de(new Qe(te))}))},Re.instanceCounter=0,Re}()},6551:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{ZP:function(){return E}});var ge=Ie(42978),gt=Ie(59301),a=Ie(47273),Te=0,be=(0,a.Z)();function z(){var ie;return be?(ie=Te,Te+=1):ie="TEST_OR_SSR",ie}function E(ie){var oe=gt.useState(),ee=(0,ge.Z)(oe,2),le=ee[0],x=ee[1];return gt.useEffect(function(){x("rc_select_".concat(z()))},[]),ie||le}},37463:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Ac:function(){return xt},Xo:function(){return At},Wx:function(){return Ct},ZP:function(){return Tr},lk:function(){return he}});var ge=Ie(54476),gt=Ie(94480),a=Ie(20068),Te=Ie(33885),be=Ie(42978),z=Ie(75931),E=Ie(76190),ie=Ie(18929),oe=Ie(48736),ee=Ie(59301),le=Ie(92310),x=Ie.n(le),ne=Ie(34280),re=Ie(49658),ae=Ie(8654),se=function(Ft){var bt=Ft.className,kt=Ft.customizeIcon,wt=Ft.customizeIconProps,Rt=Ft.children,pt=Ft.onMouseDown,Lt=Ft.onClick,zt=typeof kt=="function"?kt(wt):kt;return ee.createElement("span",{className:bt,onMouseDown:function(Ht){Ht.preventDefault(),pt==null||pt(Ht)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Lt,"aria-hidden":!0},zt!==void 0?zt:ee.createElement("span",{className:x()(bt.split(/\s+/).map(function(Gt){return"".concat(Gt,"-icon")}))},Rt))},ce=se,pe=function(Ft,bt,kt,wt,Rt){var pt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Lt=arguments.length>6?arguments[6]:void 0,zt=arguments.length>7?arguments[7]:void 0,Gt=ee.useMemo(function(){if((0,E.Z)(wt)==="object")return wt.clearIcon;if(Rt)return Rt},[wt,Rt]),Ht=ee.useMemo(function(){return!!(!pt&&wt&&(kt.length||Lt)&&!(zt==="combobox"&&Lt===""))},[wt,pt,kt.length,Lt,zt]);return{allowClear:Ht,clearIcon:ee.createElement(ce,{className:"".concat(Ft,"-clear"),onMouseDown:bt,customizeIcon:Gt},"\xD7")}},me=ee.createContext(null);function he(){return ee.useContext(me)}function ye(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ft=ee.useState(!1),bt=(0,be.Z)(Ft,2),kt=bt[0],wt=bt[1],Rt=ee.useRef(null),pt=function(){window.clearTimeout(Rt.current)};ee.useEffect(function(){return pt},[]);var Lt=function(Gt,Ht){pt(),Rt.current=window.setTimeout(function(){wt(Gt),Ht&&Ht()},It)};return[kt,Lt,pt]}function De(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ft=ee.useRef(null),bt=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(bt.current)}},[]);function kt(wt){(wt||Ft.current===null)&&(Ft.current=wt),window.clearTimeout(bt.current),bt.current=window.setTimeout(function(){Ft.current=null},It)}return[function(){return Ft.current},kt]}function Me(It,Ft,bt,kt){var wt=ee.useRef(null);wt.current={open:Ft,triggerOpen:bt,customizedTrigger:kt},ee.useEffect(function(){function Rt(pt){var Lt;if(!((Lt=wt.current)!==null&&Lt!==void 0&&Lt.customizedTrigger)){var zt=pt.target;zt.shadowRoot&&pt.composed&&(zt=pt.composedPath()[0]||zt),wt.current.open&&It().filter(function(Gt){return Gt}).every(function(Gt){return!Gt.contains(zt)&&Gt!==zt})&&wt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Rt),function(){return window.removeEventListener("mousedown",Rt)}},[])}var Be=Ie(10228);function Pe(It){return It&&![Be.Z.ESC,Be.Z.SHIFT,Be.Z.BACKSPACE,Be.Z.TAB,Be.Z.WIN_KEY,Be.Z.ALT,Be.Z.META,Be.Z.WIN_KEY_RIGHT,Be.Z.CTRL,Be.Z.SEMICOLON,Be.Z.EQUALS,Be.Z.CAPS_LOCK,Be.Z.CONTEXT_MENU,Be.Z.F1,Be.Z.F2,Be.Z.F3,Be.Z.F4,Be.Z.F5,Be.Z.F6,Be.Z.F7,Be.Z.F8,Be.Z.F9,Be.Z.F10,Be.Z.F11,Be.Z.F12].includes(It)}var Ce=Ie(26112),Ee=Ie(83836);function je(It,Ft,bt){var kt=(0,Te.Z)((0,Te.Z)({},It),bt?Ft:{});return Object.keys(Ft).forEach(function(wt){var Rt=Ft[wt];typeof Rt=="function"&&(kt[wt]=function(){for(var pt,Lt=arguments.length,zt=new Array(Lt),Gt=0;Gt<Lt;Gt++)zt[Gt]=arguments[Gt];return Rt.apply(void 0,zt),(pt=It[wt])===null||pt===void 0?void 0:pt.call.apply(pt,[It].concat(zt))})}),kt}var ke=je,Le=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ae=function(Ft,bt){var kt=Ft.prefixCls,wt=Ft.id,Rt=Ft.inputElement,pt=Ft.autoFocus,Lt=Ft.autoComplete,zt=Ft.editable,Gt=Ft.activeDescendantId,Ht=Ft.value,Nt=Ft.open,Bt=Ft.attrs,Ut=(0,z.Z)(Ft,Le),cr=Rt||ee.createElement("input",null),lr=cr,dr=lr.ref,Br=lr.props;return(0,oe.Kp)(!("maxLength"in cr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),cr=ee.cloneElement(cr,(0,Te.Z)((0,Te.Z)((0,Te.Z)({type:"search"},ke(Ut,Br,!0)),{},{id:wt,ref:(0,ae.sQ)(bt,dr),autoComplete:Lt||"off",autoFocus:pt,className:x()("".concat(kt,"-selection-search-input"),Br==null?void 0:Br.className),role:"combobox","aria-expanded":Nt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(wt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(wt,"_list"),"aria-activedescendant":Nt?Gt:void 0},Bt),{},{value:zt?Ht:"",readOnly:!zt,unselectable:zt?null:"on",style:(0,Te.Z)((0,Te.Z)({},Br.style),{},{opacity:zt?null:0})})),cr},Se=ee.forwardRef(Ae),Ge=Se;function Ze(It){return Array.isArray(It)?It:It!==void 0?[It]:[]}var Je=typeof window!="undefined"&&window.document&&window.document.documentElement,at=Je;function Fe(It){return It!=null}function Ke(It){return!It&&It!==0}function it(It){return["string","number"].includes((0,E.Z)(It))}function rt(It){var Ft=void 0;return It&&(it(It.title)?Ft=It.title.toString():it(It.label)&&(Ft=It.label.toString())),Ft}function et(It,Ft){at?ee.useLayoutEffect(It,Ft):ee.useEffect(It,Ft)}function $e(It){var Ft;return(Ft=It.key)!==null&&Ft!==void 0?Ft:It.value}var Xe=function(Ft){Ft.preventDefault(),Ft.stopPropagation()},Ve=function(Ft){var bt=Ft.id,kt=Ft.prefixCls,wt=Ft.values,Rt=Ft.open,pt=Ft.searchValue,Lt=Ft.autoClearSearchValue,zt=Ft.inputRef,Gt=Ft.placeholder,Ht=Ft.disabled,Nt=Ft.mode,Bt=Ft.showSearch,Ut=Ft.autoFocus,cr=Ft.autoComplete,lr=Ft.activeDescendantId,dr=Ft.tabIndex,Br=Ft.removeIcon,Wr=Ft.maxTagCount,$r=Ft.maxTagTextLength,Nr=Ft.maxTagPlaceholder,Dr=Nr===void 0?function(Cr){return"+ ".concat(Cr.length," ...")}:Nr,Rr=Ft.tagRender,Ur=Ft.onToggleOpen,Qr=Ft.onRemove,Vr=Ft.onInputChange,Jr=Ft.onInputPaste,Pr=Ft.onInputKeyDown,tn=Ft.onInputMouseDown,Gr=Ft.onInputCompositionStart,fn=Ft.onInputCompositionEnd,pn=Ft.onInputBlur,ln=ee.useRef(null),un=(0,ee.useState)(0),yn=(0,be.Z)(un,2),sn=yn[0],dn=yn[1],en=(0,ee.useState)(!1),mn=(0,be.Z)(en,2),bn=mn[0],_n=mn[1],En="".concat(kt,"-selection"),Mn=Rt||Nt==="multiple"&&Lt===!1||Nt==="tags"?pt:"",On=Nt==="tags"||Nt==="multiple"&&Lt===!1||Bt&&(Rt||bn);et(function(){dn(ln.current.scrollWidth)},[Mn]);var jn=function(pr,zr,Kr,wr,mr){return ee.createElement("span",{title:rt(pr),className:x()("".concat(En,"-item"),(0,a.Z)({},"".concat(En,"-item-disabled"),Kr))},ee.createElement("span",{className:"".concat(En,"-item-content")},zr),wr&&ee.createElement(ce,{className:"".concat(En,"-item-remove"),onMouseDown:Xe,onClick:mr,customizeIcon:Br},"\xD7"))},on=function(pr,zr,Kr,wr,mr,kr){var Fr=function(Dn){Xe(Dn),Ur(!Rt)};return ee.createElement("span",{onMouseDown:Fr},Rr({label:zr,value:pr,disabled:Kr,closable:wr,onClose:mr,isMaxTag:!!kr}))},nn=function(pr){var zr=pr.disabled,Kr=pr.label,wr=pr.value,mr=!Ht&&!zr,kr=Kr;if(typeof $r=="number"&&(typeof Kr=="string"||typeof Kr=="number")){var Fr=String(kr);Fr.length>$r&&(kr="".concat(Fr.slice(0,$r),"..."))}var cn=function(Tn){Tn&&Tn.stopPropagation(),Qr(pr)};return typeof Rr=="function"?on(wr,kr,zr,mr,cn):jn(pr,kr,zr,mr,cn)},qr=function(pr){if(!wt.length)return null;var zr=typeof Dr=="function"?Dr(pr):Dr;return typeof Rr=="function"?on(void 0,zr,!1,!1,void 0,!0):jn({title:zr},zr,!1)},gr=ee.createElement("div",{className:"".concat(En,"-search"),style:{width:sn},onFocus:function(){_n(!0)},onBlur:function(){_n(!1)}},ee.createElement(Ge,{ref:zt,open:Rt,prefixCls:kt,id:bt,inputElement:null,disabled:Ht,autoFocus:Ut,autoComplete:cr,editable:On,activeDescendantId:lr,value:Mn,onKeyDown:Pr,onMouseDown:tn,onChange:Vr,onPaste:Jr,onCompositionStart:Gr,onCompositionEnd:fn,onBlur:pn,tabIndex:dr,attrs:(0,Ce.Z)(Ft,!0)}),ee.createElement("span",{ref:ln,className:"".concat(En,"-search-mirror"),"aria-hidden":!0},Mn,"\xA0")),Ar=ee.createElement(Ee.Z,{prefixCls:"".concat(En,"-overflow"),data:wt,renderItem:nn,renderRest:qr,suffix:gr,itemKey:$e,maxCount:Wr});return ee.createElement("span",{className:"".concat(En,"-wrap")},Ar,!wt.length&&!Mn&&ee.createElement("span",{className:"".concat(En,"-placeholder")},Gt))},nt=Ve,Qe=function(Ft){var bt=Ft.inputElement,kt=Ft.prefixCls,wt=Ft.id,Rt=Ft.inputRef,pt=Ft.disabled,Lt=Ft.autoFocus,zt=Ft.autoComplete,Gt=Ft.activeDescendantId,Ht=Ft.mode,Nt=Ft.open,Bt=Ft.values,Ut=Ft.placeholder,cr=Ft.tabIndex,lr=Ft.showSearch,dr=Ft.searchValue,Br=Ft.activeValue,Wr=Ft.maxLength,$r=Ft.onInputKeyDown,Nr=Ft.onInputMouseDown,Dr=Ft.onInputChange,Rr=Ft.onInputPaste,Ur=Ft.onInputCompositionStart,Qr=Ft.onInputCompositionEnd,Vr=Ft.onInputBlur,Jr=Ft.title,Pr=ee.useState(!1),tn=(0,be.Z)(Pr,2),Gr=tn[0],fn=tn[1],pn=Ht==="combobox",ln=pn||lr,un=Bt[0],yn=dr||"";pn&&Br&&!Gr&&(yn=Br),ee.useEffect(function(){pn&&fn(!1)},[pn,Br]);var sn=Ht!=="combobox"&&!Nt&&!lr?!1:!!yn,dn=Jr===void 0?rt(un):Jr,en=ee.useMemo(function(){return un?null:ee.createElement("span",{className:"".concat(kt,"-selection-placeholder"),style:sn?{visibility:"hidden"}:void 0},Ut)},[un,sn,Ut,kt]);return ee.createElement("span",{className:"".concat(kt,"-selection-wrap")},ee.createElement("span",{className:"".concat(kt,"-selection-search")},ee.createElement(Ge,{ref:Rt,prefixCls:kt,id:wt,open:Nt,inputElement:bt,disabled:pt,autoFocus:Lt,autoComplete:zt,editable:ln,activeDescendantId:Gt,value:yn,onKeyDown:$r,onMouseDown:Nr,onChange:function(bn){fn(!0),Dr(bn)},onPaste:Rr,onCompositionStart:Ur,onCompositionEnd:Qr,onBlur:Vr,tabIndex:cr,attrs:(0,Ce.Z)(Ft,!0),maxLength:pn?Wr:void 0})),!pn&&un?ee.createElement("span",{className:"".concat(kt,"-selection-item"),title:dn,style:sn?{visibility:"hidden"}:void 0},un.label):null,en)},ct=Qe,ot=function(Ft,bt){var kt=(0,ee.useRef)(null),wt=(0,ee.useRef)(!1),Rt=Ft.prefixCls,pt=Ft.open,Lt=Ft.mode,zt=Ft.showSearch,Gt=Ft.tokenWithEnter,Ht=Ft.disabled,Nt=Ft.prefix,Bt=Ft.autoClearSearchValue,Ut=Ft.onSearch,cr=Ft.onSearchSubmit,lr=Ft.onToggleOpen,dr=Ft.onInputKeyDown,Br=Ft.onInputBlur,Wr=Ft.domRef;ee.useImperativeHandle(bt,function(){return{focus:function(dn){kt.current.focus(dn)},blur:function(){kt.current.blur()}}});var $r=De(0),Nr=(0,be.Z)($r,2),Dr=Nr[0],Rr=Nr[1],Ur=function(dn){var en=dn.which,mn=kt.current instanceof HTMLTextAreaElement;!mn&&pt&&(en===Be.Z.UP||en===Be.Z.DOWN)&&dn.preventDefault(),dr&&dr(dn),en===Be.Z.ENTER&&Lt==="tags"&&!wt.current&&!pt&&(cr==null||cr(dn.target.value)),!(mn&&!pt&&~[Be.Z.UP,Be.Z.DOWN,Be.Z.LEFT,Be.Z.RIGHT].indexOf(en))&&Pe(en)&&lr(!0)},Qr=function(){Rr(!0)},Vr=(0,ee.useRef)(null),Jr=function(dn){Ut(dn,!0,wt.current)!==!1&&lr(!0)},Pr=function(){wt.current=!0},tn=function(dn){wt.current=!1,Lt!=="combobox"&&Jr(dn.target.value)},Gr=function(dn){var en=dn.target.value;if(Gt&&Vr.current&&/[\r\n]/.test(Vr.current)){var mn=Vr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");en=en.replace(mn,Vr.current)}Vr.current=null,Jr(en)},fn=function(dn){var en=dn.clipboardData,mn=en==null?void 0:en.getData("text");Vr.current=mn||""},pn=function(dn){var en=dn.target;if(en!==kt.current){var mn=document.body.style.msTouchAction!==void 0;mn?setTimeout(function(){kt.current.focus()}):kt.current.focus()}},ln=function(dn){var en=Dr();dn.target!==kt.current&&!en&&!(Lt==="combobox"&&Ht)&&dn.preventDefault(),(Lt!=="combobox"&&(!zt||!en)||!pt)&&(pt&&Bt!==!1&&Ut("",!0,!1),lr())},un={inputRef:kt,onInputKeyDown:Ur,onInputMouseDown:Qr,onInputChange:Gr,onInputPaste:fn,onInputCompositionStart:Pr,onInputCompositionEnd:tn,onInputBlur:Br},yn=Lt==="multiple"||Lt==="tags"?ee.createElement(nt,(0,ge.Z)({},Ft,un)):ee.createElement(ct,(0,ge.Z)({},Ft,un));return ee.createElement("div",{ref:Wr,className:"".concat(Rt,"-selector"),onClick:pn,onMouseDown:ln},Nt&&ee.createElement("div",{className:"".concat(Rt,"-prefix")},Nt),yn)},qe=ee.forwardRef(ot),_e=qe,Re=Ie(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],de=function(Ft){var bt=Ft===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:bt,adjustY:1},htmlRegion:"scroll"}}},Ne=function(Ft,bt){var kt=Ft.prefixCls,wt=Ft.disabled,Rt=Ft.visible,pt=Ft.children,Lt=Ft.popupElement,zt=Ft.animation,Gt=Ft.transitionName,Ht=Ft.dropdownStyle,Nt=Ft.dropdownClassName,Bt=Ft.direction,Ut=Bt===void 0?"ltr":Bt,cr=Ft.placement,lr=Ft.builtinPlacements,dr=Ft.dropdownMatchSelectWidth,Br=Ft.dropdownRender,Wr=Ft.dropdownAlign,$r=Ft.getPopupContainer,Nr=Ft.empty,Dr=Ft.getTriggerDOMNode,Rr=Ft.onPopupVisibleChange,Ur=Ft.onPopupMouseEnter,Qr=(0,z.Z)(Ft,te),Vr="".concat(kt,"-dropdown"),Jr=Lt;Br&&(Jr=Br(Lt));var Pr=ee.useMemo(function(){return lr||de(dr)},[lr,dr]),tn=zt?"".concat(Vr,"-").concat(zt):Gt,Gr=typeof dr=="number",fn=ee.useMemo(function(){return Gr?null:dr===!1?"minWidth":"width"},[dr,Gr]),pn=Ht;Gr&&(pn=(0,Te.Z)((0,Te.Z)({},pn),{},{width:dr}));var ln=ee.useRef(null);return ee.useImperativeHandle(bt,function(){return{getPopupElement:function(){var yn;return(yn=ln.current)===null||yn===void 0?void 0:yn.popupElement}}}),ee.createElement(Re.Z,(0,ge.Z)({},Qr,{showAction:Rr?["click"]:[],hideAction:Rr?["click"]:[],popupPlacement:cr||(Ut==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Pr,prefixCls:Vr,popupTransitionName:tn,popup:ee.createElement("div",{onMouseEnter:Ur},Jr),ref:ln,stretch:fn,popupAlign:Wr,popupVisible:Rt,getPopupContainer:$r,popupClassName:x()(Nt,(0,a.Z)({},"".concat(Vr,"-empty"),Nr)),popupStyle:pn,getTriggerDOMNode:Dr,onPopupVisibleChange:Rr}),pt)},ze=ee.forwardRef(Ne),xe=ze,ve=Ie(66712);function Oe(It,Ft){var bt=It.key,kt;return"value"in It&&(kt=It.value),bt!=null?bt:kt!==void 0?kt:"rc-index-key-".concat(Ft)}function We(It){return typeof It!="undefined"&&!Number.isNaN(It)}function Ue(It,Ft){var bt=It||{},kt=bt.label,wt=bt.value,Rt=bt.options,pt=bt.groupLabel,Lt=kt||(Ft?"children":"label");return{label:Lt,value:wt||"value",options:Rt||"options",groupLabel:pt||Lt}}function Ye(It){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},bt=Ft.fieldNames,kt=Ft.childrenAsData,wt=[],Rt=Ue(bt,!1),pt=Rt.label,Lt=Rt.value,zt=Rt.options,Gt=Rt.groupLabel;function Ht(Nt,Bt){Array.isArray(Nt)&&Nt.forEach(function(Ut){if(Bt||!(zt in Ut)){var cr=Ut[Lt];wt.push({key:Oe(Ut,wt.length),groupOption:Bt,data:Ut,label:Ut[pt],value:cr})}else{var lr=Ut[Gt];lr===void 0&&kt&&(lr=Ut.label),wt.push({key:Oe(Ut,wt.length),group:!0,data:Ut,label:lr}),Ht(Ut[zt],!0)}})}return Ht(It,!1),wt}function st(It){var Ft=(0,Te.Z)({},It);return"props"in Ft||Object.defineProperty(Ft,"props",{get:function(){return(0,oe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ft}}),Ft}var lt=function(Ft,bt,kt){if(!bt||!bt.length)return null;var wt=!1,Rt=function Lt(zt,Gt){var Ht=(0,ve.Z)(Gt),Nt=Ht[0],Bt=Ht.slice(1);if(!Nt)return[zt];var Ut=zt.split(Nt);return wt=wt||Ut.length>1,Ut.reduce(function(cr,lr){return[].concat((0,gt.Z)(cr),(0,gt.Z)(Lt(lr,Bt)))},[]).filter(Boolean)},pt=Rt(Ft,bt);return wt?typeof kt!="undefined"?pt.slice(0,kt):pt:null},ft=ee.createContext(null),Tt=ft;function St(It){var Ft=It.visible,bt=It.values;if(!Ft)return null;var kt=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(bt.slice(0,kt).map(function(wt){var Rt=wt.label,pt=wt.value;return["number","string"].includes((0,E.Z)(Rt))?Rt:pt}).join(", ")),bt.length>kt?", ...":null)}var Ot=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],yt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Mt=function(Ft){return Ft==="tags"||Ft==="multiple"},Et=ee.forwardRef(function(It,Ft){var bt,kt=It.id,wt=It.prefixCls,Rt=It.className,pt=It.showSearch,Lt=It.tagRender,zt=It.direction,Gt=It.omitDomProps,Ht=It.displayValues,Nt=It.onDisplayValuesChange,Bt=It.emptyOptions,Ut=It.notFoundContent,cr=Ut===void 0?"Not Found":Ut,lr=It.onClear,dr=It.mode,Br=It.disabled,Wr=It.loading,$r=It.getInputElement,Nr=It.getRawInputElement,Dr=It.open,Rr=It.defaultOpen,Ur=It.onDropdownVisibleChange,Qr=It.activeValue,Vr=It.onActiveValueChange,Jr=It.activeDescendantId,Pr=It.searchValue,tn=It.autoClearSearchValue,Gr=It.onSearch,fn=It.onSearchSplit,pn=It.tokenSeparators,ln=It.allowClear,un=It.prefix,yn=It.suffixIcon,sn=It.clearIcon,dn=It.OptionList,en=It.animation,mn=It.transitionName,bn=It.dropdownStyle,_n=It.dropdownClassName,En=It.dropdownMatchSelectWidth,Mn=It.dropdownRender,On=It.dropdownAlign,jn=It.placement,on=It.builtinPlacements,nn=It.getPopupContainer,qr=It.showAction,gr=qr===void 0?[]:qr,Ar=It.onFocus,Cr=It.onBlur,pr=It.onKeyUp,zr=It.onKeyDown,Kr=It.onMouseDown,wr=(0,z.Z)(It,Ot),mr=Mt(dr),kr=(pt!==void 0?pt:mr)||dr==="combobox",Fr=(0,Te.Z)({},wr);yt.forEach(function(Hn){delete Fr[Hn]}),Gt==null||Gt.forEach(function(Hn){delete Fr[Hn]});var cn=ee.useState(!1),Dn=(0,be.Z)(cn,2),Tn=Dn[0],Bn=Dn[1];ee.useEffect(function(){Bn((0,re.Z)())},[]);var Rn=ee.useRef(null),Ln=ee.useRef(null),Zn=ee.useRef(null),Wn=ee.useRef(null),Vn=ee.useRef(null),ti=ee.useRef(!1),Ei=ye(),Ni=(0,be.Z)(Ei,3),xi=Ni[0],li=Ni[1],Bi=Ni[2];ee.useImperativeHandle(Ft,function(){var Hn,In;return{focus:(Hn=Wn.current)===null||Hn===void 0?void 0:Hn.focus,blur:(In=Wn.current)===null||In===void 0?void 0:In.blur,scrollTo:function(wi){var ii;return(ii=Vn.current)===null||ii===void 0?void 0:ii.scrollTo(wi)},nativeElement:Rn.current||Ln.current}});var zn=ee.useMemo(function(){var Hn;if(dr!=="combobox")return Pr;var In=(Hn=Ht[0])===null||Hn===void 0?void 0:Hn.value;return typeof In=="string"||typeof In=="number"?String(In):""},[Pr,dr,Ht]),Ki=dr==="combobox"&&typeof $r=="function"&&$r()||null,qn=typeof Nr=="function"&&Nr(),xn=(0,ae.x1)(Ln,qn==null||(bt=qn.props)===null||bt===void 0?void 0:bt.ref),Fn=ee.useState(!1),$n=(0,be.Z)(Fn,2),Sn=$n[0],Nn=$n[1];(0,ne.Z)(function(){Nn(!0)},[]);var Pn=(0,ie.Z)(!1,{defaultValue:Rr,value:Dr}),ui=(0,be.Z)(Pn,2),ji=ui[0],di=ui[1],ri=Sn?ji:!1,xo=!cr&&Bt;(Br||xo&&ri&&dr==="combobox")&&(ri=!1);var lo=xo?!1:ri,vn=ee.useCallback(function(Hn){var In=Hn!==void 0?Hn:!ri;Br||(di(In),ri!==In&&(Ur==null||Ur(In)))},[Br,ri,di,Ur]),An=ee.useMemo(function(){return(pn||[]).some(function(Hn){return[`
|
|
|
`,`\r
|
|
|
`].includes(Hn)})},[pn]),wn=ee.useContext(Tt)||{},Cn=wn.maxCount,Un=wn.rawValues,Xn=function(In,yi,wi){if(!(mr&&We(Cn)&&(Un==null?void 0:Un.size)>=Cn)){var ii=!0,ci=In;Vr==null||Vr(null);var Yi=lt(In,pn,We(Cn)?Cn-Un.size:void 0),Gi=wi?null:Yi;return dr!=="combobox"&&Gi&&(ci="",fn==null||fn(Gi),vn(!1),ii=!1),Gr&&zn!==ci&&Gr(ci,{source:yi?"typing":"effect"}),ii}},Vi=function(In){!In||!In.trim()||Gr(In,{source:"submit"})};ee.useEffect(function(){!ri&&!mr&&dr!=="combobox"&&Xn("",!1,!1)},[ri]),ee.useEffect(function(){ji&&Br&&di(!1),Br&&!ti.current&&li(!1)},[Br]);var Oi=De(),gi=(0,be.Z)(Oi,2),ni=gi[0],$i=gi[1],eo=ee.useRef(!1),Li=function(In){var yi=ni(),wi=In.key,ii=wi==="Enter";if(ii&&(dr!=="combobox"&&In.preventDefault(),ri||vn(!0)),$i(!!zn),wi==="Backspace"&&!yi&&mr&&!zn&&Ht.length){for(var ci=(0,gt.Z)(Ht),Yi=null,Gi=ci.length-1;Gi>=0;Gi-=1){var oo=ci[Gi];if(!oo.disabled){ci.splice(Gi,1),Yi=oo;break}}Yi&&Nt(ci,{type:"remove",values:[Yi]})}for(var Fi=arguments.length,_i=new Array(Fi>1?Fi-1:0),Ji=1;Ji<Fi;Ji++)_i[Ji-1]=arguments[Ji];if(ri&&(!ii||!eo.current)){var co;ii&&(eo.current=!0),(co=Vn.current)===null||co===void 0||co.onKeyDown.apply(co,[In].concat(_i))}zr==null||zr.apply(void 0,[In].concat(_i))},to=function(In){for(var yi=arguments.length,wi=new Array(yi>1?yi-1:0),ii=1;ii<yi;ii++)wi[ii-1]=arguments[ii];if(ri){var ci;(ci=Vn.current)===null||ci===void 0||ci.onKeyUp.apply(ci,[In].concat(wi))}In.key==="Enter"&&(eo.current=!1),pr==null||pr.apply(void 0,[In].concat(wi))},io=function(In){var yi=Ht.filter(function(wi){return wi!==In});Nt(yi,{type:"remove",values:[In]})},Xi=function(){eo.current=!1},Do=ee.useRef(!1),$a=function(){li(!0),Br||(Ar&&!Do.current&&Ar.apply(void 0,arguments),gr.includes("focus")&&vn(!0)),Do.current=!0},ya=function(){ti.current=!0,li(!1,function(){Do.current=!1,ti.current=!1,vn(!1)}),!Br&&(zn&&(dr==="tags"?Gr(zn,{source:"submit"}):dr==="multiple"&&Gr("",{source:"blur"})),Cr&&Cr.apply(void 0,arguments))},ro=[];ee.useEffect(function(){return function(){ro.forEach(function(Hn){return clearTimeout(Hn)}),ro.splice(0,ro.length)}},[]);var uo=function(In){var yi,wi=In.target,ii=(yi=Zn.current)===null||yi===void 0?void 0:yi.getPopupElement();if(ii&&ii.contains(wi)){var ci=setTimeout(function(){var Fi=ro.indexOf(ci);if(Fi!==-1&&ro.splice(Fi,1),Bi(),!Tn&&!ii.contains(document.activeElement)){var _i;(_i=Wn.current)===null||_i===void 0||_i.focus()}});ro.push(ci)}for(var Yi=arguments.length,Gi=new Array(Yi>1?Yi-1:0),oo=1;oo<Yi;oo++)Gi[oo-1]=arguments[oo];Kr==null||Kr.apply(void 0,[In].concat(Gi))},Zi=ee.useState({}),ba=(0,be.Z)(Zi,2),xa=ba[1];function Za(){xa({})}var wa;qn&&(wa=function(In){vn(In)}),Me(function(){var Hn;return[Rn.current,(Hn=Zn.current)===null||Hn===void 0?void 0:Hn.getPopupElement()]},lo,vn,!!qn);var Ga=ee.useMemo(function(){return(0,Te.Z)((0,Te.Z)({},It),{},{notFoundContent:cr,open:ri,triggerOpen:lo,id:kt,showSearch:kr,multiple:mr,toggleOpen:vn})},[It,cr,lo,ri,kt,kr,mr,vn]),Ko=!!yn||Wr,Vo;Ko&&(Vo=ee.createElement(ce,{className:x()("".concat(wt,"-arrow"),(0,a.Z)({},"".concat(wt,"-arrow-loading"),Wr)),customizeIcon:yn,customizeIconProps:{loading:Wr,searchValue:zn,open:ri,focused:xi,showSearch:kr}}));var wo=function(){var In;lr==null||lr(),(In=Wn.current)===null||In===void 0||In.focus(),Nt([],{type:"clear",values:Ht}),Xn("",!1,!1)},Xo=pe(wt,wo,Ht,ln,sn,Br,zn,dr),Sa=Xo.allowClear,Yo=Xo.clearIcon,Po=ee.createElement(dn,{ref:Vn}),Ca=x()(wt,Rt,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(wt,"-focused"),xi),"".concat(wt,"-multiple"),mr),"".concat(wt,"-single"),!mr),"".concat(wt,"-allow-clear"),ln),"".concat(wt,"-show-arrow"),Ko),"".concat(wt,"-disabled"),Br),"".concat(wt,"-loading"),Wr),"".concat(wt,"-open"),ri),"".concat(wt,"-customize-input"),Ki),"".concat(wt,"-show-search"),kr)),ko=ee.createElement(xe,{ref:Zn,disabled:Br,prefixCls:wt,visible:lo,popupElement:Po,animation:en,transitionName:mn,dropdownStyle:bn,dropdownClassName:_n,direction:zt,dropdownMatchSelectWidth:En,dropdownRender:Mn,dropdownAlign:On,placement:jn,builtinPlacements:on,getPopupContainer:nn,empty:Bt,getTriggerDOMNode:function(In){return Ln.current||In},onPopupVisibleChange:wa,onPopupMouseEnter:Za},qn?ee.cloneElement(qn,{ref:xn}):ee.createElement(_e,(0,ge.Z)({},It,{domRef:Ln,prefixCls:wt,inputElement:Ki,ref:Wn,id:kt,prefix:un,showSearch:kr,autoClearSearchValue:tn,mode:dr,activeDescendantId:Jr,tagRender:Lt,values:Ht,open:ri,onToggleOpen:vn,activeValue:Qr,searchValue:zn,onSearch:Xn,onSearchSubmit:Vi,onRemove:io,tokenWithEnter:An,onInputBlur:Xi}))),Ii;return qn?Ii=ko:Ii=ee.createElement("div",(0,ge.Z)({className:Ca},Fr,{ref:Rn,onMouseDown:uo,onKeyDown:Li,onKeyUp:to,onFocus:$a,onBlur:ya}),ee.createElement(St,{visible:xi&&!ri,values:Ht}),ko,Vo,Sa&&Yo),ee.createElement(me.Provider,{value:Ga},Ii)}),xt=Et,jt=function(){return null};jt.isSelectOptGroup=!0;var At=jt,ht=function(){return null};ht.isSelectOption=!0;var Ct=ht,$t=Ie(80547),Xt=Ie(2738),vt=Ie(48911);function Pt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var _t=["disabled","title","children","style","className"];function Kt(It){return typeof It=="string"||typeof It=="number"}var er=function(Ft,bt){var kt=he(),wt=kt.prefixCls,Rt=kt.id,pt=kt.open,Lt=kt.multiple,zt=kt.mode,Gt=kt.searchValue,Ht=kt.toggleOpen,Nt=kt.notFoundContent,Bt=kt.onPopupScroll,Ut=ee.useContext(Tt),cr=Ut.maxCount,lr=Ut.flattenOptions,dr=Ut.onActiveValue,Br=Ut.defaultActiveFirstOption,Wr=Ut.onSelect,$r=Ut.menuItemSelectedIcon,Nr=Ut.rawValues,Dr=Ut.fieldNames,Rr=Ut.virtual,Ur=Ut.direction,Qr=Ut.listHeight,Vr=Ut.listItemHeight,Jr=Ut.optionRender,Pr="".concat(wt,"-item"),tn=(0,$t.Z)(function(){return lr},[pt,lr],function(qr,gr){return gr[0]&&qr[1]!==gr[1]}),Gr=ee.useRef(null),fn=ee.useMemo(function(){return Lt&&We(cr)&&(Nr==null?void 0:Nr.size)>=cr},[Lt,cr,Nr==null?void 0:Nr.size]),pn=function(gr){gr.preventDefault()},ln=function(gr){var Ar;(Ar=Gr.current)===null||Ar===void 0||Ar.scrollTo(typeof gr=="number"?{index:gr}:gr)},un=ee.useCallback(function(qr){return zt==="combobox"?!1:Nr.has(qr)},[zt,(0,gt.Z)(Nr).toString(),Nr.size]),yn=function(gr){for(var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Cr=tn.length,pr=0;pr<Cr;pr+=1){var zr=(gr+pr*Ar+Cr)%Cr,Kr=tn[zr]||{},wr=Kr.group,mr=Kr.data;if(!wr&&!(mr!=null&&mr.disabled)&&(un(mr.value)||!fn))return zr}return-1},sn=ee.useState(function(){return yn(0)}),dn=(0,be.Z)(sn,2),en=dn[0],mn=dn[1],bn=function(gr){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;mn(gr);var Cr={source:Ar?"keyboard":"mouse"},pr=tn[gr];if(!pr){dr(null,-1,Cr);return}dr(pr.value,gr,Cr)};(0,ee.useEffect)(function(){bn(Br!==!1?yn(0):-1)},[tn.length,Gt]);var _n=ee.useCallback(function(qr){return zt==="combobox"?String(qr).toLowerCase()===Gt.toLowerCase():Nr.has(qr)},[zt,Gt,(0,gt.Z)(Nr).toString(),Nr.size]);(0,ee.useEffect)(function(){var qr=setTimeout(function(){if(!Lt&&pt&&Nr.size===1){var Ar=Array.from(Nr)[0],Cr=tn.findIndex(function(pr){var zr=pr.data;return Gt?String(zr.value).startsWith(Gt):zr.value===Ar});Cr!==-1&&(bn(Cr),ln(Cr))}});if(pt){var gr;(gr=Gr.current)===null||gr===void 0||gr.scrollTo(void 0)}return function(){return clearTimeout(qr)}},[pt,Gt]);var En=function(gr){gr!==void 0&&Wr(gr,{selected:!Nr.has(gr)}),Lt||Ht(!1)};if(ee.useImperativeHandle(bt,function(){return{onKeyDown:function(gr){var Ar=gr.which,Cr=gr.ctrlKey;switch(Ar){case Be.Z.N:case Be.Z.P:case Be.Z.UP:case Be.Z.DOWN:{var pr=0;if(Ar===Be.Z.UP?pr=-1:Ar===Be.Z.DOWN?pr=1:Pt()&&Cr&&(Ar===Be.Z.N?pr=1:Ar===Be.Z.P&&(pr=-1)),pr!==0){var zr=yn(en+pr,pr);ln(zr),bn(zr,!0)}break}case Be.Z.TAB:case Be.Z.ENTER:{var Kr,wr=tn[en];wr&&!(wr!=null&&(Kr=wr.data)!==null&&Kr!==void 0&&Kr.disabled)&&!fn?En(wr.value):En(void 0),pt&&gr.preventDefault();break}case Be.Z.ESC:Ht(!1),pt&&gr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(gr){ln(gr)}}}),tn.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(Rt,"_list"),className:"".concat(Pr,"-empty"),onMouseDown:pn},Nt);var Mn=Object.keys(Dr).map(function(qr){return Dr[qr]}),On=function(gr){return gr.label};function jn(qr,gr){var Ar=qr.group;return{role:Ar?"presentation":"option",id:"".concat(Rt,"_list_").concat(gr)}}var on=function(gr){var Ar=tn[gr];if(!Ar)return null;var Cr=Ar.data||{},pr=Cr.value,zr=Ar.group,Kr=(0,Ce.Z)(Cr,!0),wr=On(Ar);return Ar?ee.createElement("div",(0,ge.Z)({"aria-label":typeof wr=="string"&&!zr?wr:null},Kr,{key:gr},jn(Ar,gr),{"aria-selected":_n(pr)}),pr):null},nn={role:"listbox",id:"".concat(Rt,"_list")};return ee.createElement(ee.Fragment,null,Rr&&ee.createElement("div",(0,ge.Z)({},nn,{style:{height:0,width:0,overflow:"hidden"}}),on(en-1),on(en),on(en+1)),ee.createElement(vt.Z,{itemKey:"key",ref:Gr,data:tn,height:Qr,itemHeight:Vr,fullHeight:!1,onMouseDown:pn,onScroll:Bt,virtual:Rr,direction:Ur,innerProps:Rr?null:nn},function(qr,gr){var Ar=qr.group,Cr=qr.groupOption,pr=qr.data,zr=qr.label,Kr=qr.value,wr=pr.key;if(Ar){var mr,kr=(mr=pr.title)!==null&&mr!==void 0?mr:Kt(zr)?zr.toString():void 0;return ee.createElement("div",{className:x()(Pr,"".concat(Pr,"-group"),pr.className),title:kr},zr!==void 0?zr:wr)}var Fr=pr.disabled,cn=pr.title,Dn=pr.children,Tn=pr.style,Bn=pr.className,Rn=(0,z.Z)(pr,_t),Ln=(0,Xt.Z)(Rn,Mn),Zn=un(Kr),Wn=Fr||!Zn&&fn,Vn="".concat(Pr,"-option"),ti=x()(Pr,Vn,Bn,(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},"".concat(Vn,"-grouped"),Cr),"".concat(Vn,"-active"),en===gr&&!Wn),"".concat(Vn,"-disabled"),Wn),"".concat(Vn,"-selected"),Zn)),Ei=On(qr),Ni=!$r||typeof $r=="function"||Zn,xi=typeof Ei=="number"?Ei:Ei||Kr,li=Kt(xi)?xi.toString():void 0;return cn!==void 0&&(li=cn),ee.createElement("div",(0,ge.Z)({},(0,Ce.Z)(Ln),Rr?{}:jn(qr,gr),{"aria-selected":_n(Kr),className:ti,title:li,onMouseMove:function(){en===gr||Wn||bn(gr)},onClick:function(){Wn||En(Kr)},style:Tn}),ee.createElement("div",{className:"".concat(Vn,"-content")},typeof Jr=="function"?Jr(qr,{index:gr}):xi),ee.isValidElement($r)||Zn,Ni&&ee.createElement(ce,{className:"".concat(Pr,"-option-state"),customizeIcon:$r,customizeIconProps:{value:Kr,disabled:Wn,isSelected:Zn}},Zn?"\u2713":null))}))},sr=ee.forwardRef(er),yr=sr,xr=function(It,Ft){var bt=ee.useRef({values:new Map,options:new Map}),kt=ee.useMemo(function(){var Rt=bt.current,pt=Rt.values,Lt=Rt.options,zt=It.map(function(Nt){if(Nt.label===void 0){var Bt;return(0,Te.Z)((0,Te.Z)({},Nt),{},{label:(Bt=pt.get(Nt.value))===null||Bt===void 0?void 0:Bt.label})}return Nt}),Gt=new Map,Ht=new Map;return zt.forEach(function(Nt){Gt.set(Nt.value,Nt),Ht.set(Nt.value,Ft.get(Nt.value)||Lt.get(Nt.value))}),bt.current.values=Gt,bt.current.options=Ht,zt},[It,Ft]),wt=ee.useCallback(function(Rt){return Ft.get(Rt)||bt.current.options.get(Rt)},[Ft]);return[kt,wt]};function ur(It,Ft){return Ze(It).join("").toUpperCase().includes(Ft)}var br=function(It,Ft,bt,kt,wt){return ee.useMemo(function(){if(!bt||kt===!1)return It;var Rt=Ft.options,pt=Ft.label,Lt=Ft.value,zt=[],Gt=typeof kt=="function",Ht=bt.toUpperCase(),Nt=Gt?kt:function(Ut,cr){return wt?ur(cr[wt],Ht):cr[Rt]?ur(cr[pt!=="children"?pt:"label"],Ht):ur(cr[Lt],Ht)},Bt=Gt?function(Ut){return st(Ut)}:function(Ut){return Ut};return It.forEach(function(Ut){if(Ut[Rt]){var cr=Nt(bt,Bt(Ut));if(cr)zt.push(Ut);else{var lr=Ut[Rt].filter(function(dr){return Nt(bt,Bt(dr))});lr.length&&zt.push((0,Te.Z)((0,Te.Z)({},Ut),{},(0,a.Z)({},Rt,lr)))}return}Nt(bt,Bt(Ut))&&zt.push(Ut)}),zt},[It,kt,wt,bt,Ft])},or=Ie(6551),fr=Ie(11592),Jt=["children","value"],Qt=["children"];function Vt(It){var Ft=It,bt=Ft.key,kt=Ft.props,wt=kt.children,Rt=kt.value,pt=(0,z.Z)(kt,Jt);return(0,Te.Z)({key:bt,value:Rt!==void 0?Rt:bt,children:wt},pt)}function rr(It){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,fr.Z)(It).map(function(bt,kt){if(!ee.isValidElement(bt)||!bt.type)return null;var wt=bt,Rt=wt.type.isSelectOptGroup,pt=wt.key,Lt=wt.props,zt=Lt.children,Gt=(0,z.Z)(Lt,Qt);return Ft||!Rt?Vt(bt):(0,Te.Z)((0,Te.Z)({key:"__RC_SELECT_GRP__".concat(pt===null?kt:pt,"__"),label:pt},Gt),{},{options:rr(zt)})}).filter(function(bt){return bt})}var ar=function(Ft,bt,kt,wt,Rt){return ee.useMemo(function(){var pt=Ft,Lt=!Ft;Lt&&(pt=rr(bt));var zt=new Map,Gt=new Map,Ht=function(Ut,cr,lr){lr&&typeof lr=="string"&&Ut.set(cr[lr],cr)},Nt=function Bt(Ut){for(var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lr=0;lr<Ut.length;lr+=1){var dr=Ut[lr];!dr[kt.options]||cr?(zt.set(dr[kt.value],dr),Ht(Gt,dr,kt.label),Ht(Gt,dr,wt),Ht(Gt,dr,Rt)):Bt(dr[kt.options],!0)}};return Nt(pt),{options:pt,valueOptions:zt,labelOptions:Gt}},[Ft,bt,kt,wt,Rt])},vr=ar;function hr(It){var Ft=ee.useRef();Ft.current=It;var bt=ee.useCallback(function(){return Ft.current.apply(Ft,arguments)},[]);return bt}function Ir(It){var Ft=It.mode,bt=It.options,kt=It.children,wt=It.backfill,Rt=It.allowClear,pt=It.placeholder,Lt=It.getInputElement,zt=It.showSearch,Gt=It.onSearch,Ht=It.defaultOpen,Nt=It.autoFocus,Bt=It.labelInValue,Ut=It.value,cr=It.inputValue,lr=It.optionLabelProp,dr=isMultiple(Ft),Br=zt!==void 0?zt:dr||Ft==="combobox",Wr=bt||convertChildrenToData(kt);if(warning(Ft!=="tags"||Wr.every(function(Rr){return!Rr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ft==="tags"||Ft==="combobox"){var $r=Wr.some(function(Rr){return Rr.options?Rr.options.some(function(Ur){return typeof("value"in Ur?Ur.value:Ur.key)=="number"}):typeof("value"in Rr?Rr.value:Rr.key)=="number"});warning(!$r,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ft!=="combobox"||!lr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ft==="combobox"||!wt,"`backfill` only works with `combobox` mode."),warning(Ft==="combobox"||!Lt,"`getInputElement` only work with `combobox` mode."),noteOnce(Ft!=="combobox"||!Lt||!Rt||!pt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Gt&&!Br&&Ft!=="combobox"&&Ft!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ht||Nt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ut!=null){var Nr=toArray(Ut);warning(!Bt||Nr.every(function(Rr){return _typeof(Rr)==="object"&&("key"in Rr||"value"in Rr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!dr||Array.isArray(Ut),"`value` should be array when `mode` is `multiple` or `tags`")}if(kt){var Dr=null;toNodeArray(kt).some(function(Rr){if(!React.isValidElement(Rr)||!Rr.type)return!1;var Ur=Rr,Qr=Ur.type;if(Qr.isSelectOption)return!1;if(Qr.isSelectOptGroup){var Vr=toNodeArray(Rr.props.children).every(function(Jr){return!React.isValidElement(Jr)||!Rr.type||Jr.type.isSelectOption?!0:(Dr=Jr.type,!1)});return!Vr}return Dr=Qr,!0}),Dr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Dr.displayName||Dr.name||Dr,"`.")),warning(cr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Or(It,Ft){if(It){var bt=function kt(wt){for(var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pt=0;pt<wt.length;pt++){var Lt=wt[pt];if(Lt[Ft==null?void 0:Ft.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Rt&&Array.isArray(Lt[Ft==null?void 0:Ft.options])&&kt(Lt[Ft==null?void 0:Ft.options],!0))break}};bt(It)}}var Lr=null,Er=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Zr=["inputValue"];function _r(It){return!It||(0,E.Z)(It)!=="object"}var qt=ee.forwardRef(function(It,Ft){var bt=It.id,kt=It.mode,wt=It.prefixCls,Rt=wt===void 0?"rc-select":wt,pt=It.backfill,Lt=It.fieldNames,zt=It.inputValue,Gt=It.searchValue,Ht=It.onSearch,Nt=It.autoClearSearchValue,Bt=Nt===void 0?!0:Nt,Ut=It.onSelect,cr=It.onDeselect,lr=It.dropdownMatchSelectWidth,dr=lr===void 0?!0:lr,Br=It.filterOption,Wr=It.filterSort,$r=It.optionFilterProp,Nr=It.optionLabelProp,Dr=It.options,Rr=It.optionRender,Ur=It.children,Qr=It.defaultActiveFirstOption,Vr=It.menuItemSelectedIcon,Jr=It.virtual,Pr=It.direction,tn=It.listHeight,Gr=tn===void 0?200:tn,fn=It.listItemHeight,pn=fn===void 0?20:fn,ln=It.labelRender,un=It.value,yn=It.defaultValue,sn=It.labelInValue,dn=It.onChange,en=It.maxCount,mn=(0,z.Z)(It,Er),bn=(0,or.ZP)(bt),_n=Mt(kt),En=!!(!Dr&&Ur),Mn=ee.useMemo(function(){return Br===void 0&&kt==="combobox"?!1:Br},[Br,kt]),On=ee.useMemo(function(){return Ue(Lt,En)},[JSON.stringify(Lt),En]),jn=(0,ie.Z)("",{value:Gt!==void 0?Gt:zt,postState:function(An){return An||""}}),on=(0,be.Z)(jn,2),nn=on[0],qr=on[1],gr=vr(Dr,Ur,On,$r,Nr),Ar=gr.valueOptions,Cr=gr.labelOptions,pr=gr.options,zr=ee.useCallback(function(vn){var An=Ze(vn);return An.map(function(wn){var Cn,Un,Xn,Vi,Oi;if(_r(wn))Cn=wn;else{var gi;Xn=wn.key,Un=wn.label,Cn=(gi=wn.value)!==null&&gi!==void 0?gi:Xn}var ni=Ar.get(Cn);if(ni){var $i;if(Un===void 0&&(Un=ni==null?void 0:ni[Nr||On.label]),Xn===void 0&&(Xn=($i=ni==null?void 0:ni.key)!==null&&$i!==void 0?$i:Cn),Vi=ni==null?void 0:ni.disabled,Oi=ni==null?void 0:ni.title,0)var eo}return{label:Un,value:Cn,key:Xn,disabled:Vi,title:Oi}})},[On,Nr,Ar]),Kr=(0,ie.Z)(yn,{value:un}),wr=(0,be.Z)(Kr,2),mr=wr[0],kr=wr[1],Fr=ee.useMemo(function(){var vn,An=_n&&mr===null?[]:mr,wn=zr(An);return kt==="combobox"&&Ke((vn=wn[0])===null||vn===void 0?void 0:vn.value)?[]:wn},[mr,zr,kt,_n]),cn=xr(Fr,Ar),Dn=(0,be.Z)(cn,2),Tn=Dn[0],Bn=Dn[1],Rn=ee.useMemo(function(){if(!kt&&Tn.length===1){var vn=Tn[0];if(vn.value===null&&(vn.label===null||vn.label===void 0))return[]}return Tn.map(function(An){var wn;return(0,Te.Z)((0,Te.Z)({},An),{},{label:(wn=typeof ln=="function"?ln(An):An.label)!==null&&wn!==void 0?wn:An.value})})},[kt,Tn,ln]),Ln=ee.useMemo(function(){return new Set(Tn.map(function(vn){return vn.value}))},[Tn]);ee.useEffect(function(){if(kt==="combobox"){var vn,An=(vn=Tn[0])===null||vn===void 0?void 0:vn.value;qr(Fe(An)?String(An):"")}},[Tn]);var Zn=hr(function(vn,An){var wn=An!=null?An:vn;return(0,a.Z)((0,a.Z)({},On.value,vn),On.label,wn)}),Wn=ee.useMemo(function(){if(kt!=="tags")return pr;var vn=(0,gt.Z)(pr),An=function(Cn){return Ar.has(Cn)};return(0,gt.Z)(Tn).sort(function(wn,Cn){return wn.value<Cn.value?-1:1}).forEach(function(wn){var Cn=wn.value;An(Cn)||vn.push(Zn(Cn,wn.label))}),vn},[Zn,pr,Ar,Tn,kt]),Vn=br(Wn,On,nn,Mn,$r),ti=ee.useMemo(function(){return kt!=="tags"||!nn||Vn.some(function(vn){return vn[$r||"value"]===nn})||Vn.some(function(vn){return vn[On.value]===nn})?Vn:[Zn(nn)].concat((0,gt.Z)(Vn))},[Zn,$r,kt,Vn,nn,On]),Ei=function vn(An){var wn=(0,gt.Z)(An).sort(function(Cn,Un){return Wr(Cn,Un,{searchValue:nn})});return wn.map(function(Cn){return Array.isArray(Cn.options)?(0,Te.Z)((0,Te.Z)({},Cn),{},{options:Cn.options.length>0?vn(Cn.options):Cn.options}):Cn})},Ni=ee.useMemo(function(){return Wr?Ei(ti):ti},[ti,Wr,nn]),xi=ee.useMemo(function(){return Ye(Ni,{fieldNames:On,childrenAsData:En})},[Ni,On,En]),li=function(An){var wn=zr(An);if(kr(wn),dn&&(wn.length!==Tn.length||wn.some(function(Xn,Vi){var Oi;return((Oi=Tn[Vi])===null||Oi===void 0?void 0:Oi.value)!==(Xn==null?void 0:Xn.value)}))){var Cn=sn?wn:wn.map(function(Xn){return Xn.value}),Un=wn.map(function(Xn){return st(Bn(Xn.value))});dn(_n?Cn:Cn[0],_n?Un:Un[0])}},Bi=ee.useState(null),zn=(0,be.Z)(Bi,2),Ki=zn[0],qn=zn[1],xn=ee.useState(0),Fn=(0,be.Z)(xn,2),$n=Fn[0],Sn=Fn[1],Nn=Qr!==void 0?Qr:kt!=="combobox",Pn=ee.useCallback(function(vn,An){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Cn=wn.source,Un=Cn===void 0?"keyboard":Cn;Sn(An),pt&&kt==="combobox"&&vn!==null&&Un==="keyboard"&&qn(String(vn))},[pt,kt]),ui=function(An,wn,Cn){var Un=function(){var io,Xi=Bn(An);return[sn?{label:Xi==null?void 0:Xi[On.label],value:An,key:(io=Xi==null?void 0:Xi.key)!==null&&io!==void 0?io:An}:An,st(Xi)]};if(wn&&Ut){var Xn=Un(),Vi=(0,be.Z)(Xn,2),Oi=Vi[0],gi=Vi[1];Ut(Oi,gi)}else if(!wn&&cr&&Cn!=="clear"){var ni=Un(),$i=(0,be.Z)(ni,2),eo=$i[0],Li=$i[1];cr(eo,Li)}},ji=hr(function(vn,An){var wn,Cn=_n?An.selected:!0;Cn?wn=_n?[].concat((0,gt.Z)(Tn),[vn]):[vn]:wn=Tn.filter(function(Un){return Un.value!==vn}),li(wn),ui(vn,Cn),kt==="combobox"?qn(""):(!Mt||Bt)&&(qr(""),qn(""))}),di=function(An,wn){li(An);var Cn=wn.type,Un=wn.values;(Cn==="remove"||Cn==="clear")&&Un.forEach(function(Xn){ui(Xn.value,!1,Cn)})},ri=function(An,wn){if(qr(An),qn(null),wn.source==="submit"){var Cn=(An||"").trim();if(Cn){var Un=Array.from(new Set([].concat((0,gt.Z)(Ln),[Cn])));li(Un),ui(Cn,!0),qr("")}return}wn.source!=="blur"&&(kt==="combobox"&&li(An),Ht==null||Ht(An))},xo=function(An){var wn=An;kt!=="tags"&&(wn=An.map(function(Un){var Xn=Cr.get(Un);return Xn==null?void 0:Xn.value}).filter(function(Un){return Un!==void 0}));var Cn=Array.from(new Set([].concat((0,gt.Z)(Ln),(0,gt.Z)(wn))));li(Cn),Cn.forEach(function(Un){ui(Un,!0)})},lo=ee.useMemo(function(){var vn=Jr!==!1&&dr!==!1;return(0,Te.Z)((0,Te.Z)({},gr),{},{flattenOptions:xi,onActiveValue:Pn,defaultActiveFirstOption:Nn,onSelect:ji,menuItemSelectedIcon:Vr,rawValues:Ln,fieldNames:On,virtual:vn,direction:Pr,listHeight:Gr,listItemHeight:pn,childrenAsData:En,maxCount:en,optionRender:Rr})},[en,gr,xi,Pn,Nn,ji,Vr,Ln,On,Jr,dr,Pr,Gr,pn,En,Rr]);return ee.createElement(Tt.Provider,{value:lo},ee.createElement(xt,(0,ge.Z)({},mn,{id:bn,prefixCls:Rt,ref:Ft,omitDomProps:Zr,mode:kt,displayValues:Rn,onDisplayValuesChange:di,direction:Pr,searchValue:nn,onSearch:ri,autoClearSearchValue:Bt,onSearchSplit:xo,dropdownMatchSelectWidth:dr,OptionList:yr,emptyOptions:!xi.length,activeValue:Ki,activeDescendantId:"".concat(bn,"_list_").concat($n)})))}),nr=qt;nr.Option=Ct,nr.OptGroup=At;var jr=nr,Tr=jr},22711:function(Yt,Dt,Ie){"use strict";Ie.r(Dt),Ie.d(Dt,{ResizableTextArea:function(){return ke},default:function(){return Ge}});var ge=Ie(54476),gt=Ie(20068),a=Ie(33885),Te=Ie(94480),be=Ie(42978),z=Ie(75931),E=Ie(92310),ie=Ie.n(E),oe=Ie(36901),ee=Ie(66003),le=Ie(30292),x=Ie(18929),ne=Ie(59301),re=Ie(76190),ae=Ie(29301),se=Ie(34280),ce=Ie(16089),pe=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,me=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],he={},ye;function De(Ze){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=Ze.getAttribute("id")||Ze.getAttribute("data-reactid")||Ze.getAttribute("name");if(Je&&he[at])return he[at];var Fe=window.getComputedStyle(Ze),Ke=Fe.getPropertyValue("box-sizing")||Fe.getPropertyValue("-moz-box-sizing")||Fe.getPropertyValue("-webkit-box-sizing"),it=parseFloat(Fe.getPropertyValue("padding-bottom"))+parseFloat(Fe.getPropertyValue("padding-top")),rt=parseFloat(Fe.getPropertyValue("border-bottom-width"))+parseFloat(Fe.getPropertyValue("border-top-width")),et=me.map(function(Xe){return"".concat(Xe,":").concat(Fe.getPropertyValue(Xe))}).join(";"),$e={sizingStyle:et,paddingSize:it,borderSize:rt,boxSizing:Ke};return Je&&at&&(he[at]=$e),$e}function Me(Ze){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,at=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ye||(ye=document.createElement("textarea"),ye.setAttribute("tab-index","-1"),ye.setAttribute("aria-hidden","true"),ye.setAttribute("name","hiddenTextarea"),document.body.appendChild(ye)),Ze.getAttribute("wrap")?ye.setAttribute("wrap",Ze.getAttribute("wrap")):ye.removeAttribute("wrap");var Ke=De(Ze,Je),it=Ke.paddingSize,rt=Ke.borderSize,et=Ke.boxSizing,$e=Ke.sizingStyle;ye.setAttribute("style","".concat($e,";").concat(pe)),ye.value=Ze.value||Ze.placeholder||"";var Xe=void 0,Ve=void 0,nt,Qe=ye.scrollHeight;if(et==="border-box"?Qe+=rt:et==="content-box"&&(Qe-=it),at!==null||Fe!==null){ye.value=" ";var ct=ye.scrollHeight-it;at!==null&&(Xe=ct*at,et==="border-box"&&(Xe=Xe+it+rt),Qe=Math.max(Xe,Qe)),Fe!==null&&(Ve=ct*Fe,et==="border-box"&&(Ve=Ve+it+rt),nt=Qe>Ve?"":"hidden",Qe=Math.min(Ve,Qe))}var ot={height:Qe,overflowY:nt,resize:"none"};return Xe&&(ot.minHeight=Xe),Ve&&(ot.maxHeight=Ve),ot}var Be=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Pe=0,Ce=1,Ee=2,je=ne.forwardRef(function(Ze,Je){var at=Ze,Fe=at.prefixCls,Ke=at.defaultValue,it=at.value,rt=at.autoSize,et=at.onResize,$e=at.className,Xe=at.style,Ve=at.disabled,nt=at.onChange,Qe=at.onInternalAutoSize,ct=(0,z.Z)(at,Be),ot=(0,x.Z)(Ke,{value:it,postState:function(Ct){return Ct!=null?Ct:""}}),qe=(0,be.Z)(ot,2),_e=qe[0],Re=qe[1],te=function(Ct){Re(Ct.target.value),nt==null||nt(Ct)},de=ne.useRef();ne.useImperativeHandle(Je,function(){return{textArea:de.current}});var Ne=ne.useMemo(function(){return rt&&(0,re.Z)(rt)==="object"?[rt.minRows,rt.maxRows]:[]},[rt]),ze=(0,be.Z)(Ne,2),xe=ze[0],ve=ze[1],Oe=!!rt,We=function(){try{if(document.activeElement===de.current){var Ct=de.current,$t=Ct.selectionStart,Xt=Ct.selectionEnd,vt=Ct.scrollTop;de.current.setSelectionRange($t,Xt),de.current.scrollTop=vt}}catch(Pt){}},Ue=ne.useState(Ee),Ye=(0,be.Z)(Ue,2),st=Ye[0],lt=Ye[1],ft=ne.useState(),Tt=(0,be.Z)(ft,2),St=Tt[0],Ot=Tt[1],yt=function(){lt(Pe)};(0,se.Z)(function(){Oe&&yt()},[it,xe,ve,Oe]),(0,se.Z)(function(){if(st===Pe)lt(Ce);else if(st===Ce){var ht=Me(de.current,!1,xe,ve);lt(Ee),Ot(ht)}else We()},[st]);var Mt=ne.useRef(),Et=function(){ce.Z.cancel(Mt.current)},xt=function(Ct){st===Ee&&(et==null||et(Ct),rt&&(Et(),Mt.current=(0,ce.Z)(function(){yt()})))};ne.useEffect(function(){return Et},[]);var jt=Oe?St:null,At=(0,a.Z)((0,a.Z)({},Xe),jt);return(st===Pe||st===Ce)&&(At.overflowY="hidden",At.overflowX="hidden"),ne.createElement(ae.Z,{onResize:xt,disabled:!(rt||et)},ne.createElement("textarea",(0,ge.Z)({},ct,{ref:de,style:At,className:ie()(Fe,$e,(0,gt.Z)({},"".concat(Fe,"-disabled"),Ve)),disabled:Ve,value:_e,onChange:te})))}),ke=je,Le=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Ae=ne.forwardRef(function(Ze,Je){var at,Fe=Ze.defaultValue,Ke=Ze.value,it=Ze.onFocus,rt=Ze.onBlur,et=Ze.onChange,$e=Ze.allowClear,Xe=Ze.maxLength,Ve=Ze.onCompositionStart,nt=Ze.onCompositionEnd,Qe=Ze.suffix,ct=Ze.prefixCls,ot=ct===void 0?"rc-textarea":ct,qe=Ze.showCount,_e=Ze.count,Re=Ze.className,te=Ze.style,de=Ze.disabled,Ne=Ze.hidden,ze=Ze.classNames,xe=Ze.styles,ve=Ze.onResize,Oe=Ze.onClear,We=Ze.onPressEnter,Ue=Ze.readOnly,Ye=Ze.autoSize,st=Ze.onKeyDown,lt=(0,z.Z)(Ze,Le),ft=(0,x.Z)(Fe,{value:Ke,defaultValue:Fe}),Tt=(0,be.Z)(ft,2),St=Tt[0],Ot=Tt[1],yt=St==null?"":String(St),Mt=ne.useState(!1),Et=(0,be.Z)(Mt,2),xt=Et[0],jt=Et[1],At=ne.useRef(!1),ht=ne.useState(null),Ct=(0,be.Z)(ht,2),$t=Ct[0],Xt=Ct[1],vt=(0,ne.useRef)(null),Pt=(0,ne.useRef)(null),_t=function(){var nr;return(nr=Pt.current)===null||nr===void 0?void 0:nr.textArea},Kt=function(){_t().focus()};(0,ne.useImperativeHandle)(Je,function(){var qt;return{resizableTextArea:Pt.current,focus:Kt,blur:function(){_t().blur()},nativeElement:((qt=vt.current)===null||qt===void 0?void 0:qt.nativeElement)||_t()}}),(0,ne.useEffect)(function(){jt(function(qt){return!de&&qt})},[de]);var er=ne.useState(null),sr=(0,be.Z)(er,2),yr=sr[0],xr=sr[1];ne.useEffect(function(){if(yr){var qt;(qt=_t()).setSelectionRange.apply(qt,(0,Te.Z)(yr))}},[yr]);var ur=(0,ee.Z)(_e,qe),br=(at=ur.max)!==null&&at!==void 0?at:Xe,or=Number(br)>0,fr=ur.strategy(yt),Jt=!!br&&fr>br,Qt=function(nr,jr){var Tr=jr;!At.current&&ur.exceedFormatter&&ur.max&&ur.strategy(jr)>ur.max&&(Tr=ur.exceedFormatter(jr,{max:ur.max}),jr!==Tr&&xr([_t().selectionStart||0,_t().selectionEnd||0])),Ot(Tr),(0,le.rJ)(nr.currentTarget,nr,et,Tr)},Vt=function(nr){At.current=!0,Ve==null||Ve(nr)},rr=function(nr){At.current=!1,Qt(nr,nr.currentTarget.value),nt==null||nt(nr)},ar=function(nr){Qt(nr,nr.target.value)},vr=function(nr){nr.key==="Enter"&&We&&We(nr),st==null||st(nr)},hr=function(nr){jt(!0),it==null||it(nr)},Ir=function(nr){jt(!1),rt==null||rt(nr)},Or=function(nr){Ot(""),Kt(),(0,le.rJ)(_t(),nr,et)},Lr=Qe,Er;ur.show&&(ur.showFormatter?Er=ur.showFormatter({value:yt,count:fr,maxLength:br}):Er="".concat(fr).concat(or?" / ".concat(br):""),Lr=ne.createElement(ne.Fragment,null,Lr,ne.createElement("span",{className:ie()("".concat(ot,"-data-count"),ze==null?void 0:ze.count),style:xe==null?void 0:xe.count},Er)));var Zr=function(nr){var jr;ve==null||ve(nr),(jr=_t())!==null&&jr!==void 0&&jr.style.height&&Xt(!0)},_r=!Ye&&!qe&&!$e;return ne.createElement(oe.BaseInput,{ref:vt,value:yt,allowClear:$e,handleReset:Or,suffix:Lr,prefixCls:ot,classNames:(0,a.Z)((0,a.Z)({},ze),{},{affixWrapper:ie()(ze==null?void 0:ze.affixWrapper,(0,gt.Z)((0,gt.Z)({},"".concat(ot,"-show-count"),qe),"".concat(ot,"-textarea-allow-clear"),$e))}),disabled:de,focused:xt,className:ie()(Re,Jt&&"".concat(ot,"-out-of-range")),style:(0,a.Z)((0,a.Z)({},te),$t&&!_r?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Er=="string"?Er:void 0}},hidden:Ne,readOnly:Ue,onClear:Oe},ne.createElement(ke,(0,ge.Z)({},lt,{autoSize:Ye,maxLength:Xe,onKeyDown:vr,onChange:ar,onFocus:hr,onBlur:Ir,onCompositionStart:Vt,onCompositionEnd:rr,className:ie()(ze==null?void 0:ze.textarea),style:(0,a.Z)((0,a.Z)({},xe==null?void 0:xe.textarea),{},{resize:te==null?void 0:te.resize}),disabled:de,prefixCls:ot,onResize:Zr,ref:Pt,readOnly:Ue})))}),Se=Ae,Ge=Se},639:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return he}});var ge=Ie(54476),gt=Ie(20068),a=Ie(33885),Te=Ie(42978),be=Ie(75931),z=Ie(59301),E=Ie(92310),ie=Ie.n(E),oe=Ie(26112),ee=Ie(30699),le=function(De){for(var Me=De.prefixCls,Be=De.level,Pe=De.isStart,Ce=De.isEnd,Ee="".concat(Me,"-indent-unit"),je=[],ke=0;ke<Be;ke+=1)je.push(z.createElement("span",{key:ke,className:ie()(Ee,(0,gt.Z)((0,gt.Z)({},"".concat(Ee,"-start"),Pe[ke]),"".concat(Ee,"-end"),Ce[ke]))}));return z.createElement("span",{"aria-hidden":"true",className:"".concat(Me,"-indent")},je)},x=z.memo(le),ne=Ie(65065),re=Ie(34061),ae=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],se="open",ce="close",pe="---",me=function(De){var Me,Be,Pe,Ce=De.eventKey,Ee=De.className,je=De.style,ke=De.dragOver,Le=De.dragOverGapTop,Ae=De.dragOverGapBottom,Se=De.isLeaf,Ge=De.isStart,Ze=De.isEnd,Je=De.expanded,at=De.selected,Fe=De.checked,Ke=De.halfChecked,it=De.loading,rt=De.domRef,et=De.active,$e=De.data,Xe=De.onMouseMove,Ve=De.selectable,nt=(0,be.Z)(De,ae),Qe=z.useContext(ee.k),ct=z.useContext(ee.y),ot=z.useRef(null),qe=z.useState(!1),_e=(0,Te.Z)(qe,2),Re=_e[0],te=_e[1],de=!!(Qe.disabled||De.disabled||(Me=ct.nodeDisabled)!==null&&Me!==void 0&&Me.call(ct,$e)),Ne=z.useMemo(function(){return!Qe.checkable||De.checkable===!1?!1:Qe.checkable},[Qe.checkable,De.checkable]),ze=function(fr){de||Qe.onNodeSelect(fr,(0,re.F)(De))},xe=function(fr){de||!Ne||De.disableCheckbox||Qe.onNodeCheck(fr,(0,re.F)(De),!Fe)},ve=z.useMemo(function(){return typeof Ve=="boolean"?Ve:Qe.selectable},[Ve,Qe.selectable]),Oe=function(fr){Qe.onNodeClick(fr,(0,re.F)(De)),ve?ze(fr):xe(fr)},We=function(fr){Qe.onNodeDoubleClick(fr,(0,re.F)(De))},Ue=function(fr){Qe.onNodeMouseEnter(fr,(0,re.F)(De))},Ye=function(fr){Qe.onNodeMouseLeave(fr,(0,re.F)(De))},st=function(fr){Qe.onNodeContextMenu(fr,(0,re.F)(De))},lt=z.useMemo(function(){return!!(Qe.draggable&&(!Qe.draggable.nodeDraggable||Qe.draggable.nodeDraggable($e)))},[Qe.draggable,$e]),ft=function(fr){fr.stopPropagation(),te(!0),Qe.onNodeDragStart(fr,De);try{fr.dataTransfer.setData("text/plain","")}catch(Jt){}},Tt=function(fr){fr.preventDefault(),fr.stopPropagation(),Qe.onNodeDragEnter(fr,De)},St=function(fr){fr.preventDefault(),fr.stopPropagation(),Qe.onNodeDragOver(fr,De)},Ot=function(fr){fr.stopPropagation(),Qe.onNodeDragLeave(fr,De)},yt=function(fr){fr.stopPropagation(),te(!1),Qe.onNodeDragEnd(fr,De)},Mt=function(fr){fr.preventDefault(),fr.stopPropagation(),te(!1),Qe.onNodeDrop(fr,De)},Et=function(fr){it||Qe.onNodeExpand(fr,(0,re.F)(De))},xt=z.useMemo(function(){var or=(0,ne.Z)(Qe.keyEntities,Ce)||{},fr=or.children;return!!(fr||[]).length},[Qe.keyEntities,Ce]),jt=z.useMemo(function(){return Se===!1?!1:Se||!Qe.loadData&&!xt||Qe.loadData&&De.loaded&&!xt},[Se,Qe.loadData,xt,De.loaded]);z.useEffect(function(){it||typeof Qe.loadData=="function"&&Je&&!jt&&!De.loaded&&Qe.onNodeLoad((0,re.F)(De))},[it,Qe.loadData,Qe.onNodeLoad,Je,jt,De]);var At=z.useMemo(function(){var or;return(or=Qe.draggable)!==null&&or!==void 0&&or.icon?z.createElement("span",{className:"".concat(Qe.prefixCls,"-draggable-icon")},Qe.draggable.icon):null},[Qe.draggable]),ht=function(fr){var Jt=De.switcherIcon||Qe.switcherIcon;return typeof Jt=="function"?Jt((0,a.Z)((0,a.Z)({},De),{},{isLeaf:fr})):Jt},Ct=function(){if(jt){var fr=ht(!0);return fr!==!1?z.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher-noop"))},fr):null}var Jt=ht(!1);return Jt!==!1?z.createElement("span",{onClick:Et,className:ie()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher_").concat(Je?se:ce))},Jt):null},$t=z.useMemo(function(){if(!Ne)return null;var or=typeof Ne!="boolean"?Ne:null;return z.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-checkbox"),(0,gt.Z)((0,gt.Z)((0,gt.Z)({},"".concat(Qe.prefixCls,"-checkbox-checked"),Fe),"".concat(Qe.prefixCls,"-checkbox-indeterminate"),!Fe&&Ke),"".concat(Qe.prefixCls,"-checkbox-disabled"),de||De.disableCheckbox)),onClick:xe,role:"checkbox","aria-checked":Ke?"mixed":Fe,"aria-disabled":de||De.disableCheckbox,"aria-label":"Select ".concat(typeof De.title=="string"?De.title:"tree node")},or)},[Ne,Fe,Ke,de,De.disableCheckbox,De.title]),Xt=z.useMemo(function(){return jt?null:Je?se:ce},[jt,Je]),vt=z.useMemo(function(){return z.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__").concat(Xt||"docu"),(0,gt.Z)({},"".concat(Qe.prefixCls,"-icon_loading"),it))})},[Qe.prefixCls,Xt,it]),Pt=z.useMemo(function(){var or=!!Qe.draggable,fr=!De.disabled&&or&&Qe.dragOverNodeKey===Ce;return fr?Qe.dropIndicatorRender({dropPosition:Qe.dropPosition,dropLevelOffset:Qe.dropLevelOffset,indent:Qe.indent,prefixCls:Qe.prefixCls,direction:Qe.direction}):null},[Qe.dropPosition,Qe.dropLevelOffset,Qe.indent,Qe.prefixCls,Qe.direction,Qe.draggable,Qe.dragOverNodeKey,Qe.dropIndicatorRender]),_t=z.useMemo(function(){var or=De.title,fr=or===void 0?pe:or,Jt="".concat(Qe.prefixCls,"-node-content-wrapper"),Qt;if(Qe.showIcon){var Vt=De.icon||Qe.icon;Qt=Vt?z.createElement("span",{className:ie()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__customize"))},typeof Vt=="function"?Vt(De):Vt):vt}else Qe.loadData&&it&&(Qt=vt);var rr;return typeof fr=="function"?rr=fr($e):Qe.titleRender?rr=Qe.titleRender($e):rr=fr,z.createElement("span",{ref:ot,title:typeof fr=="string"?fr:"",className:ie()(Jt,"".concat(Jt,"-").concat(Xt||"normal"),(0,gt.Z)({},"".concat(Qe.prefixCls,"-node-selected"),!de&&(at||Re))),onMouseEnter:Ue,onMouseLeave:Ye,onContextMenu:st,onClick:Oe,onDoubleClick:We},Qt,z.createElement("span",{className:"".concat(Qe.prefixCls,"-title")},rr),Pt)},[Qe.prefixCls,Qe.showIcon,De,Qe.icon,vt,Qe.titleRender,$e,Xt,Ue,Ye,st,Oe,We]),Kt=(0,oe.Z)(nt,{aria:!0,data:!0}),er=(0,ne.Z)(Qe.keyEntities,Ce)||{},sr=er.level,yr=Ze[Ze.length-1],xr=!de&<,ur=Qe.draggingNodeKey===Ce,br=Ve!==void 0?{"aria-selected":!!Ve}:void 0;return z.createElement("div",(0,ge.Z)({ref:rt,role:"treeitem","aria-expanded":Se?void 0:Je,className:ie()(Ee,"".concat(Qe.prefixCls,"-treenode"),(Pe={},(0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)(Pe,"".concat(Qe.prefixCls,"-treenode-disabled"),de),"".concat(Qe.prefixCls,"-treenode-switcher-").concat(Je?"open":"close"),!Se),"".concat(Qe.prefixCls,"-treenode-checkbox-checked"),Fe),"".concat(Qe.prefixCls,"-treenode-checkbox-indeterminate"),Ke),"".concat(Qe.prefixCls,"-treenode-selected"),at),"".concat(Qe.prefixCls,"-treenode-loading"),it),"".concat(Qe.prefixCls,"-treenode-active"),et),"".concat(Qe.prefixCls,"-treenode-leaf-last"),yr),"".concat(Qe.prefixCls,"-treenode-draggable"),lt),"dragging",ur),(0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)((0,gt.Z)(Pe,"drop-target",Qe.dropTargetKey===Ce),"drop-container",Qe.dropContainerKey===Ce),"drag-over",!de&&ke),"drag-over-gap-top",!de&&Le),"drag-over-gap-bottom",!de&&Ae),"filter-node",(Be=Qe.filterTreeNode)===null||Be===void 0?void 0:Be.call(Qe,(0,re.F)(De))),"".concat(Qe.prefixCls,"-treenode-leaf"),jt))),style:je,draggable:xr,onDragStart:xr?ft:void 0,onDragEnter:lt?Tt:void 0,onDragOver:lt?St:void 0,onDragLeave:lt?Ot:void 0,onDrop:lt?Mt:void 0,onDragEnd:lt?yt:void 0,onMouseMove:Xe},br,Kt),z.createElement(x,{prefixCls:Qe.prefixCls,level:sr,isStart:Ge,isEnd:Ze}),At,Ct(),$t,_t)};me.isTreeNode=1;var he=me},30699:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{k:function(){return gt},y:function(){return a}});var ge=Ie(59301),gt=ge.createContext(null),a=ge.createContext({})},3741:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{OF:function(){return Ce.Z},y6:function(){return ce.y},ZP:function(){return de}});var ge=Ie(54476),gt=Ie(76190),a=Ie(33885),Te=Ie(94480),be=Ie(67732),z=Ie(83652),E=Ie(31226),ie=Ie(42403),oe=Ie(158),ee=Ie(20068),le=Ie(92310),x=Ie.n(le),ne=Ie(10228),re=Ie(26112),ae=Ie(48736),se=Ie(59301),ce=Ie(30699),pe=function(ze){var xe=ze.dropPosition,ve=ze.dropLevelOffset,Oe=ze.indent,We={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(xe){case-1:We.top=0,We.left=-ve*Oe;break;case 1:We.bottom=0,We.left=-ve*Oe;break;case 0:We.bottom=0,We.left=Oe;break}return se.createElement("div",{style:We})},me=pe;function he(Ne){if(Ne==null)throw new TypeError("Cannot destructure "+Ne)}var ye=Ie(42978),De=Ie(75931),Me=Ie(34280),Be=Ie(48911),Pe=Ie(77900),Ce=Ie(639);function Ee(Ne,ze){var xe=se.useState(!1),ve=(0,ye.Z)(xe,2),Oe=ve[0],We=ve[1];(0,Me.Z)(function(){if(Oe)return Ne(),function(){ze()}},[Oe]),(0,Me.Z)(function(){return We(!0),function(){We(!1)}},[])}var je=Ee,ke=Ie(34061),Le=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ae=se.forwardRef(function(Ne,ze){var xe=Ne.className,ve=Ne.style,Oe=Ne.motion,We=Ne.motionNodes,Ue=Ne.motionType,Ye=Ne.onMotionStart,st=Ne.onMotionEnd,lt=Ne.active,ft=Ne.treeNodeRequiredProps,Tt=(0,De.Z)(Ne,Le),St=se.useState(!0),Ot=(0,ye.Z)(St,2),yt=Ot[0],Mt=Ot[1],Et=se.useContext(ce.k),xt=Et.prefixCls,jt=We&&Ue!=="hide";(0,Me.Z)(function(){We&&jt!==yt&&Mt(jt)},[We]);var At=function(){We&&Ye()},ht=se.useRef(!1),Ct=function(){We&&!ht.current&&(ht.current=!0,st())};je(At,Ct);var $t=function(vt){jt===vt&&Ct()};return We?se.createElement(Pe.default,(0,ge.Z)({ref:ze,visible:yt},Oe,{motionAppear:Ue==="show",onVisibleChanged:$t}),function(Xt,vt){var Pt=Xt.className,_t=Xt.style;return se.createElement("div",{ref:vt,className:x()("".concat(xt,"-treenode-motion"),Pt),style:_t},We.map(function(Kt){var er=Object.assign({},(he(Kt.data),Kt.data)),sr=Kt.title,yr=Kt.key,xr=Kt.isStart,ur=Kt.isEnd;delete er.children;var br=(0,ke.H8)(yr,ft);return se.createElement(Ce.Z,(0,ge.Z)({},er,br,{title:sr,active:lt,data:Kt.data,key:yr,isStart:xr,isEnd:ur}))}))}):se.createElement(Ce.Z,(0,ge.Z)({domRef:ze,className:xe,style:ve},Tt,{active:lt}))}),Se=Ae;function Ge(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],xe=Ne.length,ve=ze.length;if(Math.abs(xe-ve)!==1)return{add:!1,key:null};function Oe(We,Ue){var Ye=new Map;We.forEach(function(lt){Ye.set(lt,!0)});var st=Ue.filter(function(lt){return!Ye.has(lt)});return st.length===1?st[0]:null}return xe<ve?{add:!0,key:Oe(Ne,ze)}:{add:!1,key:Oe(ze,Ne)}}function Ze(Ne,ze,xe){var ve=Ne.findIndex(function(Ye){return Ye.key===xe}),Oe=Ne[ve+1],We=ze.findIndex(function(Ye){return Ye.key===xe});if(Oe){var Ue=ze.findIndex(function(Ye){return Ye.key===Oe.key});return ze.slice(We+1,Ue)}return ze.slice(We+1)}var Je=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],at={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Fe=function(){},Ke="RC_TREE_MOTION_".concat(Math.random()),it={key:Ke},rt={key:Ke,level:0,index:0,pos:"0",node:it,nodes:[it]},et={parent:null,children:[],pos:rt.pos,data:it,title:null,key:Ke,isStart:[],isEnd:[]};function $e(Ne,ze,xe,ve){return ze===!1||!xe?Ne:Ne.slice(0,Math.ceil(xe/ve)+1)}function Xe(Ne){var ze=Ne.key,xe=Ne.pos;return(0,ke.km)(ze,xe)}function Ve(Ne){for(var ze=String(Ne.data.key),xe=Ne;xe.parent;)xe=xe.parent,ze="".concat(xe.data.key," > ").concat(ze);return ze}var nt=se.forwardRef(function(Ne,ze){var xe=Ne.prefixCls,ve=Ne.data,Oe=Ne.selectable,We=Ne.checkable,Ue=Ne.expandedKeys,Ye=Ne.selectedKeys,st=Ne.checkedKeys,lt=Ne.loadedKeys,ft=Ne.loadingKeys,Tt=Ne.halfCheckedKeys,St=Ne.keyEntities,Ot=Ne.disabled,yt=Ne.dragging,Mt=Ne.dragOverNodeKey,Et=Ne.dropPosition,xt=Ne.motion,jt=Ne.height,At=Ne.itemHeight,ht=Ne.virtual,Ct=Ne.scrollWidth,$t=Ne.focusable,Xt=Ne.activeItem,vt=Ne.focused,Pt=Ne.tabIndex,_t=Ne.onKeyDown,Kt=Ne.onFocus,er=Ne.onBlur,sr=Ne.onActiveChange,yr=Ne.onListChangeStart,xr=Ne.onListChangeEnd,ur=(0,De.Z)(Ne,Je),br=se.useRef(null),or=se.useRef(null);se.useImperativeHandle(ze,function(){return{scrollTo:function(Lt){br.current.scrollTo(Lt)},getIndentWidth:function(){return or.current.offsetWidth}}});var fr=se.useState(Ue),Jt=(0,ye.Z)(fr,2),Qt=Jt[0],Vt=Jt[1],rr=se.useState(ve),ar=(0,ye.Z)(rr,2),vr=ar[0],hr=ar[1],Ir=se.useState(ve),Or=(0,ye.Z)(Ir,2),Lr=Or[0],Er=Or[1],Zr=se.useState([]),_r=(0,ye.Z)(Zr,2),qt=_r[0],nr=_r[1],jr=se.useState(null),Tr=(0,ye.Z)(jr,2),It=Tr[0],Ft=Tr[1],bt=se.useRef(ve);bt.current=ve;function kt(){var pt=bt.current;hr(pt),Er(pt),nr([]),Ft(null),xr()}(0,Me.Z)(function(){Vt(Ue);var pt=Ge(Qt,Ue);if(pt.key!==null)if(pt.add){var Lt=vr.findIndex(function(Ut){var cr=Ut.key;return cr===pt.key}),zt=$e(Ze(vr,ve,pt.key),ht,jt,At),Gt=vr.slice();Gt.splice(Lt+1,0,et),Er(Gt),nr(zt),Ft("show")}else{var Ht=ve.findIndex(function(Ut){var cr=Ut.key;return cr===pt.key}),Nt=$e(Ze(ve,vr,pt.key),ht,jt,At),Bt=ve.slice();Bt.splice(Ht+1,0,et),Er(Bt),nr(Nt),Ft("hide")}else vr!==ve&&(hr(ve),Er(ve))},[Ue,ve]),se.useEffect(function(){yt||kt()},[yt]);var wt=xt?Lr:ve,Rt={expandedKeys:Ue,selectedKeys:Ye,loadedKeys:lt,loadingKeys:ft,checkedKeys:st,halfCheckedKeys:Tt,dragOverNodeKey:Mt,dropPosition:Et,keyEntities:St};return se.createElement(se.Fragment,null,vt&&Xt&&se.createElement("span",{style:at,"aria-live":"assertive"},Ve(Xt)),se.createElement("div",null,se.createElement("input",{style:at,disabled:$t===!1||Ot,tabIndex:$t!==!1?Pt:null,onKeyDown:_t,onFocus:Kt,onBlur:er,value:"",onChange:Fe,"aria-label":"for screen reader"})),se.createElement("div",{className:"".concat(xe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},se.createElement("div",{className:"".concat(xe,"-indent")},se.createElement("div",{ref:or,className:"".concat(xe,"-indent-unit")}))),se.createElement(Be.Z,(0,ge.Z)({},ur,{data:wt,itemKey:Xe,height:jt,fullHeight:!1,virtual:ht,itemHeight:At,scrollWidth:Ct,prefixCls:"".concat(xe,"-list"),ref:br,role:"tree",onVisibleChange:function(Lt){Lt.every(function(zt){return Xe(zt)!==Ke})&&kt()}}),function(pt){var Lt=pt.pos,zt=Object.assign({},(he(pt.data),pt.data)),Gt=pt.title,Ht=pt.key,Nt=pt.isStart,Bt=pt.isEnd,Ut=(0,ke.km)(Ht,Lt);delete zt.key,delete zt.children;var cr=(0,ke.H8)(Ut,Rt);return se.createElement(Se,(0,ge.Z)({},zt,cr,{title:Gt,active:!!Xt&&Ht===Xt.key,pos:Lt,data:pt.data,isStart:Nt,isEnd:Bt,motion:xt,motionNodes:Ht===Ke?qt:null,motionType:It,onMotionStart:yr,onMotionEnd:kt,treeNodeRequiredProps:Rt,onMouseMove:function(){sr(null)}}))}))}),Qe=nt,ct=Ie(82661),ot=Ie(34643),qe=Ie(65065),_e=10,Re=function(Ne){(0,ie.Z)(xe,Ne);var ze=(0,oe.Z)(xe);function xe(){var ve;(0,be.Z)(this,xe);for(var Oe=arguments.length,We=new Array(Oe),Ue=0;Ue<Oe;Ue++)We[Ue]=arguments[Ue];return ve=ze.call.apply(ze,[this].concat(We)),(0,ee.Z)((0,E.Z)(ve),"destroyed",!1),(0,ee.Z)((0,E.Z)(ve),"delayedDragEnterLogic",void 0),(0,ee.Z)((0,E.Z)(ve),"loadingRetryTimes",{}),(0,ee.Z)((0,E.Z)(ve),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ke.w$)()}),(0,ee.Z)((0,E.Z)(ve),"dragStartMousePosition",null),(0,ee.Z)((0,E.Z)(ve),"dragNodeProps",null),(0,ee.Z)((0,E.Z)(ve),"currentMouseOverDroppableNodeKey",null),(0,ee.Z)((0,E.Z)(ve),"listRef",se.createRef()),(0,ee.Z)((0,E.Z)(ve),"onNodeDragStart",function(Ye,st){var lt=ve.state,ft=lt.expandedKeys,Tt=lt.keyEntities,St=ve.props.onDragStart,Ot=st.eventKey;ve.dragNodeProps=st,ve.dragStartMousePosition={x:Ye.clientX,y:Ye.clientY};var yt=(0,ct._5)(ft,Ot);ve.setState({draggingNodeKey:Ot,dragChildrenKeys:(0,ct.wA)(Ot,Tt),indent:ve.listRef.current.getIndentWidth()}),ve.setExpandedKeys(yt),window.addEventListener("dragend",ve.onWindowDragEnd),St==null||St({event:Ye,node:(0,ke.F)(st)})}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragEnter",function(Ye,st){var lt=ve.state,ft=lt.expandedKeys,Tt=lt.keyEntities,St=lt.dragChildrenKeys,Ot=lt.flattenNodes,yt=lt.indent,Mt=ve.props,Et=Mt.onDragEnter,xt=Mt.onExpand,jt=Mt.allowDrop,At=Mt.direction,ht=st.pos,Ct=st.eventKey;if(ve.currentMouseOverDroppableNodeKey!==Ct&&(ve.currentMouseOverDroppableNodeKey=Ct),!ve.dragNodeProps){ve.resetDragState();return}var $t=(0,ct.OM)(Ye,ve.dragNodeProps,st,yt,ve.dragStartMousePosition,jt,Ot,Tt,ft,At),Xt=$t.dropPosition,vt=$t.dropLevelOffset,Pt=$t.dropTargetKey,_t=$t.dropContainerKey,Kt=$t.dropTargetPos,er=$t.dropAllowed,sr=$t.dragOverNodeKey;if(St.includes(Pt)||!er){ve.resetDragState();return}if(ve.delayedDragEnterLogic||(ve.delayedDragEnterLogic={}),Object.keys(ve.delayedDragEnterLogic).forEach(function(yr){clearTimeout(ve.delayedDragEnterLogic[yr])}),ve.dragNodeProps.eventKey!==st.eventKey&&(Ye.persist(),ve.delayedDragEnterLogic[ht]=window.setTimeout(function(){if(ve.state.draggingNodeKey!==null){var yr=(0,Te.Z)(ft),xr=(0,qe.Z)(Tt,st.eventKey);xr&&(xr.children||[]).length&&(yr=(0,ct.L0)(ft,st.eventKey)),ve.props.hasOwnProperty("expandedKeys")||ve.setExpandedKeys(yr),xt==null||xt(yr,{node:(0,ke.F)(st),expanded:!0,nativeEvent:Ye.nativeEvent})}},800)),ve.dragNodeProps.eventKey===Pt&&vt===0){ve.resetDragState();return}ve.setState({dragOverNodeKey:sr,dropPosition:Xt,dropLevelOffset:vt,dropTargetKey:Pt,dropContainerKey:_t,dropTargetPos:Kt,dropAllowed:er}),Et==null||Et({event:Ye,node:(0,ke.F)(st),expandedKeys:ft})}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragOver",function(Ye,st){var lt=ve.state,ft=lt.dragChildrenKeys,Tt=lt.flattenNodes,St=lt.keyEntities,Ot=lt.expandedKeys,yt=lt.indent,Mt=ve.props,Et=Mt.onDragOver,xt=Mt.allowDrop,jt=Mt.direction;if(ve.dragNodeProps){var At=(0,ct.OM)(Ye,ve.dragNodeProps,st,yt,ve.dragStartMousePosition,xt,Tt,St,Ot,jt),ht=At.dropPosition,Ct=At.dropLevelOffset,$t=At.dropTargetKey,Xt=At.dropContainerKey,vt=At.dropTargetPos,Pt=At.dropAllowed,_t=At.dragOverNodeKey;ft.includes($t)||!Pt||(ve.dragNodeProps.eventKey===$t&&Ct===0?ve.state.dropPosition===null&&ve.state.dropLevelOffset===null&&ve.state.dropTargetKey===null&&ve.state.dropContainerKey===null&&ve.state.dropTargetPos===null&&ve.state.dropAllowed===!1&&ve.state.dragOverNodeKey===null||ve.resetDragState():ht===ve.state.dropPosition&&Ct===ve.state.dropLevelOffset&&$t===ve.state.dropTargetKey&&Xt===ve.state.dropContainerKey&&vt===ve.state.dropTargetPos&&Pt===ve.state.dropAllowed&&_t===ve.state.dragOverNodeKey||ve.setState({dropPosition:ht,dropLevelOffset:Ct,dropTargetKey:$t,dropContainerKey:Xt,dropTargetPos:vt,dropAllowed:Pt,dragOverNodeKey:_t}),Et==null||Et({event:Ye,node:(0,ke.F)(st)}))}}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragLeave",function(Ye,st){ve.currentMouseOverDroppableNodeKey===st.eventKey&&!Ye.currentTarget.contains(Ye.relatedTarget)&&(ve.resetDragState(),ve.currentMouseOverDroppableNodeKey=null);var lt=ve.props.onDragLeave;lt==null||lt({event:Ye,node:(0,ke.F)(st)})}),(0,ee.Z)((0,E.Z)(ve),"onWindowDragEnd",function(Ye){ve.onNodeDragEnd(Ye,null,!0),window.removeEventListener("dragend",ve.onWindowDragEnd)}),(0,ee.Z)((0,E.Z)(ve),"onNodeDragEnd",function(Ye,st){var lt=ve.props.onDragEnd;ve.setState({dragOverNodeKey:null}),ve.cleanDragState(),lt==null||lt({event:Ye,node:(0,ke.F)(st)}),ve.dragNodeProps=null,window.removeEventListener("dragend",ve.onWindowDragEnd)}),(0,ee.Z)((0,E.Z)(ve),"onNodeDrop",function(Ye,st){var lt,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Tt=ve.state,St=Tt.dragChildrenKeys,Ot=Tt.dropPosition,yt=Tt.dropTargetKey,Mt=Tt.dropTargetPos,Et=Tt.dropAllowed;if(Et){var xt=ve.props.onDrop;if(ve.setState({dragOverNodeKey:null}),ve.cleanDragState(),yt!==null){var jt=(0,a.Z)((0,a.Z)({},(0,ke.H8)(yt,ve.getTreeNodeRequiredProps())),{},{active:((lt=ve.getActiveItem())===null||lt===void 0?void 0:lt.key)===yt,data:(0,qe.Z)(ve.state.keyEntities,yt).node}),At=St.includes(yt);(0,ae.ZP)(!At,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ht=(0,ct.yx)(Mt),Ct={event:Ye,node:(0,ke.F)(jt),dragNode:ve.dragNodeProps?(0,ke.F)(ve.dragNodeProps):null,dragNodesKeys:[ve.dragNodeProps.eventKey].concat(St),dropToGap:Ot!==0,dropPosition:Ot+Number(ht[ht.length-1])};ft||xt==null||xt(Ct),ve.dragNodeProps=null}}}),(0,ee.Z)((0,E.Z)(ve),"cleanDragState",function(){var Ye=ve.state.draggingNodeKey;Ye!==null&&ve.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ve.dragStartMousePosition=null,ve.currentMouseOverDroppableNodeKey=null}),(0,ee.Z)((0,E.Z)(ve),"triggerExpandActionExpand",function(Ye,st){var lt=ve.state,ft=lt.expandedKeys,Tt=lt.flattenNodes,St=st.expanded,Ot=st.key,yt=st.isLeaf;if(!(yt||Ye.shiftKey||Ye.metaKey||Ye.ctrlKey)){var Mt=Tt.filter(function(xt){return xt.key===Ot})[0],Et=(0,ke.F)((0,a.Z)((0,a.Z)({},(0,ke.H8)(Ot,ve.getTreeNodeRequiredProps())),{},{data:Mt.data}));ve.setExpandedKeys(St?(0,ct._5)(ft,Ot):(0,ct.L0)(ft,Ot)),ve.onNodeExpand(Ye,Et)}}),(0,ee.Z)((0,E.Z)(ve),"onNodeClick",function(Ye,st){var lt=ve.props,ft=lt.onClick,Tt=lt.expandAction;Tt==="click"&&ve.triggerExpandActionExpand(Ye,st),ft==null||ft(Ye,st)}),(0,ee.Z)((0,E.Z)(ve),"onNodeDoubleClick",function(Ye,st){var lt=ve.props,ft=lt.onDoubleClick,Tt=lt.expandAction;Tt==="doubleClick"&&ve.triggerExpandActionExpand(Ye,st),ft==null||ft(Ye,st)}),(0,ee.Z)((0,E.Z)(ve),"onNodeSelect",function(Ye,st){var lt=ve.state.selectedKeys,ft=ve.state,Tt=ft.keyEntities,St=ft.fieldNames,Ot=ve.props,yt=Ot.onSelect,Mt=Ot.multiple,Et=st.selected,xt=st[St.key],jt=!Et;jt?Mt?lt=(0,ct.L0)(lt,xt):lt=[xt]:lt=(0,ct._5)(lt,xt);var At=lt.map(function(ht){var Ct=(0,qe.Z)(Tt,ht);return Ct?Ct.node:null}).filter(Boolean);ve.setUncontrolledState({selectedKeys:lt}),yt==null||yt(lt,{event:"select",selected:jt,node:st,selectedNodes:At,nativeEvent:Ye.nativeEvent})}),(0,ee.Z)((0,E.Z)(ve),"onNodeCheck",function(Ye,st,lt){var ft=ve.state,Tt=ft.keyEntities,St=ft.checkedKeys,Ot=ft.halfCheckedKeys,yt=ve.props,Mt=yt.checkStrictly,Et=yt.onCheck,xt=st.key,jt,At={event:"check",node:st,checked:lt,nativeEvent:Ye.nativeEvent};if(Mt){var ht=lt?(0,ct.L0)(St,xt):(0,ct._5)(St,xt),Ct=(0,ct._5)(Ot,xt);jt={checked:ht,halfChecked:Ct},At.checkedNodes=ht.map(function(Kt){return(0,qe.Z)(Tt,Kt)}).filter(Boolean).map(function(Kt){return Kt.node}),ve.setUncontrolledState({checkedKeys:ht})}else{var $t=(0,ot.S)([].concat((0,Te.Z)(St),[xt]),!0,Tt),Xt=$t.checkedKeys,vt=$t.halfCheckedKeys;if(!lt){var Pt=new Set(Xt);Pt.delete(xt);var _t=(0,ot.S)(Array.from(Pt),{checked:!1,halfCheckedKeys:vt},Tt);Xt=_t.checkedKeys,vt=_t.halfCheckedKeys}jt=Xt,At.checkedNodes=[],At.checkedNodesPositions=[],At.halfCheckedKeys=vt,Xt.forEach(function(Kt){var er=(0,qe.Z)(Tt,Kt);if(er){var sr=er.node,yr=er.pos;At.checkedNodes.push(sr),At.checkedNodesPositions.push({node:sr,pos:yr})}}),ve.setUncontrolledState({checkedKeys:Xt},!1,{halfCheckedKeys:vt})}Et==null||Et(jt,At)}),(0,ee.Z)((0,E.Z)(ve),"onNodeLoad",function(Ye){var st,lt=Ye.key,ft=ve.state.keyEntities,Tt=(0,qe.Z)(ft,lt);if(!(Tt!=null&&(st=Tt.children)!==null&&st!==void 0&&st.length)){var St=new Promise(function(Ot,yt){ve.setState(function(Mt){var Et=Mt.loadedKeys,xt=Et===void 0?[]:Et,jt=Mt.loadingKeys,At=jt===void 0?[]:jt,ht=ve.props,Ct=ht.loadData,$t=ht.onLoad;if(!Ct||xt.includes(lt)||At.includes(lt))return null;var Xt=Ct(Ye);return Xt.then(function(){var vt=ve.state.loadedKeys,Pt=(0,ct.L0)(vt,lt);$t==null||$t(Pt,{event:"load",node:Ye}),ve.setUncontrolledState({loadedKeys:Pt}),ve.setState(function(_t){return{loadingKeys:(0,ct._5)(_t.loadingKeys,lt)}}),Ot()}).catch(function(vt){if(ve.setState(function(_t){return{loadingKeys:(0,ct._5)(_t.loadingKeys,lt)}}),ve.loadingRetryTimes[lt]=(ve.loadingRetryTimes[lt]||0)+1,ve.loadingRetryTimes[lt]>=_e){var Pt=ve.state.loadedKeys;(0,ae.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ve.setUncontrolledState({loadedKeys:(0,ct.L0)(Pt,lt)}),Ot()}yt(vt)}),{loadingKeys:(0,ct.L0)(At,lt)}})});return St.catch(function(){}),St}}),(0,ee.Z)((0,E.Z)(ve),"onNodeMouseEnter",function(Ye,st){var lt=ve.props.onMouseEnter;lt==null||lt({event:Ye,node:st})}),(0,ee.Z)((0,E.Z)(ve),"onNodeMouseLeave",function(Ye,st){var lt=ve.props.onMouseLeave;lt==null||lt({event:Ye,node:st})}),(0,ee.Z)((0,E.Z)(ve),"onNodeContextMenu",function(Ye,st){var lt=ve.props.onRightClick;lt&&(Ye.preventDefault(),lt({event:Ye,node:st}))}),(0,ee.Z)((0,E.Z)(ve),"onFocus",function(){var Ye=ve.props.onFocus;ve.setState({focused:!0});for(var st=arguments.length,lt=new Array(st),ft=0;ft<st;ft++)lt[ft]=arguments[ft];Ye==null||Ye.apply(void 0,lt)}),(0,ee.Z)((0,E.Z)(ve),"onBlur",function(){var Ye=ve.props.onBlur;ve.setState({focused:!1}),ve.onActiveChange(null);for(var st=arguments.length,lt=new Array(st),ft=0;ft<st;ft++)lt[ft]=arguments[ft];Ye==null||Ye.apply(void 0,lt)}),(0,ee.Z)((0,E.Z)(ve),"getTreeNodeRequiredProps",function(){var Ye=ve.state,st=Ye.expandedKeys,lt=Ye.selectedKeys,ft=Ye.loadedKeys,Tt=Ye.loadingKeys,St=Ye.checkedKeys,Ot=Ye.halfCheckedKeys,yt=Ye.dragOverNodeKey,Mt=Ye.dropPosition,Et=Ye.keyEntities;return{expandedKeys:st||[],selectedKeys:lt||[],loadedKeys:ft||[],loadingKeys:Tt||[],checkedKeys:St||[],halfCheckedKeys:Ot||[],dragOverNodeKey:yt,dropPosition:Mt,keyEntities:Et}}),(0,ee.Z)((0,E.Z)(ve),"setExpandedKeys",function(Ye){var st=ve.state,lt=st.treeData,ft=st.fieldNames,Tt=(0,ke.oH)(lt,Ye,ft);ve.setUncontrolledState({expandedKeys:Ye,flattenNodes:Tt},!0)}),(0,ee.Z)((0,E.Z)(ve),"onNodeExpand",function(Ye,st){var lt=ve.state.expandedKeys,ft=ve.state,Tt=ft.listChanging,St=ft.fieldNames,Ot=ve.props,yt=Ot.onExpand,Mt=Ot.loadData,Et=st.expanded,xt=st[St.key];if(!Tt){var jt=lt.includes(xt),At=!Et;if((0,ae.ZP)(Et&&jt||!Et&&!jt,"Expand state not sync with index check"),lt=At?(0,ct.L0)(lt,xt):(0,ct._5)(lt,xt),ve.setExpandedKeys(lt),yt==null||yt(lt,{node:st,expanded:At,nativeEvent:Ye.nativeEvent}),At&&Mt){var ht=ve.onNodeLoad(st);ht&&ht.then(function(){var Ct=(0,ke.oH)(ve.state.treeData,lt,St);ve.setUncontrolledState({flattenNodes:Ct})}).catch(function(){var Ct=ve.state.expandedKeys,$t=(0,ct._5)(Ct,xt);ve.setExpandedKeys($t)})}}}),(0,ee.Z)((0,E.Z)(ve),"onListChangeStart",function(){ve.setUncontrolledState({listChanging:!0})}),(0,ee.Z)((0,E.Z)(ve),"onListChangeEnd",function(){setTimeout(function(){ve.setUncontrolledState({listChanging:!1})})}),(0,ee.Z)((0,E.Z)(ve),"onActiveChange",function(Ye){var st=ve.state.activeKey,lt=ve.props,ft=lt.onActiveChange,Tt=lt.itemScrollOffset,St=Tt===void 0?0:Tt;st!==Ye&&(ve.setState({activeKey:Ye}),Ye!==null&&ve.scrollTo({key:Ye,offset:St}),ft==null||ft(Ye))}),(0,ee.Z)((0,E.Z)(ve),"getActiveItem",function(){var Ye=ve.state,st=Ye.activeKey,lt=Ye.flattenNodes;return st===null?null:lt.find(function(ft){var Tt=ft.key;return Tt===st})||null}),(0,ee.Z)((0,E.Z)(ve),"offsetActiveKey",function(Ye){var st=ve.state,lt=st.flattenNodes,ft=st.activeKey,Tt=lt.findIndex(function(yt){var Mt=yt.key;return Mt===ft});Tt===-1&&Ye<0&&(Tt=lt.length),Tt=(Tt+Ye+lt.length)%lt.length;var St=lt[Tt];if(St){var Ot=St.key;ve.onActiveChange(Ot)}else ve.onActiveChange(null)}),(0,ee.Z)((0,E.Z)(ve),"onKeyDown",function(Ye){var st=ve.state,lt=st.activeKey,ft=st.expandedKeys,Tt=st.checkedKeys,St=st.fieldNames,Ot=ve.props,yt=Ot.onKeyDown,Mt=Ot.checkable,Et=Ot.selectable;switch(Ye.which){case ne.Z.UP:{ve.offsetActiveKey(-1),Ye.preventDefault();break}case ne.Z.DOWN:{ve.offsetActiveKey(1),Ye.preventDefault();break}}var xt=ve.getActiveItem();if(xt&&xt.data){var jt=ve.getTreeNodeRequiredProps(),At=xt.data.isLeaf===!1||!!(xt.data[St.children]||[]).length,ht=(0,ke.F)((0,a.Z)((0,a.Z)({},(0,ke.H8)(lt,jt)),{},{data:xt.data,active:!0}));switch(Ye.which){case ne.Z.LEFT:{At&&ft.includes(lt)?ve.onNodeExpand({},ht):xt.parent&&ve.onActiveChange(xt.parent.key),Ye.preventDefault();break}case ne.Z.RIGHT:{At&&!ft.includes(lt)?ve.onNodeExpand({},ht):xt.children&&xt.children.length&&ve.onActiveChange(xt.children[0].key),Ye.preventDefault();break}case ne.Z.ENTER:case ne.Z.SPACE:{Mt&&!ht.disabled&&ht.checkable!==!1&&!ht.disableCheckbox?ve.onNodeCheck({},ht,!Tt.includes(lt)):!Mt&&Et&&!ht.disabled&&ht.selectable!==!1&&ve.onNodeSelect({},ht);break}}}yt==null||yt(Ye)}),(0,ee.Z)((0,E.Z)(ve),"setUncontrolledState",function(Ye){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ve.destroyed){var ft=!1,Tt=!0,St={};Object.keys(Ye).forEach(function(Ot){if(ve.props.hasOwnProperty(Ot)){Tt=!1;return}ft=!0,St[Ot]=Ye[Ot]}),ft&&(!st||Tt)&&ve.setState((0,a.Z)((0,a.Z)({},St),lt))}}),(0,ee.Z)((0,E.Z)(ve),"scrollTo",function(Ye){ve.listRef.current.scrollTo(Ye)}),ve}return(0,z.Z)(xe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Oe=this.props,We=Oe.activeKey,Ue=Oe.itemScrollOffset,Ye=Ue===void 0?0:Ue;We!==void 0&&We!==this.state.activeKey&&(this.setState({activeKey:We}),We!==null&&this.scrollTo({key:We,offset:Ye}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Oe=this.state,We=Oe.focused,Ue=Oe.flattenNodes,Ye=Oe.keyEntities,st=Oe.draggingNodeKey,lt=Oe.activeKey,ft=Oe.dropLevelOffset,Tt=Oe.dropContainerKey,St=Oe.dropTargetKey,Ot=Oe.dropPosition,yt=Oe.dragOverNodeKey,Mt=Oe.indent,Et=this.props,xt=Et.prefixCls,jt=Et.className,At=Et.style,ht=Et.showLine,Ct=Et.focusable,$t=Et.tabIndex,Xt=$t===void 0?0:$t,vt=Et.selectable,Pt=Et.showIcon,_t=Et.icon,Kt=Et.switcherIcon,er=Et.draggable,sr=Et.checkable,yr=Et.checkStrictly,xr=Et.disabled,ur=Et.motion,br=Et.loadData,or=Et.filterTreeNode,fr=Et.height,Jt=Et.itemHeight,Qt=Et.scrollWidth,Vt=Et.virtual,rr=Et.titleRender,ar=Et.dropIndicatorRender,vr=Et.onContextMenu,hr=Et.onScroll,Ir=Et.direction,Or=Et.rootClassName,Lr=Et.rootStyle,Er=(0,re.Z)(this.props,{aria:!0,data:!0}),Zr;er&&((0,gt.Z)(er)==="object"?Zr=er:typeof er=="function"?Zr={nodeDraggable:er}:Zr={});var _r={prefixCls:xt,selectable:vt,showIcon:Pt,icon:_t,switcherIcon:Kt,draggable:Zr,draggingNodeKey:st,checkable:sr,checkStrictly:yr,disabled:xr,keyEntities:Ye,dropLevelOffset:ft,dropContainerKey:Tt,dropTargetKey:St,dropPosition:Ot,dragOverNodeKey:yt,indent:Mt,direction:Ir,dropIndicatorRender:ar,loadData:br,filterTreeNode:or,titleRender:rr,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return se.createElement(ce.k.Provider,{value:_r},se.createElement("div",{className:x()(xt,jt,Or,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(xt,"-show-line"),ht),"".concat(xt,"-focused"),We),"".concat(xt,"-active-focused"),lt!==null)),style:Lr},se.createElement(Qe,(0,ge.Z)({ref:this.listRef,prefixCls:xt,style:At,data:Ue,disabled:xr,selectable:vt,checkable:!!sr,motion:ur,dragging:st!==null,height:fr,itemHeight:Jt,virtual:Vt,focusable:Ct,focused:We,tabIndex:Xt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:vr,onScroll:hr,scrollWidth:Qt},this.getTreeNodeRequiredProps(),Er))))}}],[{key:"getDerivedStateFromProps",value:function(Oe,We){var Ue=We.prevProps,Ye={prevProps:Oe};function st(Xt){return!Ue&&Oe.hasOwnProperty(Xt)||Ue&&Ue[Xt]!==Oe[Xt]}var lt,ft=We.fieldNames;if(st("fieldNames")&&(ft=(0,ke.w$)(Oe.fieldNames),Ye.fieldNames=ft),st("treeData")?lt=Oe.treeData:st("children")&&((0,ae.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),lt=(0,ke.zn)(Oe.children)),lt){Ye.treeData=lt;var Tt=(0,ke.I8)(lt,{fieldNames:ft});Ye.keyEntities=(0,a.Z)((0,ee.Z)({},Ke,rt),Tt.keyEntities)}var St=Ye.keyEntities||We.keyEntities;if(st("expandedKeys")||Ue&&st("autoExpandParent"))Ye.expandedKeys=Oe.autoExpandParent||!Ue&&Oe.defaultExpandParent?(0,ct.r7)(Oe.expandedKeys,St):Oe.expandedKeys;else if(!Ue&&Oe.defaultExpandAll){var Ot=(0,a.Z)({},St);delete Ot[Ke];var yt=[];Object.keys(Ot).forEach(function(Xt){var vt=Ot[Xt];vt.children&&vt.children.length&&yt.push(vt.key)}),Ye.expandedKeys=yt}else!Ue&&Oe.defaultExpandedKeys&&(Ye.expandedKeys=Oe.autoExpandParent||Oe.defaultExpandParent?(0,ct.r7)(Oe.defaultExpandedKeys,St):Oe.defaultExpandedKeys);if(Ye.expandedKeys||delete Ye.expandedKeys,lt||Ye.expandedKeys){var Mt=(0,ke.oH)(lt||We.treeData,Ye.expandedKeys||We.expandedKeys,ft);Ye.flattenNodes=Mt}if(Oe.selectable&&(st("selectedKeys")?Ye.selectedKeys=(0,ct.BT)(Oe.selectedKeys,Oe):!Ue&&Oe.defaultSelectedKeys&&(Ye.selectedKeys=(0,ct.BT)(Oe.defaultSelectedKeys,Oe))),Oe.checkable){var Et;if(st("checkedKeys")?Et=(0,ct.E6)(Oe.checkedKeys)||{}:!Ue&&Oe.defaultCheckedKeys?Et=(0,ct.E6)(Oe.defaultCheckedKeys)||{}:lt&&(Et=(0,ct.E6)(Oe.checkedKeys)||{checkedKeys:We.checkedKeys,halfCheckedKeys:We.halfCheckedKeys}),Et){var xt=Et,jt=xt.checkedKeys,At=jt===void 0?[]:jt,ht=xt.halfCheckedKeys,Ct=ht===void 0?[]:ht;if(!Oe.checkStrictly){var $t=(0,ot.S)(At,!0,St);At=$t.checkedKeys,Ct=$t.halfCheckedKeys}Ye.checkedKeys=At,Ye.halfCheckedKeys=Ct}}return st("loadedKeys")&&(Ye.loadedKeys=Oe.loadedKeys),Ye}}]),xe}(se.Component);(0,ee.Z)(Re,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:me,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(Re,"TreeNode",Ce.Z);var te=Re,de=te},82661:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{BT:function(){return se},E6:function(){return me},L0:function(){return ee},OM:function(){return ae},_5:function(){return oe},r7:function(){return he},wA:function(){return x},yx:function(){return le}});var ge=Ie(94480),gt=Ie(76190),a=Ie(48736),Te=Ie(59301),be=Ie(639),z=Ie(65065),E=Ie(34061),ie=null;function oe(ye,De){if(!ye)return[];var Me=ye.slice(),Be=Me.indexOf(De);return Be>=0&&Me.splice(Be,1),Me}function ee(ye,De){var Me=(ye||[]).slice();return Me.indexOf(De)===-1&&Me.push(De),Me}function le(ye){return ye.split("-")}function x(ye,De){var Me=[],Be=(0,z.Z)(De,ye);function Pe(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ce.forEach(function(Ee){var je=Ee.key,ke=Ee.children;Me.push(je),Pe(ke)})}return Pe(Be.children),Me}function ne(ye){if(ye.parent){var De=le(ye.pos);return Number(De[De.length-1])===ye.parent.children.length-1}return!1}function re(ye){var De=le(ye.pos);return Number(De[De.length-1])===0}function ae(ye,De,Me,Be,Pe,Ce,Ee,je,ke,Le){var Ae,Se=ye.clientX,Ge=ye.clientY,Ze=ye.target.getBoundingClientRect(),Je=Ze.top,at=Ze.height,Fe=(Le==="rtl"?-1:1)*(((Pe==null?void 0:Pe.x)||0)-Se),Ke=(Fe-12)/Be,it=ke.filter(function(de){var Ne;return(Ne=je[de])===null||Ne===void 0||(Ne=Ne.children)===null||Ne===void 0?void 0:Ne.length}),rt=(0,z.Z)(je,Me.eventKey);if(Ge<Je+at/2){var et=Ee.findIndex(function(de){return de.key===rt.key}),$e=et<=0?0:et-1,Xe=Ee[$e].key;rt=(0,z.Z)(je,Xe)}var Ve=rt.key,nt=rt,Qe=rt.key,ct=0,ot=0;if(!it.includes(Ve))for(var qe=0;qe<Ke&&ne(rt);qe+=1)rt=rt.parent,ot+=1;var _e=De.data,Re=rt.node,te=!0;return re(rt)&&rt.level===0&&Ge<Je+at/2&&Ce({dragNode:_e,dropNode:Re,dropPosition:-1})&&rt.key===Me.eventKey?ct=-1:(nt.children||[]).length&&it.includes(Qe)?Ce({dragNode:_e,dropNode:Re,dropPosition:0})?ct=0:te=!1:ot===0?Ke>-1.5?Ce({dragNode:_e,dropNode:Re,dropPosition:1})?ct=1:te=!1:Ce({dragNode:_e,dropNode:Re,dropPosition:0})?ct=0:Ce({dragNode:_e,dropNode:Re,dropPosition:1})?ct=1:te=!1:Ce({dragNode:_e,dropNode:Re,dropPosition:1})?ct=1:te=!1,{dropPosition:ct,dropLevelOffset:ot,dropTargetKey:rt.key,dropTargetPos:rt.pos,dragOverNodeKey:Qe,dropContainerKey:ct===0?null:((Ae=rt.parent)===null||Ae===void 0?void 0:Ae.key)||null,dropAllowed:te}}function se(ye,De){if(ye){var Me=De.multiple;return Me?ye.slice():ye.length?[ye[0]]:ye}}var ce=function(De){return De};function pe(ye,De){if(!ye)return[];var Me=De||{},Be=Me.processProps,Pe=Be===void 0?ce:Be,Ce=Array.isArray(ye)?ye:[ye];return Ce.map(function(Ee){var je=Ee.children,ke=_objectWithoutProperties(Ee,ie),Le=pe(je,De);return React.createElement(TreeNode,_extends({key:ke.key},Pe(ke)),Le)})}function me(ye){if(!ye)return null;var De;if(Array.isArray(ye))De={checkedKeys:ye,halfCheckedKeys:void 0};else if((0,gt.Z)(ye)==="object")De={checkedKeys:ye.checked||void 0,halfCheckedKeys:ye.halfChecked||void 0};else return(0,a.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return De}function he(ye,De){var Me=new Set;function Be(Pe){if(!Me.has(Pe)){var Ce=(0,z.Z)(De,Pe);if(Ce){Me.add(Pe);var Ee=Ce.parent,je=Ce.node;je.disabled||Ee&&Be(Ee.key)}}}return(ye||[]).forEach(function(Pe){Be(Pe)}),(0,ge.Z)(Me)}},34643:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{S:function(){return E}});var ge=Ie(48736),gt=Ie(65065);function a(ie,oe){var ee=new Set;return ie.forEach(function(le){oe.has(le)||ee.add(le)}),ee}function Te(ie){var oe=ie||{},ee=oe.disabled,le=oe.disableCheckbox,x=oe.checkable;return!!(ee||le)||x===!1}function be(ie,oe,ee,le){for(var x=new Set(ie),ne=new Set,re=0;re<=ee;re+=1){var ae=oe.get(re)||new Set;ae.forEach(function(me){var he=me.key,ye=me.node,De=me.children,Me=De===void 0?[]:De;x.has(he)&&!le(ye)&&Me.filter(function(Be){return!le(Be.node)}).forEach(function(Be){x.add(Be.key)})})}for(var se=new Set,ce=ee;ce>=0;ce-=1){var pe=oe.get(ce)||new Set;pe.forEach(function(me){var he=me.parent,ye=me.node;if(!(le(ye)||!me.parent||se.has(me.parent.key))){if(le(me.parent.node)){se.add(he.key);return}var De=!0,Me=!1;(he.children||[]).filter(function(Be){return!le(Be.node)}).forEach(function(Be){var Pe=Be.key,Ce=x.has(Pe);De&&!Ce&&(De=!1),!Me&&(Ce||ne.has(Pe))&&(Me=!0)}),De&&x.add(he.key),Me&&ne.add(he.key),se.add(he.key)}})}return{checkedKeys:Array.from(x),halfCheckedKeys:Array.from(a(ne,x))}}function z(ie,oe,ee,le,x){for(var ne=new Set(ie),re=new Set(oe),ae=0;ae<=le;ae+=1){var se=ee.get(ae)||new Set;se.forEach(function(he){var ye=he.key,De=he.node,Me=he.children,Be=Me===void 0?[]:Me;!ne.has(ye)&&!re.has(ye)&&!x(De)&&Be.filter(function(Pe){return!x(Pe.node)}).forEach(function(Pe){ne.delete(Pe.key)})})}re=new Set;for(var ce=new Set,pe=le;pe>=0;pe-=1){var me=ee.get(pe)||new Set;me.forEach(function(he){var ye=he.parent,De=he.node;if(!(x(De)||!he.parent||ce.has(he.parent.key))){if(x(he.parent.node)){ce.add(ye.key);return}var Me=!0,Be=!1;(ye.children||[]).filter(function(Pe){return!x(Pe.node)}).forEach(function(Pe){var Ce=Pe.key,Ee=ne.has(Ce);Me&&!Ee&&(Me=!1),!Be&&(Ee||re.has(Ce))&&(Be=!0)}),Me||ne.delete(ye.key),Be&&re.add(ye.key),ce.add(ye.key)}})}return{checkedKeys:Array.from(ne),halfCheckedKeys:Array.from(a(re,ne))}}function E(ie,oe,ee,le){var x=[],ne;le?ne=le:ne=Te;var re=new Set(ie.filter(function(pe){var me=!!(0,gt.Z)(ee,pe);return me||x.push(pe),me})),ae=new Map,se=0;Object.keys(ee).forEach(function(pe){var me=ee[pe],he=me.level,ye=ae.get(he);ye||(ye=new Set,ae.set(he,ye)),ye.add(me),se=Math.max(se,he)}),(0,ge.ZP)(!x.length,"Tree missing follow keys: ".concat(x.slice(0,100).map(function(pe){return"'".concat(pe,"'")}).join(", ")));var ce;return oe===!0?ce=be(re,ae,se,ne):ce=z(re,oe.halfCheckedKeys,ae,se,ne),ce}},65065:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ge}});function ge(gt,a){return gt[a]}},34061:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{F:function(){return he},H8:function(){return me},I8:function(){return pe},km:function(){return x},oH:function(){return se},w$:function(){return ne},zn:function(){return ae}});var ge=Ie(76190),gt=Ie(94480),a=Ie(33885),Te=Ie(75931),be=Ie(11592),z=Ie(2738),E=Ie(48736),ie=Ie(65065),oe=["children"];function ee(ye,De){return"".concat(ye,"-").concat(De)}function le(ye){return ye&&ye.type&&ye.type.isTreeNode}function x(ye,De){return ye!=null?ye:De}function ne(ye){var De=ye||{},Me=De.title,Be=De._title,Pe=De.key,Ce=De.children,Ee=Me||"title";return{title:Ee,_title:Be||[Ee],key:Pe||"key",children:Ce||"children"}}function re(ye,De){var Me=new Map;function Be(Pe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Pe||[]).forEach(function(Ee){var je=Ee[De.key],ke=Ee[De.children];warning(je!=null,"Tree node must have a certain key: [".concat(Ce).concat(je,"]"));var Le=String(je);warning(!Me.has(Le)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(Le)),Me.set(Le,!0),Be(ke,"".concat(Ce).concat(Le," > "))})}Be(ye)}function ae(ye){function De(Me){var Be=(0,be.Z)(Me);return Be.map(function(Pe){if(!le(Pe))return(0,E.ZP)(!Pe,"Tree/TreeNode can only accept TreeNode as children."),null;var Ce=Pe.key,Ee=Pe.props,je=Ee.children,ke=(0,Te.Z)(Ee,oe),Le=(0,a.Z)({key:Ce},ke),Ae=De(je);return Ae.length&&(Le.children=Ae),Le}).filter(function(Pe){return Pe})}return De(ye)}function se(ye,De,Me){var Be=ne(Me),Pe=Be._title,Ce=Be.key,Ee=Be.children,je=new Set(De===!0?[]:De),ke=[];function Le(Ae){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(Ge,Ze){for(var Je=ee(Se?Se.pos:"0",Ze),at=x(Ge[Ce],Je),Fe,Ke=0;Ke<Pe.length;Ke+=1){var it=Pe[Ke];if(Ge[it]!==void 0){Fe=Ge[it];break}}var rt=Object.assign((0,z.Z)(Ge,[].concat((0,gt.Z)(Pe),[Ce,Ee])),{title:Fe,key:at,parent:Se,pos:Je,children:null,data:Ge,isStart:[].concat((0,gt.Z)(Se?Se.isStart:[]),[Ze===0]),isEnd:[].concat((0,gt.Z)(Se?Se.isEnd:[]),[Ze===Ae.length-1])});return ke.push(rt),De===!0||je.has(at)?rt.children=Le(Ge[Ee]||[],rt):rt.children=[],rt})}return Le(ye),ke}function ce(ye,De,Me){var Be={};(0,ge.Z)(Me)==="object"?Be=Me:Be={externalGetKey:Me},Be=Be||{};var Pe=Be,Ce=Pe.childrenPropName,Ee=Pe.externalGetKey,je=Pe.fieldNames,ke=ne(je),Le=ke.key,Ae=ke.children,Se=Ce||Ae,Ge;Ee?typeof Ee=="string"?Ge=function(at){return at[Ee]}:typeof Ee=="function"&&(Ge=function(at){return Ee(at)}):Ge=function(at,Fe){return x(at[Le],Fe)};function Ze(Je,at,Fe,Ke){var it=Je?Je[Se]:ye,rt=Je?ee(Fe.pos,at):"0",et=Je?[].concat((0,gt.Z)(Ke),[Je]):[];if(Je){var $e=Ge(Je,rt),Xe={node:Je,index:at,pos:rt,key:$e,parentPos:Fe.node?Fe.pos:null,level:Fe.level+1,nodes:et};De(Xe)}it&&it.forEach(function(Ve,nt){Ze(Ve,nt,{node:Je,pos:rt,level:Fe?Fe.level+1:-1},et)})}Ze(null)}function pe(ye){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=De.initWrapper,Be=De.processEntity,Pe=De.onProcessFinished,Ce=De.externalGetKey,Ee=De.childrenPropName,je=De.fieldNames,ke=arguments.length>2?arguments[2]:void 0,Le=Ce||ke,Ae={},Se={},Ge={posEntities:Ae,keyEntities:Se};return Me&&(Ge=Me(Ge)||Ge),ce(ye,function(Ze){var Je=Ze.node,at=Ze.index,Fe=Ze.pos,Ke=Ze.key,it=Ze.parentPos,rt=Ze.level,et=Ze.nodes,$e={node:Je,nodes:et,index:at,key:Ke,pos:Fe,level:rt},Xe=x(Ke,Fe);Ae[Fe]=$e,Se[Xe]=$e,$e.parent=Ae[it],$e.parent&&($e.parent.children=$e.parent.children||[],$e.parent.children.push($e)),Be&&Be($e,Ge)},{externalGetKey:Le,childrenPropName:Ee,fieldNames:je}),Pe&&Pe(Ge),Ge}function me(ye,De){var Me=De.expandedKeys,Be=De.selectedKeys,Pe=De.loadedKeys,Ce=De.loadingKeys,Ee=De.checkedKeys,je=De.halfCheckedKeys,ke=De.dragOverNodeKey,Le=De.dropPosition,Ae=De.keyEntities,Se=(0,ie.Z)(Ae,ye),Ge={eventKey:ye,expanded:Me.indexOf(ye)!==-1,selected:Be.indexOf(ye)!==-1,loaded:Pe.indexOf(ye)!==-1,loading:Ce.indexOf(ye)!==-1,checked:Ee.indexOf(ye)!==-1,halfChecked:je.indexOf(ye)!==-1,pos:String(Se?Se.pos:""),dragOver:ke===ye&&Le===0,dragOverGapTop:ke===ye&&Le===-1,dragOverGapBottom:ke===ye&&Le===1};return Ge}function he(ye){var De=ye.data,Me=ye.expanded,Be=ye.selected,Pe=ye.checked,Ce=ye.loaded,Ee=ye.loading,je=ye.halfChecked,ke=ye.dragOver,Le=ye.dragOverGapTop,Ae=ye.dragOverGapBottom,Se=ye.pos,Ge=ye.active,Ze=ye.eventKey,Je=(0,a.Z)((0,a.Z)({},De),{},{expanded:Me,selected:Be,checked:Pe,loaded:Ce,loading:Ee,halfChecked:je,dragOver:ke,dragOverGapTop:Le,dragOverGapBottom:Ae,pos:Se,active:Ge,key:Ze});return"props"in Je||Object.defineProperty(Je,"props",{get:function(){return(0,E.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ye}}),Je}},48911:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return _e}});var ge=Ie(54476),gt=Ie(76190),a=Ie(33885),Te=Ie(20068),be=Ie(42978),z=Ie(75931),E=Ie(92310),ie=Ie.n(E),oe=Ie(29301),ee=Ie(70425),le=Ie(34280),x=Ie(59301),ne=Ie(4676),re=x.forwardRef(function(Re,te){var de=Re.height,Ne=Re.offsetY,ze=Re.offsetX,xe=Re.children,ve=Re.prefixCls,Oe=Re.onInnerResize,We=Re.innerProps,Ue=Re.rtl,Ye=Re.extra,st={},lt={display:"flex",flexDirection:"column"};return Ne!==void 0&&(st={height:de,position:"relative",overflow:"hidden"},lt=(0,a.Z)((0,a.Z)({},lt),{},(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({transform:"translateY(".concat(Ne,"px)")},Ue?"marginRight":"marginLeft",-ze),"position","absolute"),"left",0),"right",0),"top",0))),x.createElement("div",{style:st},x.createElement(oe.Z,{onResize:function(Tt){var St=Tt.offsetHeight;St&&Oe&&Oe()}},x.createElement("div",(0,ge.Z)({style:lt,className:ie()((0,Te.Z)({},"".concat(ve,"-holder-inner"),ve)),ref:te},We),xe,Ye)))});re.displayName="Filler";var ae=re;function se(Re){var te=Re.children,de=Re.setRef,Ne=x.useCallback(function(ze){de(ze)},[]);return x.cloneElement(te,{ref:Ne})}function ce(Re,te,de,Ne,ze,xe,ve,Oe){var We=Oe.getKey;return Re.slice(te,de+1).map(function(Ue,Ye){var st=te+Ye,lt=ve(Ue,st,{style:{width:Ne},offsetX:ze}),ft=We(Ue);return x.createElement(se,{key:ft,setRef:function(St){return xe(Ue,St)}},lt)})}function pe(Re,te,de,Ne){var ze=de-Re,xe=te-de,ve=Math.min(ze,xe)*2;if(Ne<=ve){var Oe=Math.floor(Ne/2);return Ne%2?de+Oe+1:de-Oe}return ze>xe?de-(Ne-xe):de+(Ne-ze)}function me(Re,te,de){var Ne=Re.length,ze=te.length,xe,ve;if(Ne===0&&ze===0)return null;Ne<ze?(xe=Re,ve=te):(xe=te,ve=Re);var Oe={__EMPTY_ITEM__:!0};function We(Tt){return Tt!==void 0?de(Tt):Oe}for(var Ue=null,Ye=Math.abs(Ne-ze)!==1,st=0;st<ve.length;st+=1){var lt=We(xe[st]),ft=We(ve[st]);if(lt!==ft){Ue=st,Ye=Ye||lt!==We(ve[st+1]);break}}return Ue===null?null:{index:Ue,multiple:Ye}}function he(Re,te,de){var Ne=x.useState(Re),ze=(0,be.Z)(Ne,2),xe=ze[0],ve=ze[1],Oe=x.useState(null),We=(0,be.Z)(Oe,2),Ue=We[0],Ye=We[1];return x.useEffect(function(){var st=me(xe||[],Re||[],te);(st==null?void 0:st.index)!==void 0&&(de==null||de(st.index),Ye(Re[st.index])),ve(Re)},[Re]),[Ue]}var ye=Ie(16089),De=(typeof navigator=="undefined"?"undefined":(0,gt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Me=De,Be=function(Re,te,de,Ne){var ze=(0,x.useRef)(!1),xe=(0,x.useRef)(null);function ve(){clearTimeout(xe.current),ze.current=!0,xe.current=setTimeout(function(){ze.current=!1},50)}var Oe=(0,x.useRef)({top:Re,bottom:te,left:de,right:Ne});return Oe.current.top=Re,Oe.current.bottom=te,Oe.current.left=de,Oe.current.right=Ne,function(We,Ue){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,st=We?Ue<0&&Oe.current.left||Ue>0&&Oe.current.right:Ue<0&&Oe.current.top||Ue>0&&Oe.current.bottom;return Ye&&st?(clearTimeout(xe.current),ze.current=!1):(!st||ze.current)&&ve(),!ze.current&&st}};function Pe(Re,te,de,Ne,ze,xe,ve){var Oe=(0,x.useRef)(0),We=(0,x.useRef)(null),Ue=(0,x.useRef)(null),Ye=(0,x.useRef)(!1),st=Be(te,de,Ne,ze);function lt(Mt,Et){if(ye.Z.cancel(We.current),!st(!1,Et)){var xt=Mt;if(!xt._virtualHandled)xt._virtualHandled=!0;else return;Oe.current+=Et,Ue.current=Et,Me||xt.preventDefault(),We.current=(0,ye.Z)(function(){var jt=Ye.current?10:1;ve(Oe.current*jt,!1),Oe.current=0})}}function ft(Mt,Et){ve(Et,!0),Me||Mt.preventDefault()}var Tt=(0,x.useRef)(null),St=(0,x.useRef)(null);function Ot(Mt){if(Re){ye.Z.cancel(St.current),St.current=(0,ye.Z)(function(){Tt.current=null},2);var Et=Mt.deltaX,xt=Mt.deltaY,jt=Mt.shiftKey,At=Et,ht=xt;(Tt.current==="sx"||!Tt.current&&jt&&xt&&!Et)&&(At=xt,ht=0,Tt.current="sx");var Ct=Math.abs(At),$t=Math.abs(ht);Tt.current===null&&(Tt.current=xe&&Ct>$t?"x":"y"),Tt.current==="y"?lt(Mt,ht):ft(Mt,At)}}function yt(Mt){Re&&(Ye.current=Mt.detail===Ue.current)}return[Ot,yt]}function Ce(Re,te,de,Ne){var ze=x.useMemo(function(){return[new Map,[]]},[Re,de.id,Ne]),xe=(0,be.Z)(ze,2),ve=xe[0],Oe=xe[1],We=function(Ye){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ye,lt=ve.get(Ye),ft=ve.get(st);if(lt===void 0||ft===void 0)for(var Tt=Re.length,St=Oe.length;St<Tt;St+=1){var Ot,yt=Re[St],Mt=te(yt);ve.set(Mt,St);var Et=(Ot=de.get(Mt))!==null&&Ot!==void 0?Ot:Ne;if(Oe[St]=(Oe[St-1]||0)+Et,Mt===Ye&&(lt=St),Mt===st&&(ft=St),lt!==void 0&&ft!==void 0)break}return{top:Oe[lt-1]||0,bottom:Oe[ft]}};return We}var Ee=Ie(67732),je=Ie(83652),ke=function(){function Re(){(0,Ee.Z)(this,Re),(0,Te.Z)(this,"maps",void 0),(0,Te.Z)(this,"id",0),(0,Te.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,je.Z)(Re,[{key:"set",value:function(de,Ne){this.diffRecords.set(de,this.maps[de]),this.maps[de]=Ne,this.id+=1}},{key:"get",value:function(de){return this.maps[de]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Re}(),Le=ke;function Ae(Re){var te=parseFloat(Re);return isNaN(te)?0:te}function Se(Re,te,de){var Ne=x.useState(0),ze=(0,be.Z)(Ne,2),xe=ze[0],ve=ze[1],Oe=(0,x.useRef)(new Map),We=(0,x.useRef)(new Le),Ue=(0,x.useRef)(0);function Ye(){Ue.current+=1}function st(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ye();var Tt=function(){var yt=!1;Oe.current.forEach(function(Mt,Et){if(Mt&&Mt.offsetParent){var xt=Mt.offsetHeight,jt=getComputedStyle(Mt),At=jt.marginTop,ht=jt.marginBottom,Ct=Ae(At),$t=Ae(ht),Xt=xt+Ct+$t;We.current.get(Et)!==Xt&&(We.current.set(Et,Xt),yt=!0)}}),yt&&ve(function(Mt){return Mt+1})};if(ft)Tt();else{Ue.current+=1;var St=Ue.current;Promise.resolve().then(function(){St===Ue.current&&Tt()})}}function lt(ft,Tt){var St=Re(ft),Ot=Oe.current.get(St);Tt?(Oe.current.set(St,Tt),st()):Oe.current.delete(St),!Ot!=!Tt&&(Tt?te==null||te(ft):de==null||de(ft))}return(0,x.useEffect)(function(){return Ye},[]),[lt,st,We.current,xe]}var Ge=14/15;function Ze(Re,te,de){var Ne=(0,x.useRef)(!1),ze=(0,x.useRef)(0),xe=(0,x.useRef)(0),ve=(0,x.useRef)(null),Oe=(0,x.useRef)(null),We,Ue=function(ft){if(Ne.current){var Tt=Math.ceil(ft.touches[0].pageX),St=Math.ceil(ft.touches[0].pageY),Ot=ze.current-Tt,yt=xe.current-St,Mt=Math.abs(Ot)>Math.abs(yt);Mt?ze.current=Tt:xe.current=St;var Et=de(Mt,Mt?Ot:yt,!1,ft);Et&&ft.preventDefault(),clearInterval(Oe.current),Et&&(Oe.current=setInterval(function(){Mt?Ot*=Ge:yt*=Ge;var xt=Math.floor(Mt?Ot:yt);(!de(Mt,xt,!0)||Math.abs(xt)<=.1)&&clearInterval(Oe.current)},16))}},Ye=function(){Ne.current=!1,We()},st=function(ft){We(),ft.touches.length===1&&!Ne.current&&(Ne.current=!0,ze.current=Math.ceil(ft.touches[0].pageX),xe.current=Math.ceil(ft.touches[0].pageY),ve.current=ft.target,ve.current.addEventListener("touchmove",Ue,{passive:!1}),ve.current.addEventListener("touchend",Ye,{passive:!0}))};We=function(){ve.current&&(ve.current.removeEventListener("touchmove",Ue),ve.current.removeEventListener("touchend",Ye))},(0,le.Z)(function(){return Re&&te.current.addEventListener("touchstart",st,{passive:!0}),function(){var lt;(lt=te.current)===null||lt===void 0||lt.removeEventListener("touchstart",st),We(),clearInterval(Oe.current)}},[Re])}function Je(Re){return Math.floor(Math.pow(Re,.5))}function at(Re,te){var de="touches"in Re?Re.touches[0]:Re;return de[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function Fe(Re,te,de){x.useEffect(function(){var Ne=te.current;if(Re&&Ne){var ze=!1,xe,ve,Oe=function(){ye.Z.cancel(xe)},We=function lt(){Oe(),xe=(0,ye.Z)(function(){de(ve),lt()})},Ue=function(){ze=!1,Oe()},Ye=function(ft){if(!(ft.target.draggable||ft.button!==0)){var Tt=ft;Tt._virtualHandled||(Tt._virtualHandled=!0,ze=!0)}},st=function(ft){if(ze){var Tt=at(ft,!1),St=Ne.getBoundingClientRect(),Ot=St.top,yt=St.bottom;if(Tt<=Ot){var Mt=Ot-Tt;ve=-Je(Mt),We()}else if(Tt>=yt){var Et=Tt-yt;ve=Je(Et),We()}else Oe()}};return Ne.addEventListener("mousedown",Ye),Ne.ownerDocument.addEventListener("mouseup",Ue),Ne.ownerDocument.addEventListener("mousemove",st),Ne.ownerDocument.addEventListener("dragend",Ue),function(){Ne.removeEventListener("mousedown",Ye),Ne.ownerDocument.removeEventListener("mouseup",Ue),Ne.ownerDocument.removeEventListener("mousemove",st),Ne.ownerDocument.removeEventListener("dragend",Ue),Oe()}}},[Re])}var Ke=10;function it(Re,te,de,Ne,ze,xe,ve,Oe){var We=x.useRef(),Ue=x.useState(null),Ye=(0,be.Z)(Ue,2),st=Ye[0],lt=Ye[1];return(0,le.Z)(function(){if(st&&st.times<Ke){if(!Re.current){lt(function(ur){return(0,a.Z)({},ur)});return}xe();var ft=st.targetAlign,Tt=st.originAlign,St=st.index,Ot=st.offset,yt=Re.current.clientHeight,Mt=!1,Et=ft,xt=null;if(yt){for(var jt=ft||Tt,At=0,ht=0,Ct=0,$t=Math.min(te.length-1,St),Xt=0;Xt<=$t;Xt+=1){var vt=ze(te[Xt]);ht=At;var Pt=de.get(vt);Ct=ht+(Pt===void 0?Ne:Pt),At=Ct}for(var _t=jt==="top"?Ot:yt-Ot,Kt=$t;Kt>=0;Kt-=1){var er=ze(te[Kt]),sr=de.get(er);if(sr===void 0){Mt=!0;break}if(_t-=sr,_t<=0)break}switch(jt){case"top":xt=ht-Ot;break;case"bottom":xt=Ct-yt+Ot;break;default:{var yr=Re.current.scrollTop,xr=yr+yt;ht<yr?Et="top":Ct>xr&&(Et="bottom")}}xt!==null&&ve(xt),xt!==st.lastTop&&(Mt=!0)}Mt&<((0,a.Z)((0,a.Z)({},st),{},{times:st.times+1,targetAlign:Et,lastTop:xt}))}},[st,Re.current]),function(ft){if(ft==null){Oe();return}if(ye.Z.cancel(We.current),typeof ft=="number")ve(ft);else if(ft&&(0,gt.Z)(ft)==="object"){var Tt,St=ft.align;"index"in ft?Tt=ft.index:Tt=te.findIndex(function(Mt){return ze(Mt)===ft.key});var Ot=ft.offset,yt=Ot===void 0?0:Ot;lt({times:0,index:Tt,offset:yt,originAlign:St})}}}var rt=x.forwardRef(function(Re,te){var de=Re.prefixCls,Ne=Re.rtl,ze=Re.scrollOffset,xe=Re.scrollRange,ve=Re.onStartMove,Oe=Re.onStopMove,We=Re.onScroll,Ue=Re.horizontal,Ye=Re.spinSize,st=Re.containerSize,lt=Re.style,ft=Re.thumbStyle,Tt=Re.showScrollBar,St=x.useState(!1),Ot=(0,be.Z)(St,2),yt=Ot[0],Mt=Ot[1],Et=x.useState(null),xt=(0,be.Z)(Et,2),jt=xt[0],At=xt[1],ht=x.useState(null),Ct=(0,be.Z)(ht,2),$t=Ct[0],Xt=Ct[1],vt=!Ne,Pt=x.useRef(),_t=x.useRef(),Kt=x.useState(Tt),er=(0,be.Z)(Kt,2),sr=er[0],yr=er[1],xr=x.useRef(),ur=function(){Tt===!0||Tt===!1||(clearTimeout(xr.current),yr(!0),xr.current=setTimeout(function(){yr(!1)},3e3))},br=xe-st||0,or=st-Ye||0,fr=x.useMemo(function(){if(ze===0||br===0)return 0;var Or=ze/br;return Or*or},[ze,br,or]),Jt=function(Lr){Lr.stopPropagation(),Lr.preventDefault()},Qt=x.useRef({top:fr,dragging:yt,pageY:jt,startTop:$t});Qt.current={top:fr,dragging:yt,pageY:jt,startTop:$t};var Vt=function(Lr){Mt(!0),At(at(Lr,Ue)),Xt(Qt.current.top),ve(),Lr.stopPropagation(),Lr.preventDefault()};x.useEffect(function(){var Or=function(_r){_r.preventDefault()},Lr=Pt.current,Er=_t.current;return Lr.addEventListener("touchstart",Or,{passive:!1}),Er.addEventListener("touchstart",Vt,{passive:!1}),function(){Lr.removeEventListener("touchstart",Or),Er.removeEventListener("touchstart",Vt)}},[]);var rr=x.useRef();rr.current=br;var ar=x.useRef();ar.current=or,x.useEffect(function(){if(yt){var Or,Lr=function(_r){var qt=Qt.current,nr=qt.dragging,jr=qt.pageY,Tr=qt.startTop;ye.Z.cancel(Or);var It=Pt.current.getBoundingClientRect(),Ft=st/(Ue?It.width:It.height);if(nr){var bt=(at(_r,Ue)-jr)*Ft,kt=Tr;!vt&&Ue?kt-=bt:kt+=bt;var wt=rr.current,Rt=ar.current,pt=Rt?kt/Rt:0,Lt=Math.ceil(pt*wt);Lt=Math.max(Lt,0),Lt=Math.min(Lt,wt),Or=(0,ye.Z)(function(){We(Lt,Ue)})}},Er=function(){Mt(!1),Oe()};return window.addEventListener("mousemove",Lr,{passive:!0}),window.addEventListener("touchmove",Lr,{passive:!0}),window.addEventListener("mouseup",Er,{passive:!0}),window.addEventListener("touchend",Er,{passive:!0}),function(){window.removeEventListener("mousemove",Lr),window.removeEventListener("touchmove",Lr),window.removeEventListener("mouseup",Er),window.removeEventListener("touchend",Er),ye.Z.cancel(Or)}}},[yt]),x.useEffect(function(){return ur(),function(){clearTimeout(xr.current)}},[ze]),x.useImperativeHandle(te,function(){return{delayHidden:ur}});var vr="".concat(de,"-scrollbar"),hr={position:"absolute",visibility:sr?null:"hidden"},Ir={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ue?(Object.assign(hr,{height:8,left:0,right:0,bottom:0}),Object.assign(Ir,(0,Te.Z)({height:"100%",width:Ye},vt?"left":"right",fr))):(Object.assign(hr,(0,Te.Z)({width:8,top:0,bottom:0},vt?"right":"left",0)),Object.assign(Ir,{width:"100%",height:Ye,top:fr})),x.createElement("div",{ref:Pt,className:ie()(vr,(0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(vr,"-horizontal"),Ue),"".concat(vr,"-vertical"),!Ue),"".concat(vr,"-visible"),sr)),style:(0,a.Z)((0,a.Z)({},hr),lt),onMouseDown:Jt,onMouseMove:ur},x.createElement("div",{ref:_t,className:ie()("".concat(vr,"-thumb"),(0,Te.Z)({},"".concat(vr,"-thumb-moving"),yt)),style:(0,a.Z)((0,a.Z)({},Ir),ft),onMouseDown:Vt}))}),et=rt,$e=20;function Xe(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,de=Re/te*Re;return isNaN(de)&&(de=0),de=Math.max(de,$e),Math.floor(de)}var Ve=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],nt=[],Qe={overflowY:"auto",overflowAnchor:"none"};function ct(Re,te){var de=Re.prefixCls,Ne=de===void 0?"rc-virtual-list":de,ze=Re.className,xe=Re.height,ve=Re.itemHeight,Oe=Re.fullHeight,We=Oe===void 0?!0:Oe,Ue=Re.style,Ye=Re.data,st=Re.children,lt=Re.itemKey,ft=Re.virtual,Tt=Re.direction,St=Re.scrollWidth,Ot=Re.component,yt=Ot===void 0?"div":Ot,Mt=Re.onScroll,Et=Re.onVirtualScroll,xt=Re.onVisibleChange,jt=Re.innerProps,At=Re.extraRender,ht=Re.styles,Ct=Re.showScrollBar,$t=Ct===void 0?"optional":Ct,Xt=(0,z.Z)(Re,Ve),vt=x.useCallback(function(gr){return typeof lt=="function"?lt(gr):gr==null?void 0:gr[lt]},[lt]),Pt=Se(vt,null,null),_t=(0,be.Z)(Pt,4),Kt=_t[0],er=_t[1],sr=_t[2],yr=_t[3],xr=!!(ft!==!1&&xe&&ve),ur=x.useMemo(function(){return Object.values(sr.maps).reduce(function(gr,Ar){return gr+Ar},0)},[sr.id,sr.maps]),br=xr&&Ye&&(Math.max(ve*Ye.length,ur)>xe||!!St),or=Tt==="rtl",fr=ie()(Ne,(0,Te.Z)({},"".concat(Ne,"-rtl"),or),ze),Jt=Ye||nt,Qt=(0,x.useRef)(),Vt=(0,x.useRef)(),rr=(0,x.useRef)(),ar=(0,x.useState)(0),vr=(0,be.Z)(ar,2),hr=vr[0],Ir=vr[1],Or=(0,x.useState)(0),Lr=(0,be.Z)(Or,2),Er=Lr[0],Zr=Lr[1],_r=(0,x.useState)(!1),qt=(0,be.Z)(_r,2),nr=qt[0],jr=qt[1],Tr=function(){jr(!0)},It=function(){jr(!1)},Ft={getKey:vt};function bt(gr){Ir(function(Ar){var Cr;typeof gr=="function"?Cr=gr(Ar):Cr=gr;var pr=Qr(Cr);return Qt.current.scrollTop=pr,pr})}var kt=(0,x.useRef)({start:0,end:Jt.length}),wt=(0,x.useRef)(),Rt=he(Jt,vt),pt=(0,be.Z)(Rt,1),Lt=pt[0];wt.current=Lt;var zt=x.useMemo(function(){if(!xr)return{scrollHeight:void 0,start:0,end:Jt.length-1,offset:void 0};if(!br){var gr;return{scrollHeight:((gr=Vt.current)===null||gr===void 0?void 0:gr.offsetHeight)||0,start:0,end:Jt.length-1,offset:void 0}}for(var Ar=0,Cr,pr,zr,Kr=Jt.length,wr=0;wr<Kr;wr+=1){var mr=Jt[wr],kr=vt(mr),Fr=sr.get(kr),cn=Ar+(Fr===void 0?ve:Fr);cn>=hr&&Cr===void 0&&(Cr=wr,pr=Ar),cn>hr+xe&&zr===void 0&&(zr=wr),Ar=cn}return Cr===void 0&&(Cr=0,pr=0,zr=Math.ceil(xe/ve)),zr===void 0&&(zr=Jt.length-1),zr=Math.min(zr+1,Jt.length-1),{scrollHeight:Ar,start:Cr,end:zr,offset:pr}},[br,xr,hr,Jt,yr,xe]),Gt=zt.scrollHeight,Ht=zt.start,Nt=zt.end,Bt=zt.offset;kt.current.start=Ht,kt.current.end=Nt,x.useLayoutEffect(function(){var gr=sr.getRecord();if(gr.size===1){var Ar=Array.from(gr.keys())[0],Cr=gr.get(Ar),pr=Jt[Ht];if(pr&&Cr===void 0){var zr=vt(pr);if(zr===Ar){var Kr=sr.get(Ar),wr=Kr-ve;bt(function(mr){return mr+wr})}}}sr.resetRecord()},[Gt]);var Ut=x.useState({width:0,height:xe}),cr=(0,be.Z)(Ut,2),lr=cr[0],dr=cr[1],Br=function(Ar){dr({width:Ar.offsetWidth,height:Ar.offsetHeight})},Wr=(0,x.useRef)(),$r=(0,x.useRef)(),Nr=x.useMemo(function(){return Xe(lr.width,St)},[lr.width,St]),Dr=x.useMemo(function(){return Xe(lr.height,Gt)},[lr.height,Gt]),Rr=Gt-xe,Ur=(0,x.useRef)(Rr);Ur.current=Rr;function Qr(gr){var Ar=gr;return Number.isNaN(Ur.current)||(Ar=Math.min(Ar,Ur.current)),Ar=Math.max(Ar,0),Ar}var Vr=hr<=0,Jr=hr>=Rr,Pr=Er<=0,tn=Er>=St,Gr=Be(Vr,Jr,Pr,tn),fn=function(){return{x:or?-Er:Er,y:hr}},pn=(0,x.useRef)(fn()),ln=(0,ee.zX)(function(gr){if(Et){var Ar=(0,a.Z)((0,a.Z)({},fn()),gr);(pn.current.x!==Ar.x||pn.current.y!==Ar.y)&&(Et(Ar),pn.current=Ar)}});function un(gr,Ar){var Cr=gr;Ar?((0,ne.flushSync)(function(){Zr(Cr)}),ln()):bt(Cr)}function yn(gr){var Ar=gr.currentTarget.scrollTop;Ar!==hr&&bt(Ar),Mt==null||Mt(gr),ln()}var sn=function(Ar){var Cr=Ar,pr=St?St-lr.width:0;return Cr=Math.max(Cr,0),Cr=Math.min(Cr,pr),Cr},dn=(0,ee.zX)(function(gr,Ar){Ar?((0,ne.flushSync)(function(){Zr(function(Cr){var pr=Cr+(or?-gr:gr);return sn(pr)})}),ln()):bt(function(Cr){var pr=Cr+gr;return pr})}),en=Pe(xr,Vr,Jr,Pr,tn,!!St,dn),mn=(0,be.Z)(en,2),bn=mn[0],_n=mn[1];Ze(xr,Qt,function(gr,Ar,Cr,pr){var zr=pr;return Gr(gr,Ar,Cr)?!1:!zr||!zr._virtualHandled?(zr&&(zr._virtualHandled=!0),bn({preventDefault:function(){},deltaX:gr?Ar:0,deltaY:gr?0:Ar}),!0):!1}),Fe(br,Qt,function(gr){bt(function(Ar){return Ar+gr})}),(0,le.Z)(function(){function gr(Cr){var pr=Vr&&Cr.detail<0,zr=Jr&&Cr.detail>0;xr&&!pr&&!zr&&Cr.preventDefault()}var Ar=Qt.current;return Ar.addEventListener("wheel",bn,{passive:!1}),Ar.addEventListener("DOMMouseScroll",_n,{passive:!0}),Ar.addEventListener("MozMousePixelScroll",gr,{passive:!1}),function(){Ar.removeEventListener("wheel",bn),Ar.removeEventListener("DOMMouseScroll",_n),Ar.removeEventListener("MozMousePixelScroll",gr)}},[xr,Vr,Jr]),(0,le.Z)(function(){if(St){var gr=sn(Er);Zr(gr),ln({x:gr})}},[lr.width,St]);var En=function(){var Ar,Cr;(Ar=Wr.current)===null||Ar===void 0||Ar.delayHidden(),(Cr=$r.current)===null||Cr===void 0||Cr.delayHidden()},Mn=it(Qt,Jt,sr,ve,vt,function(){return er(!0)},bt,En);x.useImperativeHandle(te,function(){return{nativeElement:rr.current,getScrollInfo:fn,scrollTo:function(Ar){function Cr(pr){return pr&&(0,gt.Z)(pr)==="object"&&("left"in pr||"top"in pr)}Cr(Ar)?(Ar.left!==void 0&&Zr(sn(Ar.left)),Mn(Ar.top)):Mn(Ar)}}}),(0,le.Z)(function(){if(xt){var gr=Jt.slice(Ht,Nt+1);xt(gr,Jt)}},[Ht,Nt,Jt]);var On=Ce(Jt,vt,sr,ve),jn=At==null?void 0:At({start:Ht,end:Nt,virtual:br,offsetX:Er,offsetY:Bt,rtl:or,getSize:On}),on=ce(Jt,Ht,Nt,St,Er,Kt,st,Ft),nn=null;xe&&(nn=(0,a.Z)((0,Te.Z)({},We?"height":"maxHeight",xe),Qe),xr&&(nn.overflowY="hidden",St&&(nn.overflowX="hidden"),nr&&(nn.pointerEvents="none")));var qr={};return or&&(qr.dir="rtl"),x.createElement("div",(0,ge.Z)({ref:rr,style:(0,a.Z)((0,a.Z)({},Ue),{},{position:"relative"}),className:fr},qr,Xt),x.createElement(oe.Z,{onResize:Br},x.createElement(yt,{className:"".concat(Ne,"-holder"),style:nn,ref:Qt,onScroll:yn,onMouseEnter:En},x.createElement(ae,{prefixCls:Ne,height:Gt,offsetX:Er,offsetY:Bt,scrollWidth:St,onInnerResize:er,ref:Vt,innerProps:jt,rtl:or,extra:jn},on))),br&&Gt>xe&&x.createElement(et,{ref:Wr,prefixCls:Ne,scrollOffset:hr,scrollRange:Gt,rtl:or,onScroll:un,onStartMove:Tr,onStopMove:It,spinSize:Dr,containerSize:lr.height,style:ht==null?void 0:ht.verticalScrollBar,thumbStyle:ht==null?void 0:ht.verticalScrollBarThumb,showScrollBar:$t}),br&&St>lr.width&&x.createElement(et,{ref:$r,prefixCls:Ne,scrollOffset:Er,scrollRange:St,rtl:or,onScroll:un,onStartMove:Tr,onStopMove:It,spinSize:Nr,containerSize:lr.width,horizontal:!0,style:ht==null?void 0:ht.horizontalScrollBar,thumbStyle:ht==null?void 0:ht.horizontalScrollBarThumb,showScrollBar:$t}))}var ot=x.forwardRef(ct);ot.displayName="List";var qe=ot,_e=qe},7062:function(Yt,Dt,Ie){var ge=Ie(19637),gt=Ie(97573),a=[Ie(96627)];Yt.exports=ge.createStore(gt,a)},96627:function(Yt,Dt,Ie){Yt.exports=ge;function ge(){return Ie(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(Yt){return Yt<10?"0"+Yt:Yt}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(Yt){return rx_escapable.lastIndex=0,rx_escapable.test(Yt)?'"'+Yt.replace(rx_escapable,function(Dt){var Ie=meta[Dt];return typeof Ie=="string"?Ie:"\\u"+("0000"+Dt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Yt+'"'}function str(Yt,Dt){var Ie,ge,gt,a,Te=gap,be,z=Dt[Yt];switch(z&&typeof z=="object"&&typeof z.toJSON=="function"&&(z=z.toJSON(Yt)),typeof rep=="function"&&(z=rep.call(Dt,Yt,z)),typeof z){case"string":return quote(z);case"number":return isFinite(z)?String(z):"null";case"boolean":case"null":return String(z);case"object":if(!z)return"null";if(gap+=indent,be=[],Object.prototype.toString.apply(z)==="[object Array]"){for(a=z.length,Ie=0;Ie<a;Ie+=1)be[Ie]=str(Ie,z)||"null";return gt=be.length===0?"[]":gap?`[
|
|
|
`+gap+be.join(`,
|
|
|
`+gap)+`
|
|
|
`+Te+"]":"["+be.join(",")+"]",gap=Te,gt}if(rep&&typeof rep=="object")for(a=rep.length,Ie=0;Ie<a;Ie+=1)typeof rep[Ie]=="string"&&(ge=rep[Ie],gt=str(ge,z),gt&&be.push(quote(ge)+(gap?": ":":")+gt));else for(ge in z)Object.prototype.hasOwnProperty.call(z,ge)&&(gt=str(ge,z),gt&&be.push(quote(ge)+(gap?": ":":")+gt));return gt=be.length===0?"{}":gap?`{
|
|
|
`+gap+be.join(`,
|
|
|
`+gap)+`
|
|
|
`+Te+"}":"{"+be.join(",")+"}",gap=Te,gt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(Yt,Dt,Ie){var ge;if(gap="",indent="",typeof Ie=="number")for(ge=0;ge<Ie;ge+=1)indent+=" ";else typeof Ie=="string"&&(indent=Ie);if(rep=Dt,Dt&&typeof Dt!="function"&&(typeof Dt!="object"||typeof Dt.length!="number"))throw new Error("JSON.stringify");return str("",{"":Yt})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(Yt,Dt){var Ie,ge,gt=Yt[Dt];if(gt&&typeof gt=="object")for(Ie in gt)Object.prototype.hasOwnProperty.call(gt,Ie)&&(ge=walk(gt,Ie),ge!==void 0?gt[Ie]=ge:delete gt[Ie]);return reviver.call(Yt,Dt,gt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(Yt){return"\\u"+("0000"+Yt.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(Yt,Dt,Ie){var ge=Ie(67039),gt=ge.slice,a=ge.pluck,Te=ge.each,be=ge.bind,z=ge.create,E=ge.isList,ie=ge.isFunction,oe=ge.isObject;Yt.exports={createStore:x};var ee={version:"2.0.12",enabled:!1,get:function(ne,re){var ae=this.storage.read(this._namespacePrefix+ne);return this._deserialize(ae,re)},set:function(ne,re){return re===void 0?this.remove(ne):(this.storage.write(this._namespacePrefix+ne,this._serialize(re)),re)},remove:function(ne){this.storage.remove(this._namespacePrefix+ne)},each:function(ne){var re=this;this.storage.each(function(ae,se){ne.call(re,re._deserialize(ae),(se||"").replace(re._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(ne){return this._namespacePrefix=="__storejs_"+ne+"_"},createStore:function(){return x.apply(this,arguments)},addPlugin:function(ne){this._addPlugin(ne)},namespace:function(ne){return x(this.storage,this.plugins,ne)}};function le(){var ne=typeof console=="undefined"?null:console;if(ne){var re=ne.warn?ne.warn:ne.log;re.apply(ne,arguments)}}function x(ne,re,ae){ae||(ae=""),ne&&!E(ne)&&(ne=[ne]),re&&!E(re)&&(re=[re]);var se=ae?"__storejs_"+ae+"_":"",ce=ae?new RegExp("^"+se):null,pe=/^[a-zA-Z0-9_\-]*$/;if(!pe.test(ae))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var me={_namespacePrefix:se,_namespaceRegexp:ce,_testStorage:function(ye){try{var De="__storejs__test__";ye.write(De,De);var Me=ye.read(De)===De;return ye.remove(De),Me}catch(Be){return!1}},_assignPluginFnProp:function(ye,De){var Me=this[De];this[De]=function(){var Pe=gt(arguments,0),Ce=this;function Ee(){if(Me)return Te(arguments,function(ke,Le){Pe[Le]=ke}),Me.apply(Ce,Pe)}var je=[Ee].concat(Pe);return ye.apply(Ce,je)}},_serialize:function(ye){return JSON.stringify(ye)},_deserialize:function(ye,De){if(!ye)return De;var Me="";try{Me=JSON.parse(ye)}catch(Be){Me=ye}return Me!==void 0?Me:De},_addStorage:function(ye){this.enabled||this._testStorage(ye)&&(this.storage=ye,this.enabled=!0)},_addPlugin:function(ye){var De=this;if(E(ye)){Te(ye,function(Pe){De._addPlugin(Pe)});return}var Me=a(this.plugins,function(Pe){return ye===Pe});if(!Me){if(this.plugins.push(ye),!ie(ye))throw new Error("Plugins must be function values that return objects");var Be=ye.call(this);if(!oe(Be))throw new Error("Plugins must return an object of function properties");Te(Be,function(Pe,Ce){if(!ie(Pe))throw new Error("Bad plugin property: "+Ce+" from plugin "+ye.name+". Plugins should only return functions.");De._assignPluginFnProp(Pe,Ce)})}},addStorage:function(ye){le("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(ye)}},he=z(me,ee,{plugins:[]});return he.raw={},Te(he,function(ye,De){ie(ye)&&(he.raw[De]=be(he,ye))}),Te(ne,function(ye){he._addStorage(ye)}),Te(re,function(ye){he._addPlugin(ye)}),he}},67039:function(Yt,Dt,Ie){var ge=be(),gt=z(),a=E(),Te=typeof window!="undefined"?window:Ie.g;Yt.exports={assign:ge,create:gt,trim:a,bind:ie,slice:oe,each:ee,map:le,pluck:x,isList:ne,isFunction:re,isObject:ae,Global:Te};function be(){return Object.assign?Object.assign:function(ce,pe,me,he){for(var ye=1;ye<arguments.length;ye++)ee(Object(arguments[ye]),function(De,Me){ce[Me]=De});return ce}}function z(){if(Object.create)return function(pe,me,he,ye){var De=oe(arguments,1);return ge.apply(this,[Object.create(pe)].concat(De))};{let ce=function(){};var se=ce;return function(me,he,ye,De){var Me=oe(arguments,1);return ce.prototype=me,ge.apply(this,[new ce].concat(Me))}}}function E(){return String.prototype.trim?function(ce){return String.prototype.trim.call(ce)}:function(ce){return ce.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ie(se,ce){return function(){return ce.apply(se,Array.prototype.slice.call(arguments,0))}}function oe(se,ce){return Array.prototype.slice.call(se,ce||0)}function ee(se,ce){x(se,function(pe,me){return ce(pe,me),!1})}function le(se,ce){var pe=ne(se)?[]:{};return x(se,function(me,he){return pe[he]=ce(me,he),!1}),pe}function x(se,ce){if(ne(se)){for(var pe=0;pe<se.length;pe++)if(ce(se[pe],pe))return se[pe]}else for(var me in se)if(se.hasOwnProperty(me)&&ce(se[me],me))return se[me]}function ne(se){return se!=null&&typeof se!="function"&&typeof se.length=="number"}function re(se){return se&&{}.toString.call(se)==="[object Function]"}function ae(se){return se&&{}.toString.call(se)==="[object Object]"}},97573:function(Yt,Dt,Ie){Yt.exports=[Ie(52496),Ie(16436),Ie(76673),Ie(35701),Ie(65578),Ie(65300)]},35701:function(Yt,Dt,Ie){var ge=Ie(67039),gt=ge.Global,a=ge.trim;Yt.exports={name:"cookieStorage",read:be,write:E,each:z,remove:ie,clearAll:oe};var Te=gt.document;function be(le){if(!le||!ee(le))return null;var x="(?:^|.*;\\s*)"+escape(le).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Te.cookie.replace(new RegExp(x),"$1"))}function z(le){for(var x=Te.cookie.split(/; ?/g),ne=x.length-1;ne>=0;ne--)if(a(x[ne])){var re=x[ne].split("="),ae=unescape(re[0]),se=unescape(re[1]);le(se,ae)}}function E(le,x){le&&(Te.cookie=escape(le)+"="+escape(x)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ie(le){!le||!ee(le)||(Te.cookie=escape(le)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function oe(){z(function(le,x){ie(x)})}function ee(le){return new RegExp("(?:^|;\\s*)"+escape(le).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Te.cookie)}},52496:function(Yt,Dt,Ie){var ge=Ie(67039),gt=ge.Global;Yt.exports={name:"localStorage",read:Te,write:be,each:z,remove:E,clearAll:ie};function a(){return gt.localStorage}function Te(oe){return a().getItem(oe)}function be(oe,ee){return a().setItem(oe,ee)}function z(oe){for(var ee=a().length-1;ee>=0;ee--){var le=a().key(ee);oe(Te(le),le)}}function E(oe){return a().removeItem(oe)}function ie(){return a().clear()}},65300:function(Yt){Yt.exports={name:"memoryStorage",read:Ie,write:ge,each:gt,remove:a,clearAll:Te};var Dt={};function Ie(be){return Dt[be]}function ge(be,z){Dt[be]=z}function gt(be){for(var z in Dt)Dt.hasOwnProperty(z)&&be(Dt[z],z)}function a(be){delete Dt[be]}function Te(be){Dt={}}},16436:function(Yt,Dt,Ie){var ge=Ie(67039),gt=ge.Global;Yt.exports={name:"oldFF-globalStorage",read:Te,write:be,each:z,remove:E,clearAll:ie};var a=gt.globalStorage;function Te(oe){return a[oe]}function be(oe,ee){a[oe]=ee}function z(oe){for(var ee=a.length-1;ee>=0;ee--){var le=a.key(ee);oe(a[le],le)}}function E(oe){return a.removeItem(oe)}function ie(){z(function(oe,ee){delete a[oe]})}},76673:function(Yt,Dt,Ie){var ge=Ie(67039),gt=ge.Global;Yt.exports={name:"oldIE-userDataStorage",write:E,read:ie,each:oe,remove:ee,clearAll:le};var a="storejs",Te=gt.document,be=re(),z=(gt.navigator?gt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function E(ae,se){if(!z){var ce=ne(ae);be(function(pe){pe.setAttribute(ce,se),pe.save(a)})}}function ie(ae){if(!z){var se=ne(ae),ce=null;return be(function(pe){ce=pe.getAttribute(se)}),ce}}function oe(ae){be(function(se){for(var ce=se.XMLDocument.documentElement.attributes,pe=ce.length-1;pe>=0;pe--){var me=ce[pe];ae(se.getAttribute(me.name),me.name)}})}function ee(ae){var se=ne(ae);be(function(ce){ce.removeAttribute(se),ce.save(a)})}function le(){be(function(ae){var se=ae.XMLDocument.documentElement.attributes;ae.load(a);for(var ce=se.length-1;ce>=0;ce--)ae.removeAttribute(se[ce].name);ae.save(a)})}var x=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ne(ae){return ae.replace(/^\d/,"___$&").replace(x,"___")}function re(){if(!Te||!Te.documentElement||!Te.documentElement.addBehavior)return null;var ae="script",se,ce,pe;try{ce=new ActiveXObject("htmlfile"),ce.open(),ce.write("<"+ae+">document.w=window</"+ae+'><iframe src="/favicon.ico"></iframe>'),ce.close(),se=ce.w.frames[0].document,pe=se.createElement("div")}catch(me){pe=Te.createElement("div"),se=Te.body}return function(me){var he=[].slice.call(arguments,0);he.unshift(pe),se.appendChild(pe),pe.addBehavior("#default#userData"),pe.load(a),me.apply(this,he),se.removeChild(pe)}}},65578:function(Yt,Dt,Ie){var ge=Ie(67039),gt=ge.Global;Yt.exports={name:"sessionStorage",read:Te,write:be,each:z,remove:E,clearAll:ie};function a(){return gt.sessionStorage}function Te(oe){return a().getItem(oe)}function be(oe,ee){return a().setItem(oe,ee)}function z(oe){for(var ee=a().length-1;ee>=0;ee--){var le=a().key(ee);oe(Te(le),le)}}function E(oe){return a().removeItem(oe)}function ie(){return a().clear()}},93314:function(Yt){"use strict";Yt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96908:function(Yt){"use strict";Yt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(Yt){"use strict";Yt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(Yt){"use strict";Yt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Yt,Dt,Ie){"use strict";Ie.d(Dt,{Z:function(){return ie}});const ge=oe=>typeof oe=="object"&&oe!=null&&oe.nodeType===1,gt=(oe,ee)=>(!ee||oe!=="hidden")&&oe!=="visible"&&oe!=="clip",a=(oe,ee)=>{if(oe.clientHeight<oe.scrollHeight||oe.clientWidth<oe.scrollWidth){const le=getComputedStyle(oe,null);return gt(le.overflowY,ee)||gt(le.overflowX,ee)||(x=>{const ne=(re=>{if(!re.ownerDocument||!re.ownerDocument.defaultView)return null;try{return re.ownerDocument.defaultView.frameElement}catch(ae){return null}})(x);return!!ne&&(ne.clientHeight<x.scrollHeight||ne.clientWidth<x.scrollWidth)})(oe)}return!1},Te=(oe,ee,le,x,ne,re,ae,se)=>re<oe&&ae>ee||re>oe&&ae<ee?0:re<=oe&&se<=le||ae>=ee&&se>=le?re-oe-x:ae>ee&&se<le||re<oe&&se>le?ae-ee+ne:0,be=oe=>{const ee=oe.parentElement;return ee==null?oe.getRootNode().host||null:ee},z=(oe,ee)=>{var le,x,ne,re;if(typeof document=="undefined")return[];const{scrollMode:ae,block:se,inline:ce,boundary:pe,skipOverflowHiddenElements:me}=ee,he=typeof pe=="function"?pe:et=>et!==pe;if(!ge(oe))throw new TypeError("Invalid target");const ye=document.scrollingElement||document.documentElement,De=[];let Me=oe;for(;ge(Me)&&he(Me);){if(Me=be(Me),Me===ye){De.push(Me);break}Me!=null&&Me===document.body&&a(Me)&&!a(document.documentElement)||Me!=null&&a(Me,me)&&De.push(Me)}const Be=(x=(le=window.visualViewport)==null?void 0:le.width)!=null?x:innerWidth,Pe=(re=(ne=window.visualViewport)==null?void 0:ne.height)!=null?re:innerHeight,{scrollX:Ce,scrollY:Ee}=window,{height:je,width:ke,top:Le,right:Ae,bottom:Se,left:Ge}=oe.getBoundingClientRect(),{top:Ze,right:Je,bottom:at,left:Fe}=(et=>{const $e=window.getComputedStyle(et);return{top:parseFloat($e.scrollMarginTop)||0,right:parseFloat($e.scrollMarginRight)||0,bottom:parseFloat($e.scrollMarginBottom)||0,left:parseFloat($e.scrollMarginLeft)||0}})(oe);let Ke=se==="start"||se==="nearest"?Le-Ze:se==="end"?Se+at:Le+je/2-Ze+at,it=ce==="center"?Ge+ke/2-Fe+Je:ce==="end"?Ae+Je:Ge-Fe;const rt=[];for(let et=0;et<De.length;et++){const $e=De[et],{height:Xe,width:Ve,top:nt,right:Qe,bottom:ct,left:ot}=$e.getBoundingClientRect();if(ae==="if-needed"&&Le>=0&&Ge>=0&&Se<=Pe&&Ae<=Be&&($e===ye&&!a($e)||Le>=nt&&Se<=ct&&Ge>=ot&&Ae<=Qe))return rt;const qe=getComputedStyle($e),_e=parseInt(qe.borderLeftWidth,10),Re=parseInt(qe.borderTopWidth,10),te=parseInt(qe.borderRightWidth,10),de=parseInt(qe.borderBottomWidth,10);let Ne=0,ze=0;const xe="offsetWidth"in $e?$e.offsetWidth-$e.clientWidth-_e-te:0,ve="offsetHeight"in $e?$e.offsetHeight-$e.clientHeight-Re-de:0,Oe="offsetWidth"in $e?$e.offsetWidth===0?0:Ve/$e.offsetWidth:0,We="offsetHeight"in $e?$e.offsetHeight===0?0:Xe/$e.offsetHeight:0;if(ye===$e)Ne=se==="start"?Ke:se==="end"?Ke-Pe:se==="nearest"?Te(Ee,Ee+Pe,Pe,Re,de,Ee+Ke,Ee+Ke+je,je):Ke-Pe/2,ze=ce==="start"?it:ce==="center"?it-Be/2:ce==="end"?it-Be:Te(Ce,Ce+Be,Be,_e,te,Ce+it,Ce+it+ke,ke),Ne=Math.max(0,Ne+Ee),ze=Math.max(0,ze+Ce);else{Ne=se==="start"?Ke-nt-Re:se==="end"?Ke-ct+de+ve:se==="nearest"?Te(nt,ct,Xe,Re,de+ve,Ke,Ke+je,je):Ke-(nt+Xe/2)+ve/2,ze=ce==="start"?it-ot-_e:ce==="center"?it-(ot+Ve/2)+xe/2:ce==="end"?it-Qe+te+xe:Te(ot,Qe,Ve,_e,te+xe,it,it+ke,ke);const{scrollLeft:Ue,scrollTop:Ye}=$e;Ne=We===0?0:Math.max(0,Math.min(Ye+Ne/We,$e.scrollHeight-Xe/We+ve)),ze=Oe===0?0:Math.max(0,Math.min(Ue+ze/Oe,$e.scrollWidth-Ve/Oe+xe)),Ke+=Ye-Ne,it+=Ue-ze}rt.push({el:$e,top:Ne,left:ze})}return rt},E=oe=>oe===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(oe)?oe:{block:"start",inline:"nearest"};function ie(oe,ee){if(!oe.isConnected||!(ne=>{let re=ne;for(;re&&re.parentNode;){if(re.parentNode===document)return!0;re=re.parentNode instanceof ShadowRoot?re.parentNode.host:re.parentNode}return!1})(oe))return;const le=(ne=>{const re=window.getComputedStyle(ne);return{top:parseFloat(re.scrollMarginTop)||0,right:parseFloat(re.scrollMarginRight)||0,bottom:parseFloat(re.scrollMarginBottom)||0,left:parseFloat(re.scrollMarginLeft)||0}})(oe);if((ne=>typeof ne=="object"&&typeof ne.behavior=="function")(ee))return ee.behavior(z(oe,ee));const x=typeof ee=="boolean"||ee==null?void 0:ee.behavior;for(const{el:ne,top:re,left:ae}of z(oe,E(ee))){const se=re-le.top+le.bottom,ce=ae-le.left+le.right;ne.scroll({top:se,left:ce,behavior:x})}}}}]);
|