@nocobase/app 1.3.39-beta → 1.4.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/client/.umirc.ts +12 -14
  2. package/client/src/pages/index.tsx +3 -0
  3. package/dist/client/4607.bae81918.async.js +1 -0
  4. package/dist/client/5617.d114c98c.async.js +78 -0
  5. package/dist/client/5721.ee2b0cf3.async.js +7 -0
  6. package/dist/client/index.html +2 -1
  7. package/dist/client/index.html.tpl +2 -1
  8. package/dist/client/npm._at_ant-design.e1f1f4b0.async.js +110 -0
  9. package/dist/client/{npm._at_antv.5ea2df50.async.js → npm._at_antv.56fcebdf.async.js} +5 -5
  10. package/dist/client/npm._at_budibase.113c5b6a.async.js +36 -0
  11. package/dist/client/npm._at_dnd-kit.2fac5dde.async.js +9 -0
  12. package/dist/client/npm._at_emotion.6969cd50.async.js +2 -0
  13. package/dist/client/npm._at_formily.b1a03e41.async.js +96 -0
  14. package/dist/client/npm._at_formulajs.ff63776b.async.js +1 -0
  15. package/dist/client/npm._at_rc-component.43f95f42.async.js +5 -0
  16. package/dist/client/npm._at_remix-run.9a0418a9.async.js +2 -0
  17. package/dist/client/npm.ahooks.b416801a.async.js +6 -0
  18. package/dist/client/npm.antd-style.ecb45bdd.async.js +1 -0
  19. package/dist/client/npm.antd.732d7b9d.async.js +476 -0
  20. package/dist/client/npm.axios.c42e25ff.async.js +11 -0
  21. package/dist/client/npm.bignumber.js.cb49cd48.async.js +1 -0
  22. package/dist/client/npm.buffer.6f3eca94.async.js +1 -0
  23. package/dist/client/npm.cytoscape.cba0c14d.async.js +5 -0
  24. package/dist/client/{npm.d3-selection.e2684be8.async.js → npm.d3-selection.15d6ab5b.async.js} +1 -1
  25. package/dist/client/npm.d3-shape.b48fc404.async.js +1 -0
  26. package/dist/client/{npm.d3-transition.83e0f431.async.js → npm.d3-transition.5fd82a9c.async.js} +1 -1
  27. package/dist/client/{npm.dayjs.f4357565.async.js → npm.dayjs.0a5fd152.async.js} +1 -1
  28. package/dist/client/{npm.decimal.js.bb6d6d2e.async.js → npm.decimal.js.19391b1c.async.js} +1 -1
  29. package/dist/client/npm.dompurify.d5071c22.async.js +3 -0
  30. package/dist/client/{npm.elkjs.d0ff4db1.async.js → npm.elkjs.f35a7d45.async.js} +4 -4
  31. package/dist/client/npm.gl-matrix.d851d654.async.js +1 -0
  32. package/dist/client/{npm.handlebars.c04806e7.async.js → npm.handlebars.ade4c4fe.async.js} +5 -5
  33. package/dist/client/{npm.highlight.js.4213abe5.async.js → npm.highlight.js.8a8320c8.async.js} +1 -1
  34. package/dist/client/{npm.html-tokenize.360bb6e8.async.js → npm.html-tokenize.a6d58ae7.async.js} +1 -1
  35. package/dist/client/npm.htmlparser2.27ad86bc.async.js +2 -0
  36. package/dist/client/npm.i18next.98bb572b.async.js +1 -0
  37. package/dist/client/npm.json5.d58066fd.async.js +14 -0
  38. package/dist/client/npm.jstat.733c0b2c.async.js +1 -0
  39. package/dist/client/{npm.layout-base.49e322a0.async.js → npm.layout-base.0bdb6d00.async.js} +1 -1
  40. package/dist/client/npm.lodash-es.c06b3dd5.async.js +1 -0
  41. package/dist/client/npm.lodash.0ff318b3.async.js +37 -0
  42. package/dist/client/npm.markdown-it.5b35f93d.async.js +15 -0
  43. package/dist/client/npm.mathjs.fd97f3b7.async.js +52 -0
  44. package/dist/client/npm.mermaid.defd0c88.async.js +1529 -0
  45. package/dist/client/npm.moment.36abbf2c.async.js +4 -0
  46. package/dist/client/npm.picomatch.7a2f1314.async.js +1 -0
  47. package/dist/client/npm.postcss.2ccf11ae.async.js +27 -0
  48. package/dist/client/{npm.quill.e91b3c12.async.js → npm.quill.9d4c2cd1.async.js} +7 -7
  49. package/dist/client/{npm.rc-menu.2e06b9c3.async.js → npm.rc-menu.adf5ade6.async.js} +1 -1
  50. package/dist/client/npm.rc-picker.ef8a3e8b.async.js +1 -0
  51. package/dist/client/{npm.rc-select.13236fb8.async.js → npm.rc-select.7c36e54e.async.js} +2 -2
  52. package/dist/client/{npm.rc-table.de3dd762.async.js → npm.rc-table.a153e021.async.js} +1 -1
  53. package/dist/client/npm.rc-tree.f61b7d87.async.js +1 -0
  54. package/dist/client/npm.rc-util.23a9b855.async.js +18 -0
  55. package/dist/client/npm.react-dom.b9fb5fd7.async.js +11 -0
  56. package/dist/client/npm.react-image-lightbox.727d3218.async.js +3 -0
  57. package/dist/client/npm.react-router-dom.832efba3.async.js +1 -0
  58. package/dist/client/npm.readable-stream.6e743f2a.async.js +1 -0
  59. package/dist/client/p__index.89314c11.async.js +1533 -0
  60. package/dist/client/umi.9e319d79.js +21 -0
  61. package/lib/index.js +11 -3
  62. package/package.json +6 -6
  63. package/src/index.ts +12 -9
  64. package/dist/client/4607.6d585996.async.js +0 -1
  65. package/dist/client/5721.cf90e884.async.js +0 -8
  66. package/dist/client/6718.1e7fe05d.async.js +0 -66
  67. package/dist/client/npm._at_ant-design.4fe52a2f.async.js +0 -110
  68. package/dist/client/npm._at_dnd-kit.01a3ad70.async.js +0 -6
  69. package/dist/client/npm._at_emotion.0c6b11eb.async.js +0 -2
  70. package/dist/client/npm._at_formily.f9d0b213.async.js +0 -101
  71. package/dist/client/npm._at_formulajs.fe3f9fca.async.js +0 -1
  72. package/dist/client/npm._at_rc-component.086dbf23.async.js +0 -5
  73. package/dist/client/npm._at_remix-run.55137b87.async.js +0 -3
  74. package/dist/client/npm.ahooks.c3df4eb6.async.js +0 -6
  75. package/dist/client/npm.antd-style.47ebbe31.async.js +0 -1
  76. package/dist/client/npm.antd.91188318.async.js +0 -476
  77. package/dist/client/npm.axios.f696c6e5.async.js +0 -2
  78. package/dist/client/npm.bignumber.js.70d3d7e8.async.js +0 -1
  79. package/dist/client/npm.buffer.9cce4593.async.js +0 -1
  80. package/dist/client/npm.cytoscape.39239e7b.async.js +0 -5
  81. package/dist/client/npm.d3-shape.3660138b.async.js +0 -1
  82. package/dist/client/npm.dompurify.93b5a130.async.js +0 -3
  83. package/dist/client/npm.gl-matrix.31b80e16.async.js +0 -1
  84. package/dist/client/npm.htmlparser2.cbbea4c4.async.js +0 -2
  85. package/dist/client/npm.i18next.eee0fc0f.async.js +0 -1
  86. package/dist/client/npm.json5.87aca70f.async.js +0 -14
  87. package/dist/client/npm.jstat.657c7dba.async.js +0 -1
  88. package/dist/client/npm.lodash-es.5eff0420.async.js +0 -1
  89. package/dist/client/npm.lodash.0f9322fa.async.js +0 -37
  90. package/dist/client/npm.markdown-it.5875530c.async.js +0 -15
  91. package/dist/client/npm.mathjs.d8df2940.async.js +0 -53
  92. package/dist/client/npm.mermaid.7057e144.async.js +0 -1530
  93. package/dist/client/npm.moment.3c26e672.async.js +0 -4
  94. package/dist/client/npm.postcss.368fceaf.async.js +0 -28
  95. package/dist/client/npm.rc-picker.218fa2cc.async.js +0 -1
  96. package/dist/client/npm.rc-tree.bdb9cee8.async.js +0 -1
  97. package/dist/client/npm.rc-util.87a2c212.async.js +0 -18
  98. package/dist/client/npm.react-dom.6236e62b.async.js +0 -11
  99. package/dist/client/npm.react-image-lightbox.0e0cf81f.async.js +0 -3
  100. package/dist/client/npm.react-router-dom.06c80c5d.async.js +0 -2
  101. package/dist/client/npm.readable-stream.41117b5f.async.js +0 -1
  102. package/dist/client/p__index.4ee03ea9.async.js +0 -1509
  103. package/dist/client/umi.99c57684.js +0 -22
@@ -1 +1 @@
1
- "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[9331],{90482:function(ki,Pe,Mi){var $=9e15,U=1e9,te="0123456789abcdef",K="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Q="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",se={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-$,maxE:$,crypto:!1},de,b,m=!0,Y="[DecimalError] ",B=Y+"Invalid argument: ",pe=Y+"Precision limit exceeded",ge=Y+"crypto unavailable",we="[object Decimal]",S=Math.floor,q=Math.pow,Ae=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Le=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Fe=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,me=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,O=1e7,w=7,Oe=9007199254740991,Ie=K.length-1,oe=Q.length-1,d={toStringTag:we};d.absoluteValue=d.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),p(e)},d.ceil=function(){return p(new this.constructor(this),this.e+1,2)},d.clampedTo=d.clamp=function(e,i){var n,r=this,t=r.constructor;if(e=new t(e),i=new t(i),!e.s||!i.s)return new t(NaN);if(e.gt(i))throw Error(B+i);return n=r.cmp(e),n<0?e:r.cmp(i)>0?i:new t(r)},d.comparedTo=d.cmp=function(e){var i,n,r,t,s=this,o=s.d,u=(e=new s.constructor(e)).d,c=s.s,f=e.s;if(!o||!u)return!c||!f?NaN:c!==f?c:o===u?0:!o^c<0?1:-1;if(!o[0]||!u[0])return o[0]?c:u[0]?-f:0;if(c!==f)return c;if(s.e!==e.e)return s.e>e.e^c<0?1:-1;for(r=o.length,t=u.length,i=0,n=r<t?r:t;i<n;++i)if(o[i]!==u[i])return o[i]>u[i]^c<0?1:-1;return r===t?0:r>t^c<0?1:-1},d.cosine=d.cos=function(){var e,i,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,i=r.rounding,r.precision=e+Math.max(n.e,n.sd())+w,r.rounding=1,n=De(r,Ce(r,n)),r.precision=e,r.rounding=i,p(b==2||b==3?n.neg():n,e,i,!0)):new r(1):new r(NaN)},d.cubeRoot=d.cbrt=function(){var e,i,n,r,t,s,o,u,c,f,l=this,a=l.constructor;if(!l.isFinite()||l.isZero())return new a(l);for(m=!1,s=l.s*q(l.s*l,1/3),!s||Math.abs(s)==1/0?(n=_(l.d),e=l.e,(s=(e-n.length+1)%3)&&(n+=s==1||s==-2?"0":"00"),s=q(n,1/3),e=S((e+1)/3)-(e%3==(e<0?-1:2)),s==1/0?n="5e"+e:(n=s.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),r=new a(n),r.s=l.s):r=new a(s.toString()),o=(e=a.precision)+3;;)if(u=r,c=u.times(u).times(u),f=c.plus(l),r=E(f.plus(l).times(u),f.plus(c),o+2,1),_(u.d).slice(0,o)===(n=_(r.d)).slice(0,o))if(n=n.slice(o-3,o+1),n=="9999"||!t&&n=="4999"){if(!t&&(p(u,e+1,0),u.times(u).times(u).eq(l))){r=u;break}o+=4,t=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(p(r,e+1,1),i=!r.times(r).times(r).eq(l));break}return m=!0,p(r,e,a.rounding,i)},d.decimalPlaces=d.dp=function(){var e,i=this.d,n=NaN;if(i){if(e=i.length-1,n=(e-S(this.e/w))*w,e=i[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},d.dividedBy=d.div=function(e){return E(this,new this.constructor(e))},d.dividedToIntegerBy=d.divToInt=function(e){var i=this,n=i.constructor;return p(E(i,new n(e),0,1,1),n.precision,n.rounding)},d.equals=d.eq=function(e){return this.cmp(e)===0},d.floor=function(){return p(new this.constructor(this),this.e+1,3)},d.greaterThan=d.gt=function(e){return this.cmp(e)>0},d.greaterThanOrEqualTo=d.gte=function(e){var i=this.cmp(e);return i==1||i===0},d.hyperbolicCosine=d.cosh=function(){var e,i,n,r,t,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;n=o.precision,r=o.rounding,o.precision=n+Math.max(s.e,s.sd())+4,o.rounding=1,t=s.d.length,t<32?(e=Math.ceil(t/3),i=(1/y(4,e)).toString()):(e=16,i="2.3283064365386962890625e-10"),s=G(o,1,s.times(i),new o(1),!0);for(var c,f=e,l=new o(8);f--;)c=s.times(s),s=u.minus(c.times(l.minus(c.times(l))));return p(s,o.precision=n,o.rounding=r,!0)},d.hyperbolicSine=d.sinh=function(){var e,i,n,r,t=this,s=t.constructor;if(!t.isFinite()||t.isZero())return new s(t);if(i=s.precision,n=s.rounding,s.precision=i+Math.max(t.e,t.sd())+4,s.rounding=1,r=t.d.length,r<3)t=G(s,2,t,t,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:e|0,t=t.times(1/y(5,e)),t=G(s,2,t,t,!0);for(var o,u=new s(5),c=new s(16),f=new s(20);e--;)o=t.times(t),t=t.times(u.plus(o.times(c.times(o).plus(f))))}return s.precision=i,s.rounding=n,p(t,i,n,!0)},d.hyperbolicTangent=d.tanh=function(){var e,i,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+7,r.rounding=1,E(n.sinh(),n.cosh(),r.precision=e,r.rounding=i)):new r(n.s)},d.inverseCosine=d.acos=function(){var e,i=this,n=i.constructor,r=i.abs().cmp(1),t=n.precision,s=n.rounding;return r!==-1?r===0?i.isNeg()?I(n,t,s):new n(0):new n(NaN):i.isZero()?I(n,t+4,s).times(.5):(n.precision=t+6,n.rounding=1,i=i.asin(),e=I(n,t+4,s).times(.5),n.precision=t,n.rounding=s,e.minus(i))},d.inverseHyperbolicCosine=d.acosh=function(){var e,i,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,i=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,m=!1,n=n.times(n).minus(1).sqrt().plus(n),m=!0,r.precision=e,r.rounding=i,n.ln()):new r(n)},d.inverseHyperbolicSine=d.asinh=function(){var e,i,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,m=!1,n=n.times(n).plus(1).sqrt().plus(n),m=!0,r.precision=e,r.rounding=i,n.ln())},d.inverseHyperbolicTangent=d.atanh=function(){var e,i,n,r,t=this,s=t.constructor;return t.isFinite()?t.e>=0?new s(t.abs().eq(1)?t.s/0:t.isZero()?t:NaN):(e=s.precision,i=s.rounding,r=t.sd(),Math.max(r,e)<2*-t.e-1?p(new s(t),e,i,!0):(s.precision=n=r-t.e,t=E(t.plus(1),new s(1).minus(t),n+e,1),s.precision=e+4,s.rounding=1,t=t.ln(),s.precision=e,s.rounding=i,t.times(.5))):new s(NaN)},d.inverseSine=d.asin=function(){var e,i,n,r,t=this,s=t.constructor;return t.isZero()?new s(t):(i=t.abs().cmp(1),n=s.precision,r=s.rounding,i!==-1?i===0?(e=I(s,n+4,r).times(.5),e.s=t.s,e):new s(NaN):(s.precision=n+6,s.rounding=1,t=t.div(new s(1).minus(t.times(t)).sqrt().plus(1)).atan(),s.precision=n,s.rounding=r,t.times(2)))},d.inverseTangent=d.atan=function(){var e,i,n,r,t,s,o,u,c,f=this,l=f.constructor,a=l.precision,h=l.rounding;if(f.isFinite()){if(f.isZero())return new l(f);if(f.abs().eq(1)&&a+4<=oe)return o=I(l,a+4,h).times(.25),o.s=f.s,o}else{if(!f.s)return new l(NaN);if(a+4<=oe)return o=I(l,a+4,h).times(.5),o.s=f.s,o}for(l.precision=u=a+10,l.rounding=1,n=Math.min(28,u/w+2|0),e=n;e;--e)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(m=!1,i=Math.ceil(u/w),r=1,c=f.times(f),o=new l(f),t=f;e!==-1;)if(t=t.times(c),s=o.minus(t.div(r+=2)),t=t.times(c),o=s.plus(t.div(r+=2)),o.d[i]!==void 0)for(e=i;o.d[e]===s.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),m=!0,p(o,l.precision=a,l.rounding=h,!0)},d.isFinite=function(){return!!this.d},d.isInteger=d.isInt=function(){return!!this.d&&S(this.e/w)>this.d.length-2},d.isNaN=function(){return!this.s},d.isNegative=d.isNeg=function(){return this.s<0},d.isPositive=d.isPos=function(){return this.s>0},d.isZero=function(){return!!this.d&&this.d[0]===0},d.lessThan=d.lt=function(e){return this.cmp(e)<0},d.lessThanOrEqualTo=d.lte=function(e){return this.cmp(e)<1},d.logarithm=d.log=function(e){var i,n,r,t,s,o,u,c,f=this,l=f.constructor,a=l.precision,h=l.rounding,g=5;if(e==null)e=new l(10),i=!0;else{if(e=new l(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new l(NaN);i=e.eq(10)}if(n=f.d,f.s<0||!n||!n[0]||f.eq(1))return new l(n&&!n[0]?-1/0:f.s!=1?NaN:n?0:1/0);if(i)if(n.length>1)s=!0;else{for(t=n[0];t%10===0;)t/=10;s=t!==1}if(m=!1,u=a+g,o=V(f,u),r=i?x(l,u+10):V(e,u),c=E(o,r,u,1),W(c.d,t=a,h))do if(u+=10,o=V(f,u),r=i?x(l,u+10):V(e,u),c=E(o,r,u,1),!s){+_(c.d).slice(t+1,t+15)+1==1e14&&(c=p(c,a+1,0));break}while(W(c.d,t+=10,h));return m=!0,p(c,a,h)},d.minus=d.sub=function(e){var i,n,r,t,s,o,u,c,f,l,a,h,g=this,v=g.constructor;if(e=new v(e),!g.d||!e.d)return!g.s||!e.s?e=new v(NaN):g.d?e.s=-e.s:e=new v(e.d||g.s!==e.s?g:NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(f=g.d,h=e.d,u=v.precision,c=v.rounding,!f[0]||!h[0]){if(h[0])e.s=-e.s;else if(f[0])e=new v(g);else return new v(c===3?-0:0);return m?p(e,u,c):e}if(n=S(e.e/w),l=S(g.e/w),f=f.slice(),s=l-n,s){for(a=s<0,a?(i=f,s=-s,o=h.length):(i=h,n=l,o=f.length),r=Math.max(Math.ceil(u/w),o)+2,s>r&&(s=r,i.length=1),i.reverse(),r=s;r--;)i.push(0);i.reverse()}else{for(r=f.length,o=h.length,a=r<o,a&&(o=r),r=0;r<o;r++)if(f[r]!=h[r]){a=f[r]<h[r];break}s=0}for(a&&(i=f,f=h,h=i,e.s=-e.s),o=f.length,r=h.length-o;r>0;--r)f[o++]=0;for(r=h.length;r>s;){if(f[--r]<h[r]){for(t=r;t&&f[--t]===0;)f[t]=O-1;--f[t],f[r]+=O}f[r]-=h[r]}for(;f[--o]===0;)f.pop();for(;f[0]===0;f.shift())--n;return f[0]?(e.d=f,e.e=z(f,n),m?p(e,u,c):e):new v(c===3?-0:0)},d.modulo=d.mod=function(e){var i,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?p(new r(n),r.precision,r.rounding):(m=!1,r.modulo==9?(i=E(n,e.abs(),0,3,1),i.s*=e.s):i=E(n,e,0,r.modulo,1),i=i.times(e),m=!0,n.minus(i))},d.naturalExponential=d.exp=function(){return ue(this)},d.naturalLogarithm=d.ln=function(){return V(this)},d.negated=d.neg=function(){var e=new this.constructor(this);return e.s=-e.s,p(e)},d.plus=d.add=function(e){var i,n,r,t,s,o,u,c,f,l,a=this,h=a.constructor;if(e=new h(e),!a.d||!e.d)return!a.s||!e.s?e=new h(NaN):a.d||(e=new h(e.d||a.s===e.s?a:NaN)),e;if(a.s!=e.s)return e.s=-e.s,a.minus(e);if(f=a.d,l=e.d,u=h.precision,c=h.rounding,!f[0]||!l[0])return l[0]||(e=new h(a)),m?p(e,u,c):e;if(s=S(a.e/w),r=S(e.e/w),f=f.slice(),t=s-r,t){for(t<0?(n=f,t=-t,o=l.length):(n=l,r=s,o=f.length),s=Math.ceil(u/w),o=s>o?s+1:o+1,t>o&&(t=o,n.length=1),n.reverse();t--;)n.push(0);n.reverse()}for(o=f.length,t=l.length,o-t<0&&(t=o,n=l,l=f,f=n),i=0;t;)i=(f[--t]=f[t]+l[t]+i)/O|0,f[t]%=O;for(i&&(f.unshift(i),++r),o=f.length;f[--o]==0;)f.pop();return e.d=f,e.e=z(f,r),m?p(e,u,c):e},d.precision=d.sd=function(e){var i,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(B+e);return n.d?(i=Ne(n.d),e&&n.e+1>i&&(i=n.e+1)):i=NaN,i},d.round=function(){var e=this,i=e.constructor;return p(new i(e),e.e+1,i.rounding)},d.sine=d.sin=function(){var e,i,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+Math.max(n.e,n.sd())+w,r.rounding=1,n=Ze(r,Ce(r,n)),r.precision=e,r.rounding=i,p(b>2?n.neg():n,e,i,!0)):new r(NaN)},d.squareRoot=d.sqrt=function(){var e,i,n,r,t,s,o=this,u=o.d,c=o.e,f=o.s,l=o.constructor;if(f!==1||!u||!u[0])return new l(!f||f<0&&(!u||u[0])?NaN:u?o:1/0);for(m=!1,f=Math.sqrt(+o),f==0||f==1/0?(i=_(u),(i.length+c)%2==0&&(i+="0"),f=Math.sqrt(i),c=S((c+1)/2)-(c<0||c%2),f==1/0?i="5e"+c:(i=f.toExponential(),i=i.slice(0,i.indexOf("e")+1)+c),r=new l(i)):r=new l(f.toString()),n=(c=l.precision)+3;;)if(s=r,r=s.plus(E(o,s,n+2,1)).times(.5),_(s.d).slice(0,n)===(i=_(r.d)).slice(0,n))if(i=i.slice(n-3,n+1),i=="9999"||!t&&i=="4999"){if(!t&&(p(s,c+1,0),s.times(s).eq(o))){r=s;break}n+=4,t=1}else{(!+i||!+i.slice(1)&&i.charAt(0)=="5")&&(p(r,c+1,1),e=!r.times(r).eq(o));break}return m=!0,p(r,c,l.rounding,e)},d.tangent=d.tan=function(){var e,i,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=E(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=i,p(b==2||b==4?n.neg():n,e,i,!0)):new r(NaN)},d.times=d.mul=function(e){var i,n,r,t,s,o,u,c,f,l=this,a=l.constructor,h=l.d,g=(e=new a(e)).d;if(e.s*=l.s,!h||!h[0]||!g||!g[0])return new a(!e.s||h&&!h[0]&&!g||g&&!g[0]&&!h?NaN:!h||!g?e.s/0:e.s*0);for(n=S(l.e/w)+S(e.e/w),c=h.length,f=g.length,c<f&&(s=h,h=g,g=s,o=c,c=f,f=o),s=[],o=c+f,r=o;r--;)s.push(0);for(r=f;--r>=0;){for(i=0,t=c+r;t>r;)u=s[t]+g[r]*h[t-r-1]+i,s[t--]=u%O|0,i=u/O|0;s[t]=(s[t]+i)%O|0}for(;!s[--o];)s.pop();return i?++n:s.shift(),e.d=s,e.e=z(s,n),m?p(e,a.precision,a.rounding):e},d.toBinary=function(e,i){return ce(this,2,e,i)},d.toDecimalPlaces=d.toDP=function(e,i){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(F(e,0,U),i===void 0?i=r.rounding:F(i,0,8),p(n,e+n.e+1,i))},d.toExponential=function(e,i){var n,r=this,t=r.constructor;return e===void 0?n=Z(r,!0):(F(e,0,U),i===void 0?i=t.rounding:F(i,0,8),r=p(new t(r),e+1,i),n=Z(r,!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},d.toFixed=function(e,i){var n,r,t=this,s=t.constructor;return e===void 0?n=Z(t):(F(e,0,U),i===void 0?i=s.rounding:F(i,0,8),r=p(new s(t),e+t.e+1,i),n=Z(r,!1,e+r.e+1)),t.isNeg()&&!t.isZero()?"-"+n:n},d.toFraction=function(e){var i,n,r,t,s,o,u,c,f,l,a,h,g=this,v=g.d,N=g.constructor;if(!v)return new N(g);if(f=n=new N(1),r=c=new N(0),i=new N(r),s=i.e=Ne(v)-g.e-1,o=s%w,i.d[0]=q(10,o<0?w+o:o),e==null)e=s>0?i:f;else{if(u=new N(e),!u.isInt()||u.lt(f))throw Error(B+u);e=u.gt(i)?s>0?i:f:u}for(m=!1,u=new N(_(v)),l=N.precision,N.precision=s=v.length*w*2;a=E(u,i,0,1,1),t=n.plus(a.times(r)),t.cmp(e)!=1;)n=r,r=t,t=f,f=c.plus(a.times(t)),c=t,t=i,i=u.minus(a.times(t)),u=t;return t=E(e.minus(n),r,0,1,1),c=c.plus(t.times(f)),n=n.plus(t.times(r)),c.s=f.s=g.s,h=E(f,r,s,1).minus(g).abs().cmp(E(c,n,s,1).minus(g).abs())<1?[f,r]:[c,n],N.precision=l,m=!0,h},d.toHexadecimal=d.toHex=function(e,i){return ce(this,16,e,i)},d.toNearest=function(e,i){var n=this,r=n.constructor;if(n=new r(n),e==null){if(!n.d)return n;e=new r(1),i=r.rounding}else{if(e=new r(e),i===void 0?i=r.rounding:F(i,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(m=!1,n=E(n,e,0,i,1).times(e),m=!0,p(n)):(e.s=n.s,n=e),n},d.toNumber=function(){return+this},d.toOctal=function(e,i){return ce(this,8,e,i)},d.toPower=d.pow=function(e){var i,n,r,t,s,o,u=this,c=u.constructor,f=+(e=new c(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new c(q(+u,f));if(u=new c(u),u.eq(1))return u;if(r=c.precision,s=c.rounding,e.eq(1))return p(u,r,s);if(i=S(e.e/w),i>=e.d.length-1&&(n=f<0?-f:f)<=Oe)return t=ve(c,u,n,r),e.s<0?new c(1).div(t):p(t,r,s);if(o=u.s,o<0){if(i<e.d.length-1)return new c(NaN);if(e.d[i]&1||(o=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=o,u}return n=q(+u,f),i=n==0||!isFinite(n)?S(f*(Math.log("0."+_(u.d))/Math.LN10+u.e+1)):new c(n+"").e,i>c.maxE+1||i<c.minE-1?new c(i>0?o/0:0):(m=!1,c.rounding=u.s=1,n=Math.min(12,(i+"").length),t=ue(e.times(V(u,r+n)),r),t.d&&(t=p(t,r+5,1),W(t.d,r,s)&&(i=r+10,t=p(ue(e.times(V(u,i+n)),i),i+5,1),+_(t.d).slice(r+1,r+15)+1==1e14&&(t=p(t,r+1,0)))),t.s=o,m=!0,c.rounding=s,p(t,r,s))},d.toPrecision=function(e,i){var n,r=this,t=r.constructor;return e===void 0?n=Z(r,r.e<=t.toExpNeg||r.e>=t.toExpPos):(F(e,1,U),i===void 0?i=t.rounding:F(i,0,8),r=p(new t(r),e,i),n=Z(r,e<=r.e||r.e<=t.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},d.toSignificantDigits=d.toSD=function(e,i){var n=this,r=n.constructor;return e===void 0?(e=r.precision,i=r.rounding):(F(e,1,U),i===void 0?i=r.rounding:F(i,0,8)),p(new r(n),e,i)},d.toString=function(){var e=this,i=e.constructor,n=Z(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},d.truncated=d.trunc=function(){return p(new this.constructor(this),this.e+1,1)},d.valueOf=d.toJSON=function(){var e=this,i=e.constructor,n=Z(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()?"-"+n:n};function _(e){var i,n,r,t=e.length-1,s="",o=e[0];if(t>0){for(s+=o,i=1;i<t;i++)r=e[i]+"",n=w-r.length,n&&(s+=H(n)),s+=r;o=e[i],r=o+"",n=w-r.length,n&&(s+=H(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}function F(e,i,n){if(e!==~~e||e<i||e>n)throw Error(B+e)}function W(e,i,n,r){var t,s,o,u;for(s=e[0];s>=10;s/=10)--i;return--i<0?(i+=w,t=0):(t=Math.ceil((i+1)/w),i%=w),s=q(10,w-i),u=e[t]%s|0,r==null?i<3?(i==0?u=u/100|0:i==1&&(u=u/10|0),o=n<4&&u==99999||n>3&&u==49999||u==5e4||u==0):o=(n<4&&u+1==s||n>3&&u+1==s/2)&&(e[t+1]/s/100|0)==q(10,i-2)-1||(u==s/2||u==0)&&(e[t+1]/s/100|0)==0:i<4?(i==0?u=u/1e3|0:i==1?u=u/100|0:i==2&&(u=u/10|0),o=(r||n<4)&&u==9999||!r&&n>3&&u==4999):o=((r||n<4)&&u+1==s||!r&&n>3&&u+1==s/2)&&(e[t+1]/s/1e3|0)==q(10,i-3)-1,o}function j(e,i,n){for(var r,t=[0],s,o=0,u=e.length;o<u;){for(s=t.length;s--;)t[s]*=i;for(t[0]+=te.indexOf(e.charAt(o++)),r=0;r<t.length;r++)t[r]>n-1&&(t[r+1]===void 0&&(t[r+1]=0),t[r+1]+=t[r]/n|0,t[r]%=n)}return t.reverse()}function De(e,i){var n,r,t;if(i.isZero())return i;r=i.d.length,r<32?(n=Math.ceil(r/3),t=(1/y(4,n)).toString()):(n=16,t="2.3283064365386962890625e-10"),e.precision+=n,i=G(e,1,i.times(t),new e(1));for(var s=n;s--;){var o=i.times(i);i=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,i}var E=function(){function e(r,t,s){var o,u=0,c=r.length;for(r=r.slice();c--;)o=r[c]*t+u,r[c]=o%s|0,u=o/s|0;return u&&r.unshift(u),r}function i(r,t,s,o){var u,c;if(s!=o)c=s>o?1:-1;else for(u=c=0;u<s;u++)if(r[u]!=t[u]){c=r[u]>t[u]?1:-1;break}return c}function n(r,t,s,o){for(var u=0;s--;)r[s]-=u,u=r[s]<t[s]?1:0,r[s]=u*o+r[s]-t[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,t,s,o,u,c){var f,l,a,h,g,v,N,L,C,D,k,P,ee,R,le,ie,J,ae,T,ne,re=r.constructor,he=r.s==t.s?1:-1,A=r.d,M=t.d;if(!A||!A[0]||!M||!M[0])return new re(!r.s||!t.s||(A?M&&A[0]==M[0]:!M)?NaN:A&&A[0]==0||!M?he*0:he/0);for(c?(g=1,l=r.e-t.e):(c=O,g=w,l=S(r.e/g)-S(t.e/g)),T=M.length,J=A.length,C=new re(he),D=C.d=[],a=0;M[a]==(A[a]||0);a++);if(M[a]>(A[a]||0)&&l--,s==null?(R=s=re.precision,o=re.rounding):u?R=s+(r.e-t.e)+1:R=s,R<0)D.push(1),v=!0;else{if(R=R/g+2|0,a=0,T==1){for(h=0,M=M[0],R++;(a<J||h)&&R--;a++)le=h*c+(A[a]||0),D[a]=le/M|0,h=le%M|0;v=h||a<J}else{for(h=c/(M[0]+1)|0,h>1&&(M=e(M,h,c),A=e(A,h,c),T=M.length,J=A.length),ie=T,k=A.slice(0,T),P=k.length;P<T;)k[P++]=0;ne=M.slice(),ne.unshift(0),ae=M[0],M[1]>=c/2&&++ae;do h=0,f=i(M,k,T,P),f<0?(ee=k[0],T!=P&&(ee=ee*c+(k[1]||0)),h=ee/ae|0,h>1?(h>=c&&(h=c-1),N=e(M,h,c),L=N.length,P=k.length,f=i(N,k,L,P),f==1&&(h--,n(N,T<L?ne:M,L,c))):(h==0&&(f=h=1),N=M.slice()),L=N.length,L<P&&N.unshift(0),n(k,N,P,c),f==-1&&(P=k.length,f=i(M,k,T,P),f<1&&(h++,n(k,T<P?ne:M,P,c))),P=k.length):f===0&&(h++,k=[0]),D[a++]=h,f&&k[0]?k[P++]=A[ie]||0:(k=[A[ie]],P=1);while((ie++<J||k[0]!==void 0)&&R--);v=k[0]!==void 0}D[0]||D.shift()}if(g==1)C.e=l,de=v;else{for(a=1,h=D[0];h>=10;h/=10)a++;C.e=a+l*g-1,p(C,u?s+C.e+1:s,o,v)}return C}}();function p(e,i,n,r){var t,s,o,u,c,f,l,a,h,g=e.constructor;e:if(i!=null){if(a=e.d,!a)return e;for(t=1,u=a[0];u>=10;u/=10)t++;if(s=i-t,s<0)s+=w,o=i,l=a[h=0],c=l/q(10,t-o-1)%10|0;else if(h=Math.ceil((s+1)/w),u=a.length,h>=u)if(r){for(;u++<=h;)a.push(0);l=c=0,t=1,s%=w,o=s-w+1}else break e;else{for(l=u=a[h],t=1;u>=10;u/=10)t++;s%=w,o=s-w+t,c=o<0?0:l/q(10,t-o-1)%10|0}if(r=r||i<0||a[h+1]!==void 0||(o<0?l:l%q(10,t-o-1)),f=n<4?(c||r)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||r||n==6&&(s>0?o>0?l/q(10,t-o):0:a[h-1])%10&1||n==(e.s<0?8:7)),i<1||!a[0])return a.length=0,f?(i-=e.e+1,a[0]=q(10,(w-i%w)%w),e.e=-i||0):a[0]=e.e=0,e;if(s==0?(a.length=h,u=1,h--):(a.length=h+1,u=q(10,w-s),a[h]=o>0?(l/q(10,t-o)%q(10,o)|0)*u:0),f)for(;;)if(h==0){for(s=1,o=a[0];o>=10;o/=10)s++;for(o=a[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(e.e++,a[0]==O&&(a[0]=1));break}else{if(a[h]+=u,a[h]!=O)break;a[h--]=0,u=1}for(s=a.length;a[--s]===0;)a.pop()}return m&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e<g.minE&&(e.e=0,e.d=[0])),e}function Z(e,i,n){if(!e.isFinite())return Me(e);var r,t=e.e,s=_(e.d),o=s.length;return i?(n&&(r=n-o)>0?s=s.charAt(0)+"."+s.slice(1)+H(r):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):t<0?(s="0."+H(-t-1)+s,n&&(r=n-o)>0&&(s+=H(r))):t>=o?(s+=H(t+1-o),n&&(r=n-t-1)>0&&(s=s+"."+H(r))):((r=t+1)<o&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-o)>0&&(t+1===o&&(s+="."),s+=H(r))),s}function z(e,i){var n=e[0];for(i*=w;n>=10;n/=10)i++;return i}function x(e,i,n){if(i>Ie)throw m=!0,n&&(e.precision=n),Error(pe);return p(new e(K),i,1,!0)}function I(e,i,n){if(i>oe)throw Error(pe);return p(new e(Q),i,n,!0)}function Ne(e){var i=e.length-1,n=i*w+1;if(i=e[i],i){for(;i%10==0;i/=10)n--;for(i=e[0];i>=10;i/=10)n++}return n}function H(e){for(var i="";e--;)i+="0";return i}function ve(e,i,n,r){var t,s=new e(1),o=Math.ceil(r/w+4);for(m=!1;;){if(n%2&&(s=s.times(i),qe(s.d,o)&&(t=!0)),n=S(n/2),n===0){n=s.d.length-1,t&&s.d[n]===0&&++s.d[n];break}i=i.times(i),qe(i.d,o)}return m=!0,s}function Ee(e){return e.d[e.d.length-1]&1}function ke(e,i,n){for(var r,t=new e(i[0]),s=0;++s<i.length;)if(r=new e(i[s]),r.s)t[n](r)&&(t=r);else{t=r;break}return t}function ue(e,i){var n,r,t,s,o,u,c,f=0,l=0,a=0,h=e.constructor,g=h.rounding,v=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(i==null?(m=!1,c=v):c=i,u=new h(.03125);e.e>-2;)e=e.times(u),a+=5;for(r=Math.log(q(2,a))/Math.LN10*2+5|0,c+=r,n=s=o=new h(1),h.precision=c;;){if(s=p(s.times(e),c,1),n=n.times(++l),u=o.plus(E(s,n,c,1)),_(u.d).slice(0,c)===_(o.d).slice(0,c)){for(t=a;t--;)o=p(o.times(o),c,1);if(i==null)if(f<3&&W(o.d,c-r,g,f))h.precision=c+=10,n=s=u=new h(1),l=0,f++;else return p(o,h.precision=v,g,m=!0);else return h.precision=v,o}o=u}}function V(e,i){var n,r,t,s,o,u,c,f,l,a,h,g=1,v=10,N=e,L=N.d,C=N.constructor,D=C.rounding,k=C.precision;if(N.s<0||!L||!L[0]||!N.e&&L[0]==1&&L.length==1)return new C(L&&!L[0]?-1/0:N.s!=1?NaN:L?0:N);if(i==null?(m=!1,l=k):l=i,C.precision=l+=v,n=_(L),r=n.charAt(0),Math.abs(s=N.e)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)N=N.times(e),n=_(N.d),r=n.charAt(0),g++;s=N.e,r>1?(N=new C("0."+n),s++):N=new C(r+"."+n.slice(1))}else return f=x(C,l+2,k).times(s+""),N=V(new C(r+"."+n.slice(1)),l-v).plus(f),C.precision=k,i==null?p(N,k,D,m=!0):N;for(a=N,c=o=N=E(N.minus(1),N.plus(1),l,1),h=p(N.times(N),l,1),t=3;;){if(o=p(o.times(h),l,1),f=c.plus(E(o,new C(t),l,1)),_(f.d).slice(0,l)===_(c.d).slice(0,l))if(c=c.times(2),s!==0&&(c=c.plus(x(C,l+2,k).times(s+""))),c=E(c,new C(g),l,1),i==null)if(W(c.d,l-v,D,u))C.precision=l+=v,f=o=N=E(a.minus(1),a.plus(1),l,1),h=p(N.times(N),l,1),t=u=1;else return p(c,C.precision=k,D,m=!0);else return C.precision=k,c;c=f,t+=2}}function Me(e){return String(e.s*e.s/0)}function fe(e,i){var n,r,t;for((n=i.indexOf("."))>-1&&(i=i.replace(".","")),(r=i.search(/e/i))>0?(n<0&&(n=r),n+=+i.slice(r+1),i=i.substring(0,r)):n<0&&(n=i.length),r=0;i.charCodeAt(r)===48;r++);for(t=i.length;i.charCodeAt(t-1)===48;--t);if(i=i.slice(r,t),i){if(t-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%w,n<0&&(r+=w),r<t){for(r&&e.d.push(+i.slice(0,r)),t-=w;r<t;)e.d.push(+i.slice(r,r+=w));i=i.slice(r),r=w-i.length}else r-=t;for(;r--;)i+="0";e.d.push(+i),m&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function Te(e,i){var n,r,t,s,o,u,c,f,l;if(i.indexOf("_")>-1){if(i=i.replace(/(\d)_(?=\d)/g,"$1"),me.test(i))return fe(e,i)}else if(i==="Infinity"||i==="NaN")return+i||(e.s=NaN),e.e=NaN,e.d=null,e;if(Le.test(i))n=16,i=i.toLowerCase();else if(Ae.test(i))n=2;else if(Fe.test(i))n=8;else throw Error(B+i);for(s=i.search(/p/i),s>0?(c=+i.slice(s+1),i=i.substring(2,s)):i=i.slice(2),s=i.indexOf("."),o=s>=0,r=e.constructor,o&&(i=i.replace(".",""),u=i.length,s=u-s,t=ve(r,new r(n),s,s*2)),f=j(i,n,O),l=f.length-1,s=l;f[s]===0;--s)f.pop();return s<0?new r(e.s*0):(e.e=z(f,l),e.d=f,m=!1,o&&(e=E(e,t,u*4)),c&&(e=e.times(Math.abs(c)<54?q(2,c):X.pow(2,c))),m=!0,e)}function Ze(e,i){var n,r=i.d.length;if(r<3)return i.isZero()?i:G(e,2,i,i);n=1.4*Math.sqrt(r),n=n>16?16:n|0,i=i.times(1/y(5,n)),i=G(e,2,i,i);for(var t,s=new e(5),o=new e(16),u=new e(20);n--;)t=i.times(i),i=i.times(s.plus(t.times(o.times(t).minus(u))));return i}function G(e,i,n,r,t){var s,o,u,c,f=1,l=e.precision,a=Math.ceil(l/w);for(m=!1,c=n.times(n),u=new e(r);;){if(o=E(u.times(c),new e(i++*i++),l,1),u=t?r.plus(o):r.minus(o),r=E(o.times(c),new e(i++*i++),l,1),o=u.plus(r),o.d[a]!==void 0){for(s=a;o.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=r,r=o,o=s,f++}return m=!0,o.d.length=a+1,o}function y(e,i){for(var n=e;--i;)n*=e;return n}function Ce(e,i){var n,r=i.s<0,t=I(e,e.precision,1),s=t.times(.5);if(i=i.abs(),i.lte(s))return b=r?4:1,i;if(n=i.divToInt(t),n.isZero())b=r?3:2;else{if(i=i.minus(n.times(t)),i.lte(s))return b=Ee(n)?r?2:3:r?4:1,i;b=Ee(n)?r?1:4:r?3:2}return i.minus(t).abs()}function ce(e,i,n,r){var t,s,o,u,c,f,l,a,h,g=e.constructor,v=n!==void 0;if(v?(F(n,1,U),r===void 0?r=g.rounding:F(r,0,8)):(n=g.precision,r=g.rounding),!e.isFinite())l=Me(e);else{for(l=Z(e),o=l.indexOf("."),v?(t=2,i==16?n=n*4-3:i==8&&(n=n*3-2)):t=i,o>=0&&(l=l.replace(".",""),h=new g(1),h.e=l.length-o,h.d=j(Z(h),10,t),h.e=h.d.length),a=j(l,10,t),s=c=a.length;a[--c]==0;)a.pop();if(!a[0])l=v?"0p+0":"0";else{if(o<0?s--:(e=new g(e),e.d=a,e.e=s,e=E(e,h,n,r,0,t),a=e.d,s=e.e,f=de),o=a[n],u=t/2,f=f||a[n+1]!==void 0,f=r<4?(o!==void 0||f)&&(r===0||r===(e.s<0?3:2)):o>u||o===u&&(r===4||f||r===6&&a[n-1]&1||r===(e.s<0?8:7)),a.length=n,f)for(;++a[--n]>t-1;)a[n]=0,n||(++s,a.unshift(1));for(c=a.length;!a[c-1];--c);for(o=0,l="";o<c;o++)l+=te.charAt(a[o]);if(v){if(c>1)if(i==16||i==8){for(o=i==16?4:3,--c;c%o;c++)l+="0";for(a=j(l,t,i),c=a.length;!a[c-1];--c);for(o=1,l="1.";o<c;o++)l+=te.charAt(a[o])}else l=l.charAt(0)+"."+l.slice(1);l=l+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)l="0"+l;l="0."+l}else if(++s>c)for(s-=c;s--;)l+="0";else s<c&&(l=l.slice(0,s)+"."+l.slice(s))}l=(i==16?"0x":i==2?"0b":i==8?"0o":"")+l}return e.s<0?"-"+l:l}function qe(e,i){if(e.length>i)return e.length=i,!0}function be(e){return new this(e).abs()}function Re(e){return new this(e).acos()}function Ue(e){return new this(e).acosh()}function Be(e,i){return new this(e).plus(i)}function He(e){return new this(e).asin()}function Ve(e){return new this(e).asinh()}function $e(e){return new this(e).atan()}function Ge(e){return new this(e).atanh()}function We(e,i){e=new this(e),i=new this(i);var n,r=this.precision,t=this.rounding,s=r+4;return!e.s||!i.s?n=new this(NaN):!e.d&&!i.d?(n=I(this,s,1).times(i.s>0?.25:.75),n.s=e.s):!i.d||e.isZero()?(n=i.s<0?I(this,r,t):new this(0),n.s=e.s):!e.d||i.isZero()?(n=I(this,s,1).times(.5),n.s=e.s):i.s<0?(this.precision=s,this.rounding=1,n=this.atan(E(e,i,s,1)),i=I(this,s,1),this.precision=r,this.rounding=t,n=e.s<0?n.minus(i):n.plus(i)):n=this.atan(E(e,i,s,1)),n}function Xe(e){return new this(e).cbrt()}function Je(e){return p(e=new this(e),e.e+1,2)}function Ke(e,i,n){return new this(e).clamp(i,n)}function Qe(e){if(!e||typeof e!="object")throw Error(Y+"Object expected");var i,n,r,t=e.defaults===!0,s=["precision",1,U,"rounding",0,8,"toExpNeg",-$,0,"toExpPos",0,$,"maxE",0,$,"minE",-$,0,"modulo",0,9];for(i=0;i<s.length;i+=3)if(n=s[i],t&&(this[n]=se[n]),(r=e[n])!==void 0)if(S(r)===r&&r>=s[i+1]&&r<=s[i+2])this[n]=r;else throw Error(B+n+": "+r);if(n="crypto",t&&(this[n]=se[n]),(r=e[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(ge);else this[n]=!1;else throw Error(B+n+": "+r);return this}function Ye(e){return new this(e).cos()}function je(e){return new this(e).cosh()}function _e(e){var i,n,r;function t(s){var o,u,c,f=this;if(!(f instanceof t))return new t(s);if(f.constructor=t,Se(s)){f.s=s.s,m?!s.d||s.e>t.maxE?(f.e=NaN,f.d=null):s.e<t.minE?(f.e=0,f.d=[0]):(f.e=s.e,f.d=s.d.slice()):(f.e=s.e,f.d=s.d?s.d.slice():s.d);return}if(c=typeof s,c==="number"){if(s===0){f.s=1/s<0?-1:1,f.e=0,f.d=[0];return}if(s<0?(s=-s,f.s=-1):f.s=1,s===~~s&&s<1e7){for(o=0,u=s;u>=10;u/=10)o++;m?o>t.maxE?(f.e=NaN,f.d=null):o<t.minE?(f.e=0,f.d=[0]):(f.e=o,f.d=[s]):(f.e=o,f.d=[s]);return}else if(s*0!==0){s||(f.s=NaN),f.e=NaN,f.d=null;return}return fe(f,s.toString())}else if(c!=="string")throw Error(B+s);return(u=s.charCodeAt(0))===45?(s=s.slice(1),f.s=-1):(u===43&&(s=s.slice(1)),f.s=1),me.test(s)?fe(f,s):Te(f,s)}if(t.prototype=d,t.ROUND_UP=0,t.ROUND_DOWN=1,t.ROUND_CEIL=2,t.ROUND_FLOOR=3,t.ROUND_HALF_UP=4,t.ROUND_HALF_DOWN=5,t.ROUND_HALF_EVEN=6,t.ROUND_HALF_CEIL=7,t.ROUND_HALF_FLOOR=8,t.EUCLID=9,t.config=t.set=Qe,t.clone=_e,t.isDecimal=Se,t.abs=be,t.acos=Re,t.acosh=Ue,t.add=Be,t.asin=He,t.asinh=Ve,t.atan=$e,t.atanh=Ge,t.atan2=We,t.cbrt=Xe,t.ceil=Je,t.clamp=Ke,t.cos=Ye,t.cosh=je,t.div=ze,t.exp=xe,t.floor=ye,t.hypot=ei,t.ln=ii,t.log=ni,t.log10=ti,t.log2=ri,t.max=si,t.min=oi,t.mod=ui,t.mul=fi,t.pow=ci,t.random=li,t.round=ai,t.sign=hi,t.sin=di,t.sinh=pi,t.sqrt=gi,t.sub=wi,t.sum=mi,t.tan=Ni,t.tanh=vi,t.trunc=Ei,e===void 0&&(e={}),e&&e.defaults!==!0)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],i=0;i<r.length;)e.hasOwnProperty(n=r[i++])||(e[n]=this[n]);return t.config(e),t}function ze(e,i){return new this(e).div(i)}function xe(e){return new this(e).exp()}function ye(e){return p(e=new this(e),e.e+1,3)}function ei(){var e,i,n=new this(0);for(m=!1,e=0;e<arguments.length;)if(i=new this(arguments[e++]),i.d)n.d&&(n=n.plus(i.times(i)));else{if(i.s)return m=!0,new this(1/0);n=i}return m=!0,n.sqrt()}function Se(e){return e instanceof X||e&&e.toStringTag===we||!1}function ii(e){return new this(e).ln()}function ni(e,i){return new this(e).log(i)}function ri(e){return new this(e).log(2)}function ti(e){return new this(e).log(10)}function si(){return ke(this,arguments,"lt")}function oi(){return ke(this,arguments,"gt")}function ui(e,i){return new this(e).mod(i)}function fi(e,i){return new this(e).mul(i)}function ci(e,i){return new this(e).pow(i)}function li(e){var i,n,r,t,s=0,o=new this(1),u=[];if(e===void 0?e=this.precision:F(e,1,U),r=Math.ceil(e/w),this.crypto)if(crypto.getRandomValues)for(i=crypto.getRandomValues(new Uint32Array(r));s<r;)t=i[s],t>=429e7?i[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=t%1e7;else if(crypto.randomBytes){for(i=crypto.randomBytes(r*=4);s<r;)t=i[s]+(i[s+1]<<8)+(i[s+2]<<16)+((i[s+3]&127)<<24),t>=214e7?crypto.randomBytes(4).copy(i,s):(u.push(t%1e7),s+=4);s=r/4}else throw Error(ge);else for(;s<r;)u[s++]=Math.random()*1e7|0;for(r=u[--s],e%=w,r&&e&&(t=q(10,w-e),u[s]=(r/t|0)*t);u[s]===0;s--)u.pop();if(s<0)n=0,u=[0];else{for(n=-1;u[0]===0;n-=w)u.shift();for(r=1,t=u[0];t>=10;t/=10)r++;r<w&&(n-=w-r)}return o.e=n,o.d=u,o}function ai(e){return p(e=new this(e),e.e+1,this.rounding)}function hi(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function di(e){return new this(e).sin()}function pi(e){return new this(e).sinh()}function gi(e){return new this(e).sqrt()}function wi(e,i){return new this(e).sub(i)}function mi(){var e=0,i=arguments,n=new this(i[e]);for(m=!1;n.s&&++e<i.length;)n=n.plus(i[e]);return m=!0,p(n,this.precision,this.rounding)}function Ni(e){return new this(e).tan()}function vi(e){return new this(e).tanh()}function Ei(e){return p(e=new this(e),e.e+1,1)}d[Symbol.for("nodejs.util.inspect.custom")]=d.toString,d[Symbol.toStringTag]="Decimal";var X=d.constructor=_e(se);K=new X(K),Q=new X(Q),Pe.Z=X}}]);
1
+ "use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[9331],{90482:function(ki,Pe,Mi){var $=9e15,U=1e9,te="0123456789abcdef",K="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Q="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",se={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-$,maxE:$,crypto:!1},de,b,m=!0,Y="[DecimalError] ",B=Y+"Invalid argument: ",pe=Y+"Precision limit exceeded",ge=Y+"crypto unavailable",we="[object Decimal]",S=Math.floor,q=Math.pow,Ae=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Le=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Fe=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,me=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,O=1e7,w=7,Oe=9007199254740991,Ie=K.length-1,oe=Q.length-1,d={toStringTag:we};d.absoluteValue=d.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),p(e)},d.ceil=function(){return p(new this.constructor(this),this.e+1,2)},d.clampedTo=d.clamp=function(e,i){var n,r=this,t=r.constructor;if(e=new t(e),i=new t(i),!e.s||!i.s)return new t(NaN);if(e.gt(i))throw Error(B+i);return n=r.cmp(e),n<0?e:r.cmp(i)>0?i:new t(r)},d.comparedTo=d.cmp=function(e){var i,n,r,t,s=this,o=s.d,u=(e=new s.constructor(e)).d,c=s.s,f=e.s;if(!o||!u)return!c||!f?NaN:c!==f?c:o===u?0:!o^c<0?1:-1;if(!o[0]||!u[0])return o[0]?c:u[0]?-f:0;if(c!==f)return c;if(s.e!==e.e)return s.e>e.e^c<0?1:-1;for(r=o.length,t=u.length,i=0,n=r<t?r:t;i<n;++i)if(o[i]!==u[i])return o[i]>u[i]^c<0?1:-1;return r===t?0:r>t^c<0?1:-1},d.cosine=d.cos=function(){var e,i,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,i=r.rounding,r.precision=e+Math.max(n.e,n.sd())+w,r.rounding=1,n=De(r,Ce(r,n)),r.precision=e,r.rounding=i,p(b==2||b==3?n.neg():n,e,i,!0)):new r(1):new r(NaN)},d.cubeRoot=d.cbrt=function(){var e,i,n,r,t,s,o,u,c,f,l=this,a=l.constructor;if(!l.isFinite()||l.isZero())return new a(l);for(m=!1,s=l.s*q(l.s*l,1/3),!s||Math.abs(s)==1/0?(n=_(l.d),e=l.e,(s=(e-n.length+1)%3)&&(n+=s==1||s==-2?"0":"00"),s=q(n,1/3),e=S((e+1)/3)-(e%3==(e<0?-1:2)),s==1/0?n="5e"+e:(n=s.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),r=new a(n),r.s=l.s):r=new a(s.toString()),o=(e=a.precision)+3;;)if(u=r,c=u.times(u).times(u),f=c.plus(l),r=E(f.plus(l).times(u),f.plus(c),o+2,1),_(u.d).slice(0,o)===(n=_(r.d)).slice(0,o))if(n=n.slice(o-3,o+1),n=="9999"||!t&&n=="4999"){if(!t&&(p(u,e+1,0),u.times(u).times(u).eq(l))){r=u;break}o+=4,t=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(p(r,e+1,1),i=!r.times(r).times(r).eq(l));break}return m=!0,p(r,e,a.rounding,i)},d.decimalPlaces=d.dp=function(){var e,i=this.d,n=NaN;if(i){if(e=i.length-1,n=(e-S(this.e/w))*w,e=i[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},d.dividedBy=d.div=function(e){return E(this,new this.constructor(e))},d.dividedToIntegerBy=d.divToInt=function(e){var i=this,n=i.constructor;return p(E(i,new n(e),0,1,1),n.precision,n.rounding)},d.equals=d.eq=function(e){return this.cmp(e)===0},d.floor=function(){return p(new this.constructor(this),this.e+1,3)},d.greaterThan=d.gt=function(e){return this.cmp(e)>0},d.greaterThanOrEqualTo=d.gte=function(e){var i=this.cmp(e);return i==1||i===0},d.hyperbolicCosine=d.cosh=function(){var e,i,n,r,t,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;n=o.precision,r=o.rounding,o.precision=n+Math.max(s.e,s.sd())+4,o.rounding=1,t=s.d.length,t<32?(e=Math.ceil(t/3),i=(1/y(4,e)).toString()):(e=16,i="2.3283064365386962890625e-10"),s=G(o,1,s.times(i),new o(1),!0);for(var c,f=e,l=new o(8);f--;)c=s.times(s),s=u.minus(c.times(l.minus(c.times(l))));return p(s,o.precision=n,o.rounding=r,!0)},d.hyperbolicSine=d.sinh=function(){var e,i,n,r,t=this,s=t.constructor;if(!t.isFinite()||t.isZero())return new s(t);if(i=s.precision,n=s.rounding,s.precision=i+Math.max(t.e,t.sd())+4,s.rounding=1,r=t.d.length,r<3)t=G(s,2,t,t,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:e|0,t=t.times(1/y(5,e)),t=G(s,2,t,t,!0);for(var o,u=new s(5),c=new s(16),f=new s(20);e--;)o=t.times(t),t=t.times(u.plus(o.times(c.times(o).plus(f))))}return s.precision=i,s.rounding=n,p(t,i,n,!0)},d.hyperbolicTangent=d.tanh=function(){var e,i,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+7,r.rounding=1,E(n.sinh(),n.cosh(),r.precision=e,r.rounding=i)):new r(n.s)},d.inverseCosine=d.acos=function(){var e,i=this,n=i.constructor,r=i.abs().cmp(1),t=n.precision,s=n.rounding;return r!==-1?r===0?i.isNeg()?I(n,t,s):new n(0):new n(NaN):i.isZero()?I(n,t+4,s).times(.5):(n.precision=t+6,n.rounding=1,i=i.asin(),e=I(n,t+4,s).times(.5),n.precision=t,n.rounding=s,e.minus(i))},d.inverseHyperbolicCosine=d.acosh=function(){var e,i,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,i=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,m=!1,n=n.times(n).minus(1).sqrt().plus(n),m=!0,r.precision=e,r.rounding=i,n.ln()):new r(n)},d.inverseHyperbolicSine=d.asinh=function(){var e,i,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,m=!1,n=n.times(n).plus(1).sqrt().plus(n),m=!0,r.precision=e,r.rounding=i,n.ln())},d.inverseHyperbolicTangent=d.atanh=function(){var e,i,n,r,t=this,s=t.constructor;return t.isFinite()?t.e>=0?new s(t.abs().eq(1)?t.s/0:t.isZero()?t:NaN):(e=s.precision,i=s.rounding,r=t.sd(),Math.max(r,e)<2*-t.e-1?p(new s(t),e,i,!0):(s.precision=n=r-t.e,t=E(t.plus(1),new s(1).minus(t),n+e,1),s.precision=e+4,s.rounding=1,t=t.ln(),s.precision=e,s.rounding=i,t.times(.5))):new s(NaN)},d.inverseSine=d.asin=function(){var e,i,n,r,t=this,s=t.constructor;return t.isZero()?new s(t):(i=t.abs().cmp(1),n=s.precision,r=s.rounding,i!==-1?i===0?(e=I(s,n+4,r).times(.5),e.s=t.s,e):new s(NaN):(s.precision=n+6,s.rounding=1,t=t.div(new s(1).minus(t.times(t)).sqrt().plus(1)).atan(),s.precision=n,s.rounding=r,t.times(2)))},d.inverseTangent=d.atan=function(){var e,i,n,r,t,s,o,u,c,f=this,l=f.constructor,a=l.precision,h=l.rounding;if(f.isFinite()){if(f.isZero())return new l(f);if(f.abs().eq(1)&&a+4<=oe)return o=I(l,a+4,h).times(.25),o.s=f.s,o}else{if(!f.s)return new l(NaN);if(a+4<=oe)return o=I(l,a+4,h).times(.5),o.s=f.s,o}for(l.precision=u=a+10,l.rounding=1,n=Math.min(28,u/w+2|0),e=n;e;--e)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(m=!1,i=Math.ceil(u/w),r=1,c=f.times(f),o=new l(f),t=f;e!==-1;)if(t=t.times(c),s=o.minus(t.div(r+=2)),t=t.times(c),o=s.plus(t.div(r+=2)),o.d[i]!==void 0)for(e=i;o.d[e]===s.d[e]&&e--;);return n&&(o=o.times(2<<n-1)),m=!0,p(o,l.precision=a,l.rounding=h,!0)},d.isFinite=function(){return!!this.d},d.isInteger=d.isInt=function(){return!!this.d&&S(this.e/w)>this.d.length-2},d.isNaN=function(){return!this.s},d.isNegative=d.isNeg=function(){return this.s<0},d.isPositive=d.isPos=function(){return this.s>0},d.isZero=function(){return!!this.d&&this.d[0]===0},d.lessThan=d.lt=function(e){return this.cmp(e)<0},d.lessThanOrEqualTo=d.lte=function(e){return this.cmp(e)<1},d.logarithm=d.log=function(e){var i,n,r,t,s,o,u,c,f=this,l=f.constructor,a=l.precision,h=l.rounding,g=5;if(e==null)e=new l(10),i=!0;else{if(e=new l(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new l(NaN);i=e.eq(10)}if(n=f.d,f.s<0||!n||!n[0]||f.eq(1))return new l(n&&!n[0]?-1/0:f.s!=1?NaN:n?0:1/0);if(i)if(n.length>1)s=!0;else{for(t=n[0];t%10===0;)t/=10;s=t!==1}if(m=!1,u=a+g,o=V(f,u),r=i?x(l,u+10):V(e,u),c=E(o,r,u,1),W(c.d,t=a,h))do if(u+=10,o=V(f,u),r=i?x(l,u+10):V(e,u),c=E(o,r,u,1),!s){+_(c.d).slice(t+1,t+15)+1==1e14&&(c=p(c,a+1,0));break}while(W(c.d,t+=10,h));return m=!0,p(c,a,h)},d.minus=d.sub=function(e){var i,n,r,t,s,o,u,c,f,l,a,h,g=this,v=g.constructor;if(e=new v(e),!g.d||!e.d)return!g.s||!e.s?e=new v(NaN):g.d?e.s=-e.s:e=new v(e.d||g.s!==e.s?g:NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(f=g.d,h=e.d,u=v.precision,c=v.rounding,!f[0]||!h[0]){if(h[0])e.s=-e.s;else if(f[0])e=new v(g);else return new v(c===3?-0:0);return m?p(e,u,c):e}if(n=S(e.e/w),l=S(g.e/w),f=f.slice(),s=l-n,s){for(a=s<0,a?(i=f,s=-s,o=h.length):(i=h,n=l,o=f.length),r=Math.max(Math.ceil(u/w),o)+2,s>r&&(s=r,i.length=1),i.reverse(),r=s;r--;)i.push(0);i.reverse()}else{for(r=f.length,o=h.length,a=r<o,a&&(o=r),r=0;r<o;r++)if(f[r]!=h[r]){a=f[r]<h[r];break}s=0}for(a&&(i=f,f=h,h=i,e.s=-e.s),o=f.length,r=h.length-o;r>0;--r)f[o++]=0;for(r=h.length;r>s;){if(f[--r]<h[r]){for(t=r;t&&f[--t]===0;)f[t]=O-1;--f[t],f[r]+=O}f[r]-=h[r]}for(;f[--o]===0;)f.pop();for(;f[0]===0;f.shift())--n;return f[0]?(e.d=f,e.e=z(f,n),m?p(e,u,c):e):new v(c===3?-0:0)},d.modulo=d.mod=function(e){var i,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?p(new r(n),r.precision,r.rounding):(m=!1,r.modulo==9?(i=E(n,e.abs(),0,3,1),i.s*=e.s):i=E(n,e,0,r.modulo,1),i=i.times(e),m=!0,n.minus(i))},d.naturalExponential=d.exp=function(){return ue(this)},d.naturalLogarithm=d.ln=function(){return V(this)},d.negated=d.neg=function(){var e=new this.constructor(this);return e.s=-e.s,p(e)},d.plus=d.add=function(e){var i,n,r,t,s,o,u,c,f,l,a=this,h=a.constructor;if(e=new h(e),!a.d||!e.d)return!a.s||!e.s?e=new h(NaN):a.d||(e=new h(e.d||a.s===e.s?a:NaN)),e;if(a.s!=e.s)return e.s=-e.s,a.minus(e);if(f=a.d,l=e.d,u=h.precision,c=h.rounding,!f[0]||!l[0])return l[0]||(e=new h(a)),m?p(e,u,c):e;if(s=S(a.e/w),r=S(e.e/w),f=f.slice(),t=s-r,t){for(t<0?(n=f,t=-t,o=l.length):(n=l,r=s,o=f.length),s=Math.ceil(u/w),o=s>o?s+1:o+1,t>o&&(t=o,n.length=1),n.reverse();t--;)n.push(0);n.reverse()}for(o=f.length,t=l.length,o-t<0&&(t=o,n=l,l=f,f=n),i=0;t;)i=(f[--t]=f[t]+l[t]+i)/O|0,f[t]%=O;for(i&&(f.unshift(i),++r),o=f.length;f[--o]==0;)f.pop();return e.d=f,e.e=z(f,r),m?p(e,u,c):e},d.precision=d.sd=function(e){var i,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(B+e);return n.d?(i=Ne(n.d),e&&n.e+1>i&&(i=n.e+1)):i=NaN,i},d.round=function(){var e=this,i=e.constructor;return p(new i(e),e.e+1,i.rounding)},d.sine=d.sin=function(){var e,i,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+Math.max(n.e,n.sd())+w,r.rounding=1,n=Ze(r,Ce(r,n)),r.precision=e,r.rounding=i,p(b>2?n.neg():n,e,i,!0)):new r(NaN)},d.squareRoot=d.sqrt=function(){var e,i,n,r,t,s,o=this,u=o.d,c=o.e,f=o.s,l=o.constructor;if(f!==1||!u||!u[0])return new l(!f||f<0&&(!u||u[0])?NaN:u?o:1/0);for(m=!1,f=Math.sqrt(+o),f==0||f==1/0?(i=_(u),(i.length+c)%2==0&&(i+="0"),f=Math.sqrt(i),c=S((c+1)/2)-(c<0||c%2),f==1/0?i="5e"+c:(i=f.toExponential(),i=i.slice(0,i.indexOf("e")+1)+c),r=new l(i)):r=new l(f.toString()),n=(c=l.precision)+3;;)if(s=r,r=s.plus(E(o,s,n+2,1)).times(.5),_(s.d).slice(0,n)===(i=_(r.d)).slice(0,n))if(i=i.slice(n-3,n+1),i=="9999"||!t&&i=="4999"){if(!t&&(p(s,c+1,0),s.times(s).eq(o))){r=s;break}n+=4,t=1}else{(!+i||!+i.slice(1)&&i.charAt(0)=="5")&&(p(r,c+1,1),e=!r.times(r).eq(o));break}return m=!0,p(r,c,l.rounding,e)},d.tangent=d.tan=function(){var e,i,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,i=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=E(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=i,p(b==2||b==4?n.neg():n,e,i,!0)):new r(NaN)},d.times=d.mul=function(e){var i,n,r,t,s,o,u,c,f,l=this,a=l.constructor,h=l.d,g=(e=new a(e)).d;if(e.s*=l.s,!h||!h[0]||!g||!g[0])return new a(!e.s||h&&!h[0]&&!g||g&&!g[0]&&!h?NaN:!h||!g?e.s/0:e.s*0);for(n=S(l.e/w)+S(e.e/w),c=h.length,f=g.length,c<f&&(s=h,h=g,g=s,o=c,c=f,f=o),s=[],o=c+f,r=o;r--;)s.push(0);for(r=f;--r>=0;){for(i=0,t=c+r;t>r;)u=s[t]+g[r]*h[t-r-1]+i,s[t--]=u%O|0,i=u/O|0;s[t]=(s[t]+i)%O|0}for(;!s[--o];)s.pop();return i?++n:s.shift(),e.d=s,e.e=z(s,n),m?p(e,a.precision,a.rounding):e},d.toBinary=function(e,i){return ce(this,2,e,i)},d.toDecimalPlaces=d.toDP=function(e,i){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(F(e,0,U),i===void 0?i=r.rounding:F(i,0,8),p(n,e+n.e+1,i))},d.toExponential=function(e,i){var n,r=this,t=r.constructor;return e===void 0?n=Z(r,!0):(F(e,0,U),i===void 0?i=t.rounding:F(i,0,8),r=p(new t(r),e+1,i),n=Z(r,!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},d.toFixed=function(e,i){var n,r,t=this,s=t.constructor;return e===void 0?n=Z(t):(F(e,0,U),i===void 0?i=s.rounding:F(i,0,8),r=p(new s(t),e+t.e+1,i),n=Z(r,!1,e+r.e+1)),t.isNeg()&&!t.isZero()?"-"+n:n},d.toFraction=function(e){var i,n,r,t,s,o,u,c,f,l,a,h,g=this,v=g.d,N=g.constructor;if(!v)return new N(g);if(f=n=new N(1),r=c=new N(0),i=new N(r),s=i.e=Ne(v)-g.e-1,o=s%w,i.d[0]=q(10,o<0?w+o:o),e==null)e=s>0?i:f;else{if(u=new N(e),!u.isInt()||u.lt(f))throw Error(B+u);e=u.gt(i)?s>0?i:f:u}for(m=!1,u=new N(_(v)),l=N.precision,N.precision=s=v.length*w*2;a=E(u,i,0,1,1),t=n.plus(a.times(r)),t.cmp(e)!=1;)n=r,r=t,t=f,f=c.plus(a.times(t)),c=t,t=i,i=u.minus(a.times(t)),u=t;return t=E(e.minus(n),r,0,1,1),c=c.plus(t.times(f)),n=n.plus(t.times(r)),c.s=f.s=g.s,h=E(f,r,s,1).minus(g).abs().cmp(E(c,n,s,1).minus(g).abs())<1?[f,r]:[c,n],N.precision=l,m=!0,h},d.toHexadecimal=d.toHex=function(e,i){return ce(this,16,e,i)},d.toNearest=function(e,i){var n=this,r=n.constructor;if(n=new r(n),e==null){if(!n.d)return n;e=new r(1),i=r.rounding}else{if(e=new r(e),i===void 0?i=r.rounding:F(i,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(m=!1,n=E(n,e,0,i,1).times(e),m=!0,p(n)):(e.s=n.s,n=e),n},d.toNumber=function(){return+this},d.toOctal=function(e,i){return ce(this,8,e,i)},d.toPower=d.pow=function(e){var i,n,r,t,s,o,u=this,c=u.constructor,f=+(e=new c(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new c(q(+u,f));if(u=new c(u),u.eq(1))return u;if(r=c.precision,s=c.rounding,e.eq(1))return p(u,r,s);if(i=S(e.e/w),i>=e.d.length-1&&(n=f<0?-f:f)<=Oe)return t=ve(c,u,n,r),e.s<0?new c(1).div(t):p(t,r,s);if(o=u.s,o<0){if(i<e.d.length-1)return new c(NaN);if(e.d[i]&1||(o=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=o,u}return n=q(+u,f),i=n==0||!isFinite(n)?S(f*(Math.log("0."+_(u.d))/Math.LN10+u.e+1)):new c(n+"").e,i>c.maxE+1||i<c.minE-1?new c(i>0?o/0:0):(m=!1,c.rounding=u.s=1,n=Math.min(12,(i+"").length),t=ue(e.times(V(u,r+n)),r),t.d&&(t=p(t,r+5,1),W(t.d,r,s)&&(i=r+10,t=p(ue(e.times(V(u,i+n)),i),i+5,1),+_(t.d).slice(r+1,r+15)+1==1e14&&(t=p(t,r+1,0)))),t.s=o,m=!0,c.rounding=s,p(t,r,s))},d.toPrecision=function(e,i){var n,r=this,t=r.constructor;return e===void 0?n=Z(r,r.e<=t.toExpNeg||r.e>=t.toExpPos):(F(e,1,U),i===void 0?i=t.rounding:F(i,0,8),r=p(new t(r),e,i),n=Z(r,e<=r.e||r.e<=t.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},d.toSignificantDigits=d.toSD=function(e,i){var n=this,r=n.constructor;return e===void 0?(e=r.precision,i=r.rounding):(F(e,1,U),i===void 0?i=r.rounding:F(i,0,8)),p(new r(n),e,i)},d.toString=function(){var e=this,i=e.constructor,n=Z(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},d.truncated=d.trunc=function(){return p(new this.constructor(this),this.e+1,1)},d.valueOf=d.toJSON=function(){var e=this,i=e.constructor,n=Z(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()?"-"+n:n};function _(e){var i,n,r,t=e.length-1,s="",o=e[0];if(t>0){for(s+=o,i=1;i<t;i++)r=e[i]+"",n=w-r.length,n&&(s+=H(n)),s+=r;o=e[i],r=o+"",n=w-r.length,n&&(s+=H(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}function F(e,i,n){if(e!==~~e||e<i||e>n)throw Error(B+e)}function W(e,i,n,r){var t,s,o,u;for(s=e[0];s>=10;s/=10)--i;return--i<0?(i+=w,t=0):(t=Math.ceil((i+1)/w),i%=w),s=q(10,w-i),u=e[t]%s|0,r==null?i<3?(i==0?u=u/100|0:i==1&&(u=u/10|0),o=n<4&&u==99999||n>3&&u==49999||u==5e4||u==0):o=(n<4&&u+1==s||n>3&&u+1==s/2)&&(e[t+1]/s/100|0)==q(10,i-2)-1||(u==s/2||u==0)&&(e[t+1]/s/100|0)==0:i<4?(i==0?u=u/1e3|0:i==1?u=u/100|0:i==2&&(u=u/10|0),o=(r||n<4)&&u==9999||!r&&n>3&&u==4999):o=((r||n<4)&&u+1==s||!r&&n>3&&u+1==s/2)&&(e[t+1]/s/1e3|0)==q(10,i-3)-1,o}function j(e,i,n){for(var r,t=[0],s,o=0,u=e.length;o<u;){for(s=t.length;s--;)t[s]*=i;for(t[0]+=te.indexOf(e.charAt(o++)),r=0;r<t.length;r++)t[r]>n-1&&(t[r+1]===void 0&&(t[r+1]=0),t[r+1]+=t[r]/n|0,t[r]%=n)}return t.reverse()}function De(e,i){var n,r,t;if(i.isZero())return i;r=i.d.length,r<32?(n=Math.ceil(r/3),t=(1/y(4,n)).toString()):(n=16,t="2.3283064365386962890625e-10"),e.precision+=n,i=G(e,1,i.times(t),new e(1));for(var s=n;s--;){var o=i.times(i);i=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,i}var E=function(){function e(r,t,s){var o,u=0,c=r.length;for(r=r.slice();c--;)o=r[c]*t+u,r[c]=o%s|0,u=o/s|0;return u&&r.unshift(u),r}function i(r,t,s,o){var u,c;if(s!=o)c=s>o?1:-1;else for(u=c=0;u<s;u++)if(r[u]!=t[u]){c=r[u]>t[u]?1:-1;break}return c}function n(r,t,s,o){for(var u=0;s--;)r[s]-=u,u=r[s]<t[s]?1:0,r[s]=u*o+r[s]-t[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,t,s,o,u,c){var f,l,a,h,g,v,N,L,C,D,k,P,ee,R,le,ie,J,ae,T,ne,re=r.constructor,he=r.s==t.s?1:-1,A=r.d,M=t.d;if(!A||!A[0]||!M||!M[0])return new re(!r.s||!t.s||(A?M&&A[0]==M[0]:!M)?NaN:A&&A[0]==0||!M?he*0:he/0);for(c?(g=1,l=r.e-t.e):(c=O,g=w,l=S(r.e/g)-S(t.e/g)),T=M.length,J=A.length,C=new re(he),D=C.d=[],a=0;M[a]==(A[a]||0);a++);if(M[a]>(A[a]||0)&&l--,s==null?(R=s=re.precision,o=re.rounding):u?R=s+(r.e-t.e)+1:R=s,R<0)D.push(1),v=!0;else{if(R=R/g+2|0,a=0,T==1){for(h=0,M=M[0],R++;(a<J||h)&&R--;a++)le=h*c+(A[a]||0),D[a]=le/M|0,h=le%M|0;v=h||a<J}else{for(h=c/(M[0]+1)|0,h>1&&(M=e(M,h,c),A=e(A,h,c),T=M.length,J=A.length),ie=T,k=A.slice(0,T),P=k.length;P<T;)k[P++]=0;ne=M.slice(),ne.unshift(0),ae=M[0],M[1]>=c/2&&++ae;do h=0,f=i(M,k,T,P),f<0?(ee=k[0],T!=P&&(ee=ee*c+(k[1]||0)),h=ee/ae|0,h>1?(h>=c&&(h=c-1),N=e(M,h,c),L=N.length,P=k.length,f=i(N,k,L,P),f==1&&(h--,n(N,T<L?ne:M,L,c))):(h==0&&(f=h=1),N=M.slice()),L=N.length,L<P&&N.unshift(0),n(k,N,P,c),f==-1&&(P=k.length,f=i(M,k,T,P),f<1&&(h++,n(k,T<P?ne:M,P,c))),P=k.length):f===0&&(h++,k=[0]),D[a++]=h,f&&k[0]?k[P++]=A[ie]||0:(k=[A[ie]],P=1);while((ie++<J||k[0]!==void 0)&&R--);v=k[0]!==void 0}D[0]||D.shift()}if(g==1)C.e=l,de=v;else{for(a=1,h=D[0];h>=10;h/=10)a++;C.e=a+l*g-1,p(C,u?s+C.e+1:s,o,v)}return C}}();function p(e,i,n,r){var t,s,o,u,c,f,l,a,h,g=e.constructor;e:if(i!=null){if(a=e.d,!a)return e;for(t=1,u=a[0];u>=10;u/=10)t++;if(s=i-t,s<0)s+=w,o=i,l=a[h=0],c=l/q(10,t-o-1)%10|0;else if(h=Math.ceil((s+1)/w),u=a.length,h>=u)if(r){for(;u++<=h;)a.push(0);l=c=0,t=1,s%=w,o=s-w+1}else break e;else{for(l=u=a[h],t=1;u>=10;u/=10)t++;s%=w,o=s-w+t,c=o<0?0:l/q(10,t-o-1)%10|0}if(r=r||i<0||a[h+1]!==void 0||(o<0?l:l%q(10,t-o-1)),f=n<4?(c||r)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||r||n==6&&(s>0?o>0?l/q(10,t-o):0:a[h-1])%10&1||n==(e.s<0?8:7)),i<1||!a[0])return a.length=0,f?(i-=e.e+1,a[0]=q(10,(w-i%w)%w),e.e=-i||0):a[0]=e.e=0,e;if(s==0?(a.length=h,u=1,h--):(a.length=h+1,u=q(10,w-s),a[h]=o>0?(l/q(10,t-o)%q(10,o)|0)*u:0),f)for(;;)if(h==0){for(s=1,o=a[0];o>=10;o/=10)s++;for(o=a[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(e.e++,a[0]==O&&(a[0]=1));break}else{if(a[h]+=u,a[h]!=O)break;a[h--]=0,u=1}for(s=a.length;a[--s]===0;)a.pop()}return m&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e<g.minE&&(e.e=0,e.d=[0])),e}function Z(e,i,n){if(!e.isFinite())return Me(e);var r,t=e.e,s=_(e.d),o=s.length;return i?(n&&(r=n-o)>0?s=s.charAt(0)+"."+s.slice(1)+H(r):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):t<0?(s="0."+H(-t-1)+s,n&&(r=n-o)>0&&(s+=H(r))):t>=o?(s+=H(t+1-o),n&&(r=n-t-1)>0&&(s=s+"."+H(r))):((r=t+1)<o&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-o)>0&&(t+1===o&&(s+="."),s+=H(r))),s}function z(e,i){var n=e[0];for(i*=w;n>=10;n/=10)i++;return i}function x(e,i,n){if(i>Ie)throw m=!0,n&&(e.precision=n),Error(pe);return p(new e(K),i,1,!0)}function I(e,i,n){if(i>oe)throw Error(pe);return p(new e(Q),i,n,!0)}function Ne(e){var i=e.length-1,n=i*w+1;if(i=e[i],i){for(;i%10==0;i/=10)n--;for(i=e[0];i>=10;i/=10)n++}return n}function H(e){for(var i="";e--;)i+="0";return i}function ve(e,i,n,r){var t,s=new e(1),o=Math.ceil(r/w+4);for(m=!1;;){if(n%2&&(s=s.times(i),qe(s.d,o)&&(t=!0)),n=S(n/2),n===0){n=s.d.length-1,t&&s.d[n]===0&&++s.d[n];break}i=i.times(i),qe(i.d,o)}return m=!0,s}function Ee(e){return e.d[e.d.length-1]&1}function ke(e,i,n){for(var r,t=new e(i[0]),s=0;++s<i.length;)if(r=new e(i[s]),r.s)t[n](r)&&(t=r);else{t=r;break}return t}function ue(e,i){var n,r,t,s,o,u,c,f=0,l=0,a=0,h=e.constructor,g=h.rounding,v=h.precision;if(!e.d||!e.d[0]||e.e>17)return new h(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(i==null?(m=!1,c=v):c=i,u=new h(.03125);e.e>-2;)e=e.times(u),a+=5;for(r=Math.log(q(2,a))/Math.LN10*2+5|0,c+=r,n=s=o=new h(1),h.precision=c;;){if(s=p(s.times(e),c,1),n=n.times(++l),u=o.plus(E(s,n,c,1)),_(u.d).slice(0,c)===_(o.d).slice(0,c)){for(t=a;t--;)o=p(o.times(o),c,1);if(i==null)if(f<3&&W(o.d,c-r,g,f))h.precision=c+=10,n=s=u=new h(1),l=0,f++;else return p(o,h.precision=v,g,m=!0);else return h.precision=v,o}o=u}}function V(e,i){var n,r,t,s,o,u,c,f,l,a,h,g=1,v=10,N=e,L=N.d,C=N.constructor,D=C.rounding,k=C.precision;if(N.s<0||!L||!L[0]||!N.e&&L[0]==1&&L.length==1)return new C(L&&!L[0]?-1/0:N.s!=1?NaN:L?0:N);if(i==null?(m=!1,l=k):l=i,C.precision=l+=v,n=_(L),r=n.charAt(0),Math.abs(s=N.e)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)N=N.times(e),n=_(N.d),r=n.charAt(0),g++;s=N.e,r>1?(N=new C("0."+n),s++):N=new C(r+"."+n.slice(1))}else return f=x(C,l+2,k).times(s+""),N=V(new C(r+"."+n.slice(1)),l-v).plus(f),C.precision=k,i==null?p(N,k,D,m=!0):N;for(a=N,c=o=N=E(N.minus(1),N.plus(1),l,1),h=p(N.times(N),l,1),t=3;;){if(o=p(o.times(h),l,1),f=c.plus(E(o,new C(t),l,1)),_(f.d).slice(0,l)===_(c.d).slice(0,l))if(c=c.times(2),s!==0&&(c=c.plus(x(C,l+2,k).times(s+""))),c=E(c,new C(g),l,1),i==null)if(W(c.d,l-v,D,u))C.precision=l+=v,f=o=N=E(a.minus(1),a.plus(1),l,1),h=p(N.times(N),l,1),t=u=1;else return p(c,C.precision=k,D,m=!0);else return C.precision=k,c;c=f,t+=2}}function Me(e){return String(e.s*e.s/0)}function fe(e,i){var n,r,t;for((n=i.indexOf("."))>-1&&(i=i.replace(".","")),(r=i.search(/e/i))>0?(n<0&&(n=r),n+=+i.slice(r+1),i=i.substring(0,r)):n<0&&(n=i.length),r=0;i.charCodeAt(r)===48;r++);for(t=i.length;i.charCodeAt(t-1)===48;--t);if(i=i.slice(r,t),i){if(t-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%w,n<0&&(r+=w),r<t){for(r&&e.d.push(+i.slice(0,r)),t-=w;r<t;)e.d.push(+i.slice(r,r+=w));i=i.slice(r),r=w-i.length}else r-=t;for(;r--;)i+="0";e.d.push(+i),m&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function Te(e,i){var n,r,t,s,o,u,c,f,l;if(i.indexOf("_")>-1){if(i=i.replace(/(\d)_(?=\d)/g,"$1"),me.test(i))return fe(e,i)}else if(i==="Infinity"||i==="NaN")return+i||(e.s=NaN),e.e=NaN,e.d=null,e;if(Le.test(i))n=16,i=i.toLowerCase();else if(Ae.test(i))n=2;else if(Fe.test(i))n=8;else throw Error(B+i);for(s=i.search(/p/i),s>0?(c=+i.slice(s+1),i=i.substring(2,s)):i=i.slice(2),s=i.indexOf("."),o=s>=0,r=e.constructor,o&&(i=i.replace(".",""),u=i.length,s=u-s,t=ve(r,new r(n),s,s*2)),f=j(i,n,O),l=f.length-1,s=l;f[s]===0;--s)f.pop();return s<0?new r(e.s*0):(e.e=z(f,l),e.d=f,m=!1,o&&(e=E(e,t,u*4)),c&&(e=e.times(Math.abs(c)<54?q(2,c):X.pow(2,c))),m=!0,e)}function Ze(e,i){var n,r=i.d.length;if(r<3)return i.isZero()?i:G(e,2,i,i);n=1.4*Math.sqrt(r),n=n>16?16:n|0,i=i.times(1/y(5,n)),i=G(e,2,i,i);for(var t,s=new e(5),o=new e(16),u=new e(20);n--;)t=i.times(i),i=i.times(s.plus(t.times(o.times(t).minus(u))));return i}function G(e,i,n,r,t){var s,o,u,c,f=1,l=e.precision,a=Math.ceil(l/w);for(m=!1,c=n.times(n),u=new e(r);;){if(o=E(u.times(c),new e(i++*i++),l,1),u=t?r.plus(o):r.minus(o),r=E(o.times(c),new e(i++*i++),l,1),o=u.plus(r),o.d[a]!==void 0){for(s=a;o.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=r,r=o,o=s,f++}return m=!0,o.d.length=a+1,o}function y(e,i){for(var n=e;--i;)n*=e;return n}function Ce(e,i){var n,r=i.s<0,t=I(e,e.precision,1),s=t.times(.5);if(i=i.abs(),i.lte(s))return b=r?4:1,i;if(n=i.divToInt(t),n.isZero())b=r?3:2;else{if(i=i.minus(n.times(t)),i.lte(s))return b=Ee(n)?r?2:3:r?4:1,i;b=Ee(n)?r?1:4:r?3:2}return i.minus(t).abs()}function ce(e,i,n,r){var t,s,o,u,c,f,l,a,h,g=e.constructor,v=n!==void 0;if(v?(F(n,1,U),r===void 0?r=g.rounding:F(r,0,8)):(n=g.precision,r=g.rounding),!e.isFinite())l=Me(e);else{for(l=Z(e),o=l.indexOf("."),v?(t=2,i==16?n=n*4-3:i==8&&(n=n*3-2)):t=i,o>=0&&(l=l.replace(".",""),h=new g(1),h.e=l.length-o,h.d=j(Z(h),10,t),h.e=h.d.length),a=j(l,10,t),s=c=a.length;a[--c]==0;)a.pop();if(!a[0])l=v?"0p+0":"0";else{if(o<0?s--:(e=new g(e),e.d=a,e.e=s,e=E(e,h,n,r,0,t),a=e.d,s=e.e,f=de),o=a[n],u=t/2,f=f||a[n+1]!==void 0,f=r<4?(o!==void 0||f)&&(r===0||r===(e.s<0?3:2)):o>u||o===u&&(r===4||f||r===6&&a[n-1]&1||r===(e.s<0?8:7)),a.length=n,f)for(;++a[--n]>t-1;)a[n]=0,n||(++s,a.unshift(1));for(c=a.length;!a[c-1];--c);for(o=0,l="";o<c;o++)l+=te.charAt(a[o]);if(v){if(c>1)if(i==16||i==8){for(o=i==16?4:3,--c;c%o;c++)l+="0";for(a=j(l,t,i),c=a.length;!a[c-1];--c);for(o=1,l="1.";o<c;o++)l+=te.charAt(a[o])}else l=l.charAt(0)+"."+l.slice(1);l=l+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)l="0"+l;l="0."+l}else if(++s>c)for(s-=c;s--;)l+="0";else s<c&&(l=l.slice(0,s)+"."+l.slice(s))}l=(i==16?"0x":i==2?"0b":i==8?"0o":"")+l}return e.s<0?"-"+l:l}function qe(e,i){if(e.length>i)return e.length=i,!0}function be(e){return new this(e).abs()}function Re(e){return new this(e).acos()}function Ue(e){return new this(e).acosh()}function Be(e,i){return new this(e).plus(i)}function He(e){return new this(e).asin()}function Ve(e){return new this(e).asinh()}function $e(e){return new this(e).atan()}function Ge(e){return new this(e).atanh()}function We(e,i){e=new this(e),i=new this(i);var n,r=this.precision,t=this.rounding,s=r+4;return!e.s||!i.s?n=new this(NaN):!e.d&&!i.d?(n=I(this,s,1).times(i.s>0?.25:.75),n.s=e.s):!i.d||e.isZero()?(n=i.s<0?I(this,r,t):new this(0),n.s=e.s):!e.d||i.isZero()?(n=I(this,s,1).times(.5),n.s=e.s):i.s<0?(this.precision=s,this.rounding=1,n=this.atan(E(e,i,s,1)),i=I(this,s,1),this.precision=r,this.rounding=t,n=e.s<0?n.minus(i):n.plus(i)):n=this.atan(E(e,i,s,1)),n}function Xe(e){return new this(e).cbrt()}function Je(e){return p(e=new this(e),e.e+1,2)}function Ke(e,i,n){return new this(e).clamp(i,n)}function Qe(e){if(!e||typeof e!="object")throw Error(Y+"Object expected");var i,n,r,t=e.defaults===!0,s=["precision",1,U,"rounding",0,8,"toExpNeg",-$,0,"toExpPos",0,$,"maxE",0,$,"minE",-$,0,"modulo",0,9];for(i=0;i<s.length;i+=3)if(n=s[i],t&&(this[n]=se[n]),(r=e[n])!==void 0)if(S(r)===r&&r>=s[i+1]&&r<=s[i+2])this[n]=r;else throw Error(B+n+": "+r);if(n="crypto",t&&(this[n]=se[n]),(r=e[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(ge);else this[n]=!1;else throw Error(B+n+": "+r);return this}function Ye(e){return new this(e).cos()}function je(e){return new this(e).cosh()}function _e(e){var i,n,r;function t(s){var o,u,c,f=this;if(!(f instanceof t))return new t(s);if(f.constructor=t,Se(s)){f.s=s.s,m?!s.d||s.e>t.maxE?(f.e=NaN,f.d=null):s.e<t.minE?(f.e=0,f.d=[0]):(f.e=s.e,f.d=s.d.slice()):(f.e=s.e,f.d=s.d?s.d.slice():s.d);return}if(c=typeof s,c==="number"){if(s===0){f.s=1/s<0?-1:1,f.e=0,f.d=[0];return}if(s<0?(s=-s,f.s=-1):f.s=1,s===~~s&&s<1e7){for(o=0,u=s;u>=10;u/=10)o++;m?o>t.maxE?(f.e=NaN,f.d=null):o<t.minE?(f.e=0,f.d=[0]):(f.e=o,f.d=[s]):(f.e=o,f.d=[s]);return}else if(s*0!==0){s||(f.s=NaN),f.e=NaN,f.d=null;return}return fe(f,s.toString())}else if(c!=="string")throw Error(B+s);return(u=s.charCodeAt(0))===45?(s=s.slice(1),f.s=-1):(u===43&&(s=s.slice(1)),f.s=1),me.test(s)?fe(f,s):Te(f,s)}if(t.prototype=d,t.ROUND_UP=0,t.ROUND_DOWN=1,t.ROUND_CEIL=2,t.ROUND_FLOOR=3,t.ROUND_HALF_UP=4,t.ROUND_HALF_DOWN=5,t.ROUND_HALF_EVEN=6,t.ROUND_HALF_CEIL=7,t.ROUND_HALF_FLOOR=8,t.EUCLID=9,t.config=t.set=Qe,t.clone=_e,t.isDecimal=Se,t.abs=be,t.acos=Re,t.acosh=Ue,t.add=Be,t.asin=He,t.asinh=Ve,t.atan=$e,t.atanh=Ge,t.atan2=We,t.cbrt=Xe,t.ceil=Je,t.clamp=Ke,t.cos=Ye,t.cosh=je,t.div=ze,t.exp=xe,t.floor=ye,t.hypot=ei,t.ln=ii,t.log=ni,t.log10=ti,t.log2=ri,t.max=si,t.min=oi,t.mod=ui,t.mul=fi,t.pow=ci,t.random=li,t.round=ai,t.sign=hi,t.sin=di,t.sinh=pi,t.sqrt=gi,t.sub=wi,t.sum=mi,t.tan=Ni,t.tanh=vi,t.trunc=Ei,e===void 0&&(e={}),e&&e.defaults!==!0)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],i=0;i<r.length;)e.hasOwnProperty(n=r[i++])||(e[n]=this[n]);return t.config(e),t}function ze(e,i){return new this(e).div(i)}function xe(e){return new this(e).exp()}function ye(e){return p(e=new this(e),e.e+1,3)}function ei(){var e,i,n=new this(0);for(m=!1,e=0;e<arguments.length;)if(i=new this(arguments[e++]),i.d)n.d&&(n=n.plus(i.times(i)));else{if(i.s)return m=!0,new this(1/0);n=i}return m=!0,n.sqrt()}function Se(e){return e instanceof X||e&&e.toStringTag===we||!1}function ii(e){return new this(e).ln()}function ni(e,i){return new this(e).log(i)}function ri(e){return new this(e).log(2)}function ti(e){return new this(e).log(10)}function si(){return ke(this,arguments,"lt")}function oi(){return ke(this,arguments,"gt")}function ui(e,i){return new this(e).mod(i)}function fi(e,i){return new this(e).mul(i)}function ci(e,i){return new this(e).pow(i)}function li(e){var i,n,r,t,s=0,o=new this(1),u=[];if(e===void 0?e=this.precision:F(e,1,U),r=Math.ceil(e/w),this.crypto)if(crypto.getRandomValues)for(i=crypto.getRandomValues(new Uint32Array(r));s<r;)t=i[s],t>=429e7?i[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=t%1e7;else if(crypto.randomBytes){for(i=crypto.randomBytes(r*=4);s<r;)t=i[s]+(i[s+1]<<8)+(i[s+2]<<16)+((i[s+3]&127)<<24),t>=214e7?crypto.randomBytes(4).copy(i,s):(u.push(t%1e7),s+=4);s=r/4}else throw Error(ge);else for(;s<r;)u[s++]=Math.random()*1e7|0;for(r=u[--s],e%=w,r&&e&&(t=q(10,w-e),u[s]=(r/t|0)*t);u[s]===0;s--)u.pop();if(s<0)n=0,u=[0];else{for(n=-1;u[0]===0;n-=w)u.shift();for(r=1,t=u[0];t>=10;t/=10)r++;r<w&&(n-=w-r)}return o.e=n,o.d=u,o}function ai(e){return p(e=new this(e),e.e+1,this.rounding)}function hi(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function di(e){return new this(e).sin()}function pi(e){return new this(e).sinh()}function gi(e){return new this(e).sqrt()}function wi(e,i){return new this(e).sub(i)}function mi(){var e=0,i=arguments,n=new this(i[e]);for(m=!1;n.s&&++e<i.length;)n=n.plus(i[e]);return m=!0,p(n,this.precision,this.rounding)}function Ni(e){return new this(e).tan()}function vi(e){return new this(e).tanh()}function Ei(e){return p(e=new this(e),e.e+1,1)}d[Symbol.for("nodejs.util.inspect.custom")]=d.toString,d[Symbol.toStringTag]="Decimal";var X=d.constructor=_e(se);K=new X(K),Q=new X(Q),Pe.Z=X}}]);
@@ -0,0 +1,3 @@
1
+ (self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[8370],{77482:function(dt){(function(L,W){dt.exports=W()})(this,function(){"use strict";function L(r){"@babel/helpers - typeof";return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},L(r)}function W(r,n){return W=Object.setPrototypeOf||function(s,f){return s.__proto__=f,s},W(r,n)}function vt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function K(r,n,o){return vt()?K=Reflect.construct:K=function(f,O,M){var N=[null];N.push.apply(N,O);var j=Function.bind.apply(f,N),Y=new j;return M&&W(Y,M.prototype),Y},K.apply(null,arguments)}function g(r){return ht(r)||Tt(r)||_t(r)||At()}function ht(r){if(Array.isArray(r))return fe(r)}function Tt(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function _t(r,n){if(r){if(typeof r=="string")return fe(r,n);var o=Object.prototype.toString.call(r).slice(8,-1);if(o==="Object"&&r.constructor&&(o=r.constructor.name),o==="Map"||o==="Set")return Array.from(r);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return fe(r,n)}}function fe(r,n){(n==null||n>r.length)&&(n=r.length);for(var o=0,s=new Array(n);o<n;o++)s[o]=r[o];return s}function At(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Et=Object.hasOwnProperty,Ue=Object.setPrototypeOf,yt=Object.isFrozen,gt=Object.getPrototypeOf,bt=Object.getOwnPropertyDescriptor,_=Object.freeze,b=Object.seal,St=Object.create,He=typeof Reflect<"u"&&Reflect,Z=He.apply,ce=He.construct;Z||(Z=function(n,o,s){return n.apply(o,s)}),_||(_=function(n){return n}),b||(b=function(n){return n}),ce||(ce=function(n,o){return K(n,g(o))});var Rt=y(Array.prototype.forEach),ze=y(Array.prototype.pop),$=y(Array.prototype.push),J=y(String.prototype.toLowerCase),pe=y(String.prototype.toString),Ot=y(String.prototype.match),S=y(String.prototype.replace),Nt=y(String.prototype.indexOf),Dt=y(String.prototype.trim),A=y(RegExp.prototype.test),me=Lt(TypeError);function y(r){return function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),f=1;f<o;f++)s[f-1]=arguments[f];return Z(r,n,s)}}function Lt(r){return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return ce(r,o)}}function l(r,n,o){o=o||J,Ue&&Ue(r,null);for(var s=n.length;s--;){var f=n[s];if(typeof f=="string"){var O=o(f);O!==f&&(yt(n)||(n[s]=O),f=O)}r[f]=!0}return r}function x(r){var n=St(null),o;for(o in r)Z(Et,r,[o])===!0&&(n[o]=r[o]);return n}function Q(r,n){for(;r!==null;){var o=bt(r,n);if(o){if(o.get)return y(o.get);if(typeof o.value=="function")return y(o.value)}r=gt(r)}function s(f){return console.warn("fallback value for",f),null}return s}var Ge=_(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),de=_(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ve=_(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Mt=_(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),he=_(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),wt=_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Be=_(["#text"]),We=_(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Te=_(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$e=_(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ee=_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ct=b(/\{\{[\w\W]*|[\w\W]*\}\}/gm),It=b(/<%[\w\W]*|[\w\W]*%>/gm),xt=b(/\${[\w\W]*}/gm),kt=b(/^data-[\-\w.\u00B7-\uFFFF]/),Pt=b(/^aria-[\-\w]+$/),Ft=b(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ut=b(/^(?:\w+script|data):/i),Ht=b(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zt=b(/^html$/i),Gt=function(){return typeof window>"u"?null:window},Bt=function(n,o){if(L(n)!=="object"||typeof n.createPolicy!="function")return null;var s=null,f="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(f)&&(s=o.currentScript.getAttribute(f));var O="dompurify"+(s?"#"+s:"");try{return n.createPolicy(O,{createHTML:function(N){return N},createScriptURL:function(N){return N}})}catch{return console.warn("TrustedTypes policy "+O+" could not be created."),null}};function je(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gt(),n=function(e){return je(e)};if(n.version="2.4.3",n.removed=[],!r||!r.document||r.document.nodeType!==9)return n.isSupported=!1,n;var o=r.document,s=r.document,f=r.DocumentFragment,O=r.HTMLTemplateElement,M=r.Node,N=r.Element,j=r.NodeFilter,Y=r.NamedNodeMap,$t=Y===void 0?r.NamedNodeMap||r.MozNamedAttrMap:Y,jt=r.HTMLFormElement,Yt=r.DOMParser,te=r.trustedTypes,re=N.prototype,Vt=Q(re,"cloneNode"),Xt=Q(re,"nextSibling"),qt=Q(re,"childNodes"),_e=Q(re,"parentNode");if(typeof O=="function"){var Ae=s.createElement("template");Ae.content&&Ae.content.ownerDocument&&(s=Ae.content.ownerDocument)}var R=Bt(te,o),Ee=R?R.createHTML(""):"",ae=s,ye=ae.implementation,Kt=ae.createNodeIterator,Zt=ae.createDocumentFragment,Jt=ae.getElementsByTagName,Qt=o.importNode,Ye={};try{Ye=x(s).documentMode?s.documentMode:{}}catch{}var D={};n.isSupported=typeof _e=="function"&&ye&&typeof ye.createHTMLDocument<"u"&&Ye!==9;var ge=Ct,be=It,Se=xt,er=kt,tr=Pt,rr=Ut,Ve=Ht,Re=Ft,p=null,Xe=l({},[].concat(g(Ge),g(de),g(ve),g(he),g(Be))),v=null,qe=l({},[].concat(g(We),g(Te),g($e),g(ee))),c=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,Oe=null,Ke=!0,Ne=!0,Ze=!1,F=!1,k=!1,De=!1,Le=!1,U=!1,ne=!1,ie=!1,Je=!0,Qe=!1,ar="user-content-",Me=!0,X=!1,H={},z=null,et=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),tt=null,rt=l({},["audio","video","img","source","image","track"]),we=null,at=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oe="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",w="http://www.w3.org/1999/xhtml",G=w,Ce=!1,Ie=null,nr=l({},[oe,le,w],pe),P,ir=["application/xhtml+xml","text/html"],or="text/html",m,B=null,lr=s.createElement("form"),nt=function(e){return e instanceof RegExp||e instanceof Function},xe=function(e){B&&B===e||((!e||L(e)!=="object")&&(e={}),e=x(e),P=ir.indexOf(e.PARSER_MEDIA_TYPE)===-1?P=or:P=e.PARSER_MEDIA_TYPE,m=P==="application/xhtml+xml"?pe:J,p="ALLOWED_TAGS"in e?l({},e.ALLOWED_TAGS,m):Xe,v="ALLOWED_ATTR"in e?l({},e.ALLOWED_ATTR,m):qe,Ie="ALLOWED_NAMESPACES"in e?l({},e.ALLOWED_NAMESPACES,pe):nr,we="ADD_URI_SAFE_ATTR"in e?l(x(at),e.ADD_URI_SAFE_ATTR,m):at,tt="ADD_DATA_URI_TAGS"in e?l(x(rt),e.ADD_DATA_URI_TAGS,m):rt,z="FORBID_CONTENTS"in e?l({},e.FORBID_CONTENTS,m):et,V="FORBID_TAGS"in e?l({},e.FORBID_TAGS,m):{},Oe="FORBID_ATTR"in e?l({},e.FORBID_ATTR,m):{},H="USE_PROFILES"in e?e.USE_PROFILES:!1,Ke=e.ALLOW_ARIA_ATTR!==!1,Ne=e.ALLOW_DATA_ATTR!==!1,Ze=e.ALLOW_UNKNOWN_PROTOCOLS||!1,F=e.SAFE_FOR_TEMPLATES||!1,k=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Je=e.SANITIZE_DOM!==!1,Qe=e.SANITIZE_NAMED_PROPS||!1,Me=e.KEEP_CONTENT!==!1,X=e.IN_PLACE||!1,Re=e.ALLOWED_URI_REGEXP||Re,G=e.NAMESPACE||w,e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(c.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&nt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(c.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(c.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(Ne=!1),ne&&(U=!0),H&&(p=l({},g(Be)),v=[],H.html===!0&&(l(p,Ge),l(v,We)),H.svg===!0&&(l(p,de),l(v,Te),l(v,ee)),H.svgFilters===!0&&(l(p,ve),l(v,Te),l(v,ee)),H.mathMl===!0&&(l(p,he),l(v,$e),l(v,ee))),e.ADD_TAGS&&(p===Xe&&(p=x(p)),l(p,e.ADD_TAGS,m)),e.ADD_ATTR&&(v===qe&&(v=x(v)),l(v,e.ADD_ATTR,m)),e.ADD_URI_SAFE_ATTR&&l(we,e.ADD_URI_SAFE_ATTR,m),e.FORBID_CONTENTS&&(z===et&&(z=x(z)),l(z,e.FORBID_CONTENTS,m)),Me&&(p["#text"]=!0),k&&l(p,["html","head","body"]),p.table&&(l(p,["tbody"]),delete V.tbody),_&&_(e),B=e)},it=l({},["mi","mo","mn","ms","mtext"]),ot=l({},["foreignobject","desc","title","annotation-xml"]),sr=l({},["title","style","font","a","script"]),se=l({},de);l(se,ve),l(se,Mt);var ke=l({},he);l(ke,wt);var ur=function(e){var t=_e(e);(!t||!t.tagName)&&(t={namespaceURI:G,tagName:"template"});var a=J(e.tagName),u=J(t.tagName);return Ie[e.namespaceURI]?e.namespaceURI===le?t.namespaceURI===w?a==="svg":t.namespaceURI===oe?a==="svg"&&(u==="annotation-xml"||it[u]):!!se[a]:e.namespaceURI===oe?t.namespaceURI===w?a==="math":t.namespaceURI===le?a==="math"&&ot[u]:!!ke[a]:e.namespaceURI===w?t.namespaceURI===le&&!ot[u]||t.namespaceURI===oe&&!it[u]?!1:!ke[a]&&(sr[a]||!se[a]):!!(P==="application/xhtml+xml"&&Ie[e.namespaceURI]):!1},C=function(e){$(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch{try{e.outerHTML=Ee}catch{e.remove()}}},Pe=function(e,t){try{$(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{$(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!v[e])if(U||ne)try{C(t)}catch{}else try{t.setAttribute(e,"")}catch{}},lt=function(e){var t,a;if(Le)e="<remove></remove>"+e;else{var u=Ot(e,/^[\r\n\t ]+/);a=u&&u[0]}P==="application/xhtml+xml"&&G===w&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var E=R?R.createHTML(e):e;if(G===w)try{t=new Yt().parseFromString(E,P)}catch{}if(!t||!t.documentElement){t=ye.createDocument(G,"template",null);try{t.documentElement.innerHTML=Ce?Ee:E}catch{}}var T=t.body||t.documentElement;return e&&a&&T.insertBefore(s.createTextNode(a),T.childNodes[0]||null),G===w?Jt.call(t,k?"html":"body")[0]:k?t.documentElement:T},st=function(e){return Kt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,null,!1)},fr=function(e){return e instanceof jt&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof $t)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},q=function(e){return L(M)==="object"?e instanceof M:e&&L(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},I=function(e,t,a){D[e]&&Rt(D[e],function(u){u.call(n,t,a,B)})},ut=function(e){var t;if(I("beforeSanitizeElements",e,null),fr(e)||A(/[\u0080-\uFFFF]/,e.nodeName))return C(e),!0;var a=m(e.nodeName);if(I("uponSanitizeElement",e,{tagName:a,allowedTags:p}),e.hasChildNodes()&&!q(e.firstElementChild)&&(!q(e.content)||!q(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent)||a==="select"&&A(/<template/i,e.innerHTML))return C(e),!0;if(!p[a]||V[a]){if(!V[a]&&ct(a)&&(c.tagNameCheck instanceof RegExp&&A(c.tagNameCheck,a)||c.tagNameCheck instanceof Function&&c.tagNameCheck(a)))return!1;if(Me&&!z[a]){var u=_e(e)||e.parentNode,E=qt(e)||e.childNodes;if(E&&u)for(var T=E.length,h=T-1;h>=0;--h)u.insertBefore(Vt(E[h],!0),Xt(e))}return C(e),!0}return e instanceof N&&!ur(e)||(a==="noscript"||a==="noembed")&&A(/<\/no(script|embed)/i,e.innerHTML)?(C(e),!0):(F&&e.nodeType===3&&(t=e.textContent,t=S(t,ge," "),t=S(t,be," "),t=S(t,Se," "),e.textContent!==t&&($(n.removed,{element:e.cloneNode()}),e.textContent=t)),I("afterSanitizeElements",e,null),!1)},ft=function(e,t,a){if(Je&&(t==="id"||t==="name")&&(a in s||a in lr))return!1;if(!(Ne&&!Oe[t]&&A(er,t))){if(!(Ke&&A(tr,t))){if(!v[t]||Oe[t]){if(!(ct(e)&&(c.tagNameCheck instanceof RegExp&&A(c.tagNameCheck,e)||c.tagNameCheck instanceof Function&&c.tagNameCheck(e))&&(c.attributeNameCheck instanceof RegExp&&A(c.attributeNameCheck,t)||c.attributeNameCheck instanceof Function&&c.attributeNameCheck(t))||t==="is"&&c.allowCustomizedBuiltInElements&&(c.tagNameCheck instanceof RegExp&&A(c.tagNameCheck,a)||c.tagNameCheck instanceof Function&&c.tagNameCheck(a))))return!1}else if(!we[t]){if(!A(Re,S(a,Ve,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&Nt(a,"data:")===0&&tt[e])){if(!(Ze&&!A(rr,S(a,Ve,"")))){if(a)return!1}}}}}}return!0},ct=function(e){return e.indexOf("-")>0},pt=function(e){var t,a,u,E;I("beforeSanitizeAttributes",e,null);var T=e.attributes;if(T){var h={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v};for(E=T.length;E--;){t=T[E];var ue=t,d=ue.name,Fe=ue.namespaceURI;if(a=d==="value"?t.value:Dt(t.value),u=m(d),h.attrName=u,h.attrValue=a,h.keepAttr=!0,h.forceKeepAttr=void 0,I("uponSanitizeAttribute",e,h),a=h.attrValue,!h.forceKeepAttr&&(Pe(d,e),!!h.keepAttr)){if(A(/\/>/i,a)){Pe(d,e);continue}F&&(a=S(a,ge," "),a=S(a,be," "),a=S(a,Se," "));var mt=m(e.nodeName);if(ft(mt,u,a)){if(Qe&&(u==="id"||u==="name")&&(Pe(d,e),a=ar+a),R&&L(te)==="object"&&typeof te.getAttributeType=="function"&&!Fe)switch(te.getAttributeType(mt,u)){case"TrustedHTML":a=R.createHTML(a);break;case"TrustedScriptURL":a=R.createScriptURL(a);break}try{Fe?e.setAttributeNS(Fe,d,a):e.setAttribute(d,a),ze(n.removed)}catch{}}}}I("afterSanitizeAttributes",e,null)}},cr=function i(e){var t,a=st(e);for(I("beforeSanitizeShadowDOM",e,null);t=a.nextNode();)I("uponSanitizeShadowNode",t,null),!ut(t)&&(t.content instanceof f&&i(t.content),pt(t));I("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t,a,u,E,T;if(Ce=!i,Ce&&(i="<!-->"),typeof i!="string"&&!q(i)){if(typeof i.toString!="function")throw me("toString is not a function");if(i=i.toString(),typeof i!="string")throw me("dirty is not a string, aborting")}if(!n.isSupported){if(L(r.toStaticHTML)==="object"||typeof r.toStaticHTML=="function"){if(typeof i=="string")return r.toStaticHTML(i);if(q(i))return r.toStaticHTML(i.outerHTML)}return i}if(De||xe(e),n.removed=[],typeof i=="string"&&(X=!1),X){if(i.nodeName){var h=m(i.nodeName);if(!p[h]||V[h])throw me("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof M)t=lt("<!---->"),a=t.ownerDocument.importNode(i,!0),a.nodeType===1&&a.nodeName==="BODY"||a.nodeName==="HTML"?t=a:t.appendChild(a);else{if(!U&&!F&&!k&&i.indexOf("<")===-1)return R&&ie?R.createHTML(i):i;if(t=lt(i),!t)return U?null:ie?Ee:""}t&&Le&&C(t.firstChild);for(var ue=st(X?i:t);u=ue.nextNode();)u.nodeType===3&&u===E||ut(u)||(u.content instanceof f&&cr(u.content),pt(u),E=u);if(E=null,X)return i;if(U){if(ne)for(T=Zt.call(t.ownerDocument);t.firstChild;)T.appendChild(t.firstChild);else T=t;return v.shadowroot&&(T=Qt.call(o,T,!0)),T}var d=k?t.outerHTML:t.innerHTML;return k&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(zt,t.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
3
+ `+d),F&&(d=S(d,ge," "),d=S(d,be," "),d=S(d,Se," ")),R&&ie?R.createHTML(d):d},n.setConfig=function(i){xe(i),De=!0},n.clearConfig=function(){B=null,De=!1},n.isValidAttribute=function(i,e,t){B||xe({});var a=m(i),u=m(e);return ft(a,u,t)},n.addHook=function(i,e){typeof e=="function"&&(D[i]=D[i]||[],$(D[i],e))},n.removeHook=function(i){if(D[i])return ze(D[i])},n.removeHooks=function(i){D[i]&&(D[i]=[])},n.removeAllHooks=function(){D={}},n}var Wt=je();return Wt})}}]);