@cainiaofe/cn-ui-m-onecode
Version:
7 lines • 1.24 MB
JavaScript
/*! @cainiaofe/cn-ui-m-onecode@0.11.27 (https://cone.cainiao-inc.com/dsm/common/material) */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@cainiaofe/cn-ui"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","@cainiaofe/cn-ui","react-dom"],t):"object"==typeof exports?exports.CNUIM=t(require("react"),require("@cainiaofe/cn-ui"),require("react-dom")):e.CNUIM=t(e.React,e.CNUI,e.ReactDOM)}(window,(function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=384)}([function(t,n){t.exports=e},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return s})),n.d(t,"g",(function(){return l}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}u((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,c[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,r=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}Object.create;function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function l(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create},function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"z",(function(){return a})),n.d(t,"a",(function(){return De})),n.d(t,"b",(function(){return q})),n.d(t,"c",(function(){return Me})),n.d(t,"d",(function(){return Ie})),n.d(t,"e",(function(){return re})),n.d(t,"f",(function(){return we})),n.d(t,"g",(function(){return Ke})),n.d(t,"h",(function(){return A})),n.d(t,"i",(function(){return nt})),n.d(t,"j",(function(){return Ze})),n.d(t,"k",(function(){return I})),n.d(t,"l",(function(){return D})),n.d(t,"m",(function(){return Ee})),n.d(t,"n",(function(){return M})),n.d(t,"o",(function(){return B})),n.d(t,"p",(function(){return X})),n.d(t,"q",(function(){return Le})),n.d(t,"r",(function(){return Te})),n.d(t,"s",(function(){return Ae})),n.d(t,"t",(function(){return T})),n.d(t,"u",(function(){return rt})),n.d(t,"v",(function(){return L})),n.d(t,"w",(function(){return N})),n.d(t,"x",(function(){return lt})),n.d(t,"y",(function(){return bt})),n.d(t,"A",(function(){return Fe})),n.d(t,"B",(function(){return R})),n.d(t,"C",(function(){return yt})),n.d(t,"D",(function(){return Ot})),n.d(t,"E",(function(){return gt})),n.d(t,"F",(function(){return wt})),n.d(t,"G",(function(){return Ct})),n.d(t,"H",(function(){return _t}));var i=w(),a=function(e){return b(e,i)},c=w();a.write=function(e){return b(e,c)};var u=w();a.onStart=function(e){return b(e,u)};var s=w();a.onFrame=function(e){return b(e,s)};var l=w();a.onFinish=function(e){return b(e,l)};var f=[];a.setTimeout=function(e,t){var n=a.now()+t,r={time:n,handler:e,cancel:function e(){var t=f.findIndex((function(t){return t.cancel==e}));~t&&f.splice(t,1),v-=~t?1:0}};return f.splice(d(n),0,r),v+=1,y(),r};var d=function(e){return~(~f.findIndex((function(t){return t.time>e}))||~f.length)};a.cancel=function(e){u.delete(e),s.delete(e),l.delete(e),i.delete(e),c.delete(e)},a.sync=function(e){m=!0,a.batchedUpdates(e),m=!1},a.throttle=function(e){var t;function n(){try{e.apply(void 0,r(t))}finally{t=null}}function o(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];t=r,a.onStart(n)}return o.handler=e,o.cancel=function(){u.delete(n),t=null},o};var p="undefined"!=typeof window?window.requestAnimationFrame:function(){};a.use=function(e){return p=e},a.now="undefined"!=typeof performance?function(){return performance.now()}:Date.now,a.batchedUpdates=function(e){return e()},a.catch=console.error,a.frameLoop="always",a.advance=function(){"demand"!==a.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):O()};var h=-1,v=0,m=!1;function b(e,t){m?(t.delete(e),e(0)):(t.add(e),y())}function y(){h<0&&(h=0,"demand"!==a.frameLoop&&p(g))}function g(){~h&&(p(g),a.batchedUpdates(O))}function O(){var e=h;h=a.now();var t=d(h);t&&(C(f.splice(0,t),(function(e){return e.handler()})),v-=t),v?(u.flush(),i.flush(e?Math.min(64,h-e):16.667),s.flush(),c.flush(),l.flush()):h=-1}function w(){var e=new Set,t=e;return{add:function(n){v+=t!=e||e.has(n)?0:1,e.add(n)},delete:function(n){return v-=t==e&&e.has(n)?1:0,e.delete(n)},flush:function(n){t.size&&(e=new Set,v-=t.size,C(t,(function(t){return t(n)&&e.add(t)})),v+=e.size,t=e)}}}function C(e,t){e.forEach((function(e){try{t(e)}catch(e){a.catch(e)}}))}var x=n(0);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,i=function(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===_(i)?i:String(i)),r)}var o,i}function k(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(){}var A=function(e,t,n){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})},T={arr:Array.isArray,obj:function(e){return!!e&&"Object"===e.constructor.name},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e}};function L(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var I=function(e,t){return e.forEach(t)};function D(e,t,n){if(T.arr(e))for(var r=0;r<e.length;r++)t.call(n,e[r],"".concat(r));else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}var R=function(e){return T.und(e)?[]:T.arr(e)?e:[e]};function M(e,t){if(e.size){var n=Array.from(e);e.clear(),I(n,t)}}var F,z,B=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return M(e,(function(e){return e.apply(void 0,n)}))},V=function(){return"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)},U=null,H=!1,Y=N,W=function(e){e.to&&(z=e.to),e.now&&(a.now=e.now),void 0!==e.colors&&(U=e.colors),null!=e.skipAnimation&&(H=e.skipAnimation),e.createStringInterpolator&&(F=e.createStringInterpolator),e.requestAnimationFrame&&a.use(e.requestAnimationFrame),e.batchedUpdates&&(a.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Y=e.willAdvance),e.frameLoop&&(a.frameLoop=e.frameLoop)},q=Object.freeze({__proto__:null,get createStringInterpolator(){return F},get to(){return z},get colors(){return U},get skipAnimation(){return H},get willAdvance(){return Y},assign:W}),G=new Set,$=[],K=[],J=0,X={get idle(){return!G.size&&!$.length},start:function(e){J>e.priority?(G.add(e),a.onStart(Q)):(Z(e),a(te))},advance:te,sort:function(e){if(J)a.onFrame((function(){return X.sort(e)}));else{var t=$.indexOf(e);~t&&($.splice(t,1),ee(e))}},clear:function(){$=[],G.clear()}};function Q(){G.forEach(Z),G.clear(),a(te)}function Z(e){$.includes(e)||ee(e)}function ee(e){var t,n,r;$.splice((n=function(t){return t.priority>e.priority},(r=(t=$).findIndex(n))<0?t.length:r),0,e)}function te(e){for(var t=K,n=0;n<$.length;n++){var r=$[n];J=r.priority,r.idle||(Y(r),r.advance(e),r.idle||t.push(r))}return J=0,(K=$).length=0,($=t).length>0}var ne=function(e,t,n){return Math.min(Math.max(n,e),t)},re={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},oe="[-+]?\\d*\\.?\\d+";function ie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var ae=new RegExp("rgb"+ie(oe,oe,oe)),ce=new RegExp("rgba"+ie(oe,oe,oe,oe)),ue=new RegExp("hsl"+ie(oe,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),se=new RegExp("hsla"+ie(oe,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",oe)),le=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,de=/^#([0-9a-fA-F]{6})$/,pe=/^#([0-9a-fA-F]{8})$/;function he(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ve(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=he(o,r,e+1/3),a=he(o,r,e),c=he(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*c)<<8}function me(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function be(e){return(parseFloat(e)%360+360)%360/360}function ye(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ge(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function Oe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=de.exec(t))?parseInt(n[1]+"ff",16)>>>0:U&&void 0!==U[t]?U[t]:(n=ae.exec(t))?(me(n[1])<<24|me(n[2])<<16|me(n[3])<<8|255)>>>0:(n=ce.exec(t))?(me(n[1])<<24|me(n[2])<<16|me(n[3])<<8|ye(n[4]))>>>0:(n=le.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=pe.exec(t))?parseInt(n[1],16)>>>0:(n=fe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=ue.exec(t))?(255|ve(be(n[1]),ge(n[2]),ge(n[3])))>>>0:(n=se.exec(t))?(ve(be(n[1]),ge(n[2]),ge(n[3]))|ye(n[4]))>>>0:null;if(null===r)return e;var o=(16711680&(r=r||0))>>>16,i=(65280&r)>>>8,a=(255&r)/255;return"rgba(".concat((4278190080&r)>>>24,", ").concat(o,", ").concat(i,", ").concat(a,")")}var we=function e(t,n,r){if(T.fun(t))return t;if(T.arr(t))return e({range:t,output:n,extrapolate:r});if(T.str(t.output[0]))return F(t);var o=t,i=o.output,a=o.range||[0,1],c=o.extrapolateLeft||o.extrapolate||"extend",u=o.extrapolateRight||o.extrapolate||"extend",s=o.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,r,o,i,a,c,u){var s=u?u(e):e;if(s<t){if("identity"===a)return s;"clamp"===a&&(s=t)}if(s>n){if("identity"===c)return s;"clamp"===c&&(s=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?s=-s:n===1/0?s-=t:s=(s-t)/(n-t);s=i(s),r===-1/0?s=-s:o===1/0?s+=r:s=s*(o-r)+r;return s}(e,a[t],a[t+1],i[t],i[t+1],s,c,u,o.map)}};var Ce=1.70158,xe=1.525*Ce,_e=2*Math.PI/3,Se=2*Math.PI/4.5,je=function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Ee={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return 1-(1-e)*(1-e)},easeInOutQuad:function(e){return e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return 1-Math.pow(1-e,3)},easeInOutCubic:function(e){return e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1-Math.pow(1-e,4)},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1-Math.pow(1-e,5)},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2},easeInSine:function(e){return 1-Math.cos(e*Math.PI/2)},easeOutSine:function(e){return Math.sin(e*Math.PI/2)},easeInOutSine:function(e){return-(Math.cos(Math.PI*e)-1)/2},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*e-10)},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2},easeInCirc:function(e){return 1-Math.sqrt(1-Math.pow(e,2))},easeOutCirc:function(e){return Math.sqrt(1-Math.pow(e-1,2))},easeInOutCirc:function(e){return e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2},easeInBack:function(e){return 2.70158*e*e*e-Ce*e*e},easeOutBack:function(e){return 1+2.70158*Math.pow(e-1,3)+Ce*Math.pow(e-1,2)},easeInOutBack:function(e){return e<.5?Math.pow(2*e,2)*(7.189819*e-xe)/2:(Math.pow(2*e-2,2)*((xe+1)*(2*e-2)+xe)+2)/2},easeInElastic:function(e){return 0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*_e)},easeOutElastic:function(e){return 0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*_e)+1},easeInOutElastic:function(e){return 0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Se)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Se)/2+1},easeInBounce:function(e){return 1-je(1-e)},easeOutBounce:je,easeInOutBounce:function(e){return e<.5?(1-je(1-2*e))/2:(1+je(2*e-1))/2},steps:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return function(n){var r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(r):Math.ceil(r);return ne(0,1,o/e)}}};function ke(){return(ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Pe=Symbol.for("FluidValue.get"),Ne=Symbol.for("FluidValue.observers"),Ae=function(e){return Boolean(e&&e[Pe])},Te=function(e){return e&&e[Pe]?e[Pe]():e},Le=function(e){return e[Ne]||null};function Ie(e,t){var n=e[Ne];n&&n.forEach((function(e){!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var De=k((function e(t){if(P(this,e),this[Pe]=void 0,this[Ne]=void 0,!t&&!(t=this.get))throw Error("Unknown getter");Re(this,t)})),Re=function(e,t){return Be(e,Pe,t)};function Me(e,t){if(e[Pe]){var n=e[Ne];n||Be(e,Ne,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Fe(e,t){var n=e[Ne];if(n&&n.has(t)){var r=n.size-1;r?n.delete(t):e[Ne]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var ze,Be=function(e,t,n){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})},Ve=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ue=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,He=new RegExp("(".concat(Ve.source,")(%|[a-z]+)"),"i"),Ye=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,We=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,qe=function e(t){var n=S(Ge(t),2),r=n[0],o=n[1];if(!r||V())return t;var i=window.getComputedStyle(document.documentElement).getPropertyValue(r);if(i)return i.trim();if(o&&o.startsWith("--")){var a=window.getComputedStyle(document.documentElement).getPropertyValue(o);return a||t}return o&&We.test(o)?e(o):o||t},Ge=function(e){var t=We.exec(e);if(!t)return[,];var n=S(t,3);return[n[1],n[2]]},$e=function(e,t,n,r,o){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(o,")")},Ke=function(e){ze||(ze=U?new RegExp("(".concat(Object.keys(U).join("|"),")(?!\\w)"),"g"):/^\b$/);var t=e.output.map((function(e){return Te(e).replace(We,qe).replace(Ue,Oe).replace(ze,Oe)})),n=t.map((function(e){return e.match(Ve).map(Number)})),r=n[0].map((function(e,t){return n.map((function(e){if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]}))})).map((function(t){return we(ke({},e,{output:t}))}));return function(e){var n,o=!He.test(t[0])&&(null==(n=t.find((function(e){return He.test(e)})))?void 0:n.replace(Ve,"")),i=0;return t[0].replace(Ve,(function(){return"".concat(r[i++](e)).concat(o||"")})).replace(Ye,$e)}},Je="react-spring: ",Xe=function(e){var t=e,n=!1;if("function"!=typeof t)throw new TypeError("".concat(Je,"once requires a function parameter"));return function(){n||(t.apply(void 0,arguments),n=!0)}},Qe=Xe(console.warn);function Ze(){Qe("".concat(Je,'The "interpolate" function is deprecated in v9 (use "to" instead)'))}var et,tt=Xe(console.warn);function nt(){tt("".concat(Je,'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions'))}function rt(e){return T.str(e)&&("#"==e[0]||/\d/.test(e)||!V()&&We.test(e)||e in(U||{}))}var ot=new WeakMap,it=function(e){return e.forEach((function(e){var t,n=e.target,r=e.contentRect;return null==(t=ot.get(n))?void 0:t.forEach((function(e){return e(r)}))}))};function at(e,t){et||"undefined"!=typeof ResizeObserver&&(et=new ResizeObserver(it));var n=ot.get(t);return n||(n=new Set,ot.set(t,n)),n.add(e),et&&et.observe(t),function(){var n=ot.get(t);n&&(n.delete(e),!n.size&&et&&et.unobserve(t))}}var ct,ut=new Set,st=function(e){var t;return ut.add(e),ct||(t=function(){ut.forEach((function(e){return e({width:window.innerWidth,height:window.innerHeight})}))},window.addEventListener("resize",t),ct=function(){window.removeEventListener("resize",t)}),function(){ut.delete(e),!ut.size&&ct&&(ct(),ct=void 0)}},lt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.container,r=void 0===n?document.documentElement:n;return r===document.documentElement?st(e):at(e,r)},ft={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}},dt=k((function e(t,n){var r=this;P(this,e),this.callback=void 0,this.container=void 0,this.info=void 0,this.createAxis=function(){return{current:0,progress:0,scrollLength:0}},this.updateAxis=function(e){var t,n,o,i=r.info[e],a=ft[e],c=a.length,u=a.position;i.current=r.container["scroll".concat(u)],i.scrollLength=r.container["scroll"+c]-r.container["client"+c],i.progress=(t=0,n=i.scrollLength,o=i.current,n-t==0?1:(o-t)/(n-t))},this.update=function(){r.updateAxis("x"),r.updateAxis("y")},this.sendEvent=function(){r.callback(r.info)},this.advance=function(){r.update(),r.sendEvent()},this.callback=t,this.container=n,this.info={time:0,x:this.createAxis(),y:this.createAxis()}})),pt=new WeakMap,ht=new WeakMap,vt=new WeakMap,mt=function(e){return e===document.documentElement?window:e},bt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.container,r=void 0===n?document.documentElement:n,o=vt.get(r);o||(o=new Set,vt.set(r,o));var i=new dt(e,r);if(o.add(i),!pt.has(r)){var c=function(){var e;return null==(e=o)||e.forEach((function(e){return e.advance()})),!0};pt.set(r,c);var u=mt(r);window.addEventListener("resize",c,{passive:!0}),r!==document.documentElement&&ht.set(r,lt(c,{container:r})),u.addEventListener("scroll",c,{passive:!0})}var s=pt.get(r);return a(s),function(){a.cancel(s);var e=vt.get(r);if(e&&(e.delete(i),!e.size)){var t,n=pt.get(r);if(pt.delete(r),n)mt(r).removeEventListener("scroll",n),window.removeEventListener("resize",n),null==(t=ht.get(r))||t()}}};function yt(e){var t=Object(x.useRef)(null);return null===t.current&&(t.current=e()),t.current}var gt=V()?x.useEffect:x.useLayoutEffect;function Ot(){var e=Object(x.useState)()[1],t=function(){var e=Object(x.useRef)(!1);return gt((function(){return e.current=!0,function(){e.current=!1}}),[]),e}();return function(){t.current&&e(Math.random())}}function wt(e,t){var n=S(Object(x.useState)((function(){return{inputs:t,result:e()}})),1)[0],r=Object(x.useRef)(),o=r.current,i=o;i?Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs))||(i={inputs:t,result:e()}):i=n;return Object(x.useEffect)((function(){r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}var Ct=function(e){return Object(x.useEffect)(e,xt)},xt=[];function _t(e){var t=Object(x.useRef)();return Object(x.useEffect)((function(){t.current=e})),t.current}},function(e,t,n){var r;function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var i={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=o(n);if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var c=a.apply(null,n);c&&e.push(c)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var u in n)i.call(n,u)&&n[u]&&e.push(u);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):"object"===o(n(150))&&n(150)?void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r):window.classNames=a}()},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"z",(function(){return v})),n.d(t,"d",(function(){return m})),n.d(t,"u",(function(){return b})),n.d(t,"x",(function(){return y})),n.d(t,"j",(function(){return S})),n.d(t,"k",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"o",(function(){return s})),n.d(t,"p",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return p})),n.d(t,"n",(function(){return h})),n.d(t,"c",(function(){return j})),n.d(t,"q",(function(){return P})),n.d(t,"r",(function(){return N})),n.d(t,"i",(function(){return A})),n.d(t,"t",(function(){return L})),n.d(t,"w",(function(){return F})),n.d(t,"y",(function(){return B})),n.d(t,"e",(function(){return g.a})),n.d(t,"a",(function(){return vt})),n.d(t,"b",(function(){return mt})),n.d(t,"s",(function(){return St})),n.d(t,"v",(function(){return jt})),n.d(t,"f",(function(){return O})),n.d(t,"A",(function(){return Pt}));var o=Object.prototype.toString,i=function(e){return function(t){return a(t)==="[object ".concat(e,"]")}},a=function(e){return o.call(e)},c=function(e){return"function"==typeof e},u=Array.isArray,s=i("Object"),l=i("String"),f=i("Boolean"),d=i("Number"),p=function(e){return d(e)||/^\d+$/.test(e)},h=function(e){return"object"===r(e)},v=(i("RegExp"),function(e){return u(e)?e:e?[e]:[]});function m(e,t,n){if(u(e)||l(e)){if(n){for(var r=e.length-1;r>=0;r--)if(!1===t(e[r],r))return}else for(r=0;r<e.length;r++)if(!1===t(e[r],r))return}else if(h(e)){var o=void 0;for(o in e)if(Object.hasOwnProperty.call(e,o)&&!1===t(e[o],o))return}}function b(e,t,n){var r=u(e)||l(e)?[]:{};return m(e,(function(e,n){var o=t(e,n);u(r)?r.push(o):r[n]=o}),n),r}function y(e,t,n,r){var o=n;return m(e,(function(e,n){o=t(o,e,n)}),r),o}var g=n(134),O=function(e,t){return c(t)?e instanceof t:!!l(t)&&(!!g.a[t]&&e instanceof g.a[t])};function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var C=u,x=Object.keys,_=Object.prototype.hasOwnProperty;var S=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"===w(t)&&"object"===w(n)){var r,o=C(t),i=C(n),a=void 0,c=void 0;if(o&&i){if((r=t.length)!==n.length)return!1;for(a=r;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(o!==i)return!1;var u=t&&t._isAMomentObject,s=n&&n._isAMomentObject;if(u!==s)return!1;if(u&&s)return t.isSame(n);var l=t&&t.toJS;if(l!==(n&&n.toJS))return!1;if(l)return t.is?t.is(n):t===n;var f=O(t,"Date"),d=O(n,"Date");if(f!==d)return!1;if(f&&d)return t.getTime()===n.getTime();var p=O(t,"RegExp"),h=O(n,"RegExp");if(p!==h)return!1;if(p&&h)return t.toString()===n.toString();var v=O(t,"URL"),m=O(n,"URL");if(v!==m)return!1;if(v&&m)return t.href===n.href;var b=t&&t.toJSON,y=n&&n.toJSON;if(b!==y)return!1;if(b&&y)return e(t.toJSON(),n.toJSON());var g=x(t);if((r=g.length)!==x(n).length)return!1;for(a=r;0!=a--;)if(!_.call(n,g[a]))return!1;for(a=r;0!=a--;)if(!("_owner"===(c=g[a])&&t.$$typeof||e(t[c],n[c])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}};var j=function e(t){if(Array.isArray(t)){var n=[];return t.forEach((function(t){n.push(e(t))})),n}if(s(t)){if("$$typeof"in t&&"_owner"in t)return t;if(t._isAMomentObject)return t;if(t._isJSONSchemaObject)return t;if(c(t.toJS))return t.toJS();if(c(t.toJSON))return t.toJSON();var r={};for(var o in t)Object.hasOwnProperty.call(t,o)&&(r[o]=e(t[o]));return r}return t},E=Object.prototype.hasOwnProperty,k=Object.prototype.toString,P=function(e){return void 0===e},N=function(e){return null!=e};function A(e,t){if(void 0===t&&(t=!1),null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return!1;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e)){if(0===e.length)return!0;for(var n=0;n<e.length;n++)if(t){if(void 0!==e[n]&&null!==e[n])return!1}else if(void 0!==e[n]&&null!==e[n]&&""!==e[n]&&0!==e[n])return!1;return!0}if(O(e,"Error"))return""===e.message;if(e.toString===k)switch(e.toString()){case"[object File]":case"[object Map]":case"[object Set]":return 0===e.size;case"[object Object]":for(var r in e)if(E.call(e,r))return!1;return!0}return!1}var T=n(1);function L(e){return e.toLowerCase()}var I=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],D=/[^A-Z0-9]+/gi;function R(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function M(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function F(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?I:n,o=t.stripRegexp,i=void 0===o?D:o,a=t.transform,c=void 0===a?L:a,u=t.delimiter,s=void 0===u?" ":u,l=R(R(e,r,"$1\0$2"),i,"\0"),f=0,d=l.length;"\0"===l.charAt(f);)f++;for(;"\0"===l.charAt(d-1);)d--;return l.slice(f,d).split("\0").map(c).join(s)}(e,Object(T.a)({delimiter:"",transform:M},t))}var z=function(e){return"string"==typeof e?e.replace((t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),new RegExp(t,"g")),""):e;var t},B=function(e){return z(e).replace(t&&t.exact?new RegExp("^".concat("[\ud800-\udbff][\udc00-\udfff]","$")):new RegExp("[\ud800-\udbff][\udc00-\udfff]","g")," ").length;var t},V=function(){return(V=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},U=function(e,t){return V({flag:e},t)},H=U("[]"),Y=U("[\\d]"),W=U("[[]]"),q=U("()"),G=U("{}"),$=U("{x}"),K=function(){return(K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},J=function(e,t){return K({flag:e},t)},X=J("name",{expectNext:function(e){return this.includesContext($)?e===X||e===fe||e===ae||e===oe||e===ne:e===ee||e===fe||e===he||e===ae||e===le||e===ne||e===pe||e===ie}}),Q=J("*",{expectNext:function(e){return e===ee||e===se||e===ie||e===he||e===fe||e===le}}),Z=J("**",{expectNext:function(e){return e===ee||e===ie||e===he||e===fe||e===le}}),ee=J(".",{expectNext:function(e){return e===ee||e===X||e===ce||e===Q||e===Z||e===ie||e===re||e===he},expectPrev:function(e){return e===ee||e===X||e===ue||e===Q||e===le||e===ae||e===pe||e===oe}}),te=J("!",{expectNext:function(e){return e===X||e===ce}}),ne=J(":",{expectNext:function(e){return this.includesContext($)?e===X||e===re||e===ie:e===X||e===ce||e===ae}}),re=J("{",{expectNext:function(e){return e===X},expectPrev:function(e){return this.includesContext($)?e===ne||e===fe||e===ie:e===ee||e===ne||e===se},updateContext:function(){this.state.context.push(G)}}),oe=J("}",{expectNext:function(e){return this.includesContext($)?e===fe||e===oe||e===he||e===ae:e===ee||e===he||e===fe},expectPrev:function(e){return e===X||e===oe||e===ae},updateContext:function(){this.state.context.pop(G)}}),ie=J("[",{expectNext:function(e){return this.includesContext($)?e===X||e===ie||e===re||e===ae:e===X||e===ce||e===ne||e===ie||e===de||e===ae},expectPrev:function(e){return this.includesContext($)?e===ne||e===fe||e===ie:e===Q||e===ie||e===ee||e===X||e===se||e==fe},updateContext:function(){this.state.context.push(H)}}),ae=J("]",{expectNext:function(e){return this.includesContext($)?e===fe||e===oe||e===ae||e===he:e===ee||e===he||e===fe||e===le||e===ae},updateContext:function(){if(!this.includesContext(Y)){if(!this.includesContext(H))throw this.unexpect();this.state.context.pop()}}}),ce=J("[[",{updateContext:function(){this.state.context.push(W)}}),ue=J("]]",{updateContext:function(){if(this.curContext()!==W)throw this.unexpect();this.state.context.pop()}}),se=J("(",{expectNext:function(e){return e===X||e===ce||e===re||e===te||e===ie},expectPrev:function(e){return e===Q},updateContext:function(){this.state.context.push(q)}}),le=J(")",{expectNext:function(e){return e===ee||e===he||e===fe||e===le},updateContext:function(){if(this.curContext()!==q)throw this.unexpect();this.state.context.pop()}}),fe=J(",",{expectNext:function(e){return e===X||e===ce||e===ie||e===re}}),de=J("ignore",{expectNext:function(e){return e===ue},expectPrev:function(e){return e==ce}}),pe=J("expandTok",{expectNext:function(e){return e===ee||e===he||e===fe||e===le}}),he=J("eof"),ve=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/,me=function(e){return 42===e||46===e||33===e||91===e||93===e||40===e||41===e||44===e||58===e||126===e||123===e||125===e},be=function(e,t){var n=new Error(e);return Object.assign(n,t),n},ye=function(e,t,n){for(var r="",o=t;o<n;o++){var i=e.charAt(o);"\\"!==i&&(r+=i)}return r},ge=function(){function e(e){this.input=e,this.state={context:[],type:null,pos:0},this.type_=null}return e.prototype.curContext=function(){return this.state.context[this.state.context.length-1]},e.prototype.includesContext=function(e){for(var t=this.state.context.length-1;t>=0;t--)if(this.state.context[t]===e)return!0;return!1},e.prototype.unexpect=function(e){return e=e||this.state.type,be('Unexpect token "'.concat(e.flag,'" in ').concat(this.state.pos," char."),{pos:this.state.pos})},e.prototype.expectNext=function(e,t){if(e&&e.expectNext&&t&&!e.expectNext.call(this,t))throw be('Unexpect token "'.concat(t.flag,'" token should not be behind "').concat(e.flag,'" token.(').concat(this.state.pos,"th char)"),{pos:this.state.pos})},e.prototype.expectPrev=function(e,t){if(e&&e.expectPrev&&t&&!e.expectPrev.call(this,t))throw be('Unexpect token "'.concat(e.flag,'" should not be behind "').concat(t.flag,'"(').concat(this.state.pos,"th char)."),{pos:this.state.pos})},e.prototype.match=function(e){return this.state.type===e},e.prototype.skipSpace=function(){if(this.curContext()!==W)e:for(;this.state.pos<this.input.length;){var e=this.input.charCodeAt(this.state.pos);switch(e){case 32:case 160:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos;break;default:if(!(e>8&&e<14||e>=5760&&ve.test(String.fromCharCode(e))))break e;++this.state.pos}}},e.prototype.next=function(){if(this.type_=this.state.type,this.input.length<=this.state.pos)return this.finishToken(he);this.skipSpace(),this.readToken(this.getCode(),this.state.pos>0?this.getCode(this.state.pos-1):-1/0)},e.prototype.getCode=function(e){return void 0===e&&(e=this.state.pos),function(e,t){if(String.fromCharCode)return e.codePointAt(t);var n=e.charCodeAt(t);return n<=55295||n>=57344?n:(n<<10)+e.charCodeAt(t+1)-56613888}(this.input,e)},e.prototype.eat=function(e){return!!this.match(e)&&(this.next(),!0)},e.prototype.readKeyWord=function(){for(var e=this.state.pos,t="";;){var n=this.getCode(),r=this.getCode(this.state.pos-1);if(this.input.length===this.state.pos){t=ye(this.input,e,this.state.pos+1);break}if(me(n)&&92!==r){t=ye(this.input,e,this.state.pos);break}if(32===n||160===n||10===n||8232===n||8233===n){t=ye(this.input,e,this.state.pos);break}if(13===n&&10===this.input.charCodeAt(this.state.pos+1)){t=ye(this.input,e,this.state.pos);break}if(n>8&&n<14||n>=5760&&ve.test(String.fromCharCode(n))){t=ye(this.input,e,this.state.pos);break}this.state.pos++}this.finishToken(X,t)},e.prototype.readIgnoreString=function(){for(var e,t=this.state.pos,n="";;){var r=this.getCode();if(this.state.pos>=this.input.length)break;if(91!==r&&93!==r||92!==e){if(93==r&&93===e){n=this.input.slice(t,this.state.pos-1).replace(/\\([\[\]])/g,"$1"),this.state.pos++;break}this.state.pos++,e=r}else this.state.pos++,e=""}this.finishToken(de,n),this.finishToken(ue)},e.prototype.finishToken=function(e,t){var n=this.state.type;this.state.type=e,void 0!==t&&(this.state.value=t),this.expectNext(n,e),this.expectPrev(e,n),e.updateContext&&e.updateContext.call(this,n)},e.prototype.readToken=function(e,t){if(92===t)return this.readKeyWord();if(this.input.length<=this.state.pos)this.finishToken(he);else if(this.curContext()===W)this.readIgnoreString();else if(123===e)this.state.pos++,this.finishToken(re);else if(125===e)this.state.pos++,this.finishToken(oe);else if(42===e){if(this.state.pos++,42===this.getCode())return this.state.pos++,this.finishToken(Z);this.finishToken(Q)}else if(33===e)this.state.pos++,this.finishToken(te);else if(46===e)this.state.pos++,this.finishToken(ee);else if(91===e){if(this.state.pos++,91===this.getCode())return this.state.pos++,this.finishToken(ce);this.finishToken(ie)}else 126===e?(this.state.pos++,this.finishToken(pe)):93===e?(this.state.pos++,this.finishToken(ae)):40===e?(this.state.pos++,this.finishToken(se)):41===e?(this.state.pos++,this.finishToken(le)):44===e?(this.state.pos++,this.finishToken(fe)):58===e?(this.state.pos++,this.finishToken(ne)):this.readKeyWord()},e}(),Oe=function(e){return function(t){return t&&t.type===e}},we=Oe("Identifier"),Ce=Oe("IgnoreExpression"),xe=Oe("DotOperator"),_e=Oe("WildcardOperator"),Se=Oe("ExpandOperator"),je=Oe("GroupExpression"),Ee=Oe("RangeExpression"),ke=Oe("DestructorExpression"),Pe=Oe("ObjectPattern"),Ne=(Oe("ObjectPatternProperty"),Oe("ArrayPattern"));function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Te,Le=Object.prototype.toString,Ie=function(e){return function(t){return Le.call(t)==="[object ".concat(e,"]")}},De=Ie("Function"),Re=Array.isArray||Ie("Array"),Me=(Ie("Object"),Ie("String")),Fe=(Ie("Boolean"),Ie("Number")),ze=function(e){return"object"===Ae(e)},Be=Ie("RegExp"),Ve=function(e){return Fe(e)||/^(\d+)(\.\d+)?$/.test(e)},Ue=Re,He=Object.keys,Ye=Object.prototype.hasOwnProperty,We=function e(t,n){if(t===n)return!0;if(t&&n&&"object"===Ae(t)&&"object"===Ae(n)){var r=Ue(t),o=Ue(n),i=void 0,a=void 0,c=void 0;if(r&&o){if((a=t.length)!==n.length)return!1;for(i=a;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(r!==o)return!1;var u=He(t);if((a=u.length)!==He(n).length)return!1;for(i=a;0!=i--;)if(!Ye.call(n,u[i]))return!1;for(i=a;0!=i--;)if(!e(t[c=u[i]],n[c]))return!1;return!0}return t!=t&&n!=n},qe=new Map,Ge=function(e){return qe.get(e)},$e=function(e,t,n,r){t.forEach((function(t){var o=t.key,i=t.path;r.setIn([o],e,r.getIn(i,n))}))},Ke=function(e,t,n){var r={};return t.length&&Fe(t[0].path[0])&&(r=[]),e=null!=e?e:{},t.forEach((function(t){var o=t.key,i=t.path;n.setIn(i,r,e[o])})),r},Je=function(e,t,n){t.forEach((function(t){var r=t.key;n.deleteIn([r],e)}))},Xe=function(e,t,n,r){return t.every((function(t){var o=t.key;return r.existIn([o],e,n)}))},Qe=(Te=function(e,t){return(Te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Ze=function(e,t,n){if(Ve(e)&&Ve(t)){if("+"===n)return String(Number(e)+Number(t));if("-"===n)return String(Number(e)-Number(t));if("*"===n)return String(Number(e)*Number(t));if("/"===n)return String(Number(e)/Number(t))}else{if("+"===n)return String(e)+String(t);if("-"===n)return"NaN";if("*"===n)return"NaN";if("/"===n)return"NaN"}return String(Number(t))},et=function(e){function t(t,n){var r=e.call(this,t)||this;return r.isMatchPattern=!1,r.isWildMatchPattern=!1,r.haveExcludePattern=!1,r.haveRelativePattern=!1,r.base=n,r}return Qe(t,e),t.prototype.parse=function(){var e;return this.data={segments:[]},this.eat(he)||(this.next(),e=this.parseAtom(this.state.type)),this.data.tree=e,e},t.prototype.append=function(e,t){e&&t&&(e.after=t)},t.prototype.parseAtom=function(e){switch(e){case re:case ie:return this.includesContext($)?e===re?this.parseObjectPattern():this.parseArrayPattern():this.parseDestructorExpression();case X:return this.parseIdentifier();case pe:return this.parseExpandOperator();case Z:case Q:return this.parseWildcardOperator();case ce:return this.parseIgnoreExpression();case ee:return this.parseDotOperator()}},t.prototype.pushSegments=function(e){this.data.segments.push(e)},t.prototype.parseIdentifier=function(){var e={type:"Identifier",value:this.state.value},t=!this.includesContext($)&&!this.isMatchPattern&&!this.isWildMatchPattern;if(this.next(),this.includesContext(Y)){if(this.state.type!==ae)throw this.unexpect();this.state.context.pop(),this.next()}else t&&this.pushSegments(e.value);if(this.state.type===ie){if(this.next(),this.state.type!==X)throw this.unexpect();this.state.context.push(Y);var n=!1;/^\d+$/.test(this.state.value)&&(n=!0);var r=this.state.value;this.pushSegments(n?Number(r):r);var o=this.parseAtom(this.state.type);n&&(o.arrayIndex=!0),this.append(e,o)}else this.append(e,this.parseAtom(this.state.type));return e},t.prototype.parseExpandOperator=function(){var e={type:"ExpandOperator"};return this.isMatchPattern=!0,this.isWildMatchPattern=!0,this.data.segments=[],this.next(),this.append(e,this.parseAtom(this.state.type)),e},t.prototype.parseWildcardOperator=function(){var e={type:"WildcardOperator"};return this.state.type===Z&&(e.optional=!0),this.isMatchPattern=!0,this.isWildMatchPattern=!0,this.data.segments=[],this.next(),this.state.type===se?e.filter=this.parseGroupExpression(e):this.state.type===ie&&(e.filter=this.parseRangeExpression(e)),this.append(e,this.parseAtom(this.state.type)),e},t.prototype.parseDestructorExpression=function(){var e=this,t={type:"DestructorExpression"};this.state.context.push($);var n=this.state.pos-1;t.value=this.state.type===re?this.parseObjectPattern():this.parseArrayPattern();var r=this.state.pos;return this.state.context.pop(),t.source=this.input.substring(n,r).replace(/\[\s*([\+\-\*\/])?\s*([^,\]\s]*)\s*\]/,(function(t,n,r){return void 0!==e.relative?n?Ze(e.relative,r||1,n):r?Ze(e.relative,r,"+"):String(e.relative):t})).replace(/\s*\.\s*/g,"").replace(/\s*/g,""),void 0===this.relative&&function(e,t){qe.set(e,t)}(t.source,function e(t){var n=[];if(Pe(t)){var r=0;return t.properties.forEach((function(t){n[r]={path:[]},n[r].key=t.key.value,n[r].path.push(t.key.value),we(t.value)&&(n[r].key=t.value.value);var o=n[r].path,i=e(t.value),a=r;i.forEach((function(e){n[a]?(n[a].key=e.key,n[a].path=o.concat(e.path)):n[a]={key:e.key,path:o.concat(e.path)},a++})),a>r?r=a:r++})),n}if(Ne(t)){var o=0;return t.elements.forEach((function(t,r){n[o]={path:[]},n[o].key=r,n[o].path.push(r),we(t)&&(n[o].key=t.value);var i=n[o].path,a=e(t),c=o;a.forEach((function(e){n[c]?(n[c].key=e.key,n[c].path=i.concat(e.path)):n[c]={key:e.key,path:i.concat(e.path)},c++})),c>o?o=c:o++})),n}return ke(t)?e(t.value):n}(t)),this.relative=void 0,this.pushSegments(t.source),this.next(),this.append(t,this.parseAtom(this.state.type)),t},t.prototype.parseArrayPattern=function(){var e={type:"ArrayPattern",elements:[]};return this.next(),e.elements=this.parseArrayPatternElements(),e},t.prototype.parseArrayPatternElements=function(){for(var e=[];this.state.type!==ae&&this.state.type!==he;){if(e.push(this.parseAtom(this.state.type)),this.state.type===ae)return this.includesContext($)&&this.next(),e;this.next()}return e},t.prototype.parseObjectPattern=function(){var e={type:"ObjectPattern",properties:[]};return this.next(),e.properties=this.parseObjectProperties(),e},t.prototype.parseObjectProperties=function(){for(var e=[];this.state.type!==oe&&this.state.type!==he;){var t={type:"ObjectPatternProperty",key:this.parseAtom(this.state.type)};if(e.push(t),this.state.type===ne&&(this.next(),t.value=this.parseAtom(this.state.type)),this.state.type===oe)return this.includesContext($)&&this.next(),e;this.next()}return e},t.prototype.parseDotOperator=function(){var e={type:"DotOperator"};if(!this.type_&&this.base){if(this.base.isMatchPattern)throw new Error("Base path must be an absolute path.");for(this.data.segments=this.base.toArr();this.state.type===ee;)this.relative=this.data.segments.pop(),this.haveRelativePattern=!0,this.next();return function(e,t){void 0===e&&(e=[]);var n=e.length;return function r(o){void 0===o&&(o=0);var i=o<n-1?r(o+1):t,a=i&&{type:"DotOperator",after:i};return{type:"Identifier",value:e[o],after:a}}()}(this.data.segments.slice(),this.parseAtom(this.state.type))}return this.next(),this.append(e,this.parseAtom(this.state.type)),e},t.prototype.parseIgnoreExpression=function(){this.next();var e=String(this.state.value).replace(/\s*/g,""),t={type:"IgnoreExpression",value:e};return this.pushSegments(e),this.next(),this.append(t,this.parseAtom(this.state.type)),this.next(),t},t.prototype.parseGroupExpression=function(e){var t={type:"GroupExpression",value:[]};this.isMatchPattern=!0,this.data.segments=[],this.next();e:for(;;)switch(this.state.type){case fe:this.next();break;case te:t.isExclude=!0,this.haveExcludePattern=!0,this.next();break;case he:case le: