/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["require","exports","../chunks/_rollupPluginBabelHelpers","../assets","../core/has"],(function(e,t,n,s,i){"use strict";const l=128e3;let r=null,o=null;function u(){return a.apply(this,arguments)}function a(){return(a=n._asyncToGenerator((function*(){return r||(r=c()),r}))).apply(this,arguments)}function c(){return p.apply(this,arguments)}function p(){return(p=n._asyncToGenerator((function*(){const t=i("esri-csp-restrictions")?yield new Promise(((t,n)=>e(["../chunks/libtess-asm"],t,n))).then((e=>e.libtessAsm)):yield new Promise(((t,n)=>e(["../chunks/libtess"],t,n))).then((e=>e.libtess));o=yield t.load({locateFile:e=>s.getAssetUrl(`esri/core/libs/libtess/${e}`)})}))).apply(this,arguments)}function h(e,t){const n=Math.max(e.length,l);return o.triangulate(e,t,n)}t.loadLibtess=u,t.triangulate=h,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
